@kedataindo/docflow-core 0.0.96 → 0.0.97
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/ai/index.d.cts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { b as AIAction, c as AIActionRequest, d as AICompleteRequest, e as AIConfig, f as AIDraftCitation, g as AIDraftEvent, a as AIDraftFn, h as AIProvider, A as AIStreamFn, j as Auth, B as BrowserKeyStorageOptions, k as CONTEXT_CHAR_CAP, l as ClaudeConfig, m as CslDate, n as CslItemData, o as CslName, H as HttpKeyStorageUrls, K as KeyStorage, L as LOCAL_STORAGE_KEY, O as OpenAICompatibleConfig, S as SESSION_STORAGE_KEY,
|
|
1
|
+
export { b as AIAction, c as AIActionRequest, d as AICompleteRequest, e as AIConfig, f as AIDraftCitation, g as AIDraftEvent, a as AIDraftFn, h as AIProvider, A as AIStreamFn, j as Auth, B as BrowserKeyStorageOptions, k as CONTEXT_CHAR_CAP, l as ClaudeConfig, m as CslDate, n as CslItemData, o as CslName, H as HttpKeyStorageUrls, K as KeyStorage, L as LOCAL_STORAGE_KEY, O as OpenAICompatibleConfig, S as SESSION_STORAGE_KEY, r as StreamEvent, s as buildAIPrompt, t as claudeProvider, u as httpKeyStorage, v as localStorageKeyStorage, w as memoryKeyStorage, x as openaiCompatibleProvider, y as sessionStorageKeyStorage, z as toAIStreamFn, D as trimContextAfter, E as trimContextBefore } from '../index-Br6IhSDL.cjs';
|
package/dist/ai/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { b as AIAction, c as AIActionRequest, d as AICompleteRequest, e as AIConfig, f as AIDraftCitation, g as AIDraftEvent, a as AIDraftFn, h as AIProvider, A as AIStreamFn, j as Auth, B as BrowserKeyStorageOptions, k as CONTEXT_CHAR_CAP, l as ClaudeConfig, m as CslDate, n as CslItemData, o as CslName, H as HttpKeyStorageUrls, K as KeyStorage, L as LOCAL_STORAGE_KEY, O as OpenAICompatibleConfig, S as SESSION_STORAGE_KEY,
|
|
1
|
+
export { b as AIAction, c as AIActionRequest, d as AICompleteRequest, e as AIConfig, f as AIDraftCitation, g as AIDraftEvent, a as AIDraftFn, h as AIProvider, A as AIStreamFn, j as Auth, B as BrowserKeyStorageOptions, k as CONTEXT_CHAR_CAP, l as ClaudeConfig, m as CslDate, n as CslItemData, o as CslName, H as HttpKeyStorageUrls, K as KeyStorage, L as LOCAL_STORAGE_KEY, O as OpenAICompatibleConfig, S as SESSION_STORAGE_KEY, r as StreamEvent, s as buildAIPrompt, t as claudeProvider, u as httpKeyStorage, v as localStorageKeyStorage, w as memoryKeyStorage, x as openaiCompatibleProvider, y as sessionStorageKeyStorage, z as toAIStreamFn, D as trimContextAfter, E as trimContextBefore } from '../index-Br6IhSDL.js';
|
|
@@ -156,6 +156,19 @@ interface CslItemData {
|
|
|
156
156
|
abstract?: string;
|
|
157
157
|
[k: string]: unknown;
|
|
158
158
|
}
|
|
159
|
+
/**
|
|
160
|
+
* A CSL style the citation engine can render with (issue #180). The library
|
|
161
|
+
* bundles four; a host may inject more (an institutional or Harvard/IEEE style)
|
|
162
|
+
* through `CitationPort.styles` — without modifying the library.
|
|
163
|
+
*/
|
|
164
|
+
interface CslStyleInfo {
|
|
165
|
+
id: string;
|
|
166
|
+
name: string;
|
|
167
|
+
/** 'note' styles render citations as footnotes; 'in-text' render inline. */
|
|
168
|
+
category: 'note' | 'in-text';
|
|
169
|
+
/** The CSL XML itself (the `<style>` document, as a string). */
|
|
170
|
+
xml: string;
|
|
171
|
+
}
|
|
159
172
|
/**
|
|
160
173
|
* Host-supplied citation port. The library never fetches sources itself — the
|
|
161
174
|
* host owns the reference library and injects CSL-JSON through this port,
|
|
@@ -166,6 +179,13 @@ interface CitationPort {
|
|
|
166
179
|
sources: CslItemData[] | (() => CslItemData[]);
|
|
167
180
|
/** Active CSL style id (e.g. 'chicago-notes-bibliography'). */
|
|
168
181
|
style?: string;
|
|
182
|
+
/**
|
|
183
|
+
* Extra CSL styles for this document's engine (issue #180). A style whose
|
|
184
|
+
* `id` matches a bundled one overrides it; every other id is added alongside
|
|
185
|
+
* the four defaults. Omit it and the engine behaves exactly as before — the
|
|
186
|
+
* bundled styles keep the editor offline-capable.
|
|
187
|
+
*/
|
|
188
|
+
styles?: CslStyleInfo[];
|
|
169
189
|
/**
|
|
170
190
|
* Called when the user inserts a citation: the host opens its source
|
|
171
191
|
* picker and resolves with the chosen source id (null = cancelled).
|
|
@@ -383,5 +403,5 @@ interface ClaudeConfig {
|
|
|
383
403
|
}
|
|
384
404
|
declare function claudeProvider(config: ClaudeConfig): AIProvider;
|
|
385
405
|
|
|
386
|
-
export {
|
|
387
|
-
export type { AIStreamFn as A, BrowserKeyStorageOptions as B, CitationPort as C, HttpKeyStorageUrls as H, ImageUploadHandler as I, KeyStorage as K, OpenAICompatibleConfig as O, AIDraftFn as a, AIAction as b, AIActionRequest as c, AICompleteRequest as d, AIConfig as e, AIDraftCitation as f, AIDraftEvent as g, AIProvider as h, AIProviderFactory as i, Auth as j, ClaudeConfig as l, CslDate as m, CslItemData as n, CslName as o,
|
|
406
|
+
export { trimContextAfter as D, trimContextBefore as E, LOCAL_STORAGE_KEY as L, SESSION_STORAGE_KEY as S, CONTEXT_CHAR_CAP as k, buildAIPrompt as s, claudeProvider as t, httpKeyStorage as u, localStorageKeyStorage as v, memoryKeyStorage as w, openaiCompatibleProvider as x, sessionStorageKeyStorage as y, toAIStreamFn as z };
|
|
407
|
+
export type { AIStreamFn as A, BrowserKeyStorageOptions as B, CitationPort as C, HttpKeyStorageUrls as H, ImageUploadHandler as I, KeyStorage as K, OpenAICompatibleConfig as O, AIDraftFn as a, AIAction as b, AIActionRequest as c, AICompleteRequest as d, AIConfig as e, AIDraftCitation as f, AIDraftEvent as g, AIProvider as h, AIProviderFactory as i, Auth as j, ClaudeConfig as l, CslDate as m, CslItemData as n, CslName as o, CslStyleInfo as p, ImageUploadResult as q, StreamEvent as r };
|
|
@@ -156,6 +156,19 @@ interface CslItemData {
|
|
|
156
156
|
abstract?: string;
|
|
157
157
|
[k: string]: unknown;
|
|
158
158
|
}
|
|
159
|
+
/**
|
|
160
|
+
* A CSL style the citation engine can render with (issue #180). The library
|
|
161
|
+
* bundles four; a host may inject more (an institutional or Harvard/IEEE style)
|
|
162
|
+
* through `CitationPort.styles` — without modifying the library.
|
|
163
|
+
*/
|
|
164
|
+
interface CslStyleInfo {
|
|
165
|
+
id: string;
|
|
166
|
+
name: string;
|
|
167
|
+
/** 'note' styles render citations as footnotes; 'in-text' render inline. */
|
|
168
|
+
category: 'note' | 'in-text';
|
|
169
|
+
/** The CSL XML itself (the `<style>` document, as a string). */
|
|
170
|
+
xml: string;
|
|
171
|
+
}
|
|
159
172
|
/**
|
|
160
173
|
* Host-supplied citation port. The library never fetches sources itself — the
|
|
161
174
|
* host owns the reference library and injects CSL-JSON through this port,
|
|
@@ -166,6 +179,13 @@ interface CitationPort {
|
|
|
166
179
|
sources: CslItemData[] | (() => CslItemData[]);
|
|
167
180
|
/** Active CSL style id (e.g. 'chicago-notes-bibliography'). */
|
|
168
181
|
style?: string;
|
|
182
|
+
/**
|
|
183
|
+
* Extra CSL styles for this document's engine (issue #180). A style whose
|
|
184
|
+
* `id` matches a bundled one overrides it; every other id is added alongside
|
|
185
|
+
* the four defaults. Omit it and the engine behaves exactly as before — the
|
|
186
|
+
* bundled styles keep the editor offline-capable.
|
|
187
|
+
*/
|
|
188
|
+
styles?: CslStyleInfo[];
|
|
169
189
|
/**
|
|
170
190
|
* Called when the user inserts a citation: the host opens its source
|
|
171
191
|
* picker and resolves with the chosen source id (null = cancelled).
|
|
@@ -383,5 +403,5 @@ interface ClaudeConfig {
|
|
|
383
403
|
}
|
|
384
404
|
declare function claudeProvider(config: ClaudeConfig): AIProvider;
|
|
385
405
|
|
|
386
|
-
export {
|
|
387
|
-
export type { AIStreamFn as A, BrowserKeyStorageOptions as B, CitationPort as C, HttpKeyStorageUrls as H, ImageUploadHandler as I, KeyStorage as K, OpenAICompatibleConfig as O, AIDraftFn as a, AIAction as b, AIActionRequest as c, AICompleteRequest as d, AIConfig as e, AIDraftCitation as f, AIDraftEvent as g, AIProvider as h, AIProviderFactory as i, Auth as j, ClaudeConfig as l, CslDate as m, CslItemData as n, CslName as o,
|
|
406
|
+
export { trimContextAfter as D, trimContextBefore as E, LOCAL_STORAGE_KEY as L, SESSION_STORAGE_KEY as S, CONTEXT_CHAR_CAP as k, buildAIPrompt as s, claudeProvider as t, httpKeyStorage as u, localStorageKeyStorage as v, memoryKeyStorage as w, openaiCompatibleProvider as x, sessionStorageKeyStorage as y, toAIStreamFn as z };
|
|
407
|
+
export type { AIStreamFn as A, BrowserKeyStorageOptions as B, CitationPort as C, HttpKeyStorageUrls as H, ImageUploadHandler as I, KeyStorage as K, OpenAICompatibleConfig as O, AIDraftFn as a, AIAction as b, AIActionRequest as c, AICompleteRequest as d, AIConfig as e, AIDraftCitation as f, AIDraftEvent as g, AIProvider as h, AIProviderFactory as i, Auth as j, ClaudeConfig as l, CslDate as m, CslItemData as n, CslName as o, CslStyleInfo as p, ImageUploadResult as q, StreamEvent as r };
|
package/dist/index.d.cts
CHANGED
|
@@ -4,8 +4,8 @@ import { IndexeddbPersistence } from 'y-indexeddb';
|
|
|
4
4
|
import { WebrtcProvider } from 'y-webrtc';
|
|
5
5
|
import { WebsocketProvider } from 'y-websocket';
|
|
6
6
|
import * as Y from 'yjs';
|
|
7
|
-
import { I as ImageUploadHandler, C as CitationPort, A as AIStreamFn, a as AIDraftFn } from './index-
|
|
8
|
-
export { b as AIAction, c as AIActionRequest, d as AICompleteRequest, e as AIConfig, f as AIDraftCitation, g as AIDraftEvent, h as AIProvider, i as AIProviderFactory, j as Auth, B as BrowserKeyStorageOptions, k as CONTEXT_CHAR_CAP, l as ClaudeConfig, m as CslDate, n as CslItemData, o as CslName, H as HttpKeyStorageUrls,
|
|
7
|
+
import { I as ImageUploadHandler, C as CitationPort, A as AIStreamFn, a as AIDraftFn } from './index-Br6IhSDL.cjs';
|
|
8
|
+
export { b as AIAction, c as AIActionRequest, d as AICompleteRequest, e as AIConfig, f as AIDraftCitation, g as AIDraftEvent, h as AIProvider, i as AIProviderFactory, j as Auth, B as BrowserKeyStorageOptions, k as CONTEXT_CHAR_CAP, l as ClaudeConfig, m as CslDate, n as CslItemData, o as CslName, p as CslStyleInfo, H as HttpKeyStorageUrls, q as ImageUploadResult, K as KeyStorage, L as LOCAL_STORAGE_KEY, O as OpenAICompatibleConfig, S as SESSION_STORAGE_KEY, r as StreamEvent, s as buildAIPrompt, t as claudeProvider, u as httpKeyStorage, v as localStorageKeyStorage, w as memoryKeyStorage, x as openaiCompatibleProvider, y as sessionStorageKeyStorage, z as toAIStreamFn, D as trimContextAfter, E as trimContextBefore } from './index-Br6IhSDL.cjs';
|
|
9
9
|
import { PaginationPlusOptions } from 'tiptap-pagination-plus';
|
|
10
10
|
export { PAGE_SIZES, PageSize, PaginationPlus, PaginationPlusOptions } from 'tiptap-pagination-plus';
|
|
11
11
|
import { Node } from '@tiptap/pm/model';
|
package/dist/index.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ import { IndexeddbPersistence } from 'y-indexeddb';
|
|
|
4
4
|
import { WebrtcProvider } from 'y-webrtc';
|
|
5
5
|
import { WebsocketProvider } from 'y-websocket';
|
|
6
6
|
import * as Y from 'yjs';
|
|
7
|
-
import { I as ImageUploadHandler, C as CitationPort, A as AIStreamFn, a as AIDraftFn } from './index-
|
|
8
|
-
export { b as AIAction, c as AIActionRequest, d as AICompleteRequest, e as AIConfig, f as AIDraftCitation, g as AIDraftEvent, h as AIProvider, i as AIProviderFactory, j as Auth, B as BrowserKeyStorageOptions, k as CONTEXT_CHAR_CAP, l as ClaudeConfig, m as CslDate, n as CslItemData, o as CslName, H as HttpKeyStorageUrls,
|
|
7
|
+
import { I as ImageUploadHandler, C as CitationPort, A as AIStreamFn, a as AIDraftFn } from './index-Br6IhSDL.js';
|
|
8
|
+
export { b as AIAction, c as AIActionRequest, d as AICompleteRequest, e as AIConfig, f as AIDraftCitation, g as AIDraftEvent, h as AIProvider, i as AIProviderFactory, j as Auth, B as BrowserKeyStorageOptions, k as CONTEXT_CHAR_CAP, l as ClaudeConfig, m as CslDate, n as CslItemData, o as CslName, p as CslStyleInfo, H as HttpKeyStorageUrls, q as ImageUploadResult, K as KeyStorage, L as LOCAL_STORAGE_KEY, O as OpenAICompatibleConfig, S as SESSION_STORAGE_KEY, r as StreamEvent, s as buildAIPrompt, t as claudeProvider, u as httpKeyStorage, v as localStorageKeyStorage, w as memoryKeyStorage, x as openaiCompatibleProvider, y as sessionStorageKeyStorage, z as toAIStreamFn, D as trimContextAfter, E as trimContextBefore } from './index-Br6IhSDL.js';
|
|
9
9
|
import { PaginationPlusOptions } from 'tiptap-pagination-plus';
|
|
10
10
|
export { PAGE_SIZES, PageSize, PaginationPlus, PaginationPlusOptions } from 'tiptap-pagination-plus';
|
|
11
11
|
import { Node } from '@tiptap/pm/model';
|