@ikas/storefront 2.0.0-alpha.5 → 2.0.0-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/build/_virtual/index.js_commonjs-proxy.js +1 -1
  2. package/build/_virtual/index.js_commonjs-proxy10.js +1 -1
  3. package/build/_virtual/index.js_commonjs-proxy11.js +1 -1
  4. package/build/_virtual/index.js_commonjs-proxy12.js +1 -1
  5. package/build/_virtual/index.js_commonjs-proxy13.js +1 -1
  6. package/build/_virtual/index.js_commonjs-proxy2.js +1 -1
  7. package/build/_virtual/index.js_commonjs-proxy3.js +1 -1
  8. package/build/_virtual/index.js_commonjs-proxy4.js +1 -1
  9. package/build/_virtual/index.js_commonjs-proxy5.js +1 -1
  10. package/build/_virtual/index.js_commonjs-proxy6.js +1 -1
  11. package/build/_virtual/index.js_commonjs-proxy7.js +1 -1
  12. package/build/_virtual/index.js_commonjs-proxy8.js +1 -1
  13. package/build/_virtual/index.js_commonjs-proxy9.js +1 -1
  14. package/build/ext/domhandler/lib/index.js +1 -1
  15. package/build/ext/domhandler/lib/node.js +1 -1
  16. package/build/ext/html-dom-parser/lib/server/html-to-dom.js +1 -1
  17. package/build/ikas.js +2 -2
  18. package/build/models/data/order/index.js +1 -1
  19. package/build/scripts/generators/api/index.d.ts +2 -2
  20. package/build/scripts/generators/api/index.js +1 -1
  21. package/build/scripts/generators/api/info.d.ts +4 -4
  22. package/build/scripts/generators/api/info.js +1 -1
  23. package/build/scripts/generators/components/index.d.ts +3 -3
  24. package/build/scripts/generators/components/index.js +1 -1
  25. package/build/scripts/generators/config/content.d.ts +3 -1
  26. package/build/scripts/generators/config/content.js +1 -1
  27. package/build/scripts/generators/config/index.d.ts +5 -5
  28. package/build/scripts/generators/config/index.js +1 -1
  29. package/build/scripts/generators/pages/index.d.ts +3 -3
  30. package/build/scripts/generators/pages/index.js +1 -1
  31. package/build/scripts/generators/store/index.d.ts +1 -1
  32. package/build/scripts/generators/store/index.js +1 -1
  33. package/build/scripts/generators/theme/index.d.ts +3 -3
  34. package/build/scripts/generators/theme/index.js +1 -1
  35. package/build/utils/fs.d.ts +2 -2
  36. package/build/utils/fs.js +1 -1
  37. package/package.json +4 -3
  38. package/build/_virtual/clone.js_commonjs-proxy.js +0 -1
  39. package/build/_virtual/copy-sync.js_commonjs-proxy.js +0 -1
  40. package/build/_virtual/copy.js_commonjs-proxy.js +0 -1
  41. package/build/_virtual/file.js_commonjs-proxy.js +0 -1
  42. package/build/_virtual/graceful-fs.js_commonjs-proxy.js +0 -1
  43. package/build/_virtual/index.js_commonjs-proxy14.js +0 -1
  44. package/build/_virtual/index.js_commonjs-proxy15.js +0 -1
  45. package/build/_virtual/index.js_commonjs-proxy16.js +0 -1
  46. package/build/_virtual/index.js_commonjs-proxy17.js +0 -1
  47. package/build/_virtual/index.js_commonjs-proxy18.js +0 -1
  48. package/build/_virtual/index.js_commonjs-proxy19.js +0 -1
  49. package/build/_virtual/index.js_commonjs-proxy20.js +0 -1
  50. package/build/_virtual/index.js_commonjs-proxy21.js +0 -1
  51. package/build/_virtual/index.js_commonjs-proxy22.js +0 -1
  52. package/build/_virtual/index.js_commonjs-proxy23.js +0 -1
  53. package/build/_virtual/index.js_commonjs-proxy24.js +0 -1
  54. package/build/_virtual/index.js_commonjs-proxy25.js +0 -1
  55. package/build/_virtual/index.js_commonjs-proxy26.js +0 -1
  56. package/build/_virtual/index.js_commonjs-proxy27.js +0 -1
  57. package/build/_virtual/jsonfile.js_commonjs-proxy.js +0 -1
  58. package/build/_virtual/legacy-streams.js_commonjs-proxy.js +0 -1
  59. package/build/_virtual/link.js_commonjs-proxy.js +0 -1
  60. package/build/_virtual/make-dir.js_commonjs-proxy.js +0 -1
  61. package/build/_virtual/move-sync.js_commonjs-proxy.js +0 -1
  62. package/build/_virtual/move.js_commonjs-proxy.js +0 -1
  63. package/build/_virtual/output-json-sync.js_commonjs-proxy.js +0 -1
  64. package/build/_virtual/output-json.js_commonjs-proxy.js +0 -1
  65. package/build/_virtual/polyfills.js_commonjs-proxy.js +0 -1
  66. package/build/_virtual/rimraf.js_commonjs-proxy.js +0 -1
  67. package/build/_virtual/stat.js_commonjs-proxy.js +0 -1
  68. package/build/_virtual/symlink-paths.js_commonjs-proxy.js +0 -1
  69. package/build/_virtual/symlink-type.js_commonjs-proxy.js +0 -1
  70. package/build/_virtual/symlink.js_commonjs-proxy.js +0 -1
  71. package/build/_virtual/utils.js_commonjs-proxy.js +0 -1
  72. package/build/_virtual/utils.js_commonjs-proxy2.js +0 -1
  73. package/build/_virtual/utimes.js_commonjs-proxy.js +0 -1
  74. package/build/ext/fs-extra/ext/jsonfile/index.js +0 -1
  75. package/build/ext/fs-extra/ext/jsonfile/utils.js +0 -1
  76. package/build/ext/fs-extra/ext/universalify/index.js +0 -1
  77. package/build/ext/fs-extra/lib/copy/copy.js +0 -1
  78. package/build/ext/fs-extra/lib/copy/index.js +0 -1
  79. package/build/ext/fs-extra/lib/copy-sync/copy-sync.js +0 -1
  80. package/build/ext/fs-extra/lib/copy-sync/index.js +0 -1
  81. package/build/ext/fs-extra/lib/empty/index.js +0 -1
  82. package/build/ext/fs-extra/lib/ensure/file.js +0 -1
  83. package/build/ext/fs-extra/lib/ensure/index.js +0 -1
  84. package/build/ext/fs-extra/lib/ensure/link.js +0 -1
  85. package/build/ext/fs-extra/lib/ensure/symlink-paths.js +0 -1
  86. package/build/ext/fs-extra/lib/ensure/symlink-type.js +0 -1
  87. package/build/ext/fs-extra/lib/ensure/symlink.js +0 -1
  88. package/build/ext/fs-extra/lib/fs/index.js +0 -1
  89. package/build/ext/fs-extra/lib/index.js +0 -1
  90. package/build/ext/fs-extra/lib/json/index.js +0 -1
  91. package/build/ext/fs-extra/lib/json/jsonfile.js +0 -1
  92. package/build/ext/fs-extra/lib/json/output-json-sync.js +0 -1
  93. package/build/ext/fs-extra/lib/json/output-json.js +0 -1
  94. package/build/ext/fs-extra/lib/mkdirs/index.js +0 -1
  95. package/build/ext/fs-extra/lib/mkdirs/make-dir.js +0 -1
  96. package/build/ext/fs-extra/lib/mkdirs/utils.js +0 -1
  97. package/build/ext/fs-extra/lib/move/index.js +0 -1
  98. package/build/ext/fs-extra/lib/move/move.js +0 -1
  99. package/build/ext/fs-extra/lib/move-sync/index.js +0 -1
  100. package/build/ext/fs-extra/lib/move-sync/move-sync.js +0 -1
  101. package/build/ext/fs-extra/lib/output/index.js +0 -1
  102. package/build/ext/fs-extra/lib/path-exists/index.js +0 -1
  103. package/build/ext/fs-extra/lib/remove/index.js +0 -1
  104. package/build/ext/fs-extra/lib/remove/rimraf.js +0 -1
  105. package/build/ext/fs-extra/lib/util/stat.js +0 -1
  106. package/build/ext/fs-extra/lib/util/utimes.js +0 -1
  107. package/build/ext/graceful-fs/clone.js +0 -1
  108. package/build/ext/graceful-fs/graceful-fs.js +0 -1
  109. package/build/ext/graceful-fs/legacy-streams.js +0 -1
  110. package/build/ext/graceful-fs/polyfills.js +0 -1
@@ -1 +1 @@
1
- import e from'../ext/fs-extra/lib/fs/index.js';export{default}from"../node_modules/fs-extra/lib/fs/index.js";
1
+ import e from'../ext/html-dom-parser/index.js';export{default}from"../node_modules/html-dom-parser/index.js";
@@ -1 +1 @@
1
- import e from'../ext/fs-extra/lib/output/index.js';export{default}from"../node_modules/fs-extra/lib/output/index.js";
1
+ import e from'../ext/object-assign/index.js';export{default}from"../node_modules/object-assign/index.js";
@@ -1 +1 @@
1
- import e from'../ext/fs-extra/lib/remove/index.js';export{default}from"../node_modules/fs-extra/lib/remove/index.js";
1
+ import e from'../ext/style-to-object/index.js';export{default}from"../node_modules/style-to-object/index.js";
@@ -1 +1 @@
1
- import e from'../ext/fs-extra/lib/path-exists/index.js';export{default}from"../node_modules/fs-extra/lib/path-exists/index.js";
1
+ import e from'../ext/inline-style-parser/index.js';export{default}from"../node_modules/inline-style-parser/index.js";
@@ -1 +1 @@
1
- import e from'../ext/html-dom-parser/index.js';export{default}from"../node_modules/html-dom-parser/index.js";
1
+ import e from'../ext/safe-buffer/index.js';export{default}from"../node_modules/safe-buffer/index.js";
@@ -1 +1 @@
1
- import e from'../ext/fs-extra/lib/copy-sync/index.js';export{default}from"../node_modules/fs-extra/lib/copy-sync/index.js";
1
+ import e from'../ext/strict-uri-encode/index.js';export{default}from"../node_modules/strict-uri-encode/index.js";
@@ -1 +1 @@
1
- import e from'../ext/fs-extra/lib/ensure/index.js';export{default}from"../node_modules/fs-extra/lib/ensure/index.js";
1
+ import e from'../ext/decode-uri-component/index.js';export{default}from"../node_modules/decode-uri-component/index.js";
@@ -1 +1 @@
1
- import e from'../ext/fs-extra/lib/copy/index.js';export{default}from"../node_modules/fs-extra/lib/copy/index.js";
1
+ import o from'../ext/split-on-first/index.js';export{default}from"../node_modules/split-on-first/index.js";
@@ -1 +1 @@
1
- import e from'../ext/fs-extra/lib/empty/index.js';export{default}from"../node_modules/fs-extra/lib/empty/index.js";
1
+ import e from'../ext/react-property/lib/index.js';export{default}from"../node_modules/react-property/lib/index.js";
@@ -1 +1 @@
1
- import e from'../ext/fs-extra/lib/mkdirs/index.js';export{default}from"../node_modules/fs-extra/lib/mkdirs/index.js";
1
+ import{l as e}from'../ext/domhandler/ext/domelementtype/lib/index.js';var d=e;export{d as default};
@@ -1 +1 @@
1
- import e from'../ext/fs-extra/lib/json/index.js';export{default}from"../node_modules/fs-extra/lib/json/index.js";
1
+ import e from'../ext/react-is/index.js';export{default}from"../node_modules/react-is/index.js";
@@ -1 +1 @@
1
- import e from'../ext/fs-extra/lib/move-sync/index.js';export{default}from"../node_modules/fs-extra/lib/move-sync/index.js";
1
+ import{c as s}from'../ext/style-to-js/cjs/index.js';export{c as default}from"../node_modules/style-to-js/cjs/index.js";
@@ -1 +1 @@
1
- import e from'../ext/fs-extra/lib/move/index.js';export{default}from"../node_modules/fs-extra/lib/move/index.js";
1
+ import{l as d}from'../ext/domhandler/lib/index.js';var e=d;export{e as default};
@@ -1 +1 @@
1
- import{createCommonjsModule as t,commonjsGlobal as e}from"../../../_virtual/_commonjsHelpers.js";import n from"../../../_virtual/index.js_commonjs-proxy19.js";import o from"../../../_virtual/node.js_commonjs-proxy.js";var i=t((function(t,i){var s=e&&e.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n),Object.defineProperty(t,o,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),a=e&&e.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||s(e,t,n)};Object.defineProperty(i,"__esModule",{value:!0}),i.DomHandler=void 0,a(o,i);var r=/\s+/g,d={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function t(t,e,n){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof e&&(n=e,e=d),"object"==typeof t&&(e=t,t=void 0),this.callback=null!=t?t:null,this.options=null!=e?e:d,this.elementCB=null!=n?n:null}return t.prototype.onparserinit=function(t){this.parser=t},t.prototype.onreset=function(){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},t.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},t.prototype.onerror=function(t){this.handleCallback(t)},t.prototype.onclosetag=function(){this.lastNode=null;var t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)},t.prototype.onopentag=function(t,e){var i=this.options.xmlMode?n.ElementType.Tag:void 0,s=new o.Element(t,e,void 0,i);this.addNode(s),this.tagStack.push(s)},t.prototype.ontext=function(t){var e=this.options.normalizeWhitespace,i=this.lastNode;if(i&&i.type===n.ElementType.Text)e?i.data=(i.data+t).replace(r," "):i.data+=t,this.options.withEndIndices&&(i.endIndex=this.parser.endIndex);else{e&&(t=t.replace(r," "));var s=new o.Text(t);this.addNode(s),this.lastNode=s}},t.prototype.oncomment=function(t){if(this.lastNode&&this.lastNode.type===n.ElementType.Comment)this.lastNode.data+=t;else{var e=new o.Comment(t);this.addNode(e),this.lastNode=e}},t.prototype.oncommentend=function(){this.lastNode=null},t.prototype.oncdatastart=function(){var t=new o.Text(""),e=new o.NodeWithChildren(n.ElementType.CDATA,[t]);this.addNode(e),t.parent=e,this.lastNode=t},t.prototype.oncdataend=function(){this.lastNode=null},t.prototype.onprocessinginstruction=function(t,e){var n=new o.ProcessingInstruction(t,e);this.addNode(n)},t.prototype.handleCallback=function(t){if("function"==typeof this.callback)this.callback(t,this.dom);else if(t)throw t},t.prototype.addNode=function(t){var e=this.tagStack[this.tagStack.length-1],n=e.children[e.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),e.children.push(t),n&&(t.prev=n,n.next=t),t.parent=e,this.lastNode=null},t}();i.DomHandler=l,i.default=l}));export{i as l};
1
+ import{createCommonjsModule as t,commonjsGlobal as e}from"../../../_virtual/_commonjsHelpers.js";import n from"../../../_virtual/index.js_commonjs-proxy6.js";import o from"../../../_virtual/node.js_commonjs-proxy.js";var i=t((function(t,i){var s=e&&e.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n),Object.defineProperty(t,o,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),a=e&&e.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||s(e,t,n)};Object.defineProperty(i,"__esModule",{value:!0}),i.DomHandler=void 0,a(o,i);var r=/\s+/g,d={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function t(t,e,n){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof e&&(n=e,e=d),"object"==typeof t&&(e=t,t=void 0),this.callback=null!=t?t:null,this.options=null!=e?e:d,this.elementCB=null!=n?n:null}return t.prototype.onparserinit=function(t){this.parser=t},t.prototype.onreset=function(){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},t.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},t.prototype.onerror=function(t){this.handleCallback(t)},t.prototype.onclosetag=function(){this.lastNode=null;var t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)},t.prototype.onopentag=function(t,e){var i=this.options.xmlMode?n.ElementType.Tag:void 0,s=new o.Element(t,e,void 0,i);this.addNode(s),this.tagStack.push(s)},t.prototype.ontext=function(t){var e=this.options.normalizeWhitespace,i=this.lastNode;if(i&&i.type===n.ElementType.Text)e?i.data=(i.data+t).replace(r," "):i.data+=t,this.options.withEndIndices&&(i.endIndex=this.parser.endIndex);else{e&&(t=t.replace(r," "));var s=new o.Text(t);this.addNode(s),this.lastNode=s}},t.prototype.oncomment=function(t){if(this.lastNode&&this.lastNode.type===n.ElementType.Comment)this.lastNode.data+=t;else{var e=new o.Comment(t);this.addNode(e),this.lastNode=e}},t.prototype.oncommentend=function(){this.lastNode=null},t.prototype.oncdatastart=function(){var t=new o.Text(""),e=new o.NodeWithChildren(n.ElementType.CDATA,[t]);this.addNode(e),t.parent=e,this.lastNode=t},t.prototype.oncdataend=function(){this.lastNode=null},t.prototype.onprocessinginstruction=function(t,e){var n=new o.ProcessingInstruction(t,e);this.addNode(n)},t.prototype.handleCallback=function(t){if("function"==typeof this.callback)this.callback(t,this.dom);else if(t)throw t},t.prototype.addNode=function(t){var e=this.tagStack[this.tagStack.length-1],n=e.children[e.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),e.children.push(t),n&&(t.prev=n,n.next=t),t.parent=e,this.lastNode=null},t}();i.DomHandler=l,i.default=l}));export{i as l};
@@ -1 +1 @@
1
- import{createCommonjsModule as e,commonjsGlobal as t}from"../../../_virtual/_commonjsHelpers.js";import n from"../../../_virtual/index.js_commonjs-proxy19.js";var r=e((function(e,r){var i,o=t&&t.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=t&&t.__assign||function(){return u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},u.apply(this,arguments)};Object.defineProperty(r,"__esModule",{value:!0}),r.cloneNode=r.hasChildren=r.isDocument=r.isDirective=r.isComment=r.isText=r.isCDATA=r.isTag=r.Element=r.Document=r.NodeWithChildren=r.ProcessingInstruction=r.Comment=r.Text=r.DataNode=r.Node=void 0;var a=new Map([[n.ElementType.Tag,1],[n.ElementType.Script,1],[n.ElementType.Style,1],[n.ElementType.Directive,1],[n.ElementType.Text,3],[n.ElementType.CDATA,4],[n.ElementType.Comment,8],[n.ElementType.Root,9]]),c=function(){function e(e){this.type=e,this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"nodeType",{get:function(){var e;return null!==(e=a.get(this.type))&&void 0!==e?e:1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),E(this,e)},e}();r.Node=c;var l=function(e){function t(t,n){var r=e.call(this,t)||this;return r.data=n,r}return o(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(c);r.DataNode=l;var s=function(e){function t(t){return e.call(this,n.ElementType.Text,t)||this}return o(t,e),t}(l);r.Text=s;var p=function(e){function t(t){return e.call(this,n.ElementType.Comment,t)||this}return o(t,e),t}(l);r.Comment=p;var f=function(e){function t(t,r){var i=e.call(this,n.ElementType.Directive,r)||this;return i.name=t,i}return o(t,e),t}(l);r.ProcessingInstruction=f;var m=function(e){function t(t,n){var r=e.call(this,t)||this;return r.children=n,r}return o(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(c);r.NodeWithChildren=m;var d=function(e){function t(t){return e.call(this,n.ElementType.Root,t)||this}return o(t,e),t}(m);r.Document=d;var h=function(e){function t(t,r,i,o){void 0===i&&(i=[]),void 0===o&&(o="script"===t?n.ElementType.Script:"style"===t?n.ElementType.Style:n.ElementType.Tag);var u=e.call(this,o,i)||this;return u.name=t,u.attribs=r,u}return o(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(m);function y(e){return(0,n.isTag)(e)}function b(e){return e.type===n.ElementType.CDATA}function v(e){return e.type===n.ElementType.Text}function x(e){return e.type===n.ElementType.Comment}function T(e){return e.type===n.ElementType.Directive}function g(e){return e.type===n.ElementType.Root}function E(e,t){var r;if(void 0===t&&(t=!1),v(e))r=new s(e.data);else if(x(e))r=new p(e.data);else if(y(e)){var i=t?j(e.children):[],o=new h(e.name,u({},e.attribs),i);i.forEach((function(e){return e.parent=o})),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=u({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=u({},e["x-attribsPrefix"])),r=o}else if(b(e)){i=t?j(e.children):[];var a=new m(n.ElementType.CDATA,i);i.forEach((function(e){return e.parent=a})),r=a}else if(g(e)){i=t?j(e.children):[];var c=new d(i);i.forEach((function(e){return e.parent=c})),e["x-mode"]&&(c["x-mode"]=e["x-mode"]),r=c}else{if(!T(e))throw new Error("Not implemented yet: "+e.type);var l=new f(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),r=l}return r.startIndex=e.startIndex,r.endIndex=e.endIndex,r}function j(e){for(var t=e.map((function(e){return E(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}r.Element=h,r.isTag=y,r.isCDATA=b,r.isText=v,r.isComment=x,r.isDirective=T,r.isDocument=g,r.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},r.cloneNode=E}));export{r as n};
1
+ import{createCommonjsModule as e,commonjsGlobal as t}from"../../../_virtual/_commonjsHelpers.js";import n from"../../../_virtual/index.js_commonjs-proxy6.js";var r=e((function(e,r){var i,o=t&&t.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=t&&t.__assign||function(){return u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},u.apply(this,arguments)};Object.defineProperty(r,"__esModule",{value:!0}),r.cloneNode=r.hasChildren=r.isDocument=r.isDirective=r.isComment=r.isText=r.isCDATA=r.isTag=r.Element=r.Document=r.NodeWithChildren=r.ProcessingInstruction=r.Comment=r.Text=r.DataNode=r.Node=void 0;var a=new Map([[n.ElementType.Tag,1],[n.ElementType.Script,1],[n.ElementType.Style,1],[n.ElementType.Directive,1],[n.ElementType.Text,3],[n.ElementType.CDATA,4],[n.ElementType.Comment,8],[n.ElementType.Root,9]]),c=function(){function e(e){this.type=e,this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"nodeType",{get:function(){var e;return null!==(e=a.get(this.type))&&void 0!==e?e:1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),E(this,e)},e}();r.Node=c;var l=function(e){function t(t,n){var r=e.call(this,t)||this;return r.data=n,r}return o(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(c);r.DataNode=l;var s=function(e){function t(t){return e.call(this,n.ElementType.Text,t)||this}return o(t,e),t}(l);r.Text=s;var p=function(e){function t(t){return e.call(this,n.ElementType.Comment,t)||this}return o(t,e),t}(l);r.Comment=p;var f=function(e){function t(t,r){var i=e.call(this,n.ElementType.Directive,r)||this;return i.name=t,i}return o(t,e),t}(l);r.ProcessingInstruction=f;var m=function(e){function t(t,n){var r=e.call(this,t)||this;return r.children=n,r}return o(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(c);r.NodeWithChildren=m;var d=function(e){function t(t){return e.call(this,n.ElementType.Root,t)||this}return o(t,e),t}(m);r.Document=d;var h=function(e){function t(t,r,i,o){void 0===i&&(i=[]),void 0===o&&(o="script"===t?n.ElementType.Script:"style"===t?n.ElementType.Style:n.ElementType.Tag);var u=e.call(this,o,i)||this;return u.name=t,u.attribs=r,u}return o(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(m);function y(e){return(0,n.isTag)(e)}function b(e){return e.type===n.ElementType.CDATA}function v(e){return e.type===n.ElementType.Text}function x(e){return e.type===n.ElementType.Comment}function T(e){return e.type===n.ElementType.Directive}function g(e){return e.type===n.ElementType.Root}function E(e,t){var r;if(void 0===t&&(t=!1),v(e))r=new s(e.data);else if(x(e))r=new p(e.data);else if(y(e)){var i=t?j(e.children):[],o=new h(e.name,u({},e.attribs),i);i.forEach((function(e){return e.parent=o})),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=u({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=u({},e["x-attribsPrefix"])),r=o}else if(b(e)){i=t?j(e.children):[];var a=new m(n.ElementType.CDATA,i);i.forEach((function(e){return e.parent=a})),r=a}else if(g(e)){i=t?j(e.children):[];var c=new d(i);i.forEach((function(e){return e.parent=c})),e["x-mode"]&&(c["x-mode"]=e["x-mode"]),r=c}else{if(!T(e))throw new Error("Not implemented yet: "+e.type);var l=new f(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),r=l}return r.startIndex=e.startIndex,r.endIndex=e.endIndex,r}function j(e){for(var t=e.map((function(e){return E(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}r.Element=h,r.isTag=y,r.isCDATA=b,r.isText=v,r.isComment=x,r.isDirective=T,r.isDocument=g,r.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},r.cloneNode=E}));export{r as n};
@@ -1 +1 @@
1
- import r from"./utilities.js";import o from"../../../../_virtual/Parser.js_commonjs-proxy.js";import t from"../../../../_virtual/index.js_commonjs-proxy23.js";var e=o.Parser,n=t.DomHandler,i=r.unsetRootParent;var s=function(r,o){if("string"!=typeof r)throw new TypeError("First argument must be a string.");if(""===r)return[];var t=new n(void 0,o);return new e(t,o).end(r),i(t.dom)};export{s as default};
1
+ import r from"./utilities.js";import o from"../../../../_virtual/Parser.js_commonjs-proxy.js";import t from"../../../../_virtual/index.js_commonjs-proxy9.js";var e=o.Parser,n=t.DomHandler,i=r.unsetRootParent;var s=function(r,o){if("string"!=typeof r)throw new TypeError("First argument must be a string.");if(""===r)return[];var t=new n(void 0,o);return new e(t,o).end(r),i(t.dom)};export{s as default};