@fugood/bricks-project 2.21.0-beta.37 → 2.21.0-beta.39

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fugood/bricks-project",
3
- "version": "2.21.0-beta.37",
3
+ "version": "2.21.0-beta.39",
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": "112fd6e75fb8df64fee72f2e6f92d1965caea2ab"
16
+ "gitHead": "e98ea50719977cc6a99124aab6792f8ab7747a47"
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 */
@@ -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": 2
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,12 @@ 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
4175
4280
  /* Show close button */
4176
4281
  showClose?: boolean | DataLink
4177
4282
  /* Show back button */
@@ -4196,22 +4301,32 @@ Default property:
4196
4301
  containerBackgroundColor?: string | DataLink
4197
4302
  /* Title color */
4198
4303
  titleColor?: string | DataLink
4199
- /* Control button text color */
4200
- controlBtnTextColor?: string | DataLink
4201
- /* Control button color */
4202
- controlBtnColor?: string | DataLink
4203
- /* Number field color */
4204
- numberFieldColor?: string | DataLink
4205
- /* Text field border color */
4206
- textFieldBorderColor?: string | DataLink
4207
- /* Text field text color */
4208
- textFieldTextColor?: string | DataLink
4209
- /* Field placeholder color */
4304
+ /* Description color */
4305
+ descriptionColor?: string | DataLink
4306
+ /* Input field background color */
4307
+ fieldBackgroundColor?: string | DataLink
4308
+ /* Input field text color */
4309
+ fieldTextColor?: string | DataLink
4310
+ /* Input field placeholder color */
4210
4311
  fieldPlaceholderColor?: string | DataLink
4211
- /* Select item background color */
4212
- selectItemBackgroundColor?: string | DataLink
4213
- /* Select item active background color */
4214
- selectItemActiveBackgroundColor?: string | DataLink
4312
+ /* Selected option background color */
4313
+ fieldActiveBackgroundColor?: string | DataLink
4314
+ /* Selected option text color */
4315
+ fieldActiveTextColor?: string | DataLink
4316
+ /* Field control button color */
4317
+ fieldControlColor?: string | DataLink
4318
+ /* Primary control button background color */
4319
+ primaryControlBtnBackgroundColor?: string | DataLink
4320
+ /* Primary control button text color */
4321
+ primaryControlBtnTextColor?: string | DataLink
4322
+ /* Primary control button border color */
4323
+ primaryControlBtnBorderColor?: string | DataLink
4324
+ /* Secondary control button background color */
4325
+ secondaryControlBtnBackgroundColor?: string | DataLink
4326
+ /* Secondary control button text color */
4327
+ secondaryControlBtnTextColor?: string | DataLink
4328
+ /* Secondary control button border color */
4329
+ secondaryControlBtnBorderColor?: string | DataLink
4215
4330
  /* Warn color */
4216
4331
  warnColor?: string | DataLink
4217
4332
  /* Error color */
@@ -4224,8 +4339,8 @@ Default property:
4224
4339
  onBackQuestion?: Array<EventAction>
4225
4340
  /* Event of change question */
4226
4341
  onQuestionChange?: Array<EventAction>
4227
- /* Event of prompt paused */
4228
- onPause?: Array<EventAction>
4342
+ /* Event of user close question modal */
4343
+ onClose?: Array<EventAction>
4229
4344
  /* Event of warning showed */
4230
4345
  onWarning?: Array<EventAction>
4231
4346
  /* Event of completed inquire */