@fugood/bricks-project 2.21.0-beta.28 → 2.21.0-beta.31
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/compile/action-name-map.ts +4 -0
- package/package.json +2 -2
- package/types/bricks.ts +12 -0
- package/types/generators.ts +18 -3
- package/types/system.ts +20 -0
|
@@ -47,6 +47,7 @@ export const templateActionNameMap = {
|
|
|
47
47
|
selections: 'ALERT_SELECTIONS',
|
|
48
48
|
selectionResult: 'ALERT_SELECTION_RESULT',
|
|
49
49
|
timeout: 'ALERT_TIMEOUT',
|
|
50
|
+
hideSelections: 'ALERT_HIDE_SELECTIONS',
|
|
50
51
|
},
|
|
51
52
|
POPUP_RESET: {
|
|
52
53
|
popupClearType: 'POPUP_CLEAR_TYPE',
|
|
@@ -54,6 +55,7 @@ export const templateActionNameMap = {
|
|
|
54
55
|
},
|
|
55
56
|
TAKE_SCREENSHOT: {
|
|
56
57
|
currentSubspace: 'TAKE_SCREENSHOT_CURRENT_SUBSPACE',
|
|
58
|
+
brickId: 'TAKE_SCREENSHOT_BRICK_ID',
|
|
57
59
|
format: 'TAKE_SCREENSHOT_FORMAT',
|
|
58
60
|
quality: 'TAKE_SCREENSHOT_QUALITY',
|
|
59
61
|
width: 'TAKE_SCREENSHOT_WIDTH',
|
|
@@ -65,7 +67,9 @@ export const templateActionNameMap = {
|
|
|
65
67
|
type: 'CHANNEL_SUBSCRIBE_TYPE',
|
|
66
68
|
livetime: 'CHANNEL_SUBSCRIBE_LIVETIME',
|
|
67
69
|
dataResult: 'CHANNEL_SUBSCRIBE_DATA_RESULT',
|
|
70
|
+
dataAssignList: 'CHANNEL_SUBSCRIBE_DATA_ASSIGN_LIST',
|
|
68
71
|
progressResult: 'CHANNEL_SUBSCRIBE_PROGRESS_RESULT',
|
|
72
|
+
progressAssignList: 'CHANNEL_SUBSCRIBE_PROGRESS_ASSIGN_LIST',
|
|
69
73
|
errorResult: 'CHANNEL_SUBSCRIBE_ERROR_RESULT',
|
|
70
74
|
},
|
|
71
75
|
CHANNEL_UNSUBSCRIBE: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fugood/bricks-project",
|
|
3
|
-
"version": "2.21.0-beta.
|
|
3
|
+
"version": "2.21.0-beta.31",
|
|
4
4
|
"main": "index.ts",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "node scripts/build.js"
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
"lodash": "^4.17.4",
|
|
14
14
|
"uuid": "^8.3.1"
|
|
15
15
|
},
|
|
16
|
-
"gitHead": "
|
|
16
|
+
"gitHead": "366ad791d1217e2a5b7dc9ab7ba65196023f2357"
|
|
17
17
|
}
|
package/types/bricks.ts
CHANGED
|
@@ -3153,6 +3153,17 @@ Default property:
|
|
|
3153
3153
|
}
|
|
3154
3154
|
}
|
|
3155
3155
|
>
|
|
3156
|
+
/* Event of the Camera mount error */
|
|
3157
|
+
mountError?: Array<
|
|
3158
|
+
EventAction & {
|
|
3159
|
+
eventPropertyMapping?: {
|
|
3160
|
+
mountError: {
|
|
3161
|
+
type: 'string'
|
|
3162
|
+
path: string
|
|
3163
|
+
}
|
|
3164
|
+
}
|
|
3165
|
+
}
|
|
3166
|
+
>
|
|
3156
3167
|
}
|
|
3157
3168
|
outlets?: {
|
|
3158
3169
|
/* Picture taken result */
|
|
@@ -3171,6 +3182,7 @@ Default property:
|
|
|
3171
3182
|
barcodeRead?: Animation
|
|
3172
3183
|
pictureTaken?: Animation
|
|
3173
3184
|
recordFinish?: Animation
|
|
3185
|
+
mountError?: Animation
|
|
3174
3186
|
}
|
|
3175
3187
|
}
|
|
3176
3188
|
|
package/types/generators.ts
CHANGED
|
@@ -3547,6 +3547,10 @@ Default property:
|
|
|
3547
3547
|
outlets?: {
|
|
3548
3548
|
/* Signal to create peer connection */
|
|
3549
3549
|
signal?: () => Data
|
|
3550
|
+
/* Local SDP offer */
|
|
3551
|
+
sdpOffer?: () => Data
|
|
3552
|
+
/* Local SDP answer */
|
|
3553
|
+
sdpAnswer?: () => Data
|
|
3550
3554
|
/* Peer connection state */
|
|
3551
3555
|
connectionState?: () => Data
|
|
3552
3556
|
/* ICE connection state */
|
|
@@ -3576,6 +3580,8 @@ export type GeneratorWebRTC = Generator &
|
|
|
3576
3580
|
__typename: 'SwitchCondInnerStateOutlet'
|
|
3577
3581
|
outlet:
|
|
3578
3582
|
| 'signal'
|
|
3583
|
+
| 'sdpOffer'
|
|
3584
|
+
| 'sdpAnswer'
|
|
3579
3585
|
| 'connectionState'
|
|
3580
3586
|
| 'iceConnectionState'
|
|
3581
3587
|
| 'signalingState'
|
|
@@ -4001,6 +4007,7 @@ Default property:
|
|
|
4001
4007
|
"cameraType": "back",
|
|
4002
4008
|
"cameraPosition": "top",
|
|
4003
4009
|
"nextButtonText": "NEXT",
|
|
4010
|
+
"skipButtonText": "SKIP",
|
|
4004
4011
|
"doneButtonText": "DONE",
|
|
4005
4012
|
"selectColumns": 3,
|
|
4006
4013
|
"sizeFactor": 2
|
|
@@ -4080,12 +4087,13 @@ Default property:
|
|
|
4080
4087
|
selectOptions?:
|
|
4081
4088
|
| DataLink
|
|
4082
4089
|
| {
|
|
4090
|
+
withConfirmButton?: boolean | DataLink
|
|
4083
4091
|
options?:
|
|
4084
4092
|
| Array<
|
|
4085
4093
|
| DataLink
|
|
4086
4094
|
| {
|
|
4087
4095
|
value?: string | DataLink
|
|
4088
|
-
|
|
4096
|
+
image_uri?: string | DataLink
|
|
4089
4097
|
label?: string | DataLink
|
|
4090
4098
|
}
|
|
4091
4099
|
>
|
|
@@ -4099,7 +4107,7 @@ Default property:
|
|
|
4099
4107
|
| DataLink
|
|
4100
4108
|
| {
|
|
4101
4109
|
value?: string | DataLink
|
|
4102
|
-
|
|
4110
|
+
image_uri?: string | DataLink
|
|
4103
4111
|
label?: string | DataLink
|
|
4104
4112
|
}
|
|
4105
4113
|
>
|
|
@@ -4110,6 +4118,7 @@ Default property:
|
|
|
4110
4118
|
yesnoOptions?:
|
|
4111
4119
|
| DataLink
|
|
4112
4120
|
| {
|
|
4121
|
+
withConfirmButton?: boolean | DataLink
|
|
4113
4122
|
yesBtnText?: string | DataLink
|
|
4114
4123
|
noBtnText?: string | DataLink
|
|
4115
4124
|
}
|
|
@@ -4146,6 +4155,8 @@ Default property:
|
|
|
4146
4155
|
cameraPosition?: 'top' | 'left' | 'bottom' | 'right' | DataLink
|
|
4147
4156
|
/* "Next" button text */
|
|
4148
4157
|
nextButtonText?: string | DataLink
|
|
4158
|
+
/* "Skip" button text */
|
|
4159
|
+
skipButtonText?: string | DataLink
|
|
4149
4160
|
/* "Done" button text */
|
|
4150
4161
|
doneButtonText?: string | DataLink
|
|
4151
4162
|
/* Select columns */
|
|
@@ -6659,6 +6670,8 @@ Default property:
|
|
|
6659
6670
|
}
|
|
6660
6671
|
*/
|
|
6661
6672
|
property?: {
|
|
6673
|
+
/* Whether to heat up generators on initialization for better performance */
|
|
6674
|
+
heatup?: boolean | DataLink
|
|
6662
6675
|
/* Messages */
|
|
6663
6676
|
initialMessages?:
|
|
6664
6677
|
| Array<
|
|
@@ -6726,6 +6739,8 @@ Default property:
|
|
|
6726
6739
|
>
|
|
6727
6740
|
}
|
|
6728
6741
|
outlets?: {
|
|
6742
|
+
/* Whether the assistant is heating up */
|
|
6743
|
+
isHeatingUp?: () => Data
|
|
6729
6744
|
/* Whether the assistant is responding */
|
|
6730
6745
|
isResponding?: () => Data
|
|
6731
6746
|
/* Messages of the assistant */
|
|
@@ -6747,7 +6762,7 @@ export type GeneratorAssistant = Generator &
|
|
|
6747
6762
|
| SwitchCondData
|
|
6748
6763
|
| {
|
|
6749
6764
|
__typename: 'SwitchCondInnerStateOutlet'
|
|
6750
|
-
outlet: 'isResponding' | 'messages'
|
|
6765
|
+
outlet: 'isHeatingUp' | 'isResponding' | 'messages'
|
|
6751
6766
|
value: any
|
|
6752
6767
|
}
|
|
6753
6768
|
}>
|
package/types/system.ts
CHANGED
|
@@ -222,6 +222,11 @@ export type SystemActionAlert = ActionWithParams & {
|
|
|
222
222
|
value?: number | DataLink
|
|
223
223
|
mapping?: string
|
|
224
224
|
}
|
|
225
|
+
| {
|
|
226
|
+
input: 'hideSelections'
|
|
227
|
+
value?: boolean | DataLink
|
|
228
|
+
mapping?: string
|
|
229
|
+
}
|
|
225
230
|
>
|
|
226
231
|
}
|
|
227
232
|
|
|
@@ -251,6 +256,11 @@ export type SystemActionTakeScreenshot = ActionWithParams & {
|
|
|
251
256
|
value?: boolean | DataLink
|
|
252
257
|
mapping?: string
|
|
253
258
|
}
|
|
259
|
+
| {
|
|
260
|
+
input: 'brickId'
|
|
261
|
+
value?: string | DataLink | (() => Brick)
|
|
262
|
+
mapping?: string
|
|
263
|
+
}
|
|
254
264
|
| {
|
|
255
265
|
input: 'format'
|
|
256
266
|
value?: 'jpg' | 'png' | DataLink
|
|
@@ -303,11 +313,21 @@ export type SystemActionChannelSubscribe = ActionWithParams & {
|
|
|
303
313
|
value?: string | DataLink | (() => Data)
|
|
304
314
|
mapping?: string
|
|
305
315
|
}
|
|
316
|
+
| {
|
|
317
|
+
input: 'dataAssignList'
|
|
318
|
+
value?: {} | DataLink
|
|
319
|
+
mapping?: string
|
|
320
|
+
}
|
|
306
321
|
| {
|
|
307
322
|
input: 'progressResult'
|
|
308
323
|
value?: string | DataLink | (() => Data)
|
|
309
324
|
mapping?: string
|
|
310
325
|
}
|
|
326
|
+
| {
|
|
327
|
+
input: 'progressAssignList'
|
|
328
|
+
value?: {} | DataLink
|
|
329
|
+
mapping?: string
|
|
330
|
+
}
|
|
311
331
|
| {
|
|
312
332
|
input: 'errorResult'
|
|
313
333
|
value?: string | DataLink | (() => Data)
|