@blocklet/pages-kit 0.2.317 → 0.2.319
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/async/ai-runtime/locales/index.js +26 -0
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/ChatOutput/MessageErrorView.js +2 -2
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/GoogleSearch/GoogleSearchSourcesView.js +1 -1
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/SimpleChat/index.js +13 -9
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/Input.js +66 -36
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/Output.js +190 -57
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/Page.js +236 -83
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/components/CodePreview.js +101 -0
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/components/ConfirmDialog.js +60 -0
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/components/Loading.js +152 -0
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/components/PropertiesSetting.js +80 -0
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/components/UserQuestion.js +32 -0
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/contexts/V0Runtime.js +54 -0
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/utils.js +13 -0
- package/lib/cjs/builtin/async/ai-runtime/state/session.js +52 -23
- package/lib/cjs/components/CustomComponentRenderer/state.js +23 -4
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/cjs/utils/inject-global-components-dump-json.js +1 -1
- package/lib/esm/builtin/async/ai-runtime/locales/index.js +26 -0
- package/lib/esm/builtin/async/ai-runtime/runtime-components/ChatOutput/MessageErrorView.js +2 -2
- package/lib/esm/builtin/async/ai-runtime/runtime-components/GoogleSearch/GoogleSearchSourcesView.js +1 -1
- package/lib/esm/builtin/async/ai-runtime/runtime-components/SimpleChat/index.js +16 -12
- package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/Input.js +60 -30
- package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/Output.js +191 -58
- package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/Page.js +236 -83
- package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/components/CodePreview.js +92 -0
- package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/components/ConfirmDialog.js +55 -0
- package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/components/Loading.js +144 -0
- package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/components/PropertiesSetting.js +75 -0
- package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/components/UserQuestion.js +26 -0
- package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/contexts/V0Runtime.js +49 -0
- package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/utils.js +9 -0
- package/lib/esm/builtin/async/ai-runtime/state/session.js +52 -23
- package/lib/esm/components/CustomComponentRenderer/state.js +22 -4
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/utils/inject-global-components-dump-json.js +1 -1
- package/lib/types/builtin/async/ai-runtime/api/session.d.ts +1 -0
- package/lib/types/builtin/async/ai-runtime/locales/index.d.ts +26 -0
- package/lib/types/builtin/async/ai-runtime/runtime-components/ChatOutput/MessageErrorView.d.ts +2 -1
- package/lib/types/builtin/async/ai-runtime/runtime-components/V0/Input.d.ts +1 -1
- package/lib/types/builtin/async/ai-runtime/runtime-components/V0/components/CodePreview.d.ts +20 -0
- package/lib/types/builtin/async/ai-runtime/runtime-components/V0/components/ConfirmDialog.d.ts +6 -0
- package/lib/types/builtin/async/ai-runtime/runtime-components/V0/components/Loading.d.ts +3 -0
- package/lib/types/builtin/async/ai-runtime/runtime-components/V0/components/PropertiesSetting.d.ts +6 -0
- package/lib/types/builtin/async/ai-runtime/runtime-components/V0/components/UserQuestion.d.ts +3 -0
- package/lib/types/builtin/async/ai-runtime/runtime-components/V0/contexts/V0Runtime.d.ts +16 -0
- package/lib/types/builtin/async/ai-runtime/runtime-components/V0/utils.d.ts +7 -0
- package/lib/types/builtin/async/ai-runtime/state/session.d.ts +11 -3
- package/lib/types/components/CustomComponentRenderer/state.d.ts +1 -0
- package/lib/types/tsconfig.tsbuildinfo +1 -1
- package/lib/types/types/core.d.ts +2 -1
- package/package.json +7 -7
|
@@ -26,10 +26,11 @@ export type CustomComponent = {
|
|
|
26
26
|
properties?: {
|
|
27
27
|
[id: string]: {
|
|
28
28
|
index: number;
|
|
29
|
-
data:
|
|
29
|
+
data: CustomComponentProperty;
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
|
+
export type CustomComponentProperty = CustomComponentCommonProperty | CustomComponentCustomProperty | CustomComponentStringProperty | CustomComponentComponentProperty;
|
|
33
34
|
export interface CustomComponentPropertyBase {
|
|
34
35
|
id: string;
|
|
35
36
|
key?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/pages-kit",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.319",
|
|
4
4
|
"description": "Pages Kit components and utils",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -85,9 +85,9 @@
|
|
|
85
85
|
"url": "git+https://github.com/blocklet/pages-kit.git"
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
|
-
"@arcblock/did-connect": "^2.9.
|
|
89
|
-
"@blocklet/ai-kit": "^0.1.
|
|
90
|
-
"@blocklet/ai-runtime": "^0.2.
|
|
88
|
+
"@arcblock/did-connect": "^2.9.85",
|
|
89
|
+
"@blocklet/ai-kit": "^0.1.34",
|
|
90
|
+
"@blocklet/ai-runtime": "^0.2.9",
|
|
91
91
|
"@blocklet/js-sdk": "1.16.26",
|
|
92
92
|
"@blocklet/sdk": "^1.16.26",
|
|
93
93
|
"@iconify/react": "^4.1.1",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"react-scroll-to-bottom": "^4.2.0",
|
|
114
114
|
"react-share": "^5.1.0",
|
|
115
115
|
"react-syntax-highlighter": "^15.5.0",
|
|
116
|
-
"react-wrap-balancer": "^1.1.
|
|
116
|
+
"react-wrap-balancer": "^1.1.1",
|
|
117
117
|
"remark-gfm": "^4.0.0",
|
|
118
118
|
"typescript": "^5.4.5",
|
|
119
119
|
"ufo": "^1.5.3",
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"react-router-dom": "^6.16.0"
|
|
134
134
|
},
|
|
135
135
|
"devDependencies": {
|
|
136
|
-
"@arcblock/ux": "^2.9.
|
|
136
|
+
"@arcblock/ux": "^2.9.85",
|
|
137
137
|
"@emotion/cache": "^11.11.0",
|
|
138
138
|
"@emotion/css": "^11.11.2",
|
|
139
139
|
"@emotion/react": "^11.11.4",
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
"@types/lodash": "^4.17.4",
|
|
144
144
|
"@types/mustache": "^4.2.5",
|
|
145
145
|
"@types/node-fetch": "^2.6.11",
|
|
146
|
-
"@types/react": "^18.3.
|
|
146
|
+
"@types/react": "^18.3.3",
|
|
147
147
|
"@types/react-helmet": "^6.1.11",
|
|
148
148
|
"@types/react-scroll-to-bottom": "^4.2.5",
|
|
149
149
|
"@types/react-syntax-highlighter": "^15.5.13",
|