@firecms/core 3.0.0-canary.160 → 3.0.0-canary.161

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/dist/index.umd.js CHANGED
@@ -2276,7 +2276,6 @@
2276
2276
  picture_in_picture_alt: "cropped overlap photo position shape",
2277
2277
  pie_chart: "analytics bars data diagram infographic measure metrics statistics tracking",
2278
2278
  pie_chart_outline: "analytics bars data diagram infographic measure metrics statistics tracking",
2279
- pie_chart_outlined: "graph",
2280
2279
  pin: "1 2 3 digit key login logout number password pattern security star symbol unlock",
2281
2280
  pinch: "arrows compress direction finger grasp hand navigation nip squeeze tweak",
2282
2281
  pin_drop: "destination direction gps location maps navigation place stop",
@@ -2916,6 +2915,7 @@
2916
2915
  const iconsSearch = new Fuse(map, {
2917
2916
  isCaseSensitive: false,
2918
2917
  shouldSort: true,
2918
+ ignoreLocation: true,
2919
2919
  distance: 0,
2920
2920
  keys: ["key", "synonyms"]
2921
2921
  });
@@ -3175,6 +3175,12 @@
3175
3175
  return key;
3176
3176
  }
3177
3177
  }
3178
+ for (const key in collection.properties) {
3179
+ const property = collection.properties[key];
3180
+ if (property.dataType === "array" && property.of?.dataType === "string" && property.of.storage?.acceptedFiles?.includes("image/*")) {
3181
+ return key;
3182
+ }
3183
+ }
3178
3184
  return void 0;
3179
3185
  }
3180
3186
  function flattenObject(obj, parentKey = "") {
@@ -5163,7 +5169,7 @@
5163
5169
  showError && /* @__PURE__ */ jsxRuntime.jsx(ErrorTooltip, { side: "left", title: showError.message, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center", style: {
5164
5170
  width: 32,
5165
5171
  height: 32
5166
- }, children: /* @__PURE__ */ jsxRuntime.jsx(ui.ErrorOutlineIcon, { size: "small", color: "error" }) }) })
5172
+ }, children: /* @__PURE__ */ jsxRuntime.jsx(ui.ErrorIcon, { size: "small", color: "error" }) }) })
5167
5173
  ] }) });
5168
5174
  }
5169
5175
  const dropZoneClasses$1 = "max-w-full box-border relative pt-[2px] items-center border border-transparent outline-none rounded-md duration-200 ease-[cubic-bezier(0.4,0,0.2,1)] focus:border-primary-solid";
@@ -5247,7 +5253,7 @@
5247
5253
  return t1;
5248
5254
  }
5249
5255
  function StorageUpload$1(t0) {
5250
- const $ = reactCompilerRuntime.c(67);
5256
+ const $ = reactCompilerRuntime.c(64);
5251
5257
  const {
5252
5258
  property,
5253
5259
  internalValue,
@@ -5264,8 +5270,7 @@
5264
5270
  onFileUploadComplete,
5265
5271
  storagePathBuilder
5266
5272
  } = t0;
5267
- const [, setOnHover] = React.useState(false);
5268
- const previewSize = multipleFilesSupported && previewSizeInput === "medium" ? "small" : previewSizeInput;
5273
+ const previewSize = previewSizeInput;
5269
5274
  if (multipleFilesSupported) {
5270
5275
  const arrayProperty = property;
5271
5276
  if (Array.isArray(arrayProperty.of)) {
@@ -5378,58 +5383,43 @@
5378
5383
  t5 = t6;
5379
5384
  const imageSize = t5;
5380
5385
  const showError = !disabled && error;
5381
- let t7;
5382
- let t8;
5383
- let t9;
5384
- if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
5385
- t7 = () => setOnHover(true);
5386
- t8 = () => setOnHover(true);
5387
- t9 = () => setOnHover(false);
5388
- $[17] = t7;
5389
- $[18] = t8;
5390
- $[19] = t9;
5391
- } else {
5392
- t7 = $[17];
5393
- t8 = $[18];
5394
- t9 = $[19];
5395
- }
5396
- const t10 = `justify-${hasValue ? "start" : "center"}`;
5397
- const t11 = isDragActive ? activeDropClasses$1 : "";
5398
- const t12 = isDragAccept ? acceptDropClasses$1 : "";
5399
- const t13 = isDragReject ? rejectDropClasses$1 : "";
5400
- let t14;
5401
- if ($[20] !== t10 || $[21] !== t11 || $[22] !== t12 || $[23] !== t13) {
5402
- t14 = ui.cls(dropZoneClasses$1, "relative w-full h-full flex", t10, t11, t12, t13);
5403
- $[20] = t10;
5386
+ const t7 = `justify-${hasValue ? "start" : "center"}`;
5387
+ const t8 = isDragActive ? activeDropClasses$1 : "";
5388
+ const t9 = isDragAccept ? acceptDropClasses$1 : "";
5389
+ const t10 = isDragReject ? rejectDropClasses$1 : "";
5390
+ let t11;
5391
+ if ($[17] !== t10 || $[18] !== t7 || $[19] !== t8 || $[20] !== t9) {
5392
+ t11 = ui.cls(dropZoneClasses$1, "relative w-full h-full flex", t7, t8, t9, t10);
5393
+ $[17] = t10;
5394
+ $[18] = t7;
5395
+ $[19] = t8;
5396
+ $[20] = t9;
5404
5397
  $[21] = t11;
5405
- $[22] = t12;
5406
- $[23] = t13;
5407
- $[24] = t14;
5408
5398
  } else {
5409
- t14 = $[24];
5399
+ t11 = $[21];
5410
5400
  }
5411
- let t15;
5412
- if ($[25] !== getInputProps) {
5413
- t15 = getInputProps();
5414
- $[25] = getInputProps;
5415
- $[26] = t15;
5401
+ let t12;
5402
+ if ($[22] !== getInputProps) {
5403
+ t12 = getInputProps();
5404
+ $[22] = getInputProps;
5405
+ $[23] = t12;
5416
5406
  } else {
5417
- t15 = $[26];
5407
+ t12 = $[23];
5418
5408
  }
5419
- let t16;
5420
- if ($[27] !== autoFocus || $[28] !== t15) {
5421
- t16 = /* @__PURE__ */ jsxRuntime.jsx("input", { autoFocus, ...t15 });
5422
- $[27] = autoFocus;
5423
- $[28] = t15;
5424
- $[29] = t16;
5409
+ let t13;
5410
+ if ($[24] !== autoFocus || $[25] !== t12) {
5411
+ t13 = /* @__PURE__ */ jsxRuntime.jsx("input", { autoFocus, ...t12 });
5412
+ $[24] = autoFocus;
5413
+ $[25] = t12;
5414
+ $[26] = t13;
5425
5415
  } else {
5426
- t16 = $[29];
5416
+ t13 = $[26];
5427
5417
  }
5428
- let t17;
5429
- if ($[30] !== entity || $[31] !== imageSize || $[32] !== internalValue || $[33] !== metadata || $[34] !== onFileUploadComplete || $[35] !== previewSize || $[36] !== renderProperty || $[37] !== storagePathBuilder) {
5430
- let t182;
5431
- if ($[39] !== entity || $[40] !== imageSize || $[41] !== metadata || $[42] !== onFileUploadComplete || $[43] !== previewSize || $[44] !== renderProperty || $[45] !== storagePathBuilder) {
5432
- t182 = (entry, index) => {
5418
+ let t14;
5419
+ if ($[27] !== entity || $[28] !== imageSize || $[29] !== internalValue || $[30] !== metadata || $[31] !== onFileUploadComplete || $[32] !== previewSize || $[33] !== renderProperty || $[34] !== storagePathBuilder) {
5420
+ let t152;
5421
+ if ($[36] !== entity || $[37] !== imageSize || $[38] !== metadata || $[39] !== onFileUploadComplete || $[40] !== previewSize || $[41] !== renderProperty || $[42] !== storagePathBuilder) {
5422
+ t152 = (entry, index) => {
5433
5423
  let child;
5434
5424
  if (entry.storagePathOrDownloadUrl) {
5435
5425
  child = /* @__PURE__ */ jsxRuntime.jsx(TableStorageItemPreview, { property: renderProperty, value: entry.storagePathOrDownloadUrl, entity, size: previewSize }, `storage_preview_${index}`);
@@ -5440,87 +5430,87 @@
5440
5430
  }
5441
5431
  return child;
5442
5432
  };
5443
- $[39] = entity;
5444
- $[40] = imageSize;
5445
- $[41] = metadata;
5446
- $[42] = onFileUploadComplete;
5447
- $[43] = previewSize;
5448
- $[44] = renderProperty;
5449
- $[45] = storagePathBuilder;
5450
- $[46] = t182;
5433
+ $[36] = entity;
5434
+ $[37] = imageSize;
5435
+ $[38] = metadata;
5436
+ $[39] = onFileUploadComplete;
5437
+ $[40] = previewSize;
5438
+ $[41] = renderProperty;
5439
+ $[42] = storagePathBuilder;
5440
+ $[43] = t152;
5451
5441
  } else {
5452
- t182 = $[46];
5442
+ t152 = $[43];
5453
5443
  }
5454
- t17 = internalValue.map(t182);
5455
- $[30] = entity;
5456
- $[31] = imageSize;
5457
- $[32] = internalValue;
5458
- $[33] = metadata;
5459
- $[34] = onFileUploadComplete;
5460
- $[35] = previewSize;
5461
- $[36] = renderProperty;
5462
- $[37] = storagePathBuilder;
5463
- $[38] = t17;
5444
+ t14 = internalValue.map(t152);
5445
+ $[27] = entity;
5446
+ $[28] = imageSize;
5447
+ $[29] = internalValue;
5448
+ $[30] = metadata;
5449
+ $[31] = onFileUploadComplete;
5450
+ $[32] = previewSize;
5451
+ $[33] = renderProperty;
5452
+ $[34] = storagePathBuilder;
5453
+ $[35] = t14;
5464
5454
  } else {
5465
- t17 = $[38];
5455
+ t14 = $[35];
5466
5456
  }
5467
- let t18;
5468
- if ($[47] !== helpText || $[48] !== internalValue || $[49] !== open) {
5469
- t18 = !internalValue && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-grow m-2 max-w-[200px]", onClick: open, children: /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { className: "text-surface-400 dark:text-surface-600", variant: "body2", align: "center", children: helpText }) });
5470
- $[47] = helpText;
5471
- $[48] = internalValue;
5472
- $[49] = open;
5473
- $[50] = t18;
5457
+ let t15;
5458
+ if ($[44] !== helpText || $[45] !== internalValue || $[46] !== open) {
5459
+ t15 = !internalValue && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-grow m-2 max-w-[200px]", onClick: open, children: /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { className: "text-surface-400 dark:text-surface-600", variant: "body2", align: "center", children: helpText }) });
5460
+ $[44] = helpText;
5461
+ $[45] = internalValue;
5462
+ $[46] = open;
5463
+ $[47] = t15;
5474
5464
  } else {
5475
- t18 = $[50];
5465
+ t15 = $[47];
5476
5466
  }
5477
- const t19 = !disabled ? openPopup : void 0;
5478
- let t20;
5479
- if ($[51] === Symbol.for("react.memo_cache_sentinel")) {
5480
- t20 = /* @__PURE__ */ jsxRuntime.jsx(ui.EditIcon, { size: "small", className: "text-surface-500" });
5481
- $[51] = t20;
5467
+ const t16 = !disabled ? openPopup : void 0;
5468
+ let t17;
5469
+ if ($[48] === Symbol.for("react.memo_cache_sentinel")) {
5470
+ t17 = /* @__PURE__ */ jsxRuntime.jsx(ui.EditIcon, { size: "small", className: "text-surface-500" });
5471
+ $[48] = t17;
5482
5472
  } else {
5483
- t20 = $[51];
5473
+ t17 = $[48];
5484
5474
  }
5485
- let t21;
5486
- if ($[52] !== open) {
5487
- t21 = /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { color: "inherit", size: "small", onClick: open, children: t20 });
5488
- $[52] = open;
5489
- $[53] = t21;
5475
+ let t18;
5476
+ if ($[49] !== open) {
5477
+ t18 = /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { color: "inherit", size: "small", onClick: open, children: t17 });
5478
+ $[49] = open;
5479
+ $[50] = t18;
5490
5480
  } else {
5491
- t21 = $[53];
5481
+ t18 = $[50];
5492
5482
  }
5493
- let t22;
5494
- if ($[54] !== disabled || $[55] !== selected || $[56] !== showError || $[57] !== t19 || $[58] !== t21) {
5495
- t22 = /* @__PURE__ */ jsxRuntime.jsx(EntityTableCellActions, { showError, disabled, showExpandIcon: true, selected, openPopup: t19, children: t21 });
5496
- $[54] = disabled;
5497
- $[55] = selected;
5498
- $[56] = showError;
5499
- $[57] = t19;
5500
- $[58] = t21;
5501
- $[59] = t22;
5483
+ let t19;
5484
+ if ($[51] !== disabled || $[52] !== selected || $[53] !== showError || $[54] !== t16 || $[55] !== t18) {
5485
+ t19 = /* @__PURE__ */ jsxRuntime.jsx(EntityTableCellActions, { showError, disabled, showExpandIcon: true, selected, openPopup: t16, children: t18 });
5486
+ $[51] = disabled;
5487
+ $[52] = selected;
5488
+ $[53] = showError;
5489
+ $[54] = t16;
5490
+ $[55] = t18;
5491
+ $[56] = t19;
5502
5492
  } else {
5503
- t22 = $[59];
5493
+ t19 = $[56];
5504
5494
  }
5505
- let t23;
5506
- if ($[60] !== rootProps || $[61] !== t14 || $[62] !== t16 || $[63] !== t17 || $[64] !== t18 || $[65] !== t22) {
5507
- t23 = /* @__PURE__ */ jsxRuntime.jsxs("div", { ...rootProps, onMouseEnter: t7, onMouseMove: t8, onMouseLeave: t9, className: t14, children: [
5508
- t16,
5509
- t17,
5510
- t18,
5511
- t22
5495
+ let t20;
5496
+ if ($[57] !== rootProps || $[58] !== t11 || $[59] !== t13 || $[60] !== t14 || $[61] !== t15 || $[62] !== t19) {
5497
+ t20 = /* @__PURE__ */ jsxRuntime.jsxs("div", { ...rootProps, className: t11, children: [
5498
+ t13,
5499
+ t14,
5500
+ t15,
5501
+ t19
5512
5502
  ] });
5513
- $[60] = rootProps;
5514
- $[61] = t14;
5515
- $[62] = t16;
5516
- $[63] = t17;
5517
- $[64] = t18;
5518
- $[65] = t22;
5519
- $[66] = t23;
5503
+ $[57] = rootProps;
5504
+ $[58] = t11;
5505
+ $[59] = t13;
5506
+ $[60] = t14;
5507
+ $[61] = t15;
5508
+ $[62] = t19;
5509
+ $[63] = t20;
5520
5510
  } else {
5521
- t23 = $[66];
5511
+ t20 = $[63];
5522
5512
  }
5523
- return t23;
5513
+ return t20;
5524
5514
  }
5525
5515
  function _temp2$a(a, b) {
5526
5516
  return {
@@ -5590,11 +5580,14 @@
5590
5580
  const titleProperty = getEntityTitlePropertyKey(resolvedCollection, customizationController.propertyConfigs);
5591
5581
  const imagePropertyKey = getEntityImagePreviewPropertyKey(resolvedCollection);
5592
5582
  const imageProperty = imagePropertyKey ? resolvedCollection.properties[imagePropertyKey] : void 0;
5583
+ const usedImageProperty = "of" in imageProperty ? imageProperty.of : imageProperty;
5593
5584
  const restProperties = listProperties.filter((p) => p !== titleProperty && p !== imagePropertyKey);
5585
+ const imageValue = getValueInPath(entity.values, imagePropertyKey);
5586
+ const usedImageValue = "of" in imageProperty ? (imageValue ?? []).length > 0 ? imageValue[0] : void 0 : imageValue;
5594
5587
  return /* @__PURE__ */ jsxRuntime.jsxs(EntityPreviewContainer, { onClick: disabled ? void 0 : onClick, hover: disabled ? void 0 : hover, size, children: [
5595
5588
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: ui.cls("flex w-10 h-10 ml-1 mr-2 shrink-0", size === "small" ? "my-0.5" : "m-2 self-start"), children: [
5596
- imageProperty && /* @__PURE__ */ jsxRuntime.jsx(PropertyPreview, { property: imageProperty, propertyKey: imagePropertyKey, size: "small", value: getValueInPath(entity.values, imagePropertyKey) }),
5597
- !imageProperty && /* @__PURE__ */ jsxRuntime.jsx(IconForView, { collectionOrView: collection, color: "primary", size, className: "m-auto p-1" })
5589
+ usedImageProperty && usedImageValue && /* @__PURE__ */ jsxRuntime.jsx(PropertyPreview, { property: usedImageProperty, propertyKey: imagePropertyKey, size: "small", value: usedImageValue }),
5590
+ (!usedImageProperty || !usedImageValue) && /* @__PURE__ */ jsxRuntime.jsx(IconForView, { collectionOrView: collection, color: "primary", size, className: "m-auto p-1" })
5598
5591
  ] }),
5599
5592
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col grow-1 w-full m-1 shrink-1", style: {
5600
5593
  "maxWidth": "calc(100% - 96px)"
@@ -5719,6 +5712,7 @@
5719
5712
  }
5720
5713
  return t9;
5721
5714
  });
5715
+ EntityPreviewContainer.displayName = "EntityPreviewContainer";
5722
5716
  function TableReferenceField(props) {
5723
5717
  const $ = reactCompilerRuntime.c(9);
5724
5718
  const customizationController = useCustomizationController();
@@ -6547,7 +6541,7 @@
6547
6541
  }
6548
6542
  let t24;
6549
6543
  if ($[33] !== disabled || $[34] !== disabledTooltip || $[35] !== onHover) {
6550
- t24 = disabled && onHover && disabledTooltip && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-1 right-1 text-xs", children: /* @__PURE__ */ jsxRuntime.jsx(ui.Tooltip, { title: disabledTooltip, children: /* @__PURE__ */ jsxRuntime.jsx(ui.RemoveCircleIcon, { size: "smallest", color: "disabled", className: "text-surface-500" }) }) });
6544
+ t24 = disabled && onHover && disabledTooltip && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-1 right-1 text-xs", children: /* @__PURE__ */ jsxRuntime.jsx(ui.Tooltip, { title: disabledTooltip, children: /* @__PURE__ */ jsxRuntime.jsx(ui.DoNotDisturbOnIcon, { size: "smallest", color: "disabled", className: "text-surface-500" }) }) });
6551
6545
  $[33] = disabled;
6552
6546
  $[34] = disabledTooltip;
6553
6547
  $[35] = onHover;
@@ -8355,7 +8349,7 @@
8355
8349
  t7 = !enumValues && /* @__PURE__ */ jsxRuntime.jsx(ui.TextField, { type: dataType === "number" ? "number" : void 0, value: internalValue !== void 0 && internalValue != null ? String(internalValue) : "", onChange: (evt) => {
8356
8350
  const val_0 = dataType === "number" ? parseFloat(evt.target.value) : evt.target.value;
8357
8351
  updateFilter(operation, val_0);
8358
- }, endAdornment: internalValue && /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { onClick: (e) => updateFilter(operation, void 0), children: /* @__PURE__ */ jsxRuntime.jsx(ui.ClearIcon, {}) }) });
8352
+ }, endAdornment: internalValue && /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { onClick: (e) => updateFilter(operation, void 0), children: /* @__PURE__ */ jsxRuntime.jsx(ui.CloseIcon, {}) }) });
8359
8353
  $[20] = dataType;
8360
8354
  $[21] = enumValues;
8361
8355
  $[22] = internalValue;
@@ -8371,7 +8365,7 @@
8371
8365
  if (value_1 !== "") {
8372
8366
  updateFilter(operation, dataType === "number" ? parseInt(value_1) : value_1);
8373
8367
  }
8374
- }, endAdornment: internalValue && /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { className: "absolute right-2 top-3", onClick: (e_0) => updateFilter(operation, void 0), children: /* @__PURE__ */ jsxRuntime.jsx(ui.ClearIcon, {}) }), renderValue: (enumKey) => {
8368
+ }, endAdornment: internalValue && /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { className: "absolute right-2 top-3", onClick: (e_0) => updateFilter(operation, void 0), children: /* @__PURE__ */ jsxRuntime.jsx(ui.CloseIcon, {}) }), renderValue: (enumKey) => {
8375
8369
  if (enumKey === null) {
8376
8370
  return "Filter for null values";
8377
8371
  }
@@ -8395,7 +8389,7 @@
8395
8389
  if ($[34] !== dataType || $[35] !== enumValues || $[36] !== internalValue || $[37] !== multiple || $[38] !== name || $[39] !== operation || $[40] !== updateFilter) {
8396
8390
  t9 = enumValues && multiple && /* @__PURE__ */ jsxRuntime.jsx(ui.MultiSelect, { position: "item-aligned", value: Array.isArray(internalValue) ? internalValue.map(_temp3$3) : [], onValueChange: (value_2) => {
8397
8391
  updateFilter(operation, dataType === "number" ? value_2.map(_temp4$2) : value_2);
8398
- }, multiple, endAdornment: internalValue && /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { className: "absolute right-2 top-3", onClick: (e_2) => updateFilter(operation, void 0), children: /* @__PURE__ */ jsxRuntime.jsx(ui.ClearIcon, {}) }), children: enumValues.map((enumConfig_0) => /* @__PURE__ */ jsxRuntime.jsx(ui.MultiSelectItem, { value: String(enumConfig_0.id), children: /* @__PURE__ */ jsxRuntime.jsx(EnumValuesChip, { enumKey: String(enumConfig_0.id), enumValues, size: "small" }) }, `select_value_${name}_${enumConfig_0.id}`)) });
8392
+ }, multiple, endAdornment: internalValue && /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { className: "absolute right-2 top-3", onClick: (e_2) => updateFilter(operation, void 0), children: /* @__PURE__ */ jsxRuntime.jsx(ui.CloseIcon, {}) }), children: enumValues.map((enumConfig_0) => /* @__PURE__ */ jsxRuntime.jsx(ui.MultiSelectItem, { value: String(enumConfig_0.id), children: /* @__PURE__ */ jsxRuntime.jsx(EnumValuesChip, { enumKey: String(enumConfig_0.id), enumValues, size: "small" }) }, `select_value_${name}_${enumConfig_0.id}`)) });
8399
8393
  $[34] = dataType;
8400
8394
  $[35] = enumValues;
8401
8395
  $[36] = internalValue;
@@ -10092,7 +10086,7 @@
10092
10086
  } else {
10093
10087
  userConfigurationPersistence.setFavouritePaths([...userConfigurationPersistence.favouritePaths, path]);
10094
10088
  }
10095
- }, children: favourite ? /* @__PURE__ */ jsxRuntime.jsx(ui.StarIcon, { size: 18, className: "text-secondary" }) : /* @__PURE__ */ jsxRuntime.jsx(ui.StarBorderIcon, { size: 18, className: "text-surface-400 dark:text-surface-500" }) }, "favourite")] : [];
10089
+ }, children: /* @__PURE__ */ jsxRuntime.jsx(ui.StarIcon, { size: 18, className: favourite ? "text-secondary" : "text-surface-400 dark:text-surface-500" }) }, "favourite")] : [];
10096
10090
  if (customizationController.plugins && collection) {
10097
10091
  let t62;
10098
10092
  if ($[14] !== collection || $[15] !== context || $[16] !== path) {
@@ -10216,27 +10210,28 @@
10216
10210
  } else {
10217
10211
  t3 = $[9];
10218
10212
  }
10219
- let t4;
10220
- if ($[10] !== favourite || $[11] !== onIconClick) {
10221
- t4 = favourite ? /* @__PURE__ */ jsxRuntime.jsx(ui.StarIcon, { onClick: onIconClick, size: 18, className: "text-secondary" }) : /* @__PURE__ */ jsxRuntime.jsx(ui.StarBorderIcon, { onClick: onIconClick, size: 18, className: "text-surface-400 dark:text-surface-500" });
10222
- $[10] = favourite;
10223
- $[11] = onIconClick;
10224
- $[12] = t4;
10213
+ const t4 = favourite ? "text-secondary" : "text-surface-400 dark:text-surface-500";
10214
+ let t5;
10215
+ if ($[10] !== onIconClick || $[11] !== t4) {
10216
+ t5 = /* @__PURE__ */ jsxRuntime.jsx(ui.StarIcon, { onClick: onIconClick, size: 18, className: t4 });
10217
+ $[10] = onIconClick;
10218
+ $[11] = t4;
10219
+ $[12] = t5;
10225
10220
  } else {
10226
- t4 = $[12];
10221
+ t5 = $[12];
10227
10222
  }
10228
- let t5;
10229
- if ($[13] !== entry.name || $[14] !== entry.path || $[15] !== t3 || $[16] !== t4) {
10230
- t5 = /* @__PURE__ */ jsxRuntime.jsx(ui.Chip, { onClick: t3, icon: t4, children: entry.name }, entry.path);
10223
+ let t6;
10224
+ if ($[13] !== entry.name || $[14] !== entry.path || $[15] !== t3 || $[16] !== t5) {
10225
+ t6 = /* @__PURE__ */ jsxRuntime.jsx(ui.Chip, { onClick: t3, icon: t5, children: entry.name }, entry.path);
10231
10226
  $[13] = entry.name;
10232
10227
  $[14] = entry.path;
10233
10228
  $[15] = t3;
10234
- $[16] = t4;
10235
- $[17] = t5;
10229
+ $[16] = t5;
10230
+ $[17] = t6;
10236
10231
  } else {
10237
- t5 = $[17];
10232
+ t6 = $[17];
10238
10233
  }
10239
- return t5;
10234
+ return t6;
10240
10235
  }
10241
10236
  function FavouritesView(t0) {
10242
10237
  const $ = reactCompilerRuntime.c(17);
@@ -11993,7 +11988,7 @@
11993
11988
  }, children: /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { size: "small", onClick: (event) => {
11994
11989
  event.stopPropagation();
11995
11990
  onClose();
11996
- }, children: /* @__PURE__ */ jsxRuntime.jsx(ui.ClearIcon, { className: "text-white", size: "small" }) }) })
11991
+ }, children: /* @__PURE__ */ jsxRuntime.jsx(ui.CloseIcon, { className: "text-white", size: "small" }) }) })
11997
11992
  ] })
11998
11993
  ] }, `draggable_${propertyKey}_${entityId}_${open}`);
11999
11994
  return /* @__PURE__ */ jsxRuntime.jsx(Portal__namespace.Root, { asChild: true, container, children: /* @__PURE__ */ jsxRuntime.jsx(formex.Formex, { value: formex$1, children: draggable }) });
@@ -13751,6 +13746,7 @@
13751
13746
  let shouldUpdateTopLevelNav = false;
13752
13747
  if (!areCollectionListsEqual(collectionsRef.current ?? [], resolvedCollections)) {
13753
13748
  collectionsRef.current = resolvedCollections;
13749
+ console.log("Collections have changed", resolvedCollections);
13754
13750
  shouldUpdateTopLevelNav = true;
13755
13751
  }
13756
13752
  if (collectionsRef.current === void 0) {
@@ -16487,7 +16483,7 @@
16487
16483
  }
16488
16484
  let t13;
16489
16485
  if ($[20] !== handleClearClick || $[21] !== property.clearable) {
16490
- t13 = property.clearable && /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { onClick: handleClearClick, children: /* @__PURE__ */ jsxRuntime.jsx(ui.ClearIcon, {}) });
16486
+ t13 = property.clearable && /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { onClick: handleClearClick, children: /* @__PURE__ */ jsxRuntime.jsx(ui.CloseIcon, {}) });
16491
16487
  $[20] = handleClearClick;
16492
16488
  $[21] = property.clearable;
16493
16489
  $[22] = t13;
@@ -17332,7 +17328,7 @@
17332
17328
  const t7 = inputType;
17333
17329
  let t8;
17334
17330
  if ($[18] !== handleClearClick || $[19] !== property.clearable) {
17335
- t8 = property.clearable && /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { onClick: handleClearClick, children: /* @__PURE__ */ jsxRuntime.jsx(ui.ClearIcon, {}) });
17331
+ t8 = property.clearable && /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { onClick: handleClearClick, children: /* @__PURE__ */ jsxRuntime.jsx(ui.CloseIcon, {}) });
17336
17332
  $[18] = handleClearClick;
17337
17333
  $[19] = property.clearable;
17338
17334
  $[20] = t8;
@@ -19886,7 +19882,7 @@
19886
19882
  key: "email",
19887
19883
  name: "Email",
19888
19884
  description: "Text with email validation",
19889
- Icon: ui.EmailIcon,
19885
+ Icon: ui.MailIcon,
19890
19886
  color: "#154fb3",
19891
19887
  property: {
19892
19888
  dataType: "string",
@@ -22386,7 +22382,7 @@
22386
22382
  }
22387
22383
  let t4;
22388
22384
  if ($[3] !== drawerOpen || $[4] !== logo) {
22389
- t4 = logo ? /* @__PURE__ */ jsxRuntime.jsx("img", { src: logo, alt: "Logo", className: ui.cls("max-w-full max-h-full", drawerOpen ?? "w-[112px] h-[112px]") }) : /* @__PURE__ */ jsxRuntime.jsx(FireCMSLogo, {});
22385
+ t4 = logo ? /* @__PURE__ */ jsxRuntime.jsx("img", { src: logo, alt: "Logo", className: ui.cls("max-w-full max-h-full transition-all", drawerOpen ? "w-[96px] h-[96px]" : "w-[32px] h-[32px]") }) : /* @__PURE__ */ jsxRuntime.jsx(FireCMSLogo, {});
22390
22386
  $[3] = drawerOpen;
22391
22387
  $[4] = logo;
22392
22388
  $[5] = t4;