@larkup/tool-doc-editor 0.2.18 → 0.2.19
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.d.ts +5 -0
- package/dist/index.js +5 -0
- package/package.json +3 -3
- package/src/editor.ts +1 -5
- package/src/index.ts +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -16,6 +16,11 @@ export declare const TOOL_META: {
|
|
|
16
16
|
readonly name: "Document Editor";
|
|
17
17
|
readonly version: "0.1.0";
|
|
18
18
|
};
|
|
19
|
+
export declare const TOOL_EXTENSION: {
|
|
20
|
+
id: string;
|
|
21
|
+
apiVersion: string;
|
|
22
|
+
createClient: () => {};
|
|
23
|
+
};
|
|
19
24
|
export { createSession, getSession, getAllSessions, deleteSession, restoreSession, applyFieldEdits, applyContentEdits, applySignature, exportDocument, } from './editor.js';
|
|
20
25
|
export { parseDocument, parsePDF, parseDOCX, parsePPTX, parseTXT, detectDocumentType, enrichPDFWithText, } from './parsers.js';
|
|
21
26
|
export type { DocumentType, DocumentField, DocumentPage, ParsedDocument, FieldEdit, ContentEdit, EditorSession, EditResult, } from './types.js';
|
package/dist/index.js
CHANGED
|
@@ -16,6 +16,11 @@ export const TOOL_META = {
|
|
|
16
16
|
name: 'Document Editor',
|
|
17
17
|
version: '0.1.0',
|
|
18
18
|
};
|
|
19
|
+
export const TOOL_EXTENSION = {
|
|
20
|
+
id: 'doc-editor',
|
|
21
|
+
apiVersion: '1',
|
|
22
|
+
createClient: () => ({}),
|
|
23
|
+
};
|
|
19
24
|
// Public API
|
|
20
25
|
export { createSession, getSession, getAllSessions, deleteSession, restoreSession, applyFieldEdits, applyContentEdits, applySignature, exportDocument, } from './editor.js';
|
|
21
26
|
export { parseDocument, parsePDF, parseDOCX, parsePPTX, parseTXT, detectDocumentType, enrichPDFWithText, } from './parsers.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@larkup/tool-doc-editor",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.19",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"jszip": "^3.10.1",
|
|
41
41
|
"mammoth": "^1.12.0",
|
|
42
42
|
"pdf-lib": "^1.17.1",
|
|
43
|
-
"@larkup/
|
|
44
|
-
"@larkup/
|
|
43
|
+
"@larkup/sandbox": "0.1.4",
|
|
44
|
+
"@larkup/core": "0.5.2"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@larkup/marketplace": ">=0.1.0"
|
package/src/editor.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -4,12 +4,6 @@
|
|
|
4
4
|
* Document Editor / Form Filling tool for the Larkup platform.
|
|
5
5
|
* Enables AI-powered form filling and document editing in a Canvas-style UI.
|
|
6
6
|
*
|
|
7
|
-
* Supports: PDF, DOCX, PPTX, TXT
|
|
8
|
-
*
|
|
9
|
-
* Uses:
|
|
10
|
-
* - pdf-lib (MIT) for native PDF form field operations
|
|
11
|
-
* - mammoth (MIT) for DOCX reading
|
|
12
|
-
* - @larkup/sandbox for heavy editing (python-docx, python-pptx, pypdf)
|
|
13
7
|
*/
|
|
14
8
|
|
|
15
9
|
export const TOOL_META = {
|
|
@@ -18,6 +12,12 @@ export const TOOL_META = {
|
|
|
18
12
|
version: '0.1.0',
|
|
19
13
|
} as const;
|
|
20
14
|
|
|
15
|
+
export const TOOL_EXTENSION = {
|
|
16
|
+
id: 'doc-editor',
|
|
17
|
+
apiVersion: '1',
|
|
18
|
+
createClient: () => ({}),
|
|
19
|
+
};
|
|
20
|
+
|
|
21
21
|
// Public API
|
|
22
22
|
export {
|
|
23
23
|
createSession,
|