@digi-frontend/dgate-api-documentation 1.0.39 → 1.0.47

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 (353) hide show
  1. package/.editorconfig +12 -12
  2. package/.prettierignore +7 -7
  3. package/.prettierrc +15 -15
  4. package/dist/{a7568b270e175038.svg → 070dc6ecd197bc80.svg} +8 -8
  5. package/dist/16702d92fd6d1730.svg +6 -0
  6. package/dist/2b546d6e9fdf604a.svg +3 -0
  7. package/dist/2c3c6c2c3b835504.svg +5 -0
  8. package/dist/{43595976d1fdccbf.svg → 2e10bbdb265df50e.svg} +4 -4
  9. package/dist/55b5994c5781482b.svg +5 -0
  10. package/dist/60bef8083c55f46b.svg +6 -0
  11. package/dist/68c710e0583e19e6.svg +5 -0
  12. package/dist/731221b3f242672d.svg +4 -0
  13. package/dist/{b82c7612e73342f3.svg → 7f54eeb0bb2d1150.svg} +3 -3
  14. package/dist/8520b6792278d9df.svg +6 -0
  15. package/dist/{56dc416b683db280.svg → 8789eb84283ea95b.svg} +5 -5
  16. package/dist/9506ef7a26a74147.svg +12 -0
  17. package/dist/9b7aee27757b5036.svg +3 -0
  18. package/dist/{af16a554be8c4d69.svg → 9bdff13f8d8fa48a.svg} +3 -3
  19. package/dist/_virtual/index3.js +1 -1
  20. package/dist/_virtual/index4.js +1 -1
  21. package/dist/_virtual/index5.js +1 -1
  22. package/dist/{64efc2716808c4a4.svg → bb8b87cace25e052.svg} +3 -3
  23. package/dist/cceb1e5dc06b0b85.svg +4 -0
  24. package/dist/d140a601c85bac25.svg +3 -0
  25. package/dist/{72db3b05a96dd600.svg → d32ce84bbd78babd.svg} +3 -3
  26. package/dist/{844eba3f2e42a9eb.svg → d501922060662842.svg} +3 -3
  27. package/dist/d6d0a98ec38e6b77.svg +3 -0
  28. package/dist/e04479ad425e7d58.svg +4 -0
  29. package/dist/f4a32992f02af522.svg +5 -0
  30. package/dist/node_modules/dom-serializer/lib/foreignNames.js +2 -0
  31. package/dist/node_modules/dom-serializer/lib/foreignNames.js.map +1 -0
  32. package/dist/node_modules/dom-serializer/lib/index.js +2 -0
  33. package/dist/node_modules/dom-serializer/lib/index.js.map +1 -0
  34. package/dist/node_modules/dom-serializer/node_modules/entities/lib/decode.js +2 -0
  35. package/dist/node_modules/dom-serializer/node_modules/entities/lib/decode.js.map +1 -0
  36. package/dist/node_modules/dom-serializer/node_modules/entities/lib/decode_codepoint.js +2 -0
  37. package/dist/node_modules/dom-serializer/node_modules/entities/lib/decode_codepoint.js.map +1 -0
  38. package/dist/node_modules/dom-serializer/node_modules/entities/lib/encode.js +2 -0
  39. package/dist/node_modules/dom-serializer/node_modules/entities/lib/encode.js.map +1 -0
  40. package/dist/node_modules/dom-serializer/node_modules/entities/lib/escape.js +2 -0
  41. package/dist/node_modules/dom-serializer/node_modules/entities/lib/escape.js.map +1 -0
  42. package/dist/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-html.js +2 -0
  43. package/dist/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-html.js.map +1 -0
  44. package/dist/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-xml.js +2 -0
  45. package/dist/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-xml.js.map +1 -0
  46. package/dist/node_modules/dom-serializer/node_modules/entities/lib/generated/encode-html.js +2 -0
  47. package/dist/node_modules/dom-serializer/node_modules/entities/lib/generated/encode-html.js.map +1 -0
  48. package/dist/node_modules/dom-serializer/node_modules/entities/lib/index.js +2 -0
  49. package/dist/node_modules/dom-serializer/node_modules/entities/lib/index.js.map +1 -0
  50. package/dist/node_modules/domhandler/lib/index.js +2 -0
  51. package/dist/node_modules/domhandler/lib/index.js.map +1 -0
  52. package/dist/node_modules/domhandler/lib/node.js +2 -0
  53. package/dist/node_modules/domhandler/lib/node.js.map +1 -0
  54. package/dist/node_modules/domutils/lib/feeds.js +2 -0
  55. package/dist/node_modules/domutils/lib/feeds.js.map +1 -0
  56. package/dist/node_modules/domutils/lib/helpers.js +2 -0
  57. package/dist/node_modules/domutils/lib/helpers.js.map +1 -0
  58. package/dist/node_modules/domutils/lib/index.js +2 -0
  59. package/dist/node_modules/domutils/lib/index.js.map +1 -0
  60. package/dist/node_modules/domutils/lib/legacy.js +2 -0
  61. package/dist/node_modules/domutils/lib/legacy.js.map +1 -0
  62. package/dist/node_modules/domutils/lib/manipulation.js +2 -0
  63. package/dist/node_modules/domutils/lib/manipulation.js.map +1 -0
  64. package/dist/node_modules/domutils/lib/querying.js +2 -0
  65. package/dist/node_modules/domutils/lib/querying.js.map +1 -0
  66. package/dist/node_modules/domutils/lib/stringify.js +2 -0
  67. package/dist/node_modules/domutils/lib/stringify.js.map +1 -0
  68. package/dist/node_modules/domutils/lib/traversal.js +2 -0
  69. package/dist/node_modules/domutils/lib/traversal.js.map +1 -0
  70. package/dist/node_modules/entities/dist/commonjs/decode-codepoint.js +2 -0
  71. package/dist/node_modules/entities/dist/commonjs/decode-codepoint.js.map +1 -0
  72. package/dist/node_modules/entities/dist/commonjs/decode.js +2 -0
  73. package/dist/node_modules/entities/dist/commonjs/decode.js.map +1 -0
  74. package/dist/node_modules/entities/dist/commonjs/generated/decode-data-html.js +2 -0
  75. package/dist/node_modules/entities/dist/commonjs/generated/decode-data-html.js.map +1 -0
  76. package/dist/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +2 -0
  77. package/dist/node_modules/entities/dist/commonjs/generated/decode-data-xml.js.map +1 -0
  78. package/dist/node_modules/html-dom-parser/lib/server/html-to-dom.js +1 -1
  79. package/dist/node_modules/html-dom-parser/lib/server/html-to-dom.js.map +1 -1
  80. package/dist/node_modules/html-react-parser/lib/index.js +1 -1
  81. package/dist/node_modules/html-react-parser/lib/index.js.map +1 -1
  82. package/dist/node_modules/htmlparser2/dist/commonjs/Parser.js +1 -1
  83. package/dist/node_modules/htmlparser2/dist/commonjs/Parser.js.map +1 -1
  84. package/dist/node_modules/htmlparser2/dist/commonjs/Tokenizer.js +1 -1
  85. package/dist/node_modules/htmlparser2/dist/commonjs/Tokenizer.js.map +1 -1
  86. package/dist/node_modules/htmlparser2/dist/commonjs/index.js +1 -1
  87. package/dist/node_modules/htmlparser2/dist/commonjs/index.js.map +1 -1
  88. package/dist/node_modules/style-to-object/cjs/index.js +1 -1
  89. package/dist/node_modules/toposort/index.js +1 -1
  90. package/dist/node_modules/yup/index.esm.js +1 -1
  91. package/dist/src/assets/icons/AddRow.svg.js +1 -1
  92. package/dist/src/assets/icons/AddRow.svg.js.map +1 -1
  93. package/dist/src/assets/icons/ApiIcon.svg.js +2 -0
  94. package/dist/src/assets/icons/ApiIcon.svg.js.map +1 -0
  95. package/dist/src/assets/icons/ArrowBack.svg.js +2 -0
  96. package/dist/src/assets/icons/ArrowBack.svg.js.map +1 -0
  97. package/dist/src/assets/icons/BookIcon.svg.js +2 -0
  98. package/dist/src/assets/icons/BookIcon.svg.js.map +1 -0
  99. package/dist/src/assets/icons/CopySticker.svg.js +2 -0
  100. package/dist/src/assets/icons/CopySticker.svg.js.map +1 -0
  101. package/dist/src/assets/icons/DeleteIcon.svg.js +1 -1
  102. package/dist/src/assets/icons/DeleteIcon.svg.js.map +1 -1
  103. package/dist/src/assets/icons/DeleteOutlinedIcon.svg.js +2 -0
  104. package/dist/src/assets/icons/DeleteOutlinedIcon.svg.js.map +1 -0
  105. package/dist/src/assets/icons/DownArrow.svg.js +1 -1
  106. package/dist/src/assets/icons/DownArrow.svg.js.map +1 -1
  107. package/dist/src/assets/icons/EditIcon.svg.js +1 -1
  108. package/dist/src/assets/icons/EditIcon.svg.js.map +1 -1
  109. package/dist/src/assets/icons/FilterIcon.svg.js +2 -0
  110. package/dist/src/assets/icons/FilterIcon.svg.js.map +1 -0
  111. package/dist/src/assets/icons/Plus.svg.js +2 -0
  112. package/dist/src/assets/icons/Plus.svg.js.map +1 -0
  113. package/dist/src/assets/icons/PlusSquare.svg.js +2 -0
  114. package/dist/src/assets/icons/PlusSquare.svg.js.map +1 -0
  115. package/dist/src/assets/icons/RequestOption.svg.js +2 -0
  116. package/dist/src/assets/icons/RequestOption.svg.js.map +1 -0
  117. package/dist/src/assets/icons/arrowDownGray.svg.js +2 -0
  118. package/dist/src/assets/icons/arrowDownGray.svg.js.map +1 -0
  119. package/dist/src/assets/icons/arrowRightGray.svg.js +2 -0
  120. package/dist/src/assets/icons/arrowRightGray.svg.js.map +1 -0
  121. package/dist/src/assets/icons/close-circle.svg.js +2 -0
  122. package/dist/src/assets/icons/close-circle.svg.js.map +1 -0
  123. package/dist/src/assets/icons/document.svg.js +2 -0
  124. package/dist/src/assets/icons/document.svg.js.map +1 -0
  125. package/dist/src/assets/icons/eye.svg.js +2 -0
  126. package/dist/src/assets/icons/eye.svg.js.map +1 -0
  127. package/dist/src/assets/icons/infoIcon.svg.js +2 -0
  128. package/dist/src/assets/icons/infoIcon.svg.js.map +1 -0
  129. package/dist/src/assets/icons/searchIcon.svg.js +2 -0
  130. package/dist/src/assets/icons/searchIcon.svg.js.map +1 -0
  131. package/dist/src/components/InfoForm/InfoForm.js +1 -1
  132. package/dist/src/components/InfoForm/InfoForm.js.map +1 -1
  133. package/dist/src/components/JsonInput/JsonInput.js.map +1 -1
  134. package/dist/src/components/LivePreview/LivePreview.js +1 -1
  135. package/dist/src/components/LivePreview/LivePreview.js.map +1 -1
  136. package/dist/src/components/MethodAccordion/MethodAccordion.js +1 -1
  137. package/dist/src/components/MethodAccordion/MethodAccordion.js.map +1 -1
  138. package/dist/src/components/SVGLoader/SVGLoader.js.map +1 -1
  139. package/dist/src/components/SectionHead/SectionHead.js.map +1 -1
  140. package/dist/src/components/SimpleLabelValue/SimpleLabelValue.js.map +1 -1
  141. package/dist/src/components/Tooltip/Tooltip.js.map +1 -1
  142. package/dist/src/components/dialog/index.js +1 -1
  143. package/dist/src/components/dialog/index.js.map +1 -1
  144. package/dist/src/components/table/table.js +1 -1
  145. package/dist/src/components/table/table.js.map +1 -1
  146. package/dist/src/components/table/tags-table.js.map +1 -1
  147. package/dist/src/constants/index.js +1 -1
  148. package/dist/src/constants/index.js.map +1 -1
  149. package/dist/src/constants/methods.constant.js +2 -0
  150. package/dist/src/constants/methods.constant.js.map +1 -0
  151. package/dist/src/constants/regex.js.map +1 -1
  152. package/dist/src/helpers/layout.helper.js +1 -1
  153. package/dist/src/helpers/layout.helper.js.map +1 -1
  154. package/dist/src/helpers/methodAccordion.helper.js.map +1 -1
  155. package/dist/src/index.js +1 -1
  156. package/dist/src/layout/docsComponents/DocsAside/DocsAside.js +2 -0
  157. package/dist/src/layout/docsComponents/DocsAside/DocsAside.js.map +1 -0
  158. package/dist/src/layout/docsComponents/DocsContent/DocsContent.js +2 -0
  159. package/dist/src/layout/docsComponents/DocsContent/DocsContent.js.map +1 -0
  160. package/dist/src/layout/docsComponents/DocsContent/EndpointPage/index.js +2 -0
  161. package/dist/src/layout/docsComponents/DocsContent/EndpointPage/index.js.map +1 -0
  162. package/dist/src/layout/docsComponents/DocsHeader/DocsHeader.js +2 -0
  163. package/dist/src/layout/docsComponents/DocsHeader/DocsHeader.js.map +1 -0
  164. package/dist/src/layout/docsComponents/DocsHeader/DocsHeader.module.scss.js +2 -0
  165. package/dist/src/layout/docsComponents/DocsHeader/DocsHeader.module.scss.js.map +1 -0
  166. package/dist/src/layout/docsComponents/DocsSideMenuTree/DocsSideMenuTree.js +2 -0
  167. package/dist/src/layout/docsComponents/DocsSideMenuTree/DocsSideMenuTree.js.map +1 -0
  168. package/dist/src/layout/docsComponents/index.js +2 -0
  169. package/dist/src/layout/docsComponents/index.js.map +1 -0
  170. package/dist/src/layout/docsLayout.js +2 -0
  171. package/dist/src/layout/docsLayout.js.map +1 -0
  172. package/dist/src/layout/layout.js +1 -1
  173. package/dist/src/layout/layout.js.map +1 -1
  174. package/dist/src/validator/form.scheme.js +1 -1
  175. package/dist/src/validator/form.scheme.js.map +1 -1
  176. package/dist/styles.css +1436 -368
  177. package/dist/types/assets/icons/index.d.ts +16 -1
  178. package/dist/types/components/LivePreview/LivePreview.d.ts +1 -0
  179. package/dist/types/components/MethodAccordion/MethodAccordion.d.ts +2 -1
  180. package/dist/types/components/dialog/dialog.d.ts +3 -0
  181. package/dist/types/components/table/table.d.ts +2 -1
  182. package/dist/types/constants/methods.constant.d.ts +16 -0
  183. package/dist/types/helpers/docs.helper.d.ts +3 -0
  184. package/dist/types/index.d.ts +1 -0
  185. package/dist/types/layout/docsComponents/DocsAside/DocsAside.d.ts +3 -0
  186. package/dist/types/layout/docsComponents/DocsContent/DocsContent.d.ts +3 -0
  187. package/dist/types/layout/docsComponents/DocsContent/EndpointPage/index.d.ts +2 -0
  188. package/dist/types/layout/docsComponents/DocsContent/TagPage/index.d.ts +2 -0
  189. package/dist/types/layout/docsComponents/DocsHeader/DocsHeader.d.ts +3 -0
  190. package/dist/types/layout/docsComponents/DocsSideMenuTree/DocsSideMenuTree.d.ts +8 -0
  191. package/dist/types/layout/docsComponents/index.d.ts +17 -0
  192. package/dist/types/layout/docsLayout.d.ts +33 -0
  193. package/dist/types/layout/layout.d.ts +2 -1
  194. package/dist/types/types/layout.type.d.ts +1 -0
  195. package/dist/types/types/openApi.d.ts +4 -4
  196. package/dist/types/validator/form.scheme.d.ts +10 -2
  197. package/package.json +45 -43
  198. package/rollup.config.js +35 -35
  199. package/src/assets/icons/AddRow.svg +3 -3
  200. package/src/assets/icons/ApiIcon.svg +12 -0
  201. package/src/assets/icons/ArrowBack.svg +3 -0
  202. package/src/assets/icons/BookIcon.svg +6 -0
  203. package/src/assets/icons/CheckMarkSquare.svg +5 -5
  204. package/src/assets/icons/CloseIcon.svg +4 -4
  205. package/src/assets/icons/CopySticker.svg +6 -0
  206. package/src/assets/icons/DeleteIcon.svg +3 -3
  207. package/src/assets/icons/DeleteOutlinedIcon.svg +8 -0
  208. package/src/assets/icons/DownArrow.svg +3 -3
  209. package/src/assets/icons/EditIcon.svg +3 -3
  210. package/src/assets/icons/FilterIcon.svg +4 -0
  211. package/src/assets/icons/Plus.svg +5 -0
  212. package/src/assets/icons/PlusSquare.svg +3 -0
  213. package/src/assets/icons/RequestOption.svg +5 -0
  214. package/src/assets/icons/UpArrow.svg +3 -3
  215. package/src/assets/icons/arrowDownGray.svg +3 -0
  216. package/src/assets/icons/arrowRightGray.svg +3 -0
  217. package/src/assets/icons/close-circle.svg +5 -0
  218. package/src/assets/icons/deleteOutlinedIcon.svg +8 -8
  219. package/src/assets/icons/document.svg +6 -0
  220. package/src/assets/icons/eye.svg +4 -0
  221. package/src/assets/icons/index.ts +23 -8
  222. package/src/assets/icons/infoIcon.svg +5 -0
  223. package/src/assets/icons/searchIcon.svg +4 -0
  224. package/src/components/Chips/Chips.tsx +87 -87
  225. package/src/components/Chips/style.scss +147 -147
  226. package/src/components/InfoForm/InfoForm.module.scss +165 -165
  227. package/src/components/InfoForm/InfoForm.tsx +423 -428
  228. package/src/components/JsonInput/JsonInput.tsx +149 -149
  229. package/src/components/JsonInput/style.module.scss +133 -133
  230. package/src/components/LivePreview/LivePreview.module.scss +180 -24
  231. package/src/components/LivePreview/LivePreview.tsx +226 -191
  232. package/src/components/MethodAccordion/MethodAccordion.module.scss +386 -338
  233. package/src/components/MethodAccordion/MethodAccordion.tsx +670 -514
  234. package/src/components/SVGLoader/SVGLoader.tsx +96 -94
  235. package/src/components/SectionHead/SectionHead.scss +29 -29
  236. package/src/components/SectionHead/SectionHead.tsx +22 -22
  237. package/src/components/SimpleLabelValue/SimpleLabelValue.tsx +31 -31
  238. package/src/components/SimpleLabelValue/index.ts +1 -1
  239. package/src/components/SimpleLabelValue/style.scss +30 -30
  240. package/src/components/Tooltip/Tooltip.scss +133 -133
  241. package/src/components/Tooltip/Tooltip.tsx +85 -85
  242. package/src/components/_global.scss +337 -337
  243. package/src/components/dialog/dialog.ts +57 -54
  244. package/src/components/dialog/index.tsx +86 -85
  245. package/src/components/dialog/style.scss +188 -104
  246. package/src/components/table/style.scss +217 -190
  247. package/src/components/table/table.tsx +489 -327
  248. package/src/components/table/tags-table.tsx +348 -348
  249. package/src/constants/index.ts +95 -93
  250. package/src/constants/methods.constant.ts +26 -0
  251. package/src/constants/regex.ts +7 -7
  252. package/src/global.d.ts +13 -13
  253. package/src/helpers/docs.helper.ts +28 -0
  254. package/src/helpers/layout.helper.ts +176 -174
  255. package/src/helpers/methodAccordion.helper.ts +19 -19
  256. package/src/index.ts +2 -1
  257. package/src/layout/docsComponents/DocsAside/DocsAside.tsx +8 -0
  258. package/src/layout/docsComponents/DocsAside/style.scss +3 -0
  259. package/src/layout/docsComponents/DocsContent/DocsContent.tsx +13 -0
  260. package/src/layout/docsComponents/DocsContent/EndpointPage/index.tsx +183 -0
  261. package/src/layout/docsComponents/DocsContent/EndpointPage/style.scss +230 -0
  262. package/src/layout/docsComponents/DocsContent/TagPage/index.tsx +111 -0
  263. package/src/layout/docsComponents/DocsContent/TagPage/style.scss +246 -0
  264. package/src/layout/docsComponents/DocsContent/style.scss +0 -0
  265. package/src/layout/docsComponents/DocsHeader/DocsHeader.module.scss +198 -0
  266. package/src/layout/docsComponents/DocsHeader/DocsHeader.tsx +119 -0
  267. package/src/layout/docsComponents/DocsSideMenuTree/DocsSideMenuTree.tsx +183 -0
  268. package/src/layout/docsComponents/DocsSideMenuTree/style.scss +195 -0
  269. package/src/layout/docsComponents/index.scss +47 -0
  270. package/src/layout/docsComponents/index.tsx +28 -0
  271. package/src/layout/docsLayout.tsx +69 -0
  272. package/src/layout/layout.module.css +61 -61
  273. package/src/layout/layout.tsx +162 -150
  274. package/src/types/layout.type.ts +31 -30
  275. package/src/types/openApi.ts +108 -108
  276. package/src/types/transformedOpenApi.ts +52 -52
  277. package/src/validator/form.scheme.ts +88 -70
  278. package/tsconfig.json +33 -33
  279. package/dist/_virtual/index20.js +0 -2
  280. package/dist/_virtual/index20.js.map +0 -1
  281. package/dist/_virtual/index21.js +0 -2
  282. package/dist/_virtual/index21.js.map +0 -1
  283. package/dist/_virtual/node2.js +0 -2
  284. package/dist/_virtual/node2.js.map +0 -1
  285. package/dist/_virtual/node3.js +0 -2
  286. package/dist/_virtual/node3.js.map +0 -1
  287. package/dist/node_modules/html-dom-parser/node_modules/domhandler/lib/index.js +0 -2
  288. package/dist/node_modules/html-dom-parser/node_modules/domhandler/lib/index.js.map +0 -1
  289. package/dist/node_modules/html-dom-parser/node_modules/domhandler/lib/node.js +0 -2
  290. package/dist/node_modules/html-dom-parser/node_modules/domhandler/lib/node.js.map +0 -1
  291. package/dist/node_modules/html-react-parser/node_modules/domhandler/lib/index.js +0 -2
  292. package/dist/node_modules/html-react-parser/node_modules/domhandler/lib/index.js.map +0 -1
  293. package/dist/node_modules/html-react-parser/node_modules/domhandler/lib/node.js +0 -2
  294. package/dist/node_modules/html-react-parser/node_modules/domhandler/lib/node.js.map +0 -1
  295. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/lib/foreignNames.js +0 -2
  296. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/lib/foreignNames.js.map +0 -1
  297. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/lib/index.js +0 -2
  298. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/lib/index.js.map +0 -1
  299. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/decode.js +0 -2
  300. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/decode.js.map +0 -1
  301. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/decode_codepoint.js +0 -2
  302. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/decode_codepoint.js.map +0 -1
  303. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/encode.js +0 -2
  304. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/encode.js.map +0 -1
  305. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/escape.js +0 -2
  306. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/escape.js.map +0 -1
  307. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-html.js +0 -2
  308. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-html.js.map +0 -1
  309. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-xml.js +0 -2
  310. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/generated/decode-data-xml.js.map +0 -1
  311. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/generated/encode-html.js +0 -2
  312. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/generated/encode-html.js.map +0 -1
  313. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/index.js +0 -2
  314. package/dist/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities/lib/index.js.map +0 -1
  315. package/dist/node_modules/htmlparser2/node_modules/domhandler/lib/index.js +0 -2
  316. package/dist/node_modules/htmlparser2/node_modules/domhandler/lib/index.js.map +0 -1
  317. package/dist/node_modules/htmlparser2/node_modules/domhandler/lib/node.js +0 -2
  318. package/dist/node_modules/htmlparser2/node_modules/domhandler/lib/node.js.map +0 -1
  319. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/feeds.js +0 -2
  320. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/feeds.js.map +0 -1
  321. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/helpers.js +0 -2
  322. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/helpers.js.map +0 -1
  323. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/index.js +0 -2
  324. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/index.js.map +0 -1
  325. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/legacy.js +0 -2
  326. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/legacy.js.map +0 -1
  327. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/manipulation.js +0 -2
  328. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/manipulation.js.map +0 -1
  329. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/querying.js +0 -2
  330. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/querying.js.map +0 -1
  331. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/stringify.js +0 -2
  332. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/stringify.js.map +0 -1
  333. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/traversal.js +0 -2
  334. package/dist/node_modules/htmlparser2/node_modules/domutils/lib/traversal.js.map +0 -1
  335. package/dist/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js +0 -2
  336. package/dist/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js.map +0 -1
  337. package/dist/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js +0 -2
  338. package/dist/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js.map +0 -1
  339. package/dist/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.js +0 -2
  340. package/dist/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.js.map +0 -1
  341. package/dist/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +0 -2
  342. package/dist/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.js.map +0 -1
  343. package/dist/src/assets/icons/CheckMarkSquare.svg.js +0 -2
  344. package/dist/src/assets/icons/CheckMarkSquare.svg.js.map +0 -1
  345. package/dist/src/assets/icons/CloseIcon.svg.js +0 -2
  346. package/dist/src/assets/icons/CloseIcon.svg.js.map +0 -1
  347. package/dist/src/assets/icons/UpArrow.svg.js +0 -2
  348. package/dist/src/assets/icons/UpArrow.svg.js.map +0 -1
  349. package/dist/src/assets/icons/deleteOutlinedIcon.svg.js +0 -2
  350. package/dist/src/assets/icons/deleteOutlinedIcon.svg.js.map +0 -1
  351. package/dist/src/components/Chips/Chips.js +0 -2
  352. package/dist/src/components/Chips/Chips.js.map +0 -1
  353. package/dist/types/types/index.d.ts +0 -18
@@ -1,52 +1,52 @@
1
- import { TransformedPathsArray } from "./layout.type";
2
-
3
- export interface TransformedOpenApi {
4
- openapi: string;
5
- info: {
6
- title: string;
7
- description?: string;
8
- version: string;
9
- };
10
- servers?: {
11
- url: string;
12
- description?: string;
13
- }[];
14
- paths: TransformedPathsArray;
15
- components?: {
16
- schemas?: {
17
- [schemaName: string]: Schema;
18
- };
19
- securitySchemes?: {
20
- [schemeName: string]: SecurityScheme;
21
- };
22
- };
23
- security?: {
24
- [schemeName: string]: string[];
25
- }[];
26
- tags?: {
27
- name: string;
28
- description?: string;
29
- }[];
30
- }
31
-
32
- interface Schema {
33
- type?: string;
34
- format?: string;
35
- properties?: {
36
- [propertyName: string]: Schema;
37
- };
38
- items?: Schema;
39
- enum?: string[];
40
- required?: string[];
41
- }
42
-
43
- interface SecurityScheme {
44
- type: "apiKey" | "http" | "oauth2" | "openIdConnect";
45
- description?: string;
46
- name?: string;
47
- in?: "query" | "header" | "cookie";
48
- scheme?: string;
49
- bearerFormat?: string;
50
- flows?: any;
51
- openIdConnectUrl?: string;
52
- }
1
+ import { TransformedPathsArray } from "./layout.type";
2
+
3
+ export interface TransformedOpenApi {
4
+ openapi: string;
5
+ info: {
6
+ title: string;
7
+ description?: string;
8
+ version: string;
9
+ };
10
+ servers?: {
11
+ url: string;
12
+ description?: string;
13
+ }[];
14
+ paths: TransformedPathsArray;
15
+ components?: {
16
+ schemas?: {
17
+ [schemaName: string]: Schema;
18
+ };
19
+ securitySchemes?: {
20
+ [schemeName: string]: SecurityScheme;
21
+ };
22
+ };
23
+ security?: {
24
+ [schemeName: string]: string[];
25
+ }[];
26
+ tags?: {
27
+ name: string;
28
+ description?: string;
29
+ }[];
30
+ }
31
+
32
+ interface Schema {
33
+ type?: string;
34
+ format?: string;
35
+ properties?: {
36
+ [propertyName: string]: Schema;
37
+ };
38
+ items?: Schema;
39
+ enum?: string[];
40
+ required?: string[];
41
+ }
42
+
43
+ interface SecurityScheme {
44
+ type: "apiKey" | "http" | "oauth2" | "openIdConnect";
45
+ description?: string;
46
+ name?: string;
47
+ in?: "query" | "header" | "cookie";
48
+ scheme?: string;
49
+ bearerFormat?: string;
50
+ flows?: any;
51
+ openIdConnectUrl?: string;
52
+ }
@@ -1,70 +1,88 @@
1
- import * as yup from 'yup'
2
- export const schemaValidation = yup.object({
3
- openapi: yup.string().required(),
4
- info: yup
5
- .object({
6
- title: yup.string().trim().required('API Name is required.'),
7
- description: yup.string().trim().required('API Description is required.'),
8
- version: yup.string().required('API Version is required'),
9
- })
10
- .required(),
11
- servers: yup
12
- .array(
13
- yup.object({
14
- url: yup.string().url().required(),
15
- description: yup.string().optional(),
16
- })
17
- )
18
- .optional(),
19
- paths: yup.mixed().required(), // Assuming TransformedPathsArray is validated elsewhere
20
- components: yup
21
- .object({
22
- schemas: yup
23
- .lazy((value) =>
24
- yup.object(
25
- value
26
- ? Object.keys(value).reduce((acc, key) => {
27
- acc[key] = yup.object({
28
- type: yup.string().optional(),
29
- format: yup.string().optional(),
30
- properties: yup
31
- .lazy((props) =>
32
- yup.object(
33
- props
34
- ? Object.keys(props).reduce((acc, propKey) => {
35
- acc[propKey] = yup.mixed()
36
- return acc
37
- }, {})
38
- : {}
39
- )
40
- )
41
- .optional(),
42
- items: yup.mixed().optional(),
43
- enum: yup.array(yup.string()).optional(),
44
- required: yup.array(yup.string()).optional(),
45
- })
46
- return acc
47
- }, {})
48
- : {}
49
- )
50
- )
51
- .optional(),
52
- securitySchemes: yup.object().optional(),
53
- })
54
- .optional(),
55
- security: yup
56
- .array(
57
- yup.object().shape({
58
- schemeName: yup.array(yup.string()).optional(),
59
- })
60
- )
61
- .optional(),
62
- tags: yup
63
- .array(
64
- yup.object({
65
- name: yup.string().required(),
66
- description: yup.string().optional(),
67
- })
68
- )
69
- .optional(),
70
- })
1
+ import * as yup from 'yup'
2
+ export const schemaValidation = yup.object({
3
+ openapi: yup.string().required(),
4
+ info: yup
5
+ .object({
6
+ title: yup.string().trim().required('API Name is required.'),
7
+ description: yup.string().trim().required('API Description is required.'),
8
+ version: yup.string().required('API Version is required'),
9
+ })
10
+ .required(),
11
+ servers: yup
12
+ .array(
13
+ yup.object({
14
+ url: yup.string().url().required(),
15
+ description: yup.string().optional(),
16
+ })
17
+ )
18
+ .optional(),
19
+ paths: yup
20
+ .array()
21
+ .of(
22
+ yup.object().shape({
23
+ path: yup.string().required(),
24
+ methods: yup
25
+ .array()
26
+ .of(
27
+ yup.object().shape({
28
+ summary: yup.string().trim().required('Endpoint Name is required.'),
29
+ description: yup.string().trim().optional(),
30
+ type: yup.string().optional(),
31
+ tags: yup.array().of(yup.string()).optional(),
32
+ })
33
+ )
34
+ .required(),
35
+ })
36
+ )
37
+ .required(),
38
+ components: yup
39
+ .object({
40
+ schemas: yup
41
+ .lazy((value) =>
42
+ yup.object(
43
+ value
44
+ ? Object.keys(value).reduce((acc, key) => {
45
+ acc[key] = yup.object({
46
+ type: yup.string().optional(),
47
+ format: yup.string().optional(),
48
+ properties: yup
49
+ .lazy((props) =>
50
+ yup.object(
51
+ props
52
+ ? Object.keys(props).reduce((acc, propKey) => {
53
+ acc[propKey] = yup.mixed()
54
+ return acc
55
+ }, {})
56
+ : {}
57
+ )
58
+ )
59
+ .optional(),
60
+ items: yup.mixed().optional(),
61
+ enum: yup.array(yup.string()).optional(),
62
+ required: yup.array(yup.string()).optional(),
63
+ })
64
+ return acc
65
+ }, {})
66
+ : {}
67
+ )
68
+ )
69
+ .optional(),
70
+ securitySchemes: yup.object().optional(),
71
+ })
72
+ .optional(),
73
+ security: yup
74
+ .array(
75
+ yup.object().shape({
76
+ schemeName: yup.array(yup.string()).optional(),
77
+ })
78
+ )
79
+ .optional(),
80
+ tags: yup
81
+ .array(
82
+ yup.object({
83
+ name: yup.string().required(),
84
+ description: yup.string().optional(),
85
+ })
86
+ )
87
+ .optional(),
88
+ })
package/tsconfig.json CHANGED
@@ -1,33 +1,33 @@
1
- {
2
- "compilerOptions": {
3
- "outDir": "dist",
4
- "module": "ESNext",
5
- "target": "ES6",
6
- "lib": ["DOM", "DOM.Iterable", "ESNext"],
7
- "declaration": true,
8
- "declarationDir": "dist/types",
9
- "jsx": "react-jsx",
10
- "strict": false,
11
- "moduleResolution": "node",
12
- "esModuleInterop": true,
13
- "skipLibCheck": true,
14
- "forceConsistentCasingInFileNames": true,
15
- "importHelpers": true,
16
- "resolveJsonModule": true,
17
- "plugins": [
18
- {
19
- "name": "typescript-plugin-css-modules"
20
- }
21
- ],
22
- "baseUrl": "./",
23
- "paths": {
24
- "@components/*": ["src/components/*"],
25
- "@icons": ["src/assets/icons"],
26
- "@constants/*": ["src/constants/*"],
27
- "@entities/*": ["src/types/*"],
28
- "@helpers/*": ["src/helpers/*"]
29
- }
30
- },
31
- "include": ["src", "src/global.d.ts"], // Add "src/global.d.ts" here
32
- "exclude": ["node_modules", "dist"]
33
- }
1
+ {
2
+ "compilerOptions": {
3
+ "outDir": "dist",
4
+ "module": "ESNext",
5
+ "target": "ES6",
6
+ "lib": ["DOM", "DOM.Iterable", "ESNext"],
7
+ "declaration": true,
8
+ "declarationDir": "dist/types",
9
+ "jsx": "react-jsx",
10
+ "strict": false,
11
+ "moduleResolution": "node",
12
+ "esModuleInterop": true,
13
+ "skipLibCheck": true,
14
+ "forceConsistentCasingInFileNames": true,
15
+ "importHelpers": true,
16
+ "resolveJsonModule": true,
17
+ "plugins": [
18
+ {
19
+ "name": "typescript-plugin-css-modules"
20
+ }
21
+ ],
22
+ "baseUrl": "./",
23
+ "paths": {
24
+ "@components/*": ["src/components/*"],
25
+ "@icons": ["src/assets/icons"],
26
+ "@constants/*": ["src/constants/*"],
27
+ "@entities/*": ["src/types/*"],
28
+ "@helpers/*": ["src/helpers/*"]
29
+ }
30
+ },
31
+ "include": ["src", "src/global.d.ts"], // Add "src/global.d.ts" here
32
+ "exclude": ["node_modules", "dist"]
33
+ }
@@ -1,2 +0,0 @@
1
- var r={};export{r as __exports};
2
- //# sourceMappingURL=index20.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index20.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- var r={};export{r as __exports};
2
- //# sourceMappingURL=index21.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index21.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- var r={};export{r as __exports};
2
- //# sourceMappingURL=node2.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"node2.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- var r={};export{r as __exports};
2
- //# sourceMappingURL=node3.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"node3.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{__exports as t}from"../../../../../_virtual/index15.js";import{__require as e}from"../../../../domelementtype/lib/index.js";import{__require as n}from"./node.js";var o;function i(){return o||(o=1,function(o){var i=t&&t.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,o,i)}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),s=t&&t.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(o,"__esModule",{value:!0}),o.DomHandler=void 0;var r=e(),a=n();s(n(),o);var d={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function t(t,e,n){this.dom=[],this.root=new a.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 a.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 n=this.options.xmlMode?r.ElementType.Tag:void 0,o=new a.Element(t,e,void 0,n);this.addNode(o),this.tagStack.push(o)},t.prototype.ontext=function(t){var e=this.lastNode;if(e&&e.type===r.ElementType.Text)e.data+=t,this.options.withEndIndices&&(e.endIndex=this.parser.endIndex);else{var n=new a.Text(t);this.addNode(n),this.lastNode=n}},t.prototype.oncomment=function(t){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment)this.lastNode.data+=t;else{var e=new a.Comment(t);this.addNode(e),this.lastNode=e}},t.prototype.oncommentend=function(){this.lastNode=null},t.prototype.oncdatastart=function(){var t=new a.Text(""),e=new a.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 a.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}();o.DomHandler=l,o.default=l}(t)),t}export{i as __require};
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../node_modules/html-dom-parser/node_modules/domhandler/lib/index.js"],"sourcesContent":["\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DomHandler = void 0;\nvar domelementtype_1 = require(\"domelementtype\");\nvar node_js_1 = require(\"./node.js\");\n__exportStar(require(\"./node.js\"), exports);\n// Default options\nvar defaultOpts = {\n withStartIndices: false,\n withEndIndices: false,\n xmlMode: false,\n};\nvar DomHandler = /** @class */ (function () {\n /**\n * @param callback Called once parsing has completed.\n * @param options Settings for the handler.\n * @param elementCB Callback whenever a tag is closed.\n */\n function DomHandler(callback, options, elementCB) {\n /** The elements of the DOM */\n this.dom = [];\n /** The root element for the DOM */\n this.root = new node_js_1.Document(this.dom);\n /** Indicated whether parsing has been completed. */\n this.done = false;\n /** Stack of open tags. */\n this.tagStack = [this.root];\n /** A data node that is still being written to. */\n this.lastNode = null;\n /** Reference to the parser instance. Used for location information. */\n this.parser = null;\n // Make it possible to skip arguments, for backwards-compatibility\n if (typeof options === \"function\") {\n elementCB = options;\n options = defaultOpts;\n }\n if (typeof callback === \"object\") {\n options = callback;\n callback = undefined;\n }\n this.callback = callback !== null && callback !== void 0 ? callback : null;\n this.options = options !== null && options !== void 0 ? options : defaultOpts;\n this.elementCB = elementCB !== null && elementCB !== void 0 ? elementCB : null;\n }\n DomHandler.prototype.onparserinit = function (parser) {\n this.parser = parser;\n };\n // Resets the handler back to starting state\n DomHandler.prototype.onreset = function () {\n this.dom = [];\n this.root = new node_js_1.Document(this.dom);\n this.done = false;\n this.tagStack = [this.root];\n this.lastNode = null;\n this.parser = null;\n };\n // Signals the handler that parsing is done\n DomHandler.prototype.onend = function () {\n if (this.done)\n return;\n this.done = true;\n this.parser = null;\n this.handleCallback(null);\n };\n DomHandler.prototype.onerror = function (error) {\n this.handleCallback(error);\n };\n DomHandler.prototype.onclosetag = function () {\n this.lastNode = null;\n var elem = this.tagStack.pop();\n if (this.options.withEndIndices) {\n elem.endIndex = this.parser.endIndex;\n }\n if (this.elementCB)\n this.elementCB(elem);\n };\n DomHandler.prototype.onopentag = function (name, attribs) {\n var type = this.options.xmlMode ? domelementtype_1.ElementType.Tag : undefined;\n var element = new node_js_1.Element(name, attribs, undefined, type);\n this.addNode(element);\n this.tagStack.push(element);\n };\n DomHandler.prototype.ontext = function (data) {\n var lastNode = this.lastNode;\n if (lastNode && lastNode.type === domelementtype_1.ElementType.Text) {\n lastNode.data += data;\n if (this.options.withEndIndices) {\n lastNode.endIndex = this.parser.endIndex;\n }\n }\n else {\n var node = new node_js_1.Text(data);\n this.addNode(node);\n this.lastNode = node;\n }\n };\n DomHandler.prototype.oncomment = function (data) {\n if (this.lastNode && this.lastNode.type === domelementtype_1.ElementType.Comment) {\n this.lastNode.data += data;\n return;\n }\n var node = new node_js_1.Comment(data);\n this.addNode(node);\n this.lastNode = node;\n };\n DomHandler.prototype.oncommentend = function () {\n this.lastNode = null;\n };\n DomHandler.prototype.oncdatastart = function () {\n var text = new node_js_1.Text(\"\");\n var node = new node_js_1.CDATA([text]);\n this.addNode(node);\n text.parent = node;\n this.lastNode = text;\n };\n DomHandler.prototype.oncdataend = function () {\n this.lastNode = null;\n };\n DomHandler.prototype.onprocessinginstruction = function (name, data) {\n var node = new node_js_1.ProcessingInstruction(name, data);\n this.addNode(node);\n };\n DomHandler.prototype.handleCallback = function (error) {\n if (typeof this.callback === \"function\") {\n this.callback(error, this.dom);\n }\n else if (error) {\n throw error;\n }\n };\n DomHandler.prototype.addNode = function (node) {\n var parent = this.tagStack[this.tagStack.length - 1];\n var previousSibling = parent.children[parent.children.length - 1];\n if (this.options.withStartIndices) {\n node.startIndex = this.parser.startIndex;\n }\n if (this.options.withEndIndices) {\n node.endIndex = this.parser.endIndex;\n }\n parent.children.push(node);\n if (previousSibling) {\n node.prev = previousSibling;\n previousSibling.next = node;\n }\n node.parent = parent;\n this.lastNode = null;\n };\n return DomHandler;\n}());\nexports.DomHandler = DomHandler;\nexports.default = DomHandler;\n"],"names":["__createBinding","this","Object","create","o","m","k","k2","undefined","desc","getOwnPropertyDescriptor","__esModule","writable","configurable","enumerable","get","defineProperty","__exportStar","exports","p","prototype","hasOwnProperty","call","value","DomHandler","domelementtype_1","require$$0","node_js_1","require$$1","defaultOpts","withStartIndices","withEndIndices","xmlMode","callback","options","elementCB","dom","root","Document","done","tagStack","lastNode","parser","onparserinit","onreset","onend","handleCallback","onerror","error","onclosetag","elem","pop","endIndex","onopentag","name","attribs","type","ElementType","Tag","element","Element","addNode","push","ontext","data","Text","node","oncomment","Comment","oncommentend","oncdatastart","text","CDATA","parent","oncdataend","onprocessinginstruction","ProcessingInstruction","length","previousSibling","children","startIndex","prev","next","default"],"mappings":"uNACA,IAAIA,EAAmBC,GAAQA,EAAKD,kBAAqBE,OAAOC,OAAM,SAAaC,EAAGC,EAAGC,EAAGC,QAC7EC,IAAPD,IAAkBA,EAAKD,GAC3B,IAAIG,EAAOP,OAAOQ,yBAAyBL,EAAGC,GACzCG,KAAS,QAASA,GAAQJ,EAAEM,WAAaF,EAAKG,UAAYH,EAAKI,gBAClEJ,EAAO,CAAEK,YAAY,EAAMC,IAAK,WAAa,OAAOV,EAAEC,EAAG,IAE3DJ,OAAOc,eAAeZ,EAAGG,EAAIE,EAChC,EAAA,SAAcL,EAAGC,EAAGC,EAAGC,QACTC,IAAPD,IAAkBA,EAAKD,GAC3BF,EAAEG,GAAMF,EAAEC,EACb,GACGW,EAAgBhB,GAAQA,EAAKgB,cAAiB,SAASZ,E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WJ,UAAUsD,WAAa,WAC9BzE,KAAKwC,SAAW,MAEpBjB,EAAWJ,UAAUuD,wBAA0B,SAAUrB,EAAMU,GAC3D,IAAIE,EAAO,IAAIvC,EAAUiD,sBAAsBtB,EAAMU,GACrD/D,KAAK4D,QAAQK,IAEjB1C,EAAWJ,UAAU0B,eAAiB,SAAUE,GAC5C,GAA6B,mBAAlB/C,KAAKgC,SACZhC,KAAKgC,SAASe,EAAO/C,KAAKmC,UAEzB,GAAIY,EACL,MAAMA,GAGdxB,EAAWJ,UAAUyC,QAAU,SAAUK,GACrC,IAAIO,EAASxE,KAAKuC,SAASvC,KAAKuC,SAASqC,OAAS,GAC9CC,EAAkBL,EAAOM,SAASN,EAAOM,SAASF,OAAS,GAC3D5E,KAAKiC,QAAQJ,mBACboC,EAAKc,WAAa/E,KAAKyC,OAAOsC,YAE9B/E,KAAKiC,QAAQH,iBACbmC,EAAKd,SAAWnD,KAAKyC,OAAOU,UAEhCqB,EAAOM,SAASjB,KAAKI,GACjBY,IACAZ,EAAKe,KAAOH,EACZA,EAAgBI,KAAOhB,GAE3BA,EAAKO,OAASA,EACdxE,KAAKwC,SAAW,MAEbjB,CACV,CAxIa,GAyIdN,EAAAM,WAAqBA,EACrBN,EAAAiE,QAAkB3D"}
@@ -1,2 +0,0 @@
1
- import{__exports as e}from"../../../../../_virtual/node2.js";import{__require as t}from"../../../../domelementtype/lib/index.js";var n;function r(){if(n)return e;n=1;var r,i=e&&e.__extends||(r=function(e,t){return r=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])},r(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=e&&e.__assign||function(){return o=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},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.cloneNode=e.hasChildren=e.isDocument=e.isDirective=e.isComment=e.isText=e.isCDATA=e.isTag=e.Element=e.Document=e.CDATA=e.NodeWithChildren=e.ProcessingInstruction=e.Comment=e.Text=e.DataNode=e.Node=void 0;var u=t(),a=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return 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),O(this,e)},e}();e.Node=a;var c=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return i(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(a);e.DataNode=c;var l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=u.ElementType.Text,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(c);e.Text=l;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=u.ElementType.Comment,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(c);e.Comment=p;var s=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=u.ElementType.Directive,r}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(c);e.ProcessingInstruction=s;var f=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return i(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}(a);e.NodeWithChildren=f;var d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=u.ElementType.CDATA,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(f);e.CDATA=d;var y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=u.ElementType.Root,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(f);e.Document=y;var m=function(e){function t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?u.ElementType.Script:"style"===t?u.ElementType.Style:u.ElementType.Tag);var o=e.call(this,r)||this;return o.name=t,o.attribs=n,o.type=i,o}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),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}(f);function h(e){return(0,u.isTag)(e)}function b(e){return e.type===u.ElementType.CDATA}function v(e){return e.type===u.ElementType.Text}function g(e){return e.type===u.ElementType.Comment}function x(e){return e.type===u.ElementType.Directive}function T(e){return e.type===u.ElementType.Root}function O(e,t){var n;if(void 0===t&&(t=!1),v(e))n=new l(e.data);else if(g(e))n=new p(e.data);else if(h(e)){var r=t?P(e.children):[],i=new m(e.name,o({},e.attribs),r);r.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),n=i}else if(b(e)){r=t?P(e.children):[];var u=new d(r);r.forEach((function(e){return e.parent=u})),n=u}else if(T(e)){r=t?P(e.children):[];var a=new y(r);r.forEach((function(e){return e.parent=a})),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),n=a}else{if(!x(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new s(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),n=c}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function P(e){for(var t=e.map((function(e){return O(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}return e.Element=m,e.isTag=h,e.isCDATA=b,e.isText=v,e.isComment=g,e.isDirective=x,e.isDocument=T,e.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},e.cloneNode=O,e}export{r as __require};
2
- //# sourceMappingURL=node.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"node.js","sources":["../../../../../../node_modules/html-dom-parser/node_modules/domhandler/lib/node.js"],"sourcesContent":["\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.cloneNode = exports.hasChildren = exports.isDocument = exports.isDirective = exports.isComment = exports.isText = exports.isCDATA = exports.isTag = exports.Element = exports.Document = exports.CDATA = exports.NodeWithChildren = exports.ProcessingInstruction = exports.Comment = exports.Text = exports.DataNode = exports.Node = void 0;\nvar domelementtype_1 = require(\"domelementtype\");\n/**\n * This object will be used as the prototype for Nodes when creating a\n * DOM-Level-1-compliant structure.\n */\nvar Node = /** @class */ (function () {\n function Node() {\n /** Parent of the node */\n this.parent = null;\n /** Previous sibling */\n this.prev = null;\n /** Next sibling */\n this.next = null;\n /** The start index of the node. Requires `withStartIndices` on the handler to be `true. */\n this.startIndex = null;\n /** The end index of the node. Requires `withEndIndices` on the handler to be `true. */\n this.endIndex = null;\n }\n Object.defineProperty(Node.prototype, \"parentNode\", {\n // Read-write aliases for properties\n /**\n * Same as {@link parent}.\n * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n */\n get: function () {\n return this.parent;\n },\n set: function (parent) {\n this.parent = parent;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(Node.prototype, \"previousSibling\", {\n /**\n * Same as {@link prev}.\n * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n */\n get: function () {\n return this.prev;\n },\n set: function (prev) {\n this.prev = prev;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(Node.prototype, \"nextSibling\", {\n /**\n * Same as {@link next}.\n * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n */\n get: function () {\n return this.next;\n },\n set: function (next) {\n this.next = next;\n },\n enumerable: false,\n configurable: true\n });\n /**\n * Clone this node, and optionally its children.\n *\n * @param recursive Clone child nodes as well.\n * @returns A clone of the node.\n */\n Node.prototype.cloneNode = function (recursive) {\n if (recursive === void 0) { recursive = false; }\n return cloneNode(this, recursive);\n };\n return Node;\n}());\nexports.Node = Node;\n/**\n * A node that contains some data.\n */\nvar DataNode = /** @class */ (function (_super) {\n __extends(DataNode, _super);\n /**\n * @param data The content of the data node\n */\n function DataNode(data) {\n var _this = _super.call(this) || this;\n _this.data = data;\n return _this;\n }\n Object.defineProperty(DataNode.prototype, \"nodeValue\", {\n /**\n * Same as {@link data}.\n * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n */\n get: function () {\n return this.data;\n },\n set: function (data) {\n this.data = data;\n },\n enumerable: false,\n configurable: true\n });\n return DataNode;\n}(Node));\nexports.DataNode = DataNode;\n/**\n * Text within the document.\n */\nvar Text = /** @class */ (function (_super) {\n __extends(Text, _super);\n function Text() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.type = domelementtype_1.ElementType.Text;\n return _this;\n }\n Object.defineProperty(Text.prototype, \"nodeType\", {\n get: function () {\n return 3;\n },\n enumerable: false,\n configurable: true\n });\n return Text;\n}(DataNode));\nexports.Text = Text;\n/**\n * Comments within the document.\n */\nvar Comment = /** @class */ (function (_super) {\n __extends(Comment, _super);\n function Comment() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.type = domelementtype_1.ElementType.Comment;\n return _this;\n }\n Object.defineProperty(Comment.prototype, \"nodeType\", {\n get: function () {\n return 8;\n },\n enumerable: false,\n configurable: true\n });\n return Comment;\n}(DataNode));\nexports.Comment = Comment;\n/**\n * Processing instructions, including doc types.\n */\nvar ProcessingInstruction = /** @class */ (function (_super) {\n __extends(ProcessingInstruction, _super);\n function ProcessingInstruction(name, data) {\n var _this = _super.call(this, data) || this;\n _this.name = name;\n _this.type = domelementtype_1.ElementType.Directive;\n return _this;\n }\n Object.defineProperty(ProcessingInstruction.prototype, \"nodeType\", {\n get: function () {\n return 1;\n },\n enumerable: false,\n configurable: true\n });\n return ProcessingInstruction;\n}(DataNode));\nexports.ProcessingInstruction = ProcessingInstruction;\n/**\n * A `Node` that can have children.\n */\nvar NodeWithChildren = /** @class */ (function (_super) {\n __extends(NodeWithChildren, _super);\n /**\n * @param children Children of the node. Only certain node types can have children.\n */\n function NodeWithChildren(children) {\n var _this = _super.call(this) || this;\n _this.children = children;\n return _this;\n }\n Object.defineProperty(NodeWithChildren.prototype, \"firstChild\", {\n // Aliases\n /** First child of the node. */\n get: function () {\n var _a;\n return (_a = this.children[0]) !== null && _a !== void 0 ? _a : null;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(NodeWithChildren.prototype, \"lastChild\", {\n /** Last child of the node. */\n get: function () {\n return this.children.length > 0\n ? this.children[this.children.length - 1]\n : null;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(NodeWithChildren.prototype, \"childNodes\", {\n /**\n * Same as {@link children}.\n * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n */\n get: function () {\n return this.children;\n },\n set: function (children) {\n this.children = children;\n },\n enumerable: false,\n configurable: true\n });\n return NodeWithChildren;\n}(Node));\nexports.NodeWithChildren = NodeWithChildren;\nvar CDATA = /** @class */ (function (_super) {\n __extends(CDATA, _super);\n function CDATA() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.type = domelementtype_1.ElementType.CDATA;\n return _this;\n }\n Object.defineProperty(CDATA.prototype, \"nodeType\", {\n get: function () {\n return 4;\n },\n enumerable: false,\n configurable: true\n });\n return CDATA;\n}(NodeWithChildren));\nexports.CDATA = CDATA;\n/**\n * The root node of the document.\n */\nvar Document = /** @class */ (function (_super) {\n __extends(Document, _super);\n function Document() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.type = domelementtype_1.ElementType.Root;\n return _this;\n }\n Object.defineProperty(Document.prototype, \"nodeType\", {\n get: function () {\n return 9;\n },\n enumerable: false,\n configurable: true\n });\n return Document;\n}(NodeWithChildren));\nexports.Document = Document;\n/**\n * An element within the DOM.\n */\nvar Element = /** @class */ (function (_super) {\n __extends(Element, _super);\n /**\n * @param name Name of the tag, eg. `div`, `span`.\n * @param attribs Object mapping attribute names to attribute values.\n * @param children Children of the node.\n */\n function Element(name, attribs, children, type) {\n if (children === void 0) { children = []; }\n if (type === void 0) { type = name === \"script\"\n ? domelementtype_1.ElementType.Script\n : name === \"style\"\n ? domelementtype_1.ElementType.Style\n : domelementtype_1.ElementType.Tag; }\n var _this = _super.call(this, children) || this;\n _this.name = name;\n _this.attribs = attribs;\n _this.type = type;\n return _this;\n }\n Object.defineProperty(Element.prototype, \"nodeType\", {\n get: function () {\n return 1;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(Element.prototype, \"tagName\", {\n // DOM Level 1 aliases\n /**\n * Same as {@link name}.\n * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n */\n get: function () {\n return this.name;\n },\n set: function (name) {\n this.name = name;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(Element.prototype, \"attributes\", {\n get: function () {\n var _this = this;\n return Object.keys(this.attribs).map(function (name) {\n var _a, _b;\n return ({\n name: name,\n value: _this.attribs[name],\n namespace: (_a = _this[\"x-attribsNamespace\"]) === null || _a === void 0 ? void 0 : _a[name],\n prefix: (_b = _this[\"x-attribsPrefix\"]) === null || _b === void 0 ? void 0 : _b[name],\n });\n });\n },\n enumerable: false,\n configurable: true\n });\n return Element;\n}(NodeWithChildren));\nexports.Element = Element;\n/**\n * @param node Node to check.\n * @returns `true` if the node is a `Element`, `false` otherwise.\n */\nfunction isTag(node) {\n return (0, domelementtype_1.isTag)(node);\n}\nexports.isTag = isTag;\n/**\n * @param node Node to check.\n * @returns `true` if the node has the type `CDATA`, `false` otherwise.\n */\nfunction isCDATA(node) {\n return node.type === domelementtype_1.ElementType.CDATA;\n}\nexports.isCDATA = isCDATA;\n/**\n * @param node Node to check.\n * @returns `true` if the node has the type `Text`, `false` otherwise.\n */\nfunction isText(node) {\n return node.type === domelementtype_1.ElementType.Text;\n}\nexports.isText = isText;\n/**\n * @param node Node to check.\n * @returns `true` if the node has the type `Comment`, `false` otherwise.\n */\nfunction isComment(node) {\n return node.type === domelementtype_1.ElementType.Comment;\n}\nexports.isComment = isComment;\n/**\n * @param node Node to check.\n * @returns `true` if the node has the type `ProcessingInstruction`, `false` otherwise.\n */\nfunction isDirective(node) {\n return node.type === domelementtype_1.ElementType.Directive;\n}\nexports.isDirective = isDirective;\n/**\n * @param node Node to check.\n * @returns `true` if the node has the type `ProcessingInstruction`, `false` otherwise.\n */\nfunction isDocument(node) {\n return node.type === domelementtype_1.ElementType.Root;\n}\nexports.isDocument = isDocument;\n/**\n * @param node Node to check.\n * @returns `true` if the node has children, `false` otherwise.\n */\nfunction hasChildren(node) {\n return Object.prototype.hasOwnProperty.call(node, \"children\");\n}\nexports.hasChildren = hasChildren;\n/**\n * Clone a node, and optionally its children.\n *\n * @param recursive Clone child nodes as well.\n * @returns A clone of the node.\n */\nfunction cloneNode(node, recursive) {\n if (recursive === void 0) { recursive = false; }\n var result;\n if (isText(node)) {\n result = new Text(node.data);\n }\n else if (isComment(node)) {\n result = new Comment(node.data);\n }\n else if (isTag(node)) {\n var children = recursive ? cloneChildren(node.children) : [];\n var clone_1 = new Element(node.name, __assign({}, node.attribs), children);\n children.forEach(function (child) { return (child.parent = clone_1); });\n if (node.namespace != null) {\n clone_1.namespace = node.namespace;\n }\n if (node[\"x-attribsNamespace\"]) {\n clone_1[\"x-attribsNamespace\"] = __assign({}, node[\"x-attribsNamespace\"]);\n }\n if (node[\"x-attribsPrefix\"]) {\n clone_1[\"x-attribsPrefix\"] = __assign({}, node[\"x-attribsPrefix\"]);\n }\n result = clone_1;\n }\n else if (isCDATA(node)) {\n var children = recursive ? cloneChildren(node.children) : [];\n var clone_2 = new CDATA(children);\n children.forEach(function (child) { return (child.parent = clone_2); });\n result = clone_2;\n }\n else if (isDocument(node)) {\n var children = recursive ? cloneChildren(node.children) : [];\n var clone_3 = new Document(children);\n children.forEach(function (child) { return (child.parent = clone_3); });\n if (node[\"x-mode\"]) {\n clone_3[\"x-mode\"] = node[\"x-mode\"];\n }\n result = clone_3;\n }\n else if (isDirective(node)) {\n var instruction = new ProcessingInstruction(node.name, node.data);\n if (node[\"x-name\"] != null) {\n instruction[\"x-name\"] = node[\"x-name\"];\n instruction[\"x-publicId\"] = node[\"x-publicId\"];\n instruction[\"x-systemId\"] = node[\"x-systemId\"];\n }\n result = instruction;\n }\n else {\n throw new Error(\"Not implemented yet: \".concat(node.type));\n }\n result.startIndex = node.startIndex;\n result.endIndex = node.endIndex;\n if (node.sourceCodeLocation != null) {\n result.sourceCodeLocation = node.sourceCodeLocation;\n }\n return result;\n}\nexports.cloneNode = cloneNode;\nfunction cloneChildren(childs) {\n var children = childs.map(function (child) { return cloneNode(child, true); });\n for (var i = 1; i < children.length; i++) {\n children[i].prev = children[i - 1];\n children[i - 1].next = children[i];\n }\n return children;\n}\n"],"names":["extendStatics","__extends","this","d","b","Object","setPrototypeOf","__proto__","Array","p","prototype","hasOwnProperty","call","TypeError","String","__","constructor","create","__assign","assign","t","s","i","n","arguments","length","apply","defineProperty","node","value","cloneNode","hasChildren","isDocument","isDirective","isComment","isCDATA","isTag","Element","Document","CDATA","NodeWithChildren","Comment","Text","DataNode","Node","domelementtype_1","require$$0","parent","prev","next","startIndex","endIndex","get","set","enumerable","configurable","recursive","_super","data","_this","type","ElementType","ProcessingInstruction","name","Directive","children","_a","Root","attribs","Script","Style","Tag","keys","map","_b","namespace","prefix","isText","result","cloneChildren","clone_1","forEach","child","clone_2","clone_3","Error","concat","instruction","sourceCodeLocation","childs"],"mappings":"sKACA,IACQA,EADJC,EAAaC,GAAQA,EAAKD,YACtBD,EAAgB,SAAUG,EAAGC,GAI7B,OAHAJ,EAAgBK,OAAOC,gBAClB,CAAEC,UAAW,cAAgBC,OAAS,SAAUL,EA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AMnC,EAAK8B,MACtC,MAAlB9B,EAAK,YACL2D,EAAY,UAAY3D,EAAK,UAC7B2D,EAAY,cAAgB3D,EAAK,cACjC2D,EAAY,cAAgB3D,EAAK,eAErCkD,EAASS,CAIjB,CAMI,OALAT,EAAO5B,WAAatB,EAAKsB,WACzB4B,EAAO3B,SAAWvB,EAAKuB,SACQ,MAA3BvB,EAAK4D,qBACLV,EAAOU,mBAAqB5D,EAAK4D,oBAE9BV,CACX,CAEA,SAASC,EAAcU,GAEnB,IADA,IAAIxB,EAAWwB,EAAOhB,KAAI,SAAUS,GAAS,OAAOpD,EAAUoD,GAAO,EAAQ,IACpE5D,EAAI,EAAGA,EAAI2C,EAASxC,OAAQH,IACjC2C,EAAS3C,GAAG0B,KAAOiB,EAAS3C,EAAI,GAChC2C,EAAS3C,EAAI,GAAG2B,KAAOgB,EAAS3C,GAEpC,OAAO2C,CACX,QAjIArC,EAAAS,QAAkBA,EAQlBT,EAAAQ,MAAgBA,EAQhBR,EAAAO,QAAkBA,EAQlBP,EAAAiD,OAAiBA,EAQjBjD,EAAAM,UAAoBA,EAQpBN,EAAAK,YAAsBA,EAQtBL,EAAAI,WAAqBA,EAQrBJ,EAAAG,YAHA,SAAqBH,GACjB,OAAOvB,OAAOK,UAAUC,eAAeC,KAAKgB,EAAM,WACtD,EAkEAA,EAAAE,UAAoBA"}
@@ -1,2 +0,0 @@
1
- import{__exports as t}from"../../../../../_virtual/index12.js";import{__require as e}from"../../../../domelementtype/lib/index.js";import{__require as n}from"./node.js";var o;function i(){return o||(o=1,function(o){var i=t&&t.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,o,i)}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),s=t&&t.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(o,"__esModule",{value:!0}),o.DomHandler=void 0;var r=e(),a=n();s(n(),o);var d={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function t(t,e,n){this.dom=[],this.root=new a.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 a.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 n=this.options.xmlMode?r.ElementType.Tag:void 0,o=new a.Element(t,e,void 0,n);this.addNode(o),this.tagStack.push(o)},t.prototype.ontext=function(t){var e=this.lastNode;if(e&&e.type===r.ElementType.Text)e.data+=t,this.options.withEndIndices&&(e.endIndex=this.parser.endIndex);else{var n=new a.Text(t);this.addNode(n),this.lastNode=n}},t.prototype.oncomment=function(t){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment)this.lastNode.data+=t;else{var e=new a.Comment(t);this.addNode(e),this.lastNode=e}},t.prototype.oncommentend=function(){this.lastNode=null},t.prototype.oncdatastart=function(){var t=new a.Text(""),e=new a.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 a.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}();o.DomHandler=l,o.default=l}(t)),t}export{i as __require};
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../node_modules/html-react-parser/node_modules/domhandler/lib/index.js"],"sourcesContent":["\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DomHandler = void 0;\nvar domelementtype_1 = require(\"domelementtype\");\nvar node_js_1 = require(\"./node.js\");\n__exportStar(require(\"./node.js\"), exports);\n// Default options\nvar defaultOpts = {\n withStartIndices: false,\n withEndIndices: false,\n xmlMode: false,\n};\nvar DomHandler = /** @class */ (function () {\n /**\n * @param callback Called once parsing has completed.\n * @param options Settings for the handler.\n * @param elementCB Callback whenever a tag is closed.\n */\n function DomHandler(callback, options, elementCB) {\n /** The elements of the DOM */\n this.dom = [];\n /** The root element for the DOM */\n this.root = new node_js_1.Document(this.dom);\n /** Indicated whether parsing has been completed. */\n this.done = false;\n /** Stack of open tags. */\n this.tagStack = [this.root];\n /** A data node that is still being written to. */\n this.lastNode = null;\n /** Reference to the parser instance. Used for location information. */\n this.parser = null;\n // Make it possible to skip arguments, for backwards-compatibility\n if (typeof options === \"function\") {\n elementCB = options;\n options = defaultOpts;\n }\n if (typeof callback === \"object\") {\n options = callback;\n callback = undefined;\n }\n this.callback = callback !== null && callback !== void 0 ? callback : null;\n this.options = options !== null && options !== void 0 ? options : defaultOpts;\n this.elementCB = elementCB !== null && elementCB !== void 0 ? elementCB : null;\n }\n DomHandler.prototype.onparserinit = function (parser) {\n this.parser = parser;\n };\n // Resets the handler back to starting state\n DomHandler.prototype.onreset = function () {\n this.dom = [];\n this.root = new node_js_1.Document(this.dom);\n this.done = false;\n this.tagStack = [this.root];\n this.lastNode = null;\n this.parser = null;\n };\n // Signals the handler that parsing is done\n DomHandler.prototype.onend = function () {\n if (this.done)\n return;\n this.done = true;\n this.parser = null;\n this.handleCallback(null);\n };\n DomHandler.prototype.onerror = function (error) {\n this.handleCallback(error);\n };\n DomHandler.prototype.onclosetag = function () {\n this.lastNode = null;\n var elem = this.tagStack.pop();\n if (this.options.withEndIndices) {\n elem.endIndex = this.parser.endIndex;\n }\n if (this.elementCB)\n this.elementCB(elem);\n };\n DomHandler.prototype.onopentag = function (name, attribs) {\n var type = this.options.xmlMode ? domelementtype_1.ElementType.Tag : undefined;\n var element = new node_js_1.Element(name, attribs, undefined, type);\n this.addNode(element);\n this.tagStack.push(element);\n };\n DomHandler.prototype.ontext = function (data) {\n var lastNode = this.lastNode;\n if (lastNode && lastNode.type === domelementtype_1.ElementType.Text) {\n lastNode.data += data;\n if (this.options.withEndIndices) {\n lastNode.endIndex = this.parser.endIndex;\n }\n }\n else {\n var node = new node_js_1.Text(data);\n this.addNode(node);\n this.lastNode = node;\n }\n };\n DomHandler.prototype.oncomment = function (data) {\n if (this.lastNode && this.lastNode.type === domelementtype_1.ElementType.Comment) {\n this.lastNode.data += data;\n return;\n }\n var node = new node_js_1.Comment(data);\n this.addNode(node);\n this.lastNode = node;\n };\n DomHandler.prototype.oncommentend = function () {\n this.lastNode = null;\n };\n DomHandler.prototype.oncdatastart = function () {\n var text = new node_js_1.Text(\"\");\n var node = new node_js_1.CDATA([text]);\n this.addNode(node);\n text.parent = node;\n this.lastNode = text;\n };\n DomHandler.prototype.oncdataend = function () {\n this.lastNode = null;\n };\n DomHandler.prototype.onprocessinginstruction = function (name, data) {\n var node = new node_js_1.ProcessingInstruction(name, data);\n this.addNode(node);\n };\n DomHandler.prototype.handleCallback = function (error) {\n if (typeof this.callback === \"function\") {\n this.callback(error, this.dom);\n }\n else if (error) {\n throw error;\n }\n };\n DomHandler.prototype.addNode = function (node) {\n var parent = this.tagStack[this.tagStack.length - 1];\n var previousSibling = parent.children[parent.children.length - 1];\n if (this.options.withStartIndices) {\n node.startIndex = this.parser.startIndex;\n }\n if (this.options.withEndIndices) {\n node.endIndex = this.parser.endIndex;\n }\n parent.children.push(node);\n if (previousSibling) {\n node.prev = previousSibling;\n previousSibling.next = node;\n }\n node.parent = parent;\n this.lastNode = null;\n };\n return DomHandler;\n}());\nexports.DomHandler = DomHandler;\nexports.default = DomHandler;\n"],"names":["__createBinding","this","Object","create","o","m","k","k2","undefined","desc","getOwnPropertyDescriptor","__esModule","writable","configurable","enumerable","get","defineProperty","__exportStar","exports","p","prototype","hasOwnProperty","call","value","DomHandler","domelementtype_1","require$$0","node_js_1","require$$1","defaultOpts","withStartIndices","withEndIndices","xmlMode","callback","options","elementCB","dom","root","Document","done","tagStack","lastNode","parser","onparserinit","onreset","onend","handleCallback","onerror","error","onclosetag","elem","pop","endIndex","onopentag","name","attribs","type","ElementType","Tag","element","Element","addNode","push","ontext","data","Text","node","oncomment","Comment","oncommentend","oncdatastart","text","CDATA","parent","oncdataend","onprocessinginstruction","ProcessingInstruction","length","previousSibling","children","startIndex","prev","next","default"],"mappings":"uNACA,IAAIA,EAAmBC,GAAQA,EAAKD,kBAAqBE,OAAOC,OAAM,SAAaC,EAAGC,EAAGC,EAAGC,QAC7EC,IAAPD,IAAkBA,EAAKD,GAC3B,IAAIG,EAAOP,OAAOQ,yBAAyBL,EAAGC,GACzCG,KAAS,Q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,GACjC/D,KAAK4D,QAAQK,GACbjE,KAAKwC,SAAWyB,CAHxB,GAKI1C,EAAWJ,UAAUiD,aAAe,WAChCpE,KAAKwC,SAAW,MAEpBjB,EAAWJ,UAAUkD,aAAe,WAChC,IAAIC,EAAO,IAAI5C,EAAUsC,KAAK,IAC1BC,EAAO,IAAIvC,EAAU6C,MAAM,CAACD,IAChCtE,KAAK4D,QAAQK,GACbK,EAAKE,OAASP,EACdjE,KAAKwC,SAAW8B,GAEpB/C,EAAWJ,UAAUsD,WAAa,WAC9BzE,KAAKwC,SAAW,MAEpBjB,EAAWJ,UAAUuD,wBAA0B,SAAUrB,EAAMU,GAC3D,IAAIE,EAAO,IAAIvC,EAAUiD,sBAAsBtB,EAAMU,GACrD/D,KAAK4D,QAAQK,IAEjB1C,EAAWJ,UAAU0B,eAAiB,SAAUE,GAC5C,GAA6B,mBAAlB/C,KAAKgC,SACZhC,KAAKgC,SAASe,EAAO/C,KAAKmC,UAEzB,GAAIY,EACL,MAAMA,GAGdxB,EAAWJ,UAAUyC,QAAU,SAAUK,GACrC,IAAIO,EAASxE,KAAKuC,SAASvC,KAAKuC,SAASqC,OAAS,GAC9CC,EAAkBL,EAAOM,SAASN,EAAOM,SAASF,OAAS,GAC3D5E,KAAKiC,QAAQJ,mBACboC,EAAKc,WAAa/E,KAAKyC,OAAOsC,YAE9B/E,KAAKiC,QAAQH,iBACbmC,EAAKd,SAAWnD,KAAKyC,OAAOU,UAEhCqB,EAAOM,SAASjB,KAAKI,GACjBY,IACAZ,EAAKe,KAAOH,EACZA,EAAgBI,KAAOhB,GAE3BA,EAAKO,OAASA,EACdxE,KAAKwC,SAAW,MAEbjB,CACV,CAxIa,GAyIdN,EAAAM,WAAqBA,EACrBN,EAAAiE,QAAkB3D"}
@@ -1,2 +0,0 @@
1
- import{__exports as e}from"../../../../../_virtual/node.js";import{__require as t}from"../../../../domelementtype/lib/index.js";var n;function r(){if(n)return e;n=1;var r,i=e&&e.__extends||(r=function(e,t){return r=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])},r(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=e&&e.__assign||function(){return o=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},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.cloneNode=e.hasChildren=e.isDocument=e.isDirective=e.isComment=e.isText=e.isCDATA=e.isTag=e.Element=e.Document=e.CDATA=e.NodeWithChildren=e.ProcessingInstruction=e.Comment=e.Text=e.DataNode=e.Node=void 0;var u=t(),a=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return 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),O(this,e)},e}();e.Node=a;var c=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return i(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(a);e.DataNode=c;var l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=u.ElementType.Text,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(c);e.Text=l;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=u.ElementType.Comment,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(c);e.Comment=p;var s=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=u.ElementType.Directive,r}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(c);e.ProcessingInstruction=s;var f=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return i(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}(a);e.NodeWithChildren=f;var d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=u.ElementType.CDATA,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(f);e.CDATA=d;var y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=u.ElementType.Root,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(f);e.Document=y;var m=function(e){function t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?u.ElementType.Script:"style"===t?u.ElementType.Style:u.ElementType.Tag);var o=e.call(this,r)||this;return o.name=t,o.attribs=n,o.type=i,o}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),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}(f);function h(e){return(0,u.isTag)(e)}function b(e){return e.type===u.ElementType.CDATA}function v(e){return e.type===u.ElementType.Text}function g(e){return e.type===u.ElementType.Comment}function x(e){return e.type===u.ElementType.Directive}function T(e){return e.type===u.ElementType.Root}function O(e,t){var n;if(void 0===t&&(t=!1),v(e))n=new l(e.data);else if(g(e))n=new p(e.data);else if(h(e)){var r=t?P(e.children):[],i=new m(e.name,o({},e.attribs),r);r.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),n=i}else if(b(e)){r=t?P(e.children):[];var u=new d(r);r.forEach((function(e){return e.parent=u})),n=u}else if(T(e)){r=t?P(e.children):[];var a=new y(r);r.forEach((function(e){return e.parent=a})),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),n=a}else{if(!x(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new s(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),n=c}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function P(e){for(var t=e.map((function(e){return O(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}return e.Element=m,e.isTag=h,e.isCDATA=b,e.isText=v,e.isComment=g,e.isDirective=x,e.isDocument=T,e.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},e.cloneNode=O,e}export{r as __require};
2
- //# sourceMappingURL=node.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"node.js","sources":["../../../../../../node_modules/html-react-parser/node_modules/domhandler/lib/node.js"],"sourcesContent":["\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.cloneNode = exports.hasChildren = exports.isDocument = exports.isDirective = exports.isComment = exports.isText = exports.isCDATA = exports.isTag = exports.Element = exports.Document = exports.CDATA = exports.NodeWithChildren = exports.ProcessingInstruction = exports.Comment = exports.Text = exports.DataNode = exports.Node = void 0;\nvar domelementtype_1 = require(\"domelementtype\");\n/**\n * This object will be used as the prototype for Nodes when creating a\n * DOM-Level-1-compliant structure.\n */\nvar Node = /** @class */ (function () {\n function Node() {\n /** Parent of the node */\n this.parent = null;\n /** Previous sibling */\n this.prev = null;\n /** Next sibling */\n this.next = null;\n /** The start index of the node. Requires `withStartIndices` on the handler to be `true. */\n this.startIndex = null;\n /** The end index of the node. Requires `withEndIndices` on the handler to be `true. */\n this.endIndex = null;\n }\n Object.defineProperty(Node.prototype, \"parentNode\", {\n // Read-write aliases for properties\n /**\n * Same as {@link parent}.\n * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n */\n get: function () {\n return this.parent;\n },\n set: function (parent) {\n this.parent = parent;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(Node.prototype, \"previousSibling\", {\n /**\n * Same as {@link prev}.\n * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n */\n get: function () {\n return this.prev;\n },\n set: function (prev) {\n this.prev = prev;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(Node.prototype, \"nextSibling\", {\n /**\n * Same as {@link next}.\n * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n */\n get: function () {\n return this.next;\n },\n set: function (next) {\n this.next = next;\n },\n enumerable: false,\n configurable: true\n });\n /**\n * Clone this node, and optionally its children.\n *\n * @param recursive Clone child nodes as well.\n * @returns A clone of the node.\n */\n Node.prototype.cloneNode = function (recursive) {\n if (recursive === void 0) { recursive = false; }\n return cloneNode(this, recursive);\n };\n return Node;\n}());\nexports.Node = Node;\n/**\n * A node that contains some data.\n */\nvar DataNode = /** @class */ (function (_super) {\n __extends(DataNode, _super);\n /**\n * @param data The content of the data node\n */\n function DataNode(data) {\n var _this = _super.call(this) || this;\n _this.data = data;\n return _this;\n }\n Object.defineProperty(DataNode.prototype, \"nodeValue\", {\n /**\n * Same as {@link data}.\n * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n */\n get: function () {\n return this.data;\n },\n set: function (data) {\n this.data = data;\n },\n enumerable: false,\n configurable: true\n });\n return DataNode;\n}(Node));\nexports.DataNode = DataNode;\n/**\n * Text within the document.\n */\nvar Text = /** @class */ (function (_super) {\n __extends(Text, _super);\n function Text() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.type = domelementtype_1.ElementType.Text;\n return _this;\n }\n Object.defineProperty(Text.prototype, \"nodeType\", {\n get: function () {\n return 3;\n },\n enumerable: false,\n configurable: true\n });\n return Text;\n}(DataNode));\nexports.Text = Text;\n/**\n * Comments within the document.\n */\nvar Comment = /** @class */ (function (_super) {\n __extends(Comment, _super);\n function Comment() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.type = domelementtype_1.ElementType.Comment;\n return _this;\n }\n Object.defineProperty(Comment.prototype, \"nodeType\", {\n get: function () {\n return 8;\n },\n enumerable: false,\n configurable: true\n });\n return Comment;\n}(DataNode));\nexports.Comment = Comment;\n/**\n * Processing instructions, including doc types.\n */\nvar ProcessingInstruction = /** @class */ (function (_super) {\n __extends(ProcessingInstruction, _super);\n function ProcessingInstruction(name, data) {\n var _this = _super.call(this, data) || this;\n _this.name = name;\n _this.type = domelementtype_1.ElementType.Directive;\n return _this;\n }\n Object.defineProperty(ProcessingInstruction.prototype, \"nodeType\", {\n get: function () {\n return 1;\n },\n enumerable: false,\n configurable: true\n });\n return ProcessingInstruction;\n}(DataNode));\nexports.ProcessingInstruction = ProcessingInstruction;\n/**\n * A `Node` that can have children.\n */\nvar NodeWithChildren = /** @class */ (function (_super) {\n __extends(NodeWithChildren, _super);\n /**\n * @param children Children of the node. Only certain node types can have children.\n */\n function NodeWithChildren(children) {\n var _this = _super.call(this) || this;\n _this.children = children;\n return _this;\n }\n Object.defineProperty(NodeWithChildren.prototype, \"firstChild\", {\n // Aliases\n /** First child of the node. */\n get: function () {\n var _a;\n return (_a = this.children[0]) !== null && _a !== void 0 ? _a : null;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(NodeWithChildren.prototype, \"lastChild\", {\n /** Last child of the node. */\n get: function () {\n return this.children.length > 0\n ? this.children[this.children.length - 1]\n : null;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(NodeWithChildren.prototype, \"childNodes\", {\n /**\n * Same as {@link children}.\n * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n */\n get: function () {\n return this.children;\n },\n set: function (children) {\n this.children = children;\n },\n enumerable: false,\n configurable: true\n });\n return NodeWithChildren;\n}(Node));\nexports.NodeWithChildren = NodeWithChildren;\nvar CDATA = /** @class */ (function (_super) {\n __extends(CDATA, _super);\n function CDATA() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.type = domelementtype_1.ElementType.CDATA;\n return _this;\n }\n Object.defineProperty(CDATA.prototype, \"nodeType\", {\n get: function () {\n return 4;\n },\n enumerable: false,\n configurable: true\n });\n return CDATA;\n}(NodeWithChildren));\nexports.CDATA = CDATA;\n/**\n * The root node of the document.\n */\nvar Document = /** @class */ (function (_super) {\n __extends(Document, _super);\n function Document() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.type = domelementtype_1.ElementType.Root;\n return _this;\n }\n Object.defineProperty(Document.prototype, \"nodeType\", {\n get: function () {\n return 9;\n },\n enumerable: false,\n configurable: true\n });\n return Document;\n}(NodeWithChildren));\nexports.Document = Document;\n/**\n * An element within the DOM.\n */\nvar Element = /** @class */ (function (_super) {\n __extends(Element, _super);\n /**\n * @param name Name of the tag, eg. `div`, `span`.\n * @param attribs Object mapping attribute names to attribute values.\n * @param children Children of the node.\n */\n function Element(name, attribs, children, type) {\n if (children === void 0) { children = []; }\n if (type === void 0) { type = name === \"script\"\n ? domelementtype_1.ElementType.Script\n : name === \"style\"\n ? domelementtype_1.ElementType.Style\n : domelementtype_1.ElementType.Tag; }\n var _this = _super.call(this, children) || this;\n _this.name = name;\n _this.attribs = attribs;\n _this.type = type;\n return _this;\n }\n Object.defineProperty(Element.prototype, \"nodeType\", {\n get: function () {\n return 1;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(Element.prototype, \"tagName\", {\n // DOM Level 1 aliases\n /**\n * Same as {@link name}.\n * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n */\n get: function () {\n return this.name;\n },\n set: function (name) {\n this.name = name;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(Element.prototype, \"attributes\", {\n get: function () {\n var _this = this;\n return Object.keys(this.attribs).map(function (name) {\n var _a, _b;\n return ({\n name: name,\n value: _this.attribs[name],\n namespace: (_a = _this[\"x-attribsNamespace\"]) === null || _a === void 0 ? void 0 : _a[name],\n prefix: (_b = _this[\"x-attribsPrefix\"]) === null || _b === void 0 ? void 0 : _b[name],\n });\n });\n },\n enumerable: false,\n configurable: true\n });\n return Element;\n}(NodeWithChildren));\nexports.Element = Element;\n/**\n * @param node Node to check.\n * @returns `true` if the node is a `Element`, `false` otherwise.\n */\nfunction isTag(node) {\n return (0, domelementtype_1.isTag)(node);\n}\nexports.isTag = isTag;\n/**\n * @param node Node to check.\n * @returns `true` if the node has the type `CDATA`, `false` otherwise.\n */\nfunction isCDATA(node) {\n return node.type === domelementtype_1.ElementType.CDATA;\n}\nexports.isCDATA = isCDATA;\n/**\n * @param node Node to check.\n * @returns `true` if the node has the type `Text`, `false` otherwise.\n */\nfunction isText(node) {\n return node.type === domelementtype_1.ElementType.Text;\n}\nexports.isText = isText;\n/**\n * @param node Node to check.\n * @returns `true` if the node has the type `Comment`, `false` otherwise.\n */\nfunction isComment(node) {\n return node.type === domelementtype_1.ElementType.Comment;\n}\nexports.isComment = isComment;\n/**\n * @param node Node to check.\n * @returns `true` if the node has the type `ProcessingInstruction`, `false` otherwise.\n */\nfunction isDirective(node) {\n return node.type === domelementtype_1.ElementType.Directive;\n}\nexports.isDirective = isDirective;\n/**\n * @param node Node to check.\n * @returns `true` if the node has the type `ProcessingInstruction`, `false` otherwise.\n */\nfunction isDocument(node) {\n return node.type === domelementtype_1.ElementType.Root;\n}\nexports.isDocument = isDocument;\n/**\n * @param node Node to check.\n * @returns `true` if the node has children, `false` otherwise.\n */\nfunction hasChildren(node) {\n return Object.prototype.hasOwnProperty.call(node, \"children\");\n}\nexports.hasChildren = hasChildren;\n/**\n * Clone a node, and optionally its children.\n *\n * @param recursive Clone child nodes as well.\n * @returns A clone of the node.\n */\nfunction cloneNode(node, recursive) {\n if (recursive === void 0) { recursive = false; }\n var result;\n if (isText(node)) {\n result = new Text(node.data);\n }\n else if (isComment(node)) {\n result = new Comment(node.data);\n }\n else if (isTag(node)) {\n var children = recursive ? cloneChildren(node.children) : [];\n var clone_1 = new Element(node.name, __assign({}, node.attribs), children);\n children.forEach(function (child) { return (child.parent = clone_1); });\n if (node.namespace != null) {\n clone_1.namespace = node.namespace;\n }\n if (node[\"x-attribsNamespace\"]) {\n clone_1[\"x-attribsNamespace\"] = __assign({}, node[\"x-attribsNamespace\"]);\n }\n if (node[\"x-attribsPrefix\"]) {\n clone_1[\"x-attribsPrefix\"] = __assign({}, node[\"x-attribsPrefix\"]);\n }\n result = clone_1;\n }\n else if (isCDATA(node)) {\n var children = recursive ? cloneChildren(node.children) : [];\n var clone_2 = new CDATA(children);\n children.forEach(function (child) { return (child.parent = clone_2); });\n result = clone_2;\n }\n else if (isDocument(node)) {\n var children = recursive ? cloneChildren(node.children) : [];\n var clone_3 = new Document(children);\n children.forEach(function (child) { return (child.parent = clone_3); });\n if (node[\"x-mode\"]) {\n clone_3[\"x-mode\"] = node[\"x-mode\"];\n }\n result = clone_3;\n }\n else if (isDirective(node)) {\n var instruction = new ProcessingInstruction(node.name, node.data);\n if (node[\"x-name\"] != null) {\n instruction[\"x-name\"] = node[\"x-name\"];\n instruction[\"x-publicId\"] = node[\"x-publicId\"];\n instruction[\"x-systemId\"] = node[\"x-systemId\"];\n }\n result = instruction;\n }\n else {\n throw new Error(\"Not implemented yet: \".concat(node.type));\n }\n result.startIndex = node.startIndex;\n result.endIndex = node.endIndex;\n if (node.sourceCodeLocation != null) {\n result.sourceCodeLocation = node.sourceCodeLocation;\n }\n return result;\n}\nexports.cloneNode = cloneNode;\nfunction cloneChildren(childs) {\n var children = childs.map(function (child) { return cloneNode(child, true); });\n for (var i = 1; i < children.length; i++) {\n children[i].prev = children[i - 1];\n children[i - 1].next = children[i];\n }\n return children;\n}\n"],"names":["extendStatics","__extends","this","d","b","Object","setPrototypeOf","__proto__","Array","p","prototype","hasOwnProperty","call","TypeError","String","__","constructor","create","__assign","assign","t","s","i","n","arguments","length","apply","defineProperty","node","value","cloneNode","hasChildren","isDocument","isDirective","isComment","isCDATA","isTag","Element","Document","CDATA","NodeWithChildren","Comment","Text","DataNode","Node","domelementtype_1","require$$0","parent","prev","next","startIndex","endIndex","get","set","enumerable","configurable","recursive","_super","data","_this","type","ElementType","ProcessingInstruction","name","Directive","children","_a","Root","attribs","Script","Style","Tag","keys","map","_b","namespace","prefix","isText","result","cloneChildren","clone_1","forEach","child","clone_2","clone_3","Error","concat","instruction","sourceCodeLocation","childs"],"mappings":"qKACA,IACQA,EADJC,EAAaC,GAAQA,EAAKD,YACtBD,EAAgB,SAAUG,EAAGC,GAI7B,OAHAJ,EAAgBK,OAAOC,gBAClB,CAAEC,UAAW,cAAgBC,OAAS,SAAUL,EAAGC,GAAKD,EAAEI,UAAYH,CAAE,GACzE,SAAUD,EAAGC,GAAK,IAAK,IAAIK,KAAKL,EAAOC,OAAOK,UAAUC,eAAeC,KAAKR,EAAGK,KAAIN,EAAEM,GAAKL,EAAEK,KACzFT,EAAcG,EAAGC,IAErB,SAAUD,EAAGC,GAChB,GAAiB,mBAANA,GAA0B,OAANA,EAC3B,MAAM,IAAIS,UAAU,uBAAyBC,OAAOV,GAAK,iCAE7D,SAASW,IAAOb,KAAKc,YAAcb,CAAE,CADrCH,EAAcG,EAAGC,GAEjBD,EAAEO,UAAkB,OAANN,EAAaC,OAAOY,OAAOb,IAAMW,EAAGL,UAAYN,EAAEM,UAAW,IAAIK,KAGnFG,EAAYhB,GAAQA,EAAKgB,UAAa,WAStC,OARAA,EAAWb,OAAOc,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAIb,KADTY,EAAIG,UAAUF,GACOjB,OAAOK,UAAUC,eAAeC,KAAKS,EAAGZ,KACzDW,EAAEX,GAAKY,EAAEZ,IAEjB,OAAOW,GAEJF,EAASQ,MAAMxB,KAAMsB,YAEhCnB,OAAOsB,eAAeC,EAAS,aAAc,CAAEC,OAAO,IACtDD,EAAAE,UAAoBF,EAAAG,YAAsBH,EAAAI,WAAqBJ,EAAmBK,YAAGL,EAAiBM,UAAGN,SAAiBA,EAAAO,QAAkBP,EAAAQ,MAAgBR,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ty(e,"__esModule",{value:!0}),e.attributeNames=e.elementNames=void 0,e.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((function(e){return[e.toLowerCase(),e]}))),e.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((function(e){return[e.toLowerCase(),e]})))),e}export{n as __require};
2
- //# sourceMappingURL=foreignNames.js.map