@collabchron/notiq 1.1.9 → 1.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +281 -259
- package/dist/AICommandBarPlugin-TADJ3X2Y.mjs +12 -0
- package/dist/AIDialog-2WZUFWSC.mjs +325 -0
- package/dist/AudioComponent-CKLMLB5T.mjs +278 -0
- package/dist/CodeActionMenuPlugin-MRKY67ED.mjs +14 -0
- package/dist/CollaborationPlugin-TIZOQBUT.mjs +405 -0
- package/dist/CollaboratorsBar-TMKBOBJI.mjs +20 -0
- package/dist/CommentsPlugin-5M4RD6YO.mjs +19 -0
- package/dist/DynamicBlockComponent-2LOADZUX.mjs +221 -0
- package/dist/{EquationComponent-CB6DFIHV.mjs → EquationComponent-4NFG55NQ.mjs} +82 -46
- package/dist/ExcalidrawComponent-SIMURTCA.mjs +662 -0
- package/dist/ExcalidrawPlugin-2SGPIQ6U.mjs +14 -0
- package/dist/ExportPlugin-OKZOLBGS.mjs +42 -0
- package/dist/FileComponent-Y56MX5QD.mjs +200 -0
- package/dist/FloatingLinkEditorPlugin-MABB34L7.mjs +12 -0
- package/dist/FloatingTextFormatToolbarPlugin-SO5VON7Q.mjs +45 -0
- package/dist/HintComponet-ET7M2Q7S.mjs +288 -0
- package/dist/InlineCopilotPlugin-PNS5Y6OO.mjs +360 -0
- package/dist/{InlineImageComponent-UWIUWBHI.mjs → InlineImageComponent-FVTA4LXZ.mjs} +129 -99
- package/dist/MobileToolbar-JKP2MLQJ.mjs +984 -0
- package/dist/SlashCommand-2TNOOUBM.mjs +39 -0
- package/dist/StoryBuilderComponent-WQSNFPMM.mjs +816 -0
- package/dist/{TableCellActionMenuPlugin-PGK2K3VG.mjs → TableCellActionMenuPlugin-YWBA64J7.mjs} +328 -157
- package/dist/{TableHoverActionsPlugin-GJVE6VRW.mjs → TableHoverActionsPlugin-2EIXHEXN.mjs} +43 -36
- package/dist/{TemplatePlugin-ZD3QEVTI.mjs → TemplatePlugin-HNTPEXBB.mjs} +2 -2
- package/dist/ToolbarPlugin-IIAOU4P5.mjs +35 -0
- package/dist/VersionHistoryPlugin-23MAZB4G.mjs +371 -0
- package/dist/babel-RJXDAKDM.mjs +7287 -0
- package/dist/background-color-OZJCBYCT.mjs +425 -0
- package/dist/block-format-MTSIXWID.mjs +14 -0
- package/dist/chunk-2KESP7OU.mjs +809 -0
- package/dist/chunk-3AHNLIME.mjs +1701 -0
- package/dist/{chunk-GK35L7UY.mjs → chunk-3IILA3IP.mjs} +1 -1
- package/dist/chunk-3JN6QEJR.mjs +31 -0
- package/dist/{chunk-5BAKY5KN.mjs → chunk-43Z4Z2KD.mjs} +5 -8
- package/dist/{chunk-GXYD4VZM.mjs → chunk-4DVIYZVB.mjs} +1 -1
- package/dist/{chunk-7NZAPJ4G.mjs → chunk-4FFTOZGJ.mjs} +4 -3
- package/dist/chunk-4UMUPCDK.mjs +68 -0
- package/dist/{chunk-POGRR73N.mjs → chunk-5NRAXWYA.mjs} +4 -3
- package/dist/{chunk-PZSUSXQG.mjs → chunk-6D6QLRYR.mjs} +2 -2
- package/dist/chunk-6SRMKQSD.mjs +682 -0
- package/dist/{chunk-3CPBODXA.mjs → chunk-6UVNHT3T.mjs} +7 -27
- package/dist/{chunk-G53GLEAY.mjs → chunk-7QRJVZQY.mjs} +47 -22
- package/dist/chunk-ACV47ZKE.mjs +201 -0
- package/dist/{chunk-FSM26655.mjs → chunk-AMXRQ2TK.mjs} +4 -4
- package/dist/chunk-AYNKORDO.mjs +6 -0
- package/dist/{chunk-YUDCJRJM.mjs → chunk-BGV62GC2.mjs} +3 -2
- package/dist/{chunk-TCYK7DM7.mjs → chunk-CDAMHK63.mjs} +4 -3
- package/dist/{chunk-QHIQKMVN.mjs → chunk-D3IOUQFR.mjs} +125 -111
- package/dist/chunk-EEBA6OAH.mjs +59 -0
- package/dist/{chunk-YKC3SO4Z.mjs → chunk-EIZMKFHF.mjs} +1 -1
- package/dist/{chunk-4EXYCTGJ.mjs → chunk-EVPWKNE4.mjs} +3 -3
- package/dist/{chunk-K36V4SIW.mjs → chunk-FMJ7DGWP.mjs} +23 -20
- package/dist/{chunk-RBWZGXPF.mjs → chunk-FYLRS4BG.mjs} +5 -5
- package/dist/{chunk-N3WN46VL.mjs → chunk-GYYLZ3MQ.mjs} +23 -22
- package/dist/{chunk-WDG7J2DY.mjs → chunk-H3P47YXJ.mjs} +30 -19
- package/dist/chunk-HOZ4QRFV.mjs +536 -0
- package/dist/{chunk-5QSNIVIG.mjs → chunk-IAFCQV3Z.mjs} +94 -78
- package/dist/{chunk-64Z3FI7T.mjs → chunk-IIVB6JNE.mjs} +5 -4
- package/dist/chunk-IU2N42JJ.mjs +1763 -0
- package/dist/chunk-IUOUIDEQ.mjs +70 -0
- package/dist/chunk-J6ZUY5BY.mjs +202 -0
- package/dist/{chunk-YHPNOWFH.mjs → chunk-JHXDLYEV.mjs} +1 -1
- package/dist/{chunk-ZB5LZQKC.mjs → chunk-K5OAFEVY.mjs} +1 -1
- package/dist/chunk-KDA7ZYMJ.mjs +431 -0
- package/dist/{chunk-3JVFG7ER.mjs → chunk-KNW2CGIP.mjs} +7 -64
- package/dist/{chunk-4HBCVSE6.mjs → chunk-KXRLARGI.mjs} +1 -1
- package/dist/chunk-LAUAYRPC.mjs +944 -0
- package/dist/chunk-LLCP7NVE.mjs +449 -0
- package/dist/chunk-LU2XWLOE.mjs +219 -0
- package/dist/chunk-MPTE332I.mjs +787 -0
- package/dist/{chunk-456TN7IM.mjs → chunk-MTQZWJHR.mjs} +17 -16
- package/dist/{chunk-LGG4IUIA.mjs → chunk-MW6MAUY3.mjs} +2 -2
- package/dist/chunk-N3WTT2U6.mjs +21 -0
- package/dist/{chunk-GZPNVR7L.mjs → chunk-N6ILV6NF.mjs} +7 -6
- package/dist/{chunk-QEIFVK5M.mjs → chunk-NBE6FF6L.mjs} +4 -4
- package/dist/{chunk-BIU7WTLX.mjs → chunk-OE5JRLCN.mjs} +21 -18
- package/dist/chunk-OXWTZV3U.mjs +174 -0
- package/dist/{chunk-Z4EWP7BI.mjs → chunk-PD5K4AGP.mjs} +22 -23
- package/dist/chunk-PFH63ZU4.mjs +33 -0
- package/dist/chunk-PHRVYPVM.mjs +808 -0
- package/dist/chunk-R7WFRENU.mjs +262 -0
- package/dist/{chunk-4VWFVWYP.mjs → chunk-RAVYEEIC.mjs} +1 -1
- package/dist/chunk-RJQTA6HG.mjs +358 -0
- package/dist/{chunk-7VUMHWWL.mjs → chunk-SAOJHVPE.mjs} +5 -4
- package/dist/chunk-TC3IISJZ.mjs +408 -0
- package/dist/chunk-VGAX6YEY.mjs +399 -0
- package/dist/chunk-W6GAJXUS.mjs +334 -0
- package/dist/{chunk-U47ABU5Z.mjs → chunk-W6VQSFE5.mjs} +2 -2
- package/dist/chunk-WYCFGRFJ.mjs +118 -0
- package/dist/chunk-XAVQAXOJ.mjs +419 -0
- package/dist/chunk-XYDBUQ6Z.mjs +1978 -0
- package/dist/chunk-XYMXGU4T.mjs +129 -0
- package/dist/chunk-XYT6XM5S.mjs +496 -0
- package/dist/{chunk-HJPPNHYM.mjs → chunk-XZXGYNTY.mjs} +4 -3
- package/dist/{chunk-4GFXER7R.mjs → chunk-YDDBQZ77.mjs} +141 -89
- package/dist/{chunk-2FNEAMSP.mjs → chunk-YE7M2VKR.mjs} +52 -47
- package/dist/{chunk-3G37YKTV.mjs → chunk-YR2DD74C.mjs} +9 -8
- package/dist/{chunk-4MEDW3T6.mjs → chunk-YTLUQJE2.mjs} +5 -4
- package/dist/{chunk-DSFQHA7I.mjs → chunk-Z6JAFF55.mjs} +118 -295
- package/dist/chunk-ZFV2HGD3.mjs +143 -0
- package/dist/{chunk-77UA6HYR.mjs → chunk-ZKZ7MLSS.mjs} +1 -1
- package/dist/color-23323E3B.mjs +13 -0
- package/dist/components/canvas/CanvasMode.d.ts +18 -0
- package/dist/components/editor/Core.d.ts +6 -0
- package/dist/components/editor/index.d.ts +27 -0
- package/dist/components/editor/lexical-on-change.d.ts +1 -0
- package/dist/components/editor/nodes/AudioNode/AudioComponent.d.ts +15 -0
- package/dist/components/editor/nodes/AudioNode/index.d.ts +36 -0
- package/dist/components/editor/nodes/CollapsibleNode/CollapsibleContainerNode.d.ts +22 -0
- package/dist/components/editor/nodes/CollapsibleNode/CollapsibleContentNode.d.ts +18 -0
- package/dist/components/editor/nodes/CollapsibleNode/CollapsibleTitleNode.d.ts +19 -0
- package/dist/components/editor/nodes/DynamicBlockNode/DynamicBlockComponent.d.ts +7 -0
- package/dist/components/editor/nodes/DynamicBlockNode/DynamicBlockNode.d.ts +49 -0
- package/dist/components/editor/nodes/EquationNode/EquationComponent.d.ts +16 -0
- package/dist/components/editor/nodes/EquationNode/EquationNode.d.ts +33 -0
- package/dist/components/editor/nodes/ExcalidrawNode/ExcalidrawComponent.d.ts +15 -0
- package/dist/components/editor/nodes/ExcalidrawNode/ExcalidrawImage.d.ts +57 -0
- package/dist/components/editor/nodes/ExcalidrawNode/ImageResizer.d.ts +24 -0
- package/dist/components/editor/nodes/ExcalidrawNode/index.d.ts +39 -0
- package/dist/components/editor/nodes/FigmaNode/FigmaNode.d.ts +27 -0
- package/dist/components/editor/nodes/FileNode/FileComponent.d.ts +16 -0
- package/dist/components/editor/nodes/FileNode/index.d.ts +39 -0
- package/dist/components/editor/nodes/Hint/HintComponet.d.ts +20 -0
- package/dist/components/editor/nodes/Hint/index.d.ts +33 -0
- package/dist/components/editor/nodes/ImageNode/index.d.ts +62 -0
- package/dist/components/editor/nodes/InlineImageNode/InlineImageComponent.d.ts +25 -0
- package/dist/components/editor/nodes/InlineImageNode/InlineImageNode.d.ts +66 -0
- package/dist/components/editor/nodes/LayoutNode/LayoutContainerNode.d.ts +31 -0
- package/dist/components/editor/nodes/LayoutNode/LayoutItemNode.d.ts +21 -0
- package/dist/components/editor/nodes/PollNode/index.d.ts +34 -0
- package/dist/components/editor/nodes/Stepper/index.d.ts +66 -0
- package/dist/components/editor/nodes/StoryBuilderNode/StoryBuilderComponent.d.ts +10 -0
- package/dist/components/editor/nodes/StoryBuilderNode/StoryBuilderNode.d.ts +59 -0
- package/dist/components/editor/nodes/TweetNode/index.d.ts +21 -0
- package/dist/components/editor/nodes/index.d.ts +4 -0
- package/dist/components/editor/plugins/AICommandBarPlugin/index.d.ts +7 -0
- package/dist/components/editor/plugins/AudioPlugin/index.d.ts +1 -0
- package/dist/components/editor/plugins/AutoEmbedPlugin/index.d.ts +19 -0
- package/dist/components/editor/plugins/AutoLinkPlugin/index.d.ts +1 -0
- package/dist/components/editor/plugins/CodeActionMenuPlugin/components/CopyButton.d.ts +8 -0
- package/dist/components/editor/plugins/CodeActionMenuPlugin/components/PrettierButton.d.ts +9 -0
- package/dist/components/editor/plugins/CodeActionMenuPlugin/index.d.ts +4 -0
- package/dist/components/editor/plugins/CodeActionMenuPlugin/utils.d.ts +1 -0
- package/dist/components/editor/plugins/CodeHighlightPlugin/index.d.ts +11 -0
- package/dist/components/editor/plugins/CollaborationPlugin/CollaboratorsBar.d.ts +9 -0
- package/dist/components/editor/plugins/CollaborationPlugin/index.d.ts +8 -0
- package/dist/components/editor/plugins/CollapsiblePlugin/index.d.ts +4 -0
- package/dist/components/editor/plugins/CommentsPlugin/CommentThreadItem.d.ts +7 -0
- package/dist/components/editor/plugins/CommentsPlugin/CommentsSidebar.d.ts +2 -0
- package/dist/components/editor/plugins/CommentsPlugin/MentionsAutocomplete.d.ts +22 -0
- package/dist/components/editor/plugins/CommentsPlugin/NewCommentDialog.d.ts +2 -0
- package/dist/components/editor/plugins/CommentsPlugin/index.d.ts +5 -0
- package/dist/components/editor/plugins/ContentAnalyticsPlugin/index.d.ts +1 -0
- package/dist/components/editor/plugins/DragDropPastePlugin/index.d.ts +1 -0
- package/dist/components/editor/plugins/DraggableBlockPlugin/index.d.ts +5 -0
- package/dist/components/editor/plugins/DynamicBlockPlugin/index.d.ts +7 -0
- package/dist/components/editor/plugins/EquationsPlugin/index.d.ts +20 -0
- package/dist/components/editor/plugins/ExcalidrawPlugin/index.d.ts +5 -0
- package/dist/components/editor/plugins/ExportPlugin/ImportExportModal.d.ts +9 -0
- package/dist/components/editor/plugins/ExportPlugin/index.d.ts +28 -0
- package/dist/components/editor/plugins/FigmaPlugin/index.d.ts +11 -0
- package/dist/components/editor/plugins/FilePlugin/index.d.ts +1 -0
- package/dist/components/editor/plugins/FloatingLinkEditorPlugin/index.d.ts +6 -0
- package/dist/components/editor/plugins/FloatingTextFormatToolbarPlugin/index.d.ts +6 -0
- package/dist/components/editor/plugins/ImagesPlugin/index.d.ts +14 -0
- package/dist/components/editor/plugins/InlineCopilotPlugin/index.d.ts +32 -0
- package/dist/components/editor/plugins/InlineImagePlugin/index.d.ts +16 -0
- package/dist/components/editor/plugins/LayoutPlugin/index.d.ts +14 -0
- package/dist/components/editor/plugins/LinkPlugin/index.d.ts +13 -0
- package/dist/components/editor/plugins/LinkWithMetaData/index.d.ts +46 -0
- package/dist/components/editor/plugins/MarkdownShortcutPlugin/index.d.ts +2 -0
- package/dist/components/editor/plugins/MarkdownTransformers/index.d.ts +12 -0
- package/dist/components/editor/plugins/PollPlugin/index.d.ts +4 -0
- package/dist/components/editor/plugins/ShortcutsPlugin/index.d.ts +13 -0
- package/dist/components/editor/plugins/ShortcutsPlugin/shortcuts.d.ts +58 -0
- package/dist/components/editor/plugins/SlashCommand/index.d.ts +25 -0
- package/dist/components/editor/plugins/SpeechToTextPlugin/index.d.ts +5 -0
- package/dist/components/editor/plugins/StoryBuilderPlugin/index.d.ts +7 -0
- package/dist/components/editor/plugins/TabFocusPlugin/index.d.ts +1 -0
- package/dist/components/editor/plugins/TableCellActionMenuPlugin/index.d.ts +5 -0
- package/dist/components/editor/plugins/TableCellResizer/index.d.ts +2 -0
- package/dist/components/editor/plugins/TableHoverActionsPlugin/index.d.ts +4 -0
- package/dist/components/editor/plugins/TablePlugin/index.d.ts +27 -0
- package/dist/components/editor/plugins/TemplatePlugin/TemplateDialog.d.ts +1 -0
- package/dist/components/editor/plugins/TemplatePlugin/index.d.ts +3 -0
- package/dist/components/editor/plugins/ToolbarPlugin/MobileToolbar.d.ts +10 -0
- package/dist/components/editor/plugins/ToolbarPlugin/index.d.ts +11 -0
- package/dist/components/editor/plugins/TwitterPlugin/index.d.ts +4 -0
- package/dist/components/editor/plugins/VersionHistoryPlugin/NameVersionModal.d.ts +2 -0
- package/dist/components/editor/plugins/VersionHistoryPlugin/VersionHistoryDrawer.d.ts +2 -0
- package/dist/components/editor/plugins/VersionHistoryPlugin/index.d.ts +2 -0
- package/dist/components/editor/plugins/YouTubeNode/index.d.ts +22 -0
- package/dist/components/editor/plugins/YouTubePlugin/index.d.ts +11 -0
- package/dist/components/editor/templates/data.d.ts +7 -0
- package/dist/components/editor/themes/editor-theme.d.ts +3 -0
- package/dist/components/editor/utils/ai.d.ts +27 -0
- package/dist/components/editor/utils/canUseDOM.d.ts +8 -0
- package/dist/components/editor/utils/codeLanguages.d.ts +3 -0
- package/dist/components/editor/utils/diffUtils.d.ts +10 -0
- package/dist/components/editor/utils/editorFormatting.d.ts +26 -0
- package/dist/components/editor/utils/environment.d.ts +17 -0
- package/dist/components/editor/utils/extract-data.d.ts +8 -0
- package/dist/components/editor/utils/getAllLexicalChildren.d.ts +6 -0
- package/dist/components/editor/utils/getDOMRangeRect.d.ts +8 -0
- package/dist/components/editor/utils/getSelectedNode.d.ts +2 -0
- package/dist/components/editor/utils/gif.d.ts +7 -0
- package/dist/components/editor/utils/importUtils.d.ts +27 -0
- package/dist/components/editor/utils/invariant.d.ts +1 -0
- package/dist/components/editor/utils/markdownTransformers.d.ts +20 -0
- package/dist/components/editor/utils/setFloatingElemPosition.d.ts +1 -0
- package/dist/components/editor/utils/setFloatingElemPositionForLinkEditor.d.ts +1 -0
- package/dist/components/editor/utils/setNodePlaceholderFromSelection/getNodePlaceholder.d.ts +2 -0
- package/dist/components/editor/utils/setNodePlaceholderFromSelection/setNodePlaceholderFromSelection.d.ts +2 -0
- package/dist/components/editor/utils/setNodePlaceholderFromSelection/setPlaceholderOnSelection.d.ts +5 -0
- package/dist/components/editor/utils/url.d.ts +11 -0
- package/dist/components/editor/utils/useLayoutEffect.d.ts +3 -0
- package/dist/components/providers/AIContext.d.ts +21 -0
- package/dist/components/providers/CollabContext.d.ts +92 -0
- package/dist/components/providers/CommentsContext.d.ts +48 -0
- package/dist/components/providers/QueryProvider.d.ts +5 -0
- package/dist/components/providers/SharedHistoryContext.d.ts +11 -0
- package/dist/components/providers/ToolbarContext.d.ts +61 -0
- package/dist/components/providers/UploadContext.d.ts +29 -0
- package/dist/components/providers/VersionHistoryContext.d.ts +33 -0
- package/dist/components/providers/theme-provider.d.ts +3 -0
- package/dist/components/theme/ModeToggle.d.ts +2 -0
- package/dist/components/ui/ContentEditable.d.ts +15 -0
- package/dist/components/ui/FileInput.d.ts +16 -0
- package/dist/components/ui/Modal.d.ts +15 -0
- package/dist/components/ui/Select.d.ts +14 -0
- package/dist/components/ui/TextInput.d.ts +19 -0
- package/dist/components/ui/accordion.d.ts +7 -0
- package/dist/components/ui/ai/AIDialog.d.ts +9 -0
- package/dist/components/ui/ai/ai-button.d.ts +5 -0
- package/dist/components/ui/ai/border.d.ts +8 -0
- package/dist/components/ui/ai/placeholder-input-vanish.d.ts +6 -0
- package/dist/components/ui/badge.d.ts +9 -0
- package/dist/components/ui/button.d.ts +12 -0
- package/dist/components/ui/card.d.ts +8 -0
- package/dist/components/ui/checkbox.d.ts +4 -0
- package/dist/components/ui/command.d.ts +80 -0
- package/dist/components/ui/dialog/Dialog.d.ts +16 -0
- package/dist/components/ui/dialog.d.ts +19 -0
- package/dist/components/ui/drop-downs/background-color.d.ts +12 -0
- package/dist/components/ui/drop-downs/block-format.d.ts +25 -0
- package/dist/components/ui/drop-downs/code.d.ts +6 -0
- package/dist/components/ui/drop-downs/codeTheme.d.ts +8 -0
- package/dist/components/ui/drop-downs/color.d.ts +12 -0
- package/dist/components/ui/drop-downs/font-size.d.ts +10 -0
- package/dist/components/ui/drop-downs/font.d.ts +11 -0
- package/dist/components/ui/drop-downs/index.d.ts +24 -0
- package/dist/components/ui/drop-downs/insert-node.d.ts +6 -0
- package/dist/components/ui/drop-downs/table-dropdown.d.ts +10 -0
- package/dist/components/ui/drop-downs/text-align.d.ts +8 -0
- package/dist/components/ui/drop-downs/text-format.d.ts +11 -0
- package/dist/components/ui/dropdown-menu.d.ts +27 -0
- package/dist/components/ui/equation/EquationEditor.d.ts +14 -0
- package/dist/components/ui/equation/KatexEquationAlterer.d.ts +14 -0
- package/dist/components/ui/equation/KatexRenderer.d.ts +13 -0
- package/dist/components/ui/excalidraw/ExcalidrawModal.d.ts +48 -0
- package/dist/components/ui/excalidraw/Modal.d.ts +16 -0
- package/dist/components/ui/hover-card.d.ts +6 -0
- package/dist/components/ui/icons/brand-icons.d.ts +5 -0
- package/dist/components/ui/image/error-image.d.ts +2 -0
- package/dist/components/ui/image/file-upload.d.ts +8 -0
- package/dist/components/ui/image/image-resizer.d.ts +10 -0
- package/dist/components/ui/image/image-toolbar.d.ts +8 -0
- package/dist/components/ui/image/index.d.ts +16 -0
- package/dist/components/ui/image/lazy-image.d.ts +10 -0
- package/dist/components/ui/image/lazy-video.d.ts +11 -0
- package/dist/components/ui/input.d.ts +3 -0
- package/dist/components/ui/label.d.ts +5 -0
- package/dist/components/ui/models/custom-dialog.d.ts +58 -0
- package/dist/components/ui/models/insert-audio.d.ts +7 -0
- package/dist/components/ui/models/insert-file.d.ts +7 -0
- package/dist/components/ui/models/insert-gif.d.ts +7 -0
- package/dist/components/ui/models/insert-image.d.ts +6 -0
- package/dist/components/ui/models/insert-poll.d.ts +5 -0
- package/dist/components/ui/models/insert-table.d.ts +6 -0
- package/dist/components/ui/models/use-model.d.ts +6 -0
- package/dist/components/ui/poll/poll-component.d.ts +8 -0
- package/dist/components/ui/popover.d.ts +7 -0
- package/dist/components/ui/progress.d.ts +4 -0
- package/dist/components/ui/scroll-area.d.ts +5 -0
- package/dist/components/ui/separator.d.ts +4 -0
- package/dist/components/ui/skeleton.d.ts +2 -0
- package/dist/components/ui/sonner.d.ts +4 -0
- package/dist/components/ui/stepper/step.d.ts +11 -0
- package/dist/components/ui/stepper/stepper.d.ts +6 -0
- package/dist/components/ui/tabs.d.ts +7 -0
- package/dist/components/ui/textarea.d.ts +3 -0
- package/dist/components/ui/toggle.d.ts +14 -0
- package/dist/components/ui/tooltip.d.ts +7 -0
- package/dist/components/ui/write/text-format-floating.d.ts +27 -0
- package/dist/components/ui/write/text-format-floting-toolbar.d.ts +26 -0
- package/dist/core/chain.d.ts +4 -0
- package/dist/core/editor.d.ts +42 -0
- package/dist/core/extension.d.ts +20 -0
- package/dist/core/extensions/blocks-kit.d.ts +14 -0
- package/dist/core/extensions/copilot-and-collab.d.ts +10 -0
- package/dist/core/extensions/nodes-and-marks.d.ts +36 -0
- package/dist/core/index.d.ts +9 -0
- package/dist/core/react/BubbleMenu.d.ts +13 -0
- package/dist/core/react/FloatingMenu.d.ts +12 -0
- package/dist/core/react/NotiqContent.d.ts +11 -0
- package/dist/core/react/NotiqEditor.d.ts +29 -0
- package/dist/core/react/context.d.ts +15 -0
- package/dist/core/react/index.d.ts +8 -0
- package/dist/core/react/useNotiq.d.ts +16 -0
- package/dist/core/types.d.ts +88 -0
- package/dist/core.d.ts +1 -0
- package/dist/core.js +67719 -0
- package/dist/core.mjs +132 -0
- package/dist/estree-QRALCFII.mjs +5029 -0
- package/dist/font-IJKFR4BM.mjs +12 -0
- package/dist/font-size-GTL6UVQL.mjs +15 -0
- package/dist/hooks/instructions-messages.d.ts +11 -0
- package/dist/hooks/use-mobile.d.ts +1 -0
- package/dist/hooks/useModal.d.ts +12 -0
- package/dist/hooks/useReport.d.ts +8 -0
- package/dist/hooks/useResizeObservert.d.ts +1 -0
- package/dist/html-CE2S5FIJ.mjs +3185 -0
- package/dist/{image-2PJIAYAT.mjs → image-TPW7PZZK.mjs} +360 -325
- package/dist/index.d.ts +13 -145
- package/dist/index.js +61780 -44629
- package/dist/index.mjs +1157 -736
- package/dist/insert-audio-C66RZRKY.mjs +180 -0
- package/dist/insert-file-3DTGRO7W.mjs +190 -0
- package/dist/insert-gif-FIMCCBAI.mjs +112 -0
- package/dist/insert-image-CZV6HWQZ.mjs +348 -0
- package/dist/insert-node-MA3FXEYN.mjs +245 -0
- package/dist/insert-poll-6BCIFY5G.mjs +36 -0
- package/dist/insert-table-ZRJP6X52.mjs +70 -0
- package/dist/lib/edgestore.d.ts +2 -0
- package/dist/lib/index.d.ts +0 -0
- package/dist/lib/pinecone-client.d.ts +3 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/markdown-GMCB4RDA.mjs +6753 -0
- package/dist/{poll-component-2R4MDLHS.mjs → poll-component-VHMM5KKZ.mjs} +126 -95
- package/dist/{postcss-ONF3VDIM.mjs → postcss-GH4QXSB5.mjs} +1879 -1697
- package/dist/react.d.ts +1 -0
- package/dist/react.js +67651 -0
- package/dist/react.mjs +61 -0
- package/dist/standalone-A6VDOPCZ.mjs +2506 -0
- package/dist/stepper-4AO5XMO7.mjs +356 -0
- package/dist/styles/notiq.css +2 -2
- package/dist/styles/tailwind-plugin.d.ts +4 -0
- package/dist/table-dropdown-4VCRSQB6.mjs +391 -0
- package/dist/{text-align-VLECWO4H.mjs → text-align-CSDLJUDA.mjs} +24 -21
- package/dist/text-format-6L5N3CHZ.mjs +15 -0
- package/dist/typescript-CGC67LRI.mjs +13392 -0
- package/dist/utils/docSerialization.d.ts +10 -0
- package/dist/utils/emoji-list.d.ts +27 -0
- package/dist/utils/getDOMRangeRect.d.ts +8 -0
- package/dist/utils/getSelectedNode.d.ts +2 -0
- package/dist/utils/getThemeSelector.d.ts +9 -0
- package/dist/utils/html.d.ts +9 -0
- package/dist/utils/htmlExport.d.ts +9 -0
- package/dist/utils/isMobileWidth.d.ts +7 -0
- package/dist/utils/joinClasses.d.ts +8 -0
- package/dist/utils/setFloatingElemPosition.d.ts +1 -0
- package/dist/utils/setFloatingElemPositionForLinkEditor.d.ts +1 -0
- package/dist/utils/swipe.d.ts +11 -0
- package/dist/utils/url.d.ts +9 -0
- package/package.json +128 -105
- package/src/styles/notiq.css +1315 -1057
- package/dist/CodeActionMenuPlugin-EINOY4U4.mjs +0 -15
- package/dist/DynamicBlockComponent-NRQJ4WW4.mjs +0 -161
- package/dist/ExcalidrawComponent-LUZJNFWV.mjs +0 -528
- package/dist/ExcalidrawPlugin-HC2L43YG.mjs +0 -14
- package/dist/ExportPlugin-V2RLM63S.mjs +0 -11
- package/dist/FloatingLinkEditorPlugin-TRTCMSP4.mjs +0 -12
- package/dist/FloatingTextFormatToolbarPlugin-ENECEZSX.mjs +0 -30
- package/dist/HintComponet-BRL6EAMS.mjs +0 -217
- package/dist/MobileToolbar-BOOZAMQE.mjs +0 -268
- package/dist/SlashCommand-FHEWHFZU.mjs +0 -28
- package/dist/StoryBuilderComponent-JGDBM5JU.mjs +0 -562
- package/dist/ToolbarPlugin-2VP7FDWD.mjs +0 -1547
- package/dist/babel-JZ2EV6AX.mjs +0 -7233
- package/dist/background-color-XZTYLGO2.mjs +0 -362
- package/dist/block-format-YJCV2DIY.mjs +0 -15
- package/dist/chunk-77KXU36M.mjs +0 -64
- package/dist/chunk-AMMKBSST.mjs +0 -1256
- package/dist/chunk-EGMI62PP.mjs +0 -83
- package/dist/chunk-JXDPPUJI.mjs +0 -52
- package/dist/chunk-KJ6AJ44Q.mjs +0 -128
- package/dist/chunk-NOJDE3CE.mjs +0 -1906
- package/dist/chunk-NZXC6FGU.mjs +0 -214
- package/dist/chunk-PBD6LMLC.mjs +0 -366
- package/dist/chunk-TTHQCW5F.mjs +0 -47
- package/dist/chunk-V2NIZOSQ.mjs +0 -538
- package/dist/chunk-WAK5JGNJ.mjs +0 -315
- package/dist/chunk-YMBXLRW5.mjs +0 -374
- package/dist/chunk-YPHOEJ46.mjs +0 -64
- package/dist/chunk-ZJRKATOJ.mjs +0 -65
- package/dist/color-BPKOPQKN.mjs +0 -12
- package/dist/estree-XC56IUFX.mjs +0 -4414
- package/dist/font-FEZ3GKSF.mjs +0 -13
- package/dist/font-size-EK775WRH.mjs +0 -15
- package/dist/html-S3ACX7NI.mjs +0 -2738
- package/dist/index.d.mts +0 -145
- package/dist/insert-gif-SAIDYURE.mjs +0 -100
- package/dist/insert-image-U3RJN3OW.mjs +0 -259
- package/dist/insert-node-WXW4ZER4.mjs +0 -201
- package/dist/insert-poll-HCPM7MO6.mjs +0 -33
- package/dist/insert-table-24XYUS2W.mjs +0 -66
- package/dist/markdown-SNVBOSRA.mjs +0 -3487
- package/dist/standalone-EOIALU3M.mjs +0 -2373
- package/dist/stepper-JDEE26TX.mjs +0 -304
- package/dist/text-format-BG5WOOPZ.mjs +0 -16
- package/dist/typescript-AMPI6OVS.mjs +0 -13135
|
@@ -1,47 +1,53 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
CollapsibleContainerNode,
|
|
3
|
+
CollapsibleContentNode,
|
|
4
|
+
CollapsibleTitleNode
|
|
5
|
+
} from "./chunk-4DVIYZVB.mjs";
|
|
4
6
|
import {
|
|
5
|
-
FigmaNode,
|
|
6
7
|
LayoutContainerNode,
|
|
7
|
-
LayoutItemNode
|
|
8
|
+
LayoutItemNode
|
|
9
|
+
} from "./chunk-W6GAJXUS.mjs";
|
|
10
|
+
import {
|
|
11
|
+
InlineImageNode,
|
|
12
|
+
StepperNode
|
|
13
|
+
} from "./chunk-2KESP7OU.mjs";
|
|
14
|
+
import {
|
|
15
|
+
FigmaNode,
|
|
8
16
|
TweetNode,
|
|
9
17
|
YouTubeNode
|
|
10
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-VGAX6YEY.mjs";
|
|
11
19
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
20
|
+
PollNode
|
|
21
|
+
} from "./chunk-N6ILV6NF.mjs";
|
|
14
22
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./chunk-
|
|
23
|
+
StoryBuilderNode
|
|
24
|
+
} from "./chunk-YTLUQJE2.mjs";
|
|
17
25
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
CollapsibleTitleNode
|
|
21
|
-
} from "./chunk-GXYD4VZM.mjs";
|
|
26
|
+
DynamicBlockNode
|
|
27
|
+
} from "./chunk-43Z4Z2KD.mjs";
|
|
22
28
|
import {
|
|
23
|
-
|
|
24
|
-
} from "./chunk-
|
|
29
|
+
AudioNode
|
|
30
|
+
} from "./chunk-XYMXGU4T.mjs";
|
|
25
31
|
import {
|
|
26
|
-
|
|
27
|
-
} from "./chunk-
|
|
32
|
+
FileNode
|
|
33
|
+
} from "./chunk-ZFV2HGD3.mjs";
|
|
28
34
|
import {
|
|
29
|
-
|
|
30
|
-
} from "./chunk-
|
|
35
|
+
ImageNode
|
|
36
|
+
} from "./chunk-GYYLZ3MQ.mjs";
|
|
31
37
|
import {
|
|
32
38
|
ExcalidrawNode
|
|
33
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-XZXGYNTY.mjs";
|
|
34
40
|
import {
|
|
35
41
|
EquationNode
|
|
36
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-KNW2CGIP.mjs";
|
|
37
43
|
import {
|
|
38
|
-
|
|
39
|
-
} from "./chunk-
|
|
44
|
+
Hint
|
|
45
|
+
} from "./chunk-7QRJVZQY.mjs";
|
|
40
46
|
import {
|
|
41
47
|
__spreadProps,
|
|
42
48
|
__spreadValues,
|
|
43
49
|
init_react_shim
|
|
44
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-WYCFGRFJ.mjs";
|
|
45
51
|
|
|
46
52
|
// src/components/editor/plugins/LinkWithMetaData/index.tsx
|
|
47
53
|
init_react_shim();
|
|
@@ -225,65 +231,6 @@ function LinkWithMetaDataPlugin() {
|
|
|
225
231
|
return null;
|
|
226
232
|
}
|
|
227
233
|
|
|
228
|
-
// src/components/editor/plugins/AutoLinkPlugin/index.tsx
|
|
229
|
-
init_react_shim();
|
|
230
|
-
import { useLexicalComposerContext as useLexicalComposerContext2 } from "@lexical/react/LexicalComposerContext";
|
|
231
|
-
import { useEffect as useEffect2 } from "react";
|
|
232
|
-
import { $getSelection as $getSelection2, $isRangeSelection as $isRangeSelection2 } from "lexical";
|
|
233
|
-
import { $isCodeHighlightNode } from "@lexical/code";
|
|
234
|
-
var URL_REGEX = new RegExp("((https?:\\/\\/(www\\.)?)|(www\\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\\.[a-zA-Z0-9()]{1,6}\\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)(?<![-.+():%])");
|
|
235
|
-
function LexicalAutoLinkPlugin() {
|
|
236
|
-
const [editor] = useLexicalComposerContext2();
|
|
237
|
-
useEffect2(() => {
|
|
238
|
-
const handlePaste = (event) => {
|
|
239
|
-
var _a;
|
|
240
|
-
const pastedText = (_a = event.clipboardData) == null ? void 0 : _a.getData("text/plain");
|
|
241
|
-
if (pastedText && URL_REGEX.test(pastedText)) {
|
|
242
|
-
event.preventDefault();
|
|
243
|
-
pastedText.split(" ").map((TEXT) => {
|
|
244
|
-
if (URL_REGEX.test(TEXT)) {
|
|
245
|
-
editor.update(() => {
|
|
246
|
-
const selection = $getSelection2();
|
|
247
|
-
if ($isRangeSelection2(selection)) {
|
|
248
|
-
const node = selection.anchor.getNode();
|
|
249
|
-
if (!$isCodeHighlightNode(node)) {
|
|
250
|
-
if (node && node.getTextContent() === TEXT) {
|
|
251
|
-
node.remove();
|
|
252
|
-
}
|
|
253
|
-
editor.dispatchCommand(TOGGLE_LINK_COMMAND_LinkWithMetaDataNode, TEXT);
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
});
|
|
257
|
-
}
|
|
258
|
-
});
|
|
259
|
-
}
|
|
260
|
-
};
|
|
261
|
-
const rootElement = editor.getRootElement();
|
|
262
|
-
if (rootElement) {
|
|
263
|
-
rootElement.addEventListener("paste", handlePaste);
|
|
264
|
-
}
|
|
265
|
-
return () => {
|
|
266
|
-
if (rootElement) {
|
|
267
|
-
rootElement.removeEventListener("paste", handlePaste);
|
|
268
|
-
}
|
|
269
|
-
};
|
|
270
|
-
}, [editor]);
|
|
271
|
-
return null;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
// src/components/editor/plugins/CodeHighlightPlugin/index.ts
|
|
275
|
-
init_react_shim();
|
|
276
|
-
import { registerCodeHighlighting } from "@lexical/code";
|
|
277
|
-
import { useLexicalComposerContext as useLexicalComposerContext3 } from "@lexical/react/LexicalComposerContext";
|
|
278
|
-
import { useEffect as useEffect3 } from "react";
|
|
279
|
-
function CodeHighlightPlugin() {
|
|
280
|
-
const [editor] = useLexicalComposerContext3();
|
|
281
|
-
useEffect3(() => {
|
|
282
|
-
return registerCodeHighlighting(editor);
|
|
283
|
-
}, [editor]);
|
|
284
|
-
return null;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
234
|
// src/components/editor/nodes/index.ts
|
|
288
235
|
init_react_shim();
|
|
289
236
|
import { CodeHighlightNode, CodeNode } from "@lexical/code";
|
|
@@ -326,7 +273,9 @@ var nodes = [
|
|
|
326
273
|
FigmaNode,
|
|
327
274
|
EquationNode,
|
|
328
275
|
StoryBuilderNode,
|
|
329
|
-
DynamicBlockNode
|
|
276
|
+
DynamicBlockNode,
|
|
277
|
+
AudioNode,
|
|
278
|
+
FileNode
|
|
330
279
|
];
|
|
331
280
|
var nestedNodes = [
|
|
332
281
|
HeadingNode,
|
|
@@ -336,7 +285,6 @@ var nestedNodes = [
|
|
|
336
285
|
CodeHighlightNode,
|
|
337
286
|
QuoteNode,
|
|
338
287
|
CodeNode,
|
|
339
|
-
StepperNode,
|
|
340
288
|
LinkWithMetaDataNode,
|
|
341
289
|
ImageNode,
|
|
342
290
|
InlineImageNode,
|
|
@@ -344,14 +292,118 @@ var nestedNodes = [
|
|
|
344
292
|
FigmaNode,
|
|
345
293
|
EquationNode,
|
|
346
294
|
StoryBuilderNode,
|
|
347
|
-
DynamicBlockNode
|
|
295
|
+
DynamicBlockNode,
|
|
296
|
+
AudioNode,
|
|
297
|
+
FileNode
|
|
348
298
|
];
|
|
349
299
|
var nodes_default = nodes;
|
|
350
300
|
|
|
301
|
+
// src/components/editor/plugins/AutoLinkPlugin/index.tsx
|
|
302
|
+
init_react_shim();
|
|
303
|
+
import { useLexicalComposerContext as useLexicalComposerContext2 } from "@lexical/react/LexicalComposerContext";
|
|
304
|
+
import { useEffect as useEffect2 } from "react";
|
|
305
|
+
import { $getSelection as $getSelection2, $isRangeSelection as $isRangeSelection2 } from "lexical";
|
|
306
|
+
import { $isCodeHighlightNode } from "@lexical/code";
|
|
307
|
+
var URL_REGEX = new RegExp("((https?:\\/\\/(www\\.)?)|(www\\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\\.[a-zA-Z0-9()]{1,6}\\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)(?<![-.+():%])");
|
|
308
|
+
function LexicalAutoLinkPlugin() {
|
|
309
|
+
const [editor] = useLexicalComposerContext2();
|
|
310
|
+
useEffect2(() => {
|
|
311
|
+
const handlePaste = (event) => {
|
|
312
|
+
var _a;
|
|
313
|
+
const pastedText = (_a = event.clipboardData) == null ? void 0 : _a.getData("text/plain");
|
|
314
|
+
if (pastedText && URL_REGEX.test(pastedText)) {
|
|
315
|
+
event.preventDefault();
|
|
316
|
+
pastedText.split(" ").map((TEXT) => {
|
|
317
|
+
if (URL_REGEX.test(TEXT)) {
|
|
318
|
+
editor.update(() => {
|
|
319
|
+
const selection = $getSelection2();
|
|
320
|
+
if ($isRangeSelection2(selection)) {
|
|
321
|
+
const node = selection.anchor.getNode();
|
|
322
|
+
if (!$isCodeHighlightNode(node)) {
|
|
323
|
+
if (node && node.getTextContent() === TEXT) {
|
|
324
|
+
node.remove();
|
|
325
|
+
}
|
|
326
|
+
editor.dispatchCommand(TOGGLE_LINK_COMMAND_LinkWithMetaDataNode, TEXT);
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
};
|
|
334
|
+
const rootElement = editor.getRootElement();
|
|
335
|
+
if (rootElement) {
|
|
336
|
+
rootElement.addEventListener("paste", handlePaste);
|
|
337
|
+
}
|
|
338
|
+
return () => {
|
|
339
|
+
if (rootElement) {
|
|
340
|
+
rootElement.removeEventListener("paste", handlePaste);
|
|
341
|
+
}
|
|
342
|
+
};
|
|
343
|
+
}, [editor]);
|
|
344
|
+
return null;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
// src/components/editor/plugins/CodeHighlightPlugin/index.ts
|
|
348
|
+
init_react_shim();
|
|
349
|
+
import { CodeNode as CodeNode2 } from "@lexical/code";
|
|
350
|
+
import {
|
|
351
|
+
loadCodeTheme,
|
|
352
|
+
registerCodeHighlighting,
|
|
353
|
+
ShikiTokenizer
|
|
354
|
+
} from "@lexical/code-shiki";
|
|
355
|
+
import { useLexicalComposerContext as useLexicalComposerContext3 } from "@lexical/react/LexicalComposerContext";
|
|
356
|
+
import { $nodesOfType } from "lexical";
|
|
357
|
+
import { useTheme } from "next-themes";
|
|
358
|
+
import { useEffect as useEffect3, useRef, useState } from "react";
|
|
359
|
+
var DARK_CODE_THEME = "github-dark";
|
|
360
|
+
var LIGHT_CODE_THEME = "github-light";
|
|
361
|
+
function CodeHighlightPlugin() {
|
|
362
|
+
const [editor] = useLexicalComposerContext3();
|
|
363
|
+
let resolvedTheme;
|
|
364
|
+
try {
|
|
365
|
+
const themeContext = useTheme();
|
|
366
|
+
resolvedTheme = themeContext == null ? void 0 : themeContext.resolvedTheme;
|
|
367
|
+
} catch (e) {
|
|
368
|
+
}
|
|
369
|
+
const [mounted, setMounted] = useState(false);
|
|
370
|
+
useEffect3(() => {
|
|
371
|
+
setMounted(true);
|
|
372
|
+
}, []);
|
|
373
|
+
const isDark = mounted ? resolvedTheme === "dark" || typeof document !== "undefined" && document.documentElement.classList.contains("dark") : typeof document !== "undefined" && document.documentElement.classList.contains("dark");
|
|
374
|
+
const activeTheme = isDark ? DARK_CODE_THEME : LIGHT_CODE_THEME;
|
|
375
|
+
const tokenizerRef = useRef(__spreadProps(__spreadValues({}, ShikiTokenizer), {
|
|
376
|
+
defaultTheme: activeTheme
|
|
377
|
+
}));
|
|
378
|
+
tokenizerRef.current.defaultTheme = activeTheme;
|
|
379
|
+
useEffect3(() => {
|
|
380
|
+
loadCodeTheme(DARK_CODE_THEME);
|
|
381
|
+
loadCodeTheme(LIGHT_CODE_THEME);
|
|
382
|
+
}, []);
|
|
383
|
+
useEffect3(() => {
|
|
384
|
+
return registerCodeHighlighting(editor, tokenizerRef.current);
|
|
385
|
+
}, [editor]);
|
|
386
|
+
useEffect3(() => {
|
|
387
|
+
editor.update(() => {
|
|
388
|
+
const codeNodes = $nodesOfType(CodeNode2);
|
|
389
|
+
for (const node of codeNodes) {
|
|
390
|
+
const currentTheme = node.getTheme();
|
|
391
|
+
if (!currentTheme || currentTheme === DARK_CODE_THEME || currentTheme === LIGHT_CODE_THEME || currentTheme === "one-light" || currentTheme === "one-dark-pro" || currentTheme === "poimandres") {
|
|
392
|
+
if (currentTheme !== activeTheme) {
|
|
393
|
+
node.setTheme(activeTheme);
|
|
394
|
+
node.markDirty();
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
});
|
|
399
|
+
}, [editor, activeTheme]);
|
|
400
|
+
return null;
|
|
401
|
+
}
|
|
402
|
+
|
|
351
403
|
export {
|
|
352
404
|
LinkWithMetaDataPlugin,
|
|
353
|
-
LexicalAutoLinkPlugin,
|
|
354
|
-
CodeHighlightPlugin,
|
|
355
405
|
nestedNodes,
|
|
356
|
-
nodes_default
|
|
406
|
+
nodes_default,
|
|
407
|
+
LexicalAutoLinkPlugin,
|
|
408
|
+
CodeHighlightPlugin
|
|
357
409
|
};
|
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
SHORTCUTS
|
|
3
|
-
} from "./chunk-ZB5LZQKC.mjs";
|
|
4
1
|
import {
|
|
5
2
|
updateFontSize,
|
|
6
3
|
updateFontSizeInSelection
|
|
7
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-6D6QLRYR.mjs";
|
|
5
|
+
import {
|
|
6
|
+
SHORTCUTS
|
|
7
|
+
} from "./chunk-K5OAFEVY.mjs";
|
|
8
8
|
import {
|
|
9
9
|
MAX_ALLOWED_FONT_SIZE,
|
|
10
10
|
MIN_ALLOWED_FONT_SIZE
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4FFTOZGJ.mjs";
|
|
12
12
|
import {
|
|
13
13
|
Input
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5NRAXWYA.mjs";
|
|
15
15
|
import {
|
|
16
16
|
Button
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-OE5JRLCN.mjs";
|
|
18
18
|
import {
|
|
19
19
|
cn
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-JHXDLYEV.mjs";
|
|
21
21
|
import {
|
|
22
22
|
init_react_shim
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-WYCFGRFJ.mjs";
|
|
24
24
|
|
|
25
25
|
// src/components/ui/drop-downs/font-size.tsx
|
|
26
26
|
init_react_shim();
|
|
27
27
|
import * as React from "react";
|
|
28
28
|
import { Minus, Plus } from "lucide-react";
|
|
29
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
29
30
|
function parseAllowedFontSize(input) {
|
|
30
31
|
const match = input.match(/^(\d+(?:\.\d+)?)px$/);
|
|
31
32
|
if (match) {
|
|
@@ -81,44 +82,48 @@ function FontSize({
|
|
|
81
82
|
React.useEffect(() => {
|
|
82
83
|
setInputValue(selectionFontSize);
|
|
83
84
|
}, [selectionFontSize]);
|
|
84
|
-
return /* @__PURE__ */
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
85
|
+
return /* @__PURE__ */ jsxs("div", { className: cn("flex flex-row items-center gap-1", classNameContent), children: [
|
|
86
|
+
/* @__PURE__ */ jsx(
|
|
87
|
+
Button,
|
|
88
|
+
{
|
|
89
|
+
type: "button",
|
|
90
|
+
className: cn("h-7 min-w-[29px] w-[29px] px-[6px] border-none cursor-pointer", className),
|
|
91
|
+
tip: `decrement ${SHORTCUTS.INCREASE_FONT_SIZE}`,
|
|
92
|
+
disabled: disabled || selectionFontSize !== "" && Number(inputValue) <= MIN_ALLOWED_FONT_SIZE,
|
|
93
|
+
variant: "outline",
|
|
94
|
+
size: "Toolbar",
|
|
95
|
+
onClick: () => updateFontSize(editor, 2 /* decrement */, inputValue),
|
|
96
|
+
children: /* @__PURE__ */ jsx(Minus, { className: "w-[15px] h-[15px]" })
|
|
97
|
+
}
|
|
98
|
+
),
|
|
99
|
+
/* @__PURE__ */ jsx(
|
|
100
|
+
Input,
|
|
101
|
+
{
|
|
102
|
+
type: "number",
|
|
103
|
+
value: inputValue,
|
|
104
|
+
disabled,
|
|
105
|
+
className: cn("h-7 min-w-[29px] w-[29px] px-[6px] border-none cursor-text", className),
|
|
106
|
+
min: MIN_ALLOWED_FONT_SIZE,
|
|
107
|
+
max: MAX_ALLOWED_FONT_SIZE,
|
|
108
|
+
onChange: (e) => setInputValue(e.target.value),
|
|
109
|
+
onKeyDown: handleKeyPress,
|
|
110
|
+
onBlur: handleInputBlur
|
|
111
|
+
}
|
|
112
|
+
),
|
|
113
|
+
/* @__PURE__ */ jsx(
|
|
114
|
+
Button,
|
|
115
|
+
{
|
|
116
|
+
type: "button",
|
|
117
|
+
tip: `increment ${SHORTCUTS.DECREASE_FONT_SIZE}`,
|
|
118
|
+
className: cn("h-7 min-w-[29px] w-[29px] px-[6px] border-none cursor-pointer", className),
|
|
119
|
+
disabled: disabled || selectionFontSize !== "" && Number(inputValue) >= MAX_ALLOWED_FONT_SIZE,
|
|
120
|
+
variant: "outline",
|
|
121
|
+
size: "Toolbar",
|
|
122
|
+
onClick: () => updateFontSize(editor, 1 /* increment */, inputValue),
|
|
123
|
+
children: /* @__PURE__ */ jsx(Plus, { className: "w-4 h-4" })
|
|
124
|
+
}
|
|
125
|
+
)
|
|
126
|
+
] });
|
|
122
127
|
}
|
|
123
128
|
|
|
124
129
|
export {
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JHXDLYEV.mjs";
|
|
4
4
|
import {
|
|
5
5
|
__objRest,
|
|
6
6
|
__spreadValues,
|
|
7
7
|
init_react_shim
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-WYCFGRFJ.mjs";
|
|
9
9
|
|
|
10
10
|
// src/components/ui/card.tsx
|
|
11
11
|
init_react_shim();
|
|
12
12
|
import * as React from "react";
|
|
13
|
+
import { jsx } from "react/jsx-runtime";
|
|
13
14
|
var Card = React.forwardRef((_a, ref) => {
|
|
14
15
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
15
|
-
return /* @__PURE__ */
|
|
16
|
+
return /* @__PURE__ */ jsx(
|
|
16
17
|
"div",
|
|
17
18
|
__spreadValues({
|
|
18
19
|
ref,
|
|
@@ -26,7 +27,7 @@ var Card = React.forwardRef((_a, ref) => {
|
|
|
26
27
|
Card.displayName = "Card";
|
|
27
28
|
var CardHeader = React.forwardRef((_a, ref) => {
|
|
28
29
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
29
|
-
return /* @__PURE__ */
|
|
30
|
+
return /* @__PURE__ */ jsx(
|
|
30
31
|
"div",
|
|
31
32
|
__spreadValues({
|
|
32
33
|
ref,
|
|
@@ -37,7 +38,7 @@ var CardHeader = React.forwardRef((_a, ref) => {
|
|
|
37
38
|
CardHeader.displayName = "CardHeader";
|
|
38
39
|
var CardTitle = React.forwardRef((_a, ref) => {
|
|
39
40
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
40
|
-
return /* @__PURE__ */
|
|
41
|
+
return /* @__PURE__ */ jsx(
|
|
41
42
|
"div",
|
|
42
43
|
__spreadValues({
|
|
43
44
|
ref,
|
|
@@ -48,7 +49,7 @@ var CardTitle = React.forwardRef((_a, ref) => {
|
|
|
48
49
|
CardTitle.displayName = "CardTitle";
|
|
49
50
|
var CardDescription = React.forwardRef((_a, ref) => {
|
|
50
51
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
51
|
-
return /* @__PURE__ */
|
|
52
|
+
return /* @__PURE__ */ jsx(
|
|
52
53
|
"div",
|
|
53
54
|
__spreadValues({
|
|
54
55
|
ref,
|
|
@@ -59,12 +60,12 @@ var CardDescription = React.forwardRef((_a, ref) => {
|
|
|
59
60
|
CardDescription.displayName = "CardDescription";
|
|
60
61
|
var CardContent = React.forwardRef((_a, ref) => {
|
|
61
62
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
62
|
-
return /* @__PURE__ */
|
|
63
|
+
return /* @__PURE__ */ jsx("div", __spreadValues({ ref, className: cn("p-6 ", className) }, props));
|
|
63
64
|
});
|
|
64
65
|
CardContent.displayName = "CardContent";
|
|
65
66
|
var CardFooter = React.forwardRef((_a, ref) => {
|
|
66
67
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
67
|
-
return /* @__PURE__ */
|
|
68
|
+
return /* @__PURE__ */ jsx(
|
|
68
69
|
"div",
|
|
69
70
|
__spreadValues({
|
|
70
71
|
ref,
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
init_react_shim
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WYCFGRFJ.mjs";
|
|
4
4
|
|
|
5
5
|
// src/components/editor/nodes/StoryBuilderNode/StoryBuilderNode.tsx
|
|
6
6
|
init_react_shim();
|
|
7
7
|
import { $applyNodeReplacement, DecoratorNode } from "lexical";
|
|
8
8
|
import * as React from "react";
|
|
9
9
|
import { Suspense } from "react";
|
|
10
|
-
|
|
10
|
+
import { jsx } from "react/jsx-runtime";
|
|
11
|
+
var StoryBuilderComponent = React.lazy(() => import("./StoryBuilderComponent-WQSNFPMM.mjs"));
|
|
11
12
|
function convertStoryBuilderElement(domNode) {
|
|
12
13
|
const textContent = domNode.textContent;
|
|
13
14
|
if (textContent) {
|
|
@@ -100,7 +101,7 @@ var StoryBuilderNode = class _StoryBuilderNode extends DecoratorNode {
|
|
|
100
101
|
return false;
|
|
101
102
|
}
|
|
102
103
|
decorate() {
|
|
103
|
-
return /* @__PURE__ */
|
|
104
|
+
return /* @__PURE__ */ jsx(Suspense, { fallback: null, children: /* @__PURE__ */ jsx(
|
|
104
105
|
StoryBuilderComponent,
|
|
105
106
|
{
|
|
106
107
|
nodes: this.__nodes,
|
|
@@ -108,7 +109,7 @@ var StoryBuilderNode = class _StoryBuilderNode extends DecoratorNode {
|
|
|
108
109
|
title: this.__title,
|
|
109
110
|
nodeKey: this.getKey()
|
|
110
111
|
}
|
|
111
|
-
));
|
|
112
|
+
) });
|
|
112
113
|
}
|
|
113
114
|
};
|
|
114
115
|
function $createStoryBuilderNode(payload) {
|