@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
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { InkTabs as ae } from "../InkTabs/InkTabs.js";
|
|
3
|
+
import { InkEditor as y } from "../InkEditor/InkEditor.js";
|
|
4
|
+
import { PresenceStack as ie } from "../InkEditor/components/PresenceStack/PresenceStack.js";
|
|
5
|
+
import { useInkWorkspace as ne } from "./hooks/useInkWorkspace.js";
|
|
6
|
+
import { SidebarToggleIcon as te, SingleViewIcon as le, SplitVerticalIcon as ce, SplitHorizontalIcon as oe, SaveDocIcon as re, NewFolderIcon as se, FileDocumentIcon as de, RenamePencilIcon as pe, CloseCrossIcon as ke } from "./components/WorkspaceIcons.js";
|
|
7
|
+
import { NUMBER_ZERO as me, NUMBER_ONE as Ne } from "../../constants/numbers.js";
|
|
8
|
+
import { EMPTY_STRING as D } from "../../constants/generals.const.js";
|
|
9
|
+
import "../../constants/openai.const.js";
|
|
10
|
+
import { cn as d } from "../../utils/cn.utils.js";
|
|
11
|
+
import "../../utils/paste.utils.js";
|
|
12
|
+
import "../../utils/exportDocument.utils.js";
|
|
13
|
+
import { Button as t } from "../../common-components/Button/Button.js";
|
|
14
|
+
import "react";
|
|
15
|
+
import "react-dom";
|
|
16
|
+
import { INK_WORKSPACE_HIDE_EXPLORER_TITLE as W, INK_WORKSPACE_SHOW_EXPLORER_TITLE as g, INK_WORKSPACE_TITLE as f, INK_WORKSPACE_DOCS_SUFFIX as _e, INK_WORKSPACE_SPLIT_VIEW_LABEL as _, INK_WORKSPACE_SINGLE_VIEW_TITLE as Ee, INK_SPLIT_MODE_NONE as E, INK_WORKSPACE_SPLIT_SIDE_TITLE as Ie, INK_SPLIT_MODE_VERTICAL as F, INK_WORKSPACE_SPLIT_STACKED_TITLE as he, INK_SPLIT_MODE_HORIZONTAL as M, INK_WORKSPACE_SAVE_TITLE as B, INK_WORKSPACE_SEARCH_PLACEHOLDER as be, INK_WORKSPACE_NEW_DOC_BUTTON as I, INK_WORKSPACE_NEW_FOLDER as h, INK_WORKSPACE_CLOSE_FOLDER_BUTTON as b, INK_WORKSPACE_UNTITLED_FALLBACK as Ce, INK_WORKSPACE_RENAME_TITLE as x, INK_WORKSPACE_DELETE_TITLE as H } from "../../constants/workspace.const.js";
|
|
17
|
+
const Fe = (C) => {
|
|
18
|
+
const {
|
|
19
|
+
documents: p,
|
|
20
|
+
activeDocumentId: S,
|
|
21
|
+
onActiveDocumentChange: T,
|
|
22
|
+
onDocumentChange: o,
|
|
23
|
+
onDocumentDelete: m,
|
|
24
|
+
onDocumentRename: U,
|
|
25
|
+
onDocumentSave: u,
|
|
26
|
+
folders: O = [],
|
|
27
|
+
onFolderCreate: K,
|
|
28
|
+
onFolderDelete: R,
|
|
29
|
+
collaboration: r,
|
|
30
|
+
editorProps: v = {},
|
|
31
|
+
className: V = D,
|
|
32
|
+
style: X
|
|
33
|
+
} = C, {
|
|
34
|
+
sidebarOpen: k,
|
|
35
|
+
setSidebarOpen: j,
|
|
36
|
+
splitMode: s,
|
|
37
|
+
setSplitMode: N,
|
|
38
|
+
setSecondaryDocId: G,
|
|
39
|
+
searchQuery: Q,
|
|
40
|
+
setSearchQuery: Z,
|
|
41
|
+
editingDocId: $,
|
|
42
|
+
editTitle: z,
|
|
43
|
+
setEditTitle: Y,
|
|
44
|
+
activeDocument: c,
|
|
45
|
+
secondaryDocument: l,
|
|
46
|
+
filteredDocs: q,
|
|
47
|
+
handleCreateDocument: w,
|
|
48
|
+
handleStartRename: A,
|
|
49
|
+
handleSaveRename: L,
|
|
50
|
+
handleCancelRename: J
|
|
51
|
+
} = ne(C);
|
|
52
|
+
return /* @__PURE__ */ i(
|
|
53
|
+
"div",
|
|
54
|
+
{
|
|
55
|
+
className: d("ink-workspace-root", V),
|
|
56
|
+
style: X,
|
|
57
|
+
"data-split-mode": s,
|
|
58
|
+
children: [
|
|
59
|
+
/* @__PURE__ */ i("header", { className: "ink-workspace-header", children: [
|
|
60
|
+
/* @__PURE__ */ i("div", { className: "ink-workspace-header-left", children: [
|
|
61
|
+
/* @__PURE__ */ e(
|
|
62
|
+
t,
|
|
63
|
+
{
|
|
64
|
+
type: "button",
|
|
65
|
+
className: "ink-workspace-toggle-btn",
|
|
66
|
+
onClick: () => j(!k),
|
|
67
|
+
title: k ? W : g,
|
|
68
|
+
"aria-label": k ? W : g,
|
|
69
|
+
children: /* @__PURE__ */ e(te, {})
|
|
70
|
+
}
|
|
71
|
+
),
|
|
72
|
+
/* @__PURE__ */ e("span", { className: "ink-workspace-title", children: f }),
|
|
73
|
+
/* @__PURE__ */ i("span", { className: "ink-workspace-count", children: [
|
|
74
|
+
"(",
|
|
75
|
+
p.length,
|
|
76
|
+
" ",
|
|
77
|
+
_e,
|
|
78
|
+
")"
|
|
79
|
+
] })
|
|
80
|
+
] }),
|
|
81
|
+
/* @__PURE__ */ i("div", { className: "ink-workspace-header-right", children: [
|
|
82
|
+
/* @__PURE__ */ i("div", { className: "ink-workspace-split-controls", role: "group", "aria-label": _, children: [
|
|
83
|
+
/* @__PURE__ */ e(
|
|
84
|
+
t,
|
|
85
|
+
{
|
|
86
|
+
type: "button",
|
|
87
|
+
className: d("ink-workspace-icon-btn", s === E && "ink-active"),
|
|
88
|
+
onClick: () => N(E),
|
|
89
|
+
title: Ee,
|
|
90
|
+
children: /* @__PURE__ */ e(le, {})
|
|
91
|
+
}
|
|
92
|
+
),
|
|
93
|
+
/* @__PURE__ */ e(
|
|
94
|
+
t,
|
|
95
|
+
{
|
|
96
|
+
type: "button",
|
|
97
|
+
className: d("ink-workspace-icon-btn", s === F && "ink-active"),
|
|
98
|
+
onClick: () => N(F),
|
|
99
|
+
title: Ie,
|
|
100
|
+
children: /* @__PURE__ */ e(ce, {})
|
|
101
|
+
}
|
|
102
|
+
),
|
|
103
|
+
/* @__PURE__ */ e(
|
|
104
|
+
t,
|
|
105
|
+
{
|
|
106
|
+
type: "button",
|
|
107
|
+
className: d("ink-workspace-icon-btn", s === M && "ink-active"),
|
|
108
|
+
onClick: () => N(M),
|
|
109
|
+
title: he,
|
|
110
|
+
children: /* @__PURE__ */ e(oe, {})
|
|
111
|
+
}
|
|
112
|
+
)
|
|
113
|
+
] }),
|
|
114
|
+
u && c && /* @__PURE__ */ e(
|
|
115
|
+
t,
|
|
116
|
+
{
|
|
117
|
+
type: "button",
|
|
118
|
+
className: "ink-workspace-icon-btn",
|
|
119
|
+
onClick: () => u(c.id),
|
|
120
|
+
title: B,
|
|
121
|
+
"aria-label": B,
|
|
122
|
+
children: /* @__PURE__ */ e(re, {})
|
|
123
|
+
}
|
|
124
|
+
),
|
|
125
|
+
(r == null ? void 0 : r.collaborators) && /* @__PURE__ */ e(
|
|
126
|
+
ie,
|
|
127
|
+
{
|
|
128
|
+
collaborators: r.collaborators,
|
|
129
|
+
maxAvatars: r.maxAvatars
|
|
130
|
+
}
|
|
131
|
+
)
|
|
132
|
+
] })
|
|
133
|
+
] }),
|
|
134
|
+
/* @__PURE__ */ i("div", { className: "ink-workspace-body", children: [
|
|
135
|
+
k && /* @__PURE__ */ i("aside", { className: "ink-workspace-sidebar", "aria-label": f, children: [
|
|
136
|
+
/* @__PURE__ */ i("div", { className: "ink-workspace-sidebar-toolbar", children: [
|
|
137
|
+
/* @__PURE__ */ e(
|
|
138
|
+
"input",
|
|
139
|
+
{
|
|
140
|
+
type: "text",
|
|
141
|
+
className: "ink-workspace-search-input",
|
|
142
|
+
placeholder: be,
|
|
143
|
+
value: Q,
|
|
144
|
+
onChange: (a) => Z(a.target.value)
|
|
145
|
+
}
|
|
146
|
+
),
|
|
147
|
+
/* @__PURE__ */ e(
|
|
148
|
+
t,
|
|
149
|
+
{
|
|
150
|
+
type: "button",
|
|
151
|
+
className: "ink-workspace-new-doc-btn",
|
|
152
|
+
onClick: w,
|
|
153
|
+
title: I,
|
|
154
|
+
"aria-label": I,
|
|
155
|
+
children: I
|
|
156
|
+
}
|
|
157
|
+
),
|
|
158
|
+
K && /* @__PURE__ */ e(
|
|
159
|
+
t,
|
|
160
|
+
{
|
|
161
|
+
type: "button",
|
|
162
|
+
className: "ink-workspace-icon-btn",
|
|
163
|
+
onClick: () => K(h),
|
|
164
|
+
title: h,
|
|
165
|
+
"aria-label": h,
|
|
166
|
+
children: /* @__PURE__ */ e(se, {})
|
|
167
|
+
}
|
|
168
|
+
)
|
|
169
|
+
] }),
|
|
170
|
+
O.length > me && /* @__PURE__ */ e("div", { className: "ink-workspace-folders-section", children: O.map((a) => /* @__PURE__ */ i("div", { className: "ink-workspace-folder-item", children: [
|
|
171
|
+
/* @__PURE__ */ e("span", { className: "ink-doc-icon", children: "📁" }),
|
|
172
|
+
/* @__PURE__ */ e("span", { className: "ink-doc-title", children: a.name }),
|
|
173
|
+
R && /* @__PURE__ */ e(
|
|
174
|
+
t,
|
|
175
|
+
{
|
|
176
|
+
type: "button",
|
|
177
|
+
className: "ink-doc-action-btn ink-delete",
|
|
178
|
+
onClick: () => R(a.id),
|
|
179
|
+
title: b,
|
|
180
|
+
"aria-label": b,
|
|
181
|
+
children: b
|
|
182
|
+
}
|
|
183
|
+
)
|
|
184
|
+
] }, a.id)) }),
|
|
185
|
+
/* @__PURE__ */ e("div", { className: "ink-workspace-doc-list", role: "tree", children: q.map((a) => {
|
|
186
|
+
const P = a.id === S, ee = $ === a.id;
|
|
187
|
+
return /* @__PURE__ */ i(
|
|
188
|
+
"div",
|
|
189
|
+
{
|
|
190
|
+
role: "treeitem",
|
|
191
|
+
"aria-selected": P,
|
|
192
|
+
className: d("ink-workspace-doc-item", P && "ink-doc-active"),
|
|
193
|
+
onClick: () => T(a.id),
|
|
194
|
+
children: [
|
|
195
|
+
/* @__PURE__ */ e("span", { className: "ink-doc-icon", children: a.icon || /* @__PURE__ */ e(de, {}) }),
|
|
196
|
+
ee ? /* @__PURE__ */ e(
|
|
197
|
+
"input",
|
|
198
|
+
{
|
|
199
|
+
type: "text",
|
|
200
|
+
className: "ink-doc-title-input",
|
|
201
|
+
value: z,
|
|
202
|
+
autoFocus: !0,
|
|
203
|
+
onChange: (n) => Y(n.target.value),
|
|
204
|
+
onBlur: () => L(a.id),
|
|
205
|
+
onKeyDown: (n) => {
|
|
206
|
+
n.key === "Enter" && L(a.id), n.key === "Escape" && J();
|
|
207
|
+
},
|
|
208
|
+
onClick: (n) => n.stopPropagation()
|
|
209
|
+
}
|
|
210
|
+
) : /* @__PURE__ */ e(
|
|
211
|
+
"span",
|
|
212
|
+
{
|
|
213
|
+
className: "ink-doc-title",
|
|
214
|
+
onDoubleClick: (n) => A(a.id, a.title, n),
|
|
215
|
+
children: a.title || Ce
|
|
216
|
+
}
|
|
217
|
+
),
|
|
218
|
+
a.isDirty && /* @__PURE__ */ e("span", { className: "ink-doc-dirty-dot" }),
|
|
219
|
+
/* @__PURE__ */ i("div", { className: "ink-doc-actions", children: [
|
|
220
|
+
/* @__PURE__ */ e(
|
|
221
|
+
t,
|
|
222
|
+
{
|
|
223
|
+
type: "button",
|
|
224
|
+
className: "ink-doc-action-btn",
|
|
225
|
+
onClick: (n) => A(a.id, a.title, n),
|
|
226
|
+
title: x,
|
|
227
|
+
"aria-label": x,
|
|
228
|
+
children: /* @__PURE__ */ e(pe, {})
|
|
229
|
+
}
|
|
230
|
+
),
|
|
231
|
+
p.length > Ne && m && /* @__PURE__ */ e(
|
|
232
|
+
t,
|
|
233
|
+
{
|
|
234
|
+
type: "button",
|
|
235
|
+
className: "ink-doc-action-btn ink-delete",
|
|
236
|
+
onClick: (n) => {
|
|
237
|
+
n.stopPropagation(), m(a.id);
|
|
238
|
+
},
|
|
239
|
+
title: H,
|
|
240
|
+
"aria-label": H,
|
|
241
|
+
children: /* @__PURE__ */ e(ke, {})
|
|
242
|
+
}
|
|
243
|
+
)
|
|
244
|
+
] })
|
|
245
|
+
]
|
|
246
|
+
},
|
|
247
|
+
a.id
|
|
248
|
+
);
|
|
249
|
+
}) })
|
|
250
|
+
] }),
|
|
251
|
+
/* @__PURE__ */ i("main", { className: d("ink-workspace-main-area", `ink-split-${s}`), children: [
|
|
252
|
+
/* @__PURE__ */ i("section", { className: "ink-workspace-pane ink-primary-pane", children: [
|
|
253
|
+
/* @__PURE__ */ e(
|
|
254
|
+
ae,
|
|
255
|
+
{
|
|
256
|
+
documents: p,
|
|
257
|
+
activeDocumentId: S,
|
|
258
|
+
onTabSelect: T,
|
|
259
|
+
onTabClose: m,
|
|
260
|
+
onTabAdd: w,
|
|
261
|
+
onTabRename: U
|
|
262
|
+
}
|
|
263
|
+
),
|
|
264
|
+
c && /* @__PURE__ */ e("div", { className: "ink-workspace-editor-wrapper", children: /* @__PURE__ */ e(
|
|
265
|
+
y,
|
|
266
|
+
{
|
|
267
|
+
value: c.content,
|
|
268
|
+
onChange: (a) => o == null ? void 0 : o(c.id, a),
|
|
269
|
+
readOnly: c.readOnly,
|
|
270
|
+
collaboration: r,
|
|
271
|
+
...v
|
|
272
|
+
},
|
|
273
|
+
c.id
|
|
274
|
+
) })
|
|
275
|
+
] }),
|
|
276
|
+
s !== E && /* @__PURE__ */ i("section", { className: "ink-workspace-pane ink-secondary-pane", children: [
|
|
277
|
+
/* @__PURE__ */ i("div", { className: "ink-secondary-pane-header", children: [
|
|
278
|
+
/* @__PURE__ */ e("span", { className: "ink-secondary-pane-label", children: _ }),
|
|
279
|
+
/* @__PURE__ */ e(
|
|
280
|
+
"select",
|
|
281
|
+
{
|
|
282
|
+
className: "ink-secondary-pane-select",
|
|
283
|
+
value: (l == null ? void 0 : l.id) || D,
|
|
284
|
+
onChange: (a) => G(a.target.value),
|
|
285
|
+
"aria-label": _,
|
|
286
|
+
children: p.map((a) => /* @__PURE__ */ e("option", { value: a.id, children: a.title }, a.id))
|
|
287
|
+
}
|
|
288
|
+
)
|
|
289
|
+
] }),
|
|
290
|
+
l && /* @__PURE__ */ e("div", { className: "ink-workspace-editor-wrapper", children: /* @__PURE__ */ e(
|
|
291
|
+
y,
|
|
292
|
+
{
|
|
293
|
+
value: l.content,
|
|
294
|
+
onChange: (a) => o == null ? void 0 : o(l.id, a),
|
|
295
|
+
readOnly: l.readOnly,
|
|
296
|
+
...v
|
|
297
|
+
},
|
|
298
|
+
`sec-${l.id}`
|
|
299
|
+
) })
|
|
300
|
+
] })
|
|
301
|
+
] })
|
|
302
|
+
] })
|
|
303
|
+
]
|
|
304
|
+
}
|
|
305
|
+
);
|
|
306
|
+
};
|
|
307
|
+
export {
|
|
308
|
+
Fe as InkWorkspace
|
|
309
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=()=>e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":"true",children:[e.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}),e.jsx("line",{x1:"9",y1:"3",x2:"9",y2:"21"})]}),t=()=>e.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":"true",children:e.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"})}),o=()=>e.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":"true",children:[e.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}),e.jsx("line",{x1:"12",y1:"3",x2:"12",y2:"21"})]}),r=()=>e.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":"true",children:[e.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}),e.jsx("line",{x1:"3",y1:"12",x2:"21",y2:"12"})]}),n=()=>e.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":"true",children:[e.jsx("path",{d:"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"}),e.jsx("polyline",{points:"17 21 17 13 7 13 7 21"}),e.jsx("polyline",{points:"7 3 7 8 15 8"})]}),s=()=>e.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":"true",children:[e.jsx("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"}),e.jsx("line",{x1:"12",y1:"11",x2:"12",y2:"17"}),e.jsx("line",{x1:"9",y1:"14",x2:"15",y2:"14"})]}),h=()=>e.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":"true",children:[e.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),e.jsx("polyline",{points:"14 2 14 8 20 8"})]}),l=()=>e.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":"true",children:[e.jsx("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),e.jsx("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]}),c=()=>e.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":"true",children:[e.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]});exports.CloseCrossIcon=c;exports.FileDocumentIcon=h;exports.NewFolderIcon=s;exports.RenamePencilIcon=l;exports.SaveDocIcon=n;exports.SidebarToggleIcon=i;exports.SingleViewIcon=t;exports.SplitHorizontalIcon=r;exports.SplitVerticalIcon=o;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare const SidebarToggleIcon: React.FC;
|
|
3
|
+
export declare const SingleViewIcon: React.FC;
|
|
4
|
+
export declare const SplitVerticalIcon: React.FC;
|
|
5
|
+
export declare const SplitHorizontalIcon: React.FC;
|
|
6
|
+
export declare const SaveDocIcon: React.FC;
|
|
7
|
+
export declare const NewFolderIcon: React.FC;
|
|
8
|
+
export declare const FileDocumentIcon: React.FC;
|
|
9
|
+
export declare const RenamePencilIcon: React.FC;
|
|
10
|
+
export declare const CloseCrossIcon: React.FC;
|
|
11
|
+
//# sourceMappingURL=WorkspaceIcons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkspaceIcons.d.ts","sourceRoot":"","sources":["../../../../src/components/InkWorkspace/components/WorkspaceIcons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAKrC,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAIlC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAKrC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAKvC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAM/B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAMjC,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAKpC,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAKpC,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAKlC,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
const r = () => /* @__PURE__ */ i("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", "aria-hidden": "true", children: [
|
|
3
|
+
/* @__PURE__ */ e("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2", ry: "2" }),
|
|
4
|
+
/* @__PURE__ */ e("line", { x1: "9", y1: "3", x2: "9", y2: "21" })
|
|
5
|
+
] }), o = () => /* @__PURE__ */ e("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", "aria-hidden": "true", children: /* @__PURE__ */ e("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2", ry: "2" }) }), n = () => /* @__PURE__ */ i("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", "aria-hidden": "true", children: [
|
|
6
|
+
/* @__PURE__ */ e("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2", ry: "2" }),
|
|
7
|
+
/* @__PURE__ */ e("line", { x1: "12", y1: "3", x2: "12", y2: "21" })
|
|
8
|
+
] }), h = () => /* @__PURE__ */ i("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", "aria-hidden": "true", children: [
|
|
9
|
+
/* @__PURE__ */ e("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2", ry: "2" }),
|
|
10
|
+
/* @__PURE__ */ e("line", { x1: "3", y1: "12", x2: "21", y2: "12" })
|
|
11
|
+
] }), l = () => /* @__PURE__ */ i("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", "aria-hidden": "true", children: [
|
|
12
|
+
/* @__PURE__ */ e("path", { d: "M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z" }),
|
|
13
|
+
/* @__PURE__ */ e("polyline", { points: "17 21 17 13 7 13 7 21" }),
|
|
14
|
+
/* @__PURE__ */ e("polyline", { points: "7 3 7 8 15 8" })
|
|
15
|
+
] }), d = () => /* @__PURE__ */ i("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", "aria-hidden": "true", children: [
|
|
16
|
+
/* @__PURE__ */ e("path", { d: "M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z" }),
|
|
17
|
+
/* @__PURE__ */ e("line", { x1: "12", y1: "11", x2: "12", y2: "17" }),
|
|
18
|
+
/* @__PURE__ */ e("line", { x1: "9", y1: "14", x2: "15", y2: "14" })
|
|
19
|
+
] }), s = () => /* @__PURE__ */ i("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", "aria-hidden": "true", children: [
|
|
20
|
+
/* @__PURE__ */ e("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }),
|
|
21
|
+
/* @__PURE__ */ e("polyline", { points: "14 2 14 8 20 8" })
|
|
22
|
+
] }), c = () => /* @__PURE__ */ i("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", "aria-hidden": "true", children: [
|
|
23
|
+
/* @__PURE__ */ e("path", { d: "M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" }),
|
|
24
|
+
/* @__PURE__ */ e("path", { d: "M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z" })
|
|
25
|
+
] }), a = () => /* @__PURE__ */ i("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", "aria-hidden": "true", children: [
|
|
26
|
+
/* @__PURE__ */ e("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
|
|
27
|
+
/* @__PURE__ */ e("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
|
|
28
|
+
] });
|
|
29
|
+
export {
|
|
30
|
+
a as CloseCrossIcon,
|
|
31
|
+
s as FileDocumentIcon,
|
|
32
|
+
d as NewFolderIcon,
|
|
33
|
+
c as RenamePencilIcon,
|
|
34
|
+
l as SaveDocIcon,
|
|
35
|
+
r as SidebarToggleIcon,
|
|
36
|
+
o as SingleViewIcon,
|
|
37
|
+
h as SplitHorizontalIcon,
|
|
38
|
+
n as SplitVerticalIcon
|
|
39
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),B=require("../../../constants/numbers.cjs"),y=require("../../../constants/generals.const.cjs");require("../../../constants/openai.const.cjs");require("react/jsx-runtime");require("../../../utils/paste.utils.cjs");require("../../../utils/exportDocument.utils.cjs");require("react-dom");const O=require("../../../constants/workspace.const.cjs"),Z=_=>{const{documents:n,activeDocumentId:s,onDocumentCreate:S,onDocumentRename:r,sidebarOpen:p,onSidebarOpenChange:o,splitMode:M,onSplitModeChange:c,secondaryDocumentId:k,onSecondaryDocumentChange:a}=_,[f,q]=t.useState(!0),[E,T]=t.useState(O.INK_SPLIT_MODE_NONE),[N,v]=t.useState(null),[I,R]=t.useState(y.EMPTY_STRING),[m,b]=t.useState(null),[l,C]=t.useState(y.EMPTY_STRING),L=p!==void 0?p:f,P=t.useCallback(e=>{q(e),o==null||o(e)},[o]),w=M!==void 0?M:E,g=t.useCallback(e=>{T(e),c==null||c(e)},[c]),i=k!==void 0?k:N,h=t.useCallback(e=>{v(e),a==null||a(e)},[a]),K=t.useMemo(()=>n.find(e=>e.id===s)||n[B.NUMBER_ZERO],[n,s]),W=t.useMemo(()=>i?n.find(e=>e.id===i)||null:n.find(e=>e.id!==s)||null,[n,i,s]),G=t.useMemo(()=>{const e=I.trim();if(!e)return n;const u=e.toLowerCase();return n.filter(d=>{var D;return d.title.toLowerCase().includes(u)||((D=d.tags)==null?void 0:D.some(A=>A.toLowerCase().includes(u)))})},[n,I]),Q=t.useCallback(()=>{S&&S(O.INK_WORKSPACE_UNTITLED_DOC)},[S]),U=t.useCallback((e,u,d)=>{d.stopPropagation(),b(e),C(u)},[]),Y=t.useCallback(e=>{m===e&&l.trim()&&(r==null||r(e,l.trim())),b(null)},[m,l,r]),j=t.useCallback(()=>{b(null)},[]);return{sidebarOpen:L,setSidebarOpen:P,splitMode:w,setSplitMode:g,secondaryDocId:i,setSecondaryDocId:h,searchQuery:I,setSearchQuery:R,editingDocId:m,editTitle:l,setEditTitle:C,activeDocument:K,secondaryDocument:W,filteredDocs:G,handleCreateDocument:Q,handleStartRename:U,handleSaveRename:Y,handleCancelRename:j}};exports.useInkWorkspace=Z;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { InkDocument, InkWorkspaceProps, InkSplitMode } from '../../../types';
|
|
2
|
+
export interface UseInkWorkspaceReturn {
|
|
3
|
+
sidebarOpen: boolean;
|
|
4
|
+
setSidebarOpen: (open: boolean) => void;
|
|
5
|
+
splitMode: InkSplitMode;
|
|
6
|
+
setSplitMode: (mode: InkSplitMode) => void;
|
|
7
|
+
secondaryDocId: string | null;
|
|
8
|
+
setSecondaryDocId: (id: string | null) => void;
|
|
9
|
+
searchQuery: string;
|
|
10
|
+
setSearchQuery: (query: string) => void;
|
|
11
|
+
editingDocId: string | null;
|
|
12
|
+
editTitle: string;
|
|
13
|
+
setEditTitle: (title: string) => void;
|
|
14
|
+
activeDocument: InkDocument | undefined;
|
|
15
|
+
secondaryDocument: InkDocument | null;
|
|
16
|
+
filteredDocs: InkDocument[];
|
|
17
|
+
handleCreateDocument: () => void;
|
|
18
|
+
handleStartRename: (id: string, currentTitle: string, event: React.MouseEvent) => void;
|
|
19
|
+
handleSaveRename: (id: string) => void;
|
|
20
|
+
handleCancelRename: () => void;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Custom hook to manage state, split view modes, document filtering,
|
|
24
|
+
* and explorer interactions for the InkWorkspace component.
|
|
25
|
+
*
|
|
26
|
+
* @param props - InkWorkspaceProps containing documents, active ID, and lifecycle callbacks
|
|
27
|
+
* @returns UseInkWorkspaceReturn with state values and interaction handlers
|
|
28
|
+
*/
|
|
29
|
+
export declare const useInkWorkspace: (props: InkWorkspaceProps) => UseInkWorkspaceReturn;
|
|
30
|
+
//# sourceMappingURL=useInkWorkspace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useInkWorkspace.d.ts","sourceRoot":"","sources":["../../../../src/components/InkWorkspace/hooks/useInkWorkspace.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,WAAW,EACX,iBAAiB,EACjB,YAAY,EACb,MAAM,SAAS,CAAC;AAQjB,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACxC,SAAS,EAAE,YAAY,CAAC;IACxB,YAAY,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAC;IAC3C,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,iBAAiB,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC/C,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,cAAc,EAAE,WAAW,GAAG,SAAS,CAAC;IACxC,iBAAiB,EAAE,WAAW,GAAG,IAAI,CAAC;IACtC,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,iBAAiB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IACvF,gBAAgB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,kBAAkB,EAAE,MAAM,IAAI,CAAC;CAChC;AAED;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,GAAI,OAAO,iBAAiB,KAAG,qBAyG1D,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { useState as o, useCallback as n, useMemo as D } from "react";
|
|
2
|
+
import { NUMBER_ZERO as Z } from "../../../constants/numbers.js";
|
|
3
|
+
import { EMPTY_STRING as N } from "../../../constants/generals.const.js";
|
|
4
|
+
import "../../../constants/openai.const.js";
|
|
5
|
+
import "react/jsx-runtime";
|
|
6
|
+
import "../../../utils/paste.utils.js";
|
|
7
|
+
import "../../../utils/exportDocument.utils.js";
|
|
8
|
+
import "react-dom";
|
|
9
|
+
import { INK_SPLIT_MODE_NONE as j, INK_WORKSPACE_UNTITLED_DOC as z } from "../../../constants/workspace.const.js";
|
|
10
|
+
const ot = (T) => {
|
|
11
|
+
const {
|
|
12
|
+
documents: e,
|
|
13
|
+
activeDocumentId: r,
|
|
14
|
+
onDocumentCreate: p,
|
|
15
|
+
onDocumentRename: s,
|
|
16
|
+
sidebarOpen: O,
|
|
17
|
+
onSidebarOpenChange: i,
|
|
18
|
+
splitMode: y,
|
|
19
|
+
onSplitModeChange: c,
|
|
20
|
+
secondaryDocumentId: E,
|
|
21
|
+
onSecondaryDocumentChange: d
|
|
22
|
+
} = T, [b, v] = o(!0), [C, L] = o(j), [R, w] = o(null), [I, P] = o(N), [S, f] = o(null), [l, M] = o(N), h = O !== void 0 ? O : b, k = n((t) => {
|
|
23
|
+
v(t), i == null || i(t);
|
|
24
|
+
}, [i]), K = y !== void 0 ? y : C, Q = n((t) => {
|
|
25
|
+
L(t), c == null || c(t);
|
|
26
|
+
}, [c]), a = E !== void 0 ? E : R, U = n((t) => {
|
|
27
|
+
w(t), d == null || d(t);
|
|
28
|
+
}, [d]), W = D(
|
|
29
|
+
() => e.find((t) => t.id === r) || e[Z],
|
|
30
|
+
[e, r]
|
|
31
|
+
), g = D(() => a ? e.find((t) => t.id === a) || null : e.find((t) => t.id !== r) || null, [e, a, r]), q = D(() => {
|
|
32
|
+
const t = I.trim();
|
|
33
|
+
if (!t) return e;
|
|
34
|
+
const m = t.toLowerCase();
|
|
35
|
+
return e.filter(
|
|
36
|
+
(u) => {
|
|
37
|
+
var _;
|
|
38
|
+
return u.title.toLowerCase().includes(m) || ((_ = u.tags) == null ? void 0 : _.some((Y) => Y.toLowerCase().includes(m)));
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
}, [e, I]), x = n(() => {
|
|
42
|
+
p && p(z);
|
|
43
|
+
}, [p]), A = n((t, m, u) => {
|
|
44
|
+
u.stopPropagation(), f(t), M(m);
|
|
45
|
+
}, []), B = n((t) => {
|
|
46
|
+
S === t && l.trim() && (s == null || s(t, l.trim())), f(null);
|
|
47
|
+
}, [S, l, s]), G = n(() => {
|
|
48
|
+
f(null);
|
|
49
|
+
}, []);
|
|
50
|
+
return {
|
|
51
|
+
sidebarOpen: h,
|
|
52
|
+
setSidebarOpen: k,
|
|
53
|
+
splitMode: K,
|
|
54
|
+
setSplitMode: Q,
|
|
55
|
+
secondaryDocId: a,
|
|
56
|
+
setSecondaryDocId: U,
|
|
57
|
+
searchQuery: I,
|
|
58
|
+
setSearchQuery: P,
|
|
59
|
+
editingDocId: S,
|
|
60
|
+
editTitle: l,
|
|
61
|
+
setEditTitle: M,
|
|
62
|
+
activeDocument: W,
|
|
63
|
+
secondaryDocument: g,
|
|
64
|
+
filteredDocs: q,
|
|
65
|
+
handleCreateDocument: x,
|
|
66
|
+
handleStartRename: A,
|
|
67
|
+
handleSaveRename: B,
|
|
68
|
+
handleCancelRename: G
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
export {
|
|
72
|
+
ot as useInkWorkspace
|
|
73
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/InkWorkspace/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,YAAY,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./numbers.cjs"),c="default-room",I="collab",_="active",l="idle",a="offline",E="editor",T="commenter",t="?",O=["var(--ink-collab-1, #3B82F6)","var(--ink-collab-2, #10B981)","var(--ink-collab-3, #8B5CF6)","var(--ink-collab-4, #F59E0B)","var(--ink-collab-5, #EC4899)","var(--ink-collab-6, #06B6D4)","var(--ink-collab-7, #F97316)"],e=[{id:"collab-1",name:"Sarah Connor",color:"#3B82F6",status:_,role:E,cursor:{line:o.NUMBER_TWO,col:o.NUMBER_FOURTEEN,offset:42}},{id:"collab-2",name:"Albert Specialist",color:"#10B981",status:_,role:E,cursor:{line:o.NUMBER_FIVE,col:o.NUMBER_TWENTY_EIGHT,offset:110}},{id:"collab-3",name:"Elena Rostova",color:"#8B5CF6",status:l,role:T,cursor:{line:o.NUMBER_EIGHT,col:o.NUMBER_SIX,offset:180}}];exports.COLLAB_THEME_COLORS=O;exports.DEFAULT_DEMO_COLLABORATORS=e;exports.DEFAULT_INITIAL=t;exports.ID_PREFIX_COLLAB=I;exports.INK_DEFAULT_ROOM_ID=c;exports.INK_ROLE_COMMENTER=T;exports.INK_ROLE_EDITOR=E;exports.INK_STATUS_ACTIVE=_;exports.INK_STATUS_IDLE=l;exports.INK_STATUS_OFFLINE=a;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { InkCollaborator, InkCollaboratorRole, InkCollaboratorStatus } from '../types/collab.types';
|
|
2
|
+
export declare const INK_DEFAULT_ROOM_ID = "default-room";
|
|
3
|
+
export declare const INK_PRESENCE_DEFAULT_MAX_AVATARS = 4;
|
|
4
|
+
export declare const PLUS_SIGN = "+";
|
|
5
|
+
export declare const ID_PREFIX_COLLAB = "collab";
|
|
6
|
+
export declare const INK_STATUS_ACTIVE: InkCollaboratorStatus;
|
|
7
|
+
export declare const INK_STATUS_IDLE: InkCollaboratorStatus;
|
|
8
|
+
export declare const INK_STATUS_OFFLINE: InkCollaboratorStatus;
|
|
9
|
+
export declare const INK_ROLE_EDITOR: InkCollaboratorRole;
|
|
10
|
+
export declare const INK_ROLE_COMMENTER: InkCollaboratorRole;
|
|
11
|
+
export declare const INK_ROLE_VIEWER: InkCollaboratorRole;
|
|
12
|
+
export declare const DEFAULT_INITIAL = "?";
|
|
13
|
+
export declare const IDLE_LABEL_SUFFIX = " - Idle";
|
|
14
|
+
/**
|
|
15
|
+
* Palette for collaborator cursors and presence avatars.
|
|
16
|
+
* Supports theme token overrides through CSS custom properties with hex fallbacks.
|
|
17
|
+
*/
|
|
18
|
+
export declare const COLLAB_THEME_COLORS: string[];
|
|
19
|
+
export declare const DEFAULT_DEMO_COLLABORATORS: InkCollaborator[];
|
|
20
|
+
//# sourceMappingURL=collab.const.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collab.const.d.ts","sourceRoot":"","sources":["../../src/constants/collab.const.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAEzG,eAAO,MAAM,mBAAmB,iBAAiB,CAAC;AAClD,eAAO,MAAM,gCAAgC,IAAc,CAAC;AAC5D,eAAO,MAAM,SAAS,MAAM,CAAC;AAC7B,eAAO,MAAM,gBAAgB,WAAW,CAAC;AACzC,eAAO,MAAM,iBAAiB,EAAE,qBAAgC,CAAC;AACjE,eAAO,MAAM,eAAe,EAAE,qBAA8B,CAAC;AAC7D,eAAO,MAAM,kBAAkB,EAAE,qBAAiC,CAAC;AACnE,eAAO,MAAM,eAAe,EAAE,mBAA8B,CAAC;AAC7D,eAAO,MAAM,kBAAkB,EAAE,mBAAiC,CAAC;AACnE,eAAO,MAAM,eAAe,EAAE,mBAA8B,CAAC;AAC7D,eAAO,MAAM,eAAe,MAAM,CAAC;AACnC,eAAO,MAAM,iBAAiB,YAAY,CAAC;AAE3C;;;GAGG;AACH,eAAO,MAAM,mBAAmB,UAQ/B,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,eAAe,EAyBvD,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { NUMBER_FOURTEEN as c, NUMBER_TWO as a, NUMBER_TWENTY_EIGHT as E, NUMBER_FIVE as n, NUMBER_SIX as r, NUMBER_EIGHT as t } from "./numbers.js";
|
|
2
|
+
const T = "default-room", i = "collab", o = "active", _ = "idle", I = "offline", l = "editor", s = "commenter", B = "?", N = [
|
|
3
|
+
"var(--ink-collab-1, #3B82F6)",
|
|
4
|
+
// Blue
|
|
5
|
+
"var(--ink-collab-2, #10B981)",
|
|
6
|
+
// Emerald
|
|
7
|
+
"var(--ink-collab-3, #8B5CF6)",
|
|
8
|
+
// Purple
|
|
9
|
+
"var(--ink-collab-4, #F59E0B)",
|
|
10
|
+
// Amber
|
|
11
|
+
"var(--ink-collab-5, #EC4899)",
|
|
12
|
+
// Pink
|
|
13
|
+
"var(--ink-collab-6, #06B6D4)",
|
|
14
|
+
// Cyan
|
|
15
|
+
"var(--ink-collab-7, #F97316)"
|
|
16
|
+
// Orange
|
|
17
|
+
], O = [
|
|
18
|
+
{
|
|
19
|
+
id: "collab-1",
|
|
20
|
+
name: "Sarah Connor",
|
|
21
|
+
color: "#3B82F6",
|
|
22
|
+
status: o,
|
|
23
|
+
role: l,
|
|
24
|
+
cursor: { line: a, col: c, offset: 42 }
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
id: "collab-2",
|
|
28
|
+
name: "Albert Specialist",
|
|
29
|
+
color: "#10B981",
|
|
30
|
+
status: o,
|
|
31
|
+
role: l,
|
|
32
|
+
cursor: { line: n, col: E, offset: 110 }
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
id: "collab-3",
|
|
36
|
+
name: "Elena Rostova",
|
|
37
|
+
color: "#8B5CF6",
|
|
38
|
+
status: _,
|
|
39
|
+
role: s,
|
|
40
|
+
cursor: { line: t, col: r, offset: 180 }
|
|
41
|
+
}
|
|
42
|
+
];
|
|
43
|
+
export {
|
|
44
|
+
N as COLLAB_THEME_COLORS,
|
|
45
|
+
O as DEFAULT_DEMO_COLLABORATORS,
|
|
46
|
+
B as DEFAULT_INITIAL,
|
|
47
|
+
i as ID_PREFIX_COLLAB,
|
|
48
|
+
T as INK_DEFAULT_ROOM_ID,
|
|
49
|
+
s as INK_ROLE_COMMENTER,
|
|
50
|
+
l as INK_ROLE_EDITOR,
|
|
51
|
+
o as INK_STATUS_ACTIVE,
|
|
52
|
+
_ as INK_STATUS_IDLE,
|
|
53
|
+
I as INK_STATUS_OFFLINE
|
|
54
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E="bold",_="italic",T="underline",N="strikethrough",L="link",O="bulletList",C="orderedList",A="heading2",
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E="bold",_="italic",T="underline",N="strikethrough",L="link",O="bulletList",C="orderedList",A="heading2",B="clearFormat",U="findReplace",M="signature",t="comment",I="tableRowAbove",X="tableRowBelow",D="tableColLeft",o="tableColRight",e="tableDeleteRow",n="tableDeleteCol",c="Bold",s="Italic",l="Underline",R="Strikethrough",r="Insert link",a="Bullet list",i="Numbered list",G="Heading",d="Clear format",b="Find and replace",g="Sign pad",S="Add comment",W="Insert row above",u="Insert row below",H="Insert column left",K="Insert column right",m="Delete row",F="Delete column",V="tableHeader",h="Toggle header row",w="tableMerge",k="Merge cell right",p="tableSplit",f="Split cell",P="tableBackground",v="Cell background",y="tableValign",j="Vertical align";exports.CONTEXT_MENU_ID_BOLD=E;exports.CONTEXT_MENU_ID_BULLET=O;exports.CONTEXT_MENU_ID_CLEAR=B;exports.CONTEXT_MENU_ID_COMMENT=t;exports.CONTEXT_MENU_ID_FIND=U;exports.CONTEXT_MENU_ID_HEADING=A;exports.CONTEXT_MENU_ID_ITALIC=_;exports.CONTEXT_MENU_ID_LINK=L;exports.CONTEXT_MENU_ID_ORDERED=C;exports.CONTEXT_MENU_ID_SIGNATURE=M;exports.CONTEXT_MENU_ID_STRIKE=N;exports.CONTEXT_MENU_ID_TABLE_BACKGROUND=P;exports.CONTEXT_MENU_ID_TABLE_COL_LEFT=D;exports.CONTEXT_MENU_ID_TABLE_COL_RIGHT=o;exports.CONTEXT_MENU_ID_TABLE_DELETE_COL=n;exports.CONTEXT_MENU_ID_TABLE_DELETE_ROW=e;exports.CONTEXT_MENU_ID_TABLE_HEADER=V;exports.CONTEXT_MENU_ID_TABLE_MERGE=w;exports.CONTEXT_MENU_ID_TABLE_ROW_ABOVE=I;exports.CONTEXT_MENU_ID_TABLE_ROW_BELOW=X;exports.CONTEXT_MENU_ID_TABLE_SPLIT=p;exports.CONTEXT_MENU_ID_TABLE_VALIGN=y;exports.CONTEXT_MENU_ID_UNDERLINE=T;exports.CONTEXT_MENU_LABEL_BOLD=c;exports.CONTEXT_MENU_LABEL_BULLET=a;exports.CONTEXT_MENU_LABEL_CLEAR=d;exports.CONTEXT_MENU_LABEL_COMMENT=S;exports.CONTEXT_MENU_LABEL_FIND=b;exports.CONTEXT_MENU_LABEL_HEADING=G;exports.CONTEXT_MENU_LABEL_ITALIC=s;exports.CONTEXT_MENU_LABEL_LINK=r;exports.CONTEXT_MENU_LABEL_ORDERED=i;exports.CONTEXT_MENU_LABEL_SIGNATURE=g;exports.CONTEXT_MENU_LABEL_STRIKE=R;exports.CONTEXT_MENU_LABEL_TABLE_BACKGROUND=v;exports.CONTEXT_MENU_LABEL_TABLE_COL_LEFT=H;exports.CONTEXT_MENU_LABEL_TABLE_COL_RIGHT=K;exports.CONTEXT_MENU_LABEL_TABLE_DELETE_COL=F;exports.CONTEXT_MENU_LABEL_TABLE_DELETE_ROW=m;exports.CONTEXT_MENU_LABEL_TABLE_HEADER=h;exports.CONTEXT_MENU_LABEL_TABLE_MERGE=k;exports.CONTEXT_MENU_LABEL_TABLE_ROW_ABOVE=W;exports.CONTEXT_MENU_LABEL_TABLE_ROW_BELOW=u;exports.CONTEXT_MENU_LABEL_TABLE_SPLIT=f;exports.CONTEXT_MENU_LABEL_TABLE_VALIGN=j;exports.CONTEXT_MENU_LABEL_UNDERLINE=l;
|
|
@@ -36,4 +36,12 @@ export declare const CONTEXT_MENU_LABEL_TABLE_DELETE_ROW = "Delete row";
|
|
|
36
36
|
export declare const CONTEXT_MENU_LABEL_TABLE_DELETE_COL = "Delete column";
|
|
37
37
|
export declare const CONTEXT_MENU_ID_TABLE_HEADER = "tableHeader";
|
|
38
38
|
export declare const CONTEXT_MENU_LABEL_TABLE_HEADER = "Toggle header row";
|
|
39
|
+
export declare const CONTEXT_MENU_ID_TABLE_MERGE = "tableMerge";
|
|
40
|
+
export declare const CONTEXT_MENU_LABEL_TABLE_MERGE = "Merge cell right";
|
|
41
|
+
export declare const CONTEXT_MENU_ID_TABLE_SPLIT = "tableSplit";
|
|
42
|
+
export declare const CONTEXT_MENU_LABEL_TABLE_SPLIT = "Split cell";
|
|
43
|
+
export declare const CONTEXT_MENU_ID_TABLE_BACKGROUND = "tableBackground";
|
|
44
|
+
export declare const CONTEXT_MENU_LABEL_TABLE_BACKGROUND = "Cell background";
|
|
45
|
+
export declare const CONTEXT_MENU_ID_TABLE_VALIGN = "tableValign";
|
|
46
|
+
export declare const CONTEXT_MENU_LABEL_TABLE_VALIGN = "Vertical align";
|
|
39
47
|
//# sourceMappingURL=contextMenu.const.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contextMenu.const.d.ts","sourceRoot":"","sources":["../../src/constants/contextMenu.const.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,SAAS,CAAC;AAC3C,eAAO,MAAM,sBAAsB,WAAW,CAAC;AAC/C,eAAO,MAAM,yBAAyB,cAAc,CAAC;AACrD,eAAO,MAAM,sBAAsB,kBAAkB,CAAC;AACtD,eAAO,MAAM,oBAAoB,SAAS,CAAC;AAC3C,eAAO,MAAM,sBAAsB,eAAe,CAAC;AACnD,eAAO,MAAM,uBAAuB,gBAAgB,CAAC;AACrD,eAAO,MAAM,uBAAuB,aAAa,CAAC;AAClD,eAAO,MAAM,qBAAqB,gBAAgB,CAAC;AACnD,eAAO,MAAM,oBAAoB,gBAAgB,CAAC;AAClD,eAAO,MAAM,yBAAyB,cAAc,CAAC;AACrD,eAAO,MAAM,uBAAuB,YAAY,CAAC;AACjD,eAAO,MAAM,+BAA+B,kBAAkB,CAAC;AAC/D,eAAO,MAAM,+BAA+B,kBAAkB,CAAC;AAC/D,eAAO,MAAM,8BAA8B,iBAAiB,CAAC;AAC7D,eAAO,MAAM,+BAA+B,kBAAkB,CAAC;AAC/D,eAAO,MAAM,gCAAgC,mBAAmB,CAAC;AACjE,eAAO,MAAM,gCAAgC,mBAAmB,CAAC;AACjE,eAAO,MAAM,uBAAuB,SAAS,CAAC;AAC9C,eAAO,MAAM,yBAAyB,WAAW,CAAC;AAClD,eAAO,MAAM,4BAA4B,cAAc,CAAC;AACxD,eAAO,MAAM,yBAAyB,kBAAkB,CAAC;AACzD,eAAO,MAAM,uBAAuB,gBAAgB,CAAC;AACrD,eAAO,MAAM,yBAAyB,gBAAgB,CAAC;AACvD,eAAO,MAAM,0BAA0B,kBAAkB,CAAC;AAC1D,eAAO,MAAM,0BAA0B,YAAY,CAAC;AACpD,eAAO,MAAM,wBAAwB,iBAAiB,CAAC;AACvD,eAAO,MAAM,uBAAuB,qBAAqB,CAAC;AAC1D,eAAO,MAAM,4BAA4B,aAAa,CAAC;AACvD,eAAO,MAAM,0BAA0B,gBAAgB,CAAC;AACxD,eAAO,MAAM,kCAAkC,qBAAqB,CAAC;AACrE,eAAO,MAAM,kCAAkC,qBAAqB,CAAC;AACrE,eAAO,MAAM,iCAAiC,uBAAuB,CAAC;AACtE,eAAO,MAAM,kCAAkC,wBAAwB,CAAC;AACxE,eAAO,MAAM,mCAAmC,eAAe,CAAC;AAChE,eAAO,MAAM,mCAAmC,kBAAkB,CAAC;AACnE,eAAO,MAAM,4BAA4B,gBAAgB,CAAC;AAC1D,eAAO,MAAM,+BAA+B,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"contextMenu.const.d.ts","sourceRoot":"","sources":["../../src/constants/contextMenu.const.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,SAAS,CAAC;AAC3C,eAAO,MAAM,sBAAsB,WAAW,CAAC;AAC/C,eAAO,MAAM,yBAAyB,cAAc,CAAC;AACrD,eAAO,MAAM,sBAAsB,kBAAkB,CAAC;AACtD,eAAO,MAAM,oBAAoB,SAAS,CAAC;AAC3C,eAAO,MAAM,sBAAsB,eAAe,CAAC;AACnD,eAAO,MAAM,uBAAuB,gBAAgB,CAAC;AACrD,eAAO,MAAM,uBAAuB,aAAa,CAAC;AAClD,eAAO,MAAM,qBAAqB,gBAAgB,CAAC;AACnD,eAAO,MAAM,oBAAoB,gBAAgB,CAAC;AAClD,eAAO,MAAM,yBAAyB,cAAc,CAAC;AACrD,eAAO,MAAM,uBAAuB,YAAY,CAAC;AACjD,eAAO,MAAM,+BAA+B,kBAAkB,CAAC;AAC/D,eAAO,MAAM,+BAA+B,kBAAkB,CAAC;AAC/D,eAAO,MAAM,8BAA8B,iBAAiB,CAAC;AAC7D,eAAO,MAAM,+BAA+B,kBAAkB,CAAC;AAC/D,eAAO,MAAM,gCAAgC,mBAAmB,CAAC;AACjE,eAAO,MAAM,gCAAgC,mBAAmB,CAAC;AACjE,eAAO,MAAM,uBAAuB,SAAS,CAAC;AAC9C,eAAO,MAAM,yBAAyB,WAAW,CAAC;AAClD,eAAO,MAAM,4BAA4B,cAAc,CAAC;AACxD,eAAO,MAAM,yBAAyB,kBAAkB,CAAC;AACzD,eAAO,MAAM,uBAAuB,gBAAgB,CAAC;AACrD,eAAO,MAAM,yBAAyB,gBAAgB,CAAC;AACvD,eAAO,MAAM,0BAA0B,kBAAkB,CAAC;AAC1D,eAAO,MAAM,0BAA0B,YAAY,CAAC;AACpD,eAAO,MAAM,wBAAwB,iBAAiB,CAAC;AACvD,eAAO,MAAM,uBAAuB,qBAAqB,CAAC;AAC1D,eAAO,MAAM,4BAA4B,aAAa,CAAC;AACvD,eAAO,MAAM,0BAA0B,gBAAgB,CAAC;AACxD,eAAO,MAAM,kCAAkC,qBAAqB,CAAC;AACrE,eAAO,MAAM,kCAAkC,qBAAqB,CAAC;AACrE,eAAO,MAAM,iCAAiC,uBAAuB,CAAC;AACtE,eAAO,MAAM,kCAAkC,wBAAwB,CAAC;AACxE,eAAO,MAAM,mCAAmC,eAAe,CAAC;AAChE,eAAO,MAAM,mCAAmC,kBAAkB,CAAC;AACnE,eAAO,MAAM,4BAA4B,gBAAgB,CAAC;AAC1D,eAAO,MAAM,+BAA+B,sBAAsB,CAAC;AACnE,eAAO,MAAM,2BAA2B,eAAe,CAAC;AACxD,eAAO,MAAM,8BAA8B,qBAAqB,CAAC;AACjE,eAAO,MAAM,2BAA2B,eAAe,CAAC;AACxD,eAAO,MAAM,8BAA8B,eAAe,CAAC;AAC3D,eAAO,MAAM,gCAAgC,oBAAoB,CAAC;AAClE,eAAO,MAAM,mCAAmC,oBAAoB,CAAC;AACrE,eAAO,MAAM,4BAA4B,gBAAgB,CAAC;AAC1D,eAAO,MAAM,+BAA+B,mBAAmB,CAAC"}
|