@forgedevstack/ink 1.1.6 → 1.1.7
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 +26 -1
- package/dist/common-components/icons/BulletListIcon.cjs +1 -0
- package/dist/common-components/icons/BulletListIcon.d.ts +3 -0
- package/dist/common-components/icons/BulletListIcon.d.ts.map +1 -0
- package/dist/common-components/icons/BulletListIcon.js +11 -0
- package/dist/common-components/icons/ChecklistIcon.cjs +1 -0
- package/dist/common-components/icons/ChecklistIcon.d.ts +3 -0
- package/dist/common-components/icons/ChecklistIcon.d.ts.map +1 -0
- package/dist/common-components/icons/ChecklistIcon.js +10 -0
- package/dist/common-components/icons/ImageToolIcon.cjs +1 -0
- package/dist/common-components/icons/ImageToolIcon.d.ts +3 -0
- package/dist/common-components/icons/ImageToolIcon.d.ts.map +1 -0
- package/dist/common-components/icons/ImageToolIcon.js +10 -0
- package/dist/common-components/icons/LinkToolIcon.cjs +1 -0
- package/dist/common-components/icons/LinkToolIcon.d.ts +3 -0
- package/dist/common-components/icons/LinkToolIcon.d.ts.map +1 -0
- package/dist/common-components/icons/LinkToolIcon.js +9 -0
- package/dist/common-components/icons/OrderedListIcon.cjs +1 -0
- package/dist/common-components/icons/OrderedListIcon.d.ts +3 -0
- package/dist/common-components/icons/OrderedListIcon.d.ts.map +1 -0
- package/dist/common-components/icons/OrderedListIcon.js +9 -0
- package/dist/common-components/icons/QuoteIcon.cjs +1 -0
- package/dist/common-components/icons/QuoteIcon.d.ts +3 -0
- package/dist/common-components/icons/QuoteIcon.d.ts.map +1 -0
- package/dist/common-components/icons/QuoteIcon.js +6 -0
- package/dist/common-components/icons/TableToolIcon.cjs +1 -0
- package/dist/common-components/icons/TableToolIcon.d.ts +3 -0
- package/dist/common-components/icons/TableToolIcon.d.ts.map +1 -0
- package/dist/common-components/icons/TableToolIcon.js +9 -0
- package/dist/common-components/icons/index.d.ts +7 -0
- package/dist/common-components/icons/index.d.ts.map +1 -1
- package/dist/common-components/index.d.ts +1 -1
- package/dist/common-components/index.d.ts.map +1 -1
- package/dist/components/InkEditor/InkEditor.cjs +1 -1
- package/dist/components/InkEditor/InkEditor.d.ts.map +1 -1
- package/dist/components/InkEditor/InkEditor.js +790 -682
- package/dist/components/InkEditor/components/OutlineRail/OutlineRail.cjs +1 -0
- package/dist/components/InkEditor/components/OutlineRail/OutlineRail.d.ts +4 -0
- package/dist/components/InkEditor/components/OutlineRail/OutlineRail.d.ts.map +1 -0
- package/dist/components/InkEditor/components/OutlineRail/OutlineRail.js +31 -0
- package/dist/components/InkEditor/components/OutlineRail/OutlineRail.types.d.ts +7 -0
- package/dist/components/InkEditor/components/OutlineRail/OutlineRail.types.d.ts.map +1 -0
- package/dist/components/InkEditor/components/OutlineRail/index.d.ts +3 -0
- package/dist/components/InkEditor/components/OutlineRail/index.d.ts.map +1 -0
- package/dist/components/InkEditor/components/SlashMenu/SlashMenu.cjs +1 -1
- package/dist/components/InkEditor/components/SlashMenu/SlashMenu.d.ts +1 -0
- package/dist/components/InkEditor/components/SlashMenu/SlashMenu.d.ts.map +1 -1
- package/dist/components/InkEditor/components/SlashMenu/SlashMenu.js +62 -17
- 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 +10 -9
- 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 +91 -18
- package/dist/components/InkEditor/components/ToolbarDropdown/ToolbarDropdown.types.d.ts +6 -0
- package/dist/components/InkEditor/components/ToolbarDropdown/ToolbarDropdown.types.d.ts.map +1 -0
- package/dist/components/InkEditor/components/ToolbarDropdown/ToolbarDropdown.utils.cjs +1 -0
- package/dist/components/InkEditor/components/ToolbarDropdown/ToolbarDropdown.utils.d.ts +3 -0
- package/dist/components/InkEditor/components/ToolbarDropdown/ToolbarDropdown.utils.d.ts.map +1 -0
- package/dist/components/InkEditor/components/ToolbarDropdown/ToolbarDropdown.utils.js +15 -0
- package/dist/components/InkEditor/components/ToolbarDropdown/index.d.ts +2 -0
- package/dist/components/InkEditor/components/ToolbarDropdown/index.d.ts.map +1 -1
- package/dist/components/InkEditor/components/index.d.ts +2 -0
- package/dist/components/InkEditor/components/index.d.ts.map +1 -1
- package/dist/constants/defaultIcons.cjs +1 -1
- package/dist/constants/defaultIcons.d.ts.map +1 -1
- package/dist/constants/defaultIcons.js +27 -17
- package/dist/constants/defaults.const.cjs +1 -1
- package/dist/constants/defaults.const.d.ts +47 -1
- package/dist/constants/defaults.const.d.ts.map +1 -1
- package/dist/constants/defaults.const.js +224 -57
- package/dist/constants/generals.const.cjs +1 -1
- package/dist/constants/generals.const.d.ts +42 -0
- package/dist/constants/generals.const.d.ts.map +1 -1
- package/dist/constants/generals.const.js +32 -4
- package/dist/constants/keyboard.const.cjs +1 -1
- package/dist/constants/keyboard.const.d.ts +1 -0
- package/dist/constants/keyboard.const.d.ts.map +1 -1
- package/dist/constants/keyboard.const.js +2 -1
- package/dist/constants/lists.const.cjs +1 -1
- package/dist/constants/lists.const.d.ts +1 -0
- package/dist/constants/lists.const.d.ts.map +1 -1
- package/dist/constants/lists.const.js +10 -9
- package/dist/constants/numbers.cjs +1 -1
- package/dist/constants/numbers.d.ts +5 -1
- package/dist/constants/numbers.d.ts.map +1 -1
- package/dist/constants/numbers.js +24 -19
- package/dist/constants/premium.const.cjs +1 -1
- package/dist/constants/premium.const.d.ts.map +1 -1
- package/dist/constants/premium.const.js +10 -9
- package/dist/constants/toolbar.const.cjs +1 -1
- package/dist/constants/toolbar.const.d.ts +1 -0
- package/dist/constants/toolbar.const.d.ts.map +1 -1
- package/dist/constants/toolbar.const.js +12 -11
- package/dist/constants/toolbarMenu.const.cjs +1 -1
- package/dist/constants/toolbarMenu.const.d.ts.map +1 -1
- package/dist/constants/toolbarMenu.const.js +12 -11
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +100 -98
- package/dist/styles.css +1 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/ink.types.d.ts +11 -2
- package/dist/types/ink.types.d.ts.map +1 -1
- package/dist/types/outline.types.d.ts +6 -0
- package/dist/types/outline.types.d.ts.map +1 -0
- package/dist/types/premium.types.d.ts +2 -2
- package/dist/types/premium.types.d.ts.map +1 -1
- package/dist/utils/index.d.ts +4 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/outline.utils.cjs +1 -0
- package/dist/utils/outline.utils.d.ts +8 -0
- package/dist/utils/outline.utils.d.ts.map +1 -0
- package/dist/utils/outline.utils.js +49 -0
- package/dist/utils/slash.utils.cjs +1 -1
- package/dist/utils/slash.utils.d.ts +5 -0
- package/dist/utils/slash.utils.d.ts.map +1 -1
- package/dist/utils/slash.utils.js +24 -7
- package/dist/utils/words.utils.cjs +1 -0
- package/dist/utils/words.utils.d.ts +2 -0
- package/dist/utils/words.utils.d.ts.map +1 -0
- package/dist/utils/words.utils.js +14 -0
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ import { DropdownOption, SlashCommandItem, ToolbarOption, InkFeaturesConfig } fr
|
|
|
2
2
|
export declare const INK_DEFAULT_TOOLBAR: ToolbarOption[];
|
|
3
3
|
export declare const INK_SIMPLE_TOOLBAR: ToolbarOption[];
|
|
4
4
|
export declare const INK_COLLAB_TOOLBAR: ToolbarOption[];
|
|
5
|
+
export declare const INK_CHROME_TOOLBAR: ToolbarOption[];
|
|
5
6
|
export declare const INK_HEADING_OPTIONS: DropdownOption[];
|
|
6
7
|
export declare const INK_BUTTON_CONFIG: Record<string, {
|
|
7
8
|
title: string;
|
|
@@ -9,7 +10,7 @@ export declare const INK_BUTTON_CONFIG: Record<string, {
|
|
|
9
10
|
value?: string;
|
|
10
11
|
}>;
|
|
11
12
|
export declare const INK_COLOR_SWATCHES: string[];
|
|
12
|
-
export declare const INK_PLACEHOLDER_DEFAULT = "
|
|
13
|
+
export declare const INK_PLACEHOLDER_DEFAULT = "Type / to insert a block, or press \u2318K for AI";
|
|
13
14
|
export declare const INK_CLASS_ROOT = "Ink-Editor";
|
|
14
15
|
export declare const INK_CLASS_TOOLBAR = "Ink-Editor__toolbar";
|
|
15
16
|
export declare const INK_CLASS_TOOLBAR_SHOW = "Ink-Editor__toolbar-show";
|
|
@@ -17,8 +18,53 @@ export declare const INK_CLASS_CONTENT = "Ink-Editor__content";
|
|
|
17
18
|
export declare const INK_CLASS_DIVIDER = "Ink-Editor__divider";
|
|
18
19
|
export declare const INK_CLASS_BUTTON = "Ink-Editor__button";
|
|
19
20
|
export declare const INK_CLASS_BUTTON_ACTIVE = "Ink-Editor__button--active";
|
|
21
|
+
export declare const INK_CLASS_STYLE_DD = "Ink-Editor__style-dd";
|
|
22
|
+
export declare const INK_CLASS_STYLE_TRIGGER = "Ink-Editor__style-dd-trigger";
|
|
23
|
+
export declare const INK_CLASS_STYLE_MENU = "Ink-Editor__style-menu";
|
|
24
|
+
export declare const INK_CLASS_STYLE_MENU_PORTAL = "Ink-Editor__style-menu--portal";
|
|
25
|
+
export declare const INK_CLASS_STYLE_OPTION = "Ink-Editor__style-option";
|
|
26
|
+
export declare const INK_CLASS_STYLE_OPTION_SEL = "Ink-Editor__style-option--sel";
|
|
27
|
+
export declare const INK_CLASS_STYLE_OPTION_MARK = "Ink-Editor__style-option-mark";
|
|
28
|
+
export declare const INK_CLASS_STYLE_OPTION_TXT = "Ink-Editor__style-option-txt";
|
|
29
|
+
export declare const INK_CLASS_STYLE_OPTION_NAME = "Ink-Editor__style-option-name";
|
|
30
|
+
export declare const INK_CLASS_STYLE_OPTION_DESC = "Ink-Editor__style-option-desc";
|
|
31
|
+
export declare const INK_CLASS_STYLE_MENU_RICH = "Ink-Editor__style-menu--rich";
|
|
32
|
+
export declare const INK_CLASS_STYLE_CHEV = "Ink-Editor__select-chev";
|
|
33
|
+
export declare const INK_CLASS_STYLE_CHECK = "Ink-Editor__style-check";
|
|
34
|
+
export declare const INK_CLASS_BUTTON_WIDE = "Ink-Editor__button--wide";
|
|
35
|
+
export declare const INK_CLASS_BUTTON_LABEL = "Ink-Editor__button-label";
|
|
36
|
+
export declare const INK_CLASS_AI_PILL_DOT = "Ink-AiPill__dot";
|
|
37
|
+
export declare const INK_CLASS_SLASH_MARK_AI = "Ink-Slash__mark--ai";
|
|
38
|
+
export declare const INK_CLASS_GLYPH = "Ink-Editor__glyph";
|
|
39
|
+
export declare const INK_CLASS_GLYPH_BOLD = "Ink-Editor__glyph--bold";
|
|
40
|
+
export declare const INK_CLASS_GLYPH_ITALIC = "Ink-Editor__glyph--italic";
|
|
41
|
+
export declare const INK_CLASS_GLYPH_UNDERLINE = "Ink-Editor__glyph--underline";
|
|
42
|
+
export declare const INK_CLASS_GLYPH_STRIKE = "Ink-Editor__glyph--strike";
|
|
20
43
|
export declare const INK_CLASS_FOOTER = "Ink-Editor__footer";
|
|
44
|
+
export declare const INK_CLASS_FOOTER_META = "Ink-Editor__footer-meta";
|
|
45
|
+
export declare const INK_CLASS_AI_PILL = "Ink-AiPill";
|
|
46
|
+
export declare const INK_CLASS_CALLOUT = "Ink-callout";
|
|
47
|
+
export declare const SLASH_CATEGORY_BASIC = "Blocks";
|
|
48
|
+
export declare const SLASH_CATEGORY_MEDIA = "Media";
|
|
49
|
+
export declare const SLASH_CATEGORY_AI = "AI";
|
|
50
|
+
export declare const SLASH_ARIA_LABEL = "Insert a block";
|
|
51
|
+
export declare const SLASH_SEARCH_LABEL = "";
|
|
52
|
+
export declare const INK_FORMAT_BLOCK_H1 = "h1";
|
|
53
|
+
export declare const INK_FORMAT_BLOCK_H2 = "h2";
|
|
54
|
+
export declare const INK_FORMAT_BLOCK_H3 = "h3";
|
|
55
|
+
export declare const INK_FORMAT_BLOCK_P = "p";
|
|
56
|
+
export declare const INK_FORMAT_BLOCK_PRE = "pre";
|
|
57
|
+
export declare const INK_FORMAT_BLOCK_QUOTE = "blockquote";
|
|
58
|
+
export declare const INK_CALLOUT_HTML = "<blockquote class=\"Ink-callout\"><p>Callout</p></blockquote>";
|
|
59
|
+
export declare const INK_CHECKLIST_HTML = "<ul class=\"Ink-list--check\"><li>List item</li></ul>";
|
|
21
60
|
export declare const INK_CLASS_SHELL = "Ink-Editor__shell";
|
|
61
|
+
export declare const INK_CLASS_OUTLINE = "Ink-Outline";
|
|
62
|
+
export declare const INK_CLASS_OUTLINE_LABEL = "Ink-Outline__label";
|
|
63
|
+
export declare const INK_CLASS_OUTLINE_ITEM = "Ink-Outline__item";
|
|
64
|
+
export declare const INK_CLASS_OUTLINE_ITEM_ACTIVE = "Ink-Outline__item--active";
|
|
65
|
+
export declare const INK_OUTLINE_LABEL = "Outline";
|
|
66
|
+
export declare const INK_OUTLINE_HEADING_SELECTOR = "h1, h2, h3";
|
|
67
|
+
export declare const INK_VARIANT_DOCUMENT = "document";
|
|
22
68
|
export declare const INK_CLASS_BODY = "Ink-Editor__body";
|
|
23
69
|
export declare const INK_CLASS_BLOCK_ACTIVE = "Ink-block--active";
|
|
24
70
|
export declare const INK_CLASS_TC_INSERT = "Ink-tc-insert";
|
|
@@ -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,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ENERATE_TABLE_MARK as r, SLASH_GENERATE_TABLE_SHORTCUT as a, SLASH_GENERATE_TABLE_DESC as _, SLASH_GENERATE_TABLE_KEYWORDS as l, SLASH_GENERATE_TABLE_LABEL as d, SLASH_GENERATE_TABLE_ID as c, INK_CHECKLIST_ITEM as s } from "./generals.const.js";
|
|
3
|
+
import { TOOLBAR_OPTION_CHECKLIST as I, TOOLBAR_OPTION_LIST_DROPDOWN as e, TOOLBAR_OPTION_FONT_DROPDOWN as L, TOOLBAR_OPTION_SUPERSCRIPT as A, TOOLBAR_OPTION_SUBSCRIPT as S, TOOLBAR_OPTION_DIRECTION_LTR as E, TOOLBAR_OPTION_DIRECTION_RTL as T, TOOLBAR_OPTION_SIGNATURE as m, TOOLBAR_OPTION_FIND_REPLACE_DROPDOWN as u, TOOLBAR_OPTION_HORIZONTAL_RULE as O } from "./toolbar.const.js";
|
|
4
|
+
import { LIST_CLASS_CHECK as N } from "./lists.const.js";
|
|
5
|
+
const R = [
|
|
4
6
|
"headingDropdown",
|
|
5
|
-
|
|
7
|
+
L,
|
|
6
8
|
"divider",
|
|
7
9
|
"bold",
|
|
8
10
|
"italic",
|
|
9
11
|
"underline",
|
|
10
12
|
"strikethrough",
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
A,
|
|
14
|
+
S,
|
|
13
15
|
"divider",
|
|
14
16
|
"textColor",
|
|
15
17
|
"highlightColor",
|
|
16
18
|
"divider",
|
|
17
19
|
e,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
+
E,
|
|
21
|
+
T,
|
|
20
22
|
"divider",
|
|
21
23
|
"link",
|
|
22
24
|
"image",
|
|
23
25
|
"table",
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
m,
|
|
27
|
+
u,
|
|
28
|
+
O,
|
|
27
29
|
"divider",
|
|
28
30
|
"undo",
|
|
29
31
|
"redo",
|
|
@@ -33,13 +35,13 @@ const u = [
|
|
|
33
35
|
"ai",
|
|
34
36
|
"divider",
|
|
35
37
|
"clearFormat"
|
|
36
|
-
],
|
|
38
|
+
], p = [
|
|
37
39
|
"bold",
|
|
38
40
|
"italic",
|
|
39
41
|
"underline",
|
|
40
42
|
"divider",
|
|
41
43
|
e
|
|
42
|
-
],
|
|
44
|
+
], B = [
|
|
43
45
|
"headingDropdown",
|
|
44
46
|
"divider",
|
|
45
47
|
"bold",
|
|
@@ -55,7 +57,28 @@ const u = [
|
|
|
55
57
|
"divider",
|
|
56
58
|
"undo",
|
|
57
59
|
"redo"
|
|
58
|
-
],
|
|
60
|
+
], H = [
|
|
61
|
+
"headingDropdown",
|
|
62
|
+
"divider",
|
|
63
|
+
"bold",
|
|
64
|
+
"italic",
|
|
65
|
+
"underline",
|
|
66
|
+
"strikethrough",
|
|
67
|
+
"divider",
|
|
68
|
+
"bulletList",
|
|
69
|
+
"orderedList",
|
|
70
|
+
I,
|
|
71
|
+
"blockquote",
|
|
72
|
+
"divider",
|
|
73
|
+
"image",
|
|
74
|
+
"link",
|
|
75
|
+
"table",
|
|
76
|
+
"code",
|
|
77
|
+
"divider",
|
|
78
|
+
"undo",
|
|
79
|
+
"redo",
|
|
80
|
+
"ai"
|
|
81
|
+
], y = [
|
|
59
82
|
{ value: "p", label: "Paragraph" },
|
|
60
83
|
{ value: "h1", label: "Heading 1" },
|
|
61
84
|
{ value: "h2", label: "Heading 2" },
|
|
@@ -63,7 +86,7 @@ const u = [
|
|
|
63
86
|
{ value: "h4", label: "Heading 4" },
|
|
64
87
|
{ value: "h5", label: "Heading 5" },
|
|
65
88
|
{ value: "h6", label: "Heading 6" }
|
|
66
|
-
],
|
|
89
|
+
], D = {
|
|
67
90
|
bold: { title: "Bold (Ctrl+B)", command: "bold" },
|
|
68
91
|
italic: { title: "Italic (Ctrl+I)", command: "italic" },
|
|
69
92
|
underline: { title: "Underline (Ctrl+U)", command: "underline" },
|
|
@@ -92,7 +115,7 @@ const u = [
|
|
|
92
115
|
clearFormat: { title: "Clear formatting", command: "removeFormat" },
|
|
93
116
|
undo: { title: "Undo", command: "undo" },
|
|
94
117
|
redo: { title: "Redo", command: "redo" }
|
|
95
|
-
},
|
|
118
|
+
}, U = [
|
|
96
119
|
"#111827",
|
|
97
120
|
"#dc2626",
|
|
98
121
|
"#ea580c",
|
|
@@ -101,7 +124,7 @@ const u = [
|
|
|
101
124
|
"#2563eb",
|
|
102
125
|
"#0f766e",
|
|
103
126
|
"#db2777"
|
|
104
|
-
],
|
|
127
|
+
], v = "Type / to insert a block, or press ⌘K for AI", P = "Ink-Editor", f = "Ink-Editor__toolbar", M = "Ink-Editor__toolbar-show", F = "Ink-Editor__content", w = "Ink-Editor__divider", G = "Ink-Editor__style-dd", Y = "Ink-Editor__style-dd-trigger", q = "Ink-Editor__style-menu", x = "Ink-Editor__style-menu--portal", W = "Ink-Editor__style-option", V = "Ink-Editor__style-option--sel", j = "Ink-Editor__select-chev", z = "Ink-Editor__style-check", J = "Ink-Editor__button--wide", Q = "Ink-Editor__button-label", $ = "Ink-AiPill__dot", X = "Ink-Slash__mark--ai", Z = "Ink-Editor__glyph", tt = "Ink-Editor__glyph--bold", et = "Ink-Editor__glyph--italic", it = "Ink-Editor__glyph--underline", ot = "Ink-Editor__glyph--strike", nt = "Ink-Editor__footer", rt = "Ink-Editor__footer-meta", at = "Ink-AiPill", t = "Blocks", h = "Media", i = "AI", _t = "Insert a block", lt = "", dt = "h1", ct = "h2", st = "h3", It = "p", Lt = "pre", At = "blockquote", St = '<blockquote class="Ink-callout"><p>Callout</p></blockquote>', Et = `<ul class="${N}"><li>${s}</li></ul>`, Tt = "Ink-Editor__shell", mt = "Ink-Outline", ut = "Ink-Outline__label", Ot = "Ink-Outline__item", Nt = "Ink-Outline__item--active", ht = "Outline", kt = "h1, h2, h3", Ct = "document", gt = "Ink-Editor__body", Kt = "Ink-block--active", bt = "Ink-tc-insert", Rt = "Ink-tc-delete", pt = "Ink-comment-mark", Bt = "You", Ht = "classic", k = "boxed", yt = k, Dt = {
|
|
105
128
|
table: !0,
|
|
106
129
|
trackChanges: !0,
|
|
107
130
|
comments: !0,
|
|
@@ -113,44 +136,148 @@ const u = [
|
|
|
113
136
|
signature: !0,
|
|
114
137
|
findReplace: !0,
|
|
115
138
|
horizontalRule: !0
|
|
116
|
-
},
|
|
139
|
+
}, Ut = o, vt = n, Pt = [
|
|
140
|
+
{
|
|
141
|
+
id: "paragraph",
|
|
142
|
+
label: "Text",
|
|
143
|
+
keywords: ["p", "paragraph", "text"],
|
|
144
|
+
insert: "paragraph",
|
|
145
|
+
description: "Just start typing with plain text.",
|
|
146
|
+
category: t,
|
|
147
|
+
shortcut: "/t",
|
|
148
|
+
mark: "T"
|
|
149
|
+
},
|
|
117
150
|
{
|
|
118
151
|
id: "heading1",
|
|
119
152
|
label: "Heading 1",
|
|
120
153
|
keywords: ["h1", "title", "heading"],
|
|
121
|
-
insert: "heading1"
|
|
154
|
+
insert: "heading1",
|
|
155
|
+
description: "Big section heading.",
|
|
156
|
+
category: t,
|
|
157
|
+
shortcut: "/h1",
|
|
158
|
+
mark: "H1"
|
|
122
159
|
},
|
|
123
160
|
{
|
|
124
161
|
id: "heading2",
|
|
125
162
|
label: "Heading 2",
|
|
126
163
|
keywords: ["h2", "subtitle", "heading"],
|
|
127
|
-
insert: "heading2"
|
|
164
|
+
insert: "heading2",
|
|
165
|
+
description: "Medium section heading.",
|
|
166
|
+
category: t,
|
|
167
|
+
shortcut: "/h2",
|
|
168
|
+
mark: "H2"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
id: "heading3",
|
|
172
|
+
label: "Heading 3",
|
|
173
|
+
keywords: ["h3", "heading"],
|
|
174
|
+
insert: "heading3",
|
|
175
|
+
description: "Small section heading.",
|
|
176
|
+
category: t,
|
|
177
|
+
shortcut: "/h3",
|
|
178
|
+
mark: "H3"
|
|
128
179
|
},
|
|
129
180
|
{
|
|
130
181
|
id: "bullet",
|
|
131
|
-
label: "
|
|
182
|
+
label: "Bulleted list",
|
|
132
183
|
keywords: ["ul", "list", "bullet"],
|
|
133
|
-
insert: "bulletList"
|
|
184
|
+
insert: "bulletList",
|
|
185
|
+
description: "Create a simple bulleted list.",
|
|
186
|
+
category: t,
|
|
187
|
+
shortcut: "/ul",
|
|
188
|
+
mark: "•"
|
|
134
189
|
},
|
|
135
190
|
{
|
|
136
191
|
id: "ordered",
|
|
137
192
|
label: "Numbered list",
|
|
138
193
|
keywords: ["ol", "list", "numbered"],
|
|
139
|
-
insert: "orderedList"
|
|
194
|
+
insert: "orderedList",
|
|
195
|
+
description: "Create a numbered list.",
|
|
196
|
+
category: t,
|
|
197
|
+
shortcut: "/ol",
|
|
198
|
+
mark: "1."
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
id: "checklist",
|
|
202
|
+
label: "Checklist",
|
|
203
|
+
keywords: ["check", "todo", "task"],
|
|
204
|
+
insert: "checklist",
|
|
205
|
+
description: "Track tasks with checkboxes.",
|
|
206
|
+
category: t,
|
|
207
|
+
shortcut: "/todo",
|
|
208
|
+
mark: "☑"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
id: "quote",
|
|
212
|
+
label: "Quote",
|
|
213
|
+
keywords: ["quote", "blockquote"],
|
|
214
|
+
insert: "quote",
|
|
215
|
+
description: "Highlight a quotation.",
|
|
216
|
+
category: t,
|
|
217
|
+
shortcut: "/q",
|
|
218
|
+
mark: "“"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
id: "callout",
|
|
222
|
+
label: "Callout",
|
|
223
|
+
keywords: ["callout", "note", "tip"],
|
|
224
|
+
insert: "callout",
|
|
225
|
+
description: "Call out a note beside the copy.",
|
|
226
|
+
category: t,
|
|
227
|
+
shortcut: "/note",
|
|
228
|
+
mark: "i"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
id: "code",
|
|
232
|
+
label: "Code block",
|
|
233
|
+
keywords: ["code", "pre", "html"],
|
|
234
|
+
insert: "code",
|
|
235
|
+
description: "Syntax-highlighted snippet.",
|
|
236
|
+
category: t,
|
|
237
|
+
shortcut: "/code",
|
|
238
|
+
mark: "</>"
|
|
140
239
|
},
|
|
141
240
|
{
|
|
142
241
|
id: "table",
|
|
143
242
|
label: "Table",
|
|
144
243
|
keywords: ["table", "grid"],
|
|
145
|
-
insert: "table"
|
|
244
|
+
insert: "table",
|
|
245
|
+
description: "Structured rows and columns.",
|
|
246
|
+
category: t,
|
|
247
|
+
shortcut: "/table",
|
|
248
|
+
mark: "▦"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
id: "image",
|
|
252
|
+
label: "Image",
|
|
253
|
+
keywords: ["image", "img", "media", "upload"],
|
|
254
|
+
insert: "image",
|
|
255
|
+
description: "Upload or embed an image.",
|
|
256
|
+
category: h,
|
|
257
|
+
shortcut: "/img",
|
|
258
|
+
mark: "▣"
|
|
146
259
|
},
|
|
147
260
|
{
|
|
148
261
|
id: "ai",
|
|
149
|
-
label: "Ask AI",
|
|
262
|
+
label: "Ask Ink AI",
|
|
150
263
|
keywords: ["ai", "assistant", "chat"],
|
|
151
|
-
insert: "ai"
|
|
264
|
+
insert: "ai",
|
|
265
|
+
description: "Draft a block from a prompt.",
|
|
266
|
+
category: i,
|
|
267
|
+
shortcut: "/ai",
|
|
268
|
+
mark: "✦"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
id: c,
|
|
272
|
+
label: d,
|
|
273
|
+
keywords: l,
|
|
274
|
+
insert: "ai",
|
|
275
|
+
description: _,
|
|
276
|
+
category: i,
|
|
277
|
+
shortcut: a,
|
|
278
|
+
mark: r
|
|
152
279
|
}
|
|
153
|
-
],
|
|
280
|
+
], ft = [
|
|
154
281
|
"English",
|
|
155
282
|
"Spanish",
|
|
156
283
|
"French",
|
|
@@ -161,40 +288,80 @@ const u = [
|
|
|
161
288
|
"Portuguese",
|
|
162
289
|
"Korean",
|
|
163
290
|
"Italian"
|
|
164
|
-
],
|
|
291
|
+
], Mt = [
|
|
165
292
|
{ id: "rewrite", label: "Rewrite", capability: "rewrite" },
|
|
166
293
|
{ id: "summarize", label: "Summarize", capability: "summarize" },
|
|
167
294
|
{ id: "expand", label: "Expand", capability: "expand" },
|
|
168
295
|
{ id: "tone", label: "Adjust tone", capability: "tone" }
|
|
169
296
|
];
|
|
170
297
|
export {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
298
|
+
D as INK_BUTTON_CONFIG,
|
|
299
|
+
St as INK_CALLOUT_HTML,
|
|
300
|
+
Et as INK_CHECKLIST_HTML,
|
|
301
|
+
k as INK_CHROME_BOXED,
|
|
302
|
+
H as INK_CHROME_TOOLBAR,
|
|
303
|
+
at as INK_CLASS_AI_PILL,
|
|
304
|
+
$ as INK_CLASS_AI_PILL_DOT,
|
|
305
|
+
Kt as INK_CLASS_BLOCK_ACTIVE,
|
|
306
|
+
gt as INK_CLASS_BODY,
|
|
307
|
+
Q as INK_CLASS_BUTTON_LABEL,
|
|
308
|
+
J as INK_CLASS_BUTTON_WIDE,
|
|
309
|
+
pt as INK_CLASS_COMMENT_MARK,
|
|
310
|
+
F as INK_CLASS_CONTENT,
|
|
311
|
+
w as INK_CLASS_DIVIDER,
|
|
312
|
+
nt as INK_CLASS_FOOTER,
|
|
313
|
+
rt as INK_CLASS_FOOTER_META,
|
|
314
|
+
Z as INK_CLASS_GLYPH,
|
|
315
|
+
tt as INK_CLASS_GLYPH_BOLD,
|
|
316
|
+
et as INK_CLASS_GLYPH_ITALIC,
|
|
317
|
+
ot as INK_CLASS_GLYPH_STRIKE,
|
|
318
|
+
it as INK_CLASS_GLYPH_UNDERLINE,
|
|
319
|
+
mt as INK_CLASS_OUTLINE,
|
|
320
|
+
Ot as INK_CLASS_OUTLINE_ITEM,
|
|
321
|
+
Nt as INK_CLASS_OUTLINE_ITEM_ACTIVE,
|
|
322
|
+
ut as INK_CLASS_OUTLINE_LABEL,
|
|
323
|
+
P as INK_CLASS_ROOT,
|
|
324
|
+
Tt as INK_CLASS_SHELL,
|
|
325
|
+
X as INK_CLASS_SLASH_MARK_AI,
|
|
326
|
+
z as INK_CLASS_STYLE_CHECK,
|
|
327
|
+
j as INK_CLASS_STYLE_CHEV,
|
|
328
|
+
G as INK_CLASS_STYLE_DD,
|
|
329
|
+
q as INK_CLASS_STYLE_MENU,
|
|
330
|
+
x as INK_CLASS_STYLE_MENU_PORTAL,
|
|
331
|
+
W as INK_CLASS_STYLE_OPTION,
|
|
332
|
+
V as INK_CLASS_STYLE_OPTION_SEL,
|
|
333
|
+
Y as INK_CLASS_STYLE_TRIGGER,
|
|
334
|
+
Rt as INK_CLASS_TC_DELETE,
|
|
335
|
+
bt as INK_CLASS_TC_INSERT,
|
|
336
|
+
f as INK_CLASS_TOOLBAR,
|
|
337
|
+
M as INK_CLASS_TOOLBAR_SHOW,
|
|
338
|
+
B as INK_COLLAB_TOOLBAR,
|
|
339
|
+
U as INK_COLOR_SWATCHES,
|
|
340
|
+
Bt as INK_DEFAULT_AUTHOR,
|
|
341
|
+
yt as INK_DEFAULT_CHROME,
|
|
342
|
+
Dt as INK_DEFAULT_FEATURES,
|
|
343
|
+
R as INK_DEFAULT_TOOLBAR,
|
|
344
|
+
Ht as INK_DEFAULT_VARIANT,
|
|
345
|
+
dt as INK_FORMAT_BLOCK_H1,
|
|
346
|
+
ct as INK_FORMAT_BLOCK_H2,
|
|
347
|
+
st as INK_FORMAT_BLOCK_H3,
|
|
348
|
+
It as INK_FORMAT_BLOCK_P,
|
|
349
|
+
Lt as INK_FORMAT_BLOCK_PRE,
|
|
350
|
+
At as INK_FORMAT_BLOCK_QUOTE,
|
|
351
|
+
y as INK_HEADING_OPTIONS,
|
|
352
|
+
kt as INK_OUTLINE_HEADING_SELECTOR,
|
|
353
|
+
ht as INK_OUTLINE_LABEL,
|
|
354
|
+
v as INK_PLACEHOLDER_DEFAULT,
|
|
355
|
+
Mt as INK_QUICK_ACTIONS,
|
|
356
|
+
p as INK_SIMPLE_TOOLBAR,
|
|
357
|
+
Pt as INK_SLASH_COMMANDS,
|
|
358
|
+
vt as INK_TABLE_DEFAULT_COLS,
|
|
359
|
+
Ut as INK_TABLE_DEFAULT_ROWS,
|
|
360
|
+
ft as INK_TRANSLATE_LANGUAGES,
|
|
361
|
+
Ct as INK_VARIANT_DOCUMENT,
|
|
362
|
+
_t as SLASH_ARIA_LABEL,
|
|
363
|
+
i as SLASH_CATEGORY_AI,
|
|
364
|
+
t as SLASH_CATEGORY_BASIC,
|
|
365
|
+
h as SLASH_CATEGORY_MEDIA,
|
|
366
|
+
lt as SLASH_SEARCH_LABEL
|
|
200
367
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E="",t="ink-memory:",
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _="",E=" ",L="/",A="⌘K",T="↵",S="Type ",I=" to insert a block, or press ",N=" for AI",R="Ask Ink AI",O="Code",t="List item",H="✓",o="generate-table",K="Generate table",s="Draft a table from a prompt.",n="/gt",c="+",B=["table","ai","generate","grid"],C="B",e="I",G="U",D="S",F="words",P="chars",Y="synced",r="Ln",a="Col",M="•",U=/\s+/,l="ink-memory:",i="default";exports.DEFAULT_MEMORY_KEY=i;exports.EMPTY_STRING=_;exports.INK_AI_PILL_LABEL=R;exports.INK_CHECKLIST_ITEM=t;exports.INK_CODE_LABEL=O;exports.INK_FOOTER_CHARS_LABEL=P;exports.INK_FOOTER_COL_LABEL=a;exports.INK_FOOTER_DOT=M;exports.INK_FOOTER_LINE_LABEL=r;exports.INK_FOOTER_SYNCED_LABEL=Y;exports.INK_FOOTER_WORDS_LABEL=F;exports.INK_GLYPH_BOLD=C;exports.INK_GLYPH_ITALIC=e;exports.INK_GLYPH_STRIKE=D;exports.INK_GLYPH_UNDERLINE=G;exports.INK_STYLE_CHECK=H;exports.INK_WORD_SPLIT=U;exports.LOCAL_STORAGE_PREFIX=l;exports.SLASH_ENTER_SHORTCUT=T;exports.SLASH_GENERATE_TABLE_DESC=s;exports.SLASH_GENERATE_TABLE_ID=o;exports.SLASH_GENERATE_TABLE_KEYWORDS=B;exports.SLASH_GENERATE_TABLE_LABEL=K;exports.SLASH_GENERATE_TABLE_MARK=c;exports.SLASH_GENERATE_TABLE_SHORTCUT=n;exports.SLASH_HINT_AFTER=I;exports.SLASH_HINT_AI=N;exports.SLASH_HINT_BEFORE=S;exports.SLASH_MOD_SHORTCUT=A;exports.SLASH_PREFIX=L;exports.SPACE_STRING=E;
|
|
@@ -1,6 +1,48 @@
|
|
|
1
1
|
export declare const EMPTY_STRING = "";
|
|
2
2
|
export declare const SPACE_STRING = " ";
|
|
3
3
|
export declare const NEWLINE_STRING = "\n";
|
|
4
|
+
export declare const SLASH_PREFIX = "/";
|
|
5
|
+
export declare const SLASH_MOD_SHORTCUT = "\u2318K";
|
|
6
|
+
export declare const SLASH_ENTER_SHORTCUT = "\u21B5";
|
|
7
|
+
export declare const SLASH_HINT_BEFORE = "Type ";
|
|
8
|
+
export declare const SLASH_HINT_AFTER = " to insert a block, or press ";
|
|
9
|
+
export declare const SLASH_HINT_AI = " for AI";
|
|
10
|
+
export declare const INK_AI_PILL_LABEL = "Ask Ink AI";
|
|
11
|
+
export declare const INK_CODE_LABEL = "Code";
|
|
12
|
+
export declare const INK_CHECKLIST_LABEL = "Checklist";
|
|
13
|
+
export declare const INK_CHECKLIST_ITEM = "List item";
|
|
14
|
+
export declare const INK_STYLE_CHECK = "\u2713";
|
|
15
|
+
export declare const HEADING_MARK_P = "P";
|
|
16
|
+
export declare const HEADING_MARK_H1 = "H1";
|
|
17
|
+
export declare const HEADING_MARK_H2 = "H2";
|
|
18
|
+
export declare const HEADING_MARK_H3 = "H3";
|
|
19
|
+
export declare const HEADING_MARK_H4 = "H4";
|
|
20
|
+
export declare const HEADING_MARK_H5 = "H5";
|
|
21
|
+
export declare const HEADING_MARK_H6 = "H6";
|
|
22
|
+
export declare const HEADING_DESC_P = "Body text";
|
|
23
|
+
export declare const HEADING_DESC_H1 = "Large section title";
|
|
24
|
+
export declare const HEADING_DESC_H2 = "Section heading";
|
|
25
|
+
export declare const HEADING_DESC_H3 = "Subsection heading";
|
|
26
|
+
export declare const HEADING_DESC_H4 = "Small heading";
|
|
27
|
+
export declare const HEADING_DESC_H5 = "Caption heading";
|
|
28
|
+
export declare const HEADING_DESC_H6 = "Fine heading";
|
|
29
|
+
export declare const SLASH_GENERATE_TABLE_ID = "generate-table";
|
|
30
|
+
export declare const SLASH_GENERATE_TABLE_LABEL = "Generate table";
|
|
31
|
+
export declare const SLASH_GENERATE_TABLE_DESC = "Draft a table from a prompt.";
|
|
32
|
+
export declare const SLASH_GENERATE_TABLE_SHORTCUT = "/gt";
|
|
33
|
+
export declare const SLASH_GENERATE_TABLE_MARK = "+";
|
|
34
|
+
export declare const SLASH_GENERATE_TABLE_KEYWORDS: string[];
|
|
35
|
+
export declare const INK_GLYPH_BOLD = "B";
|
|
36
|
+
export declare const INK_GLYPH_ITALIC = "I";
|
|
37
|
+
export declare const INK_GLYPH_UNDERLINE = "U";
|
|
38
|
+
export declare const INK_GLYPH_STRIKE = "S";
|
|
39
|
+
export declare const INK_FOOTER_WORDS_LABEL = "words";
|
|
40
|
+
export declare const INK_FOOTER_CHARS_LABEL = "chars";
|
|
41
|
+
export declare const INK_FOOTER_SYNCED_LABEL = "synced";
|
|
42
|
+
export declare const INK_FOOTER_LINE_LABEL = "Ln";
|
|
43
|
+
export declare const INK_FOOTER_COL_LABEL = "Col";
|
|
44
|
+
export declare const INK_FOOTER_DOT = "\u2022";
|
|
45
|
+
export declare const INK_WORD_SPLIT: RegExp;
|
|
4
46
|
export declare const LOCAL_STORAGE_PREFIX = "ink-memory:";
|
|
5
47
|
export declare const DEFAULT_MEMORY_KEY = "default";
|
|
6
48
|
export declare const DATA_IMAGE_PNG_PREFIX = "data:image/png;base64,";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generals.const.d.ts","sourceRoot":"","sources":["../../src/constants/generals.const.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,KAAK,CAAC;AAC/B,eAAO,MAAM,YAAY,MAAM,CAAC;AAChC,eAAO,MAAM,cAAc,OAAO,CAAC;AACnC,eAAO,MAAM,oBAAoB,gBAAgB,CAAC;AAClD,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAC5C,eAAO,MAAM,qBAAqB,2BAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"generals.const.d.ts","sourceRoot":"","sources":["../../src/constants/generals.const.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,KAAK,CAAC;AAC/B,eAAO,MAAM,YAAY,MAAM,CAAC;AAChC,eAAO,MAAM,cAAc,OAAO,CAAC;AACnC,eAAO,MAAM,YAAY,MAAM,CAAC;AAChC,eAAO,MAAM,kBAAkB,YAAO,CAAC;AACvC,eAAO,MAAM,oBAAoB,WAAM,CAAC;AACxC,eAAO,MAAM,iBAAiB,UAAU,CAAC;AACzC,eAAO,MAAM,gBAAgB,kCAAkC,CAAC;AAChE,eAAO,MAAM,aAAa,YAAY,CAAC;AACvC,eAAO,MAAM,iBAAiB,eAAe,CAAC;AAC9C,eAAO,MAAM,cAAc,SAAS,CAAC;AACrC,eAAO,MAAM,mBAAmB,cAAc,CAAC;AAC/C,eAAO,MAAM,kBAAkB,cAAc,CAAC;AAC9C,eAAO,MAAM,eAAe,WAAM,CAAC;AACnC,eAAO,MAAM,cAAc,MAAM,CAAC;AAClC,eAAO,MAAM,eAAe,OAAO,CAAC;AAC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AAC"}
|
|
@@ -1,6 +1,34 @@
|
|
|
1
|
-
const E = "", o = "ink-memory:",
|
|
1
|
+
const _ = "", E = " ", L = "/", t = "⌘K", A = "↵", o = "Type ", T = " to insert a block, or press ", S = " for AI", s = "Ask Ink AI", n = "Code", I = "List item", c = "✓", N = "generate-table", R = "Generate table", O = "Draft a table from a prompt.", H = "/gt", e = "+", K = ["table", "ai", "generate", "grid"], B = "B", C = "I", r = "U", a = "S", G = "words", D = "chars", F = "synced", P = "Ln", Y = "Col", l = "•", i = /\s+/, M = "ink-memory:", U = "default";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
U as DEFAULT_MEMORY_KEY,
|
|
4
|
+
_ as EMPTY_STRING,
|
|
5
|
+
s as INK_AI_PILL_LABEL,
|
|
6
|
+
I as INK_CHECKLIST_ITEM,
|
|
7
|
+
n as INK_CODE_LABEL,
|
|
8
|
+
D as INK_FOOTER_CHARS_LABEL,
|
|
9
|
+
Y as INK_FOOTER_COL_LABEL,
|
|
10
|
+
l as INK_FOOTER_DOT,
|
|
11
|
+
P as INK_FOOTER_LINE_LABEL,
|
|
12
|
+
F as INK_FOOTER_SYNCED_LABEL,
|
|
13
|
+
G as INK_FOOTER_WORDS_LABEL,
|
|
14
|
+
B as INK_GLYPH_BOLD,
|
|
15
|
+
C as INK_GLYPH_ITALIC,
|
|
16
|
+
a as INK_GLYPH_STRIKE,
|
|
17
|
+
r as INK_GLYPH_UNDERLINE,
|
|
18
|
+
c as INK_STYLE_CHECK,
|
|
19
|
+
i as INK_WORD_SPLIT,
|
|
20
|
+
M as LOCAL_STORAGE_PREFIX,
|
|
21
|
+
A as SLASH_ENTER_SHORTCUT,
|
|
22
|
+
O as SLASH_GENERATE_TABLE_DESC,
|
|
23
|
+
N as SLASH_GENERATE_TABLE_ID,
|
|
24
|
+
K as SLASH_GENERATE_TABLE_KEYWORDS,
|
|
25
|
+
R as SLASH_GENERATE_TABLE_LABEL,
|
|
26
|
+
e as SLASH_GENERATE_TABLE_MARK,
|
|
27
|
+
H as SLASH_GENERATE_TABLE_SHORTCUT,
|
|
28
|
+
T as SLASH_HINT_AFTER,
|
|
29
|
+
S as SLASH_HINT_AI,
|
|
30
|
+
o as SLASH_HINT_BEFORE,
|
|
31
|
+
t as SLASH_MOD_SHORTCUT,
|
|
32
|
+
L as SLASH_PREFIX,
|
|
33
|
+
E as SPACE_STRING
|
|
6
34
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E="Enter",t="Escape",
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E="Enter",t="Escape",K="Tab",Y="z",_="k";exports.KEY_ENTER=E;exports.KEY_ESCAPE=t;exports.KEY_K=_;exports.KEY_TAB=K;exports.KEY_Z=Y;
|
|
@@ -1 +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"}
|
|
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;AACzB,eAAO,MAAM,KAAK,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L="bullet",
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L="bullet",S="dash",_="numbers",T="letters",I="Bullet (•)",A="Dash (–)",E="Numbers (1. 2. 3.)",t="Letters (a. b. c.)",s="List",c="disc",l="decimal",n="lower-alpha",e="Ink-list--dash",o="Ink-list--alpha",D="Ink-list--check",O="UL",R="OL",a="-",U="*",B=" ",N=[{value:L,label:I},{value:S,label:A},{value:_,label:E},{value:T,label:t}];exports.INK_LIST_OPTIONS=N;exports.LIST_CLASS_ALPHA=o;exports.LIST_CLASS_CHECK=D;exports.LIST_CLASS_DASH=e;exports.LIST_DROPDOWN_TITLE=s;exports.LIST_LABEL_BULLET=I;exports.LIST_LABEL_DASH=A;exports.LIST_LABEL_LETTERS=t;exports.LIST_LABEL_NUMBERS=E;exports.LIST_MARKDOWN_DASH=a;exports.LIST_MARKDOWN_SPACE=B;exports.LIST_MARKDOWN_STAR=U;exports.LIST_STYLE_DECIMAL=l;exports.LIST_STYLE_DISC=c;exports.LIST_STYLE_LOWER_ALPHA=n;exports.LIST_TAG_OL=R;exports.LIST_TAG_UL=O;exports.LIST_VALUE_BULLET=L;exports.LIST_VALUE_DASH=S;exports.LIST_VALUE_LETTERS=T;exports.LIST_VALUE_NUMBERS=_;
|
|
@@ -14,6 +14,7 @@ export declare const LIST_STYLE_DECIMAL = "decimal";
|
|
|
14
14
|
export declare const LIST_STYLE_LOWER_ALPHA = "lower-alpha";
|
|
15
15
|
export declare const LIST_CLASS_DASH = "Ink-list--dash";
|
|
16
16
|
export declare const LIST_CLASS_ALPHA = "Ink-list--alpha";
|
|
17
|
+
export declare const LIST_CLASS_CHECK = "Ink-list--check";
|
|
17
18
|
export declare const LIST_TAG_UL = "UL";
|
|
18
19
|
export declare const LIST_TAG_OL = "OL";
|
|
19
20
|
export declare const LIST_TAG_LI = "LI";
|
|
@@ -1 +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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