@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.
Files changed (50) hide show
  1. package/dist/bundled/v2/{OrCode-edc7a1f5.js → OrCode-0cd991a1.js} +1 -114
  2. package/dist/bundled/v2/{OrConfirm-1d396830.js → OrConfirm-22c7622d.js} +1 -1
  3. package/dist/bundled/v2/components/index.js +3 -2
  4. package/dist/bundled/v2/components/or-code/index.js +2 -1
  5. package/dist/bundled/v2/components/or-confirm-v3/index.js +1 -1
  6. package/dist/bundled/v2/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +12 -0
  7. package/dist/bundled/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +149 -0
  8. package/dist/bundled/v2/components/or-rich-text-editor-v3/index.d.ts +1 -0
  9. package/dist/bundled/v2/components/or-rich-text-editor-v3/index.js +36840 -0
  10. package/dist/bundled/v2/components/or-rich-text-editor-v3/styles.d.ts +6 -0
  11. package/dist/bundled/v2/index.es-3f39f316.js +115 -0
  12. package/dist/bundled/v2/index.js +4 -3
  13. package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-ef5e7f04.js → OrCode.vue_vue_type_script_lang-6c5f94a6.js} +1 -114
  14. package/dist/bundled/v3/OrMenu-08aa60de.js +29 -0
  15. package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-ca57f9d9.js → OrTabs.vue_vue_type_script_lang-2fdbd2f2.js} +10 -36
  16. package/dist/bundled/v3/components/index.js +4 -2
  17. package/dist/bundled/v3/components/or-code/index.js +2 -1
  18. package/dist/bundled/v3/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +12 -0
  19. package/dist/bundled/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +149 -0
  20. package/dist/bundled/v3/components/or-rich-text-editor-v3/index.d.ts +1 -0
  21. package/dist/bundled/v3/components/or-rich-text-editor-v3/index.js +36811 -0
  22. package/dist/bundled/v3/components/or-rich-text-editor-v3/styles.d.ts +6 -0
  23. package/dist/bundled/v3/components/or-tabs-v3/index.js +2 -1
  24. package/dist/bundled/v3/index.es-3f39f316.js +115 -0
  25. package/dist/bundled/v3/index.js +8 -6
  26. package/dist/esm/v2/{OrConfirm-e3b3418f.js → OrConfirm-367ac968.js} +1 -1
  27. package/dist/esm/v2/components/index.js +1 -1
  28. package/dist/esm/v2/components/or-confirm-v3/index.js +1 -1
  29. package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +12 -0
  30. package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +149 -0
  31. package/dist/esm/v2/components/or-rich-text-editor-v3/index.d.ts +1 -0
  32. package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +524 -0
  33. package/dist/esm/v2/components/or-rich-text-editor-v3/styles.d.ts +6 -0
  34. package/dist/esm/v2/index.js +1 -1
  35. package/dist/esm/v3/{OrConfirm-b78c5299.js → OrConfirm-e6735cc8.js} +1 -1
  36. package/dist/esm/v3/components/index.js +1 -1
  37. package/dist/esm/v3/components/or-confirm-v3/index.js +1 -1
  38. package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +12 -0
  39. package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +149 -0
  40. package/dist/esm/v3/components/or-rich-text-editor-v3/index.d.ts +1 -0
  41. package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +493 -0
  42. package/dist/esm/v3/components/or-rich-text-editor-v3/styles.d.ts +6 -0
  43. package/dist/esm/v3/index.js +1 -1
  44. package/package.json +20 -3
  45. package/src/components/or-confirm-v3/OrConfirm.vue +1 -1
  46. package/src/components/or-rich-text-editor-v3/OrRichTextEditor.docs.mdx +16 -0
  47. package/src/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.ts +62 -0
  48. package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +520 -0
  49. package/src/components/or-rich-text-editor-v3/index.ts +1 -0
  50. package/src/components/or-rich-text-editor-v3/styles.ts +65 -0
@@ -1,4 +1,5 @@
1
1
  import { useElementHover } from '@vueuse/core';
2
+ import { k as keyName, b as base, s as shift } from './index.es-3f39f316.js';
2
3
  import _ from 'lodash';
3
4
  import './index-fa6eb4ca.js';
4
5
  import { O as OrTeleport } from './OrTeleportVue2-3544f185.js';
@@ -3922,120 +3923,6 @@ class StyleSet {
3922
3923
  // example to create a media query you can do `{"@media screen and
3923
3924
  // (min-width: 400px)": {...}}`.
3924
3925
 
3925
- var base = {
3926
- 8: "Backspace",
3927
- 9: "Tab",
3928
- 10: "Enter",
3929
- 12: "NumLock",
3930
- 13: "Enter",
3931
- 16: "Shift",
3932
- 17: "Control",
3933
- 18: "Alt",
3934
- 20: "CapsLock",
3935
- 27: "Escape",
3936
- 32: " ",
3937
- 33: "PageUp",
3938
- 34: "PageDown",
3939
- 35: "End",
3940
- 36: "Home",
3941
- 37: "ArrowLeft",
3942
- 38: "ArrowUp",
3943
- 39: "ArrowRight",
3944
- 40: "ArrowDown",
3945
- 44: "PrintScreen",
3946
- 45: "Insert",
3947
- 46: "Delete",
3948
- 59: ";",
3949
- 61: "=",
3950
- 91: "Meta",
3951
- 92: "Meta",
3952
- 106: "*",
3953
- 107: "+",
3954
- 108: ",",
3955
- 109: "-",
3956
- 110: ".",
3957
- 111: "/",
3958
- 144: "NumLock",
3959
- 145: "ScrollLock",
3960
- 160: "Shift",
3961
- 161: "Shift",
3962
- 162: "Control",
3963
- 163: "Control",
3964
- 164: "Alt",
3965
- 165: "Alt",
3966
- 173: "-",
3967
- 186: ";",
3968
- 187: "=",
3969
- 188: ",",
3970
- 189: "-",
3971
- 190: ".",
3972
- 191: "/",
3973
- 192: "`",
3974
- 219: "[",
3975
- 220: "\\",
3976
- 221: "]",
3977
- 222: "'"
3978
- };
3979
- var shift = {
3980
- 48: ")",
3981
- 49: "!",
3982
- 50: "@",
3983
- 51: "#",
3984
- 52: "$",
3985
- 53: "%",
3986
- 54: "^",
3987
- 55: "&",
3988
- 56: "*",
3989
- 57: "(",
3990
- 59: ":",
3991
- 61: "+",
3992
- 173: "_",
3993
- 186: ":",
3994
- 187: "+",
3995
- 188: "<",
3996
- 189: "_",
3997
- 190: ">",
3998
- 191: "?",
3999
- 192: "~",
4000
- 219: "{",
4001
- 220: "|",
4002
- 221: "}",
4003
- 222: "\""
4004
- };
4005
- var chrome$1 = typeof navigator != "undefined" && /Chrome\/(\d+)/.exec(navigator.userAgent);
4006
- typeof navigator != "undefined" && /Gecko\/\d+/.test(navigator.userAgent);
4007
- var mac = typeof navigator != "undefined" && /Mac/.test(navigator.platform);
4008
- var ie$1 = typeof navigator != "undefined" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
4009
- var brokenModifierNames = mac || chrome$1 && +chrome$1[1] < 57;
4010
-
4011
- // Fill in the digit keys
4012
- for (var i = 0; i < 10; i++) base[48 + i] = base[96 + i] = String(i);
4013
-
4014
- // The function keys
4015
- for (var i = 1; i <= 24; i++) base[i + 111] = "F" + i;
4016
-
4017
- // And the alphabetic keys
4018
- for (var i = 65; i <= 90; i++) {
4019
- base[i] = String.fromCharCode(i + 32);
4020
- shift[i] = String.fromCharCode(i);
4021
- }
4022
-
4023
- // For each code that doesn't have a shift-equivalent, copy the base name
4024
- for (var code in base) if (!shift.hasOwnProperty(code)) shift[code] = base[code];
4025
- function keyName(event) {
4026
- var ignoreKey = brokenModifierNames && (event.ctrlKey || event.altKey || event.metaKey) || ie$1 && event.shiftKey && event.key && event.key.length == 1 || event.key == "Unidentified";
4027
- var name = !ignoreKey && event.key || (event.shiftKey ? shift : base)[event.keyCode] || event.key || "Unidentified";
4028
- // Edge sometimes produces wrong names (Issue #3)
4029
- if (name == "Esc") name = "Escape";
4030
- if (name == "Del") name = "Delete";
4031
- // https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/8860571/
4032
- if (name == "Left") name = "ArrowLeft";
4033
- if (name == "Up") name = "ArrowUp";
4034
- if (name == "Right") name = "ArrowRight";
4035
- if (name == "Down") name = "ArrowDown";
4036
- return name;
4037
- }
4038
-
4039
3926
  function getSelection(root) {
4040
3927
  let target;
4041
3928
  // Browsers differ on whether shadow roots have a getSelection
@@ -240,7 +240,7 @@ var __vue_render__ = function () {
240
240
  }, [_vm._t("header", function () {
241
241
  return [_vm._v("\n " + _vm._s(_vm.titleText) + "\n ")];
242
242
  })], 2), _vm._v(" "), _c('div', {
243
- class: ['grow', 'overflow-y-auto', 'overflow-x-hidden']
243
+ class: ['grow', 'overflow-y-auto']
244
244
  }, [_vm._t("default"), _vm._v(" "), _vm.confirmationText ? _c('div', {
245
245
  class: _vm.inputBoxStyles
246
246
  }, [_c('OrInput', {
@@ -15,11 +15,11 @@ export { O as OrCheckbox } from '../OrCheckbox-f97a57b9.js';
15
15
  export { O as OrCheckboxV3 } from '../OrCheckbox-5b499fc5.js';
16
16
  export { O as OrChip } from '../OrChip-000fe7b5.js';
17
17
  export { _ as OrChips } from '../OrChips-890b8476.js';
18
- export { _ as OrCode, O as OrCodeLanguages } from '../OrCode-edc7a1f5.js';
18
+ export { _ as OrCode, O as OrCodeLanguages } from '../OrCode-0cd991a1.js';
19
19
  export { O as OrCollapse } from '../OrCollapse-3aa9a9b7.js';
20
20
  export { _ as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from '../OrColorPicker-a1a37e83.js';
21
21
  export { _ as OrConfirm } from '../OrConfirm-56d01cff.js';
22
- export { C as ConfirmType, _ as OrConfirmV3 } from '../OrConfirm-1d396830.js';
22
+ export { C as ConfirmType, _ as OrConfirmV3 } from '../OrConfirm-22c7622d.js';
23
23
  export { D as DEFAULT_TEXT, _ as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from '../OrDateTimePicker-e212f892.js';
24
24
  export { O as OrError } from '../OrError-31503e4c.js';
25
25
  export { _ as OrErrorTagV3 } from '../OrErrorTag-c55ec019.js';
@@ -104,6 +104,7 @@ import '../browser-82dea9ed.js';
104
104
  import '../color-1f348774.js';
105
105
  import '../useClassAttribute-9bf33346.js';
106
106
  import '@vueuse/core';
107
+ import '../index.es-3f39f316.js';
107
108
  import '../px-to-rem-0b26b83e.js';
108
109
  import '../dom-3a15d036.js';
109
110
  import '../index-17f264f9.js';
@@ -1,5 +1,6 @@
1
- export { _ as OrCode, O as OrCodeLanguages } from '../../OrCode-edc7a1f5.js';
1
+ export { _ as OrCode, O as OrCodeLanguages } from '../../OrCode-0cd991a1.js';
2
2
  import '@vueuse/core';
3
+ import '../../index.es-3f39f316.js';
3
4
  import 'lodash';
4
5
  import '../../index-fa6eb4ca.js';
5
6
  import 'vue';
@@ -1,4 +1,4 @@
1
- export { C as ConfirmType, _ as OrConfirmV3 } from '../../OrConfirm-1d396830.js';
1
+ export { C as ConfirmType, _ as OrConfirmV3 } from '../../OrConfirm-22c7622d.js';
2
2
  import '../../index-fa6eb4ca.js';
3
3
  import 'vue';
4
4
  import '@vue/composition-api/dist/vue-composition-api.mjs';
@@ -0,0 +1,12 @@
1
+ import { Meta, StoryFn } from '@storybook/vue3';
2
+ declare const _default: Meta<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
3
+ [x: string]: ((...args: any[]) => any) | null;
4
+ } | string[], {} & {}, {
5
+ [x: number]: string;
6
+ } | {}, true>)>;
7
+ export default _default;
8
+ export declare const RichTextEditor: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
9
+ [x: string]: ((...args: any[]) => any) | null;
10
+ } | string[], {} & {}, {
11
+ [x: number]: string;
12
+ } | {}, true>)>;
@@ -0,0 +1,149 @@
1
+ import { Editor } from '@tiptap/core';
2
+ import { Level } from '@tiptap/extension-heading';
3
+ declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
4
+ editor: Editor | null;
5
+ editorRef: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
6
+ containerRef: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
7
+ toolbarButtonRef: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
8
+ [x: string]: ((...args: any[]) => any) | null;
9
+ } | string[], {} & {}, {
10
+ [x: number]: string;
11
+ } | {}, true> | undefined>;
12
+ menuRef: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
13
+ [x: string]: ((...args: any[]) => any) | null;
14
+ } | string[], {} & {}, {
15
+ [x: number]: string;
16
+ } | {}, true> | undefined>;
17
+ iconsEnum: import("@vue/composition-api").Ref<{
18
+ [x: string]: string;
19
+ }>;
20
+ handleToolbarClick: (item: string, level?: number | undefined) => void;
21
+ handleEditorClick: () => void;
22
+ isActive: import("@vue/composition-api").Ref<{
23
+ [x: string]: boolean;
24
+ }>;
25
+ iconTooltipsEnum: import("@vue/composition-api").Ref<{
26
+ [x: string]: string;
27
+ }>;
28
+ containerStyles: import("@vue/composition-api").ComputedRef<string[]>;
29
+ toolbarContainerStyles: import("@vue/composition-api").ComputedRef<string[]>;
30
+ toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
31
+ rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
32
+ toolbarButtonStyles: (item: string) => string[];
33
+ editorInputStyles: import("@vue/composition-api").ComputedRef<string[]>;
34
+ getIndexOfHeading: import("@vue/composition-api").ComputedRef<number>;
35
+ headingLevels: Level[];
36
+ headingIcon: import("@vue/composition-api").ComputedRef<string>;
37
+ }> & import("@vue/composition-api").Data, {}, {}, {
38
+ modelValue: {
39
+ type: StringConstructor;
40
+ default: string;
41
+ required: false;
42
+ };
43
+ toolbar: {
44
+ type: ArrayConstructor;
45
+ default: () => string[][];
46
+ };
47
+ description: {
48
+ type: StringConstructor;
49
+ default: string;
50
+ };
51
+ placeholder: {
52
+ type: StringConstructor;
53
+ default: string;
54
+ };
55
+ autofocus: {
56
+ type: BooleanConstructor;
57
+ default: boolean;
58
+ };
59
+ markdown: {
60
+ type: BooleanConstructor;
61
+ default: boolean;
62
+ };
63
+ }, import("@vue/composition-api").ExtractPropTypes<{
64
+ modelValue: {
65
+ type: StringConstructor;
66
+ default: string;
67
+ required: false;
68
+ };
69
+ toolbar: {
70
+ type: ArrayConstructor;
71
+ default: () => string[][];
72
+ };
73
+ description: {
74
+ type: StringConstructor;
75
+ default: string;
76
+ };
77
+ placeholder: {
78
+ type: StringConstructor;
79
+ default: string;
80
+ };
81
+ autofocus: {
82
+ type: BooleanConstructor;
83
+ default: boolean;
84
+ };
85
+ markdown: {
86
+ type: BooleanConstructor;
87
+ default: boolean;
88
+ };
89
+ }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
90
+ modelValue: string;
91
+ toolbar: unknown[];
92
+ description: string;
93
+ placeholder: string;
94
+ autofocus: boolean;
95
+ markdown: boolean;
96
+ } & {} & {
97
+ [x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
98
+ }, import("@vue/composition-api").ShallowUnwrapRef<{
99
+ editor: Editor | null;
100
+ editorRef: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
101
+ containerRef: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
102
+ toolbarButtonRef: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
103
+ [x: string]: ((...args: any[]) => any) | null;
104
+ } | string[], {} & {}, {
105
+ [x: number]: string;
106
+ } | {}, true> | undefined>;
107
+ menuRef: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
108
+ [x: string]: ((...args: any[]) => any) | null;
109
+ } | string[], {} & {}, {
110
+ [x: number]: string;
111
+ } | {}, true> | undefined>;
112
+ iconsEnum: import("@vue/composition-api").Ref<{
113
+ [x: string]: string;
114
+ }>;
115
+ handleToolbarClick: (item: string, level?: number | undefined) => void;
116
+ handleEditorClick: () => void;
117
+ isActive: import("@vue/composition-api").Ref<{
118
+ [x: string]: boolean;
119
+ }>;
120
+ iconTooltipsEnum: import("@vue/composition-api").Ref<{
121
+ [x: string]: string;
122
+ }>;
123
+ containerStyles: import("@vue/composition-api").ComputedRef<string[]>;
124
+ toolbarContainerStyles: import("@vue/composition-api").ComputedRef<string[]>;
125
+ toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
126
+ rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
127
+ toolbarButtonStyles: (item: string) => string[];
128
+ editorInputStyles: import("@vue/composition-api").ComputedRef<string[]>;
129
+ getIndexOfHeading: import("@vue/composition-api").ComputedRef<number>;
130
+ headingLevels: Level[];
131
+ headingIcon: import("@vue/composition-api").ComputedRef<string>;
132
+ }>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
133
+ modelValue: string;
134
+ toolbar: unknown[];
135
+ description: string;
136
+ placeholder: string;
137
+ autofocus: boolean;
138
+ markdown: boolean;
139
+ } & {} & {
140
+ [x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
141
+ }, {
142
+ modelValue: string;
143
+ toolbar: unknown[];
144
+ description: string;
145
+ placeholder: string;
146
+ autofocus: boolean;
147
+ markdown: boolean;
148
+ }, true>);
149
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as OrRichTextEditor } from './OrRichTextEditor.vue';