@firecms/core 3.0.0-canary.9 → 3.0.0-canary.91

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.
Files changed (247) hide show
  1. package/README.md +1 -1
  2. package/dist/app/AppBar.d.ts +12 -0
  3. package/dist/app/Drawer.d.ts +17 -0
  4. package/dist/app/Scaffold.d.ts +30 -0
  5. package/dist/app/index.d.ts +4 -0
  6. package/dist/app/useApp.d.ts +16 -0
  7. package/dist/components/CircularProgressCenter.d.ts +1 -1
  8. package/dist/components/ClearFilterSortButton.d.ts +5 -0
  9. package/dist/components/EntityCollectionTable/EntityCollectionRowActions.d.ts +11 -12
  10. package/dist/components/EntityCollectionTable/EntityCollectionTable.d.ts +1 -1
  11. package/dist/components/EntityCollectionTable/EntityCollectionTableProps.d.ts +5 -3
  12. package/dist/components/EntityCollectionTable/PropertyTableCell.d.ts +1 -0
  13. package/dist/components/EntityCollectionTable/column_utils.d.ts +1 -2
  14. package/dist/components/EntityCollectionTable/fields/TableReferenceField.d.ts +2 -0
  15. package/dist/components/EntityCollectionTable/internal/CollectionTableToolbar.d.ts +1 -4
  16. package/dist/components/EntityCollectionTable/internal/EntityTableCell.d.ts +2 -2
  17. package/dist/components/EntityCollectionTable/internal/popup_field/PopupFormField.d.ts +1 -1
  18. package/dist/components/EntityCollectionView/EntityCollectionView.d.ts +12 -2
  19. package/dist/components/EntityCollectionView/EntityCollectionViewStartActions.d.ts +11 -0
  20. package/dist/components/EntityPreview.d.ts +5 -4
  21. package/dist/components/ErrorView.d.ts +1 -1
  22. package/dist/components/HomePage/DefaultHomePage.d.ts +1 -1
  23. package/dist/components/HomePage/NavigationCardBinding.d.ts +1 -1
  24. package/dist/components/ReferenceWidget.d.ts +3 -1
  25. package/dist/components/SelectableTable/SelectableTable.d.ts +1 -1
  26. package/dist/components/SelectableTable/filters/ReferenceFilterField.d.ts +2 -1
  27. package/dist/components/VirtualTable/VirtualTableProps.d.ts +15 -12
  28. package/dist/components/VirtualTable/types.d.ts +3 -3
  29. package/dist/components/{EntityCollectionTable/internal → common}/default_entity_actions.d.ts +1 -1
  30. package/dist/components/common/index.d.ts +1 -0
  31. package/dist/components/common/table_height.d.ts +5 -0
  32. package/dist/components/common/types.d.ts +4 -6
  33. package/dist/components/common/useColumnsIds.d.ts +2 -1
  34. package/dist/components/common/useDataSourceEntityCollectionTableController.d.ts +3 -0
  35. package/dist/components/index.d.ts +2 -1
  36. package/dist/contexts/AuthControllerContext.d.ts +1 -1
  37. package/dist/{components/FireCMSAppBar.d.ts → core/DefaultAppBar.d.ts} +6 -9
  38. package/dist/core/DefaultDrawer.d.ts +19 -0
  39. package/dist/core/DrawerNavigationItem.d.ts +9 -0
  40. package/dist/core/EntityEditView.d.ts +17 -3
  41. package/dist/core/FireCMS.d.ts +1 -1
  42. package/dist/core/NavigationRoutes.d.ts +3 -3
  43. package/dist/core/index.d.ts +3 -4
  44. package/dist/form/PropertiesForm.d.ts +8 -0
  45. package/dist/form/components/ErrorFocus.d.ts +1 -1
  46. package/dist/form/components/FieldHelperText.d.ts +3 -3
  47. package/dist/form/components/StorageItemPreview.d.ts +4 -4
  48. package/dist/form/field_bindings/MapFieldBinding.d.ts +1 -1
  49. package/dist/form/field_bindings/StorageUploadFieldBinding.d.ts +2 -4
  50. package/dist/form/index.d.ts +0 -2
  51. package/dist/hooks/data/delete.d.ts +2 -2
  52. package/dist/hooks/data/save.d.ts +2 -3
  53. package/dist/hooks/data/useDataSource.d.ts +1 -1
  54. package/dist/hooks/data/useEntityFetch.d.ts +3 -3
  55. package/dist/hooks/index.d.ts +2 -0
  56. package/dist/hooks/useBuildNavigationController.d.ts +1 -2
  57. package/dist/hooks/useProjectLog.d.ts +2 -2
  58. package/dist/hooks/useValidateAuthenticator.d.ts +21 -0
  59. package/dist/index.d.ts +1 -0
  60. package/dist/index.es.js +15825 -12165
  61. package/dist/index.es.js.map +1 -1
  62. package/dist/index.umd.js +19684 -7
  63. package/dist/index.umd.js.map +1 -1
  64. package/dist/internal/useBuildDataSource.d.ts +1 -16
  65. package/dist/internal/useRestoreScroll.d.ts +1 -1
  66. package/dist/preview/PropertyPreviewProps.d.ts +6 -4
  67. package/dist/preview/components/ReferencePreview.d.ts +2 -1
  68. package/dist/preview/components/StorageThumbnail.d.ts +2 -1
  69. package/dist/preview/components/UrlComponentPreview.d.ts +2 -1
  70. package/dist/types/auth.d.ts +26 -2
  71. package/dist/types/collections.d.ts +31 -7
  72. package/dist/types/datasource.d.ts +34 -20
  73. package/dist/types/entities.d.ts +5 -1
  74. package/dist/types/entity_actions.d.ts +14 -0
  75. package/dist/types/entity_callbacks.d.ts +2 -2
  76. package/dist/types/fields.d.ts +31 -30
  77. package/dist/types/index.d.ts +0 -1
  78. package/dist/types/navigation.d.ts +5 -5
  79. package/dist/types/plugins.d.ts +16 -6
  80. package/dist/types/properties.d.ts +17 -4
  81. package/dist/types/storage.d.ts +11 -3
  82. package/dist/util/collections.d.ts +1 -1
  83. package/dist/util/entities.d.ts +1 -1
  84. package/dist/util/icon_synonyms.d.ts +1 -97
  85. package/dist/util/icons.d.ts +2 -2
  86. package/dist/util/navigation_utils.d.ts +2 -2
  87. package/dist/util/objects.d.ts +1 -1
  88. package/dist/util/plurals.d.ts +0 -2
  89. package/dist/util/resolutions.d.ts +13 -13
  90. package/dist/util/storage.d.ts +23 -2
  91. package/dist/util/useStorageUploadController.d.ts +1 -1
  92. package/dist/util/useTraceUpdate.d.ts +1 -0
  93. package/package.json +130 -119
  94. package/src/app/AppBar.tsx +18 -0
  95. package/src/app/Drawer.tsx +25 -0
  96. package/src/app/Scaffold.tsx +249 -0
  97. package/src/app/index.ts +4 -0
  98. package/src/app/useApp.tsx +32 -0
  99. package/src/components/CircularProgressCenter.tsx +1 -1
  100. package/src/components/ClearFilterSortButton.tsx +41 -0
  101. package/src/components/EntityCollectionTable/EntityCollectionRowActions.tsx +9 -18
  102. package/src/components/EntityCollectionTable/EntityCollectionTable.tsx +21 -20
  103. package/src/components/EntityCollectionTable/EntityCollectionTableProps.tsx +10 -6
  104. package/src/components/EntityCollectionTable/PropertyTableCell.tsx +38 -34
  105. package/src/components/EntityCollectionTable/column_utils.tsx +3 -3
  106. package/src/components/EntityCollectionTable/fields/TableReferenceField.tsx +11 -2
  107. package/src/components/EntityCollectionTable/fields/TableStorageUpload.tsx +14 -6
  108. package/src/components/EntityCollectionTable/internal/CollectionTableToolbar.tsx +29 -34
  109. package/src/components/EntityCollectionTable/internal/EntityTableCell.tsx +16 -12
  110. package/src/components/EntityCollectionTable/internal/popup_field/PopupFormField.tsx +4 -5
  111. package/src/components/EntityCollectionView/EntityCollectionView.tsx +69 -45
  112. package/src/components/EntityCollectionView/EntityCollectionViewStartActions.tsx +68 -0
  113. package/src/components/EntityCollectionView/useSelectionController.tsx +19 -7
  114. package/src/components/EntityPreview.tsx +15 -9
  115. package/src/components/EntityView.tsx +5 -5
  116. package/src/components/ErrorView.tsx +1 -1
  117. package/src/components/HomePage/DefaultHomePage.tsx +3 -3
  118. package/src/components/HomePage/NavigationCard.tsx +3 -3
  119. package/src/components/HomePage/NavigationCardBinding.tsx +1 -1
  120. package/src/components/HomePage/SmallNavigationCard.tsx +5 -5
  121. package/src/components/PropertyIdCopyTooltipContent.tsx +2 -3
  122. package/src/components/ReferenceTable/ReferenceSelectionTable.tsx +1 -0
  123. package/src/components/ReferenceWidget.tsx +22 -12
  124. package/src/components/SearchIconsView.tsx +5 -5
  125. package/src/components/SelectableTable/SelectableTable.tsx +7 -7
  126. package/src/components/SelectableTable/filters/BooleanFilterField.tsx +2 -3
  127. package/src/components/SelectableTable/filters/DateTimeFilterField.tsx +22 -7
  128. package/src/components/SelectableTable/filters/ReferenceFilterField.tsx +28 -6
  129. package/src/components/SelectableTable/filters/StringNumberFilterField.tsx +35 -15
  130. package/src/components/VirtualTable/VirtualTable.tsx +70 -37
  131. package/src/components/VirtualTable/VirtualTableCell.tsx +1 -1
  132. package/src/components/VirtualTable/VirtualTableHeader.tsx +4 -4
  133. package/src/components/VirtualTable/VirtualTableHeaderRow.tsx +2 -2
  134. package/src/components/VirtualTable/VirtualTableProps.tsx +18 -14
  135. package/src/components/VirtualTable/VirtualTableRow.tsx +4 -5
  136. package/src/components/VirtualTable/fields/VirtualTableDateField.tsx +1 -1
  137. package/src/components/VirtualTable/types.tsx +2 -3
  138. package/src/components/{EntityCollectionTable/internal → common}/default_entity_actions.tsx +2 -2
  139. package/src/components/common/index.ts +1 -0
  140. package/src/components/{VirtualTable/common.tsx → common/table_height.tsx} +5 -2
  141. package/src/components/common/types.tsx +4 -6
  142. package/src/components/common/useColumnsIds.tsx +23 -2
  143. package/src/components/common/useDataSourceEntityCollectionTableController.tsx +11 -0
  144. package/src/components/common/useTableSearchHelper.ts +52 -12
  145. package/src/components/index.tsx +2 -1
  146. package/src/contexts/AuthControllerContext.tsx +1 -1
  147. package/src/contexts/DialogsProvider.tsx +2 -2
  148. package/src/{components/FireCMSAppBar.tsx → core/DefaultAppBar.tsx} +52 -37
  149. package/src/core/DefaultDrawer.tsx +177 -0
  150. package/src/core/DrawerNavigationItem.tsx +62 -0
  151. package/src/core/EntityEditView.tsx +711 -139
  152. package/src/core/EntitySidePanel.tsx +1 -2
  153. package/src/core/FireCMS.tsx +39 -44
  154. package/src/core/NavigationRoutes.tsx +7 -8
  155. package/src/core/field_configs.tsx +2 -3
  156. package/src/core/index.tsx +3 -4
  157. package/src/form/PropertiesForm.tsx +81 -0
  158. package/src/form/PropertyFieldBinding.tsx +29 -7
  159. package/src/form/components/FieldHelperText.tsx +3 -3
  160. package/src/form/components/StorageItemPreview.tsx +20 -11
  161. package/src/form/components/StorageUploadProgress.tsx +3 -3
  162. package/src/form/field_bindings/ArrayCustomShapedFieldBinding.tsx +8 -5
  163. package/src/form/field_bindings/ArrayOfReferencesFieldBinding.tsx +8 -5
  164. package/src/form/field_bindings/BlockFieldBinding.tsx +2 -2
  165. package/src/form/field_bindings/KeyValueFieldBinding.tsx +44 -39
  166. package/src/form/field_bindings/MapFieldBinding.tsx +11 -3
  167. package/src/form/field_bindings/MarkdownFieldBinding.tsx +2 -2
  168. package/src/form/field_bindings/ReadOnlyFieldBinding.tsx +2 -9
  169. package/src/form/field_bindings/ReferenceFieldBinding.tsx +15 -13
  170. package/src/form/field_bindings/RepeatFieldBinding.tsx +10 -7
  171. package/src/form/field_bindings/SelectFieldBinding.tsx +3 -3
  172. package/src/form/field_bindings/StorageUploadFieldBinding.tsx +22 -43
  173. package/src/form/field_bindings/SwitchFieldBinding.tsx +1 -1
  174. package/src/form/index.tsx +4 -4
  175. package/src/form/validation.ts +1 -17
  176. package/src/hooks/data/delete.ts +3 -3
  177. package/src/hooks/data/save.ts +4 -2
  178. package/src/hooks/data/useDataSource.tsx +2 -2
  179. package/src/hooks/data/useEntityFetch.tsx +3 -3
  180. package/src/hooks/index.tsx +3 -0
  181. package/src/hooks/useBuildLocalConfigurationPersistence.tsx +8 -10
  182. package/src/hooks/useBuildModeController.tsx +11 -5
  183. package/src/hooks/useBuildNavigationController.tsx +137 -61
  184. package/src/hooks/useProjectLog.tsx +21 -8
  185. package/src/hooks/useResolvedNavigationFrom.tsx +1 -1
  186. package/src/hooks/useValidateAuthenticator.tsx +115 -0
  187. package/src/index.ts +1 -0
  188. package/src/internal/useBuildDataSource.ts +56 -49
  189. package/src/internal/useBuildSideEntityController.tsx +88 -21
  190. package/src/preview/PropertyPreview.tsx +9 -16
  191. package/src/preview/PropertyPreviewProps.tsx +4 -8
  192. package/src/preview/components/BooleanPreview.tsx +4 -2
  193. package/src/preview/components/EnumValuesChip.tsx +1 -1
  194. package/src/preview/components/ImagePreview.tsx +21 -33
  195. package/src/preview/components/ReferencePreview.tsx +23 -23
  196. package/src/preview/components/StorageThumbnail.tsx +5 -1
  197. package/src/preview/components/UrlComponentPreview.tsx +44 -11
  198. package/src/preview/property_previews/ArrayOfMapsPreview.tsx +0 -1
  199. package/src/preview/property_previews/ArrayOfReferencesPreview.tsx +2 -1
  200. package/src/preview/property_previews/ArrayOfStorageComponentsPreview.tsx +0 -1
  201. package/src/preview/property_previews/ArrayOfStringsPreview.tsx +0 -1
  202. package/src/preview/property_previews/ArrayOneOfPreview.tsx +2 -3
  203. package/src/preview/property_previews/ArrayPropertyPreview.tsx +2 -3
  204. package/src/preview/property_previews/MapPropertyPreview.tsx +5 -5
  205. package/src/preview/property_previews/StringPropertyPreview.tsx +2 -2
  206. package/src/types/auth.tsx +35 -2
  207. package/src/types/collections.ts +37 -8
  208. package/src/types/customization_controller.tsx +0 -1
  209. package/src/types/datasource.ts +41 -24
  210. package/src/types/entities.ts +9 -1
  211. package/src/types/entity_actions.tsx +16 -3
  212. package/src/types/entity_callbacks.ts +2 -2
  213. package/src/types/fields.tsx +33 -33
  214. package/src/types/index.ts +0 -1
  215. package/src/types/navigation.ts +6 -7
  216. package/src/types/plugins.tsx +18 -8
  217. package/src/types/properties.ts +22 -6
  218. package/src/types/storage.ts +12 -3
  219. package/src/util/collections.ts +1 -1
  220. package/src/util/entities.ts +5 -4
  221. package/src/util/enums.ts +1 -1
  222. package/src/util/icon_list.ts +2 -2
  223. package/src/util/icon_synonyms.ts +3 -99
  224. package/src/util/navigation_utils.ts +6 -6
  225. package/src/util/objects.ts +25 -28
  226. package/src/util/permissions.ts +1 -0
  227. package/src/util/plurals.ts +0 -2
  228. package/src/util/resolutions.ts +32 -31
  229. package/src/util/storage.ts +75 -21
  230. package/src/util/strings.ts +2 -2
  231. package/src/util/useStorageUploadController.tsx +21 -3
  232. package/src/util/useTraceUpdate.tsx +2 -1
  233. package/dist/components/VirtualTable/common.d.ts +0 -2
  234. package/dist/core/Drawer.d.ts +0 -23
  235. package/dist/core/Scaffold.d.ts +0 -55
  236. package/dist/core/SideEntityView.d.ts +0 -7
  237. package/dist/form/EntityForm.d.ts +0 -77
  238. package/dist/internal/useBuildCustomizationController.d.ts +0 -2
  239. package/dist/internal/useLocaleConfig.d.ts +0 -1
  240. package/dist/types/appcheck.d.ts +0 -26
  241. package/src/core/Drawer.tsx +0 -191
  242. package/src/core/Scaffold.tsx +0 -281
  243. package/src/core/SideEntityView.tsx +0 -38
  244. package/src/form/EntityForm.tsx +0 -728
  245. package/src/internal/useBuildCustomizationController.tsx +0 -5
  246. package/src/internal/useLocaleConfig.tsx +0 -18
  247. package/src/types/appcheck.ts +0 -29
@@ -1,14 +1,14 @@
1
1
  import React from "react";
2
2
  import { FieldProps } from "./fields";
3
3
  import { PropertyPreviewProps } from "../preview";
4
- import { EntityReference, EntityValues, GeoPoint } from "./entities";
4
+ import { EntityReference, EntityValues, GeoPoint, Vector } from "./entities";
5
5
  import { ResolvedArrayProperty, ResolvedStringProperty } from "./resolved_entities";
6
6
  import { FilterValues } from "./collections";
7
7
  import { ChipColorKey, ChipColorScheme } from "@firecms/ui";
8
8
  /**
9
9
  * @group Entity properties
10
10
  */
11
- export type DataType<T extends CMSType = CMSType> = T extends string ? "string" : T extends number ? "number" : T extends boolean ? "boolean" : T extends Date ? "date" : T extends GeoPoint ? "geopoint" : T extends EntityReference ? "reference" : T extends Array<CMSType> ? "array" : T extends Record<string, any> ? "map" : never;
11
+ export type DataType<T extends CMSType = CMSType> = T extends string ? "string" : T extends number ? "number" : T extends boolean ? "boolean" : T extends Date ? "date" : T extends GeoPoint ? "geopoint" : T extends Vector ? "vector" : T extends EntityReference ? "reference" : T extends Array<CMSType> ? "array" : T extends Record<string, any> ? "map" : never;
12
12
  /**
13
13
  * @group Entity properties
14
14
  */
@@ -97,7 +97,7 @@ export interface BaseProperty<T extends CMSType, CustomProps = any> {
97
97
  /**
98
98
  * This value will be set by default for new entities.
99
99
  */
100
- defaultValue?: T;
100
+ defaultValue?: T | null;
101
101
  /**
102
102
  * Should this property be editable. If set to true, the user will be able to modify the property and
103
103
  * save the new config. The saved config will then become the source of truth.
@@ -474,6 +474,14 @@ export interface ReferenceProperty extends BaseProperty<EntityReference> {
474
474
  * specified values are considered.
475
475
  */
476
476
  previewProperties?: string[];
477
+ /**
478
+ * Should the reference include the ID of the entity. Defaults to `true`
479
+ */
480
+ includeId?: boolean;
481
+ /**
482
+ * Should the reference include a link to the entity (open the entity details). Defaults to `true`
483
+ */
484
+ includeEntityLink?: boolean;
477
485
  }
478
486
  /**
479
487
  * Rules to validate any property. Some properties have specific rules
@@ -620,6 +628,11 @@ export type StorageConfig = {
620
628
  * after it has been resolved.
621
629
  */
622
630
  postProcess?: (pathOrUrl: string) => Promise<string>;
631
+ /**
632
+ * You can use this prop in order to provide a custom preview URL.
633
+ * Useful when the file's path is different from the original field value
634
+ */
635
+ previewUrl?: (fileName: string) => string;
623
636
  };
624
637
  /**
625
638
  * @group Entity properties
@@ -644,7 +657,7 @@ export interface UploadedFileContext {
644
657
  /**
645
658
  * Entity path. E.g. `products/PID/locales`
646
659
  */
647
- path: string;
660
+ path?: string;
648
661
  /**
649
662
  * Values of the current entity
650
663
  */
@@ -6,6 +6,7 @@ export interface UploadFileProps {
6
6
  fileName?: string;
7
7
  path?: string;
8
8
  metadata?: any;
9
+ bucket?: string;
9
10
  }
10
11
  /**
11
12
  * @group Models
@@ -15,6 +16,10 @@ export interface UploadFileResult {
15
16
  * Storage path including the file name where the file was uploaded.
16
17
  */
17
18
  path: string;
19
+ /**
20
+ * Bucket where the file was uploaded
21
+ */
22
+ bucket: string;
18
23
  }
19
24
  /**
20
25
  * @group Models
@@ -66,17 +71,20 @@ export interface StorageSource {
66
71
  * @param fileName
67
72
  * @param path
68
73
  * @param metadata
74
+ * @param bucket
69
75
  */
70
- uploadFile: ({ file, fileName, path, metadata }: UploadFileProps) => Promise<UploadFileResult>;
76
+ uploadFile: ({ file, fileName, path, metadata, bucket }: UploadFileProps) => Promise<UploadFileResult>;
71
77
  /**
72
78
  * Convert a storage path or URL into a download configuration
73
79
  * @param path
80
+ * @param bucket
74
81
  */
75
- getDownloadURL: (pathOrUrl: string) => Promise<DownloadConfig>;
82
+ getDownloadURL: (pathOrUrl: string, bucket?: string) => Promise<DownloadConfig>;
76
83
  /**
77
84
  * Get a file from a storage path.
78
85
  * It returns null if the file does not exist.
79
86
  * @param props
87
+ * @param bucket
80
88
  */
81
- getFile: (path: string) => Promise<File | null>;
89
+ getFile: (path: string, bucket?: string) => Promise<File | null>;
82
90
  }
@@ -8,4 +8,4 @@ export declare function resolveDefaultSelectedView(defaultSelectedView: string |
8
8
  * @param collections
9
9
  * @param permissionsBuilder
10
10
  */
11
- export declare const applyPermissionsFunctionIfEmpty: (collections: EntityCollection[], permissionsBuilder?: PermissionsBuilder) => EntityCollection[];
11
+ export declare const applyPermissionsFunctionIfEmpty: (collections: EntityCollection[], permissionsBuilder?: PermissionsBuilder<any, any>) => EntityCollection[];
@@ -23,6 +23,6 @@ export declare function updateDateAutoValues<M extends Record<string, any>>({ in
23
23
  * @group Datasource
24
24
  */
25
25
  export declare function sanitizeData<M extends Record<string, any>>(values: EntityValues<M>, properties: ResolvedProperties<M>): any;
26
- export declare function getReferenceFrom<M extends Record<string, any>>(entity: Entity<M>): EntityReference<M>;
26
+ export declare function getReferenceFrom<M extends Record<string, any>>(entity: Entity<M>): EntityReference;
27
27
  export declare function traverseValuesProperties<M extends Record<string, any>>(inputValues: Partial<EntityValues<M>>, properties: ResolvedProperties<M>, operation: (value: any, property: Property) => any): EntityValues<M> | undefined;
28
28
  export declare function traverseValueProperty(inputValue: any, property: Property, operation: (value: any, property: Property) => any): any;
@@ -1,4 +1,4 @@
1
- export declare const icon_synonyms: {
1
+ export declare const iconSynonyms: {
2
2
  abc: string;
3
3
  access_alarm: string;
4
4
  access_alarms: string;
@@ -84,7 +84,6 @@ export declare const icon_synonyms: {
84
84
  apartment: string;
85
85
  api: string;
86
86
  app_blocking: string;
87
- apple: string;
88
87
  app_registration: string;
89
88
  approval: string;
90
89
  apps: string;
@@ -281,7 +280,6 @@ export declare const icon_synonyms: {
281
280
  cast: string;
282
281
  cast_connected: string;
283
282
  cast_for_education: string;
284
- catching_pokemon: string;
285
283
  category: string;
286
284
  celebration: string;
287
285
  cell_tower: string;
@@ -382,10 +380,6 @@ export declare const icon_synonyms: {
382
380
  credit_score: string;
383
381
  crib: string;
384
382
  crop: string;
385
- crop_169: string;
386
- crop_32: string;
387
- crop_54: string;
388
- crop_75: string;
389
383
  crop_din: string;
390
384
  crop_free: string;
391
385
  crop_landscape: string;
@@ -420,7 +414,6 @@ export declare const icon_synonyms: {
420
414
  delete_forever: string;
421
415
  delete_outline: string;
422
416
  delete_sweep: string;
423
- delivery_dining: string;
424
417
  density_large: string;
425
418
  density_medium: string;
426
419
  density_small: string;
@@ -525,11 +518,6 @@ export declare const icon_synonyms: {
525
518
  edit_road: string;
526
519
  egg: string;
527
520
  egg_alt: string;
528
- eighteen_mp: string;
529
- eight_k: string;
530
- eight_k_plus: string;
531
- eight_mp: string;
532
- eightteen_mp: string;
533
521
  eject: string;
534
522
  elderly: string;
535
523
  elderly_woman: string;
@@ -542,7 +530,6 @@ export declare const icon_synonyms: {
542
530
  electric_rickshaw: string;
543
531
  electric_scooter: string;
544
532
  elevator: string;
545
- eleven_mp: string;
546
533
  email: string;
547
534
  e_mobiledata: string;
548
535
  emoji_emotions: string;
@@ -582,7 +569,6 @@ export declare const icon_synonyms: {
582
569
  extension: string;
583
570
  extension_off: string;
584
571
  face: string;
585
- facebook: string;
586
572
  face_retouching_natural: string;
587
573
  face_retouching_off: string;
588
574
  fact_check: string;
@@ -606,7 +592,6 @@ export declare const icon_synonyms: {
606
592
  fiber_new: string;
607
593
  fiber_pin: string;
608
594
  fiber_smart_record: string;
609
- fifteen_mp: string;
610
595
  file_copy: string;
611
596
  file_download: string;
612
597
  file_download_done: string;
@@ -643,14 +628,8 @@ export declare const icon_synonyms: {
643
628
  fire_extinguisher: string;
644
629
  fireplace: string;
645
630
  first_page: string;
646
- fitbit: string;
647
631
  fitness_center: string;
648
632
  fit_screen: string;
649
- five_g: string;
650
- five_k: string;
651
- five_k_plus: string;
652
- five_mp: string;
653
- fivteen_mp: string;
654
633
  flag: string;
655
634
  flag_circle: string;
656
635
  flaky: string;
@@ -719,12 +698,6 @@ export declare const icon_synonyms: {
719
698
  forward_5: string;
720
699
  forward_to_inbox: string;
721
700
  foundation: string;
722
- four_g_mobiledata: string;
723
- four_g_plus_mobiledata: string;
724
- four_k: string;
725
- four_k_plus: string;
726
- four_mp: string;
727
- fourteen_mp: string;
728
701
  free_breakfast: string;
729
702
  fullscreen: string;
730
703
  fullscreen_exit: string;
@@ -740,10 +713,8 @@ export declare const icon_synonyms: {
740
713
  gif_box: string;
741
714
  girl: string;
742
715
  gite: string;
743
- git_hub: string;
744
716
  g_mobiledata: string;
745
717
  golf_course: string;
746
- google: string;
747
718
  gpp_bad: string;
748
719
  gpp_good: string;
749
720
  gpp_maybe: string;
@@ -756,8 +727,6 @@ export declare const icon_synonyms: {
756
727
  grain: string;
757
728
  graphic_eq: string;
758
729
  grass: string;
759
- grid3x3: string;
760
- grid4x4: string;
761
730
  grid_goldenratio: string;
762
731
  grid_off: string;
763
732
  grid_on: string;
@@ -802,7 +771,6 @@ export declare const icon_synonyms: {
802
771
  hide_image: string;
803
772
  hide_source: string;
804
773
  highlight: string;
805
- highlight_alt: string;
806
774
  highlight_off: string;
807
775
  high_quality: string;
808
776
  hiking: string;
@@ -862,14 +830,12 @@ export declare const icon_synonyms: {
862
830
  insert_page_break: string;
863
831
  insert_photo: string;
864
832
  insights: string;
865
- instagram: string;
866
833
  install_desktop: string;
867
834
  install_mobile: string;
868
835
  integration_instructions: string;
869
836
  interests: string;
870
837
  interpreter_mode: string;
871
838
  inventory: string;
872
- inventory2: string;
873
839
  invert_colors: string;
874
840
  invert_colors_off: string;
875
841
  ios_share: string;
@@ -939,7 +905,6 @@ export declare const icon_synonyms: {
939
905
  line_weight: string;
940
906
  link: string;
941
907
  linked_camera: string;
942
- linked_in: string;
943
908
  link_off: string;
944
909
  liquor: string;
945
910
  list: string;
@@ -1068,7 +1033,6 @@ export declare const icon_synonyms: {
1068
1033
  monochrome_photos: string;
1069
1034
  mood: string;
1070
1035
  mood_bad: string;
1071
- moped: string;
1072
1036
  more: string;
1073
1037
  more_horiz: string;
1074
1038
  more_time: string;
@@ -1116,13 +1080,8 @@ export declare const icon_synonyms: {
1116
1080
  nightlight_round: string;
1117
1081
  night_shelter: string;
1118
1082
  nights_stay: string;
1119
- nine_k: string;
1120
- nine_k_plus: string;
1121
- nine_mp: string;
1122
- nineteen_mp: string;
1123
1083
  no_accounts: string;
1124
1084
  no_backpack: string;
1125
- no_cell: string;
1126
1085
  no_drinks: string;
1127
1086
  no_encryption: string;
1128
1087
  no_encryption_gmailerrorred: string;
@@ -1160,9 +1119,6 @@ export declare const icon_synonyms: {
1160
1119
  oil_barrel: string;
1161
1120
  ondemand_video: string;
1162
1121
  on_device_training: string;
1163
- one_k: string;
1164
- one_kk: string;
1165
- one_k_plus: string;
1166
1122
  online_prediction: string;
1167
1123
  opacity: string;
1168
1124
  open_in_browser: string;
@@ -1184,13 +1140,9 @@ export declare const icon_synonyms: {
1184
1140
  panorama: string;
1185
1141
  panorama_fish_eye: string;
1186
1142
  panorama_horizontal: string;
1187
- panorama_horizontal_select: string;
1188
1143
  panorama_photosphere: string;
1189
- panorama_photosphere_select: string;
1190
1144
  panorama_vertical: string;
1191
- panorama_vertical_select: string;
1192
1145
  panorama_wide_angle: string;
1193
- panorama_wide_angle_select: string;
1194
1146
  pan_tool: string;
1195
1147
  paragliding: string;
1196
1148
  park: string;
@@ -1274,16 +1226,11 @@ export declare const icon_synonyms: {
1274
1226
  pin: string;
1275
1227
  pinch: string;
1276
1228
  pin_drop: string;
1277
- pinterest: string;
1278
1229
  pivot_table_chart: string;
1279
- pix: string;
1280
1230
  place: string;
1281
1231
  plagiarism: string;
1282
1232
  play_arrow: string;
1283
1233
  play_circle: string;
1284
- play_circle_filled: string;
1285
- play_circle_filled_white: string;
1286
- play_circle_outline: string;
1287
1234
  play_disabled: string;
1288
1235
  play_for_work: string;
1289
1236
  play_lesson: string;
@@ -1356,7 +1303,6 @@ export declare const icon_synonyms: {
1356
1303
  recommend: string;
1357
1304
  record_voice_over: string;
1358
1305
  rectangle: string;
1359
- reddit: string;
1360
1306
  redeem: string;
1361
1307
  redo: string;
1362
1308
  reduce_capacity: string;
@@ -1499,10 +1445,6 @@ export declare const icon_synonyms: {
1499
1445
  settings_suggest: string;
1500
1446
  settings_system_daydream: string;
1501
1447
  settings_voice: string;
1502
- seven_k: string;
1503
- seven_k_plus: string;
1504
- seven_mp: string;
1505
- seventeen_mp: string;
1506
1448
  share: string;
1507
1449
  share_location: string;
1508
1450
  shield: string;
@@ -1525,19 +1467,13 @@ export declare const icon_synonyms: {
1525
1467
  signal_cellular_4_bar: string;
1526
1468
  signal_cellular_alt: string;
1527
1469
  signal_cellular_connected_no_internet_0_bar: string;
1528
- signal_cellular_connected_no_internet_1_bar: string;
1529
- signal_cellular_connected_no_internet_2_bar: string;
1530
- signal_cellular_connected_no_internet_3_bar: string;
1531
1470
  signal_cellular_connected_no_internet_4_bar: string;
1532
1471
  signal_cellular_nodata: string;
1533
1472
  signal_cellular_no_sim: string;
1534
1473
  signal_cellular_null: string;
1535
1474
  signal_cellular_off: string;
1536
1475
  signal_wifi_bad: string;
1537
- signal_wifi_connected_no_internet4: string;
1538
1476
  signal_wifi_off: string;
1539
- signal_wifi_statusbar4_bar: string;
1540
- signal_wifi_statusbar_connected_no_internet4: string;
1541
1477
  signal_wifi_statusbar_null: string;
1542
1478
  signpost: string;
1543
1479
  sim_card: string;
@@ -1545,12 +1481,6 @@ export declare const icon_synonyms: {
1545
1481
  sim_card_download: string;
1546
1482
  single_bed: string;
1547
1483
  sip: string;
1548
- six_k: string;
1549
- six_k_plus: string;
1550
- six_mp: string;
1551
- sixteen_mp: string;
1552
- sixty_fps: string;
1553
- sixty_fps_select: string;
1554
1484
  skateboarding: string;
1555
1485
  skip_next: string;
1556
1486
  skip_previous: string;
@@ -1621,10 +1551,8 @@ export declare const icon_synonyms: {
1621
1551
  stairs: string;
1622
1552
  star: string;
1623
1553
  star_border: string;
1624
- star_border_purple_500: string;
1625
1554
  star_half: string;
1626
1555
  star_outline: string;
1627
- star_purple_500: string;
1628
1556
  star_rate: string;
1629
1557
  stars: string;
1630
1558
  start: string;
@@ -1712,8 +1640,6 @@ export declare const icon_synonyms: {
1712
1640
  task: string;
1713
1641
  task_alt: string;
1714
1642
  taxi_alert: string;
1715
- telegram: string;
1716
- ten_mp: string;
1717
1643
  terminal: string;
1718
1644
  terrain: string;
1719
1645
  text_decrease: string;
@@ -1733,16 +1659,6 @@ export declare const icon_synonyms: {
1733
1659
  theaters: string;
1734
1660
  thermostat: string;
1735
1661
  thermostat_auto: string;
1736
- thirteen_mp: string;
1737
- thirty_fps: string;
1738
- thirty_fps_select: string;
1739
- three_d_rotation: string;
1740
- three_g_mobiledata: string;
1741
- three_k: string;
1742
- three_k_plus: string;
1743
- three_mp: string;
1744
- three_p: string;
1745
- three_sixty: string;
1746
1662
  thumb_down: string;
1747
1663
  thumb_down_alt: string;
1748
1664
  thumb_down_off_alt: string;
@@ -1758,7 +1674,6 @@ export declare const icon_synonyms: {
1758
1674
  timer_3: string;
1759
1675
  timer_3_select: string;
1760
1676
  timer_off: string;
1761
- times_one_mobiledata: string;
1762
1677
  time_to_leave: string;
1763
1678
  tips_and_updates: string;
1764
1679
  title: string;
@@ -1802,16 +1717,6 @@ export declare const icon_synonyms: {
1802
1717
  turn_slight_right: string;
1803
1718
  tv: string;
1804
1719
  tv_off: string;
1805
- twelve_mp: string;
1806
- twenty_four_mp: string;
1807
- twenty_one_mp: string;
1808
- twenty_three_mp: string;
1809
- twenty_two_mp: string;
1810
- twenty_zero_mp: string;
1811
- twitter: string;
1812
- two_k: string;
1813
- two_k_plus: string;
1814
- two_mp: string;
1815
1720
  two_wheeler: string;
1816
1721
  umbrella: string;
1817
1722
  unarchive: string;
@@ -1941,7 +1846,6 @@ export declare const icon_synonyms: {
1941
1846
  wrong_location: string;
1942
1847
  wysiwyg: string;
1943
1848
  yard: string;
1944
- you_tube: string;
1945
1849
  youtube_searched_for: string;
1946
1850
  zoom_in: string;
1947
1851
  zoom_in_map: string;
@@ -8,6 +8,6 @@ export type IconViewProps = {
8
8
  icon?: string;
9
9
  };
10
10
  export declare const IconForView: React.NamedExoticComponent<{
11
- collectionOrView?: IconViewProps | undefined;
12
- className?: string | undefined;
11
+ collectionOrView?: IconViewProps;
12
+ className?: string;
13
13
  }>;
@@ -8,10 +8,10 @@ export declare function resolveCollectionPathIds(path: string, allCollections: E
8
8
  /**
9
9
  * Find the corresponding view at any depth for a given path.
10
10
  * Note that path or segments of the paths can be collection aliases.
11
- * @param pathOrAlias
11
+ * @param pathOrId
12
12
  * @param collections
13
13
  */
14
- export declare function getCollectionByPathOrId(pathOrAlias: string, collections: EntityCollection[]): EntityCollection | undefined;
14
+ export declare function getCollectionByPathOrId(pathOrId: string, collections: EntityCollection[]): EntityCollection | undefined;
15
15
  /**
16
16
  * Get the subcollection combinations from a path:
17
17
  * "sites/es/locales" => ["sites/es/locales", "sites"]
@@ -1,6 +1,6 @@
1
1
  export declare const pick: <T>(obj: T, ...args: any[]) => T;
2
2
  export declare function isObject(item: any): any;
3
- export declare function mergeDeep<T extends object>(target: T, source: any): T;
3
+ export declare function mergeDeep<T extends Record<any, any>, U extends Record<any, any>>(target: T, source: U): T & U;
4
4
  export declare function getValueInPath(o: object | undefined, path: string): any;
5
5
  export declare function removeInPath(o: object, path: string): object | undefined;
6
6
  export declare function removeFunctions(o: object | undefined): any;
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * Returns the plural of an English word.
3
3
  *
4
- * @export
5
4
  * @param {string} word
6
5
  * @param {number} [amount]
7
6
  * @returns {string}
@@ -10,7 +9,6 @@ export declare function plural(word: string, amount?: number): string;
10
9
  /**
11
10
  * Returns the singular of an English word.
12
11
  *
13
- * @export
14
12
  * @param {string} word
15
13
  * @param {number} [amount]
16
14
  * @returns {string}
@@ -1,23 +1,22 @@
1
1
  import { ArrayProperty, CMSType, EntityCollection, EntityCustomView, EntityValues, EnumValueConfig, EnumValues, NumberProperty, PropertiesOrBuilders, PropertyConfig, PropertyOrBuilder, ResolvedArrayProperty, ResolvedEntityCollection, ResolvedNumberProperty, ResolvedProperties, ResolvedProperty, ResolvedStringProperty, StringProperty, UserConfigurationPersistence } from "../types";
2
- export declare const resolveCollection: <M extends Record<string, any>>({ collection, path, entityId, values, previousValues, userConfigPersistence, fields }: {
2
+ export declare const resolveCollection: <M extends Record<string, any>>({ collection, path, entityId, values, previousValues, userConfigPersistence, fields, ignoreMissingFields }: {
3
3
  collection: EntityCollection<M> | ResolvedEntityCollection<M>;
4
4
  path: string;
5
- entityId?: string | undefined;
6
- values?: Partial<M> | undefined;
7
- previousValues?: Partial<M> | undefined;
8
- userConfigPersistence?: UserConfigurationPersistence | undefined;
9
- fields?: Record<string, PropertyConfig> | undefined;
5
+ entityId?: string;
6
+ values?: Partial<EntityValues<M>>;
7
+ previousValues?: Partial<EntityValues<M>>;
8
+ userConfigPersistence?: UserConfigurationPersistence;
9
+ fields?: Record<string, PropertyConfig>;
10
+ ignoreMissingFields?: boolean;
10
11
  }) => ResolvedEntityCollection<M>;
11
12
  /**
12
13
  * Resolve property builders, enums and arrays.
13
14
  * @param propertyOrBuilder
14
15
  * @param propertyValue
15
- * @param values
16
16
  */
17
- export declare function resolveProperty<T extends CMSType = CMSType, M extends Record<string, any> = any>({ propertyOrBuilder, propertyValue, fromBuilder, ...props }: {
17
+ export declare function resolveProperty<T extends CMSType = CMSType, M extends Record<string, any> = any>({ propertyOrBuilder, fromBuilder, ignoreMissingFields, ...props }: {
18
18
  propertyKey?: string;
19
19
  propertyOrBuilder: PropertyOrBuilder<T, M> | ResolvedProperty<T>;
20
- propertyValue?: unknown;
21
20
  values?: Partial<M>;
22
21
  previousValues?: Partial<M>;
23
22
  path?: string;
@@ -25,11 +24,11 @@ export declare function resolveProperty<T extends CMSType = CMSType, M extends R
25
24
  index?: number;
26
25
  fromBuilder?: boolean;
27
26
  fields?: Record<string, PropertyConfig<any>>;
27
+ ignoreMissingFields?: boolean;
28
28
  }): ResolvedProperty<T> | null;
29
- export declare function resolveArrayProperty<T extends any[], M>({ propertyKey, property, propertyValue, ...props }: {
29
+ export declare function resolveArrayProperty<T extends any[], M>({ propertyKey, property, ignoreMissingFields, ...props }: {
30
30
  propertyKey?: string;
31
31
  property: ArrayProperty<T> | ResolvedArrayProperty<T>;
32
- propertyValue: any;
33
32
  values?: Partial<M>;
34
33
  previousValues?: Partial<M>;
35
34
  path?: string;
@@ -37,15 +36,15 @@ export declare function resolveArrayProperty<T extends any[], M>({ propertyKey,
37
36
  index?: number;
38
37
  fromBuilder?: boolean;
39
38
  fields?: Record<string, PropertyConfig>;
39
+ ignoreMissingFields?: boolean;
40
40
  }): ResolvedArrayProperty;
41
41
  /**
42
42
  * Resolve enums and arrays for properties
43
43
  * @param properties
44
44
  * @param value
45
45
  */
46
- export declare function resolveProperties<M extends Record<string, any>>({ properties, propertyValue, ...props }: {
46
+ export declare function resolveProperties<M extends Record<string, any>>({ properties, ignoreMissingFields, ...props }: {
47
47
  properties: PropertiesOrBuilders<M>;
48
- propertyValue: unknown;
49
48
  values?: Partial<M>;
50
49
  previousValues?: Partial<M>;
51
50
  path?: string;
@@ -53,6 +52,7 @@ export declare function resolveProperties<M extends Record<string, any>>({ prope
53
52
  index?: number;
54
53
  fromBuilder?: boolean;
55
54
  fields?: Record<string, PropertyConfig>;
55
+ ignoreMissingFields?: boolean;
56
56
  }): ResolvedProperties<M>;
57
57
  /**
58
58
  * Resolve enum aliases for a string or number property
@@ -1,3 +1,24 @@
1
1
  import { EntityValues, ResolvedArrayProperty, ResolvedStringProperty, StorageConfig, UploadedFileContext } from "../types";
2
- export declare function resolveFilenameString<M extends object>(input: string | ((context: UploadedFileContext) => Promise<string> | string), storage: StorageConfig, values: EntityValues<M>, entityId: string, path: string, property: ResolvedStringProperty | ResolvedArrayProperty<string[]>, file: File, propertyKey: string): Promise<string>;
3
- export declare function resolveStoragePathString<M extends object>(input: string | ((context: UploadedFileContext) => string), storage: StorageConfig, values: EntityValues<M>, entityId: string, path: string, property: ResolvedStringProperty | ResolvedArrayProperty<string[]>, file: File, propertyKey: string): string;
2
+ interface ResolveFilenameStringParams<M extends object> {
3
+ input: string | ((context: UploadedFileContext) => (Promise<string> | string));
4
+ storage: StorageConfig;
5
+ values: EntityValues<M>;
6
+ entityId: string;
7
+ path?: string;
8
+ property: ResolvedStringProperty | ResolvedArrayProperty<string[]>;
9
+ file: File;
10
+ propertyKey: string;
11
+ }
12
+ export declare function resolveFilenameString<M extends object>({ input, storage, values, entityId, path, property, file, propertyKey }: ResolveFilenameStringParams<M>): Promise<string>;
13
+ interface ResolveStoragePathStringParams<M extends object> {
14
+ input: string | ((context: UploadedFileContext) => string);
15
+ storage: StorageConfig;
16
+ values: EntityValues<M>;
17
+ entityId: string;
18
+ path?: string;
19
+ property: ResolvedStringProperty | ResolvedArrayProperty<string[]>;
20
+ file: File;
21
+ propertyKey: string;
22
+ }
23
+ export declare function resolveStoragePathString<M extends object>({ input, storage, values, entityId, path, property, file, propertyKey }: ResolveStoragePathStringParams<M>): string;
24
+ export {};
@@ -18,7 +18,7 @@ export declare function useStorageUploadController<M extends object>({ entityId,
18
18
  entityId: string;
19
19
  entityValues: EntityValues<M>;
20
20
  value: string | string[] | null;
21
- path: string;
21
+ path?: string;
22
22
  propertyKey: string;
23
23
  property: ResolvedStringProperty | ResolvedArrayProperty<string[]>;
24
24
  storageSource: StorageSource;
@@ -1 +1,2 @@
1
+ export declare function printChanged(props: any, prev: any, path?: string | undefined, depth?: number | undefined, maxDepth?: number | undefined): void;
1
2
  export declare function useTraceUpdate(props: any, maxDepth?: number): void;