form0-core 0.1.20 → 0.1.21

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": "form0-core",
3
- "version": "0.1.20",
3
+ "version": "0.1.21",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/"
6
6
  },
@@ -111,6 +111,7 @@ export const FIELD_SPECS = {
111
111
  },
112
112
  supporting_image: { type: 'boolean', required: true, nullable: false },
113
113
  supporting_image_path: { type: 'string', required: true, nullable: true },
114
+ supporting_image_asset_id: { type: 'string', required: false, nullable: true },
114
115
  supporting_image_display: {
115
116
  type: 'string',
116
117
  required: true,
@@ -190,6 +191,7 @@ export const FIELD_SPECS = {
190
191
  },
191
192
  supporting_image: { type: 'boolean', required: true, nullable: false },
192
193
  supporting_image_path: { type: 'string', required: true, nullable: true },
194
+ supporting_image_asset_id: { type: 'string', required: false, nullable: true },
193
195
  supporting_image_display: {
194
196
  type: 'string',
195
197
  required: true,
@@ -275,6 +277,7 @@ export const FIELD_SPECS = {
275
277
  choices: { type: 'array', required: true, nullable: false },
276
278
  supporting_image: { type: 'boolean', required: true, nullable: false },
277
279
  supporting_image_path: { type: 'string', required: true, nullable: true },
280
+ supporting_image_asset_id: { type: 'string', required: false, nullable: true },
278
281
  supporting_image_display: {
279
282
  type: 'string',
280
283
  required: true,
@@ -429,6 +432,7 @@ export const FIELD_SPECS = {
429
432
  choices: { type: 'array', required: true, nullable: false },
430
433
  supporting_image: { type: 'boolean', required: true, nullable: false },
431
434
  supporting_image_path: { type: 'string', required: true, nullable: true },
435
+ supporting_image_asset_id: { type: 'string', required: false, nullable: true },
432
436
  supporting_image_display: {
433
437
  type: 'string',
434
438
  required: true,
@@ -578,6 +582,7 @@ export const FIELD_SPECS = {
578
582
  third_option_enabled: { type: 'boolean', required: true, nullable: false },
579
583
  supporting_image: { type: 'boolean', required: true, nullable: false },
580
584
  supporting_image_path: { type: 'string', required: true, nullable: true },
585
+ supporting_image_asset_id: { type: 'string', required: false, nullable: true },
581
586
  supporting_image_display: {
582
587
  type: 'string',
583
588
  required: true,
@@ -812,6 +817,7 @@ export const FIELD_SPECS = {
812
817
  calculate: { type: 'string', required: true, nullable: false },
813
818
  supporting_image: { type: 'boolean', required: true, nullable: false },
814
819
  supporting_image_path: { type: 'string', required: true, nullable: true },
820
+ supporting_image_asset_id: { type: 'string', required: false, nullable: true },
815
821
  supporting_image_display: {
816
822
  type: 'string',
817
823
  required: true,
@@ -1071,6 +1077,7 @@ export const FIELD_SPECS = {
1071
1077
  default_value: { type: 'string', required: true, nullable: true, value: null },
1072
1078
  supporting_image: { type: 'boolean', required: true, nullable: false },
1073
1079
  supporting_image_path: { type: 'string', required: true, nullable: true },
1080
+ supporting_image_asset_id: { type: 'string', required: false, nullable: true },
1074
1081
  supporting_image_display: {
1075
1082
  type: 'string',
1076
1083
  required: true,
@@ -1149,7 +1156,9 @@ export const FIELD_SPECS = {
1149
1156
  media_id: value.media_id || value.signature_id || value.asset_id || null,
1150
1157
  data: value.data || null,
1151
1158
  });
1152
- return output.data || output.asset_id || output.upload_id || output.media_id ? output : null;
1159
+ return output.data || output.asset_id || output.upload_id || output.media_id
1160
+ ? output
1161
+ : null;
1153
1162
  } else if (value && typeof value === 'string') {
1154
1163
  // Fallback: if value is just the base64 string
1155
1164
  return {