@onereach/ui-components 2.70.0-beta.2121.0 → 2.70.0-beta.2124.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.
@@ -6,7 +6,7 @@ import { O as OrLabel } from './OrLabel-172c4b89.js';
6
6
  import { O as OrMenuItem } from './OrMenuItem-26420908.js';
7
7
  import { O as OrMenu } from './OrMenu-fa47c888.js';
8
8
  import { u as useClassAttribute } from './useClassAttribute-9bf33346.js';
9
- import { defineComponent, ref, onMounted, onBeforeUnmount, computed } from '@vue/composition-api/dist/vue-composition-api.mjs';
9
+ import { defineComponent, ref, onMounted, onBeforeUnmount, computed, watch } from '@vue/composition-api/dist/vue-composition-api.mjs';
10
10
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
11
11
  import { c as createInjector } from './browser-82dea9ed.js';
12
12
 
@@ -36720,15 +36720,15 @@ var script = defineComponent({
36720
36720
  'gap-md', ...(isActive.value[item] ? ToolbarButtonActive : ToolbarButton)];
36721
36721
  };
36722
36722
  //Effects
36723
- // watch(proxyModelValue, (value) => {
36724
- // console.log('watch', value);
36725
- // if (value !== editor?.getHTML() && !props.markdownFormat) {
36726
- // editor?.commands.setContent(value as string);
36727
- // }
36728
- // if (props.markdownFormat && value !== markdownOutput.value) {
36729
- // editor?.commands.setContent(markdownOutput.value);
36730
- // }
36731
- // });
36723
+ watch(proxyModelValue, value => {
36724
+ console.log('watch', value);
36725
+ if (value !== (editor === null || editor === void 0 ? void 0 : editor.getHTML()) && !props.markdownFormat) {
36726
+ editor === null || editor === void 0 ? void 0 : editor.commands.setContent(value);
36727
+ }
36728
+ if (props.markdownFormat && value !== markdownOutput.value) {
36729
+ editor === null || editor === void 0 ? void 0 : editor.commands.setContent(markdownOutput.value);
36730
+ }
36731
+ });
36732
36732
  return {
36733
36733
  editor,
36734
36734
  editorRef,
@@ -36853,7 +36853,7 @@ var __vue_staticRenderFns__ = [];
36853
36853
  /* style */
36854
36854
  const __vue_inject_styles__ = function (inject) {
36855
36855
  if (!inject) return;
36856
- inject("data-v-04a216c3_0", {
36856
+ inject("data-v-b9a5ce74_0", {
36857
36857
  source: ".tiptap-editor ol{margin:0 24px;list-style:decimal}.tiptap-editor ul{margin:0 24px;list-style:initial}.tiptap-editor pre{background-color:rgba(186,209,236,.3);padding:4px 8px;margin:4px 0;width:100%;border-radius:4px}.tiptap-editor blockquote{margin:8px 24px;padding:0 24px;border-left:4px solid #bad1ec}.tiptap-editor .is-editor-empty::before{content:attr(data-placeholder);height:0;pointer-events:none;float:left}",
36858
36858
  map: undefined,
36859
36859
  media: undefined
@@ -95,7 +95,7 @@ export { p as PropsV3, a as useQueueV3, u as useToastV3 } from '../useToast-3a3d
95
95
  export { O as OrTooltip } from '../OrTooltip-dfea7af2.js';
96
96
  export { O as OrTooltipContent } from '../OrTooltipContent-f0fd5f75.js';
97
97
  export { O as OrTooltipV3 } from '../OrTooltip-fbfa05fd.js';
98
- export { _ as OrRichTextEditorV3 } from '../OrRichTextEditor-e3d6e35e.js';
98
+ export { _ as OrRichTextEditorV3 } from '../OrRichTextEditor-766f829b.js';
99
99
  import '../index-fa6eb4ca.js';
100
100
  import 'vue';
101
101
  import '@vue/composition-api/dist/vue-composition-api.mjs';
@@ -1,4 +1,4 @@
1
- export { _ as OrRichTextEditorV3 } from '../../OrRichTextEditor-e3d6e35e.js';
1
+ export { _ as OrRichTextEditorV3 } from '../../OrRichTextEditor-766f829b.js';
2
2
  import '../../index-fa6eb4ca.js';
3
3
  import 'vue';
4
4
  import '@vue/composition-api/dist/vue-composition-api.mjs';
@@ -98,7 +98,7 @@ export { _ as OrToastContainerV3, O as OrToastV3, t as TypesV3 } from './types-f
98
98
  export { O as OrTooltip } from './OrTooltip-dfea7af2.js';
99
99
  export { O as OrTooltipContent } from './OrTooltipContent-f0fd5f75.js';
100
100
  export { O as OrTooltipV3 } from './OrTooltip-fbfa05fd.js';
101
- export { _ as OrRichTextEditorV3 } from './OrRichTextEditor-e3d6e35e.js';
101
+ export { _ as OrRichTextEditorV3 } from './OrRichTextEditor-766f829b.js';
102
102
  export { D as DropdownClose, a as DropdownOpen } from './dropdown-open-e2a93aaf.js';
103
103
  export { u as useClassAttribute } from './useClassAttribute-9bf33346.js';
104
104
  export { u as useElevation } from './useElevation-aac032f4.js';
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, onMounted, onBeforeUnmount, computed } from 'vue';
1
+ import { defineComponent, ref, onMounted, onBeforeUnmount, computed, watch } from 'vue';
2
2
  import require$$8 from 'node:punycode';
3
3
  import { k as keyName, b as base } from './index.es-3f39f316.js';
4
4
  import './OrIconButton-4bd33e3c.js';
@@ -36721,15 +36721,15 @@ var script = defineComponent({
36721
36721
  'gap-md', ...(isActive.value[item] ? ToolbarButtonActive : ToolbarButton)];
36722
36722
  };
36723
36723
  //Effects
36724
- // watch(proxyModelValue, (value) => {
36725
- // console.log('watch', value);
36726
- // if (value !== editor?.getHTML() && !props.markdownFormat) {
36727
- // editor?.commands.setContent(value as string);
36728
- // }
36729
- // if (props.markdownFormat && value !== markdownOutput.value) {
36730
- // editor?.commands.setContent(markdownOutput.value);
36731
- // }
36732
- // });
36724
+ watch(proxyModelValue, value => {
36725
+ console.log('watch', value);
36726
+ if (value !== (editor === null || editor === void 0 ? void 0 : editor.getHTML()) && !props.markdownFormat) {
36727
+ editor === null || editor === void 0 ? void 0 : editor.commands.setContent(value);
36728
+ }
36729
+ if (props.markdownFormat && value !== markdownOutput.value) {
36730
+ editor === null || editor === void 0 ? void 0 : editor.commands.setContent(markdownOutput.value);
36731
+ }
36732
+ });
36733
36733
  return {
36734
36734
  editor,
36735
36735
  editorRef,
@@ -95,7 +95,7 @@ export { p as PropsV3, a as useQueueV3, u as useToastV3 } from '../useToast-4d43
95
95
  export { s as OrTooltip } from '../OrTooltip.vue_vue_type_script_lang-fa52d391.js';
96
96
  export { s as OrTooltipContent } from '../OrTooltipContent-b0dcb862.js';
97
97
  export { s as OrTooltipV3 } from '../OrTooltip.vue_vue_type_script_lang-67cc86ed.js';
98
- export { s as OrRichTextEditorV3 } from '../OrRichTextEditor.vue_vue_type_script_lang-cf90e929.js';
98
+ export { s as OrRichTextEditorV3 } from '../OrRichTextEditor.vue_vue_type_script_lang-05013a39.js';
99
99
  import 'vue';
100
100
  import 'lodash';
101
101
  import '../OrIcon-1cae8a64.js';
@@ -1,4 +1,4 @@
1
- export { s as OrRichTextEditorV3 } from '../../OrRichTextEditor.vue_vue_type_script_lang-cf90e929.js';
1
+ export { s as OrRichTextEditorV3 } from '../../OrRichTextEditor.vue_vue_type_script_lang-05013a39.js';
2
2
  import 'vue';
3
3
  import 'node:punycode';
4
4
  import '../../index.es-3f39f316.js';
@@ -123,8 +123,8 @@ import './OrToastContainer-f5525225.js';
123
123
  export { p as PropsV3, a as useQueueV3, u as useToastV3 } from './useToast-4d4329cd.js';
124
124
  export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-6c5eee23.js';
125
125
  import './OrToastContainer-afb51e5d.js';
126
- import { s as script$Q } from './OrRichTextEditor.vue_vue_type_script_lang-cf90e929.js';
127
- export { s as OrRichTextEditorV3 } from './OrRichTextEditor.vue_vue_type_script_lang-cf90e929.js';
126
+ import { s as script$Q } from './OrRichTextEditor.vue_vue_type_script_lang-05013a39.js';
127
+ export { s as OrRichTextEditorV3 } from './OrRichTextEditor.vue_vue_type_script_lang-05013a39.js';
128
128
  export { a as BUTTON_COLOR, c as BUTTON_LOADER_TYPE, b as BUTTON_SIZE, B as BUTTON_TYPE, I as ICON_BUTTON_TYPE } from './constants-c5d1139f.js';
129
129
  export { s as OrCardV3 } from './OrCard.vue_vue_type_script_lang-165de137.js';
130
130
  export { s as OrCollapse } from './OrCollapse.vue_vue_type_script_lang-65cbb754.js';
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, onMounted, onBeforeUnmount, computed } from 'vue-demi';
1
+ import { defineComponent, ref, onMounted, onBeforeUnmount, computed, watch } from 'vue-demi';
2
2
  import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
3
3
  import '@vueuse/core';
4
4
  import { defaultMarkdownSerializer, MarkdownSerializer } from 'prosemirror-markdown';
@@ -395,15 +395,15 @@ var script = defineComponent({
395
395
  'gap-md', ...(isActive.value[item] ? ToolbarButtonActive : ToolbarButton)];
396
396
  };
397
397
  //Effects
398
- // watch(proxyModelValue, (value) => {
399
- // console.log('watch', value);
400
- // if (value !== editor?.getHTML() && !props.markdownFormat) {
401
- // editor?.commands.setContent(value as string);
402
- // }
403
- // if (props.markdownFormat && value !== markdownOutput.value) {
404
- // editor?.commands.setContent(markdownOutput.value);
405
- // }
406
- // });
398
+ watch(proxyModelValue, value => {
399
+ console.log('watch', value);
400
+ if (value !== (editor === null || editor === void 0 ? void 0 : editor.getHTML()) && !props.markdownFormat) {
401
+ editor === null || editor === void 0 ? void 0 : editor.commands.setContent(value);
402
+ }
403
+ if (props.markdownFormat && value !== markdownOutput.value) {
404
+ editor === null || editor === void 0 ? void 0 : editor.commands.setContent(markdownOutput.value);
405
+ }
406
+ });
407
407
  return {
408
408
  editor,
409
409
  editorRef,
@@ -528,7 +528,7 @@ var __vue_staticRenderFns__ = [];
528
528
  /* style */
529
529
  const __vue_inject_styles__ = function (inject) {
530
530
  if (!inject) return;
531
- inject("data-v-04a216c3_0", {
531
+ inject("data-v-b9a5ce74_0", {
532
532
  source: ".tiptap-editor ol{margin:0 24px;list-style:decimal}.tiptap-editor ul{margin:0 24px;list-style:initial}.tiptap-editor pre{background-color:rgba(186,209,236,.3);padding:4px 8px;margin:4px 0;width:100%;border-radius:4px}.tiptap-editor blockquote{margin:8px 24px;padding:0 24px;border-left:4px solid #bad1ec}.tiptap-editor .is-editor-empty::before{content:attr(data-placeholder);height:0;pointer-events:none;float:left}",
533
533
  map: undefined,
534
534
  media: undefined
@@ -95,7 +95,7 @@ export { p as PropsV3, a as useQueueV3, u as useToastV3 } from '../useToast-0665
95
95
  export { _ as OrTooltip } from '../OrTooltip-614b016d.js';
96
96
  export { _ as OrTooltipContent } from '../OrTooltip.vue_rollup-plugin-vue_script-63559536.js';
97
97
  export { _ as OrTooltipV3 } from '../OrTooltip-513bee30.js';
98
- export { _ as OrRichTextEditorV3 } from '../OrRichTextEditor-c14677a3.js';
98
+ export { _ as OrRichTextEditorV3 } from '../OrRichTextEditor-4510aa40.js';
99
99
  import 'vue-demi';
100
100
  import 'lodash';
101
101
  import '../normalize-component-6e8e3d80.js';
@@ -1,4 +1,4 @@
1
- export { _ as OrRichTextEditorV3 } from '../../OrRichTextEditor-c14677a3.js';
1
+ export { _ as OrRichTextEditorV3 } from '../../OrRichTextEditor-4510aa40.js';
2
2
  import 'vue-demi';
3
3
  import '../../useClassAttribute-47fdb016.js';
4
4
  import '@vueuse/core';
@@ -95,7 +95,7 @@ export { p as PropsV3, a as useQueueV3, u as useToastV3 } from './useToast-06654
95
95
  export { _ as OrTooltip } from './OrTooltip-614b016d.js';
96
96
  export { _ as OrTooltipContent } from './OrTooltip.vue_rollup-plugin-vue_script-63559536.js';
97
97
  export { _ as OrTooltipV3 } from './OrTooltip-513bee30.js';
98
- export { _ as OrRichTextEditorV3 } from './OrRichTextEditor-c14677a3.js';
98
+ export { _ as OrRichTextEditorV3 } from './OrRichTextEditor-4510aa40.js';
99
99
  export { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.js';
100
100
  export { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
101
101
  export { u as useElevation } from './useElevation-31bfe1f6.js';
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, onMounted, onBeforeUnmount, computed } from 'vue-demi';
1
+ import { defineComponent, ref, onMounted, onBeforeUnmount, computed, watch } from 'vue-demi';
2
2
  import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
3
3
  import '@vueuse/core';
4
4
  import { defaultMarkdownSerializer, MarkdownSerializer } from 'prosemirror-markdown';
@@ -395,15 +395,15 @@ var script = defineComponent({
395
395
  'gap-md', ...(isActive.value[item] ? ToolbarButtonActive : ToolbarButton)];
396
396
  };
397
397
  //Effects
398
- // watch(proxyModelValue, (value) => {
399
- // console.log('watch', value);
400
- // if (value !== editor?.getHTML() && !props.markdownFormat) {
401
- // editor?.commands.setContent(value as string);
402
- // }
403
- // if (props.markdownFormat && value !== markdownOutput.value) {
404
- // editor?.commands.setContent(markdownOutput.value);
405
- // }
406
- // });
398
+ watch(proxyModelValue, value => {
399
+ console.log('watch', value);
400
+ if (value !== (editor === null || editor === void 0 ? void 0 : editor.getHTML()) && !props.markdownFormat) {
401
+ editor === null || editor === void 0 ? void 0 : editor.commands.setContent(value);
402
+ }
403
+ if (props.markdownFormat && value !== markdownOutput.value) {
404
+ editor === null || editor === void 0 ? void 0 : editor.commands.setContent(markdownOutput.value);
405
+ }
406
+ });
407
407
  return {
408
408
  editor,
409
409
  editorRef,
@@ -89,7 +89,7 @@ export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from '../types-
89
89
  export { p as PropsV3, a as useQueueV3, u as useToastV3 } from '../useToast-0665462d.js';
90
90
  export { s as OrTooltip, a as OrTooltipContent } from '../OrTooltip-78cd7f6b.js';
91
91
  export { s as OrTooltipV3 } from '../OrTooltip-50d27b4f.js';
92
- export { s as OrRichTextEditorV3 } from '../OrRichTextEditor-1bcc0b51.js';
92
+ export { s as OrRichTextEditorV3 } from '../OrRichTextEditor-eefc4567.js';
93
93
  import 'vue-demi';
94
94
  import 'lodash';
95
95
  import 'vue';
@@ -1,4 +1,4 @@
1
- export { s as OrRichTextEditorV3 } from '../../OrRichTextEditor-1bcc0b51.js';
1
+ export { s as OrRichTextEditorV3 } from '../../OrRichTextEditor-eefc4567.js';
2
2
  import 'vue-demi';
3
3
  import '../../useClassAttribute-47fdb016.js';
4
4
  import '@vueuse/core';
@@ -89,7 +89,7 @@ export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-8
89
89
  export { p as PropsV3, a as useQueueV3, u as useToastV3 } from './useToast-0665462d.js';
90
90
  export { s as OrTooltip, a as OrTooltipContent } from './OrTooltip-78cd7f6b.js';
91
91
  export { s as OrTooltipV3 } from './OrTooltip-50d27b4f.js';
92
- export { s as OrRichTextEditorV3 } from './OrRichTextEditor-1bcc0b51.js';
92
+ export { s as OrRichTextEditorV3 } from './OrRichTextEditor-eefc4567.js';
93
93
  export { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.js';
94
94
  export { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
95
95
  export { u as useElevation } from './useElevation-31bfe1f6.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "2.70.0-beta.2121.0",
3
+ "version": "2.70.0-beta.2124.0",
4
4
  "description": "Vue components library for v2/3",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/auto/index.js",
@@ -67,7 +67,7 @@
67
67
  </template>
68
68
 
69
69
  <script lang="ts">
70
- import { defineComponent, ref, computed, onBeforeUnmount, onMounted } from 'vue-demi';
70
+ import { defineComponent, ref, computed, onBeforeUnmount, onMounted, watch } from 'vue-demi';
71
71
  import { useClassAttribute } from '../../hooks';
72
72
  // // import { useFocusTrap, UseFocusTrapReturn } from '@vueuse/integrations/useFocusTrap';
73
73
  import { serialize, deserialize } from './utils/markdown';
@@ -410,15 +410,15 @@ export default defineComponent({
410
410
  };
411
411
 
412
412
  //Effects
413
- // watch(proxyModelValue, (value) => {
414
- // console.log('watch', value);
415
- // if (value !== editor?.getHTML() && !props.markdownFormat) {
416
- // editor?.commands.setContent(value as string);
417
- // }
418
- // if (props.markdownFormat && value !== markdownOutput.value) {
419
- // editor?.commands.setContent(markdownOutput.value);
420
- // }
421
- // });
413
+ watch(proxyModelValue, (value) => {
414
+ console.log('watch', value);
415
+ if (value !== editor?.getHTML() && !props.markdownFormat) {
416
+ editor?.commands.setContent(value as string);
417
+ }
418
+ if (props.markdownFormat && value !== markdownOutput.value) {
419
+ editor?.commands.setContent(markdownOutput.value);
420
+ }
421
+ });
422
422
 
423
423
  return {
424
424
  editor,