@fugood/bricks-project 2.21.0-beta.37 → 2.21.0-beta.41
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 +1 -4
- package/package.json +2 -2
- package/types/bricks.ts +2 -0
- package/types/generators.ts +155 -47
|
@@ -433,11 +433,8 @@ export const templateActionNameMap = {
|
|
|
433
433
|
|
|
434
434
|
GENERATOR_INFORMATION: {
|
|
435
435
|
GENERATOR_INFORMATION_SHOW: {
|
|
436
|
-
type: 'GENERATOR_INFORMATION_TYPE',
|
|
437
|
-
title: 'GENERATOR_INFORMATION_TITLE',
|
|
438
|
-
description: 'GENERATOR_INFORMATION_DESCRIPTION',
|
|
439
|
-
extraInfo: 'GENERATOR_INFORMATION_EXTRA_INFO',
|
|
440
436
|
displayLanguage: 'GENERATOR_INFORMATION_DISPLAY_LANGUAGE',
|
|
437
|
+
content: 'GENERATOR_INFORMATION_CONTENT',
|
|
441
438
|
},
|
|
442
439
|
},
|
|
443
440
|
GENERATOR_INTENT: {
|
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.41",
|
|
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": "4cc05b05b4157d351bb74f73b20649d61cd9f52e"
|
|
17
17
|
}
|
package/types/bricks.ts
CHANGED
|
@@ -3508,6 +3508,8 @@ Default property:
|
|
|
3508
3508
|
enableCache?: boolean | DataLink
|
|
3509
3509
|
/* The type of media to generate (image or video) */
|
|
3510
3510
|
type?: 'image' | 'video' | DataLink
|
|
3511
|
+
/* Default image to display when no generated image is available */
|
|
3512
|
+
defaultImage?: string | DataLink
|
|
3511
3513
|
/* The Lottie animation to show while generating */
|
|
3512
3514
|
loadingAnimation?: string | DataLink
|
|
3513
3515
|
/* The Lottie animation to show when an error occurs */
|
package/types/generators.ts
CHANGED
|
@@ -4033,11 +4033,25 @@ Default property:
|
|
|
4033
4033
|
"showBack": true,
|
|
4034
4034
|
"cameraType": "back",
|
|
4035
4035
|
"cameraPosition": "top",
|
|
4036
|
-
"nextButtonText": "NEXT",
|
|
4037
|
-
"skipButtonText": "SKIP",
|
|
4038
|
-
"doneButtonText": "DONE",
|
|
4039
4036
|
"selectColumns": 3,
|
|
4040
|
-
"sizeFactor":
|
|
4037
|
+
"sizeFactor": 1,
|
|
4038
|
+
"containerBackgroundColor": "#ffffff",
|
|
4039
|
+
"titleColor": "#000000",
|
|
4040
|
+
"descriptionColor": "#2e2e2e",
|
|
4041
|
+
"fieldBackgroundColor": "#E2E2E2",
|
|
4042
|
+
"fieldTextColor": "#1e1e1e",
|
|
4043
|
+
"fieldPlaceholderColor": "#333333",
|
|
4044
|
+
"fieldActiveBackgroundColor": "#FDCB8F",
|
|
4045
|
+
"fieldActiveTextColor": "#7D7D7D",
|
|
4046
|
+
"fieldControlColor": "#f08400",
|
|
4047
|
+
"primaryControlBtnBackgroundColor": "#1e1e1e",
|
|
4048
|
+
"primaryControlBtnTextColor": "#ffffff",
|
|
4049
|
+
"primaryControlBtnBorderColor": "#1e1e1e",
|
|
4050
|
+
"secondaryControlBtnBackgroundColor": "#ffffff",
|
|
4051
|
+
"secondaryControlBtnTextColor": "#1e1e1e",
|
|
4052
|
+
"secondaryControlBtnBorderColor": "#1e1e1e",
|
|
4053
|
+
"warnColor": "#ff4f00",
|
|
4054
|
+
"errorColor": "#ff0000"
|
|
4041
4055
|
}
|
|
4042
4056
|
*/
|
|
4043
4057
|
property?: {
|
|
@@ -4060,7 +4074,9 @@ Default property:
|
|
|
4060
4074
|
title?: string | DataLink
|
|
4061
4075
|
description?: string | DataLink
|
|
4062
4076
|
kind?:
|
|
4077
|
+
| 'language'
|
|
4063
4078
|
| 'number'
|
|
4079
|
+
| 'numeric-string'
|
|
4064
4080
|
| 'text'
|
|
4065
4081
|
| 'phone'
|
|
4066
4082
|
| 'email'
|
|
@@ -4069,6 +4085,11 @@ Default property:
|
|
|
4069
4085
|
| 'select'
|
|
4070
4086
|
| 'multi-select'
|
|
4071
4087
|
| 'yesno'
|
|
4088
|
+
| 'qty-list'
|
|
4089
|
+
| 'cart'
|
|
4090
|
+
| 'preference'
|
|
4091
|
+
| 'voice-record'
|
|
4092
|
+
| 'video-record'
|
|
4072
4093
|
| 'code-scan'
|
|
4073
4094
|
| 'message'
|
|
4074
4095
|
| DataLink
|
|
@@ -4083,6 +4104,11 @@ Default property:
|
|
|
4083
4104
|
| Array<string | DataLink>
|
|
4084
4105
|
| DataLink
|
|
4085
4106
|
| DataLink
|
|
4107
|
+
languageOptions?:
|
|
4108
|
+
| DataLink
|
|
4109
|
+
| {
|
|
4110
|
+
availableLangs?: Array<string | DataLink> | DataLink
|
|
4111
|
+
}
|
|
4086
4112
|
numberOptions?:
|
|
4087
4113
|
| DataLink
|
|
4088
4114
|
| {
|
|
@@ -4122,6 +4148,7 @@ Default property:
|
|
|
4122
4148
|
value?: string | DataLink
|
|
4123
4149
|
image_uri?: string | DataLink
|
|
4124
4150
|
label?: string | DataLink
|
|
4151
|
+
icon?: string | DataLink
|
|
4125
4152
|
}
|
|
4126
4153
|
>
|
|
4127
4154
|
| DataLink
|
|
@@ -4136,6 +4163,7 @@ Default property:
|
|
|
4136
4163
|
value?: string | DataLink
|
|
4137
4164
|
image_uri?: string | DataLink
|
|
4138
4165
|
label?: string | DataLink
|
|
4166
|
+
icon?: string | DataLink
|
|
4139
4167
|
}
|
|
4140
4168
|
>
|
|
4141
4169
|
| DataLink
|
|
@@ -4145,10 +4173,81 @@ Default property:
|
|
|
4145
4173
|
yesnoOptions?:
|
|
4146
4174
|
| DataLink
|
|
4147
4175
|
| {
|
|
4176
|
+
imageUri?: string | DataLink
|
|
4148
4177
|
withConfirmButton?: boolean | DataLink
|
|
4149
4178
|
yesBtnText?: string | DataLink
|
|
4150
4179
|
noBtnText?: string | DataLink
|
|
4151
4180
|
}
|
|
4181
|
+
qtyListOptions?:
|
|
4182
|
+
| DataLink
|
|
4183
|
+
| {
|
|
4184
|
+
items?:
|
|
4185
|
+
| Array<
|
|
4186
|
+
| DataLink
|
|
4187
|
+
| {
|
|
4188
|
+
id?: string | DataLink
|
|
4189
|
+
title?: string | DataLink
|
|
4190
|
+
description?: string | DataLink
|
|
4191
|
+
imageUri?: string | DataLink
|
|
4192
|
+
price?: number | DataLink
|
|
4193
|
+
}
|
|
4194
|
+
>
|
|
4195
|
+
| DataLink
|
|
4196
|
+
}
|
|
4197
|
+
cartOptions?:
|
|
4198
|
+
| DataLink
|
|
4199
|
+
| {
|
|
4200
|
+
items?:
|
|
4201
|
+
| Array<
|
|
4202
|
+
| DataLink
|
|
4203
|
+
| {
|
|
4204
|
+
id?: string | DataLink
|
|
4205
|
+
title?: string | DataLink
|
|
4206
|
+
description?: string | DataLink
|
|
4207
|
+
imageUri?: string | DataLink
|
|
4208
|
+
price?: number | DataLink
|
|
4209
|
+
qty?: number | DataLink
|
|
4210
|
+
}
|
|
4211
|
+
>
|
|
4212
|
+
| DataLink
|
|
4213
|
+
}
|
|
4214
|
+
preferenceOptions?:
|
|
4215
|
+
| DataLink
|
|
4216
|
+
| {
|
|
4217
|
+
settings?:
|
|
4218
|
+
| Array<
|
|
4219
|
+
| DataLink
|
|
4220
|
+
| {
|
|
4221
|
+
key?: string | DataLink
|
|
4222
|
+
title?: string | DataLink
|
|
4223
|
+
options?:
|
|
4224
|
+
| Array<
|
|
4225
|
+
| DataLink
|
|
4226
|
+
| {
|
|
4227
|
+
label?: string | DataLink
|
|
4228
|
+
value?: string | DataLink
|
|
4229
|
+
}
|
|
4230
|
+
>
|
|
4231
|
+
| DataLink
|
|
4232
|
+
multiple?: boolean | DataLink
|
|
4233
|
+
}
|
|
4234
|
+
>
|
|
4235
|
+
| DataLink
|
|
4236
|
+
}
|
|
4237
|
+
voiceRecordOptions?:
|
|
4238
|
+
| DataLink
|
|
4239
|
+
| {
|
|
4240
|
+
sampleRate?: number | DataLink
|
|
4241
|
+
bitDepth?: '8bit' | '16bit' | DataLink
|
|
4242
|
+
channels?: 'mono' | 'stereo' | DataLink
|
|
4243
|
+
maxDuration?: number | DataLink
|
|
4244
|
+
}
|
|
4245
|
+
videoRecordOptions?:
|
|
4246
|
+
| DataLink
|
|
4247
|
+
| {
|
|
4248
|
+
manuallyStart?: boolean | DataLink
|
|
4249
|
+
recordDuration?: number | DataLink
|
|
4250
|
+
}
|
|
4152
4251
|
messageOptions?:
|
|
4153
4252
|
| DataLink
|
|
4154
4253
|
| {
|
|
@@ -4172,6 +4271,14 @@ Default property:
|
|
|
4172
4271
|
}
|
|
4173
4272
|
>
|
|
4174
4273
|
| DataLink
|
|
4274
|
+
/* Display language (RFC 3066) */
|
|
4275
|
+
displayLang?: string | DataLink
|
|
4276
|
+
/* Banner image */
|
|
4277
|
+
bannerImage?: string | DataLink
|
|
4278
|
+
/* Banner image md5 */
|
|
4279
|
+
bannerImageMd5?: string | DataLink
|
|
4280
|
+
/* Show AI transcribe tip on the bottom of the modal */
|
|
4281
|
+
aiTranscribeTip?: boolean | DataLink
|
|
4175
4282
|
/* Show close button */
|
|
4176
4283
|
showClose?: boolean | DataLink
|
|
4177
4284
|
/* Show back button */
|
|
@@ -4196,22 +4303,32 @@ Default property:
|
|
|
4196
4303
|
containerBackgroundColor?: string | DataLink
|
|
4197
4304
|
/* Title color */
|
|
4198
4305
|
titleColor?: string | DataLink
|
|
4199
|
-
/*
|
|
4200
|
-
|
|
4201
|
-
/*
|
|
4202
|
-
|
|
4203
|
-
/*
|
|
4204
|
-
|
|
4205
|
-
/*
|
|
4206
|
-
textFieldBorderColor?: string | DataLink
|
|
4207
|
-
/* Text field text color */
|
|
4208
|
-
textFieldTextColor?: string | DataLink
|
|
4209
|
-
/* Field placeholder color */
|
|
4306
|
+
/* Description color */
|
|
4307
|
+
descriptionColor?: string | DataLink
|
|
4308
|
+
/* Input field background color */
|
|
4309
|
+
fieldBackgroundColor?: string | DataLink
|
|
4310
|
+
/* Input field text color */
|
|
4311
|
+
fieldTextColor?: string | DataLink
|
|
4312
|
+
/* Input field placeholder color */
|
|
4210
4313
|
fieldPlaceholderColor?: string | DataLink
|
|
4211
|
-
/*
|
|
4212
|
-
|
|
4213
|
-
/*
|
|
4214
|
-
|
|
4314
|
+
/* Selected option background color */
|
|
4315
|
+
fieldActiveBackgroundColor?: string | DataLink
|
|
4316
|
+
/* Selected option text color */
|
|
4317
|
+
fieldActiveTextColor?: string | DataLink
|
|
4318
|
+
/* Field control button color */
|
|
4319
|
+
fieldControlColor?: string | DataLink
|
|
4320
|
+
/* Primary control button background color */
|
|
4321
|
+
primaryControlBtnBackgroundColor?: string | DataLink
|
|
4322
|
+
/* Primary control button text color */
|
|
4323
|
+
primaryControlBtnTextColor?: string | DataLink
|
|
4324
|
+
/* Primary control button border color */
|
|
4325
|
+
primaryControlBtnBorderColor?: string | DataLink
|
|
4326
|
+
/* Secondary control button background color */
|
|
4327
|
+
secondaryControlBtnBackgroundColor?: string | DataLink
|
|
4328
|
+
/* Secondary control button text color */
|
|
4329
|
+
secondaryControlBtnTextColor?: string | DataLink
|
|
4330
|
+
/* Secondary control button border color */
|
|
4331
|
+
secondaryControlBtnBorderColor?: string | DataLink
|
|
4215
4332
|
/* Warn color */
|
|
4216
4333
|
warnColor?: string | DataLink
|
|
4217
4334
|
/* Error color */
|
|
@@ -4224,8 +4341,8 @@ Default property:
|
|
|
4224
4341
|
onBackQuestion?: Array<EventAction>
|
|
4225
4342
|
/* Event of change question */
|
|
4226
4343
|
onQuestionChange?: Array<EventAction>
|
|
4227
|
-
/* Event of
|
|
4228
|
-
|
|
4344
|
+
/* Event of user close question modal */
|
|
4345
|
+
onClose?: Array<EventAction>
|
|
4229
4346
|
/* Event of warning showed */
|
|
4230
4347
|
onWarning?: Array<EventAction>
|
|
4231
4348
|
/* Event of completed inquire */
|
|
@@ -4281,30 +4398,15 @@ export type GeneratorInformationActionShow = ActionWithParams & {
|
|
|
4281
4398
|
__actionName: 'GENERATOR_INFORMATION_SHOW'
|
|
4282
4399
|
params?: Array<
|
|
4283
4400
|
| {
|
|
4284
|
-
input: '
|
|
4285
|
-
value?: string | DataLink
|
|
4286
|
-
mapping?: string
|
|
4287
|
-
}
|
|
4288
|
-
| {
|
|
4289
|
-
input: 'title'
|
|
4290
|
-
value?: string | DataLink
|
|
4291
|
-
mapping?: string
|
|
4292
|
-
}
|
|
4293
|
-
| {
|
|
4294
|
-
input: 'description'
|
|
4401
|
+
input: 'displayLanguage'
|
|
4295
4402
|
value?: string | DataLink
|
|
4296
4403
|
mapping?: string
|
|
4297
4404
|
}
|
|
4298
4405
|
| {
|
|
4299
|
-
input: '
|
|
4406
|
+
input: 'content'
|
|
4300
4407
|
value?: {} | DataLink
|
|
4301
4408
|
mapping?: string
|
|
4302
4409
|
}
|
|
4303
|
-
| {
|
|
4304
|
-
input: 'displayLanguage'
|
|
4305
|
-
value?: string | DataLink
|
|
4306
|
-
mapping?: string
|
|
4307
|
-
}
|
|
4308
4410
|
>
|
|
4309
4411
|
}
|
|
4310
4412
|
|
|
@@ -4324,15 +4426,21 @@ Default property:
|
|
|
4324
4426
|
property?: {
|
|
4325
4427
|
/* Modal mode */
|
|
4326
4428
|
modalMode?: 'root' | 'in-subspace' | DataLink
|
|
4327
|
-
/* Information
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4429
|
+
/* Information contents */
|
|
4430
|
+
content?:
|
|
4431
|
+
| DataLink
|
|
4432
|
+
| {
|
|
4433
|
+
type?: 'loading' | 'info' | 'warning' | 'success' | 'queue-number' | DataLink
|
|
4434
|
+
title?: string | DataLink
|
|
4435
|
+
description?: string | DataLink
|
|
4436
|
+
queueNumberLabel?:
|
|
4437
|
+
| DataLink
|
|
4438
|
+
| {
|
|
4439
|
+
number?: string | DataLink
|
|
4440
|
+
labelTitle?: string | DataLink
|
|
4441
|
+
note?: string | DataLink
|
|
4442
|
+
}
|
|
4443
|
+
}
|
|
4336
4444
|
/* Display language */
|
|
4337
4445
|
displayLanguage?: string | DataLink
|
|
4338
4446
|
/* Background color */
|