@kedataindo/docflow-vue 0.0.5 → 0.0.6
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/components/BubbleMenu.vue.d.ts.map +1 -1
- package/dist/components/ColorPickerDropdown.vue.d.ts +17 -0
- package/dist/components/ColorPickerDropdown.vue.d.ts.map +1 -0
- package/dist/components/{QuickActionChips.vue.d.ts → DetailsDialog.vue.d.ts} +6 -8
- package/dist/components/DetailsDialog.vue.d.ts.map +1 -0
- package/dist/components/DocsEditor.vue.d.ts +55 -2
- package/dist/components/DocsEditor.vue.d.ts.map +1 -1
- package/dist/components/EditorToolbar.vue.d.ts.map +1 -1
- package/dist/components/EmailDialog.vue.d.ts +15 -0
- package/dist/components/EmailDialog.vue.d.ts.map +1 -0
- package/dist/components/FindReplaceDialog.vue.d.ts +12 -0
- package/dist/components/FindReplaceDialog.vue.d.ts.map +1 -0
- package/dist/components/HeaderBar.vue.d.ts +13 -5
- package/dist/components/HeaderBar.vue.d.ts.map +1 -1
- package/dist/components/LinkDialog.vue.d.ts +23 -0
- package/dist/components/LinkDialog.vue.d.ts.map +1 -0
- package/dist/components/StatusBar.vue.d.ts +2 -0
- package/dist/components/StatusBar.vue.d.ts.map +1 -1
- package/dist/components/VirtualPageOverlay.vue.d.ts +8 -0
- package/dist/components/VirtualPageOverlay.vue.d.ts.map +1 -0
- package/dist/components/sidebars/AISidebar.vue.d.ts +9 -3
- package/dist/components/sidebars/AISidebar.vue.d.ts.map +1 -1
- package/dist/components/sidebars/ReferencesSidebar.vue.d.ts +57 -0
- package/dist/components/sidebars/ReferencesSidebar.vue.d.ts.map +1 -0
- package/dist/components/sidebars/TOCSidebar.vue.d.ts.map +1 -1
- package/dist/components/sidebars/markerGrammar.d.ts +61 -0
- package/dist/components/sidebars/markerGrammar.d.ts.map +1 -0
- package/dist/composables/useClipboard.d.ts +24 -0
- package/dist/composables/useClipboard.d.ts.map +1 -0
- package/dist/composables/useEditor.d.ts.map +1 -1
- package/dist/composables/useLocale.d.ts +1 -1
- package/dist/composables/useLocale.d.ts.map +1 -1
- package/dist/composables/useVirtualPages.d.ts +77 -0
- package/dist/composables/useVirtualPages.d.ts.map +1 -0
- package/dist/index.cjs +14780 -77
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +42194 -2532
- package/dist/locales/en.d.ts +192 -7
- package/dist/locales/en.d.ts.map +1 -1
- package/dist/locales/id.d.ts +192 -7
- package/dist/locales/id.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +36 -4
- package/dist/types.d.ts.map +1 -1
- package/package.json +12 -9
- package/dist/components/QuickActionChips.vue.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BubbleMenu.vue.d.ts","sourceRoot":"","sources":["../../src/components/BubbleMenu.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BubbleMenu.vue.d.ts","sourceRoot":"","sources":["../../src/components/BubbleMenu.vue"],"names":[],"mappings":"AAwRA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAG1C,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;CACb;AAQD,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC,CAAA;IACxD,QAAQ,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAA;IACpC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACvB,CAAC;;AAwaF,wBAMG"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface ColorPickerProps {
|
|
2
|
+
isOpen: boolean;
|
|
3
|
+
activeColor?: string | null;
|
|
4
|
+
defaultColor?: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: import("vue").DefineComponent<ColorPickerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
close: () => any;
|
|
9
|
+
select: (color: string) => any;
|
|
10
|
+
reset: () => any;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<ColorPickerProps> & Readonly<{
|
|
12
|
+
onClose?: (() => any) | undefined;
|
|
13
|
+
onSelect?: ((color: string) => any) | undefined;
|
|
14
|
+
onReset?: (() => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
export default _default;
|
|
17
|
+
//# sourceMappingURL=ColorPickerDropdown.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColorPickerDropdown.vue.d.ts","sourceRoot":"","sources":["../../src/components/ColorPickerDropdown.vue"],"names":[],"mappings":"AA+HA,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,OAAO,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;;;;;;;;;;AAmSD,wBAOG"}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
+
import type { DocumentMeta } from '../types.js';
|
|
1
2
|
type __VLS_Props = {
|
|
2
|
-
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
meta?: DocumentMeta;
|
|
3
5
|
};
|
|
4
6
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
|
-
|
|
6
|
-
"meeting-notes": () => any;
|
|
7
|
-
"email-draft": () => any;
|
|
7
|
+
close: () => any;
|
|
8
8
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
-
|
|
10
|
-
"onMeeting-notes"?: (() => any) | undefined;
|
|
11
|
-
"onEmail-draft"?: (() => any) | undefined;
|
|
9
|
+
onClose?: (() => any) | undefined;
|
|
12
10
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
11
|
export default _default;
|
|
14
|
-
//# sourceMappingURL=
|
|
12
|
+
//# sourceMappingURL=DetailsDialog.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DetailsDialog.vue.d.ts","sourceRoot":"","sources":["../../src/components/DetailsDialog.vue"],"names":[],"mappings":"AA0JA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAK/C,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,OAAO,CAAA;IACf,IAAI,CAAC,EAAE,YAAY,CAAA;CACpB,CAAC;;;;;;AA4fF,wBAOG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type DocsEditor, type DocsEditorPlugin, type EditorOptions } from '@kedataindo/docflow-core';
|
|
2
|
-
import type { Collaborator, ConnectionState } from '../types.js';
|
|
1
|
+
import { type DocsEditor, type DocsEditorPlugin, type EditorOptions, type ImageUploadHandler, type CitationPort, type CslItemData, type AIStreamFn, type AIDraftFn } from '@kedataindo/docflow-core';
|
|
2
|
+
import type { Collaborator, CommentItem, ConnectionState, DocumentMeta, DocumentSnapshot } from '../types.js';
|
|
3
3
|
import { type Locale } from '../composables/useLocale.js';
|
|
4
4
|
type __VLS_Props = {
|
|
5
5
|
modelValue?: object | string;
|
|
@@ -7,6 +7,13 @@ type __VLS_Props = {
|
|
|
7
7
|
editable?: boolean;
|
|
8
8
|
collaboration?: NonNullable<EditorOptions['collaboration']>;
|
|
9
9
|
pageSize?: string;
|
|
10
|
+
pageless?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Enable virtual page overlay (experimental).
|
|
13
|
+
* When true, only visible pages are rendered in DOM instead of all pages.
|
|
14
|
+
* Uses PageLayout for measurement + viewport-based visibility tracking.
|
|
15
|
+
*/
|
|
16
|
+
virtualPages?: boolean;
|
|
10
17
|
title?: string;
|
|
11
18
|
collaborators?: Collaborator[];
|
|
12
19
|
starred?: boolean;
|
|
@@ -14,6 +21,19 @@ type __VLS_Props = {
|
|
|
14
21
|
userName?: string;
|
|
15
22
|
userAvatar?: string;
|
|
16
23
|
locale?: Locale;
|
|
24
|
+
documentMeta?: DocumentMeta;
|
|
25
|
+
shareUrl?: string;
|
|
26
|
+
onImageUpload?: ImageUploadHandler;
|
|
27
|
+
citation?: CitationPort;
|
|
28
|
+
aiStream?: AIStreamFn;
|
|
29
|
+
aiDraft?: AIDraftFn;
|
|
30
|
+
comments?: CommentItem[];
|
|
31
|
+
/** Currently-selected text snippet. */
|
|
32
|
+
selectedTextSnippet?: string;
|
|
33
|
+
/** Currently-selected start position (Phase 9 P9-4 anchor). */
|
|
34
|
+
selectedTextIndex?: number;
|
|
35
|
+
snapshots?: DocumentSnapshot[];
|
|
36
|
+
activePreviewIndex?: number | null;
|
|
17
37
|
};
|
|
18
38
|
declare var __VLS_13: {}, __VLS_15: {
|
|
19
39
|
close: () => boolean;
|
|
@@ -35,8 +55,18 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
|
|
|
35
55
|
export: (format: "markdown" | "html" | "docx" | "pdf" | "odt" | "rtf" | "html-zip" | "txt") => any;
|
|
36
56
|
"menu-click": (menu: string) => any;
|
|
37
57
|
"update:pageSize": (pageSize: string) => any;
|
|
58
|
+
"add-comment": (content: string, anchorText?: string | undefined, anchorIndex?: number | undefined) => any;
|
|
59
|
+
"add-reply": (threadId: string, content: string) => any;
|
|
60
|
+
"resolve-comment": (threadId: string) => any;
|
|
61
|
+
"save-snapshot": (name: string) => any;
|
|
62
|
+
"restore-snapshot": (versionIndex: number) => any;
|
|
63
|
+
"preview-snapshot": (snapshot: DocumentSnapshot | null) => any;
|
|
38
64
|
"update:modelValue": (value: object) => any;
|
|
65
|
+
"update:pageless": (pageless: boolean) => any;
|
|
66
|
+
"update:pageCount": (pageCount: number) => any;
|
|
39
67
|
"update:locale": (locale: Locale) => any;
|
|
68
|
+
"citation-sources-change": (sources: CslItemData[]) => any;
|
|
69
|
+
"update:citation-style": (style: string) => any;
|
|
40
70
|
ready: (docsEditor: DocsEditor) => any;
|
|
41
71
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
42
72
|
onShare?: (() => any) | undefined;
|
|
@@ -46,22 +76,45 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
|
|
|
46
76
|
onExport?: ((format: "markdown" | "html" | "docx" | "pdf" | "odt" | "rtf" | "html-zip" | "txt") => any) | undefined;
|
|
47
77
|
"onMenu-click"?: ((menu: string) => any) | undefined;
|
|
48
78
|
"onUpdate:pageSize"?: ((pageSize: string) => any) | undefined;
|
|
79
|
+
"onAdd-comment"?: ((content: string, anchorText?: string | undefined, anchorIndex?: number | undefined) => any) | undefined;
|
|
80
|
+
"onAdd-reply"?: ((threadId: string, content: string) => any) | undefined;
|
|
81
|
+
"onResolve-comment"?: ((threadId: string) => any) | undefined;
|
|
82
|
+
"onSave-snapshot"?: ((name: string) => any) | undefined;
|
|
83
|
+
"onRestore-snapshot"?: ((versionIndex: number) => any) | undefined;
|
|
84
|
+
"onPreview-snapshot"?: ((snapshot: DocumentSnapshot | null) => any) | undefined;
|
|
49
85
|
"onUpdate:modelValue"?: ((value: object) => any) | undefined;
|
|
86
|
+
"onUpdate:pageless"?: ((pageless: boolean) => any) | undefined;
|
|
87
|
+
"onUpdate:pageCount"?: ((pageCount: number) => any) | undefined;
|
|
50
88
|
"onUpdate:locale"?: ((locale: Locale) => any) | undefined;
|
|
89
|
+
"onCitation-sources-change"?: ((sources: CslItemData[]) => any) | undefined;
|
|
90
|
+
"onUpdate:citation-style"?: ((style: string) => any) | undefined;
|
|
51
91
|
onReady?: ((docsEditor: DocsEditor) => any) | undefined;
|
|
52
92
|
}>, {
|
|
53
93
|
collaboration: NonNullable<EditorOptions["collaboration"]>;
|
|
54
94
|
plugins: DocsEditorPlugin[];
|
|
55
95
|
editable: boolean;
|
|
96
|
+
onImageUpload: ImageUploadHandler;
|
|
97
|
+
citation: CitationPort;
|
|
98
|
+
aiStream: AIStreamFn;
|
|
99
|
+
aiDraft: AIDraftFn;
|
|
56
100
|
title: string;
|
|
57
101
|
collaborators: Collaborator[];
|
|
102
|
+
comments: CommentItem[];
|
|
58
103
|
pageSize: string;
|
|
104
|
+
pageless: boolean;
|
|
59
105
|
starred: boolean;
|
|
60
106
|
userName: string;
|
|
61
107
|
userAvatar: string;
|
|
62
108
|
connectionState: ConnectionState;
|
|
109
|
+
selectedTextSnippet: string;
|
|
110
|
+
selectedTextIndex: number;
|
|
111
|
+
snapshots: DocumentSnapshot[];
|
|
112
|
+
activePreviewIndex: number | null;
|
|
113
|
+
shareUrl: string;
|
|
63
114
|
modelValue: object | string;
|
|
115
|
+
virtualPages: boolean;
|
|
64
116
|
locale: Locale;
|
|
117
|
+
documentMeta: DocumentMeta;
|
|
65
118
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
66
119
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
67
120
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocsEditor.vue.d.ts","sourceRoot":"","sources":["../../src/components/DocsEditor.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DocsEditor.vue.d.ts","sourceRoot":"","sources":["../../src/components/DocsEditor.vue"],"names":[],"mappings":"AA2qEA,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,gBAAgB,EAAE,KAAK,aAAa,EAAE,KAAK,kBAAkB,EAAE,KAAK,YAAY,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,SAAS,EAAE,MAAM,gCAAgC,CAAA;AAO1M,OAAO,KAAK,EAAE,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.d.ts","sourceRoot":"","sources":["../../src/components/EditorToolbar.vue"],"names":[],"mappings":"AAw3BA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAC1C,OAAO,KAAK,EAAE,gBAAgB,EAAe,MAAM,gCAAgC,CAAA;AAuCnF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAM7C,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC,CAAA;IACxD,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAA;IAC5B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,aAAa,CAAC,EAAE,UAAU,GAAG,IAAI,CAAA;CAClC,CAAC;;;;;;;;;;;;;;AA46CF,wBAOG"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
isOpen: boolean;
|
|
3
|
+
documentTitle: string;
|
|
4
|
+
shareUrl: string;
|
|
5
|
+
defaultRecipient?: string;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
close: () => any;
|
|
9
|
+
"copy-link": () => any;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
+
onClose?: (() => any) | undefined;
|
|
12
|
+
"onCopy-link"?: (() => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
export default _default;
|
|
15
|
+
//# sourceMappingURL=EmailDialog.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmailDialog.vue.d.ts","sourceRoot":"","sources":["../../src/components/EmailDialog.vue"],"names":[],"mappings":"AAsKA,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,OAAO,CAAA;IACf,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,MAAM,CAAA;IAChB,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B,CAAC;;;;;;;;AAsZF,wBAOG"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Editor as TiptapEditor } from '@tiptap/core';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
editor: TiptapEditor | null;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
close: () => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
onClose?: (() => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
export default _default;
|
|
12
|
+
//# sourceMappingURL=FindReplaceDialog.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FindReplaceDialog.vue.d.ts","sourceRoot":"","sources":["../../src/components/FindReplaceDialog.vue"],"names":[],"mappings":"AAuMA,OAAO,KAAK,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,cAAc,CAAA;AAI1D,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,OAAO,CAAA;IACf,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;CAC5B,CAAC;;;;;;AA+VF,wBAOG"}
|
|
@@ -4,22 +4,26 @@ type __VLS_Props = {
|
|
|
4
4
|
editable?: boolean;
|
|
5
5
|
collaborators?: Collaborator[];
|
|
6
6
|
starred?: boolean;
|
|
7
|
+
pageless?: boolean;
|
|
8
|
+
outlineOpen?: boolean;
|
|
9
|
+
showRuler?: boolean;
|
|
10
|
+
focusMode?: boolean;
|
|
7
11
|
currentUserId?: string;
|
|
8
12
|
simulatorsActive?: boolean;
|
|
9
13
|
userName?: string;
|
|
10
14
|
userAvatar?: string;
|
|
11
15
|
};
|
|
12
|
-
declare var
|
|
16
|
+
declare var __VLS_21: {}, __VLS_42: {
|
|
13
17
|
close: () => boolean;
|
|
14
|
-
},
|
|
18
|
+
}, __VLS_52: {
|
|
15
19
|
close: () => boolean;
|
|
16
20
|
};
|
|
17
21
|
type __VLS_Slots = {} & {
|
|
18
|
-
actions?: (props: typeof
|
|
22
|
+
actions?: (props: typeof __VLS_21) => any;
|
|
19
23
|
} & {
|
|
20
|
-
'user-menu'?: (props: typeof
|
|
24
|
+
'user-menu'?: (props: typeof __VLS_42) => any;
|
|
21
25
|
} & {
|
|
22
|
-
'overflow-actions'?: (props: typeof
|
|
26
|
+
'overflow-actions'?: (props: typeof __VLS_52) => any;
|
|
23
27
|
};
|
|
24
28
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
29
|
share: () => any;
|
|
@@ -41,7 +45,11 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
|
|
|
41
45
|
editable: boolean;
|
|
42
46
|
title: string;
|
|
43
47
|
collaborators: Collaborator[];
|
|
48
|
+
focusMode: boolean;
|
|
49
|
+
showRuler: boolean;
|
|
50
|
+
pageless: boolean;
|
|
44
51
|
starred: boolean;
|
|
52
|
+
outlineOpen: boolean;
|
|
45
53
|
currentUserId: string;
|
|
46
54
|
simulatorsActive: boolean;
|
|
47
55
|
userName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderBar.vue.d.ts","sourceRoot":"","sources":["../../src/components/HeaderBar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HeaderBar.vue.d.ts","sourceRoot":"","sources":["../../src/components/HeaderBar.vue"],"names":[],"mappings":"AA8mBA,OAAO,KAAK,EAAE,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IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
isOpen: boolean;
|
|
3
|
+
initialText?: string;
|
|
4
|
+
initialUrl?: string;
|
|
5
|
+
isEditing?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
close: () => any;
|
|
9
|
+
apply: (payload: {
|
|
10
|
+
text: string;
|
|
11
|
+
url: string;
|
|
12
|
+
}) => any;
|
|
13
|
+
remove: () => any;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
+
onClose?: (() => any) | undefined;
|
|
16
|
+
onApply?: ((payload: {
|
|
17
|
+
text: string;
|
|
18
|
+
url: string;
|
|
19
|
+
}) => any) | undefined;
|
|
20
|
+
onRemove?: (() => any) | undefined;
|
|
21
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
export default _default;
|
|
23
|
+
//# sourceMappingURL=LinkDialog.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LinkDialog.vue.d.ts","sourceRoot":"","sources":["../../src/components/LinkDialog.vue"],"names":[],"mappings":"AAyKA,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,OAAO,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAC;;;;cAIyB,MAAM;aAAO,MAAM;;;;;;cAAnB,MAAM;aAAO,MAAM;;;;AAiV9C,wBAOG"}
|
|
@@ -10,6 +10,7 @@ type __VLS_Props = {
|
|
|
10
10
|
currentPage?: number;
|
|
11
11
|
pageSize?: string;
|
|
12
12
|
pageSizes?: PageSize[];
|
|
13
|
+
pageless?: boolean;
|
|
13
14
|
};
|
|
14
15
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
16
|
"update:pageSize": (pageSize: string) => any;
|
|
@@ -18,6 +19,7 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
18
19
|
}>, {
|
|
19
20
|
wordCount: number;
|
|
20
21
|
pageSize: string;
|
|
22
|
+
pageless: boolean;
|
|
21
23
|
connectionState: ConnectionState;
|
|
22
24
|
savingStatus: SavingStatus;
|
|
23
25
|
lastSaved: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusBar.vue.d.ts","sourceRoot":"","sources":["../../src/components/StatusBar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StatusBar.vue.d.ts","sourceRoot":"","sources":["../../src/components/StatusBar.vue"],"names":[],"mappings":"AAsIA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CAAA;AACvE,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAKhE,KAAK,WAAW,GAAG;IACf,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAA;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;;;;;;eAPY,MAAM;cAIP,MAAM;cAEN,OAAO;qBATA,eAAe;kBAClB,YAAY;eACf,MAAM;eAEN,MAAM;eACN,MAAM;iBACJ,MAAM;eAER,QAAQ,EAAE;;AA6W1B,wBAQG"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PageOverlayData } from '@kedataindo/docflow-layout-engine';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
data: PageOverlayData;
|
|
4
|
+
isReady: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
export default _default;
|
|
8
|
+
//# sourceMappingURL=VirtualPageOverlay.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VirtualPageOverlay.vue.d.ts","sourceRoot":"","sources":["../../src/components/VirtualPageOverlay.vue"],"names":[],"mappings":"AAqIA,OAAO,KAAK,EAAe,eAAe,EAAE,MAAM,yCAAyC,CAAA;AAE3F,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,eAAe,CAAA;IACrB,OAAO,EAAE,OAAO,CAAA;CACjB,CAAC;;AAsIF,wBAMG"}
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
+
import type { Editor } from '@tiptap/core';
|
|
2
|
+
import type { AIStreamFn, AIDraftFn } from '@kedataindo/docflow-core';
|
|
1
3
|
type __VLS_Props = {
|
|
2
|
-
|
|
4
|
+
editor?: Editor | null;
|
|
5
|
+
/** Host-injected transport (apps/web). Falls back to the editorContext port. */
|
|
6
|
+
aiStream?: AIStreamFn;
|
|
7
|
+
/** 7E-4: host-injected draft transport (yielding `AIDraftEvent`s). */
|
|
8
|
+
aiDraft?: AIDraftFn;
|
|
3
9
|
};
|
|
4
10
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
|
-
|
|
11
|
+
close: () => any;
|
|
6
12
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
7
|
-
|
|
13
|
+
onClose?: (() => any) | undefined;
|
|
8
14
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
15
|
export default _default;
|
|
10
16
|
//# sourceMappingURL=AISidebar.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AISidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/sidebars/AISidebar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AISidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/sidebars/AISidebar.vue"],"names":[],"mappings":"AAgiBA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAE1C,OAAO,KAAK,EAAmB,UAAU,EAAiC,SAAS,EAAE,MAAM,gCAAgC,CAAA;AAiC3H,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,gFAAgF;IAChF,QAAQ,CAAC,EAAE,UAAU,CAAA;IACrB,sEAAsE;IACtE,OAAO,CAAC,EAAE,SAAS,CAAA;CACpB,CAAC;;;;;;AAs5BF,wBAOG"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { CslItemData } from '@kedataindo/docflow-core';
|
|
2
|
+
/**
|
|
3
|
+
* Reference manager — a backend-agnostic UI shell (Phase 6B-3). It owns no
|
|
4
|
+
* data and no editor access: sources + the active style come in as props,
|
|
5
|
+
* every mutation goes out as an event. Hosts (apps/web with the REST API,
|
|
6
|
+
* apps/demo in-memory) wire the events to their persistence.
|
|
7
|
+
*/
|
|
8
|
+
export interface ReferenceStyleOption {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
}
|
|
12
|
+
type __VLS_Props = {
|
|
13
|
+
sources: CslItemData[];
|
|
14
|
+
activeStyle: string;
|
|
15
|
+
/** Highlight the "Cite" action — used while an insert-citation request is pending. */
|
|
16
|
+
pickerMode?: boolean;
|
|
17
|
+
availableStyles?: ReferenceStyleOption[];
|
|
18
|
+
/** Show the import section (host implements the import ports, Phase 6C). */
|
|
19
|
+
canImport?: boolean;
|
|
20
|
+
/** An import is in flight — disable the import actions. */
|
|
21
|
+
importing?: boolean;
|
|
22
|
+
/** Host-provided import result message (success or error). */
|
|
23
|
+
importMessage?: string;
|
|
24
|
+
};
|
|
25
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
26
|
+
close: () => any;
|
|
27
|
+
insert: (sourceId: string) => any;
|
|
28
|
+
update: (source: CslItemData) => any;
|
|
29
|
+
remove: (id: string) => any;
|
|
30
|
+
create: (source: CslItemData) => any;
|
|
31
|
+
"update:style": (styleId: string) => any;
|
|
32
|
+
"import-doi": (doi: string) => any;
|
|
33
|
+
"import-bibliography": (payload: {
|
|
34
|
+
format: "bibtex" | "ris";
|
|
35
|
+
text: string;
|
|
36
|
+
}) => any;
|
|
37
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
38
|
+
onClose?: (() => any) | undefined;
|
|
39
|
+
onInsert?: ((sourceId: string) => any) | undefined;
|
|
40
|
+
onUpdate?: ((source: CslItemData) => any) | undefined;
|
|
41
|
+
onRemove?: ((id: string) => any) | undefined;
|
|
42
|
+
onCreate?: ((source: CslItemData) => any) | undefined;
|
|
43
|
+
"onUpdate:style"?: ((styleId: string) => any) | undefined;
|
|
44
|
+
"onImport-doi"?: ((doi: string) => any) | undefined;
|
|
45
|
+
"onImport-bibliography"?: ((payload: {
|
|
46
|
+
format: "bibtex" | "ris";
|
|
47
|
+
text: string;
|
|
48
|
+
}) => any) | undefined;
|
|
49
|
+
}>, {
|
|
50
|
+
importing: boolean;
|
|
51
|
+
pickerMode: boolean;
|
|
52
|
+
availableStyles: ReferenceStyleOption[];
|
|
53
|
+
canImport: boolean;
|
|
54
|
+
importMessage: string;
|
|
55
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
56
|
+
export default _default;
|
|
57
|
+
//# sourceMappingURL=ReferencesSidebar.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReferencesSidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/sidebars/ReferencesSidebar.vue"],"names":[],"mappings":"AA8qBA,OAAO,KAAK,EAAE,WAAW,EAAW,MAAM,gCAAgC,CAAA;AAG1E;;;;;GAKG;AAEH,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;CACb;AAED,KAAK,WAAW,GAAG;IACf,OAAO,EAAE,WAAW,EAAE,CAAA;IACtB,WAAW,EAAE,MAAM,CAAA;IACnB,sFAAsF;IACtF,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,eAAe,CAAC,EAAE,oBAAoB,EAAE,CAAA;IACxC,4EAA4E;IAC5E,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,2DAA2D;IAC3D,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,8DAA8D;IAC9D,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAC;;;;;;;;;;gBAyByC,QAAQ,GAAG,KAAK;cAAQ,MAAM;;;;;;;;;;;gBAA9B,QAAQ,GAAG,KAAK;cAAQ,MAAM;;;eA5B3D,OAAO;gBALN,OAAO;qBACF,oBAAoB,EAAE;eAE5B,OAAO;mBAIH,MAAM;;AAonD1B,wBAQG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TOCSidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/sidebars/TOCSidebar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TOCSidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/sidebars/TOCSidebar.vue"],"names":[],"mappings":"AAwSA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAmB1C,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACvB,CAAC;;;;;;AA2qBF,wBAOG"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Marker grammar for the cited-draft insert path (Phase 7E-4).
|
|
3
|
+
*
|
|
4
|
+
* PURE — no Vue, no ProseMirror, no editor/DOM mutation. Lives apart from
|
|
5
|
+
* `AISidebar.vue` so the §4 7E-4 acceptance tests can drive the grammar
|
|
6
|
+
* directly (basic, adjacent, unresolved-stripped, `[[1]]`-inner, `[^1]`
|
|
7
|
+
* literal) without mounting the component.
|
|
8
|
+
*
|
|
9
|
+
* Pinned grammar (plan §4 7E-4 final, bug-hunter-reviewed): match
|
|
10
|
+
* `/\[(\d{1,3})\]/g` over the streamed DRAFT text; for each captured `n`:
|
|
11
|
+
* - if `tableByRef.has(n)` → push the preceding text span, then push the
|
|
12
|
+
* citation node spec from `buildCitationNodes(engine, { sourceId })`
|
|
13
|
+
* (NO locator for MVP — the model doesn't emit locators; the existing
|
|
14
|
+
* Phase 6 `insertCitation` paths still let a user add locators later);
|
|
15
|
+
* - if NOT in table → STRIP the marker (drop the surrounding text but keep
|
|
16
|
+
* the marker-substring deleted — never left as a literal `[9]`).
|
|
17
|
+
*
|
|
18
|
+
* Edge cases:
|
|
19
|
+
* - `[[1]]` → regex matches the INNER `[1]` (one node; the outer brackets
|
|
20
|
+
* become surrounding literal text — `[` before, `]` after).
|
|
21
|
+
* - `[1-3]` → left literal (`1-3` is not a `\d{1,3}` capture).
|
|
22
|
+
* - `[^1]` → left literal (`[^` not `[\[`).
|
|
23
|
+
* - adjacent `[1][2]` → TWO nodes, no range expansion.
|
|
24
|
+
* - no markers in text → a single trailing text span.
|
|
25
|
+
*
|
|
26
|
+
* Returns a ProseMirror `insertContent`-compatible array: a mix of plain
|
|
27
|
+
* strings (text spans) and node specs `{ type: 'citation'|'footnote',
|
|
28
|
+
* attrs: {...} }`. ProseMirror's `tr.insertContent` accepts this mixed
|
|
29
|
+
* shape exactly as `editor.commands.insertContent` does (the existing
|
|
30
|
+
* `insertCitationWithSource` already passes single-element arrays of
|
|
31
|
+
* `{type:'citation', attrs}` through `insertContent`).
|
|
32
|
+
*/
|
|
33
|
+
import { buildCitationNodes, type CiteEngine } from '@kedataindo/docflow-plugins';
|
|
34
|
+
import type { AIDraftCitation } from '@kedataindo/docflow-core';
|
|
35
|
+
/** The minimal CiteEngine surface used by `buildCitationNodes`. Kept as a
|
|
36
|
+
* structural type so unit tests can pass a stub without instantiating the
|
|
37
|
+
* real `CiteEngine` (which pulls citeproc) — cast `as unknown as CiteEngine`
|
|
38
|
+
* at the call site. The sidebar passes the live engine from
|
|
39
|
+
* `getCitationEngine(editor)`. */
|
|
40
|
+
export interface CiteEngineLike {
|
|
41
|
+
isNoteStyle(): boolean;
|
|
42
|
+
}
|
|
43
|
+
/** The node spec returned by `buildCitationNodes`. */
|
|
44
|
+
export type CitationNodeSpec = ReturnType<typeof buildCitationNodes>;
|
|
45
|
+
export type ContentPart = string | CitationNodeSpec;
|
|
46
|
+
/**
|
|
47
|
+
* Strip every `[n]` marker (resolved OR unresolved) from the text. Used by
|
|
48
|
+
* the no-engine fallback in `AISidebar.handleInsert` so a draft with markers
|
|
49
|
+
* but no citation engine still inserts clean text (no leak, no literal `[9]`).
|
|
50
|
+
*/
|
|
51
|
+
export declare function stripMarkers(text: string): string;
|
|
52
|
+
/**
|
|
53
|
+
* Build a `content` array for `view.dispatch(state.tr.insertContent(array))`.
|
|
54
|
+
* Walks `text` once over `MARKER_RE`, splitting on resolved markers into
|
|
55
|
+
* `[textSpan, citationNode, textSpan, …]`. Unresolved markers are stripped
|
|
56
|
+
* (their substring is deleted, not left literal). The engine drives the
|
|
57
|
+
* note-vs-inline node construction via the shared `buildCitationNodes` helper
|
|
58
|
+
* (single source of truth — the sidebar does NOT duplicate the branching).
|
|
59
|
+
*/
|
|
60
|
+
export declare function buildContentArray(text: string, tableByRef: Map<number, AIDraftCitation>, engine: CiteEngine): ContentPart[];
|
|
61
|
+
//# sourceMappingURL=markerGrammar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markerGrammar.d.ts","sourceRoot":"","sources":["../../../src/components/sidebars/markerGrammar.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,OAAO,EAAE,kBAAkB,EAAE,KAAK,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACvF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAErE;;;;mCAImC;AACnC,MAAM,WAAW,cAAc;IAC7B,WAAW,IAAI,OAAO,CAAA;CACvB;AAED,sDAAsD;AACtD,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAEpE,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,gBAAgB,CAAA;AAInD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEjD;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,eAAe,CAAC,EACxC,MAAM,EAAE,UAAU,GACjB,WAAW,EAAE,CA6Bf"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Clipboard helpers for the Edit menu. Modern Clipboard API first, with a
|
|
3
|
+
* `document.execCommand` fallback for older browsers / non-secure contexts.
|
|
4
|
+
* Every function degrades gracefully (false / null) instead of throwing —
|
|
5
|
+
* clipboard access is permission-gated and can be denied by the user.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Write text (and optionally rich HTML) to the clipboard.
|
|
9
|
+
* Rich write uses ClipboardItem; otherwise plain text via writeText or the
|
|
10
|
+
* legacy execCommand path.
|
|
11
|
+
*/
|
|
12
|
+
export declare function writeClipboard(text: string, html?: string): Promise<boolean>;
|
|
13
|
+
/**
|
|
14
|
+
* Read rich HTML from the clipboard; falls back to plain text if no HTML type
|
|
15
|
+
* is present. Returns null when the API is unavailable or permission denied.
|
|
16
|
+
*/
|
|
17
|
+
export declare function readClipboardHtml(): Promise<string | null>;
|
|
18
|
+
/**
|
|
19
|
+
* Read plain text from the clipboard. Returns null when the API is unavailable
|
|
20
|
+
* or permission denied. (There is no working execCommand('paste') fallback —
|
|
21
|
+
* programmatic paste is restricted in all modern browsers.)
|
|
22
|
+
*/
|
|
23
|
+
export declare function readClipboardText(): Promise<string | null>;
|
|
24
|
+
//# sourceMappingURL=useClipboard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useClipboard.d.ts","sourceRoot":"","sources":["../../src/composables/useClipboard.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;GAIG;AACH,wBAAsB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAiClF;AAED;;;GAGG;AACH,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAoBhE;AAED;;;;GAIG;AACH,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAOhE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEditor.d.ts","sourceRoot":"","sources":["../../src/composables/useEditor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,UAAU,EAAE,KAAK,aAAa,EAAE,MAAM,gCAAgC,CAAA;AAClG,OAAO,EAA4D,KAAK,WAAW,EAAE,KAAK,GAAG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GAAG,CAAA;IAEnB,iBAAiB,CAAC,EAAE,GAAG,CAAA;CACxB;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,GAAG,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;IACrC,UAAU,EAAE,UAAU,CAAC,UAAU,GAAG,IAAI,CAAC,CAAA;IACzC,MAAM,EAAE,WAAW,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAA;IAChD,aAAa,EAAE,WAAW,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC,CAAA;IACvD,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;CACtB;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,gBAAgB,GAAG,eAAe,CAgFpE"}
|
|
@@ -4,7 +4,7 @@ export type { Locale };
|
|
|
4
4
|
export interface LocaleContext {
|
|
5
5
|
locale: Ref<Locale>;
|
|
6
6
|
setLocale: (locale: Locale) => void;
|
|
7
|
-
t: (key: string) => string;
|
|
7
|
+
t: (key: string, params?: Record<string, string | number>) => string;
|
|
8
8
|
}
|
|
9
9
|
export declare function createLocaleContext(preferred?: Locale): LocaleContext;
|
|
10
10
|
export declare function useLocale(): LocaleContext;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLocale.d.ts","sourceRoot":"","sources":["../../src/composables/useLocale.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2C,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AACvE,OAAO,EAAE,KAAK,MAAM,EAA2D,MAAM,qBAAqB,CAAA;AAE1G,YAAY,EAAE,MAAM,EAAE,CAAA;AAEtB,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACnB,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"useLocale.d.ts","sourceRoot":"","sources":["../../src/composables/useLocale.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2C,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AACvE,OAAO,EAAE,KAAK,MAAM,EAA2D,MAAM,qBAAqB,CAAA;AAE1G,YAAY,EAAE,MAAM,EAAE,CAAA;AAEtB,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACnB,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,MAAM,CAAA;CACrE;AA6BD,wBAAgB,mBAAmB,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,aAAa,CA2BrE;AAED,wBAAgB,SAAS,IAAI,aAAa,CAOzC;AAED,wBAAgB,aAAa,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,aAAa,CAI/D;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEpD;AAED,wBAAgB,mBAAmB,IAAI,MAAM,EAAE,CAE9C"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
import { type PageOverlayConfig, type PageOverlayData } from '@kedataindo/docflow-layout-engine';
|
|
3
|
+
export interface UseVirtualPagesOptions {
|
|
4
|
+
editorRef: Ref<{
|
|
5
|
+
view: {
|
|
6
|
+
dom: HTMLElement;
|
|
7
|
+
};
|
|
8
|
+
} | null>;
|
|
9
|
+
scrollRef: Ref<HTMLElement | null>;
|
|
10
|
+
config: PageOverlayConfig;
|
|
11
|
+
bufferPages?: number;
|
|
12
|
+
}
|
|
13
|
+
export declare function useVirtualPages(options: UseVirtualPagesOptions): {
|
|
14
|
+
data: Ref<{
|
|
15
|
+
totalPages: number;
|
|
16
|
+
visiblePages: {
|
|
17
|
+
index: number;
|
|
18
|
+
top: number;
|
|
19
|
+
height: number;
|
|
20
|
+
}[];
|
|
21
|
+
config: {
|
|
22
|
+
pageSize: (string & import("@kedataindo/docflow-layout-engine").PageSize) | {
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
pageWidth: number;
|
|
26
|
+
pageHeight: number;
|
|
27
|
+
};
|
|
28
|
+
margins: {
|
|
29
|
+
top: number;
|
|
30
|
+
bottom: number;
|
|
31
|
+
left: number;
|
|
32
|
+
right: number;
|
|
33
|
+
};
|
|
34
|
+
pageGap: number;
|
|
35
|
+
headerLeft: string;
|
|
36
|
+
headerRight: string;
|
|
37
|
+
footerLeft: string;
|
|
38
|
+
footerRight: string;
|
|
39
|
+
};
|
|
40
|
+
}, PageOverlayData | {
|
|
41
|
+
totalPages: number;
|
|
42
|
+
visiblePages: {
|
|
43
|
+
index: number;
|
|
44
|
+
top: number;
|
|
45
|
+
height: number;
|
|
46
|
+
}[];
|
|
47
|
+
config: {
|
|
48
|
+
pageSize: (string & import("@kedataindo/docflow-layout-engine").PageSize) | {
|
|
49
|
+
id: string;
|
|
50
|
+
name: string;
|
|
51
|
+
pageWidth: number;
|
|
52
|
+
pageHeight: number;
|
|
53
|
+
};
|
|
54
|
+
margins: {
|
|
55
|
+
top: number;
|
|
56
|
+
bottom: number;
|
|
57
|
+
left: number;
|
|
58
|
+
right: number;
|
|
59
|
+
};
|
|
60
|
+
pageGap: number;
|
|
61
|
+
headerLeft: string;
|
|
62
|
+
headerRight: string;
|
|
63
|
+
footerLeft: string;
|
|
64
|
+
footerRight: string;
|
|
65
|
+
};
|
|
66
|
+
}>;
|
|
67
|
+
totalPages: import("vue").ComputedRef<number>;
|
|
68
|
+
visiblePages: import("vue").ComputedRef<{
|
|
69
|
+
index: number;
|
|
70
|
+
top: number;
|
|
71
|
+
height: number;
|
|
72
|
+
}[]>;
|
|
73
|
+
isReady: Ref<boolean, boolean>;
|
|
74
|
+
refreshData: () => void;
|
|
75
|
+
updateConfig: (config: Partial<PageOverlayConfig>) => Promise<void>;
|
|
76
|
+
};
|
|
77
|
+
//# sourceMappingURL=useVirtualPages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useVirtualPages.d.ts","sourceRoot":"","sources":["../../src/composables/useVirtualPages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgD,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AAC5E,OAAO,EAAsB,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAE,MAAM,yCAAyC,CAAA;AAE1H,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,GAAG,CAAC;QAAE,IAAI,EAAE;YAAE,GAAG,EAAE,WAAW,CAAA;SAAE,CAAA;KAAE,GAAG,IAAI,CAAC,CAAA;IACrD,SAAS,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;IAClC,MAAM,EAAE,iBAAiB,CAAA;IACzB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA6BzB,OAAO,CAAC,iBAAiB,CAAC;EA2C/D"}
|