@blocklet/pages-kit 0.2.317 → 0.2.318

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 (48) hide show
  1. package/lib/cjs/builtin/async/ai-runtime/locales/index.js +26 -0
  2. package/lib/cjs/builtin/async/ai-runtime/runtime-components/ChatOutput/MessageErrorView.js +2 -2
  3. package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/Input.js +66 -36
  4. package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/Output.js +190 -57
  5. package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/Page.js +236 -83
  6. package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/components/CodePreview.js +101 -0
  7. package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/components/ConfirmDialog.js +60 -0
  8. package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/components/Loading.js +152 -0
  9. package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/components/PropertiesSetting.js +80 -0
  10. package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/components/UserQuestion.js +32 -0
  11. package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/contexts/V0Runtime.js +54 -0
  12. package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/utils.js +13 -0
  13. package/lib/cjs/builtin/async/ai-runtime/state/session.js +52 -23
  14. package/lib/cjs/components/CustomComponentRenderer/state.js +23 -4
  15. package/lib/cjs/tsconfig.tsbuildinfo +1 -1
  16. package/lib/cjs/utils/inject-global-components-dump-json.js +1 -1
  17. package/lib/esm/builtin/async/ai-runtime/locales/index.js +26 -0
  18. package/lib/esm/builtin/async/ai-runtime/runtime-components/ChatOutput/MessageErrorView.js +2 -2
  19. package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/Input.js +60 -30
  20. package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/Output.js +191 -58
  21. package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/Page.js +236 -83
  22. package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/components/CodePreview.js +92 -0
  23. package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/components/ConfirmDialog.js +55 -0
  24. package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/components/Loading.js +144 -0
  25. package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/components/PropertiesSetting.js +75 -0
  26. package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/components/UserQuestion.js +26 -0
  27. package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/contexts/V0Runtime.js +49 -0
  28. package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/utils.js +9 -0
  29. package/lib/esm/builtin/async/ai-runtime/state/session.js +52 -23
  30. package/lib/esm/components/CustomComponentRenderer/state.js +22 -4
  31. package/lib/esm/tsconfig.tsbuildinfo +1 -1
  32. package/lib/esm/utils/inject-global-components-dump-json.js +1 -1
  33. package/lib/types/builtin/async/ai-runtime/api/session.d.ts +1 -0
  34. package/lib/types/builtin/async/ai-runtime/locales/index.d.ts +26 -0
  35. package/lib/types/builtin/async/ai-runtime/runtime-components/ChatOutput/MessageErrorView.d.ts +2 -1
  36. package/lib/types/builtin/async/ai-runtime/runtime-components/V0/Input.d.ts +1 -1
  37. package/lib/types/builtin/async/ai-runtime/runtime-components/V0/components/CodePreview.d.ts +20 -0
  38. package/lib/types/builtin/async/ai-runtime/runtime-components/V0/components/ConfirmDialog.d.ts +6 -0
  39. package/lib/types/builtin/async/ai-runtime/runtime-components/V0/components/Loading.d.ts +3 -0
  40. package/lib/types/builtin/async/ai-runtime/runtime-components/V0/components/PropertiesSetting.d.ts +6 -0
  41. package/lib/types/builtin/async/ai-runtime/runtime-components/V0/components/UserQuestion.d.ts +3 -0
  42. package/lib/types/builtin/async/ai-runtime/runtime-components/V0/contexts/V0Runtime.d.ts +16 -0
  43. package/lib/types/builtin/async/ai-runtime/runtime-components/V0/utils.d.ts +7 -0
  44. package/lib/types/builtin/async/ai-runtime/state/session.d.ts +11 -3
  45. package/lib/types/components/CustomComponentRenderer/state.d.ts +1 -0
  46. package/lib/types/tsconfig.tsbuildinfo +1 -1
  47. package/lib/types/types/core.d.ts +2 -1
  48. package/package.json +1 -1
@@ -26,10 +26,11 @@ export type CustomComponent = {
26
26
  properties?: {
27
27
  [id: string]: {
28
28
  index: number;
29
- data: CustomComponentCommonProperty | CustomComponentCustomProperty | CustomComponentStringProperty | CustomComponentComponentProperty;
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.317",
3
+ "version": "0.2.318",
4
4
  "description": "Pages Kit components and utils",
5
5
  "publishConfig": {
6
6
  "access": "public"