@inshapardaz/likhari-vue 0.1.11 → 0.1.12-dev.354
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.
package/dist/LikhariEditor.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ export declare const LikhariEditor: import("vue").DefineComponent<import("vue").
|
|
|
30
30
|
default: undefined;
|
|
31
31
|
};
|
|
32
32
|
toolbarVariant: PropType<"light" | "filled">;
|
|
33
|
+
toolbarLayout: PropType<"classic" | "ribbon">;
|
|
33
34
|
helpUrl: {
|
|
34
35
|
type: PropType<string | false>;
|
|
35
36
|
default: undefined;
|
|
@@ -74,6 +75,7 @@ export declare const LikhariEditor: import("vue").DefineComponent<import("vue").
|
|
|
74
75
|
default: undefined;
|
|
75
76
|
};
|
|
76
77
|
toolbarVariant: PropType<"light" | "filled">;
|
|
78
|
+
toolbarLayout: PropType<"classic" | "ribbon">;
|
|
77
79
|
helpUrl: {
|
|
78
80
|
type: PropType<string | false>;
|
|
79
81
|
default: undefined;
|
|
@@ -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;;
|
|
1
|
+
{"version":3,"file":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;;;mBAG5B,QAAQ,CAAC,mBAAmB,CAAC;;;;iBAI3B,MAAM;gBAAU,QAAQ;;;oBACf,MAAM,GAAG,SAAS;cAAQ,MAAM;;;;;;;;4EAsCtE,CAAC"}
|
package/dist/likhari-vue.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as f, ref as c, onMounted as h, onBeforeUnmount as g, watch as s, h as m } from "vue";
|
|
2
2
|
import "@inshapardaz/likhari-webcomponent";
|
|
3
|
-
function
|
|
3
|
+
function S(e) {
|
|
4
4
|
return {
|
|
5
5
|
"document-id": e.documentId ?? null,
|
|
6
6
|
locale: e.locale ?? null,
|
|
@@ -13,6 +13,7 @@ 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
|
+
"toolbar-layout": e.toolbarLayout ?? null,
|
|
16
17
|
"help-url": e.helpUrl === void 0 ? null : e.helpUrl === !1 ? "false" : e.helpUrl,
|
|
17
18
|
"font-mode": e.fontMode ?? null,
|
|
18
19
|
"font-family": e.fontFamily ?? null,
|
|
@@ -34,6 +35,7 @@ const y = f({
|
|
|
34
35
|
featurePreset: String,
|
|
35
36
|
toolbarBordered: { type: Boolean, default: void 0 },
|
|
36
37
|
toolbarVariant: String,
|
|
38
|
+
toolbarLayout: String,
|
|
37
39
|
helpUrl: { type: [String, Boolean], default: void 0 },
|
|
38
40
|
fontMode: String,
|
|
39
41
|
fontFamily: String,
|
|
@@ -46,16 +48,16 @@ const y = f({
|
|
|
46
48
|
fontChange: (e) => e !== void 0
|
|
47
49
|
},
|
|
48
50
|
setup(e, { emit: l, expose: v }) {
|
|
49
|
-
const o = c(null), r = (t) => l("change", t.detail), i = (t) => l("save", t.detail),
|
|
51
|
+
const o = c(null), r = (t) => l("change", t.detail), i = (t) => l("save", t.detail), u = (t) => l("fontChange", t.detail), d = () => {
|
|
50
52
|
o.value && (o.value.featureConfig = e.featureConfig);
|
|
51
53
|
};
|
|
52
54
|
return h(() => {
|
|
53
55
|
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",
|
|
56
|
+
(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", u), d();
|
|
55
57
|
}), g(() => {
|
|
56
58
|
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",
|
|
58
|
-
}), s(() => e.featureConfig,
|
|
59
|
+
(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", u);
|
|
60
|
+
}), s(() => e.featureConfig, d, { deep: !0 }), v({
|
|
59
61
|
getContent: (t) => {
|
|
60
62
|
var n;
|
|
61
63
|
return ((n = o.value) == null ? void 0 : n.getContent(t)) ?? "";
|
|
@@ -76,10 +78,10 @@ const y = f({
|
|
|
76
78
|
var t;
|
|
77
79
|
return (t = o.value) == null ? void 0 : t.focus();
|
|
78
80
|
}
|
|
79
|
-
}), () => m("likhari-editor", { ref: o, ...
|
|
81
|
+
}), () => m("likhari-editor", { ref: o, ...S(e) });
|
|
80
82
|
}
|
|
81
83
|
});
|
|
82
84
|
export {
|
|
83
85
|
y as LikhariEditor,
|
|
84
|
-
|
|
86
|
+
S as toElementAttributes
|
|
85
87
|
};
|
package/package.json
CHANGED