impact-nova 2.6.3 → 3.0.0-alpha.1
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/_commonjsHelpers.js +6 -0
- package/dist/_virtual/index.js +7 -0
- package/dist/_virtual/index2.js +7 -0
- package/dist/_virtual/index3.js +4 -0
- package/dist/_virtual/utilities.js +4 -0
- package/dist/components/data/ag-grid-react/ag-grid-cell-components.d.ts +9 -0
- package/dist/components/data/ag-grid-react/ag-grid-list.d.ts +16 -0
- package/dist/components/data/ag-grid-react/ag-grid-list.js +23 -0
- package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +7 -0
- package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.d.ts +14 -0
- package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.js +70 -0
- package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.d.ts +10 -5
- package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.js +73 -41
- package/dist/components/data/ag-grid-react/cell-renderers/index.d.ts +7 -0
- package/dist/components/data/ag-grid-react/cell-renderers/index.js +42 -36
- package/dist/components/data/ag-grid-react/cell-renderers/link-with-batch-cell-renderer.js +2 -0
- package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.d.ts +19 -0
- package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.js +89 -0
- package/dist/components/data/ag-grid-react/cell-renderers/select-ai-insight-affordance.d.ts +28 -0
- package/dist/components/data/ag-grid-react/cell-renderers/select-ai-insight-affordance.js +96 -0
- package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.d.ts +30 -10
- package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +72 -24
- package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.d.ts +42 -0
- package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.js +86 -0
- package/dist/components/data/ag-grid-react/headers/advanced-filter/advanced-filter-dialog.js +31 -29
- package/dist/components/data/ag-grid-react/headers/components/lazy-tooltip.js +8 -6
- package/dist/components/data/ag-grid-react/index.d.ts +1 -1
- package/dist/components/data/ag-grid-react/index.js +162 -146
- package/dist/components/data/data-table/data-table.js +85 -82
- package/dist/components/data/data-table/data-table.types.d.ts +5 -0
- package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +8 -6
- package/dist/components/data/expandable-list-item/sku-next-page-coordinator.d.ts +14 -0
- package/dist/components/data/expandable-list-item/sku-strip-lookahead.d.ts +26 -0
- package/dist/components/data/expandable-list-item/useServerSkuInfinitePages.d.ts +10 -0
- package/dist/components/data/expandable-list-item/useSkuStripVirtualizer.d.ts +30 -0
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.catalog.d.ts +81 -0
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.item-grid.d.ts +1 -0
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.product-card.d.ts +7 -0
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.sku-picker.d.ts +2 -0
- package/dist/components/data-display/calendar/fiscal-period-caption-select.js +4 -2
- package/dist/components/data-display/chart/chart-heatmap-demos.d.ts +3 -0
- package/dist/components/data-display/chart/chart-heatmap-play.d.ts +9 -0
- package/dist/components/data-display/chart/chart.category-cluster-heatmap.stories-data.d.ts +22 -0
- package/dist/components/data-display/chart/chart.diverging-heatmap.stories-data.d.ts +43 -0
- package/dist/components/data-display/chart/chart.js +100 -93
- package/dist/components/data-display/chart/chart.types.d.ts +10 -0
- package/dist/components/data-display/chart/chart.utils.d.ts +14 -2
- package/dist/components/data-display/chart/chart.utils.js +132 -35
- package/dist/components/data-display/chart/index.js +15 -13
- package/dist/components/data-display/chart/resolve-highcharts-options.js +19 -14
- package/dist/components/data-display/globe-map/globe-map.d.ts +8 -0
- package/dist/components/data-display/globe-map/globe-map.js +161 -0
- package/dist/components/data-display/globe-map/globe-map.stories-data.d.ts +12 -0
- package/dist/components/data-display/globe-map/globe-map.types.d.ts +83 -0
- package/dist/components/data-display/globe-map/globe-map.utils.d.ts +115 -0
- package/dist/components/data-display/globe-map/globe-map.utils.js +259 -0
- package/dist/components/data-display/globe-map/globe-map.variants.d.ts +19 -0
- package/dist/components/data-display/globe-map/globe-map.variants.js +80 -0
- package/dist/components/data-display/globe-map/index.d.ts +2 -0
- package/dist/components/data-display/globe-map/index.js +10 -0
- package/dist/components/data-display/globe-map/internals/globe-countries-110m.json.d.ts +4 -0
- package/dist/components/data-display/globe-map/internals/globe-countries-110m.json.js +7 -0
- package/dist/components/data-display/globe-map/internals/globe-map-context.d.ts +25 -0
- package/dist/components/data-display/globe-map/internals/globe-map-context.js +19 -0
- package/dist/components/data-display/globe-map/internals/globe-map-legend.d.ts +2 -0
- package/dist/components/data-display/globe-map/internals/globe-map-legend.js +51 -0
- package/dist/components/data-display/globe-map/internals/globe-map-point-card-carousel.d.ts +6 -0
- package/dist/components/data-display/globe-map/internals/globe-map-point-card-carousel.js +119 -0
- package/dist/components/data-display/globe-map/internals/globe-map-point-card.d.ts +2 -0
- package/dist/components/data-display/globe-map/internals/globe-map-point-card.js +106 -0
- package/dist/components/data-display/globe-map/internals/globe-map-scene.d.ts +17 -0
- package/dist/components/data-display/globe-map/internals/globe-map-scene.js +218 -0
- package/dist/components/data-display/globe-map/internals/globe-map-tooltip.d.ts +2 -0
- package/dist/components/data-display/globe-map/internals/globe-map-tooltip.js +33 -0
- package/dist/components/data-display/globe-map/internals/use-globe-map-scene.d.ts +45 -0
- package/dist/components/data-display/globe-map/internals/use-globe-map-scene.js +270 -0
- package/dist/components/data-display/hex-tilemap/hex-tilemap.d.ts +9 -0
- package/dist/components/data-display/hex-tilemap/hex-tilemap.js +94 -0
- package/dist/components/data-display/hex-tilemap/hex-tilemap.stories-data.d.ts +7 -0
- package/dist/components/data-display/hex-tilemap/hex-tilemap.types.d.ts +43 -0
- package/dist/components/data-display/hex-tilemap/hex-tilemap.variants.d.ts +11 -0
- package/dist/components/data-display/hex-tilemap/hex-tilemap.variants.js +47 -0
- package/dist/components/data-display/hex-tilemap/index.d.ts +2 -0
- package/dist/components/data-display/hex-tilemap/index.js +12 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-camera.d.ts +40 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-camera.js +103 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-country-lattices.d.ts +9 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-country-lattices.js +1387 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-geometry.d.ts +21 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-geometry.js +82 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-lattice.d.ts +18 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-lattice.js +47 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-layout.d.ts +10 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-layout.js +35 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-new-zealand-grid.d.ts +31 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-new-zealand-grid.js +138 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-regions.d.ts +6 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-regions.js +18 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-context.d.ts +24 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-context.js +19 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-legend.d.ts +2 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-legend.js +51 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-tooltip.d.ts +2 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-tooltip.js +36 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-viewport.d.ts +3 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-viewport.js +147 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-zoom.d.ts +13 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-zoom.js +99 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-world-grid.d.ts +8 -0
- package/dist/components/data-display/hex-tilemap/internals/use-hex-camera.d.ts +27 -0
- package/dist/components/data-display/hex-tilemap/internals/use-hex-camera.js +137 -0
- package/dist/components/data-display/notch-card/index.d.ts +2 -0
- package/dist/components/data-display/notch-card/index.js +6 -0
- package/dist/components/data-display/notch-card/notch-card.d.ts +7 -0
- package/dist/components/data-display/notch-card/notch-card.js +151 -0
- package/dist/components/data-display/notch-card/notch-card.path.d.ts +19 -0
- package/dist/components/data-display/notch-card/notch-card.path.js +118 -0
- package/dist/components/data-display/notch-card/notch-card.types.d.ts +15 -0
- package/dist/components/data-display/notch-card/notch-card.variants.d.ts +15 -0
- package/dist/components/data-display/notch-card/notch-card.variants.js +86 -0
- package/dist/components/feedback/hover-card/hover-card.d.ts +3 -1
- package/dist/components/feedback/hover-card/hover-card.js +28 -24
- package/dist/components/feedback/popover/popover.js +1 -1
- package/dist/components/feedback/tooltip/button-icon-tooltip.js +8 -6
- package/dist/components/feedback/tooltip/overflow-tooltip.d.ts +1 -1
- package/dist/components/feedback/tooltip/overflow-tooltip.js +63 -57
- package/dist/components/feedback/tooltip/overflow-tooltip.types.d.ts +4 -0
- package/dist/components/feedback/tooltip/tab-tooltip-render.js +6 -4
- package/dist/components/flows/filter-strip/index.d.ts +1 -0
- package/dist/components/flows/filter-strip/index.js +4 -2
- package/dist/components/flows/guidance/renderers/guidance-card-shared.js +1 -1
- package/dist/components/flows/iris-chat/index.d.ts +10 -0
- package/dist/components/flows/iris-chat/index.js +55 -0
- package/dist/components/flows/iris-chat/iris-chat-artifact.d.ts +4 -0
- package/dist/components/flows/iris-chat/iris-chat-artifact.js +125 -0
- package/dist/components/flows/iris-chat/iris-chat-composer.d.ts +3 -0
- package/dist/components/flows/iris-chat/iris-chat-composer.js +297 -0
- package/dist/components/flows/iris-chat/iris-chat-context.d.ts +14 -0
- package/dist/components/flows/iris-chat/iris-chat-context.js +23 -0
- package/dist/components/flows/iris-chat/iris-chat-icons.d.ts +18 -0
- package/dist/components/flows/iris-chat/iris-chat-icons.js +176 -0
- package/dist/components/flows/iris-chat/iris-chat-markdown.d.ts +3 -0
- package/dist/components/flows/iris-chat/iris-chat-markdown.js +62 -0
- package/dist/components/flows/iris-chat/iris-chat-menu.d.ts +15 -0
- package/dist/components/flows/iris-chat/iris-chat-menu.js +259 -0
- package/dist/components/flows/iris-chat/iris-chat-prompt.d.ts +3 -0
- package/dist/components/flows/iris-chat/iris-chat-prompt.js +46 -0
- package/dist/components/flows/iris-chat/iris-chat-thinking.d.ts +12 -0
- package/dist/components/flows/iris-chat/iris-chat-thinking.js +202 -0
- package/dist/components/flows/iris-chat/iris-chat-thread.d.ts +37 -0
- package/dist/components/flows/iris-chat/iris-chat-thread.js +493 -0
- package/dist/components/flows/iris-chat/iris-chat.d.ts +43 -0
- package/dist/components/flows/iris-chat/iris-chat.js +336 -0
- package/dist/components/flows/iris-chat/iris-chat.types.d.ts +208 -0
- package/dist/components/flows/iris-chat/iris-chat.variants.d.ts +14 -0
- package/dist/components/flows/iris-chat/iris-chat.variants.js +78 -0
- package/dist/components/flows/iris-chat/read-iris-greeting-period.d.ts +4 -0
- package/dist/components/flows/iris-chat/read-iris-greeting-period.js +16 -0
- package/dist/components/flows/wizard/index.d.ts +2 -2
- package/dist/components/flows/wizard/index.js +17 -13
- package/dist/components/flows/wizard/wizard-context.d.ts +6 -1
- package/dist/components/flows/wizard/wizard-context.js +15 -7
- package/dist/components/flows/wizard/wizard.d.ts +22 -4
- package/dist/components/flows/wizard/wizard.js +278 -174
- package/dist/components/flows/wizard/wizard.types.d.ts +40 -0
- package/dist/components/forms/choice-card/assets/featured-backdrop-baked.webp.js +4 -0
- package/dist/components/forms/choice-card/assets/featured-noise.webp.js +4 -0
- package/dist/components/forms/choice-card/choice-card-featured-arcs.d.ts +4 -0
- package/dist/components/forms/choice-card/choice-card-featured-arcs.js +42 -0
- package/dist/components/forms/choice-card/choice-card-featured-backdrop.d.ts +4 -0
- package/dist/components/forms/choice-card/choice-card-featured-backdrop.js +45 -0
- package/dist/components/forms/choice-card/choice-card-indicator.variants.d.ts +8 -0
- package/dist/components/forms/choice-card/choice-card-indicator.variants.js +5 -0
- package/dist/components/forms/choice-card/choice-card-percent.d.ts +11 -0
- package/dist/components/forms/choice-card/choice-card-percent.js +80 -0
- package/dist/components/forms/choice-card/choice-card.d.ts +40 -3
- package/dist/components/forms/choice-card/choice-card.js +651 -170
- package/dist/components/forms/choice-card/choice-card.types.d.ts +40 -0
- package/dist/components/forms/choice-card/choice-card.variants.d.ts +7 -0
- package/dist/components/forms/choice-card/choice-card.variants.js +100 -0
- package/dist/components/forms/choice-card/index.d.ts +2 -1
- package/dist/components/forms/choice-card/index.js +27 -10
- package/dist/components/forms/combobox/combobox.js +1 -1
- package/dist/components/layout/breadcrumb/breadcrumb.js +1 -1
- package/dist/components/layout/header/header.d.ts +3 -2
- package/dist/components/layout/header/header.js +67 -47
- package/dist/components/layout/header/header.types.d.ts +1 -0
- package/dist/components/primitives/iris/iris-agent-cursor.d.ts +3 -0
- package/dist/components/primitives/iris/iris-agent-cursor.js +89 -0
- package/dist/components/primitives/iris/iris-alan-gradient-icon.d.ts +5 -0
- package/dist/components/primitives/iris/iris-alan-gradient-icon.js +69 -0
- package/dist/components/primitives/iris/iris-control-context.d.ts +15 -0
- package/dist/components/primitives/iris/iris-control-context.js +44 -0
- package/dist/components/primitives/iris/iris-control-region.d.ts +10 -0
- package/dist/components/primitives/iris/iris-control-region.js +102 -0
- package/dist/components/primitives/iris/iris-control.types.d.ts +24 -0
- package/dist/components/primitives/iris/iris-control.variants.d.ts +4 -0
- package/dist/components/primitives/iris/iris-control.variants.js +20 -0
- package/dist/components/primitives/iris/iris.d.ts +24 -0
- package/dist/components/primitives/iris/iris.js +232 -0
- package/dist/components/primitives/iris/iris.types.d.ts +35 -0
- package/dist/components/primitives/iris/iris.variants.d.ts +30 -0
- package/dist/components/primitives/iris/iris.variants.js +120 -0
- package/dist/components/primitives/stepper/internals/pipeline-current-mark.d.ts +6 -0
- package/dist/components/primitives/stepper/internals/pipeline-current-mark.js +35 -0
- package/dist/components/primitives/stepper/internals/rail-status-dot.d.ts +13 -0
- package/dist/components/primitives/stepper/internals/rail-status-dot.js +70 -0
- package/dist/components/primitives/stepper/internals/step-hit-target.d.ts +15 -0
- package/dist/components/primitives/stepper/internals/step-hit-target.js +51 -0
- package/dist/components/primitives/stepper/internals/step-model.d.ts +3 -0
- package/dist/components/primitives/stepper/internals/step-model.js +10 -0
- package/dist/components/primitives/stepper/internals/stepper-compact.d.ts +5 -0
- package/dist/components/primitives/stepper/internals/stepper-compact.js +68 -0
- package/dist/components/primitives/stepper/internals/stepper-pipeline.d.ts +7 -0
- package/dist/components/primitives/stepper/internals/stepper-pipeline.js +87 -0
- package/dist/components/primitives/stepper/internals/stepper-rail.d.ts +5 -0
- package/dist/components/primitives/stepper/internals/stepper-rail.js +105 -0
- package/dist/components/primitives/stepper/internals/stepper-summary.d.ts +5 -0
- package/dist/components/primitives/stepper/internals/stepper-summary.js +103 -0
- package/dist/components/primitives/stepper/internals/stepper-track.d.ts +8 -0
- package/dist/components/primitives/stepper/internals/stepper-track.js +170 -0
- package/dist/components/primitives/stepper/stepper.d.ts +1 -0
- package/dist/components/primitives/stepper/stepper.js +134 -52
- package/dist/components/primitives/stepper/stepper.types.d.ts +17 -0
- package/dist/components/primitives/stepper/stepper.variants.d.ts +26 -0
- package/dist/components/primitives/stepper/stepper.variants.js +165 -5
- package/dist/components/primitives/tabs/tabs.d.ts +4 -1
- package/dist/components/primitives/tabs/tabs.js +131 -59
- package/dist/components/primitives/tabs/tabs.types.d.ts +5 -1
- package/dist/i18n/defaultMessages.d.ts +100 -0
- package/dist/i18n/defaultMessages.js +118 -21
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/locales/de.js +99 -2
- package/dist/i18n/locales/es.js +99 -2
- package/dist/i18n/locales/hi.js +99 -2
- package/dist/i18n/locales/kn.js +99 -2
- package/dist/impact-nova-components.css +972 -2
- package/dist/impact-nova-tokens.scss +109 -1
- package/dist/impact-nova.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +585 -551
- package/dist/lib/virtualized/directional-range-extractor.d.ts +26 -0
- package/dist/lib/virtualized/directional-range-extractor.js +39 -0
- package/dist/lib/virtualized/index.d.ts +3 -0
- package/dist/lib/virtualized/index.js +35 -27
- package/dist/lib/virtualized/scroll-seek.d.ts +61 -0
- package/dist/lib/virtualized/scroll-seek.js +61 -0
- package/dist/lib/virtualized/usePaintedRangeVirtualizer.d.ts +19 -0
- package/dist/lib/virtualized/usePaintedRangeVirtualizer.js +30 -0
- package/dist/lib/virtualized/useResponsiveColumnCount.d.ts +35 -0
- package/dist/lib/virtualized/useResponsiveColumnCount.js +51 -0
- package/dist/lib/virtualized/useScrollSeekPaintedRange.d.ts +13 -0
- package/dist/lib/virtualized/useScrollSeekPaintedRange.js +45 -0
- package/dist/lib/virtualized/useVirtualizedList.d.ts +7 -0
- package/dist/lib/virtualized/useVirtualizedList.js +89 -87
- package/dist/lib/virtualized/useVirtualizedRows.d.ts +9 -2
- package/dist/lib/virtualized/useVirtualizedRows.js +15 -13
- package/dist/lib/virtualized/virtualized.types.d.ts +2 -0
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +85 -0
- package/dist/node_modules/@ungap/structured-clone/esm/index.js +11 -0
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +110 -0
- package/dist/node_modules/@ungap/structured-clone/esm/types.js +13 -0
- package/dist/node_modules/bail/index.js +7 -0
- package/dist/node_modules/ccount/index.js +12 -0
- package/dist/node_modules/comma-separated-tokens/index.js +9 -0
- package/dist/node_modules/decode-named-character-reference/index.dom.js +10 -0
- package/dist/node_modules/devlop/lib/default.js +8 -0
- package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +7 -0
- package/dist/node_modules/extend/index.js +43 -0
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +302 -0
- package/dist/node_modules/hast-util-whitespace/lib/index.js +10 -0
- package/dist/node_modules/html-url-attributes/lib/index.js +26 -0
- package/dist/node_modules/inline-style-parser/cjs/index.js +93 -0
- package/dist/node_modules/is-plain-obj/index.js +9 -0
- package/dist/node_modules/longest-streak/index.js +12 -0
- package/dist/node_modules/markdown-table/index.js +75 -0
- package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +78 -0
- package/dist/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js +8 -0
- package/dist/node_modules/mdast-util-from-markdown/lib/index.js +632 -0
- package/dist/node_modules/mdast-util-gfm/lib/index.js +29 -0
- package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +130 -0
- package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +95 -0
- package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +54 -0
- package/dist/node_modules/mdast-util-gfm-table/lib/index.js +135 -0
- package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +58 -0
- package/dist/node_modules/mdast-util-phrasing/lib/index.js +30 -0
- package/dist/node_modules/mdast-util-to-hast/lib/footer.js +90 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +8 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +15 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +28 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +9 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +10 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +58 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +19 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +15 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +42 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +21 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +7 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +13 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +21 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +32 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +8 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/index.js +10 -0
- package/dist/node_modules/mdast-util-to-hast/lib/revert.js +13 -0
- package/dist/node_modules/mdast-util-to-hast/lib/state.js +104 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +15 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +15 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +44 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +34 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +20 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +35 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +10 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +29 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +33 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +44 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +22 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +29 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +52 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +22 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +35 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +7 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +20 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +9 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +18 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +6 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +9 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +13 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +15 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +15 -0
- package/dist/node_modules/mdast-util-to-string/lib/index.js +29 -0
- package/dist/node_modules/micromark/lib/constructs.js +85 -0
- package/dist/node_modules/micromark/lib/create-tokenizer.js +225 -0
- package/dist/node_modules/micromark/lib/initialize/content.js +37 -0
- package/dist/node_modules/micromark/lib/initialize/document.js +128 -0
- package/dist/node_modules/micromark/lib/initialize/flow.js +33 -0
- package/dist/node_modules/micromark/lib/initialize/text.js +98 -0
- package/dist/node_modules/micromark/lib/parse.js +32 -0
- package/dist/node_modules/micromark/lib/postprocess.js +9 -0
- package/dist/node_modules/micromark/lib/preprocess.js +44 -0
- package/dist/node_modules/micromark-core-commonmark/lib/attention.js +87 -0
- package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +43 -0
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +18 -0
- package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +42 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +17 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +30 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +82 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +37 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +45 -0
- package/dist/node_modules/micromark-core-commonmark/lib/content.js +50 -0
- package/dist/node_modules/micromark-core-commonmark/lib/definition.js +80 -0
- package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +17 -0
- package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +50 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +132 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +102 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +154 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +23 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +20 -0
- package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +14 -0
- package/dist/node_modules/micromark-core-commonmark/lib/list.js +90 -0
- package/dist/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.js +17 -0
- package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +59 -0
- package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +25 -0
- package/dist/node_modules/micromark-extension-gfm/index.js +18 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +193 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +192 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +67 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +75 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +23 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +149 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +45 -0
- package/dist/node_modules/micromark-factory-destination/index.js +31 -0
- package/dist/node_modules/micromark-factory-label/index.js +28 -0
- package/dist/node_modules/micromark-factory-space/index.js +29 -0
- package/dist/node_modules/micromark-factory-title/index.js +26 -0
- package/dist/node_modules/micromark-factory-whitespace/index.js +12 -0
- package/dist/node_modules/micromark-util-character/index.js +39 -0
- package/dist/node_modules/micromark-util-chunked/index.js +16 -0
- package/dist/node_modules/micromark-util-classify-character/index.js +10 -0
- package/dist/node_modules/micromark-util-combine-extensions/index.js +36 -0
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +16 -0
- package/dist/node_modules/micromark-util-decode-string/index.js +18 -0
- package/dist/node_modules/micromark-util-edit-map/index.js +82 -0
- package/dist/node_modules/micromark-util-html-tag-name/index.js +68 -0
- package/dist/node_modules/micromark-util-normalize-identifier/index.js +6 -0
- package/dist/node_modules/micromark-util-resolve-all/index.js +12 -0
- package/dist/node_modules/micromark-util-sanitize-uri/index.js +23 -0
- package/dist/node_modules/micromark-util-subtokenize/index.js +55 -0
- package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +175 -0
- package/dist/node_modules/property-information/index.js +12 -0
- package/dist/node_modules/property-information/lib/aria.js +61 -0
- package/dist/node_modules/property-information/lib/find.js +33 -0
- package/dist/node_modules/property-information/lib/hast-to-react.js +22 -0
- package/dist/node_modules/property-information/lib/html.js +378 -0
- package/dist/node_modules/property-information/lib/normalize.js +6 -0
- package/dist/node_modules/property-information/lib/svg.js +568 -0
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +7 -0
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +6 -0
- package/dist/node_modules/property-information/lib/util/create.js +19 -0
- package/dist/node_modules/property-information/lib/util/defined-info.js +36 -0
- package/dist/node_modules/property-information/lib/util/info.js +28 -0
- package/dist/node_modules/property-information/lib/util/merge.js +10 -0
- package/dist/node_modules/property-information/lib/util/schema.js +21 -0
- package/dist/node_modules/property-information/lib/util/types.js +14 -0
- package/dist/node_modules/property-information/lib/xlink.js +19 -0
- package/dist/node_modules/property-information/lib/xml.js +11 -0
- package/dist/node_modules/property-information/lib/xmlns.js +11 -0
- package/dist/node_modules/react-markdown/lib/index.js +102 -0
- package/dist/node_modules/remark-gfm/lib/index.js +13 -0
- package/dist/node_modules/remark-parse/lib/index.js +19 -0
- package/dist/node_modules/remark-rehype/lib/index.js +18 -0
- package/dist/node_modules/space-separated-tokens/index.js +6 -0
- package/dist/node_modules/style-to-js/cjs/index.js +20 -0
- package/dist/node_modules/style-to-js/cjs/utilities.js +19 -0
- package/dist/node_modules/style-to-object/cjs/index.js +28 -0
- package/dist/node_modules/trim-lines/index.js +28 -0
- package/dist/node_modules/trough/lib/index.js +60 -0
- package/dist/node_modules/unified/lib/callable-instance.js +25 -0
- package/dist/node_modules/unified/lib/index.js +529 -0
- package/dist/node_modules/unist-util-is/lib/index.js +91 -0
- package/dist/node_modules/unist-util-position/lib/index.js +23 -0
- package/dist/node_modules/unist-util-stringify-position/lib/index.js +15 -0
- package/dist/node_modules/unist-util-visit/lib/index.js +16 -0
- package/dist/node_modules/unist-util-visit-parents/lib/color.js +6 -0
- package/dist/node_modules/unist-util-visit-parents/lib/index.js +56 -0
- package/dist/node_modules/vfile/lib/index.js +406 -0
- package/dist/node_modules/vfile/lib/minpath.browser.js +112 -0
- package/dist/node_modules/vfile/lib/minproc.browser.js +7 -0
- package/dist/node_modules/vfile/lib/minurl.browser.js +41 -0
- package/dist/node_modules/vfile/lib/minurl.shared.js +7 -0
- package/dist/node_modules/vfile-message/lib/index.js +91 -0
- package/dist/providers/app-providers.js +13 -11
- package/dist/tailwind.config.js +3 -1
- package/dist/theme/tailwind-colors.js +2 -1
- package/package.json +39 -4
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { factorySpace as R } from "../../micromark-factory-space/index.js";
|
|
2
|
+
import { asciiAlpha as A, markdownLineEnding as m, asciiAlphanumeric as w, markdownSpace as g, markdownLineEndingOrSpace as D } from "../../micromark-util-character/index.js";
|
|
3
|
+
const Z = {
|
|
4
|
+
name: "htmlText",
|
|
5
|
+
tokenize: W
|
|
6
|
+
};
|
|
7
|
+
function W(r, q, u) {
|
|
8
|
+
const v = this;
|
|
9
|
+
let h, O, t;
|
|
10
|
+
return y;
|
|
11
|
+
function y(n) {
|
|
12
|
+
return r.enter("htmlText"), r.enter("htmlTextData"), r.consume(n), H;
|
|
13
|
+
}
|
|
14
|
+
function H(n) {
|
|
15
|
+
return n === 33 ? (r.consume(n), U) : n === 47 ? (r.consume(n), J) : n === 63 ? (r.consume(n), s) : A(n) ? (r.consume(n), L) : u(n);
|
|
16
|
+
}
|
|
17
|
+
function U(n) {
|
|
18
|
+
return n === 45 ? (r.consume(n), j) : n === 91 ? (r.consume(n), O = 0, V) : A(n) ? (r.consume(n), e) : u(n);
|
|
19
|
+
}
|
|
20
|
+
function j(n) {
|
|
21
|
+
return n === 45 ? (r.consume(n), B) : u(n);
|
|
22
|
+
}
|
|
23
|
+
function x(n) {
|
|
24
|
+
return n === null ? u(n) : n === 45 ? (r.consume(n), S) : m(n) ? (t = x, i(n)) : (r.consume(n), x);
|
|
25
|
+
}
|
|
26
|
+
function S(n) {
|
|
27
|
+
return n === 45 ? (r.consume(n), B) : x(n);
|
|
28
|
+
}
|
|
29
|
+
function B(n) {
|
|
30
|
+
return n === 62 ? a(n) : n === 45 ? S(n) : x(n);
|
|
31
|
+
}
|
|
32
|
+
function V(n) {
|
|
33
|
+
const f = "CDATA[";
|
|
34
|
+
return n === f.charCodeAt(O++) ? (r.consume(n), O === f.length ? p : V) : u(n);
|
|
35
|
+
}
|
|
36
|
+
function p(n) {
|
|
37
|
+
return n === null ? u(n) : n === 93 ? (r.consume(n), F) : m(n) ? (t = p, i(n)) : (r.consume(n), p);
|
|
38
|
+
}
|
|
39
|
+
function F(n) {
|
|
40
|
+
return n === 93 ? (r.consume(n), I) : p(n);
|
|
41
|
+
}
|
|
42
|
+
function I(n) {
|
|
43
|
+
return n === 62 ? a(n) : n === 93 ? (r.consume(n), I) : p(n);
|
|
44
|
+
}
|
|
45
|
+
function e(n) {
|
|
46
|
+
return n === null || n === 62 ? a(n) : m(n) ? (t = e, i(n)) : (r.consume(n), e);
|
|
47
|
+
}
|
|
48
|
+
function s(n) {
|
|
49
|
+
return n === null ? u(n) : n === 63 ? (r.consume(n), G) : m(n) ? (t = s, i(n)) : (r.consume(n), s);
|
|
50
|
+
}
|
|
51
|
+
function G(n) {
|
|
52
|
+
return n === 62 ? a(n) : s(n);
|
|
53
|
+
}
|
|
54
|
+
function J(n) {
|
|
55
|
+
return A(n) ? (r.consume(n), z) : u(n);
|
|
56
|
+
}
|
|
57
|
+
function z(n) {
|
|
58
|
+
return n === 45 || w(n) ? (r.consume(n), z) : T(n);
|
|
59
|
+
}
|
|
60
|
+
function T(n) {
|
|
61
|
+
return m(n) ? (t = T, i(n)) : g(n) ? (r.consume(n), T) : a(n);
|
|
62
|
+
}
|
|
63
|
+
function L(n) {
|
|
64
|
+
return n === 45 || w(n) ? (r.consume(n), L) : n === 47 || n === 62 || D(n) ? l(n) : u(n);
|
|
65
|
+
}
|
|
66
|
+
function l(n) {
|
|
67
|
+
return n === 47 ? (r.consume(n), a) : n === 58 || n === 95 || A(n) ? (r.consume(n), N) : m(n) ? (t = l, i(n)) : g(n) ? (r.consume(n), l) : a(n);
|
|
68
|
+
}
|
|
69
|
+
function N(n) {
|
|
70
|
+
return n === 45 || n === 46 || n === 58 || n === 95 || w(n) ? (r.consume(n), N) : E(n);
|
|
71
|
+
}
|
|
72
|
+
function E(n) {
|
|
73
|
+
return n === 61 ? (r.consume(n), C) : m(n) ? (t = E, i(n)) : g(n) ? (r.consume(n), E) : l(n);
|
|
74
|
+
}
|
|
75
|
+
function C(n) {
|
|
76
|
+
return n === null || n === 60 || n === 61 || n === 62 || n === 96 ? u(n) : n === 34 || n === 39 ? (r.consume(n), h = n, b) : m(n) ? (t = C, i(n)) : g(n) ? (r.consume(n), C) : (r.consume(n), P);
|
|
77
|
+
}
|
|
78
|
+
function b(n) {
|
|
79
|
+
return n === h ? (r.consume(n), h = void 0, K) : n === null ? u(n) : m(n) ? (t = b, i(n)) : (r.consume(n), b);
|
|
80
|
+
}
|
|
81
|
+
function P(n) {
|
|
82
|
+
return n === null || n === 34 || n === 39 || n === 60 || n === 61 || n === 96 ? u(n) : n === 47 || n === 62 || D(n) ? l(n) : (r.consume(n), P);
|
|
83
|
+
}
|
|
84
|
+
function K(n) {
|
|
85
|
+
return n === 47 || n === 62 || D(n) ? l(n) : u(n);
|
|
86
|
+
}
|
|
87
|
+
function a(n) {
|
|
88
|
+
return n === 62 ? (r.consume(n), r.exit("htmlTextData"), r.exit("htmlText"), q) : u(n);
|
|
89
|
+
}
|
|
90
|
+
function i(n) {
|
|
91
|
+
return r.exit("htmlTextData"), r.enter("lineEnding"), r.consume(n), r.exit("lineEnding"), M;
|
|
92
|
+
}
|
|
93
|
+
function M(n) {
|
|
94
|
+
return g(n) ? R(r, Q, "linePrefix", v.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(n) : Q(n);
|
|
95
|
+
}
|
|
96
|
+
function Q(n) {
|
|
97
|
+
return r.enter("htmlTextData"), t(n);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
export {
|
|
101
|
+
Z as htmlText
|
|
102
|
+
};
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { factoryDestination as d } from "../../micromark-factory-destination/index.js";
|
|
2
|
+
import { factoryLabel as h } from "../../micromark-factory-label/index.js";
|
|
3
|
+
import { factoryTitle as M } from "../../micromark-factory-title/index.js";
|
|
4
|
+
import { factoryWhitespace as k } from "../../micromark-factory-whitespace/index.js";
|
|
5
|
+
import { markdownLineEndingOrSpace as m } from "../../micromark-util-character/index.js";
|
|
6
|
+
import { push as b, splice as g } from "../../micromark-util-chunked/index.js";
|
|
7
|
+
import { normalizeIdentifier as y } from "../../micromark-util-normalize-identifier/index.js";
|
|
8
|
+
import { resolveAll as E } from "../../micromark-util-resolve-all/index.js";
|
|
9
|
+
const j = {
|
|
10
|
+
name: "labelEnd",
|
|
11
|
+
resolveAll: x,
|
|
12
|
+
resolveTo: w,
|
|
13
|
+
tokenize: D
|
|
14
|
+
}, L = {
|
|
15
|
+
tokenize: T
|
|
16
|
+
}, S = {
|
|
17
|
+
tokenize: C
|
|
18
|
+
}, z = {
|
|
19
|
+
tokenize: _
|
|
20
|
+
};
|
|
21
|
+
function x(e) {
|
|
22
|
+
let o = -1;
|
|
23
|
+
const a = [];
|
|
24
|
+
for (; ++o < e.length; ) {
|
|
25
|
+
const t = e[o][1];
|
|
26
|
+
if (a.push(e[o]), t.type === "labelImage" || t.type === "labelLink" || t.type === "labelEnd") {
|
|
27
|
+
const n = t.type === "labelImage" ? 4 : 2;
|
|
28
|
+
t.type = "data", o += n;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return e.length !== a.length && g(e, 0, e.length, a), e;
|
|
32
|
+
}
|
|
33
|
+
function w(e, o) {
|
|
34
|
+
let a = e.length, t = 0, n, i, l;
|
|
35
|
+
for (; a--; ) {
|
|
36
|
+
const u = e[a][1];
|
|
37
|
+
if (n) {
|
|
38
|
+
if (u.type === "link" || u.type === "labelLink" && u._inactive)
|
|
39
|
+
break;
|
|
40
|
+
e[a][0] === "enter" && u.type === "labelLink" && (u._inactive = !0);
|
|
41
|
+
} else if (i) {
|
|
42
|
+
if (e[a][0] === "enter" && (u.type === "labelImage" || u.type === "labelLink") && !u._balanced && (n = a, u.type !== "labelLink")) {
|
|
43
|
+
t = 2;
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
} else u.type === "labelEnd" && (i = a);
|
|
47
|
+
}
|
|
48
|
+
const s = {
|
|
49
|
+
type: e[n][1].type === "labelLink" ? "link" : "image",
|
|
50
|
+
start: {
|
|
51
|
+
...e[n][1].start
|
|
52
|
+
},
|
|
53
|
+
end: {
|
|
54
|
+
...e[e.length - 1][1].end
|
|
55
|
+
}
|
|
56
|
+
}, p = {
|
|
57
|
+
type: "label",
|
|
58
|
+
start: {
|
|
59
|
+
...e[n][1].start
|
|
60
|
+
},
|
|
61
|
+
end: {
|
|
62
|
+
...e[i][1].end
|
|
63
|
+
}
|
|
64
|
+
}, f = {
|
|
65
|
+
type: "labelText",
|
|
66
|
+
start: {
|
|
67
|
+
...e[n + t + 2][1].end
|
|
68
|
+
},
|
|
69
|
+
end: {
|
|
70
|
+
...e[i - 2][1].start
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
return l = [["enter", s, o], ["enter", p, o]], l = b(l, e.slice(n + 1, n + t + 3)), l = b(l, [["enter", f, o]]), l = b(l, E(o.parser.constructs.insideSpan.null, e.slice(n + t + 4, i - 3), o)), l = b(l, [["exit", f, o], e[i - 2], e[i - 1], ["exit", p, o]]), l = b(l, e.slice(i + 1)), l = b(l, [["exit", s, o]]), g(e, n, e.length, l), e;
|
|
74
|
+
}
|
|
75
|
+
function D(e, o, a) {
|
|
76
|
+
const t = this, n = t._labelStarts;
|
|
77
|
+
let i, l;
|
|
78
|
+
if (n) {
|
|
79
|
+
for (; n.length > 0 && n[n.length - 1]._balanced; )
|
|
80
|
+
n.pop();
|
|
81
|
+
i = n[n.length - 1];
|
|
82
|
+
}
|
|
83
|
+
return s;
|
|
84
|
+
function s(c) {
|
|
85
|
+
return i ? i._inactive ? r(c) : (l = t.parser.defined.includes(y(t.sliceSerialize({
|
|
86
|
+
start: i.end,
|
|
87
|
+
end: t.now()
|
|
88
|
+
}))), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(c), e.exit("labelMarker"), e.exit("labelEnd"), p) : a(c);
|
|
89
|
+
}
|
|
90
|
+
function p(c) {
|
|
91
|
+
return c === 40 ? e.attempt(L, u, l ? u : r)(c) : c === 91 ? e.attempt(S, u, l ? f : r)(c) : l ? u(c) : r(c);
|
|
92
|
+
}
|
|
93
|
+
function f(c) {
|
|
94
|
+
return e.attempt(z, u, r)(c);
|
|
95
|
+
}
|
|
96
|
+
function u(c) {
|
|
97
|
+
return n.pop(), o(c);
|
|
98
|
+
}
|
|
99
|
+
function r(c) {
|
|
100
|
+
return i._balanced = !0, a(c);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
function T(e, o, a) {
|
|
104
|
+
return t;
|
|
105
|
+
function t(r) {
|
|
106
|
+
return e.enter("resource"), e.enter("resourceMarker"), e.consume(r), e.exit("resourceMarker"), n;
|
|
107
|
+
}
|
|
108
|
+
function n(r) {
|
|
109
|
+
return m(r) ? k(e, i)(r) : i(r);
|
|
110
|
+
}
|
|
111
|
+
function i(r) {
|
|
112
|
+
return r === 41 ? u(r) : d(e, l, s, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(r);
|
|
113
|
+
}
|
|
114
|
+
function l(r) {
|
|
115
|
+
return m(r) ? k(e, p)(r) : u(r);
|
|
116
|
+
}
|
|
117
|
+
function s(r) {
|
|
118
|
+
return a(r);
|
|
119
|
+
}
|
|
120
|
+
function p(r) {
|
|
121
|
+
return r === 34 || r === 39 || r === 40 ? M(e, f, a, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(r) : u(r);
|
|
122
|
+
}
|
|
123
|
+
function f(r) {
|
|
124
|
+
return m(r) ? k(e, u)(r) : u(r);
|
|
125
|
+
}
|
|
126
|
+
function u(r) {
|
|
127
|
+
return r === 41 ? (e.enter("resourceMarker"), e.consume(r), e.exit("resourceMarker"), e.exit("resource"), o) : a(r);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
function C(e, o, a) {
|
|
131
|
+
const t = this;
|
|
132
|
+
return n;
|
|
133
|
+
function n(s) {
|
|
134
|
+
return h.call(t, e, i, l, "reference", "referenceMarker", "referenceString")(s);
|
|
135
|
+
}
|
|
136
|
+
function i(s) {
|
|
137
|
+
return t.parser.defined.includes(y(t.sliceSerialize(t.events[t.events.length - 1][1]).slice(1, -1))) ? o(s) : a(s);
|
|
138
|
+
}
|
|
139
|
+
function l(s) {
|
|
140
|
+
return a(s);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
function _(e, o, a) {
|
|
144
|
+
return t;
|
|
145
|
+
function t(i) {
|
|
146
|
+
return e.enter("reference"), e.enter("referenceMarker"), e.consume(i), e.exit("referenceMarker"), n;
|
|
147
|
+
}
|
|
148
|
+
function n(i) {
|
|
149
|
+
return i === 93 ? (e.enter("referenceMarker"), e.consume(i), e.exit("referenceMarker"), e.exit("reference"), o) : a(i);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
export {
|
|
153
|
+
j as labelEnd
|
|
154
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { labelEnd as b } from "./label-end.js";
|
|
2
|
+
const g = {
|
|
3
|
+
name: "labelStartImage",
|
|
4
|
+
resolveAll: b.resolveAll,
|
|
5
|
+
tokenize: m
|
|
6
|
+
};
|
|
7
|
+
function m(r, n, a) {
|
|
8
|
+
const t = this;
|
|
9
|
+
let l;
|
|
10
|
+
return o;
|
|
11
|
+
function o(e) {
|
|
12
|
+
return r.enter("labelImage"), r.enter("labelImageMarker"), r.consume(e), r.exit("labelImageMarker"), i;
|
|
13
|
+
}
|
|
14
|
+
function i(e) {
|
|
15
|
+
return e === 91 ? (r.enter("labelMarker"), r.consume(e), r.exit("labelMarker"), l = r.exit("labelImage"), u) : a(e);
|
|
16
|
+
}
|
|
17
|
+
function u(e) {
|
|
18
|
+
return e === 94 && "_hiddenFootnoteSupport" in t.parser.constructs ? a(e) : (t._labelStarts = t._labelStarts || [], t._labelStarts.push(l), n(e));
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
g as labelStartImage
|
|
23
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { labelEnd as b } from "./label-end.js";
|
|
2
|
+
const k = {
|
|
3
|
+
name: "labelStartLink",
|
|
4
|
+
resolveAll: b.resolveAll,
|
|
5
|
+
tokenize: s
|
|
6
|
+
};
|
|
7
|
+
function s(t, n, a) {
|
|
8
|
+
const l = this;
|
|
9
|
+
let r;
|
|
10
|
+
return i;
|
|
11
|
+
function i(e) {
|
|
12
|
+
return t.enter("labelLink"), t.enter("labelMarker"), t.consume(e), t.exit("labelMarker"), r = t.exit("labelLink"), o;
|
|
13
|
+
}
|
|
14
|
+
function o(e) {
|
|
15
|
+
return e === 94 && "_hiddenFootnoteSupport" in l.parser.constructs ? a(e) : (l._labelStarts = l._labelStarts || [], l._labelStarts.push(r), n(e));
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
k as labelStartLink
|
|
20
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { factorySpace as t } from "../../micromark-factory-space/index.js";
|
|
2
|
+
const g = {
|
|
3
|
+
name: "lineEnding",
|
|
4
|
+
tokenize: o
|
|
5
|
+
};
|
|
6
|
+
function o(n, i) {
|
|
7
|
+
return e;
|
|
8
|
+
function e(r) {
|
|
9
|
+
return n.enter("lineEnding"), n.consume(r), n.exit("lineEnding"), t(n, i, "linePrefix");
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
g as lineEnding
|
|
14
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { factorySpace as c } from "../../micromark-factory-space/index.js";
|
|
2
|
+
import { asciiDigit as h, markdownSpace as k } from "../../micromark-util-character/index.js";
|
|
3
|
+
import { blankLine as f } from "./blank-line.js";
|
|
4
|
+
import { thematicBreak as d } from "./thematic-break.js";
|
|
5
|
+
const z = {
|
|
6
|
+
continuation: {
|
|
7
|
+
tokenize: y
|
|
8
|
+
},
|
|
9
|
+
exit: v,
|
|
10
|
+
name: "list",
|
|
11
|
+
tokenize: B
|
|
12
|
+
}, P = {
|
|
13
|
+
partial: !0,
|
|
14
|
+
tokenize: W
|
|
15
|
+
}, L = {
|
|
16
|
+
partial: !0,
|
|
17
|
+
tokenize: g
|
|
18
|
+
};
|
|
19
|
+
function B(n, u, r) {
|
|
20
|
+
const t = this, l = t.events[t.events.length - 1];
|
|
21
|
+
let a = l && l[1].type === "linePrefix" ? l[2].sliceSerialize(l[1], !0).length : 0, i = 0;
|
|
22
|
+
return s;
|
|
23
|
+
function s(e) {
|
|
24
|
+
const o = t.containerState.type || (e === 42 || e === 43 || e === 45 ? "listUnordered" : "listOrdered");
|
|
25
|
+
if (o === "listUnordered" ? !t.containerState.marker || e === t.containerState.marker : h(e)) {
|
|
26
|
+
if (t.containerState.type || (t.containerState.type = o, n.enter(o, {
|
|
27
|
+
_container: !0
|
|
28
|
+
})), o === "listUnordered")
|
|
29
|
+
return n.enter("listItemPrefix"), e === 42 || e === 45 ? n.check(d, r, m)(e) : m(e);
|
|
30
|
+
if (!t.interrupt || e === 49)
|
|
31
|
+
return n.enter("listItemPrefix"), n.enter("listItemValue"), p(e);
|
|
32
|
+
}
|
|
33
|
+
return r(e);
|
|
34
|
+
}
|
|
35
|
+
function p(e) {
|
|
36
|
+
return h(e) && ++i < 10 ? (n.consume(e), p) : (!t.interrupt || i < 2) && (t.containerState.marker ? e === t.containerState.marker : e === 41 || e === 46) ? (n.exit("listItemValue"), m(e)) : r(e);
|
|
37
|
+
}
|
|
38
|
+
function m(e) {
|
|
39
|
+
return n.enter("listItemMarker"), n.consume(e), n.exit("listItemMarker"), t.containerState.marker = t.containerState.marker || e, n.check(
|
|
40
|
+
f,
|
|
41
|
+
// Can’t be empty when interrupting.
|
|
42
|
+
t.interrupt ? r : I,
|
|
43
|
+
n.attempt(P, S, x)
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
function I(e) {
|
|
47
|
+
return t.containerState.initialBlankLine = !0, a++, S(e);
|
|
48
|
+
}
|
|
49
|
+
function x(e) {
|
|
50
|
+
return k(e) ? (n.enter("listItemPrefixWhitespace"), n.consume(e), n.exit("listItemPrefixWhitespace"), S) : r(e);
|
|
51
|
+
}
|
|
52
|
+
function S(e) {
|
|
53
|
+
return t.containerState.size = a + t.sliceSerialize(n.exit("listItemPrefix"), !0).length, u(e);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
function y(n, u, r) {
|
|
57
|
+
const t = this;
|
|
58
|
+
return t.containerState._closeFlow = void 0, n.check(f, l, a);
|
|
59
|
+
function l(s) {
|
|
60
|
+
return t.containerState.furtherBlankLines = t.containerState.furtherBlankLines || t.containerState.initialBlankLine, c(n, u, "listItemIndent", t.containerState.size + 1)(s);
|
|
61
|
+
}
|
|
62
|
+
function a(s) {
|
|
63
|
+
return t.containerState.furtherBlankLines || !k(s) ? (t.containerState.furtherBlankLines = void 0, t.containerState.initialBlankLine = void 0, i(s)) : (t.containerState.furtherBlankLines = void 0, t.containerState.initialBlankLine = void 0, n.attempt(L, u, i)(s));
|
|
64
|
+
}
|
|
65
|
+
function i(s) {
|
|
66
|
+
return t.containerState._closeFlow = !0, t.interrupt = void 0, c(n, n.attempt(z, u, r), "linePrefix", t.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(s);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
function g(n, u, r) {
|
|
70
|
+
const t = this;
|
|
71
|
+
return c(n, l, "listItemIndent", t.containerState.size + 1);
|
|
72
|
+
function l(a) {
|
|
73
|
+
const i = t.events[t.events.length - 1];
|
|
74
|
+
return i && i[1].type === "listItemIndent" && i[2].sliceSerialize(i[1], !0).length === t.containerState.size ? u(a) : r(a);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
function v(n) {
|
|
78
|
+
n.exit(this.containerState.type);
|
|
79
|
+
}
|
|
80
|
+
function W(n, u, r) {
|
|
81
|
+
const t = this;
|
|
82
|
+
return c(n, l, "listItemPrefixWhitespace", t.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
|
|
83
|
+
function l(a) {
|
|
84
|
+
const i = t.events[t.events.length - 1];
|
|
85
|
+
return !k(a) && i && i[1].type === "listItemPrefixWhitespace" ? u(a) : r(a);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
export {
|
|
89
|
+
z as list
|
|
90
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const l = {
|
|
2
|
+
partial: !0,
|
|
3
|
+
tokenize: a
|
|
4
|
+
};
|
|
5
|
+
function a(t, e, i) {
|
|
6
|
+
const r = this;
|
|
7
|
+
return o;
|
|
8
|
+
function o(n) {
|
|
9
|
+
return n === null ? i(n) : (t.enter("lineEnding"), t.consume(n), t.exit("lineEnding"), u);
|
|
10
|
+
}
|
|
11
|
+
function u(n) {
|
|
12
|
+
return r.parser.lazy[r.now().line] ? i(n) : e(n);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
l as nonLazyContinuation
|
|
17
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { factorySpace as f } from "../../micromark-factory-space/index.js";
|
|
2
|
+
import { markdownSpace as g, markdownLineEnding as m } from "../../micromark-util-character/index.js";
|
|
3
|
+
import { EditMap as y } from "../../micromark-util-edit-map/index.js";
|
|
4
|
+
const H = {
|
|
5
|
+
name: "setextUnderline",
|
|
6
|
+
resolveTo: h,
|
|
7
|
+
tokenize: s
|
|
8
|
+
};
|
|
9
|
+
function h(e, p) {
|
|
10
|
+
const i = new y();
|
|
11
|
+
let t = e.length, r, d, a;
|
|
12
|
+
for (; t--; )
|
|
13
|
+
if (e[t][0] === "enter") {
|
|
14
|
+
if (e[t][1].type === "content") {
|
|
15
|
+
r = t;
|
|
16
|
+
break;
|
|
17
|
+
}
|
|
18
|
+
e[t][1].type === "paragraph" && (d = t);
|
|
19
|
+
} else
|
|
20
|
+
e[t][1].type === "content" && i.add(t, 1, []), !a && e[t][1].type === "definition" && (a = t);
|
|
21
|
+
const l = {
|
|
22
|
+
type: "setextHeading",
|
|
23
|
+
start: {
|
|
24
|
+
...e[r][1].start
|
|
25
|
+
},
|
|
26
|
+
end: {
|
|
27
|
+
...e[e.length - 1][1].end
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
return e[d][1].type = "setextHeadingText", a ? (i.add(d, 0, [["enter", l, p]]), i.add(a + 1, 0, [["exit", e[r][1], p]]), e[r][1].end = {
|
|
31
|
+
...e[a][1].end
|
|
32
|
+
}) : e[r][1] = l, i.add(e.length, 0, [["exit", l, p]]), i.consume(e), e;
|
|
33
|
+
}
|
|
34
|
+
function s(e, p, i) {
|
|
35
|
+
const t = this;
|
|
36
|
+
let r;
|
|
37
|
+
return d;
|
|
38
|
+
function d(n) {
|
|
39
|
+
let o = t.events.length, x;
|
|
40
|
+
for (; o--; )
|
|
41
|
+
if (t.events[o][1].type !== "lineEnding" && t.events[o][1].type !== "linePrefix" && t.events[o][1].type !== "content") {
|
|
42
|
+
x = t.events[o][1].type === "paragraph";
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
return !t.parser.lazy[t.now().line] && (t.interrupt || x) ? (e.enter("setextHeadingLine"), r = n, a(n)) : i(n);
|
|
46
|
+
}
|
|
47
|
+
function a(n) {
|
|
48
|
+
return e.enter("setextHeadingLineSequence"), l(n);
|
|
49
|
+
}
|
|
50
|
+
function l(n) {
|
|
51
|
+
return n === r ? (e.consume(n), l) : (e.exit("setextHeadingLineSequence"), g(n) ? f(e, u, "lineSuffix")(n) : u(n));
|
|
52
|
+
}
|
|
53
|
+
function u(n) {
|
|
54
|
+
return n === null || m(n) ? (e.exit("setextHeadingLine"), p(n)) : i(n);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
export {
|
|
58
|
+
H as setextUnderline
|
|
59
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { factorySpace as o } from "../../micromark-factory-space/index.js";
|
|
2
|
+
import { markdownSpace as B, markdownLineEnding as c } from "../../micromark-util-character/index.js";
|
|
3
|
+
const q = {
|
|
4
|
+
name: "thematicBreak",
|
|
5
|
+
tokenize: p
|
|
6
|
+
};
|
|
7
|
+
function p(t, u, m) {
|
|
8
|
+
let a = 0, e;
|
|
9
|
+
return k;
|
|
10
|
+
function k(r) {
|
|
11
|
+
return t.enter("thematicBreak"), h(r);
|
|
12
|
+
}
|
|
13
|
+
function h(r) {
|
|
14
|
+
return e = r, n(r);
|
|
15
|
+
}
|
|
16
|
+
function n(r) {
|
|
17
|
+
return r === e ? (t.enter("thematicBreakSequence"), i(r)) : a >= 3 && (r === null || c(r)) ? (t.exit("thematicBreak"), u(r)) : m(r);
|
|
18
|
+
}
|
|
19
|
+
function i(r) {
|
|
20
|
+
return r === e ? (t.consume(r), a++, i) : (t.exit("thematicBreakSequence"), B(r) ? o(t, n, "whitespace")(r) : n(r));
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
q as thematicBreak
|
|
25
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { combineExtensions as m } from "../micromark-util-combine-extensions/index.js";
|
|
2
|
+
import { gfmAutolinkLiteral as r } from "../micromark-extension-gfm-autolink-literal/lib/syntax.js";
|
|
3
|
+
import { gfmFootnote as t } from "../micromark-extension-gfm-footnote/lib/syntax.js";
|
|
4
|
+
import { gfmStrikethrough as f } from "../micromark-extension-gfm-strikethrough/lib/syntax.js";
|
|
5
|
+
import { gfmTable as i } from "../micromark-extension-gfm-table/lib/syntax.js";
|
|
6
|
+
import { gfmTaskListItem as e } from "../micromark-extension-gfm-task-list-item/lib/syntax.js";
|
|
7
|
+
function k(o) {
|
|
8
|
+
return m([
|
|
9
|
+
r(),
|
|
10
|
+
t(),
|
|
11
|
+
f(o),
|
|
12
|
+
i(),
|
|
13
|
+
e()
|
|
14
|
+
]);
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
k as gfm
|
|
18
|
+
};
|