markdown-flow-ui 0.3.4 → 0.3.6
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.
- package/dist/_virtual/{advancedFormat.es2.js → advancedFormat2.es.js} +1 -1
- package/dist/_virtual/advancedFormat2.es.js.map +1 -0
- package/dist/_virtual/core.cjs +1 -1
- package/dist/_virtual/core.es.js +1 -1
- package/dist/_virtual/{cose-base.es2.js → cose-base2.es.js} +1 -1
- package/dist/_virtual/cose-base2.es.js.map +1 -0
- package/dist/_virtual/{customParseFormat.es2.js → customParseFormat2.es.js} +1 -1
- package/dist/_virtual/customParseFormat2.es.js.map +1 -0
- package/dist/_virtual/cytoscape-cose-bilkent2.es.js +5 -0
- package/dist/_virtual/cytoscape-cose-bilkent2.es.js.map +1 -0
- package/dist/_virtual/{cytoscape-fcose.es2.js → cytoscape-fcose2.es.js} +1 -1
- package/dist/_virtual/cytoscape-fcose2.es.js.map +1 -0
- package/dist/_virtual/{dayjs.min2.cjs → dayjs2.min.cjs} +1 -1
- package/dist/_virtual/dayjs2.min.cjs.map +1 -0
- package/dist/_virtual/{dayjs.min.es2.js → dayjs2.min.es.js} +1 -1
- package/dist/_virtual/dayjs2.min.es.js.map +1 -0
- package/dist/_virtual/{duration.es2.js → duration2.es.js} +1 -1
- package/dist/_virtual/duration2.es.js.map +1 -0
- package/dist/_virtual/{index.es10.js → index10.es.js} +1 -1
- package/dist/_virtual/index10.es.js.map +1 -0
- package/dist/_virtual/{index.es11.js → index11.es.js} +1 -1
- package/dist/_virtual/index11.es.js.map +1 -0
- package/dist/_virtual/{index.es12.js → index12.es.js} +1 -1
- package/dist/_virtual/index12.es.js.map +1 -0
- package/dist/_virtual/{index.es9.js → index2.es.js} +1 -1
- package/dist/_virtual/index2.es.js.map +1 -0
- package/dist/_virtual/index3.cjs +1 -1
- package/dist/_virtual/{index.es4.js → index3.es.js} +1 -1
- package/dist/_virtual/index3.es.js.map +1 -0
- package/dist/_virtual/index4.cjs +1 -1
- package/dist/_virtual/{index.es3.js → index4.es.js} +1 -1
- package/dist/_virtual/index4.es.js.map +1 -0
- package/dist/_virtual/{index.es5.js → index5.es.js} +1 -1
- package/dist/_virtual/index5.es.js.map +1 -0
- package/dist/_virtual/index6.cjs +1 -1
- package/dist/_virtual/{index.es7.js → index6.es.js} +1 -1
- package/dist/_virtual/index6.es.js.map +1 -0
- package/dist/_virtual/index7.cjs +1 -1
- package/dist/_virtual/{index.es6.js → index7.es.js} +1 -1
- package/dist/_virtual/index7.es.js.map +1 -0
- package/dist/_virtual/{index.es8.js → index8.es.js} +1 -1
- package/dist/_virtual/index8.es.js.map +1 -0
- package/dist/_virtual/{index.es2.js → index9.es.js} +1 -1
- package/dist/_virtual/index9.es.js.map +1 -0
- package/dist/_virtual/{isoWeek.es2.js → isoWeek2.es.js} +1 -1
- package/dist/_virtual/isoWeek2.es.js.map +1 -0
- package/dist/_virtual/{layout-base.es2.js → layout-base2.es.js} +1 -1
- package/dist/_virtual/layout-base2.es.js.map +1 -0
- package/dist/components/ContentRender/ContentRender.cjs +2 -2
- package/dist/components/ContentRender/ContentRender.cjs.map +1 -1
- package/dist/components/ContentRender/ContentRender.d.ts +2 -0
- package/dist/components/ContentRender/ContentRender.es.js +513 -509
- package/dist/components/ContentRender/ContentRender.es.js.map +1 -1
- package/dist/components/ContentRender/IframeSandbox.es.js +1 -1
- package/dist/components/ContentRender/MarkdownFlowInput.cjs +1 -1
- package/dist/components/ContentRender/MarkdownFlowInput.cjs.map +1 -1
- package/dist/components/ContentRender/MarkdownFlowInput.d.ts +2 -0
- package/dist/components/ContentRender/MarkdownFlowInput.es.js +40 -38
- package/dist/components/ContentRender/MarkdownFlowInput.es.js.map +1 -1
- package/dist/components/ContentRender/plugins/CustomVariable.cjs +1 -1
- package/dist/components/ContentRender/plugins/CustomVariable.cjs.map +1 -1
- package/dist/components/ContentRender/plugins/CustomVariable.d.ts +2 -1
- package/dist/components/ContentRender/plugins/CustomVariable.es.js +110 -90
- package/dist/components/ContentRender/plugins/CustomVariable.es.js.map +1 -1
- package/dist/components/ContentRender/plugins/MermaidChart.cjs.map +1 -1
- package/dist/components/ContentRender/utils/accept-placeholder.cjs +2 -0
- package/dist/components/ContentRender/utils/accept-placeholder.cjs.map +1 -0
- package/dist/components/ContentRender/utils/accept-placeholder.d.ts +3 -0
- package/dist/components/ContentRender/utils/accept-placeholder.es.js +10 -0
- package/dist/components/ContentRender/utils/accept-placeholder.es.js.map +1 -0
- package/dist/components/ContentRender/utils/video-markdown-run.es.js +2 -2
- package/dist/components/MarkdownFlow/MarkdownFlow.cjs +1 -1
- package/dist/components/MarkdownFlow/MarkdownFlow.cjs.map +1 -1
- package/dist/components/MarkdownFlow/MarkdownFlow.d.ts +2 -0
- package/dist/components/MarkdownFlow/MarkdownFlow.es.js +23 -21
- package/dist/components/MarkdownFlow/MarkdownFlow.es.js.map +1 -1
- package/dist/components/MarkdownFlow/ScrollToBottomControl.cjs +1 -1
- package/dist/components/MarkdownFlow/ScrollToBottomControl.cjs.map +1 -1
- package/dist/components/MarkdownFlow/ScrollToBottomControl.es.js +1 -1
- package/dist/components/MarkdownFlowEditor/components/EditorToolbar.cjs.map +1 -1
- package/dist/components/Slide/Slide.cjs +1 -1
- package/dist/components/Slide/Slide.cjs.map +1 -1
- package/dist/components/Slide/Slide.d.ts +2 -0
- package/dist/components/Slide/Slide.es.js +347 -343
- package/dist/components/Slide/Slide.es.js.map +1 -1
- package/dist/components/ui/inputGroup/input-group.d.ts +1 -1
- package/dist/components/ui/inputGroup/textarea.cjs +1 -1
- package/dist/components/ui/inputGroup/textarea.es.js +1 -1
- package/dist/components/ui/tooltip.cjs +1 -1
- package/dist/components/ui/tooltip.cjs.map +1 -1
- package/dist/components/ui/tooltip.es.js +12 -12
- package/dist/index.cjs +1 -1
- package/dist/index.es.js +3 -3
- package/dist/markdown-flow-ui-lib.css +2 -2
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.cjs +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.cjs.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.es.js +4 -4
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.es.js.map +1 -1
- package/dist/node_modules/@braintree/sanitize-url/dist/index.es.js +1 -1
- package/dist/node_modules/@codemirror/autocomplete/dist/index.cjs +1 -1
- package/dist/node_modules/@codemirror/autocomplete/dist/index.cjs.map +1 -1
- package/dist/node_modules/@codemirror/autocomplete/dist/index.es.js +172 -159
- package/dist/node_modules/@codemirror/autocomplete/dist/index.es.js.map +1 -1
- package/dist/node_modules/@codemirror/commands/dist/index.cjs +1 -1
- package/dist/node_modules/@codemirror/commands/dist/index.cjs.map +1 -1
- package/dist/node_modules/@codemirror/commands/dist/index.es.js +376 -333
- package/dist/node_modules/@codemirror/commands/dist/index.es.js.map +1 -1
- package/dist/node_modules/@codemirror/lang-css/dist/index.es.js +3 -3
- package/dist/node_modules/@codemirror/lang-html/dist/index.cjs +1 -1
- package/dist/node_modules/@codemirror/lang-html/dist/index.cjs.map +1 -1
- package/dist/node_modules/@codemirror/lang-html/dist/index.es.js +238 -228
- package/dist/node_modules/@codemirror/lang-html/dist/index.es.js.map +1 -1
- package/dist/node_modules/@codemirror/lang-javascript/dist/index.cjs +4 -4
- package/dist/node_modules/@codemirror/lang-javascript/dist/index.cjs.map +1 -1
- package/dist/node_modules/@codemirror/lang-javascript/dist/index.es.js +62 -50
- package/dist/node_modules/@codemirror/lang-javascript/dist/index.es.js.map +1 -1
- package/dist/node_modules/@codemirror/lang-markdown/dist/index.cjs +1 -1
- package/dist/node_modules/@codemirror/lang-markdown/dist/index.cjs.map +1 -1
- package/dist/node_modules/@codemirror/lang-markdown/dist/index.es.js +237 -207
- package/dist/node_modules/@codemirror/lang-markdown/dist/index.es.js.map +1 -1
- package/dist/node_modules/@codemirror/language/dist/index.cjs +1 -1
- package/dist/node_modules/@codemirror/language/dist/index.cjs.map +1 -1
- package/dist/node_modules/@codemirror/language/dist/index.es.js +302 -296
- package/dist/node_modules/@codemirror/language/dist/index.es.js.map +1 -1
- package/dist/node_modules/@codemirror/lint/dist/index.cjs +1 -1
- package/dist/node_modules/@codemirror/lint/dist/index.cjs.map +1 -1
- package/dist/node_modules/@codemirror/lint/dist/index.es.js +281 -236
- package/dist/node_modules/@codemirror/lint/dist/index.es.js.map +1 -1
- package/dist/node_modules/@codemirror/search/dist/index.cjs +2 -2
- package/dist/node_modules/@codemirror/search/dist/index.cjs.map +1 -1
- package/dist/node_modules/@codemirror/search/dist/index.es.js +427 -454
- package/dist/node_modules/@codemirror/search/dist/index.es.js.map +1 -1
- package/dist/node_modules/@codemirror/state/dist/index.cjs +5 -5
- package/dist/node_modules/@codemirror/state/dist/index.cjs.map +1 -1
- package/dist/node_modules/@codemirror/state/dist/index.es.js +556 -509
- package/dist/node_modules/@codemirror/state/dist/index.es.js.map +1 -1
- package/dist/node_modules/@codemirror/view/dist/index.cjs +5 -5
- package/dist/node_modules/@codemirror/view/dist/index.cjs.map +1 -1
- package/dist/node_modules/@codemirror/view/dist/index.es.js +3982 -3507
- package/dist/node_modules/@codemirror/view/dist/index.es.js.map +1 -1
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.cjs +1 -1
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.cjs.map +1 -1
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.es.js +288 -309
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.es.js.map +1 -1
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs +1 -1
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs.map +1 -1
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.es.js +244 -252
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.es.js.map +1 -1
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs +1 -1
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs.map +1 -1
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs +1 -1
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs.map +1 -1
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.es.js +8 -8
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.es.js.map +1 -1
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.es.js +47 -47
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.es.js.map +1 -1
- package/dist/node_modules/@lezer/common/dist/index.cjs +1 -1
- package/dist/node_modules/@lezer/common/dist/index.cjs.map +1 -1
- package/dist/node_modules/@lezer/common/dist/index.es.js +266 -253
- package/dist/node_modules/@lezer/common/dist/index.es.js.map +1 -1
- package/dist/node_modules/@lezer/css/dist/index.cjs +1 -1
- package/dist/node_modules/@lezer/css/dist/index.cjs.map +1 -1
- package/dist/node_modules/@lezer/css/dist/index.es.js +95 -87
- package/dist/node_modules/@lezer/css/dist/index.es.js.map +1 -1
- package/dist/node_modules/@lezer/highlight/dist/index.cjs +1 -1
- package/dist/node_modules/@lezer/highlight/dist/index.cjs.map +1 -1
- package/dist/node_modules/@lezer/highlight/dist/index.es.js +150 -139
- package/dist/node_modules/@lezer/highlight/dist/index.es.js.map +1 -1
- package/dist/node_modules/@lezer/html/dist/index.cjs +1 -1
- package/dist/node_modules/@lezer/html/dist/index.cjs.map +1 -1
- package/dist/node_modules/@lezer/html/dist/index.es.js +88 -95
- package/dist/node_modules/@lezer/html/dist/index.es.js.map +1 -1
- package/dist/node_modules/@lezer/javascript/dist/index.cjs +1 -1
- package/dist/node_modules/@lezer/javascript/dist/index.cjs.map +1 -1
- package/dist/node_modules/@lezer/javascript/dist/index.es.js +49 -49
- package/dist/node_modules/@lezer/javascript/dist/index.es.js.map +1 -1
- package/dist/node_modules/@lezer/lr/dist/index.cjs +1 -1
- package/dist/node_modules/@lezer/lr/dist/index.cjs.map +1 -1
- package/dist/node_modules/@lezer/lr/dist/index.es.js +148 -137
- package/dist/node_modules/@lezer/lr/dist/index.es.js.map +1 -1
- package/dist/node_modules/@lezer/markdown/dist/index.cjs +5 -5
- package/dist/node_modules/@lezer/markdown/dist/index.cjs.map +1 -1
- package/dist/node_modules/@lezer/markdown/dist/index.es.js +305 -269
- package/dist/node_modules/@lezer/markdown/dist/index.es.js.map +1 -1
- package/dist/node_modules/@marijn/find-cluster-break/src/index.cjs +1 -1
- package/dist/node_modules/@marijn/find-cluster-break/src/index.cjs.map +1 -1
- package/dist/node_modules/@marijn/find-cluster-break/src/index.es.js +31 -31
- package/dist/node_modules/@marijn/find-cluster-break/src/index.es.js.map +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-7GRP2DOG.es.js +4 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-7GRP2DOG.es.js.map +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2ZTRR5NV.es.js +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-3Z5EZCMW.es.js +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-5V3GS4D5.es.js +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-6AZGARVD.es.js +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-6EIED4P4.es.js +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-6K3QC6MW.es.js +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-6TQVIW2G.es.js +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-747NJXEK.es.js +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-I5DQTOEV.es.js +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ICYGCRZG.es.js +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-IH6LHLGP.es.js +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KI3K4JFJ.es.js +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-OUJLGHUK.es.js +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-UY3FDG6J.es.js +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-XHIXRSVI.es.js +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/cynefin-OW5HDTMX.es.js +4 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/cynefin-OW5HDTMX.es.js.map +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/eventmodeling-NTZA5JFV.es.js +4 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/eventmodeling-NTZA5JFV.es.js.map +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-4MIJSDKK.es.js +3 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-4MIJSDKK.es.js.map +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-A6RAGUB7.es.js +4 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-A6RAGUB7.es.js.map +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-AYTQ26CC.es.js +4 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-AYTQ26CC.es.js.map +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-WAS4IAKB.es.js +4 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-WAS4IAKB.es.js.map +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-RG4KPBEZ.es.js +4 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-RG4KPBEZ.es.js.map +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-74A4TZTK.es.js +4 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-74A4TZTK.es.js.map +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-abnf-HS5TGJTU.es.js +4 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-abnf-HS5TGJTU.es.js.map +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-ebnf-LZEXJU2U.es.js +4 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-ebnf-LZEXJU2U.es.js.map +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-peg-WCYAUIDC.es.js +4 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-peg-WCYAUIDC.es.js.map +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-Q6P3EWNA.es.js +4 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-Q6P3EWNA.es.js.map +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-WGGIJYW6.es.js +4 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-WGGIJYW6.es.js.map +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-WFR3VGLG.es.js +4 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-WFR3VGLG.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/primitive/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/primitive/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/primitive/dist/index.es.js +46 -6
- package/dist/node_modules/@radix-ui/primitive/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.es.js +20 -16
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-context/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-context/dist/index.es.js +71 -43
- package/dist/node_modules/@radix-ui/react-context/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.es.js +16 -16
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js +184 -96
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.es.js +3 -3
- package/dist/node_modules/@radix-ui/react-id/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-id/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-id/dist/index.es.js +10 -9
- package/dist/node_modules/@radix-ui/react-id/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-portal/dist/index.es.js +14 -12
- package/dist/node_modules/@radix-ui/react-portal/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-presence/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-presence/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-presence/dist/index.es.js +70 -37
- package/dist/node_modules/@radix-ui/react-presence/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.es.js +16 -14
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-slot/dist/index.es.js +1 -1
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.es.js +261 -250
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/primitive/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/primitive/dist/index.es.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-arrow/dist/index.cjs +2 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-arrow/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-arrow/dist/index.es.js +25 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-arrow/dist/index.es.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-context/dist/index.es.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +2 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js +1 -1
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +2 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-focus-scope/dist/index.es.js +105 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-focus-scope/dist/index.es.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-popper/dist/index.cjs +2 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-popper/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-popper/dist/index.es.js +271 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-popper/dist/index.es.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-portal/dist/index.cjs +2 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-portal/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/react-portal/dist/index.es.js +1 -1
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-portal/dist/index.es.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-primitive/dist/index.cjs +2 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/{react-focus-scope → react-tooltip}/node_modules/@radix-ui/react-primitive/dist/index.es.js +1 -1
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.es.js +94 -7
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +2 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js +16 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +2 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js +2 -2
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js +8 -6
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js +56 -39
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-use-effect-event/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-effect-event/dist/index.es.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.es.js +28 -21
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.es.js +15 -15
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-primitive/dist/index.cjs +2 -0
- package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/{react-dialog → react-visually-hidden}/node_modules/@radix-ui/react-primitive/dist/index.es.js +1 -1
- package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-slot/dist/index.cjs +2 -0
- package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -0
- package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-slot/dist/index.es.js +99 -0
- package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-slot/dist/index.es.js.map +1 -0
- package/dist/node_modules/@uiw/codemirror-extensions-basic-setup/esm/index.cjs +1 -1
- package/dist/node_modules/@uiw/codemirror-extensions-basic-setup/esm/index.cjs.map +1 -1
- package/dist/node_modules/@uiw/codemirror-extensions-basic-setup/esm/index.es.js +11 -13
- package/dist/node_modules/@uiw/codemirror-extensions-basic-setup/esm/index.es.js.map +1 -1
- package/dist/node_modules/@uiw/react-codemirror/esm/getDefaultExtensions.cjs +1 -1
- package/dist/node_modules/@uiw/react-codemirror/esm/getDefaultExtensions.cjs.map +1 -1
- package/dist/node_modules/@uiw/react-codemirror/esm/getDefaultExtensions.es.js +20 -27
- package/dist/node_modules/@uiw/react-codemirror/esm/getDefaultExtensions.es.js.map +1 -1
- package/dist/node_modules/@uiw/react-codemirror/esm/index.cjs +1 -1
- package/dist/node_modules/@uiw/react-codemirror/esm/index.cjs.map +1 -1
- package/dist/node_modules/@uiw/react-codemirror/esm/index.es.js +51 -80
- package/dist/node_modules/@uiw/react-codemirror/esm/index.es.js.map +1 -1
- package/dist/node_modules/@uiw/react-codemirror/esm/theme/dimensionTheme.cjs +2 -0
- package/dist/node_modules/@uiw/react-codemirror/esm/theme/dimensionTheme.cjs.map +1 -0
- package/dist/node_modules/@uiw/react-codemirror/esm/theme/dimensionTheme.es.js +33 -0
- package/dist/node_modules/@uiw/react-codemirror/esm/theme/dimensionTheme.es.js.map +1 -0
- package/dist/node_modules/@uiw/react-codemirror/esm/useCodeMirror.cjs +1 -1
- package/dist/node_modules/@uiw/react-codemirror/esm/useCodeMirror.cjs.map +1 -1
- package/dist/node_modules/@uiw/react-codemirror/esm/useCodeMirror.es.js +64 -98
- package/dist/node_modules/@uiw/react-codemirror/esm/useCodeMirror.es.js.map +1 -1
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.cjs +1 -1
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.cjs.map +1 -1
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.es.js +65 -42
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.es.js.map +1 -1
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.cjs +1 -1
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.cjs.map +1 -1
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.es.js +62 -58
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.es.js.map +1 -1
- package/dist/node_modules/classnames/index.es.js +1 -1
- package/dist/node_modules/clsx/dist/clsx.cjs +1 -1
- package/dist/node_modules/clsx/dist/clsx.cjs.map +1 -1
- package/dist/node_modules/clsx/dist/clsx.es.js +7 -8
- package/dist/node_modules/clsx/dist/clsx.es.js.map +1 -1
- package/dist/node_modules/cose-base/cose-base.es.js +1 -1
- package/dist/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.es.js +1 -1
- package/dist/node_modules/cytoscape-fcose/cytoscape-fcose.es.js +1 -1
- package/dist/node_modules/d3-color/src/lab.cjs +1 -1
- package/dist/node_modules/d3-color/src/lab.cjs.map +1 -1
- package/dist/node_modules/d3-color/src/lab.es.js +4 -5
- package/dist/node_modules/d3-format/src/defaultLocale.cjs +1 -1
- package/dist/node_modules/d3-format/src/defaultLocale.cjs.map +1 -1
- package/dist/node_modules/d3-format/src/defaultLocale.es.js +3 -4
- package/dist/node_modules/d3-time-format/src/defaultLocale.cjs +1 -1
- package/dist/node_modules/d3-time-format/src/defaultLocale.cjs.map +1 -1
- package/dist/node_modules/d3-time-format/src/defaultLocale.es.js +2 -3
- package/dist/node_modules/d3-time-format/src/locale.es.js +14 -14
- package/dist/node_modules/d3-transition/src/selection/transition.cjs +1 -1
- package/dist/node_modules/d3-transition/src/selection/transition.es.js +4 -4
- package/dist/node_modules/d3-transition/src/transition/interpolate.cjs +1 -1
- package/dist/node_modules/d3-transition/src/transition/interpolate.es.js +3 -3
- package/dist/node_modules/dagre-d3-es/src/dagre/layout.cjs +1 -1
- package/dist/node_modules/dagre-d3-es/src/dagre/layout.es.js +7 -7
- package/dist/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.cjs +1 -1
- package/dist/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.es.js +4 -4
- package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.cjs +1 -1
- package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.es.js +14 -14
- package/dist/node_modules/dagre-d3-es/src/dagre/util.cjs +1 -1
- package/dist/node_modules/dagre-d3-es/src/dagre/util.es.js +7 -7
- package/dist/node_modules/dayjs/dayjs.min.cjs +1 -1
- package/dist/node_modules/dayjs/dayjs.min.es.js +1 -1
- package/dist/node_modules/dayjs/plugin/advancedFormat.es.js +1 -1
- package/dist/node_modules/dayjs/plugin/customParseFormat.es.js +1 -1
- package/dist/node_modules/dayjs/plugin/duration.es.js +1 -1
- package/dist/node_modules/dayjs/plugin/isoWeek.es.js +1 -1
- package/dist/node_modules/decode-named-character-reference/index.dom.cjs.map +1 -1
- package/dist/node_modules/decode-named-character-reference/index.dom.es.js +1 -5
- package/dist/node_modules/decode-named-character-reference/index.dom.es.js.map +1 -1
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.cjs +1 -1
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.es.js +1 -1
- package/dist/node_modules/hast-util-to-parse5/lib/index.cjs +1 -1
- package/dist/node_modules/hast-util-to-parse5/lib/index.cjs.map +1 -1
- package/dist/node_modules/hast-util-to-parse5/lib/index.es.js +2 -2
- package/dist/node_modules/hast-util-to-parse5/lib/index.es.js.map +1 -1
- package/dist/node_modules/hast-util-to-text/lib/index.cjs +3 -3
- package/dist/node_modules/hast-util-to-text/lib/index.cjs.map +1 -1
- package/dist/node_modules/hast-util-to-text/lib/index.es.js +136 -84
- package/dist/node_modules/hast-util-to-text/lib/index.es.js.map +1 -1
- package/dist/node_modules/highlight.js/es/languages/c.cjs +1 -1
- package/dist/node_modules/highlight.js/es/languages/c.cjs.map +1 -1
- package/dist/node_modules/highlight.js/es/languages/c.es.js +122 -63
- package/dist/node_modules/highlight.js/es/languages/c.es.js.map +1 -1
- package/dist/node_modules/highlight.js/es/languages/cpp.cjs +1 -1
- package/dist/node_modules/highlight.js/es/languages/cpp.cjs.map +1 -1
- package/dist/node_modules/highlight.js/es/languages/cpp.es.js +65 -48
- package/dist/node_modules/highlight.js/es/languages/cpp.es.js.map +1 -1
- package/dist/node_modules/highlight.js/es/languages/css.cjs +1 -1
- package/dist/node_modules/highlight.js/es/languages/css.cjs.map +1 -1
- package/dist/node_modules/highlight.js/es/languages/css.es.js +17 -6
- package/dist/node_modules/highlight.js/es/languages/css.es.js.map +1 -1
- package/dist/node_modules/highlight.js/es/languages/go.cjs +1 -1
- package/dist/node_modules/highlight.js/es/languages/go.cjs.map +1 -1
- package/dist/node_modules/highlight.js/es/languages/go.es.js +7 -2
- package/dist/node_modules/highlight.js/es/languages/go.es.js.map +1 -1
- package/dist/node_modules/highlight.js/es/languages/java.cjs +1 -1
- package/dist/node_modules/highlight.js/es/languages/java.cjs.map +1 -1
- package/dist/node_modules/highlight.js/es/languages/java.es.js +48 -39
- package/dist/node_modules/highlight.js/es/languages/java.es.js.map +1 -1
- package/dist/node_modules/highlight.js/es/languages/javascript.cjs +1 -1
- package/dist/node_modules/highlight.js/es/languages/javascript.cjs.map +1 -1
- package/dist/node_modules/highlight.js/es/languages/javascript.es.js +4 -2
- package/dist/node_modules/highlight.js/es/languages/javascript.es.js.map +1 -1
- package/dist/node_modules/highlight.js/es/languages/json.cjs +1 -1
- package/dist/node_modules/highlight.js/es/languages/json.cjs.map +1 -1
- package/dist/node_modules/highlight.js/es/languages/json.es.js +15 -9
- package/dist/node_modules/highlight.js/es/languages/json.es.js.map +1 -1
- package/dist/node_modules/highlight.js/es/languages/lua.cjs +1 -1
- package/dist/node_modules/highlight.js/es/languages/lua.cjs.map +1 -1
- package/dist/node_modules/highlight.js/es/languages/lua.es.js +1 -1
- package/dist/node_modules/highlight.js/es/languages/lua.es.js.map +1 -1
- package/dist/node_modules/highlight.js/es/languages/markdown.cjs +1 -1
- package/dist/node_modules/highlight.js/es/languages/markdown.cjs.map +1 -1
- package/dist/node_modules/highlight.js/es/languages/markdown.es.js +9 -10
- package/dist/node_modules/highlight.js/es/languages/markdown.es.js.map +1 -1
- package/dist/node_modules/highlight.js/es/languages/php.cjs +2 -2
- package/dist/node_modules/highlight.js/es/languages/php.cjs.map +1 -1
- package/dist/node_modules/highlight.js/es/languages/php.es.js +39 -33
- package/dist/node_modules/highlight.js/es/languages/php.es.js.map +1 -1
- package/dist/node_modules/highlight.js/es/languages/python.cjs +1 -1
- package/dist/node_modules/highlight.js/es/languages/python.cjs.map +1 -1
- package/dist/node_modules/highlight.js/es/languages/python.es.js +20 -15
- package/dist/node_modules/highlight.js/es/languages/python.es.js.map +1 -1
- package/dist/node_modules/highlight.js/es/languages/rust.cjs +1 -1
- package/dist/node_modules/highlight.js/es/languages/rust.cjs.map +1 -1
- package/dist/node_modules/highlight.js/es/languages/rust.es.js +40 -26
- package/dist/node_modules/highlight.js/es/languages/rust.es.js.map +1 -1
- package/dist/node_modules/highlight.js/es/languages/scss.cjs +1 -1
- package/dist/node_modules/highlight.js/es/languages/scss.cjs.map +1 -1
- package/dist/node_modules/highlight.js/es/languages/scss.es.js +36 -25
- package/dist/node_modules/highlight.js/es/languages/scss.es.js.map +1 -1
- package/dist/node_modules/highlight.js/es/languages/shell.cjs +1 -1
- package/dist/node_modules/highlight.js/es/languages/shell.cjs.map +1 -1
- package/dist/node_modules/highlight.js/es/languages/shell.es.js +1 -1
- package/dist/node_modules/highlight.js/es/languages/shell.es.js.map +1 -1
- package/dist/node_modules/highlight.js/es/languages/typescript.cjs +1 -1
- package/dist/node_modules/highlight.js/es/languages/typescript.cjs.map +1 -1
- package/dist/node_modules/highlight.js/es/languages/typescript.es.js +4 -2
- package/dist/node_modules/highlight.js/es/languages/typescript.es.js.map +1 -1
- package/dist/node_modules/highlight.js/es/languages/xml.cjs +1 -1
- package/dist/node_modules/highlight.js/es/languages/xml.cjs.map +1 -1
- package/dist/node_modules/highlight.js/es/languages/xml.es.js +9 -16
- package/dist/node_modules/highlight.js/es/languages/xml.es.js.map +1 -1
- package/dist/node_modules/inline-style-parser/cjs/index.cjs +3 -0
- package/dist/node_modules/inline-style-parser/cjs/index.cjs.map +1 -0
- package/dist/node_modules/inline-style-parser/{index.es.js → cjs/index.es.js} +24 -24
- package/dist/node_modules/inline-style-parser/cjs/index.es.js.map +1 -0
- package/dist/node_modules/layout-base/layout-base.es.js +1 -1
- package/dist/node_modules/lowlight/lib/common.cjs +1 -1
- package/dist/node_modules/lowlight/lib/common.cjs.map +1 -1
- package/dist/node_modules/lowlight/lib/common.es.js +37 -37
- package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/core.cjs +1 -1
- package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/core.es.js +1 -1
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/arduino.cjs +2 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/arduino.cjs.map +1 -0
- package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/arduino.es.js +10 -14
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/arduino.es.js.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/bash.cjs +2 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/bash.cjs.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/bash.es.js +378 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/bash.es.js.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/c.cjs +2 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/c.cjs.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/c.es.js +278 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/c.es.js.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/cpp.cjs +2 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/cpp.cjs.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/cpp.es.js +518 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/cpp.es.js.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/csharp.cjs +2 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/csharp.cjs.map +1 -0
- package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/csharp.es.js +1 -1
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/csharp.es.js.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/css.cjs +2 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/css.cjs.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/css.es.js +930 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/css.es.js.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/diff.cjs +2 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/diff.cjs.map +1 -0
- package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/diff.es.js +10 -3
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/diff.es.js.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/go.cjs +2 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/go.cjs.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/go.es.js +152 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/go.es.js.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/graphql.cjs.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/graphql.es.js.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/ini.cjs.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/ini.es.js.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/java.cjs +2 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/java.cjs.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/java.es.js +241 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/java.es.js.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/javascript.cjs +2 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/javascript.cjs.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/javascript.es.js +660 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/javascript.es.js.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/json.cjs +2 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/json.cjs.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/json.es.js +45 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/json.es.js.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/kotlin.cjs.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/kotlin.es.js.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/less.cjs +2 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/less.cjs.map +1 -0
- package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/less.es.js +10 -4
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/less.es.js.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/lua.cjs +2 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/lua.cjs.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/lua.es.js +60 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/lua.es.js.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/makefile.cjs.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/makefile.es.js.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/markdown.cjs +2 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/markdown.cjs.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/markdown.es.js +217 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/markdown.es.js.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/objectivec.cjs.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/objectivec.es.js.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/perl.cjs.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/perl.es.js.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/php-template.cjs.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/php-template.es.js.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/php.cjs +3 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/php.cjs.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/php.es.js +573 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/php.es.js.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/plaintext.cjs +2 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/plaintext.cjs.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/plaintext.es.js +14 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/plaintext.es.js.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/python-repl.cjs.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/python-repl.es.js.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/python.cjs +2 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/python.cjs.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/python.es.js +400 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/python.es.js.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/r.cjs.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/r.es.js.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/ruby.cjs.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/ruby.es.js.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/rust.cjs +2 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/rust.cjs.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/rust.es.js +306 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/rust.es.js.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/scss.cjs +2 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/scss.cjs.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/scss.es.js +915 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/scss.es.js.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/shell.cjs +2 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/shell.cjs.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/shell.es.js +26 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/shell.es.js.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/sql.cjs +2 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/sql.cjs.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/sql.es.js +616 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/sql.es.js.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/swift.cjs.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/swift.es.js.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/typescript.cjs +2 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/typescript.cjs.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/typescript.es.js +755 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/typescript.es.js.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/vbnet.cjs.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/vbnet.es.js.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/wasm.cjs.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/wasm.es.js.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/xml.cjs +2 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/xml.cjs.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/xml.es.js +220 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/xml.es.js.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/yaml.cjs +2 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/yaml.cjs.map +1 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/yaml.es.js +184 -0
- package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/yaml.es.js.map +1 -0
- package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/lib/core.cjs +3 -3
- package/dist/node_modules/lowlight/node_modules/highlight.js/lib/core.cjs.map +1 -0
- package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/lib/core.es.js +66 -66
- package/dist/node_modules/lowlight/node_modules/highlight.js/lib/core.es.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/Icon.es.js +3 -3
- package/dist/node_modules/mdast-util-find-and-replace/lib/index.cjs +1 -1
- package/dist/node_modules/mdast-util-find-and-replace/lib/index.cjs.map +1 -1
- package/dist/node_modules/mdast-util-find-and-replace/lib/index.es.js +58 -56
- package/dist/node_modules/mdast-util-find-and-replace/lib/index.es.js.map +1 -1
- package/dist/node_modules/mdast-util-from-markdown/lib/index.cjs +1 -1
- package/dist/node_modules/mdast-util-from-markdown/lib/index.cjs.map +1 -1
- package/dist/node_modules/mdast-util-from-markdown/lib/index.es.js +274 -223
- package/dist/node_modules/mdast-util-from-markdown/lib/index.es.js.map +1 -1
- package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.cjs +1 -1
- package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.cjs.map +1 -1
- package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.es.js +21 -17
- package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/footer.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/footer.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.cjs +2 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.es.js +7 -7
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/index.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/index.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/revert.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/revert.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/state.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-hast/lib/state.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.cjs +3 -3
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.es.js +9 -7
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.cjs +2 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.es.js +6 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.cjs +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.es.js +17 -29
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.cjs +5 -5
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.es.js +12 -11
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.cjs +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.es.js +14 -12
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.cjs +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.es.js +6 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.cjs +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.es.js +15 -13
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.cjs +2 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.es.js +42 -32
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.cjs +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.es.js +8 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.cjs +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.es.js +17 -29
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.cjs +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.es.js +8 -3
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/character.cjs +2 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/character.cjs.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/character.es.js +13 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/character.es.js.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.cjs +4 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.cjs.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.es.js +263 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.es.js.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.cjs +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.es.js +2 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.cjs +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.es.js +2 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.es.js.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/html-kind.cjs +2 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/html-kind.cjs.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/html-kind.es.js +22 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/html-kind.es.js.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.cjs.map +1 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.es.js.map +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-VBNYF7ZC.cjs +2 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-VBNYF7ZC.es.js +4 -4
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-5PPSVZJV.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-5PPSVZJV.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-2GRJ4B5K.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-2GRJ4B5K.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JQJVKLGR.cjs +2 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JQJVKLGR.es.js +4 -4
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-NSK5VX7P.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-NSK5VX7P.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-WRU74C26.es.js +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-JCYQIIEL.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-JCYQIIEL.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-OCEON4UE.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-OCEON4UE.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-B4RE2ZJO.cjs +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-B4RE2ZJO.es.js +4 -4
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-JOGREHBK.cjs +2 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-JOGREHBK.es.js +4 -4
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-UKHOOZJN.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-UKHOOZJN.es.js +5 -4
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-UKHOOZJN.es.js.map +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-PKOTCBZU.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-PKOTCBZU.es.js +2 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-FAOFIHXS.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-FAOFIHXS.cjs.map +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-FAOFIHXS.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-CIZ2JOQS.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-CIZ2JOQS.es.js +4 -4
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-W5VNT64P.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-W5VNT64P.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-SI44F4Z6.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-SI44F4Z6.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-OKZ733FA.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-OKZ733FA.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-UEYNNEHI.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-UEYNNEHI.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/swimlanesDiagram-ULZ7WXOC.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/swimlanesDiagram-ULZ7WXOC.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-T6HMQDX7.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-T6HMQDX7.es.js +2 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-ELKLHX3M.es.js +4 -4
- package/dist/node_modules/mermaid/dist/mermaid.core.cjs +1 -1
- package/dist/node_modules/mermaid/dist/mermaid.core.es.js +1 -1
- package/dist/node_modules/micromark/lib/constructs.cjs +1 -1
- package/dist/node_modules/micromark/lib/constructs.es.js +13 -13
- package/dist/node_modules/micromark-factory-space/index.cjs +1 -1
- package/dist/node_modules/micromark-factory-space/index.cjs.map +1 -1
- package/dist/node_modules/micromark-factory-space/index.es.js +9 -9
- package/dist/node_modules/micromark-factory-space/index.es.js.map +1 -1
- package/dist/node_modules/parse5/dist/parser/index.es.js +1 -1
- package/dist/node_modules/parse5/dist/tokenizer/index.cjs +1 -1
- package/dist/node_modules/parse5/dist/tokenizer/index.cjs.map +1 -1
- package/dist/node_modules/parse5/dist/tokenizer/index.es.js +2 -2
- package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.cjs.map +1 -0
- package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.es.js.map +1 -0
- package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode.cjs.map +1 -0
- package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode.es.js.map +1 -0
- package/dist/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.cjs.map +1 -0
- package/dist/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.es.js.map +1 -0
- package/dist/node_modules/property-information/lib/html.cjs +1 -1
- package/dist/node_modules/property-information/lib/html.cjs.map +1 -1
- package/dist/node_modules/property-information/lib/html.es.js +16 -6
- package/dist/node_modules/property-information/lib/html.es.js.map +1 -1
- package/dist/node_modules/property-information/lib/svg.cjs +1 -1
- package/dist/node_modules/property-information/lib/svg.cjs.map +1 -1
- package/dist/node_modules/property-information/lib/svg.es.js +4 -2
- package/dist/node_modules/property-information/lib/svg.es.js.map +1 -1
- package/dist/node_modules/rc-input/es/BaseInput.cjs +1 -1
- package/dist/node_modules/rc-input/es/BaseInput.es.js +1 -1
- package/dist/node_modules/rc-textarea/es/ResizableTextArea.cjs +1 -1
- package/dist/node_modules/rc-textarea/es/ResizableTextArea.es.js +1 -1
- package/dist/node_modules/rc-textarea/es/TextArea.cjs +1 -1
- package/dist/node_modules/rc-textarea/es/TextArea.es.js +1 -1
- package/dist/node_modules/rc-textarea/es/index.cjs +1 -1
- package/dist/node_modules/rc-textarea/es/index.es.js +1 -1
- package/dist/node_modules/rc-util/es/ref.es.js +1 -1
- package/dist/node_modules/rc-util/node_modules/react-is/index.es.js +1 -1
- package/dist/node_modules/react-i18next/dist/es/useTranslation.cjs +1 -1
- package/dist/node_modules/react-i18next/dist/es/useTranslation.es.js +7 -7
- package/dist/node_modules/remark-flow/dist/index.es.js +1 -1
- package/dist/node_modules/remark-flow/dist/interaction-parser.cjs.map +1 -1
- package/dist/node_modules/remark-flow/dist/interaction-parser.es.js +2 -2
- package/dist/node_modules/remark-flow/dist/interaction-parser.es.js.map +1 -1
- package/dist/node_modules/remark-flow/dist/interaction-plugin-core.cjs +1 -1
- package/dist/node_modules/remark-flow/dist/interaction-plugin-core.es.js +1 -1
- package/dist/node_modules/style-mod/src/style-mod.cjs +3 -3
- package/dist/node_modules/style-mod/src/style-mod.cjs.map +1 -1
- package/dist/node_modules/style-mod/src/style-mod.es.js +37 -35
- package/dist/node_modules/style-mod/src/style-mod.es.js.map +1 -1
- package/dist/node_modules/style-to-object/cjs/index.cjs +1 -1
- package/dist/node_modules/style-to-object/cjs/index.cjs.map +1 -1
- package/dist/node_modules/style-to-object/cjs/index.es.js +15 -15
- package/dist/node_modules/style-to-object/cjs/index.es.js.map +1 -1
- package/dist/node_modules/stylis/src/Parser.cjs +1 -1
- package/dist/node_modules/stylis/src/Parser.cjs.map +1 -1
- package/dist/node_modules/stylis/src/Parser.es.js +63 -52
- package/dist/node_modules/stylis/src/Parser.es.js.map +1 -1
- package/dist/node_modules/stylis/src/Utility.cjs +1 -1
- package/dist/node_modules/stylis/src/Utility.cjs.map +1 -1
- package/dist/node_modules/stylis/src/Utility.es.js +20 -24
- package/dist/node_modules/stylis/src/Utility.es.js.map +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.cjs +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.cjs.map +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.es.js +828 -561
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.es.js.map +1 -1
- package/dist/node_modules/ts-dedent/esm/index.cjs +5 -5
- package/dist/node_modules/ts-dedent/esm/index.cjs.map +1 -1
- package/dist/node_modules/ts-dedent/esm/index.es.js +20 -21
- package/dist/node_modules/ts-dedent/esm/index.es.js.map +1 -1
- package/dist/node_modules/unified/lib/index.es.js +1 -1
- package/dist/node_modules/unist-util-is/lib/index.cjs.map +1 -1
- package/dist/node_modules/unist-util-is/lib/index.es.js +8 -1
- package/dist/node_modules/unist-util-is/lib/index.es.js.map +1 -1
- package/dist/node_modules/unist-util-visit/lib/index.cjs +1 -1
- package/dist/node_modules/unist-util-visit/lib/index.cjs.map +1 -1
- package/dist/node_modules/unist-util-visit/lib/index.es.js +22 -12
- package/dist/node_modules/unist-util-visit/lib/index.es.js.map +1 -1
- package/dist/node_modules/unist-util-visit-parents/lib/color.cjs.map +1 -1
- package/dist/node_modules/unist-util-visit-parents/lib/color.es.js.map +1 -1
- package/dist/node_modules/unist-util-visit-parents/lib/index.cjs +1 -1
- package/dist/node_modules/unist-util-visit-parents/lib/index.cjs.map +1 -1
- package/dist/node_modules/unist-util-visit-parents/lib/index.es.js +72 -37
- package/dist/node_modules/unist-util-visit-parents/lib/index.es.js.map +1 -1
- package/dist/node_modules/uuid/dist/rng.cjs +2 -0
- package/dist/node_modules/uuid/dist/rng.cjs.map +1 -0
- package/dist/node_modules/uuid/dist/rng.es.js +8 -0
- package/dist/node_modules/uuid/dist/rng.es.js.map +1 -0
- package/dist/node_modules/uuid/dist/stringify.cjs.map +1 -0
- package/dist/node_modules/uuid/dist/stringify.es.js.map +1 -0
- package/dist/node_modules/uuid/dist/v4.cjs +2 -0
- package/dist/node_modules/uuid/dist/v4.cjs.map +1 -0
- package/dist/node_modules/uuid/dist/v4.es.js +16 -0
- package/dist/node_modules/uuid/dist/v4.es.js.map +1 -0
- package/dist/renderer.cjs +1 -1
- package/dist/renderer.es.js +3 -3
- package/dist/scroll.cjs +1 -1
- package/dist/scroll.es.js +2 -2
- package/package.json +18 -14
- package/dist/_virtual/advancedFormat.es2.js.map +0 -1
- package/dist/_virtual/cose-base.es2.js.map +0 -1
- package/dist/_virtual/customParseFormat.es2.js.map +0 -1
- package/dist/_virtual/cytoscape-cose-bilkent.es2.js +0 -5
- package/dist/_virtual/cytoscape-cose-bilkent.es2.js.map +0 -1
- package/dist/_virtual/cytoscape-fcose.es2.js.map +0 -1
- package/dist/_virtual/dayjs.min.es2.js.map +0 -1
- package/dist/_virtual/dayjs.min2.cjs.map +0 -1
- package/dist/_virtual/duration.es2.js.map +0 -1
- package/dist/_virtual/index.es10.js.map +0 -1
- package/dist/_virtual/index.es11.js.map +0 -1
- package/dist/_virtual/index.es12.js.map +0 -1
- package/dist/_virtual/index.es2.js.map +0 -1
- package/dist/_virtual/index.es3.js.map +0 -1
- package/dist/_virtual/index.es4.js.map +0 -1
- package/dist/_virtual/index.es5.js.map +0 -1
- package/dist/_virtual/index.es6.js.map +0 -1
- package/dist/_virtual/index.es7.js.map +0 -1
- package/dist/_virtual/index.es8.js.map +0 -1
- package/dist/_virtual/index.es9.js.map +0 -1
- package/dist/_virtual/isoWeek.es2.js.map +0 -1
- package/dist/_virtual/layout-base.es2.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs +0 -2
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.es.js +0 -25
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.es.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/primitive/dist/index.cjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/primitive/dist/index.es.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +0 -2
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.es.js +0 -34
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.es.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-context/dist/index.cjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-context/dist/index.es.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +0 -2
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.cjs +0 -2
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.cjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.es.js +0 -15
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.es.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.cjs +0 -2
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.cjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.es.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.cjs +0 -2
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.cjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.es.js +0 -104
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.es.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.cjs +0 -2
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +0 -2
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js +0 -13
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +0 -2
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-effect-event/dist/index.cjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-effect-event/dist/index.es.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs +0 -2
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.js +0 -7
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +0 -2
- package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-compose-refs/dist/index.es.js +0 -34
- package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-compose-refs/dist/index.es.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive/dist/index.cjs +0 -2
- package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +0 -2
- package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js +0 -13
- package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs +0 -2
- package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-popper/dist/index.es.js +0 -220
- package/dist/node_modules/@radix-ui/react-popper/dist/index.es.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.cjs +0 -2
- package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.cjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.es.js +0 -50
- package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.es.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +0 -2
- package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.es.js +0 -34
- package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.es.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs +0 -2
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs.map +0 -1
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.es.js +0 -15
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.es.js.map +0 -1
- package/dist/node_modules/entities/dist/esm/decode-codepoint.cjs.map +0 -1
- package/dist/node_modules/entities/dist/esm/decode-codepoint.es.js.map +0 -1
- package/dist/node_modules/entities/dist/esm/decode.cjs.map +0 -1
- package/dist/node_modules/entities/dist/esm/decode.es.js.map +0 -1
- package/dist/node_modules/entities/dist/esm/generated/decode-data-html.cjs.map +0 -1
- package/dist/node_modules/entities/dist/esm/generated/decode-data-html.es.js.map +0 -1
- package/dist/node_modules/hast-util-is-element/lib/index.cjs +0 -2
- package/dist/node_modules/hast-util-is-element/lib/index.cjs.map +0 -1
- package/dist/node_modules/hast-util-is-element/lib/index.es.js +0 -66
- package/dist/node_modules/hast-util-is-element/lib/index.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.cjs +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.cjs.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.es.js +0 -13
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.cjs +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.cjs.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.es.js +0 -62
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.cjs +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.cjs.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.es.js +0 -34
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.cjs +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.cjs.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.es.js +0 -369
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.cjs +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.cjs.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.es.js +0 -7
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.cjs +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.cjs.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.es.js +0 -567
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.cjs +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.cjs.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.es.js +0 -8
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.cjs +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.cjs.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.es.js +0 -7
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.cjs +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.cjs.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.es.js +0 -23
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.cjs +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.cjs.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.es.js +0 -28
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.cjs +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.cjs.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.es.js +0 -24
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.cjs +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.cjs.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.es.js +0 -12
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.cjs +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.cjs.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.es.js +0 -18
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.cjs +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.cjs.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.es.js +0 -15
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.cjs +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.cjs.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.es.js +0 -20
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.cjs +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.cjs.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.es.js +0 -12
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.cjs +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.cjs.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.es.js +0 -12
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.es.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/arduino.cjs +0 -2
- package/dist/node_modules/highlight.js/es/languages/arduino.cjs.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/arduino.es.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/csharp.cjs +0 -2
- package/dist/node_modules/highlight.js/es/languages/csharp.cjs.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/csharp.es.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/diff.cjs +0 -2
- package/dist/node_modules/highlight.js/es/languages/diff.cjs.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/diff.es.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/graphql.cjs.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/graphql.es.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/ini.cjs.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/ini.es.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/kotlin.cjs.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/kotlin.es.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/less.cjs +0 -2
- package/dist/node_modules/highlight.js/es/languages/less.cjs.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/less.es.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/makefile.cjs.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/makefile.es.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/objectivec.cjs.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/objectivec.es.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/perl.cjs.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/perl.es.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/php-template.cjs.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/php-template.es.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/python-repl.cjs.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/python-repl.es.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/r.cjs.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/r.es.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/ruby.cjs.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/ruby.es.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/swift.cjs.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/swift.es.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/vbnet.cjs.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/vbnet.es.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/wasm.cjs.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/wasm.es.js.map +0 -1
- package/dist/node_modules/highlight.js/lib/core.cjs.map +0 -1
- package/dist/node_modules/highlight.js/lib/core.es.js.map +0 -1
- package/dist/node_modules/inline-style-parser/index.cjs +0 -3
- package/dist/node_modules/inline-style-parser/index.cjs.map +0 -1
- package/dist/node_modules/inline-style-parser/index.es.js.map +0 -1
- package/dist/node_modules/unist-util-find-after/lib/index.cjs +0 -2
- package/dist/node_modules/unist-util-find-after/lib/index.cjs.map +0 -1
- package/dist/node_modules/unist-util-find-after/lib/index.es.js +0 -33
- package/dist/node_modules/unist-util-find-after/lib/index.es.js.map +0 -1
- package/dist/node_modules/uuid/dist/esm-browser/native.cjs +0 -2
- package/dist/node_modules/uuid/dist/esm-browser/native.cjs.map +0 -1
- package/dist/node_modules/uuid/dist/esm-browser/native.es.js +0 -5
- package/dist/node_modules/uuid/dist/esm-browser/native.es.js.map +0 -1
- package/dist/node_modules/uuid/dist/esm-browser/rng.cjs +0 -2
- package/dist/node_modules/uuid/dist/esm-browser/rng.cjs.map +0 -1
- package/dist/node_modules/uuid/dist/esm-browser/rng.es.js +0 -14
- package/dist/node_modules/uuid/dist/esm-browser/rng.es.js.map +0 -1
- package/dist/node_modules/uuid/dist/esm-browser/stringify.cjs.map +0 -1
- package/dist/node_modules/uuid/dist/esm-browser/stringify.es.js.map +0 -1
- package/dist/node_modules/uuid/dist/esm-browser/v4.cjs +0 -2
- package/dist/node_modules/uuid/dist/esm-browser/v4.cjs.map +0 -1
- package/dist/node_modules/uuid/dist/esm-browser/v4.es.js +0 -16
- package/dist/node_modules/uuid/dist/esm-browser/v4.es.js.map +0 -1
- /package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/primitive/dist/index.cjs +0 -0
- /package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/primitive/dist/index.es.js +0 -0
- /package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/react-context/dist/index.cjs +0 -0
- /package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/react-context/dist/index.es.js +0 -0
- /package/dist/node_modules/@radix-ui/{react-dialog/node_modules/@radix-ui/react-use-effect-event → react-use-effect-event}/dist/index.cjs +0 -0
- /package/dist/node_modules/@radix-ui/{react-dialog/node_modules/@radix-ui/react-use-effect-event → react-use-effect-event}/dist/index.es.js +0 -0
- /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/core.cjs.map +0 -0
- /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/core.es.js.map +0 -0
- /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/graphql.cjs +0 -0
- /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/graphql.es.js +0 -0
- /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/ini.cjs +0 -0
- /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/ini.es.js +0 -0
- /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/kotlin.cjs +0 -0
- /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/kotlin.es.js +0 -0
- /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/makefile.cjs +0 -0
- /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/makefile.es.js +0 -0
- /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/objectivec.cjs +0 -0
- /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/objectivec.es.js +0 -0
- /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/perl.cjs +0 -0
- /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/perl.es.js +0 -0
- /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/php-template.cjs +0 -0
- /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/php-template.es.js +0 -0
- /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/python-repl.cjs +0 -0
- /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/python-repl.es.js +0 -0
- /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/r.cjs +0 -0
- /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/r.es.js +0 -0
- /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/ruby.cjs +0 -0
- /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/ruby.es.js +0 -0
- /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/swift.cjs +0 -0
- /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/swift.es.js +0 -0
- /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/vbnet.cjs +0 -0
- /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/vbnet.es.js +0 -0
- /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/wasm.cjs +0 -0
- /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/wasm.es.js +0 -0
- /package/dist/node_modules/{entities → parse5/node_modules/entities}/dist/esm/decode-codepoint.cjs +0 -0
- /package/dist/node_modules/{entities → parse5/node_modules/entities}/dist/esm/decode-codepoint.es.js +0 -0
- /package/dist/node_modules/{entities → parse5/node_modules/entities}/dist/esm/decode.cjs +0 -0
- /package/dist/node_modules/{entities → parse5/node_modules/entities}/dist/esm/decode.es.js +0 -0
- /package/dist/node_modules/{entities → parse5/node_modules/entities}/dist/esm/generated/decode-data-html.cjs +0 -0
- /package/dist/node_modules/{entities → parse5/node_modules/entities}/dist/esm/generated/decode-data-html.es.js +0 -0
- /package/dist/node_modules/uuid/dist/{esm-browser/stringify.cjs → stringify.cjs} +0 -0
- /package/dist/node_modules/uuid/dist/{esm-browser/stringify.es.js → stringify.es.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import s from "../../@babel/runtime/helpers/esm/typeof.es.js";
|
|
2
2
|
import { version as c, isValidElement as l } from "react";
|
|
3
|
-
import { r as n } from "../../../_virtual/
|
|
3
|
+
import { r as n } from "../../../_virtual/index11.es.js";
|
|
4
4
|
import m from "./hooks/useMemo.es.js";
|
|
5
5
|
import v from "./React/isFragment.es.js";
|
|
6
6
|
var R = Number(c.split(".")[0]), y = function(r, t) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as e } from "../../../../_virtual/
|
|
1
|
+
import { __module as e } from "../../../../_virtual/index12.es.js";
|
|
2
2
|
import { __require as o } from "./cjs/react-is.production.min.es.js";
|
|
3
3
|
import { __require as t } from "./cjs/react-is.development.es.js";
|
|
4
4
|
var r;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react"),h=require("./context.cjs"),i=require("./utils.cjs"),q=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react"),h=require("./context.cjs"),i=require("./utils.cjs"),q=require("./defaults.cjs"),M=require("./i18nInstance.cjs"),O=(u,t)=>{const r=f.useRef();return f.useEffect(()=>{r.current=u},[u,t]),r.current},x=(u,t,r,g)=>u.getFixedT(t,r,g),j=(u,t,r,g)=>f.useCallback(x(u,t,r,g),[u,t,r,g]),A=(u,t={})=>{const{i18n:r}=t,{i18n:g,defaultNS:C}=f.useContext(h.I18nContext)||{},e=r||g||M.getI18n();if(e&&!e.reportNamespaces&&(e.reportNamespaces=new h.ReportNamespaces),!e){i.warnOnce(e,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const s=(a,c)=>i.isString(c)?c:i.isObject(c)&&i.isString(c.defaultValue)?c.defaultValue:Array.isArray(a)?a[a.length-1]:a,o=[s,{},!1];return o.t=s,o.i18n={},o.ready=!1,o}e.options.react?.wait&&i.warnOnce(e,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const N={...q.getDefaults(),...e.options.react,...t},{useSuspense:b,keyPrefix:w}=N;let n=C||e.options?.defaultNS;n=i.isString(n)?[n]:n||["translation"],e.reportNamespaces.addUsedNamespaces?.(n);const l=(e.isInitialized||e.initializedStoreOnce)&&n.every(s=>i.hasLoadedNamespace(s,e,N)),P=j(e,t.lng||null,N.nsMode==="fallback"?n:n[0],w),I=()=>P,y=()=>x(e,t.lng||null,N.nsMode==="fallback"?n:n[0],w),[E,m]=f.useState(I);let T=n.join();t.lng&&(T=`${t.lng}${T}`);const R=O(T),d=f.useRef(!0);f.useEffect(()=>{const{bindI18n:s,bindI18nStore:o}=N;d.current=!0,!l&&!b&&(t.lng?i.loadLanguages(e,t.lng,n,()=>{d.current&&m(y)}):i.loadNamespaces(e,n,()=>{d.current&&m(y)})),l&&R&&R!==T&&d.current&&m(y);const a=()=>{d.current&&m(y)};return s&&e?.on(s,a),o&&e?.store.on(o,a),()=>{d.current=!1,e&&s&&s?.split(" ").forEach(c=>e.off(c,a)),o&&e&&o.split(" ").forEach(c=>e.store.off(c,a))}},[e,T]),f.useEffect(()=>{d.current&&l&&m(I)},[e,w,l]);const S=[E,e,l];if(S.t=E,S.i18n=e,S.ready=l,l||!l&&!b)return S;throw new Promise(s=>{t.lng?i.loadLanguages(e,t.lng,n,()=>s()):i.loadNamespaces(e,n,()=>s())})};exports.useTranslation=A;
|
|
2
2
|
//# sourceMappingURL=useTranslation.cjs.map
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { useContext as M,
|
|
1
|
+
import { useContext as M, useState as j, useRef as R, useEffect as w, useCallback as z } from "react";
|
|
2
2
|
import { I18nContext as O, ReportNamespaces as _ } from "./context.es.js";
|
|
3
3
|
import { warnOnce as E, hasLoadedNamespace as v, loadLanguages as p, loadNamespaces as C, isString as S, isObject as L } from "./utils.es.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { getDefaults as $ } from "./defaults.es.js";
|
|
5
|
+
import { getI18n as G } from "./i18nInstance.es.js";
|
|
6
6
|
const J = (c, t) => {
|
|
7
7
|
const i = R();
|
|
8
8
|
return w(() => {
|
|
9
9
|
i.current = c;
|
|
10
10
|
}, [c, t]), i.current;
|
|
11
|
-
}, P = (c, t, i, l) => c.getFixedT(t, i, l), U = (c, t, i, l) =>
|
|
11
|
+
}, P = (c, t, i, l) => c.getFixedT(t, i, l), U = (c, t, i, l) => z(P(c, t, i, l), [c, t, i, l]), H = (c, t = {}) => {
|
|
12
12
|
const {
|
|
13
13
|
i18n: i
|
|
14
14
|
} = t, {
|
|
15
15
|
i18n: l,
|
|
16
16
|
defaultNS: A
|
|
17
|
-
} = M(O) || {}, e = i || l ||
|
|
17
|
+
} = M(O) || {}, e = i || l || G();
|
|
18
18
|
if (e && !e.reportNamespaces && (e.reportNamespaces = new _()), !e) {
|
|
19
19
|
E(e, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next");
|
|
20
20
|
const s = (r, a) => S(a) ? a : L(a) && S(a.defaultValue) ? a.defaultValue : Array.isArray(r) ? r[r.length - 1] : r, o = [s, {}, !1];
|
|
@@ -22,7 +22,7 @@ const J = (c, t) => {
|
|
|
22
22
|
}
|
|
23
23
|
e.options.react?.wait && E(e, "DEPRECATED_OPTION", "useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
|
24
24
|
const d = {
|
|
25
|
-
|
|
25
|
+
...$(),
|
|
26
26
|
...e.options.react,
|
|
27
27
|
...t
|
|
28
28
|
}, {
|
|
@@ -31,7 +31,7 @@ const J = (c, t) => {
|
|
|
31
31
|
} = d;
|
|
32
32
|
let n = A || e.options?.defaultNS;
|
|
33
33
|
n = S(n) ? [n] : n || ["translation"], e.reportNamespaces.addUsedNamespaces?.(n);
|
|
34
|
-
const u = (e.isInitialized || e.initializedStoreOnce) && n.every((s) => v(s, e, d)), F = U(e, t.lng || null, d.nsMode === "fallback" ? n : n[0], y), b = () => F, T = () => P(e, t.lng || null, d.nsMode === "fallback" ? n : n[0], y), [h, m] =
|
|
34
|
+
const u = (e.isInitialized || e.initializedStoreOnce) && n.every((s) => v(s, e, d)), F = U(e, t.lng || null, d.nsMode === "fallback" ? n : n[0], y), b = () => F, T = () => P(e, t.lng || null, d.nsMode === "fallback" ? n : n[0], y), [h, m] = j(b);
|
|
35
35
|
let N = n.join();
|
|
36
36
|
t.lng && (N = `${t.lng}${N}`);
|
|
37
37
|
const x = J(N), f = R(!0);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as a } from "../../../_virtual/
|
|
1
|
+
import { __exports as a } from "../../../_virtual/index2.es.js";
|
|
2
2
|
import { __require as m } from "./remark-custom-variable.es.js";
|
|
3
3
|
import { __require as d } from "./remark-flow.es.js";
|
|
4
4
|
import { __require as o } from "./remark-interaction.es.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interaction-parser.cjs","sources":["../../../../node_modules/remark-flow/dist/interaction-parser.js"],"sourcesContent":["\"use strict\";\n/**\n * MarkdownFlow Interactive Block Layered Parser - TypeScript Version\n *\n * Uses a three-layer analysis architecture:\n * Layer 1: ?[] format validation\n * Layer 2: Variable detection and pattern classification\n * Layer 3: Specific content parsing\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.InteractionParser = exports.COMPILED_REGEXES = exports.InteractionType = void 0;\nexports.parseInteractionFormat = parseInteractionFormat;\nexports.createInteractionParser = createInteractionParser;\nconst escaping_1 = require(\"./escaping\");\nconst variable_name_1 = require(\"./variable-name\");\n// Interaction input type enumeration\nvar InteractionType;\n(function (InteractionType) {\n InteractionType[\"TEXT_ONLY\"] = \"text_only\";\n InteractionType[\"BUTTONS_ONLY\"] = \"buttons_only\";\n InteractionType[\"BUTTONS_WITH_TEXT\"] = \"buttons_with_text\";\n InteractionType[\"BUTTONS_MULTI_SELECT\"] = \"buttons_multi_select\";\n InteractionType[\"BUTTONS_MULTI_WITH_TEXT\"] = \"buttons_multi_with_text\";\n InteractionType[\"NON_ASSIGNMENT_BUTTON\"] = \"non_assignment_button\";\n})(InteractionType || (exports.InteractionType = InteractionType = {}));\n// Pre-compiled regex constants\nexports.COMPILED_REGEXES = {\n // Layer 1: Basic format validation - matches ?[content] but excludes ?[text](url) format.\n // The content accepts an escaped delimiter as one unit, so a `\\]` inside an option does not\n // end the interaction. See ./escaping.\n LAYER1_INTERACTION: new RegExp(`\\\\?\\\\[(${escaping_1.INTERACTION_CONTENT_SOURCE})\\\\](?!\\\\()`),\n // Names use the teaching engine's grammar; only the content after the marker is split into\n // choices, display/value pairs or a text input. The leading assignment accepts either marker\n // spelling inside an interaction; document references retain their own semantics.\n LAYER2_VARIABLE: new RegExp(`^${variable_name_1.VARIABLE_PADDING_SOURCE}%?${variable_name_1.VARIABLE_REFERENCE_SOURCE}([\\\\s\\\\S]*)$`),\n // Layer 3: Split content before and after ...\n LAYER3_ELLIPSIS: /^(.*?)\\.\\.\\.(.*)/,\n // Kept for consumers that inspect the exported regex collection. Exact\n // single-pipe splitting requires context that Safari-safe regexes cannot\n // express without consuming adjacent text, and now also has to skip a bar\n // an option escaped, so the parser uses the scanner in ./escaping instead.\n LAYER3_SINGLE_PIPE_SPLIT: /\\|(?!\\|)/g,\n};\n/**\n * Layered interaction parser class\n */\nclass InteractionParser {\n constructor() {\n // Constructor is intentionally empty - no initialization needed\n }\n /**\n * Main parsing method\n *\n * @param content - Raw content of interaction block\n * @returns Standardized parse result\n */\n parse(content) {\n try {\n // Layer 1: Validate basic format\n const innerContent = this._layer1ValidateFormat(content);\n if (innerContent === null) {\n return this._createErrorResult(`Invalid interaction format: ${content}`);\n }\n // Layer 2: Variable detection and pattern classification\n const [hasVariable, variableName, remainingContent] = this._layer2DetectVariable(innerContent);\n // Layer 3: Specific content parsing\n if (hasVariable && variableName === null) {\n return this._createErrorResult('Invalid variable name');\n }\n if (hasVariable && variableName) {\n return this._layer3ParseVariableInteraction(variableName, remainingContent);\n }\n else {\n return this._layer3ParseDisplayButtons(innerContent);\n }\n }\n catch (error) {\n return this._createErrorResult(`Parsing error: ${error instanceof Error ? error.message : 'Unknown error'}`);\n }\n }\n /**\n * Parse and convert to remark-compatible format\n *\n * @param content - Raw content of interaction block\n * @returns remark-compatible result object\n */\n parseToRemarkFormat(content) {\n const result = this.parse(content);\n if (result.error) {\n // Compatibility handling when parsing fails\n return { placeholder: (0, variable_name_1.trimVariablePadding)(content) };\n }\n // Convert to remark-compatible format\n const remarkResult = {};\n if (result.type === InteractionType.NON_ASSIGNMENT_BUTTON) {\n // Non-assignment interaction (no variableName in the output)\n const nonAssignmentResult = result;\n if (nonAssignmentResult.buttons.length > 0) {\n remarkResult.buttonTexts = nonAssignmentResult.buttons.map(b => b.display);\n remarkResult.buttonValues = nonAssignmentResult.buttons.map(b => b.value);\n }\n if (nonAssignmentResult.question !== undefined) {\n remarkResult.placeholder = nonAssignmentResult.question;\n }\n if (nonAssignmentResult.isMultiSelect !== undefined) {\n remarkResult.isMultiSelect = nonAssignmentResult.isMultiSelect;\n }\n }\n else if (result.type !== null) {\n // Variable interaction\n const variableResult = result;\n remarkResult.variableName = variableResult.variable;\n if (variableResult.buttons) {\n remarkResult.buttonTexts = variableResult.buttons.map(b => b.display);\n remarkResult.buttonValues = variableResult.buttons.map(b => b.value);\n }\n if (variableResult.question !== undefined) {\n remarkResult.placeholder = variableResult.question;\n }\n if (variableResult.isMultiSelect !== undefined) {\n remarkResult.isMultiSelect = variableResult.isMultiSelect;\n }\n }\n return remarkResult;\n }\n /**\n * Layer 1: Validate ?[] format and extract content\n *\n * @param content - Raw content\n * @returns Extracted bracket content, returns null if validation fails\n */\n _layer1ValidateFormat(content) {\n content = (0, variable_name_1.trimVariablePadding)(content);\n const span = (0, escaping_1.readInteraction)(content);\n return span?.complete && span.end === content.length ? span.content : null;\n }\n /**\n * Layer 2: Detect variables and perform pattern classification\n *\n * @param innerContent - Content extracted from layer 1\n * @returns [hasVariable, variableName, remainingContent]\n */\n _layer2DetectVariable(innerContent) {\n innerContent = (0, variable_name_1.trimVariablePadding)(innerContent);\n const markerStart = innerContent.startsWith('%') ? 1 : 0;\n if (!innerContent.startsWith('{{', markerStart)) {\n // No variable, entire content used for display button parsing\n return [false, null, innerContent];\n }\n const marker = (0, variable_name_1.readVariableMarker)(innerContent, markerStart);\n if (!marker)\n return [true, null, innerContent];\n const variableName = (0, variable_name_1.normalizeVariableName)(marker.rawName);\n const remainingContent = (0, variable_name_1.trimVariablePadding)(innerContent.slice(marker.end));\n return [true, variableName, remainingContent];\n }\n /**\n * Parse the structural shape of interaction content: buttons, optional\n * `...question` text input, multi-select flag. Shared by the variable and\n * non-assignment branches, which only differ in how they map the shape\n * into their result types.\n *\n * @param content - Content after the (optional) variable\n * @returns The parsed content shape\n */\n _parseContentShape(content) {\n const ellipsis = (0, escaping_1.splitOnEllipsis)(content);\n if (ellipsis) {\n const beforeEllipsis = (0, variable_name_1.trimVariablePadding)(ellipsis[0]);\n const question = (0, variable_name_1.trimVariablePadding)((0, escaping_1.unescapeInteractionText)(ellipsis[1]));\n if (beforeEllipsis) {\n // Button group + text input: ?[Button1 | Button2 | ...question]\n const [buttons, isMultiSelect] = this._parseButtons(beforeEllipsis);\n return { buttons, question, isMultiSelect, hasTextInput: true };\n }\n // Pure text input: ?[...question]\n return {\n buttons: [],\n question,\n isMultiSelect: false,\n hasTextInput: true,\n };\n }\n if ((0, escaping_1.findUnescaped)(content, '|') >= 0) {\n // Button group: ?[Button1 | Button2] or ?[Button1 || Button2]\n const [buttons, isMultiSelect] = this._parseButtons(content);\n return { buttons, isMultiSelect, hasTextInput: false };\n }\n if (content) {\n // Single button: ?[Button1] or ?[Button1//id1]\n return {\n buttons: [this._parseSingleButton(content)],\n isMultiSelect: false,\n hasTextInput: false,\n };\n }\n // Empty content: pure text input with no prompt\n return {\n buttons: [],\n question: '',\n isMultiSelect: false,\n hasTextInput: true,\n };\n }\n /**\n * Layer 3: Parse variable interaction (variable assignment type)\n *\n * @param variableName - Variable name\n * @param content - Content after variable\n * @returns Parse result\n */\n _layer3ParseVariableInteraction(variableName, content) {\n const shape = this._parseContentShape(content);\n if (shape.hasTextInput) {\n if (shape.buttons.length > 0) {\n // Button group + text input: ?[%{{var}} Button1 | Button2 | ...question]\n return {\n type: shape.isMultiSelect\n ? InteractionType.BUTTONS_MULTI_WITH_TEXT\n : InteractionType.BUTTONS_WITH_TEXT,\n variable: variableName,\n buttons: shape.buttons,\n question: shape.question,\n isMultiSelect: shape.isMultiSelect,\n };\n }\n // Pure text input: ?[%{{var}}...question] or ?[%{{var}}]\n return {\n type: InteractionType.TEXT_ONLY,\n variable: variableName,\n question: shape.question ?? '',\n isMultiSelect: false,\n };\n }\n // Button group or single button: ?[%{{var}} Button1 | Button2]\n return {\n type: shape.isMultiSelect\n ? InteractionType.BUTTONS_MULTI_SELECT\n : InteractionType.BUTTONS_ONLY,\n variable: variableName,\n buttons: shape.buttons,\n isMultiSelect: shape.isMultiSelect,\n };\n }\n /**\n * Layer 3: Parse non-assignment interactions (no variable). Same shapes as\n * the variable branch; the answer is not assigned to a variable.\n *\n * @param content - Content\n * @returns Parse result\n */\n _layer3ParseDisplayButtons(content) {\n if (!content) {\n // Empty content: ?[]\n return {\n type: InteractionType.NON_ASSIGNMENT_BUTTON,\n buttons: [{ display: '', value: '' }],\n };\n }\n const shape = this._parseContentShape(content);\n const result = {\n type: InteractionType.NON_ASSIGNMENT_BUTTON,\n buttons: shape.buttons,\n isMultiSelect: shape.isMultiSelect,\n };\n if (shape.hasTextInput) {\n result.question = shape.question;\n }\n return result;\n }\n /**\n * Parse button group with fault tolerance\n *\n * @param content - Button content, separated by | or ||\n * @returns [button list, isMultiSelect]\n */\n _parseButtons(content) {\n if (!content || typeof content !== 'string') {\n return [[], false];\n }\n const [_separator, isMultiSelect] = this._detectSeparatorType(content);\n const buttons = [];\n try {\n // Use different splitting logic based on separator type\n let buttonTexts;\n if (isMultiSelect) {\n // Multi-select mode: split on ||, preserve single |\n buttonTexts = (0, escaping_1.splitUnescaped)(content, '||');\n }\n else {\n // Single-select mode: split on single |, but preserve ||\n buttonTexts = (0, escaping_1.splitOnSingleUnescapedPipe)(content);\n }\n for (const buttonText of buttonTexts) {\n const trimmed = (0, variable_name_1.trimVariablePadding)(buttonText);\n if (trimmed) {\n const button = this._parseSingleButton(trimmed);\n buttons.push(button);\n }\n }\n }\n catch {\n // Fallback to treating entire content as single button\n const whole = (0, variable_name_1.trimVariablePadding)((0, escaping_1.unescapeInteractionText)(content));\n return [[{ display: whole, value: whole }], false];\n }\n // For empty content (like just separators), return empty list\n if (!buttons.length &&\n ((0, variable_name_1.trimVariablePadding)(content) === '||' ||\n (0, variable_name_1.trimVariablePadding)(content) === '|')) {\n return [[], isMultiSelect];\n }\n // Ensure at least one button exists (but only if there's actual content)\n if (!buttons.length && (0, variable_name_1.trimVariablePadding)(content)) {\n const whole = (0, variable_name_1.trimVariablePadding)((0, escaping_1.unescapeInteractionText)(content));\n buttons.push({ display: whole, value: whole });\n }\n return [buttons, isMultiSelect];\n }\n /**\n * Parse single button, supports Button//value format\n *\n * @param buttonText - Button text\n * @returns {display: display text, value: actual value}\n */\n _parseSingleButton(buttonText) {\n buttonText = (0, variable_name_1.trimVariablePadding)(buttonText);\n // Detect Button//value format: split at the first \"//\" with a non-empty\n // display before it and a non-empty value after it. (indexOf instead of\n // a lazy/greedy regex, whose backtracking is super-linear.)\n const separatorIndex = (0, escaping_1.findUnescaped)(buttonText, '//');\n if (separatorIndex > 0 && separatorIndex + 2 < buttonText.length) {\n return {\n display: (0, variable_name_1.trimVariablePadding)((0, escaping_1.unescapeInteractionText)(buttonText.slice(0, separatorIndex))),\n value: (0, variable_name_1.trimVariablePadding)((0, escaping_1.unescapeInteractionText)(buttonText.slice(separatorIndex + 2))),\n };\n }\n const resolved = (0, escaping_1.unescapeInteractionText)(buttonText);\n return { display: resolved, value: resolved };\n }\n /**\n * Detect separator type and whether it's multi-select\n *\n * Logic: The first separator type encountered determines the parsing mode:\n * - If first separator is |, then || is treated as part of the value\n * - If first separator is ||, then single | is treated as part of the value\n *\n * @param content - Button content to analyze\n * @returns [separator, isMultiSelect] where separator is '|' or '||'\n */\n _detectSeparatorType(content) {\n if (!content || typeof content !== 'string') {\n return ['|', false];\n }\n // Find the position of first single pipe and first double pipe.\n // A bar an option escaped is not a separator.\n const singlePipePos = (0, escaping_1.findUnescaped)(content, '|');\n const doublePipePos = (0, escaping_1.findUnescaped)(content, '||');\n // If no pipes found\n if (singlePipePos === -1) {\n return ['|', false];\n }\n // If no double pipe found, definitely single-select\n if (doublePipePos === -1) {\n return ['|', false];\n }\n // Both found - check which comes first\n // If double pipe comes first or at the same position (which means\n // the single pipe is part of the double pipe), it's multi-select mode\n if (doublePipePos <= singlePipePos) {\n return ['||', true];\n }\n // If single pipe comes first, it's single-select mode\n return ['|', false];\n }\n /**\n * Create error result\n *\n * @param errorMessage - Error message\n * @returns Error result\n */\n _createErrorResult(errorMessage) {\n return {\n type: null,\n error: errorMessage,\n };\n }\n}\nexports.InteractionParser = InteractionParser;\n/**\n * Convenience function for parsing interaction format\n *\n * Supported formats:\n * 1. ?[%{{var}}...question] - Pure text input\n * 2. ?[%{{var}} option1|option2] - Pure button group (supports display//value format)\n * 3. ?[%{{var}} option1|option2|...question] - Button group + text input\n * 4. ?[%{{var}} option1||option2] - Multi-select button group\n * 5. ?[%{{var}} option1||option2||...question] - Multi-select button group + text input\n * 6. ?[%{{var}} single option] - Single button selection\n * 7. ?[Continue] or ?[Continue|Cancel] - Non-assignment button\n *\n * @param content - Raw content of interaction block\n * @returns [interaction type, parsed data]\n */\nfunction parseInteractionFormat(content) {\n // Use new layered parser\n const parser = new InteractionParser();\n const result = parser.parse(content);\n // Handle parse errors\n if (result.error) {\n // Compatibility handling when parsing fails\n return [\n InteractionType.TEXT_ONLY,\n { question: (0, variable_name_1.trimVariablePadding)(content) },\n ];\n }\n // Extract parse result and convert to original return format\n const interactionType = result.type;\n // Build return data dictionary for backward compatibility\n const returnData = {};\n if (result.type !== InteractionType.NON_ASSIGNMENT_BUTTON) {\n const variableResult = result;\n if (variableResult.variable !== undefined) {\n returnData.variable = variableResult.variable;\n }\n if (variableResult.buttons !== undefined) {\n returnData.buttons = variableResult.buttons;\n }\n if (variableResult.question !== undefined) {\n returnData.question = variableResult.question;\n }\n if (variableResult.isMultiSelect !== undefined) {\n returnData.isMultiSelect = variableResult.isMultiSelect;\n }\n }\n else {\n const buttonResult = result;\n if (buttonResult.buttons !== undefined) {\n returnData.buttons = buttonResult.buttons;\n }\n }\n // Ensure we have a valid interaction type, fallback to TEXT_ONLY if null\n const finalType = interactionType || InteractionType.TEXT_ONLY;\n return [finalType, returnData];\n}\n/**\n * Factory function to create parser instance\n */\nfunction createInteractionParser() {\n return new InteractionParser();\n}\n//# sourceMappingURL=interaction-parser.js.map"],"names":["interactionParser","parseInteractionFormat","createInteractionParser","escaping_1","require$$0","variable_name_1","require$$1","InteractionType","InteractionParser","content","innerContent","hasVariable","variableName","remainingContent","error","result","remarkResult","nonAssignmentResult","b","variableResult","span","markerStart","marker","ellipsis","beforeEllipsis","question","buttons","isMultiSelect","shape","_separator","buttonTexts","buttonText","trimmed","button","whole","separatorIndex","resolved","singlePipePos","doublePipePos","errorMessage","interactionType","returnData","buttonResult"],"mappings":"wPASA,OAAO,eAAeA,EAAAA,UAAS,aAAc,CAAE,MAAO,GAAM,EAC5DA,EAAAA,UAAA,kBAA4BA,EAAAA,UAAA,iBAA2BA,EAAAA,UAAA,gBAA0B,OACjFA,EAAAA,UAAA,uBAAiCC,EACjCD,EAAAA,UAAA,wBAAkCE,EAClC,MAAMC,EAAaC,EAAAA,UAAA,EACbC,EAAkBC,EAAAA,UAAA,EAExB,IAAIC,GACH,SAAUA,EAAiB,CACxBA,EAAgB,UAAe,YAC/BA,EAAgB,aAAkB,eAClCA,EAAgB,kBAAuB,oBACvCA,EAAgB,qBAA0B,uBAC1CA,EAAgB,wBAA6B,0BAC7CA,EAAgB,sBAA2B,uBAC/C,GAAGA,IAAoBP,EAAAA,UAAA,gBAA0BO,EAAkB,CAAA,EAAG,EAEtEP,EAAAA,UAAA,iBAA2B,CAIvB,mBAAoB,IAAI,OAAO,UAAUG,EAAW,0BAA0B,aAAa,EAI3F,gBAAiB,IAAI,OAAO,IAAIE,EAAgB,uBAAuB,KAAKA,EAAgB,yBAAyB,cAAc,EAEnI,gBAAiB,mBAKjB,yBAA0B,aAK9B,MAAMG,CAAkB,CACpB,aAAc,CAElB,CAOI,MAAMC,E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EAAW,eAAeM,EAAS,GAAG,EAC1D6B,KAAoBnC,EAAW,eAAeM,EAAS,IAAI,EAEjE,OAAI4B,IAAkB,GACX,CAAC,IAAK,EAAK,EAGlBC,IAAkB,GACX,CAAC,IAAK,EAAK,EAKlBA,GAAiBD,EACV,CAAC,KAAM,EAAI,EAGf,CAAC,IAAK,EAAK,CAC1B,CAOI,mBAAmBE,EAAc,CAC7B,MAAO,CACH,KAAM,KACN,MAAOA,EAEnB,CACA,CACAvC,EAAAA,UAAA,kBAA4BQ,EAgB5B,SAASP,EAAuBQ,EAAS,CAGrC,MAAMM,EADS,IAAIP,EAAiB,EACd,MAAMC,CAAO,EAEnC,GAAIM,EAAO,MAEP,MAAO,CACHR,EAAgB,UAChB,CAAE,YAAcF,EAAgB,qBAAqBI,CAAO,CAAC,GAIrE,MAAM+B,EAAkBzB,EAAO,KAEzB0B,EAAa,CAAA,EACnB,GAAI1B,EAAO,OAASR,EAAgB,sBAAuB,CACvD,MAAMY,EAAiBJ,EACnBI,EAAe,WAAa,SAC5BsB,EAAW,SAAWtB,EAAe,UAErCA,EAAe,UAAY,SAC3BsB,EAAW,QAAUtB,EAAe,SAEpCA,EAAe,WAAa,SAC5BsB,EAAW,SAAWtB,EAAe,UAErCA,EAAe,gBAAkB,SACjCsB,EAAW,cAAgBtB,EAAe,cAEtD,KACS,CACD,MAAMuB,EAAe3B,EACjB2B,EAAa,UAAY,SACzBD,EAAW,QAAUC,EAAa,QAE9C,CAGI,MAAO,CADWF,GAAmBjC,EAAgB,UAClCkC,CAAU,CACjC,CAIA,SAASvC,GAA0B,CAC/B,OAAO,IAAIM,CACf","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"interaction-parser.cjs","sources":["../../../../node_modules/remark-flow/dist/interaction-parser.js"],"sourcesContent":["\"use strict\";\n/**\n * MarkdownFlow Interactive Block Layered Parser - TypeScript Version\n *\n * Uses a three-layer analysis architecture:\n * Layer 1: ?[] format validation\n * Layer 2: Variable detection and pattern classification\n * Layer 3: Specific content parsing\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.InteractionParser = exports.COMPILED_REGEXES = exports.InteractionType = void 0;\nexports.parseInteractionFormat = parseInteractionFormat;\nexports.createInteractionParser = createInteractionParser;\nconst escaping_1 = require(\"./escaping\");\nconst variable_name_1 = require(\"./variable-name\");\n// Interaction input type enumeration\nvar InteractionType;\n(function (InteractionType) {\n InteractionType[\"TEXT_ONLY\"] = \"text_only\";\n InteractionType[\"BUTTONS_ONLY\"] = \"buttons_only\";\n InteractionType[\"BUTTONS_WITH_TEXT\"] = \"buttons_with_text\";\n InteractionType[\"BUTTONS_MULTI_SELECT\"] = \"buttons_multi_select\";\n InteractionType[\"BUTTONS_MULTI_WITH_TEXT\"] = \"buttons_multi_with_text\";\n InteractionType[\"NON_ASSIGNMENT_BUTTON\"] = \"non_assignment_button\";\n})(InteractionType || (exports.InteractionType = InteractionType = {}));\n// Pre-compiled regex constants\nexports.COMPILED_REGEXES = {\n // Layer 1: Basic format validation - matches ?[content] but excludes ?[text](url) format.\n // The content accepts an escaped delimiter as one unit, so a `\\]` inside an option does not\n // end the interaction. See ./escaping.\n LAYER1_INTERACTION: new RegExp(`\\\\?\\\\[(${escaping_1.INTERACTION_CONTENT_SOURCE})\\\\](?!\\\\()`),\n // Names use the teaching engine's grammar; only the content after the marker is split into\n // choices, display/value pairs or a text input. A leading {{name}} binds the answer;\n // the percent prefix is retained for legacy content only.\n LAYER2_VARIABLE: new RegExp(`^${variable_name_1.VARIABLE_PADDING_SOURCE}%?${variable_name_1.VARIABLE_REFERENCE_SOURCE}([\\\\s\\\\S]*)$`),\n // Layer 3: Split content before and after ...\n LAYER3_ELLIPSIS: /^(.*?)\\.\\.\\.(.*)/,\n // Kept for consumers that inspect the exported regex collection. Exact\n // single-pipe splitting requires context that Safari-safe regexes cannot\n // express without consuming adjacent text, and now also has to skip a bar\n // an option escaped, so the parser uses the scanner in ./escaping instead.\n LAYER3_SINGLE_PIPE_SPLIT: /\\|(?!\\|)/g,\n};\n/**\n * Layered interaction parser class\n */\nclass InteractionParser {\n constructor() {\n // Constructor is intentionally empty - no initialization needed\n }\n /**\n * Main parsing method\n *\n * @param content - Raw content of interaction block\n * @returns Standardized parse result\n */\n parse(content) {\n try {\n // Layer 1: Validate basic format\n const innerContent = this._layer1ValidateFormat(content);\n if (innerContent === null) {\n return this._createErrorResult(`Invalid interaction format: ${content}`);\n }\n // Layer 2: Variable detection and pattern classification\n const [hasVariable, variableName, remainingContent] = this._layer2DetectVariable(innerContent);\n // Layer 3: Specific content parsing\n if (hasVariable && variableName === null) {\n return this._createErrorResult('Invalid variable name');\n }\n if (hasVariable && variableName) {\n return this._layer3ParseVariableInteraction(variableName, remainingContent);\n }\n else {\n return this._layer3ParseDisplayButtons(innerContent);\n }\n }\n catch (error) {\n return this._createErrorResult(`Parsing error: ${error instanceof Error ? error.message : 'Unknown error'}`);\n }\n }\n /**\n * Parse and convert to remark-compatible format\n *\n * @param content - Raw content of interaction block\n * @returns remark-compatible result object\n */\n parseToRemarkFormat(content) {\n const result = this.parse(content);\n if (result.error) {\n // Compatibility handling when parsing fails\n return { placeholder: (0, variable_name_1.trimVariablePadding)(content) };\n }\n // Convert to remark-compatible format\n const remarkResult = {};\n if (result.type === InteractionType.NON_ASSIGNMENT_BUTTON) {\n // Non-assignment interaction (no variableName in the output)\n const nonAssignmentResult = result;\n if (nonAssignmentResult.buttons.length > 0) {\n remarkResult.buttonTexts = nonAssignmentResult.buttons.map(b => b.display);\n remarkResult.buttonValues = nonAssignmentResult.buttons.map(b => b.value);\n }\n if (nonAssignmentResult.question !== undefined) {\n remarkResult.placeholder = nonAssignmentResult.question;\n }\n if (nonAssignmentResult.isMultiSelect !== undefined) {\n remarkResult.isMultiSelect = nonAssignmentResult.isMultiSelect;\n }\n }\n else if (result.type !== null) {\n // Variable interaction\n const variableResult = result;\n remarkResult.variableName = variableResult.variable;\n if (variableResult.buttons) {\n remarkResult.buttonTexts = variableResult.buttons.map(b => b.display);\n remarkResult.buttonValues = variableResult.buttons.map(b => b.value);\n }\n if (variableResult.question !== undefined) {\n remarkResult.placeholder = variableResult.question;\n }\n if (variableResult.isMultiSelect !== undefined) {\n remarkResult.isMultiSelect = variableResult.isMultiSelect;\n }\n }\n return remarkResult;\n }\n /**\n * Layer 1: Validate ?[] format and extract content\n *\n * @param content - Raw content\n * @returns Extracted bracket content, returns null if validation fails\n */\n _layer1ValidateFormat(content) {\n content = (0, variable_name_1.trimVariablePadding)(content);\n const span = (0, escaping_1.readInteraction)(content);\n return span?.complete && span.end === content.length ? span.content : null;\n }\n /**\n * Layer 2: Detect variables and perform pattern classification\n *\n * @param innerContent - Content extracted from layer 1\n * @returns [hasVariable, variableName, remainingContent]\n */\n _layer2DetectVariable(innerContent) {\n innerContent = (0, variable_name_1.trimVariablePadding)(innerContent);\n const markerStart = innerContent.startsWith('%') ? 1 : 0;\n if (!innerContent.startsWith('{{', markerStart)) {\n // No variable, entire content used for display button parsing\n return [false, null, innerContent];\n }\n const marker = (0, variable_name_1.readVariableMarker)(innerContent, markerStart);\n if (!marker)\n return [true, null, innerContent];\n const variableName = (0, variable_name_1.normalizeVariableName)(marker.rawName);\n const remainingContent = (0, variable_name_1.trimVariablePadding)(innerContent.slice(marker.end));\n return [true, variableName, remainingContent];\n }\n /**\n * Parse the structural shape of interaction content: buttons, optional\n * `...question` text input, multi-select flag. Shared by the variable and\n * non-assignment branches, which only differ in how they map the shape\n * into their result types.\n *\n * @param content - Content after the (optional) variable\n * @returns The parsed content shape\n */\n _parseContentShape(content) {\n const ellipsis = (0, escaping_1.splitOnEllipsis)(content);\n if (ellipsis) {\n const beforeEllipsis = (0, variable_name_1.trimVariablePadding)(ellipsis[0]);\n const question = (0, variable_name_1.trimVariablePadding)((0, escaping_1.unescapeInteractionText)(ellipsis[1]));\n if (beforeEllipsis) {\n // Button group + text input: ?[Button1 | Button2 | ...question]\n const [buttons, isMultiSelect] = this._parseButtons(beforeEllipsis);\n return { buttons, question, isMultiSelect, hasTextInput: true };\n }\n // Pure text input: ?[...question]\n return {\n buttons: [],\n question,\n isMultiSelect: false,\n hasTextInput: true,\n };\n }\n if ((0, escaping_1.findUnescaped)(content, '|') >= 0) {\n // Button group: ?[Button1 | Button2] or ?[Button1 || Button2]\n const [buttons, isMultiSelect] = this._parseButtons(content);\n return { buttons, isMultiSelect, hasTextInput: false };\n }\n if (content) {\n // Single button: ?[Button1] or ?[Button1//id1]\n return {\n buttons: [this._parseSingleButton(content)],\n isMultiSelect: false,\n hasTextInput: false,\n };\n }\n // Empty content: pure text input with no prompt\n return {\n buttons: [],\n question: '',\n isMultiSelect: false,\n hasTextInput: true,\n };\n }\n /**\n * Layer 3: Parse variable interaction (variable assignment type)\n *\n * @param variableName - Variable name\n * @param content - Content after variable\n * @returns Parse result\n */\n _layer3ParseVariableInteraction(variableName, content) {\n const shape = this._parseContentShape(content);\n if (shape.hasTextInput) {\n if (shape.buttons.length > 0) {\n // Button group + text input: ?[{{var}} Button1 | Button2 | ...question]\n return {\n type: shape.isMultiSelect\n ? InteractionType.BUTTONS_MULTI_WITH_TEXT\n : InteractionType.BUTTONS_WITH_TEXT,\n variable: variableName,\n buttons: shape.buttons,\n question: shape.question,\n isMultiSelect: shape.isMultiSelect,\n };\n }\n // Pure text input: ?[{{var}}...question] or ?[{{var}}]\n return {\n type: InteractionType.TEXT_ONLY,\n variable: variableName,\n question: shape.question ?? '',\n isMultiSelect: false,\n };\n }\n // Button group or single button: ?[{{var}} Button1 | Button2]\n return {\n type: shape.isMultiSelect\n ? InteractionType.BUTTONS_MULTI_SELECT\n : InteractionType.BUTTONS_ONLY,\n variable: variableName,\n buttons: shape.buttons,\n isMultiSelect: shape.isMultiSelect,\n };\n }\n /**\n * Layer 3: Parse non-assignment interactions (no variable). Same shapes as\n * the variable branch; the answer is not assigned to a variable.\n *\n * @param content - Content\n * @returns Parse result\n */\n _layer3ParseDisplayButtons(content) {\n if (!content) {\n // Empty content: ?[]\n return {\n type: InteractionType.NON_ASSIGNMENT_BUTTON,\n buttons: [{ display: '', value: '' }],\n };\n }\n const shape = this._parseContentShape(content);\n const result = {\n type: InteractionType.NON_ASSIGNMENT_BUTTON,\n buttons: shape.buttons,\n isMultiSelect: shape.isMultiSelect,\n };\n if (shape.hasTextInput) {\n result.question = shape.question;\n }\n return result;\n }\n /**\n * Parse button group with fault tolerance\n *\n * @param content - Button content, separated by | or ||\n * @returns [button list, isMultiSelect]\n */\n _parseButtons(content) {\n if (!content || typeof content !== 'string') {\n return [[], false];\n }\n const [_separator, isMultiSelect] = this._detectSeparatorType(content);\n const buttons = [];\n try {\n // Use different splitting logic based on separator type\n let buttonTexts;\n if (isMultiSelect) {\n // Multi-select mode: split on ||, preserve single |\n buttonTexts = (0, escaping_1.splitUnescaped)(content, '||');\n }\n else {\n // Single-select mode: split on single |, but preserve ||\n buttonTexts = (0, escaping_1.splitOnSingleUnescapedPipe)(content);\n }\n for (const buttonText of buttonTexts) {\n const trimmed = (0, variable_name_1.trimVariablePadding)(buttonText);\n if (trimmed) {\n const button = this._parseSingleButton(trimmed);\n buttons.push(button);\n }\n }\n }\n catch {\n // Fallback to treating entire content as single button\n const whole = (0, variable_name_1.trimVariablePadding)((0, escaping_1.unescapeInteractionText)(content));\n return [[{ display: whole, value: whole }], false];\n }\n // For empty content (like just separators), return empty list\n if (!buttons.length &&\n ((0, variable_name_1.trimVariablePadding)(content) === '||' ||\n (0, variable_name_1.trimVariablePadding)(content) === '|')) {\n return [[], isMultiSelect];\n }\n // Ensure at least one button exists (but only if there's actual content)\n if (!buttons.length && (0, variable_name_1.trimVariablePadding)(content)) {\n const whole = (0, variable_name_1.trimVariablePadding)((0, escaping_1.unescapeInteractionText)(content));\n buttons.push({ display: whole, value: whole });\n }\n return [buttons, isMultiSelect];\n }\n /**\n * Parse single button, supports Button//value format\n *\n * @param buttonText - Button text\n * @returns {display: display text, value: actual value}\n */\n _parseSingleButton(buttonText) {\n buttonText = (0, variable_name_1.trimVariablePadding)(buttonText);\n // Detect Button//value format: split at the first \"//\" with a non-empty\n // display before it and a non-empty value after it. (indexOf instead of\n // a lazy/greedy regex, whose backtracking is super-linear.)\n const separatorIndex = (0, escaping_1.findUnescaped)(buttonText, '//');\n if (separatorIndex > 0 && separatorIndex + 2 < buttonText.length) {\n return {\n display: (0, variable_name_1.trimVariablePadding)((0, escaping_1.unescapeInteractionText)(buttonText.slice(0, separatorIndex))),\n value: (0, variable_name_1.trimVariablePadding)((0, escaping_1.unescapeInteractionText)(buttonText.slice(separatorIndex + 2))),\n };\n }\n const resolved = (0, escaping_1.unescapeInteractionText)(buttonText);\n return { display: resolved, value: resolved };\n }\n /**\n * Detect separator type and whether it's multi-select\n *\n * Logic: The first separator type encountered determines the parsing mode:\n * - If first separator is |, then || is treated as part of the value\n * - If first separator is ||, then single | is treated as part of the value\n *\n * @param content - Button content to analyze\n * @returns [separator, isMultiSelect] where separator is '|' or '||'\n */\n _detectSeparatorType(content) {\n if (!content || typeof content !== 'string') {\n return ['|', false];\n }\n // Find the position of first single pipe and first double pipe.\n // A bar an option escaped is not a separator.\n const singlePipePos = (0, escaping_1.findUnescaped)(content, '|');\n const doublePipePos = (0, escaping_1.findUnescaped)(content, '||');\n // If no pipes found\n if (singlePipePos === -1) {\n return ['|', false];\n }\n // If no double pipe found, definitely single-select\n if (doublePipePos === -1) {\n return ['|', false];\n }\n // Both found - check which comes first\n // If double pipe comes first or at the same position (which means\n // the single pipe is part of the double pipe), it's multi-select mode\n if (doublePipePos <= singlePipePos) {\n return ['||', true];\n }\n // If single pipe comes first, it's single-select mode\n return ['|', false];\n }\n /**\n * Create error result\n *\n * @param errorMessage - Error message\n * @returns Error result\n */\n _createErrorResult(errorMessage) {\n return {\n type: null,\n error: errorMessage,\n };\n }\n}\nexports.InteractionParser = InteractionParser;\n/**\n * Convenience function for parsing interaction format\n *\n * Supported formats:\n * 1. ?[{{var}}...question] - Pure text input\n * 2. ?[{{var}} option1|option2] - Pure button group (supports display//value format)\n * 3. ?[{{var}} option1|option2|...question] - Button group + text input\n * 4. ?[{{var}} option1||option2] - Multi-select button group\n * 5. ?[{{var}} option1||option2||...question] - Multi-select button group + text input\n * 6. ?[{{var}} single option] - Single button selection\n * 7. ?[Continue] or ?[Continue|Cancel] - Non-assignment button\n *\n * @param content - Raw content of interaction block\n * @returns [interaction type, parsed data]\n */\nfunction parseInteractionFormat(content) {\n // Use new layered parser\n const parser = new InteractionParser();\n const result = parser.parse(content);\n // Handle parse errors\n if (result.error) {\n // Compatibility handling when parsing fails\n return [\n InteractionType.TEXT_ONLY,\n { question: (0, variable_name_1.trimVariablePadding)(content) },\n ];\n }\n // Extract parse result and convert to original return format\n const interactionType = result.type;\n // Build return data dictionary for backward compatibility\n const returnData = {};\n if (result.type !== InteractionType.NON_ASSIGNMENT_BUTTON) {\n const variableResult = result;\n if (variableResult.variable !== undefined) {\n returnData.variable = variableResult.variable;\n }\n if (variableResult.buttons !== undefined) {\n returnData.buttons = variableResult.buttons;\n }\n if (variableResult.question !== undefined) {\n returnData.question = variableResult.question;\n }\n if (variableResult.isMultiSelect !== undefined) {\n returnData.isMultiSelect = variableResult.isMultiSelect;\n }\n }\n else {\n const buttonResult = result;\n if (buttonResult.buttons !== undefined) {\n returnData.buttons = buttonResult.buttons;\n }\n }\n // Ensure we have a valid interaction type, fallback to TEXT_ONLY if null\n const finalType = interactionType || InteractionType.TEXT_ONLY;\n return [finalType, returnData];\n}\n/**\n * Factory function to create parser instance\n */\nfunction createInteractionParser() {\n return new InteractionParser();\n}\n//# sourceMappingURL=interaction-parser.js.map"],"names":["interactionParser","parseInteractionFormat","createInteractionParser","escaping_1","require$$0","variable_name_1","require$$1","InteractionType","InteractionParser","content","innerContent","hasVariable","variableName","remainingContent","error","result","remarkResult","nonAssignmentResult","b","variableResult","span","markerStart","marker","ellipsis","beforeEllipsis","question","buttons","isMultiSelect","shape","_separator","buttonTexts","buttonText","trimmed","button","whole","separatorIndex","resolved","singlePipePos","doublePipePos","errorMessage","interactionType","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AAcF,EAAgB,qBAAqBI,CAAO,CAAC,GAIrE,MAAM+B,EAAkBzB,EAAO,KAEzB0B,EAAa,CAAA,EACnB,GAAI1B,EAAO,OAASR,EAAgB,sBAAuB,CACvD,MAAMY,EAAiBJ,EACnBI,EAAe,WAAa,SAC5BsB,EAAW,SAAWtB,EAAe,UAErCA,EAAe,UAAY,SAC3BsB,EAAW,QAAUtB,EAAe,SAEpCA,EAAe,WAAa,SAC5BsB,EAAW,SAAWtB,EAAe,UAErCA,EAAe,gBAAkB,SACjCsB,EAAW,cAAgBtB,EAAe,cAEtD,KACS,CACD,MAAMuB,EAAe3B,EACjB2B,EAAa,UAAY,SACzBD,EAAW,QAAUC,EAAa,QAE9C,CAGI,MAAO,CADWF,GAAmBjC,EAAgB,UAClCkC,CAAU,CACjC,CAIA,SAASvC,GAA0B,CAC/B,OAAO,IAAIM,CACf","x_google_ignoreList":[0]}
|
|
@@ -15,8 +15,8 @@ function h() {
|
|
|
15
15
|
// end the interaction. See ./escaping.
|
|
16
16
|
LAYER1_INTERACTION: new RegExp(`\\?\\[(${n.INTERACTION_CONTENT_SOURCE})\\](?!\\()`),
|
|
17
17
|
// Names use the teaching engine's grammar; only the content after the marker is split into
|
|
18
|
-
// choices, display/value pairs or a text input.
|
|
19
|
-
//
|
|
18
|
+
// choices, display/value pairs or a text input. A leading {{name}} binds the answer;
|
|
19
|
+
// the percent prefix is retained for legacy content only.
|
|
20
20
|
LAYER2_VARIABLE: new RegExp(`^${s.VARIABLE_PADDING_SOURCE}%?${s.VARIABLE_REFERENCE_SOURCE}([\\s\\S]*)$`),
|
|
21
21
|
// Layer 3: Split content before and after ...
|
|
22
22
|
LAYER3_ELLIPSIS: /^(.*?)\.\.\.(.*)/,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interaction-parser.es.js","sources":["../../../../node_modules/remark-flow/dist/interaction-parser.js"],"sourcesContent":["\"use strict\";\n/**\n * MarkdownFlow Interactive Block Layered Parser - TypeScript Version\n *\n * Uses a three-layer analysis architecture:\n * Layer 1: ?[] format validation\n * Layer 2: Variable detection and pattern classification\n * Layer 3: Specific content parsing\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.InteractionParser = exports.COMPILED_REGEXES = exports.InteractionType = void 0;\nexports.parseInteractionFormat = parseInteractionFormat;\nexports.createInteractionParser = createInteractionParser;\nconst escaping_1 = require(\"./escaping\");\nconst variable_name_1 = require(\"./variable-name\");\n// Interaction input type enumeration\nvar InteractionType;\n(function (InteractionType) {\n InteractionType[\"TEXT_ONLY\"] = \"text_only\";\n InteractionType[\"BUTTONS_ONLY\"] = \"buttons_only\";\n InteractionType[\"BUTTONS_WITH_TEXT\"] = \"buttons_with_text\";\n InteractionType[\"BUTTONS_MULTI_SELECT\"] = \"buttons_multi_select\";\n InteractionType[\"BUTTONS_MULTI_WITH_TEXT\"] = \"buttons_multi_with_text\";\n InteractionType[\"NON_ASSIGNMENT_BUTTON\"] = \"non_assignment_button\";\n})(InteractionType || (exports.InteractionType = InteractionType = {}));\n// Pre-compiled regex constants\nexports.COMPILED_REGEXES = {\n // Layer 1: Basic format validation - matches ?[content] but excludes ?[text](url) format.\n // The content accepts an escaped delimiter as one unit, so a `\\]` inside an option does not\n // end the interaction. See ./escaping.\n LAYER1_INTERACTION: new RegExp(`\\\\?\\\\[(${escaping_1.INTERACTION_CONTENT_SOURCE})\\\\](?!\\\\()`),\n // Names use the teaching engine's grammar; only the content after the marker is split into\n // choices, display/value pairs or a text input. The leading assignment accepts either marker\n // spelling inside an interaction; document references retain their own semantics.\n LAYER2_VARIABLE: new RegExp(`^${variable_name_1.VARIABLE_PADDING_SOURCE}%?${variable_name_1.VARIABLE_REFERENCE_SOURCE}([\\\\s\\\\S]*)$`),\n // Layer 3: Split content before and after ...\n LAYER3_ELLIPSIS: /^(.*?)\\.\\.\\.(.*)/,\n // Kept for consumers that inspect the exported regex collection. Exact\n // single-pipe splitting requires context that Safari-safe regexes cannot\n // express without consuming adjacent text, and now also has to skip a bar\n // an option escaped, so the parser uses the scanner in ./escaping instead.\n LAYER3_SINGLE_PIPE_SPLIT: /\\|(?!\\|)/g,\n};\n/**\n * Layered interaction parser class\n */\nclass InteractionParser {\n constructor() {\n // Constructor is intentionally empty - no initialization needed\n }\n /**\n * Main parsing method\n *\n * @param content - Raw content of interaction block\n * @returns Standardized parse result\n */\n parse(content) {\n try {\n // Layer 1: Validate basic format\n const innerContent = this._layer1ValidateFormat(content);\n if (innerContent === null) {\n return this._createErrorResult(`Invalid interaction format: ${content}`);\n }\n // Layer 2: Variable detection and pattern classification\n const [hasVariable, variableName, remainingContent] = this._layer2DetectVariable(innerContent);\n // Layer 3: Specific content parsing\n if (hasVariable && variableName === null) {\n return this._createErrorResult('Invalid variable name');\n }\n if (hasVariable && variableName) {\n return this._layer3ParseVariableInteraction(variableName, remainingContent);\n }\n else {\n return this._layer3ParseDisplayButtons(innerContent);\n }\n }\n catch (error) {\n return this._createErrorResult(`Parsing error: ${error instanceof Error ? error.message : 'Unknown error'}`);\n }\n }\n /**\n * Parse and convert to remark-compatible format\n *\n * @param content - Raw content of interaction block\n * @returns remark-compatible result object\n */\n parseToRemarkFormat(content) {\n const result = this.parse(content);\n if (result.error) {\n // Compatibility handling when parsing fails\n return { placeholder: (0, variable_name_1.trimVariablePadding)(content) };\n }\n // Convert to remark-compatible format\n const remarkResult = {};\n if (result.type === InteractionType.NON_ASSIGNMENT_BUTTON) {\n // Non-assignment interaction (no variableName in the output)\n const nonAssignmentResult = result;\n if (nonAssignmentResult.buttons.length > 0) {\n remarkResult.buttonTexts = nonAssignmentResult.buttons.map(b => b.display);\n remarkResult.buttonValues = nonAssignmentResult.buttons.map(b => b.value);\n }\n if (nonAssignmentResult.question !== undefined) {\n remarkResult.placeholder = nonAssignmentResult.question;\n }\n if (nonAssignmentResult.isMultiSelect !== undefined) {\n remarkResult.isMultiSelect = nonAssignmentResult.isMultiSelect;\n }\n }\n else if (result.type !== null) {\n // Variable interaction\n const variableResult = result;\n remarkResult.variableName = variableResult.variable;\n if (variableResult.buttons) {\n remarkResult.buttonTexts = variableResult.buttons.map(b => b.display);\n remarkResult.buttonValues = variableResult.buttons.map(b => b.value);\n }\n if (variableResult.question !== undefined) {\n remarkResult.placeholder = variableResult.question;\n }\n if (variableResult.isMultiSelect !== undefined) {\n remarkResult.isMultiSelect = variableResult.isMultiSelect;\n }\n }\n return remarkResult;\n }\n /**\n * Layer 1: Validate ?[] format and extract content\n *\n * @param content - Raw content\n * @returns Extracted bracket content, returns null if validation fails\n */\n _layer1ValidateFormat(content) {\n content = (0, variable_name_1.trimVariablePadding)(content);\n const span = (0, escaping_1.readInteraction)(content);\n return span?.complete && span.end === content.length ? span.content : null;\n }\n /**\n * Layer 2: Detect variables and perform pattern classification\n *\n * @param innerContent - Content extracted from layer 1\n * @returns [hasVariable, variableName, remainingContent]\n */\n _layer2DetectVariable(innerContent) {\n innerContent = (0, variable_name_1.trimVariablePadding)(innerContent);\n const markerStart = innerContent.startsWith('%') ? 1 : 0;\n if (!innerContent.startsWith('{{', markerStart)) {\n // No variable, entire content used for display button parsing\n return [false, null, innerContent];\n }\n const marker = (0, variable_name_1.readVariableMarker)(innerContent, markerStart);\n if (!marker)\n return [true, null, innerContent];\n const variableName = (0, variable_name_1.normalizeVariableName)(marker.rawName);\n const remainingContent = (0, variable_name_1.trimVariablePadding)(innerContent.slice(marker.end));\n return [true, variableName, remainingContent];\n }\n /**\n * Parse the structural shape of interaction content: buttons, optional\n * `...question` text input, multi-select flag. Shared by the variable and\n * non-assignment branches, which only differ in how they map the shape\n * into their result types.\n *\n * @param content - Content after the (optional) variable\n * @returns The parsed content shape\n */\n _parseContentShape(content) {\n const ellipsis = (0, escaping_1.splitOnEllipsis)(content);\n if (ellipsis) {\n const beforeEllipsis = (0, variable_name_1.trimVariablePadding)(ellipsis[0]);\n const question = (0, variable_name_1.trimVariablePadding)((0, escaping_1.unescapeInteractionText)(ellipsis[1]));\n if (beforeEllipsis) {\n // Button group + text input: ?[Button1 | Button2 | ...question]\n const [buttons, isMultiSelect] = this._parseButtons(beforeEllipsis);\n return { buttons, question, isMultiSelect, hasTextInput: true };\n }\n // Pure text input: ?[...question]\n return {\n buttons: [],\n question,\n isMultiSelect: false,\n hasTextInput: true,\n };\n }\n if ((0, escaping_1.findUnescaped)(content, '|') >= 0) {\n // Button group: ?[Button1 | Button2] or ?[Button1 || Button2]\n const [buttons, isMultiSelect] = this._parseButtons(content);\n return { buttons, isMultiSelect, hasTextInput: false };\n }\n if (content) {\n // Single button: ?[Button1] or ?[Button1//id1]\n return {\n buttons: [this._parseSingleButton(content)],\n isMultiSelect: false,\n hasTextInput: false,\n };\n }\n // Empty content: pure text input with no prompt\n return {\n buttons: [],\n question: '',\n isMultiSelect: false,\n hasTextInput: true,\n };\n }\n /**\n * Layer 3: Parse variable interaction (variable assignment type)\n *\n * @param variableName - Variable name\n * @param content - Content after variable\n * @returns Parse result\n */\n _layer3ParseVariableInteraction(variableName, content) {\n const shape = this._parseContentShape(content);\n if (shape.hasTextInput) {\n if (shape.buttons.length > 0) {\n // Button group + text input: ?[%{{var}} Button1 | Button2 | ...question]\n return {\n type: shape.isMultiSelect\n ? InteractionType.BUTTONS_MULTI_WITH_TEXT\n : InteractionType.BUTTONS_WITH_TEXT,\n variable: variableName,\n buttons: shape.buttons,\n question: shape.question,\n isMultiSelect: shape.isMultiSelect,\n };\n }\n // Pure text input: ?[%{{var}}...question] or ?[%{{var}}]\n return {\n type: InteractionType.TEXT_ONLY,\n variable: variableName,\n question: shape.question ?? '',\n isMultiSelect: false,\n };\n }\n // Button group or single button: ?[%{{var}} Button1 | Button2]\n return {\n type: shape.isMultiSelect\n ? InteractionType.BUTTONS_MULTI_SELECT\n : InteractionType.BUTTONS_ONLY,\n variable: variableName,\n buttons: shape.buttons,\n isMultiSelect: shape.isMultiSelect,\n };\n }\n /**\n * Layer 3: Parse non-assignment interactions (no variable). Same shapes as\n * the variable branch; the answer is not assigned to a variable.\n *\n * @param content - Content\n * @returns Parse result\n */\n _layer3ParseDisplayButtons(content) {\n if (!content) {\n // Empty content: ?[]\n return {\n type: InteractionType.NON_ASSIGNMENT_BUTTON,\n buttons: [{ display: '', value: '' }],\n };\n }\n const shape = this._parseContentShape(content);\n const result = {\n type: InteractionType.NON_ASSIGNMENT_BUTTON,\n buttons: shape.buttons,\n isMultiSelect: shape.isMultiSelect,\n };\n if (shape.hasTextInput) {\n result.question = shape.question;\n }\n return result;\n }\n /**\n * Parse button group with fault tolerance\n *\n * @param content - Button content, separated by | or ||\n * @returns [button list, isMultiSelect]\n */\n _parseButtons(content) {\n if (!content || typeof content !== 'string') {\n return [[], false];\n }\n const [_separator, isMultiSelect] = this._detectSeparatorType(content);\n const buttons = [];\n try {\n // Use different splitting logic based on separator type\n let buttonTexts;\n if (isMultiSelect) {\n // Multi-select mode: split on ||, preserve single |\n buttonTexts = (0, escaping_1.splitUnescaped)(content, '||');\n }\n else {\n // Single-select mode: split on single |, but preserve ||\n buttonTexts = (0, escaping_1.splitOnSingleUnescapedPipe)(content);\n }\n for (const buttonText of buttonTexts) {\n const trimmed = (0, variable_name_1.trimVariablePadding)(buttonText);\n if (trimmed) {\n const button = this._parseSingleButton(trimmed);\n buttons.push(button);\n }\n }\n }\n catch {\n // Fallback to treating entire content as single button\n const whole = (0, variable_name_1.trimVariablePadding)((0, escaping_1.unescapeInteractionText)(content));\n return [[{ display: whole, value: whole }], false];\n }\n // For empty content (like just separators), return empty list\n if (!buttons.length &&\n ((0, variable_name_1.trimVariablePadding)(content) === '||' ||\n (0, variable_name_1.trimVariablePadding)(content) === '|')) {\n return [[], isMultiSelect];\n }\n // Ensure at least one button exists (but only if there's actual content)\n if (!buttons.length && (0, variable_name_1.trimVariablePadding)(content)) {\n const whole = (0, variable_name_1.trimVariablePadding)((0, escaping_1.unescapeInteractionText)(content));\n buttons.push({ display: whole, value: whole });\n }\n return [buttons, isMultiSelect];\n }\n /**\n * Parse single button, supports Button//value format\n *\n * @param buttonText - Button text\n * @returns {display: display text, value: actual value}\n */\n _parseSingleButton(buttonText) {\n buttonText = (0, variable_name_1.trimVariablePadding)(buttonText);\n // Detect Button//value format: split at the first \"//\" with a non-empty\n // display before it and a non-empty value after it. (indexOf instead of\n // a lazy/greedy regex, whose backtracking is super-linear.)\n const separatorIndex = (0, escaping_1.findUnescaped)(buttonText, '//');\n if (separatorIndex > 0 && separatorIndex + 2 < buttonText.length) {\n return {\n display: (0, variable_name_1.trimVariablePadding)((0, escaping_1.unescapeInteractionText)(buttonText.slice(0, separatorIndex))),\n value: (0, variable_name_1.trimVariablePadding)((0, escaping_1.unescapeInteractionText)(buttonText.slice(separatorIndex + 2))),\n };\n }\n const resolved = (0, escaping_1.unescapeInteractionText)(buttonText);\n return { display: resolved, value: resolved };\n }\n /**\n * Detect separator type and whether it's multi-select\n *\n * Logic: The first separator type encountered determines the parsing mode:\n * - If first separator is |, then || is treated as part of the value\n * - If first separator is ||, then single | is treated as part of the value\n *\n * @param content - Button content to analyze\n * @returns [separator, isMultiSelect] where separator is '|' or '||'\n */\n _detectSeparatorType(content) {\n if (!content || typeof content !== 'string') {\n return ['|', false];\n }\n // Find the position of first single pipe and first double pipe.\n // A bar an option escaped is not a separator.\n const singlePipePos = (0, escaping_1.findUnescaped)(content, '|');\n const doublePipePos = (0, escaping_1.findUnescaped)(content, '||');\n // If no pipes found\n if (singlePipePos === -1) {\n return ['|', false];\n }\n // If no double pipe found, definitely single-select\n if (doublePipePos === -1) {\n return ['|', false];\n }\n // Both found - check which comes first\n // If double pipe comes first or at the same position (which means\n // the single pipe is part of the double pipe), it's multi-select mode\n if (doublePipePos <= singlePipePos) {\n return ['||', true];\n }\n // If single pipe comes first, it's single-select mode\n return ['|', false];\n }\n /**\n * Create error result\n *\n * @param errorMessage - Error message\n * @returns Error result\n */\n _createErrorResult(errorMessage) {\n return {\n type: null,\n error: errorMessage,\n };\n }\n}\nexports.InteractionParser = InteractionParser;\n/**\n * Convenience function for parsing interaction format\n *\n * Supported formats:\n * 1. ?[%{{var}}...question] - Pure text input\n * 2. ?[%{{var}} option1|option2] - Pure button group (supports display//value format)\n * 3. ?[%{{var}} option1|option2|...question] - Button group + text input\n * 4. ?[%{{var}} option1||option2] - Multi-select button group\n * 5. ?[%{{var}} option1||option2||...question] - Multi-select button group + text input\n * 6. ?[%{{var}} single option] - Single button selection\n * 7. ?[Continue] or ?[Continue|Cancel] - Non-assignment button\n *\n * @param content - Raw content of interaction block\n * @returns [interaction type, parsed data]\n */\nfunction parseInteractionFormat(content) {\n // Use new layered parser\n const parser = new InteractionParser();\n const result = parser.parse(content);\n // Handle parse errors\n if (result.error) {\n // Compatibility handling when parsing fails\n return [\n InteractionType.TEXT_ONLY,\n { question: (0, variable_name_1.trimVariablePadding)(content) },\n ];\n }\n // Extract parse result and convert to original return format\n const interactionType = result.type;\n // Build return data dictionary for backward compatibility\n const returnData = {};\n if (result.type !== InteractionType.NON_ASSIGNMENT_BUTTON) {\n const variableResult = result;\n if (variableResult.variable !== undefined) {\n returnData.variable = variableResult.variable;\n }\n if (variableResult.buttons !== undefined) {\n returnData.buttons = variableResult.buttons;\n }\n if (variableResult.question !== undefined) {\n returnData.question = variableResult.question;\n }\n if (variableResult.isMultiSelect !== undefined) {\n returnData.isMultiSelect = variableResult.isMultiSelect;\n }\n }\n else {\n const buttonResult = result;\n if (buttonResult.buttons !== undefined) {\n returnData.buttons = buttonResult.buttons;\n }\n }\n // Ensure we have a valid interaction type, fallback to TEXT_ONLY if null\n const finalType = interactionType || InteractionType.TEXT_ONLY;\n return [finalType, returnData];\n}\n/**\n * Factory function to create parser instance\n */\nfunction createInteractionParser() {\n return new InteractionParser();\n}\n//# sourceMappingURL=interaction-parser.js.map"],"names":["interactionParser","parseInteractionFormat","createInteractionParser","escaping_1","require$$0","variable_name_1","require$$1","InteractionType","InteractionParser","content","innerContent","hasVariable","variableName","remainingContent","error","result","remarkResult","nonAssignmentResult","b","variableResult","span","markerStart","marker","ellipsis","beforeEllipsis","question","buttons","isMultiSelect","shape","_separator","buttonTexts","buttonText","trimmed","button","whole","separatorIndex","resolved","singlePipePos","doublePipePos","errorMessage","interactionType","returnData","buttonResult"],"mappings":";;;;;;SASA,OAAO,eAAeA,GAAS,cAAc,EAAE,OAAO,IAAM,GAC5DA,EAAA,oBAA4BA,EAAA,mBAA2BA,EAAA,kBAA0B,QACjFA,EAAA,yBAAiCC,GACjCD,EAAA,0BAAkCE;AAClC,QAAMC,IAAaC,EAAA,GACbC,IAAkBC,EAAA;AAExB,MAAIC;AACJ,GAAC,SAAUA,GAAiB;AACxB,IAAAA,EAAgB,YAAe,aAC/BA,EAAgB,eAAkB,gBAClCA,EAAgB,oBAAuB,qBACvCA,EAAgB,uBAA0B,wBAC1CA,EAAgB,0BAA6B,2BAC7CA,EAAgB,wBAA2B;AAAA,EAC/C,GAAGA,MAAoBP,EAAA,kBAA0BO,IAAkB,CAAA,EAAG,GAEtEP,EAAA,mBAA2B;AAAA;AAAA;AAAA;AAAA,IAIvB,oBAAoB,IAAI,OAAO,UAAUG,EAAW,0BAA0B,aAAa;AAAA;AAAA;AAAA;AAAA,IAI3F,iBAAiB,IAAI,OAAO,IAAIE,EAAgB,uBAAuB,KAAKA,EAAgB,yBAAyB,cAAc;AAAA;AAAA,IAEnI,iBAAiB;AAAA;AAAA;AAAA;AAAA;AAAA,IAKjB,0BAA0B;AAAA;EAK9B,MAAMG,EAAkB;AAAA,IACpB,cAAc;AAAA,IAElB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOI,MAAMC,GAAS;AACX,UAAI;AAEA,cAAMC,IAAe,KAAK,sBAAsBD,CAAO;AACvD,YAAIC,MAAiB;AACjB,iBAAO,KAAK,mBAAmB,+BAA+BD,CAAO,EAAE;AAG3E,cAAM,CAACE,GAAaC,GAAcC,CAAgB,IAAI,KAAK,sBAAsBH,CAAY;AAE7F,eAAIC,KAAeC,MAAiB,OACzB,KAAK,mBAAmB,uBAAuB,IAEtDD,KAAeC,IACR,KAAK,gCAA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nB,QAAI1B,EAAO,SAASR,EAAgB,uBAAuB;AACvD,YAAMY,IAAiBJ;AACvB,MAAII,EAAe,aAAa,WAC5BsB,EAAW,WAAWtB,EAAe,WAErCA,EAAe,YAAY,WAC3BsB,EAAW,UAAUtB,EAAe,UAEpCA,EAAe,aAAa,WAC5BsB,EAAW,WAAWtB,EAAe,WAErCA,EAAe,kBAAkB,WACjCsB,EAAW,gBAAgBtB,EAAe;AAAA,IAEtD,OACS;AACD,YAAMuB,IAAe3B;AACrB,MAAI2B,EAAa,YAAY,WACzBD,EAAW,UAAUC,EAAa;AAAA,IAE9C;AAGI,WAAO,CADWF,KAAmBjC,EAAgB,WAClCkC,CAAU;AAAA,EACjC;AAIA,WAASvC,IAA0B;AAC/B,WAAO,IAAIM,EAAiB;AAAA,EAChC;;;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"interaction-parser.es.js","sources":["../../../../node_modules/remark-flow/dist/interaction-parser.js"],"sourcesContent":["\"use strict\";\n/**\n * MarkdownFlow Interactive Block Layered Parser - TypeScript Version\n *\n * Uses a three-layer analysis architecture:\n * Layer 1: ?[] format validation\n * Layer 2: Variable detection and pattern classification\n * Layer 3: Specific content parsing\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.InteractionParser = exports.COMPILED_REGEXES = exports.InteractionType = void 0;\nexports.parseInteractionFormat = parseInteractionFormat;\nexports.createInteractionParser = createInteractionParser;\nconst escaping_1 = require(\"./escaping\");\nconst variable_name_1 = require(\"./variable-name\");\n// Interaction input type enumeration\nvar InteractionType;\n(function (InteractionType) {\n InteractionType[\"TEXT_ONLY\"] = \"text_only\";\n InteractionType[\"BUTTONS_ONLY\"] = \"buttons_only\";\n InteractionType[\"BUTTONS_WITH_TEXT\"] = \"buttons_with_text\";\n InteractionType[\"BUTTONS_MULTI_SELECT\"] = \"buttons_multi_select\";\n InteractionType[\"BUTTONS_MULTI_WITH_TEXT\"] = \"buttons_multi_with_text\";\n InteractionType[\"NON_ASSIGNMENT_BUTTON\"] = \"non_assignment_button\";\n})(InteractionType || (exports.InteractionType = InteractionType = {}));\n// Pre-compiled regex constants\nexports.COMPILED_REGEXES = {\n // Layer 1: Basic format validation - matches ?[content] but excludes ?[text](url) format.\n // The content accepts an escaped delimiter as one unit, so a `\\]` inside an option does not\n // end the interaction. See ./escaping.\n LAYER1_INTERACTION: new RegExp(`\\\\?\\\\[(${escaping_1.INTERACTION_CONTENT_SOURCE})\\\\](?!\\\\()`),\n // Names use the teaching engine's grammar; only the content after the marker is split into\n // choices, display/value pairs or a text input. A leading {{name}} binds the answer;\n // the percent prefix is retained for legacy content only.\n LAYER2_VARIABLE: new RegExp(`^${variable_name_1.VARIABLE_PADDING_SOURCE}%?${variable_name_1.VARIABLE_REFERENCE_SOURCE}([\\\\s\\\\S]*)$`),\n // Layer 3: Split content before and after ...\n LAYER3_ELLIPSIS: /^(.*?)\\.\\.\\.(.*)/,\n // Kept for consumers that inspect the exported regex collection. Exact\n // single-pipe splitting requires context that Safari-safe regexes cannot\n // express without consuming adjacent text, and now also has to skip a bar\n // an option escaped, so the parser uses the scanner in ./escaping instead.\n LAYER3_SINGLE_PIPE_SPLIT: /\\|(?!\\|)/g,\n};\n/**\n * Layered interaction parser class\n */\nclass InteractionParser {\n constructor() {\n // Constructor is intentionally empty - no initialization needed\n }\n /**\n * Main parsing method\n *\n * @param content - Raw content of interaction block\n * @returns Standardized parse result\n */\n parse(content) {\n try {\n // Layer 1: Validate basic format\n const innerContent = this._layer1ValidateFormat(content);\n if (innerContent === null) {\n return this._createErrorResult(`Invalid interaction format: ${content}`);\n }\n // Layer 2: Variable detection and pattern classification\n const [hasVariable, variableName, remainingContent] = this._layer2DetectVariable(innerContent);\n // Layer 3: Specific content parsing\n if (hasVariable && variableName === null) {\n return this._createErrorResult('Invalid variable name');\n }\n if (hasVariable && variableName) {\n return this._layer3ParseVariableInteraction(variableName, remainingContent);\n }\n else {\n return this._layer3ParseDisplayButtons(innerContent);\n }\n }\n catch (error) {\n return this._createErrorResult(`Parsing error: ${error instanceof Error ? error.message : 'Unknown error'}`);\n }\n }\n /**\n * Parse and convert to remark-compatible format\n *\n * @param content - Raw content of interaction block\n * @returns remark-compatible result object\n */\n parseToRemarkFormat(content) {\n const result = this.parse(content);\n if (result.error) {\n // Compatibility handling when parsing fails\n return { placeholder: (0, variable_name_1.trimVariablePadding)(content) };\n }\n // Convert to remark-compatible format\n const remarkResult = {};\n if (result.type === InteractionType.NON_ASSIGNMENT_BUTTON) {\n // Non-assignment interaction (no variableName in the output)\n const nonAssignmentResult = result;\n if (nonAssignmentResult.buttons.length > 0) {\n remarkResult.buttonTexts = nonAssignmentResult.buttons.map(b => b.display);\n remarkResult.buttonValues = nonAssignmentResult.buttons.map(b => b.value);\n }\n if (nonAssignmentResult.question !== undefined) {\n remarkResult.placeholder = nonAssignmentResult.question;\n }\n if (nonAssignmentResult.isMultiSelect !== undefined) {\n remarkResult.isMultiSelect = nonAssignmentResult.isMultiSelect;\n }\n }\n else if (result.type !== null) {\n // Variable interaction\n const variableResult = result;\n remarkResult.variableName = variableResult.variable;\n if (variableResult.buttons) {\n remarkResult.buttonTexts = variableResult.buttons.map(b => b.display);\n remarkResult.buttonValues = variableResult.buttons.map(b => b.value);\n }\n if (variableResult.question !== undefined) {\n remarkResult.placeholder = variableResult.question;\n }\n if (variableResult.isMultiSelect !== undefined) {\n remarkResult.isMultiSelect = variableResult.isMultiSelect;\n }\n }\n return remarkResult;\n }\n /**\n * Layer 1: Validate ?[] format and extract content\n *\n * @param content - Raw content\n * @returns Extracted bracket content, returns null if validation fails\n */\n _layer1ValidateFormat(content) {\n content = (0, variable_name_1.trimVariablePadding)(content);\n const span = (0, escaping_1.readInteraction)(content);\n return span?.complete && span.end === content.length ? span.content : null;\n }\n /**\n * Layer 2: Detect variables and perform pattern classification\n *\n * @param innerContent - Content extracted from layer 1\n * @returns [hasVariable, variableName, remainingContent]\n */\n _layer2DetectVariable(innerContent) {\n innerContent = (0, variable_name_1.trimVariablePadding)(innerContent);\n const markerStart = innerContent.startsWith('%') ? 1 : 0;\n if (!innerContent.startsWith('{{', markerStart)) {\n // No variable, entire content used for display button parsing\n return [false, null, innerContent];\n }\n const marker = (0, variable_name_1.readVariableMarker)(innerContent, markerStart);\n if (!marker)\n return [true, null, innerContent];\n const variableName = (0, variable_name_1.normalizeVariableName)(marker.rawName);\n const remainingContent = (0, variable_name_1.trimVariablePadding)(innerContent.slice(marker.end));\n return [true, variableName, remainingContent];\n }\n /**\n * Parse the structural shape of interaction content: buttons, optional\n * `...question` text input, multi-select flag. Shared by the variable and\n * non-assignment branches, which only differ in how they map the shape\n * into their result types.\n *\n * @param content - Content after the (optional) variable\n * @returns The parsed content shape\n */\n _parseContentShape(content) {\n const ellipsis = (0, escaping_1.splitOnEllipsis)(content);\n if (ellipsis) {\n const beforeEllipsis = (0, variable_name_1.trimVariablePadding)(ellipsis[0]);\n const question = (0, variable_name_1.trimVariablePadding)((0, escaping_1.unescapeInteractionText)(ellipsis[1]));\n if (beforeEllipsis) {\n // Button group + text input: ?[Button1 | Button2 | ...question]\n const [buttons, isMultiSelect] = this._parseButtons(beforeEllipsis);\n return { buttons, question, isMultiSelect, hasTextInput: true };\n }\n // Pure text input: ?[...question]\n return {\n buttons: [],\n question,\n isMultiSelect: false,\n hasTextInput: true,\n };\n }\n if ((0, escaping_1.findUnescaped)(content, '|') >= 0) {\n // Button group: ?[Button1 | Button2] or ?[Button1 || Button2]\n const [buttons, isMultiSelect] = this._parseButtons(content);\n return { buttons, isMultiSelect, hasTextInput: false };\n }\n if (content) {\n // Single button: ?[Button1] or ?[Button1//id1]\n return {\n buttons: [this._parseSingleButton(content)],\n isMultiSelect: false,\n hasTextInput: false,\n };\n }\n // Empty content: pure text input with no prompt\n return {\n buttons: [],\n question: '',\n isMultiSelect: false,\n hasTextInput: true,\n };\n }\n /**\n * Layer 3: Parse variable interaction (variable assignment type)\n *\n * @param variableName - Variable name\n * @param content - Content after variable\n * @returns Parse result\n */\n _layer3ParseVariableInteraction(variableName, content) {\n const shape = this._parseContentShape(content);\n if (shape.hasTextInput) {\n if (shape.buttons.length > 0) {\n // Button group + text input: ?[{{var}} Button1 | Button2 | ...question]\n return {\n type: shape.isMultiSelect\n ? InteractionType.BUTTONS_MULTI_WITH_TEXT\n : InteractionType.BUTTONS_WITH_TEXT,\n variable: variableName,\n buttons: shape.buttons,\n question: shape.question,\n isMultiSelect: shape.isMultiSelect,\n };\n }\n // Pure text input: ?[{{var}}...question] or ?[{{var}}]\n return {\n type: InteractionType.TEXT_ONLY,\n variable: variableName,\n question: shape.question ?? '',\n isMultiSelect: false,\n };\n }\n // Button group or single button: ?[{{var}} Button1 | Button2]\n return {\n type: shape.isMultiSelect\n ? InteractionType.BUTTONS_MULTI_SELECT\n : InteractionType.BUTTONS_ONLY,\n variable: variableName,\n buttons: shape.buttons,\n isMultiSelect: shape.isMultiSelect,\n };\n }\n /**\n * Layer 3: Parse non-assignment interactions (no variable). Same shapes as\n * the variable branch; the answer is not assigned to a variable.\n *\n * @param content - Content\n * @returns Parse result\n */\n _layer3ParseDisplayButtons(content) {\n if (!content) {\n // Empty content: ?[]\n return {\n type: InteractionType.NON_ASSIGNMENT_BUTTON,\n buttons: [{ display: '', value: '' }],\n };\n }\n const shape = this._parseContentShape(content);\n const result = {\n type: InteractionType.NON_ASSIGNMENT_BUTTON,\n buttons: shape.buttons,\n isMultiSelect: shape.isMultiSelect,\n };\n if (shape.hasTextInput) {\n result.question = shape.question;\n }\n return result;\n }\n /**\n * Parse button group with fault tolerance\n *\n * @param content - Button content, separated by | or ||\n * @returns [button list, isMultiSelect]\n */\n _parseButtons(content) {\n if (!content || typeof content !== 'string') {\n return [[], false];\n }\n const [_separator, isMultiSelect] = this._detectSeparatorType(content);\n const buttons = [];\n try {\n // Use different splitting logic based on separator type\n let buttonTexts;\n if (isMultiSelect) {\n // Multi-select mode: split on ||, preserve single |\n buttonTexts = (0, escaping_1.splitUnescaped)(content, '||');\n }\n else {\n // Single-select mode: split on single |, but preserve ||\n buttonTexts = (0, escaping_1.splitOnSingleUnescapedPipe)(content);\n }\n for (const buttonText of buttonTexts) {\n const trimmed = (0, variable_name_1.trimVariablePadding)(buttonText);\n if (trimmed) {\n const button = this._parseSingleButton(trimmed);\n buttons.push(button);\n }\n }\n }\n catch {\n // Fallback to treating entire content as single button\n const whole = (0, variable_name_1.trimVariablePadding)((0, escaping_1.unescapeInteractionText)(content));\n return [[{ display: whole, value: whole }], false];\n }\n // For empty content (like just separators), return empty list\n if (!buttons.length &&\n ((0, variable_name_1.trimVariablePadding)(content) === '||' ||\n (0, variable_name_1.trimVariablePadding)(content) === '|')) {\n return [[], isMultiSelect];\n }\n // Ensure at least one button exists (but only if there's actual content)\n if (!buttons.length && (0, variable_name_1.trimVariablePadding)(content)) {\n const whole = (0, variable_name_1.trimVariablePadding)((0, escaping_1.unescapeInteractionText)(content));\n buttons.push({ display: whole, value: whole });\n }\n return [buttons, isMultiSelect];\n }\n /**\n * Parse single button, supports Button//value format\n *\n * @param buttonText - Button text\n * @returns {display: display text, value: actual value}\n */\n _parseSingleButton(buttonText) {\n buttonText = (0, variable_name_1.trimVariablePadding)(buttonText);\n // Detect Button//value format: split at the first \"//\" with a non-empty\n // display before it and a non-empty value after it. (indexOf instead of\n // a lazy/greedy regex, whose backtracking is super-linear.)\n const separatorIndex = (0, escaping_1.findUnescaped)(buttonText, '//');\n if (separatorIndex > 0 && separatorIndex + 2 < buttonText.length) {\n return {\n display: (0, variable_name_1.trimVariablePadding)((0, escaping_1.unescapeInteractionText)(buttonText.slice(0, separatorIndex))),\n value: (0, variable_name_1.trimVariablePadding)((0, escaping_1.unescapeInteractionText)(buttonText.slice(separatorIndex + 2))),\n };\n }\n const resolved = (0, escaping_1.unescapeInteractionText)(buttonText);\n return { display: resolved, value: resolved };\n }\n /**\n * Detect separator type and whether it's multi-select\n *\n * Logic: The first separator type encountered determines the parsing mode:\n * - If first separator is |, then || is treated as part of the value\n * - If first separator is ||, then single | is treated as part of the value\n *\n * @param content - Button content to analyze\n * @returns [separator, isMultiSelect] where separator is '|' or '||'\n */\n _detectSeparatorType(content) {\n if (!content || typeof content !== 'string') {\n return ['|', false];\n }\n // Find the position of first single pipe and first double pipe.\n // A bar an option escaped is not a separator.\n const singlePipePos = (0, escaping_1.findUnescaped)(content, '|');\n const doublePipePos = (0, escaping_1.findUnescaped)(content, '||');\n // If no pipes found\n if (singlePipePos === -1) {\n return ['|', false];\n }\n // If no double pipe found, definitely single-select\n if (doublePipePos === -1) {\n return ['|', false];\n }\n // Both found - check which comes first\n // If double pipe comes first or at the same position (which means\n // the single pipe is part of the double pipe), it's multi-select mode\n if (doublePipePos <= singlePipePos) {\n return ['||', true];\n }\n // If single pipe comes first, it's single-select mode\n return ['|', false];\n }\n /**\n * Create error result\n *\n * @param errorMessage - Error message\n * @returns Error result\n */\n _createErrorResult(errorMessage) {\n return {\n type: null,\n error: errorMessage,\n };\n }\n}\nexports.InteractionParser = InteractionParser;\n/**\n * Convenience function for parsing interaction format\n *\n * Supported formats:\n * 1. ?[{{var}}...question] - Pure text input\n * 2. ?[{{var}} option1|option2] - Pure button group (supports display//value format)\n * 3. ?[{{var}} option1|option2|...question] - Button group + text input\n * 4. ?[{{var}} option1||option2] - Multi-select button group\n * 5. ?[{{var}} option1||option2||...question] - Multi-select button group + text input\n * 6. ?[{{var}} single option] - Single button selection\n * 7. ?[Continue] or ?[Continue|Cancel] - Non-assignment button\n *\n * @param content - Raw content of interaction block\n * @returns [interaction type, parsed data]\n */\nfunction parseInteractionFormat(content) {\n // Use new layered parser\n const parser = new InteractionParser();\n const result = parser.parse(content);\n // Handle parse errors\n if (result.error) {\n // Compatibility handling when parsing fails\n return [\n InteractionType.TEXT_ONLY,\n { question: (0, variable_name_1.trimVariablePadding)(content) },\n ];\n }\n // Extract parse result and convert to original return format\n const interactionType = result.type;\n // Build return data dictionary for backward compatibility\n const returnData = {};\n if (result.type !== InteractionType.NON_ASSIGNMENT_BUTTON) {\n const variableResult = result;\n if (variableResult.variable !== undefined) {\n returnData.variable = variableResult.variable;\n }\n if (variableResult.buttons !== undefined) {\n returnData.buttons = variableResult.buttons;\n }\n if (variableResult.question !== undefined) {\n returnData.question = variableResult.question;\n }\n if (variableResult.isMultiSelect !== undefined) {\n returnData.isMultiSelect = variableResult.isMultiSelect;\n }\n }\n else {\n const buttonResult = result;\n if (buttonResult.buttons !== undefined) {\n returnData.buttons = buttonResult.buttons;\n }\n }\n // Ensure we have a valid interaction type, fallback to TEXT_ONLY if null\n const finalType = interactionType || InteractionType.TEXT_ONLY;\n return [finalType, returnData];\n}\n/**\n * Factory function to create parser instance\n */\nfunction createInteractionParser() {\n return new InteractionParser();\n}\n//# sourceMappingURL=interaction-parser.js.map"],"names":["interactionParser","parseInteractionFormat","createInteractionParser","escaping_1","require$$0","variable_name_1","require$$1","InteractionType","InteractionParser","content","innerContent","hasVariable","variableName","remainingContent","error","result","remarkResult","nonAssignmentResult","b","variableResult","span","markerStart","marker","ellipsis","beforeEllipsis","question","buttons","isMultiSelect","shape","_separator","buttonTexts","buttonText","trimmed","button","whole","separatorIndex","resolved","singlePipePos","doublePipePos","errorMessage","interactionType","returnData","buttonResult"],"mappings":";;;;;;SASA,OAAO,eAAeA,GAAS,cAAc,EAAE,OAAO,IAAM,GAC5DA,EAAA,oBAA4BA,EAAA,mBAA2BA,EAAA,kBAA0B,QACjFA,EAAA,yBAAiCC,GACjCD,EAAA,0BAAkCE;AAClC,QAAMC,IAAaC,EAAA,GACbC,IAAkBC,EAAA;AAExB,MAAIC;AACJ,GAAC,SAAUA,GAAiB;AACxB,IAAAA,EAAgB,YAAe,aAC/BA,EAAgB,eAAkB,gBAClCA,EAAgB,oBAAuB,qBACvCA,EAAgB,uBAA0B,wBAC1CA,EAAgB,0BAA6B,2BAC7CA,EAAgB,wBAA2B;AAAA,EAC/C,GAAGA,MAAoBP,EAAA,kBAA0BO,IAAkB,CAAA,EAAG,GAEtEP,EAAA,mBAA2B;AAAA;AAAA;A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{value:"Module"});const _=require("../../../_virtual/interaction-plugin-core.cjs"),P=require("../../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("../../../_virtual/interaction-plugin-core.cjs"),P=require("../../../_virtual/index3.cjs"),b=require("./interaction-parser.cjs"),E=require("./escaping.cjs"),T=require("./interaction-syntax.cjs"),N=require("./variable-name.cjs");var v;function O(){if(v)return _.__exports;v=1,Object.defineProperty(_.__exports,"__esModule",{value:!0}),_.__exports.transformInteractionsInTree=q;const p=P.default,y=b.__require(),f=E.__require(),d=T.__require(),h=N.__require();function g(e,s,l,o,r){return[{type:"text",value:e.substring(0,s)},{type:"element",data:{hName:r,hProperties:o}},{type:"text",value:e.substring(l)}]}function m(e,s,l){const o=(0,f.readInteraction)(e);if(!o?.complete||o.end!==e.length)return null;const r=(0,h.trimVariablePadding)(o.content);if(r.startsWith("%{")&&!r.startsWith("%{{"))return null;try{return s.parse(e).error?null:s.parseToRemarkFormat(e)}catch(n){return console.warn(`Failed to parse ${l} syntax:`,n),null}}function q(e,s){const l=e.data,o=new y.InteractionParser;if(l?.[d.TOKENIZED_TREE]===!0){(0,p.visit)(e,d.VARIABLE_NODE,(r,n,a)=>{n===null||a===null||a.children.splice(n,1,{type:"text",value:r.value})}),(0,p.visit)(e,d.INTERACTION_NODE,(r,n,a)=>{if(n===null||a===null)return;const i=r.value,t=m(i,o,s);a.children.splice(n,1,t?{type:"element",data:{hName:"custom-variable",hProperties:t}}:{type:"text",value:i})});return}(0,p.visit)(e,"text",(r,n,a)=>{if(n===null||a===null)return;const i=r.value;let t=0;for(;t<i.length;){if(i.startsWith("{{",t)){const c=(0,h.readVariableMarker)(i,t);if(!c)return;t=c.end;continue}if(!i.startsWith("?[",t)){t+=1;continue}const u=(0,f.readInteraction)(i,t);if(!u){t+=2;continue}if(!u.complete)return;const I=i.slice(u.start,u.end);try{const c=m(I,o,s);if(!c){t=u.end;continue}const x=g(i,u.start,u.end,c,"custom-variable");a.children.splice(n,1,...x);return}catch(c){console.warn(`Failed to parse ${s} syntax:`,c);return}}})}return _.__exports}exports.__require=O;
|
|
2
2
|
//# sourceMappingURL=interaction-plugin-core.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __exports as p } from "../../../_virtual/interaction-plugin-core.es.js";
|
|
2
|
-
import P from "../../../_virtual/
|
|
2
|
+
import P from "../../../_virtual/index3.es.js";
|
|
3
3
|
import { __require as x } from "./interaction-parser.es.js";
|
|
4
4
|
import { __require as b } from "./escaping.es.js";
|
|
5
5
|
import { __require as N } from "./interaction-syntax.es.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S="ͼ",m=typeof Symbol>"u"?"__"+S:Symbol.for(S),c=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),w=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class A{constructor(e,s){this.rules=[];let{finish:i}=s||{};function n(
|
|
2
|
-
`)}static newName(){let e=w[m]||1;return w[m]=e+1,S+e.toString(36)}static mount(e,s,i){let n=e[c],
|
|
3
|
-
`;this.styleTag.textContent=
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S="ͼ",m=typeof Symbol>"u"?"__"+S:Symbol.for(S),c=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),w=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class A{constructor(e,s){this.rules=[];let{finish:i}=s||{};function n(l){return/^@/.test(l)?[l]:l.split(/,\s*/)}function t(l,a,h,u){let o=[],d=/^@(\w+)\b/.exec(l[0]),g=d&&d[1]=="keyframes";if(d&&a==null)return h.push(l[0]+";");for(let r in a){let f=a[r];if(/&/.test(r))t(r.split(/,\s*/).map(y=>l.map(p=>y.replace(/&/,p))).reduce((y,p)=>y.concat(p)),f,h);else if(f&&typeof f=="object"){if(!d)throw new RangeError("The value of a property ("+r+") should be a primitive value.");t(n(r),f,o,g)}else f!=null&&o.push(r.replace(/_.*/,"").replace(/[A-Z]/g,y=>"-"+y.toLowerCase())+": "+f+";")}(o.length||g)&&h.push((i&&!d&&!u?l.map(i):l).join(", ")+" {"+o.join(" ")+"}")}for(let l in e)t(n(l),e[l],this.rules)}getRules(){return this.rules.join(`
|
|
2
|
+
`)}static newName(){let e=w[m]||1;return w[m]=e+1,S+e.toString(36)}static mount(e,s,i){let n=e[c],t=i&&i.nonce;n?t&&n.setNonce(t):n=new C(e,t),n.mount(Array.isArray(s)?s:[s],e)}}let b=new Map;class C{constructor(e,s){let i=e.ownerDocument||e,n=i.defaultView;if(!e.head&&e.adoptedStyleSheets&&n.CSSStyleSheet){let t=b.get(i);if(t)return e[c]=t;this.sheet=new n.CSSStyleSheet,b.set(i,this)}else this.styleTag=i.createElement("style"),s&&this.styleTag.setAttribute("nonce",s);this.modules=[],e[c]=this}mount(e,s){let i=this.sheet,n=0,t=0,l=!1;for(let a=0;a<e.length;a++){let h=e[a],u=this.modules.indexOf(h);if(u<t&&u>-1&&(this.modules.splice(u,1),l=!0,t--,u=-1),u==-1){if(this.modules.splice(t++,0,h),l=!0,i)for(let o=0;o<h.rules.length;o++)i.insertRule(h.rules[o],n++)}else{for(;t<u;)n+=this.modules[t++].rules.length;n+=h.rules.length,t++}}if(i)s.adoptedStyleSheets.indexOf(this.sheet)<0&&(s.adoptedStyleSheets=[this.sheet,...s.adoptedStyleSheets]);else{if(l){let h="";for(let u=0;u<this.modules.length;u++)h+=this.modules[u].getRules()+`
|
|
3
|
+
`;this.styleTag.textContent=h}let a=s.head||s;this.styleTag.parentNode!=a&&a.insertBefore(this.styleTag,a.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}exports.StyleModule=A;
|
|
4
4
|
//# sourceMappingURL=style-mod.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style-mod.cjs","sources":["../../../../node_modules/style-mod/src/style-mod.js"],"sourcesContent":["const C = \"\\u037c\"\nconst COUNT = typeof Symbol == \"undefined\" ? \"__\" + C : Symbol.for(C)\nconst SET = typeof Symbol == \"undefined\" ? \"__styleSet\" + Math.floor(Math.random() * 1e8) : Symbol(\"styleSet\")\nconst top = typeof globalThis != \"undefined\" ? globalThis : typeof window != \"undefined\" ? window : {}\n\n// :: - Style modules encapsulate a set of CSS rules defined from\n// JavaScript. Their definitions are only available in a given DOM\n// root after it has been _mounted_ there with `StyleModule.mount`.\n//\n// Style modules should be created once and stored somewhere, as\n// opposed to re-creating them every time you need them. The amount of\n// CSS rules generated for a given DOM root is bounded by the amount\n// of style modules that were used. So to avoid leaking rules, don't\n// create these dynamically, but treat them as one-time allocations.\nexport class StyleModule {\n // :: (Object<Style>, ?{finish: ?(string) → string})\n // Create a style module from the given spec.\n //\n // When `finish` is given, it is called on regular (non-`@`)\n // selectors (after `&` expansion) to compute the final selector.\n constructor(spec, options) {\n this.rules = []\n let {finish} = options || {}\n\n function splitSelector(selector) {\n return /^@/.test(selector) ? [selector] : selector.split(/,\\s*/)\n }\n\n function render(selectors, spec, target, isKeyframes) {\n let local = [], isAt = /^@(\\w+)\\b/.exec(selectors[0]), keyframes = isAt && isAt[1] == \"keyframes\"\n if (isAt && spec == null) return target.push(selectors[0] + \";\")\n for (let prop in spec) {\n let value = spec[prop]\n if (/&/.test(prop)) {\n render(prop.split(/,\\s*/).map(part => selectors.map(sel => part.replace(/&/, sel))).reduce((a, b) => a.concat(b)),\n value, target)\n } else if (value && typeof value == \"object\") {\n if (!isAt) throw new RangeError(\"The value of a property (\" + prop + \") should be a primitive value.\")\n render(splitSelector(prop), value, local, keyframes)\n } else if (value != null) {\n local.push(prop.replace(/_.*/, \"\").replace(/[A-Z]/g, l => \"-\" + l.toLowerCase()) + \": \" + value + \";\")\n }\n }\n if (local.length || keyframes) {\n target.push((finish && !isAt && !isKeyframes ? selectors.map(finish) : selectors).join(\", \") +\n \" {\" + local.join(\" \") + \"}\")\n }\n }\n\n for (let prop in spec) render(splitSelector(prop), spec[prop], this.rules)\n }\n\n // :: () → string\n // Returns a string containing the module's CSS rules.\n getRules() { return this.rules.join(\"\\n\") }\n\n // :: () → string\n // Generate a new unique CSS class name.\n static newName() {\n let id = top[COUNT] || 1\n top[COUNT] = id + 1\n return C + id.toString(36)\n }\n\n // :: (union<Document, ShadowRoot>, union<[StyleModule], StyleModule>, ?{nonce: ?string})\n //\n // Mount the given set of modules in the given DOM root, which ensures\n // that the CSS rules defined by the module are available in that\n // context.\n //\n // Rules are only added to the document once per root.\n //\n // Rule order will follow the order of the modules, so that rules from\n // modules later in the array take precedence of those from earlier\n // modules. If you call this function multiple times for the same root\n // in a way that changes the order of already mounted modules, the old\n // order will be changed.\n //\n // If a Content Security Policy nonce is provided, it is added to\n // the `<style>` tag generated by the library.\n static mount(root, modules, options) {\n let set = root[SET], nonce = options && options.nonce\n if (!set) set = new StyleSet(root, nonce)\n else if (nonce) set.setNonce(nonce)\n set.mount(Array.isArray(modules) ? modules : [modules], root)\n }\n}\n\nlet adoptedSet = new Map //<Document, StyleSet>\n\nclass StyleSet {\n constructor(root, nonce) {\n let doc = root.ownerDocument || root, win = doc.defaultView\n if (!root.head && root.adoptedStyleSheets && win.CSSStyleSheet) {\n let adopted = adoptedSet.get(doc)\n if (adopted) return root[SET] = adopted\n this.sheet = new win.CSSStyleSheet\n adoptedSet.set(doc, this)\n } else {\n this.styleTag = doc.createElement(\"style\")\n if (nonce) this.styleTag.setAttribute(\"nonce\", nonce)\n }\n this.modules = []\n root[SET] = this\n }\n\n mount(modules, root) {\n let sheet = this.sheet\n let pos = 0 /* Current rule offset */, j = 0 /* Index into this.modules */\n for (let i = 0; i < modules.length; i++) {\n let mod = modules[i], index = this.modules.indexOf(mod)\n if (index < j && index > -1) { // Ordering conflict\n this.modules.splice(index, 1)\n j--\n index = -1\n }\n if (index == -1) {\n this.modules.splice(j++, 0, mod)\n if (sheet) for (let k = 0; k < mod.rules.length; k++)\n sheet.insertRule(mod.rules[k], pos++)\n } else {\n while (j < index) pos += this.modules[j++].rules.length\n pos += mod.rules.length\n j++\n }\n }\n\n if (sheet) {\n if (root.adoptedStyleSheets.indexOf(this.sheet) < 0)\n root.adoptedStyleSheets = [this.sheet, ...root.adoptedStyleSheets]\n } else {\n let text = \"\"\n for (let i = 0; i < this.modules.length; i++)\n text += this.modules[i].getRules() + \"\\n\"\n this.styleTag.textContent = text\n let target = root.head || root\n if (this.styleTag.parentNode != target)\n target.insertBefore(this.styleTag, target.firstChild)\n }\n }\n\n setNonce(nonce) {\n if (this.styleTag && this.styleTag.getAttribute(\"nonce\") != nonce)\n this.styleTag.setAttribute(\"nonce\", nonce)\n }\n}\n\n// Style::Object<union<Style,string>>\n//\n// A style is an object that, in the simple case, maps CSS property\n// names to strings holding their values, as in `{color: \"red\",\n// fontWeight: \"bold\"}`. The property names can be given in\n// camel-case—the library will insert a dash before capital letters\n// when converting them to CSS.\n//\n// If you include an underscore in a property name, it and everything\n// after it will be removed from the output, which can be useful when\n// providing a property multiple times, for browser compatibility\n// reasons.\n//\n// A property in a style object can also be a sub-selector, which\n// extends the current context to add a pseudo-selector or a child\n// selector. Such a property should contain a `&` character, which\n// will be replaced by the current selector. For example `{\"&:before\":\n// {content: '\"hi\"'}}`. Sub-selectors and regular properties can\n// freely be mixed in a given object. Any property containing a `&` is\n// assumed to be a sub-selector.\n//\n// Finally, a property can specify an @-block to be wrapped around the\n// styles defined inside the object that's the property's value. For\n// example to create a media query you can do `{\"@media screen and\n// (min-width: 400px)\": {...}}`.\n"],"names":["C","COUNT","SET","top","StyleModule","spec","options","finish","splitSelector","selector","render","selectors","target","isKeyframes","local","isAt","keyframes","prop","value","part","sel","a","b","l","id","root","modules","set","nonce","StyleSet","adoptedSet","doc","win","adopted","sheet","pos","j","i","mod","index","k","text"],"mappings":"gFAAA,MAAMA,EAAI,IACJC,EAAQ,OAAO,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ent":["const C = \"\\u037c\"\nconst COUNT = typeof Symbol == \"undefined\" ? \"__\" + C : Symbol.for(C)\nconst SET = typeof Symbol == \"undefined\" ? \"__styleSet\" + Math.floor(Math.random() * 1e8) : Symbol(\"styleSet\")\nconst top = typeof globalThis != \"undefined\" ? globalThis : typeof window != \"undefined\" ? window : {}\n\n// :: - Style modules encapsulate a set of CSS rules defined from\n// JavaScript. Their definitions are only available in a given DOM\n// root after it has been _mounted_ there with `StyleModule.mount`.\n//\n// Style modules should be created once and stored somewhere, as\n// opposed to re-creating them every time you need them. The amount of\n// CSS rules generated for a given DOM root is bounded by the amount\n// of style modules that were used. So to avoid leaking rules, don't\n// create these dynamically, but treat them as one-time allocations.\nexport class StyleModule {\n // :: (Object<Style>, ?{finish: ?(string) → string})\n // Create a style module from the given spec.\n //\n // When `finish` is given, it is called on regular (non-`@`)\n // selectors (after `&` expansion) to compute the final selector.\n constructor(spec, options) {\n this.rules = []\n let {finish} = options || {}\n\n function splitSelector(selector) {\n return /^@/.test(selector) ? [selector] : selector.split(/,\\s*/)\n }\n\n function render(selectors, spec, target, isKeyframes) {\n let local = [], isAt = /^@(\\w+)\\b/.exec(selectors[0]), keyframes = isAt && isAt[1] == \"keyframes\"\n if (isAt && spec == null) return target.push(selectors[0] + \";\")\n for (let prop in spec) {\n let value = spec[prop]\n if (/&/.test(prop)) {\n render(prop.split(/,\\s*/).map(part => selectors.map(sel => part.replace(/&/, sel))).reduce((a, b) => a.concat(b)),\n value, target)\n } else if (value && typeof value == \"object\") {\n if (!isAt) throw new RangeError(\"The value of a property (\" + prop + \") should be a primitive value.\")\n render(splitSelector(prop), value, local, keyframes)\n } else if (value != null) {\n local.push(prop.replace(/_.*/, \"\").replace(/[A-Z]/g, l => \"-\" + l.toLowerCase()) + \": \" + value + \";\")\n }\n }\n if (local.length || keyframes) {\n target.push((finish && !isAt && !isKeyframes ? selectors.map(finish) : selectors).join(\", \") +\n \" {\" + local.join(\" \") + \"}\")\n }\n }\n\n for (let prop in spec) render(splitSelector(prop), spec[prop], this.rules)\n }\n\n // :: () → string\n // Returns a string containing the module's CSS rules.\n getRules() { return this.rules.join(\"\\n\") }\n\n // :: () → string\n // Generate a new unique CSS class name.\n static newName() {\n let id = top[COUNT] || 1\n top[COUNT] = id + 1\n return C + id.toString(36)\n }\n\n // :: (union<Document, ShadowRoot>, union<[StyleModule], StyleModule>, ?{nonce: ?string})\n //\n // Mount the given set of modules in the given DOM root, which ensures\n // that the CSS rules defined by the module are available in that\n // context.\n //\n // Rules are only added to the document once per root.\n //\n // Rule order will follow the order of the modules, so that rules from\n // modules later in the array take precedence of those from earlier\n // modules. If you call this function multiple times for the same root\n // in a way that changes the order of already mounted modules, the old\n // order will be changed.\n //\n // If a Content Security Policy nonce is provided, it is added to\n // the `<style>` tag generated by the library.\n static mount(root, modules, options) {\n let set = root[SET], nonce = options && options.nonce\n if (!set) set = new StyleSet(root, nonce)\n else if (nonce) set.setNonce(nonce)\n set.mount(Array.isArray(modules) ? modules : [modules], root)\n }\n}\n\nlet adoptedSet = new Map //<Document, StyleSet>\n\nclass StyleSet {\n constructor(root, nonce) {\n let doc = root.ownerDocument || root, win = doc.defaultView\n if (!root.head && root.adoptedStyleSheets && win.CSSStyleSheet) {\n let adopted = adoptedSet.get(doc)\n if (adopted) return root[SET] = adopted\n this.sheet = new win.CSSStyleSheet\n adoptedSet.set(doc, this)\n } else {\n this.styleTag = doc.createElement(\"style\")\n if (nonce) this.styleTag.setAttribute(\"nonce\", nonce)\n }\n this.modules = []\n root[SET] = this\n }\n\n mount(modules, root) {\n let sheet = this.sheet\n let pos = 0 /* Current rule offset */, j = 0 /* Index into this.modules */\n let changed = false\n for (let i = 0; i < modules.length; i++) {\n let mod = modules[i], index = this.modules.indexOf(mod)\n if (index < j && index > -1) { // Ordering conflict\n this.modules.splice(index, 1)\n changed = true\n j--\n index = -1\n }\n if (index == -1) {\n this.modules.splice(j++, 0, mod)\n changed = true\n if (sheet) for (let k = 0; k < mod.rules.length; k++)\n sheet.insertRule(mod.rules[k], pos++)\n } else {\n while (j < index) pos += this.modules[j++].rules.length\n pos += mod.rules.length\n j++\n }\n }\n\n if (sheet) {\n if (root.adoptedStyleSheets.indexOf(this.sheet) < 0)\n root.adoptedStyleSheets = [this.sheet, ...root.adoptedStyleSheets]\n } else {\n if (changed) {\n let text = \"\"\n for (let i = 0; i < this.modules.length; i++)\n text += this.modules[i].getRules() + \"\\n\"\n this.styleTag.textContent = text\n }\n let target = root.head || root\n if (this.styleTag.parentNode != target)\n target.insertBefore(this.styleTag, target.firstChild)\n }\n }\n\n setNonce(nonce) {\n if (this.styleTag && this.styleTag.getAttribute(\"nonce\") != nonce)\n this.styleTag.setAttribute(\"nonce\", nonce)\n }\n}\n\n// Style::Object<union<Style,string>>\n//\n// A style is an object that, in the simple case, maps CSS property\n// names to strings holding their values, as in `{color: \"red\",\n// fontWeight: \"bold\"}`. The property names can be given in\n// camel-case—the library will insert a dash before capital letters\n// when converting them to CSS.\n//\n// If you include an underscore in a property name, it and everything\n// after it will be removed from the output, which can be useful when\n// providing a property multiple times, for browser compatibility\n// reasons.\n//\n// A property in a style object can also be a sub-selector, which\n// extends the current context to add a pseudo-selector or a child\n// selector. Such a property should contain a `&` character, which\n// will be replaced by the current selector. For example `{\"&:before\":\n// {content: '\"hi\"'}}`. Sub-selectors and regular properties can\n// freely be mixed in a given object. Any property containing a `&` is\n// assumed to be a sub-selector.\n//\n// Finally, a property can specify an @-block to be wrapped around the\n// styles defined inside the object that's the property's value. For\n// example to create a media query you can do `{\"@media screen and\n// (min-width: 400px)\": {...}}`.\n"],"names":["C","COUNT","SET","top","StyleModule","spec","options","finish","splitSelector","selector","render","selectors","target","isKeyframes","local","isAt","keyframes","prop","value","part","sel","a","b","l","id","root","modules","set","nonce","StyleSet","adoptedSet","doc","win","adopted","sheet","pos","j","changed","i","mod","index","k","text"],"mappings":"gFAAA,MAAMA,EAAI,IACJC,EAAQ,OAAO,OAAU,IAAc,KAAOD,EAAI,OAAO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, s) {
|
|
9
9
|
this.rules = [];
|
|
10
10
|
let { finish: i } = s || {};
|
|
11
|
-
function n(
|
|
12
|
-
return /^@/.test(
|
|
11
|
+
function n(l) {
|
|
12
|
+
return /^@/.test(l) ? [l] : l.split(/,\s*/);
|
|
13
13
|
}
|
|
14
|
-
function l
|
|
15
|
-
let
|
|
16
|
-
if (
|
|
17
|
-
for (let
|
|
18
|
-
let
|
|
19
|
-
if (/&/.test(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
function t(l, u, h, a) {
|
|
15
|
+
let o = [], d = /^@(\w+)\b/.exec(l[0]), c = d && d[1] == "keyframes";
|
|
16
|
+
if (d && u == null) return h.push(l[0] + ";");
|
|
17
|
+
for (let r in u) {
|
|
18
|
+
let f = u[r];
|
|
19
|
+
if (/&/.test(r))
|
|
20
|
+
t(
|
|
21
|
+
r.split(/,\s*/).map((p) => l.map((y) => p.replace(/&/, y))).reduce((p, y) => p.concat(y)),
|
|
22
|
+
f,
|
|
23
23
|
h
|
|
24
24
|
);
|
|
25
|
-
else if (
|
|
26
|
-
if (!
|
|
27
|
-
|
|
28
|
-
} else
|
|
25
|
+
else if (f && typeof f == "object") {
|
|
26
|
+
if (!d) throw new RangeError("The value of a property (" + r + ") should be a primitive value.");
|
|
27
|
+
t(n(r), f, o, c);
|
|
28
|
+
} else f != null && o.push(r.replace(/_.*/, "").replace(/[A-Z]/g, (p) => "-" + p.toLowerCase()) + ": " + f + ";");
|
|
29
29
|
}
|
|
30
|
-
(
|
|
30
|
+
(o.length || c) && h.push((i && !d && !a ? l.map(i) : l).join(", ") + " {" + o.join(" ") + "}");
|
|
31
31
|
}
|
|
32
|
-
for (let
|
|
32
|
+
for (let l in e) t(n(l), e[l], this.rules);
|
|
33
33
|
}
|
|
34
34
|
// :: () → string
|
|
35
35
|
// Returns a string containing the module's CSS rules.
|
|
@@ -60,8 +60,8 @@ class C {
|
|
|
60
60
|
// If a Content Security Policy nonce is provided, it is added to
|
|
61
61
|
// the `<style>` tag generated by the library.
|
|
62
62
|
static mount(e, s, i) {
|
|
63
|
-
let n = e[S],
|
|
64
|
-
n ?
|
|
63
|
+
let n = e[S], t = i && i.nonce;
|
|
64
|
+
n ? t && n.setNonce(t) : n = new b(e, t), n.mount(Array.isArray(s) ? s : [s], e);
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
let w = /* @__PURE__ */ new Map();
|
|
@@ -69,35 +69,37 @@ class b {
|
|
|
69
69
|
constructor(e, s) {
|
|
70
70
|
let i = e.ownerDocument || e, n = i.defaultView;
|
|
71
71
|
if (!e.head && e.adoptedStyleSheets && n.CSSStyleSheet) {
|
|
72
|
-
let
|
|
73
|
-
if (
|
|
72
|
+
let t = w.get(i);
|
|
73
|
+
if (t) return e[S] = t;
|
|
74
74
|
this.sheet = new n.CSSStyleSheet(), w.set(i, this);
|
|
75
75
|
} else
|
|
76
76
|
this.styleTag = i.createElement("style"), s && this.styleTag.setAttribute("nonce", s);
|
|
77
77
|
this.modules = [], e[S] = this;
|
|
78
78
|
}
|
|
79
79
|
mount(e, s) {
|
|
80
|
-
let i = this.sheet, n = 0, l =
|
|
81
|
-
for (let
|
|
82
|
-
let
|
|
83
|
-
if (
|
|
84
|
-
if (this.modules.splice(
|
|
85
|
-
i.insertRule(
|
|
80
|
+
let i = this.sheet, n = 0, t = 0, l = !1;
|
|
81
|
+
for (let u = 0; u < e.length; u++) {
|
|
82
|
+
let h = e[u], a = this.modules.indexOf(h);
|
|
83
|
+
if (a < t && a > -1 && (this.modules.splice(a, 1), l = !0, t--, a = -1), a == -1) {
|
|
84
|
+
if (this.modules.splice(t++, 0, h), l = !0, i) for (let o = 0; o < h.rules.length; o++)
|
|
85
|
+
i.insertRule(h.rules[o], n++);
|
|
86
86
|
} else {
|
|
87
|
-
for (;
|
|
88
|
-
n +=
|
|
87
|
+
for (; t < a; ) n += this.modules[t++].rules.length;
|
|
88
|
+
n += h.rules.length, t++;
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
if (i)
|
|
92
92
|
s.adoptedStyleSheets.indexOf(this.sheet) < 0 && (s.adoptedStyleSheets = [this.sheet, ...s.adoptedStyleSheets]);
|
|
93
93
|
else {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
if (l) {
|
|
95
|
+
let h = "";
|
|
96
|
+
for (let a = 0; a < this.modules.length; a++)
|
|
97
|
+
h += this.modules[a].getRules() + `
|
|
97
98
|
`;
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
this.styleTag.textContent = h;
|
|
100
|
+
}
|
|
101
|
+
let u = s.head || s;
|
|
102
|
+
this.styleTag.parentNode != u && u.insertBefore(this.styleTag, u.firstChild);
|
|
101
103
|
}
|
|
102
104
|
}
|
|
103
105
|
setNonce(e) {
|