@blocklet/pages-kit 0.2.320 → 0.2.321
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/components/ThemeProvider.js +11 -4
- package/lib/cjs/builtin/async/ai-runtime/locales/index.js +4 -0
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/Input.js +29 -17
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/Output.js +36 -17
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/Page.js +84 -77
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/components/CodePreview.js +2 -2
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/components/Loading.js +7 -5
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/components/UserQuestion.js +4 -4
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/contexts/V0Runtime.js +4 -1
- package/lib/cjs/builtin/iconify/react.js +8 -2
- package/lib/cjs/components/CustomComponentRenderer/state.js +14 -0
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/cjs/utils/inject-global-components-dump-json.js +8 -3
- package/lib/esm/builtin/async/ai-runtime/components/ThemeProvider.js +11 -4
- package/lib/esm/builtin/async/ai-runtime/locales/index.js +4 -0
- package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/Input.js +29 -17
- package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/Output.js +36 -17
- package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/Page.js +84 -78
- package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/components/CodePreview.js +2 -2
- package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/components/Loading.js +7 -5
- package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/components/UserQuestion.js +4 -4
- package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/contexts/V0Runtime.js +4 -1
- package/lib/esm/builtin/iconify/react.js +7 -1
- package/lib/esm/components/CustomComponentRenderer/state.js +11 -0
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/utils/inject-global-components-dump-json.js +8 -3
- package/lib/types/builtin/async/ai-runtime/locales/index.d.ts +4 -0
- package/lib/types/builtin/async/ai-runtime/runtime-components/V0/Page.d.ts +1 -5
- package/lib/types/builtin/async/ai-runtime/runtime-components/V0/contexts/V0Runtime.d.ts +1 -0
- package/lib/types/builtin/iconify/react.d.ts +2 -1
- package/lib/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -412,7 +412,7 @@ export default function FormDemo() {
|
|
|
412
412
|
// '@blocklet/pages-kit/builtin/iconify/react'
|
|
413
413
|
{
|
|
414
414
|
name: '@blocklet/pages-kit/builtin/iconify/react',
|
|
415
|
-
description: 'A iconify/react component for pages-kit builtin package, all icons
|
|
415
|
+
description: 'A iconify/react component for pages-kit builtin package, all used icons are imported from this package (based on iconify)',
|
|
416
416
|
docs: {
|
|
417
417
|
components: ['Icon'],
|
|
418
418
|
import: 'import { Icon } from "@blocklet/pages-kit/builtin/iconify/react"',
|
|
@@ -423,8 +423,13 @@ export default function FormDemo() {
|
|
|
423
423
|
code: `
|
|
424
424
|
import { Icon } from '@blocklet/pages-kit/builtin/iconify/react';
|
|
425
425
|
|
|
426
|
+
|
|
426
427
|
export default function TablerSuccessIcon() {
|
|
427
|
-
return <Icon icon="tabler:check"
|
|
428
|
+
return <Icon icon="tabler:check" sx={{
|
|
429
|
+
mr: 1,
|
|
430
|
+
fontSize: 24,
|
|
431
|
+
color: 'success.main'
|
|
432
|
+
}}/>
|
|
428
433
|
}
|
|
429
434
|
`,
|
|
430
435
|
},
|
|
@@ -1110,7 +1115,7 @@ export default function LocalCustomComponentRendererDemo({ code }) {
|
|
|
1110
1115
|
];
|
|
1111
1116
|
// set dumpJSON to AI Studio knowledge
|
|
1112
1117
|
const shouldUpdateKnowledge = true;
|
|
1113
|
-
const cookie = 'CookieConsent=true; _ga=GA1.2.1343579140.1705048750; _ga_B1V5Y6VTCW=GS1.2.1705048750.1.1.1705049433.0.0.0; __stripe_mid=b799e3a9-894f-4069-aa7b-731906316d4b34cd93; nf_lang=
|
|
1118
|
+
const cookie = 'CookieConsent=true; _ga=GA1.2.1343579140.1705048750; _ga_B1V5Y6VTCW=GS1.2.1705048750.1.1.1705049433.0.0.0; __stripe_mid=b799e3a9-894f-4069-aa7b-731906316d4b34cd93; nf_lang=en; login_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0eXBlIjoidXNlciIsImRpZCI6InoxVENDb21nQ0pOSGJIV2V0VFdHZGhQQjZOWVoyUmVEakx1Iiwicm9sZSI6Im93bmVyIiwicHJvdmlkZXIiOiJ3YWxsZXQiLCJ3YWxsZXRPUyI6IndlYiIsInBhc3Nwb3J0Ijp7ImlkIjoiejJpVHkyWkRUdENIamJLNEh6ZXQ5U25aR2pjRnRYODFHTjk4ViJ9LCJmdWxsTmFtZSI6Illvbmd6aHVvIExpYW5nIiwiaWF0IjoxNzE2NjkyMTQyLCJleHAiOjE3MTY2OTU3NDJ9.DuUCAOo7j-5w7eMQgd4FWWpPwD9OTebSAHavbSkuRx4';
|
|
1114
1119
|
const aiStudioUrl = 'https://bbqa2t5pfyfroyobmzknmktshckzto4btkfagxyjqwy.did.abtnet.io/ai-studio';
|
|
1115
1120
|
const datasetId = '443696818363039744';
|
|
1116
1121
|
if (cookie && shouldUpdateKnowledge && aiStudioUrl && datasetId) {
|
|
@@ -92,6 +92,8 @@ export declare const translations: {
|
|
|
92
92
|
cannotSetPropertiesTip: string;
|
|
93
93
|
codePreview: string;
|
|
94
94
|
codePreviewTip: string;
|
|
95
|
+
hideSlider: string;
|
|
96
|
+
showSlider: string;
|
|
95
97
|
};
|
|
96
98
|
};
|
|
97
99
|
zh: {
|
|
@@ -187,6 +189,8 @@ export declare const translations: {
|
|
|
187
189
|
cannotSetPropertiesTip: string;
|
|
188
190
|
codePreview: string;
|
|
189
191
|
codePreviewTip: string;
|
|
192
|
+
hideSlider: string;
|
|
193
|
+
showSlider: string;
|
|
190
194
|
};
|
|
191
195
|
};
|
|
192
196
|
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare function Icon(props: any): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export default Icon;
|