@forgedevstack/ink 1.1.7 → 1.1.8
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 +31 -0
- package/README.md +9 -1
- package/bin/ink.const.mjs +26 -0
- package/bin/ink.mjs +58 -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 +1178 -834
- package/dist/components/InkEditor/components/AiPanel/AiPanel.cjs +1 -1
- package/dist/components/InkEditor/components/AiPanel/AiPanel.d.ts.map +1 -1
- package/dist/components/InkEditor/components/AiPanel/AiPanel.js +58 -52
- package/dist/components/InkEditor/components/ExcelSheetPanel/ExcelSheetPanel.cjs +1 -0
- package/dist/components/InkEditor/components/ExcelSheetPanel/ExcelSheetPanel.d.ts +4 -0
- package/dist/components/InkEditor/components/ExcelSheetPanel/ExcelSheetPanel.d.ts.map +1 -0
- package/dist/components/InkEditor/components/ExcelSheetPanel/ExcelSheetPanel.js +209 -0
- package/dist/components/InkEditor/components/ExcelSheetPanel/ExcelSheetPanel.types.d.ts +10 -0
- package/dist/components/InkEditor/components/ExcelSheetPanel/ExcelSheetPanel.types.d.ts.map +1 -0
- package/dist/components/InkEditor/components/ExcelSheetPanel/index.d.ts +3 -0
- package/dist/components/InkEditor/components/ExcelSheetPanel/index.d.ts.map +1 -0
- package/dist/components/InkEditor/components/GraphEditModal/GraphEditModal.cjs +1 -0
- package/dist/components/InkEditor/components/GraphEditModal/GraphEditModal.d.ts +4 -0
- package/dist/components/InkEditor/components/GraphEditModal/GraphEditModal.d.ts.map +1 -0
- package/dist/components/InkEditor/components/GraphEditModal/GraphEditModal.js +91 -0
- package/dist/components/InkEditor/components/GraphEditModal/GraphEditModal.types.d.ts +11 -0
- package/dist/components/InkEditor/components/GraphEditModal/GraphEditModal.types.d.ts.map +1 -0
- package/dist/components/InkEditor/components/GraphEditModal/index.d.ts +3 -0
- package/dist/components/InkEditor/components/GraphEditModal/index.d.ts.map +1 -0
- package/dist/components/InkEditor/components/GraphPicker/GraphPicker.cjs +1 -0
- package/dist/components/InkEditor/components/GraphPicker/GraphPicker.d.ts +4 -0
- package/dist/components/InkEditor/components/GraphPicker/GraphPicker.d.ts.map +1 -0
- package/dist/components/InkEditor/components/GraphPicker/GraphPicker.js +98 -0
- package/dist/components/InkEditor/components/GraphPicker/GraphPicker.types.d.ts +10 -0
- package/dist/components/InkEditor/components/GraphPicker/GraphPicker.types.d.ts.map +1 -0
- package/dist/components/InkEditor/components/GraphPicker/index.d.ts +3 -0
- package/dist/components/InkEditor/components/GraphPicker/index.d.ts.map +1 -0
- package/dist/components/InkEditor/components/HtmlSourcePanel/HtmlSourcePanel.cjs +1 -0
- package/dist/components/InkEditor/components/HtmlSourcePanel/HtmlSourcePanel.d.ts +4 -0
- package/dist/components/InkEditor/components/HtmlSourcePanel/HtmlSourcePanel.d.ts.map +1 -0
- package/dist/components/InkEditor/components/HtmlSourcePanel/HtmlSourcePanel.js +27 -0
- package/dist/components/InkEditor/components/HtmlSourcePanel/HtmlSourcePanel.types.d.ts +7 -0
- package/dist/components/InkEditor/components/HtmlSourcePanel/HtmlSourcePanel.types.d.ts.map +1 -0
- package/dist/components/InkEditor/components/HtmlSourcePanel/index.d.ts +3 -0
- package/dist/components/InkEditor/components/HtmlSourcePanel/index.d.ts.map +1 -0
- package/dist/components/InkEditor/components/OutlineRail/OutlineRail.cjs +1 -1
- package/dist/components/InkEditor/components/OutlineRail/OutlineRail.d.ts.map +1 -1
- package/dist/components/InkEditor/components/OutlineRail/OutlineRail.js +17 -12
- package/dist/components/InkEditor/components/OutlineRail/OutlineRail.types.d.ts +1 -0
- package/dist/components/InkEditor/components/OutlineRail/OutlineRail.types.d.ts.map +1 -1
- package/dist/components/InkEditor/components/TableSizePicker/TableSizePicker.cjs +1 -0
- package/dist/components/InkEditor/components/TableSizePicker/TableSizePicker.const.cjs +1 -0
- package/dist/components/InkEditor/components/TableSizePicker/TableSizePicker.const.d.ts +10 -0
- package/dist/components/InkEditor/components/TableSizePicker/TableSizePicker.const.d.ts.map +1 -0
- package/dist/components/InkEditor/components/TableSizePicker/TableSizePicker.const.js +18 -0
- package/dist/components/InkEditor/components/TableSizePicker/TableSizePicker.d.ts +4 -0
- package/dist/components/InkEditor/components/TableSizePicker/TableSizePicker.d.ts.map +1 -0
- package/dist/components/InkEditor/components/TableSizePicker/TableSizePicker.js +95 -0
- package/dist/components/InkEditor/components/TableSizePicker/TableSizePicker.types.d.ts +11 -0
- package/dist/components/InkEditor/components/TableSizePicker/TableSizePicker.types.d.ts.map +1 -0
- package/dist/components/InkEditor/components/TableSizePicker/index.d.ts +3 -0
- package/dist/components/InkEditor/components/TableSizePicker/index.d.ts.map +1 -0
- package/dist/components/InkEditor/components/ThemePicker/ThemePicker.cjs +1 -0
- package/dist/components/InkEditor/components/ThemePicker/ThemePicker.d.ts +4 -0
- package/dist/components/InkEditor/components/ThemePicker/ThemePicker.d.ts.map +1 -0
- package/dist/components/InkEditor/components/ThemePicker/ThemePicker.js +81 -0
- package/dist/components/InkEditor/components/ThemePicker/ThemePicker.types.d.ts +12 -0
- package/dist/components/InkEditor/components/ThemePicker/ThemePicker.types.d.ts.map +1 -0
- package/dist/components/InkEditor/components/ThemePicker/index.d.ts +3 -0
- package/dist/components/InkEditor/components/ThemePicker/index.d.ts.map +1 -0
- package/dist/components/InkEditor/components/TitleGallery/TitleGallery.cjs +1 -0
- package/dist/components/InkEditor/components/TitleGallery/TitleGallery.d.ts +4 -0
- package/dist/components/InkEditor/components/TitleGallery/TitleGallery.d.ts.map +1 -0
- package/dist/components/InkEditor/components/TitleGallery/TitleGallery.js +79 -0
- package/dist/components/InkEditor/components/TitleGallery/TitleGallery.types.d.ts +10 -0
- package/dist/components/InkEditor/components/TitleGallery/TitleGallery.types.d.ts.map +1 -0
- package/dist/components/InkEditor/components/TitleGallery/index.d.ts +3 -0
- package/dist/components/InkEditor/components/TitleGallery/index.d.ts.map +1 -0
- 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 +41 -18
- package/dist/components/InkEditor/components/ToolbarDropdown/ToolbarDropdown.cjs +1 -1
- package/dist/components/InkEditor/components/ToolbarDropdown/ToolbarDropdown.d.ts.map +1 -1
- package/dist/components/InkEditor/components/ToolbarDropdown/ToolbarDropdown.js +25 -23
- package/dist/components/InkEditor/components/ToolbarDropdown/ToolbarDropdown.utils.cjs +1 -1
- package/dist/components/InkEditor/components/ToolbarDropdown/ToolbarDropdown.utils.d.ts +1 -1
- package/dist/components/InkEditor/components/ToolbarDropdown/ToolbarDropdown.utils.d.ts.map +1 -1
- package/dist/components/InkEditor/components/ToolbarDropdown/ToolbarDropdown.utils.js +7 -7
- package/dist/components/InkEditor/components/index.d.ts +14 -0
- package/dist/components/InkEditor/components/index.d.ts.map +1 -1
- package/dist/components/InkEditor/helpers/format.utils.cjs +2 -2
- package/dist/components/InkEditor/helpers/format.utils.d.ts +1 -1
- package/dist/components/InkEditor/helpers/format.utils.d.ts.map +1 -1
- package/dist/components/InkEditor/helpers/format.utils.js +72 -72
- package/dist/constants/colorMode.const.cjs +1 -1
- package/dist/constants/colorMode.const.d.ts +1 -1
- package/dist/constants/colorMode.const.d.ts.map +1 -1
- package/dist/constants/colorMode.const.js +4 -4
- package/dist/constants/contextMenu.const.cjs +1 -1
- package/dist/constants/contextMenu.const.d.ts +2 -0
- package/dist/constants/contextMenu.const.d.ts.map +1 -1
- package/dist/constants/contextMenu.const.js +17 -15
- package/dist/constants/defaultIcons.cjs +1 -1
- package/dist/constants/defaultIcons.d.ts.map +1 -1
- package/dist/constants/defaultIcons.js +20 -13
- package/dist/constants/defaults.const.cjs +1 -1
- package/dist/constants/defaults.const.d.ts +48 -0
- package/dist/constants/defaults.const.d.ts.map +1 -1
- package/dist/constants/defaults.const.js +201 -102
- package/dist/constants/generals.const.cjs +1 -1
- package/dist/constants/generals.const.d.ts +48 -0
- package/dist/constants/generals.const.d.ts.map +1 -1
- package/dist/constants/generals.const.js +71 -28
- package/dist/constants/index.d.ts +1 -0
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/constants/numbers.cjs +1 -1
- package/dist/constants/numbers.d.ts +14 -0
- package/dist/constants/numbers.d.ts.map +1 -1
- package/dist/constants/numbers.js +44 -30
- package/dist/constants/plugins.const.cjs +1 -0
- package/dist/constants/plugins.const.d.ts +13 -0
- package/dist/constants/plugins.const.d.ts.map +1 -0
- package/dist/constants/plugins.const.js +45 -0
- package/dist/constants/table.const.cjs +1 -1
- package/dist/constants/table.const.d.ts +4 -0
- package/dist/constants/table.const.d.ts.map +1 -1
- package/dist/constants/table.const.js +10 -6
- package/dist/constants/toolbar.const.cjs +1 -1
- package/dist/constants/toolbar.const.d.ts +7 -0
- package/dist/constants/toolbar.const.d.ts.map +1 -1
- package/dist/constants/toolbar.const.js +16 -9
- package/dist/constants/toolbarMenu.const.cjs +1 -1
- package/dist/constants/toolbarMenu.const.d.ts +2 -0
- package/dist/constants/toolbarMenu.const.d.ts.map +1 -1
- package/dist/constants/toolbarMenu.const.js +80 -19
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/useToolbarOverflow.cjs +1 -0
- package/dist/hooks/useToolbarOverflow.d.ts +8 -0
- package/dist/hooks/useToolbarOverflow.d.ts.map +1 -0
- package/dist/hooks/useToolbarOverflow.js +29 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +117 -86
- package/dist/plugins/excel/excel.utils.cjs +1 -0
- package/dist/plugins/excel/excel.utils.d.ts +13 -0
- package/dist/plugins/excel/excel.utils.d.ts.map +1 -0
- package/dist/plugins/excel/excel.utils.js +40 -0
- package/dist/plugins/excel/index.d.ts +3 -0
- package/dist/plugins/excel/index.d.ts.map +1 -0
- package/dist/plugins/graph/graph.const.cjs +1 -0
- package/dist/plugins/graph/graph.const.d.ts +14 -0
- package/dist/plugins/graph/graph.const.d.ts.map +1 -0
- package/dist/plugins/graph/graph.const.js +24 -0
- package/dist/plugins/graph/graph.types.d.ts +7 -0
- package/dist/plugins/graph/graph.types.d.ts.map +1 -0
- package/dist/plugins/graph/graph.utils.cjs +1 -0
- package/dist/plugins/graph/graph.utils.d.ts +11 -0
- package/dist/plugins/graph/graph.utils.d.ts.map +1 -0
- package/dist/plugins/graph/graph.utils.js +76 -0
- package/dist/plugins/graph/index.d.ts +4 -0
- package/dist/plugins/graph/index.d.ts.map +1 -0
- package/dist/plugins/host/index.d.ts +2 -0
- package/dist/plugins/host/index.d.ts.map +1 -0
- package/dist/plugins/host/inkPlugins.cjs +1 -0
- package/dist/plugins/host/inkPlugins.d.ts +16 -0
- package/dist/plugins/host/inkPlugins.d.ts.map +1 -0
- package/dist/plugins/host/inkPlugins.js +20 -0
- package/dist/plugins/index.d.ts +5 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/theme/index.d.ts +4 -0
- package/dist/plugins/theme/index.d.ts.map +1 -0
- package/dist/plugins/theme/inkTheme.cjs +1 -0
- package/dist/plugins/theme/inkTheme.d.ts +5 -0
- package/dist/plugins/theme/inkTheme.d.ts.map +1 -0
- package/dist/plugins/theme/inkTheme.js +30 -0
- package/dist/plugins/theme/theme.const.cjs +1 -0
- package/dist/plugins/theme/theme.const.d.ts +9 -0
- package/dist/plugins/theme/theme.const.d.ts.map +1 -0
- package/dist/plugins/theme/theme.const.js +15 -0
- package/dist/plugins/theme/theme.types.d.ts +12 -0
- package/dist/plugins/theme/theme.types.d.ts.map +1 -0
- package/dist/plugins/titles/index.d.ts +4 -0
- package/dist/plugins/titles/index.d.ts.map +1 -0
- package/dist/plugins/titles/titles.const.cjs +1 -0
- package/dist/plugins/titles/titles.const.d.ts +4 -0
- package/dist/plugins/titles/titles.const.d.ts.map +1 -0
- package/dist/plugins/titles/titles.const.js +15 -0
- package/dist/plugins/titles/titles.types.d.ts +2 -0
- package/dist/plugins/titles/titles.types.d.ts.map +1 -0
- package/dist/plugins/titles/titles.utils.cjs +1 -0
- package/dist/plugins/titles/titles.utils.d.ts +3 -0
- package/dist/plugins/titles/titles.utils.d.ts.map +1 -0
- package/dist/plugins/titles/titles.utils.js +14 -0
- package/dist/styles.css +1 -1
- package/dist/types/features.types.d.ts +1 -1
- package/dist/types/features.types.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/ink.types.d.ts +6 -2
- package/dist/types/ink.types.d.ts.map +1 -1
- package/dist/types/plugin.types.d.ts +8 -0
- package/dist/types/plugin.types.d.ts.map +1 -0
- package/dist/types/premium.types.d.ts +1 -1
- package/dist/types/premium.types.d.ts.map +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/outline.utils.cjs +1 -1
- package/dist/utils/outline.utils.d.ts.map +1 -1
- package/dist/utils/outline.utils.js +32 -32
- package/dist/utils/table.utils.cjs +1 -1
- package/dist/utils/table.utils.d.ts +4 -0
- package/dist/utils/table.utils.d.ts.map +1 -1
- package/dist/utils/table.utils.js +84 -45
- package/package.json +7 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NUMBER_ZERO as i } from "../../../constants/numbers.js";
|
|
2
|
-
import { FONT_VALUE_SYSTEM as
|
|
3
|
-
import { LIST_TAG_UL as N, LIST_CLASS_DASH as
|
|
2
|
+
import { FONT_VALUE_SYSTEM as P, FONT_FAMILY_BY_VALUE as w, FONT_COMMAND_NAME as d, FONT_STYLE_PROPERTY as U } from "../../../constants/fonts.const.js";
|
|
3
|
+
import { LIST_TAG_UL as N, LIST_CLASS_DASH as _, LIST_VALUE_DASH as u, LIST_VALUE_BULLET as l, LIST_TAG_OL as R, LIST_CLASS_ALPHA as f, LIST_STYLE_LOWER_ALPHA as M, LIST_VALUE_LETTERS as I, LIST_VALUE_NUMBERS as h, LIST_MARKDOWN_SPACE as Y, LIST_MARKDOWN_DASH as E, LIST_MARKDOWN_STAR as A, LIST_STYLE_DISC as H, LIST_STYLE_DECIMAL as b } from "../../../constants/lists.const.js";
|
|
4
4
|
import { DIR_ATTRIBUTE as k } from "../../../constants/blocks.const.js";
|
|
5
5
|
import "../../../constants/openai.const.js";
|
|
6
6
|
import "react/jsx-runtime";
|
|
@@ -8,112 +8,112 @@ import { getBlockElement as F } from "../../../utils/blocks.utils.js";
|
|
|
8
8
|
import "../../../utils/paste.utils.js";
|
|
9
9
|
import "react";
|
|
10
10
|
import "react-dom";
|
|
11
|
-
const
|
|
11
|
+
const v = "color", B = "background-color", W = "background", C = "color", y = "style", x = 1, K = 3, q = "removeFormat", S = "insertUnorderedList", D = "insertOrderedList", $ = "superscript", G = "subscript", V = "styleWithCSS", s = (t, e) => document.execCommand(t, !1, e), c = (t) => document.queryCommandState(t), _t = (t) => document.queryCommandValue(t), Q = "http://", O = "https://", X = "mailto:", Z = "&", j = "<", z = ">", J = """, tt = (t) => t.replace(/&/g, Z).replace(/</g, j).replace(/>/g, z).replace(/"/g, J), ft = (t, e = "") => {
|
|
12
12
|
if (!t) return !1;
|
|
13
|
-
const
|
|
14
|
-
return s("
|
|
15
|
-
},
|
|
16
|
-
const
|
|
17
|
-
return
|
|
18
|
-
},
|
|
13
|
+
const n = t.startsWith(Q) || t.startsWith(O) || t.startsWith(X) ? t : `${O}${t}`, r = window.getSelection();
|
|
14
|
+
return (!r || r.isCollapsed) && e ? s("insertHTML", `<a href="${n}">${tt(e)}</a>`) : s("createLink", n);
|
|
15
|
+
}, St = (t) => s("foreColor", t), mt = (t) => s("hiliteColor", t), et = (t) => s("insertHTML", t), pt = (t, e = "") => {
|
|
16
|
+
const n = e.replace(/"/g, """);
|
|
17
|
+
return et(`<img src="${t}" alt="${n}" style="max-width:100%;height:auto;" />`);
|
|
18
|
+
}, Et = (t) => new Promise((e, n) => {
|
|
19
19
|
const r = new FileReader();
|
|
20
|
-
r.onload = () => e(String(r.result)), r.onerror =
|
|
21
|
-
}),
|
|
20
|
+
r.onload = () => e(String(r.result)), r.onerror = n, r.readAsDataURL(t);
|
|
21
|
+
}), At = () => {
|
|
22
22
|
const t = /* @__PURE__ */ new Set();
|
|
23
|
-
return c("bold") && t.add("bold"), c("italic") && t.add("italic"), c("underline") && t.add("underline"), c("strikeThrough") && t.add("strikethrough"), c(
|
|
23
|
+
return c("bold") && t.add("bold"), c("italic") && t.add("italic"), c("underline") && t.add("underline"), c("strikeThrough") && t.add("strikethrough"), c(S) && t.add("bulletList"), c(D) && t.add("orderedList"), c($) && t.add("superscript"), c(G) && t.add("subscript"), t;
|
|
24
24
|
}, g = (t) => {
|
|
25
|
-
t.style.removeProperty(
|
|
26
|
-
const e = t.getAttribute(
|
|
27
|
-
e !== null && !e.trim() && t.removeAttribute(
|
|
28
|
-
},
|
|
25
|
+
t.style.removeProperty(v), t.style.removeProperty(B), t.style.removeProperty(W), t.hasAttribute(C) && t.removeAttribute(C);
|
|
26
|
+
const e = t.getAttribute(y);
|
|
27
|
+
e !== null && !e.trim() && t.removeAttribute(y);
|
|
28
|
+
}, rt = () => {
|
|
29
29
|
const t = window.getSelection();
|
|
30
30
|
if (!t || t.rangeCount === i) return;
|
|
31
|
-
const
|
|
32
|
-
r && (r instanceof HTMLElement && t.containsNode(r, !0) && g(r), r.querySelectorAll("*").forEach((
|
|
33
|
-
|
|
31
|
+
const n = t.getRangeAt(i).commonAncestorContainer, r = n.nodeType === x ? n : n.parentElement;
|
|
32
|
+
r && (r instanceof HTMLElement && t.containsNode(r, !0) && g(r), r.querySelectorAll("*").forEach((o) => {
|
|
33
|
+
o instanceof HTMLElement && t.containsNode(o, !0) && g(o);
|
|
34
34
|
}));
|
|
35
|
-
},
|
|
35
|
+
}, Ct = () => {
|
|
36
36
|
const t = s(q);
|
|
37
|
-
return
|
|
38
|
-
},
|
|
39
|
-
const e =
|
|
40
|
-
if (s(
|
|
41
|
-
const
|
|
42
|
-
if (!
|
|
43
|
-
return s(
|
|
44
|
-
const r =
|
|
45
|
-
|
|
37
|
+
return rt(), t;
|
|
38
|
+
}, yt = (t) => {
|
|
39
|
+
const e = w[t] ?? t;
|
|
40
|
+
if (s(V, "true"), t === P) {
|
|
41
|
+
const n = window.getSelection();
|
|
42
|
+
if (!n || n.rangeCount === i || n.isCollapsed)
|
|
43
|
+
return s(d, e);
|
|
44
|
+
const r = n.getRangeAt(i), o = document.createElement("span");
|
|
45
|
+
o.style.setProperty(U, e);
|
|
46
46
|
try {
|
|
47
|
-
return r.surroundContents(
|
|
47
|
+
return r.surroundContents(o), !0;
|
|
48
48
|
} catch {
|
|
49
|
-
return s(
|
|
49
|
+
return s(d, e);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
return s(
|
|
53
|
-
},
|
|
54
|
-
t.classList.remove(
|
|
55
|
-
},
|
|
56
|
-
s(t === l || t === u ?
|
|
52
|
+
return s(d, t);
|
|
53
|
+
}, nt = (t) => {
|
|
54
|
+
t.classList.remove(_, f), t.style.removeProperty("list-style-type");
|
|
55
|
+
}, Ot = (t) => {
|
|
56
|
+
s(t === l || t === u ? S : D);
|
|
57
57
|
const e = window.getSelection();
|
|
58
|
-
let r = (e == null ? void 0 : e.anchorNode) ?? null,
|
|
58
|
+
let r = (e == null ? void 0 : e.anchorNode) ?? null, o = null;
|
|
59
59
|
for (; r; ) {
|
|
60
|
-
if (r instanceof HTMLElement && (r.tagName === N || r.tagName ===
|
|
61
|
-
|
|
60
|
+
if (r instanceof HTMLElement && (r.tagName === N || r.tagName === R)) {
|
|
61
|
+
o = r;
|
|
62
62
|
break;
|
|
63
63
|
}
|
|
64
64
|
r = r.parentNode;
|
|
65
65
|
}
|
|
66
|
-
return
|
|
67
|
-
},
|
|
66
|
+
return o && (nt(o), t === l ? o.style.listStyleType = H : t === u ? o.classList.add(_) : t === h ? o.style.listStyleType = b : t === I && (o.classList.add(f), o.style.listStyleType = M)), !0;
|
|
67
|
+
}, gt = () => {
|
|
68
68
|
const t = window.getSelection();
|
|
69
69
|
let e = (t == null ? void 0 : t.anchorNode) ?? null;
|
|
70
70
|
for (; e; ) {
|
|
71
71
|
if (e instanceof HTMLElement) {
|
|
72
72
|
if (e.tagName === N)
|
|
73
|
-
return e.classList.contains(
|
|
74
|
-
if (e.tagName ===
|
|
75
|
-
return e.classList.contains(
|
|
73
|
+
return e.classList.contains(_) ? u : l;
|
|
74
|
+
if (e.tagName === R)
|
|
75
|
+
return e.classList.contains(f) || e.style.listStyleType === M ? I : h;
|
|
76
76
|
}
|
|
77
77
|
e = e.parentNode;
|
|
78
78
|
}
|
|
79
79
|
return l;
|
|
80
|
-
},
|
|
81
|
-
const
|
|
80
|
+
}, Nt = (t, e) => {
|
|
81
|
+
const n = window.getSelection(), r = F((n == null ? void 0 : n.anchorNode) ?? null, t);
|
|
82
82
|
return r ? (r.setAttribute(k, e), !0) : !1;
|
|
83
|
-
},
|
|
84
|
-
if (t.key !==
|
|
83
|
+
}, Rt = (t) => {
|
|
84
|
+
if (t.key !== Y) return !1;
|
|
85
85
|
const e = window.getSelection();
|
|
86
86
|
if (!e || !e.isCollapsed || e.rangeCount === i)
|
|
87
87
|
return !1;
|
|
88
|
-
const
|
|
89
|
-
if (!
|
|
90
|
-
const r =
|
|
91
|
-
if (!
|
|
92
|
-
const a =
|
|
88
|
+
const n = e.anchorNode;
|
|
89
|
+
if (!n || n.nodeType !== K) return !1;
|
|
90
|
+
const r = n.textContent ?? "", o = e.anchorOffset, T = r.slice(i, o), m = T.endsWith(E) ? E : T.endsWith(A) ? A : null;
|
|
91
|
+
if (!m) return !1;
|
|
92
|
+
const a = o - m.length;
|
|
93
93
|
if (a < i) return !1;
|
|
94
|
-
const
|
|
95
|
-
if (
|
|
94
|
+
const p = a > i ? T[a - 1] : "";
|
|
95
|
+
if (p && p !== `
|
|
96
96
|
`) return !1;
|
|
97
97
|
t.preventDefault();
|
|
98
|
-
const
|
|
99
|
-
return
|
|
98
|
+
const L = e.getRangeAt(i);
|
|
99
|
+
return L.setStart(n, a), L.setEnd(n, o), L.deleteContents(), s(S), !0;
|
|
100
100
|
};
|
|
101
101
|
export {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
102
|
+
yt as applyFontFamily,
|
|
103
|
+
Ot as applyListType,
|
|
104
|
+
Ct as clearFormatDeep,
|
|
105
|
+
gt as detectListType,
|
|
106
106
|
s as execCommand,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
107
|
+
Et as fileToDataUrl,
|
|
108
|
+
At as getActiveFormats,
|
|
109
|
+
et as insertHTML,
|
|
110
|
+
pt as insertImage,
|
|
111
|
+
ft as insertLink,
|
|
112
112
|
c as queryCommandState,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
113
|
+
_t as queryCommandValue,
|
|
114
|
+
Nt as setBlockDirection,
|
|
115
|
+
mt as setHighlightColor,
|
|
116
|
+
St as setTextColor,
|
|
117
|
+
rt as stripSelectionColors,
|
|
118
|
+
Rt as tryConvertMarkdownListPrefix
|
|
119
119
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O="light",_="dark",t="system",D=O;exports.COLOR_MODE_DARK=_;exports.COLOR_MODE_LIGHT=O;exports.COLOR_MODE_SYSTEM=t;exports.INK_DEFAULT_COLOR_MODE=D;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const COLOR_MODE_LIGHT: "light";
|
|
2
2
|
export declare const COLOR_MODE_DARK: "dark";
|
|
3
3
|
export declare const COLOR_MODE_SYSTEM: "system";
|
|
4
|
-
export declare const INK_DEFAULT_COLOR_MODE: "
|
|
4
|
+
export declare const INK_DEFAULT_COLOR_MODE: "light";
|
|
5
5
|
export declare const COLOR_MODE_MEDIA_QUERY = "(prefers-color-scheme: dark)";
|
|
6
6
|
//# sourceMappingURL=colorMode.const.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colorMode.const.d.ts","sourceRoot":"","sources":["../../src/constants/colorMode.const.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AACjD,eAAO,MAAM,eAAe,EAAG,MAAe,CAAC;AAC/C,eAAO,MAAM,iBAAiB,EAAG,QAAiB,CAAC;AAEnD,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"colorMode.const.d.ts","sourceRoot":"","sources":["../../src/constants/colorMode.const.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AACjD,eAAO,MAAM,eAAe,EAAG,MAAe,CAAC;AAC/C,eAAO,MAAM,iBAAiB,EAAG,QAAiB,CAAC;AAEnD,eAAO,MAAM,sBAAsB,SAAmB,CAAC;AAEvD,eAAO,MAAM,sBAAsB,iCAAiC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const
|
|
1
|
+
const O = "light", _ = "dark", t = "system", s = O;
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
_ as COLOR_MODE_DARK,
|
|
4
|
+
O as COLOR_MODE_LIGHT,
|
|
5
|
+
t as COLOR_MODE_SYSTEM,
|
|
6
6
|
s as INK_DEFAULT_COLOR_MODE
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E="bold",_="italic",T="underline",N="strikethrough",L="link",O="bulletList",C="orderedList",
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E="bold",_="italic",T="underline",N="strikethrough",L="link",O="bulletList",C="orderedList",A="heading2",U="clearFormat",B="findReplace",M="signature",t="comment",I="tableRowAbove",D="tableRowBelow",X="tableColLeft",o="tableColRight",e="tableDeleteRow",n="tableDeleteCol",s="Bold",c="Italic",R="Underline",l="Strikethrough",r="Insert link",a="Bullet list",i="Numbered list",d="Heading",W="Clear format",b="Find and replace",H="Sign pad",u="Add comment",g="Insert row above",G="Insert row below",S="Insert column left",m="Insert column right",F="Delete row",w="Delete column",h="tableHeader",K="Toggle header row";exports.CONTEXT_MENU_ID_BOLD=E;exports.CONTEXT_MENU_ID_BULLET=O;exports.CONTEXT_MENU_ID_CLEAR=U;exports.CONTEXT_MENU_ID_COMMENT=t;exports.CONTEXT_MENU_ID_FIND=B;exports.CONTEXT_MENU_ID_HEADING=A;exports.CONTEXT_MENU_ID_ITALIC=_;exports.CONTEXT_MENU_ID_LINK=L;exports.CONTEXT_MENU_ID_ORDERED=C;exports.CONTEXT_MENU_ID_SIGNATURE=M;exports.CONTEXT_MENU_ID_STRIKE=N;exports.CONTEXT_MENU_ID_TABLE_COL_LEFT=X;exports.CONTEXT_MENU_ID_TABLE_COL_RIGHT=o;exports.CONTEXT_MENU_ID_TABLE_DELETE_COL=n;exports.CONTEXT_MENU_ID_TABLE_DELETE_ROW=e;exports.CONTEXT_MENU_ID_TABLE_HEADER=h;exports.CONTEXT_MENU_ID_TABLE_ROW_ABOVE=I;exports.CONTEXT_MENU_ID_TABLE_ROW_BELOW=D;exports.CONTEXT_MENU_ID_UNDERLINE=T;exports.CONTEXT_MENU_LABEL_BOLD=s;exports.CONTEXT_MENU_LABEL_BULLET=a;exports.CONTEXT_MENU_LABEL_CLEAR=W;exports.CONTEXT_MENU_LABEL_COMMENT=u;exports.CONTEXT_MENU_LABEL_FIND=b;exports.CONTEXT_MENU_LABEL_HEADING=d;exports.CONTEXT_MENU_LABEL_ITALIC=c;exports.CONTEXT_MENU_LABEL_LINK=r;exports.CONTEXT_MENU_LABEL_ORDERED=i;exports.CONTEXT_MENU_LABEL_SIGNATURE=H;exports.CONTEXT_MENU_LABEL_STRIKE=l;exports.CONTEXT_MENU_LABEL_TABLE_COL_LEFT=S;exports.CONTEXT_MENU_LABEL_TABLE_COL_RIGHT=m;exports.CONTEXT_MENU_LABEL_TABLE_DELETE_COL=w;exports.CONTEXT_MENU_LABEL_TABLE_DELETE_ROW=F;exports.CONTEXT_MENU_LABEL_TABLE_HEADER=K;exports.CONTEXT_MENU_LABEL_TABLE_ROW_ABOVE=g;exports.CONTEXT_MENU_LABEL_TABLE_ROW_BELOW=G;exports.CONTEXT_MENU_LABEL_UNDERLINE=R;
|
|
@@ -34,4 +34,6 @@ export declare const CONTEXT_MENU_LABEL_TABLE_COL_LEFT = "Insert column left";
|
|
|
34
34
|
export declare const CONTEXT_MENU_LABEL_TABLE_COL_RIGHT = "Insert column right";
|
|
35
35
|
export declare const CONTEXT_MENU_LABEL_TABLE_DELETE_ROW = "Delete row";
|
|
36
36
|
export declare const CONTEXT_MENU_LABEL_TABLE_DELETE_COL = "Delete column";
|
|
37
|
+
export declare const CONTEXT_MENU_ID_TABLE_HEADER = "tableHeader";
|
|
38
|
+
export declare const CONTEXT_MENU_LABEL_TABLE_HEADER = "Toggle header row";
|
|
37
39
|
//# sourceMappingURL=contextMenu.const.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contextMenu.const.d.ts","sourceRoot":"","sources":["../../src/constants/contextMenu.const.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,SAAS,CAAC;AAC3C,eAAO,MAAM,sBAAsB,WAAW,CAAC;AAC/C,eAAO,MAAM,yBAAyB,cAAc,CAAC;AACrD,eAAO,MAAM,sBAAsB,kBAAkB,CAAC;AACtD,eAAO,MAAM,oBAAoB,SAAS,CAAC;AAC3C,eAAO,MAAM,sBAAsB,eAAe,CAAC;AACnD,eAAO,MAAM,uBAAuB,gBAAgB,CAAC;AACrD,eAAO,MAAM,uBAAuB,aAAa,CAAC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qBAAqB,CAAC;AACrE,eAAO,MAAM,kCAAkC,qBAAqB,CAAC;AACrE,eAAO,MAAM,iCAAiC,uBAAuB,CAAC;AACtE,eAAO,MAAM,kCAAkC,wBAAwB,CAAC;AACxE,eAAO,MAAM,mCAAmC,eAAe,CAAC;AAChE,eAAO,MAAM,mCAAmC,kBAAkB,CAAC;AACnE,eAAO,MAAM,4BAA4B,gBAAgB,CAAC;AAC1D,eAAO,MAAM,+BAA+B,sBAAsB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const E = "bold", _ = "italic", T = "underline", N = "strikethrough", L = "link", t = "bulletList", o = "orderedList", n = "heading2", O = "clearFormat", e = "findReplace", C = "signature", s = "comment", c = "tableRowAbove",
|
|
1
|
+
const E = "bold", _ = "italic", T = "underline", N = "strikethrough", L = "link", t = "bulletList", o = "orderedList", n = "heading2", O = "clearFormat", e = "findReplace", C = "signature", s = "comment", c = "tableRowAbove", A = "tableRowBelow", U = "tableColLeft", B = "tableColRight", I = "tableDeleteRow", M = "tableDeleteCol", D = "Bold", l = "Italic", X = "Underline", r = "Strikethrough", R = "Insert link", a = "Bullet list", i = "Numbered list", d = "Heading", b = "Clear format", g = "Find and replace", m = "Sign pad", u = "Add comment", w = "Insert row above", h = "Insert row below", H = "Insert column left", W = "Insert column right", F = "Delete row", G = "Delete column", S = "tableHeader", f = "Toggle header row";
|
|
2
2
|
export {
|
|
3
3
|
E as CONTEXT_MENU_ID_BOLD,
|
|
4
4
|
t as CONTEXT_MENU_ID_BULLET,
|
|
@@ -11,29 +11,31 @@ export {
|
|
|
11
11
|
o as CONTEXT_MENU_ID_ORDERED,
|
|
12
12
|
C as CONTEXT_MENU_ID_SIGNATURE,
|
|
13
13
|
N as CONTEXT_MENU_ID_STRIKE,
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
U as CONTEXT_MENU_ID_TABLE_COL_LEFT,
|
|
15
|
+
B as CONTEXT_MENU_ID_TABLE_COL_RIGHT,
|
|
16
16
|
M as CONTEXT_MENU_ID_TABLE_DELETE_COL,
|
|
17
|
-
|
|
17
|
+
I as CONTEXT_MENU_ID_TABLE_DELETE_ROW,
|
|
18
|
+
S as CONTEXT_MENU_ID_TABLE_HEADER,
|
|
18
19
|
c as CONTEXT_MENU_ID_TABLE_ROW_ABOVE,
|
|
19
|
-
|
|
20
|
+
A as CONTEXT_MENU_ID_TABLE_ROW_BELOW,
|
|
20
21
|
T as CONTEXT_MENU_ID_UNDERLINE,
|
|
21
22
|
D as CONTEXT_MENU_LABEL_BOLD,
|
|
22
|
-
|
|
23
|
+
a as CONTEXT_MENU_LABEL_BULLET,
|
|
23
24
|
b as CONTEXT_MENU_LABEL_CLEAR,
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
u as CONTEXT_MENU_LABEL_COMMENT,
|
|
26
|
+
g as CONTEXT_MENU_LABEL_FIND,
|
|
26
27
|
d as CONTEXT_MENU_LABEL_HEADING,
|
|
27
28
|
l as CONTEXT_MENU_LABEL_ITALIC,
|
|
28
29
|
R as CONTEXT_MENU_LABEL_LINK,
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
i as CONTEXT_MENU_LABEL_ORDERED,
|
|
31
|
+
m as CONTEXT_MENU_LABEL_SIGNATURE,
|
|
31
32
|
r as CONTEXT_MENU_LABEL_STRIKE,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
H as CONTEXT_MENU_LABEL_TABLE_COL_LEFT,
|
|
34
|
+
W as CONTEXT_MENU_LABEL_TABLE_COL_RIGHT,
|
|
35
|
+
G as CONTEXT_MENU_LABEL_TABLE_DELETE_COL,
|
|
36
|
+
F as CONTEXT_MENU_LABEL_TABLE_DELETE_ROW,
|
|
37
|
+
f as CONTEXT_MENU_LABEL_TABLE_HEADER,
|
|
36
38
|
w as CONTEXT_MENU_LABEL_TABLE_ROW_ABOVE,
|
|
37
|
-
|
|
39
|
+
h as CONTEXT_MENU_LABEL_TABLE_ROW_BELOW,
|
|
38
40
|
X as CONTEXT_MENU_LABEL_UNDERLINE
|
|
39
41
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("./generals.const.cjs"),o=require("./defaults.const.cjs");require("./openai.const.cjs");require("../utils/paste.utils.cjs");require("react");require("react-dom");const r=require("../common-components/icons/UndoIcon.cjs"),s=require("../common-components/icons/RedoIcon.cjs"),t=require("../common-components/icons/BulletListIcon.cjs"),c=require("../common-components/icons/OrderedListIcon.cjs"),i=require("../common-components/icons/ChecklistIcon.cjs"),l=require("../common-components/icons/ImageToolIcon.cjs"),I=require("../common-components/icons/LinkToolIcon.cjs"),L=require("../common-components/icons/TableToolIcon.cjs"),u=require("../common-components/icons/QuoteIcon.cjs"),a={bold:e.jsx("span",{className:`${o.INK_CLASS_GLYPH} ${o.INK_CLASS_GLYPH_BOLD}`,children:n.INK_GLYPH_BOLD}),italic:e.jsx("span",{className:`${o.INK_CLASS_GLYPH} ${o.INK_CLASS_GLYPH_ITALIC}`,children:n.INK_GLYPH_ITALIC}),underline:e.jsx("span",{className:`${o.INK_CLASS_GLYPH} ${o.INK_CLASS_GLYPH_UNDERLINE}`,children:n.INK_GLYPH_UNDERLINE}),strikethrough:e.jsx("span",{className:`${o.INK_CLASS_GLYPH} ${o.INK_CLASS_GLYPH_STRIKE}`,children:n.INK_GLYPH_STRIKE}),bulletList:e.jsx(t.BulletListIcon,{}),orderedList:e.jsx(c.OrderedListIcon,{}),checklist:e.jsx(i.ChecklistIcon,{}),link:e.jsx(I.LinkToolIcon,{}),image:e.jsx(l.ImageToolIcon,{}),table:e.jsx(L.TableToolIcon,{}),signature:"✍",findReplace:"⌕",horizontalRule:"―",undo:e.jsx(r.UndoIcon,{}),redo:e.jsx(s.RedoIcon,{}),trackChanges:"±",comments:"💬",ai:"✦",clearFormat:"⌫",directionLtr:"LTR",directionRtl:"RTL",superscript:"x²",subscript:"x₂",alignLeft:"⫷",alignCenter:"☰",alignRight:"⫸",alignJustify:"≡",indent:"→",outdent:"←",blockquote:e.jsx(u.QuoteIcon,{}),code:"</>"};exports.INK_DEFAULT_ICONS=a;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("./generals.const.cjs"),o=require("./defaults.const.cjs");require("./openai.const.cjs");require("../utils/paste.utils.cjs");require("react");require("react-dom");const r=require("../common-components/icons/UndoIcon.cjs"),s=require("../common-components/icons/RedoIcon.cjs"),t=require("../common-components/icons/BulletListIcon.cjs"),c=require("../common-components/icons/OrderedListIcon.cjs"),i=require("../common-components/icons/ChecklistIcon.cjs"),l=require("../common-components/icons/ImageToolIcon.cjs"),I=require("../common-components/icons/LinkToolIcon.cjs"),L=require("../common-components/icons/TableToolIcon.cjs"),u=require("../common-components/icons/QuoteIcon.cjs"),a={bold:e.jsx("span",{className:`${o.INK_CLASS_GLYPH} ${o.INK_CLASS_GLYPH_BOLD}`,children:n.INK_GLYPH_BOLD}),italic:e.jsx("span",{className:`${o.INK_CLASS_GLYPH} ${o.INK_CLASS_GLYPH_ITALIC}`,children:n.INK_GLYPH_ITALIC}),underline:e.jsx("span",{className:`${o.INK_CLASS_GLYPH} ${o.INK_CLASS_GLYPH_UNDERLINE}`,children:n.INK_GLYPH_UNDERLINE}),strikethrough:e.jsx("span",{className:`${o.INK_CLASS_GLYPH} ${o.INK_CLASS_GLYPH_STRIKE}`,children:n.INK_GLYPH_STRIKE}),bulletList:e.jsx(t.BulletListIcon,{}),orderedList:e.jsx(c.OrderedListIcon,{}),checklist:e.jsx(i.ChecklistIcon,{}),link:e.jsx(I.LinkToolIcon,{}),image:e.jsx(l.ImageToolIcon,{}),table:e.jsx(L.TableToolIcon,{}),signature:"✍",findReplace:"⌕",horizontalRule:"―",undo:e.jsx(r.UndoIcon,{}),redo:e.jsx(s.RedoIcon,{}),trackChanges:"±",comments:"💬",ai:"✦",clearFormat:"⌫",directionLtr:"LTR",directionRtl:"RTL",superscript:"x²",subscript:"x₂",alignLeft:"⫷",alignCenter:"☰",alignRight:"⫸",alignJustify:"≡",indent:"→",outdent:"←",blockquote:e.jsx(u.QuoteIcon,{}),code:"</>",htmlSource:"</>",titles:"Aa",excel:"⊞",graph:"▦",outline:"☰",fullscreen:"⛶",theme:"◐"};exports.INK_DEFAULT_ICONS=a;
|
|
@@ -1 +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,
|
|
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,CA2C3D,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { INK_GLYPH_STRIKE as
|
|
3
|
-
import { INK_CLASS_GLYPH as r, INK_CLASS_GLYPH_STRIKE as
|
|
2
|
+
import { INK_GLYPH_STRIKE as t, INK_GLYPH_UNDERLINE as e, INK_GLYPH_ITALIC as i, INK_GLYPH_BOLD as n } from "./generals.const.js";
|
|
3
|
+
import { INK_CLASS_GLYPH as r, INK_CLASS_GLYPH_STRIKE as l, INK_CLASS_GLYPH_UNDERLINE as m, INK_CLASS_GLYPH_ITALIC as c, INK_CLASS_GLYPH_BOLD as a } from "./defaults.const.js";
|
|
4
4
|
import "./openai.const.js";
|
|
5
5
|
import "../utils/paste.utils.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import "react-dom";
|
|
8
|
-
import { UndoIcon as
|
|
9
|
-
import { RedoIcon as
|
|
8
|
+
import { UndoIcon as s } from "../common-components/icons/UndoIcon.js";
|
|
9
|
+
import { RedoIcon as L } from "../common-components/icons/RedoIcon.js";
|
|
10
10
|
import { BulletListIcon as I } from "../common-components/icons/BulletListIcon.js";
|
|
11
11
|
import { OrderedListIcon as p } from "../common-components/icons/OrderedListIcon.js";
|
|
12
12
|
import { ChecklistIcon as _ } from "../common-components/icons/ChecklistIcon.js";
|
|
@@ -14,11 +14,11 @@ import { ImageToolIcon as d } from "../common-components/icons/ImageToolIcon.js"
|
|
|
14
14
|
import { LinkToolIcon as N } from "../common-components/icons/LinkToolIcon.js";
|
|
15
15
|
import { TableToolIcon as f } from "../common-components/icons/TableToolIcon.js";
|
|
16
16
|
import { QuoteIcon as u } from "../common-components/icons/QuoteIcon.js";
|
|
17
|
-
const
|
|
18
|
-
bold: /* @__PURE__ */ o("span", { className: `${r} ${
|
|
19
|
-
italic: /* @__PURE__ */ o("span", { className: `${r} ${c}`, children:
|
|
20
|
-
underline: /* @__PURE__ */ o("span", { className: `${r} ${
|
|
21
|
-
strikethrough: /* @__PURE__ */ o("span", { className: `${r} ${
|
|
17
|
+
const x = {
|
|
18
|
+
bold: /* @__PURE__ */ o("span", { className: `${r} ${a}`, children: n }),
|
|
19
|
+
italic: /* @__PURE__ */ o("span", { className: `${r} ${c}`, children: i }),
|
|
20
|
+
underline: /* @__PURE__ */ o("span", { className: `${r} ${m}`, children: e }),
|
|
21
|
+
strikethrough: /* @__PURE__ */ o("span", { className: `${r} ${l}`, children: t }),
|
|
22
22
|
bulletList: /* @__PURE__ */ o(I, {}),
|
|
23
23
|
orderedList: /* @__PURE__ */ o(p, {}),
|
|
24
24
|
checklist: /* @__PURE__ */ o(_, {}),
|
|
@@ -28,8 +28,8 @@ const D = {
|
|
|
28
28
|
signature: "✍",
|
|
29
29
|
findReplace: "⌕",
|
|
30
30
|
horizontalRule: "―",
|
|
31
|
-
undo: /* @__PURE__ */ o(
|
|
32
|
-
redo: /* @__PURE__ */ o(
|
|
31
|
+
undo: /* @__PURE__ */ o(s, {}),
|
|
32
|
+
redo: /* @__PURE__ */ o(L, {}),
|
|
33
33
|
trackChanges: "±",
|
|
34
34
|
comments: "💬",
|
|
35
35
|
ai: "✦",
|
|
@@ -45,8 +45,15 @@ const D = {
|
|
|
45
45
|
indent: "→",
|
|
46
46
|
outdent: "←",
|
|
47
47
|
blockquote: /* @__PURE__ */ o(u, {}),
|
|
48
|
-
code: "</>"
|
|
48
|
+
code: "</>",
|
|
49
|
+
htmlSource: "</>",
|
|
50
|
+
titles: "Aa",
|
|
51
|
+
excel: "⊞",
|
|
52
|
+
graph: "▦",
|
|
53
|
+
outline: "☰",
|
|
54
|
+
fullscreen: "⛶",
|
|
55
|
+
theme: "◐"
|
|
49
56
|
};
|
|
50
57
|
export {
|
|
51
|
-
|
|
58
|
+
x as INK_DEFAULT_ICONS
|
|
52
59
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./numbers.cjs"),e=require("./generals.const.cjs"),_=require("./toolbar.const.cjs"),L=require("./lists.const.cjs"),a=["headingDropdown",_.TOOLBAR_OPTION_FONT_DROPDOWN,"divider","bold","italic","underline","strikethrough",_.TOOLBAR_OPTION_SUPERSCRIPT,_.TOOLBAR_OPTION_SUBSCRIPT,"divider","textColor","highlightColor","divider",_.TOOLBAR_OPTION_LIST_DROPDOWN,_.TOOLBAR_OPTION_DIRECTION_LTR,_.TOOLBAR_OPTION_DIRECTION_RTL,"divider","link","image","table",_.TOOLBAR_OPTION_SIGNATURE,_.TOOLBAR_OPTION_FIND_REPLACE_DROPDOWN,_.TOOLBAR_OPTION_HORIZONTAL_RULE,"divider","undo","redo","divider","trackChanges","comments","ai","divider","clearFormat"],l=["bold","italic","underline","divider",_.TOOLBAR_OPTION_LIST_DROPDOWN],I=["headingDropdown","divider","bold","italic","underline","divider",_.TOOLBAR_OPTION_LIST_DROPDOWN,"table","divider","trackChanges","comments","ai","divider","undo","redo"],d=["headingDropdown","divider","bold","italic","underline","strikethrough","divider","bulletList","orderedList",_.TOOLBAR_OPTION_CHECKLIST,"blockquote","divider","image","link","table","code","divider","undo","redo","ai"],S=[{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"}],A={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"}},c=["#111827","#dc2626","#ea580c","#ca8a04","#16a34a","#2563eb","#0f766e","#db2777"],s="Type / to insert a block, or press ⌘K for AI",T="Ink-Editor",E="Ink-Editor__toolbar",O="Ink-Editor__toolbar-show",N="Ink-Editor__content",C="Ink-Editor__divider",K="Ink-Editor__style-dd",u="Ink-Editor__style-dd-trigger",m="Ink-Editor__style-menu",R="Ink-Editor__style-menu--portal",h="Ink-Editor__style-option",k="Ink-Editor__style-option--sel",g="Ink-Editor__select-chev",B="Ink-Editor__style-check",H="Ink-Editor__button--wide",b="Ink-Editor__button-label",p="Ink-AiPill__dot",D="Ink-Slash__mark--ai",U="Ink-Editor__glyph",y="Ink-Editor__glyph--bold",P="Ink-Editor__glyph--italic",M="Ink-Editor__glyph--underline",F="Ink-Editor__glyph--strike",v="Ink-Editor__footer",G="Ink-Editor__footer-meta",Y="Ink-AiPill",t="Blocks",n="Media",i="AI",f="Insert a block",w="",q="h1",W="h2",V="h3",x="p",j="pre",Q="blockquote",z='<blockquote class="Ink-callout"><p>Callout</p></blockquote>',J=`<ul class="${L.LIST_CLASS_CHECK}"><li>${e.INK_CHECKLIST_ITEM}</li></ul>`,X="Ink-Editor__shell",$="Ink-Outline",Z="Ink-Outline__label",tt="Ink-Outline__item",_t="Ink-Outline__item--active",et="Outline",it="h1, h2, h3",ot="document",nt="Ink-Editor__body",rt="Ink-block--active",Lt="Ink-tc-insert",at="Ink-tc-delete",lt="Ink-comment-mark",It="You",dt="classic",r="boxed",St=r,At={table:!0,trackChanges:!0,comments:!0,ai:!0,blocks:!0,slash:!0,history:!0,typoAutoFix:!0,signature:!0,findReplace:!0,horizontalRule:!0},ct=o.INK_DEFAULT_TABLE_ROWS,st=o.INK_DEFAULT_TABLE_COLS,Tt=[{id:"paragraph",label:"Text",keywords:["p","paragraph","text"],insert:"paragraph",description:"Just start typing with plain text.",category:t,shortcut:"/t",mark:"T"},{id:"heading1",label:"Heading 1",keywords:["h1","title","heading"],insert:"heading1",description:"Big section heading.",category:t,shortcut:"/h1",mark:"H1"},{id:"heading2",label:"Heading 2",keywords:["h2","subtitle","heading"],insert:"heading2",description:"Medium section heading.",category:t,shortcut:"/h2",mark:"H2"},{id:"heading3",label:"Heading 3",keywords:["h3","heading"],insert:"heading3",description:"Small section heading.",category:t,shortcut:"/h3",mark:"H3"},{id:"bullet",label:"Bulleted list",keywords:["ul","list","bullet"],insert:"bulletList",description:"Create a simple bulleted list.",category:t,shortcut:"/ul",mark:"•"},{id:"ordered",label:"Numbered list",keywords:["ol","list","numbered"],insert:"orderedList",description:"Create a numbered list.",category:t,shortcut:"/ol",mark:"1."},{id:"checklist",label:"Checklist",keywords:["check","todo","task"],insert:"checklist",description:"Track tasks with checkboxes.",category:t,shortcut:"/todo",mark:"☑"},{id:"quote",label:"Quote",keywords:["quote","blockquote"],insert:"quote",description:"Highlight a quotation.",category:t,shortcut:"/q",mark:"“"},{id:"callout",label:"Callout",keywords:["callout","note","tip"],insert:"callout",description:"Call out a note beside the copy.",category:t,shortcut:"/note",mark:"i"},{id:"code",label:"Code block",keywords:["code","pre","html"],insert:"code",description:"Syntax-highlighted snippet.",category:t,shortcut:"/code",mark:"</>"},{id:"table",label:"Table",keywords:["table","grid"],insert:"table",description:"Structured rows and columns.",category:t,shortcut:"/table",mark:"▦"},{id:"image",label:"Image",keywords:["image","img","media","upload"],insert:"image",description:"Upload or embed an image.",category:n,shortcut:"/img",mark:"▣"},{id:"ai",label:"Ask Ink AI",keywords:["ai","assistant","chat"],insert:"ai",description:"Draft a block from a prompt.",category:i,shortcut:"/ai",mark:"✦"},{id:e.SLASH_GENERATE_TABLE_ID,label:e.SLASH_GENERATE_TABLE_LABEL,keywords:e.SLASH_GENERATE_TABLE_KEYWORDS,insert:"ai",description:e.SLASH_GENERATE_TABLE_DESC,category:i,shortcut:e.SLASH_GENERATE_TABLE_SHORTCUT,mark:e.SLASH_GENERATE_TABLE_MARK}],Et=["English","Spanish","French","German","Chinese (Simplified)","Japanese","Russian","Portuguese","Korean","Italian"],Ot=[{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=A;exports.INK_CALLOUT_HTML=z;exports.INK_CHECKLIST_HTML=J;exports.INK_CHROME_BOXED=r;exports.INK_CHROME_TOOLBAR=d;exports.INK_CLASS_AI_PILL=Y;exports.INK_CLASS_AI_PILL_DOT=p;exports.INK_CLASS_BLOCK_ACTIVE=rt;exports.INK_CLASS_BODY=nt;exports.INK_CLASS_BUTTON_LABEL=b;exports.INK_CLASS_BUTTON_WIDE=H;exports.INK_CLASS_COMMENT_MARK=lt;exports.INK_CLASS_CONTENT=N;exports.INK_CLASS_DIVIDER=C;exports.INK_CLASS_FOOTER=v;exports.INK_CLASS_FOOTER_META=G;exports.INK_CLASS_GLYPH=U;exports.INK_CLASS_GLYPH_BOLD=y;exports.INK_CLASS_GLYPH_ITALIC=P;exports.INK_CLASS_GLYPH_STRIKE=F;exports.INK_CLASS_GLYPH_UNDERLINE=M;exports.INK_CLASS_OUTLINE=$;exports.INK_CLASS_OUTLINE_ITEM=tt;exports.INK_CLASS_OUTLINE_ITEM_ACTIVE=_t;exports.INK_CLASS_OUTLINE_LABEL=Z;exports.INK_CLASS_ROOT=T;exports.INK_CLASS_SHELL=X;exports.INK_CLASS_SLASH_MARK_AI=D;exports.INK_CLASS_STYLE_CHECK=B;exports.INK_CLASS_STYLE_CHEV=g;exports.INK_CLASS_STYLE_DD=K;exports.INK_CLASS_STYLE_MENU=m;exports.INK_CLASS_STYLE_MENU_PORTAL=R;exports.INK_CLASS_STYLE_OPTION=h;exports.INK_CLASS_STYLE_OPTION_SEL=k;exports.INK_CLASS_STYLE_TRIGGER=u;exports.INK_CLASS_TC_DELETE=at;exports.INK_CLASS_TC_INSERT=Lt;exports.INK_CLASS_TOOLBAR=E;exports.INK_CLASS_TOOLBAR_SHOW=O;exports.INK_COLLAB_TOOLBAR=I;exports.INK_COLOR_SWATCHES=c;exports.INK_DEFAULT_AUTHOR=It;exports.INK_DEFAULT_CHROME=St;exports.INK_DEFAULT_FEATURES=At;exports.INK_DEFAULT_TOOLBAR=a;exports.INK_DEFAULT_VARIANT=dt;exports.INK_FORMAT_BLOCK_H1=q;exports.INK_FORMAT_BLOCK_H2=W;exports.INK_FORMAT_BLOCK_H3=V;exports.INK_FORMAT_BLOCK_P=x;exports.INK_FORMAT_BLOCK_PRE=j;exports.INK_FORMAT_BLOCK_QUOTE=Q;exports.INK_HEADING_OPTIONS=S;exports.INK_OUTLINE_HEADING_SELECTOR=it;exports.INK_OUTLINE_LABEL=et;exports.INK_PLACEHOLDER_DEFAULT=s;exports.INK_QUICK_ACTIONS=Ot;exports.INK_SIMPLE_TOOLBAR=l;exports.INK_SLASH_COMMANDS=Tt;exports.INK_TABLE_DEFAULT_COLS=st;exports.INK_TABLE_DEFAULT_ROWS=ct;exports.INK_TRANSLATE_LANGUAGES=Et;exports.INK_VARIANT_DOCUMENT=ot;exports.SLASH_ARIA_LABEL=f;exports.SLASH_CATEGORY_AI=i;exports.SLASH_CATEGORY_BASIC=t;exports.SLASH_CATEGORY_MEDIA=n;exports.SLASH_SEARCH_LABEL=w;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./numbers.cjs"),e=require("./generals.const.cjs"),_=require("./toolbar.const.cjs"),n=require("./lists.const.cjs"),A=["headingDropdown",_.TOOLBAR_OPTION_FONT_DROPDOWN,"divider","bold","italic","underline","strikethrough",_.TOOLBAR_OPTION_SUPERSCRIPT,_.TOOLBAR_OPTION_SUBSCRIPT,"divider","textColor","highlightColor","divider",_.TOOLBAR_OPTION_LIST_DROPDOWN,_.TOOLBAR_OPTION_DIRECTION_LTR,_.TOOLBAR_OPTION_DIRECTION_RTL,"divider","link","image","table",_.TOOLBAR_OPTION_TITLES,_.TOOLBAR_OPTION_EXCEL,_.TOOLBAR_OPTION_GRAPH,_.TOOLBAR_OPTION_OUTLINE,_.TOOLBAR_OPTION_THEME,_.TOOLBAR_OPTION_FULLSCREEN,_.TOOLBAR_OPTION_HTML_SOURCE,_.TOOLBAR_OPTION_SIGNATURE,_.TOOLBAR_OPTION_FIND_REPLACE_DROPDOWN,_.TOOLBAR_OPTION_HORIZONTAL_RULE,"divider","undo","redo","divider","trackChanges","comments","ai","divider","clearFormat"],E=["bold","italic","underline","divider",_.TOOLBAR_OPTION_LIST_DROPDOWN],r=["headingDropdown","divider","bold","italic","underline","divider",_.TOOLBAR_OPTION_LIST_DROPDOWN,"table",_.TOOLBAR_OPTION_HTML_SOURCE,"divider","trackChanges","comments","ai","divider","undo","redo"],T=["headingDropdown","divider","bold","italic","underline","strikethrough","divider","bulletList","orderedList",_.TOOLBAR_OPTION_CHECKLIST,"blockquote","divider","image","link","table",_.TOOLBAR_OPTION_TITLES,_.TOOLBAR_OPTION_EXCEL,_.TOOLBAR_OPTION_GRAPH,_.TOOLBAR_OPTION_OUTLINE,_.TOOLBAR_OPTION_THEME,_.TOOLBAR_OPTION_FULLSCREEN,"code",_.TOOLBAR_OPTION_HTML_SOURCE,"divider","undo","redo","ai"],l=[{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"}],N={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"}},O=["#111827","#dc2626","#ea580c","#ca8a04","#16a34a","#2563eb","#0f766e","#db2777"],a="Type / to insert a block, or press ⌘K for AI",c="Ink-Editor",s="Ink-Editor__toolbar",C="Ink-Editor__toolbar-show",d="Ink-Editor__content",K="Ink-Editor__divider",R="Ink-Editor__style-dd",k="Ink-Editor__style-dd-trigger",u="Ink-Editor__style-menu",h="Ink-Editor__style-menu--portal",m="Ink-Editor__style-menu--forced-light",g="Ink-Editor__source",B="Ink-Editor__content--hidden",H="Ink-Editor__table-picker",P="Ink-Editor__table-picker-grid",p="Ink-Editor__table-picker-cell",b="Ink-Editor__table-picker-cell--on",D="Ink-Editor__table-picker-label",U="Ink-table--resizing",G="Ink-title",y="Ink-Editor__title-gallery",M="Ink-Editor__title-grid",F="Ink-Editor__title-cell",Y="Ink-Editor__excel",v="Ink-Editor__excel-grid",f="Ink-Editor__excel-cell",w="Ink-Editor__excel-actions",W="Ink-Editor__excel-title",X="Ink-Editor__excel-insert",x="Ink-Editor__graph",V="Ink-Editor__graph-types",q="Ink-Editor__graph-preview",Q="Ink-graph",j="Ink-graph-block",z="Ink-Editor__toolbar-hint",J="Ink-Editor__toolbar-row",Z="Ink-Editor__toolbar-measure",$="Ink-Editor__toolbar-overflow",__="Ink-Editor__excel-head",t_="Ink-Editor__excel-corner",e_="Ink-Editor__excel-cell--col",L_="Ink-Editor__excel-cell--row",I_="data-ink-graph-colors",o_="data-ink-more",i_="ABCDEFGHIJKLMNOPQRSTUVWXYZ",S_="Ink-Editor__plugin-pip",n_="Ink-Editor__tool",A_="Ink-AiPill--installed",E_="Ink-Outline__toggle",r_="Ink-Ai__tab",T_="Ink-Ai__tab--on",l_="data-ink-graph",N_="data-ink-graph-points",O_="data-ink-title",a_="Ink-Editor__style-option",c_="Ink-Editor__style-option--sel",s_="Ink-Editor__select-chev",C_="Ink-Editor__style-check",d_="Ink-Editor__button--wide",K_="Ink-Editor__button-label",R_="Ink-AiPill__dot",k_="Ink-Slash__mark--ai",u_="Ink-Editor__glyph",h_="Ink-Editor__glyph--bold",m_="Ink-Editor__glyph--italic",g_="Ink-Editor__glyph--underline",B_="Ink-Editor__glyph--strike",H_="Ink-Editor__footer",P_="Ink-Editor__footer-meta",p_="Ink-AiPill",t="Blocks",i="Media",I="AI",L="Plugins",b_="Insert a block",D_="",U_="h1",G_="h2",y_="h3",M_="p",F_="pre",Y_="blockquote",v_='<blockquote class="Ink-callout"><p>Callout</p></blockquote>',f_=`<ul class="${n.LIST_CLASS_CHECK}"><li>${e.INK_CHECKLIST_ITEM}</li></ul>`,w_="Ink-Editor__shell",W_="Ink-Outline",X_="Ink-Outline__label",x_="Ink-Outline__item",V_="Ink-Outline__item--active",q_="Outline",Q_="No headings yet",j_="Hide",z_="h1, h2, h3",J_="document",Z_="Ink-Editor__body",$_="Ink-block--active",_t="Ink-tc-insert",tt="Ink-tc-delete",et="Ink-comment-mark",Lt="You",It="classic",S="boxed",ot=S,it={table:!0,trackChanges:!0,comments:!0,ai:!0,blocks:!0,slash:!0,history:!0,typoAutoFix:!0,signature:!0,findReplace:!0,horizontalRule:!0,htmlSource:!0,titles:!0,excel:!0,graph:!0,outline:!0,fullscreen:!0,theme:!0},St=o.INK_DEFAULT_TABLE_ROWS,nt=o.INK_DEFAULT_TABLE_COLS,At=[{id:"paragraph",label:"Text",keywords:["p","paragraph","text"],insert:"paragraph",description:"Just start typing with plain text.",category:t,shortcut:"/t",mark:"T"},{id:"heading1",label:"Heading 1",keywords:["h1","title","heading"],insert:"heading1",description:"Big section heading.",category:t,shortcut:"/h1",mark:"H1"},{id:"heading2",label:"Heading 2",keywords:["h2","subtitle","heading"],insert:"heading2",description:"Medium section heading.",category:t,shortcut:"/h2",mark:"H2"},{id:"heading3",label:"Heading 3",keywords:["h3","heading"],insert:"heading3",description:"Small section heading.",category:t,shortcut:"/h3",mark:"H3"},{id:"bullet",label:"Bulleted list",keywords:["ul","list","bullet"],insert:"bulletList",description:"Create a simple bulleted list.",category:t,shortcut:"/ul",mark:"•"},{id:"ordered",label:"Numbered list",keywords:["ol","list","numbered"],insert:"orderedList",description:"Create a numbered list.",category:t,shortcut:"/ol",mark:"1."},{id:"checklist",label:"Checklist",keywords:["check","todo","task"],insert:"checklist",description:"Track tasks with checkboxes.",category:t,shortcut:"/todo",mark:"☑"},{id:"quote",label:"Quote",keywords:["quote","blockquote"],insert:"quote",description:"Highlight a quotation.",category:t,shortcut:"/q",mark:"“"},{id:"callout",label:"Callout",keywords:["callout","note","tip"],insert:"callout",description:"Call out a note beside the copy.",category:t,shortcut:"/note",mark:"i"},{id:"code",label:"Code block",keywords:["code","pre","html"],insert:"code",description:"Syntax-highlighted snippet.",category:t,shortcut:"/code",mark:"</>"},{id:"table",label:"Table",keywords:["table","grid"],insert:"table",description:"Structured rows and columns.",category:t,shortcut:"/table",mark:"▦"},{id:"image",label:"Image",keywords:["image","img","media","upload"],insert:"image",description:"Upload or embed an image.",category:i,shortcut:"/img",mark:"▣"},{id:"ai",label:"Ask Ink AI",keywords:["ai","assistant","chat"],insert:"ai",description:"Draft a block from a prompt.",category:I,shortcut:"/ai",mark:"✦"},{id:e.SLASH_GENERATE_TABLE_ID,label:e.SLASH_GENERATE_TABLE_LABEL,keywords:e.SLASH_GENERATE_TABLE_KEYWORDS,insert:"ai",description:e.SLASH_GENERATE_TABLE_DESC,category:I,shortcut:e.SLASH_GENERATE_TABLE_SHORTCUT,mark:e.SLASH_GENERATE_TABLE_MARK},{id:"titles",label:"Title",keywords:["title","wordart","heading","style"],insert:"titles",description:"Styled title from the titles gallery.",category:L,shortcut:"/ti",mark:"Aa"},{id:"excel",label:"Sheet",keywords:["excel","sheet","csv","spreadsheet"],insert:"excel",description:"Insert a sheet grid or import CSV.",category:L,shortcut:"/ex",mark:"⊞"},{id:"graph",label:"Graph",keywords:["graph","chart","bar","pie"],insert:"graph",description:"Insert a bar, line, or pie graph.",category:L,shortcut:"/gr",mark:"▦"}],Et=["English","Spanish","French","German","Chinese (Simplified)","Japanese","Russian","Portuguese","Korean","Italian"],rt=[{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.EXCEL_COL_LETTERS=i_;exports.INK_ATTR_GRAPH=l_;exports.INK_ATTR_GRAPH_COLORS=I_;exports.INK_ATTR_GRAPH_POINTS=N_;exports.INK_ATTR_MORE=o_;exports.INK_ATTR_TITLE=O_;exports.INK_BUTTON_CONFIG=N;exports.INK_CALLOUT_HTML=v_;exports.INK_CHECKLIST_HTML=f_;exports.INK_CHROME_BOXED=S;exports.INK_CHROME_TOOLBAR=T;exports.INK_CLASS_AI_PILL=p_;exports.INK_CLASS_AI_PILL_DOT=R_;exports.INK_CLASS_AI_PILL_INSTALLED=A_;exports.INK_CLASS_AI_TAB=r_;exports.INK_CLASS_AI_TAB_ON=T_;exports.INK_CLASS_BLOCK_ACTIVE=$_;exports.INK_CLASS_BODY=Z_;exports.INK_CLASS_BUTTON_LABEL=K_;exports.INK_CLASS_BUTTON_WIDE=d_;exports.INK_CLASS_COMMENT_MARK=et;exports.INK_CLASS_CONTENT=d;exports.INK_CLASS_CONTENT_HIDDEN=B;exports.INK_CLASS_DIVIDER=K;exports.INK_CLASS_EXCEL_ACTIONS=w;exports.INK_CLASS_EXCEL_CELL=f;exports.INK_CLASS_EXCEL_COL_HOVER=e_;exports.INK_CLASS_EXCEL_CORNER=t_;exports.INK_CLASS_EXCEL_GRID=v;exports.INK_CLASS_EXCEL_HEAD=__;exports.INK_CLASS_EXCEL_INSERT=X;exports.INK_CLASS_EXCEL_PANEL=Y;exports.INK_CLASS_EXCEL_ROW_HOVER=L_;exports.INK_CLASS_EXCEL_TITLE=W;exports.INK_CLASS_FOOTER=H_;exports.INK_CLASS_FOOTER_META=P_;exports.INK_CLASS_GLYPH=u_;exports.INK_CLASS_GLYPH_BOLD=h_;exports.INK_CLASS_GLYPH_ITALIC=m_;exports.INK_CLASS_GLYPH_STRIKE=B_;exports.INK_CLASS_GLYPH_UNDERLINE=g_;exports.INK_CLASS_GRAPH_BLOCK=j;exports.INK_CLASS_GRAPH_PANEL=x;exports.INK_CLASS_GRAPH_PREVIEW=q;exports.INK_CLASS_GRAPH_TYPES=V;exports.INK_CLASS_GRAPH_WRAP=Q;exports.INK_CLASS_OUTLINE=W_;exports.INK_CLASS_OUTLINE_ITEM=x_;exports.INK_CLASS_OUTLINE_ITEM_ACTIVE=V_;exports.INK_CLASS_OUTLINE_LABEL=X_;exports.INK_CLASS_OUTLINE_TOGGLE=E_;exports.INK_CLASS_PLUGIN_PIP=S_;exports.INK_CLASS_ROOT=c;exports.INK_CLASS_SHELL=w_;exports.INK_CLASS_SLASH_MARK_AI=k_;exports.INK_CLASS_SOURCE=g;exports.INK_CLASS_STYLE_CHECK=C_;exports.INK_CLASS_STYLE_CHEV=s_;exports.INK_CLASS_STYLE_DD=R;exports.INK_CLASS_STYLE_MENU=u;exports.INK_CLASS_STYLE_MENU_FORCED=m;exports.INK_CLASS_STYLE_MENU_PORTAL=h;exports.INK_CLASS_STYLE_OPTION=a_;exports.INK_CLASS_STYLE_OPTION_SEL=c_;exports.INK_CLASS_STYLE_TRIGGER=k;exports.INK_CLASS_TABLE_PICKER=H;exports.INK_CLASS_TABLE_PICKER_CELL=p;exports.INK_CLASS_TABLE_PICKER_CELL_ON=b;exports.INK_CLASS_TABLE_PICKER_GRID=P;exports.INK_CLASS_TABLE_PICKER_LABEL=D;exports.INK_CLASS_TABLE_RESIZE=U;exports.INK_CLASS_TC_DELETE=tt;exports.INK_CLASS_TC_INSERT=_t;exports.INK_CLASS_TITLE=G;exports.INK_CLASS_TITLE_CELL=F;exports.INK_CLASS_TITLE_GALLERY=y;exports.INK_CLASS_TITLE_GRID=M;exports.INK_CLASS_TOOLBAR=s;exports.INK_CLASS_TOOLBAR_HINT=z;exports.INK_CLASS_TOOLBAR_MEASURE=Z;exports.INK_CLASS_TOOLBAR_OVERFLOW=$;exports.INK_CLASS_TOOLBAR_ROW=J;exports.INK_CLASS_TOOLBAR_SHOW=C;exports.INK_CLASS_TOOL_WRAP=n_;exports.INK_COLLAB_TOOLBAR=r;exports.INK_COLOR_SWATCHES=O;exports.INK_DEFAULT_AUTHOR=Lt;exports.INK_DEFAULT_CHROME=ot;exports.INK_DEFAULT_FEATURES=it;exports.INK_DEFAULT_TOOLBAR=A;exports.INK_DEFAULT_VARIANT=It;exports.INK_FORMAT_BLOCK_H1=U_;exports.INK_FORMAT_BLOCK_H2=G_;exports.INK_FORMAT_BLOCK_H3=y_;exports.INK_FORMAT_BLOCK_P=M_;exports.INK_FORMAT_BLOCK_PRE=F_;exports.INK_FORMAT_BLOCK_QUOTE=Y_;exports.INK_HEADING_OPTIONS=l;exports.INK_OUTLINE_EMPTY=Q_;exports.INK_OUTLINE_HEADING_SELECTOR=z_;exports.INK_OUTLINE_HIDE=j_;exports.INK_OUTLINE_LABEL=q_;exports.INK_PLACEHOLDER_DEFAULT=a;exports.INK_QUICK_ACTIONS=rt;exports.INK_SIMPLE_TOOLBAR=E;exports.INK_SLASH_COMMANDS=At;exports.INK_TABLE_DEFAULT_COLS=nt;exports.INK_TABLE_DEFAULT_ROWS=St;exports.INK_TRANSLATE_LANGUAGES=Et;exports.INK_VARIANT_DOCUMENT=J_;exports.SLASH_ARIA_LABEL=b_;exports.SLASH_CATEGORY_AI=I;exports.SLASH_CATEGORY_BASIC=t;exports.SLASH_CATEGORY_MEDIA=i;exports.SLASH_CATEGORY_PLUGINS=L;exports.SLASH_SEARCH_LABEL=D_;
|
|
@@ -22,6 +22,51 @@ export declare const INK_CLASS_STYLE_DD = "Ink-Editor__style-dd";
|
|
|
22
22
|
export declare const INK_CLASS_STYLE_TRIGGER = "Ink-Editor__style-dd-trigger";
|
|
23
23
|
export declare const INK_CLASS_STYLE_MENU = "Ink-Editor__style-menu";
|
|
24
24
|
export declare const INK_CLASS_STYLE_MENU_PORTAL = "Ink-Editor__style-menu--portal";
|
|
25
|
+
export declare const INK_CLASS_STYLE_MENU_FORCED = "Ink-Editor__style-menu--forced-light";
|
|
26
|
+
export declare const INK_CLASS_SOURCE = "Ink-Editor__source";
|
|
27
|
+
export declare const INK_CLASS_CONTENT_HIDDEN = "Ink-Editor__content--hidden";
|
|
28
|
+
export declare const INK_CLASS_TABLE_PICKER = "Ink-Editor__table-picker";
|
|
29
|
+
export declare const INK_CLASS_TABLE_PICKER_GRID = "Ink-Editor__table-picker-grid";
|
|
30
|
+
export declare const INK_CLASS_TABLE_PICKER_CELL = "Ink-Editor__table-picker-cell";
|
|
31
|
+
export declare const INK_CLASS_TABLE_PICKER_CELL_ON = "Ink-Editor__table-picker-cell--on";
|
|
32
|
+
export declare const INK_CLASS_TABLE_PICKER_LABEL = "Ink-Editor__table-picker-label";
|
|
33
|
+
export declare const INK_CLASS_TABLE_RESIZE = "Ink-table--resizing";
|
|
34
|
+
export declare const INK_CLASS_TITLE = "Ink-title";
|
|
35
|
+
export declare const INK_CLASS_TITLE_GALLERY = "Ink-Editor__title-gallery";
|
|
36
|
+
export declare const INK_CLASS_TITLE_GRID = "Ink-Editor__title-grid";
|
|
37
|
+
export declare const INK_CLASS_TITLE_CELL = "Ink-Editor__title-cell";
|
|
38
|
+
export declare const INK_CLASS_EXCEL_PANEL = "Ink-Editor__excel";
|
|
39
|
+
export declare const INK_CLASS_EXCEL_GRID = "Ink-Editor__excel-grid";
|
|
40
|
+
export declare const INK_CLASS_EXCEL_CELL = "Ink-Editor__excel-cell";
|
|
41
|
+
export declare const INK_CLASS_EXCEL_ACTIONS = "Ink-Editor__excel-actions";
|
|
42
|
+
export declare const INK_CLASS_EXCEL_TITLE = "Ink-Editor__excel-title";
|
|
43
|
+
export declare const INK_CLASS_EXCEL_INSERT = "Ink-Editor__excel-insert";
|
|
44
|
+
export declare const INK_CLASS_GRAPH_PANEL = "Ink-Editor__graph";
|
|
45
|
+
export declare const INK_CLASS_GRAPH_TYPES = "Ink-Editor__graph-types";
|
|
46
|
+
export declare const INK_CLASS_GRAPH_PREVIEW = "Ink-Editor__graph-preview";
|
|
47
|
+
export declare const INK_CLASS_GRAPH_WRAP = "Ink-graph";
|
|
48
|
+
export declare const INK_CLASS_GRAPH_BLOCK = "Ink-graph-block";
|
|
49
|
+
export declare const INK_CLASS_TOOLBAR_HINT = "Ink-Editor__toolbar-hint";
|
|
50
|
+
export declare const INK_CLASS_TOOLBAR_ROW = "Ink-Editor__toolbar-row";
|
|
51
|
+
export declare const INK_CLASS_TOOLBAR_MEASURE = "Ink-Editor__toolbar-measure";
|
|
52
|
+
export declare const INK_CLASS_TOOLBAR_OVERFLOW = "Ink-Editor__toolbar-overflow";
|
|
53
|
+
export declare const INK_CLASS_TOOLBAR_MORE = "Ink-Editor__toolbar-more";
|
|
54
|
+
export declare const INK_CLASS_EXCEL_HEAD = "Ink-Editor__excel-head";
|
|
55
|
+
export declare const INK_CLASS_EXCEL_CORNER = "Ink-Editor__excel-corner";
|
|
56
|
+
export declare const INK_CLASS_EXCEL_COL_HOVER = "Ink-Editor__excel-cell--col";
|
|
57
|
+
export declare const INK_CLASS_EXCEL_ROW_HOVER = "Ink-Editor__excel-cell--row";
|
|
58
|
+
export declare const INK_ATTR_GRAPH_COLORS = "data-ink-graph-colors";
|
|
59
|
+
export declare const INK_ATTR_MORE = "data-ink-more";
|
|
60
|
+
export declare const EXCEL_COL_LETTERS = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
61
|
+
export declare const INK_CLASS_PLUGIN_PIP = "Ink-Editor__plugin-pip";
|
|
62
|
+
export declare const INK_CLASS_TOOL_WRAP = "Ink-Editor__tool";
|
|
63
|
+
export declare const INK_CLASS_AI_PILL_INSTALLED = "Ink-AiPill--installed";
|
|
64
|
+
export declare const INK_CLASS_OUTLINE_TOGGLE = "Ink-Outline__toggle";
|
|
65
|
+
export declare const INK_CLASS_AI_TAB = "Ink-Ai__tab";
|
|
66
|
+
export declare const INK_CLASS_AI_TAB_ON = "Ink-Ai__tab--on";
|
|
67
|
+
export declare const INK_ATTR_GRAPH = "data-ink-graph";
|
|
68
|
+
export declare const INK_ATTR_GRAPH_POINTS = "data-ink-graph-points";
|
|
69
|
+
export declare const INK_ATTR_TITLE = "data-ink-title";
|
|
25
70
|
export declare const INK_CLASS_STYLE_OPTION = "Ink-Editor__style-option";
|
|
26
71
|
export declare const INK_CLASS_STYLE_OPTION_SEL = "Ink-Editor__style-option--sel";
|
|
27
72
|
export declare const INK_CLASS_STYLE_OPTION_MARK = "Ink-Editor__style-option-mark";
|
|
@@ -47,6 +92,7 @@ export declare const INK_CLASS_CALLOUT = "Ink-callout";
|
|
|
47
92
|
export declare const SLASH_CATEGORY_BASIC = "Blocks";
|
|
48
93
|
export declare const SLASH_CATEGORY_MEDIA = "Media";
|
|
49
94
|
export declare const SLASH_CATEGORY_AI = "AI";
|
|
95
|
+
export declare const SLASH_CATEGORY_PLUGINS = "Plugins";
|
|
50
96
|
export declare const SLASH_ARIA_LABEL = "Insert a block";
|
|
51
97
|
export declare const SLASH_SEARCH_LABEL = "";
|
|
52
98
|
export declare const INK_FORMAT_BLOCK_H1 = "h1";
|
|
@@ -63,6 +109,8 @@ export declare const INK_CLASS_OUTLINE_LABEL = "Ink-Outline__label";
|
|
|
63
109
|
export declare const INK_CLASS_OUTLINE_ITEM = "Ink-Outline__item";
|
|
64
110
|
export declare const INK_CLASS_OUTLINE_ITEM_ACTIVE = "Ink-Outline__item--active";
|
|
65
111
|
export declare const INK_OUTLINE_LABEL = "Outline";
|
|
112
|
+
export declare const INK_OUTLINE_EMPTY = "No headings yet";
|
|
113
|
+
export declare const INK_OUTLINE_HIDE = "Hide";
|
|
66
114
|
export declare const INK_OUTLINE_HEADING_SELECTOR = "h1, h2, h3";
|
|
67
115
|
export declare const INK_VARIANT_DOCUMENT = "document";
|
|
68
116
|
export declare const INK_CLASS_BODY = "Ink-Editor__body";
|
|
@@ -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;AAmClD,eAAO,MAAM,mBAAmB,EAAE,aAAa,EAwC9C,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,aAAa,EAM7C,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,aAAa,EAiB7C,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,aAAa,EA4B7C,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,cAAc,E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