@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.
Files changed (247) hide show
  1. package/CHANGELOG.md +16 -1
  2. package/dist/common-components/Box/Box.cjs +1 -1
  3. package/dist/common-components/Box/Box.js +7 -6
  4. package/dist/common-components/Button/Button.cjs +1 -1
  5. package/dist/common-components/Button/Button.js +9 -8
  6. package/dist/common-components/Canvas/Canvas.cjs +1 -1
  7. package/dist/common-components/Canvas/Canvas.js +3 -2
  8. package/dist/common-components/ContextMenu/ContextMenu.cjs +1 -1
  9. package/dist/common-components/ContextMenu/ContextMenu.js +3 -2
  10. package/dist/common-components/Field/Field.cjs +1 -1
  11. package/dist/common-components/Field/Field.js +11 -10
  12. package/dist/common-components/icons/GripIcon.cjs +1 -1
  13. package/dist/common-components/icons/GripIcon.js +3 -2
  14. package/dist/components/InkEditor/InkEditor.cjs +1 -1
  15. package/dist/components/InkEditor/InkEditor.d.ts.map +1 -1
  16. package/dist/components/InkEditor/InkEditor.js +1308 -1028
  17. package/dist/components/InkEditor/components/AiPanel/AiPanel.cjs +1 -1
  18. package/dist/components/InkEditor/components/AiPanel/AiPanel.js +13 -12
  19. package/dist/components/InkEditor/components/AiSelectionBubble/AiSelectionBubble.cjs +1 -0
  20. package/dist/components/InkEditor/components/AiSelectionBubble/AiSelectionBubble.const.cjs +1 -0
  21. package/dist/components/InkEditor/components/AiSelectionBubble/AiSelectionBubble.const.d.ts +20 -0
  22. package/dist/components/InkEditor/components/AiSelectionBubble/AiSelectionBubble.const.d.ts.map +1 -0
  23. package/dist/components/InkEditor/components/AiSelectionBubble/AiSelectionBubble.const.js +25 -0
  24. package/dist/components/InkEditor/components/AiSelectionBubble/AiSelectionBubble.d.ts +4 -0
  25. package/dist/components/InkEditor/components/AiSelectionBubble/AiSelectionBubble.d.ts.map +1 -0
  26. package/dist/components/InkEditor/components/AiSelectionBubble/AiSelectionBubble.js +61 -0
  27. package/dist/components/InkEditor/components/AiSelectionBubble/AiSelectionBubble.types.d.ts +11 -0
  28. package/dist/components/InkEditor/components/AiSelectionBubble/AiSelectionBubble.types.d.ts.map +1 -0
  29. package/dist/components/InkEditor/components/AiSelectionBubble/AiSelectionBubble.utils.cjs +1 -0
  30. package/dist/components/InkEditor/components/AiSelectionBubble/AiSelectionBubble.utils.d.ts +19 -0
  31. package/dist/components/InkEditor/components/AiSelectionBubble/AiSelectionBubble.utils.d.ts.map +1 -0
  32. package/dist/components/InkEditor/components/AiSelectionBubble/AiSelectionBubble.utils.js +30 -0
  33. package/dist/components/InkEditor/components/AiSelectionBubble/AiSelectionBubble.utils.test.d.ts +2 -0
  34. package/dist/components/InkEditor/components/AiSelectionBubble/AiSelectionBubble.utils.test.d.ts.map +1 -0
  35. package/dist/components/InkEditor/components/AiSelectionBubble/index.d.ts +4 -0
  36. package/dist/components/InkEditor/components/AiSelectionBubble/index.d.ts.map +1 -0
  37. package/dist/components/InkEditor/components/BlockHandles/BlockHandles.cjs +1 -1
  38. package/dist/components/InkEditor/components/BlockHandles/BlockHandles.js +7 -6
  39. package/dist/components/InkEditor/components/CommentsPanel/CommentsPanel.cjs +1 -1
  40. package/dist/components/InkEditor/components/CommentsPanel/CommentsPanel.d.ts +2 -0
  41. package/dist/components/InkEditor/components/CommentsPanel/CommentsPanel.d.ts.map +1 -1
  42. package/dist/components/InkEditor/components/CommentsPanel/CommentsPanel.js +16 -15
  43. package/dist/components/InkEditor/components/ExcelSheetPanel/ExcelSheetPanel.cjs +1 -1
  44. package/dist/components/InkEditor/components/ExcelSheetPanel/ExcelSheetPanel.d.ts.map +1 -1
  45. package/dist/components/InkEditor/components/ExcelSheetPanel/ExcelSheetPanel.js +84 -97
  46. package/dist/components/InkEditor/components/FindReplace/FindReplace.cjs +1 -1
  47. package/dist/components/InkEditor/components/FindReplace/FindReplace.js +21 -20
  48. package/dist/components/InkEditor/components/GraphEditModal/GraphEditModal.cjs +1 -1
  49. package/dist/components/InkEditor/components/GraphEditModal/GraphEditModal.js +17 -16
  50. package/dist/components/InkEditor/components/GraphPicker/GraphPicker.cjs +1 -1
  51. package/dist/components/InkEditor/components/GraphPicker/GraphPicker.js +3 -2
  52. package/dist/components/InkEditor/components/HtmlSourcePanel/HtmlSourcePanel.cjs +1 -1
  53. package/dist/components/InkEditor/components/HtmlSourcePanel/HtmlSourcePanel.js +7 -6
  54. package/dist/components/InkEditor/components/ImageFrame/ImageFrame.cjs +1 -0
  55. package/dist/components/InkEditor/components/ImageFrame/ImageFrame.d.ts +8 -0
  56. package/dist/components/InkEditor/components/ImageFrame/ImageFrame.d.ts.map +1 -0
  57. package/dist/components/InkEditor/components/ImageFrame/ImageFrame.js +54 -0
  58. package/dist/components/InkEditor/components/ImageFrame/index.d.ts +3 -0
  59. package/dist/components/InkEditor/components/ImageFrame/index.d.ts.map +1 -0
  60. package/dist/components/InkEditor/components/InlineToolbar/InlineToolbar.cjs +1 -1
  61. package/dist/components/InkEditor/components/InlineToolbar/InlineToolbar.js +11 -10
  62. package/dist/components/InkEditor/components/MentionMenu/MentionMenu.cjs +1 -0
  63. package/dist/components/InkEditor/components/MentionMenu/MentionMenu.d.ts +16 -0
  64. package/dist/components/InkEditor/components/MentionMenu/MentionMenu.d.ts.map +1 -0
  65. package/dist/components/InkEditor/components/MentionMenu/MentionMenu.js +21 -0
  66. package/dist/components/InkEditor/components/MentionMenu/index.d.ts +3 -0
  67. package/dist/components/InkEditor/components/MentionMenu/index.d.ts.map +1 -0
  68. package/dist/components/InkEditor/components/OutlineRail/OutlineRail.cjs +1 -1
  69. package/dist/components/InkEditor/components/OutlineRail/OutlineRail.js +11 -10
  70. package/dist/components/InkEditor/components/PresenceStack/PresenceStack.cjs +1 -1
  71. package/dist/components/InkEditor/components/PresenceStack/PresenceStack.js +3 -2
  72. package/dist/components/InkEditor/components/RemoteCursors/RemoteCursors.cjs +1 -1
  73. package/dist/components/InkEditor/components/RemoteCursors/RemoteCursors.js +6 -5
  74. package/dist/components/InkEditor/components/SignPad/SignPad.cjs +1 -1
  75. package/dist/components/InkEditor/components/SignPad/SignPad.js +7 -6
  76. package/dist/components/InkEditor/components/SlashMenu/SlashMenu.cjs +1 -1
  77. package/dist/components/InkEditor/components/SlashMenu/SlashMenu.js +7 -6
  78. package/dist/components/InkEditor/components/TableSizePicker/TableSizePicker.cjs +1 -1
  79. package/dist/components/InkEditor/components/TableSizePicker/TableSizePicker.const.cjs +1 -1
  80. package/dist/components/InkEditor/components/TableSizePicker/TableSizePicker.const.js +8 -7
  81. package/dist/components/InkEditor/components/TableSizePicker/TableSizePicker.js +38 -38
  82. package/dist/components/InkEditor/components/ThemePicker/ThemePicker.cjs +1 -1
  83. package/dist/components/InkEditor/components/ThemePicker/ThemePicker.d.ts.map +1 -1
  84. package/dist/components/InkEditor/components/ThemePicker/ThemePicker.js +56 -39
  85. package/dist/components/InkEditor/components/TitleGallery/TitleGallery.cjs +1 -1
  86. package/dist/components/InkEditor/components/TitleGallery/TitleGallery.js +3 -2
  87. package/dist/components/InkEditor/components/ToolbarButton/ToolbarButton.cjs +1 -1
  88. package/dist/components/InkEditor/components/ToolbarButton/ToolbarButton.js +13 -12
  89. package/dist/components/InkEditor/components/ToolbarColorPicker/ToolbarColorPicker.cjs +1 -1
  90. package/dist/components/InkEditor/components/ToolbarColorPicker/ToolbarColorPicker.js +9 -8
  91. package/dist/components/InkEditor/components/ToolbarCustomize/ToolbarCustomize.cjs +1 -1
  92. package/dist/components/InkEditor/components/ToolbarCustomize/ToolbarCustomize.const.cjs +1 -1
  93. package/dist/components/InkEditor/components/ToolbarCustomize/ToolbarCustomize.const.js +9 -8
  94. package/dist/components/InkEditor/components/ToolbarCustomize/ToolbarCustomize.js +9 -8
  95. package/dist/components/InkEditor/components/ToolbarDropdown/ToolbarDropdown.cjs +1 -1
  96. package/dist/components/InkEditor/components/ToolbarDropdown/ToolbarDropdown.js +19 -18
  97. package/dist/components/InkEditor/components/ToolbarDropdown/ToolbarDropdown.utils.cjs +1 -1
  98. package/dist/components/InkEditor/components/ToolbarDropdown/ToolbarDropdown.utils.js +6 -5
  99. package/dist/components/InkEditor/components/VersionHistory/VersionHistory.cjs +1 -0
  100. package/dist/components/InkEditor/components/VersionHistory/VersionHistory.d.ts +11 -0
  101. package/dist/components/InkEditor/components/VersionHistory/VersionHistory.d.ts.map +1 -0
  102. package/dist/components/InkEditor/components/VersionHistory/VersionHistory.js +22 -0
  103. package/dist/components/InkEditor/components/VersionHistory/index.d.ts +3 -0
  104. package/dist/components/InkEditor/components/VersionHistory/index.d.ts.map +1 -0
  105. package/dist/components/InkEditor/components/index.d.ts +7 -0
  106. package/dist/components/InkEditor/components/index.d.ts.map +1 -1
  107. package/dist/components/InkEditor/helpers/format.utils.cjs +3 -2
  108. package/dist/components/InkEditor/helpers/format.utils.d.ts +1 -0
  109. package/dist/components/InkEditor/helpers/format.utils.d.ts.map +1 -1
  110. package/dist/components/InkEditor/helpers/format.utils.js +106 -84
  111. package/dist/components/InkEditor/helpers/index.d.ts +1 -1
  112. package/dist/components/InkEditor/helpers/index.d.ts.map +1 -1
  113. package/dist/components/InkWorkspace/InkWorkspace.cjs +1 -1
  114. package/dist/components/InkWorkspace/InkWorkspace.d.ts.map +1 -1
  115. package/dist/components/InkWorkspace/InkWorkspace.js +136 -144
  116. package/dist/components/InkWorkspace/hooks/useInkWorkspace.cjs +1 -1
  117. package/dist/components/InkWorkspace/hooks/useInkWorkspace.js +8 -7
  118. package/dist/constants/contextMenu.const.cjs +1 -1
  119. package/dist/constants/contextMenu.const.d.ts +8 -0
  120. package/dist/constants/contextMenu.const.d.ts.map +1 -1
  121. package/dist/constants/contextMenu.const.js +30 -22
  122. package/dist/constants/defaultIcons.cjs +1 -1
  123. package/dist/constants/defaultIcons.js +6 -5
  124. package/dist/constants/defaults.const.cjs +1 -1
  125. package/dist/constants/defaults.const.d.ts.map +1 -1
  126. package/dist/constants/defaults.const.js +150 -138
  127. package/dist/constants/numbers.cjs +1 -1
  128. package/dist/constants/numbers.js +28 -27
  129. package/dist/constants/toolbar.const.cjs +1 -1
  130. package/dist/constants/toolbar.const.d.ts +7 -0
  131. package/dist/constants/toolbar.const.d.ts.map +1 -1
  132. package/dist/constants/toolbar.const.js +16 -9
  133. package/dist/constants/toolbarMenu.const.cjs +1 -1
  134. package/dist/constants/toolbarMenu.const.d.ts.map +1 -1
  135. package/dist/constants/toolbarMenu.const.js +25 -11
  136. package/dist/hooks/useInkCollaboration.cjs +1 -1
  137. package/dist/hooks/useInkCollaboration.js +15 -14
  138. package/dist/hooks/useToolbarOverflow.cjs +1 -1
  139. package/dist/hooks/useToolbarOverflow.js +12 -11
  140. package/dist/index.cjs +1 -1
  141. package/dist/index.js +145 -144
  142. package/dist/plugins/ai/demoProvider.cjs +1 -1
  143. package/dist/plugins/ai/demoProvider.js +3 -2
  144. package/dist/plugins/ai/index.cjs +1 -1
  145. package/dist/plugins/ai/index.js +25 -24
  146. package/dist/plugins/excel/excel.utils.cjs +1 -1
  147. package/dist/plugins/excel/excel.utils.js +17 -16
  148. package/dist/plugins/graph/graph.utils.cjs +1 -1
  149. package/dist/plugins/graph/graph.utils.js +7 -6
  150. package/dist/plugins/theme/inkTheme.cjs +1 -1
  151. package/dist/plugins/theme/inkTheme.js +22 -19
  152. package/dist/plugins/titles/titles.const.cjs +1 -1
  153. package/dist/plugins/titles/titles.const.js +9 -8
  154. package/dist/plugins/titles/titles.utils.cjs +1 -1
  155. package/dist/plugins/titles/titles.utils.js +3 -2
  156. package/dist/styles.css +1 -1
  157. package/dist/types/collab.types.d.ts +0 -1
  158. package/dist/types/collab.types.d.ts.map +1 -1
  159. package/dist/types/features.types.d.ts +1 -1
  160. package/dist/types/features.types.d.ts.map +1 -1
  161. package/dist/types/ink.types.d.ts +1 -3
  162. package/dist/types/ink.types.d.ts.map +1 -1
  163. package/dist/utils/blocks.utils.cjs +1 -1
  164. package/dist/utils/blocks.utils.js +19 -18
  165. package/dist/utils/collab.utils.cjs +1 -1
  166. package/dist/utils/collab.utils.js +7 -6
  167. package/dist/utils/comments.utils.cjs +1 -1
  168. package/dist/utils/comments.utils.d.ts +4 -0
  169. package/dist/utils/comments.utils.d.ts.map +1 -1
  170. package/dist/utils/comments.utils.js +26 -18
  171. package/dist/utils/comments.utils.test.d.ts +2 -0
  172. package/dist/utils/comments.utils.test.d.ts.map +1 -0
  173. package/dist/utils/exportDocument.utils.cjs +2 -0
  174. package/dist/utils/exportDocument.utils.d.ts +16 -0
  175. package/dist/utils/exportDocument.utils.d.ts.map +1 -0
  176. package/dist/utils/exportDocument.utils.js +85 -0
  177. package/dist/utils/exportDocument.utils.test.d.ts +2 -0
  178. package/dist/utils/exportDocument.utils.test.d.ts.map +1 -0
  179. package/dist/utils/formatPainter.utils.cjs +1 -0
  180. package/dist/utils/formatPainter.utils.d.ts +11 -0
  181. package/dist/utils/formatPainter.utils.d.ts.map +1 -0
  182. package/dist/utils/formatPainter.utils.js +20 -0
  183. package/dist/utils/formatPainter.utils.test.d.ts +2 -0
  184. package/dist/utils/formatPainter.utils.test.d.ts.map +1 -0
  185. package/dist/utils/history.utils.cjs +1 -1
  186. package/dist/utils/history.utils.js +3 -2
  187. package/dist/utils/image.utils.cjs +1 -0
  188. package/dist/utils/image.utils.d.ts +14 -0
  189. package/dist/utils/image.utils.d.ts.map +1 -0
  190. package/dist/utils/image.utils.js +33 -0
  191. package/dist/utils/image.utils.test.d.ts +2 -0
  192. package/dist/utils/image.utils.test.d.ts.map +1 -0
  193. package/dist/utils/index.d.ts +10 -3
  194. package/dist/utils/index.d.ts.map +1 -1
  195. package/dist/utils/license.utils.cjs +1 -1
  196. package/dist/utils/license.utils.js +8 -7
  197. package/dist/utils/markdown.utils.cjs +11 -0
  198. package/dist/utils/markdown.utils.d.ts +7 -0
  199. package/dist/utils/markdown.utils.d.ts.map +1 -0
  200. package/dist/utils/markdown.utils.js +87 -0
  201. package/dist/utils/markdown.utils.test.d.ts +2 -0
  202. package/dist/utils/markdown.utils.test.d.ts.map +1 -0
  203. package/dist/utils/mentions.utils.cjs +1 -0
  204. package/dist/utils/mentions.utils.d.ts +13 -0
  205. package/dist/utils/mentions.utils.d.ts.map +1 -0
  206. package/dist/utils/mentions.utils.js +23 -0
  207. package/dist/utils/mentions.utils.test.d.ts +2 -0
  208. package/dist/utils/mentions.utils.test.d.ts.map +1 -0
  209. package/dist/utils/outline.utils.cjs +1 -1
  210. package/dist/utils/outline.utils.js +9 -8
  211. package/dist/utils/paste.utils.cjs +1 -1
  212. package/dist/utils/paste.utils.d.ts +2 -0
  213. package/dist/utils/paste.utils.d.ts.map +1 -1
  214. package/dist/utils/paste.utils.js +53 -19
  215. package/dist/utils/paste.utils.test.d.ts +2 -0
  216. package/dist/utils/paste.utils.test.d.ts.map +1 -0
  217. package/dist/utils/premium.utils.cjs +1 -1
  218. package/dist/utils/premium.utils.js +12 -11
  219. package/dist/utils/selection.utils.cjs +1 -1
  220. package/dist/utils/selection.utils.js +3 -2
  221. package/dist/utils/slash.utils.cjs +1 -1
  222. package/dist/utils/slash.utils.js +10 -9
  223. package/dist/utils/table.utils.cjs +1 -1
  224. package/dist/utils/table.utils.d.ts +8 -0
  225. package/dist/utils/table.utils.d.ts.map +1 -1
  226. package/dist/utils/table.utils.js +78 -54
  227. package/dist/utils/toolbarStorage.utils.cjs +1 -1
  228. package/dist/utils/toolbarStorage.utils.js +15 -14
  229. package/dist/utils/trackChanges.utils.cjs +1 -1
  230. package/dist/utils/trackChanges.utils.js +9 -8
  231. package/dist/utils/typo.utils.cjs +1 -1
  232. package/dist/utils/typo.utils.js +8 -7
  233. package/dist/utils/versions.utils.cjs +1 -0
  234. package/dist/utils/versions.utils.d.ts +11 -0
  235. package/dist/utils/versions.utils.d.ts.map +1 -0
  236. package/dist/utils/versions.utils.js +36 -0
  237. package/dist/utils/versions.utils.test.d.ts +2 -0
  238. package/dist/utils/versions.utils.test.d.ts.map +1 -0
  239. package/dist/utils/words.utils.cjs +1 -1
  240. package/dist/utils/words.utils.js +3 -2
  241. package/package.json +1 -1
  242. package/dist/components/InkEditor/components/ThemePicker/hooks/index.d.ts +0 -3
  243. package/dist/components/InkEditor/components/ThemePicker/hooks/index.d.ts.map +0 -1
  244. package/dist/components/InkEditor/components/ThemePicker/hooks/useThemePickerMenu.cjs +0 -1
  245. package/dist/components/InkEditor/components/ThemePicker/hooks/useThemePickerMenu.d.ts +0 -13
  246. package/dist/components/InkEditor/components/ThemePicker/hooks/useThemePickerMenu.d.ts.map +0 -1
  247. 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, S = 0, B = 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 = 24, Z = 28, a = 36, d = 40, p = 60, r = 76, x = 100, b = 250, g = 6, h = 180, i = 280, j = 8, k = 8, l = 6, m = 64, q = 30, u = 4, v = 4, w = 12, y = 12, z = 420, J = 320, Q = 180, $ = 24;
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
- z as INK_EXCEL_MENU_ESTIMATED_HEIGHT_PX,
10
- v as INK_EXCEL_SHEET_COLS,
11
- y as INK_EXCEL_SHEET_MAX_COLS,
12
- w as INK_EXCEL_SHEET_MAX_ROWS,
13
- u as INK_EXCEL_SHEET_ROWS,
14
- Q as INK_GRAPH_HEIGHT,
15
- $ as INK_GRAPH_PAD,
16
- J as INK_GRAPH_WIDTH,
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
- j as INK_STYLE_MENU_EDGE_PX,
21
- i as INK_STYLE_MENU_ESTIMATED_HEIGHT_PX,
22
- g as INK_STYLE_MENU_GAP_PX,
23
- h as INK_STYLE_MENU_MIN_WIDTH_PX,
24
- m as INK_TABLE_COL_MIN_WIDTH_PX,
25
- l as INK_TABLE_COL_RESIZE_EDGE_PX,
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
- k as INK_TABLE_PICKER_MAX,
31
- q as INK_TITLE_STYLE_COUNT,
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
- d as NUMBER_FORTY,
37
+ p as NUMBER_FORTY,
38
38
  K as NUMBER_FOUR,
39
39
  Y as NUMBER_FOURTEEN,
40
40
  P as NUMBER_NINE,
41
- B as NUMBER_ONE,
42
- x as NUMBER_ONE_HUNDRED,
41
+ S as NUMBER_ONE,
42
+ b as NUMBER_ONE_HUNDRED,
43
43
  C as NUMBER_SEVEN,
44
44
  e as NUMBER_SEVENTEEN,
45
- r as NUMBER_SEVENTY_SIX,
45
+ x as NUMBER_SEVENTY_SIX,
46
46
  D as NUMBER_SIX,
47
47
  V as NUMBER_SIXTEEN,
48
- p as NUMBER_SIXTY,
49
- a as NUMBER_THIRTY_SIX,
48
+ r as NUMBER_SIXTY,
49
+ d as NUMBER_THIRTY_SIX,
50
50
  H as NUMBER_THREE,
51
51
  W as NUMBER_TWELVE,
52
- Z as NUMBER_TWENTY_EIGHT,
53
- f as NUMBER_TWENTY_FOUR,
52
+ f as NUMBER_TWENTY,
53
+ a as NUMBER_TWENTY_EIGHT,
54
+ Z as NUMBER_TWENTY_FOUR,
54
55
  A as NUMBER_TWO,
55
- b as NUMBER_TWO_HUNDRED_FIFTY,
56
- S as NUMBER_ZERO
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",L="fontDropdown",I="listDropdown",N="horizontalRule",P="directionLtr",A="directionRtl",t="superscript",B="subscript",E="htmlSource",o="titles",n="excel",c="graph",s="outline",e="fullscreen",D="theme";exports.TOOLBAR_OPTION_CHECKLIST=O;exports.TOOLBAR_OPTION_DIRECTION_LTR=P;exports.TOOLBAR_OPTION_DIRECTION_RTL=A;exports.TOOLBAR_OPTION_EXCEL=n;exports.TOOLBAR_OPTION_FIND_REPLACE=_;exports.TOOLBAR_OPTION_FIND_REPLACE_DROPDOWN=R;exports.TOOLBAR_OPTION_FONT_DROPDOWN=L;exports.TOOLBAR_OPTION_FULLSCREEN=e;exports.TOOLBAR_OPTION_GRAPH=c;exports.TOOLBAR_OPTION_HORIZONTAL_RULE=N;exports.TOOLBAR_OPTION_HTML_SOURCE=E;exports.TOOLBAR_OPTION_LIST_DROPDOWN=I;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;
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", t = "fontDropdown", L = "listDropdown", o = "horizontalRule", I = "directionLtr", n = "directionRtl", N = "superscript", c = "subscript", s = "htmlSource", P = "titles", A = "excel", e = "graph", B = "outline", E = "fullscreen", r = "theme";
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
- n as TOOLBAR_OPTION_DIRECTION_RTL,
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
- t as TOOLBAR_OPTION_FONT_DROPDOWN,
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
- o as TOOLBAR_OPTION_HORIZONTAL_RULE,
13
- s as TOOLBAR_OPTION_HTML_SOURCE,
14
- L as TOOLBAR_OPTION_LIST_DROPDOWN,
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
- c as TOOLBAR_OPTION_SUBSCRIPT,
18
- N as TOOLBAR_OPTION_SUPERSCRIPT,
23
+ L as TOOLBAR_OPTION_SUBSCRIPT,
24
+ P as TOOLBAR_OPTION_SUPERSCRIPT,
19
25
  r as TOOLBAR_OPTION_THEME,
20
- P as TOOLBAR_OPTION_TITLES
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",i="Customize toolbar",n="Hide toolbar",o="show-toolbar",r="Show toolbar",l="Show toolbar",a="Ask about this document or request a change…",O="Show formatting toolbar",d="ink-toolbar-hidden",_="ink-toolbar-items",T="true",L="false",s="divider",h={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",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",divider:""},g="Customize toolbar",A="Done",E="Toolbar options";exports.AGENT_BAR_PLACEHOLDER=a;exports.CONTEXT_MENU_ID_SHOW_TOOLBAR=o;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=i;exports.TOOLBAR_CONTEXT_MENU_LABEL_HIDE=n;exports.TOOLBAR_CUSTOMIZE_CLOSE_LABEL=A;exports.TOOLBAR_CUSTOMIZE_LIST_ARIA_LABEL=E;exports.TOOLBAR_CUSTOMIZE_TITLE=g;exports.TOOLBAR_OPTION_DIVIDER=s;exports.TOOLBAR_OPTION_HINTS=c;exports.TOOLBAR_OPTION_LABELS=h;exports.TOOLBAR_SHOW_CONTROL_ARIA_LABEL=O;exports.TOOLBAR_SHOW_CONTROL_LABEL=l;exports.TOOLBAR_STORAGE_KEY_HIDDEN=d;exports.TOOLBAR_STORAGE_KEY_ITEMS=_;exports.TOOLBAR_STORAGE_VALUE_FALSE=L;exports.TOOLBAR_STORAGE_VALUE_TRUE=T;
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,CAqD/D,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,CAqD9D,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
+ {"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", i = "Customize toolbar", n = "Hide toolbar", o = "show-toolbar", r = "Show toolbar", l = "Show toolbar", a = "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", u = {
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
- }, L = {
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", _ = "Done", p = "Toolbar options";
121
+ }, T = "Customize toolbar", L = "Done", _ = "Toolbar options";
108
122
  export {
109
- a as AGENT_BAR_PLACEHOLDER,
110
- o as CONTEXT_MENU_ID_SHOW_TOOLBAR,
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
- i as TOOLBAR_CONTEXT_MENU_LABEL_CUSTOMIZE,
128
+ o as TOOLBAR_CONTEXT_MENU_LABEL_CUSTOMIZE,
115
129
  n as TOOLBAR_CONTEXT_MENU_LABEL_HIDE,
116
- _ as TOOLBAR_CUSTOMIZE_CLOSE_LABEL,
117
- p as TOOLBAR_CUSTOMIZE_LIST_ARIA_LABEL,
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
- L as TOOLBAR_OPTION_HINTS,
121
- u as TOOLBAR_OPTION_LABELS,
134
+ u as TOOLBAR_OPTION_HINTS,
135
+ p as TOOLBAR_OPTION_LABELS,
122
136
  d as TOOLBAR_SHOW_CONTROL_ARIA_LABEL,
123
- l as TOOLBAR_SHOW_CONTROL_LABEL,
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"),q=({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),l=o.useRef(null);o.useEffect(()=>{if(!(!d||typeof WebSocket>"u"))try{const e=new WebSocket(`${d}?room=${encodeURIComponent(c)}`);return l.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(i=>i.id===t.collaborator.id);if(b>=y.NUMBER_ZERO){const i=[...s];return i[b]={...i[b],...t.collaborator},i}return[...s,t.collaborator]})}catch{}},e.onclose=()=>u(!1),e.onerror=()=>u(!1),()=>{e.close(),l.current=null}}catch{u(!1)}},[d,c,n]);const f=o.useCallback(e=>{l.current&&l.current.readyState===WebSocket.OPEN&&l.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])},[]),_=o.useCallback(e=>{a(r=>r.filter(t=>t.id!==e))},[]),m=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:_,updateCollaboratorStatus:m,setCollaborators:a}};exports.useInkCollaboration=q;
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 W = ({
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 = (o) => {
23
+ }, t.onmessage = (e) => {
23
24
  try {
24
- const e = JSON.parse(o.data);
25
- e.type === "presence" && Array.isArray(e.collaborators) ? s(e.collaborators) : e.type === "cursor" && e.collaborator && s((n) => {
26
- const p = n.findIndex((i) => i.id === e.collaborator.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], ...e.collaborator }, i;
30
+ return i[p] = { ...i[p], ...o.collaborator }, i;
30
31
  }
31
- return [...n, e.collaborator];
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, o, e) => {
56
+ (t, e, o) => {
56
57
  u({
57
- selection: { start: t, end: o, text: e }
58
+ selection: { start: t, end: e, text: o }
58
59
  });
59
60
  },
60
61
  [u]
61
62
  ), E = f((t) => {
62
- s((o) => o.some((e) => e.id === t.id) ? o.map((e) => e.id === t.id ? t : e) : [...o, t]);
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((o) => o.filter((e) => e.id !== t));
65
+ s((e) => e.filter((o) => o.id !== t));
65
66
  }, []), A = f(
66
- (t, o) => {
67
+ (t, e) => {
67
68
  s(
68
- (e) => e.map((n) => n.id === t ? { ...n, status: o } : n)
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
- W as useInkCollaboration
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 R } from "../constants/numbers.js";
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 I = (n) => {
8
- const s = a(null), c = a(null), [p, _] = O(n), [E, v] = O(!1);
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 u = () => {
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 += R);
20
- }), _(Math.max(o, R));
20
+ m > N || (l = m, o += p);
21
+ }), _(Math.max(o, p));
21
22
  };
22
- u();
23
- const i = new ResizeObserver(u);
24
- return i.observe(t), () => i.disconnect();
25
- }, [n]), { measureRef: s, rowRef: c, fitCount: p, overflowOpen: E, setOverflowOpen: v };
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
- I as useToolbarOverflow
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"),r=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"),t=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"),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=r.INK_AI_INK_SERVER_PROVIDER_ID;exports.INK_AI_OPENAI_MODEL_GPT_4_1=r.INK_AI_OPENAI_MODEL_GPT_4_1;exports.INK_AI_OPENAI_MODEL_GPT_4_1_MINI=r.INK_AI_OPENAI_MODEL_GPT_4_1_MINI;exports.INK_AI_OPENAI_PROVIDER_ID=r.INK_AI_OPENAI_PROVIDER_ID;exports.INK_AI_OPENAI_PROVIDER_NAME=r.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=t.buildTableHtml;exports.deleteTableColumn=t.deleteTableColumn;exports.deleteTableRow=t.deleteTableRow;exports.getTableCellFromSelection=t.getTableCellFromSelection;exports.insertTableColumn=t.insertTableColumn;exports.insertTableRow=t.insertTableRow;exports.toggleTableHeaderRow=t.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;
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;