@fugood/bricks-project 2.21.0 → 2.22.0-beta.1

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
@@ -42,10 +42,13 @@ export type Action = {
42
42
  name: string
43
43
  }
44
44
 
45
+ // Find correct key in bricks-project/utils/event-props for EventAction
46
+ export type EventProperty = string
47
+
45
48
  export type ActionWithParams = Action & {
46
49
  params?: Array<{
47
50
  input: string
48
- value?: any
51
+ value?: any | EventProperty
49
52
  mapping?: string
50
53
  }>
51
54
  }
@@ -53,7 +56,7 @@ export type ActionWithParams = Action & {
53
56
  export type ActionWithDataParams = Action & {
54
57
  dataParams?: Array<{
55
58
  input: () => Data
56
- value?: any
59
+ value?: any | EventProperty
57
60
  mapping?: string
58
61
  }>
59
62
  }
@@ -64,8 +67,6 @@ export type EventAction = {
64
67
  handler: 'system' | (() => Brick | Generator) | SubspaceID | ItemBrickID
65
68
  action: Action
66
69
  waitAsync?: boolean
67
- // Event Property Definition mapping to params (use path to replace)
68
- eventPropertyMapping?: object
69
70
  }
70
71
 
71
72
  export type EventActionForItem = {
@@ -76,8 +77,6 @@ export type EventActionForItem = {
76
77
  | ItemBrickID
77
78
  action: Action
78
79
  waitAsync?: boolean
79
- // Event Property Definition mapping to params (use path to replace)
80
- eventPropertyMapping?: object
81
80
  }
82
81
 
83
82
  export type ApplicationFont = {