@qirtaas/vue 0.0.1 → 0.1.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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { QirtaasClientOptions, Json, Locale, Theme
|
|
1
|
+
import { QirtaasClientOptions, Json, Locale, Theme } from '@qirtaas/core';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
apiUrl?: string;
|
|
4
4
|
documentId?: string;
|
|
@@ -11,24 +11,24 @@ type __VLS_Props = {
|
|
|
11
11
|
autosave?: EditorMountOptions["autosave"];
|
|
12
12
|
};
|
|
13
13
|
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {
|
|
14
|
-
getJSON: () =>
|
|
15
|
-
save: () =>
|
|
16
|
-
setEditable: (editable: boolean) =>
|
|
17
|
-
setTheme: (theme: Theme) =>
|
|
14
|
+
getJSON: () => any;
|
|
15
|
+
save: () => any;
|
|
16
|
+
setEditable: (editable: boolean) => any;
|
|
17
|
+
setTheme: (theme: Theme) => any;
|
|
18
18
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
|
-
error: (code: ErrorCode, detail?: unknown) => any;
|
|
20
19
|
ready: () => any;
|
|
21
20
|
change: (json: Json) => any;
|
|
22
21
|
saveStateChange: (state: SaveState) => any;
|
|
23
22
|
documentCreated: (id: string) => any;
|
|
23
|
+
error: (code: ErrorCode, detail?: unknown) => any;
|
|
24
24
|
tokenExpired: () => any;
|
|
25
25
|
event: (name: string, props?: Record<string, unknown> | undefined) => any;
|
|
26
26
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
27
|
-
onError?: ((code: ErrorCode, detail?: unknown) => any) | undefined;
|
|
28
27
|
onReady?: (() => any) | undefined;
|
|
29
28
|
onChange?: ((json: Json) => any) | undefined;
|
|
30
29
|
onSaveStateChange?: ((state: SaveState) => any) | undefined;
|
|
31
30
|
onDocumentCreated?: ((id: string) => any) | undefined;
|
|
31
|
+
onError?: ((code: ErrorCode, detail?: unknown) => any) | undefined;
|
|
32
32
|
onTokenExpired?: (() => any) | undefined;
|
|
33
33
|
onEvent?: ((name: string, props?: Record<string, unknown> | undefined) => any) | undefined;
|
|
34
34
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RendererMountOptions, Locale, Theme
|
|
1
|
+
import { RendererMountOptions, Locale, Theme } from '@qirtaas/core';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
apiUrl?: string;
|
|
4
4
|
documentId?: string;
|
|
@@ -9,13 +9,13 @@ type __VLS_Props = {
|
|
|
9
9
|
shareToken?: string;
|
|
10
10
|
};
|
|
11
11
|
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {
|
|
12
|
-
setTheme: (theme: Theme) =>
|
|
12
|
+
setTheme: (theme: Theme) => any;
|
|
13
13
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
-
error: (code: ErrorCode, detail?: unknown) => any;
|
|
15
14
|
ready: () => any;
|
|
15
|
+
error: (code: ErrorCode, detail?: unknown) => any;
|
|
16
16
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
|
-
onError?: ((code: ErrorCode, detail?: unknown) => any) | undefined;
|
|
18
17
|
onReady?: (() => any) | undefined;
|
|
18
|
+
onError?: ((code: ErrorCode, detail?: unknown) => any) | undefined;
|
|
19
19
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
declare const _default: typeof __VLS_export;
|
|
21
21
|
export default _default;
|
package/dist/qirtaas-vue.js
CHANGED
|
@@ -65260,7 +65260,7 @@ const sq = /* @__PURE__ */ Qe({
|
|
|
65260
65260
|
apiUrl: {},
|
|
65261
65261
|
documentId: {},
|
|
65262
65262
|
initialContent: {},
|
|
65263
|
-
getToken: {
|
|
65263
|
+
getToken: {},
|
|
65264
65264
|
locale: {},
|
|
65265
65265
|
theme: {},
|
|
65266
65266
|
readOnly: { type: Boolean },
|
|
@@ -65317,8 +65317,8 @@ const sq = /* @__PURE__ */ Qe({
|
|
|
65317
65317
|
documentId: {},
|
|
65318
65318
|
locale: {},
|
|
65319
65319
|
theme: {},
|
|
65320
|
-
getSignature: {
|
|
65321
|
-
getToken: {
|
|
65320
|
+
getSignature: {},
|
|
65321
|
+
getToken: {},
|
|
65322
65322
|
shareToken: {}
|
|
65323
65323
|
},
|
|
65324
65324
|
emits: ["ready", "error"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qirtaas/vue",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "Idiomatic Vue 3 components for the Qirtaas embeddable rich-text editor.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Alrimaal",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@primeuix/themes": "^1.0.0"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@qirtaas/core": "^0.0
|
|
50
|
+
"@qirtaas/core": "^0.1.0"
|
|
51
51
|
},
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"access": "public"
|