@fugood/bricks-project 2.23.0-beta.45 → 2.23.0-beta.49

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.
@@ -57,7 +57,7 @@ export type GeneratorMCPActionReadResource = ActionWithParams & {
57
57
  }
58
58
  | {
59
59
  input: 'variables'
60
- value?: {} | DataLink | EventProperty
60
+ value?: { [key: string]: any } | DataLink | EventProperty
61
61
  mapping?: string
62
62
  }
63
63
  >
@@ -89,7 +89,7 @@ export type GeneratorMCPActionCallTool = ActionWithParams & {
89
89
  }
90
90
  | {
91
91
  input: 'variables'
92
- value?: {} | DataLink | EventProperty
92
+ value?: { [key: string]: any } | DataLink | EventProperty
93
93
  mapping?: string
94
94
  }
95
95
  >
@@ -121,7 +121,7 @@ export type GeneratorMCPActionGetPrompt = ActionWithParams & {
121
121
  }
122
122
  | {
123
123
  input: 'variables'
124
- value?: {} | DataLink | EventProperty
124
+ value?: { [key: string]: any } | DataLink | EventProperty
125
125
  mapping?: string
126
126
  }
127
127
  >
package/types/index.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  export * from './data'
2
2
  export * from './data-calc'
3
+ export * from './data-calc-script'
4
+ export * from './data-calc-command'
3
5
  export * from './generators'
4
6
  export * from './bricks'
5
7
  export * from './animation'
package/types/system.ts CHANGED
@@ -11,7 +11,7 @@ import type { Animation } from './animation'
11
11
  import type { Canvas } from './canvas'
12
12
  import type { Data, DataLink } from './data'
13
13
 
14
- /* Change Data value with script expression */
14
+ /* Change Data value with script expression. One expression of return value */
15
15
  export type SystemActionPropertyBankExpression = ActionWithParams & {
16
16
  __actionName: 'PROPERTY_BANK_EXPRESSION'
17
17
  params?: Array<
@@ -22,7 +22,13 @@ export type SystemActionPropertyBankExpression = ActionWithParams & {
22
22
  }
23
23
  | {
24
24
  input: 'variables'
25
- value?: {} | DataLink | EventProperty
25
+ value?:
26
+ | Array<{
27
+ id?: string
28
+ key?: string
29
+ }>
30
+ | DataLink
31
+ | EventProperty
26
32
  mapping?: string
27
33
  }
28
34
  | {
@@ -153,7 +159,13 @@ export type SystemActionChangeCanvas = ActionWithParams & {
153
159
  }
154
160
  | {
155
161
  input: 'canvasKeyMapList'
156
- value?: {} | DataLink | EventProperty
162
+ value?:
163
+ | Array<{
164
+ key?: string
165
+ value?: string
166
+ }>
167
+ | DataLink
168
+ | EventProperty
157
169
  mapping?: string
158
170
  }
159
171
  | {
@@ -218,7 +230,15 @@ export type SystemActionAlert = ActionWithParams & {
218
230
  }
219
231
  | {
220
232
  input: 'selections'
221
- value?: {} | DataLink | EventProperty
233
+ value?:
234
+ | Array<{
235
+ label?: string
236
+ color?: string
237
+ value?: string
238
+ disableResult?: boolean
239
+ }>
240
+ | DataLink
241
+ | EventProperty
222
242
  mapping?: string
223
243
  }
224
244
  | {
@@ -415,7 +435,15 @@ export type SystemActionChannelSubscribe = ActionWithParams & {
415
435
  }
416
436
  | {
417
437
  input: 'dataAssignList'
418
- value?: {} | DataLink | EventProperty
438
+ value?:
439
+ | Array<{
440
+ path?: string
441
+ type?: any
442
+ id?: string
443
+ required?: boolean
444
+ }>
445
+ | DataLink
446
+ | EventProperty
419
447
  mapping?: string
420
448
  }
421
449
  | {
@@ -425,7 +453,15 @@ export type SystemActionChannelSubscribe = ActionWithParams & {
425
453
  }
426
454
  | {
427
455
  input: 'progressAssignList'
428
- value?: {} | DataLink | EventProperty
456
+ value?:
457
+ | Array<{
458
+ path?: string
459
+ type?: any
460
+ id?: string
461
+ required?: boolean
462
+ }>
463
+ | DataLink
464
+ | EventProperty
429
465
  mapping?: string
430
466
  }
431
467
  | {
@@ -210,6 +210,25 @@ export const templateEventPropsMap = {
210
210
  'BRICK_GENERATIVE_MEDIA_ERROR', // type: string
211
211
  ],
212
212
  },
213
+ BRICK_MAPS: {
214
+ onMarkerPress: [
215
+ 'BRICK_MAPS_MARKER_ID', // type: string
216
+ 'BRICK_MAPS_MARKER_TITLE', // type: string
217
+ 'BRICK_MAPS_MARKER_DESCRIPTION', // type: string
218
+ 'BRICK_MAPS_MARKER_LATITUDE', // type: number
219
+ 'BRICK_MAPS_MARKER_LONGITUDE', // type: number
220
+ ],
221
+ onMapPress: [
222
+ 'BRICK_MAPS_PRESS_LATITUDE', // type: number
223
+ 'BRICK_MAPS_PRESS_LONGITUDE', // type: number
224
+ ],
225
+ onRegionChange: [
226
+ 'BRICK_MAPS_REGION_LATITUDE', // type: number
227
+ 'BRICK_MAPS_REGION_LONGITUDE', // type: number
228
+ 'BRICK_MAPS_REGION_LATITUDE_DELTA', // type: number
229
+ 'BRICK_MAPS_REGION_LONGITUDE_DELTA', // type: number
230
+ ],
231
+ },
213
232
  GENERATOR_TICK: {
214
233
  ticking: [
215
234
  'GENERATOR_TICK_COUNTDOWN', // type: number