@kedataindo/docflow-core 0.0.69 → 0.0.70
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/index.cjs +475 -524
- package/dist/index.d.cts +63 -3
- package/dist/index.d.ts +63 -3
- package/dist/index.js +475 -524
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -6,8 +6,6 @@ import { WebsocketProvider } from 'y-websocket';
|
|
|
6
6
|
import * as Y from 'yjs';
|
|
7
7
|
import { I as ImageUploadHandler, C as CitationPort, A as AIStreamFn, a as AIDraftFn } from './index-CDULnDYX.cjs';
|
|
8
8
|
export { b as AIAction, c as AIActionRequest, d as AICompleteRequest, e as AIConfig, f as AIContextLocation, g as AIDraftCitation, h as AIDraftEvent, i as AIProvider, j as AIProviderFactory, k as AiChatRequestContext, l as Auth, m as CONTEXT_CHAR_CAP, n as CslDate, o as CslItemData, p as CslName, H as HttpKeyStorageUrls, q as ImageUploadResult, K as KeyStorage, L as LOCAL_STORAGE_KEY, O as OpenAICompatibleConfig, S as StreamEvent, r as buildAIPrompt, s as httpKeyStorage, t as localStorageKeyStorage, u as memoryKeyStorage, v as openaiCompatibleProvider, w as toAIStreamFn, x as trimContextAfter, y as trimContextBefore } from './index-CDULnDYX.cjs';
|
|
9
|
-
import { PaginationPlusOptions } from 'tiptap-pagination-plus';
|
|
10
|
-
export { PAGE_SIZES, PageSize, PaginationPlus, PaginationPlusOptions } from 'tiptap-pagination-plus';
|
|
11
9
|
import { PluginKey } from '@tiptap/pm/state';
|
|
12
10
|
import { Node } from '@tiptap/pm/model';
|
|
13
11
|
|
|
@@ -121,6 +119,68 @@ interface CollaborationSetup {
|
|
|
121
119
|
declare function createCollaboration(options: CollaborationOptions): CollaborationSetup;
|
|
122
120
|
declare function collaborationExtensions(options: CollaborationOptions | CollaborationSetup): AnyExtension[];
|
|
123
121
|
|
|
122
|
+
interface PageSize {
|
|
123
|
+
pageHeight: number;
|
|
124
|
+
pageWidth: number;
|
|
125
|
+
marginTop: number;
|
|
126
|
+
marginBottom: number;
|
|
127
|
+
marginLeft: number;
|
|
128
|
+
marginRight: number;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
interface PaginationPlusOptions {
|
|
132
|
+
enabled?: boolean;
|
|
133
|
+
pageBreakBackground?: string;
|
|
134
|
+
pageHeight?: number;
|
|
135
|
+
pageWidth?: number;
|
|
136
|
+
marginTop?: number;
|
|
137
|
+
marginBottom?: number;
|
|
138
|
+
marginLeft?: number;
|
|
139
|
+
marginRight?: number;
|
|
140
|
+
pageGap?: number;
|
|
141
|
+
contentMarginTop?: number;
|
|
142
|
+
contentMarginBottom?: number;
|
|
143
|
+
footerRight?: string;
|
|
144
|
+
footerLeft?: string;
|
|
145
|
+
headerRight?: string;
|
|
146
|
+
headerLeft?: string;
|
|
147
|
+
customHeader?: Record<number, any>;
|
|
148
|
+
customFooter?: Record<number, any>;
|
|
149
|
+
pageGapBorderSize?: number;
|
|
150
|
+
pageGapBorderColor?: string;
|
|
151
|
+
onHeaderClick?: (info: {
|
|
152
|
+
event: MouseEvent;
|
|
153
|
+
pageNumber: number;
|
|
154
|
+
}) => void;
|
|
155
|
+
onFooterClick?: (info: {
|
|
156
|
+
event: MouseEvent;
|
|
157
|
+
pageNumber: number;
|
|
158
|
+
}) => void;
|
|
159
|
+
}
|
|
160
|
+
declare const PAGE_SIZES: Record<string, PageSize>;
|
|
161
|
+
declare const PaginationPlus: Extension<PaginationPlusOptions, any>;
|
|
162
|
+
declare module '@tiptap/core' {
|
|
163
|
+
interface Commands<ReturnType> {
|
|
164
|
+
paginationPlus: {
|
|
165
|
+
updatePageBreakBackground: (color: string) => ReturnType;
|
|
166
|
+
updatePageSize: (size: PageSize) => ReturnType;
|
|
167
|
+
updatePageWidth: (width: number) => ReturnType;
|
|
168
|
+
updatePageHeight: (height: number) => ReturnType;
|
|
169
|
+
updatePageGap: (gap: number) => ReturnType;
|
|
170
|
+
updateMargins: (margins: {
|
|
171
|
+
top: number;
|
|
172
|
+
bottom: number;
|
|
173
|
+
left: number;
|
|
174
|
+
right: number;
|
|
175
|
+
}) => ReturnType;
|
|
176
|
+
enablePagination: () => ReturnType;
|
|
177
|
+
disablePagination: () => ReturnType;
|
|
178
|
+
updateHeaderContent: (left?: string, right?: string) => ReturnType;
|
|
179
|
+
updateFooterContent: (left?: string, right?: string) => ReturnType;
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
124
184
|
/**
|
|
125
185
|
* Lightweight client-side performance monitor (debug overlay).
|
|
126
186
|
*
|
|
@@ -395,4 +455,4 @@ declare class SubdocumentProvider {
|
|
|
395
455
|
destroy(): void;
|
|
396
456
|
}
|
|
397
457
|
|
|
398
|
-
export { AIDraftFn, AIStreamFn, type AwarenessState, BlockAttributesExtension, CitationPort, type ClipboardSource, type CollaborationOptions, type CollaborationSetup, type DocsEditor, type DocsEditorPlugin, EditorContextExtension, type EditorContextOptions, type EditorOptions, FontSizeExtension, ImageUploadHandler, type MonitorMetric, PerformanceMonitor, type PerformanceMonitorOptions, SearchAndReplaceExtension, type SearchMatch, type SearchState, type SlashCommand, type SubdocState, SubdocumentProvider, type SubdocumentProviderOptions, type ToolbarItem, clearSearch, collaborationExtensions, collectExtensions, createActionMap, createCollaboration, createEditor, createPerformanceMonitor, definePlugin, detectClipboardSource, findMatches, getSearchState, normalizeClipboardHTML, replaceAll, replaceCurrent, resolveAction, sanitizePastedHTML, searchAndReplaceKey, searchNext, searchPrev, setSearchQuery };
|
|
458
|
+
export { AIDraftFn, AIStreamFn, type AwarenessState, BlockAttributesExtension, CitationPort, type ClipboardSource, type CollaborationOptions, type CollaborationSetup, type DocsEditor, type DocsEditorPlugin, EditorContextExtension, type EditorContextOptions, type EditorOptions, FontSizeExtension, ImageUploadHandler, type MonitorMetric, PAGE_SIZES, type PageSize, PaginationPlus, type PaginationPlusOptions, PerformanceMonitor, type PerformanceMonitorOptions, SearchAndReplaceExtension, type SearchMatch, type SearchState, type SlashCommand, type SubdocState, SubdocumentProvider, type SubdocumentProviderOptions, type ToolbarItem, clearSearch, collaborationExtensions, collectExtensions, createActionMap, createCollaboration, createEditor, createPerformanceMonitor, definePlugin, detectClipboardSource, findMatches, getSearchState, normalizeClipboardHTML, replaceAll, replaceCurrent, resolveAction, sanitizePastedHTML, searchAndReplaceKey, searchNext, searchPrev, setSearchQuery };
|
package/dist/index.d.ts
CHANGED
|
@@ -6,8 +6,6 @@ import { WebsocketProvider } from 'y-websocket';
|
|
|
6
6
|
import * as Y from 'yjs';
|
|
7
7
|
import { I as ImageUploadHandler, C as CitationPort, A as AIStreamFn, a as AIDraftFn } from './index-CDULnDYX.js';
|
|
8
8
|
export { b as AIAction, c as AIActionRequest, d as AICompleteRequest, e as AIConfig, f as AIContextLocation, g as AIDraftCitation, h as AIDraftEvent, i as AIProvider, j as AIProviderFactory, k as AiChatRequestContext, l as Auth, m as CONTEXT_CHAR_CAP, n as CslDate, o as CslItemData, p as CslName, H as HttpKeyStorageUrls, q as ImageUploadResult, K as KeyStorage, L as LOCAL_STORAGE_KEY, O as OpenAICompatibleConfig, S as StreamEvent, r as buildAIPrompt, s as httpKeyStorage, t as localStorageKeyStorage, u as memoryKeyStorage, v as openaiCompatibleProvider, w as toAIStreamFn, x as trimContextAfter, y as trimContextBefore } from './index-CDULnDYX.js';
|
|
9
|
-
import { PaginationPlusOptions } from 'tiptap-pagination-plus';
|
|
10
|
-
export { PAGE_SIZES, PageSize, PaginationPlus, PaginationPlusOptions } from 'tiptap-pagination-plus';
|
|
11
9
|
import { PluginKey } from '@tiptap/pm/state';
|
|
12
10
|
import { Node } from '@tiptap/pm/model';
|
|
13
11
|
|
|
@@ -121,6 +119,68 @@ interface CollaborationSetup {
|
|
|
121
119
|
declare function createCollaboration(options: CollaborationOptions): CollaborationSetup;
|
|
122
120
|
declare function collaborationExtensions(options: CollaborationOptions | CollaborationSetup): AnyExtension[];
|
|
123
121
|
|
|
122
|
+
interface PageSize {
|
|
123
|
+
pageHeight: number;
|
|
124
|
+
pageWidth: number;
|
|
125
|
+
marginTop: number;
|
|
126
|
+
marginBottom: number;
|
|
127
|
+
marginLeft: number;
|
|
128
|
+
marginRight: number;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
interface PaginationPlusOptions {
|
|
132
|
+
enabled?: boolean;
|
|
133
|
+
pageBreakBackground?: string;
|
|
134
|
+
pageHeight?: number;
|
|
135
|
+
pageWidth?: number;
|
|
136
|
+
marginTop?: number;
|
|
137
|
+
marginBottom?: number;
|
|
138
|
+
marginLeft?: number;
|
|
139
|
+
marginRight?: number;
|
|
140
|
+
pageGap?: number;
|
|
141
|
+
contentMarginTop?: number;
|
|
142
|
+
contentMarginBottom?: number;
|
|
143
|
+
footerRight?: string;
|
|
144
|
+
footerLeft?: string;
|
|
145
|
+
headerRight?: string;
|
|
146
|
+
headerLeft?: string;
|
|
147
|
+
customHeader?: Record<number, any>;
|
|
148
|
+
customFooter?: Record<number, any>;
|
|
149
|
+
pageGapBorderSize?: number;
|
|
150
|
+
pageGapBorderColor?: string;
|
|
151
|
+
onHeaderClick?: (info: {
|
|
152
|
+
event: MouseEvent;
|
|
153
|
+
pageNumber: number;
|
|
154
|
+
}) => void;
|
|
155
|
+
onFooterClick?: (info: {
|
|
156
|
+
event: MouseEvent;
|
|
157
|
+
pageNumber: number;
|
|
158
|
+
}) => void;
|
|
159
|
+
}
|
|
160
|
+
declare const PAGE_SIZES: Record<string, PageSize>;
|
|
161
|
+
declare const PaginationPlus: Extension<PaginationPlusOptions, any>;
|
|
162
|
+
declare module '@tiptap/core' {
|
|
163
|
+
interface Commands<ReturnType> {
|
|
164
|
+
paginationPlus: {
|
|
165
|
+
updatePageBreakBackground: (color: string) => ReturnType;
|
|
166
|
+
updatePageSize: (size: PageSize) => ReturnType;
|
|
167
|
+
updatePageWidth: (width: number) => ReturnType;
|
|
168
|
+
updatePageHeight: (height: number) => ReturnType;
|
|
169
|
+
updatePageGap: (gap: number) => ReturnType;
|
|
170
|
+
updateMargins: (margins: {
|
|
171
|
+
top: number;
|
|
172
|
+
bottom: number;
|
|
173
|
+
left: number;
|
|
174
|
+
right: number;
|
|
175
|
+
}) => ReturnType;
|
|
176
|
+
enablePagination: () => ReturnType;
|
|
177
|
+
disablePagination: () => ReturnType;
|
|
178
|
+
updateHeaderContent: (left?: string, right?: string) => ReturnType;
|
|
179
|
+
updateFooterContent: (left?: string, right?: string) => ReturnType;
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
124
184
|
/**
|
|
125
185
|
* Lightweight client-side performance monitor (debug overlay).
|
|
126
186
|
*
|
|
@@ -395,4 +455,4 @@ declare class SubdocumentProvider {
|
|
|
395
455
|
destroy(): void;
|
|
396
456
|
}
|
|
397
457
|
|
|
398
|
-
export { AIDraftFn, AIStreamFn, type AwarenessState, BlockAttributesExtension, CitationPort, type ClipboardSource, type CollaborationOptions, type CollaborationSetup, type DocsEditor, type DocsEditorPlugin, EditorContextExtension, type EditorContextOptions, type EditorOptions, FontSizeExtension, ImageUploadHandler, type MonitorMetric, PerformanceMonitor, type PerformanceMonitorOptions, SearchAndReplaceExtension, type SearchMatch, type SearchState, type SlashCommand, type SubdocState, SubdocumentProvider, type SubdocumentProviderOptions, type ToolbarItem, clearSearch, collaborationExtensions, collectExtensions, createActionMap, createCollaboration, createEditor, createPerformanceMonitor, definePlugin, detectClipboardSource, findMatches, getSearchState, normalizeClipboardHTML, replaceAll, replaceCurrent, resolveAction, sanitizePastedHTML, searchAndReplaceKey, searchNext, searchPrev, setSearchQuery };
|
|
458
|
+
export { AIDraftFn, AIStreamFn, type AwarenessState, BlockAttributesExtension, CitationPort, type ClipboardSource, type CollaborationOptions, type CollaborationSetup, type DocsEditor, type DocsEditorPlugin, EditorContextExtension, type EditorContextOptions, type EditorOptions, FontSizeExtension, ImageUploadHandler, type MonitorMetric, PAGE_SIZES, type PageSize, PaginationPlus, type PaginationPlusOptions, PerformanceMonitor, type PerformanceMonitorOptions, SearchAndReplaceExtension, type SearchMatch, type SearchState, type SlashCommand, type SubdocState, SubdocumentProvider, type SubdocumentProviderOptions, type ToolbarItem, clearSearch, collaborationExtensions, collectExtensions, createActionMap, createCollaboration, createEditor, createPerformanceMonitor, definePlugin, detectClipboardSource, findMatches, getSearchState, normalizeClipboardHTML, replaceAll, replaceCurrent, resolveAction, sanitizePastedHTML, searchAndReplaceKey, searchNext, searchPrev, setSearchQuery };
|