@freecallai/pro 0.0.10 → 0.0.12

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 (53) hide show
  1. package/README.md +1 -1
  2. package/dist/{FkpRichText.vue_vue_type_script_setup_true_lang-D2sgT7XP.js → FkpRichText.vue_vue_type_script_setup_true_lang-DiS7CZdc.js} +1470 -1455
  3. package/dist/{KnowledgeArea-Sbfs_E0C.js → KnowledgeArea-FGgCcubh.js} +1 -1
  4. package/dist/{KnowledgeArea.vue_vue_type_script_setup_true_lang-BNDRTWXW.js → KnowledgeArea.vue_vue_type_script_setup_true_lang-JH_F4CFe.js} +523 -519
  5. package/dist/{ToolForm-_ZTW7lwU.js → ToolForm-CHmdyhjh.js} +1 -1
  6. package/dist/agent-prompt-editor/index.js +304 -293
  7. package/dist/agent-prompt-editor/legacy-converter/index.js +98 -94
  8. package/dist/{choice-BqjECVyx.js → choice-CUCsR2dN.js} +1 -1
  9. package/dist/edition-info/index.js +1 -1
  10. package/dist/{guard-BmLOamCj.js → guard-DgExtfXo.js} +199 -185
  11. package/dist/{index-7x1OTv0m.js → index-B2CCZeff.js} +4 -4
  12. package/dist/{index-BDinNJn_.js → index-BwZXmefJ.js} +1 -1
  13. package/dist/{index-6VSUucFX.js → index-C54ce9Tn.js} +1 -1
  14. package/dist/index-CMl5mgFR.js +5 -0
  15. package/dist/index-CbmRr3rH.js +949 -0
  16. package/dist/index-Cs38tTe4.js +5 -0
  17. package/dist/{index-CCwmXuSJ.js → index-DIMONp3g.js} +1 -1
  18. package/dist/{index-CN2knQcE.js → index-DaGfiqBX.js} +1 -1
  19. package/dist/{index-gS1h8iW8.js → index-DqJvaPTD.js} +1 -1
  20. package/dist/{index-0BXLYaKG.js → index-dnsGFj0F.js} +2 -2
  21. package/dist/{index-B1rTu0jX.js → index-pdr6mUf0.js} +1 -1
  22. package/dist/index.js +7 -7
  23. package/dist/{inline-CRGzAti7.js → inline-BpwAryXp.js} +1 -1
  24. package/dist/{knowledge-DNDouB-s.js → knowledge-DIzYk2iM.js} +1 -1
  25. package/dist/media-extensions-YYbGuUQa.js +341 -0
  26. package/dist/{media-migration-D1KoHKoP.js → media-migration-Bnfn27i9.js} +1 -1
  27. package/dist/media-policy-tG5OHWSj.js +215 -0
  28. package/dist/{media-upload-C5N6YWHu.js → media-upload-_xeZtn3i.js} +1 -1
  29. package/dist/{model-BVh9EZ9G.js → model-DlAjlPai.js} +1 -1
  30. package/dist/navigation/index.js +1 -1
  31. package/dist/rich-text/index.js +6 -6
  32. package/dist/rich-text/legacy-converter/index.js +357 -355
  33. package/dist/style.css +1 -1
  34. package/dist/types/agent-prompt-editor/FkpAgentPromptEditor.vue.d.ts +4 -0
  35. package/dist/types/navigation/FkpNavigation.vue.d.ts +12 -3
  36. package/dist/types/navigation/NavigationGroup.vue.d.ts +1 -0
  37. package/dist/types/navigation/NavigationNodes.vue.d.ts +9 -2
  38. package/dist/types/navigation/{use-navigation-tree.d.ts → hooks/use-navigation-tree.d.ts} +1 -1
  39. package/dist/types/navigation/hooks/use-submenu-indicator.d.ts +10 -0
  40. package/dist/types/navigation/index.d.ts +1 -1
  41. package/dist/types/navigation/types.d.ts +11 -0
  42. package/dist/types/rich-text/FkpRichText.vue.d.ts +2 -0
  43. package/dist/types/rich-text/model/qianniu-video.d.ts +2 -0
  44. package/dist/types/rich-text/public/types.d.ts +2 -2
  45. package/dist/types/rich-text/runtime/media-sources.d.ts +1 -1
  46. package/dist/types/rich-text/ui/KnowledgeArea.vue.d.ts +1 -0
  47. package/dist/types/rich-text/ui/MediaSourceControls.vue.d.ts +11 -2
  48. package/package.json +4 -4
  49. package/dist/index-CAczgwau.js +0 -5
  50. package/dist/index-Ck8RYpuE.js +0 -816
  51. package/dist/index-faGbB8v6.js +0 -5
  52. package/dist/media-extensions-wlcCEdtg.js +0 -324
  53. package/dist/media-policy-D3-Qglzz.js +0 -158
@@ -94,6 +94,7 @@ declare const _default: import('vue').DefineComponent<FkpRichTextProps, {
94
94
  url: string;
95
95
  kind: "image" | "video";
96
96
  posterUrl?: string;
97
+ sourceType?: "qianniuVideo";
97
98
  }, name: string, target: MediaTarget, refocus: boolean) => JSONContent | null;
98
99
  insertPendingMedia: (file: File, kind: "image" | "video", target: MediaTarget) => string | null;
99
100
  insertPendingMediaBatch: (files: Array<{
@@ -224,6 +225,7 @@ declare const _default: import('vue').DefineComponent<FkpRichTextProps, {
224
225
  url: string;
225
226
  kind: "image" | "video";
226
227
  posterUrl?: string;
228
+ sourceType?: "qianniuVideo";
227
229
  }, name: string, target: MediaTarget, refocus: boolean) => JSONContent | null;
228
230
  insertPendingMedia: (file: File, kind: "image" | "video", target: MediaTarget) => string | null;
229
231
  insertPendingMediaBatch: (files: Array<{
@@ -0,0 +1,2 @@
1
+ /** A Qianniu video-space URL is distinct from a generic online video. */
2
+ export declare function isQianniuVideoUrl(value: string): boolean;
@@ -590,8 +590,8 @@ export interface FkpRichTextProps {
590
590
  * @en Remote and page-level capability rules.
591
591
  */
592
592
  config?: SceneConfigLayersV1;
593
- /** 图片和视频工具栏的来源;每种默认仅本地。单一来源直接执行,两种来源显示选择菜单。
594
- * @en Toolbar sources for images and videos. Each defaults to local only; one source runs directly, two open a chooser.
593
+ /** 图片和视频工具栏的来源;视频可配置 qianniu,由宿主按店铺平台及接待状态启用。
594
+ * @en Toolbar media sources; the host enables qianniu video for eligible shops.
595
595
  */
596
596
  mediaSources?: MediaSourceOptions;
597
597
  /** 宿主权限快照;过期或无效时禁止编辑。
@@ -1,4 +1,4 @@
1
- export type MediaSource = 'local' | 'online';
1
+ export type MediaSource = 'local' | 'online' | 'qianniu';
2
2
  /** Toolbar sources for each media kind. Omitted kinds default to local upload. */
3
3
  export interface MediaSourceOptions {
4
4
  image?: readonly MediaSource[];
@@ -29,6 +29,7 @@ declare function insertMedia(asset: {
29
29
  url: string;
30
30
  kind: 'image' | 'video';
31
31
  posterUrl?: string;
32
+ sourceType?: 'qianniuVideo';
32
33
  }, name: string, target: MediaTarget, refocus: boolean): JSONContent | null;
33
34
  declare function insertPendingMedia(file: File, kind: 'image' | 'video', target: MediaTarget): string | null;
34
35
  declare function insertPendingMediaBatch(files: Array<{
@@ -2,16 +2,25 @@ import { MediaSource } from '../runtime/media-sources';
2
2
  type __VLS_Props = {
3
3
  menuKind: 'image' | 'video' | null;
4
4
  dialogKind: 'image' | 'video' | null;
5
+ qianniuDialog?: boolean;
5
6
  menuStyle?: Record<string, string>;
6
7
  sources: readonly MediaSource[];
7
8
  };
8
9
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
10
  choose: (source: MediaSource) => any;
10
11
  submit: (url: string) => any;
12
+ "submit-qianniu": (value: {
13
+ id: string;
14
+ url: string;
15
+ }) => any;
11
16
  close: () => any;
12
17
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
13
18
  onChoose?: ((source: MediaSource) => any) | undefined;
14
19
  onSubmit?: ((url: string) => any) | undefined;
20
+ "onSubmit-qianniu"?: ((value: {
21
+ id: string;
22
+ url: string;
23
+ }) => any) | undefined;
15
24
  onClose?: (() => any) | undefined;
16
25
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
17
26
  input: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
@@ -67,8 +76,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
67
76
  prepend: StringConstructor;
68
77
  append: StringConstructor;
69
78
  }>> & Readonly<{
70
- onFocus?: ((ev: FocusEvent) => any) | undefined;
71
79
  onClear?: ((ev: MouseEvent) => any) | undefined;
80
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
72
81
  onInput?: ((value: string, ev: Event) => any) | undefined;
73
82
  onChange?: ((value: string, ev: Event) => any) | undefined;
74
83
  onBlur?: ((ev: FocusEvent) => any) | undefined;
@@ -160,8 +169,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
160
169
  prepend: StringConstructor;
161
170
  append: StringConstructor;
162
171
  }>> & Readonly<{
163
- onFocus?: ((ev: FocusEvent) => any) | undefined;
164
172
  onClear?: ((ev: MouseEvent) => any) | undefined;
173
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
165
174
  onInput?: ((value: string, ev: Event) => any) | undefined;
166
175
  onChange?: ((value: string, ev: Event) => any) | undefined;
167
176
  onBlur?: ((ev: FocusEvent) => any) | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freecallai/pro",
3
- "version": "0.0.10",
3
+ "version": "0.0.12",
4
4
  "description": "福客AI业务组件库",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -63,7 +63,7 @@
63
63
  "**/*.css"
64
64
  ],
65
65
  "peerDependencies": {
66
- "@freecallai/ui": "^0.0.6",
66
+ "@freecallai/ui": "^0.0.8",
67
67
  "vue": "^3.5.13"
68
68
  },
69
69
  "dependencies": {
@@ -72,7 +72,7 @@
72
72
  "@tiptap/pm": "^3.0.0",
73
73
  "@tiptap/starter-kit": "^3.0.0",
74
74
  "@tiptap/vue-3": "^3.0.0",
75
- "@freecallai/icons": "0.0.4"
75
+ "@freecallai/icons": "0.0.5"
76
76
  },
77
77
  "devDependencies": {
78
78
  "@types/node": "^22.0.0",
@@ -84,7 +84,7 @@
84
84
  "vitest": "^3.2.0",
85
85
  "vue": "^3.5.13",
86
86
  "vue-tsc": "^2.2.0",
87
- "@freecallai/ui": "0.0.6",
87
+ "@freecallai/ui": "0.0.8",
88
88
  "@arco-design/arco-vue-scripts": "0.2.10"
89
89
  },
90
90
  "publishConfig": {
@@ -1,5 +0,0 @@
1
- import { c as e } from "./media-upload-C5N6YWHu.js";
2
- const a = e("video");
3
- export {
4
- a as default
5
- };