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,29 @@
|
|
|
1
|
+
k.peek = m;
|
|
2
|
+
function k(n, p, e, a) {
|
|
3
|
+
const o = n.referenceType, u = e.enter("imageReference");
|
|
4
|
+
let f = e.enter("label");
|
|
5
|
+
const c = e.createTracker(a);
|
|
6
|
+
let r = c.move("![");
|
|
7
|
+
const t = e.safe(n.alt, {
|
|
8
|
+
before: r,
|
|
9
|
+
after: "]",
|
|
10
|
+
...c.current()
|
|
11
|
+
});
|
|
12
|
+
r += c.move(t + "]["), f();
|
|
13
|
+
const i = e.stack;
|
|
14
|
+
e.stack = i.filter(function(s) {
|
|
15
|
+
return s !== "phrasing";
|
|
16
|
+
}), f = e.enter("reference");
|
|
17
|
+
const l = e.safe(e.associationId(n), {
|
|
18
|
+
before: r,
|
|
19
|
+
after: "]",
|
|
20
|
+
...c.current()
|
|
21
|
+
});
|
|
22
|
+
return f(), e.stack = i, u(), o === "full" || !t || t !== l ? r += c.move(l + "]") : o === "shortcut" ? r = r.slice(0, -1) : r += c.move("]"), r;
|
|
23
|
+
}
|
|
24
|
+
function m() {
|
|
25
|
+
return "!";
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
k as imageReference
|
|
29
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { checkQuote as c } from "../util/check-quote.js";
|
|
2
|
+
n.peek = v;
|
|
3
|
+
function n(o, a, t, u) {
|
|
4
|
+
const f = c(t), l = f === '"' ? "Quote" : "Apostrophe", m = t.enter("image");
|
|
5
|
+
let i = t.enter("label");
|
|
6
|
+
const e = t.createTracker(u);
|
|
7
|
+
let r = e.move("![");
|
|
8
|
+
return r += e.move(
|
|
9
|
+
t.safe(o.alt, { before: r, after: "]", ...e.current() })
|
|
10
|
+
), r += e.move("]("), i(), // If there’s no url but there is a title…
|
|
11
|
+
!o.url && o.title || // If there are control characters or whitespace.
|
|
12
|
+
/[\0- \u007F]/.test(o.url) ? (i = t.enter("destinationLiteral"), r += e.move("<"), r += e.move(
|
|
13
|
+
t.safe(o.url, { before: r, after: ">", ...e.current() })
|
|
14
|
+
), r += e.move(">")) : (i = t.enter("destinationRaw"), r += e.move(
|
|
15
|
+
t.safe(o.url, {
|
|
16
|
+
before: r,
|
|
17
|
+
after: o.title ? " " : ")",
|
|
18
|
+
...e.current()
|
|
19
|
+
})
|
|
20
|
+
)), i(), o.title && (i = t.enter(`title${l}`), r += e.move(" " + f), r += e.move(
|
|
21
|
+
t.safe(o.title, {
|
|
22
|
+
before: r,
|
|
23
|
+
after: f,
|
|
24
|
+
...e.current()
|
|
25
|
+
})
|
|
26
|
+
), r += e.move(f), i()), r += e.move(")"), m(), r;
|
|
27
|
+
}
|
|
28
|
+
function v() {
|
|
29
|
+
return "!";
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
n as image
|
|
33
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { blockquote as o } from "./blockquote.js";
|
|
2
|
+
import { hardBreak as r } from "./break.js";
|
|
3
|
+
import { code as m } from "./code.js";
|
|
4
|
+
import { definition as i } from "./definition.js";
|
|
5
|
+
import { emphasis as t } from "./emphasis.js";
|
|
6
|
+
import { heading as e } from "./heading.js";
|
|
7
|
+
import { html as p } from "./html.js";
|
|
8
|
+
import { image as f } from "./image.js";
|
|
9
|
+
import { imageReference as a } from "./image-reference.js";
|
|
10
|
+
import { inlineCode as n } from "./inline-code.js";
|
|
11
|
+
import { link as l } from "./link.js";
|
|
12
|
+
import { linkReference as h } from "./link-reference.js";
|
|
13
|
+
import { list as c } from "./list.js";
|
|
14
|
+
import { listItem as d } from "./list-item.js";
|
|
15
|
+
import { paragraph as k } from "./paragraph.js";
|
|
16
|
+
import { root as s } from "./root.js";
|
|
17
|
+
import { strong as g } from "./strong.js";
|
|
18
|
+
import { text as b } from "./text.js";
|
|
19
|
+
import { thematicBreak as x } from "./thematic-break.js";
|
|
20
|
+
const L = {
|
|
21
|
+
blockquote: o,
|
|
22
|
+
break: r,
|
|
23
|
+
code: m,
|
|
24
|
+
definition: i,
|
|
25
|
+
emphasis: t,
|
|
26
|
+
hardBreak: r,
|
|
27
|
+
heading: e,
|
|
28
|
+
html: p,
|
|
29
|
+
image: f,
|
|
30
|
+
imageReference: a,
|
|
31
|
+
inlineCode: n,
|
|
32
|
+
link: l,
|
|
33
|
+
linkReference: h,
|
|
34
|
+
list: c,
|
|
35
|
+
listItem: d,
|
|
36
|
+
paragraph: k,
|
|
37
|
+
root: s,
|
|
38
|
+
strong: g,
|
|
39
|
+
text: b,
|
|
40
|
+
thematicBreak: x
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
L as handle
|
|
44
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
u.peek = a;
|
|
2
|
+
function u(c, d, i) {
|
|
3
|
+
let e = c.value || "", n = "`", o = -1;
|
|
4
|
+
for (; new RegExp("(^|[^`])" + n + "([^`]|$)").test(e); )
|
|
5
|
+
n += "`";
|
|
6
|
+
for (/[^\n\r ]/.test(e) && (/^[\n\r ]/.test(e) && /[\n\r ]$/.test(e) || /^`|`$/.test(e)) && (e = " " + e + " "); ++o < i.unsafe.length; ) {
|
|
7
|
+
const r = i.unsafe[o], s = i.compilePattern(r);
|
|
8
|
+
if (!r.atBreak) continue;
|
|
9
|
+
let l;
|
|
10
|
+
for (; l = s.exec(e); ) {
|
|
11
|
+
let t = l.index;
|
|
12
|
+
e.charCodeAt(t) === 10 && e.charCodeAt(t - 1) === 13 && t--, e = e.slice(0, t) + " " + e.slice(l.index + 1);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
return n + e + n;
|
|
16
|
+
}
|
|
17
|
+
function a() {
|
|
18
|
+
return "`";
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
u as inlineCode
|
|
22
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
a.peek = p;
|
|
2
|
+
function a(c, v, e, u) {
|
|
3
|
+
const o = c.referenceType, k = e.enter("linkReference");
|
|
4
|
+
let t = e.enter("label");
|
|
5
|
+
const n = e.createTracker(u);
|
|
6
|
+
let r = n.move("[");
|
|
7
|
+
const f = e.containerPhrasing(c, {
|
|
8
|
+
before: r,
|
|
9
|
+
after: "]",
|
|
10
|
+
...n.current()
|
|
11
|
+
});
|
|
12
|
+
r += n.move(f + "]["), t();
|
|
13
|
+
const i = e.stack;
|
|
14
|
+
e.stack = i.filter(function(s) {
|
|
15
|
+
return s !== "phrasing";
|
|
16
|
+
}), t = e.enter("reference");
|
|
17
|
+
const l = e.safe(e.associationId(c), {
|
|
18
|
+
before: r,
|
|
19
|
+
after: "]",
|
|
20
|
+
...n.current()
|
|
21
|
+
});
|
|
22
|
+
return t(), e.stack = i, k(), o === "full" || !f || f !== l ? r += n.move(l + "]") : o === "shortcut" ? r = r.slice(0, -1) : r += n.move("]"), r;
|
|
23
|
+
}
|
|
24
|
+
function p() {
|
|
25
|
+
return "[";
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
a as linkReference
|
|
29
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { checkQuote as b } from "../util/check-quote.js";
|
|
2
|
+
import { formatLinkAsAutolink as f } from "../util/format-link-as-autolink.js";
|
|
3
|
+
p.peek = h;
|
|
4
|
+
function p(o, l, e, m) {
|
|
5
|
+
const n = b(e), v = n === '"' ? "Quote" : "Apostrophe", r = e.createTracker(m);
|
|
6
|
+
if (f(o, e)) {
|
|
7
|
+
const c = e.stack;
|
|
8
|
+
e.stack = c.filter(function(s) {
|
|
9
|
+
return s !== "phrasing";
|
|
10
|
+
});
|
|
11
|
+
const a = e.enter("autolink");
|
|
12
|
+
let u = r.move("<");
|
|
13
|
+
return u += r.move(
|
|
14
|
+
e.containerPhrasing(o, {
|
|
15
|
+
before: u,
|
|
16
|
+
after: ">",
|
|
17
|
+
...r.current()
|
|
18
|
+
})
|
|
19
|
+
), u += r.move(">"), a(), e.stack = c, u;
|
|
20
|
+
}
|
|
21
|
+
const k = e.enter("link");
|
|
22
|
+
let i = e.enter("label"), t = r.move("[");
|
|
23
|
+
return t += r.move(
|
|
24
|
+
e.containerPhrasing(o, {
|
|
25
|
+
before: t,
|
|
26
|
+
after: "](",
|
|
27
|
+
...r.current()
|
|
28
|
+
})
|
|
29
|
+
), t += r.move("]("), i(), // If there’s no url but there is a title…
|
|
30
|
+
!o.url && o.title || // If there are control characters or whitespace.
|
|
31
|
+
/[\0- \u007F]/.test(o.url) ? (i = e.enter("destinationLiteral"), t += r.move("<"), t += r.move(
|
|
32
|
+
e.safe(o.url, { before: t, after: ">", ...r.current() })
|
|
33
|
+
), t += r.move(">")) : (i = e.enter("destinationRaw"), t += r.move(
|
|
34
|
+
e.safe(o.url, {
|
|
35
|
+
before: t,
|
|
36
|
+
after: o.title ? " " : ")",
|
|
37
|
+
...r.current()
|
|
38
|
+
})
|
|
39
|
+
)), i(), o.title && (i = e.enter(`title${v}`), t += r.move(" " + n), t += r.move(
|
|
40
|
+
e.safe(o.title, {
|
|
41
|
+
before: t,
|
|
42
|
+
after: n,
|
|
43
|
+
...r.current()
|
|
44
|
+
})
|
|
45
|
+
), t += r.move(n), i()), t += r.move(")"), k(), t;
|
|
46
|
+
}
|
|
47
|
+
function h(o, l, e) {
|
|
48
|
+
return f(o, e) ? "<" : "[";
|
|
49
|
+
}
|
|
50
|
+
export {
|
|
51
|
+
p as link
|
|
52
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { checkBullet as I } from "../util/check-bullet.js";
|
|
2
|
+
import { checkListItemIndent as k } from "../util/check-list-item-indent.js";
|
|
3
|
+
function b(l, e, t, m) {
|
|
4
|
+
const c = k(t);
|
|
5
|
+
let r = t.bulletCurrent || I(t);
|
|
6
|
+
e && e.type === "list" && e.ordered && (r = (typeof e.start == "number" && e.start > -1 ? e.start : 1) + (t.options.incrementListMarker === !1 ? 0 : e.children.indexOf(l)) + r);
|
|
7
|
+
let i = r.length + 1;
|
|
8
|
+
(c === "tab" || c === "mixed" && (e && e.type === "list" && e.spread || l.spread)) && (i = Math.ceil(i / 4) * 4);
|
|
9
|
+
const n = t.createTracker(m);
|
|
10
|
+
n.move(r + " ".repeat(i - r.length)), n.shift(i);
|
|
11
|
+
const u = t.enter("listItem"), f = t.indentLines(
|
|
12
|
+
t.containerFlow(l, n.current()),
|
|
13
|
+
d
|
|
14
|
+
);
|
|
15
|
+
return u(), f;
|
|
16
|
+
function d(o, h, s) {
|
|
17
|
+
return h ? (s ? "" : " ".repeat(i)) + o : (s ? r : r + " ".repeat(i - r.length)) + o;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
b as listItem
|
|
22
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { checkBullet as o } from "../util/check-bullet.js";
|
|
2
|
+
import { checkBulletOther as b } from "../util/check-bullet-other.js";
|
|
3
|
+
import { checkBulletOrdered as x } from "../util/check-bullet-ordered.js";
|
|
4
|
+
import { checkRule as g } from "../util/check-rule.js";
|
|
5
|
+
function C(l, h, e, u) {
|
|
6
|
+
const d = e.enter("list"), k = e.bulletCurrent;
|
|
7
|
+
let r = l.ordered ? x(e) : o(e);
|
|
8
|
+
const f = l.ordered ? r === "." ? ")" : "." : b(e);
|
|
9
|
+
let n = h && e.bulletLastUsed ? r === e.bulletLastUsed : !1;
|
|
10
|
+
if (!l.ordered) {
|
|
11
|
+
const c = l.children ? l.children[0] : void 0;
|
|
12
|
+
if (
|
|
13
|
+
// Bullet could be used as a thematic break marker:
|
|
14
|
+
(r === "*" || r === "-") && // Empty first list item:
|
|
15
|
+
c && (!c.children || !c.children[0]) && // Directly in two other list items:
|
|
16
|
+
e.stack[e.stack.length - 1] === "list" && e.stack[e.stack.length - 2] === "listItem" && e.stack[e.stack.length - 3] === "list" && e.stack[e.stack.length - 4] === "listItem" && // That are each the first child.
|
|
17
|
+
e.indexStack[e.indexStack.length - 1] === 0 && e.indexStack[e.indexStack.length - 2] === 0 && e.indexStack[e.indexStack.length - 3] === 0 && (n = !0), g(e) === r && c
|
|
18
|
+
) {
|
|
19
|
+
let t = -1;
|
|
20
|
+
for (; ++t < l.children.length; ) {
|
|
21
|
+
const i = l.children[t];
|
|
22
|
+
if (i && i.type === "listItem" && i.children && i.children[0] && i.children[0].type === "thematicBreak") {
|
|
23
|
+
n = !0;
|
|
24
|
+
break;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
n && (r = f), e.bulletCurrent = r;
|
|
30
|
+
const m = e.containerFlow(l, u);
|
|
31
|
+
return e.bulletLastUsed = r, e.bulletCurrent = k, d(), m;
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
C as list
|
|
35
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { phrasing as a } from "../../../mdast-util-phrasing/lib/index.js";
|
|
2
|
+
function u(r, c, n, i) {
|
|
3
|
+
if (!r.children.some(function(s) {
|
|
4
|
+
return a(s);
|
|
5
|
+
})) return n.containerFlow(r, i);
|
|
6
|
+
const o = n.enter("phrasing"), t = n.containerPhrasing(r, i);
|
|
7
|
+
return o(), t;
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
u as root
|
|
11
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { checkStrong as s } from "../util/check-strong.js";
|
|
2
|
+
e.attention = a;
|
|
3
|
+
e.peek = u;
|
|
4
|
+
function e(t, r, n, o) {
|
|
5
|
+
const i = n.enter("phrasing"), c = n.containerPhrasing({ type: "root", children: [t] }, o);
|
|
6
|
+
return i(), c;
|
|
7
|
+
}
|
|
8
|
+
function a(t, r) {
|
|
9
|
+
return {
|
|
10
|
+
construct: "strong",
|
|
11
|
+
markers: s(r) === "*" ? ["*", "_"] : ["_", "*"],
|
|
12
|
+
sizes: [2]
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function u(t, r, n) {
|
|
16
|
+
return n.options.strong || "*";
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
e as strong
|
|
20
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { checkRuleRepetition as r } from "../util/check-rule-repetition.js";
|
|
2
|
+
import { checkRule as c } from "../util/check-rule.js";
|
|
3
|
+
function u(i, p, e) {
|
|
4
|
+
const o = (c(e) + (e.options.ruleSpaces ? " " : "")).repeat(r(e));
|
|
5
|
+
return e.options.ruleSpaces ? o.slice(0, -1) : o;
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
u as thematicBreak
|
|
9
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
function t(r) {
|
|
2
|
+
const e = r.options.bulletOrdered || ".";
|
|
3
|
+
if (e !== "." && e !== ")")
|
|
4
|
+
throw new Error(
|
|
5
|
+
"Cannot serialize items with `" + e + "` for `options.bulletOrdered`, expected `.` or `)`"
|
|
6
|
+
);
|
|
7
|
+
return e;
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
t as checkBulletOrdered
|
|
11
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { checkBullet as o } from "./check-bullet.js";
|
|
2
|
+
function n(r) {
|
|
3
|
+
const t = o(r), e = r.options.bulletOther;
|
|
4
|
+
if (!e)
|
|
5
|
+
return t === "*" ? "-" : "*";
|
|
6
|
+
if (e !== "*" && e !== "+" && e !== "-")
|
|
7
|
+
throw new Error(
|
|
8
|
+
"Cannot serialize items with `" + e + "` for `options.bulletOther`, expected `*`, `+`, or `-`"
|
|
9
|
+
);
|
|
10
|
+
if (e === t)
|
|
11
|
+
throw new Error(
|
|
12
|
+
"Expected `bullet` (`" + t + "`) and `bulletOther` (`" + e + "`) to be different"
|
|
13
|
+
);
|
|
14
|
+
return e;
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
n as checkBulletOther
|
|
18
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
function o(t) {
|
|
2
|
+
const e = t.options.bullet || "*";
|
|
3
|
+
if (e !== "*" && e !== "+" && e !== "-")
|
|
4
|
+
throw new Error(
|
|
5
|
+
"Cannot serialize items with `" + e + "` for `options.bullet`, expected `*`, `+`, or `-`"
|
|
6
|
+
);
|
|
7
|
+
return e;
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
o as checkBullet
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
function n(e) {
|
|
2
|
+
const t = e.options.listItemIndent || "one";
|
|
3
|
+
if (t !== "tab" && t !== "one" && t !== "mixed")
|
|
4
|
+
throw new Error(
|
|
5
|
+
"Cannot serialize items with `" + t + "` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`"
|
|
6
|
+
);
|
|
7
|
+
return t;
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
n as checkListItemIndent
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
function o(t) {
|
|
2
|
+
const e = t.options.ruleRepetition || 3;
|
|
3
|
+
if (e < 3)
|
|
4
|
+
throw new Error(
|
|
5
|
+
"Cannot serialize rules with repetition `" + e + "` for `options.ruleRepetition`, expected `3` or more"
|
|
6
|
+
);
|
|
7
|
+
return e;
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
o as checkRuleRepetition
|
|
11
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
function n(t, e) {
|
|
2
|
+
return !!(e.options.fences === !1 && t.value && // If there’s no info…
|
|
3
|
+
!t.lang && // And there’s a non-whitespace character…
|
|
4
|
+
/[^\n\r ]/.test(t.value) && // And the value doesn’t start or end in a blank…
|
|
5
|
+
!/^[\t ]*(?:[\n\r]|$)|(?:^|[\n\r])[\t ]*$/.test(t.value));
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
n as formatCodeAsIndented
|
|
9
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { visit as o } from "../../../unist-util-visit/lib/index.js";
|
|
2
|
+
import { toString as a } from "../../../mdast-util-to-string/lib/index.js";
|
|
3
|
+
import { EXIT as f } from "../../../unist-util-visit-parents/lib/index.js";
|
|
4
|
+
function n(t, i) {
|
|
5
|
+
let e = !1;
|
|
6
|
+
return o(t, function(r) {
|
|
7
|
+
if ("value" in r && /\r?\n|\r/.test(r.value) || r.type === "break")
|
|
8
|
+
return e = !0, f;
|
|
9
|
+
}), !!((!t.depth || t.depth < 3) && a(t) && (i.options.setext || e));
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
n as formatHeadingAsSetext
|
|
13
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { toString as l } from "../../../mdast-util-to-string/lib/index.js";
|
|
2
|
+
function a(t, i) {
|
|
3
|
+
const r = l(t);
|
|
4
|
+
return !!(!i.options.resourceLink && // If there’s a url…
|
|
5
|
+
t.url && // And there’s no title…
|
|
6
|
+
!t.title && // And the content of `node` is a single text node…
|
|
7
|
+
t.children && t.children.length === 1 && t.children[0].type === "text" && // And if the url is the same as the content…
|
|
8
|
+
(r === t.url || "mailto:" + r === t.url) && // And that starts w/ a protocol…
|
|
9
|
+
/^[a-z][+\-.a-z]+:/i.test(t.url) && // And that doesn’t contain ASCII control codes (character escapes and
|
|
10
|
+
// references don’t work), space, or angle brackets…
|
|
11
|
+
!/[\0- <>\u007F]/.test(t.url));
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
a as formatLinkAsAutolink
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
function o(e, n) {
|
|
2
|
+
return t(e, n.inConstruct, !0) && !t(e, n.notInConstruct, !1);
|
|
3
|
+
}
|
|
4
|
+
function t(e, n, u) {
|
|
5
|
+
if (typeof n == "string" && (n = [n]), !n || n.length === 0)
|
|
6
|
+
return u;
|
|
7
|
+
let r = -1;
|
|
8
|
+
for (; ++r < n.length; )
|
|
9
|
+
if (e.includes(n[r]))
|
|
10
|
+
return !0;
|
|
11
|
+
return !1;
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
o as patternInScope
|
|
15
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const f = {};
|
|
2
|
+
function l(t, o) {
|
|
3
|
+
const n = f, i = typeof n.includeImageAlt == "boolean" ? n.includeImageAlt : !0, r = typeof n.includeHtml == "boolean" ? n.includeHtml : !0;
|
|
4
|
+
return c(t, i, r);
|
|
5
|
+
}
|
|
6
|
+
function c(t, o, n) {
|
|
7
|
+
if (s(t)) {
|
|
8
|
+
if ("value" in t)
|
|
9
|
+
return t.type === "html" && !n ? "" : t.value;
|
|
10
|
+
if (o && "alt" in t && t.alt)
|
|
11
|
+
return t.alt;
|
|
12
|
+
if ("children" in t)
|
|
13
|
+
return e(t.children, o, n);
|
|
14
|
+
}
|
|
15
|
+
return Array.isArray(t) ? e(t, o, n) : "";
|
|
16
|
+
}
|
|
17
|
+
function e(t, o, n) {
|
|
18
|
+
const i = [];
|
|
19
|
+
let r = -1;
|
|
20
|
+
for (; ++r < t.length; )
|
|
21
|
+
i[r] = c(t[r], o, n);
|
|
22
|
+
return i.join("");
|
|
23
|
+
}
|
|
24
|
+
function s(t) {
|
|
25
|
+
return !!(t && typeof t == "object");
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
l as toString
|
|
29
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { resolver as f } from "./initialize/text.js";
|
|
2
|
+
import { definition as p } from "../../micromark-core-commonmark/lib/definition.js";
|
|
3
|
+
import { blockQuote as c } from "../../micromark-core-commonmark/lib/block-quote.js";
|
|
4
|
+
import { list as o } from "../../micromark-core-commonmark/lib/list.js";
|
|
5
|
+
import { codeFenced as i } from "../../micromark-core-commonmark/lib/code-fenced.js";
|
|
6
|
+
import { thematicBreak as t } from "../../micromark-core-commonmark/lib/thematic-break.js";
|
|
7
|
+
import { setextUnderline as n } from "../../micromark-core-commonmark/lib/setext-underline.js";
|
|
8
|
+
import { htmlFlow as s } from "../../micromark-core-commonmark/lib/html-flow.js";
|
|
9
|
+
import { headingAtx as d } from "../../micromark-core-commonmark/lib/heading-atx.js";
|
|
10
|
+
import { codeIndented as r } from "../../micromark-core-commonmark/lib/code-indented.js";
|
|
11
|
+
import { attention as e } from "../../micromark-core-commonmark/lib/attention.js";
|
|
12
|
+
import { characterEscape as l } from "../../micromark-core-commonmark/lib/character-escape.js";
|
|
13
|
+
import { characterReference as a } from "../../micromark-core-commonmark/lib/character-reference.js";
|
|
14
|
+
import { codeText as h } from "../../micromark-core-commonmark/lib/code-text.js";
|
|
15
|
+
import { labelEnd as k } from "../../micromark-core-commonmark/lib/label-end.js";
|
|
16
|
+
import { hardBreakEscape as u } from "../../micromark-core-commonmark/lib/hard-break-escape.js";
|
|
17
|
+
import { labelStartLink as x } from "../../micromark-core-commonmark/lib/label-start-link.js";
|
|
18
|
+
import { autolink as b } from "../../micromark-core-commonmark/lib/autolink.js";
|
|
19
|
+
import { htmlText as g } from "../../micromark-core-commonmark/lib/html-text.js";
|
|
20
|
+
import { labelStartImage as E } from "../../micromark-core-commonmark/lib/label-start-image.js";
|
|
21
|
+
import { lineEnding as m } from "../../micromark-core-commonmark/lib/line-ending.js";
|
|
22
|
+
const J = {
|
|
23
|
+
42: o,
|
|
24
|
+
43: o,
|
|
25
|
+
45: o,
|
|
26
|
+
48: o,
|
|
27
|
+
49: o,
|
|
28
|
+
50: o,
|
|
29
|
+
51: o,
|
|
30
|
+
52: o,
|
|
31
|
+
53: o,
|
|
32
|
+
54: o,
|
|
33
|
+
55: o,
|
|
34
|
+
56: o,
|
|
35
|
+
57: o,
|
|
36
|
+
62: c
|
|
37
|
+
}, K = {
|
|
38
|
+
91: p
|
|
39
|
+
}, N = {
|
|
40
|
+
[-2]: r,
|
|
41
|
+
[-1]: r,
|
|
42
|
+
32: r
|
|
43
|
+
}, O = {
|
|
44
|
+
35: d,
|
|
45
|
+
42: t,
|
|
46
|
+
45: [n, t],
|
|
47
|
+
60: s,
|
|
48
|
+
61: n,
|
|
49
|
+
95: t,
|
|
50
|
+
96: i,
|
|
51
|
+
126: i
|
|
52
|
+
}, P = {
|
|
53
|
+
38: a,
|
|
54
|
+
92: l
|
|
55
|
+
}, V = {
|
|
56
|
+
[-5]: m,
|
|
57
|
+
[-4]: m,
|
|
58
|
+
[-3]: m,
|
|
59
|
+
33: E,
|
|
60
|
+
38: a,
|
|
61
|
+
42: e,
|
|
62
|
+
60: [b, g],
|
|
63
|
+
91: x,
|
|
64
|
+
92: [u, l],
|
|
65
|
+
93: k,
|
|
66
|
+
95: e,
|
|
67
|
+
96: h
|
|
68
|
+
}, W = {
|
|
69
|
+
null: [e, f]
|
|
70
|
+
}, X = {
|
|
71
|
+
null: [42, 95]
|
|
72
|
+
}, Y = {
|
|
73
|
+
null: []
|
|
74
|
+
};
|
|
75
|
+
export {
|
|
76
|
+
X as attentionMarkers,
|
|
77
|
+
K as contentInitial,
|
|
78
|
+
Y as disable,
|
|
79
|
+
J as document,
|
|
80
|
+
O as flow,
|
|
81
|
+
N as flowInitial,
|
|
82
|
+
W as insideSpan,
|
|
83
|
+
P as string,
|
|
84
|
+
V as text
|
|
85
|
+
};
|