marko 5.20.9 → 5.21.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/compiler/config.js +1 -2
- package/dist/compiler/index.js +1 -2
- package/dist/compiler/modules.js +1 -2
- package/dist/core-tags/components/init-components-tag.js +1 -2
- package/dist/core-tags/components/preferred-script-location-tag.js +1 -2
- package/dist/core-tags/components/preserve-tag/index-browser.js +1 -2
- package/dist/core-tags/components/preserve-tag/index.js +1 -2
- package/dist/core-tags/core/__flush_here_and_after__.js +1 -2
- package/dist/core-tags/core/await/AsyncValue.js +1 -2
- package/dist/core-tags/core/await/client-reorder-runtime.js +1 -2
- package/dist/core-tags/core/await/renderer.js +1 -2
- package/dist/core-tags/core/await/reorderer-renderer.js +1 -2
- package/dist/index.js +1 -2
- package/dist/loader/index-browser.js +1 -2
- package/dist/loader/index.js +1 -2
- package/dist/node-require/browser-refresh.js +1 -2
- package/dist/node-require/hot-reload.js +1 -2
- package/dist/node-require/index.js +1 -2
- package/dist/runtime/RenderResult.js +1 -2
- package/dist/runtime/components/Component.js +1 -2
- package/dist/runtime/components/ComponentDef.js +1 -2
- package/dist/runtime/components/ComponentsContext.js +1 -2
- package/dist/runtime/components/GlobalComponentsContext.js +1 -2
- package/dist/runtime/components/KeySequence.js +1 -2
- package/dist/runtime/components/ServerComponent.js +1 -2
- package/dist/runtime/components/State.js +1 -2
- package/dist/runtime/components/attach-detach.js +1 -2
- package/dist/runtime/components/beginComponent/index-browser.js +1 -2
- package/dist/runtime/components/beginComponent/index.js +1 -2
- package/dist/runtime/components/defineComponent.js +1 -2
- package/dist/runtime/components/dom-data.js +1 -2
- package/dist/runtime/components/endComponent/index-browser.js +1 -2
- package/dist/runtime/components/endComponent/index.js +1 -2
- package/dist/runtime/components/entry/index-browser.js +1 -2
- package/dist/runtime/components/entry/index.js +1 -2
- package/dist/runtime/components/event-delegation.js +1 -2
- package/dist/runtime/components/index.js +1 -2
- package/dist/runtime/components/init-components/index-browser.js +1 -2
- package/dist/runtime/components/init-components/index.js +1 -2
- package/dist/runtime/components/registry/index-browser.js +1 -2
- package/dist/runtime/components/registry/index.js +1 -2
- package/dist/runtime/components/renderer.js +1 -2
- package/dist/runtime/components/update-manager.js +1 -2
- package/dist/runtime/components/util/index-browser.js +1 -2
- package/dist/runtime/components/util/index.js +1 -2
- package/dist/runtime/createOut.js +1 -2
- package/dist/runtime/dom-insert.js +1 -2
- package/dist/runtime/events.js +1 -2
- package/dist/runtime/helpers/_change-case.js +1 -2
- package/dist/runtime/helpers/assign.js +1 -2
- package/dist/runtime/helpers/class-value.js +1 -2
- package/dist/runtime/helpers/dynamic-tag.js +1 -2
- package/dist/runtime/helpers/load-nested-tag.js +1 -2
- package/dist/runtime/helpers/merge.js +1 -2
- package/dist/runtime/helpers/render-tag.js +1 -2
- package/dist/runtime/helpers/style-value.js +1 -2
- package/dist/runtime/helpers/to-string.js +1 -2
- package/dist/runtime/html/AsyncStream.js +1 -2
- package/dist/runtime/html/BufferedWriter.js +1 -2
- package/dist/runtime/html/StringWriter.js +1 -2
- package/dist/runtime/html/create-readable/index-browser.js +1 -2
- package/dist/runtime/html/create-readable/index.js +1 -2
- package/dist/runtime/html/helpers/_dynamic-attr.js +1 -2
- package/dist/runtime/html/helpers/attr.js +1 -2
- package/dist/runtime/html/helpers/attrs.js +1 -2
- package/dist/runtime/html/helpers/class-attr.js +1 -2
- package/dist/runtime/html/helpers/data-marko.js +1 -2
- package/dist/runtime/html/helpers/escape-quotes.js +1 -2
- package/dist/runtime/html/helpers/escape-script-placeholder.js +1 -2
- package/dist/runtime/html/helpers/escape-style-placeholder.js +1 -2
- package/dist/runtime/html/helpers/escape-xml.js +1 -2
- package/dist/runtime/html/helpers/merge-attrs.js +1 -2
- package/dist/runtime/html/helpers/props-script.js +1 -2
- package/dist/runtime/html/helpers/style-attr.js +1 -2
- package/dist/runtime/html/hot-reload.js +1 -2
- package/dist/runtime/html/index.js +1 -2
- package/dist/runtime/queueMicrotask.js +1 -2
- package/dist/runtime/renderable.js +1 -2
- package/dist/runtime/setImmediate/index-browser.js +1 -2
- package/dist/runtime/setImmediate/index-worker.js +1 -2
- package/dist/runtime/setImmediate/index.js +1 -2
- package/dist/runtime/vdom/AsyncVDOMBuilder.js +1 -2
- package/dist/runtime/vdom/VComponent.js +1 -2
- package/dist/runtime/vdom/VDocumentFragment.js +1 -2
- package/dist/runtime/vdom/VElement.js +1 -2
- package/dist/runtime/vdom/VFragment.js +1 -2
- package/dist/runtime/vdom/VNode.js +1 -2
- package/dist/runtime/vdom/VText.js +1 -2
- package/dist/runtime/vdom/helpers/attrs.js +1 -2
- package/dist/runtime/vdom/helpers/const.js +1 -2
- package/dist/runtime/vdom/helpers/v-element.js +1 -2
- package/dist/runtime/vdom/helpers/v-text.js +1 -2
- package/dist/runtime/vdom/hot-reload.js +1 -2
- package/dist/runtime/vdom/index.js +1 -2
- package/dist/runtime/vdom/morphdom/fragment.js +1 -2
- package/dist/runtime/vdom/morphdom/helpers.js +1 -2
- package/dist/runtime/vdom/morphdom/index.js +1 -2
- package/dist/runtime/vdom/morphdom/specialElHandlers.js +1 -2
- package/dist/runtime/vdom/parse-html.js +1 -2
- package/dist/runtime/vdom/preserve-attrs.js +1 -2
- package/dist/runtime/vdom/vdom.js +1 -2
- package/dist/taglib/index.js +1 -2
- package/package.json +4 -5
- package/LICENSE +0 -21
- package/dist/compiler/config.js.map +0 -1
- package/dist/compiler/index.js.map +0 -1
- package/dist/compiler/modules.js.map +0 -1
- package/dist/core-tags/components/init-components-tag.js.map +0 -1
- package/dist/core-tags/components/preferred-script-location-tag.js.map +0 -1
- package/dist/core-tags/components/preserve-tag/index-browser.js.map +0 -1
- package/dist/core-tags/components/preserve-tag/index.js.map +0 -1
- package/dist/core-tags/core/__flush_here_and_after__.js.map +0 -1
- package/dist/core-tags/core/await/AsyncValue.js.map +0 -1
- package/dist/core-tags/core/await/client-reorder-runtime.js.map +0 -1
- package/dist/core-tags/core/await/renderer.js.map +0 -1
- package/dist/core-tags/core/await/reorderer-renderer.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/loader/index-browser.js.map +0 -1
- package/dist/loader/index.js.map +0 -1
- package/dist/node-require/browser-refresh.js.map +0 -1
- package/dist/node-require/hot-reload.js.map +0 -1
- package/dist/node-require/index.js.map +0 -1
- package/dist/runtime/RenderResult.js.map +0 -1
- package/dist/runtime/components/Component.js.map +0 -1
- package/dist/runtime/components/ComponentDef.js.map +0 -1
- package/dist/runtime/components/ComponentsContext.js.map +0 -1
- package/dist/runtime/components/GlobalComponentsContext.js.map +0 -1
- package/dist/runtime/components/KeySequence.js.map +0 -1
- package/dist/runtime/components/ServerComponent.js.map +0 -1
- package/dist/runtime/components/State.js.map +0 -1
- package/dist/runtime/components/attach-detach.js.map +0 -1
- package/dist/runtime/components/beginComponent/index-browser.js.map +0 -1
- package/dist/runtime/components/beginComponent/index.js.map +0 -1
- package/dist/runtime/components/defineComponent.js.map +0 -1
- package/dist/runtime/components/dom-data.js.map +0 -1
- package/dist/runtime/components/endComponent/index-browser.js.map +0 -1
- package/dist/runtime/components/endComponent/index.js.map +0 -1
- package/dist/runtime/components/entry/index-browser.js.map +0 -1
- package/dist/runtime/components/entry/index.js.map +0 -1
- package/dist/runtime/components/event-delegation.js.map +0 -1
- package/dist/runtime/components/index.js.map +0 -1
- package/dist/runtime/components/init-components/index-browser.js.map +0 -1
- package/dist/runtime/components/init-components/index.js.map +0 -1
- package/dist/runtime/components/registry/index-browser.js.map +0 -1
- package/dist/runtime/components/registry/index.js.map +0 -1
- package/dist/runtime/components/renderer.js.map +0 -1
- package/dist/runtime/components/update-manager.js.map +0 -1
- package/dist/runtime/components/util/index-browser.js.map +0 -1
- package/dist/runtime/components/util/index.js.map +0 -1
- package/dist/runtime/createOut.js.map +0 -1
- package/dist/runtime/dom-insert.js.map +0 -1
- package/dist/runtime/events.js.map +0 -1
- package/dist/runtime/helpers/_change-case.js.map +0 -1
- package/dist/runtime/helpers/assign.js.map +0 -1
- package/dist/runtime/helpers/class-value.js.map +0 -1
- package/dist/runtime/helpers/dynamic-tag.js.map +0 -1
- package/dist/runtime/helpers/load-nested-tag.js.map +0 -1
- package/dist/runtime/helpers/merge.js.map +0 -1
- package/dist/runtime/helpers/render-tag.js.map +0 -1
- package/dist/runtime/helpers/style-value.js.map +0 -1
- package/dist/runtime/helpers/to-string.js.map +0 -1
- package/dist/runtime/html/AsyncStream.js.map +0 -1
- package/dist/runtime/html/BufferedWriter.js.map +0 -1
- package/dist/runtime/html/StringWriter.js.map +0 -1
- package/dist/runtime/html/create-readable/index-browser.js.map +0 -1
- package/dist/runtime/html/create-readable/index.js.map +0 -1
- package/dist/runtime/html/helpers/_dynamic-attr.js.map +0 -1
- package/dist/runtime/html/helpers/attr.js.map +0 -1
- package/dist/runtime/html/helpers/attrs.js.map +0 -1
- package/dist/runtime/html/helpers/class-attr.js.map +0 -1
- package/dist/runtime/html/helpers/data-marko.js.map +0 -1
- package/dist/runtime/html/helpers/escape-quotes.js.map +0 -1
- package/dist/runtime/html/helpers/escape-script-placeholder.js.map +0 -1
- package/dist/runtime/html/helpers/escape-style-placeholder.js.map +0 -1
- package/dist/runtime/html/helpers/escape-xml.js.map +0 -1
- package/dist/runtime/html/helpers/merge-attrs.js.map +0 -1
- package/dist/runtime/html/helpers/props-script.js.map +0 -1
- package/dist/runtime/html/helpers/style-attr.js.map +0 -1
- package/dist/runtime/html/hot-reload.js.map +0 -1
- package/dist/runtime/html/index.js.map +0 -1
- package/dist/runtime/queueMicrotask.js.map +0 -1
- package/dist/runtime/renderable.js.map +0 -1
- package/dist/runtime/setImmediate/index-browser.js.map +0 -1
- package/dist/runtime/setImmediate/index-worker.js.map +0 -1
- package/dist/runtime/setImmediate/index.js.map +0 -1
- package/dist/runtime/vdom/AsyncVDOMBuilder.js.map +0 -1
- package/dist/runtime/vdom/VComponent.js.map +0 -1
- package/dist/runtime/vdom/VDocumentFragment.js.map +0 -1
- package/dist/runtime/vdom/VElement.js.map +0 -1
- package/dist/runtime/vdom/VFragment.js.map +0 -1
- package/dist/runtime/vdom/VNode.js.map +0 -1
- package/dist/runtime/vdom/VText.js.map +0 -1
- package/dist/runtime/vdom/helpers/attrs.js.map +0 -1
- package/dist/runtime/vdom/helpers/const.js.map +0 -1
- package/dist/runtime/vdom/helpers/v-element.js.map +0 -1
- package/dist/runtime/vdom/helpers/v-text.js.map +0 -1
- package/dist/runtime/vdom/hot-reload.js.map +0 -1
- package/dist/runtime/vdom/index.js.map +0 -1
- package/dist/runtime/vdom/morphdom/fragment.js.map +0 -1
- package/dist/runtime/vdom/morphdom/helpers.js.map +0 -1
- package/dist/runtime/vdom/morphdom/index.js.map +0 -1
- package/dist/runtime/vdom/morphdom/specialElHandlers.js.map +0 -1
- package/dist/runtime/vdom/parse-html.js.map +0 -1
- package/dist/runtime/vdom/preserve-attrs.js.map +0 -1
- package/dist/runtime/vdom/vdom.js.map +0 -1
- package/dist/taglib/index.js.map +0 -1
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/runtime/vdom/vdom.js"],"names":["VNode","require","VDocumentFragment","VElement","VText","VComponent","VFragment","parseHTML","specialHtmlRegexp","virtualizeChildNodes","node","vdomParent","ownerComponent","curChild","firstChild","virtualize","nextSibling","nodeType","nodeValue","vdomDocFragment","virtualizeHTML","html","test","vdomFragment","Node_prototype","prototype","t","value","type","vdomNode","toHTML","toString","exports"],"mappings":"aAAA,IAAIA,KAAK,GAAGC,OAAO,CAAC,SAAD,CAAnB;AACA,IAAIC,iBAAiB,GAAGD,OAAO,CAAC,qBAAD,CAA/B;AACA,IAAIE,QAAQ,GAAGF,OAAO,CAAC,YAAD,CAAtB;AACA,IAAIG,KAAK,GAAGH,OAAO,CAAC,SAAD,CAAnB;AACA,IAAII,UAAU,GAAGJ,OAAO,CAAC,cAAD,CAAxB;AACA,IAAIK,SAAS,GAAGL,OAAO,CAAC,aAAD,CAAvB;AACA,IAAIM,SAAS,GAAGN,OAAO,CAAC,cAAD,CAAvB;;AAEA,IAAIO,iBAAiB,GAAG,MA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AA3B;;AAEA;AACA;AACA;AACA;AACAD,cAAc,CAACE,CAAf,GAAmB,UAAUC,KAAV,EAAiB;AAClC,MAAIC,IAAI,GAAG,OAAOD,KAAlB;AACA,MAAIE,QAAJ;;AAEA,MAAID,IAAI,KAAK,QAAb,EAAuB;AACrB,QAAID,KAAK,IAAI,IAAb,EAAmB;AACjBA,MAAAA,KAAK,GAAG,EAAR;AACD,KAFD,MAEO,IAAIC,IAAI,KAAK,QAAb,EAAuB;AAC5B,UAAID,KAAK,CAACG,MAAV,EAAkB;AAChBD,QAAAA,QAAQ,GAAGT,cAAc,CAACO,KAAK,CAACG,MAAN,EAAD,CAAzB;AACD;AACF;AACF;;AAED,WAAoBD,QAAQ,IAAI,IAAIzB,KAAJ,CAAUuB,KAAK,CAACI,QAAN,EAAV,CAAhC;AACA,SAAO,UAAP;AACD,CAhBD;;AAkBAP,cAAc,IAAd,GAA2C,YAAY;AACrD,SAAO,SAAoB,IAAItB,iBAAJ,EAApB,CAAP;AACD,CAFD;;AAIA8B,OAAO,IAAP,GAA+B9B,iBAA/B;AACA8B,OAAO,IAAP,GAAsB7B,QAAtB;AACA6B,OAAO,IAAP,GAAmB5B,KAAnB;AACA4B,OAAO,IAAP,GAAwB3B,UAAxB;AACA2B,OAAO,IAAP,GAAuB1B,SAAvB;AACA0B,OAAO,IAAP,GAAwBjB,UAAxB;AACAiB,OAAO,IAAP,GAA4BZ,cAA5B","sourcesContent":["var VNode = require(\"./VNode\");\nvar VDocumentFragment = require(\"./VDocumentFragment\");\nvar VElement = require(\"./VElement\");\nvar VText = require(\"./VText\");\nvar VComponent = require(\"./VComponent\");\nvar VFragment = require(\"./VFragment\");\nvar parseHTML = require(\"./parse-html\");\n\nvar specialHtmlRegexp = /[&<]/;\n\nfunction virtualizeChildNodes(node, vdomParent, ownerComponent) {\n var curChild = node.firstChild;\n while (curChild) {\n vdomParent.___appendChild(virtualize(curChild, ownerComponent));\n curChild = curChild.nextSibling;\n }\n}\n\nfunction virtualize(node, ownerComponent) {\n switch (node.nodeType) {\n case 1:\n return VElement.___virtualize(node, virtualizeChildNodes, ownerComponent);\n case 3:\n return new VText(node.nodeValue, ownerComponent);\n case 11:\n var vdomDocFragment = new VDocumentFragment();\n virtualizeChildNodes(node, vdomDocFragment, ownerComponent);\n return vdomDocFragment;\n }\n}\n\nfunction virtualizeHTML(html, ownerComponent) {\n if (!specialHtmlRegexp.test(html)) {\n return new VText(html, ownerComponent);\n }\n\n var vdomFragment = new VDocumentFragment();\n var curChild = parseHTML(html);\n\n while (curChild) {\n vdomFragment.___appendChild(virtualize(curChild, ownerComponent));\n curChild = curChild.nextSibling;\n }\n\n return vdomFragment;\n}\n\nvar Node_prototype = VNode.prototype;\n\n/**\n * Shorthand method for creating and appending a Text node with a given value\n * @param {String} value The text value for the new Text node\n */\nNode_prototype.t = function (value) {\n var type = typeof value;\n var vdomNode;\n\n if (type !== \"string\") {\n if (value == null) {\n value = \"\";\n } else if (type === \"object\") {\n if (value.toHTML) {\n vdomNode = virtualizeHTML(value.toHTML());\n }\n }\n }\n\n this.___appendChild(vdomNode || new VText(value.toString()));\n return this.___finishChild();\n};\n\nNode_prototype.___appendDocumentFragment = function () {\n return this.___appendChild(new VDocumentFragment());\n};\n\nexports.___VDocumentFragment = VDocumentFragment;\nexports.___VElement = VElement;\nexports.___VText = VText;\nexports.___VComponent = VComponent;\nexports.___VFragment = VFragment;\nexports.___virtualize = virtualize;\nexports.___virtualizeHTML = virtualizeHTML;\n"],"file":"vdom.js"}
|
package/dist/taglib/index.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../src/taglib/index.js"],"names":["compiler","require","clearCache","taglib","clearCaches","register","taglibProps","taglibPath","registerFromFile","_loader","loadTaglibFromFile","exports","buildLookup","excludeDir","excludePackage","loader","finder","_finder","lookup","dir","translator","Array","isArray","taglibs","registerTaglib","id"],"mappings":"AAAA;;;AAGA,MAAMA,QAAQ,GAAGC,OAAO,CAAC,iBAAD,CAA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AAA,cAAc,CAACrB,MAAD,EAAS;AACrB,QAAI,OAAOA,MAAP,KAAkB,QAAtB,EAAgC;AAC9BK,MAAAA,gBAAgB,CAACL,MAAD,CAAhB;AACD,KAFD,MAEO;AACLE,MAAAA,QAAQ,CAACF,MAAD,EAASA,MAAM,CAACsB,EAAhB,CAAR;AACD;AACF,GApBc,EAAjB","sourcesContent":["\"use strict\";\n\nlet complain = \"MARKO_DEBUG\" && require(\"complain\");\nconst compiler = require(\"@marko/compiler\");\n\nfunction clearCache() {\n compiler.taglib.clearCaches();\n}\n\nfunction register(taglibProps, taglibPath) {\n return compiler.taglib.register(taglibPath, taglibProps);\n}\n\nfunction registerFromFile(taglibPath) {\n return register(\n compiler.taglib._loader.loadTaglibFromFile(taglibPath),\n taglibPath\n );\n}\n\nexports.clearCache = clearCache;\nexports.register = register;\nexports.registerFromFile = registerFromFile;\nexports.buildLookup = compiler.taglib.buildLookup;\nexports.excludeDir = compiler.taglib.excludeDir;\nexports.excludePackage = compiler.taglib.excludePackage;\nexports.loader = compiler.taglib._loader;\nexports.finder = compiler.taglib._finder;\nexports.lookup = {\n buildLookup: function (dir, translator) {\n if (!translator || !Array.isArray(translator.taglibs)) {\n translator = require(\"@marko/translator-default\");\n // eslint-disable-next-line no-constant-condition\n if (\"MARKO_DEBUG\") {\n complain(\n \"buildTaglibLookup now requires passing in a transltor as the second argument, eg `buildTaglibLookup(dir, require('@marko/translator-default'))`.\"\n );\n }\n }\n\n return compiler.taglib.buildLookup(dir, translator);\n },\n registerTaglib(taglib) {\n if (typeof taglib === \"string\") {\n registerFromFile(taglib);\n } else {\n register(taglib, taglib.id);\n }\n }\n};\n"],"file":"index.js"}
|