@inshapardaz/likhari-vue 0.1.2 → 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.
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import '@inshapardaz/likhari-webcomponent';
|
|
3
|
+
import type { EditorFeatureConfig } from '@inshapardaz/likhari-core';
|
|
4
|
+
import type { FormatId } from '@inshapardaz/likhari-converters';
|
|
5
|
+
/**
|
|
6
|
+
* `<LikhariEditor>` for Vue. A thin wrapper over the `<likhari-editor>` Web
|
|
7
|
+
* Component: props become attributes, `featureConfig` is set as a property, and the
|
|
8
|
+
* element's `editor-change` and `editor-save` events are re-emitted as `change` and
|
|
9
|
+
* `save`. Template refs can call `getContent`, `setContent`, `hasUnsavedChanges`,
|
|
10
|
+
* `confirmDiscard` and `focus`, which are exposed below.
|
|
11
|
+
*/
|
|
12
|
+
export declare const LikhariEditor: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
13
|
+
documentId: StringConstructor;
|
|
14
|
+
locale: PropType<string>;
|
|
15
|
+
colorScheme: PropType<"light" | "dark">;
|
|
16
|
+
accentColor: StringConstructor;
|
|
17
|
+
placeholder: StringConstructor;
|
|
18
|
+
height: StringConstructor;
|
|
19
|
+
showSave: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: undefined;
|
|
22
|
+
};
|
|
23
|
+
autosave: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: undefined;
|
|
26
|
+
};
|
|
27
|
+
featurePreset: PropType<"minimal" | "standard" | "full" | "poetry">;
|
|
28
|
+
toolbarBordered: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: undefined;
|
|
31
|
+
};
|
|
32
|
+
toolbarVariant: PropType<"light" | "filled">;
|
|
33
|
+
helpUrl: {
|
|
34
|
+
type: PropType<string | false>;
|
|
35
|
+
default: undefined;
|
|
36
|
+
};
|
|
37
|
+
featureConfig: PropType<EditorFeatureConfig>;
|
|
38
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
39
|
+
[key: string]: any;
|
|
40
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
41
|
+
change: (state: unknown) => state is {} | null;
|
|
42
|
+
save: (payload: {
|
|
43
|
+
content: string;
|
|
44
|
+
format: FormatId;
|
|
45
|
+
}) => boolean;
|
|
46
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
47
|
+
documentId: StringConstructor;
|
|
48
|
+
locale: PropType<string>;
|
|
49
|
+
colorScheme: PropType<"light" | "dark">;
|
|
50
|
+
accentColor: StringConstructor;
|
|
51
|
+
placeholder: StringConstructor;
|
|
52
|
+
height: StringConstructor;
|
|
53
|
+
showSave: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
default: undefined;
|
|
56
|
+
};
|
|
57
|
+
autosave: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
default: undefined;
|
|
60
|
+
};
|
|
61
|
+
featurePreset: PropType<"minimal" | "standard" | "full" | "poetry">;
|
|
62
|
+
toolbarBordered: {
|
|
63
|
+
type: BooleanConstructor;
|
|
64
|
+
default: undefined;
|
|
65
|
+
};
|
|
66
|
+
toolbarVariant: PropType<"light" | "filled">;
|
|
67
|
+
helpUrl: {
|
|
68
|
+
type: PropType<string | false>;
|
|
69
|
+
default: undefined;
|
|
70
|
+
};
|
|
71
|
+
featureConfig: PropType<EditorFeatureConfig>;
|
|
72
|
+
}>> & Readonly<{
|
|
73
|
+
onChange?: ((state: unknown) => any) | undefined;
|
|
74
|
+
onSave?: ((payload: {
|
|
75
|
+
content: string;
|
|
76
|
+
format: FormatId;
|
|
77
|
+
}) => any) | undefined;
|
|
78
|
+
}>, {
|
|
79
|
+
showSave: boolean;
|
|
80
|
+
autosave: boolean;
|
|
81
|
+
toolbarBordered: boolean;
|
|
82
|
+
helpUrl: string | false;
|
|
83
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
84
|
+
//# sourceMappingURL=LikhariEditor.d.ts.map
|
|
@@ -0,0 +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;;;mBACrC,QAAQ,CAAC,mBAAmB,CAAC;;;;oBAGtC,OAAO;oBACP;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,QAAQ,CAAA;KAAE;;;YAhBnC,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;;;mBACrC,QAAQ,CAAC,mBAAmB,CAAC;;;;iBAI3B,MAAM;gBAAU,QAAQ;;;;;;;4EAmCrD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,YAAY,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC"}
|