@inshapardaz/likhari-vue 0.1.3-dev.294 → 0.1.3

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.
@@ -34,12 +34,6 @@ export declare const LikhariEditor: import("vue").DefineComponent<import("vue").
34
34
  type: PropType<string | false>;
35
35
  default: undefined;
36
36
  };
37
- fontMode: PropType<"selective" | "uniform">;
38
- fontFamily: StringConstructor;
39
- zoom: {
40
- type: NumberConstructor;
41
- default: undefined;
42
- };
43
37
  featureConfig: PropType<EditorFeatureConfig>;
44
38
  }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
45
39
  [key: string]: any;
@@ -49,10 +43,6 @@ export declare const LikhariEditor: import("vue").DefineComponent<import("vue").
49
43
  content: string;
50
44
  format: FormatId;
51
45
  }) => boolean;
52
- fontChange: (payload: {
53
- fontFamily: string | undefined;
54
- zoom: number;
55
- }) => boolean;
56
46
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
57
47
  documentId: StringConstructor;
58
48
  locale: PropType<string>;
@@ -78,12 +68,6 @@ export declare const LikhariEditor: import("vue").DefineComponent<import("vue").
78
68
  type: PropType<string | false>;
79
69
  default: undefined;
80
70
  };
81
- fontMode: PropType<"selective" | "uniform">;
82
- fontFamily: StringConstructor;
83
- zoom: {
84
- type: NumberConstructor;
85
- default: undefined;
86
- };
87
71
  featureConfig: PropType<EditorFeatureConfig>;
88
72
  }>> & Readonly<{
89
73
  onChange?: ((state: unknown) => any) | undefined;
@@ -91,15 +75,10 @@ export declare const LikhariEditor: import("vue").DefineComponent<import("vue").
91
75
  content: string;
92
76
  format: FormatId;
93
77
  }) => any) | undefined;
94
- onFontChange?: ((payload: {
95
- fontFamily: string | undefined;
96
- zoom: number;
97
- }) => any) | undefined;
98
78
  }>, {
99
79
  showSave: boolean;
100
80
  autosave: boolean;
101
81
  toolbarBordered: boolean;
102
82
  helpUrl: string | false;
103
- zoom: number;
104
83
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
105
84
  //# sourceMappingURL=LikhariEditor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LikhariEditor.d.ts","sourceRoot":"","sources":["../src/LikhariEditor.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8D,KAAK,QAAQ,EAAE,MAAM,KAAK,CAAC;AAChG,OAAO,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAahE;;;;;;GAMG;AACH,eAAO,MAAM,aAAa;;YAIJ,QAAQ,CAAC,MAAM,CAAC;iBACX,QAAQ,CAAC,OAAO,GAAG,MAAM,CAAC;;;;;;;;;;;;mBAOxB,QAAQ,CAAC,SAAS,GAAG,UAAU,GAAG,MAAM,GAAG,QAAQ,CAAC;;;;;oBAEnD,QAAQ,CAAC,OAAO,GAAG,QAAQ,CAAC;;cAChB,QAAQ,CAAC,MAAM,GAAG,KAAK,CAAC;;;cAC1C,QAAQ,CAAC,WAAW,GAAG,SAAS,CAAC;;;;;;mBAG5B,QAAQ,CAAC,mBAAmB,CAAC;;;;oBAGtC,OAAO;oBACP;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,QAAQ,CAAA;KAAE;0BAC/B;QAAE,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE;;;YApBpD,QAAQ,CAAC,MAAM,CAAC;iBACX,QAAQ,CAAC,OAAO,GAAG,MAAM,CAAC;;;;;;;;;;;;mBAOxB,QAAQ,CAAC,SAAS,GAAG,UAAU,GAAG,MAAM,GAAG,QAAQ,CAAC;;;;;oBAEnD,QAAQ,CAAC,OAAO,GAAG,QAAQ,CAAC;;cAChB,QAAQ,CAAC,MAAM,GAAG,KAAK,CAAC;;;cAC1C,QAAQ,CAAC,WAAW,GAAG,SAA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
- import { defineComponent as f, ref as c, onMounted as h, onBeforeUnmount as g, watch as s, h as m } from "vue";
1
+ import { defineComponent as v, ref as c, onMounted as h, onBeforeUnmount as f, watch as s, h as g } from "vue";
2
2
  import "@inshapardaz/likhari-webcomponent";
3
- function C(e) {
3
+ function m(e) {
4
4
  return {
5
5
  "document-id": e.documentId ?? null,
6
6
  locale: e.locale ?? null,
@@ -13,13 +13,10 @@ function C(e) {
13
13
  "feature-preset": e.featurePreset ?? null,
14
14
  "toolbar-bordered": e.toolbarBordered === void 0 ? null : e.toolbarBordered ? "" : "false",
15
15
  "toolbar-variant": e.toolbarVariant ?? null,
16
- "help-url": e.helpUrl === void 0 ? null : e.helpUrl === !1 ? "false" : e.helpUrl,
17
- "font-mode": e.fontMode ?? null,
18
- "font-family": e.fontFamily ?? null,
19
- zoom: e.zoom === void 0 ? null : String(e.zoom)
16
+ "help-url": e.helpUrl === void 0 ? null : e.helpUrl === !1 ? "false" : e.helpUrl
20
17
  };
21
18
  }
22
- const y = f({
19
+ const b = v({
23
20
  name: "LikhariEditor",
24
21
  props: {
25
22
  documentId: String,
@@ -35,51 +32,47 @@ const y = f({
35
32
  toolbarBordered: { type: Boolean, default: void 0 },
36
33
  toolbarVariant: String,
37
34
  helpUrl: { type: [String, Boolean], default: void 0 },
38
- fontMode: String,
39
- fontFamily: String,
40
- zoom: { type: Number, default: void 0 },
41
35
  featureConfig: Object
42
36
  },
43
37
  emits: {
44
38
  change: (e) => e !== void 0,
45
- save: (e) => e !== void 0,
46
- fontChange: (e) => e !== void 0
39
+ save: (e) => e !== void 0
47
40
  },
48
- setup(e, { emit: l, expose: v }) {
49
- const o = c(null), r = (t) => l("change", t.detail), i = (t) => l("save", t.detail), d = (t) => l("fontChange", t.detail), u = () => {
50
- o.value && (o.value.featureConfig = e.featureConfig);
41
+ setup(e, { emit: o, expose: d }) {
42
+ const a = c(null), n = (t) => o("change", t.detail), r = (t) => o("save", t.detail), i = () => {
43
+ a.value && (a.value.featureConfig = e.featureConfig);
51
44
  };
52
45
  return h(() => {
53
- var t, n, a;
54
- (t = o.value) == null || t.addEventListener("editor-change", r), (n = o.value) == null || n.addEventListener("editor-save", i), (a = o.value) == null || a.addEventListener("editor-font-change", d), u();
55
- }), g(() => {
56
- var t, n, a;
57
- (t = o.value) == null || t.removeEventListener("editor-change", r), (n = o.value) == null || n.removeEventListener("editor-save", i), (a = o.value) == null || a.removeEventListener("editor-font-change", d);
58
- }), s(() => e.featureConfig, u, { deep: !0 }), v({
46
+ var t, l;
47
+ (t = a.value) == null || t.addEventListener("editor-change", n), (l = a.value) == null || l.addEventListener("editor-save", r), i();
48
+ }), f(() => {
49
+ var t, l;
50
+ (t = a.value) == null || t.removeEventListener("editor-change", n), (l = a.value) == null || l.removeEventListener("editor-save", r);
51
+ }), s(() => e.featureConfig, i, { deep: !0 }), d({
59
52
  getContent: (t) => {
60
- var n;
61
- return ((n = o.value) == null ? void 0 : n.getContent(t)) ?? "";
53
+ var l;
54
+ return ((l = a.value) == null ? void 0 : l.getContent(t)) ?? "";
62
55
  },
63
- setContent: (t, n) => {
64
- var a;
65
- return (a = o.value) == null ? void 0 : a.setContent(t, n);
56
+ setContent: (t, l) => {
57
+ var u;
58
+ return (u = a.value) == null ? void 0 : u.setContent(t, l);
66
59
  },
67
60
  hasUnsavedChanges: () => {
68
61
  var t;
69
- return ((t = o.value) == null ? void 0 : t.hasUnsavedChanges()) ?? !1;
62
+ return ((t = a.value) == null ? void 0 : t.hasUnsavedChanges()) ?? !1;
70
63
  },
71
64
  confirmDiscard: () => {
72
65
  var t;
73
- return ((t = o.value) == null ? void 0 : t.confirmDiscard()) ?? Promise.resolve(!0);
66
+ return ((t = a.value) == null ? void 0 : t.confirmDiscard()) ?? Promise.resolve(!0);
74
67
  },
75
68
  focus: () => {
76
69
  var t;
77
- return (t = o.value) == null ? void 0 : t.focus();
70
+ return (t = a.value) == null ? void 0 : t.focus();
78
71
  }
79
- }), () => m("likhari-editor", { ref: o, ...C(e) });
72
+ }), () => g("likhari-editor", { ref: a, ...m(e) });
80
73
  }
81
74
  });
82
75
  export {
83
- y as LikhariEditor,
84
- C as toElementAttributes
76
+ b as LikhariEditor,
77
+ m as toElementAttributes
85
78
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inshapardaz/likhari-vue",
3
- "version": "0.1.3-dev.294",
3
+ "version": "0.1.3",
4
4
  "description": "Vue 3 component for the Likhari editor, a thin wrapper over the <likhari-editor> Web Component.",
5
5
  "license": "MIT",
6
6
  "repository": {