@collabchron/notiq 1.1.10 → 1.1.12
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-RHRYHSVN.mjs +325 -0
- package/dist/AudioComponent-CKLMLB5T.mjs +278 -0
- package/dist/CodeActionMenuPlugin-FGH6HZLL.mjs +14 -0
- package/dist/CollaborationPlugin-TIZOQBUT.mjs +405 -0
- package/dist/CollaboratorsBar-AMPIAUOY.mjs +20 -0
- package/dist/CommentsPlugin-SDJJTUGK.mjs +19 -0
- package/dist/DynamicBlockComponent-2LOADZUX.mjs +221 -0
- package/dist/{EquationComponent-CB6DFIHV.mjs → EquationComponent-4NFG55NQ.mjs} +82 -46
- package/dist/ExcalidrawComponent-BMSYIPP6.mjs +662 -0
- package/dist/ExcalidrawPlugin-QLPGJPSX.mjs +14 -0
- package/dist/ExportPlugin-MJHYKQZJ.mjs +43 -0
- package/dist/FileComponent-Y56MX5QD.mjs +200 -0
- package/dist/FloatingLinkEditorPlugin-MABB34L7.mjs +12 -0
- package/dist/FloatingTextFormatToolbarPlugin-BXCPN3KD.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-KV5DX4ED.mjs +982 -0
- package/dist/SlashCommand-SPR7G5EI.mjs +39 -0
- package/dist/StoryBuilderComponent-JN4ZPZOW.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-F52PVNXU.mjs +823 -0
- package/dist/VersionHistoryPlugin-YWGCREKA.mjs +371 -0
- package/dist/babel-RJXDAKDM.mjs +7287 -0
- package/dist/background-color-RW5JYLMG.mjs +425 -0
- package/dist/block-format-TODFREE2.mjs +14 -0
- package/dist/{chunk-RBWZGXPF.mjs → chunk-22ZIL6NH.mjs} +5 -5
- package/dist/{chunk-DSFQHA7I.mjs → chunk-2LNT36RL.mjs} +118 -295
- package/dist/chunk-37LC44W3.mjs +2677 -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-5D4JF3ZZ.mjs +624 -0
- package/dist/{chunk-POGRR73N.mjs → chunk-5NRAXWYA.mjs} +4 -3
- package/dist/{chunk-PZSUSXQG.mjs → chunk-6D6QLRYR.mjs} +2 -2
- package/dist/chunk-6FQFPPLG.mjs +785 -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-YUDCJRJM.mjs → chunk-BGV62GC2.mjs} +3 -2
- package/dist/{chunk-2FNEAMSP.mjs → chunk-C4JWLBYN.mjs} +50 -45
- package/dist/{chunk-TCYK7DM7.mjs → chunk-CDAMHK63.mjs} +4 -3
- package/dist/chunk-CLRSETYQ.mjs +431 -0
- 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-N3WN46VL.mjs → chunk-ELBTVBTS.mjs} +23 -22
- package/dist/chunk-ENH2IOHI.mjs +1828 -0
- package/dist/{chunk-4EXYCTGJ.mjs → chunk-EVPWKNE4.mjs} +3 -3
- package/dist/{chunk-LGG4IUIA.mjs → chunk-FO7M3X2B.mjs} +2 -2
- 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-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-3JVFG7ER.mjs → chunk-KNW2CGIP.mjs} +7 -64
- package/dist/{chunk-4HBCVSE6.mjs → chunk-KXRLARGI.mjs} +1 -1
- package/dist/{chunk-4GFXER7R.mjs → chunk-LBGM4VVZ.mjs} +141 -89
- package/dist/chunk-LLGVCM7M.mjs +809 -0
- package/dist/chunk-LU2XWLOE.mjs +219 -0
- package/dist/chunk-LVRJM45C.mjs +171 -0
- package/dist/{chunk-K36V4SIW.mjs → chunk-MSAO3YFB.mjs} +21 -18
- package/dist/chunk-N3KDPSRI.mjs +496 -0
- 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-HJPPNHYM.mjs → chunk-QNIY45SF.mjs} +4 -3
- 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-456TN7IM.mjs → chunk-SYUCM5G5.mjs} +15 -14
- package/dist/{chunk-4MEDW3T6.mjs → chunk-T2UBAZ66.mjs} +5 -4
- package/dist/chunk-TC3IISJZ.mjs +408 -0
- package/dist/chunk-VGAX6YEY.mjs +399 -0
- package/dist/chunk-VNDDDXGH.mjs +682 -0
- package/dist/{chunk-U47ABU5Z.mjs → chunk-W6VQSFE5.mjs} +2 -2
- package/dist/chunk-WUVIQCX7.mjs +944 -0
- package/dist/chunk-WYCFGRFJ.mjs +118 -0
- package/dist/chunk-XNJNT6PC.mjs +1701 -0
- package/dist/chunk-XYLTLGY5.mjs +775 -0
- package/dist/chunk-XYMXGU4T.mjs +129 -0
- package/dist/{chunk-3G37YKTV.mjs → chunk-YR2DD74C.mjs} +9 -8
- package/dist/chunk-ZFV2HGD3.mjs +143 -0
- package/dist/{chunk-77UA6HYR.mjs → chunk-ZKZ7MLSS.mjs} +1 -1
- package/dist/chunk-ZYJ7KABY.mjs +419 -0
- package/dist/color-S55XFDYQ.mjs +13 -0
- package/dist/components/canvas/CanvasMode.d.ts +18 -0
- package/dist/components/editor/Core.d.ts +19 -0
- package/dist/components/editor/index.d.ts +38 -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 +10 -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 +89 -0
- package/dist/core.d.ts +1 -0
- package/dist/core.js +74458 -0
- package/dist/core.mjs +138 -0
- package/dist/estree-QRALCFII.mjs +5029 -0
- package/dist/font-IJKFR4BM.mjs +12 -0
- package/dist/font-size-3HMJHKO2.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-QPB2CVXP.mjs} +359 -324
- package/dist/index.d.ts +13 -145
- package/dist/index.js +61491 -44350
- package/dist/index.mjs +466 -1569
- package/dist/insert-audio-I3PD6JFS.mjs +180 -0
- package/dist/insert-file-PHR7XL4V.mjs +190 -0
- package/dist/insert-gif-R5ZO4JHC.mjs +112 -0
- package/dist/insert-image-PLBZELHK.mjs +348 -0
- package/dist/insert-node-DGCZBGKG.mjs +243 -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 +73860 -0
- package/dist/react.mjs +66 -0
- package/dist/standalone-A6VDOPCZ.mjs +2506 -0
- package/dist/stepper-KNITDVLG.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-TEB4S52S.mjs} +22 -19
- package/dist/text-format-T3IY7FBI.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 -1150
- 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,201 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
INSERT_EXCALIDRAW_COMMAND
|
|
3
|
-
} from "./chunk-RBWZGXPF.mjs";
|
|
4
|
-
import {
|
|
5
|
-
DropDown
|
|
6
|
-
} from "./chunk-EGMI62PP.mjs";
|
|
7
|
-
import "./chunk-KJ6AJ44Q.mjs";
|
|
8
|
-
import "./chunk-64Z3FI7T.mjs";
|
|
9
|
-
import {
|
|
10
|
-
AutoEmbedDialog,
|
|
11
|
-
FigmaEmbedConfig,
|
|
12
|
-
INSERT_COLLAPSIBLE_COMMAND,
|
|
13
|
-
INSERT_LAYOUT_COMMAND,
|
|
14
|
-
TwitterEmbedConfig,
|
|
15
|
-
YoutubeEmbedConfig
|
|
16
|
-
} from "./chunk-AMMKBSST.mjs";
|
|
17
|
-
import {
|
|
18
|
-
useModal
|
|
19
|
-
} from "./chunk-5QSNIVIG.mjs";
|
|
20
|
-
import {
|
|
21
|
-
INSERT_IMAGE_COMMAND
|
|
22
|
-
} from "./chunk-LGG4IUIA.mjs";
|
|
23
|
-
import "./chunk-GXYD4VZM.mjs";
|
|
24
|
-
import "./chunk-N3WN46VL.mjs";
|
|
25
|
-
import {
|
|
26
|
-
Skeleton
|
|
27
|
-
} from "./chunk-QEIFVK5M.mjs";
|
|
28
|
-
import {
|
|
29
|
-
INSERT_HINT_COMMAND
|
|
30
|
-
} from "./chunk-G53GLEAY.mjs";
|
|
31
|
-
import "./chunk-WAK5JGNJ.mjs";
|
|
32
|
-
import "./chunk-HJPPNHYM.mjs";
|
|
33
|
-
import "./chunk-POGRR73N.mjs";
|
|
34
|
-
import "./chunk-WDG7J2DY.mjs";
|
|
35
|
-
import "./chunk-BIU7WTLX.mjs";
|
|
36
|
-
import "./chunk-YHPNOWFH.mjs";
|
|
37
|
-
import {
|
|
38
|
-
init_react_shim
|
|
39
|
-
} from "./chunk-77KXU36M.mjs";
|
|
40
|
-
|
|
41
|
-
// src/components/ui/drop-downs/insert-node.tsx
|
|
42
|
-
init_react_shim();
|
|
43
|
-
import React, { useMemo, lazy, Suspense } from "react";
|
|
44
|
-
import { AlertCircle, Columns2, Columns3, Columns4, DraftingCompassIcon, Figma, FlipHorizontal2, Image, ImagePlay, Plus, SquareChevronRight, SquarePenIcon, Table, Twitter, Youtube } from "lucide-react";
|
|
45
|
-
import { INSERT_HORIZONTAL_RULE_COMMAND } from "@lexical/react/LexicalHorizontalRuleNode";
|
|
46
|
-
var InsertImageDialog = lazy(() => import("./insert-image-U3RJN3OW.mjs").then((module) => ({ default: module.InsertImageDialog })));
|
|
47
|
-
var InsertGif = lazy(() => import("./insert-gif-SAIDYURE.mjs"));
|
|
48
|
-
var InsertTableBody = lazy(() => import("./insert-table-24XYUS2W.mjs").then((module) => ({ default: module.InsertTable })));
|
|
49
|
-
var InsertPoll = lazy(
|
|
50
|
-
() => import("./insert-poll-HCPM7MO6.mjs").then((module) => ({ default: module.InsertPoll }))
|
|
51
|
-
);
|
|
52
|
-
function InsertNode({
|
|
53
|
-
disabled,
|
|
54
|
-
editor
|
|
55
|
-
}) {
|
|
56
|
-
const [model, showModal] = useModal();
|
|
57
|
-
const insertGifOnClick = (payload) => {
|
|
58
|
-
editor.dispatchCommand(INSERT_IMAGE_COMMAND, payload);
|
|
59
|
-
};
|
|
60
|
-
const items = useMemo(
|
|
61
|
-
() => [
|
|
62
|
-
{
|
|
63
|
-
label: "Horizontal Rule",
|
|
64
|
-
icon: /* @__PURE__ */ React.createElement(FlipHorizontal2, { className: "w-4 h-4" }),
|
|
65
|
-
func: () => editor.dispatchCommand(INSERT_HORIZONTAL_RULE_COMMAND, void 0)
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
label: "Image",
|
|
69
|
-
icon: /* @__PURE__ */ React.createElement(Image, { className: "size-4" }),
|
|
70
|
-
func: () => {
|
|
71
|
-
showModal(
|
|
72
|
-
"Insert Image",
|
|
73
|
-
"Please select an image to upload.",
|
|
74
|
-
(onClose) => /* @__PURE__ */ React.createElement(Suspense, { fallback: /* @__PURE__ */ React.createElement(Skeleton, { className: "mx-2 w-[350px] h-[350px]" }) }, /* @__PURE__ */ React.createElement(InsertImageDialog, { activeEditor: editor, onClose })),
|
|
75
|
-
true
|
|
76
|
-
);
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
label: "GIF",
|
|
81
|
-
icon: /* @__PURE__ */ React.createElement(ImagePlay, { className: "w-4 h-4" }),
|
|
82
|
-
func: () => {
|
|
83
|
-
showModal(
|
|
84
|
-
"Insert GIF",
|
|
85
|
-
"Please select a GIF to upload.",
|
|
86
|
-
(onClose) => /* @__PURE__ */ React.createElement(Suspense, { fallback: /* @__PURE__ */ React.createElement(Skeleton, { className: "mx-2 w-[400px] h-[400px]" }) }, /* @__PURE__ */ React.createElement(InsertGif, { insertGifOnClick, onClose })),
|
|
87
|
-
true
|
|
88
|
-
);
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
label: "Table",
|
|
93
|
-
icon: /* @__PURE__ */ React.createElement(Table, { className: "w-4 h-4" }),
|
|
94
|
-
func: () => {
|
|
95
|
-
showModal(
|
|
96
|
-
"Insert Table",
|
|
97
|
-
"Please configure your table.",
|
|
98
|
-
(onClose) => /* @__PURE__ */ React.createElement(Suspense, { fallback: /* @__PURE__ */ React.createElement(Skeleton, { className: "mx-2 w-[400px] h-[100px]" }) }, /* @__PURE__ */ React.createElement(InsertTableBody, { activeEditor: editor, onClose })),
|
|
99
|
-
true
|
|
100
|
-
);
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
label: "ExcaliDraw",
|
|
105
|
-
icon: /* @__PURE__ */ React.createElement(DraftingCompassIcon, { className: "w-4 h-4" }),
|
|
106
|
-
func: () => {
|
|
107
|
-
editor.dispatchCommand(INSERT_EXCALIDRAW_COMMAND, void 0);
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
label: "Poll",
|
|
112
|
-
icon: /* @__PURE__ */ React.createElement(SquarePenIcon, { className: "w-4 h-4" }),
|
|
113
|
-
func: () => {
|
|
114
|
-
showModal(
|
|
115
|
-
"Create Poll",
|
|
116
|
-
"Please type your question.",
|
|
117
|
-
(onClose) => /* @__PURE__ */ React.createElement(Suspense, { fallback: /* @__PURE__ */ React.createElement(Skeleton, { className: "mx-2 w-[400px] h-[100px]" }) }, /* @__PURE__ */ React.createElement(InsertPoll, { activeEditor: editor, onClose })),
|
|
118
|
-
true
|
|
119
|
-
);
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
label: "2 columns (equal width)",
|
|
124
|
-
icon: /* @__PURE__ */ React.createElement(Columns2, { className: "w-4 h-4" }),
|
|
125
|
-
func: () => {
|
|
126
|
-
editor.dispatchCommand(INSERT_LAYOUT_COMMAND, "1fr 1fr");
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
label: "3 columns (equal width)",
|
|
131
|
-
icon: /* @__PURE__ */ React.createElement(Columns3, { className: "w-4 h-4" }),
|
|
132
|
-
func: () => {
|
|
133
|
-
editor.dispatchCommand(INSERT_LAYOUT_COMMAND, "1fr 1fr 1fr");
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
label: "4 columns (equal width)",
|
|
138
|
-
icon: /* @__PURE__ */ React.createElement(Columns4, { className: "w-4 h-4" }),
|
|
139
|
-
func: () => {
|
|
140
|
-
editor.dispatchCommand(INSERT_LAYOUT_COMMAND, "1fr 1fr 1fr 1fr");
|
|
141
|
-
}
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
label: "2 columns (25% - 75%)",
|
|
145
|
-
icon: /* @__PURE__ */ React.createElement(Columns2, { className: "w-4 h-4" }),
|
|
146
|
-
func: () => {
|
|
147
|
-
editor.dispatchCommand(INSERT_LAYOUT_COMMAND, "1fr 3fr");
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
label: "Collapsible container",
|
|
152
|
-
icon: /* @__PURE__ */ React.createElement(SquareChevronRight, { className: "w-4 h-4" }),
|
|
153
|
-
func: () => {
|
|
154
|
-
editor.dispatchCommand(INSERT_COLLAPSIBLE_COMMAND, void 0);
|
|
155
|
-
}
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
label: "Twitter",
|
|
159
|
-
icon: /* @__PURE__ */ React.createElement(Twitter, { className: "w-4 h-4" }),
|
|
160
|
-
func: () => {
|
|
161
|
-
showModal("Twitter tweet", "Insert a URL to embed a live preview. Works with Twitter, Google Drive, Vimeo, and more.", (onClose) => /* @__PURE__ */ React.createElement(AutoEmbedDialog, { embedConfig: TwitterEmbedConfig, onClose }), true);
|
|
162
|
-
}
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
label: "Youtube",
|
|
166
|
-
icon: /* @__PURE__ */ React.createElement(Youtube, null),
|
|
167
|
-
func: () => {
|
|
168
|
-
showModal("Youtube", "Insert a URL to embed a live preview. Works with YouTube, Google Drive, Vimeo, and more.", (onClose) => /* @__PURE__ */ React.createElement(AutoEmbedDialog, { embedConfig: YoutubeEmbedConfig, onClose }), true);
|
|
169
|
-
}
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
label: "Figma",
|
|
173
|
-
icon: /* @__PURE__ */ React.createElement(Figma, null),
|
|
174
|
-
func: () => {
|
|
175
|
-
showModal("Figma", "Insert a URL to embed a live preview. Works with Figma.", (onClose) => /* @__PURE__ */ React.createElement(AutoEmbedDialog, { embedConfig: FigmaEmbedConfig, onClose }), true);
|
|
176
|
-
}
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
label: "Hint",
|
|
180
|
-
icon: /* @__PURE__ */ React.createElement(AlertCircle, null),
|
|
181
|
-
func: () => {
|
|
182
|
-
editor.dispatchCommand(INSERT_HINT_COMMAND, "info");
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
],
|
|
186
|
-
[editor, showModal]
|
|
187
|
-
);
|
|
188
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
189
|
-
DropDown,
|
|
190
|
-
{
|
|
191
|
-
values: items,
|
|
192
|
-
TriggerClassName: { width: "115px", border: "none" },
|
|
193
|
-
className: "cursor-pointer",
|
|
194
|
-
TriggerLabel: /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Plus, null), /* @__PURE__ */ React.createElement("span", null, "Insert")),
|
|
195
|
-
disabled
|
|
196
|
-
}
|
|
197
|
-
), model);
|
|
198
|
-
}
|
|
199
|
-
export {
|
|
200
|
-
InsertNode as default
|
|
201
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
INSERT_POLL_COMMAND
|
|
3
|
-
} from "./chunk-U47ABU5Z.mjs";
|
|
4
|
-
import "./chunk-GZPNVR7L.mjs";
|
|
5
|
-
import {
|
|
6
|
-
Input
|
|
7
|
-
} from "./chunk-POGRR73N.mjs";
|
|
8
|
-
import {
|
|
9
|
-
Button
|
|
10
|
-
} from "./chunk-BIU7WTLX.mjs";
|
|
11
|
-
import "./chunk-YHPNOWFH.mjs";
|
|
12
|
-
import {
|
|
13
|
-
React,
|
|
14
|
-
init_react_shim
|
|
15
|
-
} from "./chunk-77KXU36M.mjs";
|
|
16
|
-
|
|
17
|
-
// src/components/ui/models/insert-poll.tsx
|
|
18
|
-
init_react_shim();
|
|
19
|
-
import { useState } from "react";
|
|
20
|
-
function InsertPoll({
|
|
21
|
-
activeEditor,
|
|
22
|
-
onClose
|
|
23
|
-
}) {
|
|
24
|
-
const [question, setQuestion] = useState("");
|
|
25
|
-
const onClick = () => {
|
|
26
|
-
activeEditor.dispatchCommand(INSERT_POLL_COMMAND, question);
|
|
27
|
-
onClose();
|
|
28
|
-
};
|
|
29
|
-
return /* @__PURE__ */ React.createElement("div", { className: "space-y-4" }, /* @__PURE__ */ React.createElement(Input, { placeholder: "Question?", onChange: (e) => setQuestion(e.target.value), value: question }), /* @__PURE__ */ React.createElement(Button, { disabled: question.trim() === "", onClick }, "Confirm"));
|
|
30
|
-
}
|
|
31
|
-
export {
|
|
32
|
-
InsertPoll
|
|
33
|
-
};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Input
|
|
3
|
-
} from "./chunk-POGRR73N.mjs";
|
|
4
|
-
import {
|
|
5
|
-
Button
|
|
6
|
-
} from "./chunk-BIU7WTLX.mjs";
|
|
7
|
-
import "./chunk-YHPNOWFH.mjs";
|
|
8
|
-
import {
|
|
9
|
-
React,
|
|
10
|
-
init_react_shim
|
|
11
|
-
} from "./chunk-77KXU36M.mjs";
|
|
12
|
-
|
|
13
|
-
// src/components/ui/models/insert-table.tsx
|
|
14
|
-
init_react_shim();
|
|
15
|
-
import { INSERT_TABLE_COMMAND } from "@lexical/table";
|
|
16
|
-
import { useEffect, useState } from "react";
|
|
17
|
-
function InsertTable({
|
|
18
|
-
activeEditor,
|
|
19
|
-
onClose
|
|
20
|
-
}) {
|
|
21
|
-
const [rows, setRows] = useState("5");
|
|
22
|
-
const [columns, setColumns] = useState("5");
|
|
23
|
-
const [isDisabled, setIsDisabled] = useState(true);
|
|
24
|
-
useEffect(() => {
|
|
25
|
-
const row = Number(rows);
|
|
26
|
-
const column = Number(columns);
|
|
27
|
-
if (row && row > 0 && row <= 500 && column && column > 0 && column <= 50) {
|
|
28
|
-
setIsDisabled(false);
|
|
29
|
-
} else {
|
|
30
|
-
setIsDisabled(true);
|
|
31
|
-
}
|
|
32
|
-
}, [rows, columns]);
|
|
33
|
-
const onClick = () => {
|
|
34
|
-
activeEditor.dispatchCommand(INSERT_TABLE_COMMAND, {
|
|
35
|
-
columns,
|
|
36
|
-
rows
|
|
37
|
-
});
|
|
38
|
-
onClose();
|
|
39
|
-
};
|
|
40
|
-
return /* @__PURE__ */ React.createElement("div", { className: "flex flex-col gap-y-2 " }, /* @__PURE__ */ React.createElement(
|
|
41
|
-
Input,
|
|
42
|
-
{
|
|
43
|
-
placeholder: "# of rows (1-500)",
|
|
44
|
-
onChange: (e) => {
|
|
45
|
-
setRows(e.target.value);
|
|
46
|
-
},
|
|
47
|
-
value: rows,
|
|
48
|
-
"data-test-id": "table-modal-rows",
|
|
49
|
-
type: "number"
|
|
50
|
-
}
|
|
51
|
-
), /* @__PURE__ */ React.createElement(
|
|
52
|
-
Input,
|
|
53
|
-
{
|
|
54
|
-
placeholder: "# of columns (1-50)",
|
|
55
|
-
onChange: (e) => {
|
|
56
|
-
setColumns(e.target.value);
|
|
57
|
-
},
|
|
58
|
-
value: columns,
|
|
59
|
-
"data-test-id": "table-modal-columns",
|
|
60
|
-
type: "number"
|
|
61
|
-
}
|
|
62
|
-
), /* @__PURE__ */ React.createElement(Button, { className: "w-full", disabled: isDisabled, onClick }, "Confirm"));
|
|
63
|
-
}
|
|
64
|
-
export {
|
|
65
|
-
InsertTable
|
|
66
|
-
};
|