@pstdio/ui 0.0.3 → 0.0.4
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/EquationComponent-DeDYHvqY.js +62 -0
- package/dist/EquationComponent-DeDYHvqY.js.map +1 -0
- package/dist/chat-ui.js +347 -0
- package/dist/chat-ui.js.map +1 -0
- package/dist/components/button.stories.d.ts +18 -0
- package/dist/components/chat-ui/components/ai-conversation.d.ts +1161 -0
- package/dist/components/chat-ui/index.d.ts +10 -0
- package/dist/components/chat-ui/utils/get-icon.d.ts +34 -0
- package/{storybook-static → dist}/components/column-file-browser.d.ts +1 -2
- package/dist/components/column-file-browser.stories.d.ts +15 -0
- package/dist/components/data-table/build-columns.d.ts +3 -0
- package/dist/components/data-table/data-table.d.ts +2 -0
- package/{storybook-static/components → dist/components/data-table}/data-table.stories.d.ts +1 -1
- package/dist/components/data-table/helpers.d.ts +10 -0
- package/dist/components/data-table/index.d.ts +3 -0
- package/dist/components/data-table/pagination-footer.d.ts +5 -0
- package/dist/components/data-table/selection-toolbar.d.ts +9 -0
- package/{storybook-static/components/data-table.d.ts → dist/components/data-table/types.d.ts} +6 -4
- package/{storybook-static → dist}/components/file-selector.d.ts +1 -2
- package/{storybook-static/components/style-guide.stories.d.ts → dist/components/file-selector.stories.d.ts} +6 -3
- package/{storybook-static → dist}/components/info-card.d.ts +1 -2
- package/dist/components/info-card.stories.d.ts +41 -0
- package/{storybook-static → dist}/components/menu-item.d.ts +1 -1
- package/dist/components/menu-item.stories.d.ts +72 -0
- package/dist/components/number-input.d.ts +8 -0
- package/{storybook-static → dist}/components/param-editor.stories.d.ts +1 -0
- package/{storybook-static → dist}/components/rich-text/collaborative-markdown-editor/collaborative-markdown-editor.d.ts +1 -0
- package/dist/components/rich-text/utils/inferResourceType.d.ts +1 -0
- package/dist/components/session-indicator.d.ts +14 -0
- package/dist/components/session-indicator.stories.d.ts +11 -0
- package/dist/components/slider.stories.d.ts +15 -0
- package/dist/components/style-guide.stories.d.ts +28 -0
- package/dist/components/ticket-board.d.ts +33 -0
- package/dist/components/ticket-board.stories.d.ts +5 -0
- package/dist/components/ticket-card.d.ts +24 -0
- package/dist/components/ticket-card.stories.d.ts +17 -0
- package/dist/components/toaster.d.ts +3 -0
- package/{storybook-static → dist}/index.d.ts +5 -3
- package/dist/index.js +435 -0
- package/dist/index.js.map +1 -0
- package/dist/rich-message-CiA3ripk.js +1401 -0
- package/dist/rich-message-CiA3ripk.js.map +1 -0
- package/dist/rich-text.js +485 -0
- package/dist/rich-text.js.map +1 -0
- package/dist/style.css +1 -0
- package/{storybook-static → dist}/theme/primitives/colors.d.ts +6 -0
- package/dist/theme-9E0MRtZk.js +1985 -0
- package/dist/theme-9E0MRtZk.js.map +1 -0
- package/{src/theme/index.ts → dist/theme.js} +5 -2
- package/dist/theme.js.map +1 -0
- package/dist/tooltip-Gm7PLwZG.js +51 -0
- package/dist/tooltip-Gm7PLwZG.js.map +1 -0
- package/{storybook-static/theme/applyThemePreference.d.ts → dist/utils/apply-theme-preference.d.ts} +1 -1
- package/{storybook-static/theme → dist/utils}/theme-preference.d.ts +3 -3
- package/package.json +4 -1
- package/.storybook/main.ts +0 -28
- package/.storybook/preview.tsx +0 -28
- package/.storybook/vitest.setup.ts +0 -6
- package/src/components/alert.tsx +0 -27
- package/src/components/breadcrumb.stories.tsx +0 -40
- package/src/components/breadcrumb.tsx +0 -67
- package/src/components/button.stories.tsx +0 -151
- package/src/components/chat-ui/agent-types.ts +0 -231
- package/src/components/chat-ui/components/ai-conversation.stories.tsx +0 -49
- package/src/components/chat-ui/components/ai-conversation.tsx +0 -68
- package/src/components/chat-ui/components/ai-message.stories.tsx +0 -60
- package/src/components/chat-ui/components/ai-message.tsx +0 -103
- package/src/components/chat-ui/components/ai-response.stories.tsx +0 -48
- package/src/components/chat-ui/components/ai-response.tsx +0 -19
- package/src/components/chat-ui/components/approval-prompt.tsx +0 -51
- package/src/components/chat-ui/components/attachment-list.stories.tsx +0 -24
- package/src/components/chat-ui/components/attachment-list.tsx +0 -76
- package/src/components/chat-ui/components/auto-scroll.tsx +0 -42
- package/src/components/chat-ui/components/chat-input.stories.tsx +0 -114
- package/src/components/chat-ui/components/chat-input.tsx +0 -142
- package/src/components/chat-ui/components/chat-panel.stories.tsx +0 -396
- package/src/components/chat-ui/components/chat-panel.tsx +0 -97
- package/src/components/chat-ui/components/message-parts-renderer.stories.tsx +0 -59
- package/src/components/chat-ui/components/message-parts-renderer.tsx +0 -133
- package/src/components/chat-ui/components/message-types.ts +0 -40
- package/src/components/chat-ui/components/model-swap-separator.stories.tsx +0 -27
- package/src/components/chat-ui/components/model-swap-separator.tsx +0 -20
- package/src/components/chat-ui/components/send-button.tsx +0 -56
- package/src/components/chat-ui/components/timeline.tsx +0 -414
- package/src/components/chat-ui/components/tool-invocation-timeline.stories.tsx +0 -32
- package/src/components/chat-ui/components/tool-invocation-timeline.tsx +0 -16
- package/src/components/chat-ui/index.ts +0 -15
- package/src/components/chat-ui/mocks/full-conversation-normalized.json +0 -3557
- package/src/components/chat-ui/tool-rendering/build-timeline.ts +0 -127
- package/src/components/chat-ui/tool-rendering/default-renderers.ts +0 -420
- package/src/components/chat-ui/tool-rendering/index.ts +0 -3
- package/src/components/chat-ui/tool-rendering/types.ts +0 -19
- package/src/components/chat-ui/utils/diff.ts +0 -228
- package/src/components/chat-ui/utils/editor-state.ts +0 -5
- package/src/components/chat-ui/utils/get-icon.ts +0 -81
- package/src/components/code-editor.tsx +0 -147
- package/src/components/column-file-browser.stories.tsx +0 -217
- package/src/components/column-file-browser.tsx +0 -380
- package/src/components/content-placeholder.tsx +0 -21
- package/src/components/data-table/build-columns.tsx +0 -78
- package/src/components/data-table/data-table.css +0 -51
- package/src/components/data-table/data-table.stories.tsx +0 -209
- package/src/components/data-table/data-table.tsx +0 -232
- package/src/components/data-table/helpers.tsx +0 -69
- package/src/components/data-table/index.ts +0 -3
- package/src/components/data-table/pagination-footer.tsx +0 -58
- package/src/components/data-table/selection-toolbar.tsx +0 -26
- package/src/components/data-table/types.ts +0 -21
- package/src/components/delete-confirmation-modal.stories.tsx +0 -46
- package/src/components/delete-confirmation-modal.tsx +0 -56
- package/src/components/diff-bubble.stories.tsx +0 -70
- package/src/components/diff-bubble.tsx +0 -70
- package/src/components/diff-card.tsx +0 -139
- package/src/components/diff-drawer.stories.tsx +0 -106
- package/src/components/diff-drawer.tsx +0 -59
- package/src/components/diff-editor.tsx +0 -55
- package/src/components/drawer-inline.stories.tsx +0 -124
- package/src/components/drawer-inline.tsx +0 -90
- package/src/components/empty-state.stories.tsx +0 -65
- package/src/components/empty-state.tsx +0 -28
- package/src/components/error-boundary.tsx +0 -80
- package/src/components/file-selector.stories.tsx +0 -166
- package/src/components/file-selector.tsx +0 -192
- package/src/components/file-tree-helpers.ts +0 -28
- package/src/components/horizontal-menu-stack.tsx +0 -15
- package/src/components/info-card.stories.tsx +0 -120
- package/src/components/info-card.tsx +0 -60
- package/src/components/item-section.stories.tsx +0 -57
- package/src/components/item-section.tsx +0 -57
- package/src/components/layout.stories.tsx +0 -341
- package/src/components/layout.tsx +0 -67
- package/src/components/menu-item.stories.tsx +0 -162
- package/src/components/menu-item.tsx +0 -207
- package/src/components/number-input.tsx +0 -21
- package/src/components/open-source-notices-screen.stories.tsx +0 -69
- package/src/components/open-source-notices-screen.tsx +0 -154
- package/src/components/panel-menu.stories.tsx +0 -44
- package/src/components/panel-menu.tsx +0 -27
- package/src/components/param-editor-color-input.tsx +0 -98
- package/src/components/param-editor-date-input.tsx +0 -106
- package/src/components/param-editor-horizontal-text-input.tsx +0 -130
- package/src/components/param-editor-horizontal.stories.tsx +0 -545
- package/src/components/param-editor-horizontal.tsx +0 -137
- package/src/components/param-editor-input-group.tsx +0 -145
- package/src/components/param-editor-number-input.tsx +0 -145
- package/src/components/param-editor-selection-input.tsx +0 -181
- package/src/components/param-editor-text-input.tsx +0 -113
- package/src/components/param-editor.stories.tsx +0 -986
- package/src/components/param-editor.tsx +0 -142
- package/src/components/param-editor.types.ts +0 -95
- package/src/components/properties.stories.tsx +0 -108
- package/src/components/properties.tsx +0 -73
- package/src/components/pstdio-logo.tsx +0 -26
- package/src/components/resource-badge.stories.tsx +0 -26
- package/src/components/resource-badge.tsx +0 -173
- package/src/components/rich-text/collaborative-markdown-editor/awareness-cursors.tsx +0 -45
- package/src/components/rich-text/collaborative-markdown-editor/collaborative-markdown-editor.stories.tsx +0 -230
- package/src/components/rich-text/collaborative-markdown-editor/collaborative-markdown-editor.tsx +0 -131
- package/src/components/rich-text/index.ts +0 -14
- package/src/components/rich-text/markdown-editor/markdown-editor.stories.tsx +0 -147
- package/src/components/rich-text/markdown-editor/markdown-editor.tsx +0 -112
- package/src/components/rich-text/markdown-editor/plugins/ReferenceLinkPlugin/ReferenceLinkNode.tsx +0 -100
- package/src/components/rich-text/markdown-editor/plugins/ReferenceLinkPlugin/ReferenceLinkTransformer.ts +0 -32
- package/src/components/rich-text/markdown-editor/plugins/ReferenceLinkPlugin/index.ts +0 -2
- package/src/components/rich-text/prompt-input/commands.ts +0 -44
- package/src/components/rich-text/prompt-input/events.ts +0 -21
- package/src/components/rich-text/prompt-input/plugins/CommentPlugin/CommentPlugin.tsx +0 -8
- package/src/components/rich-text/prompt-input/plugins/CommentPlugin/hooks/useCommentCommands.ts +0 -49
- package/src/components/rich-text/prompt-input/plugins/CommentPlugin/hooks/useCommentSchema.ts +0 -30
- package/src/components/rich-text/prompt-input/plugins/CommentPlugin/nodes/CommentNode/CommentNode.tsx +0 -127
- package/src/components/rich-text/prompt-input/plugins/ImperativeAPIPlugin.tsx +0 -32
- package/src/components/rich-text/prompt-input/plugins/KeyboardShortcutPlugin.tsx +0 -30
- package/src/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/ReferenceMenuOption.ts +0 -15
- package/src/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/ReferenceMenuPlugin.tsx +0 -88
- package/src/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/components/ReferenceMenu/ReferenceMenu.tsx +0 -90
- package/src/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/components/ReferenceMenu/ReferenceMenuItem.tsx +0 -50
- package/src/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/constants.ts +0 -3
- package/src/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/hooks/useContextLookup.tsx +0 -50
- package/src/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/utils/checkForTriggers.ts +0 -45
- package/src/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/utils/getSortedMenuOptions.ts +0 -20
- package/src/components/rich-text/prompt-input/plugins/ReferencePlugin/ReferencePlugin.tsx +0 -50
- package/src/components/rich-text/prompt-input/plugins/ReferencePlugin/nodes/ReferenceNode/ReferenceNode.tsx +0 -107
- package/src/components/rich-text/prompt-input/plugins/keyboard-shortcuts.ts +0 -13
- package/src/components/rich-text/prompt-input/prompt-input.stories.tsx +0 -87
- package/src/components/rich-text/prompt-input/prompt-input.tsx +0 -106
- package/src/components/rich-text/prompt-input/theme/prompt-input-theme.css +0 -3
- package/src/components/rich-text/prompt-input/theme/prompt-input-theme.ts +0 -11
- package/src/components/rich-text/prompt-input/utils.ts +0 -158
- package/src/components/rich-text/rich-message/plugins/ReferenceLinkPlugin/ReferenceLinkNode.tsx +0 -100
- package/src/components/rich-text/rich-message/plugins/ReferenceLinkPlugin/ReferenceLinkTransformer.ts +0 -32
- package/src/components/rich-text/rich-message/plugins/ReferenceLinkPlugin/index.ts +0 -2
- package/src/components/rich-text/rich-message/rich-message.stories.tsx +0 -146
- package/src/components/rich-text/rich-message/rich-message.tsx +0 -118
- package/src/components/rich-text/shared/components/content-editable.tsx +0 -28
- package/src/components/rich-text/shared/components/default-rich-text-components.tsx +0 -99
- package/src/components/rich-text/shared/editor-config.ts +0 -38
- package/src/components/rich-text/shared/nodes/DataTableNode.stories.tsx +0 -52
- package/src/components/rich-text/shared/nodes/DataTableNode.tsx +0 -73
- package/src/components/rich-text/shared/plugins/CodePlugin/CodeBlockPlugin.tsx +0 -22
- package/src/components/rich-text/shared/plugins/CodePlugin/CodeNode.tsx +0 -57
- package/src/components/rich-text/shared/plugins/EquationPlugin/EquationComponent.tsx +0 -46
- package/src/components/rich-text/shared/plugins/EquationPlugin/EquationNode.tsx +0 -161
- package/src/components/rich-text/shared/plugins/EquationPlugin/EquationPlugin.css +0 -16
- package/src/components/rich-text/shared/plugins/EquationPlugin/EquationPlugin.tsx +0 -45
- package/src/components/rich-text/shared/plugins/EquationPlugin/KatexRenderer.tsx +0 -40
- package/src/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/FloatingTextFormatToolbarPlugin.css +0 -26
- package/src/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/FloatingTextFormatToolbarPlugin.tsx +0 -414
- package/src/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/index.ts +0 -1
- package/src/components/rich-text/shared/plugins/HorizontalRulePlugin/HorizontalRuleNode.ts +0 -52
- package/src/components/rich-text/shared/plugins/HorizontalRulePlugin/horizontalRule.ts +0 -16
- package/src/components/rich-text/shared/plugins/LinkEditorPlugin/LinkEditorPlugin.css +0 -163
- package/src/components/rich-text/shared/plugins/LinkEditorPlugin/LinkEditorPlugin.tsx +0 -355
- package/src/components/rich-text/shared/plugins/LinkEditorPlugin/LinkPlugin.tsx +0 -6
- package/src/components/rich-text/shared/plugins/LinkEditorPlugin/utils/getSelectedNode.ts +0 -17
- package/src/components/rich-text/shared/plugins/LinkEditorPlugin/utils/setFloatingElemPos.ts +0 -39
- package/src/components/rich-text/shared/plugins/LinkEditorPlugin/utils/url.ts +0 -23
- package/src/components/rich-text/shared/plugins/StateUpdatePlugin.tsx +0 -21
- package/src/components/rich-text/shared/plugins/TableActionMenuPlugin/TableActionMenuPlugin.tsx +0 -224
- package/src/components/rich-text/shared/plugins/TableCellResizerPlugin/TableCellResizerPlugin.css +0 -3
- package/src/components/rich-text/shared/plugins/TableCellResizerPlugin/TableCellResizerPlugin.tsx +0 -315
- package/src/components/rich-text/shared/plugins/ToggleEditablePlugin.tsx +0 -12
- package/src/components/rich-text/shared/plugins/TreeViewPlugin/TreeViewPlugin.tsx +0 -20
- package/src/components/rich-text/shared/transformers/markdown-transformers.ts +0 -123
- package/src/components/rich-text/shared/types/rich-text-components.ts +0 -17
- package/src/components/rich-text/theme/report-theme.tsx +0 -81
- package/src/components/rich-text/theme/rich-text-theme.css +0 -773
- package/src/components/rich-text/theme/rich-text-theme.tsx +0 -81
- package/src/components/rich-text/types.ts +0 -9
- package/src/components/rich-text/utils/inferResourceType.ts +0 -17
- package/src/components/rich-text/utils/markdown.ts +0 -12
- package/src/components/rich-text/utils/mediaType.ts +0 -31
- package/src/components/session-indicator.stories.tsx +0 -46
- package/src/components/session-indicator.tsx +0 -40
- package/src/components/slider.stories.tsx +0 -38
- package/src/components/slider.tsx +0 -20
- package/src/components/style-guide-data.ts +0 -374
- package/src/components/style-guide.stories.tsx +0 -212
- package/src/components/style-guide.tsx +0 -305
- package/src/components/ticket-board.stories.tsx +0 -109
- package/src/components/ticket-board.tsx +0 -167
- package/src/components/ticket-card.stories.tsx +0 -133
- package/src/components/ticket-card.tsx +0 -126
- package/src/components/toaster.stories.tsx +0 -79
- package/src/components/toaster.tsx +0 -26
- package/src/components/tooltip.tsx +0 -43
- package/src/index.ts +0 -16
- package/src/theme/global.ts +0 -49
- package/src/theme/primitives/colors.ts +0 -209
- package/src/theme/primitives/fonts.ts +0 -33
- package/src/theme/primitives/sizes.ts +0 -49
- package/src/theme/recipes/alert.ts +0 -12
- package/src/theme/recipes/button.ts +0 -124
- package/src/theme/recipes/dialog.ts +0 -11
- package/src/theme/recipes/divider.ts +0 -7
- package/src/theme/recipes/drawer.ts +0 -16
- package/src/theme/recipes/editable.ts +0 -42
- package/src/theme/recipes/form.ts +0 -11
- package/src/theme/recipes/input.ts +0 -25
- package/src/theme/recipes/menu.ts +0 -40
- package/src/theme/recipes/popover.ts +0 -46
- package/src/theme/recipes/progress-circle.ts +0 -22
- package/src/theme/recipes/skeleton.ts +0 -8
- package/src/theme/recipes/textarea.ts +0 -29
- package/src/theme/recipes/tooltip.ts +0 -15
- package/src/theme/theme.ts +0 -70
- package/src/theme/tokens/borders.ts +0 -38
- package/src/theme/tokens/colors.ts +0 -488
- package/src/theme/tokens/layer-styles.ts +0 -15
- package/src/theme/tokens/shadows.ts +0 -47
- package/src/theme/tokens/text.ts +0 -236
- package/src/utils/apply-theme-preference.ts +0 -17
- package/src/utils/formats.ts +0 -27
- package/src/utils/get-file-type-icon.ts +0 -52
- package/src/utils/theme-preference.tsx +0 -60
- package/src/vite-env.d.ts +0 -6
- package/storybook-static/assets/CodeBlockPlugin-C3OWpvP8.js +0 -281
- package/storybook-static/assets/CodeBlockPlugin-e2vWgtYm.css +0 -1
- package/storybook-static/assets/DataTableNode.stories-DLgTftOI.js +0 -33
- package/storybook-static/assets/EquationComponent-CUFxwyNf.js +0 -1
- package/storybook-static/assets/EquationComponent-DWZwfaVI.css +0 -1
- package/storybook-static/assets/FloatingTextFormatToolbarPlugin-B6jc8xvg.js +0 -1
- package/storybook-static/assets/FloatingTextFormatToolbarPlugin-D2l3--Te.css +0 -1
- package/storybook-static/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/storybook-static/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/storybook-static/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/storybook-static/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/storybook-static/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/storybook-static/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/storybook-static/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/storybook-static/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/storybook-static/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/storybook-static/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/storybook-static/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/storybook-static/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/storybook-static/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/storybook-static/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/storybook-static/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/storybook-static/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/storybook-static/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/storybook-static/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/storybook-static/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/storybook-static/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/storybook-static/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/storybook-static/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/storybook-static/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/storybook-static/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/storybook-static/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/storybook-static/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/storybook-static/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/storybook-static/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/storybook-static/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/storybook-static/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/storybook-static/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/storybook-static/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/storybook-static/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/storybook-static/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/storybook-static/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/storybook-static/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/storybook-static/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/storybook-static/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/storybook-static/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/storybook-static/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/storybook-static/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/storybook-static/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/storybook-static/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/storybook-static/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/storybook-static/assets/LexicalHistoryPlugin.prod-BQAibkDj.js +0 -1
- package/storybook-static/assets/TreeViewPlugin-CyVKCrKJ.js +0 -24
- package/storybook-static/assets/ai-conversation-DcjS--ee.js +0 -1
- package/storybook-static/assets/ai-conversation.stories-COjWuS8V.js +0 -3
- package/storybook-static/assets/ai-message-DLdAGhWH.js +0 -1
- package/storybook-static/assets/ai-message.stories-CRTyreKL.js +0 -3
- package/storybook-static/assets/ai-response-ySM6s0iN.js +0 -1
- package/storybook-static/assets/ai-response.stories-DVBYlrGf.js +0 -11
- package/storybook-static/assets/attachment-list-1p1601I5.js +0 -1
- package/storybook-static/assets/attachment-list.stories-Cydlsnio.js +0 -7
- package/storybook-static/assets/badge-CtgJasjB.js +0 -1
- package/storybook-static/assets/breadcrumb.stories-SAjB-iqH.js +0 -5
- package/storybook-static/assets/button-C7it2n8t.js +0 -1
- package/storybook-static/assets/button.stories-BMVbbb4y.js +0 -72
- package/storybook-static/assets/chat-input-B-915nCM.js +0 -1
- package/storybook-static/assets/chat-input.stories-DrxvpT9p.js +0 -32
- package/storybook-static/assets/chat-panel.stories-D0L6eIte.js +0 -96
- package/storybook-static/assets/chevron-down-BYCAGyCV.js +0 -1
- package/storybook-static/assets/chevron-right-owK1wZnx.js +0 -1
- package/storybook-static/assets/collaborative-markdown-editor-Bj0GvTvv.js +0 -41
- package/storybook-static/assets/collaborative-markdown-editor.stories-B_MUIC5s.js +0 -11
- package/storybook-static/assets/collapsible-DBDG7h1r.js +0 -1
- package/storybook-static/assets/collapsible-content-B1Uq3jUM.js +0 -1
- package/storybook-static/assets/column-file-browser.stories-DPMQnHCw.js +0 -54
- package/storybook-static/assets/compiler-runtime-BXE7OOXE.js +0 -1
- package/storybook-static/assets/computed-style-C0hzrq9-.js +0 -1
- package/storybook-static/assets/create-recipe-context-BU56IzEo.js +0 -1
- package/storybook-static/assets/create-slot-recipe-context-DAhDE6G_.js +0 -1
- package/storybook-static/assets/create-split-props-u5h9OPvL.js +0 -1
- package/storybook-static/assets/createLucideIcon-CcBBUKX8.js +0 -1
- package/storybook-static/assets/data-table-vuIeWXui.css +0 -1
- package/storybook-static/assets/data-table.stories-Cs-q7dpj.js +0 -19
- package/storybook-static/assets/delete-confirmation-modal.stories-C8vDKFRD.js +0 -14
- package/storybook-static/assets/diff-bubble-_zZypMRt.js +0 -1
- package/storybook-static/assets/diff-bubble.stories-DfonanIk.js +0 -39
- package/storybook-static/assets/diff-drawer.stories-CGDWiKD8.js +0 -38
- package/storybook-static/assets/diff-editor-DV9BXqbn.js +0 -11
- package/storybook-static/assets/dismissable-layer-Cc5dFRd8.js +0 -1
- package/storybook-static/assets/drawer-inline.stories-B3Tp7vjL.js +0 -88
- package/storybook-static/assets/empty-state-BXkyq69k.js +0 -1
- package/storybook-static/assets/empty-state.stories-6eYYBOWR.js +0 -29
- package/storybook-static/assets/factory-BR3bc_RM.js +0 -1
- package/storybook-static/assets/factory-DAJZwK4o.js +0 -1
- package/storybook-static/assets/file-selector.stories-PKIGBUd5.js +0 -31
- package/storybook-static/assets/file-text-D5m8MJlG.js +0 -1
- package/storybook-static/assets/flex-DAJL4AFZ.js +0 -1
- package/storybook-static/assets/folder-C5dba_Co.js +0 -1
- package/storybook-static/assets/form-D_Xln9tK.js +0 -1
- package/storybook-static/assets/full-conversation-normalized-LUbl1coD.js +0 -1
- package/storybook-static/assets/grid-7OIKBlfh.js +0 -1
- package/storybook-static/assets/h-stack-DWHd8f97.js +0 -1
- package/storybook-static/assets/horizontal-menu-stack-Cph6x7ui.js +0 -1
- package/storybook-static/assets/icon-C8FN9JqD.js +0 -1
- package/storybook-static/assets/icon-button-DHiUe7rR.js +0 -1
- package/storybook-static/assets/icons-WRA1cA-W.js +0 -1
- package/storybook-static/assets/iframe-2XPD_vrQ.css +0 -1
- package/storybook-static/assets/iframe-B8FSoBNY.js +0 -1075
- package/storybook-static/assets/index-B0y2_lLF.js +0 -1
- package/storybook-static/assets/index-CXwl6T4k.js +0 -1
- package/storybook-static/assets/index-DaXC_qY_.js +0 -1
- package/storybook-static/assets/index-DpB4ozcR.js +0 -1
- package/storybook-static/assets/index-cFwdnc0b.js +0 -1
- package/storybook-static/assets/info-DlgY5-DW.js +0 -1
- package/storybook-static/assets/info-card.stories-Cry0Qfrn.js +0 -55
- package/storybook-static/assets/input-ZSs5cSFQ.js +0 -1
- package/storybook-static/assets/inter-cyrillic-400-normal-HOLc17fK.woff +0 -0
- package/storybook-static/assets/inter-cyrillic-400-normal-obahsSVq.woff2 +0 -0
- package/storybook-static/assets/inter-cyrillic-500-normal-BasfLYem.woff2 +0 -0
- package/storybook-static/assets/inter-cyrillic-500-normal-CxZf_p3X.woff +0 -0
- package/storybook-static/assets/inter-cyrillic-ext-400-normal-BQZuk6qB.woff2 +0 -0
- package/storybook-static/assets/inter-cyrillic-ext-400-normal-DQukG94-.woff +0 -0
- package/storybook-static/assets/inter-cyrillic-ext-500-normal-B0yAr1jD.woff2 +0 -0
- package/storybook-static/assets/inter-cyrillic-ext-500-normal-BmqWE9Dz.woff +0 -0
- package/storybook-static/assets/inter-greek-400-normal-B4URO6DV.woff2 +0 -0
- package/storybook-static/assets/inter-greek-400-normal-q2sYcFCs.woff +0 -0
- package/storybook-static/assets/inter-greek-500-normal-BIZE56-Y.woff2 +0 -0
- package/storybook-static/assets/inter-greek-500-normal-Xzm54t5V.woff +0 -0
- package/storybook-static/assets/inter-greek-ext-400-normal-DGGRlc-M.woff2 +0 -0
- package/storybook-static/assets/inter-greek-ext-400-normal-KugGGMne.woff +0 -0
- package/storybook-static/assets/inter-greek-ext-500-normal-2j5mBUwD.woff +0 -0
- package/storybook-static/assets/inter-greek-ext-500-normal-C4iEst2y.woff2 +0 -0
- package/storybook-static/assets/inter-latin-400-normal-C38fXH4l.woff2 +0 -0
- package/storybook-static/assets/inter-latin-400-normal-CyCys3Eg.woff +0 -0
- package/storybook-static/assets/inter-latin-500-normal-BL9OpVg8.woff +0 -0
- package/storybook-static/assets/inter-latin-500-normal-Cerq10X2.woff2 +0 -0
- package/storybook-static/assets/inter-latin-ext-400-normal-77YHD8bZ.woff +0 -0
- package/storybook-static/assets/inter-latin-ext-400-normal-C1nco2VV.woff2 +0 -0
- package/storybook-static/assets/inter-latin-ext-500-normal-BxGbmqWO.woff +0 -0
- package/storybook-static/assets/inter-latin-ext-500-normal-CV4jyFjo.woff2 +0 -0
- package/storybook-static/assets/inter-vietnamese-400-normal-Bbgyi5SW.woff +0 -0
- package/storybook-static/assets/inter-vietnamese-400-normal-DMkecbls.woff2 +0 -0
- package/storybook-static/assets/inter-vietnamese-500-normal-DOriooB6.woff2 +0 -0
- package/storybook-static/assets/inter-vietnamese-500-normal-mJboJaSs.woff +0 -0
- package/storybook-static/assets/item-section-AoQrVPNJ.js +0 -1
- package/storybook-static/assets/item-section.stories-kYTPHRsx.js +0 -24
- package/storybook-static/assets/layout.stories-DhSjwzU1.js +0 -3
- package/storybook-static/assets/link-DE5grRtm.js +0 -1
- package/storybook-static/assets/markdown-BLUemkxK.js +0 -1
- package/storybook-static/assets/markdown-editor-Y4eMsgVb.js +0 -1
- package/storybook-static/assets/markdown-editor.stories-DIWw-hRP.js +0 -115
- package/storybook-static/assets/menu-item-CrqDaj9K.js +0 -1
- package/storybook-static/assets/menu-item.stories-D9Isjjrf.js +0 -68
- package/storybook-static/assets/message-parts-renderer.stories-CewRvbm7.js +0 -5
- package/storybook-static/assets/message-types-CEyA7Qm7.js +0 -60
- package/storybook-static/assets/model-swap-separator.stories-DrQW2NWQ.js +0 -9
- package/storybook-static/assets/mutation-observer-CAfGweIM.js +0 -1
- package/storybook-static/assets/normalize-props-D7NI5JRu.js +0 -1
- package/storybook-static/assets/number-C92MPsRM.js +0 -1
- package/storybook-static/assets/number-input-D1aC-9ls.js +0 -7
- package/storybook-static/assets/onest-cyrillic-400-normal-BxvCLB5P.woff +0 -0
- package/storybook-static/assets/onest-cyrillic-400-normal-DH8vlB-A.woff2 +0 -0
- package/storybook-static/assets/onest-cyrillic-500-normal-CyY1vN0Q.woff +0 -0
- package/storybook-static/assets/onest-cyrillic-500-normal-DHyr8B2c.woff2 +0 -0
- package/storybook-static/assets/onest-cyrillic-700-normal-CwpXuTGk.woff2 +0 -0
- package/storybook-static/assets/onest-cyrillic-700-normal-DOtXtm0s.woff +0 -0
- package/storybook-static/assets/onest-latin-400-normal-BAzPRZHg.woff +0 -0
- package/storybook-static/assets/onest-latin-400-normal-bladozIj.woff2 +0 -0
- package/storybook-static/assets/onest-latin-500-normal-oFTiz6Nq.woff +0 -0
- package/storybook-static/assets/onest-latin-500-normal-qHiQtL66.woff2 +0 -0
- package/storybook-static/assets/onest-latin-700-normal-Bd6qVL4Q.woff2 +0 -0
- package/storybook-static/assets/onest-latin-700-normal-XTvQgpoh.woff +0 -0
- package/storybook-static/assets/onest-latin-ext-400-normal--mQR5RlC.woff2 +0 -0
- package/storybook-static/assets/onest-latin-ext-400-normal-BbXTNVXw.woff +0 -0
- package/storybook-static/assets/onest-latin-ext-500-normal-BlXa29q8.woff2 +0 -0
- package/storybook-static/assets/onest-latin-ext-500-normal-CoujUMv_.woff +0 -0
- package/storybook-static/assets/onest-latin-ext-700-normal-C-Tcltod.woff2 +0 -0
- package/storybook-static/assets/onest-latin-ext-700-normal-CSGWRWNE.woff +0 -0
- package/storybook-static/assets/open-source-notices-screen.stories-BpdJxDZC.js +0 -21
- package/storybook-static/assets/overflow-CkG1DOya.js +0 -1
- package/storybook-static/assets/panel-menu-CqLSrdTB.js +0 -1
- package/storybook-static/assets/panel-menu.stories-CxdWaWjq.js +0 -14
- package/storybook-static/assets/param-editor-horizontal.stories-C1o-VOjG.js +0 -561
- package/storybook-static/assets/param-editor-selection-input-2pJE1_W1.js +0 -1
- package/storybook-static/assets/param-editor.stories-0ae3y4Vu.js +0 -921
- package/storybook-static/assets/playfair-display-cyrillic-400-normal-CjW2EstV.woff2 +0 -0
- package/storybook-static/assets/playfair-display-cyrillic-400-normal-ZiRag6zj.woff +0 -0
- package/storybook-static/assets/playfair-display-cyrillic-600-normal-DbWAkkgN.woff +0 -0
- package/storybook-static/assets/playfair-display-cyrillic-600-normal-oLY6jnZ7.woff2 +0 -0
- package/storybook-static/assets/playfair-display-cyrillic-700-normal-Dk1mTcxf.woff +0 -0
- package/storybook-static/assets/playfair-display-cyrillic-700-normal-Dw3uKy19.woff2 +0 -0
- package/storybook-static/assets/playfair-display-latin-400-normal-CFtfchNt.woff2 +0 -0
- package/storybook-static/assets/playfair-display-latin-400-normal-DHYHbkg3.woff +0 -0
- package/storybook-static/assets/playfair-display-latin-600-normal-CZLGqjJe.woff2 +0 -0
- package/storybook-static/assets/playfair-display-latin-600-normal-CxxueQ0Z.woff +0 -0
- package/storybook-static/assets/playfair-display-latin-700-normal-Bc_1Q1cG.woff +0 -0
- package/storybook-static/assets/playfair-display-latin-700-normal-CuDiGg7c.woff2 +0 -0
- package/storybook-static/assets/playfair-display-latin-ext-400-normal-BxlSGspa.woff2 +0 -0
- package/storybook-static/assets/playfair-display-latin-ext-400-normal-qdZwdvNS.woff +0 -0
- package/storybook-static/assets/playfair-display-latin-ext-600-normal-BumBfC1v.woff +0 -0
- package/storybook-static/assets/playfair-display-latin-ext-600-normal-CEjQclLc.woff2 +0 -0
- package/storybook-static/assets/playfair-display-latin-ext-700-normal-C58ejOkc.woff2 +0 -0
- package/storybook-static/assets/playfair-display-latin-ext-700-normal-D5HUU8GT.woff +0 -0
- package/storybook-static/assets/playfair-display-vietnamese-400-normal-BV2APVTb.woff2 +0 -0
- package/storybook-static/assets/playfair-display-vietnamese-400-normal-BbvUAu4N.woff +0 -0
- package/storybook-static/assets/playfair-display-vietnamese-600-normal-BPJkAZPN.woff +0 -0
- package/storybook-static/assets/playfair-display-vietnamese-600-normal-ICsRR-qJ.woff2 +0 -0
- package/storybook-static/assets/playfair-display-vietnamese-700-normal-CaKJSIny.woff2 +0 -0
- package/storybook-static/assets/playfair-display-vietnamese-700-normal-Cr1rw0mr.woff +0 -0
- package/storybook-static/assets/portal-CZHfPTRw.js +0 -1
- package/storybook-static/assets/preload-helper-PPVm8Dsz.js +0 -1
- package/storybook-static/assets/prompt-input-BLCttowi.js +0 -14
- package/storybook-static/assets/prompt-input-BVbz9joI.css +0 -1
- package/storybook-static/assets/prompt-input.stories-J8-AMVXy.js +0 -9
- package/storybook-static/assets/properties.stories-Bs7ivKgb.js +0 -59
- package/storybook-static/assets/react-18-KY0R7ltw.js +0 -9
- package/storybook-static/assets/render-strategy-BebqUNCa.js +0 -1
- package/storybook-static/assets/resource-badge-Bw5UoU4J.js +0 -1
- package/storybook-static/assets/resource-badge.stories-DtSh-RX9.js +0 -9
- package/storybook-static/assets/rich-message-BIkzo1SM.js +0 -1
- package/storybook-static/assets/rich-message.stories-C9Wc4d3O.js +0 -115
- package/storybook-static/assets/rich-text-theme-Bkhh9rAZ.js +0 -14
- package/storybook-static/assets/rich-text-theme-K2MBoCbx.css +0 -1
- package/storybook-static/assets/separator-CQkMOHNm.js +0 -1
- package/storybook-static/assets/settings-DUgg22A7.js +0 -1
- package/storybook-static/assets/simple-grid-DIKjhnVI.js +0 -1
- package/storybook-static/assets/spinner-ZYH_gvW-.js +0 -1
- package/storybook-static/assets/stack-CN4X31TA.js +0 -1
- package/storybook-static/assets/star-CvcHIXRa.js +0 -1
- package/storybook-static/assets/style-guide.stories-BUvEhZov.js +0 -6
- package/storybook-static/assets/tabbable-DHAf8oAu.js +0 -1
- package/storybook-static/assets/table-BKNSzs2r.js +0 -1
- package/storybook-static/assets/textarea-rqmaWSc5.js +0 -1
- package/storybook-static/assets/toaster-d9nN0H7K.js +0 -1
- package/storybook-static/assets/toaster.stories-BRVCYyaM.js +0 -52
- package/storybook-static/assets/tool-invocation-timeline-B-cS0W6M.js +0 -59
- package/storybook-static/assets/tool-invocation-timeline.stories-DXO59O73.js +0 -5
- package/storybook-static/assets/tooltip-C_a-XGZ8.js +0 -1
- package/storybook-static/assets/tooltip-DZxUoouw.js +0 -1
- package/storybook-static/assets/trash-2-BO05slEk.js +0 -1
- package/storybook-static/assets/typeahead-CuY9WxfQ.js +0 -1
- package/storybook-static/assets/use-field-context-DoxKQlMm.js +0 -1
- package/storybook-static/assets/use-presence-context-DK2PGZth.js +0 -1
- package/storybook-static/assets/v-stack-Btoq6OB_.js +0 -1
- package/storybook-static/assets/x-D42ziktz.js +0 -1
- package/storybook-static/components/chat-ui/mocks/full-conversation-normalized.json.d.ts +0 -3560
- package/storybook-static/components/rich-text/utils/inferResourceType.d.ts +0 -1
- package/storybook-static/favicon-wrapper.svg +0 -46
- package/storybook-static/favicon.svg +0 -1
- package/storybook-static/iframe.html +0 -705
- package/storybook-static/index.html +0 -150
- package/storybook-static/index.json +0 -1
- package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/project.json +0 -1
- package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +0 -628
- package/storybook-static/sb-addons/themes-1/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/vitest-2/manager-bundle.js +0 -3
- package/storybook-static/sb-common-assets/favicon-wrapper.svg +0 -46
- package/storybook-static/sb-common-assets/favicon.svg +0 -1
- package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/sb-manager/globals-runtime.js +0 -77956
- package/storybook-static/sb-manager/globals.js +0 -24
- package/storybook-static/sb-manager/manager-stores.js +0 -23
- package/storybook-static/sb-manager/runtime.js +0 -20422
- package/storybook-static/theme/types.d.ts +0 -1
- package/storybook-static/vite-inject-mocker-entry.js +0 -2
- package/tsconfig.json +0 -29
- package/vite.config.ts +0 -85
- package/vitest.shims.d.ts +0 -1
- /package/{storybook-static → dist}/components/alert.d.ts +0 -0
- /package/{storybook-static → dist}/components/breadcrumb.d.ts +0 -0
- /package/{storybook-static → dist}/components/breadcrumb.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/agent-types.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/ai-conversation.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/ai-message.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/ai-message.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/ai-response.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/ai-response.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/approval-prompt.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/attachment-list.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/attachment-list.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/auto-scroll.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/chat-input.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/chat-input.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/chat-panel.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/chat-panel.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/message-parts-renderer.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/message-parts-renderer.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/message-types.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/model-swap-separator.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/model-swap-separator.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/send-button.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/timeline.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/tool-invocation-timeline.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/tool-invocation-timeline.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/tool-rendering/build-timeline.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/tool-rendering/default-renderers.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/tool-rendering/index.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/tool-rendering/types.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/utils/diff.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/utils/editor-state.d.ts +0 -0
- /package/{storybook-static → dist}/components/code-editor.d.ts +0 -0
- /package/{storybook-static → dist}/components/content-placeholder.d.ts +0 -0
- /package/{storybook-static → dist}/components/delete-confirmation-modal.d.ts +0 -0
- /package/{storybook-static → dist}/components/delete-confirmation-modal.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/diff-bubble.d.ts +0 -0
- /package/{storybook-static → dist}/components/diff-bubble.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/diff-card.d.ts +0 -0
- /package/{storybook-static → dist}/components/diff-drawer.d.ts +0 -0
- /package/{storybook-static → dist}/components/diff-drawer.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/diff-editor.d.ts +0 -0
- /package/{storybook-static → dist}/components/drawer-inline.d.ts +0 -0
- /package/{storybook-static → dist}/components/drawer-inline.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/empty-state.d.ts +0 -0
- /package/{storybook-static → dist}/components/empty-state.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/error-boundary.d.ts +0 -0
- /package/{storybook-static → dist}/components/file-tree-helpers.d.ts +0 -0
- /package/{storybook-static → dist}/components/horizontal-menu-stack.d.ts +0 -0
- /package/{storybook-static → dist}/components/item-section.d.ts +0 -0
- /package/{storybook-static → dist}/components/item-section.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/layout.d.ts +0 -0
- /package/{storybook-static → dist}/components/layout.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/open-source-notices-screen.d.ts +0 -0
- /package/{storybook-static → dist}/components/open-source-notices-screen.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/panel-menu.d.ts +0 -0
- /package/{storybook-static → dist}/components/panel-menu.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/param-editor-color-input.d.ts +0 -0
- /package/{storybook-static → dist}/components/param-editor-date-input.d.ts +0 -0
- /package/{storybook-static → dist}/components/param-editor-horizontal-text-input.d.ts +0 -0
- /package/{storybook-static → dist}/components/param-editor-horizontal.d.ts +0 -0
- /package/{storybook-static → dist}/components/param-editor-horizontal.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/param-editor-input-group.d.ts +0 -0
- /package/{storybook-static → dist}/components/param-editor-number-input.d.ts +0 -0
- /package/{storybook-static → dist}/components/param-editor-selection-input.d.ts +0 -0
- /package/{storybook-static → dist}/components/param-editor-text-input.d.ts +0 -0
- /package/{storybook-static → dist}/components/param-editor.d.ts +0 -0
- /package/{storybook-static → dist}/components/param-editor.types.d.ts +0 -0
- /package/{storybook-static → dist}/components/properties.d.ts +0 -0
- /package/{storybook-static → dist}/components/properties.stories.d.ts +0 -0
- /package/{storybook-static/components/schub-logo.d.ts → dist/components/pstdio-logo.d.ts} +0 -0
- /package/{storybook-static → dist}/components/resource-badge.d.ts +0 -0
- /package/{storybook-static → dist}/components/resource-badge.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/collaborative-markdown-editor/awareness-cursors.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/collaborative-markdown-editor/collaborative-markdown-editor.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/index.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/markdown-editor/markdown-editor.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/markdown-editor/markdown-editor.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/markdown-editor/plugins/ReferenceLinkPlugin/ReferenceLinkNode.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/markdown-editor/plugins/ReferenceLinkPlugin/ReferenceLinkTransformer.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/markdown-editor/plugins/ReferenceLinkPlugin/index.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/commands.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/events.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/CommentPlugin/CommentPlugin.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/CommentPlugin/hooks/useCommentCommands.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/CommentPlugin/hooks/useCommentSchema.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/CommentPlugin/nodes/CommentNode/CommentNode.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/ImperativeAPIPlugin.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/KeyboardShortcutPlugin.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/ReferenceMenuOption.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/ReferenceMenuPlugin.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/components/ReferenceMenu/ReferenceMenu.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/components/ReferenceMenu/ReferenceMenuItem.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/constants.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/hooks/useContextLookup.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/utils/checkForTriggers.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/utils/getSortedMenuOptions.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/ReferencePlugin/ReferencePlugin.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/ReferencePlugin/nodes/ReferenceNode/ReferenceNode.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/keyboard-shortcuts.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/prompt-input.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/prompt-input.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/theme/prompt-input-theme.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/utils.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/rich-message/plugins/ReferenceLinkPlugin/ReferenceLinkNode.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/rich-message/plugins/ReferenceLinkPlugin/ReferenceLinkTransformer.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/rich-message/plugins/ReferenceLinkPlugin/index.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/rich-message/rich-message.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/rich-message/rich-message.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/components/content-editable.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/components/default-rich-text-components.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/editor-config.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/nodes/DataTableNode.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/nodes/DataTableNode.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/plugins/CodePlugin/CodeBlockPlugin.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/plugins/CodePlugin/CodeNode.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/plugins/EquationPlugin/EquationComponent.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/plugins/EquationPlugin/EquationNode.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/plugins/EquationPlugin/EquationPlugin.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/plugins/EquationPlugin/KatexRenderer.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/FloatingTextFormatToolbarPlugin.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/index.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/plugins/HorizontalRulePlugin/HorizontalRuleNode.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/plugins/HorizontalRulePlugin/horizontalRule.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/plugins/LinkEditorPlugin/LinkEditorPlugin.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/plugins/LinkEditorPlugin/LinkPlugin.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/plugins/LinkEditorPlugin/utils/getSelectedNode.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/plugins/LinkEditorPlugin/utils/setFloatingElemPos.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/plugins/LinkEditorPlugin/utils/url.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/plugins/StateUpdatePlugin.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/plugins/TableActionMenuPlugin/TableActionMenuPlugin.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/plugins/TableCellResizerPlugin/TableCellResizerPlugin.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/plugins/ToggleEditablePlugin.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/plugins/TreeViewPlugin/TreeViewPlugin.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/transformers/markdown-transformers.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/types/rich-text-components.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/theme/report-theme.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/theme/rich-text-theme.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/types.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/utils/markdown.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/utils/mediaType.d.ts +0 -0
- /package/{storybook-static → dist}/components/slider.d.ts +0 -0
- /package/{storybook-static → dist}/components/style-guide-data.d.ts +0 -0
- /package/{storybook-static → dist}/components/style-guide.d.ts +0 -0
- /package/{storybook-static → dist}/components/toaster.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/tooltip.d.ts +0 -0
- /package/{storybook-static → dist}/theme/global.d.ts +0 -0
- /package/{storybook-static → dist}/theme/index.d.ts +0 -0
- /package/{storybook-static → dist}/theme/primitives/fonts.d.ts +0 -0
- /package/{storybook-static → dist}/theme/primitives/sizes.d.ts +0 -0
- /package/{storybook-static → dist}/theme/recipes/alert.d.ts +0 -0
- /package/{storybook-static → dist}/theme/recipes/button.d.ts +0 -0
- /package/{storybook-static → dist}/theme/recipes/dialog.d.ts +0 -0
- /package/{storybook-static → dist}/theme/recipes/divider.d.ts +0 -0
- /package/{storybook-static → dist}/theme/recipes/drawer.d.ts +0 -0
- /package/{storybook-static → dist}/theme/recipes/editable.d.ts +0 -0
- /package/{storybook-static → dist}/theme/recipes/form.d.ts +0 -0
- /package/{storybook-static → dist}/theme/recipes/input.d.ts +0 -0
- /package/{storybook-static → dist}/theme/recipes/menu.d.ts +0 -0
- /package/{storybook-static → dist}/theme/recipes/popover.d.ts +0 -0
- /package/{storybook-static → dist}/theme/recipes/progress-circle.d.ts +0 -0
- /package/{storybook-static → dist}/theme/recipes/skeleton.d.ts +0 -0
- /package/{storybook-static → dist}/theme/recipes/textarea.d.ts +0 -0
- /package/{storybook-static → dist}/theme/recipes/tooltip.d.ts +0 -0
- /package/{storybook-static → dist}/theme/theme.d.ts +0 -0
- /package/{storybook-static → dist}/theme/tokens/borders.d.ts +0 -0
- /package/{storybook-static → dist}/theme/tokens/colors.d.ts +0 -0
- /package/{storybook-static → dist}/theme/tokens/layer-styles.d.ts +0 -0
- /package/{storybook-static → dist}/theme/tokens/shadows.d.ts +0 -0
- /package/{storybook-static → dist}/theme/tokens/text.d.ts +0 -0
- /package/{storybook-static → dist}/utils/formats.d.ts +0 -0
- /package/{storybook-static → dist}/utils/get-file-type-icon.d.ts +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
span.editor-equation{display:inline-block}.editor-equation span{cursor:inherit}.editor-equation{-webkit-user-select:none;user-select:none}.katex-display{overflow-x:auto;overflow-y:hidden}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import{R as a}from"./rich-message-BIkzo1SM.js";import"./iframe-B8FSoBNY.js";import"./preload-helper-PPVm8Dsz.js";import"./compiler-runtime-BXE7OOXE.js";import"./rich-text-theme-Bkhh9rAZ.js";import"./index-DaXC_qY_.js";import"./index-DpB4ozcR.js";import"./factory-DAJZwK4o.js";import"./flex-DAJL4AFZ.js";import"./CodeBlockPlugin-C3OWpvP8.js";import"./index-B0y2_lLF.js";import"./index-cFwdnc0b.js";import"./create-recipe-context-BU56IzEo.js";import"./textarea-rqmaWSc5.js";import"./factory-BR3bc_RM.js";import"./use-field-context-DoxKQlMm.js";import"./computed-style-C0hzrq9-.js";import"./table-BKNSzs2r.js";import"./create-slot-recipe-context-DAhDE6G_.js";import"./TreeViewPlugin-CyVKCrKJ.js";import"./markdown-BLUemkxK.js";import"./resource-badge-Bw5UoU4J.js";import"./createLucideIcon-CcBBUKX8.js";import"./file-text-D5m8MJlG.js";import"./tooltip-DZxUoouw.js";import"./portal-CZHfPTRw.js";import"./normalize-props-D7NI5JRu.js";import"./tooltip-C_a-XGZ8.js";import"./use-presence-context-DK2PGZth.js";import"./create-split-props-u5h9OPvL.js";import"./overflow-CkG1DOya.js";import"./icon-button-DHiUe7rR.js";import"./button-C7it2n8t.js";import"./spinner-ZYH_gvW-.js";import"./index-CXwl6T4k.js";import"./x-D42ziktz.js";const q={title:"Chat UI/DataTableNode",component:a,parameters:{layout:"padded"}},r=`# DataTableNode Demo
|
|
2
|
-
|
|
3
|
-
This demonstrates how markdown tables are rendered using the new DataTableNode instead of editable table nodes.
|
|
4
|
-
|
|
5
|
-
## Simple Table
|
|
6
|
-
|
|
7
|
-
| Name | Age | Department |
|
|
8
|
-
|------|-----|------------|
|
|
9
|
-
| Alice| 28 | Engineering|
|
|
10
|
-
| Bob | 34 | Design |
|
|
11
|
-
| Carol| 31 | Marketing |
|
|
12
|
-
|
|
13
|
-
## Data Types Table
|
|
14
|
-
|
|
15
|
-
| Field | Value | Type | Active |
|
|
16
|
-
|-------|-------|------|--------|
|
|
17
|
-
| Temperature | 23.5 | number | true |
|
|
18
|
-
| Status | Running | string | true |
|
|
19
|
-
| Count | 42 | number | false |
|
|
20
|
-
| Mode | Auto | string | true |
|
|
21
|
-
|
|
22
|
-
This table shows different data types that are properly handled by the DataTable component with appropriate icons and formatting.
|
|
23
|
-
`,e={args:{defaultState:r,debug:!1}},t={args:{defaultState:r,debug:!0}};e.parameters={...e.parameters,docs:{...e.parameters?.docs,source:{originalSource:`{
|
|
24
|
-
args: {
|
|
25
|
-
defaultState: tableMarkdown,
|
|
26
|
-
debug: false
|
|
27
|
-
}
|
|
28
|
-
}`,...e.parameters?.docs?.source}}};t.parameters={...t.parameters,docs:{...t.parameters?.docs,source:{originalSource:`{
|
|
29
|
-
args: {
|
|
30
|
-
defaultState: tableMarkdown,
|
|
31
|
-
debug: true
|
|
32
|
-
}
|
|
33
|
-
}`,...t.parameters?.docs?.source}}};const z=["TableInRichText","DebugMode"];export{t as DebugMode,e as TableInRichText,z as __namedExportsOrder,q as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as l,j as s}from"./iframe-B8FSoBNY.js";import{c}from"./compiler-runtime-BXE7OOXE.js";import{o as f}from"./rich-text-theme-Bkhh9rAZ.js";import{h as E}from"./CodeBlockPlugin-C3OWpvP8.js";import"./preload-helper-PPVm8Dsz.js";import"./index-DaXC_qY_.js";import"./index-DpB4ozcR.js";import"./factory-DAJZwK4o.js";import"./flex-DAJL4AFZ.js";import"./index-B0y2_lLF.js";import"./index-cFwdnc0b.js";import"./create-recipe-context-BU56IzEo.js";import"./textarea-rqmaWSc5.js";import"./factory-BR3bc_RM.js";import"./use-field-context-DoxKQlMm.js";import"./computed-style-C0hzrq9-.js";import"./table-BKNSzs2r.js";import"./create-slot-recipe-context-DAhDE6G_.js";function u(p){const t=c.c(5),{equation:a,inline:o}=p,m=l.useRef(null);let n,e;t[0]!==a||t[1]!==o?(n=()=>{const i=m.current;i!==null&&E.render(a,i,{displayMode:!o,errorColor:"#cc0000",output:"html",strict:"warn",throwOnError:!1,trust:!1})},e=[a,o],t[0]=a,t[1]=o,t[2]=n,t[3]=e):(n=t[2],e=t[3]),l.useEffect(n,e);let r;return t[4]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsxs(s.Fragment,{children:[s.jsx("img",{src:"#",alt:""}),s.jsx("span",{ref:m}),s.jsx("img",{src:"#",alt:""})]}),t[4]=r):r=t[4],r}u.__docgenInfo={description:"",methods:[],displayName:"KatexRenderer"};class x extends l.Component{state={hasError:!1};static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t){this.props.onError(t)}render(){return this.state.hasError?null:this.props.children}}function h(p){const t=c.c(8),{equation:a,inline:o}=p,[m]=f(),[n]=l.useState(a);let e;t[0]!==m?(e=d=>m._onError(d),t[0]=m,t[1]=e):e=t[1];let r;t[2]!==n||t[3]!==o?(r=s.jsx(u,{equation:n,inline:o}),t[2]=n,t[3]=o,t[4]=r):r=t[4];let i;return t[5]!==e||t[6]!==r?(i=s.jsx(x,{onError:e,children:r}),t[5]=e,t[6]=r,t[7]=i):i=t[7],i}h.__docgenInfo={description:"",methods:[],displayName:"EquationComponent",props:{equation:{required:!0,tsType:{name:"string"},description:""},inline:{required:!0,tsType:{name:"boolean"},description:""}}};export{h as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@font-face{font-family:KaTeX_AMS;src:url(./KaTeX_AMS-Regular-BQhdFMY1.woff2) format("woff2"),url(./KaTeX_AMS-Regular-DMm9YOAa.woff) format("woff"),url(./KaTeX_AMS-Regular-DRggAlZN.ttf) format("truetype");font-weight:400;font-style:normal;font-display:block}@font-face{font-family:KaTeX_Caligraphic;src:url(./KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2) format("woff2"),url(./KaTeX_Caligraphic-Bold-BEiXGLvX.woff) format("woff"),url(./KaTeX_Caligraphic-Bold-ATXxdsX0.ttf) format("truetype");font-weight:700;font-style:normal;font-display:block}@font-face{font-family:KaTeX_Caligraphic;src:url(./KaTeX_Caligraphic-Regular-Di6jR-x-.woff2) format("woff2"),url(./KaTeX_Caligraphic-Regular-CTRA-rTL.woff) format("woff"),url(./KaTeX_Caligraphic-Regular-wX97UBjC.ttf) format("truetype");font-weight:400;font-style:normal;font-display:block}@font-face{font-family:KaTeX_Fraktur;src:url(./KaTeX_Fraktur-Bold-CL6g_b3V.woff2) format("woff2"),url(./KaTeX_Fraktur-Bold-BsDP51OF.woff) format("woff"),url(./KaTeX_Fraktur-Bold-BdnERNNW.ttf) format("truetype");font-weight:700;font-style:normal;font-display:block}@font-face{font-family:KaTeX_Fraktur;src:url(./KaTeX_Fraktur-Regular-CTYiF6lA.woff2) format("woff2"),url(./KaTeX_Fraktur-Regular-Dxdc4cR9.woff) format("woff"),url(./KaTeX_Fraktur-Regular-CB_wures.ttf) format("truetype");font-weight:400;font-style:normal;font-display:block}@font-face{font-family:KaTeX_Main;src:url(./KaTeX_Main-Bold-Cx986IdX.woff2) format("woff2"),url(./KaTeX_Main-Bold-Jm3AIy58.woff) format("woff"),url(./KaTeX_Main-Bold-waoOVXN0.ttf) format("truetype");font-weight:700;font-style:normal;font-display:block}@font-face{font-family:KaTeX_Main;src:url(./KaTeX_Main-BoldItalic-DxDJ3AOS.woff2) format("woff2"),url(./KaTeX_Main-BoldItalic-SpSLRI95.woff) format("woff"),url(./KaTeX_Main-BoldItalic-DzxPMmG6.ttf) format("truetype");font-weight:700;font-style:italic;font-display:block}@font-face{font-family:KaTeX_Main;src:url(./KaTeX_Main-Italic-NWA7e6Wa.woff2) format("woff2"),url(./KaTeX_Main-Italic-BMLOBm91.woff) format("woff"),url(./KaTeX_Main-Italic-3WenGoN9.ttf) format("truetype");font-weight:400;font-style:italic;font-display:block}@font-face{font-family:KaTeX_Main;src:url(./KaTeX_Main-Regular-B22Nviop.woff2) format("woff2"),url(./KaTeX_Main-Regular-Dr94JaBh.woff) format("woff"),url(./KaTeX_Main-Regular-ypZvNtVU.ttf) format("truetype");font-weight:400;font-style:normal;font-display:block}@font-face{font-family:KaTeX_Math;src:url(./KaTeX_Math-BoldItalic-CZnvNsCZ.woff2) format("woff2"),url(./KaTeX_Math-BoldItalic-iY-2wyZ7.woff) format("woff"),url(./KaTeX_Math-BoldItalic-B3XSjfu4.ttf) format("truetype");font-weight:700;font-style:italic;font-display:block}@font-face{font-family:KaTeX_Math;src:url(./KaTeX_Math-Italic-t53AETM-.woff2) format("woff2"),url(./KaTeX_Math-Italic-DA0__PXp.woff) format("woff"),url(./KaTeX_Math-Italic-flOr_0UB.ttf) format("truetype");font-weight:400;font-style:italic;font-display:block}@font-face{font-family:KaTeX_SansSerif;src:url(./KaTeX_SansSerif-Bold-D1sUS0GD.woff2) format("woff2"),url(./KaTeX_SansSerif-Bold-DbIhKOiC.woff) format("woff"),url(./KaTeX_SansSerif-Bold-CFMepnvq.ttf) format("truetype");font-weight:700;font-style:normal;font-display:block}@font-face{font-family:KaTeX_SansSerif;src:url(./KaTeX_SansSerif-Italic-C3H0VqGB.woff2) format("woff2"),url(./KaTeX_SansSerif-Italic-DN2j7dab.woff) format("woff"),url(./KaTeX_SansSerif-Italic-YYjJ1zSn.ttf) format("truetype");font-weight:400;font-style:italic;font-display:block}@font-face{font-family:KaTeX_SansSerif;src:url(./KaTeX_SansSerif-Regular-DDBCnlJ7.woff2) format("woff2"),url(./KaTeX_SansSerif-Regular-CS6fqUqJ.woff) format("woff"),url(./KaTeX_SansSerif-Regular-BNo7hRIc.ttf) format("truetype");font-weight:400;font-style:normal;font-display:block}@font-face{font-family:KaTeX_Script;src:url(./KaTeX_Script-Regular-D3wIWfF6.woff2) format("woff2"),url(./KaTeX_Script-Regular-D5yQViql.woff) format("woff"),url(./KaTeX_Script-Regular-C5JkGWo-.ttf) format("truetype");font-weight:400;font-style:normal;font-display:block}@font-face{font-family:KaTeX_Size1;src:url(./KaTeX_Size1-Regular-mCD8mA8B.woff2) format("woff2"),url(./KaTeX_Size1-Regular-C195tn64.woff) format("woff"),url(./KaTeX_Size1-Regular-Dbsnue_I.ttf) format("truetype");font-weight:400;font-style:normal;font-display:block}@font-face{font-family:KaTeX_Size2;src:url(./KaTeX_Size2-Regular-Dy4dx90m.woff2) format("woff2"),url(./KaTeX_Size2-Regular-oD1tc_U0.woff) format("woff"),url(./KaTeX_Size2-Regular-B7gKUWhC.ttf) format("truetype");font-weight:400;font-style:normal;font-display:block}@font-face{font-family:KaTeX_Size3;src:url(data:font/woff2;base64,d09GMgABAAAAAA4oAA4AAAAAHbQAAA3TAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgRQIDgmcDBEICo1oijYBNgIkA14LMgAEIAWJAAeBHAyBHBvbGiMRdnO0IkRRkiYDgr9KsJ1NUAf2kILNxgUmgqIgq1P89vcbIcmsQbRps3vCcXdYOKSWEPEKgZgQkprQQsxIXUgq0DqpGKmIvrgkeVGtEQD9DzAO29fM9jYhxZEsL2FeURH2JN4MIcTdO049NCVdxQ/w9NrSYFEBKTDKpLKfNkCGDc1RwjZLQcm3vqJ2UW9Xfa3tgAHz6ivp6vgC2yD4/6352ndnN0X0TL7seypkjZlMsjmZnf0Mm5Q+JykRWQBKCVCVPbARPXWyQtb5VgLB6Biq7/Uixcj2WGqdI8tGSgkuRG+t910GKP2D7AQH0DB9FMDW/obJZ8giFI3Wg8Cvevz0M+5m0rTh7XDBlvo9Y4vm13EXmfttwI4mBo1EG15fxJhUiCLbiiyCf/ZA6MFAhg3pGIZGdGIVjtPn6UcMk9A/UUr9PhoNsCENw1APAq0gpH73e+M+0ueyHbabc3vkbcdtzcf/fiy+NxQEjf9ud/ELBHAXJ0nk4z+MXH2Ev/kWyV4k7SkvpPc9Qr38F6RPWnM9cN6DJ0AdD1BhtgABtmoRoFCvPsBAumNm6soZG2Gk5GyVTo2sJncSyp0jQTYoR6WDvTwaaEcHsxHfvuWhHA3a6bN7twRKtcGok6NsCi7jYRrM2jExsUFMxMQYuJbMhuWNOumEJy9hi29Dmg5zMp/A5+hhPG19j1vBrq8JTLr8ki5VLPmG/PynJHVul440bxg5xuymHUFPBshC+nA9I1FmwbRBTNHAcik3Oae0cxKoI3MOriM42UrPe51nsaGxJ+WfXubAsP84aabUlQSJ1IiE0iPETLUU4CATgfXSCSpuRFRmCGbO+wSpAnzaeaCYW1VNEysRtuXCEL1kUFUbbtMv3Tilt/1c11jt3Q5bbMa84cpWipp8Elw3MZhOHsOlwwVUQM3lAR35JiFQbaYCRnMF2lxAWoOg2gyoIV4PouX8HytNIfLhqpJtXB4vjiViUI8IJ7bkC4ikkQvKksnOTKICwnqWSZ9YS5f0WCxmpgjbIq7EJcM4aI2nmhLNY2JIUgOjXZFWBHb+x5oh6cwb0Tv1ackHdKi0I9OO2wE9aogIOn540CCCziyhN+IaejtgAONKznHlHyutPrHGwCx9S6B8kfS4Mfi4Eyv7OU730bT1SCBjt834cXsf43zVjPUqqJjgrjeGnBxSG4aYAKFuVbeCfkDIjAqMb6yLNIbCuvXhMH2/+k2vkNpkORhR59N1CkzoOENvneIosjYmuTxlhUzaGEJQ/iWqx4dmwpmKjrwTiTGTCVozNAYqk/zXOndWxuWSmJkQpJw3pK5KX6QrLt5LATMqpmPAQhkhK6PUjzHUn7E0gHE0kPE0iKkolgkUx9SZmVAdDgpffdyJKg3k7VmzYGCwVXGz/tXmkOIp+vcWs+EMuhhvN0h9uhfzWJziBQmCREGSIFmQIkgVpAnSBRmC//6hkLZwaVhwxlrJSOdqlFtOYxlau9F2QN5Y98xmIAsiM1HVp2VFX+DHHGg6Ecjh3vmqtidX3qHI2qycTk/iwxSt5UzTmEP92ZBnEWTk4Mx8Mpl78ZDokxg/KWb+Q0QkvdKVmq3TMW+RXEgrsziSAfNXFMhDc60N5N9jQzjfO0kBKpUZl0ZmwJ41j/B9Hz6wmRaJB84niNmQrzp9eSlQCDDzazGDdVi3P36VZQ+Jy4f9UBNp+3zTjqI4abaFAm+GShVaXlsGdF3FYzZcDI6cori4kMxUECl9IjJZpzkvitAoxKue+90pDMvcKRxLl53TmOKCmV/xRolNKSqqUxc6LStOETmFOiLZZptlZepcKiAzteG8PEdpnQpbOMNcMsR4RR2Bs0cKFEvSmIjAFcnarqwUL4lDhHmnVkwu1IwshbiCcgvOheZuYyOteufZZwlcTlLgnZ3o/WcYdzZHW/WGaqaVfmTZ1aWCceJjkbZqsfbkOtcFlUZM/jy+hXHDbaUobWqqXaeWobbLO99yG5N3U4wxco0rQGGcOLASFMXeJoham8M+/x6O2WywK2l4HGbq1CoUyC/IZikQhdq3SiuNrvAEj0AVu9x2x3lp/xWzahaxidezFVtdcb5uEnzyl0ZmYiuKI0exvCd4Xc9CV1KB0db00z92wDPde0kukbvZIWN6jUWFTmPIC/Y4UPCm8UfDTFZpZNon1qLFTkBhxzB+FjQRA2Q/YRJT8pQigslMaUpFyAG8TMlXigiqmAZX4xgijKjRlGpLE0GdplRfCaJo0JQaSxNBk6ZmMzcya0FmrcisDdn0Q3HI2sWSppYigmlM1XT/kLQZSNpMJG0WkjYbSZuDpM1F0uYhFc1HxU4m1QJjDK6iL0S5uSj5rgXc3RejEigtcRBtqYPQsiTskmO5vosV+q4VGIKbOkDg0jtRrq+Em1YloaTFar3EGr1EUC8R0kus1Uus00usL97ABr2BjXoDm/QGNhuWtMVBKOwg/i78lT7hBsAvDmwHc/ao3vmUbBmhjeYySZNWvGkfZAgISDSaDo1SVpzGDsAEkF8B+gEapViUoZgUWXcRIGFZNm6gWbAKk0bp0k1MHG9fLYtV4iS2SmLEQFARzRcnf9PUS0LVn05/J9MiRRBU3v2IrvW974v4N00L7ZMk0wXP1409CHo/an8zTRHD3eSJ6m8D4YMkZNl3M79sqeuAsr/m3f+8/yl7A50aiAEJgeBeMWzu7ui9UfUBCe2TIqZIoOd/3/udRBOQidQZUERzb2/VwZN1H/Sju82ew2H2Wfr6qvfVf3hqwDvAIpkQVFy4B9Pe9e4/XvPeceu7h3dvO56iJPf0+A6cqA2ip18ER+iFgggiuOkvj24bby0N9j2UHIkgqIt+sVgfodC4YghLSMjSZbH0VR/6dMDrYJeKHilKTemt6v6kvzvn3/RrdWtr0GoN/xL+Sex/cPYLUpepx9cz/D46UPU5KXgAQa+NDps1v6J3xP1i2HtaDB0M9aX2deA7SYff//+gUCovMmIK/qfsFcOk+4Y5ZN97XlG6zebqtMbKgeRFi51vnxTQYBUik2rS/Cn6PC8ADR8FGxsRPB82dzfND90gIcshOcYUkfjherBz53odpm6TP8txlwOZ71xmfHHOvq053qFF/MRlS3jP0ELudrf2OeN8DHvp6ZceLe8qKYvWz/7yp0u4dKPfli3CYq0O13Ih71mylJ80tOi10On8wi+F4+LWgDPeJ30msSQt9/vkmHq9/Lvo2b461mP801v3W4xTcs6CbvF9UDdrSt+A8OUbpSh55qAUFXWznBBfdeJ8a4d7ugT5tvxUza3h9m4H7ptTqiG4z0g5dc0X29OcGlhpGFMpQo9ytTS+NViZpNdvU4kWx+LKxNY10kQ1yqGXrhe4/1nvP7E+nd5A92TtaRplbHSqoIdOqtRWti+fkB5/n1+/VvCmz12pG1kpQWsfi1ftlBobm0bpngs16CHkbIwdLnParxtTV3QYRlfJ0KFskH7pdN/YDn+yRuSd7sNH3aO0DYPggk6uWuXrfOc+fa3VTxFVvKaNxHsiHmsXyCLIE5yuOeN3/Jdf8HBL/5M6shjyhxHx9BjB1O0+4NLOnjLLSxwO7ukN4jMbOIcD879KLSi6Pk61Oqm2377n8079PXEEQ7cy7OKEC9nbpet118fxweTafpt69x/Bt8UqGzNQt7aelpc44dn5cqhwf71+qKp/Zf/+a0zcizOUWpl/iBcSXip0pplkatCchoH5c5aUM8I7/dWxAej8WicPL1URFZ9BDJelUwEwTkGqUhgSlydVes95YdXvhh9Gfz/aeFWvgVb4tuLbcv4+wLdutVZv/cUonwBD/6eDlE0aSiKK/uoH3+J1wDE/jMVqY2ysGufN84oIXB0sPzy8ollX/LegY74DgJXJR57sn+VGza0x3DnuIgABFM15LmajjjsNlYj+JEZGbuRYcAMOWxFkPN2w6Wd46xo4gVWQR/X4lyI/R6K/YK0110GzudPRW7Y+UOBGTfNNzHeYT0fiH0taunBpq9HEW8OKSaBGj21L0MqenEmNRWBAWDWAk4CpNoEZJ2tTaPFgbQYj8HxtFilErs3BTRwT8uO1NXQaWfIotchmPkAF5mMBAliEmZiOGVgCG9LgRzpscMAOOwowlT3JhusdazXGSC/hxR3UlmWVwWHpOIKheqONvjyhSiTHIkVUco5bnji8m//zL7PKaT1Vl5I6UE609f+gkr6MZKVyKc7zJRmCahLsdlyA5fdQkRSan9LgnnLEyGSkaKJCJog0wAgvepWBt80+1yKln1bMVtCljfNWDueKLsWwaEbBSfSPTEmVRsUcYYMnEjcjeyCZzBXK9E9BYBXLKjOSpUDR+nEV3TFSUdQaz+ot98QxgXwx0GQ+EEUAKB2qZPkQQ0GqFD8UPFMqyaCHM24BZmSGic9EYMagKizOw9Hz50DMrDLrqqLkTAhplMictiCAx5S3BIUQdeJeLnBy2CNtMfz6cV4u8XKoFZQesbf9YZiIERiHjaNodDW6LgcirX/mPnJIkBGDUpTBhSa0EIr38D5hCIszhCM8URGBqImoWjpvpt1ebu/v3Gl3qJfMnNM+9V+kiRFyROTPHQWOcs1dNW94/ukKMPZBvDi55i5CttdeJz84DLngLqjcdwEZ87bFFR8CIG35OAkDVN6VRDZ7aq67NteYqZ2lpT8oYB2CytoBd6VuAx4WgiAsnuj3WohG+LugzXiQRDeM3XYXlULv4dp5VFYC) format("woff2"),url(./KaTeX_Size3-Regular-CTq5MqoE.woff) format("woff"),url(./KaTeX_Size3-Regular-DgpXs0kz.ttf) format("truetype");font-weight:400;font-style:normal;font-display:block}@font-face{font-family:KaTeX_Size4;src:url(./KaTeX_Size4-Regular-Dl5lxZxV.woff2) format("woff2"),url(./KaTeX_Size4-Regular-BF-4gkZK.woff) format("woff"),url(./KaTeX_Size4-Regular-DWFBv043.ttf) format("truetype");font-weight:400;font-style:normal;font-display:block}@font-face{font-family:KaTeX_Typewriter;src:url(./KaTeX_Typewriter-Regular-CO6r4hn1.woff2) format("woff2"),url(./KaTeX_Typewriter-Regular-C0xS9mPB.woff) format("woff"),url(./KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf) format("truetype");font-weight:400;font-style:normal;font-display:block}.katex{font: 1.21em KaTeX_Main,Times New Roman,serif;line-height:1.2;text-indent:0;text-rendering:auto}.katex *{-ms-high-contrast-adjust:none!important}.katex *{border-color:currentColor}.katex .katex-version:after{content:"0.16.33"}.katex .katex-mathml{position:absolute;clip:rect(1px,1px,1px,1px);padding:0;border:0;height:1px;width:1px;overflow:hidden}.katex .katex-html>.newline{display:block}.katex .base{position:relative;display:inline-block;white-space:nowrap;width:-webkit-min-content;width:-moz-min-content;width:min-content}.katex .strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-weight:700;font-style:italic}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathboldfrak,.katex .textboldfrak{font-family:KaTeX_Fraktur;font-weight:700}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathsfit,.katex .mathitsf,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{display:inline-table;table-layout:fixed;border-collapse:collapse}.katex .vlist-r{display:table-row}.katex .vlist{display:table-cell;vertical-align:bottom;position:relative}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{overflow:hidden;width:0}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{display:table-cell;vertical-align:bottom;font-size:1px;width:2px;min-width:2px}.katex .vbox{display:inline-flex;flex-direction:column;align-items:baseline}.katex .hbox{display:inline-flex;flex-direction:row;width:100%}.katex .thinbox{display:inline-flex;flex-direction:row;width:0;max-width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{display:inline-block;width:100%;border-bottom-style:solid}.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .underline .underline-line,.katex .hline,.katex .hdashline,.katex .rule{min-height:1px}.katex .mspace{display:inline-block}.katex .llap,.katex .rlap,.katex .clap{width:0;position:relative}.katex .llap>.inner,.katex .rlap>.inner,.katex .clap>.inner{position:absolute}.katex .llap>.fix,.katex .rlap>.fix,.katex .clap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .rlap>.inner,.katex .clap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{display:inline-block;border:solid 0;position:relative}.katex .overline .overline-line,.katex .underline .underline-line,.katex .hline{display:inline-block;width:100%;border-bottom-style:solid}.katex .hdashline{display:inline-block;width:100%;border-bottom-style:dashed}.katex .sqrt>.root{margin-left:.2777777778em;margin-right:-.5555555556em}.katex .sizing.reset-size1.size1,.katex .fontsize-ensurer.reset-size1.size1{font-size:1em}.katex .sizing.reset-size1.size2,.katex .fontsize-ensurer.reset-size1.size2{font-size:1.2em}.katex .sizing.reset-size1.size3,.katex .fontsize-ensurer.reset-size1.size3{font-size:1.4em}.katex .sizing.reset-size1.size4,.katex .fontsize-ensurer.reset-size1.size4{font-size:1.6em}.katex .sizing.reset-size1.size5,.katex .fontsize-ensurer.reset-size1.size5{font-size:1.8em}.katex .sizing.reset-size1.size6,.katex .fontsize-ensurer.reset-size1.size6{font-size:2em}.katex .sizing.reset-size1.size7,.katex .fontsize-ensurer.reset-size1.size7{font-size:2.4em}.katex .sizing.reset-size1.size8,.katex .fontsize-ensurer.reset-size1.size8{font-size:2.88em}.katex .sizing.reset-size1.size9,.katex .fontsize-ensurer.reset-size1.size9{font-size:3.456em}.katex .sizing.reset-size1.size10,.katex .fontsize-ensurer.reset-size1.size10{font-size:4.148em}.katex .sizing.reset-size1.size11,.katex .fontsize-ensurer.reset-size1.size11{font-size:4.976em}.katex .sizing.reset-size2.size1,.katex .fontsize-ensurer.reset-size2.size1{font-size:.8333333333em}.katex .sizing.reset-size2.size2,.katex .fontsize-ensurer.reset-size2.size2{font-size:1em}.katex .sizing.reset-size2.size3,.katex .fontsize-ensurer.reset-size2.size3{font-size:1.1666666667em}.katex .sizing.reset-size2.size4,.katex .fontsize-ensurer.reset-size2.size4{font-size:1.3333333333em}.katex .sizing.reset-size2.size5,.katex .fontsize-ensurer.reset-size2.size5{font-size:1.5em}.katex .sizing.reset-size2.size6,.katex .fontsize-ensurer.reset-size2.size6{font-size:1.6666666667em}.katex .sizing.reset-size2.size7,.katex .fontsize-ensurer.reset-size2.size7{font-size:2em}.katex .sizing.reset-size2.size8,.katex .fontsize-ensurer.reset-size2.size8{font-size:2.4em}.katex .sizing.reset-size2.size9,.katex .fontsize-ensurer.reset-size2.size9{font-size:2.88em}.katex .sizing.reset-size2.size10,.katex .fontsize-ensurer.reset-size2.size10{font-size:3.4566666667em}.katex .sizing.reset-size2.size11,.katex .fontsize-ensurer.reset-size2.size11{font-size:4.1466666667em}.katex .sizing.reset-size3.size1,.katex .fontsize-ensurer.reset-size3.size1{font-size:.7142857143em}.katex .sizing.reset-size3.size2,.katex .fontsize-ensurer.reset-size3.size2{font-size:.8571428571em}.katex .sizing.reset-size3.size3,.katex .fontsize-ensurer.reset-size3.size3{font-size:1em}.katex .sizing.reset-size3.size4,.katex .fontsize-ensurer.reset-size3.size4{font-size:1.1428571429em}.katex .sizing.reset-size3.size5,.katex .fontsize-ensurer.reset-size3.size5{font-size:1.2857142857em}.katex .sizing.reset-size3.size6,.katex .fontsize-ensurer.reset-size3.size6{font-size:1.4285714286em}.katex .sizing.reset-size3.size7,.katex .fontsize-ensurer.reset-size3.size7{font-size:1.7142857143em}.katex .sizing.reset-size3.size8,.katex .fontsize-ensurer.reset-size3.size8{font-size:2.0571428571em}.katex .sizing.reset-size3.size9,.katex .fontsize-ensurer.reset-size3.size9{font-size:2.4685714286em}.katex .sizing.reset-size3.size10,.katex .fontsize-ensurer.reset-size3.size10{font-size:2.9628571429em}.katex .sizing.reset-size3.size11,.katex .fontsize-ensurer.reset-size3.size11{font-size:3.5542857143em}.katex .sizing.reset-size4.size1,.katex .fontsize-ensurer.reset-size4.size1{font-size:.625em}.katex .sizing.reset-size4.size2,.katex .fontsize-ensurer.reset-size4.size2{font-size:.75em}.katex .sizing.reset-size4.size3,.katex .fontsize-ensurer.reset-size4.size3{font-size:.875em}.katex .sizing.reset-size4.size4,.katex .fontsize-ensurer.reset-size4.size4{font-size:1em}.katex .sizing.reset-size4.size5,.katex .fontsize-ensurer.reset-size4.size5{font-size:1.125em}.katex .sizing.reset-size4.size6,.katex .fontsize-ensurer.reset-size4.size6{font-size:1.25em}.katex .sizing.reset-size4.size7,.katex .fontsize-ensurer.reset-size4.size7{font-size:1.5em}.katex .sizing.reset-size4.size8,.katex .fontsize-ensurer.reset-size4.size8{font-size:1.8em}.katex .sizing.reset-size4.size9,.katex .fontsize-ensurer.reset-size4.size9{font-size:2.16em}.katex .sizing.reset-size4.size10,.katex .fontsize-ensurer.reset-size4.size10{font-size:2.5925em}.katex .sizing.reset-size4.size11,.katex .fontsize-ensurer.reset-size4.size11{font-size:3.11em}.katex .sizing.reset-size5.size1,.katex .fontsize-ensurer.reset-size5.size1{font-size:.5555555556em}.katex .sizing.reset-size5.size2,.katex .fontsize-ensurer.reset-size5.size2{font-size:.6666666667em}.katex .sizing.reset-size5.size3,.katex .fontsize-ensurer.reset-size5.size3{font-size:.7777777778em}.katex .sizing.reset-size5.size4,.katex .fontsize-ensurer.reset-size5.size4{font-size:.8888888889em}.katex .sizing.reset-size5.size5,.katex .fontsize-ensurer.reset-size5.size5{font-size:1em}.katex .sizing.reset-size5.size6,.katex .fontsize-ensurer.reset-size5.size6{font-size:1.1111111111em}.katex .sizing.reset-size5.size7,.katex .fontsize-ensurer.reset-size5.size7{font-size:1.3333333333em}.katex .sizing.reset-size5.size8,.katex .fontsize-ensurer.reset-size5.size8{font-size:1.6em}.katex .sizing.reset-size5.size9,.katex .fontsize-ensurer.reset-size5.size9{font-size:1.92em}.katex .sizing.reset-size5.size10,.katex .fontsize-ensurer.reset-size5.size10{font-size:2.3044444444em}.katex .sizing.reset-size5.size11,.katex .fontsize-ensurer.reset-size5.size11{font-size:2.7644444444em}.katex .sizing.reset-size6.size1,.katex .fontsize-ensurer.reset-size6.size1{font-size:.5em}.katex .sizing.reset-size6.size2,.katex .fontsize-ensurer.reset-size6.size2{font-size:.6em}.katex .sizing.reset-size6.size3,.katex .fontsize-ensurer.reset-size6.size3{font-size:.7em}.katex .sizing.reset-size6.size4,.katex .fontsize-ensurer.reset-size6.size4{font-size:.8em}.katex .sizing.reset-size6.size5,.katex .fontsize-ensurer.reset-size6.size5{font-size:.9em}.katex .sizing.reset-size6.size6,.katex .fontsize-ensurer.reset-size6.size6{font-size:1em}.katex .sizing.reset-size6.size7,.katex .fontsize-ensurer.reset-size6.size7{font-size:1.2em}.katex .sizing.reset-size6.size8,.katex .fontsize-ensurer.reset-size6.size8{font-size:1.44em}.katex .sizing.reset-size6.size9,.katex .fontsize-ensurer.reset-size6.size9{font-size:1.728em}.katex .sizing.reset-size6.size10,.katex .fontsize-ensurer.reset-size6.size10{font-size:2.074em}.katex .sizing.reset-size6.size11,.katex .fontsize-ensurer.reset-size6.size11{font-size:2.488em}.katex .sizing.reset-size7.size1,.katex .fontsize-ensurer.reset-size7.size1{font-size:.4166666667em}.katex .sizing.reset-size7.size2,.katex .fontsize-ensurer.reset-size7.size2{font-size:.5em}.katex .sizing.reset-size7.size3,.katex .fontsize-ensurer.reset-size7.size3{font-size:.5833333333em}.katex .sizing.reset-size7.size4,.katex .fontsize-ensurer.reset-size7.size4{font-size:.6666666667em}.katex .sizing.reset-size7.size5,.katex .fontsize-ensurer.reset-size7.size5{font-size:.75em}.katex .sizing.reset-size7.size6,.katex .fontsize-ensurer.reset-size7.size6{font-size:.8333333333em}.katex .sizing.reset-size7.size7,.katex .fontsize-ensurer.reset-size7.size7{font-size:1em}.katex .sizing.reset-size7.size8,.katex .fontsize-ensurer.reset-size7.size8{font-size:1.2em}.katex .sizing.reset-size7.size9,.katex .fontsize-ensurer.reset-size7.size9{font-size:1.44em}.katex .sizing.reset-size7.size10,.katex .fontsize-ensurer.reset-size7.size10{font-size:1.7283333333em}.katex .sizing.reset-size7.size11,.katex .fontsize-ensurer.reset-size7.size11{font-size:2.0733333333em}.katex .sizing.reset-size8.size1,.katex .fontsize-ensurer.reset-size8.size1{font-size:.3472222222em}.katex .sizing.reset-size8.size2,.katex .fontsize-ensurer.reset-size8.size2{font-size:.4166666667em}.katex .sizing.reset-size8.size3,.katex .fontsize-ensurer.reset-size8.size3{font-size:.4861111111em}.katex .sizing.reset-size8.size4,.katex .fontsize-ensurer.reset-size8.size4{font-size:.5555555556em}.katex .sizing.reset-size8.size5,.katex .fontsize-ensurer.reset-size8.size5{font-size:.625em}.katex .sizing.reset-size8.size6,.katex .fontsize-ensurer.reset-size8.size6{font-size:.6944444444em}.katex .sizing.reset-size8.size7,.katex .fontsize-ensurer.reset-size8.size7{font-size:.8333333333em}.katex .sizing.reset-size8.size8,.katex .fontsize-ensurer.reset-size8.size8{font-size:1em}.katex .sizing.reset-size8.size9,.katex .fontsize-ensurer.reset-size8.size9{font-size:1.2em}.katex .sizing.reset-size8.size10,.katex .fontsize-ensurer.reset-size8.size10{font-size:1.4402777778em}.katex .sizing.reset-size8.size11,.katex .fontsize-ensurer.reset-size8.size11{font-size:1.7277777778em}.katex .sizing.reset-size9.size1,.katex .fontsize-ensurer.reset-size9.size1{font-size:.2893518519em}.katex .sizing.reset-size9.size2,.katex .fontsize-ensurer.reset-size9.size2{font-size:.3472222222em}.katex .sizing.reset-size9.size3,.katex .fontsize-ensurer.reset-size9.size3{font-size:.4050925926em}.katex .sizing.reset-size9.size4,.katex .fontsize-ensurer.reset-size9.size4{font-size:.462962963em}.katex .sizing.reset-size9.size5,.katex .fontsize-ensurer.reset-size9.size5{font-size:.5208333333em}.katex .sizing.reset-size9.size6,.katex .fontsize-ensurer.reset-size9.size6{font-size:.5787037037em}.katex .sizing.reset-size9.size7,.katex .fontsize-ensurer.reset-size9.size7{font-size:.6944444444em}.katex .sizing.reset-size9.size8,.katex .fontsize-ensurer.reset-size9.size8{font-size:.8333333333em}.katex .sizing.reset-size9.size9,.katex .fontsize-ensurer.reset-size9.size9{font-size:1em}.katex .sizing.reset-size9.size10,.katex .fontsize-ensurer.reset-size9.size10{font-size:1.2002314815em}.katex .sizing.reset-size9.size11,.katex .fontsize-ensurer.reset-size9.size11{font-size:1.4398148148em}.katex .sizing.reset-size10.size1,.katex .fontsize-ensurer.reset-size10.size1{font-size:.2410800386em}.katex .sizing.reset-size10.size2,.katex .fontsize-ensurer.reset-size10.size2{font-size:.2892960463em}.katex .sizing.reset-size10.size3,.katex .fontsize-ensurer.reset-size10.size3{font-size:.337512054em}.katex .sizing.reset-size10.size4,.katex .fontsize-ensurer.reset-size10.size4{font-size:.3857280617em}.katex .sizing.reset-size10.size5,.katex .fontsize-ensurer.reset-size10.size5{font-size:.4339440694em}.katex .sizing.reset-size10.size6,.katex .fontsize-ensurer.reset-size10.size6{font-size:.4821600771em}.katex .sizing.reset-size10.size7,.katex .fontsize-ensurer.reset-size10.size7{font-size:.5785920926em}.katex .sizing.reset-size10.size8,.katex .fontsize-ensurer.reset-size10.size8{font-size:.6943105111em}.katex .sizing.reset-size10.size9,.katex .fontsize-ensurer.reset-size10.size9{font-size:.8331726133em}.katex .sizing.reset-size10.size10,.katex .fontsize-ensurer.reset-size10.size10{font-size:1em}.katex .sizing.reset-size10.size11,.katex .fontsize-ensurer.reset-size10.size11{font-size:1.1996142719em}.katex .sizing.reset-size11.size1,.katex .fontsize-ensurer.reset-size11.size1{font-size:.2009646302em}.katex .sizing.reset-size11.size2,.katex .fontsize-ensurer.reset-size11.size2{font-size:.2411575563em}.katex .sizing.reset-size11.size3,.katex .fontsize-ensurer.reset-size11.size3{font-size:.2813504823em}.katex .sizing.reset-size11.size4,.katex .fontsize-ensurer.reset-size11.size4{font-size:.3215434084em}.katex .sizing.reset-size11.size5,.katex .fontsize-ensurer.reset-size11.size5{font-size:.3617363344em}.katex .sizing.reset-size11.size6,.katex .fontsize-ensurer.reset-size11.size6{font-size:.4019292605em}.katex .sizing.reset-size11.size7,.katex .fontsize-ensurer.reset-size11.size7{font-size:.4823151125em}.katex .sizing.reset-size11.size8,.katex .fontsize-ensurer.reset-size11.size8{font-size:.578778135em}.katex .sizing.reset-size11.size9,.katex .fontsize-ensurer.reset-size11.size9{font-size:.6945337621em}.katex .sizing.reset-size11.size10,.katex .fontsize-ensurer.reset-size11.size10{font-size:.8336012862em}.katex .sizing.reset-size11.size11,.katex .fontsize-ensurer.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .op-limits>.vlist-t{text-align:center}.katex .accent>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{display:inline-block;min-width:1px}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{display:block;position:absolute;width:100%;height:inherit;fill:currentColor;stroke:currentColor}.katex svg path{stroke:none}.katex svg{fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1}.katex img{border-style:none;min-width:0;min-height:0;max-width:none;max-height:none}.katex .stretchy{width:100%;display:block;position:relative;overflow:hidden}.katex .stretchy:before,.katex .stretchy:after{content:""}.katex .hide-tail{width:100%;position:relative;overflow:hidden}.katex .halfarrow-left{position:absolute;left:0;width:50.2%;overflow:hidden}.katex .halfarrow-right{position:absolute;right:0;width:50.2%;overflow:hidden}.katex .brace-left{position:absolute;left:0;width:25.1%;overflow:hidden}.katex .brace-center{position:absolute;left:25%;width:50%;overflow:hidden}.katex .brace-right{position:absolute;right:0;width:25.1%;overflow:hidden}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .x-arrow,.katex .mover,.katex .munder{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{box-sizing:border-box;border:.04em solid}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{box-sizing:border-box;border-top:.049em solid;border-right:.049em solid;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .eqn-num:before{counter-increment:katexEqnNo;content:"(" counter(katexEqnNo) ")"}.katex .mml-eqn-num:before{counter-increment:mmlEqnNo;content:"(" counter(mmlEqnNo) ")"}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{display:inline-block;position:absolute;right:calc(50% + .3em);text-align:left}.katex .cd-label-right{display:inline-block;position:absolute;left:calc(50% + .3em);text-align:right}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:block;text-align:center;white-space:nowrap}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{text-align:left;padding-left:2em}body{counter-reset:katexEqnNo mmlEqnNo}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as He,d as Fe,e as ze,q as $e,C as Ae,f as Oe,H as Pe,D as Ue,T as De,a as Me,b as We,S as qe,k as Ee,x as Je,g as ve}from"./CodeBlockPlugin-C3OWpvP8.js";import{T as Qe,M as Ge,Z as Ke,a0 as Xe,a1 as Ze,o as Ve,j as O,r as ye,aE as Ye,N as _e,aj as Te,aw as et,g as tt,a7 as nt,s as ot,aG as st,aH as it,aI as be,ak as lt,e as rt}from"./rich-text-theme-Bkhh9rAZ.js";import{j as n,r as x}from"./iframe-B8FSoBNY.js";import{R as at}from"./resource-badge-Bw5UoU4J.js";import{B as ct}from"./index-B0y2_lLF.js";import{c as ke}from"./compiler-runtime-BXE7OOXE.js";import{r as dt}from"./index-DaXC_qY_.js";import{T as g}from"./tooltip-DZxUoouw.js";import{T as _}from"./index-cFwdnc0b.js";import{I as b}from"./icon-button-DHiUe7rR.js";import{S as xe}from"./stack-CN4X31TA.js";class E extends Qe{__href;__label;static getType(){return"reference-link"}static clone(e){return new E(e.__href,e.__label,e.__key)}constructor(e,t,s){super(s),this.__href=e,this.__label=t}createDOM(e,t){return document.createElement("span")}updateDOM(e,t,s){return!1}getTextContent(){return`{{link('${this.__label??this.__href}')}}`}exportJSON(){return{type:E.getType(),version:1,href:this.__href,label:this.__label}}static importJSON(e){return Ne(e.href,e.label)}decorate(e,t){const s=this.__href,a=s.split("/").pop()||"unknown",c=/^https?:\/\//i.test(s),r=/^#?\$PROJECT\//i.test(s);return n.jsx(ct,{width:"fit-content",display:"inline-block",children:n.jsx(at,{fileName:a,onSelect:()=>{if(c)window.open(s,"_blank","noopener,noreferrer");else if(r){const h=s.replace(/^#?\$PROJECT\//i,""),p=new CustomEvent("ui:open-project-file",{detail:h});window.dispatchEvent(p)}else window.location.assign(s)}})})}}function Ne(o,e){return new E(o,e)}function ft(o){return o instanceof E}const je=/\{\{\s*link\((['"])([^'"\s]+)\1\)\s*\}\}/,mt={dependencies:[E],export:o=>{if(ft(o)){const e=o.__href,t=o.__label??e;return t?`{{link('${t}')}}`:`{{link('${e}')}}`}return null},regExp:je,importRegExp:je,replace:(o,e)=>{const t=e[2],m=/^(https?:\/\/|\/)/i.test(t)?t:`#${t}`,a=t;o.replace(Ne(m,a))},type:"text-match"},Ht=[Ke,Xe,He,Ze,Fe,ze,$e,Ae,Oe,Pe,E],Ft=[...Ue,...De,Me,We,mt],zt=Ge,ht=10,ut=5;function Se(o,e,t,s=ht,m=ut){const a=t.parentElement;if(o===null||!a){e.style.opacity="0",e.style.transform="translate(-10000px, -10000px)";return}const c=e.getBoundingClientRect(),r=t.getBoundingClientRect(),h=a.getBoundingClientRect();let p=o.top-s,T=o.left-m;p<h.top&&(p+=c.height+o.height+s*2),T+c.width>h.right&&(T=h.right-c.width-m),p-=r.top,T-=r.left,e.style.opacity="1",e.style.transform=`translate(${T}px, ${p}px)`}const pt=-4,gt={bullet:"Bulleted List",check:"Check List",code:"Code Block",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",h5:"Heading 5",h6:"Heading 6",number:"Numbered List",paragraph:"Normal",quote:"Quote"};function _t(o){const e=ke.c(81),{editor:t,anchorElem:s,isToolbarActive:m,setIsToolbarActive:a}=o,c=x.useRef(null),[r,h]=x.useState("paragraph"),[p,T]=x.useState(!1),[Ce,Re]=x.useState(!1),[Le,Ie]=x.useState(!1);let P;e[0]!==r||e[1]!==t?(P=i=>{r!==i?t.update(()=>{const l=O();ye(l,()=>Ye(i))}):t.update(vt)},e[0]=r,e[1]=t,e[2]=P):P=e[2];const u=P;let U;e[3]!==r||e[4]!==t?(U=()=>{r!=="bullet"?t.dispatchCommand(qe,void 0):t.dispatchCommand(Ee,void 0)},e[3]=r,e[4]=t,e[5]=U):U=e[5];const le=U;let D;e[6]!==r||e[7]!==t?(D=()=>{r!=="number"?t.dispatchCommand(Je,void 0):t.dispatchCommand(Ee,void 0)},e[6]=r,e[7]=t,e[8]=D):D=e[8];const re=D;let M;e[9]===Symbol.for("react.memo_cache_sentinel")?(M=()=>{const i=O();if(_e(i)){T(i.hasFormat("bold")),Re(i.hasFormat("italic")),Ie(i.hasFormat("underline"));const l=i.anchor.getNode();let d=l.getKey()==="root"?l:Te(l,xt);if(d===null&&(d=l.getTopLevelElementOrThrow()),ve(d)){h(d.getListType());return}const v=Te(l,bt);if(v!==null&&ve(v)){h(v.getListType());return}const A=et(d)?d.getTag():d.getType();A in gt&&h(A)}},e[9]=M):M=e[9];const we=M;let W;e[10]!==s||e[11]!==t||e[12]!==a?(W=()=>{const i=O(),l=c.current,d=window.getSelection();if(l===null)return;const v=t.getRootElement();if(i!==null&&_e(i)&&!i.isCollapsed()&&d!==null&&!d.isCollapsed&&v!==null&&v.contains(d.anchorNode)&&t.isEditable()){const A=d.getRangeAt(0).getBoundingClientRect();if(A){const Be=new DOMRect(A.left,A.bottom,0,0);Se(Be,l,s,pt)}a(!0)}else v!==null&&Se(null,l,s),a(!1);return we(),!0},e[10]=s,e[11]=t,e[12]=a,e[13]=W):W=e[13];const f=W;let q,J;e[14]!==f||e[15]!==s.parentElement||e[16]!==t?(q=()=>{const i=s.parentElement,l=()=>{t.getEditorState().read(()=>{f()})};return window.addEventListener("resize",l),i&&i.addEventListener("scroll",l),()=>{window.removeEventListener("resize",l),i&&i.removeEventListener("scroll",l)}},J=[s.parentElement,t,f],e[14]=f,e[15]=s.parentElement,e[16]=t,e[17]=q,e[18]=J):(q=e[17],J=e[18]),x.useEffect(q,J);let Q,G;e[19]!==f||e[20]!==t?(Q=()=>tt(t.registerUpdateListener(i=>{const{editorState:l}=i;l.read(()=>{f()})}),t.registerCommand(st,i=>(f(),!1),it),t.registerCommand(nt,i=>{const l=O();return _e(l)&&f(),!1},ot)),G=[t,f],e[19]=f,e[20]=t,e[21]=Q,e[22]=G):(Q=e[21],G=e[22]),x.useEffect(Q,G);const ae=`floating-text-format-toolbar ${m?"active":""}`,ce=p||void 0;let j;e[23]!==t?(j=()=>{t.dispatchCommand(be,"bold")},e[23]=t,e[24]=j):j=e[24];let K;e[25]===Symbol.for("react.memo_cache_sentinel")?(K=n.jsx(_,{fontWeight:"bold",fontSize:".75rem",children:"B"}),e[25]=K):K=e[25];let S;e[26]!==ce||e[27]!==j?(S=n.jsx(g,{content:"Bold",children:n.jsx(b,{"data-active":ce,onClick:j,variant:"ghost","aria-label":"Bold",size:"xs",children:K})}),e[26]=ce,e[27]=j,e[28]=S):S=e[28];const de=Ce||void 0;let y;e[29]!==t?(y=()=>{t.dispatchCommand(be,"italic")},e[29]=t,e[30]=y):y=e[30];let X;e[31]===Symbol.for("react.memo_cache_sentinel")?(X=n.jsx(_,{fontStyle:"italic",fontSize:".75rem",children:"I"}),e[31]=X):X=e[31];let k;e[32]!==de||e[33]!==y?(k=n.jsx(g,{content:"Italic",children:n.jsx(b,{"data-active":de,onClick:y,variant:"ghost","aria-label":"Italic",size:"xs",children:X})}),e[32]=de,e[33]=y,e[34]=k):k=e[34];const fe=Le||void 0;let N;e[35]!==t?(N=()=>{t.dispatchCommand(be,"underline")},e[35]=t,e[36]=N):N=e[36];let Z;e[37]===Symbol.for("react.memo_cache_sentinel")?(Z=n.jsx(_,{textDecoration:"underline",fontSize:".75rem",children:"U"}),e[37]=Z):Z=e[37];let C;e[38]!==fe||e[39]!==N?(C=n.jsx(g,{content:"Underline",children:n.jsx(b,{"data-active":fe,onClick:N,variant:"ghost","aria-label":"Underline",size:"xs",children:Z})}),e[38]=fe,e[39]=N,e[40]=C):C=e[40];let V;e[41]===Symbol.for("react.memo_cache_sentinel")?(V=n.jsx(xe,{as:"span",height:"1rem",mx:"0.5",children:n.jsx("span",{style:{borderLeft:"1px solid",height:"100%",borderColor:"var(--chakra-colors-border-muted)"}})}),e[41]=V):V=e[41];const me=r==="h1"||void 0;let R;e[42]!==u?(R=()=>{u("h1")},e[42]=u,e[43]=R):R=e[43];let Y;e[44]===Symbol.for("react.memo_cache_sentinel")?(Y=n.jsx(_,{fontWeight:"thin",fontSize:".8rem",children:"H1"}),e[44]=Y):Y=e[44];let L;e[45]!==me||e[46]!==R?(L=n.jsx(g,{content:"Heading 1",children:n.jsx(b,{"data-active":me,variant:"ghost","aria-label":"Heading 1",size:"xs",onClick:R,children:Y})}),e[45]=me,e[46]=R,e[47]=L):L=e[47];const he=r==="h2"||void 0;let I;e[48]!==u?(I=()=>{u("h2")},e[48]=u,e[49]=I):I=e[49];let ee;e[50]===Symbol.for("react.memo_cache_sentinel")?(ee=n.jsx(_,{fontWeight:"thin",fontSize:".8rem",children:"H2"}),e[50]=ee):ee=e[50];let w;e[51]!==he||e[52]!==I?(w=n.jsx(g,{content:"Heading 2",children:n.jsx(b,{"data-active":he,variant:"ghost","aria-label":"Heading 2",size:"xs",onClick:I,children:ee})}),e[51]=he,e[52]=I,e[53]=w):w=e[53];const ue=r==="h3"||void 0;let B;e[54]!==u?(B=()=>{u("h3")},e[54]=u,e[55]=B):B=e[55];let te;e[56]===Symbol.for("react.memo_cache_sentinel")?(te=n.jsx(_,{fontWeight:"thin",fontSize:".8rem",children:"H3"}),e[56]=te):te=e[56];let H;e[57]!==ue||e[58]!==B?(H=n.jsx(g,{content:"Heading 3",children:n.jsx(b,{"data-active":ue,variant:"ghost","aria-label":"Heading 3",size:"xs",onClick:B,children:te})}),e[57]=ue,e[58]=B,e[59]=H):H=e[59];let ne;e[60]===Symbol.for("react.memo_cache_sentinel")?(ne=n.jsx(xe,{as:"span",height:"1rem",mx:"0.5",children:n.jsx("span",{style:{borderLeft:"1px solid",height:"100%",borderColor:"var(--chakra-colors-border-muted)"}})}),e[60]=ne):ne=e[60];const pe=r==="bullet"||void 0;let oe;e[61]===Symbol.for("react.memo_cache_sentinel")?(oe=n.jsx(_,{fontWeight:"thin",fontSize:".8rem",children:"•"}),e[61]=oe):oe=e[61];let F;e[62]!==le||e[63]!==pe?(F=n.jsx(g,{content:"Bulleted List",children:n.jsx(b,{"data-active":pe,variant:"ghost","aria-label":"Bulleted List",size:"xs",onClick:le,children:oe})}),e[62]=le,e[63]=pe,e[64]=F):F=e[64];const ge=r==="number"||void 0;let se;e[65]===Symbol.for("react.memo_cache_sentinel")?(se=n.jsx(_,{fontWeight:"thin",fontSize:".8rem",children:"1."}),e[65]=se):se=e[65];let z;e[66]!==re||e[67]!==ge?(z=n.jsx(g,{content:"Numbered List",children:n.jsx(b,{"data-active":ge,variant:"ghost","aria-label":"Numbered List",size:"xs",onClick:re,children:se})}),e[66]=re,e[67]=ge,e[68]=z):z=e[68];let $;e[69]!==S||e[70]!==k||e[71]!==C||e[72]!==L||e[73]!==w||e[74]!==H||e[75]!==F||e[76]!==z?($=n.jsxs(xe,{direction:"row",gap:"0.5",alignItems:"center",children:[S,k,C,V,L,w,H,ne,F,z]}),e[69]=S,e[70]=k,e[71]=C,e[72]=L,e[73]=w,e[74]=H,e[75]=F,e[76]=z,e[77]=$):$=e[77];let ie;return e[78]!==ae||e[79]!==$?(ie=n.jsx("div",{ref:c,className:ae,children:$}),e[78]=ae,e[79]=$,e[80]=ie):ie=e[80],ie}function bt(o){return ve(o)}function xt(o){const e=o.getParent();return e!==null&<(e)}function vt(){const o=O();ye(o,Et)}function Et(){return rt()}function Tt(o,e){const t=ke.c(7),[s,m]=x.useState(!1);let a;t[0]!==e||t[1]!==o||t[2]!==s?(a=n.jsx(_t,{editor:o,anchorElem:e,isToolbarActive:s,setIsToolbarActive:m}),t[0]=e,t[1]=o,t[2]=s,t[3]=a):a=t[3];let c;return t[4]!==e||t[5]!==a?(c=dt.createPortal(a,e),t[4]=e,t[5]=a,t[6]=c):c=t[6],c}function $t(o){const{anchorElem:e}=o,t=e===void 0?document.body:e,[s]=Ve();return Tt(s,t)}export{$t as F,Ht as a,Ft as b,zt as e};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.floating-text-format-toolbar{display:flex;position:absolute;top:0;left:0;z-index:1000;opacity:0;background-color:var(--chakra-colors-bg);border-radius:8px;border:1px solid var(--chakra-colors-border-secondary);box-shadow:0 5px 10px #0000001a;transition:opacity .2s;will-change:transform;padding:4px;gap:2px}.floating-text-format-toolbar.active{opacity:1}.floating-text-format-toolbar button[data-active]{background-color:var(--chakra-colors-background-accent-primary-light);color:var(--chakra-colors-text-selectable-primary)}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as R,Y as E,q as M,aJ as Y,l as w,aK as q,h as B,R as z,x as Q,aL as W,W as A,N as H,_ as b,F as K,aM as D,aN as P,aO as F,aP as V,aQ as $,aR as j,ac as G,o as T}from"./rich-text-theme-Bkhh9rAZ.js";import{r as J}from"./iframe-B8FSoBNY.js";function X(t,r,s,a,c){if(t===null||s.size===0&&a.size===0&&!c)return 0;const e=r._selection,n=t._selection;if(c)return 1;if(!(H(e)&&H(n)&&n.isCollapsed()&&e.isCollapsed()))return 0;const i=(function(g,d,S){const C=g._nodeMap,_=[];for(const k of d){const h=C.get(k);h!==void 0&&_.push(h)}for(const[k,h]of S){if(!h)continue;const N=C.get(k);N===void 0||K(N)||_.push(N)}return _})(r,s,a);if(i.length===0)return 0;if(i.length>1){const g=r._nodeMap,d=g.get(e.anchor.key),S=g.get(n.anchor.key);return d&&S&&!t._nodeMap.has(d.__key)&&b(d)&&d.__text.length===1&&e.anchor.offset===1?2:0}const u=i[0],l=t._nodeMap.get(u.__key);if(!b(l)||!b(u)||l.__mode!==u.__mode)return 0;const o=l.__text,p=u.__text;if(o===p)return 0;const m=e.anchor,y=n.anchor;if(m.key!==y.key||m.type!=="text")return 0;const f=m.offset,x=y.offset,v=p.length-o.length;return v===1&&x===f-1?2:v===-1&&x===f+1?3:v===-1&&x===f?4:0}function Z(t,r){let s=Date.now(),a=0;return(c,e,n,i,u,l)=>{const o=Date.now();if(l.has(z))return a=0,s=o,2;const p=X(c,e,i,u,t.isComposing()),m=(()=>{const y=n===null||n.editor===t,f=l.has(W);if(!f&&y&&l.has(A))return 0;if(c===null)return 1;const x=e._selection;if(!(i.size>0||u.size>0))return x!==null?0:2;const v=typeof r=="number"?r:r.peek();return f===!1&&p!==0&&p===a&&o<s+v&&y||i.size===1&&(function(g,d,S){const C=d._nodeMap.get(g),_=S._nodeMap.get(g),k=d._selection,h=S._selection;return!(H(k)&&H(h)&&k.anchor.type==="element"&&k.focus.type==="element"&&h.anchor.type==="text"&&h.focus.type==="text"||!b(C)||!b(_)||C.__parent!==_.__parent)&&JSON.stringify(d.read(()=>C.exportJSON()))===JSON.stringify(S.read(()=>_.exportJSON()))})(Array.from(i)[0],c,e)?0:1})();return s=o,a=p,m}}function U(t){t.undoStack=[],t.redoStack=[],t.current=null}function I(t,r,s){const a=Z(t,s);return R(t.registerCommand(Q,()=>((function(e,n){const i=n.redoStack,u=n.undoStack;if(u.length!==0){const l=n.current,o=u.pop();l!==null&&(i.push(l),e.dispatchCommand(E,!0)),u.length===0&&e.dispatchCommand(M,!1),n.current=o||null,o&&o.editor.setEditorState(o.editorState,{tag:z})}})(t,r),!0),w),t.registerCommand(B,()=>((function(e,n){const i=n.redoStack,u=n.undoStack;if(i.length!==0){const l=n.current;l!==null&&(u.push(l),e.dispatchCommand(M,!0));const o=i.pop();i.length===0&&e.dispatchCommand(E,!1),n.current=o||null,o&&o.editor.setEditorState(o.editorState,{tag:z})}})(t,r),!0),w),t.registerCommand(q,()=>(U(r),!1),w),t.registerCommand(Y,()=>(U(r),t.dispatchCommand(E,!1),t.dispatchCommand(M,!1),!0),w),t.registerUpdateListener(({editorState:e,prevEditorState:n,dirtyLeaves:i,dirtyElements:u,tags:l})=>{const o=r.current,p=r.redoStack,m=r.undoStack,y=o===null?null:o.editorState;if(o!==null&&e===y)return;const f=a(n,e,o,i,u,l);if(f===1)p.length!==0&&(r.redoStack=[],t.dispatchCommand(E,!1)),o!==null&&(m.push({...o}),t.dispatchCommand(M,!0));else if(f===2)return;r.current={editor:t,editorState:e}}))}function L(){return{current:null,redoStack:[],undoStack:[]}}const O=D({build:(t,{delay:r,createInitialHistoryState:s,disabled:a})=>G({delay:r,disabled:a,historyState:s(t)}),config:j({createInitialHistoryState:L,delay:300,disabled:typeof window>"u"}),name:"@lexical/history/History",register:(t,r,s)=>{const a=s.getOutput();return F(()=>a.disabled.value?void 0:I(t,a.historyState.value,a.delay))}});D({dependencies:[$(O,{createInitialHistoryState:()=>{throw new Error("SharedHistory did not inherit parent history")},disabled:!0})],name:"@lexical/history/SharedHistory",register(t,r,s){const{output:a}=s.getDependency(O),c=(function(n){return n?P(n,O.name):null})(t._parentEditor);if(!c)return()=>{};const e=c.output;return F(()=>V(()=>{a.delay.value=e.delay.value,a.historyState.value=e.historyState.value,a.disabled.value=e.disabled.value}))}});function nt({delay:t,externalHistoryState:r}){const[s]=T();return(function(a,c,e=1e3){const n=J.useMemo(()=>c||L(),[c]);J.useEffect(()=>I(a,n,e),[e,a,n])})(s,r,t),null}export{nt as a};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import{o as gt,W as Vt,E as rt,m as z,a8 as q,N as ht,a5 as ot,w as ut,aS as St,ah as At,O as st,aT as Xt,aU as Yt,aV as Gt,aj as dt,p as V,aW as Qt,_ as nt,X as Ct,e as wt,aX as Zt,aY as $t,aZ as zt,a_ as te,a$ as ee,j as ne,D as re,a2 as yt,aH as oe,aA as se,g as le}from"./rich-text-theme-Bkhh9rAZ.js";import{r as C,j as E}from"./iframe-B8FSoBNY.js";import{c as Mt}from"./compiler-runtime-BXE7OOXE.js";import{B as ie}from"./index-B0y2_lLF.js";const ae=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?C.useLayoutEffect:C.useEffect;function Le({ignoreHistoryMergeTagChange:r=!0,ignoreSelectionChange:t=!1,onChange:e}){const[n]=gt();return ae(()=>{if(e)return n.registerUpdateListener(({editorState:o,dirtyElements:s,dirtyLeaves:l,prevEditorState:i,tags:c})=>{t&&s.size===0&&l.size===0||r&&c.has(Vt)||i.isEmpty()||e(o,n,c)})},[n,r,t,e]),null}function je(r){const t=Mt.c(4),{isEditable:e}=r,[n]=gt();let o,s;return t[0]!==n||t[1]!==e?(o=()=>{n.setEditable(e)},s=[e,n],t[0]=n,t[1]=e,t[2]=o,t[3]=s):(o=t[2],s=t[3]),C.useEffect(o,s),null}const Dt=[];class lt extends rt{__ids;static getType(){return"mark"}static clone(t){return new lt(t.__ids,t.__key)}static importDOM(){return null}static importJSON(t){return bt().updateFromJSON(t)}updateFromJSON(t){return super.updateFromJSON(t).setIDs(t.ids)}exportJSON(){return{...super.exportJSON(),ids:this.getIDs()}}constructor(t=Dt,e){super(e),this.__ids=t}createDOM(t){const e=document.createElement("mark");return z(e,t.theme.mark),this.__ids.length>1&&z(e,t.theme.markOverlap),e}updateDOM(t,e,n){const o=t.__ids,s=this.__ids,l=o.length,i=s.length,c=n.theme.markOverlap;return l!==i&&(l===1?i===2&&z(e,c):i===1&&q(e,c)),!1}hasID(t){return this.getIDs().includes(t)}getIDs(){return Array.from(this.getLatest().__ids)}setIDs(t){const e=this.getWritable();return e.__ids=t,e}addID(t){const e=this.getWritable();return e.__ids.includes(t)?e:e.setIDs([...e.__ids,t])}deleteID(t){const e=this.getWritable(),n=e.__ids.indexOf(t);if(n===-1)return e;const o=Array.from(e.__ids);return o.splice(n,1),e.setIDs(o)}insertNewAfter(t,e=!0){const n=bt(this.__ids);return this.insertAfter(n,e),n}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(t,e,n){if(!ht(e)||n==="html")return!1;const o=e.anchor,s=e.focus,l=o.getNode(),i=s.getNode(),c=e.isBackward()?o.offset-s.offset:s.offset-o.offset;return this.isParentOf(l)&&this.isParentOf(i)&&this.getTextContent().length===c}excludeFromCopy(t){return t!=="clone"}}function bt(r=Dt){return ot(new lt(r))}function ce(r){return r instanceof lt}const _t=/^(\d+(?:\.\d+)?)px$/,j={BOTH:3,NO_STATUS:0,ROW:1};class X extends rt{__colSpan;__rowSpan;__headerState;__width;__backgroundColor;__verticalAlign;static getType(){return"tablecell"}static clone(t){return new X(t.__headerState,t.__colSpan,t.__width,t.__key)}afterCloneFrom(t){super.afterCloneFrom(t),this.__rowSpan=t.__rowSpan,this.__backgroundColor=t.__backgroundColor,this.__verticalAlign=t.__verticalAlign}static importDOM(){return{td:t=>({conversion:xt,priority:0}),th:t=>({conversion:xt,priority:0})}}static importJSON(t){return Wt().updateFromJSON(t)}updateFromJSON(t){return super.updateFromJSON(t).setHeaderStyles(t.headerState).setColSpan(t.colSpan||1).setRowSpan(t.rowSpan||1).setWidth(t.width||void 0).setBackgroundColor(t.backgroundColor||null).setVerticalAlign(t.verticalAlign||void 0)}constructor(t=j.NO_STATUS,e=1,n,o){super(o),this.__colSpan=e,this.__rowSpan=1,this.__headerState=t,this.__width=n,this.__backgroundColor=null,this.__verticalAlign=void 0}createDOM(t){const e=document.createElement(this.getTag());return this.__width&&(e.style.width=`${this.__width}px`),this.__colSpan>1&&(e.colSpan=this.__colSpan),this.__rowSpan>1&&(e.rowSpan=this.__rowSpan),this.__backgroundColor!==null&&(e.style.backgroundColor=this.__backgroundColor),ft(this.__verticalAlign)&&(e.style.verticalAlign=this.__verticalAlign),z(e,t.theme.tableCell,this.hasHeader()&&t.theme.tableCellHeader),e}exportDOM(t){const e=super.exportDOM(t);if(V(e.element)){const n=e.element;n.setAttribute("data-temporary-table-cell-lexical-key",this.getKey()),n.style.border="1px solid black",this.__colSpan>1&&(n.colSpan=this.__colSpan),this.__rowSpan>1&&(n.rowSpan=this.__rowSpan),n.style.width=`${this.getWidth()||75}px`,n.style.verticalAlign=this.getVerticalAlign()||"top",n.style.textAlign="start",this.__backgroundColor===null&&this.hasHeader()&&(n.style.backgroundColor="#f2f3f5")}return e}exportJSON(){return{...super.exportJSON(),...ft(this.__verticalAlign)&&{verticalAlign:this.__verticalAlign},backgroundColor:this.getBackgroundColor(),colSpan:this.__colSpan,headerState:this.__headerState,rowSpan:this.__rowSpan,width:this.getWidth()}}getColSpan(){return this.getLatest().__colSpan}setColSpan(t){const e=this.getWritable();return e.__colSpan=t,e}getRowSpan(){return this.getLatest().__rowSpan}setRowSpan(t){const e=this.getWritable();return e.__rowSpan=t,e}getTag(){return this.hasHeader()?"th":"td"}setHeaderStyles(t,e=j.BOTH){const n=this.getWritable();return n.__headerState=t&e|n.__headerState&~e,n}getHeaderStyles(){return this.getLatest().__headerState}setWidth(t){const e=this.getWritable();return e.__width=t,e}getWidth(){return this.getLatest().__width}getBackgroundColor(){return this.getLatest().__backgroundColor}setBackgroundColor(t){const e=this.getWritable();return e.__backgroundColor=t,e}getVerticalAlign(){return this.getLatest().__verticalAlign}setVerticalAlign(t){const e=this.getWritable();return e.__verticalAlign=t||void 0,e}toggleHeaderStyle(t){const e=this.getWritable();return(e.__headerState&t)===t?e.__headerState-=t:e.__headerState+=t,e}hasHeaderState(t){return(this.getHeaderStyles()&t)===t}hasHeader(){return this.getLatest().__headerState!==j.NO_STATUS}updateDOM(t){return t.__headerState!==this.__headerState||t.__width!==this.__width||t.__colSpan!==this.__colSpan||t.__rowSpan!==this.__rowSpan||t.__backgroundColor!==this.__backgroundColor||t.__verticalAlign!==this.__verticalAlign}isShadowRoot(){return!0}collapseAtStart(){return!0}canBeEmpty(){return!1}canIndent(){return!1}}function ft(r){return r==="middle"||r==="bottom"}function xt(r){const t=r,e=r.nodeName.toLowerCase();let n;_t.test(t.style.width)&&(n=parseFloat(t.style.width));const o=Wt(e==="th"?j.ROW:j.NO_STATUS,t.colSpan,n);o.__rowSpan=t.rowSpan;const s=t.style.backgroundColor;s!==""&&(o.__backgroundColor=s);const l=t.style.verticalAlign;ft(l)&&(o.__verticalAlign=l);const i=t.style,c=(i&&i.textDecoration||"").split(" "),h=i.fontWeight==="700"||i.fontWeight==="bold",d=c.includes("line-through"),f=i.fontStyle==="italic",a=c.includes("underline");return{after:u=>{const _=[];let S=null;const m=()=>{if(S){const p=S.getFirstChild();Ct(p)&&S.getChildrenSize()===1&&p.remove()}};for(const p of u)Qt(p)||nt(p)||Ct(p)?(nt(p)&&(h&&p.toggleFormat("bold"),d&&p.toggleFormat("strikethrough"),f&&p.toggleFormat("italic"),a&&p.toggleFormat("underline")),S?S.append(p):(S=wt().append(p),_.push(S))):(_.push(p),m(),S=null);return m(),_.length===0&&_.push(wt()),_},node:o}}function Wt(r=j.NO_STATUS,t=1,e){return ot(new X(r,t,e))}function F(r){return r instanceof X}function b(r,...t){const e=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams;n.append("code",r);for(const o of t)n.append("v",o);throw e.search=n.toString(),Error(`Minified Lexical error #${r}; visit ${e.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}class it extends rt{__height;static getType(){return"tablerow"}static clone(t){return new it(t.__height,t.__key)}static importDOM(){return{tr:t=>({conversion:ue,priority:0})}}static importJSON(t){return Bt().updateFromJSON(t)}updateFromJSON(t){return super.updateFromJSON(t).setHeight(t.height)}constructor(t,e){super(e),this.__height=t}exportJSON(){const t=this.getHeight();return{...super.exportJSON(),...t===void 0?void 0:{height:t}}}createDOM(t){const e=document.createElement("tr");return this.__height&&(e.style.height=`${this.__height}px`),z(e,t.theme.tableRow),e}extractWithChild(t,e,n){return n==="html"}isShadowRoot(){return!0}setHeight(t){const e=this.getWritable();return e.__height=t,e}getHeight(){return this.getLatest().__height}updateDOM(t){return t.__height!==this.__height}canBeEmpty(){return!1}canIndent(){return!1}}function ue(r){const t=r;let e;return _t.test(t.style.height)&&(e=parseFloat(t.style.height)),{after:n=>zt(n,F),node:Bt(e)}}function Bt(r){return ot(new it(r))}function Y(r){return r instanceof it}const Lt=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,he=Lt&&"documentMode"in document?document.documentMode:null;Lt&&"InputEvent"in window&&!he&&new window.InputEvent("input");function de(r,t,e){const[n,o,s]=jt(r,t,e);return o===null&&b(207),s===null&&b(208),[n,o,s]}function jt(r,t,e){const n=[];let o=null,s=null;function l(c){let h=n[c];return h===void 0&&(n[c]=h=[]),h}const i=r.getChildren();for(let c=0;c<i.length;c++){const h=i[c];Y(h)||b(209);const d=l(c);for(let f=h.getFirstChild(),a=0;f!=null;f=f.getNextSibling()){for(F(f)||b(147);d[a]!==void 0;)a++;const u={cell:f,startColumn:a,startRow:c},{__rowSpan:_,__colSpan:S}=f;for(let m=0;m<_&&!(c+m>=i.length);m++){const p=l(c+m);for(let g=0;g<S;g++)p[a+g]=u}t!==null&&o===null&&t.is(f)&&(o=u),e!==null&&s===null&&e.is(f)&&(s=u)}}return[n,o,s]}function fe(r){let t;if(r instanceof X)t=r;else if("__type"in r){const o=dt(r,F);F(o)||b(148),t=o}else{const o=dt(r.getNode(),F);F(o)||b(148),t=o}const e=t.getParent();Y(e)||b(149);const n=e.getParent();return Kt(n)||b(210),[t,e,n]}function ge(r,t,e){let n,o=Math.min(t.startColumn,e.startColumn),s=Math.min(t.startRow,e.startRow),l=Math.max(t.startColumn+t.cell.__colSpan-1,e.startColumn+e.cell.__colSpan-1),i=Math.max(t.startRow+t.cell.__rowSpan-1,e.startRow+e.cell.__rowSpan-1);do{n=!1;for(let c=0;c<r.length;c++)for(let h=0;h<r[0].length;h++){const d=r[c][h];if(!d)continue;const f=d.startColumn+d.cell.__colSpan-1,a=d.startRow+d.cell.__rowSpan-1,u=d.startColumn<=l&&f>=o,_=d.startRow<=i&&a>=s;if(u&&_){const S=Math.min(o,d.startColumn),m=Math.max(l,f),p=Math.min(s,d.startRow),g=Math.max(i,a);S===o&&m===l&&p===s&&g===i||(o=S,l=m,s=p,i=g,n=!0)}}}while(n);return{maxColumn:l,maxRow:i,minColumn:o,minRow:s}}function Nt(r){const[t,,e]=fe(r),n=e.getChildren(),o=n.length,s=n[0].getChildren().length,l=new Array(o);for(let i=0;i<o;i++)l[i]=new Array(s);for(let i=0;i<o;i++){const c=n[i].getChildren();let h=0;for(let d=0;d<c.length;d++){for(;l[i][h];)h++;const f=c[d],a=f.__rowSpan||1,u=f.__colSpan||1;for(let _=0;_<a;_++)for(let S=0;S<u;S++)l[i+_][h+S]=f;if(t===f)return{colSpan:u,columnIndex:h,rowIndex:i,rowSpan:a};h+=u}}return null}function vt(r){const[[t,e,n,o],[s,l,i,c]]=["anchor","focus"].map(h=>{const d=r[h].getNode(),f=dt(d,F);F(f)||b(238,h,d.getKey(),d.getType());const a=f.getParent();Y(a)||b(239,h);const u=a.getParent();return Kt(u)||b(240,h),[d,f,a,u]});return o.is(c)||b(241),{anchorCell:e,anchorNode:t,anchorRow:n,anchorTable:o,focusCell:l,focusNode:s,focusRow:i,focusTable:c}}class pt{tableKey;anchor;focus;_cachedNodes;dirty;constructor(t,e,n){this.anchor=e,this.focus=n,e._selection=this,n._selection=this,this._cachedNodes=null,this.dirty=!1,this.tableKey=t}getStartEndPoints(){return[this.anchor,this.focus]}isValid(){if(this.tableKey==="root"||this.anchor.key==="root"||this.anchor.type!=="element"||this.focus.key==="root"||this.focus.type!=="element")return!1;const t=ut(this.tableKey),e=ut(this.anchor.key),n=ut(this.focus.key);return t!==null&&e!==null&&n!==null}isBackward(){return this.focus.isBefore(this.anchor)}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t}is(t){return It(t)&&this.tableKey===t.tableKey&&this.anchor.is(t.anchor)&&this.focus.is(t.focus)}set(t,e,n){this.dirty=this.dirty||t!==this.tableKey||e!==this.anchor.key||n!==this.focus.key,this.tableKey=t,this.anchor.key=e,this.focus.key=n,this._cachedNodes=null}clone(){return new pt(this.tableKey,St(this.anchor.key,this.anchor.offset,this.anchor.type),St(this.focus.key,this.focus.offset,this.focus.type))}isCollapsed(){return!1}extract(){return this.getNodes()}insertRawText(t){}insertText(){}hasFormat(t){let e=0;this.getNodes().filter(F).forEach(o=>{const s=o.getFirstChild();At(s)&&(e|=s.getTextFormat())});const n=Gt[t];return(e&n)!==0}insertNodes(t){const e=this.focus.getNode();st(e)||b(151),Xt(e.select(0,e.getChildrenSize())).insertNodes(t)}getShape(){const{anchorCell:t,focusCell:e}=vt(this),n=Nt(t);n===null&&b(153);const o=Nt(e);o===null&&b(155);const s=Math.min(n.columnIndex,o.columnIndex),l=Math.max(n.columnIndex+n.colSpan-1,o.columnIndex+o.colSpan-1),i=Math.min(n.rowIndex,o.rowIndex),c=Math.max(n.rowIndex+n.rowSpan-1,o.rowIndex+o.rowSpan-1);return{fromX:Math.min(s,l),fromY:Math.min(i,c),toX:Math.max(s,l),toY:Math.max(i,c)}}getNodes(){if(!this.isValid())return[];const t=this._cachedNodes;if(t!==null)return t;const{anchorTable:e,anchorCell:n,focusCell:o}=vt(this),s=o.getParents()[1];if(s!==e){if(e.isParentOf(o)){const m=s.getParent();m==null&&b(159),this.set(this.tableKey,o.getKey(),m.getKey())}else{const m=e.getParent();m==null&&b(158),this.set(this.tableKey,m.getKey(),o.getKey())}return this.getNodes()}const[l,i,c]=de(e,n,o),{minColumn:h,maxColumn:d,minRow:f,maxRow:a}=ge(l,i,c),u=new Map([[e.getKey(),e]]);let _=null;for(let m=f;m<=a;m++)for(let p=h;p<=d;p++){const{cell:g}=l[m][p],T=g.getParent();Y(T)||b(160),T!==_&&(u.set(T.getKey(),T),_=T),u.has(g.getKey())||_e(g,w=>{u.set(w.getKey(),w)})}const S=Array.from(u.values());return Yt()||(this._cachedNodes=S),S}getTextContent(){const t=this.getNodes().filter(n=>F(n));let e="";for(let n=0;n<t.length;n++){const o=t[n],s=o.__parent,l=(t[n+1]||{}).__parent;e+=o.getTextContent()+(l!==s?`
|
|
2
|
-
`:" ")}return e}}function It(r){return r instanceof pt}function _e(r,t){const e=[[r]];for(let n=e.at(-1);n!==void 0&&e.length>0;n=e.at(-1)){const o=n.pop();o===void 0?e.pop():t(o)!==!1&&st(o)&&e.push(o.getChildren())}}function U(r){return V(r)&&r.nodeName==="TABLE"}function pe(r,t){for(let e=t,n=null;e!==null;e=e.getParent()){if(r.is(e))return n;F(e)&&(n=e)}return null}function me(r,t,e){return pe(r,$t(t,e))}function Tt(r,t,e){if(!t.theme.tableAlignment)return;const n=[],o=[];for(const s of["center","right"]){const l=t.theme.tableAlignment[s];l&&(s===e?o:n).push(l)}q(r,...n),z(r,...o)}const Se=new WeakSet;function kt(r=te()){return Se.has(r)}class at extends rt{__rowStriping;__frozenColumnCount;__frozenRowCount;__colWidths;static getType(){return"table"}getColWidths(){return this.getLatest().__colWidths}setColWidths(t){const e=this.getWritable();return e.__colWidths=t,e}static clone(t){return new at(t.__key)}afterCloneFrom(t){super.afterCloneFrom(t),this.__colWidths=t.__colWidths,this.__rowStriping=t.__rowStriping,this.__frozenColumnCount=t.__frozenColumnCount,this.__frozenRowCount=t.__frozenRowCount}static importDOM(){return{table:t=>({conversion:Ce,priority:1})}}static importJSON(t){return Pt().updateFromJSON(t)}updateFromJSON(t){return super.updateFromJSON(t).setRowStriping(t.rowStriping||!1).setFrozenColumns(t.frozenColumnCount||0).setFrozenRows(t.frozenRowCount||0).setColWidths(t.colWidths)}constructor(t){super(t),this.__rowStriping=!1,this.__frozenColumnCount=0,this.__frozenRowCount=0,this.__colWidths=void 0}exportJSON(){return{...super.exportJSON(),colWidths:this.getColWidths(),frozenColumnCount:this.__frozenColumnCount?this.__frozenColumnCount:void 0,frozenRowCount:this.__frozenRowCount?this.__frozenRowCount:void 0,rowStriping:this.__rowStriping?this.__rowStriping:void 0}}extractWithChild(t,e,n){return n==="html"}getDOMSlot(t){const e=U(t)?t:t.querySelector("table");return U(e)||b(229),super.getDOMSlot(t).withElement(e).withAfter(e.querySelector("colgroup"))}createDOM(t,e){const n=document.createElement("table");this.__style&&(n.style.cssText=this.__style);const o=document.createElement("colgroup");if(n.appendChild(o),Zt(o),z(n,t.theme.table),this.updateTableElement(null,n,t),kt(e)){const s=document.createElement("div"),l=t.theme.tableScrollableWrapper;return l?z(s,l):s.style.cssText="overflow-x: auto;",s.appendChild(n),this.updateTableWrapper(null,s,n,t),s}return n}updateTableWrapper(t,e,n,o){this.__frozenColumnCount!==(t?t.__frozenColumnCount:0)&&(function(s,l,i,c){c>0?(z(s,i.theme.tableFrozenColumn),l.setAttribute("data-lexical-frozen-column","true")):(q(s,i.theme.tableFrozenColumn),l.removeAttribute("data-lexical-frozen-column"))})(e,n,o,this.__frozenColumnCount),this.__frozenRowCount!==(t?t.__frozenRowCount:0)&&(function(s,l,i,c){c>0?(z(s,i.theme.tableFrozenRow),l.setAttribute("data-lexical-frozen-row","true")):(q(s,i.theme.tableFrozenRow),l.removeAttribute("data-lexical-frozen-row"))})(e,n,o,this.__frozenRowCount)}updateTableElement(t,e,n){this.__style!==(t?t.__style:"")&&(e.style.cssText=this.__style),this.__rowStriping!==(!!t&&t.__rowStriping)&&(function(o,s,l){l?(z(o,s.theme.tableRowStriping),o.setAttribute("data-lexical-row-striping","true")):(q(o,s.theme.tableRowStriping),o.removeAttribute("data-lexical-row-striping"))})(e,n,this.__rowStriping),(function(o,s,l,i){const c=o.querySelector("colgroup");if(!c)return;const h=[];for(let d=0;d<l;d++){const f=document.createElement("col"),a=i&&i[d];a&&(f.style.width=`${a}px`),h.push(f)}c.replaceChildren(...h)})(e,0,this.getColumnCount(),this.getColWidths()),Tt(e,n,this.getFormatType())}updateDOM(t,e,n){const o=this.getDOMSlot(e).element;return e===o===kt()||(V(s=e)&&s.nodeName==="DIV"&&this.updateTableWrapper(t,e,o,n),this.updateTableElement(t,o,n),!1);var s}exportDOM(t){const e=super.exportDOM(t),{element:n}=e;return{after:o=>{if(e.after&&(o=e.after(o)),!U(o)&&V(o)&&(o=o.querySelector("table")),!U(o))return null;Tt(o,t._config,this.getFormatType());const[s]=jt(this,null,null),l=new Map;for(const d of s)for(const f of d){const a=f.cell.getKey();l.has(a)||l.set(a,{colSpan:f.cell.getColSpan(),startColumn:f.startColumn})}const i=new Set;for(const d of o.querySelectorAll(":scope > tr > [data-temporary-table-cell-lexical-key]")){const f=d.getAttribute("data-temporary-table-cell-lexical-key");if(f){const a=l.get(f);if(d.removeAttribute("data-temporary-table-cell-lexical-key"),a){l.delete(f);for(let u=0;u<a.colSpan;u++)i.add(u+a.startColumn)}}}const c=o.querySelector(":scope > colgroup");if(c){const d=Array.from(o.querySelectorAll(":scope > colgroup > col")).filter((f,a)=>i.has(a));c.replaceChildren(...d)}const h=o.querySelectorAll(":scope > tr");if(h.length>0){const d=document.createElement("tbody");for(const f of h)d.appendChild(f);o.append(d)}return o},element:!U(n)&&V(n)?n.querySelector("table"):n}}canBeEmpty(){return!1}isShadowRoot(){return!0}getCordsFromCellNode(t,e){const{rows:n,domRows:o}=e;for(let s=0;s<n;s++){const l=o[s];if(l!=null)for(let i=0;i<l.length;i++){const c=l[i];if(c==null)continue;const{elem:h}=c,d=me(this,h);if(d!==null&&t.is(d))return{x:i,y:s}}}throw new Error("Cell not found in table.")}getDOMCellFromCords(t,e,n){const{domRows:o}=n,s=o[e];if(s==null)return null;const l=s[t<s.length?t:s.length-1];return l??null}getDOMCellFromCordsOrThrow(t,e,n){const o=this.getDOMCellFromCords(t,e,n);if(!o)throw new Error("Cell not found at cords.");return o}getCellNodeFromCords(t,e,n){const o=this.getDOMCellFromCords(t,e,n);if(o==null)return null;const s=$t(o.elem);return F(s)?s:null}getCellNodeFromCordsOrThrow(t,e,n){const o=this.getCellNodeFromCords(t,e,n);if(!o)throw new Error("Node at cords not TableCellNode.");return o}getRowStriping(){return!!this.getLatest().__rowStriping}setRowStriping(t){const e=this.getWritable();return e.__rowStriping=t,e}setFrozenColumns(t){const e=this.getWritable();return e.__frozenColumnCount=t,e}getFrozenColumns(){return this.getLatest().__frozenColumnCount}setFrozenRows(t){const e=this.getWritable();return e.__frozenRowCount=t,e}getFrozenRows(){return this.getLatest().__frozenRowCount}canSelectBefore(){return!0}canIndent(){return!1}getColumnCount(){const t=this.getFirstChild();if(!t)return 0;let e=0;return t.getChildren().forEach(n=>{F(n)&&(e+=n.getColSpan())}),e}}function Ce(r){const t=Pt();r.hasAttribute("data-lexical-row-striping")&&t.setRowStriping(!0),r.hasAttribute("data-lexical-frozen-column")&&t.setFrozenColumns(1),r.hasAttribute("data-lexical-frozen-row")&&t.setFrozenRows(1);const e=r.querySelector(":scope > colgroup");if(e){let n=[];for(const o of e.querySelectorAll(":scope > col")){let s=o.style.width||"";if(!_t.test(s)&&(s=o.getAttribute("width")||"",!/^\d+$/.test(s))){n=void 0;break}n.push(parseFloat(s))}n&&t.setColWidths(n)}return{after:n=>zt(n,Y),node:t}}function Pt(){return ot(new at)}function Kt(r){return r instanceof at}const Ht=Object.freeze({" ":"\\t","\n":"\\n"}),Ot=new RegExp(Object.keys(Ht).join("|"),"g"),D=Object.freeze({ancestorHasNextSibling:"|",ancestorIsLastChild:" ",hasNextSibling:"├",isLastChild:"└",selectedChar:"^",selectedLine:">"}),we=[r=>r.hasFormat("bold")&&"Bold",r=>r.hasFormat("code")&&"Code",r=>r.hasFormat("italic")&&"Italic",r=>r.hasFormat("strikethrough")&&"Strikethrough",r=>r.hasFormat("subscript")&&"Subscript",r=>r.hasFormat("superscript")&&"Superscript",r=>r.hasFormat("underline")&&"Underline",r=>r.hasFormat("highlight")&&"Highlight"],ye=[r=>r.hasTextFormat("bold")&&"Bold",r=>r.hasTextFormat("code")&&"Code",r=>r.hasTextFormat("italic")&&"Italic",r=>r.hasTextFormat("strikethrough")&&"Strikethrough",r=>r.hasTextFormat("subscript")&&"Subscript",r=>r.hasTextFormat("superscript")&&"Superscript",r=>r.hasTextFormat("underline")&&"Underline",r=>r.hasTextFormat("highlight")&&"Highlight"],be=[r=>r.isDirectionless()&&"Directionless",r=>r.isUnmergeable()&&"Unmergeable"],xe=[r=>r.isToken()&&"Token",r=>r.isSegmented()&&"Segmented"];function Ne(r,t,e,n,o=!1){const s=r.getEditorState(),l=r._config,i=r._compositionKey,c=r._editable;if(e){let a="";return s.read(()=>{a=(function(u){const _=document.createElement("div");return _.innerHTML=u.trim(),Ut(_,0).innerHTML})(ee(r))}),a}let h=` root
|
|
3
|
-
`;const d=s.read(()=>{const a=ne();return Jt(re(),(u,_)=>{const S=`(${u.getKey()})`,m=u.getType()||"",p=u.isSelected();h+=`${p?D.selectedLine:" "} ${_.join(" ")} ${S} ${m} ${(function(g,T,w=!1){const W=T?T(g,w):void 0;if(W!==void 0&&W.length>0)return W;if(nt(g)){const y=g.getTextContent(),A=y.length===0?"(empty)":`"${Et(y,w)}"`,k=(function(x){return[Rt(x),ve(x),Te(x),Ft(x)].filter(Boolean).join(", ")})(g);return[A,k.length!==0?`{ ${k} }`:null].filter(Boolean).join(" ").trim()}if(se(g)){const y=g.getURL(),A=y.length===0?"(empty)":`"${Et(y,w)}"`,k=(function(x){return[ke(x),Oe(x),Ee(x),Ft(x)].filter(Boolean).join(", ")})(g);return[A,k.length!==0?`{ ${k} }`:null].filter(Boolean).join(" ").trim()}if(ce(g))return`ids: [ ${g.getIDs().join(", ")} ]`;if(At(g)){const y=(function(k){let x=ye.map(O=>O(k)).filter(Boolean).join(", ").toLocaleLowerCase();return x!==""&&(x="format: "+x),x})(g);let A=y!==""?`{ ${y} }`:"";return A+=g.__style?`(${g.__style})`:"",A}return""})(u,n,o)}
|
|
4
|
-
`,h+=(function({indent:g,isSelected:T,node:w,nodeKeyDisplay:W,selection:y,typeDisplay:A}){if(!nt(w)||!ht(y)||!T||st(w))return"";const k=y.anchor,x=y.focus;if(w.getTextContent()===""||k.getNode()===y.focus.getNode()&&k.offset===x.offset)return"";const[O,G]=(function(N,v){const Z=v.getStartEndPoints();if(yt(v)||Z===null)return[-1,-1];const[M,$]=Z,L=N.getTextContent(),ct=L.length;let H=-1,tt=-1;if(M.type==="text"&&$.type==="text"){const J=M.getNode(),et=$.getNode();J===et&&N===J&&M.offset!==$.offset?[H,tt]=M.offset<$.offset?[M.offset,$.offset]:[$.offset,M.offset]:[H,tt]=N===J?J.isBefore(et)?[M.offset,ct]:[0,M.offset]:N===et?et.isBefore(J)?[$.offset,ct]:[0,$.offset]:[0,ct]}const mt=(L.slice(0,H).match(Ot)||[]).length,qt=(L.slice(H,tt).match(Ot)||[]).length;return[H+mt,tt+mt+qt]})(w,y);if(O===G)return"";const I=g[g.length-1]===D.hasNextSibling?D.ancestorHasNextSibling:D.ancestorIsLastChild,Q=[...g.slice(0,g.length-1),I],P=Array(O+1).fill(" "),K=Array(G-O).fill(D.selectedChar),B=A.length+2,R=Array(W.length+B).fill(" ");return[D.selectedLine,Q.join(" "),[...R,...P,...K].join("")].join(" ")+`
|
|
5
|
-
`})({indent:_,isSelected:p,node:u,nodeKeyDisplay:S,selection:a,typeDisplay:m})}),a===null?": null":ht(a)?(function(u){let _="";const S=Rt(u);_+=`: range ${S!==""?`{ ${S} }`:""} ${u.style!==""?`{ style: ${u.style} } `:""}`;const m=u.anchor,p=u.focus,g=m.offset,T=p.offset;return _+=`
|
|
6
|
-
├ anchor { key: ${m.key}, offset: ${g===null?"null":g}, type: ${m.type} }`,_+=`
|
|
7
|
-
└ focus { key: ${p.key}, offset: ${T===null?"null":T}, type: ${p.type} }`,_})(a):It(a)?(function(u){return`: table
|
|
8
|
-
└ { table: ${u.tableKey}, anchorCell: ${u.anchor.key}, focusCell: ${u.focus.key} }`})(a):(function(u){return yt(u)?`: node
|
|
9
|
-
└ [${Array.from(u._nodes).join(", ")}]`:""})(a)});if(h+=`
|
|
10
|
-
selection`+d,h+=`
|
|
11
|
-
|
|
12
|
-
commands:`,t.length)for(const{index:a,type:u,payload:_}of t)h+=`
|
|
13
|
-
└ ${a}. { type: ${u}, payload: ${_ instanceof Event?_.constructor.name:_} }`;else h+=`
|
|
14
|
-
└ None dispatched.`;const{version:f}=r.constructor;return h+=`
|
|
15
|
-
|
|
16
|
-
editor${f?` (v${f})`:""}:`,h+=`
|
|
17
|
-
└ namespace ${l.namespace}`,i!==null&&(h+=`
|
|
18
|
-
└ compositionKey ${i}`),h+=`
|
|
19
|
-
└ editable ${String(c)}`,h}function Jt(r,t,e=[]){const n=r.getChildren(),o=n.length;n.forEach((s,l)=>{t(s,e.concat(l===o-1?D.isLastChild:D.hasNextSibling)),st(s)&&Jt(s,t,e.concat(l===o-1?D.ancestorIsLastChild:D.ancestorHasNextSibling))})}function Et(r,t=!1){const e=Object.entries(Ht).reduce((n,[o,s])=>n.replace(new RegExp(o,"g"),String(s)),r);return t?e.replace(/[^\s]/g,"*"):e}function ve(r){let t=be.map(e=>e(r)).filter(Boolean).join(", ").toLocaleLowerCase();return t!==""&&(t="detail: "+t),t}function Te(r){let t=xe.map(e=>e(r)).filter(Boolean).join(", ").toLocaleLowerCase();return t!==""&&(t="mode: "+t),t}function Rt(r){let t=we.map(e=>e(r)).filter(Boolean).join(", ").toLocaleLowerCase();return t!==""&&(t="format: "+t),t}function ke(r){let t=r.getTarget();return t!=null&&(t="target: "+t),t}function Oe(r){let t=r.getRel();return t!=null&&(t="rel: "+t),t}function Ee(r){let t=r.getTitle();return t!=null&&(t="title: "+t),t}function Ft(r){if(!r.__state)return!1;const t=[];for(const[n,o]of r.__state.knownState.entries()){if(n.isEqual(o,n.defaultValue))continue;const s=JSON.stringify(n.unparse(o));t.push(`[${n.key}: ${s}]`)}let e=t.join(",");return e!==""&&(e="state: "+e),e}function Ut(r,t){const e=new Array(1+t++).join(" "),n=new Array(t-1).join(" ");let o;for(let s=0;s<r.children.length;s++)o=document.createTextNode(`
|
|
20
|
-
`+e),r.insertBefore(o,r.children[s]),Ut(r.children[s],t),r.lastElementChild===r.children[s]&&(o=document.createTextNode(`
|
|
21
|
-
`+n),r.appendChild(o));return r}const Re=C.forwardRef(function({treeTypeButtonClassName:r,timeTravelButtonClassName:t,timeTravelPanelSliderClassName:e,timeTravelPanelButtonClassName:n,viewClassName:o,timeTravelPanelClassName:s,editorState:l,setEditorState:i,setEditorReadOnly:c,generateContent:h,commandsLog:d=[]},f){const[a,u]=C.useState([]),[_,S]=C.useState(""),[m,p]=C.useState(!1),[g,T]=C.useState(!1),w=C.useRef(0),W=C.useRef(null),[y,A]=C.useState(!1),[k,x]=C.useState(!1),[O,G]=C.useState(!1),I=C.useRef(null),Q=C.useRef([]),P=C.useRef(0),K=C.useCallback(R=>{const N=++P.current;h(R).then(v=>{N===P.current&&S(v)}).catch(v=>{N===P.current&&S(`Error rendering tree: ${v.message}
|
|
22
|
-
|
|
23
|
-
Stack:
|
|
24
|
-
${v.stack}`)})},[h]);C.useEffect(()=>{if(!(!O&&l._nodeMap.size>1e3&&(x(!0),!O))&&(I.current!==l||Q.current!==d)){const R=I.current!==l;I.current=l,Q.current=d,K(g),!m&&R&&u(N=>[...N,[Date.now(),l]])}},[l,K,g,O,m,d]);const B=a.length;return C.useEffect(()=>{if(y){let R;const N=()=>{const v=w.current;if(v===B-1)return void A(!1);const Z=a[v][0],M=a[v+1][0];R=setTimeout(()=>{w.current++;const $=w.current,L=W.current;L!==null&&(L.value=String($)),i(a[$][1]),N()},M-Z)};return N(),()=>{clearTimeout(R)}}},[a,y,B,i]),E.jsxs("div",{className:o,children:[!O&&k?E.jsxs("div",{style:{padding:20},children:[E.jsx("span",{style:{marginRight:20},children:"Detected large EditorState, this can impact debugging performance."}),E.jsx("button",{onClick:()=>{G(!0)},style:{background:"transparent",border:"1px solid white",color:"white",cursor:"pointer",padding:5},children:"Show full tree"})]}):null,O?null:E.jsx("button",{onClick:()=>(K(!g),void T(!g)),className:r,type:"button",children:g?"Tree":"Export DOM"}),!m&&(O||!k)&&B>2&&E.jsx("button",{onClick:()=>{c(!0),w.current=B-1,p(!0)},className:t,type:"button",children:"Time Travel"}),(O||!k)&&E.jsx("pre",{ref:f,children:_}),m&&(O||!k)&&E.jsxs("div",{className:s,children:[E.jsx("button",{className:n,onClick:()=>{w.current===B-1&&(w.current=1),A(!y)},type:"button",children:y?"Pause":"Play"}),E.jsx("input",{className:e,ref:W,onChange:R=>{const N=Number(R.target.value),v=a[N];v&&(w.current=N,i(v[1]))},type:"range",min:"1",max:B-1}),E.jsx("button",{className:n,onClick:()=>{c(!1);const R=a.length-1,N=a[R];i(N[1]);const v=W.current;v!==null&&(v.value=String(R)),p(!1),A(!1)},type:"button",children:"Exit"})]})]})});function Fe(r,t){const e=new Set;let n=0;for(const[o]of r._commands)e.add(r.registerCommand(o,s=>(t(l=>{n+=1;const i=[...l];return i.push({index:n,payload:s,type:o.type?o.type:"UNKNOWN"}),i.length>10&&i.shift(),i}),!1),oe));return()=>e.forEach(o=>o())}function Ae(r){const[t,e]=C.useState([]);return C.useEffect(()=>Fe(r,e),[r]),C.useMemo(()=>t,[t])}function $e({treeTypeButtonClassName:r,timeTravelButtonClassName:t,timeTravelPanelSliderClassName:e,timeTravelPanelButtonClassName:n,timeTravelPanelClassName:o,viewClassName:s,editor:l,customPrintNode:i}){const c=C.createRef(),[h,d]=C.useState(l.getEditorState()),f=Ae(l);return C.useEffect(()=>le(l.registerUpdateListener(({editorState:a})=>{d(a)}),l.registerEditableListener(()=>{d(l.getEditorState())})),[l]),C.useEffect(()=>{const a=c.current;if(a!==null)return a.__lexicalEditor=l,()=>{a.__lexicalEditor=null}},[l,c]),E.jsx(Re,{treeTypeButtonClassName:r,timeTravelButtonClassName:t,timeTravelPanelSliderClassName:e,timeTravelPanelButtonClassName:n,viewClassName:s,timeTravelPanelClassName:o,setEditorReadOnly:a=>{const u=l.getRootElement();u!=null&&(u.contentEditable=a?"false":"true")},editorState:h,setEditorState:a=>l.setEditorState(a),generateContent:async function(a){return Ne(l,f,a,i)},ref:c,commandsLog:f})}function ze(){const r=Mt.c(2),[t]=gt();let e;return r[0]!==t?(e=E.jsx(ie,{fontSize:"xs",color:"fg.muted",padding:"4",children:E.jsx($e,{treeTypeButtonClassName:"debug-treetype-button",timeTravelButtonClassName:"debug-timetravel-button",timeTravelPanelButtonClassName:"debug-timetravel-button",timeTravelPanelClassName:"debug-timetravel-panel",timeTravelPanelSliderClassName:"debug-timetravel-slider",viewClassName:"tree-view-output",editor:t})}),r[0]=t,r[1]=e):e=r[1],e}ze.__docgenInfo={description:"",methods:[],displayName:"TreeViewPlugin"};export{je as T,ze as a,lt as f,Le as n};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,j as D}from"./iframe-B8FSoBNY.js";import{c as H}from"./compiler-runtime-BXE7OOXE.js";import{c as _}from"./factory-DAJZwK4o.js";import{A as q}from"./button-C7it2n8t.js";import{I as O}from"./icon-button-DHiUe7rR.js";import{c as U}from"./createLucideIcon-CcBBUKX8.js";const G=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],V=U("arrow-down",G);const X={damping:.7,stiffness:.05,mass:1.25},Y=70,J=1e3/60,K=350;let x=!1;globalThis.document?.addEventListener("mousedown",()=>{x=!0});globalThis.document?.addEventListener("mouseup",()=>{x=!1});globalThis.document?.addEventListener("click",()=>{x=!1});const W=(c={})=>{const[r,a]=s.useState(!1),[l,u]=s.useState(c.initial!==!1),[g,B]=s.useState(!1),T=s.useRef(null);T.current=c;const w=s.useCallback(()=>{if(!x)return!1;const t=window.getSelection();if(!t||!t.rangeCount)return!1;const n=t.getRangeAt(0);return n.commonAncestorContainer.contains(i.current)||i.current?.contains(n.commonAncestorContainer)},[]),m=s.useCallback(t=>{e.isAtBottom=t,u(t)},[]),d=s.useCallback(t=>{e.escapedFromLock=t,a(t)},[]),e=s.useMemo(()=>{let t;return{escapedFromLock:r,isAtBottom:l,resizeDifference:0,accumulated:0,velocity:0,listeners:new Set,get scrollTop(){return i.current?.scrollTop??0},set scrollTop(n){i.current&&(i.current.scrollTop=n,e.ignoreScrollToTop=i.current.scrollTop)},get targetScrollTop(){return!i.current||!h.current?0:i.current.scrollHeight-1-i.current.clientHeight},get calculatedTargetScrollTop(){if(!i.current||!h.current)return 0;const{targetScrollTop:n}=this;if(!c.targetScrollTop)return n;if(t?.targetScrollTop===n)return t.calculatedScrollTop;const o=Math.max(Math.min(c.targetScrollTop(n,{scrollElement:i.current,contentElement:h.current}),n),0);return t={targetScrollTop:n,calculatedScrollTop:o},requestAnimationFrame(()=>{t=void 0}),o},get scrollDifference(){return this.calculatedTargetScrollTop-this.scrollTop},get isNearBottom(){return this.scrollDifference<=Y}}},[]),C=s.useCallback((t={})=>{typeof t=="string"&&(t={animation:t}),t.preserveScrollPosition||m(!0);const n=Date.now()+(Number(t.wait)||0),o=N(T.current,t.animation),{ignoreEscapes:f=!1}=t;let p,S=e.calculatedTargetScrollTop;t.duration instanceof Promise?t.duration.finally(()=>{p=Date.now()}):p=n+(t.duration??0);const b=async()=>{const z=new Promise(requestAnimationFrame).then(()=>{if(!e.isAtBottom)return e.animation=void 0,!1;const{scrollTop:A}=e,R=performance.now(),j=(R-(e.lastTick??R))/J;if(e.animation||(e.animation={behavior:o,promise:z,ignoreEscapes:f}),e.animation.behavior===o&&(e.lastTick=R),w()||n>Date.now())return b();if(A<Math.min(S,e.calculatedTargetScrollTop)){if(e.animation?.behavior===o){if(o==="instant")return e.scrollTop=e.calculatedTargetScrollTop,b();e.velocity=(o.damping*e.velocity+o.stiffness*e.scrollDifference)/o.mass,e.accumulated+=e.velocity*j,e.scrollTop+=e.accumulated,e.scrollTop!==A&&(e.accumulated=0)}return b()}return p>Date.now()?(S=e.calculatedTargetScrollTop,b()):(e.animation=void 0,e.scrollTop<e.calculatedTargetScrollTop?C({animation:N(T.current,T.current.resize),ignoreEscapes:f,duration:Math.max(0,p-Date.now())||void 0}):e.isAtBottom)});return z.then(A=>(requestAnimationFrame(()=>{e.animation||(e.lastTick=void 0,e.velocity=0)}),A))};return t.wait!==!0&&(e.animation=void 0),e.animation?.behavior===o?e.animation.promise:b()},[m,w,e]),v=s.useCallback(()=>{d(!0),m(!1)},[d,m]),E=s.useCallback(({target:t})=>{if(t!==i.current)return;const{scrollTop:n,ignoreScrollToTop:o}=e;let{lastScrollTop:f=n}=e;e.lastScrollTop=n,e.ignoreScrollToTop=void 0,o&&o>n&&(f=o),B(e.isNearBottom),setTimeout(()=>{if(e.resizeDifference||n===o)return;if(w()){d(!0),m(!1);return}const p=n>f,S=n<f;if(e.animation?.ignoreEscapes){e.scrollTop=f;return}S&&(d(!0),m(!1)),p&&d(!1),!e.escapedFromLock&&e.isNearBottom&&m(!0)},1)},[d,m,w,e]),k=s.useCallback(({target:t,deltaY:n})=>{let o=t;for(;!["scroll","auto"].includes(getComputedStyle(o).overflow);){if(!o.parentElement)return;o=o.parentElement}o===i.current&&n<0&&i.current.scrollHeight>i.current.clientHeight&&!e.animation?.ignoreEscapes&&(d(!0),m(!1))},[d,m,e]),i=L(t=>{i.current?.removeEventListener("scroll",E),i.current?.removeEventListener("wheel",k),t?.addEventListener("scroll",E,{passive:!0}),t?.addEventListener("wheel",k,{passive:!0})},[]),h=L(t=>{if(e.resizeObserver?.disconnect(),!t)return;let n;e.resizeObserver=new ResizeObserver(([o])=>{const{height:f}=o.contentRect,p=f-(n??f);if(e.resizeDifference=p,e.scrollTop>e.targetScrollTop&&(e.scrollTop=e.targetScrollTop),B(e.isNearBottom),p>=0){const S=N(T.current,n?T.current.resize:T.current.initial);C({animation:S,wait:!0,preserveScrollPosition:!0,duration:S==="instant"?void 0:K})}else e.isNearBottom&&(d(!1),m(!0));n=f,requestAnimationFrame(()=>{setTimeout(()=>{e.resizeDifference===p&&(e.resizeDifference=0)},1)})}),e.resizeObserver?.observe(t)},[]);return{contentRef:h,scrollRef:i,scrollToBottom:C,stopScroll:v,isAtBottom:l||g,isNearBottom:g,escapedFromLock:r,state:e}};function L(c,r){const a=s.useCallback(l=>(a.current=l,c(l)),r);return a}const I=new Map;function N(...c){const r={...X};let a=!1;for(const u of c){if(u==="instant"){a=!0;continue}typeof u=="object"&&(a=!1,r.damping=u.damping??r.damping,r.stiffness=u.stiffness??r.stiffness,r.mass=u.mass??r.mass)}const l=JSON.stringify(r);return I.has(l)||I.set(l,Object.freeze(r)),a?"instant":I.get(l)}const F=s.createContext(null),$=typeof window<"u"?s.useLayoutEffect:s.useEffect;function y({instance:c,children:r,resize:a,initial:l,mass:u,damping:g,stiffness:B,targetScrollTop:T,contextRef:w,...m}){const d=s.useRef(null),e=s.useCallback((f,p)=>(o?.targetScrollTop??T)?.(f,p)??f,[T]),C=W({mass:u,damping:g,stiffness:B,resize:a,initial:l,targetScrollTop:e}),{scrollRef:v,contentRef:E,scrollToBottom:k,stopScroll:i,isAtBottom:h,escapedFromLock:t,state:n}=c??C,o=s.useMemo(()=>({scrollToBottom:k,stopScroll:i,scrollRef:v,isAtBottom:h,escapedFromLock:t,contentRef:E,state:n,get targetScrollTop(){return d.current},set targetScrollTop(f){d.current=f}}),[k,h,E,v,i,t,n]);return s.useImperativeHandle(w,()=>o,[o]),$(()=>{v.current&&getComputedStyle(v.current).overflow==="visible"&&(v.current.style.overflow="auto")},[]),s.createElement(F.Provider,{value:o},s.createElement("div",{...m},typeof r=="function"?r(o):r))}(function(c){function r({children:a,scrollClassName:l,...u}){const g=M();return s.createElement("div",{ref:g.scrollRef,style:{height:"100%",width:"100%",scrollbarGutter:"stable both-edges"},className:l},s.createElement("div",{...u,ref:g.contentRef},typeof a=="function"?a(g):a))}c.Content=r})(y||(y={}));function M(){const c=s.useContext(F);if(!c)throw new Error("use-stick-to-bottom component context must be used within a StickToBottom component");return c}const Q={"aria-roledescription":"conversation",initial:"instant",resize:"instant",role:"log"},Z=_(y,{base:{position:"relative",flex:1,overflowY:"auto",height:"full"}},{forwardProps:["resize"],defaultProps:Q}),ee=_(y.Content,{base:{p:"0"}},{defaultProps:{"aria-live":"polite",role:"list"}}),P=c=>{const r=H.c(4),{isAtBottom:a,scrollToBottom:l}=M();let u;return r[0]!==a||r[1]!==c||r[2]!==l?(u=!a&&D.jsx(q,{axis:"horizontal",bottom:"md",children:D.jsx(O,{rounded:"full",onClick:()=>l(),variant:"outline",size:"xs",...c,children:D.jsx(V,{size:16})})}),r[0]=a,r[1]=c,r[2]=l,r[3]=u):u=r[3],u},ce={Root:Z,Viewport:ee,ScrollToBottom:P};P.__docgenInfo={description:"",methods:[],displayName:"ConversationScrollButton"};export{ce as C,M as u};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./iframe-B8FSoBNY.js";import{c as p}from"./compiler-runtime-BXE7OOXE.js";import{r as a}from"./full-conversation-normalized-LUbl1coD.js";import{C as e}from"./ai-conversation-DcjS--ee.js";import{C as m}from"./ai-message-DLdAGhWH.js";import{m as n,M as l,g as s}from"./message-types-CEyA7Qm7.js";import{B as c}from"./index-B0y2_lLF.js";import{S as d}from"./stack-CN4X31TA.js";import"./preload-helper-PPVm8Dsz.js";import"./factory-DAJZwK4o.js";import"./button-C7it2n8t.js";import"./create-recipe-context-BU56IzEo.js";import"./spinner-ZYH_gvW-.js";import"./index-CXwl6T4k.js";import"./icon-button-DHiUe7rR.js";import"./createLucideIcon-CcBBUKX8.js";import"./create-slot-recipe-context-DAhDE6G_.js";import"./collaborative-markdown-editor-Bj0GvTvv.js";import"./rich-text-theme-Bkhh9rAZ.js";import"./index-DaXC_qY_.js";import"./index-DpB4ozcR.js";import"./flex-DAJL4AFZ.js";import"./CodeBlockPlugin-C3OWpvP8.js";import"./index-cFwdnc0b.js";import"./textarea-rqmaWSc5.js";import"./factory-BR3bc_RM.js";import"./use-field-context-DoxKQlMm.js";import"./computed-style-C0hzrq9-.js";import"./table-BKNSzs2r.js";import"./FloatingTextFormatToolbarPlugin-B6jc8xvg.js";import"./resource-badge-Bw5UoU4J.js";import"./file-text-D5m8MJlG.js";import"./tooltip-DZxUoouw.js";import"./portal-CZHfPTRw.js";import"./normalize-props-D7NI5JRu.js";import"./tooltip-C_a-XGZ8.js";import"./use-presence-context-DK2PGZth.js";import"./create-split-props-u5h9OPvL.js";import"./overflow-CkG1DOya.js";import"./x-D42ziktz.js";import"./markdown-editor-Y4eMsgVb.js";import"./LexicalHistoryPlugin.prod-BQAibkDj.js";import"./TreeViewPlugin-CyVKCrKJ.js";import"./markdown-BLUemkxK.js";import"./prompt-input-BLCttowi.js";import"./rich-message-BIkzo1SM.js";import"./ai-response-ySM6s0iN.js";import"./tool-invocation-timeline-B-cS0W6M.js";import"./trash-2-BO05slEk.js";import"./mutation-observer-CAfGweIM.js";import"./link-DE5grRtm.js";import"./diff-bubble-_zZypMRt.js";import"./diff-editor-DV9BXqbn.js";const x=a,ur={title:"Chat UI/AI Conversation",component:e.Root,parameters:{layout:"padded"}},f=n(x).slice(-18),g=()=>{const o=p.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=r.jsx(c,{h:"640px",maxW:"960px",w:"full",borderWidth:"1px",borderRadius:"md",bg:"bg",overflow:"hidden",children:r.jsxs(e.Root,{children:[r.jsx(e.Viewport,{children:r.jsx(d,{gap:"sm",children:f.map(u)})}),r.jsx(e.ScrollToBottom,{"aria-label":"Scroll to latest message"})]})}),o[0]=t):t=o[0],t},i={render:()=>r.jsx(g,{})};function u(o){return r.jsx(m.Root,{from:s(o.role),children:r.jsx(m.Content,{from:s(o.role),children:r.jsx(l,{message:o})})},o.id)}i.parameters={...i.parameters,docs:{...i.parameters?.docs,source:{originalSource:`{
|
|
2
|
-
render: () => <ConversationPreview />
|
|
3
|
-
}`,...i.parameters?.docs?.source}}};const hr=["FullConversationPreview"];export{i as FullConversationPreview,hr as __namedExportsOrder,ur as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as t}from"./create-slot-recipe-context-DAhDE6G_.js";import{d as e}from"./iframe-B8FSoBNY.js";const o=e({className:"ai-message",slots:["root","content"],base:{root:{display:"flex",width:"full",alignItems:"end",justifyContent:"end",gap:"sm"},content:{display:"flex",flexDirection:"column",gap:"sm",textStyle:"sm",overflow:"hidden"}},variants:{from:{user:{root:{mb:"md",flexDirection:"row","& > div":{marginLeft:"lg"}},content:{bg:"bg.muted",borderBottomRightRadius:0}},assistant:{root:{mb:"md",flexDirection:"row",justifyContent:"start","& > div":{marginRight:"lg"}}},developer:{root:{width:"full",flexDirection:"row-reverse"},content:{width:"full"}}},size:{sm:{root:{gap:"xs"},content:{px:"xs",py:"xs",textStyle:"xs"}},md:{content:{px:"xs",py:"xs"}},lg:{root:{gap:"md"},content:{px:"sm",py:"xs",textStyle:"md"}}},shape:{rounded:{content:{rounded:"lg"}},pill:{content:{rounded:"full"}},square:{content:{rounded:"none"}}}},defaultVariants:{from:"user",size:"md",shape:"rounded"}}),{withProvider:n,withContext:s}=t({recipe:o}),r=n("div","root"),i=s("div","content"),l={Root:r,Content:i};export{l as C};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./iframe-B8FSoBNY.js";import{c as n}from"./compiler-runtime-BXE7OOXE.js";import{r as c}from"./full-conversation-normalized-LUbl1coD.js";import{C as e}from"./ai-message-DLdAGhWH.js";import{R as m}from"./ai-response-ySM6s0iN.js";import{B as l}from"./index-B0y2_lLF.js";import{S as d}from"./stack-CN4X31TA.js";import"./preload-helper-PPVm8Dsz.js";import"./create-slot-recipe-context-DAhDE6G_.js";import"./factory-DAJZwK4o.js";import"./create-recipe-context-BU56IzEo.js";import"./collaborative-markdown-editor-Bj0GvTvv.js";import"./rich-text-theme-Bkhh9rAZ.js";import"./index-DaXC_qY_.js";import"./index-DpB4ozcR.js";import"./flex-DAJL4AFZ.js";import"./CodeBlockPlugin-C3OWpvP8.js";import"./index-cFwdnc0b.js";import"./textarea-rqmaWSc5.js";import"./factory-BR3bc_RM.js";import"./use-field-context-DoxKQlMm.js";import"./computed-style-C0hzrq9-.js";import"./table-BKNSzs2r.js";import"./FloatingTextFormatToolbarPlugin-B6jc8xvg.js";import"./resource-badge-Bw5UoU4J.js";import"./createLucideIcon-CcBBUKX8.js";import"./file-text-D5m8MJlG.js";import"./tooltip-DZxUoouw.js";import"./portal-CZHfPTRw.js";import"./normalize-props-D7NI5JRu.js";import"./tooltip-C_a-XGZ8.js";import"./use-presence-context-DK2PGZth.js";import"./create-split-props-u5h9OPvL.js";import"./overflow-CkG1DOya.js";import"./icon-button-DHiUe7rR.js";import"./button-C7it2n8t.js";import"./spinner-ZYH_gvW-.js";import"./index-CXwl6T4k.js";import"./x-D42ziktz.js";import"./markdown-editor-Y4eMsgVb.js";import"./LexicalHistoryPlugin.prod-BQAibkDj.js";import"./TreeViewPlugin-CyVKCrKJ.js";import"./markdown-BLUemkxK.js";import"./prompt-input-BLCttowi.js";import"./rich-message-BIkzo1SM.js";const a=c,p=t=>t.parts?.find(o=>o.type==="text"&&"text"in o)?.text,f=a.filter(t=>t.role==="user").map(p).find(Boolean)??"No user message available.",x=a.filter(t=>t.role==="assistant").map(p).find(t=>typeof t=="string"&&t.length>0)??"No assistant message available.",at={title:"Chat UI/AI Message",component:e.Root,parameters:{layout:"padded"}},h=()=>{const t=n.c(2);let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx(e.Root,{from:"user",children:r.jsx(e.Content,{from:"user",children:r.jsx(m,{height:"auto",children:f})})}),t[0]=o):o=t[0];let s;return t[1]===Symbol.for("react.memo_cache_sentinel")?(s=r.jsx(l,{maxW:"960px",w:"full",borderWidth:"1px",borderRadius:"md",bg:"bg",p:"md",children:r.jsxs(d,{gap:"sm",children:[o,r.jsx(e.Root,{from:"assistant",children:r.jsx(e.Content,{from:"assistant",children:r.jsx(m,{height:"auto",children:x})})})]})}),t[1]=s):s=t[1],s},i={render:()=>r.jsx(h,{})};i.parameters={...i.parameters,docs:{...i.parameters?.docs,source:{originalSource:`{
|
|
2
|
-
render: () => <MessagePreview />
|
|
3
|
-
}`,...i.parameters?.docs?.source}}};const pt=["UserAndAssistant"];export{i as UserAndAssistant,pt as __namedExportsOrder,at as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as m}from"./iframe-B8FSoBNY.js";import{c}from"./compiler-runtime-BXE7OOXE.js";import"./collaborative-markdown-editor-Bj0GvTvv.js";import"./markdown-editor-Y4eMsgVb.js";import"./prompt-input-BLCttowi.js";import{R as p}from"./rich-message-BIkzo1SM.js";import"./CodeBlockPlugin-C3OWpvP8.js";import{B as a}from"./index-B0y2_lLF.js";const n=r=>{const t=c.c(8);let e,o;t[0]!==r?({children:e,...o}=r,t[0]=r,t[1]=e,t[2]=o):(e=t[1],o=t[2]);let i;t[3]!==e?(i=m.jsx(p,{defaultState:e}),t[3]=e,t[4]=i):i=t[4];let s;return t[5]!==o||t[6]!==i?(s=m.jsx(a,{...o,children:i}),t[5]=o,t[6]=i,t[7]=s):s=t[7],s},C=n;n.__docgenInfo={description:"",methods:[],displayName:"ChatRichContent",props:{children:{required:!0,tsType:{name:"string"},description:""}},composes:["Omit"]};export{C as R};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{r as p}from"./full-conversation-normalized-LUbl1coD.js";import{R as m}from"./ai-response-ySM6s0iN.js";import"./iframe-B8FSoBNY.js";import"./preload-helper-PPVm8Dsz.js";import"./compiler-runtime-BXE7OOXE.js";import"./collaborative-markdown-editor-Bj0GvTvv.js";import"./rich-text-theme-Bkhh9rAZ.js";import"./index-DaXC_qY_.js";import"./index-DpB4ozcR.js";import"./factory-DAJZwK4o.js";import"./flex-DAJL4AFZ.js";import"./CodeBlockPlugin-C3OWpvP8.js";import"./index-B0y2_lLF.js";import"./index-cFwdnc0b.js";import"./create-recipe-context-BU56IzEo.js";import"./textarea-rqmaWSc5.js";import"./factory-BR3bc_RM.js";import"./use-field-context-DoxKQlMm.js";import"./computed-style-C0hzrq9-.js";import"./table-BKNSzs2r.js";import"./create-slot-recipe-context-DAhDE6G_.js";import"./FloatingTextFormatToolbarPlugin-B6jc8xvg.js";import"./resource-badge-Bw5UoU4J.js";import"./createLucideIcon-CcBBUKX8.js";import"./file-text-D5m8MJlG.js";import"./tooltip-DZxUoouw.js";import"./portal-CZHfPTRw.js";import"./normalize-props-D7NI5JRu.js";import"./tooltip-C_a-XGZ8.js";import"./use-presence-context-DK2PGZth.js";import"./create-split-props-u5h9OPvL.js";import"./overflow-CkG1DOya.js";import"./icon-button-DHiUe7rR.js";import"./button-C7it2n8t.js";import"./spinner-ZYH_gvW-.js";import"./index-CXwl6T4k.js";import"./x-D42ziktz.js";import"./stack-CN4X31TA.js";import"./markdown-editor-Y4eMsgVb.js";import"./LexicalHistoryPlugin.prod-BQAibkDj.js";import"./TreeViewPlugin-CyVKCrKJ.js";import"./markdown-BLUemkxK.js";import"./prompt-input-BLCttowi.js";import"./rich-message-BIkzo1SM.js";const e=p,i=t=>t.parts?.find(s=>s.type==="text"&&"text"in s)?.text,a=e.filter(t=>t.role==="user").map(i).find(Boolean)??"No user message available.",n=e.filter(t=>t.role==="assistant").map(i).find(t=>typeof t=="string"&&t.length>0)??"No assistant message available.",tt={title:"Chat UI/AI Response",component:m,parameters:{layout:"padded"}},r={args:{children:n,height:"auto"}},o={args:{children:a,height:"auto"}};r.parameters={...r.parameters,docs:{...r.parameters?.docs,source:{originalSource:`{
|
|
2
|
-
args: {
|
|
3
|
-
children: assistantResponseForStory,
|
|
4
|
-
height: "auto"
|
|
5
|
-
}
|
|
6
|
-
}`,...r.parameters?.docs?.source}}};o.parameters={...o.parameters,docs:{...o.parameters?.docs,source:{originalSource:`{
|
|
7
|
-
args: {
|
|
8
|
-
children: userPromptForStory,
|
|
9
|
-
height: "auto"
|
|
10
|
-
}
|
|
11
|
-
}`,...o.parameters?.docs?.source}}};const rt=["AssistantResponse","UserPromptAsContent"];export{r as AssistantResponse,o as UserPromptAsContent,rt as __namedExportsOrder,tt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as h,r as w}from"./iframe-B8FSoBNY.js";import{c as A}from"./compiler-runtime-BXE7OOXE.js";import{R as B}from"./resource-badge-Bw5UoU4J.js";import{S as E}from"./stack-CN4X31TA.js";const q="md",L="neutral",P=S=>{const e=A.c(25),{attachments:p,onSelect:t,onRemove:n,renderBadge:s,size:v,tone:y}=S;let l;e[0]!==p?(l=p===void 0?[]:p,e[0]=p,e[1]=l):l=e[1];const u=l,o=v===void 0?q:v,a=y===void 0?L:y;let g;e[2]!==t?(g=r=>{t?.(r)},e[2]=t,e[3]=g):g=e[3];const c=g;let f;e[4]!==n?(f=r=>{n?.(r)},e[4]=n,e[5]=f):f=e[5];const d=f;if(u.length===0)return null;let i;if(e[6]!==u||e[7]!==d||e[8]!==c||e[9]!==n||e[10]!==t||e[11]!==s||e[12]!==o||e[13]!==a){let r;e[15]!==d||e[16]!==c||e[17]!==n||e[18]!==t||e[19]!==s||e[20]!==o||e[21]!==a?(r=m=>{const x=t?()=>c(m):void 0,I=n?()=>d(m):void 0;if(s){const T=s({attachmentId:m,onSelect:x,onRemove:I,size:o,tone:a});return h.jsx(w.Fragment,{children:T},m)}return h.jsx(B,{fileName:m,onSelect:x,onRemove:I,size:o,tone:a},m)},e[15]=d,e[16]=c,e[17]=n,e[18]=t,e[19]=s,e[20]=o,e[21]=a,e[22]=r):r=e[22],i=u.map(r),e[6]=u,e[7]=d,e[8]=c,e[9]=n,e[10]=t,e[11]=s,e[12]=o,e[13]=a,e[14]=i}else i=e[14];let R;return e[23]!==i?(R=h.jsx(E,{marginBottom:"sm",gap:"1",flexDir:"row",flexWrap:"wrap",children:i}),e[23]=i,e[24]=R):R=e[24],R};P.__docgenInfo={description:"Simple attachment list component that displays resource badges.",methods:[],displayName:"AttachmentList",props:{attachments:{required:!1,tsType:{name:"Array",elements:[{name:"string"}],raw:"string[]"},description:""},onSelect:{required:!1,tsType:{name:"signature",type:"function",raw:"(attachmentId: string) => void",signature:{arguments:[{type:{name:"string"},name:"attachmentId"}],return:{name:"void"}}},description:""},onRemove:{required:!1,tsType:{name:"signature",type:"function",raw:"(attachmentId: string) => void",signature:{arguments:[{type:{name:"string"},name:"attachmentId"}],return:{name:"void"}}},description:""},renderBadge:{required:!1,tsType:{name:"signature",type:"function",raw:"(props: AttachmentListItemRenderProps) => ReactNode",signature:{arguments:[{type:{name:"AttachmentListItemRenderProps"},name:"props"}],return:{name:"ReactNode"}}},description:""},size:{required:!1,tsType:{name:'ResourceBadgeProps["size"]',raw:'ResourceBadgeProps["size"]'},description:""},tone:{required:!1,tsType:{name:'ResourceBadgeProps["tone"]',raw:'ResourceBadgeProps["tone"]'},description:""}}};export{P as A};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{A as e}from"./attachment-list-1p1601I5.js";import"./iframe-B8FSoBNY.js";import"./preload-helper-PPVm8Dsz.js";import"./compiler-runtime-BXE7OOXE.js";import"./resource-badge-Bw5UoU4J.js";import"./createLucideIcon-CcBBUKX8.js";import"./file-text-D5m8MJlG.js";import"./tooltip-DZxUoouw.js";import"./portal-CZHfPTRw.js";import"./index-DaXC_qY_.js";import"./index-DpB4ozcR.js";import"./normalize-props-D7NI5JRu.js";import"./factory-BR3bc_RM.js";import"./tooltip-C_a-XGZ8.js";import"./create-slot-recipe-context-DAhDE6G_.js";import"./factory-DAJZwK4o.js";import"./create-recipe-context-BU56IzEo.js";import"./use-presence-context-DK2PGZth.js";import"./create-split-props-u5h9OPvL.js";import"./computed-style-C0hzrq9-.js";import"./overflow-CkG1DOya.js";import"./index-cFwdnc0b.js";import"./icon-button-DHiUe7rR.js";import"./button-C7it2n8t.js";import"./spinner-ZYH_gvW-.js";import"./index-CXwl6T4k.js";import"./x-D42ziktz.js";import"./stack-CN4X31TA.js";const U={title:"Chat UI/AttachmentList",component:e,parameters:{layout:"padded"}},r=["workspace/analysis/report.md","workspace/data/users.csv"],t={args:{attachments:r,onSelect:o=>console.log("Selected:",o),onRemove:o=>console.log("Remove:",o)}};t.parameters={...t.parameters,docs:{...t.parameters?.docs,source:{originalSource:`{
|
|
2
|
-
args: {
|
|
3
|
-
attachments: sampleAttachments,
|
|
4
|
-
onSelect: resourceId => console.log("Selected:", resourceId),
|
|
5
|
-
onRemove: resourceId => console.log("Remove:", resourceId)
|
|
6
|
-
}
|
|
7
|
-
}`,...t.parameters?.docs?.source}}};const b=["Default"];export{t as Default,b as __namedExportsOrder,U as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as e}from"./create-recipe-context-BU56IzEo.js";const{withContext:t}=e({key:"badge"}),a=t("span");a.displayName="Badge";export{a as B};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{j as r,r as y}from"./iframe-B8FSoBNY.js";import{c as I}from"./compiler-runtime-BXE7OOXE.js";import{c as S}from"./create-slot-recipe-context-DAhDE6G_.js";import{C as v,E as w}from"./icons-WRA1cA-W.js";import{I as L}from"./icon-C8FN9JqD.js";import{C as P}from"./chevron-right-owK1wZnx.js";import{B as T}from"./index-B0y2_lLF.js";import"./preload-helper-PPVm8Dsz.js";import"./factory-DAJZwK4o.js";import"./create-recipe-context-BU56IzEo.js";import"./createLucideIcon-CcBBUKX8.js";const{withProvider:E,withContext:p}=S({key:"breadcrumb"}),q=E("nav","root",{defaultProps:{"aria-label":"breadcrumb"}}),N=p("ol","list"),_=p("li","item"),h=p("a","link"),D=p("span","currentLink",{defaultProps:{role:"link","aria-current":"page"}}),G=p("li","separator",{defaultProps:{"aria-hidden":!0,children:r.jsx(v,{})}});p("li","ellipsis",{defaultProps:{role:"presentation","aria-hidden":!0,children:r.jsx(w,{})}});const k=y.forwardRef(function(b,g){const e=I.c(21);let o,a,n,s,i;e[0]!==b?({separator:s,separatorGap:i,items:a,linkComponent:o,...n}=b,e[0]=b,e[1]=o,e[2]=a,e[3]=n,e[4]=s,e[5]=i):(o=e[1],a=e[2],n=e[3],s=e[4],i=e[5]);let c;if(e[6]!==o||e[7]!==a||e[8]!==s){let u;e[10]!==o||e[11]!==a.length||e[12]!==s?(u=(t,j)=>{const B=j===a.length-1,R=!!(t.url||t.onClick);let d;return B&&!R?d=r.jsx(D,{children:t.title}):t.url?d=o?r.jsx(h,{asChild:!0,children:r.jsx(o,{to:t.url,children:t.title})}):r.jsx(h,{href:t.url,children:t.title}):t.onClick?d=r.jsx(h,{as:"button",type:"button",onClick:t.onClick,children:t.title}):d=r.jsx(h,{children:t.title}),r.jsxs(_,{children:[d,B?null:r.jsx(G,{as:"span","aria-hidden":!0,ml:"xs",children:s})]},j)},e[10]=o,e[11]=a.length,e[12]=s,e[13]=u):u=e[13],c=a.map(u),e[6]=o,e[7]=a,e[8]=s,e[9]=c}else c=e[9];let l;e[14]!==i||e[15]!==c?(l=r.jsx(N,{gap:i,children:c}),e[14]=i,e[15]=c,e[16]=l):l=e[16];let m;return e[17]!==g||e[18]!==n||e[19]!==l?(m=r.jsx(q,{ref:g,...n,children:l}),e[17]=g,e[18]=n,e[19]=l,e[20]=m):m=e[20],m});k.__docgenInfo={description:"",methods:[],displayName:"Breadcrumb",props:{separator:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},separatorGap:{required:!1,tsType:{name:'SystemStyleObject["gap"]',raw:'SystemStyleObject["gap"]'},description:""},items:{required:!0,tsType:{name:"Array",elements:[{name:"BreadcrumbItem"}],raw:"BreadcrumbItem[]"},description:""},linkComponent:{required:!1,tsType:{name:"ReactComponentType",raw:"React.ComponentType<BreadcrumbLinkProps>",elements:[{name:"BreadcrumbLinkProps"}]},description:""}}};const O=[{title:"Dashboard",url:"/"},{title:"Invoices",url:"/invoices"},{title:"Northwind Traders Q4 2024"}],W={title:"Components/Breadcrumb",component:k,decorators:[C=>r.jsx(T,{padding:"sm",background:"bg",children:r.jsx(C,{})})],args:{items:O,separator:"/",separatorGap:"xs"}},f={},x={args:{separator:r.jsx(L,{as:P,boxSize:"12px",color:"fg.muted"})}};f.parameters={...f.parameters,docs:{...f.parameters?.docs,source:{originalSource:"{}",...f.parameters?.docs?.source}}};x.parameters={...x.parameters,docs:{...x.parameters?.docs,source:{originalSource:`{
|
|
2
|
-
args: {
|
|
3
|
-
separator: <Icon as={ChevronRight} boxSize="12px" color="fg.muted" />
|
|
4
|
-
}
|
|
5
|
-
}`,...x.parameters?.docs?.source}}};const X=["Default","IconSeparator"];export{f as Default,x as IconSeparator,X as __namedExportsOrder,W as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as d,j as t,c as y}from"./iframe-B8FSoBNY.js";import{c as u,m as j}from"./factory-DAJZwK4o.js";import{c as C}from"./create-recipe-context-BU56IzEo.js";import{S as N,d as R}from"./spinner-ZYH_gvW-.js";import{S as l}from"./index-CXwl6T4k.js";const m=u("div",{base:{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},variants:{axis:{horizontal:{insetStart:"50%",translate:"-50%",_rtl:{translate:"50%"}},vertical:{top:"50%",translate:"0 -50%"},both:{insetStart:"50%",top:"50%",translate:"-50% -50%",_rtl:{translate:"50% -50%"}}}},defaultVariants:{axis:"both"}});m.displayName="AbsoluteCenter";const x=d.forwardRef(function(o,i){const{spinner:s=t.jsx(N,{size:"inherit",borderWidth:"0.125em",color:"inherit"}),spinnerPlacement:e="start",children:n,text:a,visible:c=!0,...r}=o;return c?a?t.jsxs(l,{ref:i,display:"contents",...r,children:[e==="start"&&s,a,e==="end"&&s]}):s?t.jsxs(l,{ref:i,display:"contents",...r,children:[t.jsx(m,{display:"inline-flex",children:s}),t.jsx(l,{visibility:"hidden",display:"contents",children:n})]}):t.jsx(l,{ref:i,display:"contents",...r,children:n}):n});x.displayName="Loader";const{useRecipeResult:S,usePropsContext:g}=C({key:"button"}),v=d.forwardRef(function(o,i){const s=g(),e=d.useMemo(()=>j(s,o),[s,o]),n=S(e),{loading:a,loadingText:c,children:r,spinner:h,spinnerPlacement:b,...p}=n.props;return t.jsx(u.button,{type:"button",ref:i,...p,"data-loading":R(a),disabled:a||p.disabled,className:y(n.className,e.className),css:[n.styles,e.css],children:!e.asChild&&a?t.jsx(x,{spinner:h,text:c,spinnerPlacement:b,children:r}):r})});v.displayName="Button";export{m as A,v as B};
|