@qirtaas/vue 0.0.1 → 0.2.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.
- package/README.md +8 -0
- package/dist/QirtaasEditor.vue.d.ts +7 -7
- package/dist/QirtaasRenderer.vue.d.ts +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/qirtaas-vue.js +2727 -2684
- package/package.json +9 -5
package/README.md
CHANGED
|
@@ -42,6 +42,14 @@ const getToken = () => fetchEmbedJwt(); // required: called on init, before expi
|
|
|
42
42
|
A read-only `QirtaasRenderer` is also exported, along with `createQirtaasClient`
|
|
43
43
|
for imperative, mount-less operations (e.g. `deleteDocument` from a list view).
|
|
44
44
|
|
|
45
|
+
## Documentation
|
|
46
|
+
|
|
47
|
+
Full docs at [docs.qirtaas.io](https://docs.qirtaas.io). For AI coding
|
|
48
|
+
assistants: the complete docs as one markdown file at
|
|
49
|
+
[docs.qirtaas.io/llms-full.txt](https://docs.qirtaas.io/llms-full.txt), and
|
|
50
|
+
ready-made integration prompts at
|
|
51
|
+
[docs.qirtaas.io/ai/build-with-ai](https://docs.qirtaas.io/ai/build-with-ai).
|
|
52
|
+
|
|
45
53
|
## License
|
|
46
54
|
|
|
47
55
|
MIT
|
|
@@ -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/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { default as QirtaasEditor } from './QirtaasEditor.vue';
|
|
2
2
|
export { default as QirtaasRenderer } from './QirtaasRenderer.vue';
|
|
3
3
|
export { createQirtaasClient } from '@qirtaas/core';
|
|
4
|
-
export type { QirtaasClient, QirtaasClientOptions, DuplicateDocumentResult, } from '@qirtaas/core';
|
|
4
|
+
export type { QirtaasClient, QirtaasClientOptions, DuplicateDocumentResult, DocumentSummary, ShareInfo, } from '@qirtaas/core';
|
|
5
5
|
export type { EditorMountOptions, RendererMountOptions, Json, Locale, Theme, SaveState, ErrorCode, AutosaveOptions, } from '@qirtaas/core';
|