@onereach/ui-components 4.8.0-beta.2860.0 → 4.8.0-beta.2865.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 (26) hide show
  1. package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.js +25 -4
  2. package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +6 -32
  3. package/dist/bundled/v2/components/OrRichTextEditorV3/props.d.ts +1 -0
  4. package/dist/bundled/v2/index.js +1 -1
  5. package/dist/bundled/v3/{OrRichTextEditor.vue_vue_type_script_lang-babe3535.js → OrRichTextEditor.vue_vue_type_script_lang-9a8bb827.js} +22 -2
  6. package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.js +6 -5
  7. package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +6 -32
  8. package/dist/bundled/v3/components/OrRichTextEditorV3/index.js +1 -1
  9. package/dist/bundled/v3/components/OrRichTextEditorV3/props.d.ts +1 -0
  10. package/dist/bundled/v3/components/index.js +1 -1
  11. package/dist/bundled/v3/index.js +2 -2
  12. package/dist/esm/v2/{OrRichTextEditor-919a348f.js → OrRichTextEditor-7b986291.js} +25 -4
  13. package/dist/esm/v2/components/index.js +1 -1
  14. package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +6 -32
  15. package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +1 -1
  16. package/dist/esm/v2/components/or-rich-text-editor-v3/props.d.ts +1 -0
  17. package/dist/esm/v2/index.js +1 -1
  18. package/dist/esm/v3/{OrRichTextEditor-04269a6f.js → OrRichTextEditor-fc699d3b.js} +26 -5
  19. package/dist/esm/v3/components/index.js +1 -1
  20. package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +6 -32
  21. package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +1 -1
  22. package/dist/esm/v3/components/or-rich-text-editor-v3/props.d.ts +1 -0
  23. package/dist/esm/v3/index.js +1 -1
  24. package/package.json +1 -1
  25. package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +33 -27
  26. package/src/components/or-rich-text-editor-v3/props.ts +2 -0
@@ -1647,7 +1647,27 @@ var script = defineComponent({
1647
1647
  enablePasteRules: true,
1648
1648
  extensions: [codemirrorNode, StarterKit.configure({
1649
1649
  heading: false,
1650
- codeBlock: false
1650
+ codeBlock: false,
1651
+ paragraph: false,
1652
+ bulletList: false,
1653
+ orderedList: false,
1654
+ blockquote: false
1655
+ }), Paragraph.configure({
1656
+ HTMLAttributes: {
1657
+ class: 'my-xs'
1658
+ }
1659
+ }), BulletList.configure({
1660
+ HTMLAttributes: {
1661
+ class: 'mx-lg my-xs list-disc'
1662
+ }
1663
+ }), OrderedList.configure({
1664
+ HTMLAttributes: {
1665
+ class: 'mx-lg my-xs list-decimal'
1666
+ }
1667
+ }), Blockquote.configure({
1668
+ HTMLAttributes: {
1669
+ class: 'my-sm mx-lg px-lg border-l-2 border-outline'
1670
+ }
1651
1671
  }), Heading.configure({
1652
1672
  levels: headingLevels
1653
1673
  }).extend({
@@ -1658,7 +1678,7 @@ var script = defineComponent({
1658
1678
  HTMLAttributes
1659
1679
  } = _ref3;
1660
1680
  return ['h' + node.attrs.level, mergeAttributes(HTMLAttributes, {
1661
- class: `typography-headline-${node.attrs.level}`
1681
+ class: `typography-headline-${node.attrs.level} my-xs`
1662
1682
  }), 0];
1663
1683
  }
1664
1684
  }), Underline, Link.configure({
@@ -1934,7 +1954,7 @@ var script = defineComponent({
1934
1954
  }
1935
1955
  });
1936
1956
 
1937
- var css_248z = ".tiptap-editor-v3 ol{margin-left:24px;margin-right:24px;list-style:decimal}.tiptap-editor-v3 .ProseMirror h1, .tiptap-editor-v3 .ProseMirror h2, .tiptap-editor-v3 .ProseMirror h3, .tiptap-editor-v3 .ProseMirror h4, .tiptap-editor-v3 .ProseMirror h5, .tiptap-editor-v3 .ProseMirror h6, .tiptap-editor-v3 .ProseMirror p{margin:4px}.tiptap-editor-v3 ul{margin-left:24px;margin-right:24px;list-style:disc outside none;list-style:initial}.tiptap-editor-v3 blockquote{margin-left:24px;margin-right:24px;margin-top:8px;margin-bottom:8px;padding-left:24px;padding-right:24px;border-left:4px solid rgba(0, 95, 177, 0.16)}.tiptap-editor-v3 .is-editor-empty::before{content:attr(data-placeholder);height:0;pointer-events:none;float:left}.tiptap-editor-v3 .cm-editor{border:none;border-radius:4px;}.tiptap-editor-v3 .cm-editor .cm-scroller{border-radius:4px}.tiptap-editor-v3 .cm-editor.cm-focused{outline:0}.tiptap-editor-v3 .cm-editor .cm-gutters{background-color:rgba(0, 95, 177, 0.12);border:none}.tiptap-editor-v3 .cm-editor .cm-gutters .cm-gutterElement{padding-left:11px;padding-right:11px}.tiptap-editor-v3 .cm-editor .cm-gutters .cm-gutterElement.cm-activeLineGutter{background-color:rgba(0, 95, 177, 0.16)}";
1957
+ var css_248z = ".tiptap-editor-v3 .is-editor-empty::before{content:attr(data-placeholder);height:0;pointer-events:none;float:left}.tiptap-editor-v3 .cm-editor{border:none;border-radius:4px;}.tiptap-editor-v3 .cm-editor .cm-scroller{border-radius:4px}.tiptap-editor-v3 .cm-editor.cm-focused{outline:0}.tiptap-editor-v3 .cm-editor .cm-gutters{background-color:rgba(0, 95, 177, 0.12);border:none}.tiptap-editor-v3 .cm-editor .cm-gutters .cm-gutterElement{padding-left:11px;padding-right:11px}.tiptap-editor-v3 .cm-editor .cm-gutters .cm-gutterElement.cm-activeLineGutter{background-color:rgba(0, 95, 177, 0.16)}";
1938
1958
  styleInject(css_248z);
1939
1959
 
1940
1960
  /* script */
@@ -2077,7 +2097,7 @@ var __vue_render__ = function () {
2077
2097
  "placement": "top-end"
2078
2098
  }
2079
2099
  }, [_c('div', {
2080
- staticClass: "flex p-sm gap-md"
2100
+ staticClass: "flex p-sm gap-md bg-on-primary"
2081
2101
  }, _vm._l(_vm.notVisibleTools, function (item) {
2082
2102
  return _c('or-icon-button', {
2083
2103
  key: item,
@@ -2101,6 +2121,7 @@ var __vue_render__ = function () {
2101
2121
  });
2102
2122
  }), 1)]) : _vm._e(), _vm._v(" "), _vm.toolbarButtonRef ? _c('or-menu', {
2103
2123
  ref: "menuRef",
2124
+ staticClass: "bg-on-primary",
2104
2125
  attrs: {
2105
2126
  "trigger": _vm.toolbarButtonRef[_vm.getIndexOfHeading].root,
2106
2127
  "placement": "bottom-start"
@@ -1,5 +1,5 @@
1
1
  import { ComponentPublicInstance, PropType } from 'vue-demi';
2
- import { Formats } from './props';
2
+ import { Formats, Tools } from './props';
3
3
  import { Editor } from '@tiptap/core';
4
4
  import { Level } from '@tiptap/extension-heading';
5
5
  declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
@@ -59,20 +59,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
59
59
  default: undefined;
60
60
  };
61
61
  toolbar: {
62
- type: {
63
- (arrayLength: number): string[][];
64
- (...items: string[][]): string[][];
65
- new (arrayLength: number): string[][];
66
- new (...items: string[][]): string[][];
67
- isArray(arg: any): arg is any[];
68
- readonly prototype: any[];
69
- from<T>(arrayLike: ArrayLike<T>): T[];
70
- from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
71
- from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
72
- from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
73
- of<T_4>(...items: T_4[]): T_4[];
74
- readonly [Symbol.species]: ArrayConstructor;
75
- };
62
+ type: PropType<Tools>;
76
63
  default: () => never[];
77
64
  };
78
65
  description: {
@@ -101,20 +88,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
101
88
  default: undefined;
102
89
  };
103
90
  toolbar: {
104
- type: {
105
- (arrayLength: number): string[][];
106
- (...items: string[][]): string[][];
107
- new (arrayLength: number): string[][];
108
- new (...items: string[][]): string[][];
109
- isArray(arg: any): arg is any[];
110
- readonly prototype: any[];
111
- from<T>(arrayLike: ArrayLike<T>): T[];
112
- from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
113
- from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
114
- from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
115
- of<T_4>(...items: T_4[]): T_4[];
116
- readonly [Symbol.species]: ArrayConstructor;
117
- };
91
+ type: PropType<Tools>;
118
92
  default: () => never[];
119
93
  };
120
94
  description: {
@@ -139,7 +113,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
139
113
  };
140
114
  }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
141
115
  modelValue: string;
142
- toolbar: string[][];
116
+ toolbar: Tools;
143
117
  description: string;
144
118
  placeholder: string;
145
119
  autofocus: boolean;
@@ -200,7 +174,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
200
174
  sourceValue: import("@vue/composition-api").Ref<string>;
201
175
  }>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
202
176
  modelValue: string;
203
- toolbar: string[][];
177
+ toolbar: Tools;
204
178
  description: string;
205
179
  placeholder: string;
206
180
  autofocus: boolean;
@@ -210,7 +184,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
210
184
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
211
185
  }, {
212
186
  modelValue: string;
213
- toolbar: string[][];
187
+ toolbar: Tools;
214
188
  description: string;
215
189
  placeholder: string;
216
190
  autofocus: boolean;
@@ -2,3 +2,4 @@ export declare enum Formats {
2
2
  Markdown = "markdown",
3
3
  Markup = "markup"
4
4
  }
5
+ export type Tools = string[][];