@forgedevstack/ink 1.1.8 → 1.2.0
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/CHANGELOG.md +25 -1
- package/dist/common-components/Box/Box.cjs +1 -1
- package/dist/common-components/Box/Box.js +7 -6
- package/dist/common-components/Button/Button.cjs +1 -1
- package/dist/common-components/Button/Button.js +9 -8
- package/dist/common-components/Canvas/Canvas.cjs +1 -1
- package/dist/common-components/Canvas/Canvas.js +3 -2
- package/dist/common-components/ContextMenu/ContextMenu.cjs +1 -1
- package/dist/common-components/ContextMenu/ContextMenu.js +3 -2
- package/dist/common-components/Field/Field.cjs +1 -1
- package/dist/common-components/Field/Field.js +11 -10
- package/dist/common-components/icons/GripIcon.cjs +1 -1
- package/dist/common-components/icons/GripIcon.js +3 -2
- package/dist/components/InkEditor/InkEditor.cjs +1 -1
- package/dist/components/InkEditor/InkEditor.d.ts.map +1 -1
- package/dist/components/InkEditor/InkEditor.js +1301 -1006
- package/dist/components/InkEditor/components/AiPanel/AiPanel.cjs +1 -1
- package/dist/components/InkEditor/components/AiPanel/AiPanel.js +13 -12
- package/dist/components/InkEditor/components/AiSelectionBubble/AiSelectionBubble.cjs +1 -0
- package/dist/components/InkEditor/components/AiSelectionBubble/AiSelectionBubble.const.cjs +1 -0
- package/dist/components/InkEditor/components/AiSelectionBubble/AiSelectionBubble.const.d.ts +20 -0
- package/dist/components/InkEditor/components/AiSelectionBubble/AiSelectionBubble.const.d.ts.map +1 -0
- package/dist/components/InkEditor/components/AiSelectionBubble/AiSelectionBubble.const.js +25 -0
- package/dist/components/InkEditor/components/AiSelectionBubble/AiSelectionBubble.d.ts +4 -0
- package/dist/components/InkEditor/components/AiSelectionBubble/AiSelectionBubble.d.ts.map +1 -0
- package/dist/components/InkEditor/components/AiSelectionBubble/AiSelectionBubble.js +61 -0
- package/dist/components/InkEditor/components/AiSelectionBubble/AiSelectionBubble.types.d.ts +11 -0
- package/dist/components/InkEditor/components/AiSelectionBubble/AiSelectionBubble.types.d.ts.map +1 -0
- package/dist/components/InkEditor/components/AiSelectionBubble/AiSelectionBubble.utils.cjs +1 -0
- package/dist/components/InkEditor/components/AiSelectionBubble/AiSelectionBubble.utils.d.ts +19 -0
- package/dist/components/InkEditor/components/AiSelectionBubble/AiSelectionBubble.utils.d.ts.map +1 -0
- package/dist/components/InkEditor/components/AiSelectionBubble/AiSelectionBubble.utils.js +30 -0
- package/dist/components/InkEditor/components/AiSelectionBubble/AiSelectionBubble.utils.test.d.ts +2 -0
- package/dist/components/InkEditor/components/AiSelectionBubble/AiSelectionBubble.utils.test.d.ts.map +1 -0
- package/dist/components/InkEditor/components/AiSelectionBubble/index.d.ts +4 -0
- package/dist/components/InkEditor/components/AiSelectionBubble/index.d.ts.map +1 -0
- package/dist/components/InkEditor/components/BlockHandles/BlockHandles.cjs +1 -1
- package/dist/components/InkEditor/components/BlockHandles/BlockHandles.js +7 -6
- package/dist/components/InkEditor/components/CommentsPanel/CommentsPanel.cjs +1 -1
- package/dist/components/InkEditor/components/CommentsPanel/CommentsPanel.d.ts +2 -0
- package/dist/components/InkEditor/components/CommentsPanel/CommentsPanel.d.ts.map +1 -1
- package/dist/components/InkEditor/components/CommentsPanel/CommentsPanel.js +16 -15
- package/dist/components/InkEditor/components/ExcelSheetPanel/ExcelSheetPanel.cjs +1 -1
- package/dist/components/InkEditor/components/ExcelSheetPanel/ExcelSheetPanel.js +14 -13
- package/dist/components/InkEditor/components/FindReplace/FindReplace.cjs +1 -1
- package/dist/components/InkEditor/components/FindReplace/FindReplace.js +21 -20
- package/dist/components/InkEditor/components/GraphEditModal/GraphEditModal.cjs +1 -1
- package/dist/components/InkEditor/components/GraphEditModal/GraphEditModal.js +17 -16
- package/dist/components/InkEditor/components/GraphPicker/GraphPicker.cjs +1 -1
- package/dist/components/InkEditor/components/GraphPicker/GraphPicker.js +3 -2
- package/dist/components/InkEditor/components/HtmlSourcePanel/HtmlSourcePanel.cjs +1 -1
- package/dist/components/InkEditor/components/HtmlSourcePanel/HtmlSourcePanel.js +7 -6
- package/dist/components/InkEditor/components/ImageFrame/ImageFrame.cjs +1 -0
- package/dist/components/InkEditor/components/ImageFrame/ImageFrame.d.ts +8 -0
- package/dist/components/InkEditor/components/ImageFrame/ImageFrame.d.ts.map +1 -0
- package/dist/components/InkEditor/components/ImageFrame/ImageFrame.js +54 -0
- package/dist/components/InkEditor/components/ImageFrame/index.d.ts +3 -0
- package/dist/components/InkEditor/components/ImageFrame/index.d.ts.map +1 -0
- package/dist/components/InkEditor/components/InlineToolbar/InlineToolbar.cjs +1 -1
- package/dist/components/InkEditor/components/InlineToolbar/InlineToolbar.js +11 -10
- package/dist/components/InkEditor/components/MentionMenu/MentionMenu.cjs +1 -0
- package/dist/components/InkEditor/components/MentionMenu/MentionMenu.d.ts +16 -0
- package/dist/components/InkEditor/components/MentionMenu/MentionMenu.d.ts.map +1 -0
- package/dist/components/InkEditor/components/MentionMenu/MentionMenu.js +21 -0
- package/dist/components/InkEditor/components/MentionMenu/index.d.ts +3 -0
- package/dist/components/InkEditor/components/MentionMenu/index.d.ts.map +1 -0
- package/dist/components/InkEditor/components/OutlineRail/OutlineRail.cjs +1 -1
- package/dist/components/InkEditor/components/OutlineRail/OutlineRail.js +11 -10
- package/dist/components/InkEditor/components/PresenceStack/PresenceStack.cjs +1 -0
- package/dist/components/InkEditor/components/PresenceStack/PresenceStack.const.cjs +1 -0
- package/dist/components/InkEditor/components/PresenceStack/PresenceStack.const.d.ts +7 -0
- package/dist/components/InkEditor/components/PresenceStack/PresenceStack.const.d.ts.map +1 -0
- package/dist/components/InkEditor/components/PresenceStack/PresenceStack.const.js +9 -0
- package/dist/components/InkEditor/components/PresenceStack/PresenceStack.d.ts +4 -0
- package/dist/components/InkEditor/components/PresenceStack/PresenceStack.d.ts.map +1 -0
- package/dist/components/InkEditor/components/PresenceStack/PresenceStack.js +83 -0
- package/dist/components/InkEditor/components/PresenceStack/PresenceStack.types.d.ts +8 -0
- package/dist/components/InkEditor/components/PresenceStack/PresenceStack.types.d.ts.map +1 -0
- package/dist/components/InkEditor/components/PresenceStack/index.d.ts +3 -0
- package/dist/components/InkEditor/components/PresenceStack/index.d.ts.map +1 -0
- package/dist/components/InkEditor/components/RemoteCursors/RemoteCursors.cjs +1 -0
- package/dist/components/InkEditor/components/RemoteCursors/RemoteCursors.const.cjs +1 -0
- package/dist/components/InkEditor/components/RemoteCursors/RemoteCursors.const.d.ts +7 -0
- package/dist/components/InkEditor/components/RemoteCursors/RemoteCursors.const.d.ts.map +1 -0
- package/dist/components/InkEditor/components/RemoteCursors/RemoteCursors.const.js +10 -0
- package/dist/components/InkEditor/components/RemoteCursors/RemoteCursors.d.ts +4 -0
- package/dist/components/InkEditor/components/RemoteCursors/RemoteCursors.d.ts.map +1 -0
- package/dist/components/InkEditor/components/RemoteCursors/RemoteCursors.js +66 -0
- package/dist/components/InkEditor/components/RemoteCursors/RemoteCursors.types.d.ts +6 -0
- package/dist/components/InkEditor/components/RemoteCursors/RemoteCursors.types.d.ts.map +1 -0
- package/dist/components/InkEditor/components/RemoteCursors/index.d.ts +3 -0
- package/dist/components/InkEditor/components/RemoteCursors/index.d.ts.map +1 -0
- package/dist/components/InkEditor/components/SignPad/SignPad.cjs +1 -1
- package/dist/components/InkEditor/components/SignPad/SignPad.js +7 -6
- package/dist/components/InkEditor/components/SlashMenu/SlashMenu.cjs +1 -1
- package/dist/components/InkEditor/components/SlashMenu/SlashMenu.js +7 -6
- package/dist/components/InkEditor/components/TableSizePicker/TableSizePicker.cjs +1 -1
- package/dist/components/InkEditor/components/TableSizePicker/TableSizePicker.const.cjs +1 -1
- package/dist/components/InkEditor/components/TableSizePicker/TableSizePicker.const.js +8 -7
- package/dist/components/InkEditor/components/TableSizePicker/TableSizePicker.js +7 -6
- package/dist/components/InkEditor/components/ThemePicker/ThemePicker.cjs +1 -1
- package/dist/components/InkEditor/components/ThemePicker/ThemePicker.js +7 -6
- package/dist/components/InkEditor/components/TitleGallery/TitleGallery.cjs +1 -1
- package/dist/components/InkEditor/components/TitleGallery/TitleGallery.js +3 -2
- package/dist/components/InkEditor/components/ToolbarButton/ToolbarButton.cjs +1 -1
- package/dist/components/InkEditor/components/ToolbarButton/ToolbarButton.js +13 -12
- package/dist/components/InkEditor/components/ToolbarColorPicker/ToolbarColorPicker.cjs +1 -1
- package/dist/components/InkEditor/components/ToolbarColorPicker/ToolbarColorPicker.js +9 -8
- package/dist/components/InkEditor/components/ToolbarCustomize/ToolbarCustomize.cjs +1 -1
- package/dist/components/InkEditor/components/ToolbarCustomize/ToolbarCustomize.const.cjs +1 -1
- package/dist/components/InkEditor/components/ToolbarCustomize/ToolbarCustomize.const.js +9 -8
- package/dist/components/InkEditor/components/ToolbarCustomize/ToolbarCustomize.js +9 -8
- package/dist/components/InkEditor/components/ToolbarDropdown/ToolbarDropdown.cjs +1 -1
- package/dist/components/InkEditor/components/ToolbarDropdown/ToolbarDropdown.js +19 -18
- package/dist/components/InkEditor/components/ToolbarDropdown/ToolbarDropdown.utils.cjs +1 -1
- package/dist/components/InkEditor/components/ToolbarDropdown/ToolbarDropdown.utils.js +6 -5
- package/dist/components/InkEditor/components/VersionHistory/VersionHistory.cjs +1 -0
- package/dist/components/InkEditor/components/VersionHistory/VersionHistory.d.ts +11 -0
- package/dist/components/InkEditor/components/VersionHistory/VersionHistory.d.ts.map +1 -0
- package/dist/components/InkEditor/components/VersionHistory/VersionHistory.js +22 -0
- package/dist/components/InkEditor/components/VersionHistory/index.d.ts +3 -0
- package/dist/components/InkEditor/components/VersionHistory/index.d.ts.map +1 -0
- package/dist/components/InkEditor/components/index.d.ts +11 -0
- package/dist/components/InkEditor/components/index.d.ts.map +1 -1
- package/dist/components/InkEditor/helpers/format.utils.cjs +3 -2
- package/dist/components/InkEditor/helpers/format.utils.d.ts +1 -0
- package/dist/components/InkEditor/helpers/format.utils.d.ts.map +1 -1
- package/dist/components/InkEditor/helpers/format.utils.js +106 -84
- package/dist/components/InkEditor/helpers/index.d.ts +1 -1
- package/dist/components/InkEditor/helpers/index.d.ts.map +1 -1
- package/dist/components/InkTabs/InkTabs.cjs +1 -0
- package/dist/components/InkTabs/InkTabs.d.ts +4 -0
- package/dist/components/InkTabs/InkTabs.d.ts.map +1 -0
- package/dist/components/InkTabs/InkTabs.js +104 -0
- package/dist/components/InkTabs/index.d.ts +2 -0
- package/dist/components/InkTabs/index.d.ts.map +1 -0
- package/dist/components/InkWorkspace/InkWorkspace.cjs +1 -0
- package/dist/components/InkWorkspace/InkWorkspace.d.ts +4 -0
- package/dist/components/InkWorkspace/InkWorkspace.d.ts.map +1 -0
- package/dist/components/InkWorkspace/InkWorkspace.js +309 -0
- package/dist/components/InkWorkspace/components/WorkspaceIcons.cjs +1 -0
- package/dist/components/InkWorkspace/components/WorkspaceIcons.d.ts +11 -0
- package/dist/components/InkWorkspace/components/WorkspaceIcons.d.ts.map +1 -0
- package/dist/components/InkWorkspace/components/WorkspaceIcons.js +39 -0
- package/dist/components/InkWorkspace/hooks/useInkWorkspace.cjs +1 -0
- package/dist/components/InkWorkspace/hooks/useInkWorkspace.d.ts +30 -0
- package/dist/components/InkWorkspace/hooks/useInkWorkspace.d.ts.map +1 -0
- package/dist/components/InkWorkspace/hooks/useInkWorkspace.js +73 -0
- package/dist/components/InkWorkspace/index.d.ts +4 -0
- package/dist/components/InkWorkspace/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/constants/collab.const.cjs +1 -0
- package/dist/constants/collab.const.d.ts +20 -0
- package/dist/constants/collab.const.d.ts.map +1 -0
- package/dist/constants/collab.const.js +54 -0
- package/dist/constants/contextMenu.const.cjs +1 -1
- package/dist/constants/contextMenu.const.d.ts +8 -0
- package/dist/constants/contextMenu.const.d.ts.map +1 -1
- package/dist/constants/contextMenu.const.js +30 -22
- package/dist/constants/defaultIcons.cjs +1 -1
- package/dist/constants/defaultIcons.js +6 -5
- package/dist/constants/defaults.const.cjs +1 -1
- package/dist/constants/defaults.const.d.ts.map +1 -1
- package/dist/constants/defaults.const.js +150 -138
- package/dist/constants/index.d.ts +2 -0
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/constants/numbers.cjs +1 -1
- package/dist/constants/numbers.js +43 -37
- package/dist/constants/toolbar.const.cjs +1 -1
- package/dist/constants/toolbar.const.d.ts +7 -0
- package/dist/constants/toolbar.const.d.ts.map +1 -1
- package/dist/constants/toolbar.const.js +16 -9
- package/dist/constants/toolbarMenu.const.cjs +1 -1
- package/dist/constants/toolbarMenu.const.d.ts.map +1 -1
- package/dist/constants/toolbarMenu.const.js +25 -11
- package/dist/constants/workspace.const.cjs +1 -0
- package/dist/constants/workspace.const.d.ts +24 -0
- package/dist/constants/workspace.const.d.ts.map +1 -0
- package/dist/constants/workspace.const.js +23 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/useInkCollaboration.cjs +1 -0
- package/dist/hooks/useInkCollaboration.d.ts +4 -0
- package/dist/hooks/useInkCollaboration.d.ts.map +1 -0
- package/dist/hooks/useInkCollaboration.js +87 -0
- package/dist/hooks/useToolbarOverflow.cjs +1 -1
- package/dist/hooks/useToolbarOverflow.js +12 -11
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +151 -135
- package/dist/plugins/ai/demoProvider.cjs +1 -1
- package/dist/plugins/ai/demoProvider.js +3 -2
- package/dist/plugins/ai/index.cjs +1 -1
- package/dist/plugins/ai/index.js +25 -24
- package/dist/plugins/excel/excel.utils.cjs +1 -1
- package/dist/plugins/excel/excel.utils.js +17 -16
- package/dist/plugins/graph/graph.utils.cjs +1 -1
- package/dist/plugins/graph/graph.utils.js +7 -6
- package/dist/plugins/titles/titles.const.cjs +1 -1
- package/dist/plugins/titles/titles.const.js +9 -8
- package/dist/plugins/titles/titles.utils.cjs +1 -1
- package/dist/plugins/titles/titles.utils.js +3 -2
- package/dist/styles.css +1 -1
- package/dist/types/collab.types.d.ts +54 -0
- package/dist/types/collab.types.d.ts.map +1 -0
- package/dist/types/features.types.d.ts +1 -1
- package/dist/types/features.types.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/ink.types.d.ts +3 -1
- package/dist/types/ink.types.d.ts.map +1 -1
- package/dist/types/workspace.types.d.ts +54 -0
- package/dist/types/workspace.types.d.ts.map +1 -0
- package/dist/utils/blocks.utils.cjs +1 -1
- package/dist/utils/blocks.utils.js +19 -18
- package/dist/utils/collab.utils.cjs +1 -0
- package/dist/utils/collab.utils.d.ts +5 -0
- package/dist/utils/collab.utils.d.ts.map +1 -0
- package/dist/utils/collab.utils.js +33 -0
- package/dist/utils/collab.utils.test.d.ts +2 -0
- package/dist/utils/collab.utils.test.d.ts.map +1 -0
- package/dist/utils/comments.utils.cjs +1 -1
- package/dist/utils/comments.utils.d.ts +4 -0
- package/dist/utils/comments.utils.d.ts.map +1 -1
- package/dist/utils/comments.utils.js +26 -18
- package/dist/utils/comments.utils.test.d.ts +2 -0
- package/dist/utils/comments.utils.test.d.ts.map +1 -0
- package/dist/utils/exportDocument.utils.cjs +2 -0
- package/dist/utils/exportDocument.utils.d.ts +16 -0
- package/dist/utils/exportDocument.utils.d.ts.map +1 -0
- package/dist/utils/exportDocument.utils.js +85 -0
- package/dist/utils/exportDocument.utils.test.d.ts +2 -0
- package/dist/utils/exportDocument.utils.test.d.ts.map +1 -0
- package/dist/utils/formatPainter.utils.cjs +1 -0
- package/dist/utils/formatPainter.utils.d.ts +11 -0
- package/dist/utils/formatPainter.utils.d.ts.map +1 -0
- package/dist/utils/formatPainter.utils.js +20 -0
- package/dist/utils/formatPainter.utils.test.d.ts +2 -0
- package/dist/utils/formatPainter.utils.test.d.ts.map +1 -0
- package/dist/utils/history.utils.cjs +1 -1
- package/dist/utils/history.utils.js +3 -2
- package/dist/utils/image.utils.cjs +1 -0
- package/dist/utils/image.utils.d.ts +14 -0
- package/dist/utils/image.utils.d.ts.map +1 -0
- package/dist/utils/image.utils.js +33 -0
- package/dist/utils/image.utils.test.d.ts +2 -0
- package/dist/utils/image.utils.test.d.ts.map +1 -0
- package/dist/utils/index.d.ts +12 -3
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/ink.brand.test.d.ts +2 -0
- package/dist/utils/ink.brand.test.d.ts.map +1 -0
- package/dist/utils/license.utils.cjs +1 -1
- package/dist/utils/license.utils.js +8 -7
- package/dist/utils/markdown.utils.cjs +11 -0
- package/dist/utils/markdown.utils.d.ts +7 -0
- package/dist/utils/markdown.utils.d.ts.map +1 -0
- package/dist/utils/markdown.utils.js +87 -0
- package/dist/utils/markdown.utils.test.d.ts +2 -0
- package/dist/utils/markdown.utils.test.d.ts.map +1 -0
- package/dist/utils/mentions.utils.cjs +1 -0
- package/dist/utils/mentions.utils.d.ts +13 -0
- package/dist/utils/mentions.utils.d.ts.map +1 -0
- package/dist/utils/mentions.utils.js +23 -0
- package/dist/utils/mentions.utils.test.d.ts +2 -0
- package/dist/utils/mentions.utils.test.d.ts.map +1 -0
- package/dist/utils/outline.utils.cjs +1 -1
- package/dist/utils/outline.utils.js +9 -8
- package/dist/utils/paste.utils.cjs +1 -1
- package/dist/utils/paste.utils.d.ts +2 -0
- package/dist/utils/paste.utils.d.ts.map +1 -1
- package/dist/utils/paste.utils.js +53 -19
- package/dist/utils/paste.utils.test.d.ts +2 -0
- package/dist/utils/paste.utils.test.d.ts.map +1 -0
- package/dist/utils/premium.utils.cjs +1 -1
- package/dist/utils/premium.utils.js +12 -11
- package/dist/utils/selection.utils.cjs +1 -1
- package/dist/utils/selection.utils.js +3 -2
- package/dist/utils/slash.utils.cjs +1 -1
- package/dist/utils/slash.utils.js +10 -9
- package/dist/utils/table.utils.cjs +1 -1
- package/dist/utils/table.utils.d.ts +8 -0
- package/dist/utils/table.utils.d.ts.map +1 -1
- package/dist/utils/table.utils.js +78 -54
- package/dist/utils/toolbarStorage.utils.cjs +1 -1
- package/dist/utils/toolbarStorage.utils.js +15 -14
- package/dist/utils/trackChanges.utils.cjs +1 -1
- package/dist/utils/trackChanges.utils.js +9 -8
- package/dist/utils/typo.utils.cjs +1 -1
- package/dist/utils/typo.utils.js +8 -7
- package/dist/utils/versions.utils.cjs +1 -0
- package/dist/utils/versions.utils.d.ts +11 -0
- package/dist/utils/versions.utils.d.ts.map +1 -0
- package/dist/utils/versions.utils.js +36 -0
- package/dist/utils/versions.utils.test.d.ts +2 -0
- package/dist/utils/versions.utils.test.d.ts.map +1 -0
- package/dist/utils/words.utils.cjs +1 -1
- package/dist/utils/words.utils.js +3 -2
- package/dist/utils/workspace.utils.cjs +1 -0
- package/dist/utils/workspace.utils.d.ts +5 -0
- package/dist/utils/workspace.utils.d.ts.map +1 -0
- package/dist/utils/workspace.utils.js +26 -0
- package/dist/utils/workspace.utils.test.d.ts +2 -0
- package/dist/utils/workspace.utils.test.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="toolbar-customize",t="toolbar-hide",
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="toolbar-customize",t="toolbar-hide",o="Customize toolbar",i="Hide toolbar",n="show-toolbar",r="Show toolbar",a="Show toolbar",l="Ask about this document or request a change…",d="Show formatting toolbar",O="ink-toolbar-hidden",s="ink-toolbar-items",_="true",T="false",h="divider",L={bold:"Bold",italic:"Italic",underline:"Underline",strikethrough:"Strikethrough",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",heading4:"Heading 4",heading5:"Heading 5",heading6:"Heading 6",paragraph:"Paragraph",headingDropdown:"Heading",fontDropdown:"Font",bulletList:"Bullet list",orderedList:"Numbered list",checklist:"Checklist",listDropdown:"List",blockquote:"Quote",code:"Code",link:"Link",image:"Image",table:"Table",signature:"Sign pad",findReplace:"Find and replace",findReplaceDropdown:"Find and replace",horizontalRule:"Horizontal rule",undo:"Undo",redo:"Redo",trackChanges:"Track changes",comments:"Comments",ai:"AI",textColor:"Text color",highlightColor:"Highlight color",directionLtr:"Left to right",directionRtl:"Right to left",superscript:"Superscript",subscript:"Subscript",alignLeft:"Align left",alignCenter:"Align center",alignRight:"Align right",alignJustify:"Justify",indent:"Indent",outdent:"Outdent",clearFormat:"Clear formatting",htmlSource:"HTML source",titles:"Titles",excel:"Sheet",graph:"Graph",outline:"Outline",fullscreen:"Fullscreen",theme:"Theme",importMarkdown:"Import Markdown",exportMarkdown:"Export Markdown",exportDocx:"Export Word",exportPdf:"Export PDF",versions:"Version history",formatPainter:"Format painter",changeCase:"Change case",divider:"Divider"},c={bold:"Bold the selected text",italic:"Italicize the selected text",underline:"Underline the selected text",strikethrough:"Strike through the selected text",heading1:"Largest heading",heading2:"Section heading",heading3:"Subsection heading",heading4:"Small heading",heading5:"Caption heading",heading6:"Fine heading",paragraph:"Body paragraph",headingDropdown:"Paragraph and heading styles",fontDropdown:"Font family",bulletList:"Bulleted list",orderedList:"Numbered list",checklist:"Checklist",listDropdown:"List style",blockquote:"Quote block",code:"Code block",link:"Link the selected text",image:"Insert an image",table:"Insert a table",signature:"Open the sign pad",findReplace:"Find and replace",findReplaceDropdown:"Find and replace",horizontalRule:"Insert a divider line",undo:"Undo the last change",redo:"Redo the last undone change",trackChanges:"Show insert and delete marks",comments:"Add or open comments",ai:"Ask Ink AI about this document",textColor:"Text color",highlightColor:"Highlight color",directionLtr:"Left to right",directionRtl:"Right to left",superscript:"Superscript",subscript:"Subscript",alignLeft:"Align left",alignCenter:"Align center",alignRight:"Align right",alignJustify:"Justify",indent:"Indent",outdent:"Outdent",clearFormat:"Clear formatting",htmlSource:"Toggle HTML source",titles:"Styled title gallery",excel:"Sheet grid or CSV import",graph:"Bar, line, or pie graph",outline:"Show or hide the outline rail",fullscreen:"Fill the screen with the editor",theme:"Editor paper theme",importMarkdown:"Import a Markdown file",exportMarkdown:"Download this document as Markdown",exportDocx:"Download a Word document",exportPdf:"Print or save as PDF",versions:"Save, restore, or compare a snapshot",formatPainter:"Copy formatting onto the next selection",changeCase:"UPPER, lower, or Title Case",divider:""},g="Customize toolbar",E="Done",A="Toolbar options";exports.AGENT_BAR_PLACEHOLDER=l;exports.CONTEXT_MENU_ID_SHOW_TOOLBAR=n;exports.CONTEXT_MENU_LABEL_SHOW_TOOLBAR=r;exports.TOOLBAR_CONTEXT_MENU_ID_CUSTOMIZE=e;exports.TOOLBAR_CONTEXT_MENU_ID_HIDE=t;exports.TOOLBAR_CONTEXT_MENU_LABEL_CUSTOMIZE=o;exports.TOOLBAR_CONTEXT_MENU_LABEL_HIDE=i;exports.TOOLBAR_CUSTOMIZE_CLOSE_LABEL=E;exports.TOOLBAR_CUSTOMIZE_LIST_ARIA_LABEL=A;exports.TOOLBAR_CUSTOMIZE_TITLE=g;exports.TOOLBAR_OPTION_DIVIDER=h;exports.TOOLBAR_OPTION_HINTS=c;exports.TOOLBAR_OPTION_LABELS=L;exports.TOOLBAR_SHOW_CONTROL_ARIA_LABEL=d;exports.TOOLBAR_SHOW_CONTROL_LABEL=a;exports.TOOLBAR_STORAGE_KEY_HIDDEN=O;exports.TOOLBAR_STORAGE_KEY_ITEMS=s;exports.TOOLBAR_STORAGE_VALUE_FALSE=T;exports.TOOLBAR_STORAGE_VALUE_TRUE=_;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolbarMenu.const.d.ts","sourceRoot":"","sources":["../../src/constants/toolbarMenu.const.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,eAAO,MAAM,iCAAiC,sBAAsB,CAAC;AACrE,eAAO,MAAM,4BAA4B,iBAAiB,CAAC;AAC3D,eAAO,MAAM,oCAAoC,sBAAsB,CAAC;AACxE,eAAO,MAAM,+BAA+B,iBAAiB,CAAC;AAE9D,eAAO,MAAM,4BAA4B,iBAAiB,CAAC;AAC3D,eAAO,MAAM,+BAA+B,iBAAiB,CAAC;AAE9D,eAAO,MAAM,0BAA0B,iBAAiB,CAAC;AACzD,eAAO,MAAM,qBAAqB,sDAAiD,CAAC;AACpF,eAAO,MAAM,+BAA+B,4BAA4B,CAAC;AAEzE,eAAO,MAAM,0BAA0B,uBAAuB,CAAC;AAC/D,eAAO,MAAM,yBAAyB,sBAAsB,CAAC;AAC7D,eAAO,MAAM,0BAA0B,SAAS,CAAC;AACjD,eAAO,MAAM,2BAA2B,UAAU,CAAC;AAEnD,eAAO,MAAM,sBAAsB,EAAG,SAAkB,CAAC;AAEzD,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"toolbarMenu.const.d.ts","sourceRoot":"","sources":["../../src/constants/toolbarMenu.const.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,eAAO,MAAM,iCAAiC,sBAAsB,CAAC;AACrE,eAAO,MAAM,4BAA4B,iBAAiB,CAAC;AAC3D,eAAO,MAAM,oCAAoC,sBAAsB,CAAC;AACxE,eAAO,MAAM,+BAA+B,iBAAiB,CAAC;AAE9D,eAAO,MAAM,4BAA4B,iBAAiB,CAAC;AAC3D,eAAO,MAAM,+BAA+B,iBAAiB,CAAC;AAE9D,eAAO,MAAM,0BAA0B,iBAAiB,CAAC;AACzD,eAAO,MAAM,qBAAqB,sDAAiD,CAAC;AACpF,eAAO,MAAM,+BAA+B,4BAA4B,CAAC;AAEzE,eAAO,MAAM,0BAA0B,uBAAuB,CAAC;AAC/D,eAAO,MAAM,yBAAyB,sBAAsB,CAAC;AAC7D,eAAO,MAAM,0BAA0B,SAAS,CAAC;AACjD,eAAO,MAAM,2BAA2B,UAAU,CAAC;AAEnD,eAAO,MAAM,sBAAsB,EAAG,SAAkB,CAAC;AAEzD,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,CA4D/D,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,CA4D9D,CAAC;AAEF,eAAO,MAAM,oBAAoB,6BAA6B,CAAC;AAE/D,eAAO,MAAM,uBAAuB,sBAAsB,CAAC;AAC3D,eAAO,MAAM,6BAA6B,SAAS,CAAC;AACpD,eAAO,MAAM,iCAAiC,oBAAoB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = "toolbar-customize", t = "toolbar-hide",
|
|
1
|
+
const e = "toolbar-customize", t = "toolbar-hide", o = "Customize toolbar", n = "Hide toolbar", i = "show-toolbar", r = "Show toolbar", a = "Show toolbar", l = "Ask about this document or request a change…", d = "Show formatting toolbar", s = "ink-toolbar-hidden", h = "ink-toolbar-items", c = "true", g = "false", O = "divider", p = {
|
|
2
2
|
bold: "Bold",
|
|
3
3
|
italic: "Italic",
|
|
4
4
|
underline: "Underline",
|
|
@@ -50,8 +50,15 @@ const e = "toolbar-customize", t = "toolbar-hide", i = "Customize toolbar", n =
|
|
|
50
50
|
outline: "Outline",
|
|
51
51
|
fullscreen: "Fullscreen",
|
|
52
52
|
theme: "Theme",
|
|
53
|
+
importMarkdown: "Import Markdown",
|
|
54
|
+
exportMarkdown: "Export Markdown",
|
|
55
|
+
exportDocx: "Export Word",
|
|
56
|
+
exportPdf: "Export PDF",
|
|
57
|
+
versions: "Version history",
|
|
58
|
+
formatPainter: "Format painter",
|
|
59
|
+
changeCase: "Change case",
|
|
53
60
|
divider: "Divider"
|
|
54
|
-
},
|
|
61
|
+
}, u = {
|
|
55
62
|
bold: "Bold the selected text",
|
|
56
63
|
italic: "Italicize the selected text",
|
|
57
64
|
underline: "Underline the selected text",
|
|
@@ -103,24 +110,31 @@ const e = "toolbar-customize", t = "toolbar-hide", i = "Customize toolbar", n =
|
|
|
103
110
|
outline: "Show or hide the outline rail",
|
|
104
111
|
fullscreen: "Fill the screen with the editor",
|
|
105
112
|
theme: "Editor paper theme",
|
|
113
|
+
importMarkdown: "Import a Markdown file",
|
|
114
|
+
exportMarkdown: "Download this document as Markdown",
|
|
115
|
+
exportDocx: "Download a Word document",
|
|
116
|
+
exportPdf: "Print or save as PDF",
|
|
117
|
+
versions: "Save, restore, or compare a snapshot",
|
|
118
|
+
formatPainter: "Copy formatting onto the next selection",
|
|
119
|
+
changeCase: "UPPER, lower, or Title Case",
|
|
106
120
|
divider: ""
|
|
107
|
-
}, T = "Customize toolbar",
|
|
121
|
+
}, T = "Customize toolbar", L = "Done", _ = "Toolbar options";
|
|
108
122
|
export {
|
|
109
|
-
|
|
110
|
-
|
|
123
|
+
l as AGENT_BAR_PLACEHOLDER,
|
|
124
|
+
i as CONTEXT_MENU_ID_SHOW_TOOLBAR,
|
|
111
125
|
r as CONTEXT_MENU_LABEL_SHOW_TOOLBAR,
|
|
112
126
|
e as TOOLBAR_CONTEXT_MENU_ID_CUSTOMIZE,
|
|
113
127
|
t as TOOLBAR_CONTEXT_MENU_ID_HIDE,
|
|
114
|
-
|
|
128
|
+
o as TOOLBAR_CONTEXT_MENU_LABEL_CUSTOMIZE,
|
|
115
129
|
n as TOOLBAR_CONTEXT_MENU_LABEL_HIDE,
|
|
116
|
-
|
|
117
|
-
|
|
130
|
+
L as TOOLBAR_CUSTOMIZE_CLOSE_LABEL,
|
|
131
|
+
_ as TOOLBAR_CUSTOMIZE_LIST_ARIA_LABEL,
|
|
118
132
|
T as TOOLBAR_CUSTOMIZE_TITLE,
|
|
119
133
|
O as TOOLBAR_OPTION_DIVIDER,
|
|
120
|
-
|
|
121
|
-
|
|
134
|
+
u as TOOLBAR_OPTION_HINTS,
|
|
135
|
+
p as TOOLBAR_OPTION_LABELS,
|
|
122
136
|
d as TOOLBAR_SHOW_CONTROL_ARIA_LABEL,
|
|
123
|
-
|
|
137
|
+
a as TOOLBAR_SHOW_CONTROL_LABEL,
|
|
124
138
|
s as TOOLBAR_STORAGE_KEY_HIDDEN,
|
|
125
139
|
h as TOOLBAR_STORAGE_KEY_ITEMS,
|
|
126
140
|
g as TOOLBAR_STORAGE_VALUE_FALSE,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _="none",E="vertical",I="horizontal",K="Untitled Document",S="Workspace",T="New Folder",O="Search documents...",L="+",N="×",R="Split View:",A="Save document",P="Rename",C="Delete",W="docs",t="Untitled",o="Hide explorer",e="Show explorer",n="Single view",D="Split side-by-side",c="Split stacked";exports.INK_SPLIT_MODE_HORIZONTAL=I;exports.INK_SPLIT_MODE_NONE=_;exports.INK_SPLIT_MODE_VERTICAL=E;exports.INK_WORKSPACE_CLOSE_FOLDER_BUTTON=N;exports.INK_WORKSPACE_DELETE_TITLE=C;exports.INK_WORKSPACE_DOCS_SUFFIX=W;exports.INK_WORKSPACE_HIDE_EXPLORER_TITLE=o;exports.INK_WORKSPACE_NEW_DOC_BUTTON=L;exports.INK_WORKSPACE_NEW_FOLDER=T;exports.INK_WORKSPACE_RENAME_TITLE=P;exports.INK_WORKSPACE_SAVE_TITLE=A;exports.INK_WORKSPACE_SEARCH_PLACEHOLDER=O;exports.INK_WORKSPACE_SHOW_EXPLORER_TITLE=e;exports.INK_WORKSPACE_SINGLE_VIEW_TITLE=n;exports.INK_WORKSPACE_SPLIT_SIDE_TITLE=D;exports.INK_WORKSPACE_SPLIT_STACKED_TITLE=c;exports.INK_WORKSPACE_SPLIT_VIEW_LABEL=R;exports.INK_WORKSPACE_TITLE=S;exports.INK_WORKSPACE_UNTITLED_DOC=K;exports.INK_WORKSPACE_UNTITLED_FALLBACK=t;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { InkSplitMode } from '../types/workspace.types';
|
|
2
|
+
export declare const INK_SPLIT_MODE_NONE: InkSplitMode;
|
|
3
|
+
export declare const INK_SPLIT_MODE_VERTICAL: InkSplitMode;
|
|
4
|
+
export declare const INK_SPLIT_MODE_HORIZONTAL: InkSplitMode;
|
|
5
|
+
export declare const INK_WORKSPACE_UNTITLED_DOC = "Untitled Document";
|
|
6
|
+
export declare const INK_WORKSPACE_TITLE = "Workspace";
|
|
7
|
+
export declare const INK_WORKSPACE_NEW_FOLDER = "New Folder";
|
|
8
|
+
export declare const INK_WORKSPACE_SEARCH_PLACEHOLDER = "Search documents...";
|
|
9
|
+
export declare const INK_WORKSPACE_NEW_DOC_BUTTON = "+";
|
|
10
|
+
export declare const INK_WORKSPACE_CLOSE_FOLDER_BUTTON = "\u00D7";
|
|
11
|
+
export declare const INK_WORKSPACE_SPLIT_VIEW_LABEL = "Split View:";
|
|
12
|
+
export declare const INK_WORKSPACE_SAVE_TITLE = "Save document";
|
|
13
|
+
export declare const INK_WORKSPACE_RENAME_TITLE = "Rename";
|
|
14
|
+
export declare const INK_WORKSPACE_DELETE_TITLE = "Delete";
|
|
15
|
+
export declare const INK_WORKSPACE_DOCS_SUFFIX = "docs";
|
|
16
|
+
export declare const INK_WORKSPACE_UNTITLED_FALLBACK = "Untitled";
|
|
17
|
+
export declare const INK_WORKSPACE_HIDE_EXPLORER_TITLE = "Hide explorer";
|
|
18
|
+
export declare const INK_WORKSPACE_SHOW_EXPLORER_TITLE = "Show explorer";
|
|
19
|
+
export declare const INK_WORKSPACE_SINGLE_VIEW_TITLE = "Single view";
|
|
20
|
+
export declare const INK_WORKSPACE_SPLIT_SIDE_TITLE = "Split side-by-side";
|
|
21
|
+
export declare const INK_WORKSPACE_SPLIT_STACKED_TITLE = "Split stacked";
|
|
22
|
+
export declare const INK_WORKSPACE_DEFAULT_INITIAL_CONTENT = "<p>Start typing...</p>";
|
|
23
|
+
export declare const ID_PREFIX_DOC = "doc";
|
|
24
|
+
//# sourceMappingURL=workspace.const.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace.const.d.ts","sourceRoot":"","sources":["../../src/constants/workspace.const.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,eAAO,MAAM,mBAAmB,EAAE,YAAqB,CAAC;AACxD,eAAO,MAAM,uBAAuB,EAAE,YAAyB,CAAC;AAChE,eAAO,MAAM,yBAAyB,EAAE,YAA2B,CAAC;AAEpE,eAAO,MAAM,0BAA0B,sBAAsB,CAAC;AAC9D,eAAO,MAAM,mBAAmB,cAAc,CAAC;AAC/C,eAAO,MAAM,wBAAwB,eAAe,CAAC;AACrD,eAAO,MAAM,gCAAgC,wBAAwB,CAAC;AACtE,eAAO,MAAM,4BAA4B,MAAM,CAAC;AAChD,eAAO,MAAM,iCAAiC,WAAM,CAAC;AACrD,eAAO,MAAM,8BAA8B,gBAAgB,CAAC;AAC5D,eAAO,MAAM,wBAAwB,kBAAkB,CAAC;AACxD,eAAO,MAAM,0BAA0B,WAAW,CAAC;AACnD,eAAO,MAAM,0BAA0B,WAAW,CAAC;AACnD,eAAO,MAAM,yBAAyB,SAAS,CAAC;AAChD,eAAO,MAAM,+BAA+B,aAAa,CAAC;AAC1D,eAAO,MAAM,iCAAiC,kBAAkB,CAAC;AACjE,eAAO,MAAM,iCAAiC,kBAAkB,CAAC;AACjE,eAAO,MAAM,+BAA+B,gBAAgB,CAAC;AAC7D,eAAO,MAAM,8BAA8B,uBAAuB,CAAC;AACnE,eAAO,MAAM,iCAAiC,kBAAkB,CAAC;AACjE,eAAO,MAAM,qCAAqC,2BAA2B,CAAC;AAC9E,eAAO,MAAM,aAAa,QAAQ,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const _ = "none", E = "vertical", I = "horizontal", K = "Untitled Document", S = "Workspace", T = "New Folder", t = "Search documents...", O = "+", o = "×", L = "Split View:", N = "Save document", n = "Rename", e = "Delete", R = "docs", c = "Untitled", A = "Hide explorer", s = "Show explorer", C = "Single view", P = "Split side-by-side", W = "Split stacked";
|
|
2
|
+
export {
|
|
3
|
+
I as INK_SPLIT_MODE_HORIZONTAL,
|
|
4
|
+
_ as INK_SPLIT_MODE_NONE,
|
|
5
|
+
E as INK_SPLIT_MODE_VERTICAL,
|
|
6
|
+
o as INK_WORKSPACE_CLOSE_FOLDER_BUTTON,
|
|
7
|
+
e as INK_WORKSPACE_DELETE_TITLE,
|
|
8
|
+
R as INK_WORKSPACE_DOCS_SUFFIX,
|
|
9
|
+
A as INK_WORKSPACE_HIDE_EXPLORER_TITLE,
|
|
10
|
+
O as INK_WORKSPACE_NEW_DOC_BUTTON,
|
|
11
|
+
T as INK_WORKSPACE_NEW_FOLDER,
|
|
12
|
+
n as INK_WORKSPACE_RENAME_TITLE,
|
|
13
|
+
N as INK_WORKSPACE_SAVE_TITLE,
|
|
14
|
+
t as INK_WORKSPACE_SEARCH_PLACEHOLDER,
|
|
15
|
+
s as INK_WORKSPACE_SHOW_EXPLORER_TITLE,
|
|
16
|
+
C as INK_WORKSPACE_SINGLE_VIEW_TITLE,
|
|
17
|
+
P as INK_WORKSPACE_SPLIT_SIDE_TITLE,
|
|
18
|
+
W as INK_WORKSPACE_SPLIT_STACKED_TITLE,
|
|
19
|
+
L as INK_WORKSPACE_SPLIT_VIEW_LABEL,
|
|
20
|
+
S as INK_WORKSPACE_TITLE,
|
|
21
|
+
K as INK_WORKSPACE_UNTITLED_DOC,
|
|
22
|
+
c as INK_WORKSPACE_UNTITLED_FALLBACK
|
|
23
|
+
};
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,YAAY,EACV,0BAA0B,EAC1B,yBAAyB,GAC1B,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),y=require("../constants/numbers.cjs");require("../constants/openai.const.cjs");require("react/jsx-runtime");require("../utils/paste.utils.cjs");require("../utils/exportDocument.utils.cjs");require("react-dom");const S=require("../constants/collab.const.cjs"),m=({roomId:c=S.INK_DEFAULT_ROOM_ID,user:n,initialCollaborators:C=[],serverUrl:d,simulateDemo:O=!1}={})=>{const[k,a]=o.useState(()=>C.length>y.NUMBER_ZERO?C:O?S.DEFAULT_DEMO_COLLABORATORS:[]),[R,u]=o.useState(!0),i=o.useRef(null);o.useEffect(()=>{if(!(!d||typeof WebSocket>"u"))try{const e=new WebSocket(`${d}?room=${encodeURIComponent(c)}`);return i.current=e,e.onopen=()=>{u(!0),n&&e.send(JSON.stringify({type:"join",room:c,user:n}))},e.onmessage=r=>{try{const t=JSON.parse(r.data);t.type==="presence"&&Array.isArray(t.collaborators)?a(t.collaborators):t.type==="cursor"&&t.collaborator&&a(s=>{const b=s.findIndex(l=>l.id===t.collaborator.id);if(b>=y.NUMBER_ZERO){const l=[...s];return l[b]={...l[b],...t.collaborator},l}return[...s,t.collaborator]})}catch{}},e.onclose=()=>u(!1),e.onerror=()=>u(!1),()=>{e.close(),i.current=null}}catch{u(!1)}},[d,c,n]);const f=o.useCallback(e=>{i.current&&i.current.readyState===WebSocket.OPEN&&i.current.send(JSON.stringify({type:"cursor",room:c,userId:n==null?void 0:n.id,cursor:e}))},[c,n]),p=o.useCallback((e,r,t)=>{f({selection:{start:e,end:r,text:t}})},[f]),E=o.useCallback(e=>{a(r=>r.some(t=>t.id===e.id)?r.map(t=>t.id===e.id?e:t):[...r,e])},[]),q=o.useCallback(e=>{a(r=>r.filter(t=>t.id!==e))},[]),_=o.useCallback((e,r)=>{a(t=>t.map(s=>s.id===e?{...s,status:r}:s))},[]);return{collaborators:k,isConnected:R,broadcastCursor:f,broadcastSelection:p,addCollaborator:E,removeCollaborator:q,updateCollaboratorStatus:_,setCollaborators:a}};exports.useInkCollaboration=m;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { UseInkCollaborationOptions, UseInkCollaborationReturn } from '../types';
|
|
2
|
+
export type { UseInkCollaborationOptions, UseInkCollaborationReturn };
|
|
3
|
+
export declare const useInkCollaboration: ({ roomId, user, initialCollaborators, serverUrl, simulateDemo, }?: UseInkCollaborationOptions) => UseInkCollaborationReturn;
|
|
4
|
+
//# sourceMappingURL=useInkCollaboration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useInkCollaboration.d.ts","sourceRoot":"","sources":["../../src/hooks/useInkCollaboration.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAIV,0BAA0B,EAC1B,yBAAyB,EAC1B,MAAM,SAAS,CAAC;AAOjB,YAAY,EAAE,0BAA0B,EAAE,yBAAyB,EAAE,CAAC;AAEtE,eAAO,MAAM,mBAAmB,GAAI,mEAMjC,0BAA+B,KAAG,yBAkHpC,CAAC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { useState as b, useRef as N, useEffect as _, useCallback as f } from "react";
|
|
2
|
+
import { NUMBER_ZERO as y } from "../constants/numbers.js";
|
|
3
|
+
import "../constants/openai.const.js";
|
|
4
|
+
import "react/jsx-runtime";
|
|
5
|
+
import "../utils/paste.utils.js";
|
|
6
|
+
import "../utils/exportDocument.utils.js";
|
|
7
|
+
import "react-dom";
|
|
8
|
+
import { DEFAULT_DEMO_COLLABORATORS as g, INK_DEFAULT_ROOM_ID as x } from "../constants/collab.const.js";
|
|
9
|
+
const w = ({
|
|
10
|
+
roomId: c = x,
|
|
11
|
+
user: r,
|
|
12
|
+
initialCollaborators: m = [],
|
|
13
|
+
serverUrl: d,
|
|
14
|
+
simulateDemo: O = !1
|
|
15
|
+
} = {}) => {
|
|
16
|
+
const [S, s] = b(() => m.length > y ? m : O ? g : []), [C, l] = b(!0), a = N(null);
|
|
17
|
+
_(() => {
|
|
18
|
+
if (!(!d || typeof WebSocket > "u"))
|
|
19
|
+
try {
|
|
20
|
+
const t = new WebSocket(`${d}?room=${encodeURIComponent(c)}`);
|
|
21
|
+
return a.current = t, t.onopen = () => {
|
|
22
|
+
l(!0), r && t.send(JSON.stringify({ type: "join", room: c, user: r }));
|
|
23
|
+
}, t.onmessage = (e) => {
|
|
24
|
+
try {
|
|
25
|
+
const o = JSON.parse(e.data);
|
|
26
|
+
o.type === "presence" && Array.isArray(o.collaborators) ? s(o.collaborators) : o.type === "cursor" && o.collaborator && s((n) => {
|
|
27
|
+
const p = n.findIndex((i) => i.id === o.collaborator.id);
|
|
28
|
+
if (p >= y) {
|
|
29
|
+
const i = [...n];
|
|
30
|
+
return i[p] = { ...i[p], ...o.collaborator }, i;
|
|
31
|
+
}
|
|
32
|
+
return [...n, o.collaborator];
|
|
33
|
+
});
|
|
34
|
+
} catch {
|
|
35
|
+
}
|
|
36
|
+
}, t.onclose = () => l(!1), t.onerror = () => l(!1), () => {
|
|
37
|
+
t.close(), a.current = null;
|
|
38
|
+
};
|
|
39
|
+
} catch {
|
|
40
|
+
l(!1);
|
|
41
|
+
}
|
|
42
|
+
}, [d, c, r]);
|
|
43
|
+
const u = f(
|
|
44
|
+
(t) => {
|
|
45
|
+
a.current && a.current.readyState === WebSocket.OPEN && a.current.send(
|
|
46
|
+
JSON.stringify({
|
|
47
|
+
type: "cursor",
|
|
48
|
+
room: c,
|
|
49
|
+
userId: r == null ? void 0 : r.id,
|
|
50
|
+
cursor: t
|
|
51
|
+
})
|
|
52
|
+
);
|
|
53
|
+
},
|
|
54
|
+
[c, r]
|
|
55
|
+
), R = f(
|
|
56
|
+
(t, e, o) => {
|
|
57
|
+
u({
|
|
58
|
+
selection: { start: t, end: e, text: o }
|
|
59
|
+
});
|
|
60
|
+
},
|
|
61
|
+
[u]
|
|
62
|
+
), E = f((t) => {
|
|
63
|
+
s((e) => e.some((o) => o.id === t.id) ? e.map((o) => o.id === t.id ? t : o) : [...e, t]);
|
|
64
|
+
}, []), k = f((t) => {
|
|
65
|
+
s((e) => e.filter((o) => o.id !== t));
|
|
66
|
+
}, []), A = f(
|
|
67
|
+
(t, e) => {
|
|
68
|
+
s(
|
|
69
|
+
(o) => o.map((n) => n.id === t ? { ...n, status: e } : n)
|
|
70
|
+
);
|
|
71
|
+
},
|
|
72
|
+
[]
|
|
73
|
+
);
|
|
74
|
+
return {
|
|
75
|
+
collaborators: S,
|
|
76
|
+
isConnected: C,
|
|
77
|
+
broadcastCursor: u,
|
|
78
|
+
broadcastSelection: R,
|
|
79
|
+
addCollaborator: E,
|
|
80
|
+
removeCollaborator: k,
|
|
81
|
+
updateCollaboratorStatus: A,
|
|
82
|
+
setCollaborators: s
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
export {
|
|
86
|
+
w as useInkCollaboration
|
|
87
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),e=require("../constants/numbers.cjs");require("../constants/openai.const.cjs");require("react/jsx-runtime");require("../utils/paste.utils.cjs");require("react-dom");const b=n=>{const u=r.useRef(null),c=r.useRef(null),[a,E]=r.useState(n),[_,N]=r.useState(!1);return r.useLayoutEffect(()=>{const i=u.current,t=c.current;if(!i||!t)return;const f=()=>{const d=t.clientWidth-e.INK_TOOLBAR_MORE_WIDTH_PX-e.INK_TOOLBAR_GAP_PX,M=Array.from(i.children).filter(s=>s instanceof HTMLElement);let O=e.NUMBER_ZERO,o=e.NUMBER_ZERO;M.forEach(s=>{const R=O+s.offsetWidth+(o>e.NUMBER_ZERO?e.INK_TOOLBAR_GAP_PX:e.NUMBER_ZERO);R>d||(O=R,o+=e.NUMBER_ONE)}),E(Math.max(o,e.NUMBER_ONE))};f();const l=new ResizeObserver(f);return l.observe(t),()=>l.disconnect()},[n]),{measureRef:u,rowRef:c,fitCount:a,overflowOpen:_,setOverflowOpen:N}};exports.useToolbarOverflow=b;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),e=require("../constants/numbers.cjs");require("../constants/openai.const.cjs");require("react/jsx-runtime");require("../utils/paste.utils.cjs");require("../utils/exportDocument.utils.cjs");require("react-dom");const b=n=>{const u=r.useRef(null),c=r.useRef(null),[a,E]=r.useState(n),[_,N]=r.useState(!1);return r.useLayoutEffect(()=>{const i=u.current,t=c.current;if(!i||!t)return;const f=()=>{const d=t.clientWidth-e.INK_TOOLBAR_MORE_WIDTH_PX-e.INK_TOOLBAR_GAP_PX,M=Array.from(i.children).filter(s=>s instanceof HTMLElement);let O=e.NUMBER_ZERO,o=e.NUMBER_ZERO;M.forEach(s=>{const R=O+s.offsetWidth+(o>e.NUMBER_ZERO?e.INK_TOOLBAR_GAP_PX:e.NUMBER_ZERO);R>d||(O=R,o+=e.NUMBER_ONE)}),E(Math.max(o,e.NUMBER_ONE))};f();const l=new ResizeObserver(f);return l.observe(t),()=>l.disconnect()},[n]),{measureRef:u,rowRef:c,fitCount:a,overflowOpen:_,setOverflowOpen:N}};exports.useToolbarOverflow=b;
|
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
import { useRef as a, useState as O, useLayoutEffect as b } from "react";
|
|
2
|
-
import { INK_TOOLBAR_MORE_WIDTH_PX as h, INK_TOOLBAR_GAP_PX as d, NUMBER_ZERO as e, NUMBER_ONE as
|
|
2
|
+
import { INK_TOOLBAR_MORE_WIDTH_PX as h, INK_TOOLBAR_GAP_PX as d, NUMBER_ZERO as e, NUMBER_ONE as p } from "../constants/numbers.js";
|
|
3
3
|
import "../constants/openai.const.js";
|
|
4
4
|
import "react/jsx-runtime";
|
|
5
5
|
import "../utils/paste.utils.js";
|
|
6
|
+
import "../utils/exportDocument.utils.js";
|
|
6
7
|
import "react-dom";
|
|
7
|
-
const
|
|
8
|
-
const s = a(null), c = a(null), [
|
|
8
|
+
const P = (n) => {
|
|
9
|
+
const s = a(null), c = a(null), [R, _] = O(n), [E, v] = O(!1);
|
|
9
10
|
return b(() => {
|
|
10
11
|
const f = s.current, t = c.current;
|
|
11
12
|
if (!f || !t) return;
|
|
12
|
-
const
|
|
13
|
+
const i = () => {
|
|
13
14
|
const N = t.clientWidth - h - d, w = Array.from(f.children).filter(
|
|
14
15
|
(r) => r instanceof HTMLElement
|
|
15
16
|
);
|
|
16
17
|
let l = e, o = e;
|
|
17
18
|
w.forEach((r) => {
|
|
18
19
|
const m = l + r.offsetWidth + (o > e ? d : e);
|
|
19
|
-
m > N || (l = m, o +=
|
|
20
|
-
}), _(Math.max(o,
|
|
20
|
+
m > N || (l = m, o += p);
|
|
21
|
+
}), _(Math.max(o, p));
|
|
21
22
|
};
|
|
22
|
-
|
|
23
|
-
const
|
|
24
|
-
return
|
|
25
|
-
}, [n]), { measureRef: s, rowRef: c, fitCount:
|
|
23
|
+
i();
|
|
24
|
+
const u = new ResizeObserver(i);
|
|
25
|
+
return u.observe(t), () => u.disconnect();
|
|
26
|
+
}, [n]), { measureRef: s, rowRef: c, fitCount: R, overflowOpen: E, setOverflowOpen: v };
|
|
26
27
|
};
|
|
27
28
|
export {
|
|
28
|
-
|
|
29
|
+
P as useToolbarOverflow
|
|
29
30
|
};
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const D=require("./components/InkEditor/InkEditor.cjs"),L=require("./components/InkTabs/InkTabs.cjs"),S=require("./components/InkWorkspace/InkWorkspace.cjs");require("react");const u=require("./constants/toolbarMenu.const.cjs"),_=require("./constants/colorMode.const.cjs"),m=require("./constants/typos.const.cjs"),K=require("./constants/fonts.const.cjs"),C=require("./constants/lists.const.cjs"),M=require("./constants/findReplaceMenu.const.cjs"),e=require("./constants/defaults.const.cjs"),n=require("./constants/aiModels.const.cjs"),t=require("./constants/openai.const.cjs"),O=require("./constants/premium.const.cjs"),d=require("./constants/defaultIcons.cjs"),k=require("./common-components/Box/Box.cjs"),b=require("./common-components/Button/Button.cjs"),q=require("./common-components/Canvas/Canvas.cjs"),p=require("./common-components/Field/Field.cjs"),H=require("./common-components/ContextMenu/ContextMenu.cjs"),G=require("./common-components/icons/UndoIcon.cjs"),F=require("./common-components/icons/RedoIcon.cjs"),U=require("./common-components/icons/GripIcon.cjs");require("react/jsx-runtime");const g=require("./utils/cn.utils.cjs"),h=require("./utils/typo.utils.cjs"),v=require("./utils/id.utils.cjs"),r=require("./utils/table.utils.cjs"),B=require("./utils/trackChanges.utils.cjs"),y=require("./utils/comments.utils.cjs"),x=require("./utils/history.utils.cjs"),i=require("./utils/premium.utils.cjs"),V=require("./utils/license.utils.cjs"),Y=require("./utils/paste.utils.cjs");require("./utils/exportDocument.utils.cjs");const s=require("./utils/selection.utils.cjs"),l=require("./utils/toolbarStorage.utils.cjs"),c=require("./utils/collab.utils.cjs"),T=require("./utils/workspace.utils.cjs"),A=require("./plugins/ai/aiPlugin.cjs"),f=require("./plugins/ai/demoProvider.cjs"),w=require("./plugins/ai/openaiProvider.cjs"),z=require("./plugins/ai/inkServerProvider.cjs"),N=require("./plugins/host/inkPlugins.cjs"),E=require("./plugins/titles/titles.const.cjs"),W=require("./plugins/titles/titles.utils.cjs"),o=require("./plugins/excel/excel.utils.cjs"),I=require("./plugins/graph/graph.const.cjs"),R=require("./plugins/graph/graph.utils.cjs"),P=require("./plugins/theme/theme.const.cjs"),a=require("./plugins/theme/inkTheme.cjs"),X=require("./hooks/useInkCollaboration.cjs");exports.InkEditor=D.InkEditor;exports.InkTabs=L.InkTabs;exports.InkWorkspace=S.InkWorkspace;exports.TOOLBAR_STORAGE_KEY_HIDDEN=u.TOOLBAR_STORAGE_KEY_HIDDEN;exports.TOOLBAR_STORAGE_KEY_ITEMS=u.TOOLBAR_STORAGE_KEY_ITEMS;exports.COLOR_MODE_DARK=_.COLOR_MODE_DARK;exports.COLOR_MODE_LIGHT=_.COLOR_MODE_LIGHT;exports.COLOR_MODE_SYSTEM=_.COLOR_MODE_SYSTEM;exports.INK_DEFAULT_COLOR_MODE=_.INK_DEFAULT_COLOR_MODE;exports.TYPO_DICTIONARY=m.TYPO_DICTIONARY;exports.INK_FONT_OPTIONS=K.INK_FONT_OPTIONS;exports.INK_LIST_OPTIONS=C.INK_LIST_OPTIONS;exports.INK_FIND_REPLACE_OPTIONS=M.INK_FIND_REPLACE_OPTIONS;exports.INK_CHROME_TOOLBAR=e.INK_CHROME_TOOLBAR;exports.INK_COLLAB_TOOLBAR=e.INK_COLLAB_TOOLBAR;exports.INK_DEFAULT_FEATURES=e.INK_DEFAULT_FEATURES;exports.INK_DEFAULT_TOOLBAR=e.INK_DEFAULT_TOOLBAR;exports.INK_HEADING_OPTIONS=e.INK_HEADING_OPTIONS;exports.INK_QUICK_ACTIONS=e.INK_QUICK_ACTIONS;exports.INK_SIMPLE_TOOLBAR=e.INK_SIMPLE_TOOLBAR;exports.INK_SLASH_COMMANDS=e.INK_SLASH_COMMANDS;exports.INK_TRANSLATE_LANGUAGES=e.INK_TRANSLATE_LANGUAGES;exports.INK_AI_DEMO_MODEL_ID=n.INK_AI_DEMO_MODEL_ID;exports.INK_AI_DEMO_PROVIDER_ID=n.INK_AI_DEMO_PROVIDER_ID;exports.INK_AI_MODEL_CATALOG=n.INK_AI_MODEL_CATALOG;exports.INK_AI_INK_SERVER_PROVIDER_ID=t.INK_AI_INK_SERVER_PROVIDER_ID;exports.INK_AI_OPENAI_MODEL_GPT_4_1=t.INK_AI_OPENAI_MODEL_GPT_4_1;exports.INK_AI_OPENAI_MODEL_GPT_4_1_MINI=t.INK_AI_OPENAI_MODEL_GPT_4_1_MINI;exports.INK_AI_OPENAI_PROVIDER_ID=t.INK_AI_OPENAI_PROVIDER_ID;exports.INK_AI_OPENAI_PROVIDER_NAME=t.INK_AI_OPENAI_PROVIDER_NAME;exports.INK_PREMIUM_FEATURES=O.INK_PREMIUM_FEATURES;exports.INK_PREMIUM_LICENSE_PREFIX=O.INK_PREMIUM_LICENSE_PREFIX;exports.INK_DEFAULT_ICONS=d.INK_DEFAULT_ICONS;exports.Box=k.Box;exports.Button=b.Button;exports.Canvas=q.Canvas;exports.Field=p.Field;exports.ContextMenu=H.ContextMenu;exports.UndoIcon=G.UndoIcon;exports.RedoIcon=F.RedoIcon;exports.GripIcon=U.GripIcon;exports.cn=g.cn;exports.applyTypoAutoFix=h.applyTypoAutoFix;exports.createInkId=v.createInkId;exports.buildTableHtml=r.buildTableHtml;exports.deleteTableColumn=r.deleteTableColumn;exports.deleteTableRow=r.deleteTableRow;exports.getTableCellFromSelection=r.getTableCellFromSelection;exports.insertTableColumn=r.insertTableColumn;exports.insertTableRow=r.insertTableRow;exports.toggleTableHeaderRow=r.toggleTableHeaderRow;exports.createTrackChange=B.createTrackChange;exports.createCommentThread=y.createCommentThread;exports.InkHistoryStack=x.InkHistoryStack;exports.hasInkPremiumFeature=i.hasInkPremiumFeature;exports.isInkPremiumLicenseKey=i.isInkPremiumLicenseKey;exports.resolveInkPremium=i.resolveInkPremium;exports.themeTokensToStyle=i.themeTokensToStyle;exports.mintInkPremiumLicenseKey=V.mintInkPremiumLicenseKey;exports.sanitizePastedHtml=Y.sanitizePastedHtml;exports.captureSelectionInRoot=s.captureSelectionInRoot;exports.restoreSelectionInRoot=s.restoreSelectionInRoot;exports.withPreservedSelection=s.withPreservedSelection;exports.buildVisibleToolbarItems=l.buildVisibleToolbarItems;exports.listCustomizableToolbarOptions=l.listCustomizableToolbarOptions;exports.normalizeToolbarItems=l.normalizeToolbarItems;exports.createDefaultCollaborator=c.createDefaultCollaborator;exports.filterActiveCollaborators=c.filterActiveCollaborators;exports.getCollaboratorInitials=c.getCollaboratorInitials;exports.createDefaultDocument=T.createDefaultDocument;exports.filterDocuments=T.filterDocuments;exports.sortDocuments=T.sortDocuments;exports.createInkAiPlugin=A.createInkAiPlugin;exports.inkAi=A.inkAi;exports.createDemoAiProvider=f.createDemoAiProvider;exports.createOpenAiProvider=w.createOpenAiProvider;exports.createInkServerAiProvider=z.createInkServerAiProvider;exports.createInkPluginHost=N.createInkPluginHost;exports.inkPlugins=N.inkPlugins;exports.TITLE_PREVIEW_TEXT=E.TITLE_PREVIEW_TEXT;exports.TITLE_STYLE_DEFAULT=E.TITLE_STYLE_DEFAULT;exports.TITLE_STYLE_IDS=E.TITLE_STYLE_IDS;exports.buildTitleHtml=W.buildTitleHtml;exports.CSV_ACCEPT=o.CSV_ACCEPT;exports.createEmptyExcelGrid=o.createEmptyExcelGrid;exports.excelGridToTableHtml=o.excelGridToTableHtml;exports.parseCsvText=o.parseCsvText;exports.setExcelCell=o.setExcelCell;exports.GRAPH_KINDS=I.GRAPH_KINDS;exports.GRAPH_KIND_DEFAULT=I.GRAPH_KIND_DEFAULT;exports.GRAPH_KIND_LABELS=I.GRAPH_KIND_LABELS;exports.GRAPH_SAMPLE=I.GRAPH_SAMPLE;exports.buildGraphHtml=R.buildGraphHtml;exports.parseGraphColors=R.parseGraphColors;exports.INK_THEMES=P.INK_THEMES;exports.THEME_DEFAULT=P.THEME_DEFAULT;exports.applyInkTheme=a.applyInkTheme;exports.createInkThemePlugin=a.createInkThemePlugin;exports.inkTheme=a.inkTheme;exports.useInkCollaboration=X.useInkCollaboration;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
export { InkEditor } from './components';
|
|
1
|
+
export { InkEditor, InkTabs, InkWorkspace } from './components';
|
|
2
2
|
export { Box, Button, Canvas, ContextMenu, Field, UndoIcon, RedoIcon, GripIcon, } from './common-components';
|
|
3
3
|
export type { BoxProps, ButtonProps, CanvasProps, ContextMenuItem, ContextMenuProps, FieldProps, } from './common-components';
|
|
4
|
-
export { applyTypoAutoFix, cn, buildTableHtml, getTableCellFromSelection, insertTableRow, insertTableColumn, deleteTableRow, deleteTableColumn, toggleTableHeaderRow, buildVisibleToolbarItems, captureSelectionInRoot, createInkId, createCommentThread, createTrackChange, InkHistoryStack, listCustomizableToolbarOptions, normalizeToolbarItems, resolveInkPremium, restoreSelectionInRoot, hasInkPremiumFeature, isInkPremiumLicenseKey, mintInkPremiumLicenseKey, themeTokensToStyle, sanitizePastedHtml, withPreservedSelection, } from './utils';
|
|
4
|
+
export { applyTypoAutoFix, cn, buildTableHtml, getTableCellFromSelection, insertTableRow, insertTableColumn, deleteTableRow, deleteTableColumn, toggleTableHeaderRow, buildVisibleToolbarItems, captureSelectionInRoot, createInkId, createCommentThread, createTrackChange, InkHistoryStack, listCustomizableToolbarOptions, normalizeToolbarItems, resolveInkPremium, restoreSelectionInRoot, hasInkPremiumFeature, isInkPremiumLicenseKey, mintInkPremiumLicenseKey, themeTokensToStyle, sanitizePastedHtml, withPreservedSelection, getCollaboratorInitials, filterActiveCollaborators, createDefaultCollaborator, createDefaultDocument, filterDocuments, sortDocuments, } from './utils';
|
|
5
5
|
export type { SavedSelection } from './utils';
|
|
6
6
|
export { inkAi, createInkAiPlugin, createDemoAiProvider, createOpenAiProvider, createInkServerAiProvider, } from './plugins/ai';
|
|
7
7
|
export { inkPlugins, createInkPluginHost } from './plugins/host';
|
|
8
8
|
export { TITLE_PREVIEW_TEXT, TITLE_STYLE_DEFAULT, TITLE_STYLE_IDS, buildTitleHtml, CSV_ACCEPT, createEmptyExcelGrid, excelGridToTableHtml, parseCsvText, setExcelCell, GRAPH_KIND_DEFAULT, GRAPH_KIND_LABELS, GRAPH_KINDS, GRAPH_SAMPLE, buildGraphHtml, parseGraphColors, INK_THEMES, THEME_DEFAULT, applyInkTheme, createInkThemePlugin, inkTheme, } from './plugins';
|
|
9
9
|
export type { TitleStyleId, ExcelGrid, GraphColors, GraphKind, GraphPoint, InkThemeId } from './plugins';
|
|
10
10
|
export { INK_DEFAULT_TOOLBAR, INK_SIMPLE_TOOLBAR, INK_COLLAB_TOOLBAR, INK_CHROME_TOOLBAR, INK_HEADING_OPTIONS, INK_FONT_OPTIONS, INK_LIST_OPTIONS, INK_FIND_REPLACE_OPTIONS, INK_SLASH_COMMANDS, INK_AI_MODEL_CATALOG, INK_AI_DEMO_PROVIDER_ID, INK_AI_DEMO_MODEL_ID, INK_AI_OPENAI_PROVIDER_ID, INK_AI_OPENAI_PROVIDER_NAME, INK_AI_OPENAI_MODEL_GPT_4_1_MINI, INK_AI_OPENAI_MODEL_GPT_4_1, INK_AI_INK_SERVER_PROVIDER_ID, INK_TRANSLATE_LANGUAGES, INK_QUICK_ACTIONS, INK_DEFAULT_FEATURES, INK_DEFAULT_ICONS, INK_DEFAULT_COLOR_MODE, COLOR_MODE_LIGHT, COLOR_MODE_DARK, COLOR_MODE_SYSTEM, TOOLBAR_STORAGE_KEY_HIDDEN, TOOLBAR_STORAGE_KEY_ITEMS, INK_PREMIUM_FEATURES, INK_PREMIUM_LICENSE_PREFIX, TYPO_DICTIONARY, } from './constants';
|
|
11
|
-
export type { InkEditorProps, ToolbarOption, TypoFixResult, SlashCommandItem, SlashInsert, InkAiCapability, InkAiRequest, InkAiResponse, InkAiAgent, InkAiPlugin, InkAiChatTurn, InkAiDiffSuggestion, InkAiReviewSuggestion, InkAiContextFile, InkAiDocumentSnapshot, InkAiModelCatalogEntry, InkAiProvider, InkAiConfig, InkAiUiTheme, InkCommentReply, InkCommentThread, InkTrackChange, InkTrackChangeType, InkFeaturesConfig, InkFeatureName, InkEditorVariant, InkEditorChrome, InkColorMode, InkAiPlacement, InkPremiumFeature, InkPasteMode, InkIconKey, InkIconMap, InkThemeTokens, InkPremiumConfig, InkResolvedPremium, InkImageUploadHandler, OutlineItem, InkHostPlugin, InkHostPluginId, } from './types';
|
|
11
|
+
export type { InkEditorProps, ToolbarOption, TypoFixResult, SlashCommandItem, SlashInsert, InkAiCapability, InkAiRequest, InkAiResponse, InkAiAgent, InkAiPlugin, InkAiChatTurn, InkAiDiffSuggestion, InkAiReviewSuggestion, InkAiContextFile, InkAiDocumentSnapshot, InkAiModelCatalogEntry, InkAiProvider, InkAiConfig, InkAiUiTheme, InkCommentReply, InkCommentThread, InkTrackChange, InkTrackChangeType, InkFeaturesConfig, InkFeatureName, InkEditorVariant, InkEditorChrome, InkColorMode, InkAiPlacement, InkPremiumFeature, InkPasteMode, InkIconKey, InkIconMap, InkThemeTokens, InkPremiumConfig, InkResolvedPremium, InkImageUploadHandler, OutlineItem, InkHostPlugin, InkHostPluginId, InkCollaborator, InkCollaboratorCursor, InkCollaboratorCursorSelection, InkCollaboratorRole, InkCollaboratorStatus, InkCollaborationConfig, InkDocument, InkFolder, InkSplitMode, InkTabsProps, InkWorkspaceProps, } from './types';
|
|
12
|
+
export { useInkCollaboration } from './hooks';
|
|
13
|
+
export type { UseInkCollaborationOptions, UseInkCollaborationReturn, } from './hooks';
|
|
12
14
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EACL,GAAG,EACH,MAAM,EACN,MAAM,EACN,WAAW,EACX,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,QAAQ,GACT,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EACV,QAAQ,EACR,WAAW,EACX,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,UAAU,GACX,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gBAAgB,EAChB,EAAE,EACF,cAAc,EACd,yBAAyB,EACzB,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,oBAAoB,EACpB,wBAAwB,EACxB,sBAAsB,EACtB,WAAW,EACX,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EACf,8BAA8B,EAC9B,qBAAqB,EACrB,iBAAiB,EACjB,sBAAsB,EACtB,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,uBAAuB,EACvB,yBAAyB,EACzB,yBAAyB,EACzB,qBAAqB,EACrB,eAAe,EACf,aAAa,GACd,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EACL,KAAK,EACL,iBAAiB,EACjB,oBAAoB,EACpB,oBAAoB,EACpB,yBAAyB,GAC1B,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,UAAU,EACV,oBAAoB,EACpB,oBAAoB,EACpB,YAAY,EACZ,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,UAAU,EACV,aAAa,EACb,aAAa,EACb,oBAAoB,EACpB,QAAQ,GACT,MAAM,WAAW,CAAC;AACnB,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACzG,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,wBAAwB,EACxB,kBAAkB,EAClB,oBAAoB,EACpB,uBAAuB,EACvB,oBAAoB,EACpB,yBAAyB,EACzB,2BAA2B,EAC3B,gCAAgC,EAChC,2BAA2B,EAC3B,6BAA6B,EAC7B,uBAAuB,EACvB,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,sBAAsB,EACtB,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,0BAA0B,EAC1B,yBAAyB,EACzB,oBAAoB,EACpB,0BAA0B,EAC1B,eAAe,GAChB,MAAM,aAAa,CAAC;AACrB,YAAY,EACV,cAAc,EACd,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,eAAe,EACf,YAAY,EACZ,aAAa,EACb,UAAU,EACV,WAAW,EACX,aAAa,EACb,mBAAmB,EACnB,qBAAqB,EACrB,gBAAgB,EAChB,qBAAqB,EACrB,sBAAsB,EACtB,aAAa,EACb,WAAW,EACX,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,UAAU,EACV,UAAU,EACV,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,qBAAqB,EACrB,WAAW,EACX,aAAa,EACb,eAAe,EACf,eAAe,EACf,qBAAqB,EACrB,8BAA8B,EAC9B,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,EACtB,WAAW,EACX,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,iBAAiB,GAClB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAC9C,YAAY,EACV,0BAA0B,EAC1B,yBAAyB,GAC1B,MAAM,SAAS,CAAC"}
|