@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.
Files changed (32) hide show
  1. package/lib/cjs/builtin/async/ai-runtime/components/ThemeProvider.js +11 -4
  2. package/lib/cjs/builtin/async/ai-runtime/locales/index.js +4 -0
  3. package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/Input.js +29 -17
  4. package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/Output.js +36 -17
  5. package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/Page.js +84 -77
  6. package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/components/CodePreview.js +2 -2
  7. package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/components/Loading.js +7 -5
  8. package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/components/UserQuestion.js +4 -4
  9. package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/contexts/V0Runtime.js +4 -1
  10. package/lib/cjs/builtin/iconify/react.js +8 -2
  11. package/lib/cjs/components/CustomComponentRenderer/state.js +14 -0
  12. package/lib/cjs/tsconfig.tsbuildinfo +1 -1
  13. package/lib/cjs/utils/inject-global-components-dump-json.js +8 -3
  14. package/lib/esm/builtin/async/ai-runtime/components/ThemeProvider.js +11 -4
  15. package/lib/esm/builtin/async/ai-runtime/locales/index.js +4 -0
  16. package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/Input.js +29 -17
  17. package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/Output.js +36 -17
  18. package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/Page.js +84 -78
  19. package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/components/CodePreview.js +2 -2
  20. package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/components/Loading.js +7 -5
  21. package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/components/UserQuestion.js +4 -4
  22. package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/contexts/V0Runtime.js +4 -1
  23. package/lib/esm/builtin/iconify/react.js +7 -1
  24. package/lib/esm/components/CustomComponentRenderer/state.js +11 -0
  25. package/lib/esm/tsconfig.tsbuildinfo +1 -1
  26. package/lib/esm/utils/inject-global-components-dump-json.js +8 -3
  27. package/lib/types/builtin/async/ai-runtime/locales/index.d.ts +4 -0
  28. package/lib/types/builtin/async/ai-runtime/runtime-components/V0/Page.d.ts +1 -5
  29. package/lib/types/builtin/async/ai-runtime/runtime-components/V0/contexts/V0Runtime.d.ts +1 -0
  30. package/lib/types/builtin/iconify/react.d.ts +2 -1
  31. package/lib/types/tsconfig.tsbuildinfo +1 -1
  32. 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 use this component',
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" fontSize={24} color="rgba(75, 85, 99, 1)"/>;
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=zh; login_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0eXBlIjoidXNlciIsImRpZCI6InoxVENDb21nQ0pOSGJIV2V0VFdHZGhQQjZOWVoyUmVEakx1Iiwicm9sZSI6Im93bmVyIiwicHJvdmlkZXIiOiJ3YWxsZXQiLCJ3YWxsZXRPUyI6IndlYiIsInBhc3Nwb3J0Ijp7ImlkIjoiejJpVHkyWkRUdENIamJLNEh6ZXQ5U25aR2pjRnRYODFHTjk4ViJ9LCJmdWxsTmFtZSI6Illvbmd6aHVvIExpYW5nIiwiaWF0IjoxNzE1OTEwMTM1LCJleHAiOjE3MTU5MTM3MzV9.jjkmYahNt9ZDSRtwdPek2Mf-lCzmU9CORPL40fwAN0A';
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,5 +1 @@
1
- declare function V0Page({ textColor, primaryColor }: {
2
- textColor?: string;
3
- primaryColor?: string;
4
- }): import("react/jsx-runtime").JSX.Element;
5
- export default V0Page;
1
+ export default function Page(): import("react/jsx-runtime").JSX.Element;
@@ -8,6 +8,7 @@ interface V0RuntimeContext {
8
8
  setPropertiesValueMap: (valueMap: {
9
9
  [taskId: string]: any;
10
10
  }) => void;
11
+ isMobile: boolean;
11
12
  }
12
13
  export declare function V0RuntimeProvider({ children }: {
13
14
  children?: ReactNode;
@@ -1 +1,2 @@
1
- export { Icon } from '@iconify/react';
1
+ export declare function Icon(props: any): import("react/jsx-runtime").JSX.Element;
2
+ export default Icon;