@fugood/bricks-project 2.21.0-beta.14.test8 → 2.21.0-beta.16

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/types/common.ts CHANGED
@@ -46,7 +46,7 @@ export type ActionWithParams = Action & {
46
46
  params?: Array<{
47
47
  input: string
48
48
  value?: any
49
- mapping?: boolean
49
+ mapping?: string
50
50
  }>
51
51
  }
52
52
 
@@ -54,7 +54,7 @@ export type ActionWithDataParams = Action & {
54
54
  dataParams?: Array<{
55
55
  input: () => Data
56
56
  value?: any
57
- mapping?: boolean
57
+ mapping?: string
58
58
  }>
59
59
  }
60
60
 
package/types/data.ts CHANGED
@@ -47,6 +47,7 @@ export type Data<T = any> = DataDef & {
47
47
  min?: number
48
48
  step?: number
49
49
  }
50
+ | DataAssetKind
50
51
  | {
51
52
  type:
52
53
  | 'color'
@@ -55,18 +56,28 @@ export type Data<T = any> = DataDef & {
55
56
  | 'rich-text-content'
56
57
  | 'sandbox-script'
57
58
  | 'llm-prompt'
58
- | 'media-resource-image'
59
- | 'media-resource-video'
60
- | 'media-resource-audio'
61
- | 'media-resource-file'
62
- | 'lottie-file-uri'
63
- | 'ggml-model-asset'
64
- | 'gguf-model-asset'
65
- | 'binary-asset'
66
59
  }
67
60
  value: T
68
61
  }
69
62
 
63
+ export type DataAssetKind = {
64
+ type:
65
+ | 'media-resource-image'
66
+ | 'media-resource-video'
67
+ | 'media-resource-audio'
68
+ | 'media-resource-file'
69
+ | 'lottie-file-uri'
70
+ | 'ggml-model-asset'
71
+ | 'gguf-model-asset'
72
+ | 'binary-asset'
73
+ preload?: {
74
+ type: 'url'
75
+ hashType: 'md5' | 'sha256'
76
+ hash: string
77
+ }
78
+ metadata?: { [key: string]: any }
79
+ }
80
+
70
81
  export type DataLink = {
71
82
  __typename: 'DataLink'
72
83
  data: () => Data