@blocklet/pages-kit 0.5.40 → 0.5.42
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/lib/cjs/builtin/utils.js +6 -5
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/cjs/utils/property.js +11 -0
- package/lib/esm/builtin/utils.js +6 -5
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/utils/property.js +11 -0
- package/lib/types/tsconfig.tsbuildinfo +1 -1
- package/lib/types/types/core.d.ts +11 -0
- package/lib/types/types/state.d.ts +2 -15
- package/package.json +5 -5
|
@@ -45,6 +45,7 @@ export interface CustomComponentPropertyBase {
|
|
|
45
45
|
defaultValue?: any;
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
|
+
llmConfig?: LLMConfig;
|
|
48
49
|
}
|
|
49
50
|
export interface CustomComponentPropertyWithSubProperties extends CustomComponentPropertyBase {
|
|
50
51
|
type: 'json' | 'yaml' | 'array';
|
|
@@ -82,3 +83,13 @@ export interface CustomComponentComponentProperty extends CustomComponentPropert
|
|
|
82
83
|
};
|
|
83
84
|
};
|
|
84
85
|
}
|
|
86
|
+
export type LLMConfigProperty = {
|
|
87
|
+
key: string;
|
|
88
|
+
displayName?: string;
|
|
89
|
+
isNeedGenerate: boolean;
|
|
90
|
+
describe: string;
|
|
91
|
+
subProperties?: Record<string, LLMConfigProperty>;
|
|
92
|
+
};
|
|
93
|
+
export type LLMConfig = {
|
|
94
|
+
properties?: Record<string, LLMConfigProperty>;
|
|
95
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CustomComponent } from './core';
|
|
1
|
+
import { CustomComponent, LLMConfig } from './core';
|
|
2
2
|
import { StyleConfig } from './style';
|
|
3
3
|
export type PublishMode = 'production';
|
|
4
4
|
export type StateMode = 'draft' | 'production';
|
|
@@ -144,20 +144,7 @@ export interface Section<T = {
|
|
|
144
144
|
name?: string;
|
|
145
145
|
isTemplateSection?: boolean;
|
|
146
146
|
templateDescription?: string;
|
|
147
|
-
llmConfig?:
|
|
148
|
-
properties?: Record<string, {
|
|
149
|
-
key: string;
|
|
150
|
-
isNeedGenerate: boolean;
|
|
151
|
-
displayName?: string;
|
|
152
|
-
describe: string;
|
|
153
|
-
subProperties?: Record<string, {
|
|
154
|
-
key: string;
|
|
155
|
-
isNeedGenerate: boolean;
|
|
156
|
-
describe: string;
|
|
157
|
-
subProperties?: Record<string, any>;
|
|
158
|
-
}>;
|
|
159
|
-
}>;
|
|
160
|
-
};
|
|
147
|
+
llmConfig?: LLMConfig;
|
|
161
148
|
/** @deprecated section item 的 locales 已经被弃用,请使用 page dataSource 或者 currentSectionProperties 替代 */
|
|
162
149
|
locales?: Record<string, T>;
|
|
163
150
|
sections?: Record<string, Section>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/pages-kit",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.42",
|
|
4
4
|
"description": "Pages Kit components and utils for blocklet(s)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"url": "git+https://github.com/blocklet/pages-kit.git"
|
|
101
101
|
},
|
|
102
102
|
"dependencies": {
|
|
103
|
-
"@arcblock/did-connect": "^2.13.
|
|
103
|
+
"@arcblock/did-connect": "^2.13.67",
|
|
104
104
|
"@blocklet/ai-kit": "^0.1.79",
|
|
105
105
|
"@blocklet/js-sdk": "^1.16.44",
|
|
106
106
|
"@blocklet/sdk": "^1.16.44",
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
"ufo": "^1.5.4",
|
|
152
152
|
"yaml": "^2.5.0",
|
|
153
153
|
"zustand": "^4.5.5",
|
|
154
|
-
"@blocklet/pages-kit-core": "^0.5.
|
|
154
|
+
"@blocklet/pages-kit-core": "^0.5.42"
|
|
155
155
|
},
|
|
156
156
|
"peerDependencies": {
|
|
157
157
|
"@arcblock/ux": "^2.11.35",
|
|
@@ -172,8 +172,8 @@
|
|
|
172
172
|
"react-router-dom": "^6.16.0"
|
|
173
173
|
},
|
|
174
174
|
"devDependencies": {
|
|
175
|
-
"@arcblock/ux": "^2.13.
|
|
176
|
-
"@blocklet/ai-runtime": "^0.4.
|
|
175
|
+
"@arcblock/ux": "^2.13.67",
|
|
176
|
+
"@blocklet/ai-runtime": "^0.4.274",
|
|
177
177
|
"@blocklet/js-sdk": "^1.16.44",
|
|
178
178
|
"@blocklet/sdk": "^1.16.44",
|
|
179
179
|
"@emotion/cache": "^11.13.1",
|