@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
|
@@ -0,0 +1,1401 @@
|
|
|
1
|
+
import { CodeNode as ae } from "@lexical/code";
|
|
2
|
+
import { LinkNode as Te } from "@lexical/link";
|
|
3
|
+
import { ListNode as Se, ListItemNode as Re } from "@lexical/list";
|
|
4
|
+
import { TRANSFORMERS as Ne, $convertFromMarkdownString as Ce, $convertToMarkdownString as rt } from "@lexical/markdown";
|
|
5
|
+
import { QuoteNode as Oe, HeadingNode as ke } from "@lexical/rich-text";
|
|
6
|
+
import { jsx as l, jsxs as P, Fragment as pe } from "react/jsx-runtime";
|
|
7
|
+
import { chakra as ie, Flex as V, Text as I, Spacer as ot, IconButton as it, Box as v, Table as F, Textarea as st, Tooltip as Z, Kbd as lt } from "@chakra-ui/react";
|
|
8
|
+
import { DecoratorNode as G, $applyNodeReplacement as ct, ElementNode as $e, TextNode as ee, $createTextNode as Ie, $nodesOfType as at, createCommand as k, isHTMLElement as dt, $createParagraphNode as se, COMMAND_PRIORITY_LOW as ve, $getSelection as ut, $isRangeSelection as mt, $isElementNode as ft, KEY_DOWN_COMMAND as pt, COMMAND_PRIORITY_HIGH as _t, $getRoot as we } from "lexical";
|
|
9
|
+
import { c as C } from "react/compiler-runtime";
|
|
10
|
+
import { MarkNode as ht } from "@lexical/mark";
|
|
11
|
+
import { LexicalComposer as Pe } from "@lexical/react/LexicalComposer";
|
|
12
|
+
import { LexicalErrorBoundary as Le } from "@lexical/react/LexicalErrorBoundary";
|
|
13
|
+
import { HistoryPlugin as gt } from "@lexical/react/LexicalHistoryPlugin";
|
|
14
|
+
import { OnChangePlugin as Me } from "@lexical/react/LexicalOnChangePlugin";
|
|
15
|
+
import { RichTextPlugin as De } from "@lexical/react/LexicalRichTextPlugin";
|
|
16
|
+
import * as xt from "react";
|
|
17
|
+
import { Suspense as Et, useEffect as M, useImperativeHandle as bt, useState as Ae, forwardRef as yt, useRef as Tt } from "react";
|
|
18
|
+
import { useLexicalComposerContext as L } from "@lexical/react/LexicalComposerContext";
|
|
19
|
+
import { $setBlocksType as St } from "@lexical/selection";
|
|
20
|
+
import { addClassNamesToElement as Fe, mergeRegister as de } from "@lexical/utils";
|
|
21
|
+
import { LexicalTypeaheadMenuPlugin as Rt } from "@lexical/react/LexicalTypeaheadMenuPlugin";
|
|
22
|
+
import * as Nt from "react-dom";
|
|
23
|
+
import { HorizontalRulePlugin as Ct } from "@lexical/react/LexicalHorizontalRulePlugin";
|
|
24
|
+
import { LinkPlugin as Ot } from "@lexical/react/LexicalLinkPlugin";
|
|
25
|
+
import { ListPlugin as kt } from "@lexical/react/LexicalListPlugin";
|
|
26
|
+
import { ContentEditable as $t } from "@lexical/react/LexicalContentEditable";
|
|
27
|
+
import It from "katex";
|
|
28
|
+
import { TreeView as vt } from "@lexical/react/LexicalTreeView";
|
|
29
|
+
import { FileSpreadsheet as wt, FileCode as Pt, FileChartLine as Lt, FileJson as Mt, FileText as Dt, FileCog as At, FileImage as Ft, FileArchive as qt, File as Ht, X as jt } from "lucide-react";
|
|
30
|
+
import { T as Bt } from "./tooltip-Gm7PLwZG.js";
|
|
31
|
+
const Ut = ie($t);
|
|
32
|
+
function qe(n) {
|
|
33
|
+
const e = C(7), {
|
|
34
|
+
onRef: t,
|
|
35
|
+
fullWidth: r,
|
|
36
|
+
padding: o
|
|
37
|
+
} = n, i = r === void 0 ? !1 : r, s = i ? "flex-start" : "center", a = i ? "100%" : "720px";
|
|
38
|
+
let c;
|
|
39
|
+
e[0] !== a ? (c = /* @__PURE__ */ l(Ut, { height: "fit-content", minH: "100%", width: "100%", maxWidth: a, textStyle: "paragraph/M/regular", position: "relative", outline: "none" }), e[0] = a, e[1] = c) : c = e[1];
|
|
40
|
+
let d;
|
|
41
|
+
return e[2] !== t || e[3] !== o || e[4] !== s || e[5] !== c ? (d = /* @__PURE__ */ l(V, { className: "rich-text", height: "100%", overflow: "auto", position: "relative", children: /* @__PURE__ */ l(V, { ref: t, width: "100%", padding: o, justifyContent: s, children: c }) }), e[2] = t, e[3] = o, e[4] = s, e[5] = c, e[6] = d) : d = e[6], d;
|
|
42
|
+
}
|
|
43
|
+
const Jt = (n) => {
|
|
44
|
+
const e = n.split(".").pop()?.toLowerCase() ?? "";
|
|
45
|
+
return ["csv", "tsv", "xlsx", "xls", "parquet"].includes(e) ? wt : ["sql", "py", "js", "ts", "jsx", "tsx", "java", "cpp", "c", "h", "css", "scss", "sass", "php", "rb", "go", "rs", "kt", "swift"].includes(e) ? Pt : ["json", "jsonl", "ndjson"].includes(e) ? n.includes("/visualizations/") ? Lt : Mt : ["md", "txt", "rst", "org", "pdf", "doc", "docx", "rtf"].includes(e) ? Dt : ["yaml", "yml", "toml", "ini", "conf", "config"].includes(e) ? At : ["png", "jpg", "jpeg", "gif", "svg", "webp", "ico"].includes(e) ? Ft : ["zip", "tar", "gz", "rar", "7z"].includes(e) ? qt : Ht;
|
|
46
|
+
}, Wt = {
|
|
47
|
+
sm: {
|
|
48
|
+
container: {
|
|
49
|
+
height: "20px",
|
|
50
|
+
lineHeight: {
|
|
51
|
+
base: "20px"
|
|
52
|
+
},
|
|
53
|
+
px: "2xs"
|
|
54
|
+
},
|
|
55
|
+
iconSize: 12,
|
|
56
|
+
textStyle: "xs"
|
|
57
|
+
},
|
|
58
|
+
md: {
|
|
59
|
+
container: {
|
|
60
|
+
height: "24px",
|
|
61
|
+
lineHeight: {
|
|
62
|
+
base: "24px"
|
|
63
|
+
},
|
|
64
|
+
px: "xs"
|
|
65
|
+
},
|
|
66
|
+
iconSize: 14,
|
|
67
|
+
textStyle: "sm"
|
|
68
|
+
}
|
|
69
|
+
}, zt = {
|
|
70
|
+
neutral: {
|
|
71
|
+
color: "color.primary",
|
|
72
|
+
bg: "bg.muted",
|
|
73
|
+
_hover: {
|
|
74
|
+
bg: "bg.emphasized"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
accent: {
|
|
78
|
+
color: "var(--schub-foreground-accent)",
|
|
79
|
+
bg: "var(--schub-accent-subtle)",
|
|
80
|
+
_hover: {
|
|
81
|
+
bg: "var(--schub-accent-subtle)"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}, Kt = "md", Vt = "neutral", He = (n) => {
|
|
85
|
+
const e = C(39);
|
|
86
|
+
let t, r, o, i, s, a, c;
|
|
87
|
+
e[0] !== n ? ({
|
|
88
|
+
fileName: t,
|
|
89
|
+
onSelect: i,
|
|
90
|
+
onRemove: o,
|
|
91
|
+
size: a,
|
|
92
|
+
tone: c,
|
|
93
|
+
icon: r,
|
|
94
|
+
...s
|
|
95
|
+
} = n, e[0] = n, e[1] = t, e[2] = r, e[3] = o, e[4] = i, e[5] = s, e[6] = a, e[7] = c) : (t = e[1], r = e[2], o = e[3], i = e[4], s = e[5], a = e[6], c = e[7]);
|
|
96
|
+
const d = a === void 0 ? Kt : a, p = c === void 0 ? Vt : c;
|
|
97
|
+
let u;
|
|
98
|
+
e[8] !== t ? (u = Jt(t), e[8] = t, e[9] = u) : u = e[9];
|
|
99
|
+
const h = u, m = Wt[d], f = zt[p], g = i ? "pointer" : "default";
|
|
100
|
+
let y;
|
|
101
|
+
e[10] !== t || e[11] !== i ? (y = (O) => {
|
|
102
|
+
O.stopPropagation(), i?.(t);
|
|
103
|
+
}, e[10] = t, e[11] = i, e[12] = y) : y = e[12];
|
|
104
|
+
let E;
|
|
105
|
+
e[13] !== h || e[14] !== r || e[15] !== m.iconSize ? (E = r ?? /* @__PURE__ */ l(h, { size: m.iconSize }), e[13] = h, e[14] = r, e[15] = m.iconSize, e[16] = E) : E = e[16];
|
|
106
|
+
let R;
|
|
107
|
+
e[17] !== E ? (R = /* @__PURE__ */ l(ie.span, { mr: "xs", display: "inline-flex", children: E }), e[17] = E, e[18] = R) : R = e[18];
|
|
108
|
+
let T;
|
|
109
|
+
e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = {
|
|
110
|
+
base: "14rem"
|
|
111
|
+
}, e[19] = T) : T = e[19];
|
|
112
|
+
let S;
|
|
113
|
+
e[20] !== t || e[21] !== m.textStyle ? (S = /* @__PURE__ */ l(I, { maxW: T, textOverflow: "ellipsis", whiteSpace: "nowrap", overflow: "hidden", textStyle: m.textStyle, children: t }), e[20] = t, e[21] = m.textStyle, e[22] = S) : S = e[22];
|
|
114
|
+
let x;
|
|
115
|
+
e[23] !== t || e[24] !== S ? (x = /* @__PURE__ */ l(Bt, { content: t, children: S }), e[23] = t, e[24] = S, e[25] = x) : x = e[25];
|
|
116
|
+
let N;
|
|
117
|
+
e[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ l(ot, {}), e[26] = N) : N = e[26];
|
|
118
|
+
let b;
|
|
119
|
+
e[27] !== t || e[28] !== o ? (b = o && /* @__PURE__ */ l(it, { "aria-label": "Remove reference", size: "2xs", ml: "xs", variant: "ghost", _hover: {
|
|
120
|
+
bg: "transparent"
|
|
121
|
+
}, onClick: (O) => {
|
|
122
|
+
O.stopPropagation(), o?.(t);
|
|
123
|
+
}, children: /* @__PURE__ */ l(jt, { size: 12 }) }), e[27] = t, e[28] = o, e[29] = b) : b = e[29];
|
|
124
|
+
let _;
|
|
125
|
+
return e[30] !== s || e[31] !== m.container || e[32] !== b || e[33] !== g || e[34] !== y || e[35] !== R || e[36] !== x || e[37] !== f ? (_ = /* @__PURE__ */ P(ie.span, { display: "flex", flexDirection: "row", alignItems: "center", borderRadius: "xs", gap: "2xs", cursor: g, ...f, ...m.container, onClick: y, ...s, children: [
|
|
126
|
+
R,
|
|
127
|
+
x,
|
|
128
|
+
N,
|
|
129
|
+
b
|
|
130
|
+
] }), e[30] = s, e[31] = m.container, e[32] = b, e[33] = g, e[34] = y, e[35] = R, e[36] = x, e[37] = f, e[38] = _) : _ = e[38], _;
|
|
131
|
+
};
|
|
132
|
+
let ne = class le extends G {
|
|
133
|
+
__href;
|
|
134
|
+
__label;
|
|
135
|
+
static getType() {
|
|
136
|
+
return "reference-link";
|
|
137
|
+
}
|
|
138
|
+
static clone(e) {
|
|
139
|
+
return new le(e.__href, e.__label, e.__key);
|
|
140
|
+
}
|
|
141
|
+
constructor(e, t, r) {
|
|
142
|
+
super(r), this.__href = e, this.__label = t;
|
|
143
|
+
}
|
|
144
|
+
createDOM(e, t) {
|
|
145
|
+
return document.createElement("span");
|
|
146
|
+
}
|
|
147
|
+
updateDOM(e, t, r) {
|
|
148
|
+
return !1;
|
|
149
|
+
}
|
|
150
|
+
getTextContent() {
|
|
151
|
+
return `{{link('${this.__label ?? this.__href}')}}`;
|
|
152
|
+
}
|
|
153
|
+
exportJSON() {
|
|
154
|
+
return {
|
|
155
|
+
type: le.getType(),
|
|
156
|
+
version: 1,
|
|
157
|
+
href: this.__href,
|
|
158
|
+
label: this.__label
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
static importJSON(e) {
|
|
162
|
+
return je(e.href, e.label);
|
|
163
|
+
}
|
|
164
|
+
decorate(e, t) {
|
|
165
|
+
const r = this.__href, i = r.split("/").pop() || "unknown", s = /^https?:\/\//i.test(r), a = /^#?\$PROJECT\//i.test(r);
|
|
166
|
+
return /* @__PURE__ */ l(v, { width: "fit-content", display: "inline-block", children: /* @__PURE__ */ l(He, { fileName: i, onSelect: () => {
|
|
167
|
+
if (s)
|
|
168
|
+
window.open(r, "_blank", "noopener,noreferrer");
|
|
169
|
+
else if (a) {
|
|
170
|
+
const c = r.replace(/^#?\$PROJECT\//i, ""), d = new CustomEvent("ui:open-project-file", {
|
|
171
|
+
detail: c
|
|
172
|
+
});
|
|
173
|
+
window.dispatchEvent(d);
|
|
174
|
+
} else
|
|
175
|
+
window.location.assign(r);
|
|
176
|
+
} }) });
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
function je(n, e) {
|
|
180
|
+
return new ne(n, e);
|
|
181
|
+
}
|
|
182
|
+
function Xt(n) {
|
|
183
|
+
return n instanceof ne;
|
|
184
|
+
}
|
|
185
|
+
const _e = /\{\{\s*link\((['"])([^'"\s]+)\1\)\s*\}\}/, Gt = {
|
|
186
|
+
dependencies: [ne],
|
|
187
|
+
export: (n) => {
|
|
188
|
+
if (Xt(n)) {
|
|
189
|
+
const e = n.__href, t = n.__label ?? e;
|
|
190
|
+
return t ? `{{link('${t}')}}` : `{{link('${e}')}}`;
|
|
191
|
+
}
|
|
192
|
+
return null;
|
|
193
|
+
},
|
|
194
|
+
regExp: _e,
|
|
195
|
+
importRegExp: _e,
|
|
196
|
+
replace: (n, e) => {
|
|
197
|
+
const t = e[2], o = /^(https?:\/\/|\/)/i.test(t) ? t : `#${t}`, i = t;
|
|
198
|
+
n.replace(je(o, i));
|
|
199
|
+
},
|
|
200
|
+
type: "text-match"
|
|
201
|
+
}, ue = {
|
|
202
|
+
code: "rich-text__code",
|
|
203
|
+
codeHighlight: {
|
|
204
|
+
atrule: "rich-text__tokenAttr",
|
|
205
|
+
attr: "rich-text__tokenAttr",
|
|
206
|
+
boolean: "rich-text__tokenProperty",
|
|
207
|
+
builtin: "rich-text__tokenSelector",
|
|
208
|
+
cdata: "rich-text__tokenComment",
|
|
209
|
+
char: "rich-text__tokenSelector",
|
|
210
|
+
class: "rich-text__tokenFunction",
|
|
211
|
+
"class-name": "rich-text__tokenFunction",
|
|
212
|
+
comment: "rich-text__tokenComment",
|
|
213
|
+
constant: "rich-text__tokenProperty",
|
|
214
|
+
deleted: "rich-text__tokenProperty",
|
|
215
|
+
doctype: "rich-text__tokenComment",
|
|
216
|
+
entity: "rich-text__tokenOperator",
|
|
217
|
+
function: "rich-text__tokenFunction",
|
|
218
|
+
important: "rich-text__tokenVariable",
|
|
219
|
+
inserted: "rich-text__tokenSelector",
|
|
220
|
+
keyword: "rich-text__tokenAttr",
|
|
221
|
+
namespace: "rich-text__tokenVariable",
|
|
222
|
+
number: "rich-text__tokenProperty",
|
|
223
|
+
operator: "rich-text__tokenOperator",
|
|
224
|
+
prolog: "rich-text__tokenComment",
|
|
225
|
+
property: "rich-text__tokenProperty",
|
|
226
|
+
punctuation: "rich-text__tokenPunctuation",
|
|
227
|
+
regex: "rich-text__tokenVariable",
|
|
228
|
+
selector: "rich-text__tokenSelector",
|
|
229
|
+
string: "rich-text__tokenSelector",
|
|
230
|
+
symbol: "rich-text__tokenProperty",
|
|
231
|
+
tag: "rich-text__tokenProperty",
|
|
232
|
+
url: "rich-text__tokenOperator",
|
|
233
|
+
variable: "rich-text__tokenVariable"
|
|
234
|
+
},
|
|
235
|
+
embedBlock: {
|
|
236
|
+
base: "rich-text__embedBlock",
|
|
237
|
+
focus: "rich-text__embedBlockFocus"
|
|
238
|
+
},
|
|
239
|
+
list: {
|
|
240
|
+
checklist: "rich-text__checklist",
|
|
241
|
+
listitem: "rich-text__listItem",
|
|
242
|
+
listitemChecked: "rich-text__listItemChecked",
|
|
243
|
+
listitemUnchecked: "rich-text__listItemUnchecked",
|
|
244
|
+
nested: {
|
|
245
|
+
listitem: "rich-text__nestedListItem"
|
|
246
|
+
},
|
|
247
|
+
olDepth: ["rich-text__ol1", "rich-text__ol2", "rich-text__ol3", "rich-text__ol4", "rich-text__ol5"],
|
|
248
|
+
ol: "rich-text__ol",
|
|
249
|
+
ul: "rich-text__ul"
|
|
250
|
+
},
|
|
251
|
+
heading: {
|
|
252
|
+
h1: "rich-text__h1",
|
|
253
|
+
h2: "rich-text__h2",
|
|
254
|
+
h3: "rich-text__h3"
|
|
255
|
+
},
|
|
256
|
+
paragraph: "rich-text__p",
|
|
257
|
+
text: {
|
|
258
|
+
underline: "rich-text__textUnderline",
|
|
259
|
+
italic: "rich-text__textItalic",
|
|
260
|
+
code: "rich-text__textCode"
|
|
261
|
+
},
|
|
262
|
+
link: "rich-text__link",
|
|
263
|
+
quote: "rich-text__quote",
|
|
264
|
+
reference: "rich-text__reference",
|
|
265
|
+
table: "rich-text__table",
|
|
266
|
+
tableCell: "rich-text__tableCell",
|
|
267
|
+
tableRow: "rich-text__tableRow",
|
|
268
|
+
tableCellHeader: "rich-text__tableCellHeader",
|
|
269
|
+
layoutContainer: "rich-text__layoutContainer",
|
|
270
|
+
layoutItem: "rich-text__layoutItem",
|
|
271
|
+
draggableBlockDemo: {
|
|
272
|
+
row: "rich-text__row",
|
|
273
|
+
content: "rich-text__content"
|
|
274
|
+
}
|
|
275
|
+
}, Yt = (n) => n == null ? "-" : typeof n == "string" ? n.length ? n : "-" : typeof n == "number" || typeof n == "boolean" ? String(n).toUpperCase() : n instanceof Date ? n.toISOString() : JSON.stringify(n), Qt = (n) => {
|
|
276
|
+
const e = C(6), {
|
|
277
|
+
defaultCode: t,
|
|
278
|
+
isEditable: r,
|
|
279
|
+
showLineNumbers: o,
|
|
280
|
+
disableScroll: i
|
|
281
|
+
} = n, s = t === void 0 ? "" : t, a = r === void 0 ? !1 : r, c = o === void 0 ? !1 : o, d = i === void 0 ? !1 : i;
|
|
282
|
+
if (a) {
|
|
283
|
+
let u;
|
|
284
|
+
return e[0] !== s ? (u = /* @__PURE__ */ l(st, { defaultValue: s, fontFamily: "mono", fontSize: "sm", resize: "vertical", minHeight: "100%" }), e[0] = s, e[1] = u) : u = e[1], u;
|
|
285
|
+
}
|
|
286
|
+
let p;
|
|
287
|
+
if (e[2] !== s || e[3] !== d || e[4] !== c) {
|
|
288
|
+
const u = c ? s.split(`
|
|
289
|
+
`) : [s];
|
|
290
|
+
p = /* @__PURE__ */ l(v, { as: "pre", margin: 0, padding: "sm", fontFamily: "mono", fontSize: "sm", lineHeight: "1.5", overflowY: d ? "hidden" : "auto", background: "bg.muted", borderRadius: "md", width: "100%", children: c ? /* @__PURE__ */ l(v, { as: "code", display: "grid", gridTemplateColumns: "auto 1fr", columnGap: "sm", children: u.map(en) }) : /* @__PURE__ */ l(v, { as: "code", children: s }) }), e[2] = s, e[3] = d, e[4] = c, e[5] = p;
|
|
291
|
+
} else
|
|
292
|
+
p = e[5];
|
|
293
|
+
return p;
|
|
294
|
+
}, Zt = (n) => {
|
|
295
|
+
const e = C(26), {
|
|
296
|
+
data: t,
|
|
297
|
+
fullWidth: r,
|
|
298
|
+
noBorder: o,
|
|
299
|
+
hiddenColumns: i
|
|
300
|
+
} = n, s = r === void 0 ? !1 : r, a = o === void 0 ? !1 : o;
|
|
301
|
+
let c;
|
|
302
|
+
e[0] !== i ? (c = i === void 0 ? [] : i, e[0] = i, e[1] = c) : c = e[1];
|
|
303
|
+
const d = c;
|
|
304
|
+
if (!t.length) {
|
|
305
|
+
const x = a ? "0" : "1px";
|
|
306
|
+
let N;
|
|
307
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ l(I, { textStyle: "label/S/regular", color: "fg.muted", children: "No data" }), e[2] = N) : N = e[2];
|
|
308
|
+
let b;
|
|
309
|
+
return e[3] !== x ? (b = /* @__PURE__ */ l(v, { padding: "sm", borderWidth: x, borderColor: "border.muted", children: N }), e[3] = x, e[4] = b) : b = e[4], b;
|
|
310
|
+
}
|
|
311
|
+
let p;
|
|
312
|
+
e[5] !== d ? (p = new Set(d), e[5] = d, e[6] = p) : p = e[6];
|
|
313
|
+
const u = p;
|
|
314
|
+
let h;
|
|
315
|
+
e[7] !== t[0] ? (h = Object.keys(t[0] ?? {}), e[7] = t[0], e[8] = h) : h = e[8];
|
|
316
|
+
let m;
|
|
317
|
+
e[9] !== u || e[10] !== h ? (m = h.filter((x) => !u.has(x)), e[9] = u, e[10] = h, e[11] = m) : m = e[11];
|
|
318
|
+
const f = m, g = s ? "100%" : "fit-content", y = a ? "0" : "1px";
|
|
319
|
+
let E;
|
|
320
|
+
e[12] !== f ? (E = /* @__PURE__ */ l(F.Header, { children: /* @__PURE__ */ l(F.Row, { background: "bg.muted", children: f.map(tn) }) }), e[12] = f, e[13] = E) : E = e[13];
|
|
321
|
+
let R;
|
|
322
|
+
if (e[14] !== f || e[15] !== t) {
|
|
323
|
+
let x;
|
|
324
|
+
e[17] !== f ? (x = (N, b) => /* @__PURE__ */ l(F.Row, { children: f.map((_) => /* @__PURE__ */ l(F.Cell, { paddingX: "xs", paddingY: "2xs", children: /* @__PURE__ */ l(I, { textStyle: "paragraph/S/regular", children: Yt(N[_]) }) }, `${b}-${_}`)) }, `${b}-${f.join("-")}`), e[17] = f, e[18] = x) : x = e[18], R = t.map(x), e[14] = f, e[15] = t, e[16] = R;
|
|
325
|
+
} else
|
|
326
|
+
R = e[16];
|
|
327
|
+
let T;
|
|
328
|
+
e[19] !== R ? (T = /* @__PURE__ */ l(F.Body, { children: R }), e[19] = R, e[20] = T) : T = e[20];
|
|
329
|
+
let S;
|
|
330
|
+
return e[21] !== T || e[22] !== g || e[23] !== y || e[24] !== E ? (S = /* @__PURE__ */ l(F.ScrollArea, { overflowX: "auto", maxWidth: "100%", children: /* @__PURE__ */ P(F.Root, { size: "sm", width: g, borderWidth: y, borderColor: "border.muted", children: [
|
|
331
|
+
E,
|
|
332
|
+
T
|
|
333
|
+
] }) }), e[21] = T, e[22] = g, e[23] = y, e[24] = E, e[25] = S) : S = e[25], S;
|
|
334
|
+
};
|
|
335
|
+
function en(n, e) {
|
|
336
|
+
return /* @__PURE__ */ P(v, { as: "span", display: "contents", children: [
|
|
337
|
+
/* @__PURE__ */ l(I, { as: "span", color: "fg.muted", textAlign: "right", children: e + 1 }),
|
|
338
|
+
/* @__PURE__ */ l(I, { as: "span", children: n.length ? n : " " })
|
|
339
|
+
] }, `${e}-${n}`);
|
|
340
|
+
}
|
|
341
|
+
function tn(n) {
|
|
342
|
+
return /* @__PURE__ */ l(F.ColumnHeader, { textTransform: "none", paddingX: "xs", paddingY: "2xs", children: /* @__PURE__ */ l(I, { textStyle: "label/S/medium", children: n }) }, n);
|
|
343
|
+
}
|
|
344
|
+
class H extends G {
|
|
345
|
+
__data;
|
|
346
|
+
static getType() {
|
|
347
|
+
return "data_table";
|
|
348
|
+
}
|
|
349
|
+
static clone(e) {
|
|
350
|
+
return new H(e.__data, e.__key);
|
|
351
|
+
}
|
|
352
|
+
constructor(e, t) {
|
|
353
|
+
super(t), this.__data = e;
|
|
354
|
+
}
|
|
355
|
+
getData() {
|
|
356
|
+
return this.__data;
|
|
357
|
+
}
|
|
358
|
+
createDOM() {
|
|
359
|
+
return document.createElement("div");
|
|
360
|
+
}
|
|
361
|
+
updateDOM() {
|
|
362
|
+
return !1;
|
|
363
|
+
}
|
|
364
|
+
decorate() {
|
|
365
|
+
return /* @__PURE__ */ l(Zt, { fullWidth: !0, isReadOnly: !0, data: this.__data });
|
|
366
|
+
}
|
|
367
|
+
exportJSON() {
|
|
368
|
+
return {
|
|
369
|
+
type: "data_table",
|
|
370
|
+
version: 1,
|
|
371
|
+
data: this.__data
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
static importJSON(e) {
|
|
375
|
+
return new H(e.data);
|
|
376
|
+
}
|
|
377
|
+
getTextContent() {
|
|
378
|
+
if (!this.__data.length) return "";
|
|
379
|
+
const e = Object.keys(this.__data[0]), t = e.join(" | "), r = e.map(() => "---").join(" | "), o = this.__data.map((i) => e.map((s) => String(i[s] || "")).join(" | "));
|
|
380
|
+
return [t, r, ...o].join(`
|
|
381
|
+
`);
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
function he(n) {
|
|
385
|
+
return new H(n);
|
|
386
|
+
}
|
|
387
|
+
function ge(n) {
|
|
388
|
+
return n instanceof H;
|
|
389
|
+
}
|
|
390
|
+
class K extends G {
|
|
391
|
+
__language;
|
|
392
|
+
__code;
|
|
393
|
+
static getType() {
|
|
394
|
+
return "codeblock";
|
|
395
|
+
}
|
|
396
|
+
static clone(e) {
|
|
397
|
+
return new K(e.__language, e.__code, e.__key);
|
|
398
|
+
}
|
|
399
|
+
constructor(e, t, r) {
|
|
400
|
+
super(r), this.__language = e, this.__code = t;
|
|
401
|
+
}
|
|
402
|
+
createDOM() {
|
|
403
|
+
return document.createElement("div");
|
|
404
|
+
}
|
|
405
|
+
updateDOM() {
|
|
406
|
+
return !1;
|
|
407
|
+
}
|
|
408
|
+
static importJSON(e) {
|
|
409
|
+
const {
|
|
410
|
+
language: t,
|
|
411
|
+
code: r
|
|
412
|
+
} = e;
|
|
413
|
+
return new K(t, r);
|
|
414
|
+
}
|
|
415
|
+
decorate() {
|
|
416
|
+
return /* @__PURE__ */ l(v, { borderRadius: "md", overflow: "hidden", children: /* @__PURE__ */ l(Qt, { language: this.__language || "plaintext", defaultCode: this.__code, isEditable: !1, showLineNumbers: !0, disableScroll: !0 }) });
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
const nn = xt.lazy(() => import("./EquationComponent-DeDYHvqY.js"));
|
|
420
|
+
function xe(n) {
|
|
421
|
+
let e = n.getAttribute("data-lexical-equation");
|
|
422
|
+
const t = n.getAttribute("data-lexical-inline") === "true";
|
|
423
|
+
return e = atob(e || ""), e ? {
|
|
424
|
+
node: re(e, t)
|
|
425
|
+
} : null;
|
|
426
|
+
}
|
|
427
|
+
class q extends G {
|
|
428
|
+
__equation;
|
|
429
|
+
__inline;
|
|
430
|
+
static getType() {
|
|
431
|
+
return "equation";
|
|
432
|
+
}
|
|
433
|
+
static clone(e) {
|
|
434
|
+
return new q(e.__equation, e.__inline, e.__key);
|
|
435
|
+
}
|
|
436
|
+
constructor(e, t, r) {
|
|
437
|
+
super(r), this.__equation = e, this.__inline = t ?? !1;
|
|
438
|
+
}
|
|
439
|
+
static importJSON(e) {
|
|
440
|
+
return re(e.equation, e.inline);
|
|
441
|
+
}
|
|
442
|
+
exportJSON() {
|
|
443
|
+
return {
|
|
444
|
+
equation: this.getEquation(),
|
|
445
|
+
inline: this.__inline,
|
|
446
|
+
type: "equation",
|
|
447
|
+
version: 1
|
|
448
|
+
};
|
|
449
|
+
}
|
|
450
|
+
createDOM(e) {
|
|
451
|
+
const t = document.createElement(this.__inline ? "span" : "div");
|
|
452
|
+
return t.className = "editor-equation", t;
|
|
453
|
+
}
|
|
454
|
+
exportDOM() {
|
|
455
|
+
const e = document.createElement(this.__inline ? "span" : "div"), t = btoa(this.__equation);
|
|
456
|
+
return e.setAttribute("data-lexical-equation", t), e.setAttribute("data-lexical-inline", `${this.__inline}`), It.render(this.__equation, e, {
|
|
457
|
+
displayMode: !this.__inline,
|
|
458
|
+
// true === block display //
|
|
459
|
+
errorColor: "#cc0000",
|
|
460
|
+
output: "html",
|
|
461
|
+
strict: "warn",
|
|
462
|
+
throwOnError: !1,
|
|
463
|
+
trust: !1
|
|
464
|
+
}), {
|
|
465
|
+
element: e
|
|
466
|
+
};
|
|
467
|
+
}
|
|
468
|
+
static importDOM() {
|
|
469
|
+
return {
|
|
470
|
+
div: (e) => e.hasAttribute("data-lexical-equation") ? {
|
|
471
|
+
conversion: xe,
|
|
472
|
+
priority: 2
|
|
473
|
+
} : null,
|
|
474
|
+
span: (e) => e.hasAttribute("data-lexical-equation") ? {
|
|
475
|
+
conversion: xe,
|
|
476
|
+
priority: 1
|
|
477
|
+
} : null
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
updateDOM(e) {
|
|
481
|
+
return this.__inline !== e.__inline;
|
|
482
|
+
}
|
|
483
|
+
getTextContent() {
|
|
484
|
+
return this.__equation;
|
|
485
|
+
}
|
|
486
|
+
getEquation() {
|
|
487
|
+
return this.__equation;
|
|
488
|
+
}
|
|
489
|
+
setEquation(e) {
|
|
490
|
+
const t = this.getWritable();
|
|
491
|
+
t.__equation = e;
|
|
492
|
+
}
|
|
493
|
+
isInline() {
|
|
494
|
+
return this.__inline;
|
|
495
|
+
}
|
|
496
|
+
decorate() {
|
|
497
|
+
return /* @__PURE__ */ l(Et, { fallback: null, children: /* @__PURE__ */ l(nn, { equation: this.__equation, inline: this.__inline }) });
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
function re(n = "", e = !1) {
|
|
501
|
+
const t = new q(n, e);
|
|
502
|
+
return ct(t);
|
|
503
|
+
}
|
|
504
|
+
function Be(n) {
|
|
505
|
+
return n instanceof q;
|
|
506
|
+
}
|
|
507
|
+
const Ue = {
|
|
508
|
+
dependencies: [q],
|
|
509
|
+
export: (n) => Be(n) && n.isInline() ? `\\( ${n.getEquation().trim()} \\)` : null,
|
|
510
|
+
importRegExp: /\\\((.*?)\\\)/,
|
|
511
|
+
regExp: /\\\((.*?)\\\)/,
|
|
512
|
+
replace: (n, e) => {
|
|
513
|
+
const t = re(e[1].trim(), !0);
|
|
514
|
+
n.replace(t);
|
|
515
|
+
},
|
|
516
|
+
type: "text-match"
|
|
517
|
+
}, Je = {
|
|
518
|
+
dependencies: [q],
|
|
519
|
+
regExpStart: /\\\[/,
|
|
520
|
+
regExpEnd: /\\]/,
|
|
521
|
+
export: (n) => Be(n) && !n.isInline() ? `\\[ ${n.getEquation().trim()} \\]` : null,
|
|
522
|
+
replace: (n, e, t, r, o) => o ? (n.append(re(o.join(" "), !1)), !0) : !1,
|
|
523
|
+
type: "multiline-element"
|
|
524
|
+
};
|
|
525
|
+
function rn() {
|
|
526
|
+
return null;
|
|
527
|
+
}
|
|
528
|
+
class B extends $e {
|
|
529
|
+
static getType() {
|
|
530
|
+
return "hr";
|
|
531
|
+
}
|
|
532
|
+
static clone(e) {
|
|
533
|
+
return new B(e?.__key);
|
|
534
|
+
}
|
|
535
|
+
static importJSON(e) {
|
|
536
|
+
return We();
|
|
537
|
+
}
|
|
538
|
+
exportJSON() {
|
|
539
|
+
return {
|
|
540
|
+
...super.exportJSON()
|
|
541
|
+
};
|
|
542
|
+
}
|
|
543
|
+
createDOM(e, t) {
|
|
544
|
+
const r = document.createElement("hr");
|
|
545
|
+
return r.style = "margin: 2rem 0;", r;
|
|
546
|
+
}
|
|
547
|
+
updateDOM(e, t, r) {
|
|
548
|
+
return !1;
|
|
549
|
+
}
|
|
550
|
+
decorate(e) {
|
|
551
|
+
return null;
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
function We() {
|
|
555
|
+
return new B();
|
|
556
|
+
}
|
|
557
|
+
function on(n) {
|
|
558
|
+
return n instanceof B;
|
|
559
|
+
}
|
|
560
|
+
const sn = {
|
|
561
|
+
dependencies: [B],
|
|
562
|
+
export: (n) => on(n) ? "***" : null,
|
|
563
|
+
regExp: /^(---|\*\*\*|___)\s?$/,
|
|
564
|
+
replace: (n) => {
|
|
565
|
+
const e = We();
|
|
566
|
+
n.replace(e);
|
|
567
|
+
},
|
|
568
|
+
type: "element"
|
|
569
|
+
}, ln = {
|
|
570
|
+
dependencies: [],
|
|
571
|
+
export: (n, e) => {
|
|
572
|
+
if (ge(n)) {
|
|
573
|
+
const t = n.getData();
|
|
574
|
+
if (!t.length) return "";
|
|
575
|
+
const r = Object.keys(t[0]), o = r.join(" | "), i = r.map(() => "---").join(" | "), s = t.map((a) => r.map((c) => String(a[c] || "")).join(" | "));
|
|
576
|
+
return [`| ${o} |`, `| ${i} |`, ...s.map((a) => `| ${a} |`)].join(`
|
|
577
|
+
`);
|
|
578
|
+
}
|
|
579
|
+
return null;
|
|
580
|
+
},
|
|
581
|
+
regExp: /^\s*(\|.+\|)\s*$/,
|
|
582
|
+
replace: (n, e, t, r) => {
|
|
583
|
+
const o = n.getPreviousSibling();
|
|
584
|
+
if (/^\|?\s*:?-{3,}:?\s*(?:\|\s*:?-{3,}:?\s*)*\|?$/gm.test(t[0])) {
|
|
585
|
+
n.remove();
|
|
586
|
+
return;
|
|
587
|
+
}
|
|
588
|
+
const s = t[0].split("|").slice(1, -1).map((a) => a.trim());
|
|
589
|
+
if (o?.getType() === "data_table" && ge(o)) {
|
|
590
|
+
const a = o.getData(), c = {}, d = a.length === 1 && Object.values(a[0]).every((m) => m === ""), p = a.length > 0 ? Object.keys(a[0]) : s.map((m, f) => `col_${f}`);
|
|
591
|
+
s.forEach((m, f) => {
|
|
592
|
+
const g = p[f] || `col_${f}`;
|
|
593
|
+
c[g] = m;
|
|
594
|
+
});
|
|
595
|
+
const u = d ? [c] : [...a, c], h = he(u);
|
|
596
|
+
o.replace(h), n.remove();
|
|
597
|
+
} else {
|
|
598
|
+
const a = {};
|
|
599
|
+
s.forEach((d, p) => {
|
|
600
|
+
a[d || `col_${p}`] = "";
|
|
601
|
+
});
|
|
602
|
+
const c = he([a]);
|
|
603
|
+
n.replace(c);
|
|
604
|
+
}
|
|
605
|
+
},
|
|
606
|
+
type: "element"
|
|
607
|
+
}, cn = {
|
|
608
|
+
dependencies: [ee],
|
|
609
|
+
export: (n, e) => {
|
|
610
|
+
if (n instanceof ee) {
|
|
611
|
+
let t = n.getTextContent();
|
|
612
|
+
if (n.hasFormat("bold"))
|
|
613
|
+
t = `**${t}**`;
|
|
614
|
+
else if (n.hasFormat("italic"))
|
|
615
|
+
t = `*${t}*`;
|
|
616
|
+
else if (n.hasFormat("underline"))
|
|
617
|
+
t = `<ins>${t}</ins>`;
|
|
618
|
+
else
|
|
619
|
+
return null;
|
|
620
|
+
return t;
|
|
621
|
+
}
|
|
622
|
+
return null;
|
|
623
|
+
},
|
|
624
|
+
regExp: /<ins>(.*)<\/ins>/,
|
|
625
|
+
importRegExp: /<ins>(.*)<\/ins>/,
|
|
626
|
+
replace: (n, e) => {
|
|
627
|
+
const t = Ie(e[1]);
|
|
628
|
+
t.toggleFormat("underline"), n.replace(t);
|
|
629
|
+
},
|
|
630
|
+
type: "text-match"
|
|
631
|
+
}, an = {
|
|
632
|
+
dependencies: [ee],
|
|
633
|
+
export: (n, e) => null,
|
|
634
|
+
regExp: /<u>(.*)<\/u>/,
|
|
635
|
+
importRegExp: /<u>(.*)<\/u>/,
|
|
636
|
+
replace: (n, e) => {
|
|
637
|
+
const t = Ie(e[1]);
|
|
638
|
+
t.toggleFormat("underline"), n.replace(t);
|
|
639
|
+
},
|
|
640
|
+
type: "text-match"
|
|
641
|
+
}, ze = [ln, sn, cn, an], Kr = [Oe, Te, H, ke, Se, Re, ae, K, q, B, ne], Vr = [...Ne, ...ze, Ue, Je, Gt], Xr = ue;
|
|
642
|
+
function dn() {
|
|
643
|
+
const n = C(3), [e] = L();
|
|
644
|
+
let t, r;
|
|
645
|
+
return n[0] !== e ? (t = () => {
|
|
646
|
+
e.update(un);
|
|
647
|
+
}, r = [e], n[0] = e, n[1] = t, n[2] = r) : (t = n[1], r = n[2]), M(t, r), null;
|
|
648
|
+
}
|
|
649
|
+
function un() {
|
|
650
|
+
const n = at(ae);
|
|
651
|
+
for (const e of n) {
|
|
652
|
+
const t = e.getLanguage() ?? "plaintext", r = e.getTextContent();
|
|
653
|
+
e.replace(new K(t, r));
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
function Ke(n) {
|
|
657
|
+
const e = C(4), {
|
|
658
|
+
isEditable: t
|
|
659
|
+
} = n, [r] = L();
|
|
660
|
+
let o, i;
|
|
661
|
+
return e[0] !== r || e[1] !== t ? (o = () => {
|
|
662
|
+
r.setEditable(t);
|
|
663
|
+
}, i = [t, r], e[0] = r, e[1] = t, e[2] = o, e[3] = i) : (o = e[2], i = e[3]), M(o, i), null;
|
|
664
|
+
}
|
|
665
|
+
function Ve() {
|
|
666
|
+
const n = C(2), [e] = L();
|
|
667
|
+
let t;
|
|
668
|
+
return n[0] !== e ? (t = /* @__PURE__ */ l(v, { fontSize: "xs", color: "fg.muted", padding: "4", children: /* @__PURE__ */ l(vt, { 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: e }) }), n[0] = e, n[1] = t) : t = n[1], t;
|
|
669
|
+
}
|
|
670
|
+
const mn = /^---\s*\n([\s\S]*?)\n---\s*(?:\n|$)/;
|
|
671
|
+
function fn(n) {
|
|
672
|
+
const e = n.match(mn);
|
|
673
|
+
return e ? {
|
|
674
|
+
frontmatter: e[0],
|
|
675
|
+
body: n.slice(e[0].length)
|
|
676
|
+
} : {
|
|
677
|
+
frontmatter: "",
|
|
678
|
+
body: n
|
|
679
|
+
};
|
|
680
|
+
}
|
|
681
|
+
const pn = "UPLOAD_FILE", _n = "OPEN_CONTEXT", hn = "RUN_PROMPT", gn = "UPDATE_FORMAT", xn = "UPDATE_BEHAVIOR", En = "INSERT_PROMPT", bn = "RENAME_PROMPT", yn = "DUPLICATE_PROMPT", Tn = "DELETE_PROMPT", Sn = "DELETE_REFERENCES", Rn = "RENAME_REFERENCES", Nn = "INSERT_REFERENCE", Cn = "INSERT_BLOCK";
|
|
682
|
+
k(pn);
|
|
683
|
+
k(_n);
|
|
684
|
+
k(hn);
|
|
685
|
+
k(gn);
|
|
686
|
+
k(xn);
|
|
687
|
+
k(En);
|
|
688
|
+
k(bn);
|
|
689
|
+
k(yn);
|
|
690
|
+
k(Tn);
|
|
691
|
+
k(Sn);
|
|
692
|
+
k(Rn);
|
|
693
|
+
const Xe = k(Nn), On = k(Cn), kn = "INSERT_NEW_FILE_PLACEHOLDER", $n = "INSERT_NEW_TEXT_PLACEHOLDER", In = "INSERT_PLACEHOLDER_REFERENCE";
|
|
694
|
+
k(kn);
|
|
695
|
+
k($n);
|
|
696
|
+
k(In);
|
|
697
|
+
function vn(n) {
|
|
698
|
+
const e = te();
|
|
699
|
+
return n.style !== null && e.setFormat(n.style.textAlign), {
|
|
700
|
+
node: e
|
|
701
|
+
};
|
|
702
|
+
}
|
|
703
|
+
class Y extends $e {
|
|
704
|
+
static getType() {
|
|
705
|
+
return "comment";
|
|
706
|
+
}
|
|
707
|
+
static clone(e) {
|
|
708
|
+
return new Y(e.__key);
|
|
709
|
+
}
|
|
710
|
+
createDOM(e) {
|
|
711
|
+
const t = document.createElement("blockquote");
|
|
712
|
+
return Fe(t, e.theme.comment), t;
|
|
713
|
+
}
|
|
714
|
+
updateDOM() {
|
|
715
|
+
return !1;
|
|
716
|
+
}
|
|
717
|
+
static importDOM() {
|
|
718
|
+
return {
|
|
719
|
+
blockquote: () => ({
|
|
720
|
+
conversion: vn,
|
|
721
|
+
priority: 0
|
|
722
|
+
})
|
|
723
|
+
};
|
|
724
|
+
}
|
|
725
|
+
exportDOM(e) {
|
|
726
|
+
const {
|
|
727
|
+
element: t
|
|
728
|
+
} = super.exportDOM(e);
|
|
729
|
+
if (t && dt(t)) {
|
|
730
|
+
this.isEmpty() && t.append(document.createElement("br"));
|
|
731
|
+
const r = this.getFormatType();
|
|
732
|
+
t.style.textAlign = r;
|
|
733
|
+
const o = this.getDirection();
|
|
734
|
+
o && (t.dir = o);
|
|
735
|
+
}
|
|
736
|
+
return {
|
|
737
|
+
element: t
|
|
738
|
+
};
|
|
739
|
+
}
|
|
740
|
+
static importJSON(e) {
|
|
741
|
+
const t = te();
|
|
742
|
+
return t.setFormat(e.format), t.setIndent(e.indent), t.setDirection(e.direction), t;
|
|
743
|
+
}
|
|
744
|
+
exportJSON() {
|
|
745
|
+
return {
|
|
746
|
+
...super.exportJSON(),
|
|
747
|
+
type: "comment"
|
|
748
|
+
};
|
|
749
|
+
}
|
|
750
|
+
getTextContent() {
|
|
751
|
+
return `{{! ${super.getTextContent().replace(/([{}])/g, "\\$1")} }}`;
|
|
752
|
+
}
|
|
753
|
+
// mutation
|
|
754
|
+
insertNewAfter(e, t) {
|
|
755
|
+
const r = se(), o = this.getDirection();
|
|
756
|
+
return r.setDirection(o), this.insertAfter(r, t), r;
|
|
757
|
+
}
|
|
758
|
+
collapseAtStart() {
|
|
759
|
+
const e = se();
|
|
760
|
+
return this.getChildren().forEach((r) => {
|
|
761
|
+
e.append(r);
|
|
762
|
+
}), this.replace(e), !0;
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
function te() {
|
|
766
|
+
return new Y();
|
|
767
|
+
}
|
|
768
|
+
const wn = (n, e) => {
|
|
769
|
+
const t = ut(), r = te();
|
|
770
|
+
if (e) {
|
|
771
|
+
e.getParent()?.replace(r, !0), e.remove(), r.selectEnd();
|
|
772
|
+
return;
|
|
773
|
+
}
|
|
774
|
+
mt(t) && St(t, te);
|
|
775
|
+
};
|
|
776
|
+
function Pn() {
|
|
777
|
+
const n = C(3), [e] = L();
|
|
778
|
+
let t, r;
|
|
779
|
+
return n[0] !== e ? (t = () => de(e.registerCommand(On, Ln, ve)), r = [e], n[0] = e, n[1] = t, n[2] = r) : (t = n[1], r = n[2]), M(t, r), null;
|
|
780
|
+
}
|
|
781
|
+
function Ln(n) {
|
|
782
|
+
const {
|
|
783
|
+
optionId: e,
|
|
784
|
+
nodeToReplace: t
|
|
785
|
+
} = n;
|
|
786
|
+
return wn(e, t), !1;
|
|
787
|
+
}
|
|
788
|
+
const Mn = () => {
|
|
789
|
+
const n = C(3), [e] = L();
|
|
790
|
+
let t, r;
|
|
791
|
+
n[0] !== e ? (t = () => de(e.registerNodeTransform(Y, (o) => {
|
|
792
|
+
const s = o.getChildren().filter(Dn);
|
|
793
|
+
s.length > 0 && e.update(() => {
|
|
794
|
+
s.forEach(An);
|
|
795
|
+
});
|
|
796
|
+
})), r = [e], n[0] = e, n[1] = t, n[2] = r) : (t = n[1], r = n[2]), M(t, r);
|
|
797
|
+
};
|
|
798
|
+
function Dn(n) {
|
|
799
|
+
return n.getType() === "comment";
|
|
800
|
+
}
|
|
801
|
+
function An(n) {
|
|
802
|
+
n.replace(se(), !0);
|
|
803
|
+
}
|
|
804
|
+
function Fn() {
|
|
805
|
+
return Mn(), Pn(), null;
|
|
806
|
+
}
|
|
807
|
+
const qn = (n) => {
|
|
808
|
+
let e = "";
|
|
809
|
+
const t = n.getChildren(), r = t.length;
|
|
810
|
+
for (let o = 0; o < r; o++) {
|
|
811
|
+
const i = t[o];
|
|
812
|
+
e += i.getTextContent(), ft(i) && o !== r - 1 && !i.isInline() && (e += `
|
|
813
|
+
`);
|
|
814
|
+
}
|
|
815
|
+
return e;
|
|
816
|
+
}, Hn = (n) => n.type !== "reference" ? null : `#${n.name ?? n.referenceId ?? ""}`, jn = (n) => n.type === "paragraph" && !!n.children?.length, Ge = (n) => {
|
|
817
|
+
if (n.type === "comment")
|
|
818
|
+
return "";
|
|
819
|
+
const e = Hn(n);
|
|
820
|
+
if (e !== null)
|
|
821
|
+
return e;
|
|
822
|
+
let t = typeof n.text == "string" ? n.text : "";
|
|
823
|
+
const r = n.children;
|
|
824
|
+
if (!Array.isArray(r)) return t;
|
|
825
|
+
const o = r.length;
|
|
826
|
+
for (let i = 0; i < o; i += 1) {
|
|
827
|
+
const s = r[i];
|
|
828
|
+
if (s.type === "comment") {
|
|
829
|
+
i !== o - 1 && (t += `
|
|
830
|
+
`);
|
|
831
|
+
continue;
|
|
832
|
+
}
|
|
833
|
+
t += Ge(s), jn(s) && (t += `
|
|
834
|
+
`);
|
|
835
|
+
}
|
|
836
|
+
return t;
|
|
837
|
+
}, Ye = (n) => {
|
|
838
|
+
try {
|
|
839
|
+
const e = JSON.parse(n);
|
|
840
|
+
return Ge(e.root ?? {});
|
|
841
|
+
} catch {
|
|
842
|
+
return "";
|
|
843
|
+
}
|
|
844
|
+
}, Bn = {
|
|
845
|
+
root: {
|
|
846
|
+
direction: "ltr",
|
|
847
|
+
format: "",
|
|
848
|
+
indent: 0,
|
|
849
|
+
type: "root",
|
|
850
|
+
version: 1,
|
|
851
|
+
children: [{
|
|
852
|
+
type: "paragraph",
|
|
853
|
+
version: 1,
|
|
854
|
+
format: "",
|
|
855
|
+
indent: 0,
|
|
856
|
+
textFormat: void 0,
|
|
857
|
+
direction: null,
|
|
858
|
+
children: []
|
|
859
|
+
}]
|
|
860
|
+
}
|
|
861
|
+
};
|
|
862
|
+
function Un(n = "") {
|
|
863
|
+
return n.trim() ? {
|
|
864
|
+
root: {
|
|
865
|
+
direction: "ltr",
|
|
866
|
+
format: "",
|
|
867
|
+
indent: 0,
|
|
868
|
+
type: "root",
|
|
869
|
+
version: 1,
|
|
870
|
+
children: n.split(/\r?\n/).map((r) => ({
|
|
871
|
+
type: "paragraph",
|
|
872
|
+
version: 1,
|
|
873
|
+
format: "",
|
|
874
|
+
indent: 0,
|
|
875
|
+
textFormat: void 0,
|
|
876
|
+
direction: null,
|
|
877
|
+
children: r ? [{
|
|
878
|
+
type: "text",
|
|
879
|
+
version: 1,
|
|
880
|
+
text: r,
|
|
881
|
+
format: "",
|
|
882
|
+
detail: 0,
|
|
883
|
+
mode: "normal",
|
|
884
|
+
style: ""
|
|
885
|
+
}] : []
|
|
886
|
+
}))
|
|
887
|
+
}
|
|
888
|
+
} : JSON.parse(JSON.stringify(Bn));
|
|
889
|
+
}
|
|
890
|
+
function Jn(n) {
|
|
891
|
+
const e = C(4), {
|
|
892
|
+
editorRef: t,
|
|
893
|
+
previousTextRef: r
|
|
894
|
+
} = n, [o] = L();
|
|
895
|
+
let i, s;
|
|
896
|
+
return e[0] !== o || e[1] !== r ? (i = () => ({
|
|
897
|
+
setEditorValue: (a) => {
|
|
898
|
+
const c = o.parseEditorState(JSON.stringify(Un(a)));
|
|
899
|
+
o.setEditorState(c), r.current = Ye(a), o.focus(void 0, {
|
|
900
|
+
defaultSelection: "rootEnd"
|
|
901
|
+
});
|
|
902
|
+
}
|
|
903
|
+
}), s = [o, r], e[0] = o, e[1] = r, e[2] = i, e[3] = s) : (i = e[2], s = e[3]), bt(t, i, s), null;
|
|
904
|
+
}
|
|
905
|
+
const Wn = (n) => n.key !== "Enter" ? !1 : !n.ctrlKey && !n.metaKey && !n.shiftKey && !n.altKey;
|
|
906
|
+
function zn(n) {
|
|
907
|
+
const e = C(4), {
|
|
908
|
+
onSubmit: t
|
|
909
|
+
} = n, [r] = L();
|
|
910
|
+
let o, i;
|
|
911
|
+
return e[0] !== r || e[1] !== t ? (o = () => r.registerCommand(pt, (s) => Wn(s) ? (s.preventDefault(), t?.(), !0) : !1, _t), i = [r, t], e[0] = r, e[1] = t, e[2] = o, e[3] = i) : (o = e[2], i = e[3]), M(o, i), null;
|
|
912
|
+
}
|
|
913
|
+
const Ee = ["table", "connector"], Kn = (n) => n.sort((r, o) => Ee.indexOf(r.group) - Ee.indexOf(o.group)).map((r, o) => ({
|
|
914
|
+
...r,
|
|
915
|
+
index: o
|
|
916
|
+
})).reduce((r, o) => {
|
|
917
|
+
const i = r[o.group] ?? [];
|
|
918
|
+
return i.push(o), r[o.group] = i, r;
|
|
919
|
+
}, {});
|
|
920
|
+
function be(n) {
|
|
921
|
+
const e = C(19), {
|
|
922
|
+
id: t,
|
|
923
|
+
isSelected: r,
|
|
924
|
+
onClick: o,
|
|
925
|
+
onMouseEnter: i,
|
|
926
|
+
setRefElement: s,
|
|
927
|
+
secondaryLabel: a,
|
|
928
|
+
primaryLabel: c,
|
|
929
|
+
tabIndex: d
|
|
930
|
+
} = n, p = d === void 0 ? -1 : d, u = r ? "bg.muted" : "transparent";
|
|
931
|
+
let h;
|
|
932
|
+
e[0] !== c ? (h = /* @__PURE__ */ l(Z.Trigger, { children: /* @__PURE__ */ l(I, { mt: "1px", lineClamp: 1, textOverflow: "ellipsis", textStyle: "label/M/regular", children: c }) }), e[0] = c, e[1] = h) : h = e[1];
|
|
933
|
+
let m;
|
|
934
|
+
e[2] !== c ? (m = /* @__PURE__ */ l(Z.Positioner, { children: /* @__PURE__ */ l(Z.Content, { children: c }) }), e[2] = c, e[3] = m) : m = e[3];
|
|
935
|
+
let f;
|
|
936
|
+
e[4] !== h || e[5] !== m ? (f = /* @__PURE__ */ P(Z.Root, { children: [
|
|
937
|
+
h,
|
|
938
|
+
m
|
|
939
|
+
] }), e[4] = h, e[5] = m, e[6] = f) : f = e[6];
|
|
940
|
+
let g;
|
|
941
|
+
e[7] !== a ? (g = a && /* @__PURE__ */ l(I, { lineClamp: 2, textOverflow: "ellipsis", textStyle: "label/S/regular", color: "fg.muted", children: a }), e[7] = a, e[8] = g) : g = e[8];
|
|
942
|
+
let y;
|
|
943
|
+
return e[9] !== t || e[10] !== r || e[11] !== o || e[12] !== i || e[13] !== s || e[14] !== u || e[15] !== f || e[16] !== g || e[17] !== p ? (y = /* @__PURE__ */ P(V, { direction: "column", cursor: "pointer", gap: "2xs", padding: "2xs", paddingX: "sm", bg: u, tabIndex: p, ref: s, role: "option", "aria-selected": r, id: t, onMouseEnter: i, onClick: o, children: [
|
|
944
|
+
f,
|
|
945
|
+
g
|
|
946
|
+
] }), e[9] = t, e[10] = r, e[11] = o, e[12] = i, e[13] = s, e[14] = u, e[15] = f, e[16] = g, e[17] = p, e[18] = y) : y = e[18], y;
|
|
947
|
+
}
|
|
948
|
+
const Vn = (n) => {
|
|
949
|
+
const e = C(12), {
|
|
950
|
+
options: t,
|
|
951
|
+
selectedIndex: r,
|
|
952
|
+
onSelectItem: o,
|
|
953
|
+
onMouseEnterItem: i
|
|
954
|
+
} = n, {
|
|
955
|
+
table: s,
|
|
956
|
+
connector: a
|
|
957
|
+
} = Kn(t), c = s === void 0 ? [] : s, d = a === void 0 ? [] : a, p = [...c, ...d].length;
|
|
958
|
+
let u, h;
|
|
959
|
+
e[0] !== r ? (u = () => {
|
|
960
|
+
document.getElementById(`typeahead-item-${r}`)?.scrollIntoView({
|
|
961
|
+
behavior: "instant",
|
|
962
|
+
block: "nearest"
|
|
963
|
+
});
|
|
964
|
+
}, h = [r], e[0] = r, e[1] = u, e[2] = h) : (u = e[1], h = e[2]), M(u, h);
|
|
965
|
+
const m = v, f = "1000", g = "absolute", y = "modal", E = "auto", R = "24rem";
|
|
966
|
+
let T;
|
|
967
|
+
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = {
|
|
968
|
+
base: "100vw",
|
|
969
|
+
md: "264px"
|
|
970
|
+
}, e[3] = T) : T = e[3];
|
|
971
|
+
let S;
|
|
972
|
+
e[4] !== p ? (S = !p && /* @__PURE__ */ l(I, { children: "No results" }), e[4] = p, e[5] = S) : S = e[5];
|
|
973
|
+
const x = !!c.length && /* @__PURE__ */ P(pe, { children: [
|
|
974
|
+
/* @__PURE__ */ l(I, { paddingTop: "xs", paddingBottom: "2xs", paddingX: "sm", color: "fg.muted", textStyle: "label/S/medium", children: "Tables" }),
|
|
975
|
+
/* @__PURE__ */ l(v, { children: c.map((_) => /* @__PURE__ */ l(be, { id: `typeahead-item-${_.index}`, isSelected: r === _.index, onClick: () => o(_, _.index), onMouseEnter: () => i(_.index), primaryLabel: _.name, secondaryLabel: _.description, setRefElement: _.setRefElement, tabIndex: -1 }, _.id)) })
|
|
976
|
+
] }), N = !!d.length && /* @__PURE__ */ P(pe, { children: [
|
|
977
|
+
/* @__PURE__ */ l(I, { paddingTop: "xs", paddingBottom: "2xs", paddingX: "sm", color: "fg.muted", textStyle: "label/S/medium", children: "Data Sources" }),
|
|
978
|
+
/* @__PURE__ */ l(v, { children: d.map((_) => /* @__PURE__ */ l(be, { id: `typeahead-item-${_.index}`, isSelected: r === _.index, onClick: () => o(_, _.index), onMouseEnter: () => i(_.index), primaryLabel: _.name, secondaryLabel: _.description, setRefElement: _.setRefElement, tabIndex: -1 }, _.id)) })
|
|
979
|
+
] });
|
|
980
|
+
let b;
|
|
981
|
+
return e[6] !== m || e[7] !== S || e[8] !== x || e[9] !== N || e[10] !== T ? (b = /* @__PURE__ */ P(m, { zIndex: f, position: g, layerStyle: y, overflow: E, maxHeight: R, minWidth: T, children: [
|
|
982
|
+
S,
|
|
983
|
+
x,
|
|
984
|
+
N
|
|
985
|
+
] }), e[6] = m, e[7] = S, e[8] = x, e[9] = N, e[10] = T, e[11] = b) : b = e[11], b;
|
|
986
|
+
}, Xn = (n, e) => n.filter((t) => t.name.replace(/ /g, "_").toLowerCase().includes(e.toLowerCase()));
|
|
987
|
+
function Gn(n, e) {
|
|
988
|
+
const t = C(9);
|
|
989
|
+
let r;
|
|
990
|
+
t[0] !== e ? (r = e === void 0 ? [] : e, t[0] = e, t[1] = r) : r = t[1];
|
|
991
|
+
const o = r;
|
|
992
|
+
let i;
|
|
993
|
+
t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = [], t[2] = i) : i = t[2];
|
|
994
|
+
const [s, a] = Ae(i);
|
|
995
|
+
let c;
|
|
996
|
+
t[3] !== o ? (c = o.map(Yn), t[3] = o, t[4] = c) : c = t[4];
|
|
997
|
+
const d = c;
|
|
998
|
+
let p, u;
|
|
999
|
+
return t[5] !== d || t[6] !== n ? (p = () => {
|
|
1000
|
+
if (n == null || n === "") {
|
|
1001
|
+
a(d);
|
|
1002
|
+
return;
|
|
1003
|
+
}
|
|
1004
|
+
a(Xn(d, n));
|
|
1005
|
+
}, u = [n, d], t[5] = d, t[6] = n, t[7] = p, t[8] = u) : (p = t[7], u = t[8]), M(p, u), s;
|
|
1006
|
+
}
|
|
1007
|
+
function Yn(n, e) {
|
|
1008
|
+
return {
|
|
1009
|
+
id: n.resourceId,
|
|
1010
|
+
key: n.resourceId,
|
|
1011
|
+
index: e,
|
|
1012
|
+
group: n.resourceType,
|
|
1013
|
+
name: n.name,
|
|
1014
|
+
description: n.description,
|
|
1015
|
+
setRefElement: Qn
|
|
1016
|
+
};
|
|
1017
|
+
}
|
|
1018
|
+
function Qn() {
|
|
1019
|
+
}
|
|
1020
|
+
const Qe = "\\.\\-<>_:", me = ["#"].join(""), Ze = `[^${me}${Qe}\\s]`, Zn = `(?:[${Qe}]|)`, et = 75, er = new RegExp(`(^|\\s|\\()([${me}]((?:${Ze}${Zn}){0,${et}}))$`), tr = new RegExp(`(^|\\s|\\()([${me}]((?:${Ze}){0,${et}}))$`);
|
|
1021
|
+
function nr(n, e) {
|
|
1022
|
+
let t = er.exec(n);
|
|
1023
|
+
if (t === null && (t = tr.exec(n)), t !== null) {
|
|
1024
|
+
const r = t[1], o = t[3];
|
|
1025
|
+
if (o.length >= e)
|
|
1026
|
+
return {
|
|
1027
|
+
leadOffset: t.index + r.length,
|
|
1028
|
+
matchingString: o,
|
|
1029
|
+
replaceableString: t[2]
|
|
1030
|
+
};
|
|
1031
|
+
}
|
|
1032
|
+
return null;
|
|
1033
|
+
}
|
|
1034
|
+
const rr = 20;
|
|
1035
|
+
function or(n) {
|
|
1036
|
+
const e = C(9), {
|
|
1037
|
+
items: t
|
|
1038
|
+
} = n;
|
|
1039
|
+
let r;
|
|
1040
|
+
e[0] !== t ? (r = t === void 0 ? [] : t, e[0] = t, e[1] = r) : r = e[1];
|
|
1041
|
+
const o = r, [i, s] = Ae(null), [a] = L(), c = Gn(i, o);
|
|
1042
|
+
let d;
|
|
1043
|
+
e[2] !== a ? (d = (g, y, E) => {
|
|
1044
|
+
a.update(() => {
|
|
1045
|
+
y && (a.dispatchCommand(Xe, {
|
|
1046
|
+
resourceId: g.id,
|
|
1047
|
+
resourceType: g.group,
|
|
1048
|
+
name: g.name,
|
|
1049
|
+
nodeToReplace: y
|
|
1050
|
+
}), E());
|
|
1051
|
+
});
|
|
1052
|
+
}, e[2] = a, e[3] = d) : d = e[3];
|
|
1053
|
+
const p = d, u = sr;
|
|
1054
|
+
let h;
|
|
1055
|
+
e[4] !== c ? (h = [...c.slice(0, rr)], e[4] = c, e[5] = h) : h = e[5];
|
|
1056
|
+
const m = h;
|
|
1057
|
+
let f;
|
|
1058
|
+
return e[6] !== m || e[7] !== p ? (f = /* @__PURE__ */ l(Rt, { onQueryChange: s, onSelectOption: p, triggerFn: u, options: m, menuRenderFn: ir }), e[6] = m, e[7] = p, e[8] = f) : f = e[8], f;
|
|
1059
|
+
}
|
|
1060
|
+
function ir(n, e) {
|
|
1061
|
+
const {
|
|
1062
|
+
options: t,
|
|
1063
|
+
selectedIndex: r,
|
|
1064
|
+
selectOptionAndCleanUp: o,
|
|
1065
|
+
setHighlightedIndex: i
|
|
1066
|
+
} = e;
|
|
1067
|
+
return n.current ? Nt.createPortal(/* @__PURE__ */ l(Vn, { options: t, selectedIndex: r, onSelectItem: (s, a) => {
|
|
1068
|
+
i(a), o(s);
|
|
1069
|
+
}, onMouseEnterItem: (s) => {
|
|
1070
|
+
i(s);
|
|
1071
|
+
} }), n.current) : null;
|
|
1072
|
+
}
|
|
1073
|
+
function sr(n) {
|
|
1074
|
+
return nr(n, 0);
|
|
1075
|
+
}
|
|
1076
|
+
class X extends ee {
|
|
1077
|
+
__referenceId;
|
|
1078
|
+
__name;
|
|
1079
|
+
static getType() {
|
|
1080
|
+
return "reference";
|
|
1081
|
+
}
|
|
1082
|
+
static clone(e) {
|
|
1083
|
+
return new X(e.__referenceId, e.__name, e.__key);
|
|
1084
|
+
}
|
|
1085
|
+
constructor(e, t, r) {
|
|
1086
|
+
super(t, r), this.__referenceId = e, this.__name = t;
|
|
1087
|
+
}
|
|
1088
|
+
isKeyboardSelectable() {
|
|
1089
|
+
return !1;
|
|
1090
|
+
}
|
|
1091
|
+
canBeEmpty() {
|
|
1092
|
+
return !1;
|
|
1093
|
+
}
|
|
1094
|
+
canInsertTextAfter() {
|
|
1095
|
+
return !1;
|
|
1096
|
+
}
|
|
1097
|
+
canInsertTextBefore() {
|
|
1098
|
+
return !1;
|
|
1099
|
+
}
|
|
1100
|
+
createDOM(e) {
|
|
1101
|
+
const t = document.createElement("span");
|
|
1102
|
+
return Fe(t, e.theme.reference), t.setAttribute("data-reference-id", this.__referenceId), t.setAttribute("data-name", this.__name), t.textContent = `#${this.__name}`, t;
|
|
1103
|
+
}
|
|
1104
|
+
updateDOM(e, t) {
|
|
1105
|
+
return (e.__name !== this.__name || e.__referenceId !== this.__referenceId) && (t.setAttribute("data-reference-id", this.__referenceId), t.setAttribute("data-name", this.__name), t.textContent = `#${this.__name}`), !1;
|
|
1106
|
+
}
|
|
1107
|
+
exportDOM(e) {
|
|
1108
|
+
const t = document.createElement("span");
|
|
1109
|
+
return t.setAttribute("data-reference-id", this.__referenceId), t.setAttribute("data-name", this.__name), t.textContent = `#${this.__name}`, {
|
|
1110
|
+
element: t
|
|
1111
|
+
};
|
|
1112
|
+
}
|
|
1113
|
+
static importJSON(e) {
|
|
1114
|
+
return new X(e.referenceId, e.name);
|
|
1115
|
+
}
|
|
1116
|
+
exportJSON() {
|
|
1117
|
+
return {
|
|
1118
|
+
...super.exportJSON(),
|
|
1119
|
+
type: "reference",
|
|
1120
|
+
referenceId: this.__referenceId,
|
|
1121
|
+
name: this.__name
|
|
1122
|
+
};
|
|
1123
|
+
}
|
|
1124
|
+
getTextContent() {
|
|
1125
|
+
return `#${this.__name}`;
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
function lr(n, e) {
|
|
1129
|
+
return new X(n, e);
|
|
1130
|
+
}
|
|
1131
|
+
const cr = (n, e, t) => {
|
|
1132
|
+
const r = lr(e, t);
|
|
1133
|
+
if (n) {
|
|
1134
|
+
n?.replace(r), n.remove(), r.selectEnd();
|
|
1135
|
+
return;
|
|
1136
|
+
}
|
|
1137
|
+
};
|
|
1138
|
+
function ar(n) {
|
|
1139
|
+
const e = C(4), {
|
|
1140
|
+
onAddReference: t
|
|
1141
|
+
} = n, [r] = L();
|
|
1142
|
+
let o, i;
|
|
1143
|
+
return e[0] !== r || e[1] !== t ? (o = () => de(r.registerCommand(Xe, (s) => {
|
|
1144
|
+
const {
|
|
1145
|
+
resourceId: a,
|
|
1146
|
+
resourceType: c,
|
|
1147
|
+
name: d,
|
|
1148
|
+
nodeToReplace: p
|
|
1149
|
+
} = s;
|
|
1150
|
+
return r.update(() => {
|
|
1151
|
+
cr(p, a, d);
|
|
1152
|
+
}), t?.(a, c), !0;
|
|
1153
|
+
}, ve)), i = [r, t], e[0] = r, e[1] = t, e[2] = o, e[3] = i) : (o = e[2], i = e[3]), M(o, i), null;
|
|
1154
|
+
}
|
|
1155
|
+
const dr = {
|
|
1156
|
+
...ue,
|
|
1157
|
+
// Override paragraph class to remove margins specifically for prompt input
|
|
1158
|
+
paragraph: "rich-text__p rich-text__p--no-margin"
|
|
1159
|
+
}, ur = [Y, ht, X], mr = (n, e) => {
|
|
1160
|
+
const t = C(39), {
|
|
1161
|
+
defaultState: r,
|
|
1162
|
+
debug: o,
|
|
1163
|
+
isEditable: i,
|
|
1164
|
+
placeholder: s
|
|
1165
|
+
} = n, a = o === void 0 ? !1 : o, c = i === void 0 ? !0 : i, {
|
|
1166
|
+
onChange: d,
|
|
1167
|
+
onError: p,
|
|
1168
|
+
onSubmit: u,
|
|
1169
|
+
references: h,
|
|
1170
|
+
onAddReference: m
|
|
1171
|
+
} = n, f = p === void 0 ? fr : p;
|
|
1172
|
+
let g;
|
|
1173
|
+
t[0] !== h ? (g = h === void 0 ? [] : h, t[0] = h, t[1] = g) : g = t[1];
|
|
1174
|
+
const y = g;
|
|
1175
|
+
let E;
|
|
1176
|
+
t[2] !== r || t[3] !== c || t[4] !== f ? (E = {
|
|
1177
|
+
namespace: "PROMPT_EDITOR",
|
|
1178
|
+
nodes: ur,
|
|
1179
|
+
editorState: r,
|
|
1180
|
+
editable: c,
|
|
1181
|
+
onError: f,
|
|
1182
|
+
theme: dr
|
|
1183
|
+
}, t[2] = r, t[3] = c, t[4] = f, t[5] = E) : E = t[5];
|
|
1184
|
+
const R = E;
|
|
1185
|
+
let T;
|
|
1186
|
+
t[6] !== r ? (T = Ye(r), t[6] = r, t[7] = T) : T = t[7];
|
|
1187
|
+
const S = Tt(T);
|
|
1188
|
+
let x;
|
|
1189
|
+
t[8] !== s ? (x = s ?? /* @__PURE__ */ P(I, { textStyle: "label/M/regular", color: "fg.subtle", pointerEvents: "none", position: "absolute", top: "0", children: [
|
|
1190
|
+
"Type your query here or press ",
|
|
1191
|
+
/* @__PURE__ */ l(lt, { color: "fg.subtle", children: "#" }),
|
|
1192
|
+
" to add a reference."
|
|
1193
|
+
] }), t[8] = s, t[9] = x) : x = t[9];
|
|
1194
|
+
const N = x;
|
|
1195
|
+
let b;
|
|
1196
|
+
t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ l(gt, {}), t[10] = b) : b = t[10];
|
|
1197
|
+
let _;
|
|
1198
|
+
t[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ l(qe, { fullWidth: !0 }), t[11] = _) : _ = t[11];
|
|
1199
|
+
let O;
|
|
1200
|
+
t[12] !== N ? (O = /* @__PURE__ */ l(De, { contentEditable: _, placeholder: N, ErrorBoundary: Le }), t[12] = N, t[13] = O) : O = t[13];
|
|
1201
|
+
let $;
|
|
1202
|
+
t[14] !== d ? ($ = /* @__PURE__ */ l(Me, { ignoreSelectionChange: !0, ignoreHistoryMergeTagChange: !1, onChange: (fe) => {
|
|
1203
|
+
fe.read(() => {
|
|
1204
|
+
const nt = we(), oe = qn(nt);
|
|
1205
|
+
oe !== S.current && (S.current = oe, d?.(oe, fe.toJSON()));
|
|
1206
|
+
});
|
|
1207
|
+
} }), t[14] = d, t[15] = $) : $ = t[15];
|
|
1208
|
+
let w;
|
|
1209
|
+
t[16] !== e ? (w = /* @__PURE__ */ l(Jn, { editorRef: e, previousTextRef: S }), t[16] = e, t[17] = w) : w = t[17];
|
|
1210
|
+
let D;
|
|
1211
|
+
t[18] !== c ? (D = /* @__PURE__ */ l(Ke, { isEditable: c }), t[18] = c, t[19] = D) : D = t[19];
|
|
1212
|
+
let U;
|
|
1213
|
+
t[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (U = /* @__PURE__ */ l(Fn, {}), t[20] = U) : U = t[20];
|
|
1214
|
+
let A;
|
|
1215
|
+
t[21] !== u ? (A = /* @__PURE__ */ l(zn, { onSubmit: u }), t[21] = u, t[22] = A) : A = t[22];
|
|
1216
|
+
let J;
|
|
1217
|
+
t[23] !== y ? (J = /* @__PURE__ */ l(or, { items: y }), t[23] = y, t[24] = J) : J = t[24];
|
|
1218
|
+
let W;
|
|
1219
|
+
t[25] !== m ? (W = /* @__PURE__ */ l(ar, { onAddReference: m }), t[25] = m, t[26] = W) : W = t[26];
|
|
1220
|
+
let z;
|
|
1221
|
+
t[27] !== a ? (z = a ? /* @__PURE__ */ l(Ve, {}) : "", t[27] = a, t[28] = z) : z = t[28];
|
|
1222
|
+
let Q;
|
|
1223
|
+
return t[29] !== R || t[30] !== O || t[31] !== $ || t[32] !== w || t[33] !== D || t[34] !== A || t[35] !== J || t[36] !== W || t[37] !== z ? (Q = /* @__PURE__ */ l(V, { direction: "column", justifyContent: "space-between", width: "100%", position: "relative", children: /* @__PURE__ */ P(Pe, { initialConfig: R, children: [
|
|
1224
|
+
b,
|
|
1225
|
+
O,
|
|
1226
|
+
$,
|
|
1227
|
+
w,
|
|
1228
|
+
D,
|
|
1229
|
+
U,
|
|
1230
|
+
A,
|
|
1231
|
+
J,
|
|
1232
|
+
W,
|
|
1233
|
+
z
|
|
1234
|
+
] }) }), t[29] = R, t[30] = O, t[31] = $, t[32] = w, t[33] = D, t[34] = A, t[35] = J, t[36] = W, t[37] = z, t[38] = Q) : Q = t[38], Q;
|
|
1235
|
+
}, Gr = yt(mr);
|
|
1236
|
+
function fr() {
|
|
1237
|
+
}
|
|
1238
|
+
function pr(n) {
|
|
1239
|
+
const e = C(5), {
|
|
1240
|
+
value: t,
|
|
1241
|
+
onUpdate: r
|
|
1242
|
+
} = n, [o] = L();
|
|
1243
|
+
let i, s;
|
|
1244
|
+
return e[0] !== o || e[1] !== r || e[2] !== t ? (i = () => {
|
|
1245
|
+
o && o.update(() => r(t), {
|
|
1246
|
+
tag: "history-merge"
|
|
1247
|
+
});
|
|
1248
|
+
}, s = [t, o, r], e[0] = o, e[1] = r, e[2] = t, e[3] = i, e[4] = s) : (i = e[3], s = e[4]), M(i, s), null;
|
|
1249
|
+
}
|
|
1250
|
+
class j extends G {
|
|
1251
|
+
__href;
|
|
1252
|
+
__label;
|
|
1253
|
+
static getType() {
|
|
1254
|
+
return "reference-link";
|
|
1255
|
+
}
|
|
1256
|
+
static clone(e) {
|
|
1257
|
+
return new j(e.__href, e.__label, e.__key);
|
|
1258
|
+
}
|
|
1259
|
+
constructor(e, t, r) {
|
|
1260
|
+
super(r), this.__href = e, this.__label = t;
|
|
1261
|
+
}
|
|
1262
|
+
createDOM(e, t) {
|
|
1263
|
+
return document.createElement("span");
|
|
1264
|
+
}
|
|
1265
|
+
updateDOM(e, t, r) {
|
|
1266
|
+
return !1;
|
|
1267
|
+
}
|
|
1268
|
+
getTextContent() {
|
|
1269
|
+
return `{{link('${this.__label ?? this.__href}')}}`;
|
|
1270
|
+
}
|
|
1271
|
+
exportJSON() {
|
|
1272
|
+
return {
|
|
1273
|
+
type: j.getType(),
|
|
1274
|
+
version: 1,
|
|
1275
|
+
href: this.__href,
|
|
1276
|
+
label: this.__label
|
|
1277
|
+
};
|
|
1278
|
+
}
|
|
1279
|
+
static importJSON(e) {
|
|
1280
|
+
return tt(e.href, e.label);
|
|
1281
|
+
}
|
|
1282
|
+
decorate(e, t) {
|
|
1283
|
+
const r = this.__href, i = r.split("/").pop() || "unknown", s = /^https?:\/\//i.test(r), a = /^#?\$PROJECT\//i.test(r);
|
|
1284
|
+
return /* @__PURE__ */ l(v, { width: "fit-content", display: "inline-block", children: /* @__PURE__ */ l(He, { fileName: i, onSelect: () => {
|
|
1285
|
+
if (s)
|
|
1286
|
+
window.open(r, "_blank", "noopener,noreferrer");
|
|
1287
|
+
else if (a) {
|
|
1288
|
+
const c = r.replace(/^#?\$PROJECT\//i, ""), d = new CustomEvent("ui:open-project-file", {
|
|
1289
|
+
detail: c
|
|
1290
|
+
});
|
|
1291
|
+
window.dispatchEvent(d);
|
|
1292
|
+
} else
|
|
1293
|
+
window.location.assign(r);
|
|
1294
|
+
} }) });
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
function tt(n, e) {
|
|
1298
|
+
return new j(n, e);
|
|
1299
|
+
}
|
|
1300
|
+
function _r(n) {
|
|
1301
|
+
return n instanceof j;
|
|
1302
|
+
}
|
|
1303
|
+
const ye = /\{\{\s*link\((['"])([^'"\s]+)\1\)\s*\}\}/, hr = {
|
|
1304
|
+
dependencies: [j],
|
|
1305
|
+
export: (n) => {
|
|
1306
|
+
if (_r(n)) {
|
|
1307
|
+
const e = n.__href, t = n.__label ?? e;
|
|
1308
|
+
return t ? `{{link('${t}')}}` : `{{link('${e}')}}`;
|
|
1309
|
+
}
|
|
1310
|
+
return null;
|
|
1311
|
+
},
|
|
1312
|
+
regExp: ye,
|
|
1313
|
+
importRegExp: ye,
|
|
1314
|
+
replace: (n, e) => {
|
|
1315
|
+
const t = e[2], o = /^(https?:\/\/|\/)/i.test(t) ? t : `#${t}`, i = t;
|
|
1316
|
+
n.replace(tt(o, i));
|
|
1317
|
+
},
|
|
1318
|
+
type: "text-match"
|
|
1319
|
+
}, ce = [...Ne, ...ze, Ue, Je, hr];
|
|
1320
|
+
function Yr(n) {
|
|
1321
|
+
const e = C(30), {
|
|
1322
|
+
debug: t,
|
|
1323
|
+
defaultState: r,
|
|
1324
|
+
isEditable: o,
|
|
1325
|
+
onChange: i
|
|
1326
|
+
} = n, s = t === void 0 ? !1 : t, a = r === void 0 ? "" : r, c = o === void 0 ? !1 : o;
|
|
1327
|
+
let d;
|
|
1328
|
+
e[0] !== a ? (d = fn(a), e[0] = a, e[1] = d) : d = e[1];
|
|
1329
|
+
const {
|
|
1330
|
+
frontmatter: p,
|
|
1331
|
+
body: u
|
|
1332
|
+
} = d, h = c && !!i;
|
|
1333
|
+
let m;
|
|
1334
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = [Oe, Te, H, ke, Se, Re, ae, K, q, B, j], e[2] = m) : m = e[2];
|
|
1335
|
+
let f;
|
|
1336
|
+
e[3] !== u ? (f = () => Ce(u, ce, void 0, !1), e[3] = u, e[4] = f) : f = e[4];
|
|
1337
|
+
let g;
|
|
1338
|
+
e[5] !== c || e[6] !== f ? (g = {
|
|
1339
|
+
namespace: "RICH_MESSAGE",
|
|
1340
|
+
nodes: m,
|
|
1341
|
+
editorState: f,
|
|
1342
|
+
onError: xr,
|
|
1343
|
+
editable: c,
|
|
1344
|
+
theme: ue
|
|
1345
|
+
}, e[5] = c, e[6] = f, e[7] = g) : g = e[7];
|
|
1346
|
+
const y = g;
|
|
1347
|
+
let E;
|
|
1348
|
+
e[8] !== u ? (E = /* @__PURE__ */ l(pr, { value: u, onUpdate: gr }), e[8] = u, e[9] = E) : E = e[9];
|
|
1349
|
+
let R, T, S, x, N;
|
|
1350
|
+
e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ l(Ot, {}), N = /* @__PURE__ */ l(kt, {}), R = /* @__PURE__ */ l(Ct, {}), T = /* @__PURE__ */ l(dn, {}), S = /* @__PURE__ */ l(rn, {}), e[10] = R, e[11] = T, e[12] = S, e[13] = x, e[14] = N) : (R = e[10], T = e[11], S = e[12], x = e[13], N = e[14]);
|
|
1351
|
+
let b;
|
|
1352
|
+
e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ l(De, { contentEditable: /* @__PURE__ */ l(qe, { fullWidth: !1 }), ErrorBoundary: Le }), e[15] = b) : b = e[15];
|
|
1353
|
+
let _;
|
|
1354
|
+
e[16] !== p || e[17] !== i || e[18] !== h ? (_ = h ? /* @__PURE__ */ l(Me, { ignoreSelectionChange: !0, ignoreHistoryMergeTagChange: !1, onChange: (D) => {
|
|
1355
|
+
D.read(() => {
|
|
1356
|
+
const U = we(), A = rt(ce, U);
|
|
1357
|
+
i?.(p + A);
|
|
1358
|
+
});
|
|
1359
|
+
} }) : null, e[16] = p, e[17] = i, e[18] = h, e[19] = _) : _ = e[19];
|
|
1360
|
+
let O;
|
|
1361
|
+
e[20] !== c ? (O = /* @__PURE__ */ l(Ke, { isEditable: c }), e[20] = c, e[21] = O) : O = e[21];
|
|
1362
|
+
let $;
|
|
1363
|
+
e[22] !== s ? ($ = s && /* @__PURE__ */ l(Ve, {}), e[22] = s, e[23] = $) : $ = e[23];
|
|
1364
|
+
let w;
|
|
1365
|
+
return e[24] !== y || e[25] !== _ || e[26] !== O || e[27] !== $ || e[28] !== E ? (w = /* @__PURE__ */ l(V, { className: "rich-text", "data-rich-message": "true", justifyContent: "space-between", width: "100%", maxWidth: "100%", height: "100%", position: "relative", direction: "column", overflow: "hidden", children: /* @__PURE__ */ P(Pe, { initialConfig: y, children: [
|
|
1366
|
+
E,
|
|
1367
|
+
x,
|
|
1368
|
+
N,
|
|
1369
|
+
R,
|
|
1370
|
+
T,
|
|
1371
|
+
S,
|
|
1372
|
+
b,
|
|
1373
|
+
_,
|
|
1374
|
+
O,
|
|
1375
|
+
$
|
|
1376
|
+
] }) }), e[24] = y, e[25] = _, e[26] = O, e[27] = $, e[28] = E, e[29] = w) : w = e[29], w;
|
|
1377
|
+
}
|
|
1378
|
+
function gr(n) {
|
|
1379
|
+
Ce(n, ce, void 0, !1);
|
|
1380
|
+
}
|
|
1381
|
+
function xr(n) {
|
|
1382
|
+
return console.error(n);
|
|
1383
|
+
}
|
|
1384
|
+
export {
|
|
1385
|
+
qe as C,
|
|
1386
|
+
Qt as D,
|
|
1387
|
+
rn as E,
|
|
1388
|
+
dn as I,
|
|
1389
|
+
Gr as P,
|
|
1390
|
+
Yr as R,
|
|
1391
|
+
Ke as T,
|
|
1392
|
+
Un as a,
|
|
1393
|
+
Kr as b,
|
|
1394
|
+
Vr as c,
|
|
1395
|
+
Ve as d,
|
|
1396
|
+
Xr as e,
|
|
1397
|
+
Zt as f,
|
|
1398
|
+
Ye as g,
|
|
1399
|
+
fn as s
|
|
1400
|
+
};
|
|
1401
|
+
//# sourceMappingURL=rich-message-CiA3ripk.js.map
|