@blocklet/pages-kit 0.5.47 → 0.5.48
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/tsconfig.tsbuildinfo +1 -1
- package/lib/cjs/utils/common.js +3 -1
- package/lib/cjs/utils/page-model.js +41 -4
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/utils/common.js +2 -0
- package/lib/esm/utils/page-model.js +36 -3
- package/lib/types/tsconfig.tsbuildinfo +1 -1
- package/lib/types/types/core.d.ts +11 -11
- package/lib/types/utils/common.d.ts +1 -0
- package/lib/types/utils/page-model.d.ts +1 -0
- package/package.json +2 -2
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
export type LLMConfigProperty = {
|
|
2
|
+
key: string;
|
|
3
|
+
displayName?: string;
|
|
4
|
+
isNeedGenerate: boolean;
|
|
5
|
+
describe: string;
|
|
6
|
+
subProperties?: Record<string, LLMConfigProperty>;
|
|
7
|
+
};
|
|
8
|
+
export type LLMConfig = {
|
|
9
|
+
properties?: Record<string, LLMConfigProperty>;
|
|
10
|
+
};
|
|
1
11
|
export type CustomComponent = {
|
|
2
12
|
id: string;
|
|
3
13
|
createdAt: string;
|
|
@@ -33,6 +43,7 @@ export type CustomComponent = {
|
|
|
33
43
|
data: CustomComponentProperty;
|
|
34
44
|
};
|
|
35
45
|
};
|
|
46
|
+
llmConfig?: LLMConfig;
|
|
36
47
|
};
|
|
37
48
|
export type CustomComponentProperty = CustomComponentCommonProperty | CustomComponentCustomProperty | CustomComponentStringProperty | CustomComponentComponentProperty | CustomComponentPropertyWithSubProperties;
|
|
38
49
|
export interface CustomComponentPropertyBase {
|
|
@@ -45,7 +56,6 @@ export interface CustomComponentPropertyBase {
|
|
|
45
56
|
defaultValue?: any;
|
|
46
57
|
};
|
|
47
58
|
};
|
|
48
|
-
llmConfig?: LLMConfig;
|
|
49
59
|
}
|
|
50
60
|
export interface CustomComponentPropertyWithSubProperties extends CustomComponentPropertyBase {
|
|
51
61
|
type: 'json' | 'yaml' | 'array';
|
|
@@ -83,13 +93,3 @@ export interface CustomComponentComponentProperty extends CustomComponentPropert
|
|
|
83
93
|
};
|
|
84
94
|
};
|
|
85
95
|
}
|
|
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
|
-
};
|
|
@@ -2,3 +2,4 @@ import { TemplateModel } from '@blocklet/pages-kit-core';
|
|
|
2
2
|
import { Page, Section } from '../types/state';
|
|
3
3
|
export declare const getPageTemplateModel: (page: Page, isClone?: boolean) => TemplateModel;
|
|
4
4
|
export declare const getPageAllSections: (page: Page) => Section[];
|
|
5
|
+
export declare const unzipSection: (section: any) => 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.48",
|
|
4
4
|
"description": "Pages Kit components and utils for blocklet(s)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -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.48"
|
|
155
155
|
},
|
|
156
156
|
"peerDependencies": {
|
|
157
157
|
"@arcblock/ux": "^2.11.35",
|