{
  "name": "FountainheadRuntimeDescription",
  "shortname": "FountainheadRuntimeDescription",
  "classitems": [
    {
      "file": "addon/components/fountainhead-runtime-description.js",
      "line": 179,
      "description": "<p>Given a descriptions string, extracts data tags, parses JSON\nand adds the properties to this component, allowing them\nto be used in code examples.</p>\n<p>If we have a <code>glimmer</code> block which has <code>data={'colors': ['red', 'green', 'blue']}</code>\nthis will add a property <code>colors</code> to the component with the value <code>['red', 'green', 'blue']</code></p>\n<p>Presents users with an error message if the JSON cannot be parsed</p>\n",
      "itemtype": "method",
      "name": "_addDataTagVariables",
      "params": [
        {
          "name": "docString",
          "description": null,
          "type": "String"
        }
      ],
      "class": "FountainheadRuntimeDescription",
      "srcFileId": "addon_components_fountainhead-runtime-description.js"
    },
    {
      "file": "addon/components/fountainhead-runtime-description.js",
      "line": 65,
      "description": "<p>Looks through the passed-in template string and checks for action helpers;\nwhen it finds some, it checks for the actions referenced and registers no-ops\nfor them on this component's context so that the application doesn't explode\nwhen trying to reference a non-existent action.</p>\n",
      "itemtype": "method",
      "name": "_checkActionRefs",
      "params": [
        {
          "name": "templateString",
          "description": "<p>The template string to run the check for action matches on</p>\n",
          "type": "String"
        }
      ],
      "return": {
        "description": "",
        "type": "Undefined"
      },
      "class": "FountainheadRuntimeDescription",
      "srcFileId": "addon_components_fountainhead-runtime-description.js"
    },
    {
      "file": "addon/components/fountainhead-runtime-description.js",
      "line": 98,
      "description": "<p>Grabs the input from the parent instance's code editor, compiles it into a\nreal-live HTMLBars template, registers it on the container as a partial\nand makes it available as output for the preview component's template to\nrender.</p>\n<p>New partials are created for every change, using a date string as the\npartial name to avoid collisions.</p>\n<p>TODO: Use lookup partial names that can be mapped and retrieved instead of\nmaking new ones each time</p>\n",
      "itemtype": "method",
      "name": "_generateDescription",
      "params": [
        {
          "name": "templateString",
          "description": "<p>String to generate template from</p>\n",
          "type": "String"
        }
      ],
      "class": "FountainheadRuntimeDescription",
      "srcFileId": "addon_components_fountainhead-runtime-description.js"
    },
    {
      "file": "addon/components/fountainhead-runtime-description.js",
      "line": 169,
      "description": "<p>Given a description string strips any\ndata tags from the code example.</p>\n",
      "itemtype": "method",
      "name": "_stripDataTags",
      "return": {
        "description": "",
        "type": "String"
      },
      "class": "FountainheadRuntimeDescription",
      "srcFileId": "addon_components_fountainhead-runtime-description.js"
    },
    {
      "file": "addon/components/fountainhead-runtime-description.js",
      "line": 41,
      "itemtype": "property",
      "name": "classNames",
      "type": "{Array}",
      "default": "['fh-description']",
      "class": "FountainheadRuntimeDescription",
      "srcFileId": "addon_components_fountainhead-runtime-description.js"
    },
    {
      "file": "addon/components/fountainhead-runtime-description.js",
      "line": 47,
      "description": "<p>If there is a parsing error during the template compilation the catch block\nwill set it as the <code>compilerError</code>. This parsing error is rendered for\neasier debugging of invalid content.</p>\n",
      "itemtype": "property",
      "name": "compilerError",
      "type": "{?string}",
      "default": "null",
      "class": "FountainheadRuntimeDescription",
      "srcFileId": "addon_components_fountainhead-runtime-description.js"
    },
    {
      "file": "addon/components/fountainhead-runtime-description.js",
      "line": 22,
      "description": "<p>The content string that should be rendered. This string is passed to the\nruntime compiler and registered as a partial if compilation is successful.</p>\n",
      "itemtype": "property",
      "name": "content",
      "type": "{string}",
      "default": "''",
      "class": "FountainheadRuntimeDescription",
      "srcFileId": "addon_components_fountainhead-runtime-description.js"
    },
    {
      "file": "addon/components/fountainhead-runtime-description.js",
      "line": 30,
      "description": "<p>The string that should be converted to a partial</p>\n",
      "itemtype": "property",
      "name": "description",
      "type": "{string}",
      "default": "''",
      "deprecated": true,
      "class": "FountainheadRuntimeDescription",
      "srcFileId": "addon_components_fountainhead-runtime-description.js"
    },
    {
      "file": "addon/components/fountainhead-runtime-description.js",
      "line": 156,
      "description": "<p>Whenever attrs are received fire the <code>_generateDescription</code> method to\ngenerate a partial that will be rendered.</p>\n",
      "itemtype": "event",
      "name": "didReceiveAttrs",
      "class": "FountainheadRuntimeDescription",
      "srcFileId": "addon_components_fountainhead-runtime-description.js"
    },
    {
      "file": "addon/components/fountainhead-runtime-description.js",
      "line": 133,
      "description": "<p>On init we map the passed <code>contextActions</code> to real actions in this\ncomponent's actions hash to ensure they're available at compile time.</p>\n",
      "itemtype": "method",
      "name": "init",
      "class": "FountainheadRuntimeDescription",
      "srcFileId": "addon_components_fountainhead-runtime-description.js"
    },
    {
      "file": "addon/components/fountainhead-runtime-description.js",
      "line": 56,
      "description": "<p>Name of generated partial that is used in the template.</p>\n",
      "itemtype": "property",
      "name": "partialName",
      "type": "{string}",
      "class": "FountainheadRuntimeDescription",
      "srcFileId": "addon_components_fountainhead-runtime-description.js"
    }
  ],
  "plugins": [],
  "extensions": [],
  "plugin_for": [],
  "extension_for": [],
  "module": "Addon",
  "file": "addon/components/fountainhead-runtime-description.js",
  "line": 8,
  "description": "<p>Generates a description during runtime by using HTMLBars to compile any\nstring to a partial. This allows us to create descriptions from JSON\nresponses with components inside of them.</p>\n<p>TODO: Name partials by class+type+name for re-use</p>\n",
  "is_constructor": 1,
  "extends": "Ember.Component",
  "method": [
    {
      "file": "addon/components/fountainhead-runtime-description.js",
      "line": 179,
      "description": "<p>Given a descriptions string, extracts data tags, parses JSON\nand adds the properties to this component, allowing them\nto be used in code examples.</p>\n<p>If we have a <code>glimmer</code> block which has <code>data={'colors': ['red', 'green', 'blue']}</code>\nthis will add a property <code>colors</code> to the component with the value <code>['red', 'green', 'blue']</code></p>\n<p>Presents users with an error message if the JSON cannot be parsed</p>\n",
      "itemtype": "method",
      "name": "_addDataTagVariables",
      "params": [
        {
          "name": "docString",
          "description": null,
          "type": "String"
        }
      ],
      "class": "FountainheadRuntimeDescription",
      "srcFileId": "addon_components_fountainhead-runtime-description.js"
    },
    {
      "file": "addon/components/fountainhead-runtime-description.js",
      "line": 65,
      "description": "<p>Looks through the passed-in template string and checks for action helpers;\nwhen it finds some, it checks for the actions referenced and registers no-ops\nfor them on this component's context so that the application doesn't explode\nwhen trying to reference a non-existent action.</p>\n",
      "itemtype": "method",
      "name": "_checkActionRefs",
      "params": [
        {
          "name": "templateString",
          "description": "<p>The template string to run the check for action matches on</p>\n",
          "type": "String"
        }
      ],
      "return": {
        "description": "",
        "type": "Undefined"
      },
      "class": "FountainheadRuntimeDescription",
      "srcFileId": "addon_components_fountainhead-runtime-description.js"
    },
    {
      "file": "addon/components/fountainhead-runtime-description.js",
      "line": 98,
      "description": "<p>Grabs the input from the parent instance's code editor, compiles it into a\nreal-live HTMLBars template, registers it on the container as a partial\nand makes it available as output for the preview component's template to\nrender.</p>\n<p>New partials are created for every change, using a date string as the\npartial name to avoid collisions.</p>\n<p>TODO: Use lookup partial names that can be mapped and retrieved instead of\nmaking new ones each time</p>\n",
      "itemtype": "method",
      "name": "_generateDescription",
      "params": [
        {
          "name": "templateString",
          "description": "<p>String to generate template from</p>\n",
          "type": "String"
        }
      ],
      "class": "FountainheadRuntimeDescription",
      "srcFileId": "addon_components_fountainhead-runtime-description.js"
    },
    {
      "file": "addon/components/fountainhead-runtime-description.js",
      "line": 169,
      "description": "<p>Given a description string strips any\ndata tags from the code example.</p>\n",
      "itemtype": "method",
      "name": "_stripDataTags",
      "return": {
        "description": "",
        "type": "String"
      },
      "class": "FountainheadRuntimeDescription",
      "srcFileId": "addon_components_fountainhead-runtime-description.js"
    },
    {
      "file": "addon/components/fountainhead-runtime-description.js",
      "line": 133,
      "description": "<p>On init we map the passed <code>contextActions</code> to real actions in this\ncomponent's actions hash to ensure they're available at compile time.</p>\n",
      "itemtype": "method",
      "name": "init",
      "class": "FountainheadRuntimeDescription",
      "srcFileId": "addon_components_fountainhead-runtime-description.js"
    }
  ],
  "property": [
    {
      "file": "addon/components/fountainhead-runtime-description.js",
      "line": 41,
      "itemtype": "property",
      "name": "classNames",
      "type": "{Array}",
      "default": "['fh-description']",
      "class": "FountainheadRuntimeDescription",
      "srcFileId": "addon_components_fountainhead-runtime-description.js"
    },
    {
      "file": "addon/components/fountainhead-runtime-description.js",
      "line": 47,
      "description": "<p>If there is a parsing error during the template compilation the catch block\nwill set it as the <code>compilerError</code>. This parsing error is rendered for\neasier debugging of invalid content.</p>\n",
      "itemtype": "property",
      "name": "compilerError",
      "type": "{?string}",
      "default": "null",
      "class": "FountainheadRuntimeDescription",
      "srcFileId": "addon_components_fountainhead-runtime-description.js"
    },
    {
      "file": "addon/components/fountainhead-runtime-description.js",
      "line": 22,
      "description": "<p>The content string that should be rendered. This string is passed to the\nruntime compiler and registered as a partial if compilation is successful.</p>\n",
      "itemtype": "property",
      "name": "content",
      "type": "{string}",
      "default": "''",
      "class": "FountainheadRuntimeDescription",
      "srcFileId": "addon_components_fountainhead-runtime-description.js"
    },
    {
      "file": "addon/components/fountainhead-runtime-description.js",
      "line": 30,
      "description": "<p>The string that should be converted to a partial</p>\n",
      "itemtype": "property",
      "name": "description",
      "type": "{string}",
      "default": "''",
      "deprecated": true,
      "class": "FountainheadRuntimeDescription",
      "srcFileId": "addon_components_fountainhead-runtime-description.js"
    },
    {
      "file": "addon/components/fountainhead-runtime-description.js",
      "line": 56,
      "description": "<p>Name of generated partial that is used in the template.</p>\n",
      "itemtype": "property",
      "name": "partialName",
      "type": "{string}",
      "class": "FountainheadRuntimeDescription",
      "srcFileId": "addon_components_fountainhead-runtime-description.js"
    }
  ],
  "event": [
    {
      "file": "addon/components/fountainhead-runtime-description.js",
      "line": 156,
      "description": "<p>Whenever attrs are received fire the <code>_generateDescription</code> method to\ngenerate a partial that will be rendered.</p>\n",
      "itemtype": "event",
      "name": "didReceiveAttrs",
      "class": "FountainheadRuntimeDescription",
      "srcFileId": "addon_components_fountainhead-runtime-description.js"
    }
  ],
  "srcFileId": "addon_components_fountainhead-runtime-description.js"
}