vuewrite 0.0.13 → 0.0.14

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.
@@ -251,6 +251,7 @@ type?: string;
251
251
  decorator?: Decorator | undefined;
252
252
  parser?: TextParser | undefined;
253
253
  styles?: Style[] | undefined;
254
+ preventMultiline?: boolean | undefined;
254
255
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_2<{
255
256
  modelValue: {
256
257
  text: string;
@@ -260,6 +261,7 @@ type?: string;
260
261
  decorator?: Decorator | undefined;
261
262
  parser?: TextParser | undefined;
262
263
  styles?: Style[] | undefined;
264
+ preventMultiline?: boolean | undefined;
263
265
  }>>>, {}, {}>;
264
266
 
265
267
  declare type TextParser = (text: string) => Style[];
package/dist/vuewrite.js CHANGED
@@ -535,6 +535,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
535
535
  props: {
536
536
  block: {},
537
537
  slots: {},
538
+ static: { type: Boolean },
538
539
  decorator: { type: Function },
539
540
  parser: {}
540
541
  },
@@ -590,6 +591,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
590
591
  const cacheNodes = [];
591
592
  let cacheEl = null;
592
593
  const cleanTree = (count) => {
594
+ if (props.static === true)
595
+ return;
593
596
  const el = getRef();
594
597
  if (!el)
595
598
  return;
@@ -930,7 +933,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
930
933
  modelValue: {},
931
934
  decorator: { type: Function },
932
935
  parser: {},
933
- styles: {}
936
+ styles: {},
937
+ preventMultiline: { type: Boolean }
934
938
  },
935
939
  setup(__props) {
936
940
  const props = __props;
@@ -949,7 +953,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
949
953
  block,
950
954
  slots: unref(slots),
951
955
  decorator: props.decorator,
952
- parser: props.parser
956
+ parser: props.parser,
957
+ static: ""
953
958
  }, null, 8, ["block", "slots", "decorator", "parser"]);
954
959
  }), 128))
955
960
  ]);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "vuewrite",
3
3
  "description": "Rich Text Editor based on Vue3 reactivity",
4
4
  "private": false,
5
- "version": "0.0.13",
5
+ "version": "0.0.14",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "author": "den59k",