@onereach/ui-components 2.70.0-beta.2124.0 → 2.70.0-beta.2127.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.
@@ -36721,12 +36721,13 @@ var script = defineComponent({
36721
36721
  };
36722
36722
  //Effects
36723
36723
  watch(proxyModelValue, value => {
36724
- console.log('watch', value);
36725
36724
  if (value !== (editor === null || editor === void 0 ? void 0 : editor.getHTML()) && !props.markdownFormat) {
36726
36725
  editor === null || editor === void 0 ? void 0 : editor.commands.setContent(value);
36727
36726
  }
36728
36727
  if (props.markdownFormat && value !== markdownOutput.value) {
36729
- editor === null || editor === void 0 ? void 0 : editor.commands.setContent(markdownOutput.value);
36728
+ const deserialized = deserialize(editor === null || editor === void 0 ? void 0 : editor.schema, value);
36729
+ console.log(deserialized);
36730
+ editor === null || editor === void 0 ? void 0 : editor.commands.setContent(deserialized);
36730
36731
  }
36731
36732
  });
36732
36733
  return {
@@ -36853,7 +36854,7 @@ var __vue_staticRenderFns__ = [];
36853
36854
  /* style */
36854
36855
  const __vue_inject_styles__ = function (inject) {
36855
36856
  if (!inject) return;
36856
- inject("data-v-b9a5ce74_0", {
36857
+ inject("data-v-829d96c2_0", {
36857
36858
  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
36859
  map: undefined,
36859
36860
  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-766f829b.js';
98
+ export { _ as OrRichTextEditorV3 } from '../OrRichTextEditor-b8952e7d.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-766f829b.js';
1
+ export { _ as OrRichTextEditorV3 } from '../../OrRichTextEditor-b8952e7d.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-766f829b.js';
101
+ export { _ as OrRichTextEditorV3 } from './OrRichTextEditor-b8952e7d.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';
@@ -36722,12 +36722,13 @@ var script = defineComponent({
36722
36722
  };
36723
36723
  //Effects
36724
36724
  watch(proxyModelValue, value => {
36725
- console.log('watch', value);
36726
36725
  if (value !== (editor === null || editor === void 0 ? void 0 : editor.getHTML()) && !props.markdownFormat) {
36727
36726
  editor === null || editor === void 0 ? void 0 : editor.commands.setContent(value);
36728
36727
  }
36729
36728
  if (props.markdownFormat && value !== markdownOutput.value) {
36730
- editor === null || editor === void 0 ? void 0 : editor.commands.setContent(markdownOutput.value);
36729
+ const deserialized = deserialize(editor === null || editor === void 0 ? void 0 : editor.schema, value);
36730
+ console.log(deserialized);
36731
+ editor === null || editor === void 0 ? void 0 : editor.commands.setContent(deserialized);
36731
36732
  }
36732
36733
  });
36733
36734
  return {
@@ -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-05013a39.js';
98
+ export { s as OrRichTextEditorV3 } from '../OrRichTextEditor.vue_vue_type_script_lang-570b84ee.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-05013a39.js';
1
+ export { s as OrRichTextEditorV3 } from '../../OrRichTextEditor.vue_vue_type_script_lang-570b84ee.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-05013a39.js';
127
- export { s as OrRichTextEditorV3 } from './OrRichTextEditor.vue_vue_type_script_lang-05013a39.js';
126
+ import { s as script$Q } from './OrRichTextEditor.vue_vue_type_script_lang-570b84ee.js';
127
+ export { s as OrRichTextEditorV3 } from './OrRichTextEditor.vue_vue_type_script_lang-570b84ee.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';
@@ -396,12 +396,13 @@ var script = defineComponent({
396
396
  };
397
397
  //Effects
398
398
  watch(proxyModelValue, value => {
399
- console.log('watch', value);
400
399
  if (value !== (editor === null || editor === void 0 ? void 0 : editor.getHTML()) && !props.markdownFormat) {
401
400
  editor === null || editor === void 0 ? void 0 : editor.commands.setContent(value);
402
401
  }
403
402
  if (props.markdownFormat && value !== markdownOutput.value) {
404
- editor === null || editor === void 0 ? void 0 : editor.commands.setContent(markdownOutput.value);
403
+ const deserialized = deserialize(editor === null || editor === void 0 ? void 0 : editor.schema, value);
404
+ console.log(deserialized);
405
+ editor === null || editor === void 0 ? void 0 : editor.commands.setContent(deserialized);
405
406
  }
406
407
  });
407
408
  return {
@@ -528,7 +529,7 @@ var __vue_staticRenderFns__ = [];
528
529
  /* style */
529
530
  const __vue_inject_styles__ = function (inject) {
530
531
  if (!inject) return;
531
- inject("data-v-b9a5ce74_0", {
532
+ inject("data-v-829d96c2_0", {
532
533
  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
534
  map: undefined,
534
535
  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-4510aa40.js';
98
+ export { _ as OrRichTextEditorV3 } from '../OrRichTextEditor-d65f9735.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-4510aa40.js';
1
+ export { _ as OrRichTextEditorV3 } from '../../OrRichTextEditor-d65f9735.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-4510aa40.js';
98
+ export { _ as OrRichTextEditorV3 } from './OrRichTextEditor-d65f9735.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';
@@ -396,12 +396,13 @@ var script = defineComponent({
396
396
  };
397
397
  //Effects
398
398
  watch(proxyModelValue, value => {
399
- console.log('watch', value);
400
399
  if (value !== (editor === null || editor === void 0 ? void 0 : editor.getHTML()) && !props.markdownFormat) {
401
400
  editor === null || editor === void 0 ? void 0 : editor.commands.setContent(value);
402
401
  }
403
402
  if (props.markdownFormat && value !== markdownOutput.value) {
404
- editor === null || editor === void 0 ? void 0 : editor.commands.setContent(markdownOutput.value);
403
+ const deserialized = deserialize(editor === null || editor === void 0 ? void 0 : editor.schema, value);
404
+ console.log(deserialized);
405
+ editor === null || editor === void 0 ? void 0 : editor.commands.setContent(deserialized);
405
406
  }
406
407
  });
407
408
  return {
@@ -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-eefc4567.js';
92
+ export { s as OrRichTextEditorV3 } from '../OrRichTextEditor-b9bdc0a2.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-eefc4567.js';
1
+ export { s as OrRichTextEditorV3 } from '../../OrRichTextEditor-b9bdc0a2.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-eefc4567.js';
92
+ export { s as OrRichTextEditorV3 } from './OrRichTextEditor-b9bdc0a2.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.2124.0",
3
+ "version": "2.70.0-beta.2127.0",
4
4
  "description": "Vue components library for v2/3",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/auto/index.js",
@@ -411,12 +411,13 @@ export default defineComponent({
411
411
 
412
412
  //Effects
413
413
  watch(proxyModelValue, (value) => {
414
- console.log('watch', value);
415
414
  if (value !== editor?.getHTML() && !props.markdownFormat) {
416
415
  editor?.commands.setContent(value as string);
417
416
  }
418
417
  if (props.markdownFormat && value !== markdownOutput.value) {
419
- editor?.commands.setContent(markdownOutput.value);
418
+ const deserialized = deserialize(editor?.schema, value);
419
+ console.log(deserialized);
420
+ editor?.commands.setContent(deserialized);
420
421
  }
421
422
  });
422
423