@onereach/ui-components 2.67.4 → 2.68.0-beta.2001.0
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/dist/bundled/v2/{OrCode-edc7a1f5.js → OrCode-0cd991a1.js} +1 -114
- package/dist/bundled/v2/{OrConfirm-1d396830.js → OrConfirm-22c7622d.js} +1 -1
- package/dist/bundled/v2/components/index.js +3 -2
- package/dist/bundled/v2/components/or-code/index.js +2 -1
- package/dist/bundled/v2/components/or-confirm-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +12 -0
- package/dist/bundled/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +149 -0
- package/dist/bundled/v2/components/or-rich-text-editor-v3/index.d.ts +1 -0
- package/dist/bundled/v2/components/or-rich-text-editor-v3/index.js +36840 -0
- package/dist/bundled/v2/components/or-rich-text-editor-v3/styles.d.ts +6 -0
- package/dist/bundled/v2/index.es-3f39f316.js +115 -0
- package/dist/bundled/v2/index.js +4 -3
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-ef5e7f04.js → OrCode.vue_vue_type_script_lang-6c5f94a6.js} +1 -114
- package/dist/bundled/v3/OrMenu-08aa60de.js +29 -0
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-ca57f9d9.js → OrTabs.vue_vue_type_script_lang-2fdbd2f2.js} +10 -36
- package/dist/bundled/v3/components/index.js +4 -2
- package/dist/bundled/v3/components/or-code/index.js +2 -1
- package/dist/bundled/v3/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +12 -0
- package/dist/bundled/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +149 -0
- package/dist/bundled/v3/components/or-rich-text-editor-v3/index.d.ts +1 -0
- package/dist/bundled/v3/components/or-rich-text-editor-v3/index.js +36811 -0
- package/dist/bundled/v3/components/or-rich-text-editor-v3/styles.d.ts +6 -0
- package/dist/bundled/v3/components/or-tabs-v3/index.js +2 -1
- package/dist/bundled/v3/index.es-3f39f316.js +115 -0
- package/dist/bundled/v3/index.js +8 -6
- package/dist/esm/v2/{OrConfirm-e3b3418f.js → OrConfirm-367ac968.js} +1 -1
- package/dist/esm/v2/components/index.js +1 -1
- package/dist/esm/v2/components/or-confirm-v3/index.js +1 -1
- package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +12 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +149 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.d.ts +1 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +524 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/styles.d.ts +6 -0
- package/dist/esm/v2/index.js +1 -1
- package/dist/esm/v3/{OrConfirm-b78c5299.js → OrConfirm-e6735cc8.js} +1 -1
- package/dist/esm/v3/components/index.js +1 -1
- package/dist/esm/v3/components/or-confirm-v3/index.js +1 -1
- package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +12 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +149 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.d.ts +1 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +493 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/styles.d.ts +6 -0
- package/dist/esm/v3/index.js +1 -1
- package/package.json +20 -3
- package/src/components/or-confirm-v3/OrConfirm.vue +1 -1
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.docs.mdx +16 -0
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.ts +62 -0
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +520 -0
- package/src/components/or-rich-text-editor-v3/index.ts +1 -0
- package/src/components/or-rich-text-editor-v3/styles.ts +65 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const EditorContainer: string[];
|
|
2
|
+
export declare const ToolbarContainer: string[];
|
|
3
|
+
export declare const Toolbar: string[];
|
|
4
|
+
export declare const ToolbarButton: string[];
|
|
5
|
+
export declare const ToolbarButtonActive: string[];
|
|
6
|
+
export declare const EditorInput: string[];
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export { s as OrTabsV3, T as TabsVariant } from '../../OrTabs.vue_vue_type_script_lang-
|
|
1
|
+
export { s as OrTabsV3, T as TabsVariant } from '../../OrTabs.vue_vue_type_script_lang-2fdbd2f2.js';
|
|
2
2
|
import '@vueuse/core';
|
|
3
3
|
import 'vue';
|
|
4
4
|
import '../../OrIcon-3a514933.js';
|
|
5
5
|
import '../../OrIcon.vue_vue_type_script_lang-41a6a57a.js';
|
|
6
6
|
import '../../useClassAttribute-00888f78.js';
|
|
7
|
+
import '../../OrMenu-08aa60de.js';
|
|
7
8
|
import '../../OrMenu.vue_vue_type_script_lang-bae45062.js';
|
|
8
9
|
import '../../OrPopover-93ef8c26.js';
|
|
9
10
|
import '../../OrPopover.vue_vue_type_script_lang-e200f5be.js';
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
var base = {
|
|
2
|
+
8: "Backspace",
|
|
3
|
+
9: "Tab",
|
|
4
|
+
10: "Enter",
|
|
5
|
+
12: "NumLock",
|
|
6
|
+
13: "Enter",
|
|
7
|
+
16: "Shift",
|
|
8
|
+
17: "Control",
|
|
9
|
+
18: "Alt",
|
|
10
|
+
20: "CapsLock",
|
|
11
|
+
27: "Escape",
|
|
12
|
+
32: " ",
|
|
13
|
+
33: "PageUp",
|
|
14
|
+
34: "PageDown",
|
|
15
|
+
35: "End",
|
|
16
|
+
36: "Home",
|
|
17
|
+
37: "ArrowLeft",
|
|
18
|
+
38: "ArrowUp",
|
|
19
|
+
39: "ArrowRight",
|
|
20
|
+
40: "ArrowDown",
|
|
21
|
+
44: "PrintScreen",
|
|
22
|
+
45: "Insert",
|
|
23
|
+
46: "Delete",
|
|
24
|
+
59: ";",
|
|
25
|
+
61: "=",
|
|
26
|
+
91: "Meta",
|
|
27
|
+
92: "Meta",
|
|
28
|
+
106: "*",
|
|
29
|
+
107: "+",
|
|
30
|
+
108: ",",
|
|
31
|
+
109: "-",
|
|
32
|
+
110: ".",
|
|
33
|
+
111: "/",
|
|
34
|
+
144: "NumLock",
|
|
35
|
+
145: "ScrollLock",
|
|
36
|
+
160: "Shift",
|
|
37
|
+
161: "Shift",
|
|
38
|
+
162: "Control",
|
|
39
|
+
163: "Control",
|
|
40
|
+
164: "Alt",
|
|
41
|
+
165: "Alt",
|
|
42
|
+
173: "-",
|
|
43
|
+
186: ";",
|
|
44
|
+
187: "=",
|
|
45
|
+
188: ",",
|
|
46
|
+
189: "-",
|
|
47
|
+
190: ".",
|
|
48
|
+
191: "/",
|
|
49
|
+
192: "`",
|
|
50
|
+
219: "[",
|
|
51
|
+
220: "\\",
|
|
52
|
+
221: "]",
|
|
53
|
+
222: "'"
|
|
54
|
+
};
|
|
55
|
+
var shift = {
|
|
56
|
+
48: ")",
|
|
57
|
+
49: "!",
|
|
58
|
+
50: "@",
|
|
59
|
+
51: "#",
|
|
60
|
+
52: "$",
|
|
61
|
+
53: "%",
|
|
62
|
+
54: "^",
|
|
63
|
+
55: "&",
|
|
64
|
+
56: "*",
|
|
65
|
+
57: "(",
|
|
66
|
+
59: ":",
|
|
67
|
+
61: "+",
|
|
68
|
+
173: "_",
|
|
69
|
+
186: ":",
|
|
70
|
+
187: "+",
|
|
71
|
+
188: "<",
|
|
72
|
+
189: "_",
|
|
73
|
+
190: ">",
|
|
74
|
+
191: "?",
|
|
75
|
+
192: "~",
|
|
76
|
+
219: "{",
|
|
77
|
+
220: "|",
|
|
78
|
+
221: "}",
|
|
79
|
+
222: "\""
|
|
80
|
+
};
|
|
81
|
+
var chrome = typeof navigator != "undefined" && /Chrome\/(\d+)/.exec(navigator.userAgent);
|
|
82
|
+
typeof navigator != "undefined" && /Gecko\/\d+/.test(navigator.userAgent);
|
|
83
|
+
var mac = typeof navigator != "undefined" && /Mac/.test(navigator.platform);
|
|
84
|
+
var ie = typeof navigator != "undefined" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
|
|
85
|
+
var brokenModifierNames = mac || chrome && +chrome[1] < 57;
|
|
86
|
+
|
|
87
|
+
// Fill in the digit keys
|
|
88
|
+
for (var i = 0; i < 10; i++) base[48 + i] = base[96 + i] = String(i);
|
|
89
|
+
|
|
90
|
+
// The function keys
|
|
91
|
+
for (var i = 1; i <= 24; i++) base[i + 111] = "F" + i;
|
|
92
|
+
|
|
93
|
+
// And the alphabetic keys
|
|
94
|
+
for (var i = 65; i <= 90; i++) {
|
|
95
|
+
base[i] = String.fromCharCode(i + 32);
|
|
96
|
+
shift[i] = String.fromCharCode(i);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// For each code that doesn't have a shift-equivalent, copy the base name
|
|
100
|
+
for (var code in base) if (!shift.hasOwnProperty(code)) shift[code] = base[code];
|
|
101
|
+
function keyName(event) {
|
|
102
|
+
var ignoreKey = brokenModifierNames && (event.ctrlKey || event.altKey || event.metaKey) || ie && event.shiftKey && event.key && event.key.length == 1 || event.key == "Unidentified";
|
|
103
|
+
var name = !ignoreKey && event.key || (event.shiftKey ? shift : base)[event.keyCode] || event.key || "Unidentified";
|
|
104
|
+
// Edge sometimes produces wrong names (Issue #3)
|
|
105
|
+
if (name == "Esc") name = "Escape";
|
|
106
|
+
if (name == "Del") name = "Delete";
|
|
107
|
+
// https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/8860571/
|
|
108
|
+
if (name == "Left") name = "ArrowLeft";
|
|
109
|
+
if (name == "Up") name = "ArrowUp";
|
|
110
|
+
if (name == "Right") name = "ArrowRight";
|
|
111
|
+
if (name == "Down") name = "ArrowDown";
|
|
112
|
+
return name;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export { base as b, keyName as k, shift as s };
|