@next-bricks/ai-portal 0.32.9 → 0.33.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.
Files changed (93) hide show
  1. package/dist/bricks.json +23 -21
  2. package/dist/chunks/3554.206bf5f8.js +2 -0
  3. package/dist/chunks/3554.206bf5f8.js.map +1 -0
  4. package/dist/chunks/4937.be28e874.js +2 -0
  5. package/dist/chunks/4937.be28e874.js.map +1 -0
  6. package/dist/chunks/4957.f878df32.js +3 -0
  7. package/dist/chunks/4957.f878df32.js.LICENSE.txt +5 -0
  8. package/dist/chunks/4957.f878df32.js.map +1 -0
  9. package/dist/chunks/5521.ef48a4d3.js +2 -0
  10. package/dist/chunks/5521.ef48a4d3.js.map +1 -0
  11. package/dist/chunks/7367.26e21493.js +3 -0
  12. package/dist/chunks/7367.26e21493.js.LICENSE.txt +13 -0
  13. package/dist/chunks/7367.26e21493.js.map +1 -0
  14. package/dist/chunks/7525.b8ed4213.js +2 -0
  15. package/dist/chunks/7525.b8ed4213.js.map +1 -0
  16. package/dist/chunks/7824.c9360190.js +3 -0
  17. package/dist/chunks/{6677.2fea9748.js.LICENSE.txt → 7824.c9360190.js.LICENSE.txt} +4 -12
  18. package/dist/chunks/7824.c9360190.js.map +1 -0
  19. package/dist/chunks/8324.71f13678.js +2 -0
  20. package/dist/chunks/8324.71f13678.js.map +1 -0
  21. package/dist/chunks/833.ea1388c6.js +2 -0
  22. package/dist/chunks/833.ea1388c6.js.map +1 -0
  23. package/dist/chunks/8989.ddf83737.js +2 -0
  24. package/dist/chunks/{8989.9db8c4fb.js.map → 8989.ddf83737.js.map} +1 -1
  25. package/dist/chunks/9535.9827a039.js +2 -0
  26. package/dist/chunks/9535.9827a039.js.map +1 -0
  27. package/dist/chunks/entity-sdk-get.37c62d5f.js +3 -0
  28. package/dist/chunks/entity-sdk-get.37c62d5f.js.LICENSE.txt +1 -0
  29. package/dist/chunks/entity-sdk-get.37c62d5f.js.map +1 -0
  30. package/dist/chunks/entity-sdk-list.0b8120ce.js +3 -0
  31. package/dist/chunks/entity-sdk-list.0b8120ce.js.LICENSE.txt +1 -0
  32. package/dist/chunks/entity-sdk-list.0b8120ce.js.map +1 -0
  33. package/dist/chunks/main.0cbe3b18.js +2 -0
  34. package/dist/chunks/main.0cbe3b18.js.map +1 -0
  35. package/dist/examples.json +11 -11
  36. package/dist/index.7b4d5912.js +2 -0
  37. package/dist/index.7b4d5912.js.map +1 -0
  38. package/dist/manifest.json +155 -149
  39. package/dist/types.json +546 -817
  40. package/dist-types/bootstrap.d.ts +2 -0
  41. package/dist-types/chat-stream/ChatStream.d.ts +1 -1
  42. package/dist-types/cruise-canvas/CruiseCanvas.d.ts +1 -1
  43. package/dist-types/cruise-canvas/NodeJob/NodeJob.d.ts +2 -2
  44. package/dist-types/cruise-canvas/interfaces.d.ts +3 -11
  45. package/dist-types/cruise-canvas/reducers/interfaces.d.ts +1 -0
  46. package/dist-types/data-providers/entity-sdk-get.d.ts +1 -0
  47. package/dist-types/data-providers/entity-sdk-list.d.ts +1 -0
  48. package/dist-types/shared/TaskContext.d.ts +5 -3
  49. package/dist-types/shared/getAsyncConstructedView.d.ts +2 -0
  50. package/dist-types/shared/interfaces.d.ts +11 -5
  51. package/dist-types/shared/workers/tsxParser.d.ts +5 -0
  52. package/dist-types/shared/workers/tsxParser.worker.d.ts +1 -0
  53. package/package.json +2 -2
  54. package/dist/chunks/1194.5eabae99.js +0 -2
  55. package/dist/chunks/1194.5eabae99.js.map +0 -1
  56. package/dist/chunks/1370.e6adbca3.js +0 -2
  57. package/dist/chunks/1370.e6adbca3.js.map +0 -1
  58. package/dist/chunks/3554.d1b81183.js +0 -2
  59. package/dist/chunks/3554.d1b81183.js.map +0 -1
  60. package/dist/chunks/4937.59e921b9.js +0 -2
  61. package/dist/chunks/4937.59e921b9.js.map +0 -1
  62. package/dist/chunks/6677.2fea9748.js +0 -3
  63. package/dist/chunks/6677.2fea9748.js.map +0 -1
  64. package/dist/chunks/7525.6915bed7.js +0 -2
  65. package/dist/chunks/7525.6915bed7.js.map +0 -1
  66. package/dist/chunks/8989.9db8c4fb.js +0 -2
  67. package/dist/chunks/main.a5c3ae85.js +0 -2
  68. package/dist/chunks/main.a5c3ae85.js.map +0 -1
  69. package/dist/index.f9bad569.js +0 -2
  70. package/dist/index.f9bad569.js.map +0 -1
  71. package/dist-types/cruise-canvas/utils/converters/convertButton.d.ts +0 -3
  72. package/dist-types/cruise-canvas/utils/converters/convertDashboard.d.ts +0 -3
  73. package/dist-types/cruise-canvas/utils/converters/convertDescriptions.d.ts +0 -3
  74. package/dist-types/cruise-canvas/utils/converters/convertEvents.d.ts +0 -3
  75. package/dist-types/cruise-canvas/utils/converters/convertFlexLayout.d.ts +0 -3
  76. package/dist-types/cruise-canvas/utils/converters/convertForm.d.ts +0 -3
  77. package/dist-types/cruise-canvas/utils/converters/convertFormItem.d.ts +0 -3
  78. package/dist-types/cruise-canvas/utils/converters/convertList.d.ts +0 -3
  79. package/dist-types/cruise-canvas/utils/converters/convertModal.d.ts +0 -3
  80. package/dist-types/cruise-canvas/utils/converters/convertTable.d.ts +0 -3
  81. package/dist-types/cruise-canvas/utils/converters/convertView.d.ts +0 -3
  82. package/dist-types/cruise-canvas/utils/converters/expressions.d.ts +0 -13
  83. package/dist-types/cruise-canvas/utils/converters/findNearestCandidate.d.ts +0 -3
  84. package/dist-types/cruise-canvas/utils/converters/findObjectIdByUsedDataContexts.d.ts +0 -7
  85. package/dist-types/cruise-canvas/utils/converters/getModelObjectInstanceId.d.ts +0 -1
  86. package/dist-types/cruise-canvas/utils/converters/getPreGeneratedAttrViews.d.ts +0 -1
  87. package/dist-types/cruise-canvas/utils/converters/getPreGeneratedMetricGroups.d.ts +0 -6
  88. package/dist-types/cruise-canvas/utils/converters/interfaces.d.ts +0 -75
  89. package/dist-types/cruise-canvas/utils/converters/raw-data-generate/convert.d.ts +0 -5
  90. package/dist-types/cruise-canvas/utils/converters/raw-data-generate/getMemberAccessor.d.ts +0 -1
  91. package/dist-types/cruise-canvas/utils/converters/raw-data-generate/raw-data-interfaces.d.ts +0 -87
  92. package/dist-types/cruise-canvas/utils/converters/withBox.d.ts +0 -3
  93. package/dist-types/cruise-canvas/utils/isJsxView.d.ts +0 -3
@@ -1,75 +0,0 @@
1
- export interface View {
2
- viewId: string;
3
- title: string;
4
- }
5
- export interface ViewWithInfo extends View {
6
- dataSources: DataSource[];
7
- variables: Variable[];
8
- components: Component[];
9
- eventListeners: EventListener[];
10
- from?: "generate" | "config";
11
- }
12
- export interface DataSource {
13
- viewId: string;
14
- name: string;
15
- api: {
16
- name: string;
17
- version: string;
18
- objectId?: string;
19
- };
20
- params?: Record<string, any>;
21
- transform?: string;
22
- }
23
- export interface Variable {
24
- viewId: string;
25
- name: string;
26
- value: any;
27
- }
28
- export interface Component {
29
- viewId: string;
30
- componentId: string;
31
- parentComponentId?: string;
32
- componentName: string;
33
- properties?: Record<string, unknown>;
34
- }
35
- export interface EventListener {
36
- viewId: string;
37
- componentId: string;
38
- event: string;
39
- handler: any;
40
- }
41
- export interface Api {
42
- name: string;
43
- version: string;
44
- description: string;
45
- objectId?: string;
46
- parameters: any;
47
- }
48
- export interface ObjectDefinition {
49
- objectId: string;
50
- name: string;
51
- attrs: ObjectAttribute[];
52
- }
53
- export interface ObjectAttribute {
54
- id: string;
55
- name: string;
56
- type: string;
57
- description?: string;
58
- }
59
- export interface ObjectWithMetrics {
60
- objectId: string;
61
- name: string;
62
- metrics: ObjectMetric[];
63
- }
64
- export interface ObjectMetric {
65
- id: string;
66
- name: string;
67
- unit: string;
68
- }
69
- export interface ConvertViewOptions {
70
- rootId: string;
71
- expanded?: boolean;
72
- }
73
- export interface ConvertBrickOptions {
74
- ignoreStyle?: boolean;
75
- }
@@ -1,5 +0,0 @@
1
- import type { BrickConf } from "@next-core/types";
2
- import type { VisualConfig } from "./raw-data-interfaces.js";
3
- import type { ConvertBrickOptions } from "../interfaces.js";
4
- export declare function convertToStoryboard(config: VisualConfig, attr: string, options?: ConvertBrickOptions): BrickConf | null;
5
- export declare function lowLevelConvertToStoryboard(config: VisualConfig, attrAccessor: string, options?: ConvertBrickOptions): BrickConf | null;
@@ -1 +0,0 @@
1
- export declare function getMemberAccessor(property: unknown): string;
@@ -1,87 +0,0 @@
1
- export interface VisualConfig {
2
- /** 视觉重量,整型,默认为 0,取值范围 [-1, 2] */
3
- visualWeight: number;
4
- /** 显示形式,默认为 text */
5
- display: "text" | "tag" | "link" | "icon" | "icon+text";
6
- /** 原始数据类型 */
7
- type: "integer" | "float" | "string" | "boolean" | "enum" | "enum-list" | "struct" | "struct-list" | "json" | "date" | "date-time";
8
- /** 样式设置 */
9
- style?: VisualStyle;
10
- /** 根据区间设置不同的样式 */
11
- ranges?: VisualRange[];
12
- /** 格式化设置 */
13
- formatter?: VisualFormatter;
14
- /** 显示的图标 */
15
- icon?: string;
16
- /** 值为 true 时的显示配置 */
17
- true?: VisualValueConfig;
18
- /** 值为 false 时的显示配置 */
19
- false?: VisualValueConfig;
20
- /** 最多显示的列表项数量,当结构体列表数据降级显示时使用 */
21
- maxItems?: number;
22
- /** 尽显示列表类数据的数量 */
23
- countOnly?: number;
24
- /** 当结构体或结构体列表数据降级显示时,仅显示该字段值 */
25
- field?: string;
26
- }
27
- export interface VisualValueConfig {
28
- /** 显示的图标 */
29
- icon?: string;
30
- /** 显示的文本 */
31
- text?: string;
32
- /** 样式设置 */
33
- style?: VisualStyle;
34
- }
35
- export interface VisualStyle {
36
- /**
37
- * 尺寸
38
- *
39
- * @default "medium"
40
- */
41
- size?: "small" | "medium" | "large" | "x-large";
42
- /**
43
- * 字重
44
- *
45
- * @default "normal"
46
- */
47
- fontWeight?: "normal" | "bold";
48
- /** 内容颜色使用预设的 CSS 变量 */
49
- color?: "var(--text-color-default)" | "var(--text-color-secondary)" | "var(--text-color-disabled)" | "var(--color-brand)";
50
- /** 标签变种形式:默认、边框、背景色 */
51
- variant?: "default" | "outline" | "background";
52
- /** 背景颜色使用预设的 CSS 变量 */
53
- background?: VisualBackground;
54
- /** 背景颜色表 */
55
- palette?: Record<string, VisualBackground>;
56
- }
57
- export type VisualBackground = "blue" | "cyan" | "geekblue" | "grayblue" | "gray" | "green" | "orange" | "purple" | "red" | "yellow" | "teal";
58
- export interface VisualRange {
59
- start?: number;
60
- end?: number;
61
- style?: VisualStyle;
62
- }
63
- export type VisualFormatter = DateTimeFormatter | CostTimeFormatter | NumberFormatter | FileFormatter;
64
- export interface DateTimeFormatter {
65
- type: "date-time" | "date" | "time";
66
- format?: "full" | "default" | "accurate" | "relative" | "future" | "auto" | string;
67
- }
68
- export interface CostTimeFormatter {
69
- type: "cost-time";
70
- }
71
- export interface NumberFormatter {
72
- type: "number";
73
- format: "decimal" | "currency" | "percent" | "unit";
74
- /**
75
- * 货币名,例如 CNY / USD 等
76
- */
77
- currency?: string;
78
- unit?: string;
79
- /** 保留的小数位数 */
80
- decimals?: number;
81
- thousandsSeparator?: boolean;
82
- }
83
- export interface FileFormatter {
84
- type: "file";
85
- /** 文件类型,例如 markdown / js / css / php 等 */
86
- fileType: string;
87
- }
@@ -1,3 +0,0 @@
1
- import { BrickConf } from "@next-core/types";
2
- import type { ConvertViewOptions } from "./interfaces";
3
- export declare function withBox(children: BrickConf[] | undefined, options: ConvertViewOptions): BrickConf;
@@ -1,3 +0,0 @@
1
- import type { ViewWithInfo } from "./converters/interfaces";
2
- import type { ConstructedView } from "../interfaces";
3
- export declare function isJsxView(result: ConstructedView | ViewWithInfo): result is ConstructedView;