@freecallai/pro 0.0.1 → 0.0.2

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.
Files changed (34) hide show
  1. package/dist/FkpRichText.vue_vue_type_script_setup_true_lang-BuMz8Tyy.js +4416 -0
  2. package/dist/KnowledgeArea-BkRVWFrg.js +1224 -0
  3. package/dist/{ToolForm-CWpUIVTl.js → ToolForm-BSJxTJ7U.js} +1 -1
  4. package/dist/index-BVHYCLDv.js +5 -0
  5. package/dist/{index-DOEijEGU.js → index-BnFTr8u9.js} +1 -1
  6. package/dist/{index-5a9mHHzg.js → index-CG2j9Znw.js} +1 -1
  7. package/dist/index-kOPLn4DD.js +5 -0
  8. package/dist/index.js +3 -3
  9. package/dist/{media-migration-CGOFwdYm.js → media-migration-Cj-3xrxd.js} +1 -1
  10. package/dist/{media-upload-Dx45yv6a.js → media-upload-D7DpMJYx.js} +1 -1
  11. package/dist/rich-text/index.js +5 -5
  12. package/dist/rich-text/legacy-converter/index.js +766 -321
  13. package/dist/{guard-BCatAeT4.js → rules-CC6NoltX.js} +252 -190
  14. package/dist/style.css +1 -1
  15. package/dist/types/index.d.ts +1 -1
  16. package/dist/types/rich-text/FkpRichText.vue.d.ts +16 -5
  17. package/dist/types/rich-text/__demo__/reasoning-template-examples.d.ts +12 -0
  18. package/dist/types/rich-text/index.d.ts +1 -1
  19. package/dist/types/rich-text/legacy-converter/business-attribute.d.ts +32 -0
  20. package/dist/types/rich-text/legacy-converter/index.d.ts +1 -0
  21. package/dist/types/rich-text/legacy-converter/tool-contract.d.ts +5 -0
  22. package/dist/types/rich-text/plugins/tool/rules.d.ts +34 -0
  23. package/dist/types/rich-text/public/types.d.ts +10 -0
  24. package/dist/types/rich-text/runtime/file-drop-guard.d.ts +2 -0
  25. package/dist/types/rich-text/runtime/media-policy.d.ts +15 -0
  26. package/dist/types/rich-text/runtime/media-target.d.ts +1 -0
  27. package/dist/types/rich-text/runtime/media-upload-session.d.ts +5 -1
  28. package/dist/types/rich-text/runtime/media-upload-slots.d.ts +4 -0
  29. package/dist/types/rich-text/ui/KnowledgeArea.vue.d.ts +7 -0
  30. package/package.json +1 -1
  31. package/dist/FkpRichText.vue_vue_type_script_setup_true_lang-DnknqQTh.js +0 -4115
  32. package/dist/KnowledgeArea-OPR7smbt.js +0 -923
  33. package/dist/index-BsQLwz91.js +0 -5
  34. package/dist/index-xAjlBylT.js +0 -5
@@ -11,7 +11,10 @@ type UpdatePlan = Extract<PluginPlan, {
11
11
  kind: 'updateNode';
12
12
  }>;
13
13
  interface MediaEditor {
14
- insertPendingMedia(file: File, kind: MediaKind, target: MediaTarget): string | null;
14
+ insertPendingMediaBatch(files: Array<{
15
+ file: File;
16
+ kind: MediaKind;
17
+ }>, target: MediaTarget): string[] | null;
15
18
  getMediaState(id: string): MediaNodeState | null;
16
19
  failMedia(id: string, message: string, expectedVersion: number): boolean;
17
20
  retryMedia(id: string, expectedVersion: number): boolean;
@@ -41,6 +44,7 @@ export interface MediaUploadSessionHost {
41
44
  track(controller: AbortController, start: boolean): void;
42
45
  diagnostic(code: string, message: string, source: 'config' | 'plugin' | 'port' | 'validation', kind?: MediaKind): void;
43
46
  portDiagnostic(error: PortError, kind: MediaKind): void;
47
+ notify?(type: 'info' | 'success' | 'error', message: string): void;
44
48
  applyNodeUpdate(plan: UpdatePlan, kind: MediaKind): boolean;
45
49
  }
46
50
  /** Owns upload files, selection bookmark, and async completion across scene changes. */
@@ -0,0 +1,4 @@
1
+ /** Shared by batches and retries in one editor; abort also releases waiting work. */
2
+ export declare function createMediaUploadSlots(): {
3
+ acquire(signal: AbortSignal): Promise<(() => void) | null>;
4
+ };
@@ -24,6 +24,10 @@ declare function insertMedia(asset: {
24
24
  posterUrl?: string;
25
25
  }, name: string, target?: MediaTarget): boolean;
26
26
  declare function insertPendingMedia(file: File, kind: 'image' | 'video', target: MediaTarget): string | null;
27
+ declare function insertPendingMediaBatch(files: Array<{
28
+ file: File;
29
+ kind: 'image' | 'video';
30
+ }>, target: MediaTarget): string[] | null;
27
31
  declare function getMediaState(id: string): MediaNodeState | null;
28
32
  declare function applyNodeUpdate(plan: Extract<PluginPlan, {
29
33
  kind: 'updateNode';
@@ -50,7 +54,9 @@ declare function captureSelection(): {
50
54
  focused: boolean;
51
55
  } | null;
52
56
  declare function restoreSelection(selection: ReturnType<typeof captureSelection>): void;
57
+ declare function pasteFileText(event: ClipboardEvent): void;
53
58
  declare const _default: import('vue').DefineComponent<__VLS_Props, {
59
+ pasteFileText: typeof pasteFileText;
54
60
  isSelectionInsideOriginalReply: () => boolean;
55
61
  insertToken: typeof insertToken;
56
62
  insertOriginal: typeof insertOriginal;
@@ -59,6 +65,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
59
65
  restoreDoc: typeof restoreDoc;
60
66
  insertMedia: typeof insertMedia;
61
67
  insertPendingMedia: typeof insertPendingMedia;
68
+ insertPendingMediaBatch: typeof insertPendingMediaBatch;
62
69
  applyNodeUpdate: typeof applyNodeUpdate;
63
70
  applyPluginNodeOperation: typeof applyPluginNodeOperation;
64
71
  applyPluginNodeOperations: typeof applyPluginNodeOperations;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freecallai/pro",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "福客AI业务组件库",
5
5
  "license": "MIT",
6
6
  "repository": {