@forgedevstack/ink 1.1.3 → 1.1.4
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 +47 -1
- package/dist/common-components/Box/Box.cjs +1 -0
- package/dist/common-components/Box/Box.const.cjs +1 -0
- package/dist/common-components/Box/Box.const.d.ts +3 -0
- package/dist/common-components/Box/Box.const.d.ts.map +1 -0
- package/dist/common-components/Box/Box.const.js +5 -0
- package/dist/common-components/Box/Box.d.ts +4 -0
- package/dist/common-components/Box/Box.d.ts.map +1 -0
- package/dist/common-components/Box/Box.js +14 -0
- package/dist/common-components/Box/Box.types.d.ts +6 -0
- package/dist/common-components/Box/Box.types.d.ts.map +1 -0
- package/dist/common-components/Box/index.d.ts +3 -0
- package/dist/common-components/Box/index.d.ts.map +1 -0
- package/dist/common-components/Button/Button.cjs +1 -0
- package/dist/common-components/Button/Button.const.cjs +1 -0
- package/dist/common-components/Button/Button.const.d.ts +5 -0
- package/dist/common-components/Button/Button.const.d.ts.map +1 -0
- package/dist/common-components/Button/Button.const.js +7 -0
- package/dist/common-components/Button/Button.d.ts +4 -0
- package/dist/common-components/Button/Button.d.ts.map +1 -0
- package/dist/common-components/Button/Button.js +28 -0
- package/dist/common-components/Button/Button.types.d.ts +6 -0
- package/dist/common-components/Button/Button.types.d.ts.map +1 -0
- package/dist/common-components/Button/index.d.ts +3 -0
- package/dist/common-components/Button/index.d.ts.map +1 -0
- package/dist/common-components/Canvas/Canvas.cjs +1 -0
- package/dist/common-components/Canvas/Canvas.const.cjs +1 -0
- package/dist/common-components/Canvas/Canvas.const.d.ts +2 -0
- package/dist/common-components/Canvas/Canvas.const.d.ts.map +1 -0
- package/dist/common-components/Canvas/Canvas.const.js +4 -0
- package/dist/common-components/Canvas/Canvas.d.ts +4 -0
- package/dist/common-components/Canvas/Canvas.d.ts.map +1 -0
- package/dist/common-components/Canvas/Canvas.js +14 -0
- package/dist/common-components/Canvas/Canvas.types.d.ts +5 -0
- package/dist/common-components/Canvas/Canvas.types.d.ts.map +1 -0
- package/dist/common-components/Canvas/index.d.ts +3 -0
- package/dist/common-components/Canvas/index.d.ts.map +1 -0
- package/dist/common-components/ContextMenu/ContextMenu.cjs +1 -0
- package/dist/common-components/ContextMenu/ContextMenu.const.cjs +1 -0
- package/dist/common-components/ContextMenu/ContextMenu.const.d.ts +11 -0
- package/dist/common-components/ContextMenu/ContextMenu.const.d.ts.map +1 -0
- package/dist/common-components/ContextMenu/ContextMenu.const.js +14 -0
- package/dist/common-components/ContextMenu/ContextMenu.d.ts +4 -0
- package/dist/common-components/ContextMenu/ContextMenu.d.ts.map +1 -0
- package/dist/common-components/ContextMenu/ContextMenu.js +69 -0
- package/dist/common-components/ContextMenu/ContextMenu.types.d.ts +33 -0
- package/dist/common-components/ContextMenu/ContextMenu.types.d.ts.map +1 -0
- package/dist/common-components/ContextMenu/ContextMenu.utils.cjs +1 -0
- package/dist/common-components/ContextMenu/ContextMenu.utils.d.ts +3 -0
- package/dist/common-components/ContextMenu/ContextMenu.utils.d.ts.map +1 -0
- package/dist/common-components/ContextMenu/ContextMenu.utils.js +11 -0
- package/dist/common-components/ContextMenu/ContextMenu.utils.test.d.ts +2 -0
- package/dist/common-components/ContextMenu/ContextMenu.utils.test.d.ts.map +1 -0
- package/dist/common-components/ContextMenu/index.d.ts +5 -0
- package/dist/common-components/ContextMenu/index.d.ts.map +1 -0
- package/dist/common-components/Field/Field.cjs +1 -0
- package/dist/common-components/Field/Field.const.cjs +1 -0
- package/dist/common-components/Field/Field.const.d.ts +3 -0
- package/dist/common-components/Field/Field.const.d.ts.map +1 -0
- package/dist/common-components/Field/Field.const.js +5 -0
- package/dist/common-components/Field/Field.d.ts +4 -0
- package/dist/common-components/Field/Field.d.ts.map +1 -0
- package/dist/common-components/Field/Field.js +26 -0
- package/dist/common-components/Field/Field.types.d.ts +10 -0
- package/dist/common-components/Field/Field.types.d.ts.map +1 -0
- package/dist/common-components/Field/index.d.ts +3 -0
- package/dist/common-components/Field/index.d.ts.map +1 -0
- package/dist/common-components/icons/GripIcon.cjs +1 -0
- package/dist/common-components/icons/GripIcon.d.ts +3 -0
- package/dist/common-components/icons/GripIcon.d.ts.map +1 -0
- package/dist/common-components/icons/GripIcon.js +13 -0
- package/dist/common-components/icons/Icon.const.cjs +1 -0
- package/dist/common-components/icons/Icon.const.d.ts +7 -0
- package/dist/common-components/icons/Icon.const.d.ts.map +1 -0
- package/dist/common-components/icons/Icon.const.js +10 -0
- package/dist/common-components/icons/RedoIcon.cjs +1 -0
- package/dist/common-components/icons/RedoIcon.d.ts +3 -0
- package/dist/common-components/icons/RedoIcon.d.ts.map +1 -0
- package/dist/common-components/icons/RedoIcon.js +9 -0
- package/dist/common-components/icons/UndoIcon.cjs +1 -0
- package/dist/common-components/icons/UndoIcon.d.ts +3 -0
- package/dist/common-components/icons/UndoIcon.d.ts.map +1 -0
- package/dist/common-components/icons/UndoIcon.js +9 -0
- package/dist/common-components/icons/index.d.ts +4 -0
- package/dist/common-components/icons/index.d.ts.map +1 -0
- package/dist/common-components/index.d.ts +12 -0
- package/dist/common-components/index.d.ts.map +1 -0
- package/dist/components/InkEditor/InkEditor.cjs +1 -1
- package/dist/components/InkEditor/InkEditor.d.ts.map +1 -1
- package/dist/components/InkEditor/InkEditor.js +921 -437
- package/dist/components/InkEditor/components/AiAutocomplete/AiAutocomplete.cjs +1 -0
- package/dist/components/InkEditor/components/AiAutocomplete/AiAutocomplete.const.cjs +1 -0
- package/dist/components/InkEditor/components/AiAutocomplete/AiAutocomplete.const.d.ts +7 -0
- package/dist/components/InkEditor/components/AiAutocomplete/AiAutocomplete.const.d.ts.map +1 -0
- package/dist/components/InkEditor/components/AiAutocomplete/AiAutocomplete.const.js +10 -0
- package/dist/components/InkEditor/components/AiAutocomplete/AiAutocomplete.d.ts +4 -0
- package/dist/components/InkEditor/components/AiAutocomplete/AiAutocomplete.d.ts.map +1 -0
- package/dist/components/InkEditor/components/AiAutocomplete/AiAutocomplete.js +17 -0
- package/dist/components/InkEditor/components/AiAutocomplete/AiAutocomplete.types.d.ts +12 -0
- package/dist/components/InkEditor/components/AiAutocomplete/AiAutocomplete.types.d.ts.map +1 -0
- package/dist/components/InkEditor/components/AiAutocomplete/AiAutocomplete.utils.cjs +1 -0
- package/dist/components/InkEditor/components/AiAutocomplete/AiAutocomplete.utils.d.ts +4 -0
- package/dist/components/InkEditor/components/AiAutocomplete/AiAutocomplete.utils.d.ts.map +1 -0
- package/dist/components/InkEditor/components/AiAutocomplete/AiAutocomplete.utils.js +25 -0
- package/dist/components/InkEditor/components/AiAutocomplete/index.d.ts +5 -0
- package/dist/components/InkEditor/components/AiAutocomplete/index.d.ts.map +1 -0
- package/dist/components/InkEditor/components/AiPanel/AiPanel.cjs +1 -1
- package/dist/components/InkEditor/components/AiPanel/AiPanel.d.ts +1 -0
- package/dist/components/InkEditor/components/AiPanel/AiPanel.d.ts.map +1 -1
- package/dist/components/InkEditor/components/AiPanel/AiPanel.js +53 -49
- package/dist/components/InkEditor/components/BlockHandles/BlockHandles.cjs +1 -1
- package/dist/components/InkEditor/components/BlockHandles/BlockHandles.const.cjs +1 -0
- package/dist/components/InkEditor/components/BlockHandles/BlockHandles.const.d.ts +15 -0
- package/dist/components/InkEditor/components/BlockHandles/BlockHandles.const.d.ts.map +1 -0
- package/dist/components/InkEditor/components/BlockHandles/BlockHandles.const.js +18 -0
- package/dist/components/InkEditor/components/BlockHandles/BlockHandles.d.ts +1 -6
- package/dist/components/InkEditor/components/BlockHandles/BlockHandles.d.ts.map +1 -1
- package/dist/components/InkEditor/components/BlockHandles/BlockHandles.js +53 -8
- package/dist/components/InkEditor/components/BlockHandles/BlockHandles.types.d.ts +9 -0
- package/dist/components/InkEditor/components/BlockHandles/BlockHandles.types.d.ts.map +1 -0
- package/dist/components/InkEditor/components/BlockHandles/index.d.ts +2 -1
- package/dist/components/InkEditor/components/BlockHandles/index.d.ts.map +1 -1
- package/dist/components/InkEditor/components/FindReplace/FindReplace.cjs +1 -1
- package/dist/components/InkEditor/components/FindReplace/FindReplace.d.ts.map +1 -1
- package/dist/components/InkEditor/components/FindReplace/FindReplace.js +63 -44
- package/dist/components/InkEditor/components/FindReplace/FindReplace.types.d.ts +2 -0
- package/dist/components/InkEditor/components/FindReplace/FindReplace.types.d.ts.map +1 -1
- package/dist/components/InkEditor/components/FindReplace/index.d.ts +1 -1
- package/dist/components/InkEditor/components/FindReplace/index.d.ts.map +1 -1
- package/dist/components/InkEditor/components/InlineToolbar/InlineToolbar.cjs +1 -0
- package/dist/components/InkEditor/components/InlineToolbar/InlineToolbar.const.cjs +1 -0
- package/dist/components/InkEditor/components/InlineToolbar/InlineToolbar.const.d.ts +25 -0
- package/dist/components/InkEditor/components/InlineToolbar/InlineToolbar.const.d.ts.map +1 -0
- package/dist/components/InkEditor/components/InlineToolbar/InlineToolbar.const.js +28 -0
- package/dist/components/InkEditor/components/InlineToolbar/InlineToolbar.d.ts +4 -0
- package/dist/components/InkEditor/components/InlineToolbar/InlineToolbar.d.ts.map +1 -0
- package/dist/components/InkEditor/components/InlineToolbar/InlineToolbar.js +140 -0
- package/dist/components/InkEditor/components/InlineToolbar/InlineToolbar.types.d.ts +32 -0
- package/dist/components/InkEditor/components/InlineToolbar/InlineToolbar.types.d.ts.map +1 -0
- package/dist/components/InkEditor/components/InlineToolbar/InlineToolbar.utils.cjs +1 -0
- package/dist/components/InkEditor/components/InlineToolbar/InlineToolbar.utils.d.ts +4 -0
- package/dist/components/InkEditor/components/InlineToolbar/InlineToolbar.utils.d.ts.map +1 -0
- package/dist/components/InkEditor/components/InlineToolbar/InlineToolbar.utils.js +16 -0
- package/dist/components/InkEditor/components/InlineToolbar/InlineToolbar.utils.test.d.ts +2 -0
- package/dist/components/InkEditor/components/InlineToolbar/InlineToolbar.utils.test.d.ts.map +1 -0
- package/dist/components/InkEditor/components/InlineToolbar/index.d.ts +5 -0
- package/dist/components/InkEditor/components/InlineToolbar/index.d.ts.map +1 -0
- package/dist/components/InkEditor/components/SignPad/SignPad.cjs +1 -1
- package/dist/components/InkEditor/components/SignPad/SignPad.d.ts.map +1 -1
- package/dist/components/InkEditor/components/SignPad/SignPad.js +47 -51
- package/dist/components/InkEditor/components/ToolbarButton/ToolbarButton.cjs +1 -1
- package/dist/components/InkEditor/components/ToolbarButton/ToolbarButton.d.ts.map +1 -1
- package/dist/components/InkEditor/components/ToolbarButton/ToolbarButton.js +20 -16
- package/dist/components/InkEditor/components/ToolbarColorPicker/ToolbarColorPicker.cjs +1 -1
- package/dist/components/InkEditor/components/ToolbarColorPicker/ToolbarColorPicker.js +16 -12
- package/dist/components/InkEditor/components/ToolbarCustomize/ToolbarCustomize.cjs +1 -0
- package/dist/components/InkEditor/components/ToolbarCustomize/ToolbarCustomize.const.cjs +1 -0
- package/dist/components/InkEditor/components/ToolbarCustomize/ToolbarCustomize.const.d.ts +10 -0
- package/dist/components/InkEditor/components/ToolbarCustomize/ToolbarCustomize.const.d.ts.map +1 -0
- package/dist/components/InkEditor/components/ToolbarCustomize/ToolbarCustomize.const.js +18 -0
- package/dist/components/InkEditor/components/ToolbarCustomize/ToolbarCustomize.d.ts +4 -0
- package/dist/components/InkEditor/components/ToolbarCustomize/ToolbarCustomize.d.ts.map +1 -0
- package/dist/components/InkEditor/components/ToolbarCustomize/ToolbarCustomize.js +43 -0
- package/dist/components/InkEditor/components/ToolbarCustomize/ToolbarCustomize.types.d.ts +12 -0
- package/dist/components/InkEditor/components/ToolbarCustomize/ToolbarCustomize.types.d.ts.map +1 -0
- package/dist/components/InkEditor/components/ToolbarCustomize/index.d.ts +4 -0
- package/dist/components/InkEditor/components/ToolbarCustomize/index.d.ts.map +1 -0
- package/dist/components/InkEditor/components/index.d.ts +7 -1
- package/dist/components/InkEditor/components/index.d.ts.map +1 -1
- package/dist/components/InkEditor/helpers/format.utils.cjs +2 -1
- package/dist/components/InkEditor/helpers/format.utils.d.ts +9 -0
- package/dist/components/InkEditor/helpers/format.utils.d.ts.map +1 -1
- package/dist/components/InkEditor/helpers/format.utils.js +113 -20
- package/dist/components/InkEditor/helpers/index.d.ts +1 -1
- package/dist/components/InkEditor/helpers/index.d.ts.map +1 -1
- package/dist/constants/blocks.const.cjs +1 -0
- package/dist/constants/blocks.const.d.ts +11 -0
- package/dist/constants/blocks.const.d.ts.map +1 -0
- package/dist/constants/blocks.const.js +14 -0
- package/dist/constants/colorMode.const.cjs +1 -0
- package/dist/constants/colorMode.const.d.ts +6 -0
- package/dist/constants/colorMode.const.d.ts.map +1 -0
- package/dist/constants/colorMode.const.js +7 -0
- package/dist/constants/contextMenu.const.cjs +1 -0
- package/dist/constants/contextMenu.const.d.ts +37 -0
- package/dist/constants/contextMenu.const.d.ts.map +1 -0
- package/dist/constants/contextMenu.const.js +39 -0
- package/dist/constants/defaultIcons.cjs +1 -0
- package/dist/constants/defaultIcons.d.ts +4 -0
- package/dist/constants/defaultIcons.d.ts.map +1 -0
- package/dist/constants/defaultIcons.js +42 -0
- package/dist/constants/defaults.const.cjs +1 -1
- package/dist/constants/defaults.const.d.ts +4 -0
- package/dist/constants/defaults.const.d.ts.map +1 -1
- package/dist/constants/defaults.const.js +56 -48
- package/dist/constants/findReplaceMenu.const.cjs +1 -0
- package/dist/constants/findReplaceMenu.const.d.ts +10 -0
- package/dist/constants/findReplaceMenu.const.d.ts.map +1 -0
- package/dist/constants/findReplaceMenu.const.js +14 -0
- package/dist/constants/fonts.const.cjs +1 -0
- package/dist/constants/fonts.const.d.ts +25 -0
- package/dist/constants/fonts.const.d.ts.map +1 -0
- package/dist/constants/fonts.const.js +40 -0
- package/dist/constants/index.d.ts +11 -0
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/constants/keyboard.const.cjs +1 -0
- package/dist/constants/keyboard.const.d.ts +5 -0
- package/dist/constants/keyboard.const.d.ts.map +1 -0
- package/dist/constants/keyboard.const.js +7 -0
- package/dist/constants/lists.const.cjs +1 -0
- package/dist/constants/lists.const.d.ts +24 -0
- package/dist/constants/lists.const.d.ts.map +1 -0
- package/dist/constants/lists.const.js +28 -0
- package/dist/constants/numbers.cjs +1 -1
- package/dist/constants/numbers.js +30 -15
- package/dist/constants/openai.const.cjs +1 -0
- package/dist/constants/openai.const.d.ts +42 -0
- package/dist/constants/openai.const.d.ts.map +1 -0
- package/dist/constants/openai.const.js +58 -0
- package/dist/constants/premium.const.cjs +1 -1
- package/dist/constants/premium.const.d.ts +1 -2
- package/dist/constants/premium.const.d.ts.map +1 -1
- package/dist/constants/premium.const.js +6 -34
- package/dist/constants/table.const.cjs +1 -0
- package/dist/constants/table.const.d.ts +8 -0
- package/dist/constants/table.const.d.ts.map +1 -0
- package/dist/constants/table.const.js +10 -0
- 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 +11 -4
- package/dist/constants/toolbarMenu.const.cjs +1 -0
- package/dist/constants/toolbarMenu.const.d.ts +19 -0
- package/dist/constants/toolbarMenu.const.d.ts.map +1 -0
- package/dist/constants/toolbarMenu.const.js +65 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +7 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +103 -47
- package/dist/plugins/ai/demoProvider.cjs +1 -1
- package/dist/plugins/ai/demoProvider.d.ts.map +1 -1
- package/dist/plugins/ai/demoProvider.js +47 -37
- package/dist/plugins/ai/index.cjs +1 -1
- package/dist/plugins/ai/index.d.ts +3 -1
- package/dist/plugins/ai/index.d.ts.map +1 -1
- package/dist/plugins/ai/index.js +28 -14
- package/dist/plugins/ai/inkServerProvider.cjs +1 -0
- package/dist/plugins/ai/inkServerProvider.d.ts +4 -0
- package/dist/plugins/ai/inkServerProvider.d.ts.map +1 -0
- package/dist/plugins/ai/inkServerProvider.js +52 -0
- package/dist/plugins/ai/inkServerProvider.types.d.ts +15 -0
- package/dist/plugins/ai/inkServerProvider.types.d.ts.map +1 -0
- package/dist/plugins/ai/openaiProvider.cjs +1 -0
- package/dist/plugins/ai/openaiProvider.d.ts +4 -0
- package/dist/plugins/ai/openaiProvider.d.ts.map +1 -0
- package/dist/plugins/ai/openaiProvider.js +128 -0
- package/dist/plugins/ai/openaiProvider.types.d.ts +32 -0
- package/dist/plugins/ai/openaiProvider.types.d.ts.map +1 -0
- package/dist/plugins/ai/openaiProvider.utils.cjs +5 -0
- package/dist/plugins/ai/openaiProvider.utils.d.ts +14 -0
- package/dist/plugins/ai/openaiProvider.utils.d.ts.map +1 -0
- package/dist/plugins/ai/openaiProvider.utils.js +57 -0
- package/dist/styles.css +1 -721
- package/dist/types/ai.types.d.ts +2 -1
- package/dist/types/ai.types.d.ts.map +1 -1
- package/dist/types/features.types.d.ts +2 -0
- package/dist/types/features.types.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/ink.types.d.ts +7 -2
- package/dist/types/ink.types.d.ts.map +1 -1
- package/dist/types/premium.types.d.ts +1 -1
- package/dist/types/premium.types.d.ts.map +1 -1
- package/dist/utils/blocks.utils.cjs +1 -1
- package/dist/utils/blocks.utils.d.ts +8 -0
- package/dist/utils/blocks.utils.d.ts.map +1 -1
- package/dist/utils/blocks.utils.js +61 -19
- package/dist/utils/blocks.utils.test.d.ts +2 -0
- package/dist/utils/blocks.utils.test.d.ts.map +1 -0
- package/dist/utils/comments.utils.cjs +1 -1
- package/dist/utils/comments.utils.js +23 -18
- package/dist/utils/history.utils.cjs +1 -1
- package/dist/utils/history.utils.js +7 -2
- package/dist/utils/index.d.ts +6 -2
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/license.utils.cjs +1 -1
- package/dist/utils/license.utils.js +15 -10
- package/dist/utils/paste.utils.cjs +1 -1
- package/dist/utils/paste.utils.js +27 -23
- package/dist/utils/premium.utils.cjs +1 -1
- package/dist/utils/premium.utils.js +23 -18
- package/dist/utils/selection.utils.cjs +1 -0
- package/dist/utils/selection.utils.d.ts +10 -0
- package/dist/utils/selection.utils.d.ts.map +1 -0
- package/dist/utils/selection.utils.js +58 -0
- package/dist/utils/selection.utils.test.d.ts +2 -0
- package/dist/utils/selection.utils.test.d.ts.map +1 -0
- package/dist/utils/slash.utils.cjs +1 -1
- package/dist/utils/slash.utils.js +13 -8
- package/dist/utils/table.utils.cjs +1 -1
- package/dist/utils/table.utils.d.ts +5 -0
- package/dist/utils/table.utils.d.ts.map +1 -1
- package/dist/utils/table.utils.js +69 -10
- package/dist/utils/table.utils.test.d.ts +2 -0
- package/dist/utils/table.utils.test.d.ts.map +1 -0
- package/dist/utils/toolbarStorage.utils.cjs +1 -0
- package/dist/utils/toolbarStorage.utils.d.ts +12 -0
- package/dist/utils/toolbarStorage.utils.d.ts.map +1 -0
- package/dist/utils/toolbarStorage.utils.js +92 -0
- package/dist/utils/toolbarStorage.utils.test.d.ts +2 -0
- package/dist/utils/toolbarStorage.utils.test.d.ts.map +1 -0
- package/dist/utils/trackChanges.utils.cjs +1 -1
- package/dist/utils/trackChanges.utils.js +14 -9
- package/dist/utils/typo.utils.cjs +1 -1
- package/dist/utils/typo.utils.js +15 -10
- package/package.json +2 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime");require("./openai.const.cjs");require("../utils/paste.utils.cjs");require("react");require("react-dom");const t=require("../common-components/icons/UndoIcon.cjs"),i=require("../common-components/icons/RedoIcon.cjs"),r={bold:"B",italic:"I",underline:"U",strikethrough:"S",bulletList:"•",orderedList:"1.",link:"🔗",image:"🖼",table:"▦",signature:"✍",findReplace:"⌕",horizontalRule:"―",undo:e.jsx(t.UndoIcon,{}),redo:e.jsx(i.RedoIcon,{}),trackChanges:"±",comments:"💬",ai:"✦",clearFormat:"⌫",directionLtr:"LTR",directionRtl:"RTL",superscript:"x²",subscript:"x₂",alignLeft:"⫷",alignCenter:"☰",alignRight:"⫸",alignJustify:"≡",indent:"→",outdent:"←",blockquote:"“",code:"</>"};exports.INK_DEFAULT_ICONS=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaultIcons.d.ts","sourceRoot":"","sources":["../../src/constants/defaultIcons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,UAAU,EAAE,SAAS,CA+B3D,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import "./openai.const.js";
|
|
3
|
+
import "../utils/paste.utils.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "react-dom";
|
|
6
|
+
import { UndoIcon as i } from "../common-components/icons/UndoIcon.js";
|
|
7
|
+
import { RedoIcon as o } from "../common-components/icons/RedoIcon.js";
|
|
8
|
+
const m = {
|
|
9
|
+
bold: "B",
|
|
10
|
+
italic: "I",
|
|
11
|
+
underline: "U",
|
|
12
|
+
strikethrough: "S",
|
|
13
|
+
bulletList: "•",
|
|
14
|
+
orderedList: "1.",
|
|
15
|
+
link: "🔗",
|
|
16
|
+
image: "🖼",
|
|
17
|
+
table: "▦",
|
|
18
|
+
signature: "✍",
|
|
19
|
+
findReplace: "⌕",
|
|
20
|
+
horizontalRule: "―",
|
|
21
|
+
undo: /* @__PURE__ */ t(i, {}),
|
|
22
|
+
redo: /* @__PURE__ */ t(o, {}),
|
|
23
|
+
trackChanges: "±",
|
|
24
|
+
comments: "💬",
|
|
25
|
+
ai: "✦",
|
|
26
|
+
clearFormat: "⌫",
|
|
27
|
+
directionLtr: "LTR",
|
|
28
|
+
directionRtl: "RTL",
|
|
29
|
+
superscript: "x²",
|
|
30
|
+
subscript: "x₂",
|
|
31
|
+
alignLeft: "⫷",
|
|
32
|
+
alignCenter: "☰",
|
|
33
|
+
alignRight: "⫸",
|
|
34
|
+
alignJustify: "≡",
|
|
35
|
+
indent: "→",
|
|
36
|
+
outdent: "←",
|
|
37
|
+
blockquote: "“",
|
|
38
|
+
code: "</>"
|
|
39
|
+
};
|
|
40
|
+
export {
|
|
41
|
+
m as INK_DEFAULT_ICONS
|
|
42
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./numbers.cjs"),e=require("./toolbar.const.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./numbers.cjs"),e=require("./toolbar.const.cjs"),a=["headingDropdown",e.TOOLBAR_OPTION_FONT_DROPDOWN,"divider","bold","italic","underline","strikethrough",e.TOOLBAR_OPTION_SUPERSCRIPT,e.TOOLBAR_OPTION_SUBSCRIPT,"divider","textColor","highlightColor","divider",e.TOOLBAR_OPTION_LIST_DROPDOWN,e.TOOLBAR_OPTION_DIRECTION_LTR,e.TOOLBAR_OPTION_DIRECTION_RTL,"divider","link","image","table",e.TOOLBAR_OPTION_SIGNATURE,e.TOOLBAR_OPTION_FIND_REPLACE_DROPDOWN,e.TOOLBAR_OPTION_HORIZONTAL_RULE,"divider","undo","redo","divider","trackChanges","comments","ai","divider","clearFormat"],n=["bold","italic","underline","divider",e.TOOLBAR_OPTION_LIST_DROPDOWN],l=["headingDropdown","divider","bold","italic","underline","divider",e.TOOLBAR_OPTION_LIST_DROPDOWN,"table","divider","trackChanges","comments","ai","divider","undo","redo"],_=[{value:"p",label:"Paragraph"},{value:"h1",label:"Heading 1"},{value:"h2",label:"Heading 2"},{value:"h3",label:"Heading 3"},{value:"h4",label:"Heading 4"},{value:"h5",label:"Heading 5"},{value:"h6",label:"Heading 6"}],o={bold:{title:"Bold (Ctrl+B)",command:"bold"},italic:{title:"Italic (Ctrl+I)",command:"italic"},underline:{title:"Underline (Ctrl+U)",command:"underline"},strikethrough:{title:"Strikethrough",command:"strikeThrough"},heading1:{title:"Heading 1",command:"formatBlock",value:"h1"},heading2:{title:"Heading 2",command:"formatBlock",value:"h2"},heading3:{title:"Heading 3",command:"formatBlock",value:"h3"},heading4:{title:"Heading 4",command:"formatBlock",value:"h4"},heading5:{title:"Heading 5",command:"formatBlock",value:"h5"},heading6:{title:"Heading 6",command:"formatBlock",value:"h6"},paragraph:{title:"Paragraph",command:"formatBlock",value:"p"},bulletList:{title:"Bullet list",command:"insertUnorderedList"},orderedList:{title:"Numbered list",command:"insertOrderedList"},blockquote:{title:"Quote",command:"formatBlock",value:"blockquote"},code:{title:"Code block",command:"formatBlock",value:"pre"},directionLtr:{title:"Left to right",command:"directionLtr"},directionRtl:{title:"Right to left",command:"directionRtl"},superscript:{title:"Superscript",command:"superscript"},subscript:{title:"Subscript",command:"subscript"},alignLeft:{title:"Align left",command:"justifyLeft"},alignCenter:{title:"Align center",command:"justifyCenter"},alignRight:{title:"Align right",command:"justifyRight"},alignJustify:{title:"Justify",command:"justifyFull"},indent:{title:"Indent",command:"indent"},outdent:{title:"Outdent",command:"outdent"},clearFormat:{title:"Clear formatting",command:"removeFormat"},undo:{title:"Undo",command:"undo"},redo:{title:"Redo",command:"redo"}},d=["#111827","#dc2626","#ea580c","#ca8a04","#16a34a","#2563eb","#0f766e","#db2777"],r="Start typing...",O="Ink-Editor",I="Ink-Editor__toolbar",c="Ink-Editor__toolbar-show",L="Ink-Editor__content",A="Ink-Editor__divider",s="Ink-Editor__footer",T="Ink-Editor__shell",N="Ink-Editor__body",S="Ink-block--active",m="Ink-tc-insert",u="Ink-tc-delete",E="Ink-comment-mark",C="You",R="classic",i="boxed",K=i,g={table:!0,trackChanges:!0,comments:!0,ai:!0,blocks:!0,slash:!0,history:!0,typoAutoFix:!0,signature:!0,findReplace:!0,horizontalRule:!0},h=t.INK_DEFAULT_TABLE_ROWS,b=t.INK_DEFAULT_TABLE_COLS,B=[{id:"heading1",label:"Heading 1",keywords:["h1","title","heading"],insert:"heading1"},{id:"heading2",label:"Heading 2",keywords:["h2","subtitle","heading"],insert:"heading2"},{id:"bullet",label:"Bullet list",keywords:["ul","list","bullet"],insert:"bulletList"},{id:"ordered",label:"Numbered list",keywords:["ol","list","numbered"],insert:"orderedList"},{id:"table",label:"Table",keywords:["table","grid"],insert:"table"},{id:"ai",label:"Ask AI",keywords:["ai","assistant","chat"],insert:"ai"}],D=["English","Spanish","French","German","Chinese (Simplified)","Japanese","Russian","Portuguese","Korean","Italian"],k=[{id:"rewrite",label:"Rewrite",capability:"rewrite"},{id:"summarize",label:"Summarize",capability:"summarize"},{id:"expand",label:"Expand",capability:"expand"},{id:"tone",label:"Adjust tone",capability:"tone"}];exports.INK_BUTTON_CONFIG=o;exports.INK_CHROME_BOXED=i;exports.INK_CLASS_BLOCK_ACTIVE=S;exports.INK_CLASS_BODY=N;exports.INK_CLASS_COMMENT_MARK=E;exports.INK_CLASS_CONTENT=L;exports.INK_CLASS_DIVIDER=A;exports.INK_CLASS_FOOTER=s;exports.INK_CLASS_ROOT=O;exports.INK_CLASS_SHELL=T;exports.INK_CLASS_TC_DELETE=u;exports.INK_CLASS_TC_INSERT=m;exports.INK_CLASS_TOOLBAR=I;exports.INK_CLASS_TOOLBAR_SHOW=c;exports.INK_COLLAB_TOOLBAR=l;exports.INK_COLOR_SWATCHES=d;exports.INK_DEFAULT_AUTHOR=C;exports.INK_DEFAULT_CHROME=K;exports.INK_DEFAULT_FEATURES=g;exports.INK_DEFAULT_TOOLBAR=a;exports.INK_DEFAULT_VARIANT=R;exports.INK_HEADING_OPTIONS=_;exports.INK_PLACEHOLDER_DEFAULT=r;exports.INK_QUICK_ACTIONS=k;exports.INK_SIMPLE_TOOLBAR=n;exports.INK_SLASH_COMMANDS=B;exports.INK_TABLE_DEFAULT_COLS=b;exports.INK_TABLE_DEFAULT_ROWS=h;exports.INK_TRANSLATE_LANGUAGES=D;
|
|
@@ -12,6 +12,7 @@ export declare const INK_COLOR_SWATCHES: string[];
|
|
|
12
12
|
export declare const INK_PLACEHOLDER_DEFAULT = "Start typing...";
|
|
13
13
|
export declare const INK_CLASS_ROOT = "Ink-Editor";
|
|
14
14
|
export declare const INK_CLASS_TOOLBAR = "Ink-Editor__toolbar";
|
|
15
|
+
export declare const INK_CLASS_TOOLBAR_SHOW = "Ink-Editor__toolbar-show";
|
|
15
16
|
export declare const INK_CLASS_CONTENT = "Ink-Editor__content";
|
|
16
17
|
export declare const INK_CLASS_DIVIDER = "Ink-Editor__divider";
|
|
17
18
|
export declare const INK_CLASS_BUTTON = "Ink-Editor__button";
|
|
@@ -25,6 +26,9 @@ export declare const INK_CLASS_TC_DELETE = "Ink-tc-delete";
|
|
|
25
26
|
export declare const INK_CLASS_COMMENT_MARK = "Ink-comment-mark";
|
|
26
27
|
export declare const INK_DEFAULT_AUTHOR = "You";
|
|
27
28
|
export declare const INK_DEFAULT_VARIANT: "classic";
|
|
29
|
+
export declare const INK_CHROME_BOXED: "boxed";
|
|
30
|
+
export declare const INK_CHROME_BORDERLESS: "borderless";
|
|
31
|
+
export declare const INK_DEFAULT_CHROME: "boxed";
|
|
28
32
|
export declare const INK_DEFAULT_FEATURES: InkFeaturesConfig;
|
|
29
33
|
export declare const INK_TABLE_DEFAULT_ROWS = 3;
|
|
30
34
|
export declare const INK_TABLE_DEFAULT_COLS = 3;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.const.d.ts","sourceRoot":"","sources":["../../src/constants/defaults.const.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"defaults.const.d.ts","sourceRoot":"","sources":["../../src/constants/defaults.const.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAiBlD,eAAO,MAAM,mBAAmB,EAAE,aAAa,EAiC9C,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,aAAa,EAM7C,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,aAAa,EAgB7C,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,cAAc,EAQ/C,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,MAAM,CACpC,MAAM,EACN;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CA8BnD,CAAC;AAEF,eAAO,MAAM,kBAAkB,UAS9B,CAAC;AAEF,eAAO,MAAM,uBAAuB,oBAAoB,CAAC;AACzD,eAAO,MAAM,cAAc,eAAe,CAAC;AAC3C,eAAO,MAAM,iBAAiB,wBAAwB,CAAC;AACvD,eAAO,MAAM,sBAAsB,6BAA6B,CAAC;AACjE,eAAO,MAAM,iBAAiB,wBAAwB,CAAC;AACvD,eAAO,MAAM,iBAAiB,wBAAwB,CAAC;AACvD,eAAO,MAAM,gBAAgB,uBAAuB,CAAC;AACrD,eAAO,MAAM,uBAAuB,+BAA+B,CAAC;AACpE,eAAO,MAAM,gBAAgB,uBAAuB,CAAC;AACrD,eAAO,MAAM,eAAe,sBAAsB,CAAC;AACnD,eAAO,MAAM,cAAc,qBAAqB,CAAC;AACjD,eAAO,MAAM,sBAAsB,sBAAsB,CAAC;AAC1D,eAAO,MAAM,mBAAmB,kBAAkB,CAAC;AACnD,eAAO,MAAM,mBAAmB,kBAAkB,CAAC;AACnD,eAAO,MAAM,sBAAsB,qBAAqB,CAAC;AACzD,eAAO,MAAM,kBAAkB,QAAQ,CAAC;AACxC,eAAO,MAAM,mBAAmB,EAAG,SAAkB,CAAC;AACtD,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AACjD,eAAO,MAAM,qBAAqB,EAAG,YAAqB,CAAC;AAC3D,eAAO,MAAM,kBAAkB,SAAmB,CAAC;AACnD,eAAO,MAAM,oBAAoB,EAAE,iBAYlC,CAAC;AACF,eAAO,MAAM,sBAAsB,IAAyB,CAAC;AAC7D,eAAO,MAAM,sBAAsB,IAAyB,CAAC;AAE7D,eAAO,MAAM,kBAAkB,EAAE,gBAAgB,EAqChD,CAAC;AAEF,eAAO,MAAM,uBAAuB,uIAW1B,CAAC;AAEX,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;IAK7B,CAAC"}
|
|
@@ -1,25 +1,29 @@
|
|
|
1
|
-
import { INK_DEFAULT_TABLE_ROWS as
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
1
|
+
import { INK_DEFAULT_TABLE_ROWS as t, INK_DEFAULT_TABLE_COLS as i } from "./numbers.js";
|
|
2
|
+
import { TOOLBAR_OPTION_LIST_DROPDOWN as e, TOOLBAR_OPTION_FONT_DROPDOWN as a, TOOLBAR_OPTION_SUPERSCRIPT as n, TOOLBAR_OPTION_SUBSCRIPT as l, TOOLBAR_OPTION_DIRECTION_LTR as o, TOOLBAR_OPTION_DIRECTION_RTL as d, TOOLBAR_OPTION_SIGNATURE as r, TOOLBAR_OPTION_FIND_REPLACE_DROPDOWN as c, TOOLBAR_OPTION_HORIZONTAL_RULE as _ } from "./toolbar.const.js";
|
|
3
|
+
const u = [
|
|
4
4
|
"headingDropdown",
|
|
5
|
+
a,
|
|
5
6
|
"divider",
|
|
6
7
|
"bold",
|
|
7
8
|
"italic",
|
|
8
9
|
"underline",
|
|
9
10
|
"strikethrough",
|
|
11
|
+
n,
|
|
12
|
+
l,
|
|
10
13
|
"divider",
|
|
11
14
|
"textColor",
|
|
12
15
|
"highlightColor",
|
|
13
16
|
"divider",
|
|
14
|
-
|
|
15
|
-
|
|
17
|
+
e,
|
|
18
|
+
o,
|
|
19
|
+
d,
|
|
16
20
|
"divider",
|
|
17
21
|
"link",
|
|
18
22
|
"image",
|
|
19
23
|
"table",
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
24
|
+
r,
|
|
25
|
+
c,
|
|
26
|
+
_,
|
|
23
27
|
"divider",
|
|
24
28
|
"undo",
|
|
25
29
|
"redo",
|
|
@@ -29,22 +33,20 @@ const o = [
|
|
|
29
33
|
"ai",
|
|
30
34
|
"divider",
|
|
31
35
|
"clearFormat"
|
|
32
|
-
],
|
|
36
|
+
], I = [
|
|
33
37
|
"bold",
|
|
34
38
|
"italic",
|
|
35
39
|
"underline",
|
|
36
40
|
"divider",
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
], s = [
|
|
41
|
+
e
|
|
42
|
+
], L = [
|
|
40
43
|
"headingDropdown",
|
|
41
44
|
"divider",
|
|
42
45
|
"bold",
|
|
43
46
|
"italic",
|
|
44
47
|
"underline",
|
|
45
48
|
"divider",
|
|
46
|
-
|
|
47
|
-
"orderedList",
|
|
49
|
+
e,
|
|
48
50
|
"table",
|
|
49
51
|
"divider",
|
|
50
52
|
"trackChanges",
|
|
@@ -53,7 +55,7 @@ const o = [
|
|
|
53
55
|
"divider",
|
|
54
56
|
"undo",
|
|
55
57
|
"redo"
|
|
56
|
-
],
|
|
58
|
+
], T = [
|
|
57
59
|
{ value: "p", label: "Paragraph" },
|
|
58
60
|
{ value: "h1", label: "Heading 1" },
|
|
59
61
|
{ value: "h2", label: "Heading 2" },
|
|
@@ -61,7 +63,7 @@ const o = [
|
|
|
61
63
|
{ value: "h4", label: "Heading 4" },
|
|
62
64
|
{ value: "h5", label: "Heading 5" },
|
|
63
65
|
{ value: "h6", label: "Heading 6" }
|
|
64
|
-
],
|
|
66
|
+
], A = {
|
|
65
67
|
bold: { title: "Bold (Ctrl+B)", command: "bold" },
|
|
66
68
|
italic: { title: "Italic (Ctrl+I)", command: "italic" },
|
|
67
69
|
underline: { title: "Underline (Ctrl+U)", command: "underline" },
|
|
@@ -77,6 +79,10 @@ const o = [
|
|
|
77
79
|
orderedList: { title: "Numbered list", command: "insertOrderedList" },
|
|
78
80
|
blockquote: { title: "Quote", command: "formatBlock", value: "blockquote" },
|
|
79
81
|
code: { title: "Code block", command: "formatBlock", value: "pre" },
|
|
82
|
+
directionLtr: { title: "Left to right", command: "directionLtr" },
|
|
83
|
+
directionRtl: { title: "Right to left", command: "directionRtl" },
|
|
84
|
+
superscript: { title: "Superscript", command: "superscript" },
|
|
85
|
+
subscript: { title: "Subscript", command: "subscript" },
|
|
80
86
|
alignLeft: { title: "Align left", command: "justifyLeft" },
|
|
81
87
|
alignCenter: { title: "Align center", command: "justifyCenter" },
|
|
82
88
|
alignRight: { title: "Align right", command: "justifyRight" },
|
|
@@ -86,7 +92,7 @@ const o = [
|
|
|
86
92
|
clearFormat: { title: "Clear formatting", command: "removeFormat" },
|
|
87
93
|
undo: { title: "Undo", command: "undo" },
|
|
88
94
|
redo: { title: "Redo", command: "redo" }
|
|
89
|
-
},
|
|
95
|
+
}, N = [
|
|
90
96
|
"#111827",
|
|
91
97
|
"#dc2626",
|
|
92
98
|
"#ea580c",
|
|
@@ -95,7 +101,7 @@ const o = [
|
|
|
95
101
|
"#2563eb",
|
|
96
102
|
"#0f766e",
|
|
97
103
|
"#db2777"
|
|
98
|
-
],
|
|
104
|
+
], h = "Start typing...", g = "Ink-Editor", b = "Ink-Editor__toolbar", S = "Ink-Editor__toolbar-show", E = "Ink-Editor__content", R = "Ink-Editor__divider", C = "Ink-Editor__footer", k = "Ink-Editor__shell", B = "Ink-Editor__body", K = "Ink-block--active", p = "Ink-tc-insert", v = "Ink-tc-delete", D = "Ink-comment-mark", f = "You", H = "classic", s = "boxed", U = s, P = {
|
|
99
105
|
table: !0,
|
|
100
106
|
trackChanges: !0,
|
|
101
107
|
comments: !0,
|
|
@@ -107,7 +113,7 @@ const o = [
|
|
|
107
113
|
signature: !0,
|
|
108
114
|
findReplace: !0,
|
|
109
115
|
horizontalRule: !0
|
|
110
|
-
},
|
|
116
|
+
}, F = t, y = i, w = [
|
|
111
117
|
{
|
|
112
118
|
id: "heading1",
|
|
113
119
|
label: "Heading 1",
|
|
@@ -144,7 +150,7 @@ const o = [
|
|
|
144
150
|
keywords: ["ai", "assistant", "chat"],
|
|
145
151
|
insert: "ai"
|
|
146
152
|
}
|
|
147
|
-
],
|
|
153
|
+
], M = [
|
|
148
154
|
"English",
|
|
149
155
|
"Spanish",
|
|
150
156
|
"French",
|
|
@@ -155,38 +161,40 @@ const o = [
|
|
|
155
161
|
"Portuguese",
|
|
156
162
|
"Korean",
|
|
157
163
|
"Italian"
|
|
158
|
-
],
|
|
164
|
+
], x = [
|
|
159
165
|
{ id: "rewrite", label: "Rewrite", capability: "rewrite" },
|
|
160
166
|
{ id: "summarize", label: "Summarize", capability: "summarize" },
|
|
161
167
|
{ id: "expand", label: "Expand", capability: "expand" },
|
|
162
168
|
{ id: "tone", label: "Adjust tone", capability: "tone" }
|
|
163
169
|
];
|
|
164
170
|
export {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
171
|
+
A as INK_BUTTON_CONFIG,
|
|
172
|
+
s as INK_CHROME_BOXED,
|
|
173
|
+
K as INK_CLASS_BLOCK_ACTIVE,
|
|
174
|
+
B as INK_CLASS_BODY,
|
|
175
|
+
D as INK_CLASS_COMMENT_MARK,
|
|
176
|
+
E as INK_CLASS_CONTENT,
|
|
177
|
+
R as INK_CLASS_DIVIDER,
|
|
178
|
+
C as INK_CLASS_FOOTER,
|
|
179
|
+
g as INK_CLASS_ROOT,
|
|
180
|
+
k as INK_CLASS_SHELL,
|
|
181
|
+
v as INK_CLASS_TC_DELETE,
|
|
182
|
+
p as INK_CLASS_TC_INSERT,
|
|
183
|
+
b as INK_CLASS_TOOLBAR,
|
|
184
|
+
S as INK_CLASS_TOOLBAR_SHOW,
|
|
185
|
+
L as INK_COLLAB_TOOLBAR,
|
|
186
|
+
N as INK_COLOR_SWATCHES,
|
|
187
|
+
f as INK_DEFAULT_AUTHOR,
|
|
188
|
+
U as INK_DEFAULT_CHROME,
|
|
189
|
+
P as INK_DEFAULT_FEATURES,
|
|
190
|
+
u as INK_DEFAULT_TOOLBAR,
|
|
191
|
+
H as INK_DEFAULT_VARIANT,
|
|
192
|
+
T as INK_HEADING_OPTIONS,
|
|
193
|
+
h as INK_PLACEHOLDER_DEFAULT,
|
|
194
|
+
x as INK_QUICK_ACTIONS,
|
|
195
|
+
I as INK_SIMPLE_TOOLBAR,
|
|
196
|
+
w as INK_SLASH_COMMANDS,
|
|
197
|
+
y as INK_TABLE_DEFAULT_COLS,
|
|
198
|
+
F as INK_TABLE_DEFAULT_ROWS,
|
|
199
|
+
M as INK_TRANSLATE_LANGUAGES
|
|
192
200
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E="find",_="replace",L="Find",A="Replace",F="Find and replace",I="find",N="replace",P=[{value:E,label:L},{value:_,label:A}];exports.FIND_REPLACE_DROPDOWN_TITLE=F;exports.FIND_REPLACE_FOCUS_FIND=I;exports.FIND_REPLACE_FOCUS_REPLACE=N;exports.FIND_REPLACE_LABEL_FIND=L;exports.FIND_REPLACE_LABEL_REPLACE=A;exports.FIND_REPLACE_VALUE_FIND=E;exports.FIND_REPLACE_VALUE_REPLACE=_;exports.INK_FIND_REPLACE_OPTIONS=P;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DropdownOption } from '../types';
|
|
2
|
+
export declare const FIND_REPLACE_VALUE_FIND = "find";
|
|
3
|
+
export declare const FIND_REPLACE_VALUE_REPLACE = "replace";
|
|
4
|
+
export declare const FIND_REPLACE_LABEL_FIND = "Find";
|
|
5
|
+
export declare const FIND_REPLACE_LABEL_REPLACE = "Replace";
|
|
6
|
+
export declare const FIND_REPLACE_DROPDOWN_TITLE = "Find and replace";
|
|
7
|
+
export declare const FIND_REPLACE_FOCUS_FIND: "find";
|
|
8
|
+
export declare const FIND_REPLACE_FOCUS_REPLACE: "replace";
|
|
9
|
+
export declare const INK_FIND_REPLACE_OPTIONS: DropdownOption[];
|
|
10
|
+
//# sourceMappingURL=findReplaceMenu.const.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"findReplaceMenu.const.d.ts","sourceRoot":"","sources":["../../src/constants/findReplaceMenu.const.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,eAAO,MAAM,uBAAuB,SAAS,CAAC;AAC9C,eAAO,MAAM,0BAA0B,YAAY,CAAC;AAEpD,eAAO,MAAM,uBAAuB,SAAS,CAAC;AAC9C,eAAO,MAAM,0BAA0B,YAAY,CAAC;AAEpD,eAAO,MAAM,2BAA2B,qBAAqB,CAAC;AAE9D,eAAO,MAAM,uBAAuB,EAAG,MAAe,CAAC;AACvD,eAAO,MAAM,0BAA0B,EAAG,SAAkB,CAAC;AAE7D,eAAO,MAAM,wBAAwB,EAAE,cAAc,EAGpD,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const E = "find", _ = "replace", L = "Find", A = "Replace", F = "Find and replace", I = "find", N = "replace", e = [
|
|
2
|
+
{ value: E, label: L },
|
|
3
|
+
{ value: _, label: A }
|
|
4
|
+
];
|
|
5
|
+
export {
|
|
6
|
+
F as FIND_REPLACE_DROPDOWN_TITLE,
|
|
7
|
+
I as FIND_REPLACE_FOCUS_FIND,
|
|
8
|
+
N as FIND_REPLACE_FOCUS_REPLACE,
|
|
9
|
+
L as FIND_REPLACE_LABEL_FIND,
|
|
10
|
+
A as FIND_REPLACE_LABEL_REPLACE,
|
|
11
|
+
E as FIND_REPLACE_VALUE_FIND,
|
|
12
|
+
_ as FIND_REPLACE_VALUE_REPLACE,
|
|
13
|
+
e as INK_FIND_REPLACE_OPTIONS
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _="System UI",A="Georgia",T="Times New Roman",O="Arial",N="Courier New",E="Verdana",L="system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif",F="Georgia, serif",e='"Times New Roman", Times, serif',s="Arial, Helvetica, sans-serif",I='"Courier New", Courier, monospace',o="Verdana, Geneva, sans-serif",a="System UI",R="Georgia",n="Times New Roman",t="Arial",M="Courier New",l="Verdana",c={[_]:L,[A]:F,[T]:e,[O]:s,[N]:I,[E]:o},i=[{value:_,label:a},{value:A,label:R},{value:T,label:n},{value:O,label:t},{value:N,label:M},{value:E,label:l}],r="Font",S="fontName",Y="font-family";exports.FONT_COMMAND_NAME=S;exports.FONT_DROPDOWN_TITLE=r;exports.FONT_FAMILY_ARIAL=s;exports.FONT_FAMILY_BY_VALUE=c;exports.FONT_FAMILY_COURIER=I;exports.FONT_FAMILY_GEORGIA=F;exports.FONT_FAMILY_SYSTEM=L;exports.FONT_FAMILY_TIMES=e;exports.FONT_FAMILY_VERDANA=o;exports.FONT_LABEL_ARIAL=t;exports.FONT_LABEL_COURIER=M;exports.FONT_LABEL_GEORGIA=R;exports.FONT_LABEL_SYSTEM=a;exports.FONT_LABEL_TIMES=n;exports.FONT_LABEL_VERDANA=l;exports.FONT_STYLE_PROPERTY=Y;exports.FONT_VALUE_ARIAL=O;exports.FONT_VALUE_COURIER=N;exports.FONT_VALUE_GEORGIA=A;exports.FONT_VALUE_SYSTEM=_;exports.FONT_VALUE_TIMES=T;exports.FONT_VALUE_VERDANA=E;exports.INK_FONT_OPTIONS=i;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DropdownOption } from '../types';
|
|
2
|
+
export declare const FONT_VALUE_SYSTEM = "System UI";
|
|
3
|
+
export declare const FONT_VALUE_GEORGIA = "Georgia";
|
|
4
|
+
export declare const FONT_VALUE_TIMES = "Times New Roman";
|
|
5
|
+
export declare const FONT_VALUE_ARIAL = "Arial";
|
|
6
|
+
export declare const FONT_VALUE_COURIER = "Courier New";
|
|
7
|
+
export declare const FONT_VALUE_VERDANA = "Verdana";
|
|
8
|
+
export declare const FONT_FAMILY_SYSTEM = "system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif";
|
|
9
|
+
export declare const FONT_FAMILY_GEORGIA = "Georgia, serif";
|
|
10
|
+
export declare const FONT_FAMILY_TIMES = "\"Times New Roman\", Times, serif";
|
|
11
|
+
export declare const FONT_FAMILY_ARIAL = "Arial, Helvetica, sans-serif";
|
|
12
|
+
export declare const FONT_FAMILY_COURIER = "\"Courier New\", Courier, monospace";
|
|
13
|
+
export declare const FONT_FAMILY_VERDANA = "Verdana, Geneva, sans-serif";
|
|
14
|
+
export declare const FONT_LABEL_SYSTEM = "System UI";
|
|
15
|
+
export declare const FONT_LABEL_GEORGIA = "Georgia";
|
|
16
|
+
export declare const FONT_LABEL_TIMES = "Times New Roman";
|
|
17
|
+
export declare const FONT_LABEL_ARIAL = "Arial";
|
|
18
|
+
export declare const FONT_LABEL_COURIER = "Courier New";
|
|
19
|
+
export declare const FONT_LABEL_VERDANA = "Verdana";
|
|
20
|
+
export declare const FONT_FAMILY_BY_VALUE: Record<string, string>;
|
|
21
|
+
export declare const INK_FONT_OPTIONS: DropdownOption[];
|
|
22
|
+
export declare const FONT_DROPDOWN_TITLE = "Font";
|
|
23
|
+
export declare const FONT_COMMAND_NAME = "fontName";
|
|
24
|
+
export declare const FONT_STYLE_PROPERTY = "font-family";
|
|
25
|
+
//# sourceMappingURL=fonts.const.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fonts.const.d.ts","sourceRoot":"","sources":["../../src/constants/fonts.const.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,eAAO,MAAM,iBAAiB,cAAc,CAAC;AAC7C,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAC5C,eAAO,MAAM,gBAAgB,oBAAoB,CAAC;AAClD,eAAO,MAAM,gBAAgB,UAAU,CAAC;AACxC,eAAO,MAAM,kBAAkB,gBAAgB,CAAC;AAChD,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAE5C,eAAO,MAAM,kBAAkB,6EAC6C,CAAC;AAC7E,eAAO,MAAM,mBAAmB,mBAAmB,CAAC;AACpD,eAAO,MAAM,iBAAiB,sCAAoC,CAAC;AACnE,eAAO,MAAM,iBAAiB,iCAAiC,CAAC;AAChE,eAAO,MAAM,mBAAmB,wCAAsC,CAAC;AACvE,eAAO,MAAM,mBAAmB,gCAAgC,CAAC;AAEjE,eAAO,MAAM,iBAAiB,cAAc,CAAC;AAC7C,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAC5C,eAAO,MAAM,gBAAgB,oBAAoB,CAAC;AAClD,eAAO,MAAM,gBAAgB,UAAU,CAAC;AACxC,eAAO,MAAM,kBAAkB,gBAAgB,CAAC;AAChD,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAE5C,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAOvD,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,cAAc,EAO5C,CAAC;AAEF,eAAO,MAAM,mBAAmB,SAAS,CAAC;AAC1C,eAAO,MAAM,iBAAiB,aAAa,CAAC;AAC5C,eAAO,MAAM,mBAAmB,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
const e = "System UI", _ = "Georgia", s = "Times New Roman", o = "Arial", A = "Courier New", a = "Verdana", N = "system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif", T = "Georgia, serif", n = '"Times New Roman", Times, serif', O = "Arial, Helvetica, sans-serif", t = '"Courier New", Courier, monospace', E = "Verdana, Geneva, sans-serif", F = "System UI", L = "Georgia", c = "Times New Roman", l = "Arial", I = "Courier New", i = "Verdana", r = {
|
|
2
|
+
[e]: N,
|
|
3
|
+
[_]: T,
|
|
4
|
+
[s]: n,
|
|
5
|
+
[o]: O,
|
|
6
|
+
[A]: t,
|
|
7
|
+
[a]: E
|
|
8
|
+
}, R = [
|
|
9
|
+
{ value: e, label: F },
|
|
10
|
+
{ value: _, label: L },
|
|
11
|
+
{ value: s, label: c },
|
|
12
|
+
{ value: o, label: l },
|
|
13
|
+
{ value: A, label: I },
|
|
14
|
+
{ value: a, label: i }
|
|
15
|
+
], M = "Font", m = "fontName", S = "font-family";
|
|
16
|
+
export {
|
|
17
|
+
m as FONT_COMMAND_NAME,
|
|
18
|
+
M as FONT_DROPDOWN_TITLE,
|
|
19
|
+
O as FONT_FAMILY_ARIAL,
|
|
20
|
+
r as FONT_FAMILY_BY_VALUE,
|
|
21
|
+
t as FONT_FAMILY_COURIER,
|
|
22
|
+
T as FONT_FAMILY_GEORGIA,
|
|
23
|
+
N as FONT_FAMILY_SYSTEM,
|
|
24
|
+
n as FONT_FAMILY_TIMES,
|
|
25
|
+
E as FONT_FAMILY_VERDANA,
|
|
26
|
+
l as FONT_LABEL_ARIAL,
|
|
27
|
+
I as FONT_LABEL_COURIER,
|
|
28
|
+
L as FONT_LABEL_GEORGIA,
|
|
29
|
+
F as FONT_LABEL_SYSTEM,
|
|
30
|
+
c as FONT_LABEL_TIMES,
|
|
31
|
+
i as FONT_LABEL_VERDANA,
|
|
32
|
+
S as FONT_STYLE_PROPERTY,
|
|
33
|
+
o as FONT_VALUE_ARIAL,
|
|
34
|
+
A as FONT_VALUE_COURIER,
|
|
35
|
+
_ as FONT_VALUE_GEORGIA,
|
|
36
|
+
e as FONT_VALUE_SYSTEM,
|
|
37
|
+
s as FONT_VALUE_TIMES,
|
|
38
|
+
a as FONT_VALUE_VERDANA,
|
|
39
|
+
R as INK_FONT_OPTIONS
|
|
40
|
+
};
|
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
export * from './numbers';
|
|
2
2
|
export * from './generals.const';
|
|
3
3
|
export * from './toolbar.const';
|
|
4
|
+
export * from './toolbarMenu.const';
|
|
5
|
+
export * from './colorMode.const';
|
|
6
|
+
export * from './keyboard.const';
|
|
4
7
|
export * from './typos.const';
|
|
8
|
+
export * from './fonts.const';
|
|
9
|
+
export * from './lists.const';
|
|
10
|
+
export * from './findReplaceMenu.const';
|
|
11
|
+
export * from './blocks.const';
|
|
5
12
|
export * from './defaults.const';
|
|
6
13
|
export * from './aiModels.const';
|
|
14
|
+
export * from './openai.const';
|
|
7
15
|
export * from './premium.const';
|
|
16
|
+
export * from './defaultIcons';
|
|
17
|
+
export * from './contextMenu.const';
|
|
18
|
+
export * from './table.const';
|
|
8
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E="Enter",t="Escape",e="Tab",o="z";exports.KEY_ENTER=E;exports.KEY_ESCAPE=t;exports.KEY_TAB=e;exports.KEY_Z=o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keyboard.const.d.ts","sourceRoot":"","sources":["../../src/constants/keyboard.const.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,UAAU,CAAC;AACjC,eAAO,MAAM,UAAU,WAAW,CAAC;AACnC,eAAO,MAAM,OAAO,QAAQ,CAAC;AAC7B,eAAO,MAAM,KAAK,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L="bullet",_="dash",S="numbers",T="letters",A="Bullet (•)",I="Dash (–)",E="Numbers (1. 2. 3.)",t="Letters (a. b. c.)",s="List",l="disc",c="decimal",e="lower-alpha",n="Ink-list--dash",o="Ink-list--alpha",D="UL",O="OL",R="-",a="*",U=" ",B=[{value:L,label:A},{value:_,label:I},{value:S,label:E},{value:T,label:t}];exports.INK_LIST_OPTIONS=B;exports.LIST_CLASS_ALPHA=o;exports.LIST_CLASS_DASH=n;exports.LIST_DROPDOWN_TITLE=s;exports.LIST_LABEL_BULLET=A;exports.LIST_LABEL_DASH=I;exports.LIST_LABEL_LETTERS=t;exports.LIST_LABEL_NUMBERS=E;exports.LIST_MARKDOWN_DASH=R;exports.LIST_MARKDOWN_SPACE=U;exports.LIST_MARKDOWN_STAR=a;exports.LIST_STYLE_DECIMAL=c;exports.LIST_STYLE_DISC=l;exports.LIST_STYLE_LOWER_ALPHA=e;exports.LIST_TAG_OL=O;exports.LIST_TAG_UL=D;exports.LIST_VALUE_BULLET=L;exports.LIST_VALUE_DASH=_;exports.LIST_VALUE_LETTERS=T;exports.LIST_VALUE_NUMBERS=S;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { DropdownOption } from '../types';
|
|
2
|
+
export declare const LIST_VALUE_BULLET = "bullet";
|
|
3
|
+
export declare const LIST_VALUE_DASH = "dash";
|
|
4
|
+
export declare const LIST_VALUE_NUMBERS = "numbers";
|
|
5
|
+
export declare const LIST_VALUE_LETTERS = "letters";
|
|
6
|
+
export declare const LIST_LABEL_BULLET = "Bullet (\u2022)";
|
|
7
|
+
export declare const LIST_LABEL_DASH = "Dash (\u2013)";
|
|
8
|
+
export declare const LIST_LABEL_NUMBERS = "Numbers (1. 2. 3.)";
|
|
9
|
+
export declare const LIST_LABEL_LETTERS = "Letters (a. b. c.)";
|
|
10
|
+
export declare const LIST_DROPDOWN_TITLE = "List";
|
|
11
|
+
export declare const LIST_STYLE_DISC = "disc";
|
|
12
|
+
export declare const LIST_STYLE_DASH = "'\u2013 '";
|
|
13
|
+
export declare const LIST_STYLE_DECIMAL = "decimal";
|
|
14
|
+
export declare const LIST_STYLE_LOWER_ALPHA = "lower-alpha";
|
|
15
|
+
export declare const LIST_CLASS_DASH = "Ink-list--dash";
|
|
16
|
+
export declare const LIST_CLASS_ALPHA = "Ink-list--alpha";
|
|
17
|
+
export declare const LIST_TAG_UL = "UL";
|
|
18
|
+
export declare const LIST_TAG_OL = "OL";
|
|
19
|
+
export declare const LIST_TAG_LI = "LI";
|
|
20
|
+
export declare const LIST_MARKDOWN_DASH = "-";
|
|
21
|
+
export declare const LIST_MARKDOWN_STAR = "*";
|
|
22
|
+
export declare const LIST_MARKDOWN_SPACE = " ";
|
|
23
|
+
export declare const INK_LIST_OPTIONS: DropdownOption[];
|
|
24
|
+
//# sourceMappingURL=lists.const.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lists.const.d.ts","sourceRoot":"","sources":["../../src/constants/lists.const.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,eAAO,MAAM,iBAAiB,WAAW,CAAC;AAC1C,eAAO,MAAM,eAAe,SAAS,CAAC;AACtC,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAC5C,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAE5C,eAAO,MAAM,iBAAiB,oBAAe,CAAC;AAC9C,eAAO,MAAM,eAAe,kBAAa,CAAC;AAC1C,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AAEvD,eAAO,MAAM,mBAAmB,SAAS,CAAC;AAE1C,eAAO,MAAM,eAAe,SAAS,CAAC;AACtC,eAAO,MAAM,eAAe,cAAS,CAAC;AACtC,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAC5C,eAAO,MAAM,sBAAsB,gBAAgB,CAAC;AAEpD,eAAO,MAAM,eAAe,mBAAmB,CAAC;AAChD,eAAO,MAAM,gBAAgB,oBAAoB,CAAC;AAElD,eAAO,MAAM,WAAW,OAAO,CAAC;AAChC,eAAO,MAAM,WAAW,OAAO,CAAC;AAChC,eAAO,MAAM,WAAW,OAAO,CAAC;AAEhC,eAAO,MAAM,kBAAkB,MAAM,CAAC;AACtC,eAAO,MAAM,kBAAkB,MAAM,CAAC;AACtC,eAAO,MAAM,mBAAmB,MAAM,CAAC;AAEvC,eAAO,MAAM,gBAAgB,EAAE,cAAc,EAK5C,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const L = "bullet", _ = "dash", S = "numbers", T = "letters", s = "Bullet (•)", t = "Dash (–)", I = "Numbers (1. 2. 3.)", A = "Letters (a. b. c.)", c = "List", l = "disc", n = "decimal", E = "lower-alpha", o = "Ink-list--dash", e = "Ink-list--alpha", a = "UL", D = "OL", O = "-", R = "*", U = " ", B = [
|
|
2
|
+
{ value: L, label: s },
|
|
3
|
+
{ value: _, label: t },
|
|
4
|
+
{ value: S, label: I },
|
|
5
|
+
{ value: T, label: A }
|
|
6
|
+
];
|
|
7
|
+
export {
|
|
8
|
+
B as INK_LIST_OPTIONS,
|
|
9
|
+
e as LIST_CLASS_ALPHA,
|
|
10
|
+
o as LIST_CLASS_DASH,
|
|
11
|
+
c as LIST_DROPDOWN_TITLE,
|
|
12
|
+
s as LIST_LABEL_BULLET,
|
|
13
|
+
t as LIST_LABEL_DASH,
|
|
14
|
+
A as LIST_LABEL_LETTERS,
|
|
15
|
+
I as LIST_LABEL_NUMBERS,
|
|
16
|
+
O as LIST_MARKDOWN_DASH,
|
|
17
|
+
U as LIST_MARKDOWN_SPACE,
|
|
18
|
+
R as LIST_MARKDOWN_STAR,
|
|
19
|
+
n as LIST_STYLE_DECIMAL,
|
|
20
|
+
l as LIST_STYLE_DISC,
|
|
21
|
+
E as LIST_STYLE_LOWER_ALPHA,
|
|
22
|
+
D as LIST_TAG_OL,
|
|
23
|
+
a as LIST_TAG_UL,
|
|
24
|
+
L as LIST_VALUE_BULLET,
|
|
25
|
+
_ as LIST_VALUE_DASH,
|
|
26
|
+
T as LIST_VALUE_LETTERS,
|
|
27
|
+
S as LIST_VALUE_NUMBERS
|
|
28
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=150,
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=150,E="#111827",N="#fef08a",I=3,T=3,R=1,M=1,U=12,B=12,O=50,L="#fde047",S=8,t=180,o=0,A=2,c=3,n=4,s=6,H=7,K=8,D=9,F=12,X=15,C=17,Y=36,G=40,W=60,e=76,V=100,f=250;exports.INK_COMMENT_HIGHLIGHT_COLOR=L;exports.INK_DEFAULT_HIGHLIGHT_COLOR=N;exports.INK_DEFAULT_TABLE_COLS=T;exports.INK_DEFAULT_TABLE_ROWS=I;exports.INK_DEFAULT_TEXT_COLOR=E;exports.INK_DEMO_AI_DELAY_MS=t;exports.INK_HISTORY_MAX=O;exports.INK_MIN_HEIGHT=_;exports.INK_SLASH_MENU_MAX_ITEMS=S;exports.INK_TABLE_MAX_COLS=B;exports.INK_TABLE_MAX_ROWS=U;exports.INK_TABLE_MIN_COLS=M;exports.INK_TABLE_MIN_ROWS=R;exports.NUMBER_EIGHT=K;exports.NUMBER_FIFTEEN=X;exports.NUMBER_FORTY=G;exports.NUMBER_FOUR=n;exports.NUMBER_NINE=D;exports.NUMBER_ONE_HUNDRED=V;exports.NUMBER_SEVEN=H;exports.NUMBER_SEVENTEEN=C;exports.NUMBER_SEVENTY_SIX=e;exports.NUMBER_SIX=s;exports.NUMBER_SIXTY=W;exports.NUMBER_THIRTY_SIX=Y;exports.NUMBER_THREE=c;exports.NUMBER_TWELVE=F;exports.NUMBER_TWO=A;exports.NUMBER_TWO_HUNDRED_FIFTY=f;exports.NUMBER_ZERO=o;
|
|
@@ -1,18 +1,33 @@
|
|
|
1
|
-
const _ = 150,
|
|
1
|
+
const _ = 150, E = "#111827", N = "#fef08a", I = 3, o = 3, t = 1, R = 1, T = 12, c = 12, n = 50, s = "#fde047", M = 8, U = 180, B = 0, L = 2, O = 3, S = 4, A = 6, H = 7, K = 8, D = 9, F = 12, X = 15, C = 17, Y = 36, G = 40, W = 60, V = 76, e = 100, f = 250;
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
s as INK_COMMENT_HIGHLIGHT_COLOR,
|
|
4
|
+
N as INK_DEFAULT_HIGHLIGHT_COLOR,
|
|
5
|
+
o as INK_DEFAULT_TABLE_COLS,
|
|
6
|
+
I as INK_DEFAULT_TABLE_ROWS,
|
|
7
|
+
E as INK_DEFAULT_TEXT_COLOR,
|
|
8
|
+
U as INK_DEMO_AI_DELAY_MS,
|
|
9
|
+
n as INK_HISTORY_MAX,
|
|
10
10
|
_ as INK_MIN_HEIGHT,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
K as
|
|
17
|
-
|
|
11
|
+
M as INK_SLASH_MENU_MAX_ITEMS,
|
|
12
|
+
c as INK_TABLE_MAX_COLS,
|
|
13
|
+
T as INK_TABLE_MAX_ROWS,
|
|
14
|
+
R as INK_TABLE_MIN_COLS,
|
|
15
|
+
t as INK_TABLE_MIN_ROWS,
|
|
16
|
+
K as NUMBER_EIGHT,
|
|
17
|
+
X as NUMBER_FIFTEEN,
|
|
18
|
+
G as NUMBER_FORTY,
|
|
19
|
+
S as NUMBER_FOUR,
|
|
20
|
+
D as NUMBER_NINE,
|
|
21
|
+
e as NUMBER_ONE_HUNDRED,
|
|
22
|
+
H as NUMBER_SEVEN,
|
|
23
|
+
C as NUMBER_SEVENTEEN,
|
|
24
|
+
V as NUMBER_SEVENTY_SIX,
|
|
25
|
+
A as NUMBER_SIX,
|
|
26
|
+
W as NUMBER_SIXTY,
|
|
27
|
+
Y as NUMBER_THIRTY_SIX,
|
|
28
|
+
O as NUMBER_THREE,
|
|
29
|
+
F as NUMBER_TWELVE,
|
|
30
|
+
L as NUMBER_TWO,
|
|
31
|
+
f as NUMBER_TWO_HUNDRED_FIFTY,
|
|
32
|
+
B as NUMBER_ZERO
|
|
18
33
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("./numbers.cjs"),e=require("./aiModels.const.cjs"),N="openai",t="OpenAI",E="gpt-4.1-mini",A="gpt-4.1",o="https://api.openai.com/v1",n="/chat/completions",s="Authorization",O="Bearer ",R="Content-Type",r="application/json",P="system",T="user",i=I.NUMBER_FORTY,K=1024,a=I.NUMBER_FOUR,M=.3,S=.2,p=/<\/?[a-z][\s\S]*>/i,c=/\[[\s\S]*\]/,l=/^["'`]+|["'`]+$/g,L="<p>",u="</p>",g="provider",d="model",m="tokens",D="info",U="warning",h="error",F="Suggested rewrite",Y="Suggested summary",H="Suggested expansion",V="Suggested tone adjustment",f="Suggested translation",v="Suggested change",C="Consider revising this passage for clarity.",y=e.INK_AI_MODEL_CATALOG.filter(_=>_.id===E||_.id===A),G={chat:"You are Ink AI, a helpful writing assistant. Answer clearly and concisely about the document context.",rewrite:"Rewrite the provided HTML or text for clarity and flow. Return only the rewritten content as simple HTML (prefer a single <p>…</p> or preserve simple tags). No preamble.",summarize:"Summarize the provided HTML or text. Return only the summary as simple HTML (prefer a single <p>…</p>). No preamble.",expand:"Expand the provided HTML or text with useful detail while staying on topic. Return only the expanded content as simple HTML (prefer a single <p>…</p> or preserve simple tags). No preamble.",tone:"Adjust the tone of the provided HTML or text to be clearer and more professional unless another tone is specified in the user message. Return only the revised content as simple HTML. No preamble.",translate:"Translate the provided HTML or text into the target language from the user message. Return only the translation as simple HTML (prefer a single <p>…</p> or preserve simple tags). No preamble.",review:"Review the provided HTML or text for grammar and style. Respond with ONLY a JSON array of objects with keys: message, severity (info|warning|error), originalText, suggestedText. No markdown fences.",quickAction:"Perform the requested quick writing action on the provided HTML or text. Return only the result as simple HTML (prefer a single <p>…</p>). No preamble.",suggestDiff:"Suggest an improved version of the provided HTML or text. Return only the suggested content as simple HTML (prefer a single <p>…</p> or preserve simple tags). No preamble.",autocomplete:"Continue the user text with a short inline completion only. Return only the continuation tokens (no quotes, no explanation, no repeating the prefix). Keep it under about 40 tokens."},w="ink-server",x="Ink Server",b="/api/ai/complete";exports.INK_AI_INK_SERVER_COMPLETE_PATH=b;exports.INK_AI_INK_SERVER_PROVIDER_ID=w;exports.INK_AI_INK_SERVER_PROVIDER_NAME=x;exports.INK_AI_OPENAI_AUTH_HEADER=s;exports.INK_AI_OPENAI_AUTOCOMPLETE_MAX_TOKENS=i;exports.INK_AI_OPENAI_BEARER_PREFIX=O;exports.INK_AI_OPENAI_CHARS_PER_TOKEN_ESTIMATE=a;exports.INK_AI_OPENAI_CHAT_COMPLETIONS_PATH=n;exports.INK_AI_OPENAI_CONTENT_TYPE_HEADER=R;exports.INK_AI_OPENAI_CONTENT_TYPE_JSON=r;exports.INK_AI_OPENAI_DEFAULT_BASE_URL=o;exports.INK_AI_OPENAI_DEFAULT_MAX_TOKENS=K;exports.INK_AI_OPENAI_DIFF_SUMMARY_EXPAND=H;exports.INK_AI_OPENAI_DIFF_SUMMARY_REWRITE=F;exports.INK_AI_OPENAI_DIFF_SUMMARY_SUGGEST=v;exports.INK_AI_OPENAI_DIFF_SUMMARY_SUMMARIZE=Y;exports.INK_AI_OPENAI_DIFF_SUMMARY_TONE=V;exports.INK_AI_OPENAI_DIFF_SUMMARY_TRANSLATE=f;exports.INK_AI_OPENAI_HTML_TAG_PATTERN=p;exports.INK_AI_OPENAI_JSON_ARRAY_PATTERN=c;exports.INK_AI_OPENAI_META_MODEL_KEY=d;exports.INK_AI_OPENAI_META_PROVIDER_KEY=g;exports.INK_AI_OPENAI_META_TOKENS_KEY=m;exports.INK_AI_OPENAI_MODELS=y;exports.INK_AI_OPENAI_MODEL_GPT_4_1=A;exports.INK_AI_OPENAI_MODEL_GPT_4_1_MINI=E;exports.INK_AI_OPENAI_PARAGRAPH_CLOSE=u;exports.INK_AI_OPENAI_PARAGRAPH_OPEN=L;exports.INK_AI_OPENAI_PROVIDER_ID=N;exports.INK_AI_OPENAI_PROVIDER_NAME=t;exports.INK_AI_OPENAI_QUOTE_TRIM_PATTERN=l;exports.INK_AI_OPENAI_REVIEW_FALLBACK_MESSAGE=C;exports.INK_AI_OPENAI_REVIEW_SEVERITY_ERROR=h;exports.INK_AI_OPENAI_REVIEW_SEVERITY_INFO=D;exports.INK_AI_OPENAI_REVIEW_SEVERITY_WARNING=U;exports.INK_AI_OPENAI_ROLE_SYSTEM=P;exports.INK_AI_OPENAI_ROLE_USER=T;exports.INK_AI_OPENAI_SYSTEM_PROMPTS=G;exports.INK_AI_OPENAI_TEMPERATURE_AUTOCOMPLETE=S;exports.INK_AI_OPENAI_TEMPERATURE_DEFAULT=M;
|