mobiledoc-dom-renderer
Advanced tools
Comparing version 0.6.0 to 0.6.1-0
@@ -0,4 +1,13 @@ | ||
<a name="0.6.1-0"></a> | ||
## 0.6.1-0 (2017-02-15) | ||
* add babel-helpers dep ([227dc86](https://github.com/bustlelabs/mobiledoc-dom-renderer/commit/227dc86)) | ||
* use typeof check (#42) ([2170c2b](https://github.com/bustlelabs/mobiledoc-dom-renderer/commit/2170c2b)), closes [#41](https://github.com/bustlelabs/mobiledoc-dom-renderer/issues/41) | ||
<a name="0.6.0"></a> | ||
# 0.6.0 (2017-02-14) | ||
* 0.6.0 ([89a33b1](https://github.com/bustlelabs/mobiledoc-dom-renderer/commit/89a33b1)) | ||
* Added tests for #reduceAndSanitizeAttributes ([1efce8e](https://github.com/bustlelabs/mobiledoc-dom-renderer/commit/1efce8e)) | ||
@@ -5,0 +14,0 @@ * Cleanup for sanitization ([c81f512](https://github.com/bustlelabs/mobiledoc-dom-renderer/commit/c81f512)) |
@@ -29,2 +29,2 @@ define('mobiledoc-dom-renderer/cards/image', ['exports', 'mobiledoc-dom-renderer/utils/render-type'], function (exports, _renderType) { | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW1hZ2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9saWIvY2FyZHMvaW1hZ2UuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7OztjQUdRLEFBQU8sQUFDYixBQUFJO0FBQUUsQUFBVyxBQUNqQixBQUFNLEFBQUM7O2dCQUFDLEFBQU87Z0JBQVEsQUFBRyxBQUFDLEFBQUMsV0FBWCxBQUFHLEFBQUUsSUFDcEI7O2dCQUFJLEFBQUcsTUFBRyxBQUFHLElBQUMsQUFBYSxjQUFDLEFBQUssQUFBQyxBQUFDLEFBQ25DLEFBQUc7Z0JBQUMsQUFBRyxNQUFHLEFBQU8sUUFBQyxBQUFHLEFBQUMsQ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c7XG5cbmV4cG9ydCBkZWZhdWx0IHtcbiAgbmFtZTogJ2ltYWdlJyxcbiAgdHlwZTogUkVOREVSX1RZUEUsXG4gIHJlbmRlcih7cGF5bG9hZCwgZW52OiB7ZG9tfX0pIHtcbiAgICBsZXQgaW1nID0gZG9tLmNyZWF0ZUVsZW1lbnQoJ2ltZycpO1xuICAgIGltZy5zcmMgPSBwYXlsb2FkLnNyYztcbiAgICByZXR1cm4gaW1nO1xuICB9XG59O1xuIl19 |
@@ -26,2 +26,2 @@ define('mobiledoc-dom-renderer/index', ['exports', 'mobiledoc-dom-renderer/renderer-factory', 'mobiledoc-dom-renderer/utils/render-type'], function (exports, _rendererFactory, _renderType) { | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJsaWIvaW5kZXguanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7OztZQUdTLEFBQVcsQUFBRSxBQUFDLEFBRXZCLEFBQU07NEJBQXlCLEFBQU0sUUFDbkMsQUFBTTtlQUFDLEFBQW9CLEFBQUcsQUFBZSxBQUFDLEFBQ2hELEFBQUM7QUFFRCxBQUFlLEFBQWUsQUFBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZW5kZXJlckZhY3RvcnkgZnJvbSAnLi9yZW5kZXJlci1mYWN0b3J5JztcbmltcG9ydCBSRU5ERVJfVFlQRSBmcm9tICcuL3V0aWxzL3JlbmRlci10eXBlJztcblxuZXhwb3J0IHsgUkVOREVSX1RZUEUgfTtcblxuZXhwb3J0IGZ1bmN0aW9uIHJlZ2lzdGVyR2xvYmFsKHdpbmRvdykge1xuICB3aW5kb3cuTW9iaWxlZG9jRE9NUmVuZGVyZXIgPSBSZW5kZXJlckZhY3Rvcnk7XG59XG5cbmV4cG9ydCBkZWZhdWx0IFJlbmRlcmVyRmFjdG9yeTtcbiJdfQ== | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJsaWIvaW5kZXguanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7OztZQUdTLEFBQVcsQUFBRSxBQUFDLEFBRXZCLEFBQU07NEJBQXlCLEFBQU0sUUFDbkMsQUFBTTtlQUFDLEFBQW9CLEFBQUcsQUFBZSxBQUFDLEFBQ2hELEFBQUM7QUFFRCxBQUFlLEFBQWUsQUFBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZW5kZXJlckZhY3RvcnkgZnJvbSAnLi9yZW5kZXJlci1mYWN0b3J5JztcbmltcG9ydCBSRU5ERVJfVFlQRSBmcm9tICcuL3V0aWxzL3JlbmRlci10eXBlJztcblxuZXhwb3J0IHsgUkVOREVSX1RZUEUgfTtcblxuZXhwb3J0IGZ1bmN0aW9uIHJlZ2lzdGVyR2xvYmFsKHdpbmRvdykge1xuICB3aW5kb3cuTW9iaWxlZG9jRE9NUmVuZGVyZXIgPSBSZW5kZXJlckZhY3Rvcnk7XG59XG5cbmV4cG9ydCBkZWZhdWx0IFJlbmRlcmVyRmFjdG9yeTtcbiJdfQ== |
@@ -1,2 +0,2 @@ | ||
define('mobiledoc-dom-renderer/renderer-factory', ['exports', 'babel-helpers', 'mobiledoc-dom-renderer/renderers/0-2', 'mobiledoc-dom-renderer/renderers/0-3', 'mobiledoc-dom-renderer/utils/render-type'], function (exports, _babelHelpers, _, _3, _renderType) { | ||
define('mobiledoc-dom-renderer/renderer-factory', ['exports', 'babel-runtime/helpers/classCallCheck', 'mobiledoc-dom-renderer/renderers/0-2', 'mobiledoc-dom-renderer/renderers/0-3', 'mobiledoc-dom-renderer/utils/render-type'], function (exports, _classCallCheck2, _, _3, _renderType) { | ||
'use strict'; | ||
@@ -8,2 +8,4 @@ | ||
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); | ||
var _2 = _interopRequireDefault(_); | ||
@@ -69,3 +71,3 @@ | ||
(0, _babelHelpers.classCallCheck)(this, RendererFactory); | ||
(0, _classCallCheck3.default)(this, RendererFactory); | ||
@@ -116,2 +118,2 @@ cards = cards || []; | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVuZGVyZXItZmFjdG9yeS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImxpYi9yZW5kZXJlci1mYWN0b3J5LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFTQSxBQU1HOzs7Ozs7O0FBRUYsMkJBQXVCLEFBQUssT0FDMUIsQUFBRSxBQUFDO1lBQUMsQ0FBQyxBQUFLLE1BQUMsQUFBTyxRQUFDLEFBQUssQUFBQyxBQUFDLFFBQUMsQUFBQyxBQUMxQjtrQkFBTSxJQUFJLEFBQUssTUFBQyxBQUFvQyxBQUFDLEFBQUMsQUFDeEQsQUFBQztBQUNELEFBQUcsQUFBQzthQUFDLElBQUksQUFBQyxJQUFDLEFBQUMsR0FBRSxBQUFDLElBQUcsQUFBSyxNQUFDLEFBQU0sUUFBRSxBQUFDLEFBQUUsS0FBRSxBQUFDLEFBQ3BDO2dCQUFJLEFBQUksT0FBRyxBQUFLLE1BQUMsQUFBQyxBQUFDLEFBQUMsQUFDcEIsQUFBRSxBQUFDO2dCQUFDLEFBQUksS0FBQyxBQUFJLEFBQUssQUFBVyxBQUFDLCtCQUFDLEFBQUMsQUFDOUI7c0JBQU0sSUFBSSxBQUFLLEFBQUMsaUJBQVMsQUFBSSxLQUFDLEFBQUksT0FBc0IsQUFBVyw0REFBVyxBQUFJLEtBQUMsQUFBSSxBQUFHLEFBQUMsQUFBQyxBQUM5RixPQUFDO0FBQ0QsQUFBRSx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JlbmRlcigpO1xuICAgICAgIGRlZmF1bHQ6XG4gICAgICAgICB0aHJvdyBuZXcgRXJyb3IoYFVuZXhwZWN0ZWQgTW9iaWxlZG9jIHZlcnNpb24gXCIke3ZlcnNpb259XCJgKTtcbiAgICAgfVxuICAgfVxuIH1cbiJdfQ== |
@@ -1,2 +0,2 @@ | ||
define('mobiledoc-dom-renderer/renderers/0-2', ['exports', 'babel-helpers', 'mobiledoc-dom-renderer/utils/dom', 'mobiledoc-dom-renderer/cards/image', 'mobiledoc-dom-renderer/utils/render-type', 'mobiledoc-dom-renderer/utils/section-types', 'mobiledoc-dom-renderer/utils/tag-names', 'mobiledoc-dom-renderer/utils/sanitization-utils'], function (exports, _babelHelpers, _dom, _image, _renderType, _sectionTypes, _tagNames, _sanitizationUtils) { | ||
define('mobiledoc-dom-renderer/renderers/0-2', ['exports', 'babel-runtime/helpers/classCallCheck', 'babel-runtime/helpers/createClass', 'mobiledoc-dom-renderer/utils/dom', 'mobiledoc-dom-renderer/cards/image', 'mobiledoc-dom-renderer/utils/render-type', 'mobiledoc-dom-renderer/utils/section-types', 'mobiledoc-dom-renderer/utils/tag-names', 'mobiledoc-dom-renderer/utils/sanitization-utils'], function (exports, _classCallCheck2, _createClass2, _dom, _image, _renderType, _sectionTypes, _tagNames, _sanitizationUtils) { | ||
'use strict'; | ||
@@ -9,2 +9,6 @@ | ||
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); | ||
var _createClass3 = _interopRequireDefault(_createClass2); | ||
var _image2 = _interopRequireDefault(_image); | ||
@@ -44,3 +48,3 @@ | ||
function Renderer(mobiledoc, options) { | ||
(0, _babelHelpers.classCallCheck)(this, Renderer); | ||
(0, _classCallCheck3.default)(this, Renderer); | ||
@@ -306,3 +310,3 @@ var cards = options.cards, | ||
(0, _babelHelpers.createClass)(Renderer, [{ | ||
(0, _createClass3.default)(Renderer, [{ | ||
key: '_defaultUnknownCardHandler', | ||
@@ -323,2 +327,2 @@ get: function () { | ||
}); | ||
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ZSgnY2xhc3MnLCB0YWdOYW1lKTtcbiAgICB9XG5cbiAgICB0aGlzLnJlbmRlck1hcmtlcnNPbkVsZW1lbnQoZWxlbWVudCwgbWFya2Vycyk7XG4gICAgcmV0dXJuIGVsZW1lbnQ7XG4gIH1cbn1cblxuIl19 |
@@ -1,2 +0,2 @@ | ||
define('mobiledoc-dom-renderer/renderers/0-3', ['exports', 'babel-helpers', 'mobiledoc-dom-renderer/utils/dom', 'mobiledoc-dom-renderer/cards/image', 'mobiledoc-dom-renderer/utils/render-type', 'mobiledoc-dom-renderer/utils/section-types', 'mobiledoc-dom-renderer/utils/tag-names', 'mobiledoc-dom-renderer/utils/sanitization-utils', 'mobiledoc-dom-renderer/utils/marker-types'], function (exports, _babelHelpers, _dom, _image, _renderType, _sectionTypes, _tagNames, _sanitizationUtils, _markerTypes) { | ||
define('mobiledoc-dom-renderer/renderers/0-3', ['exports', 'babel-runtime/helpers/classCallCheck', 'babel-runtime/helpers/createClass', 'mobiledoc-dom-renderer/utils/dom', 'mobiledoc-dom-renderer/cards/image', 'mobiledoc-dom-renderer/utils/render-type', 'mobiledoc-dom-renderer/utils/section-types', 'mobiledoc-dom-renderer/utils/tag-names', 'mobiledoc-dom-renderer/utils/sanitization-utils', 'mobiledoc-dom-renderer/utils/marker-types'], function (exports, _classCallCheck2, _createClass2, _dom, _image, _renderType, _sectionTypes, _tagNames, _sanitizationUtils, _markerTypes) { | ||
'use strict'; | ||
@@ -9,2 +9,6 @@ | ||
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); | ||
var _createClass3 = _interopRequireDefault(_createClass2); | ||
var _image2 = _interopRequireDefault(_image); | ||
@@ -46,3 +50,3 @@ | ||
function Renderer(mobiledoc, state) { | ||
(0, _babelHelpers.classCallCheck)(this, Renderer); | ||
(0, _classCallCheck3.default)(this, Renderer); | ||
@@ -405,3 +409,3 @@ var cards = state.cards, | ||
(0, _babelHelpers.createClass)(Renderer, [{ | ||
(0, _createClass3.default)(Renderer, [{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ICAgIH1cblxuICAgIHRoaXMucmVuZGVyTWFya2Vyc09uRWxlbWVudChlbGVtZW50LCBtYXJrZXJzKTtcbiAgICByZXR1cm4gZWxlbWVudDtcbiAgfVxufVxuXG4iXX0= |
@@ -18,2 +18,2 @@ define("mobiledoc-dom-renderer/utils/array-utils", ["exports"], function (exports) { | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXJyYXktdXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9saWIvdXRpbHMvYXJyYXktdXRpbHMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7OztzQkFBeUIsQUFBSyxPQUFFLEFBQVcsYUFDekMsQUFBRyxBQUFDO2FBQUMsSUFBSSxBQUFDLElBQUMsQUFBQyxHQUFDLEFBQUMsSUFBRyxBQUFLLE1BQUMsQUFBTSxRQUFDLEFBQUMsQUFBRSxLQUFFLEFBQUMsQUFDbEM7Z0JBQUksQUFBSyxRQUFHLEFBQUssTUFBQyxBQUFDLEFBQUMsQUFBQyxBQUNyQixBQUFFLEFBQUM7Z0JBQUMsQUFBSyxVQUFLLEFBQVcsQUFBQyxhQUFDLEFBQUMsQUFDMUIsQUFBTTt1QkFBQyxBQUFJLEFBQUMsQUFDZCxBQUFDLEFBQ0g7QUFBQztBQUNELEFBQU07ZUFBQyxBQUFLLEFBQUMsQUFDZixBQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGZ1bmN0aW9uIGluY2x1ZGVzKGFycmF5LCBkZXRlY3RWYWx1ZSkge1xuICBmb3IgKGxldCBpPTA7aSA8IGFycmF5Lmxlbmd0aDtpKyspIHtcbiAgICBsZXQgdmFsdWUgPSBhcnJheVtpXTtcbiAgICBpZiAodmFsdWUgPT09IGRldGVjdFZhbHVlKSB7XG4gICAgICByZXR1cm4gdHJ1ZTtcbiAgICB9XG4gIH1cbiAgcmV0dXJuIGZhbHNlO1xufVxuIl19 | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXJyYXktdXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9saWIvdXRpbHMvYXJyYXktdXRpbHMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7OztzQkFBeUIsQUFBSyxPQUFFLEFBQVcsYUFDekMsQUFBRyxBQUFDO2FBQUMsSUFBSSxBQUFDLElBQUMsQUFBQyxHQUFDLEFBQUMsSUFBRyxBQUFLLE1BQUMsQUFBTSxRQUFDLEFBQUMsQUFBRSxLQUFFLEFBQUMsQUFDbEM7Z0JBQUksQUFBSyxRQUFHLEFBQUssTUFBQyxBQUFDLEFBQUMsQUFBQyxBQUNyQixBQUFFLEFBQUM7Z0JBQUMsQUFBSyxVQUFLLEFBQVcsQUFBQyxhQUFDLEFBQUMsQUFDMUIsQUFBTTt1QkFBQyxBQUFJLEFBQUMsQUFDZCxBQUFDLEFBQ0g7QUFBQztBQUNELEFBQU07ZUFBQyxBQUFLLEFBQUMsQUFDZixBQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGZ1bmN0aW9uIGluY2x1ZGVzKGFycmF5LCBkZXRlY3RWYWx1ZSkge1xuICBmb3IgKGxldCBpPTA7aSA8IGFycmF5Lmxlbmd0aDtpKyspIHtcbiAgICBsZXQgdmFsdWUgPSBhcnJheVtpXTtcbiAgICBpZiAodmFsdWUgPT09IGRldGVjdFZhbHVlKSB7XG4gICAgICByZXR1cm4gdHJ1ZTtcbiAgICB9XG4gIH1cbiAgcmV0dXJuIGZhbHNlO1xufVxuIl19 |
@@ -20,5 +20,5 @@ define('mobiledoc-dom-renderer/utils/dom', ['module', 'exports'], function (module, exports) { | ||
} | ||
var isNode = exports.isNode = !window && typeof module === 'object' && typeof module.require === 'function'; | ||
var isNode = exports.isNode = typeof window === 'undefined' && typeof module === 'object' && typeof module.require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URL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFya2VyLXR5cGVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vbGliL3V0aWxzL21hcmtlci10eXBlcy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBTyxNQUFNLEFBQWtCLGtEQUFHLEFBQUMsQUFBQyxBQUNwQyxBQUFNO0FBQUMsTUFBTSxBQUFnQiw4Q0FBRyxBQUFDLEFBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY29uc3QgTUFSS1VQX01BUktFUl9UWVBFID0gMDtcbmV4cG9ydCBjb25zdCBBVE9NX01BUktFUl9UWVBFID0gMTsiXX0= | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFya2VyLXR5cGVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vbGliL3V0aWxzL21hcmtlci10eXBlcy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBTyxNQUFNLEFBQWtCLGtEQUFHLEFBQUMsQUFBQyxBQUNwQyxBQUFNO0FBQUMsTUFBTSxBQUFnQiw4Q0FBRyxBQUFDLEFBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY29uc3QgTUFSS1VQX01BUktFUl9UWVBFID0gMDtcbmV4cG9ydCBjb25zdCBBVE9NX01BUktFUl9UWVBFID0gMTsiXX0= |
@@ -9,2 +9,2 @@ define('mobiledoc-dom-renderer/utils/render-type', ['exports'], function (exports) { | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVuZGVyLXR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9saWIvdXRpbHMvcmVuZGVyLXR5cGUuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O29CQUFlLEFBQUssQUFBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBkZWZhdWx0ICdkb20nO1xuIl19 | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVuZGVyLXR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9saWIvdXRpbHMvcmVuZGVyLXR5cGUuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O29CQUFlLEFBQUssQUFBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBkZWZhdWx0ICdkb20nO1xuIl19 |
@@ -53,2 +53,2 @@ define('mobiledoc-dom-renderer/utils/sanitization-utils', ['module', 'exports', 'mobiledoc-dom-renderer/utils/array-utils', 'mobiledoc-dom-renderer/utils/dom'], function (module, exports, _arrayUtils, _dom) { | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2FuaXRpemF0aW9uLXV0aWxzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vbGliL3V0aWxzL3Nhbml0aXphdGlvbi11dGlscy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUFBLEFBQW9CLEFBRXBCLEFBQU8sQUFBRSxBQUFRLEFBQUUsQUFBTSxBQUFlLEFBQUMsQUFDekMsQUFBTyxBQUNMLEFBQU0sQUFDTixBQUFNLEFBQ1AsQUFBTSxBQUFPLEFBQUM7QUFFZixRQUFNLEFBQVksZ0JBQ2hCLEFBQWEsZUFDYixBQUFXLFlBRlEsQUFFUCxBQUFxQixBQUNsQyxBQUFDOztBQUVGLHlCQUFxQixBQUFHLEtBQ3RCLEFBQUUsQUFBQztBQUFDLEFBQU0sQUFBQyx5QkFBQyxBQUFDLEFBQ1gsQUFBaUM7QUFDakM7Z0JBQUksQUFBQyxJQUFHL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aW5jbHVkZXMoYmFkUHJvdG9jb2xzLCBwcm90b2NvbCkpIHtcbiAgICByZXR1cm4gYHVuc2FmZToke3VybH1gO1xuICB9XG4gIHJldHVybiB1cmw7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBzYW5pdGl6ZUF0dHJpYnV0ZVZhbHVlKGF0dHJpYnV0ZU5hbWUsIGF0dHJpYnV0ZVZhbHVlLCB0YWdOYW1lKSB7XG4gIGlmICh0YWdOYW1lID09PSAnYScgJiYgYXR0cmlidXRlTmFtZSA9PT0gJ2hyZWYnKSB7XG4gICAgcmV0dXJuIHNhbml0aXplSHJlZihhdHRyaWJ1dGVWYWx1ZSk7XG4gIH1cbiAgcmV0dXJuIGF0dHJpYnV0ZVZhbHVlO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gcmVkdWNlQW5kU2FuaXRpemVBdHRyaWJ1dGVzKGF0dHJpYnV0ZXMsIHRhZ05hbWUpIHtcbiAgbGV0IGF0dHJzT2JqID0ge307XG4gIGZvciAobGV0IGk9MCxsPWF0dHJpYnV0ZXMubGVuZ3RoOyBpPGw7IGk9aSsyKSB7XG4gICAgbGV0IHByb3BOYW1lID0gYXR0cmlidXRlc1tpXSxcbiAgICAgICAgcHJvcFZhbHVlID0gYXR0cmlidXRlc1tpKzFdO1xuICAgIGF0dHJzT2JqW3Byb3BOYW1lXSA9IHNhbml0aXplQXR0cmlidXRlVmFsdWUocHJvcE5hbWUsIHByb3BWYWx1ZSwgdGFnTmFtZSk7XG4gIH1cbiAgcmV0dXJuIGF0dHJzT2JqO1xufVxuXG4iXX0= |
@@ -12,2 +12,2 @@ define("mobiledoc-dom-renderer/utils/section-types", ["exports"], function (exports) { | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VjdGlvbi10eXBlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL2xpYi91dGlscy9zZWN0aW9uLXR5cGVzLmpzIl0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3QgTElTVF9TRUNUSU9OX1RZUEUgPSAzO1xuZXhwb3J0IGNvbnN0IENBUkRfU0VDVElPTl9UWVBFID0gMTA7XG4iXX0= |
@@ -38,2 +38,2 @@ define('mobiledoc-dom-renderer/utils/tag-names', ['exports', 'mobiledoc-dom-renderer/utils/section-types', 'mobiledoc-dom-renderer/utils/dom'], function (exports, _sectionTypes, _dom) { | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFnLW5hbWVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vbGliL3V0aWxzL3RhZy1uYW1lcy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBTUEsUUFBTSxBQUF3QiwyQkFBRyxDQUMvQixBQUFHLEtBQUUsQUFBSSxNQUFFLEFBQUksTUFBRSxBQUFJLE1BQUUsQUFBSSxNQUFFLEFBQUksTUFBRSxBQUFJLE1BQUUsQUFBWSxjQUFFLEFBQVksY0FBRSxBQUFPLEFBQzdFLFNBQUMsQUFBRyxBQUFDLEFBQWdCLEFBQUMsQUFBQztBQUV4QixRQUFNLEFBQTRCLCtCQUFHLENBQ25DLEFBQUcsS0FBRSxBQUFJLE1BQUUsQUFBSSxNQUFFLEFBQUksTUFBRSxBQUFJLE1BQUUsQUFBSSxNQUFFLEFBQUksTUFBRSxBQUFZLGNBQUUsQUFBTyxBQUMvRCxTQUFDLEFBQUcsQUFBQyxBQUFnQixBQUFDLEFBQUM7QUFFeEIsUUFBTSxBQUFzQix5QkFBRyxDQUM3QixBQUFJLE1BQUUsQUFBSSxBQUNYLE1BQUMsQUFBRyxBQUFDLEFBQWdCLEFBQUMsQUFBQztBQUV4QixRQUFNLEFBQVksZUFBRyxDQUNuQixBQUFHLEtBQUUsQUFBRyxLQUFFLEFBQVEsVUFBRSxBQUFJLE1BQUUsQUFBRyxLQUFFLEFBQUcsS0FBRSxBQUFLLE9BQUUs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2 @@ 'use strict'; | ||
exports.default = _rendererFactory2.default; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJsaWIvaW5kZXguanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFBQSxBQUFPLEFBQWUsQUFBTSxBQUFvQixBQUFDOzs7O0FBQ2pELEFBQU8sQUFBVyxBQUFNLEFBQXFCLEFBQUMsQUFFOUMsQUFBTzs7Ozs7O1FBQUUsQUFBVyxBQUFFLEFBQUMsQUFFdkIsQUFBTTt3QkFBeUIsQUFBTTtBQUNuQyxBQUFNLFdBQUMsQUFBb0IsQUFBRyxBQUFlLEFBQUMsQUFDaEQ7QUFBQyxBQUVELEFBQWUsQUFBZSxBQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlbmRlcmVyRmFjdG9yeSBmcm9tICcuL3JlbmRlcmVyLWZhY3RvcnknO1xuaW1wb3J0IFJFTkRFUl9UWVBFIGZyb20gJy4vdXRpbHMvcmVuZGVyLXR5cGUnO1xuXG5leHBvcnQgeyBSRU5ERVJfVFlQRSB9O1xuXG5leHBvcnQgZnVuY3Rpb24gcmVnaXN0ZXJHbG9iYWwod2luZG93KSB7XG4gIHdpbmRvdy5Nb2JpbGVkb2NET01SZW5kZXJlciA9IFJlbmRlcmVyRmFjdG9yeTtcbn1cblxuZXhwb3J0IGRlZmF1bHQgUmVuZGVyZXJGYWN0b3J5O1xuIl19 | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJsaWIvaW5kZXguanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFBQSxBQUFPLEFBQWUsQUFBTSxBQUFvQixBQUFDOzs7O0FBQ2p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mRzLFxuICAgICAgIGF0b21zLFxuICAgICAgIGNhcmRPcHRpb25zLFxuICAgICAgIHVua25vd25DYXJkSGFuZGxlcixcbiAgICAgICB1bmtub3duQXRvbUhhbmRsZXIsXG4gICAgICAgbWFya3VwRWxlbWVudFJlbmRlcmVyLFxuICAgICAgIHNlY3Rpb25FbGVtZW50UmVuZGVyZXIsXG4gICAgICAgZG9tXG4gICAgIH07XG4gICB9XG5cbiAgIHJlbmRlcihtb2JpbGVkb2MpIHtcbiAgICAgbGV0IHsgdmVyc2lvbiB9ID0gbW9iaWxlZG9jO1xuICAgICBzd2l0Y2ggKHZlcnNpb24pIHtcbiAgICAgICBjYXNlIE1PQklMRURPQ19WRVJTSU9OXzBfMjpcbiAgICAgICBjYXNlIHVuZGVmaW5lZDpcbiAgICAgICBjYXNlIG51bGw6XG4gICAgICAgICByZXR1cm4gbmV3IFJlbmRlcmVyXzBfMihtb2JpbGVkb2MsIHRoaXMub3B0aW9ucykucmVuZGVyKCk7XG4gICAgICAgY2FzZSBNT0JJTEVET0NfVkVSU0lPTl8wXzNfMDpcbiAgICAgICBjYXNlIE1PQklMRURPQ19WRVJTSU9OXzBfM18xOlxuICAgICAgICAgcmV0dXJuIG5ldyBSZW5kZXJlcl8wXzMobW9iaWxlZG9jLCB0aGlzLm9wdGlvbnMpLnJlbmRlcigpO1xuICAgICAgIGRlZmF1bHQ6XG4gICAgICAgICB0aHJvdyBuZXcgRXJyb3IoYFVuZXhwZWN0ZWQgTW9iaWxlZG9jIHZlcnNpb24gXCIke3ZlcnNpb259XCJgKTtcbiAgICAgfVxuICAgfVxuIH1cbiJdfQ== |
@@ -250,2 +250,2 @@ 'use strict'; | ||
exports.default = Renderer; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMC0yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vbGliL3JlbmRlcmVycy8wLTIuanMiXSwibmFtZXMiOltdLCJtYXBw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oaXMuZG9tLCBhdHRyT2JqKTtcbiAgICAgICAgICAgIHB1c2hFbGVtZW50KG9wZW5lZEVsZW1lbnQpO1xuICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBsZXQgb3BlbmVkRWxlbWVudCA9IGNyZWF0ZUVsZW1lbnRGcm9tTWFya2VyVHlwZSh0aGlzLmRvbSwgbWFya2VyVHlwZSk7XG4gICAgICAgICAgICBwdXNoRWxlbWVudChvcGVuZWRFbGVtZW50KTtcbiAgICAgICAgICB9XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgY2xvc2VDb3VudC0tO1xuICAgICAgICB9XG4gICAgICB9XG5cbiAgICAgIHN3aXRjaCAodHlwZSkge1xuICAgICAgICBjYXNlIE1BUktVUF9NQVJLRVJfVFlQRTpcbiAgICAgICAgICBjdXJyZW50RWxlbWVudC5hcHBlbmRDaGlsZChjcmVhdGVUZXh0Tm9kZSh0aGlzLmRvbSwgdmFsdWUpKTtcbiAgICAgICAgICBicmVhaztcbiAgICAgICAgY2FzZSBBVE9NX01BUktFUl9UWVBFOlxuICAgICAgICAgIGN1cnJlbnRFbGVtZW50LmFwcGVuZENoaWxkKHRoaXMuX3JlbmRlckF0b20odmFsdWUpKTtcbiAgICAgICAgICBicmVhaztcbiAgICAgICAgZGVmYXVsdDpcbiAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoYFVua25vd24gbWFya3VwIHR5cGUgKCR7dHlwZX0pYCk7XG4gICAgICB9XG5cbiAgICAgIGZvciAobGV0IGo9MCwgbT1jbG9zZUNvdW50OyBqPG07IGorKykge1xuICAgICAgICBlbGVtZW50cy5wb3AoKTtcbiAgICAgICAgY3VycmVudEVsZW1lbnQgPSBlbGVtZW50c1tlbGVtZW50cy5sZW5ndGggLSAxXTtcbiAgICAgIH1cbiAgICB9XG4gIH1cblxuICByZW5kZXJMaXN0SXRlbShtYXJrZXJzKSB7XG4gICAgY29uc3QgZWxlbWVudCA9IHRoaXMuZG9tLmNyZW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A9IHJlZHVjZUFuZFNhbml0aXplQXR0cmlidXRlcyhhdHRycywgbG93ZXJDYXNlVGFnTmFtZSk7XG4gICAgICAgICAgICBsZXQgb3BlbmVkRWxlbWVudCA9IHRoaXMubWFya3VwRWxlbWVudFJlbmRlcmVyW2xvd2VyQ2FzZVRhZ05hbWVdKHRhZ05hbWUsIHRoaXMuZG9tLCBhdHRyT2JqKTtcbiAgICAgICAgICAgIHB1c2hFbGVtZW50KG9wZW5lZEVsZW1lbnQpO1xuICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBsZXQgb3BlbmVkRWxlbWVudCA9IGNyZWF0ZUVsZW1lbnRGcm9tTWFya2VyVHlwZSh0aGlzLmRvbSwgbWFya2VyVHlwZSk7XG4gICAgICAgICAgICBwdXNoRWxlbWVudChvcGVuZWRFbGVtZW50KTtcbiAgICAgICAgICB9XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgY2xvc2VDb3VudC0tO1xuICAgICAgICB9XG4gICAgICB9XG5cbiAgICAgIHN3aXRjaCAodHlwZSkge1xuICAgICAgICBjYXNlIE1BUktVUF9NQVJLRVJfVFlQRTpcbiAgICAgICAgICBjdXJyZW50RWxlbWVudC5hcHBlbmRDaGlsZChjcmVhdGVUZXh0Tm9kZSh0aGlzLmRvbSwgdmFsdWUpKTtcbiAgICAgICAgICBicmVhaztcbiAgICAgICAgY2FzZSBBVE9NX01BUktFUl9UWVBFOlxuICAgICAgICAgIGN1cnJlbnRFbGVtZW50LmFwcGVuZENoaWxkKHRoaXMuX3JlbmRlckF0b20odmFsdWUpKTtcbiAgICAgICAgICBicmVhaztcbiAgICAgICAgZGVmYXVsdDpcbiAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoYFVua25vd24gbWFya3VwIHR5cGUgKCR7dHlwZX0pYCk7XG4gICAgICB9XG5cbiAgICAgIGZvciAobGV0IGo9MCwgbT1jbG9zZUNvdW50OyBqPG07IGorKykge1xuICAgICAgICBlbGVtZW50cy5wb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BQyxBQUFFLEtBQUUsQUFBQztBQUNsQyxZQUFJLEFBQUssUUFBRyxBQUFLLE1BQUMsQUFBQyxBQUFDLEFBQUM7QUFDckIsQUFBRSxBQUFDLFlBQUMsQUFBSyxVQUFLLEFBQVcsQUFBQyxhQUFDLEFBQUM7QUFDMUIsQUFBTSxtQkFBQyxBQUFJLEFBQUMsQUFDZDtBQUFDLEFBQ0g7QUFBQztBQUNELEFBQU0sV0FBQyxBQUFLLEFBQUMsQUFDZjtBQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGZ1bmN0aW9uIGluY2x1ZGVzKGFycmF5LCBkZXRlY3RWYWx1ZSkge1xuICBmb3IgKGxldCBpPTA7aSA8IGFycmF5Lmxlbmd0aDtpKyspIHtcbiAgICBsZXQgdmFsdWUgPSBhcnJheVtpXTtcbiAgICBpZiAodmFsdWUgPT09IGRldGVjdFZhbHVlKSB7XG4gICAgICByZXR1cm4gdHJ1ZTtcbiAgICB9XG4gIH1cbiAgcmV0dXJuIGZhbHNlO1xufVxuIl19 |
@@ -19,4 +19,4 @@ 'use strict'; | ||
} | ||
const isNode = exports.isNode = !window && typeof module === 'object' && typeof module.require === 'function'; | ||
const isNode = exports.isNode = typeof window === 'undefined' && typeof module === 'object' && typeof module.require === 'function'; | ||
const hasDOM = exports.hasDOM = typeof document === 'object'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9tLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vbGliL3V0aWxzL2RvbS5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQUEsQUFBb0I7QUFFcEIsdUJBQXVCLEFBQUk7QUFDekIsUUFBSSxBQUFJLE9BQUcsQUFBUSxBQUFDO0FBQ3BCLEFBQU0sV0FBQyxBQUFJLEtBQUMsQUFBTyxRQUFDLEFBQUssT0FBRSxBQUFHLE1BQUcsQUFBSSxBQUFD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EUgPSAxOyJdfQ== | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFya2VyLXR5cGVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vbGliL3V0aWxzL21hcmtlci10eXBlcy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFPLE1BQU0sQUFBa0Isa0RBQUcsQUFBQyxBQUFDLEFBQ3BDLEFBQU07QUFBQyxNQUFNLEFBQWdCLDhDQUFHLEFBQUMsQUFBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjb25zdCBNQVJLVVBfTUFSS0VSX1RZUEUgPSAwO1xuZXhwb3J0IGNvbnN0IEFUT01fTUFSS0VSX1RZUEUgPSAxOyJdfQ== |
@@ -7,2 +7,2 @@ 'use strict'; | ||
exports.default = 'dom'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVuZGVyLXR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9saWIvdXRpbHMvcmVuZGVyLXR5cGUuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7a0JBQWUsQUFBSyxBQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGRlZmF1bHQgJ2RvbSc7XG4iXX0= | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVuZGVyLXR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9saWIvdXRpbHMvcmVuZGVyLXR5cGUuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7a0JBQWUsQUFBSyxBQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGRlZmF1bHQgJ2RvbSc7XG4iXX0= |
@@ -56,2 +56,2 @@ 'use strict'; |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bWUpIHtcbiAgbGV0IGF0dHJzT2JqID0ge307XG4gIGZvciAobGV0IGk9MCxsPWF0dHJpYnV0ZXMubGVuZ3RoOyBpPGw7IGk9aSsyKSB7XG4gICAgbGV0IHByb3BOYW1lID0gYXR0cmlidXRlc1tpXSxcbiAgICAgICAgcHJvcFZhbHVlID0gYXR0cmlidXRlc1tpKzFdO1xuICAgIGF0dHJzT2JqW3Byb3BOYW1lXSA9IHNhbml0aXplQXR0cmlidXRlVmFsdWUocHJvcE5hbWUsIHByb3BWYWx1ZSwgdGFnTmFtZSk7XG4gIH1cbiAgcmV0dXJuIGF0dHJzT2JqO1xufVxuXG4iXX0= |
@@ -10,2 +10,2 @@ "use strict"; | ||
const CARD_SECTION_TYPE = exports.CARD_SECTION_TYPE = 10; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VjdGlvbi10eXBlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL2xpYi91dGlscy9zZWN0aW9uLXR5cGVzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQU8sTUFBTSxBQUFtQixvREFBRyxBQUFDLEFBQUMsQUFDckMsQUFBTTtBQUFDLE1BQU0sQUFBa0Isa0RBQUcsQUFBQyxBQUFDLEFBQ3BDLEFBQU07QUFBQyxNQUFNLEFBQWlCLGdEQUFHLEFBQUMsQUFBQyxBQUNuQyxBQUFNO0FBQUMsTUFBTSxBQUFpQixnREFBRyxBQUFFLEFBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY29uc3QgTUFSS1VQX1NFQ1RJT05fVFlQRSA9IDE7XG5leHBvcnQgY29uc3QgSU1BR0VfU0VDVElPTl9UWVBFID0gMjtcbmV4cG9ydCBjb25zdCBMSVNUX1NFQ1RJT05fVFlQRSA9IDM7XG5leHBvcnQgY29uc3QgQ0FSRF9TRUNUSU9OX1RZUEUgPSAxMDtcbiJdfQ== | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VjdGlvbi10eXBlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL2xpYi91dGlscy9zZWN0aW9uLXR5cGVzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQU8sTUFBTSxBQUFtQixvREFBRyxBQUFDLEFBQUMsQUFDckMsQUFBTTtBQUFDLE1BQU0sQUFBa0Isa0RBQUcsQUFBQyxBQUFDLEFBQ3BDLEFBQU07QUFBQyxNQUFNLEFBQWlCLGdEQUFHLEFBQUMsQUFBQyxBQUNuQyxBQUFNO0FBQUMsTUFBTSxBQUFpQixnREFBRyxBQUFFLEFBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY29uc3QgTUFSS1VQX1NFQ1RJT05fVFlQRSA9IDE7XG5leHBvcnQgY29uc3QgSU1BR0VfU0VDVElPTl9UWVBFID0gMjtcbmV4cG9ydCBjb25zdCBMSVNUX1NFQ1RJT05fVFlQRSA9IDM7XG5leHBvcnQgY29uc3QgQ0FSRF9TRUNUSU9OX1RZUEUgPSAxMDtcbiJdfQ== |
@@ -40,2 +40,2 @@ 'use strict'; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFnLW5hbWVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vbGliL3V0aWxzL3RhZy1uYW1lcy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBQSxBQUFPLEFBQ0wsQUFBbUIsQUFDbkIsQUFBaUIsQUFDbEIsQUFBTSxBQUFpQixBQUFDOztBQUN6QixBQUFPLEFBQUUsQUFBZ0IsQUFBRSxBQUFNLEFBQU8sQUFBQzs7QUFFekMsTUFBTSxBQUF3QiwyQkFBRyxDQUMvQixBQUFHLE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QU0sQUFBc0IsQUFBQyxBQUUvQzs7Ozs7OztVQUNRLEFBQU8sQUFDYixBQUFJO0FBQUUsQUFBVyxBQUNqQixBQUFNLEFBQUM7O1lBQUMsQUFBTztZQUFRLEFBQUcsQUFBQyxBQUFDLFdBQVgsQUFBRyxBQUFFLElBQ3BCOztZQUFJLEFBQUcsTUFBRyxBQUFHLElBQUMsQUFBYSxjQUFDLEFBQUssQUFBQyxBQUFDLEFBQ25DLEFBQUc7WUFBQyxBQUFHLE1BQUcsQUFBTyxRQUFDLEFBQUcsQUFBQyxBQUN0QixBQUFNO2VBQUMsQUFBRyxBQUFDLEFBQ2IsQUFBQyxBQUNGLEFBQUM7QUFSYTtBQUNiLEFBQUkiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUkVOREVSX1RZUEUgZnJvbSAnLi4vdXRpbHMvcmVuZGVyLXR5cGUnO1xuXG5leHBvcnQgZGVmYXVsdCB7XG4gIG5hbWU6ICdpbWFnZScsXG4gIHR5cGU6IFJFTkRFUl9UWVBFLFxuICByZW5kZXIoe3BheWxvYWQsIGVudjoge2RvbX19KSB7XG4gICAgbGV0IGltZyA9IGRvbS5jcmVhdGVFbGVtZW50KCdpbWcnKTtcbiAgICBpbWcuc3JjID0gcGF5bG9hZC5zcmM7XG4gICAgcmV0dXJuIGltZztcbiAgfVxufTtcbiJdfQ== |
@@ -24,2 +24,2 @@ 'use strict'; | ||
exports.default = _rendererFactory2.default; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJsaWIvaW5kZXguanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFBQSxBQUFPLEFBQWUsQUFBTSxBQUFvQixBQUFDOzs7O0FBQ2pELEFBQU8sQUFBVyxBQUFNLEFBQXFCLEFBQUMsQUFFOUMsQUFBTzs7Ozs7O1FBQUUsQUFB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l9UWVBFIGZyb20gJy4vdXRpbHMvcmVuZGVyLXR5cGUnO1xuXG5leHBvcnQgeyBSRU5ERVJfVFlQRSB9O1xuXG5leHBvcnQgZnVuY3Rpb24gcmVnaXN0ZXJHbG9iYWwod2luZG93KSB7XG4gIHdpbmRvdy5Nb2JpbGVkb2NET01SZW5kZXJlciA9IFJlbmRlcmVyRmFjdG9yeTtcbn1cblxuZXhwb3J0IGRlZmF1bHQgUmVuZGVyZXJGYWN0b3J5O1xuIl19 |
@@ -7,4 +7,6 @@ 'use strict'; | ||
var _babelHelpers = require('babel-helpers'); | ||
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck'); | ||
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); | ||
var _ = require('./renderers/0-2'); | ||
@@ -72,3 +74,3 @@ | ||
(0, _babelHelpers.classCallCheck)(this, RendererFactory); | ||
(0, _classCallCheck3.default)(this, RendererFactory); | ||
@@ -118,2 +120,2 @@ cards = cards || []; | ||
exports.default = RendererFactory; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVuZGVyZXItZmFjdG9yeS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImxpYi9yZW5kZXJlci1mYWN0b3J5LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBQUMsQUFBTyxBQUFZLEFBQUUsQUFDbkIsQUFBaUIsQUFBSSxBQUFxQixBQUMzQyxBQUFNLEFBQWlCLEFBQUM7Ozs7QUFDekIsQUFBTyxBQUFZLEFBQUUsQUFDbkIsQUFBdUIsQUFDdkIsQUFBdUIsQUFDeEIsQUFBTSxBQUFpQixBQUFDOzs7O0FBQ3pCLEFBQU8sQUFBVyxBQUFNLEFBQXFCLEFBQUM7Ozs7OztBQUUvQyxBQU1HOzs7Ozs7O0FBRUYsdUJBQXVCLEFBQUssT0FDMUIsQUFBRSxBQUFDO1FBQUMsQ0FBQyxBQU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gPSB7XG4gICAgICAgY2FyZHMsXG4gICAgICAgYXRvbXMsXG4gICAgICAgY2FyZE9wdGlvbnMsXG4gICAgICAgdW5rbm93bkNhcmRIYW5kbGVyLFxuICAgICAgIHVua25vd25BdG9tSGFuZGxlcixcbiAgICAgICBtYXJrdXBFbGVtZW50UmVuZGVyZXIsXG4gICAgICAgc2VjdGlvbkVsZW1lbnRSZW5kZXJlcixcbiAgICAgICBkb21cbiAgICAgfTtcbiAgIH1cblxuICAgcmVuZGVyKG1vYmlsZWRvYykge1xuICAgICBsZXQgeyB2ZXJzaW9uIH0gPSBtb2JpbGVkb2M7XG4gICAgIHN3aXRjaCAodmVyc2lvbikge1xuICAgICAgIGNhc2UgTU9CSUxFRE9DX1ZFUlNJT05fMF8yOlxuICAgICAgIGNhc2UgdW5kZWZpbmVkOlxuICAgICAgIGNhc2UgbnVsbDpcbiAgICAgICAgIHJldHVybiBuZXcgUmVuZGVyZXJfMF8yKG1vYmlsZWRvYywgdGhpcy5vcHRpb25zKS5yZW5kZXIoKTtcbiAgICAgICBjYXNlIE1PQklMRURPQ19WRVJTSU9OXzBfM18wOlxuICAgICAgIGNhc2UgTU9CSUxFRE9DX1ZFUlNJT05fMF8zXzE6XG4gICAgICAgICByZXR1cm4gbmV3IFJlbmRlcmVyXzBfMyhtb2JpbGVkb2MsIHRoaXMub3B0aW9ucykucmVuZGVyKCk7XG4gICAgICAgZGVmYXVsdDpcbiAgICAgICAgIHRocm93IG5ldyBFcnJvcihgVW5leHBlY3RlZCBNb2JpbGVkb2MgdmVyc2lvbiBcIiR7dmVyc2lvbn1cImApO1xuICAgICB9XG4gICB9XG4gfVxuIl19 |
@@ -8,4 +8,10 @@ 'use strict'; | ||
var _babelHelpers = require('babel-helpers'); | ||
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck'); | ||
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); | ||
var _createClass2 = require('babel-runtime/helpers/createClass'); | ||
var _createClass3 = _interopRequireDefault(_createClass2); | ||
var _dom = require('../utils/dom'); | ||
@@ -53,3 +59,3 @@ | ||
function Renderer(mobiledoc, options) { | ||
(0, _babelHelpers.classCallCheck)(this, Renderer); | ||
(0, _classCallCheck3.default)(this, Renderer); | ||
@@ -315,3 +321,3 @@ var cards = options.cards, | ||
(0, _babelHelpers.createClass)(Renderer, [{ | ||
(0, _createClass3.default)(Renderer, [{ | ||
key: '_defaultUnknownCardHandler', | ||
@@ -331,2 +337,2 @@ get: function () { | ||
exports.default = Renderer; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMC0yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vbGliL3JlbmRlcmVycy8wLTIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O0FBQUEsQUFBTyxBQUFFLEFBQWMsQUFBRSxBQUFNLEFBQWMsQUFBQzs7QUFDOUMsQUFBTyxBQUFTLEFBQU0sQUFBZ0IsQUFBQzs7OztBQUN2QyxBQUFPLEFBQVcsQUFBTSxBQUFzQixBQUFDOzs7O0FBQy9DLEFBQU8sQUFDTCxBQUFtQixBQUNuQixBQUFrQixBQUNsQixBQUFpQixBQUNqQixBQUFpQixBQUNsQixBQUFNLEFBQXdCLEFBQUM7O0FBQ2hDLEFBQU8sQUFDTCxBQUFxQixBQUNyQixBQUEwQixBQUMxQixBQUFpQixBQUNsQixBQUFNLEFBQW9CLEFBQUM7O0FBQzVCLEFBQU8sQUFDTCxBQUEyQixBQUMzQixBQUFzQixBQUN2QixBQUFNLEFBQTZCLEFBQUMsQUFFckMsQUFBTTs7OztBQUFDLElBQU0sQUFBaUIsZ0RBQUcsQUFBTyxBQUFDO0FBRXpDLElBQU0sQUFBc0IseUJBQUcsQUFBSyxBQUFDO0FBRXJDLHFDQUFxQyxBQUFHLEFBQUU7bUZBQXNCLENBQUMsQUFBRSxJQUFFLEFBQUUsQUFBQztRQUE3QixBQUFPO1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babel-helpers'); | ||
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck'); | ||
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); | ||
var _createClass2 = require('babel-runtime/helpers/createClass'); | ||
var _createClass3 = _interopRequireDefault(_createClass2); | ||
var _dom = require('../utils/dom'); | ||
@@ -57,3 +63,3 @@ | ||
function Renderer(mobiledoc, state) { | ||
(0, _babelHelpers.classCallCheck)(this, Renderer); | ||
(0, _classCallCheck3.default)(this, Renderer); | ||
@@ -416,3 +422,3 @@ var cards = state.cards, | ||
(0, _babelHelpers.createClass)(Renderer, [{ | ||
(0, _createClass3.default)(Renderer, [{ | ||
key: '_defaultUnknownCardHandler', | ||
@@ -441,2 +447,2 @@ get: function () { | ||
exports.default = Renderer; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMC0zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vbGliL3JlbmRlcmVycy8wLTMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O0FBQUEsQUFBTyxBQUFFLEFBQWMsQUFBRSxBQUFNLEFBQWMsQUFBQzs7QUFDOUMsQUFBTyxBQUFTLEFBQU0sQUFBZ0IsQUFBQzs7OztBQUN2QyxBQUFPLEFBQVcsQUFBTSxBQUFzQixBQUFDOzs7O0FBQy9DLEFBQU8sQUFDTCxBQUFtQixBQUNuQixBQUFrQixBQUNsQixBQUFpQixBQUNqQixBQUFpQixBQUNsQixBQUFNLEFBQXdCLEFBQUM7O0FBQ2hDLEFBQU8sQUFDTCxBQUFxQixBQUNyQixBQUEwQixBQUMxQixBQUFpQixBQUNsQixBQUFNLEFBQW9CLEFBQUM7O0FBQzVCLEFBQU8sQUFDTCxBQUEyQixBQUMzQixBQUFzQixBQUN2QixBQUFNLEFBQTZCLEFBQUM7O0FBRXJDLEFBQU8sQUFDTCxBQUFrQixBQUNsQixBQUFnQixBQUNqQixBQUF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oaXMubWFya3VwRWxlbWVudFJlbmRlcmVyW2xvd2VyQ2FzZVRhZ05hbWVdKHRhZ05hbWUsIHRoaXMuZG9tLCBhdHRyT2JqKTtcbiAgICAgICAgICAgIHB1c2hFbGVtZW50KG9wZW5lZEVsZW1lbnQpO1xuICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBsZXQgb3BlbmVkRWxlbWVudCA9IGNyZWF0ZUVsZW1lbnRGcm9tTWFya2VyVHlwZSh0aGlzLmRvbSwgbWFya2VyVHlwZSk7XG4gICAgICAgICAgICBwdXNoRWxlbWVudChvcGVuZWRFbGVtZW50KTtcbiAgICAgICAgICB9XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgY2xvc2VDb3VudC0tO1xuICAgICAgICB9XG4gICAgICB9XG5cbiAgICAgIHN3aXRjaCAodHlwZSkge1xuICAgICAgICBjYXNlIE1BUktVUF9NQVJLRVJfVFlQRTpcbiAgICAgICAgICBjdXJyZW50RWxlbWVudC5hcHBlbmRDaGlsZChjcmVhdGVUZXh0Tm9kZSh0aGlzLmRvbSwgdmFsdWUpKTtcbiAgICAgICAgICBicmVhaztcbiAgICAgICAgY2FzZSBBVE9NX01BUktFUl9UWVBFOlxuICAgICAgICAgIGN1cnJlbnRFbGVtZW50LmFwcGVuZENoaWxkKHRoaXMuX3JlbmRlckF0b20odmFsdWUpKTtcbiAgICAgICAgICBicmVhaztcbiAgICAgICAgZGVmYXVsdDpcbiAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoYFVua25vd24gbWFya3VwIHR5cGUgKCR7dHlwZX0pYCk7XG4gICAgICB9XG5cbiAgICAgIGZvciAobGV0IGo9MCwgbT1jbG9zZUNvdW50OyBqPG07IGorKykge1xuICAgICAgICBlbGVtZW50cy5wb3AoKTtcbiAgICAgICAgY3VycmVudEVsZW1lbnQgPSBlbGVtZW50c1tlbGVtZW50cy5sZW5ndGggLSAxXTtcbiAgICAgIH1cbiAgICB9XG4gIH1cblxuICByZW5k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lbWVudChlbGVtZW50LCBtYXJrZXJzKTtcbiAgICByZXR1cm4gZWxlbWVudDtcbiAgfVxufVxuXG4iXX0= |
@@ -16,2 +16,2 @@ "use strict"; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXJyYXktdXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9saWIvdXRpbHMvYXJyYXktdXRpbHMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O2tCQUF5QixBQUFLLE9BQUUsQUFBVyxhQUN6QyxBQUFHLEFBQUM7U0FBQyxJQUFJLEFBQUMsSUFBQyxBQUFDLEdBQUMsQUFBQyxJQUFHLEFBQUssTUFBQyxBQUFNLFFBQUMsQUFBQyxBQUFFLEtBQUUsQUFBQyxBQUNsQztZQUFJLEFBQUssUUFBRyxBQUFLLE1BQUMsQUFBQyxBQUFDLEFBQUMsQUFDckIsQUFBRSxBQUFDO1lBQUMsQUFBSyxVQUFLLEFBQVcsQUFBQyxhQUFDLEFBQUMsQUFDMUIsQUFBTTttQkFBQyxBQUFJLEFBQUMsQUFDZCxBQUFDLEFBQ0g7QUFBQztBQUNELEFBQU07V0FBQyxBQUFLLEFBQUMsQUFDZixBQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGZ1bmN0aW9uIGluY2x1ZGVzKGFycmF5LCBkZXRlY3RWYWx1ZSkge1xuICBmb3IgKGxldCBpPTA7aSA8IGFycmF5Lmxlbmd0aDtpKyspIHtcbiAgICBsZXQgdmFsdWUgPSBhcnJheVtpXTtcbiAgICBpZiAodmFsdWUgPT09IGRldGVjdFZhbHVlKSB7XG4gICAgICByZXR1cm4gdHJ1ZTtcbiAgICB9XG4gIH1cbiAgcmV0dXJuIGZhbHNlO1xufVxuIl19 | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXJyYXktdXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9saWIvdXRpbHMvYXJyYXktdXRpbHMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O2tCQUF5QixBQUFLLE9BQUUsQUFBVyxhQUN6QyxBQUFHLEFBQUM7U0FBQyxJQUFJLEFBQUMsSUFBQyxBQUFDLEdBQUMsQUFBQyxJQUFHLEFBQUssTUFBQyxBQUFNLFFBQUMsQUFBQyxBQUFFLEtBQUUsQUFBQyxBQUNsQztZQUFJLEFBQUssUUFBRyxBQUFLLE1BQUMsQUFBQyxBQUFDLEFBQUMsQUFDckIsQUFBRSxBQUFDO1lBQUMsQUFBSyxVQUFLLEFBQVcsQUFBQyxhQUFDLEFBQUMsQUFDMUIsQUFBTTttQkFBQyxBQUFJLEFBQUMsQUFDZCxBQUFDLEFBQ0g7QUFBQztBQUNELEFBQU07V0FBQyxBQUFLLEFBQUMsQUFDZixBQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGZ1bmN0aW9uIGluY2x1ZGVzKGFycmF5LCBkZXRlY3RWYWx1ZSkge1xuICBmb3IgKGxldCBpPTA7aSA8IGFycmF5Lmxlbmd0aDtpKyspIHtcbiAgICBsZXQgdmFsdWUgPSBhcnJheVtpXTtcbiAgICBpZiAodmFsdWUgPT09IGRldGVjdFZhbHVlKSB7XG4gICAgICByZXR1cm4gdHJ1ZTtcbiAgICB9XG4gIH1cbiAgcmV0dXJuIGZhbHNlO1xufVxuIl19 |
@@ -19,4 +19,4 @@ 'use strict'; | ||
} | ||
var isNode = exports.isNode = !window && typeof module === 'object' && typeof module.require === 'function'; | ||
var isNode = exports.isNode = typeof window === 'undefined' && typeof module === 'object' && typeof module.require === 'function'; | ||
var hasDOM = exports.hasDOM = typeof document === 'object'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9tLmpzIiwic291cmNlUm9vdCI6IiIsInN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W10sIm1hcHBpbmdzIjoiOzs7OztBQUFPLElBQU0sQUFBa0Isa0RBQUcsQUFBQyxBQUFDLEFBQ3BDLEFBQU07QUFBQyxJQUFNLEFBQWdCLDhDQUFHLEFBQUMsQUFBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjb25zdCBNQVJLVVBfTUFSS0VSX1RZUEUgPSAwO1xuZXhwb3J0IGNvbnN0IEFUT01fTUFSS0VSX1RZUEUgPSAxOyJdfQ== | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFya2VyLXR5cGVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vbGliL3V0aWxzL21hcmtlci10eXBlcy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFPLElBQU0sQUFBa0Isa0RBQUcsQUFBQyxBQUFDLEFBQ3BDLEFBQU07QUFBQyxJQUFNLEFBQWdCLDhDQUFHLEFBQUMsQUFBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjb25zdCBNQVJLVVBfTUFSS0VSX1RZUEUgPSAwO1xuZXhwb3J0IGNvbnN0IEFUT01fTUFSS0VSX1RZUEUgPSAxOyJdfQ== |
@@ -7,2 +7,2 @@ 'use strict'; | ||
exports.default = 'dom'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVuZGVyLXR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9saWIvdXRpbHMvcmVuZGVyLXR5cGUuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7a0JBQWUsQUFBSyxBQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGRlZmF1bHQgJ2RvbSc7XG4iXX0= | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVuZ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Y2VzQ29udGVudCI6WyJleHBvcnQgY29uc3QgTUFSS1VQX1NFQ1RJT05fVFlQRSA9IDE7XG5leHBvcnQgY29uc3QgSU1BR0VfU0VDVElPTl9UWVBFID0gMjtcbmV4cG9ydCBjb25zdCBMSVNUX1NFQ1RJT05fVFlQRSA9IDM7XG5leHBvcnQgY29uc3QgQ0FSRF9TRUNUSU9OX1RZUEUgPSAxMDtcbiJdfQ== | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VjdGlvbi10eXBlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL2xpYi91dGlscy9zZWN0aW9uLXR5cGVzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQU8sSUFBTSxBQUFtQixvREFBRyxBQUFDLEFBQUMsQUFDckMsQUFBTTtBQUFDLElBQU0sQUFBa0Isa0RBQUcsQUFBQyxBQUFDLEFBQ3BDLEFBQU07QUFBQyxJQUFNLEFBQWlCLGdEQUFHLEFBQUMsQUFBQyxBQUNuQyxBQUFNO0FBQUMsSUFBTSxBQUFpQixnREFBRyxBQUFFLEFBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY29uc3QgTUFSS1VQX1NFQ1RJT05fVFlQRSA9IDE7XG5leHBvcnQgY29uc3QgSU1BR0VfU0VDVElPTl9UWVBFID0gMjtcbmV4cG9ydCBjb25zdCBMSVNUX1NFQ1RJT05fVFlQRSA9IDM7XG5leHBvcnQgY29uc3QgQ0FSRF9TRUNUSU9OX1RZUEUgPSAxMDtcbiJdfQ== |
@@ -40,2 +40,2 @@ 'use strict'; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFnLW5hbWVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vbGliL3V0aWxzL3RhZy1uYW1lcy5qcyJdLCJuY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0eXBlID0gbm9ybWFsaXplVGFnTmFtZSh0eXBlKTtcbiAgcmV0dXJuIGNvbnRhaW5zKE1BUktVUF9UWVBFUywgdHlwZSk7XG59XG4iXX0= |
@@ -12,4 +12,4 @@ /* globals module */ | ||
} | ||
export const isNode = !window && (typeof module === 'object' && typeof module.require === 'function'); | ||
export const isNode = typeof window === 'undefined' && (typeof module === 'object' && typeof module.require === 'function'); | ||
export const hasDOM = typeof document === 'object'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9tLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vbGliL3V0aWxzL2RvbS5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxvQkFBb0I7QUFFcEIsdUJBQXVCLElBQUk7SUFDekIsSUFBSSxJQUFJLEdBQUcsUUFBUSxDQUFDO0lBQ3BCLE1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLEtBQUssRUFBRSxHQUFHLEdBQUcsSUFBSSxDQUFDLENBQUM7QUFDekMsQ0FBQztBQUVELE1BQU0seUJBQXlCLEdBQUcsRUFBRSxJQUFJO0lBQ3RDLE1BQU0sQ0FBQyxHQUFHLENBQUMsY0FBYyxDQUFDLGFBQWEsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDO0FBQ2pELENBQUM7QUFFRCxNQUFNLDJCQUEyQixPQUFPO0lBQ3RDLE1BQU0sQ0FBQyxPQUFPLENBQUMsV0FBVyxFQUFFLENBQUM7QUFDL0IsQ0FBQztBQUVELE1BQU0sQ0FBQyxNQUFNLE1BQU0sR0FBRyxDQUFDLE1BQU0sSUFBSSxDQUFDLE9BQU8sTUFBTSxLQUFLLFFBQVEsSUFBSSxPQUFPLE1BQU0sQ0FBQyxPQUFPLEtBQUssVUFBVSxDQUFDLENBQUM7QUFDdEcsTUFBTSxDQUFDLE1BQU0sTUFBTSxHQUFHLE9BQU8sUUFBUSx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icpO1xuZXhwb3J0IGNvbnN0IGhhc0RPTSA9IHR5cGVvZiBkb2N1bWVudCA9PT0gJ29iamVjdCc7XG4iXX0= |
@@ -14,2 +14,2 @@ import RENDER_TYPE from '../utils/render-type'; | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW1hZ2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9saWIvY2FyZHMvaW1hZ2UuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxBQUFXLGlCQUFNLEFBQXNCLEFBQUM7QUFFL0M7QUFDRSxBQUFJLFVBQUUsQUFBTztBQUNiLEFBQUksVUFBRSxBQUFXO0FBQ2pCLEFBQU0sQUFBQztZQUFDLEFBQU87WUFBUSxBQUFHLEFBQUMsQUFBQyxXQUFYLEFBQUcsQUFBRTs7QUFDcEIsWUFBSSxBQUFHLE1BQUcsQUFBRyxJQUFDLEFBQWEsY0FBQyxBQUFLLEFBQUMsQUFBQztBQUNuQyxBQUFHLFlBQUMsQUFBRyxNQUFHLEFBQU8sUUFBQyxBQUFHLEFBQUM7QUFDdEIsQUFBTSxlQUFDLEFBQUcsQUFBQyxBQUNiO0FBQUMsQUFDRixBQUFDO0FBUmEiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUkVOREVSX1RZUEUgZnJvbSAnLi4vdXRpbHMvcmVuZGVyLXR5cGUnO1xuXG5leHBvcnQgZGVmYXVsdCB7XG4gIG5hbWU6ICdpbWFnZScsXG4gIHR5cGU6IFJFTkRFUl9UWVBFLFxuICByZW5kZXIoe3BheWxvYWQsIGVudjoge2RvbX19KSB7XG4gICAgbGV0IGltZyA9IGRvbS5jcmVhdGVFbGVtZW50KCdpbWcnKTtcbiAgICBpbWcuc3JjID0gcGF5bG9hZC5zcmM7XG4gICAgcmV0dXJuIGltZztcbiAgfVxufTtcbiJdfQ== | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW1hZ2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9saWIvY2FyZHMvaW1hZ2UuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxBQUFXLGlCQUFNLEFBQXNCLEFBQUM7QUFFL0M7QUFDRSxBQUFJLFVBQUUsQUFBTztBQUNiLEFBQUksVUFBRSxBQUFXO0FBQ2pCLEFBQU0sQUFBQztZQUFDLEFBQU87WUFBUSxBQUFHLEFBQUMsQUFBQyxXQUFYLEFBQUcsQUFBRTs7QUFDcEIsWUFBSSxBQUFHLE1BQUcsQUFBRyxJQUFDLEFBQWEsY0FBQyxBQUFLLEFBQUMsQUFBQztBQUNuQyxBQUFHLFlBQUMsQUFBRyxNQUFHLEFBQU8sUUFBQyxBQUFHLEFBQUM7QUFDdEIsQUFBTSxlQUFDLEFBQUcsQUFBQyxBQUNiO0FBQUMsQUFDRixBQUFDO0FBUmEiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUkVOREVSX1RZUEUgZnJvbSAnLi4vdXRpbHMvcmVuZGVyLXR5cGUnO1xuXG5leHBvcnQgZGVmYXVsdCB7XG4gIG5hbWU6ICdpbWFnZScsXG4gIHR5cGU6IFJFTkRFUl9UWVBFLFxuICByZW5kZXIoe3BheWxvYWQsIGVudjoge2RvbX19KSB7XG4gICAgbGV0IGltZyA9IGRvbS5jcmVhdGVFbGVtZW50KCdpbWcnKTtcbiAgICBpbWcuc3JjID0gcGF5bG9hZC5zcmM7XG4gICAgcmV0dXJuIGltZztcbiAgfVxufTtcbiJdfQ== |
@@ -7,3 +7,4 @@ import RendererFactory from './renderer-factory'; | ||
} | ||
export const MOBXXXXXXXXXXXXXXXXXX = true; | ||
export default RendererFactory; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijo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UsQUFBQyxBQUNoRDtBQUFDO0FBRUQsZUFBZSxBQUFlLEFBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVuZGVyZXJGYWN0b3J5IGZyb20gJy4vcmVuZGVyZXItZmFjdG9yeSc7XG5pbXBvcnQgUkVOREVSX1RZUEUgZnJvbSAnLi91dGlscy9yZW5kZXItdHlwZSc7XG5cbmV4cG9ydCB7IFJFTkRFUl9UWVBFIH07XG5cbmV4cG9ydCBmdW5jdGlvbiByZWdpc3Rlckdsb2JhbCh3aW5kb3cpIHtcbiAgd2luZG93Lk1vYmlsZWRvY0RPTVJlbmRlcmVyID0gUmVuZGVyZXJGYWN0b3J5O1xufVxuXG5leHBvcnQgZGVmYXVsdCBSZW5kZXJlckZhY3Rvcnk7XG4iXX0= |
@@ -1,2 +0,2 @@ | ||
import { classCallCheck as _classCallCheck } from 'babel-helpers'; | ||
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; | ||
import Renderer_0_2, { MOBILEDOC_VERSION as MOBILEDOC_VERSION_0_2 } from './renderers/0-2'; | ||
@@ -98,2 +98,2 @@ import Renderer_0_3, { MOBILEDOC_VERSION_0_3_0, MOBILEDOC_VERSION_0_3_1 } from './renderers/0-3'; | ||
export default RendererFactory; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVuZGVyZXItZmFjdG9yeS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImxpYi9yZW5kZXJlci1mYWN0b3J5LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQyxPQUFPLEFBQVksQUFBRSxnQkFDbkIsQUFBaUIscUJBQUksQUFBcUIsQUFDM0MsNkJBQU0sQUFBaUIsQUFBQztBQUN6QixPQUFPLEFBQVksQUFBRSxnQkFDbkIsQUFBdUIseUJBQ3ZCLEFBQXVCLEFBQ3hCLCtCQUFNLEFBQWlCLEFBQUM7QUFDekIsT0FBTyx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AgIH1cbiAgICAgICBkb20gPSB3aW5kb3cuZG9jdW1lbnQ7XG4gICAgIH1cblxuICAgICB0aGlzLm9wdGlvbnMgPSB7XG4gICAgICAgY2FyZHMsXG4gICAgICAgYXRvbXMsXG4gICAgICAgY2FyZE9wdGlvbnMsXG4gICAgICAgdW5rbm93bkNhcmRIYW5kbGVyLFxuICAgICAgIHVua25vd25BdG9tSGFuZGxlcixcbiAgICAgICBtYXJrdXBFbGVtZW50UmVuZGVyZXIsXG4gICAgICAgc2VjdGlvbkVsZW1lbnRSZW5kZXJlcixcbiAgICAgICBkb21cbiAgICAgfTtcbiAgIH1cblxuICAgcmVuZGVyKG1vYmlsZWRvYykge1xuICAgICBsZXQgeyB2ZXJzaW9uIH0gPSBtb2JpbGVkb2M7XG4gICAgIHN3aXRjaCAodmVyc2lvbikge1xuICAgICAgIGNhc2UgTU9CSUxFRE9DX1ZFUlNJT05fMF8yOlxuICAgICAgIGNhc2UgdW5kZWZpbmVkOlxuICAgICAgIGNhc2UgbnVsbDpcbiAgICAgICAgIHJldHVybiBuZXcgUmVuZGVyZXJfMF8yKG1vYmlsZWRvYywgdGhpcy5vcHRpb25zKS5yZW5kZXIoKTtcbiAgICAgICBjYXNlIE1PQklMRURPQ19WRVJTSU9OXzBfM18wOlxuICAgICAgIGNhc2UgTU9CSUxFRE9DX1ZFUlNJT05fMF8zXzE6XG4gICAgICAgICByZXR1cm4gbmV3IFJlbmRlcmVyXzBfMyhtb2JpbGVkb2MsIHRoaXMub3B0aW9ucykucmVuZGVyKCk7XG4gICAgICAgZGVmYXVsdDpcbiAgICAgICAgIHRocm93IG5ldyBFcnJvcihgVW5leHBlY3RlZCBNb2JpbGVkb2MgdmVyc2lvbiBcIiR7dmVyc2lvbn1cImApO1xuICAgICB9XG4gICB9XG4gfVxuIl19 |
@@ -1,3 +0,3 @@ | ||
import { classCallCheck as _classCallCheck } from 'babel-helpers'; | ||
import { createClass as _createClass } from 'babel-helpers'; | ||
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; | ||
import _createClass from 'babel-runtime/helpers/createClass'; | ||
import { createTextNode } from '../utils/dom'; | ||
@@ -309,2 +309,2 @@ import ImageCard from '../cards/image'; | ||
export default Renderer; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMC0yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vbGliL3JlbmRlcmVycy8wLTIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxBQUFPLFNBQUUsQUFBYyxBQUFFLHNCQUFNLEFBQWMsQUFBQztBQUM5QyxPQUFPLEFBQVMsZUFBTSxBQUFnQixBQUFDO0FBQ3ZDLE9BQU8sQUFBVyxpQkFBTSxBQUFzQixBQUFDO0FBQy9DLEFBQU8sU0FDTCxBQUFtQixxQkFDbkIsQUFBa0Isb0JBQ2xCLEFBQWlCLG1CQUNqQixBQUFpQixBQUNsQix5QkFBTSxBQUF3QixBQUFDO0FBQ2hDLEFBQU8sU0FDTCxBQUFxQix1QkFDckIsQUFBMEIsNEJBQzFCLEFBQWlCLEFBQ2xCLHlCQUFNLEFBQW9CLEFBQUM7QUFDNUIsQUFBTyxTQUNMLEFBQTJCLDZCQUMzQixBQUFzQixBQUN2Qiw4QkFBTSxBQUE2QixBQUFDO0FBRXJDLEFBQU0sT0FBQyxJQUFNLEFBQWlCLG9CQUFHLEFBQU8sQUFBQztBQUV6QyxJQUFNLEFBQXNCLHlCQUFHLEFBQUssQUFBQztBQUVyQyxxQ0FBcUMsQUFBRyxBQUFFO21GQUFzQixDQUFDLEFBQUUsSUFBRSxBQUFFLEFBQUM7UUFBN0IsQUFBTztRQUFFLEFBQVUsQUFBQzs7QUFDN0QsUUFBSSxBQUFPLFVBQUcsQUFBRyxJQUFDLEFBQWEsY0FBQyxBQUFPLEFBQUMsQUFBQztBQUN6QyxBQUFVLGlCQUFHLEFBQVUsY0FBSSxBQUFFLEFBQUM7QUF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IE1BUktVUF9TRUNUSU9OX1RZUEUpKSB7XG4gICAgICByZXR1cm47XG4gICAgfVxuXG4gICAgbGV0IGVsZW1lbnQ7XG4gICAgbGV0IGxvd2VyQ2FzZVRhZ05hbWUgPSB0YWdOYW1lLnRvTG93ZXJDYXNlKCk7XG4gICAgaWYgKHRoaXMuc2VjdGlvbkVsZW1lbnRSZW5kZXJlcltsb3dlckNhc2VUYWdOYW1lXSkge1xuICAgICAgZWxlbWVudCA9IHRoaXMuc2VjdGlvbkVsZW1lbnRSZW5kZXJlcltsb3dlckNhc2VUYWdOYW1lXSh0YWdOYW1lLCB0aGlzLmRvbSk7XG4gICAgfSBlbHNlIGlmIChpc01hcmt1cFNlY3Rpb25FbGVtZW50TmFtZSh0YWdOYW1lKSkge1xuICAgICAgZWxlbWVudCA9IHRoaXMuZG9tLmNyZWF0ZUVsZW1lbnQodGFnTmFtZSk7XG4gICAgfSBlbHNlIHtcbiAgICAgIGVsZW1lbnQgPSB0aGlzLmRvbS5jcmVhdGVFbGVtZW50KCdkaXYnKTtcbiAgICAgIGVsZW1lbnQuc2V0QXR0cmlidXRlKCdjbGFzcycsIHRhZ05hbWUpO1xuICAgIH1cblxuICAgIHRoaXMucmVuZGVyTWFya2Vyc09uRWxlbWVudChlbGVtZW50LCBtYXJrZXJzKTtcbiAgICByZXR1cm4gZWxlbWVudDtcbiAgfVxufVxuXG4iXX0= |
@@ -1,3 +0,3 @@ | ||
import { classCallCheck as _classCallCheck } from 'babel-helpers'; | ||
import { createClass as _createClass } from 'babel-helpers'; | ||
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; | ||
import _createClass from 'babel-runtime/helpers/createClass'; | ||
import { createTextNode } from '../utils/dom'; | ||
@@ -418,2 +418,2 @@ import ImageCard from '../cards/image'; | ||
export default Renderer; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMC0zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi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hc2VUYWdOYW1lXSkge1xuICAgICAgZWxlbWVudCA9IHRoaXMuc2VjdGlvbkVsZW1lbnRSZW5kZXJlcltsb3dlckNhc2VUYWdOYW1lXSh0YWdOYW1lLCB0aGlzLmRvbSk7XG4gICAgfSBlbHNlIGlmIChpc01hcmt1cFNlY3Rpb25FbGVtZW50TmFtZSh0YWdOYW1lKSkge1xuICAgICAgZWxlbWVudCA9IHRoaXMuZG9tLmNyZWF0ZUVsZW1lbnQodGFnTmFtZSk7XG4gICAgfSBlbHNlIHtcbiAgICAgIGVsZW1lbnQgPSB0aGlzLmRvbS5jcmVhdGVFbGVtZW50KCdkaXYnKTtcbiAgICAgIGVsZW1lbnQuc2V0QXR0cmlidXRlKCdjbGFzcycsIHRhZ05hbWUpO1xuICAgIH1cblxuICAgIHRoaXMucmVuZGVyTWFya2Vyc09uRWxlbWVudChlbGVtZW50LCBtYXJrZXJzKTtcbiAgICByZXR1cm4gZWxlbWVudDtcbiAgfVxufVxuXG4iXX0= |
@@ -10,2 +10,2 @@ export function includes(array, detectValue) { | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXJyYXktdXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9saWIvdXRpbHMvYXJyYXktdXRpbHMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsQUFBTSx5QkFBbUIsQUFBSyxPQUFFLEFBQVc7QUFDekMsQUFBRyxBQUFDLFNBQUMsSUFBSSxBQUFDLElBQUMsQUFBQyxHQUFDLEFBQUMsSUFBRyxBQUFLLE1BQUMsQUFBTSxRQUFDLEFBQUMsQUFBRSxLQUFFLEFBQUM7QUFDbEMsWUFBSSxBQUFLLFFBQUcsQUFBSyxNQUFDLEFBQUMsQUFBQyxBQUFDO0FBQ3JCLEFBQUUsQUFBQyxZQUFDLEFBQUssVUFBSyxBQUFXLEFBQUMsYUFBQyxBQUFDO0FBQzFC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bmNsdWRlcyhhcnJheSwgZGV0ZWN0VmFsdWUpIHtcbiAgZm9yIChsZXQgaT0wO2kgPCBhcnJheS5sZW5ndGg7aSsrKSB7XG4gICAgbGV0IHZhbHVlID0gYXJyYXlbaV07XG4gICAgaWYgKHZhbHVlID09PSBkZXRlY3RWYWx1ZSkge1xuICAgICAgcmV0dXJuIHRydWU7XG4gICAgfVxuICB9XG4gIHJldHVybiBmYWxzZTtcbn1cbiJdfQ== |
@@ -12,4 +12,4 @@ /* globals module */ | ||
} | ||
export var isNode = !window && typeof module === 'object' && typeof module.require === 'function'; | ||
export var isNode = typeof window === 'undefined' && typeof module === 'object' && typeof module.require === 'function'; | ||
export var hasDOM = typeof document === 'object'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9tLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vbGliL3V0aWxzL2RvbS5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxBQUFvQjtBQUVwQix1QkFBdUIsQUFBSTtBQUN6QixRQUFJLEFBQUksT0FBRyxBQUFRLEFBQUM7QUFDcEIsQUFBTSxXQUFDLEFBQUksS0FBQyxBQUFPLFFBQUMsQUFBSyxPQUFFLEFBQUcsTUFBRyxBQUFJLEFBQUMsQUFBQyxBQUN6QztBQUFDO0FBRUQsQUFBTSwrQkFBeUIsQUFBRyxLQUFFLEFBQUk7QUFDdEMsQUFBTSxXQUFDLEFBQUcsSUFBQyxBQUFjLGVBQUMsQUFBYSxjQUFDLEFBQUksQUFBQyxBQUFDLEFBQUMsQUFDakQ7QUFBQztBQUVELEFBQU0saUNBQTJCLEFBQU87QUFDdEMsQUFBTSxXQUFDLEFBQU8sUUFBQyxBQUFXLEFBQUUsQUFBQyxBQUMvQjtBQUFDO0FBRUQsQUFBTSxPQUFDLElBQU0sQUFBTSxTQUFHLENBQUMsQUFBTSxBQUFJLFVBQUMsT0FBTyxBQUFNL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wZW9mIHdpbmRvdyA9PT0gJ3VuZGVmaW5lZCcgJiYgKHR5cGVvZiBtb2R1bGUgPT09ICdvYmplY3QnICYmIHR5cGVvZiBtb2R1bGUucmVxdWlyZSA9PT0gJ2Z1bmN0aW9uJyk7XG5leHBvcnQgY29uc3QgaGFzRE9NID0gdHlwZW9mIGRvY3VtZW50ID09PSAnb2JqZWN0JztcbiJdfQ== |
export var MARKUP_MARKER_TYPE = 0; | ||
export var ATOM_MARKER_TYPE = 1; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFya2VyLXR5cGVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vbGliL3V0aWxzL21hcmtlci10eXBlcy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxBQUFNLE9BQUMsSUFBTSxBQUFrQixxQkFBRyxBQUFDLEFBQUM7QUFDcEMsQUFBTSxPQUFDLElBQU0sQUFBZ0IsbUJBQUcsQUFBQyxBQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNvbnN0IE1BUktVUF9NQVJLRVJfVFlQRSA9IDA7XG5leHBvcnQgY29uc3QgQVRPTV9NQVJLRVJfVFlQRSA9IDE7Il19 | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFya2VyLXR5cGVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vbGliL3V0aWxzL21hcmtlci10eXBlcy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxBQUFNLE9BQUMsSUFBTSxBQUFrQixxQkFBRyxBQUFDLEFBQUM7QUFDcEMsQUFBTSxPQUFDLElBQU0sQUFBZ0IsbUJBQUcsQUFBQyxBQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNvbnN0IE1BUktVUF9NQVJLRVJfVFlQRSA9IDA7XG5leHBvcnQgY29uc3QgQVRPTV9NQVJLRVJfVFlQRSA9IDE7Il19 |
export default 'dom'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVuZGVyLXR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9saWIvdXRpbHMvcmVuZGVyLXR5cGUuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsZUFBZSxBQUFLLEFBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZGVmYXVsdCAnZG9tJztcbiJdfQ== | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVuZGVyLXR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9saWIvdXRpbHMvcmVuZGVyLXR5cGUuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsZUFBZSxBQUFLLEFBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZGVmYXVsdCAnZG9tJztcbiJdfQ== |
@@ -46,2 +46,2 @@ /* globals module */ | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2FuaXRpemF0aW9uLXV0aWxzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vbGliL3V0aWxzL3Nhbml0aXphdGlvbi11dGlscy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxBQUFvQjtBQUVwQixBQUFPLFNBQUUsQUFBUSxBQUFFLGdCQUFNLEFBQWUsQUFBQztBQUN6QyxBQUFPLFNBQ0wsQUFBTSxRQUNOLEFBQU0sQUFDUCxjQUFNLEFBQU8sQUFBQztBQUVmLElBQU0sQUFBWSxnQkFDaEIsQUFBYSxlQUNiLEFBQVcsWUFBQyxBQUFxQixBQUNsQyxBQUFDO0FBSG1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ucyhMSVNUX1NFQ1RJT05fVEFHX05BTUVTLCB0YWdOYW1lKTtcbiAgICBkZWZhdWx0OlxuICAgICAgdGhyb3cgbmV3IEVycm9yKGBDYW5ub3QgdmFsaWRhdGUgdGFnTmFtZSBmb3IgdW5rbm93biBzZWN0aW9uIHR5cGUgXCIke3NlY3Rpb25UeXBlfVwiYCk7XG4gIH1cbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGlzTWFya3VwU2VjdGlvbkVsZW1lbnROYW1lKHRhZ05hbWUpIHtcbiAgdGFnTmFtZSA9IG5vcm1hbGl6ZVRhZ05hbWUodGFnTmFtZSk7XG4gIHJldHVybiBjb250YWlucyhNQVJLVVBfU0VDVElPTl9FTEVNRU5UX05BTUVTLCB0YWdOYW1lKTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGlzVmFsaWRNYXJrZXJUeXBlKHR5cGUpIHtcbiAgdHlwZSA9IG5vcm1hbGl6ZVRhZ05hbWUodHlwZSk7XG4gIHJldHVybiBjb250YWlucyhNQVJLVVBfVFlQRVMsIHR5cGUpO1xufVxuIl19 |
@@ -16,3 +16,3 @@ /* globals module */ | ||
export const isNode = !window && (typeof module === 'object' && typeof module.require === 'function'); | ||
export const isNode = typeof window === 'undefined' && (typeof module === 'object' && typeof module.require === 'function'); | ||
export const hasDOM = typeof document === 'object'; |
{ | ||
"name": "mobiledoc-dom-renderer", | ||
"version": "0.6.0", | ||
"version": "0.6.1-0", | ||
"description": "Renders Mobiledoc input to DOM output", | ||
@@ -32,5 +32,9 @@ "scripts": { | ||
"homepage": "https://github.com/bustlelabs/mobiledoc-dom-renderer", | ||
"dependencies": { | ||
"babel-helpers": "^6.0.0" | ||
}, | ||
"devDependencies": { | ||
"@glimmer/build": "^0.2.1", | ||
"broccoli": "^1.1.0", | ||
"broccoli-funnel": "^1.1.0", | ||
"conventional-changelog": "^1.1.0", | ||
@@ -37,0 +41,0 @@ "conventional-changelog-cli": "^1.1.1", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
599185
5122
1
7
+ Addedbabel-helpers@^6.0.0
+ Addedansi-regex@2.1.1(transitive)
+ Addedansi-styles@2.2.1(transitive)
+ Addedbabel-code-frame@6.26.0(transitive)
+ Addedbabel-helpers@6.24.1(transitive)
+ Addedbabel-messages@6.23.0(transitive)
+ Addedbabel-runtime@6.26.0(transitive)
+ Addedbabel-template@6.26.0(transitive)
+ Addedbabel-traverse@6.26.0(transitive)
+ Addedbabel-types@6.26.0(transitive)
+ Addedbabylon@6.18.0(transitive)
+ Addedchalk@1.1.3(transitive)
+ Addedcore-js@2.6.12(transitive)
+ Addeddebug@2.6.9(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedesutils@2.0.3(transitive)
+ Addedglobals@9.18.0(transitive)
+ Addedhas-ansi@2.0.0(transitive)
+ Addedinvariant@2.2.4(transitive)
+ Addedjs-tokens@3.0.2(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedloose-envify@1.4.0(transitive)
+ Addedms@2.0.0(transitive)
+ Addedregenerator-runtime@0.11.1(transitive)
+ Addedstrip-ansi@3.0.1(transitive)
+ Addedsupports-color@2.0.0(transitive)
+ Addedto-fast-properties@1.0.3(transitive)