impact-nova 3.0.0-alpha.0 → 3.0.0-alpha.10
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/README.md +1 -1
- 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.types.d.ts +5 -0
- package/dist/components/data/ag-grid-react/cell-renderers/cell-renderer-utils.js +12 -10
- package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.js +56 -42
- package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.js +48 -45
- package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.js +31 -33
- package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.d.ts +8 -0
- package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +57 -42
- package/dist/components/data/ag-grid-react/cell-renderers/types.d.ts +4 -0
- package/dist/components/data/ag-grid-react/editable-utils.d.ts +9 -1
- package/dist/components/data/ag-grid-react/editable-utils.js +46 -41
- package/dist/components/data/ag-grid-react/headers/header-search-input.js +203 -199
- package/dist/components/data/ag-grid-react/index.d.ts +1 -1
- package/dist/components/data/ag-grid-react/index.js +115 -111
- package/dist/components/data/expandable-list-item/index.d.ts +2 -0
- package/dist/components/data/expandable-list-item/index.js +20 -16
- package/dist/components/data/expandable-list-item/product-card-hero.d.ts +15 -0
- package/dist/components/data/expandable-list-item/product-card-iris-insight-trigger.d.ts +8 -0
- package/dist/components/data/expandable-list-item/product-card-iris-insight-trigger.js +41 -0
- package/dist/components/data/expandable-list-item/product-card-metrics-toggle.d.ts +13 -0
- package/dist/components/data/expandable-list-item/product-card-metrics-toggle.js +27 -0
- package/dist/components/data/expandable-list-item/sku-picker-chrome.d.ts +40 -0
- package/dist/components/data/expandable-list-item/sku-picker-chrome.js +150 -0
- package/dist/components/data/expandable-list-item/useServerSkuInfinitePages.d.ts +2 -1
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.catalog.d.ts +5 -4
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.sku-picker.d.ts +3 -2
- package/dist/components/data-display/chart/chart-scatter3d.d.ts +39 -0
- package/dist/components/data-display/chart/chart-scatter3d.js +180 -0
- package/dist/components/data-display/chart/chart.js +125 -112
- package/dist/components/data-display/chart/chart.utils.js +122 -92
- package/dist/components/data-display/stereo-scatter/index.d.ts +2 -0
- package/dist/components/data-display/stereo-scatter/index.js +10 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-frame.d.ts +41 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-frame.js +178 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-theme.d.ts +14 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-theme.js +29 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-wedges.d.ts +23 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-wedges.js +80 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine.d.ts +120 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine.js +519 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-math.d.ts +64 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-math.js +129 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-model.d.ts +37 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-model.js +71 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-context.d.ts +33 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-context.js +19 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-key.d.ts +4 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-key.js +19 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-legend.d.ts +2 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-legend.js +75 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-scene.d.ts +2 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-scene.js +149 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-toolbar.d.ts +13 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-toolbar.js +93 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-tooltip.d.ts +2 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-tooltip.js +62 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-viewport.d.ts +3 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-viewport.js +41 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.d.ts +12 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.js +107 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.stories-data.d.ts +11 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.types.d.ts +69 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.variants.d.ts +13 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.variants.js +42 -0
- package/dist/components/feedback/tooltip/button-icon-tooltip.d.ts +6 -1
- package/dist/components/feedback/tooltip/button-icon-tooltip.js +22 -17
- package/dist/components/feedback/tooltip/use-overflow-tooltip.js +44 -36
- package/dist/components/flows/iris-chat/IrisChatComposerVoiceCapture.d.ts +5 -0
- package/dist/components/flows/iris-chat/IrisChatComposerVoiceCapture.js +73 -0
- package/dist/components/flows/iris-chat/IrisChatHeaderWindowSizeButton.d.ts +5 -0
- package/dist/components/flows/iris-chat/IrisChatHeaderWindowSizeButton.js +40 -0
- package/dist/components/flows/iris-chat/IrisChatVoiceWaveform.d.ts +3 -0
- package/dist/components/flows/iris-chat/IrisChatVoiceWaveform.js +25 -0
- package/dist/components/flows/iris-chat/IrisChatWindowSnapMenu.d.ts +4 -0
- package/dist/components/flows/iris-chat/IrisChatWindowSnapMenu.js +99 -0
- package/dist/components/flows/iris-chat/index.d.ts +3 -1
- package/dist/components/flows/iris-chat/index.js +58 -53
- package/dist/components/flows/iris-chat/iris-chat-artifact.js +46 -36
- package/dist/components/flows/iris-chat/iris-chat-chrome.d.ts +39 -0
- package/dist/components/flows/iris-chat/iris-chat-chrome.js +311 -0
- package/dist/components/flows/iris-chat/iris-chat-close-animation.d.ts +12 -0
- package/dist/components/flows/iris-chat/iris-chat-close-animation.js +21 -0
- package/dist/components/flows/iris-chat/iris-chat-composer.js +266 -238
- package/dist/components/flows/iris-chat/iris-chat-context.d.ts +16 -0
- package/dist/components/flows/iris-chat/iris-chat-context.js +14 -10
- package/dist/components/flows/iris-chat/iris-chat-copy-feedback.d.ts +4 -0
- package/dist/components/flows/iris-chat/iris-chat-copy-feedback.js +16 -0
- package/dist/components/flows/iris-chat/iris-chat-frame.d.ts +31 -0
- package/dist/components/flows/iris-chat/iris-chat-frame.js +79 -0
- package/dist/components/flows/iris-chat/iris-chat-icons.d.ts +1 -0
- package/dist/components/flows/iris-chat/iris-chat-icons.js +28 -15
- package/dist/components/flows/iris-chat/iris-chat-launch-animation.d.ts +11 -0
- package/dist/components/flows/iris-chat/iris-chat-launch-animation.js +35 -0
- package/dist/components/flows/iris-chat/iris-chat-markdown.js +82 -42
- package/dist/components/flows/iris-chat/iris-chat-menu.js +149 -117
- package/dist/components/flows/iris-chat/iris-chat-snap-presets.d.ts +4 -0
- package/dist/components/flows/iris-chat/iris-chat-snap-presets.js +63 -0
- package/dist/components/flows/iris-chat/iris-chat-speech.d.ts +52 -0
- package/dist/components/flows/iris-chat/iris-chat-speech.js +121 -0
- package/dist/components/flows/iris-chat/iris-chat-thread.d.ts +4 -0
- package/dist/components/flows/iris-chat/iris-chat-thread.js +289 -231
- package/dist/components/flows/iris-chat/iris-chat-window-chrome.d.ts +30 -0
- package/dist/components/flows/iris-chat/iris-chat-window-chrome.js +34 -0
- package/dist/components/flows/iris-chat/iris-chat-window-geometry-context.d.ts +14 -0
- package/dist/components/flows/iris-chat/iris-chat-window-geometry-context.js +15 -0
- package/dist/components/flows/iris-chat/iris-chat-window-geometry.d.ts +12 -0
- package/dist/components/flows/iris-chat/iris-chat-window-geometry.js +113 -0
- package/dist/components/flows/iris-chat/iris-chat-window-handles.d.ts +6 -0
- package/dist/components/flows/iris-chat/iris-chat-window-handles.js +50 -0
- package/dist/components/flows/iris-chat/iris-chat-window-shell.d.ts +8 -0
- package/dist/components/flows/iris-chat/iris-chat-window-shell.js +37 -0
- package/dist/components/flows/iris-chat/iris-chat.d.ts +3 -39
- package/dist/components/flows/iris-chat/iris-chat.js +22 -330
- package/dist/components/flows/iris-chat/iris-chat.types.d.ts +20 -0
- package/dist/components/flows/iris-chat/iris-chat.variants.d.ts +4 -3
- package/dist/components/flows/iris-chat/iris-chat.variants.js +46 -23
- package/dist/components/flows/iris-chat/use-iris-chat-root.d.ts +29 -0
- package/dist/components/flows/iris-chat/use-iris-chat-root.js +167 -0
- package/dist/components/forms/choice-card/choice-card-percent.js +82 -51
- package/dist/components/forms/choice-card/choice-card.d.ts +1 -0
- package/dist/components/forms/choice-card/choice-card.js +196 -199
- package/dist/components/forms/choice-card/choice-card.variants.js +3 -3
- package/dist/components/forms/input/input.js +5 -5
- package/dist/components/forms/select/components/SelectMenuPanel.js +15 -15
- package/dist/components/forms/select/components/SelectTriggerValue.js +6 -6
- package/dist/components/layout/header/header.js +1 -0
- package/dist/components/layout/horizontal-scroller/horizontal-scroller-mask.d.ts +3 -0
- package/dist/components/layout/horizontal-scroller/horizontal-scroller-mask.js +12 -0
- package/dist/components/layout/horizontal-scroller/horizontal-scroller.js +181 -125
- package/dist/components/layout/horizontal-scroller/horizontal-scroller.types.d.ts +2 -0
- package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.d.ts +3 -1
- package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.js +77 -67
- package/dist/components/primitives/button/button.variants.js +1 -1
- package/dist/components/primitives/iris/iris-insight-truncated-text.d.ts +3 -0
- package/dist/components/primitives/iris/iris-insight-truncated-text.js +33 -0
- package/dist/components/primitives/iris/iris.d.ts +3 -1
- package/dist/components/primitives/iris/iris.js +76 -84
- package/dist/components/primitives/iris/iris.types.d.ts +9 -0
- package/dist/components/primitives/stepper/internals/step-model.d.ts +1 -1
- package/dist/components/primitives/stepper/internals/step-model.js +5 -5
- package/dist/components/primitives/stepper/internals/stepper-compact.js +13 -13
- package/dist/components/primitives/stepper/internals/stepper-pipeline.js +6 -6
- package/dist/components/primitives/stepper/internals/stepper-rail.js +15 -15
- package/dist/components/primitives/stepper/internals/stepper-summary.js +7 -7
- package/dist/components/primitives/stepper/internals/stepper-track.js +2 -2
- package/dist/components/primitives/stepper/stepper.js +92 -91
- package/dist/components/primitives/stepper/stepper.types.d.ts +2 -0
- package/dist/form-react/Fields/SelectField.js +66 -57
- package/dist/form-react/Fields/VirtualizedListField.d.ts +3 -0
- package/dist/form-react/Fields/VirtualizedListField.js +223 -0
- package/dist/form-react/fields.d.ts +1 -0
- package/dist/form-react/fields.js +28 -26
- package/dist/form-react/index.d.ts +1 -1
- package/dist/form-react/registry/defaultFieldRegistrations.d.ts +1 -1
- package/dist/form-react/registry/defaultFieldRegistrations.js +13 -12
- package/dist/form-react/types/fields.types.d.ts +48 -1
- package/dist/form-react/types/fieldsOutput.types.d.ts +4 -1
- package/dist/form-react/types/reactHookForm.types.d.ts +18 -1
- package/dist/form-react/utils/fieldDefaults.utils.js +1 -1
- package/dist/i18n/defaultMessages.d.ts +45 -0
- package/dist/i18n/defaultMessages.js +58 -14
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/locales/de.js +44 -0
- package/dist/i18n/locales/es.js +44 -0
- package/dist/i18n/locales/hi.js +44 -0
- package/dist/i18n/locales/kn.js +44 -0
- package/dist/impact-nova-components.css +195 -8
- package/dist/impact-nova.css +1 -1
- package/dist/index.js +356 -352
- package/dist/lib/alphabetical-sort.d.ts +3 -0
- package/dist/lib/alphabetical-sort.js +13 -0
- package/dist/lib/overflow/is-text-overflowing.js +24 -6
- 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/package.json +8 -2
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
import { jsx as t, jsxs as p, Fragment as P } from "react/jsx-runtime";
|
|
2
|
+
import * as g from "react";
|
|
3
|
+
import { Slot as N } from "@radix-ui/react-slot";
|
|
4
|
+
import { Back as y, Cross as k, Draw as T } from "impact-nova-icons";
|
|
5
|
+
import { Popover as z, PopoverTrigger as W, PopoverContent as D, PopoverHeader as R, PopoverTitle as F, PopoverBody as O } from "../../feedback/popover/popover.js";
|
|
6
|
+
import { ButtonIconTooltip as G } from "../../feedback/tooltip/button-icon-tooltip.js";
|
|
7
|
+
import { Button as M } from "../../primitives/button/button.js";
|
|
8
|
+
import { IrisButton as S } from "../../primitives/iris/iris.js";
|
|
9
|
+
import { IrisAlanGradientIcon as v } from "../../primitives/iris/iris-alan-gradient-icon.js";
|
|
10
|
+
import { useImpactNovaI18n as u } from "../../../i18n/use-impact-nova-i18n.js";
|
|
11
|
+
import { useComposedRefs as H } from "../../../lib/compose-refs.js";
|
|
12
|
+
import { createComponent as l } from "../../../lib/primitives/create-component.js";
|
|
13
|
+
import { cn as m } from "../../../lib/utils.js";
|
|
14
|
+
import { IrisChatHeaderWindowSizeButton as L } from "./IrisChatHeaderWindowSizeButton.js";
|
|
15
|
+
import { useIrisChat as C, useIrisChatOptional as j } from "./iris-chat-context.js";
|
|
16
|
+
import { IrisChatHamburgerIcon as V } from "./iris-chat-icons.js";
|
|
17
|
+
import { useIrisChatWindowGeometryOptional as q, IrisChatWindowGeometryProvider as A } from "./iris-chat-window-geometry-context.js";
|
|
18
|
+
import { IrisChatWindowShell as E } from "./iris-chat-window-shell.js";
|
|
19
|
+
import { useIrisChatWindowGeometry as J } from "./iris-chat-window-geometry.js";
|
|
20
|
+
import { irisChatHeaderVariants as K, irisChatPanelVariants as Q } from "./iris-chat.variants.js";
|
|
21
|
+
import { readIrisChatHorizontalPaddingClass as x, readIrisChatDisclaimerPaddingClass as U } from "./iris-chat-window-chrome.js";
|
|
22
|
+
const Ce = l(
|
|
23
|
+
"IrisChatPanel",
|
|
24
|
+
({ className: i, hidden: r, children: a, ...n }, o) => {
|
|
25
|
+
const e = C(), s = r ?? !e.open, h = J({
|
|
26
|
+
frame: e.frame,
|
|
27
|
+
commitFrame: e.commitFrame,
|
|
28
|
+
resetFrame: e.resetFrame
|
|
29
|
+
}), c = H(o, h.panelRef, e.registerPanelNode);
|
|
30
|
+
return s ? null : e.isWindowPlacement ? /* @__PURE__ */ t(A, { value: h.geometry, children: /* @__PURE__ */ t(
|
|
31
|
+
E,
|
|
32
|
+
{
|
|
33
|
+
panelRef: c,
|
|
34
|
+
isClosing: e.isClosing,
|
|
35
|
+
isOpening: e.isOpening,
|
|
36
|
+
className: i,
|
|
37
|
+
children: a
|
|
38
|
+
}
|
|
39
|
+
) }) : /* @__PURE__ */ t(
|
|
40
|
+
"div",
|
|
41
|
+
{
|
|
42
|
+
ref: o,
|
|
43
|
+
"data-component": "iris-chat-panel",
|
|
44
|
+
"data-placement": e.placement,
|
|
45
|
+
className: m(Q({ placement: e.placement }), i),
|
|
46
|
+
...n,
|
|
47
|
+
children: a
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
), fe = l(
|
|
52
|
+
"IrisChatHeader",
|
|
53
|
+
({ className: i, onPointerDown: r, onDoubleClick: a, ...n }, o) => {
|
|
54
|
+
const e = q();
|
|
55
|
+
return /* @__PURE__ */ t(
|
|
56
|
+
"header",
|
|
57
|
+
{
|
|
58
|
+
ref: o,
|
|
59
|
+
"data-component": "iris-chat-header",
|
|
60
|
+
"aria-grabbed": e?.isDragging ? !0 : void 0,
|
|
61
|
+
className: m(
|
|
62
|
+
K(),
|
|
63
|
+
e ? "cursor-grab active:cursor-grabbing" : void 0,
|
|
64
|
+
i
|
|
65
|
+
),
|
|
66
|
+
onPointerDown: (s) => {
|
|
67
|
+
e?.onHeaderPointerDown(s), r?.(s);
|
|
68
|
+
},
|
|
69
|
+
onDoubleClick: (s) => {
|
|
70
|
+
e?.onHeaderDoubleClick(s), a?.(s);
|
|
71
|
+
},
|
|
72
|
+
...n
|
|
73
|
+
}
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
), Ie = l("IrisChatHeaderLeading", ({ className: i, ...r }, a) => /* @__PURE__ */ t(
|
|
77
|
+
"div",
|
|
78
|
+
{
|
|
79
|
+
ref: a,
|
|
80
|
+
"data-component": "iris-chat-header-leading",
|
|
81
|
+
className: m("flex min-w-0 items-center gap-2", i),
|
|
82
|
+
...r
|
|
83
|
+
}
|
|
84
|
+
)), ge = l("IrisChatHeaderTrailing", ({ className: i, ...r }, a) => /* @__PURE__ */ t(
|
|
85
|
+
"div",
|
|
86
|
+
{
|
|
87
|
+
ref: a,
|
|
88
|
+
"data-component": "iris-chat-header-trailing",
|
|
89
|
+
className: m("flex shrink-0 items-center gap-2", i),
|
|
90
|
+
...r
|
|
91
|
+
}
|
|
92
|
+
)), we = l(
|
|
93
|
+
"IrisChatHeaderTitle",
|
|
94
|
+
({ className: i, showBrand: r = !1, children: a, ...n }, o) => {
|
|
95
|
+
const { t: e } = u();
|
|
96
|
+
return /* @__PURE__ */ p("div", { className: "flex min-w-0 items-center gap-1", children: [
|
|
97
|
+
r ? /* @__PURE__ */ t(v, { size: 18 }) : null,
|
|
98
|
+
/* @__PURE__ */ t(
|
|
99
|
+
"h2",
|
|
100
|
+
{
|
|
101
|
+
ref: o,
|
|
102
|
+
"data-component": "iris-chat-header-title",
|
|
103
|
+
className: m("truncate text-sm font-semibold leading-5 text-content", i),
|
|
104
|
+
...n,
|
|
105
|
+
children: a ?? e("irisChat.askIris")
|
|
106
|
+
}
|
|
107
|
+
)
|
|
108
|
+
] });
|
|
109
|
+
}
|
|
110
|
+
), I = l(
|
|
111
|
+
"IrisChatIconButton",
|
|
112
|
+
({ className: i, label: r, children: a, type: n = "button", variant: o = "secondary", disabled: e, ...s }, h) => /* @__PURE__ */ t(G, { label: r, disabled: e, children: /* @__PURE__ */ t(
|
|
113
|
+
M,
|
|
114
|
+
{
|
|
115
|
+
ref: h,
|
|
116
|
+
type: n,
|
|
117
|
+
variant: o,
|
|
118
|
+
size: "icon",
|
|
119
|
+
"aria-label": r,
|
|
120
|
+
disabled: e,
|
|
121
|
+
"data-component": "iris-chat-icon-button",
|
|
122
|
+
className: m(
|
|
123
|
+
"text-content",
|
|
124
|
+
o === "secondary" ? "rounded-full" : "rounded-lg",
|
|
125
|
+
i
|
|
126
|
+
),
|
|
127
|
+
...s,
|
|
128
|
+
children: a
|
|
129
|
+
}
|
|
130
|
+
) })
|
|
131
|
+
), be = l("IrisChatHeaderMenuButton", ({ label: i, ...r }, a) => {
|
|
132
|
+
const { t: n } = u();
|
|
133
|
+
return /* @__PURE__ */ t(I, { ref: a, variant: "ghost", label: i ?? n("irisChat.menu"), ...r, children: /* @__PURE__ */ t(V, { size: 16 }) });
|
|
134
|
+
}), ve = l("IrisChatHeaderBackButton", ({ label: i, ...r }, a) => {
|
|
135
|
+
const { t: n } = u();
|
|
136
|
+
return /* @__PURE__ */ t(I, { ref: a, variant: "ghost", label: i ?? n("irisChat.back"), ...r, children: /* @__PURE__ */ t(y, { size: 16 }) });
|
|
137
|
+
}), He = l("IrisChatHeaderNewChatButton", ({ label: i, ...r }, a) => {
|
|
138
|
+
const { t: n } = u();
|
|
139
|
+
return /* @__PURE__ */ t(I, { ref: a, label: i ?? n("irisChat.newChat"), ...r, children: /* @__PURE__ */ t(T, { size: 16 }) });
|
|
140
|
+
}), xe = L, Be = l("IrisChatHeaderCloseButton", ({ label: i, onClick: r, ...a }, n) => {
|
|
141
|
+
const { t: o } = u(), e = C();
|
|
142
|
+
return /* @__PURE__ */ t(
|
|
143
|
+
I,
|
|
144
|
+
{
|
|
145
|
+
ref: n,
|
|
146
|
+
label: i ?? o("aria.close"),
|
|
147
|
+
onClick: (s) => {
|
|
148
|
+
e.requestClose(), r?.(s);
|
|
149
|
+
},
|
|
150
|
+
...a,
|
|
151
|
+
children: /* @__PURE__ */ t(k, { size: 16 })
|
|
152
|
+
}
|
|
153
|
+
);
|
|
154
|
+
}), Pe = l(
|
|
155
|
+
"IrisChatBody",
|
|
156
|
+
({ className: i, onScroll: r, ...a }, n) => {
|
|
157
|
+
const o = C(), e = g.useRef(null), s = g.useRef(!0), h = H(n, e);
|
|
158
|
+
return g.useEffect(() => {
|
|
159
|
+
const c = e.current;
|
|
160
|
+
if (!c)
|
|
161
|
+
return;
|
|
162
|
+
const d = () => {
|
|
163
|
+
s.current && (c.scrollTop = c.scrollHeight);
|
|
164
|
+
}, f = new ResizeObserver(d), w = () => {
|
|
165
|
+
f.disconnect(), f.observe(c);
|
|
166
|
+
for (const B of c.children)
|
|
167
|
+
f.observe(B);
|
|
168
|
+
}, b = new MutationObserver(() => {
|
|
169
|
+
w(), d();
|
|
170
|
+
});
|
|
171
|
+
return b.observe(c, { childList: !0, subtree: !0, characterData: !0 }), w(), d(), () => {
|
|
172
|
+
f.disconnect(), b.disconnect();
|
|
173
|
+
};
|
|
174
|
+
}, []), /* @__PURE__ */ t(
|
|
175
|
+
"div",
|
|
176
|
+
{
|
|
177
|
+
ref: h,
|
|
178
|
+
"data-component": "iris-chat-body",
|
|
179
|
+
"data-placement": o.placement,
|
|
180
|
+
className: m(
|
|
181
|
+
"flex min-h-0 min-w-0 flex-1 flex-col overflow-x-hidden overflow-y-auto overscroll-x-contain",
|
|
182
|
+
x({
|
|
183
|
+
isWindowPlacement: o.isWindowPlacement,
|
|
184
|
+
placement: o.placement
|
|
185
|
+
}),
|
|
186
|
+
i
|
|
187
|
+
),
|
|
188
|
+
onScroll: (c) => {
|
|
189
|
+
const d = c.currentTarget;
|
|
190
|
+
s.current = d.scrollHeight - d.scrollTop - d.clientHeight < 64, r?.(c);
|
|
191
|
+
},
|
|
192
|
+
...a
|
|
193
|
+
}
|
|
194
|
+
);
|
|
195
|
+
}
|
|
196
|
+
), Ne = l(
|
|
197
|
+
"IrisChatFooter",
|
|
198
|
+
({ className: i, ...r }, a) => {
|
|
199
|
+
const n = C();
|
|
200
|
+
return /* @__PURE__ */ t(
|
|
201
|
+
"div",
|
|
202
|
+
{
|
|
203
|
+
ref: a,
|
|
204
|
+
"data-component": "iris-chat-footer",
|
|
205
|
+
"data-placement": n.placement,
|
|
206
|
+
className: m(
|
|
207
|
+
"min-w-0 shrink-0 pb-2",
|
|
208
|
+
x({
|
|
209
|
+
isWindowPlacement: n.isWindowPlacement,
|
|
210
|
+
placement: n.placement
|
|
211
|
+
}),
|
|
212
|
+
i
|
|
213
|
+
),
|
|
214
|
+
...r
|
|
215
|
+
}
|
|
216
|
+
);
|
|
217
|
+
}
|
|
218
|
+
), ye = l(
|
|
219
|
+
"IrisChatDisclaimer",
|
|
220
|
+
({ className: i, href: r, children: a, ...n }, o) => {
|
|
221
|
+
const { t: e } = u(), s = C();
|
|
222
|
+
return /* @__PURE__ */ t(
|
|
223
|
+
"p",
|
|
224
|
+
{
|
|
225
|
+
ref: o,
|
|
226
|
+
"data-component": "iris-chat-disclaimer",
|
|
227
|
+
className: m(
|
|
228
|
+
"shrink-0 text-center text-xs font-medium leading-4 text-content-caption",
|
|
229
|
+
U({ isWindowPlacement: s.isWindowPlacement }),
|
|
230
|
+
i
|
|
231
|
+
),
|
|
232
|
+
...n,
|
|
233
|
+
children: a ?? /* @__PURE__ */ p(P, { children: [
|
|
234
|
+
e("irisChat.disclaimer"),
|
|
235
|
+
" ",
|
|
236
|
+
r ? /* @__PURE__ */ t("a", { href: r, className: "underline hover:text-brand", children: e("irisChat.learnMore") }) : /* @__PURE__ */ p(z, { children: [
|
|
237
|
+
/* @__PURE__ */ t(W, { asChild: !0, children: /* @__PURE__ */ t(
|
|
238
|
+
"button",
|
|
239
|
+
{
|
|
240
|
+
type: "button",
|
|
241
|
+
className: "underline hover:text-brand",
|
|
242
|
+
"data-testid": "iris-chat-learn-more",
|
|
243
|
+
children: e("irisChat.learnMore")
|
|
244
|
+
}
|
|
245
|
+
) }),
|
|
246
|
+
/* @__PURE__ */ p(
|
|
247
|
+
D,
|
|
248
|
+
{
|
|
249
|
+
align: "center",
|
|
250
|
+
side: "top",
|
|
251
|
+
className: "iris-menu-surface w-[320px] rounded-xl p-4",
|
|
252
|
+
children: [
|
|
253
|
+
/* @__PURE__ */ t(R, { className: "mb-2", children: /* @__PURE__ */ p("div", { className: "flex items-center gap-2", children: [
|
|
254
|
+
/* @__PURE__ */ t(v, { size: 18 }),
|
|
255
|
+
/* @__PURE__ */ t(F, { className: "text-sm font-semibold", children: e("irisChat.disclaimerTitle") })
|
|
256
|
+
] }) }),
|
|
257
|
+
/* @__PURE__ */ t(O, { className: "text-sm leading-5 text-content-secondary", children: e("irisChat.disclaimerBody") })
|
|
258
|
+
]
|
|
259
|
+
}
|
|
260
|
+
)
|
|
261
|
+
] })
|
|
262
|
+
] })
|
|
263
|
+
}
|
|
264
|
+
);
|
|
265
|
+
}
|
|
266
|
+
), ke = l(
|
|
267
|
+
"IrisChatTrigger",
|
|
268
|
+
({ asChild: i = !1, onClick: r, size: a = "md", shape: n = "default", className: o, ...e }, s) => {
|
|
269
|
+
const h = j(), c = (d) => {
|
|
270
|
+
h?.setOpen(!0), r?.(d);
|
|
271
|
+
};
|
|
272
|
+
return i ? /* @__PURE__ */ t(
|
|
273
|
+
N,
|
|
274
|
+
{
|
|
275
|
+
ref: s,
|
|
276
|
+
"data-component": "iris-chat-trigger",
|
|
277
|
+
className: m("pointer-events-auto", o),
|
|
278
|
+
onClick: c,
|
|
279
|
+
...e
|
|
280
|
+
}
|
|
281
|
+
) : /* @__PURE__ */ t(
|
|
282
|
+
S,
|
|
283
|
+
{
|
|
284
|
+
ref: s,
|
|
285
|
+
size: a,
|
|
286
|
+
shape: n,
|
|
287
|
+
"data-component": "iris-chat-trigger",
|
|
288
|
+
className: m("pointer-events-auto", o),
|
|
289
|
+
onClick: c,
|
|
290
|
+
...e
|
|
291
|
+
}
|
|
292
|
+
);
|
|
293
|
+
}
|
|
294
|
+
);
|
|
295
|
+
export {
|
|
296
|
+
Pe as IrisChatBody,
|
|
297
|
+
ye as IrisChatDisclaimer,
|
|
298
|
+
Ne as IrisChatFooter,
|
|
299
|
+
fe as IrisChatHeader,
|
|
300
|
+
ve as IrisChatHeaderBackButton,
|
|
301
|
+
Be as IrisChatHeaderCloseButton,
|
|
302
|
+
Ie as IrisChatHeaderLeading,
|
|
303
|
+
be as IrisChatHeaderMenuButton,
|
|
304
|
+
xe as IrisChatHeaderMinimizeButton,
|
|
305
|
+
He as IrisChatHeaderNewChatButton,
|
|
306
|
+
we as IrisChatHeaderTitle,
|
|
307
|
+
ge as IrisChatHeaderTrailing,
|
|
308
|
+
I as IrisChatIconButton,
|
|
309
|
+
Ce as IrisChatPanel,
|
|
310
|
+
ke as IrisChatTrigger
|
|
311
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type IrisChatCloseTransform = {
|
|
2
|
+
translateX: number;
|
|
3
|
+
translateY: number;
|
|
4
|
+
scale: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const IRIS_CHAT_CLOSE_ANIMATION_MS = 320;
|
|
7
|
+
export declare function readIrisChatCloseTransform(panelRect: DOMRectReadOnly, targetRect: DOMRectReadOnly): IrisChatCloseTransform;
|
|
8
|
+
export declare function readIrisChatCloseAnimationStyle(transform: IrisChatCloseTransform): {
|
|
9
|
+
transform: string;
|
|
10
|
+
opacity: string;
|
|
11
|
+
transition: string;
|
|
12
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const C = 320;
|
|
2
|
+
function I(t, s) {
|
|
3
|
+
const n = t.left + t.width / 2, a = t.top + t.height / 2, i = s.left + s.width / 2, e = s.top + s.height / 2, o = s.width / t.width, r = s.height / t.height, h = Math.min(o, r, 1) * 0.85;
|
|
4
|
+
return {
|
|
5
|
+
translateX: i - n,
|
|
6
|
+
translateY: e - a,
|
|
7
|
+
scale: Math.max(h, 0.04)
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
function l(t) {
|
|
11
|
+
return {
|
|
12
|
+
transform: `translate(${t.translateX}px, ${t.translateY}px) scale(${t.scale})`,
|
|
13
|
+
opacity: "0",
|
|
14
|
+
transition: "transform 320ms cubic-bezier(0.4, 0, 0.2, 1), opacity 280ms ease-in"
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
C as IRIS_CHAT_CLOSE_ANIMATION_MS,
|
|
19
|
+
l as readIrisChatCloseAnimationStyle,
|
|
20
|
+
I as readIrisChatCloseTransform
|
|
21
|
+
};
|