@forgedevstack/ink 1.1.9 → 1.2.1
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 +16 -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 +1308 -1028
- 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.d.ts.map +1 -1
- package/dist/components/InkEditor/components/ExcelSheetPanel/ExcelSheetPanel.js +84 -97
- 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 -1
- package/dist/components/InkEditor/components/PresenceStack/PresenceStack.js +3 -2
- package/dist/components/InkEditor/components/RemoteCursors/RemoteCursors.cjs +1 -1
- package/dist/components/InkEditor/components/RemoteCursors/RemoteCursors.js +6 -5
- 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 +38 -38
- package/dist/components/InkEditor/components/ThemePicker/ThemePicker.cjs +1 -1
- package/dist/components/InkEditor/components/ThemePicker/ThemePicker.d.ts.map +1 -1
- package/dist/components/InkEditor/components/ThemePicker/ThemePicker.js +56 -39
- 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 +7 -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/InkWorkspace/InkWorkspace.cjs +1 -1
- package/dist/components/InkWorkspace/InkWorkspace.d.ts.map +1 -1
- package/dist/components/InkWorkspace/InkWorkspace.js +136 -144
- package/dist/components/InkWorkspace/hooks/useInkWorkspace.cjs +1 -1
- package/dist/components/InkWorkspace/hooks/useInkWorkspace.js +8 -7
- 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/numbers.cjs +1 -1
- package/dist/constants/numbers.js +28 -27
- 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/hooks/useInkCollaboration.cjs +1 -1
- package/dist/hooks/useInkCollaboration.js +15 -14
- package/dist/hooks/useToolbarOverflow.cjs +1 -1
- package/dist/hooks/useToolbarOverflow.js +12 -11
- package/dist/index.cjs +1 -1
- package/dist/index.js +145 -144
- 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/theme/inkTheme.cjs +1 -1
- package/dist/plugins/theme/inkTheme.js +22 -19
- 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 +0 -1
- package/dist/types/collab.types.d.ts.map +1 -1
- package/dist/types/features.types.d.ts +1 -1
- package/dist/types/features.types.d.ts.map +1 -1
- package/dist/types/ink.types.d.ts +1 -3
- package/dist/types/ink.types.d.ts.map +1 -1
- package/dist/utils/blocks.utils.cjs +1 -1
- package/dist/utils/blocks.utils.js +19 -18
- package/dist/utils/collab.utils.cjs +1 -1
- package/dist/utils/collab.utils.js +7 -6
- 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 +10 -3
- package/dist/utils/index.d.ts.map +1 -1
- 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/package.json +1 -1
- package/dist/components/InkEditor/components/ThemePicker/hooks/index.d.ts +0 -3
- package/dist/components/InkEditor/components/ThemePicker/hooks/index.d.ts.map +0 -1
- package/dist/components/InkEditor/components/ThemePicker/hooks/useThemePickerMenu.cjs +0 -1
- package/dist/components/InkEditor/components/ThemePicker/hooks/useThemePickerMenu.d.ts +0 -13
- package/dist/components/InkEditor/components/ThemePicker/hooks/useThemePickerMenu.d.ts.map +0 -1
- package/dist/components/InkEditor/components/ThemePicker/hooks/useThemePickerMenu.js +0 -39
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const _ = 150, E = "#111827", N = "#fef08a", I = 3, T = 3, o = 1, t = 1, c = 12, n = 12, s = 50, M = "#fde047", R = 16, L = 36, U = 7, O = 180,
|
|
1
|
+
const _ = 150, E = "#111827", N = "#fef08a", I = 3, T = 3, o = 1, t = 1, c = 12, n = 12, s = 50, M = "#fde047", R = 16, L = 36, U = 7, O = 180, B = 0, S = 1, A = 2, H = 3, K = 4, X = 5, D = 6, C = 7, G = 8, P = 9, W = 12, Y = 14, F = 15, V = 16, e = 17, f = 20, Z = 24, a = 28, d = 36, p = 40, r = 60, x = 76, b = 100, g = 250, h = 6, i = 180, j = 280, k = 8, l = 8, m = 6, q = 64, u = 30, v = 4, w = 4, y = 12, z = 12, J = 420, Q = 320, $ = 180, __ = 24;
|
|
2
2
|
export {
|
|
3
3
|
M as INK_COMMENT_HIGHLIGHT_COLOR,
|
|
4
4
|
N as INK_DEFAULT_HIGHLIGHT_COLOR,
|
|
@@ -6,52 +6,53 @@ export {
|
|
|
6
6
|
I as INK_DEFAULT_TABLE_ROWS,
|
|
7
7
|
E as INK_DEFAULT_TEXT_COLOR,
|
|
8
8
|
O as INK_DEMO_AI_DELAY_MS,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
J as INK_EXCEL_MENU_ESTIMATED_HEIGHT_PX,
|
|
10
|
+
w as INK_EXCEL_SHEET_COLS,
|
|
11
|
+
z as INK_EXCEL_SHEET_MAX_COLS,
|
|
12
|
+
y as INK_EXCEL_SHEET_MAX_ROWS,
|
|
13
|
+
v as INK_EXCEL_SHEET_ROWS,
|
|
14
|
+
$ as INK_GRAPH_HEIGHT,
|
|
15
|
+
__ as INK_GRAPH_PAD,
|
|
16
|
+
Q as INK_GRAPH_WIDTH,
|
|
17
17
|
s as INK_HISTORY_MAX,
|
|
18
18
|
_ as INK_MIN_HEIGHT,
|
|
19
19
|
R as INK_SLASH_MENU_MAX_ITEMS,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
k as INK_STYLE_MENU_EDGE_PX,
|
|
21
|
+
j as INK_STYLE_MENU_ESTIMATED_HEIGHT_PX,
|
|
22
|
+
h as INK_STYLE_MENU_GAP_PX,
|
|
23
|
+
i as INK_STYLE_MENU_MIN_WIDTH_PX,
|
|
24
|
+
q as INK_TABLE_COL_MIN_WIDTH_PX,
|
|
25
|
+
m as INK_TABLE_COL_RESIZE_EDGE_PX,
|
|
26
26
|
n as INK_TABLE_MAX_COLS,
|
|
27
27
|
c as INK_TABLE_MAX_ROWS,
|
|
28
28
|
t as INK_TABLE_MIN_COLS,
|
|
29
29
|
o as INK_TABLE_MIN_ROWS,
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
l as INK_TABLE_PICKER_MAX,
|
|
31
|
+
u as INK_TITLE_STYLE_COUNT,
|
|
32
32
|
U as INK_TOOLBAR_GAP_PX,
|
|
33
33
|
L as INK_TOOLBAR_MORE_WIDTH_PX,
|
|
34
34
|
G as NUMBER_EIGHT,
|
|
35
35
|
F as NUMBER_FIFTEEN,
|
|
36
36
|
X as NUMBER_FIVE,
|
|
37
|
-
|
|
37
|
+
p as NUMBER_FORTY,
|
|
38
38
|
K as NUMBER_FOUR,
|
|
39
39
|
Y as NUMBER_FOURTEEN,
|
|
40
40
|
P as NUMBER_NINE,
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
S as NUMBER_ONE,
|
|
42
|
+
b as NUMBER_ONE_HUNDRED,
|
|
43
43
|
C as NUMBER_SEVEN,
|
|
44
44
|
e as NUMBER_SEVENTEEN,
|
|
45
|
-
|
|
45
|
+
x as NUMBER_SEVENTY_SIX,
|
|
46
46
|
D as NUMBER_SIX,
|
|
47
47
|
V as NUMBER_SIXTEEN,
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
r as NUMBER_SIXTY,
|
|
49
|
+
d as NUMBER_THIRTY_SIX,
|
|
50
50
|
H as NUMBER_THREE,
|
|
51
51
|
W as NUMBER_TWELVE,
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
f as NUMBER_TWENTY,
|
|
53
|
+
a as NUMBER_TWENTY_EIGHT,
|
|
54
|
+
Z as NUMBER_TWENTY_FOUR,
|
|
54
55
|
A as NUMBER_TWO,
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
g as NUMBER_TWO_HUNDRED_FIFTY,
|
|
57
|
+
B as NUMBER_ZERO
|
|
57
58
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O="checklist",T="signature",_="findReplace",R="findReplaceDropdown",
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O="checklist",T="signature",_="findReplace",R="findReplaceDropdown",I="fontDropdown",N="listDropdown",P="horizontalRule",L="directionLtr",A="directionRtl",t="superscript",B="subscript",E="htmlSource",o="titles",n="excel",c="graph",s="outline",e="fullscreen",D="theme",C="importMarkdown",S="exportMarkdown",r="exportDocx",i="exportPdf",l="versions",M="formatPainter",p="changeCase";exports.TOOLBAR_OPTION_CHANGE_CASE=p;exports.TOOLBAR_OPTION_CHECKLIST=O;exports.TOOLBAR_OPTION_DIRECTION_LTR=L;exports.TOOLBAR_OPTION_DIRECTION_RTL=A;exports.TOOLBAR_OPTION_EXCEL=n;exports.TOOLBAR_OPTION_EXPORT_DOCX=r;exports.TOOLBAR_OPTION_EXPORT_MARKDOWN=S;exports.TOOLBAR_OPTION_EXPORT_PDF=i;exports.TOOLBAR_OPTION_FIND_REPLACE=_;exports.TOOLBAR_OPTION_FIND_REPLACE_DROPDOWN=R;exports.TOOLBAR_OPTION_FONT_DROPDOWN=I;exports.TOOLBAR_OPTION_FORMAT_PAINTER=M;exports.TOOLBAR_OPTION_FULLSCREEN=e;exports.TOOLBAR_OPTION_GRAPH=c;exports.TOOLBAR_OPTION_HORIZONTAL_RULE=P;exports.TOOLBAR_OPTION_HTML_SOURCE=E;exports.TOOLBAR_OPTION_IMPORT_MARKDOWN=C;exports.TOOLBAR_OPTION_LIST_DROPDOWN=N;exports.TOOLBAR_OPTION_OUTLINE=s;exports.TOOLBAR_OPTION_SIGNATURE=T;exports.TOOLBAR_OPTION_SUBSCRIPT=B;exports.TOOLBAR_OPTION_SUPERSCRIPT=t;exports.TOOLBAR_OPTION_THEME=D;exports.TOOLBAR_OPTION_TITLES=o;exports.TOOLBAR_OPTION_VERSIONS=l;
|
|
@@ -16,4 +16,11 @@ export declare const TOOLBAR_OPTION_GRAPH: "graph";
|
|
|
16
16
|
export declare const TOOLBAR_OPTION_OUTLINE: "outline";
|
|
17
17
|
export declare const TOOLBAR_OPTION_FULLSCREEN: "fullscreen";
|
|
18
18
|
export declare const TOOLBAR_OPTION_THEME: "theme";
|
|
19
|
+
export declare const TOOLBAR_OPTION_IMPORT_MARKDOWN: "importMarkdown";
|
|
20
|
+
export declare const TOOLBAR_OPTION_EXPORT_MARKDOWN: "exportMarkdown";
|
|
21
|
+
export declare const TOOLBAR_OPTION_EXPORT_DOCX: "exportDocx";
|
|
22
|
+
export declare const TOOLBAR_OPTION_EXPORT_PDF: "exportPdf";
|
|
23
|
+
export declare const TOOLBAR_OPTION_VERSIONS: "versions";
|
|
24
|
+
export declare const TOOLBAR_OPTION_FORMAT_PAINTER: "formatPainter";
|
|
25
|
+
export declare const TOOLBAR_OPTION_CHANGE_CASE: "changeCase";
|
|
19
26
|
//# sourceMappingURL=toolbar.const.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolbar.const.d.ts","sourceRoot":"","sources":["../../src/constants/toolbar.const.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,EAAG,WAAoB,CAAC;AAC7D,eAAO,MAAM,wBAAwB,EAAG,WAAoB,CAAC;AAC7D,eAAO,MAAM,2BAA2B,EAAG,aAAsB,CAAC;AAClE,eAAO,MAAM,oCAAoC,EAAG,qBAA8B,CAAC;AACnF,eAAO,MAAM,4BAA4B,EAAG,cAAuB,CAAC;AACpE,eAAO,MAAM,4BAA4B,EAAG,cAAuB,CAAC;AACpE,eAAO,MAAM,8BAA8B,EAAG,gBAAyB,CAAC;AACxE,eAAO,MAAM,4BAA4B,EAAG,cAAuB,CAAC;AACpE,eAAO,MAAM,4BAA4B,EAAG,cAAuB,CAAC;AACpE,eAAO,MAAM,0BAA0B,EAAG,aAAsB,CAAC;AACjE,eAAO,MAAM,wBAAwB,EAAG,WAAoB,CAAC;AAC7D,eAAO,MAAM,0BAA0B,EAAG,YAAqB,CAAC;AAChE,eAAO,MAAM,qBAAqB,EAAG,QAAiB,CAAC;AACvD,eAAO,MAAM,oBAAoB,EAAG,OAAgB,CAAC;AACrD,eAAO,MAAM,oBAAoB,EAAG,OAAgB,CAAC;AACrD,eAAO,MAAM,sBAAsB,EAAG,SAAkB,CAAC;AACzD,eAAO,MAAM,yBAAyB,EAAG,YAAqB,CAAC;AAC/D,eAAO,MAAM,oBAAoB,EAAG,OAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"toolbar.const.d.ts","sourceRoot":"","sources":["../../src/constants/toolbar.const.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,EAAG,WAAoB,CAAC;AAC7D,eAAO,MAAM,wBAAwB,EAAG,WAAoB,CAAC;AAC7D,eAAO,MAAM,2BAA2B,EAAG,aAAsB,CAAC;AAClE,eAAO,MAAM,oCAAoC,EAAG,qBAA8B,CAAC;AACnF,eAAO,MAAM,4BAA4B,EAAG,cAAuB,CAAC;AACpE,eAAO,MAAM,4BAA4B,EAAG,cAAuB,CAAC;AACpE,eAAO,MAAM,8BAA8B,EAAG,gBAAyB,CAAC;AACxE,eAAO,MAAM,4BAA4B,EAAG,cAAuB,CAAC;AACpE,eAAO,MAAM,4BAA4B,EAAG,cAAuB,CAAC;AACpE,eAAO,MAAM,0BAA0B,EAAG,aAAsB,CAAC;AACjE,eAAO,MAAM,wBAAwB,EAAG,WAAoB,CAAC;AAC7D,eAAO,MAAM,0BAA0B,EAAG,YAAqB,CAAC;AAChE,eAAO,MAAM,qBAAqB,EAAG,QAAiB,CAAC;AACvD,eAAO,MAAM,oBAAoB,EAAG,OAAgB,CAAC;AACrD,eAAO,MAAM,oBAAoB,EAAG,OAAgB,CAAC;AACrD,eAAO,MAAM,sBAAsB,EAAG,SAAkB,CAAC;AACzD,eAAO,MAAM,yBAAyB,EAAG,YAAqB,CAAC;AAC/D,eAAO,MAAM,oBAAoB,EAAG,OAAgB,CAAC;AACrD,eAAO,MAAM,8BAA8B,EAAG,gBAAyB,CAAC;AACxE,eAAO,MAAM,8BAA8B,EAAG,gBAAyB,CAAC;AACxE,eAAO,MAAM,0BAA0B,EAAG,YAAqB,CAAC;AAChE,eAAO,MAAM,yBAAyB,EAAG,WAAoB,CAAC;AAC9D,eAAO,MAAM,uBAAuB,EAAG,UAAmB,CAAC;AAC3D,eAAO,MAAM,6BAA6B,EAAG,eAAwB,CAAC;AACtE,eAAO,MAAM,0BAA0B,EAAG,YAAqB,CAAC"}
|
|
@@ -1,21 +1,28 @@
|
|
|
1
|
-
const O = "checklist", T = "signature", _ = "findReplace", R = "findReplaceDropdown",
|
|
1
|
+
const O = "checklist", T = "signature", _ = "findReplace", R = "findReplaceDropdown", o = "fontDropdown", t = "listDropdown", n = "horizontalRule", I = "directionLtr", N = "directionRtl", P = "superscript", L = "subscript", c = "htmlSource", s = "titles", A = "excel", e = "graph", B = "outline", E = "fullscreen", r = "theme", D = "importMarkdown", i = "exportMarkdown", C = "exportDocx", p = "exportPdf", S = "versions", l = "formatPainter", a = "changeCase";
|
|
2
2
|
export {
|
|
3
|
+
a as TOOLBAR_OPTION_CHANGE_CASE,
|
|
3
4
|
O as TOOLBAR_OPTION_CHECKLIST,
|
|
4
5
|
I as TOOLBAR_OPTION_DIRECTION_LTR,
|
|
5
|
-
|
|
6
|
+
N as TOOLBAR_OPTION_DIRECTION_RTL,
|
|
6
7
|
A as TOOLBAR_OPTION_EXCEL,
|
|
8
|
+
C as TOOLBAR_OPTION_EXPORT_DOCX,
|
|
9
|
+
i as TOOLBAR_OPTION_EXPORT_MARKDOWN,
|
|
10
|
+
p as TOOLBAR_OPTION_EXPORT_PDF,
|
|
7
11
|
_ as TOOLBAR_OPTION_FIND_REPLACE,
|
|
8
12
|
R as TOOLBAR_OPTION_FIND_REPLACE_DROPDOWN,
|
|
9
|
-
|
|
13
|
+
o as TOOLBAR_OPTION_FONT_DROPDOWN,
|
|
14
|
+
l as TOOLBAR_OPTION_FORMAT_PAINTER,
|
|
10
15
|
E as TOOLBAR_OPTION_FULLSCREEN,
|
|
11
16
|
e as TOOLBAR_OPTION_GRAPH,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
17
|
+
n as TOOLBAR_OPTION_HORIZONTAL_RULE,
|
|
18
|
+
c as TOOLBAR_OPTION_HTML_SOURCE,
|
|
19
|
+
D as TOOLBAR_OPTION_IMPORT_MARKDOWN,
|
|
20
|
+
t as TOOLBAR_OPTION_LIST_DROPDOWN,
|
|
15
21
|
B as TOOLBAR_OPTION_OUTLINE,
|
|
16
22
|
T as TOOLBAR_OPTION_SIGNATURE,
|
|
17
|
-
|
|
18
|
-
|
|
23
|
+
L as TOOLBAR_OPTION_SUBSCRIPT,
|
|
24
|
+
P as TOOLBAR_OPTION_SUPERSCRIPT,
|
|
19
25
|
r as TOOLBAR_OPTION_THEME,
|
|
20
|
-
|
|
26
|
+
s as TOOLBAR_OPTION_TITLES,
|
|
27
|
+
S as TOOLBAR_OPTION_VERSIONS
|
|
21
28
|
};
|
|
@@ -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,
|
|
@@ -1 +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("react-dom");const S=require("../constants/collab.const.cjs"),
|
|
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;
|
|
@@ -3,9 +3,10 @@ import { NUMBER_ZERO as y } 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
8
|
import { DEFAULT_DEMO_COLLABORATORS as g, INK_DEFAULT_ROOM_ID as x } from "../constants/collab.const.js";
|
|
8
|
-
const
|
|
9
|
+
const w = ({
|
|
9
10
|
roomId: c = x,
|
|
10
11
|
user: r,
|
|
11
12
|
initialCollaborators: m = [],
|
|
@@ -19,16 +20,16 @@ const W = ({
|
|
|
19
20
|
const t = new WebSocket(`${d}?room=${encodeURIComponent(c)}`);
|
|
20
21
|
return a.current = t, t.onopen = () => {
|
|
21
22
|
l(!0), r && t.send(JSON.stringify({ type: "join", room: c, user: r }));
|
|
22
|
-
}, t.onmessage = (
|
|
23
|
+
}, t.onmessage = (e) => {
|
|
23
24
|
try {
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
const p = n.findIndex((i) => i.id ===
|
|
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);
|
|
27
28
|
if (p >= y) {
|
|
28
29
|
const i = [...n];
|
|
29
|
-
return i[p] = { ...i[p], ...
|
|
30
|
+
return i[p] = { ...i[p], ...o.collaborator }, i;
|
|
30
31
|
}
|
|
31
|
-
return [...n,
|
|
32
|
+
return [...n, o.collaborator];
|
|
32
33
|
});
|
|
33
34
|
} catch {
|
|
34
35
|
}
|
|
@@ -52,20 +53,20 @@ const W = ({
|
|
|
52
53
|
},
|
|
53
54
|
[c, r]
|
|
54
55
|
), R = f(
|
|
55
|
-
(t,
|
|
56
|
+
(t, e, o) => {
|
|
56
57
|
u({
|
|
57
|
-
selection: { start: t, end:
|
|
58
|
+
selection: { start: t, end: e, text: o }
|
|
58
59
|
});
|
|
59
60
|
},
|
|
60
61
|
[u]
|
|
61
62
|
), E = f((t) => {
|
|
62
|
-
s((
|
|
63
|
+
s((e) => e.some((o) => o.id === t.id) ? e.map((o) => o.id === t.id ? t : o) : [...e, t]);
|
|
63
64
|
}, []), k = f((t) => {
|
|
64
|
-
s((
|
|
65
|
+
s((e) => e.filter((o) => o.id !== t));
|
|
65
66
|
}, []), A = f(
|
|
66
|
-
(t,
|
|
67
|
+
(t, e) => {
|
|
67
68
|
s(
|
|
68
|
-
(
|
|
69
|
+
(o) => o.map((n) => n.id === t ? { ...n, status: e } : n)
|
|
69
70
|
);
|
|
70
71
|
},
|
|
71
72
|
[]
|
|
@@ -82,5 +83,5 @@ const W = ({
|
|
|
82
83
|
};
|
|
83
84
|
};
|
|
84
85
|
export {
|
|
85
|
-
|
|
86
|
+
w as useInkCollaboration
|
|
86
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 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"),
|
|
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;
|