@agent-factory-platform/docs-react 0.3.0 → 0.5.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 +29 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +323 -289
- package/dist/rich-document.d.ts +7 -1
- package/package.json +3 -3
package/dist/rich-document.d.ts
CHANGED
|
@@ -44,6 +44,10 @@ type RichDocumentBaseProps = {
|
|
|
44
44
|
assetId: string;
|
|
45
45
|
url: string;
|
|
46
46
|
}>;
|
|
47
|
+
resolveImage?: (assetId: string) => Promise<{
|
|
48
|
+
url: string;
|
|
49
|
+
expiresAt?: string | number | Date;
|
|
50
|
+
}>;
|
|
47
51
|
labels?: RichDocumentLabels;
|
|
48
52
|
};
|
|
49
53
|
export type RichDocumentProps = RichDocumentBaseProps & ({
|
|
@@ -84,10 +88,12 @@ export declare function documentAssistantConflict(editor: Editor, identity: {
|
|
|
84
88
|
baseRevision: string;
|
|
85
89
|
}, operation: DocumentAssistantOperation): DocumentAssistantConflict | undefined;
|
|
86
90
|
export declare const emptyRichDocument: () => RichDocumentContent;
|
|
91
|
+
/** Remove ephemeral image projections before a document crosses a durable boundary. */
|
|
92
|
+
export declare function durableRichDocumentContent(doc: JSONContent): RichDocumentContent;
|
|
87
93
|
export declare function parseRichDocument(value: string): RichDocumentContent;
|
|
88
94
|
export declare const selectionInsideTable: (editor: Editor) => boolean;
|
|
89
95
|
export declare const replaceDocumentContent: (editor: Editor, content: JSONContent) => void;
|
|
90
96
|
export declare const richDocumentExtensions: (placeholder: string) => (Node<any, any> | Node<import("@tiptap/extension-image").ImageOptions, any> | Node<import("@tiptap/extension-table").TableCellOptions, any> | import("@tiptap/core").Extension<import("@tiptap/starter-kit").StarterKitOptions, any> | import("@tiptap/core").Mark<import("@tiptap/extension-link").LinkOptions, any> | import("@tiptap/core").Extension<import("@tiptap/extension-table").TableKitOptions, any> | import("@tiptap/core").Extension<import("@tiptap/extension-text-align").TextAlignOptions, any> | import("@tiptap/core").Mark<import("@tiptap/extension-text-style").TextStyleOptions, any> | import("@tiptap/core").Extension<import("@tiptap/extension-text-style").ColorOptions, any> | Node<import("@tiptap/extension-task-list").TaskListOptions, any> | Node<import("@tiptap/extension-task-item").TaskItemOptions, any> | import("@tiptap/core").Extension<import("@tiptap/extension-placeholder").PlaceholderOptions, any> | import("@tiptap/core").Extension<import("@tiptap/markdown").MarkdownExtensionOptions, import("@tiptap/markdown").MarkdownExtensionStorage>)[];
|
|
91
|
-
export declare function RichDocument({ value, editable, placeholder, ariaLabel, linkLabel, saveLabel, surface, source, documentId, nodeId, baseRevision, assistant, assistantInstructions, onChange, onAssistantCommit, onImageUpload, labels }: RichDocumentProps): import("react").JSX.Element;
|
|
97
|
+
export declare function RichDocument({ value, editable, placeholder, ariaLabel, linkLabel, saveLabel, surface, source, documentId, nodeId, baseRevision, assistant, assistantInstructions, onChange, onAssistantCommit, onImageUpload, resolveImage, labels }: RichDocumentProps): import("react").JSX.Element;
|
|
92
98
|
export declare const looksLikeMarkdown: (text: string) => boolean;
|
|
93
99
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-factory-platform/docs-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Product-neutral rich document editor and repository bindings.",
|
|
5
5
|
"license": "MIT OR Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"react-dom": "^19.0.0"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@agent-factory-platform/client": "0.
|
|
34
|
-
"@agent-factory-platform/ui-kit": "0.
|
|
33
|
+
"@agent-factory-platform/client": "0.5.0",
|
|
34
|
+
"@agent-factory-platform/ui-kit": "0.5.0",
|
|
35
35
|
"@tiptap/core": "3.30.5",
|
|
36
36
|
"@tiptap/extension-bubble-menu": "3.30.5",
|
|
37
37
|
"@tiptap/extension-floating-menu": "3.30.5",
|