@firecms/core 3.5.2-canary.c5764a3 → 3.5.3

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 (589) hide show
  1. package/dist/app/AppBar.d.ts +1 -1
  2. package/dist/app/index.d.ts +4 -4
  3. package/dist/components/ClearFilterSortButton.d.ts +1 -1
  4. package/dist/components/DeleteEntityDialog.d.ts +1 -1
  5. package/dist/components/EntityCollectionTable/EntityCollectionRowActions.d.ts +1 -1
  6. package/dist/components/EntityCollectionTable/EntityCollectionTable.d.ts +2 -2
  7. package/dist/components/EntityCollectionTable/EntityCollectionTableProps.d.ts +3 -3
  8. package/dist/components/EntityCollectionTable/PropertyTableCell.d.ts +2 -2
  9. package/dist/components/EntityCollectionTable/column_utils.d.ts +2 -2
  10. package/dist/components/EntityCollectionTable/fields/TableReferenceField.d.ts +1 -1
  11. package/dist/components/EntityCollectionTable/fields/TableStorageUpload.d.ts +2 -2
  12. package/dist/components/EntityCollectionTable/index.d.ts +6 -6
  13. package/dist/components/EntityCollectionTable/internal/EntityTableCell.d.ts +1 -1
  14. package/dist/components/EntityCollectionTable/internal/common.d.ts +1 -1
  15. package/dist/components/EntityCollectionTable/internal/popup_field/PopupFormField.d.ts +3 -3
  16. package/dist/components/EntityCollectionView/Board.d.ts +1 -1
  17. package/dist/components/EntityCollectionView/BoardColumn.d.ts +1 -1
  18. package/dist/components/EntityCollectionView/BoardSortableList.d.ts +1 -1
  19. package/dist/components/EntityCollectionView/CollectionCountBadge.d.ts +8 -0
  20. package/dist/components/EntityCollectionView/CollectionPathTitle.d.ts +24 -0
  21. package/dist/components/EntityCollectionView/EntityBoardCard.d.ts +2 -2
  22. package/dist/components/EntityCollectionView/EntityCard.d.ts +1 -1
  23. package/dist/components/EntityCollectionView/EntityCollectionBoardView.d.ts +1 -1
  24. package/dist/components/EntityCollectionView/EntityCollectionCardView.d.ts +1 -1
  25. package/dist/components/EntityCollectionView/EntityCollectionView.d.ts +6 -1
  26. package/dist/components/EntityCollectionView/EntityCollectionViewActions.d.ts +1 -1
  27. package/dist/components/EntityCollectionView/EntityCollectionViewStartActions.d.ts +1 -1
  28. package/dist/components/EntityCollectionView/EntityIdHeaderWidget.d.ts +12 -0
  29. package/dist/components/EntityCollectionView/FiltersDialog.d.ts +1 -1
  30. package/dist/components/EntityCollectionView/ViewModeToggle.d.ts +1 -1
  31. package/dist/components/EntityCollectionView/board_types.d.ts +1 -1
  32. package/dist/components/EntityCollectionView/useBoardDataController.d.ts +1 -1
  33. package/dist/components/EntityCollectionView/useSelectionController.d.ts +1 -1
  34. package/dist/components/EntityCollectionView/utils.d.ts +4 -3
  35. package/dist/components/EntityPreview.d.ts +2 -2
  36. package/dist/components/EntityView.d.ts +1 -1
  37. package/dist/components/HomePage/HomePageDnD.d.ts +1 -1
  38. package/dist/components/HomePage/NavigationCardBinding.d.ts +1 -1
  39. package/dist/components/HomePage/index.d.ts +5 -5
  40. package/dist/components/PropertyCollectionView.d.ts +2 -2
  41. package/dist/components/PropertyConfigBadge.d.ts +1 -1
  42. package/dist/components/ReferenceTable/ReferenceSelectionTable.d.ts +1 -1
  43. package/dist/components/ReferenceWidget.d.ts +2 -2
  44. package/dist/components/SelectableTable/SelectableTable.d.ts +3 -3
  45. package/dist/components/SelectableTable/SelectableTableContext.d.ts +1 -1
  46. package/dist/components/SelectableTable/filters/BooleanFilterField.d.ts +1 -1
  47. package/dist/components/SelectableTable/filters/DateTimeFilterField.d.ts +1 -1
  48. package/dist/components/SelectableTable/filters/ReferenceFilterField.d.ts +1 -1
  49. package/dist/components/SelectableTable/filters/StringNumberFilterField.d.ts +2 -2
  50. package/dist/components/UserDisplay.d.ts +1 -1
  51. package/dist/components/VirtualTable/VirtualTable.d.ts +1 -1
  52. package/dist/components/VirtualTable/VirtualTableCell.d.ts +1 -1
  53. package/dist/components/VirtualTable/VirtualTableHeader.d.ts +1 -1
  54. package/dist/components/VirtualTable/VirtualTableHeaderRow.d.ts +1 -1
  55. package/dist/components/VirtualTable/VirtualTableProps.d.ts +2 -2
  56. package/dist/components/VirtualTable/VirtualTableRow.d.ts +1 -1
  57. package/dist/components/VirtualTable/fields/VirtualTableSelect.d.ts +1 -1
  58. package/dist/components/VirtualTable/index.d.ts +2 -2
  59. package/dist/components/VirtualTable/types.d.ts +2 -2
  60. package/dist/components/common/default_entity_actions.d.ts +1 -1
  61. package/dist/components/common/index.d.ts +6 -6
  62. package/dist/components/common/table_url_params.d.ts +1 -1
  63. package/dist/components/common/types.d.ts +1 -1
  64. package/dist/components/common/useColumnsIds.d.ts +2 -2
  65. package/dist/components/common/useDataSourceTableController.d.ts +2 -2
  66. package/dist/components/common/useScrollRestoration.d.ts +1 -1
  67. package/dist/components/common/useTableSearchHelper.d.ts +1 -1
  68. package/dist/components/index.d.ts +33 -33
  69. package/dist/contexts/AnalyticsContext.d.ts +1 -1
  70. package/dist/contexts/AuthControllerContext.d.ts +1 -1
  71. package/dist/contexts/BreacrumbsContext.d.ts +1 -1
  72. package/dist/contexts/CustomizationControllerContext.d.ts +1 -1
  73. package/dist/contexts/DataSourceContext.d.ts +1 -1
  74. package/dist/contexts/DialogsProvider.d.ts +1 -1
  75. package/dist/contexts/InternalUserManagementContext.d.ts +1 -1
  76. package/dist/contexts/LicenseStatusContext.d.ts +1 -1
  77. package/dist/contexts/ModeController.d.ts +1 -1
  78. package/dist/contexts/NavigationContext.d.ts +1 -1
  79. package/dist/contexts/SideDialogsControllerContext.d.ts +1 -1
  80. package/dist/contexts/SideEntityControllerContext.d.ts +1 -1
  81. package/dist/contexts/StorageSourceContext.d.ts +1 -1
  82. package/dist/contexts/UserConfigurationPersistenceContext.d.ts +1 -1
  83. package/dist/contexts/index.d.ts +13 -13
  84. package/dist/core/DefaultAppBar.d.ts +1 -1
  85. package/dist/core/DrawerNavigationGroup.d.ts +1 -1
  86. package/dist/core/EntityEditView.d.ts +2 -2
  87. package/dist/core/EntityEditViewFormActions.d.ts +1 -1
  88. package/dist/core/EntitySidePanel.d.ts +1 -1
  89. package/dist/core/FireCMS.d.ts +1 -1
  90. package/dist/core/field_configs.d.ts +1 -1
  91. package/dist/core/index.d.ts +10 -10
  92. package/dist/core/plugin_translations.d.ts +1 -1
  93. package/dist/core/pro_plugins.d.ts +1 -1
  94. package/dist/{de-CUF9f7S-.js → de-CNfJQcnh.js} +1 -1
  95. package/dist/de-CNfJQcnh.js.map +1 -0
  96. package/dist/editor/components/SlashCommandMenu.d.ts +2 -2
  97. package/dist/editor/components/index.d.ts +5 -5
  98. package/dist/editor/editor.d.ts +2 -2
  99. package/dist/editor/index.d.ts +3 -3
  100. package/dist/editor/lazy_editor.d.ts +1 -1
  101. package/dist/editor/nodeViews/ImageComponent.d.ts +1 -1
  102. package/dist/editor/nodeViews/TaskItemComponent.d.ts +1 -1
  103. package/dist/editor/selectors/ai-selector.d.ts +1 -0
  104. package/dist/editor/types.d.ts +1 -1
  105. package/dist/{editor-WZytSO_1.js → editor-D0A5yaaJ.js} +1 -1
  106. package/dist/editor-D0A5yaaJ.js.map +1 -0
  107. package/dist/form/EntityForm.d.ts +2 -2
  108. package/dist/form/EntityFormActions.d.ts +1 -1
  109. package/dist/form/PropertyFieldBinding.d.ts +1 -1
  110. package/dist/form/components/CustomIdField.d.ts +1 -1
  111. package/dist/form/components/FieldHelperText.d.ts +1 -1
  112. package/dist/form/components/LocalChangesMenu.d.ts +1 -1
  113. package/dist/form/components/StorageItemPreview.d.ts +2 -2
  114. package/dist/form/components/StorageUploadProgress.d.ts +1 -1
  115. package/dist/form/components/index.d.ts +5 -5
  116. package/dist/form/field_bindings/ArrayCustomShapedFieldBinding.d.ts +1 -1
  117. package/dist/form/field_bindings/ArrayOfReferencesFieldBinding.d.ts +1 -1
  118. package/dist/form/field_bindings/BlockFieldBinding.d.ts +1 -1
  119. package/dist/form/field_bindings/DateTimeFieldBinding.d.ts +1 -1
  120. package/dist/form/field_bindings/GeopointFieldBinding.d.ts +1 -1
  121. package/dist/form/field_bindings/KeyValueFieldBinding.d.ts +1 -1
  122. package/dist/form/field_bindings/MapFieldBinding.d.ts +1 -1
  123. package/dist/form/field_bindings/MarkdownEditorFieldBinding.d.ts +2 -2
  124. package/dist/form/field_bindings/MultiSelectFieldBinding.d.ts +1 -1
  125. package/dist/form/field_bindings/ReadOnlyFieldBinding.d.ts +1 -1
  126. package/dist/form/field_bindings/ReferenceAsStringFieldBinding.d.ts +1 -1
  127. package/dist/form/field_bindings/ReferenceFieldBinding.d.ts +1 -1
  128. package/dist/form/field_bindings/RepeatFieldBinding.d.ts +1 -1
  129. package/dist/form/field_bindings/SelectFieldBinding.d.ts +1 -1
  130. package/dist/form/field_bindings/StorageUploadFieldBinding.d.ts +2 -2
  131. package/dist/form/field_bindings/SwitchFieldBinding.d.ts +1 -1
  132. package/dist/form/field_bindings/TextFieldBinding.d.ts +1 -1
  133. package/dist/form/field_bindings/UserSelectFieldBinding.d.ts +1 -1
  134. package/dist/form/index.d.ts +22 -22
  135. package/dist/form/useClearRestoreValue.d.ts +1 -1
  136. package/dist/form/validation.d.ts +1 -1
  137. package/dist/{fr-DmkMX6hp.js → fr-CBtSvDVp.js} +1 -1
  138. package/dist/fr-CBtSvDVp.js.map +1 -0
  139. package/dist/{hi-BKuaMr7w.js → hi-Delc4l61.js} +1 -1
  140. package/dist/hi-Delc4l61.js.map +1 -0
  141. package/dist/hooks/data/delete.d.ts +1 -1
  142. package/dist/hooks/data/save.d.ts +1 -1
  143. package/dist/hooks/data/useCollectionFetch.d.ts +1 -1
  144. package/dist/hooks/data/useDataOrder.d.ts +1 -1
  145. package/dist/hooks/data/useDataSource.d.ts +1 -1
  146. package/dist/hooks/data/useEntityFetch.d.ts +1 -1
  147. package/dist/hooks/index.d.ts +29 -29
  148. package/dist/hooks/useAnalyticsController.d.ts +1 -1
  149. package/dist/hooks/useAuthController.d.ts +1 -1
  150. package/dist/hooks/useBuildLocalConfigurationPersistence.d.ts +1 -1
  151. package/dist/hooks/useBuildModeController.d.ts +1 -1
  152. package/dist/hooks/useBuildNavigationController.d.ts +1 -1
  153. package/dist/hooks/useCustomizationController.d.ts +1 -1
  154. package/dist/hooks/useDialogsController.d.ts +1 -1
  155. package/dist/hooks/useFireCMSContext.d.ts +1 -1
  156. package/dist/hooks/useInternalUserManagementController.d.ts +1 -1
  157. package/dist/hooks/useLicenseStatus.d.ts +1 -1
  158. package/dist/hooks/useNavigationController.d.ts +1 -1
  159. package/dist/hooks/useProjectLog.d.ts +1 -1
  160. package/dist/hooks/useReferenceDialog.d.ts +1 -1
  161. package/dist/hooks/useResolvedNavigationFrom.d.ts +1 -1
  162. package/dist/hooks/useSideDialogsController.d.ts +1 -1
  163. package/dist/hooks/useSideEntityController.d.ts +1 -1
  164. package/dist/hooks/useStorageSource.d.ts +1 -1
  165. package/dist/hooks/useUserConfigurationPersistence.d.ts +1 -1
  166. package/dist/hooks/useValidateAuthenticator.d.ts +1 -1
  167. package/dist/i18n/FireCMSi18nProvider.d.ts +1 -1
  168. package/dist/index.d.ts +14 -14
  169. package/dist/index.es.js +624 -579
  170. package/dist/index.es.js.map +1 -1
  171. package/dist/index.umd.js +616 -571
  172. package/dist/index.umd.js.map +1 -1
  173. package/dist/internal/useBuildDataSource.d.ts +1 -1
  174. package/dist/internal/useBuildSideDialogsController.d.ts +1 -1
  175. package/dist/internal/useBuildSideEntityController.d.ts +1 -1
  176. package/dist/internal/useLeavePageConfirmation.d.ts +11 -0
  177. package/dist/{it-BwQflFGz.js → it-CdsoaRVO.js} +1 -1
  178. package/dist/it-CdsoaRVO.js.map +1 -0
  179. package/dist/locales/de.d.ts +1 -1
  180. package/dist/locales/en.d.ts +1 -1
  181. package/dist/locales/es.d.ts +1 -1
  182. package/dist/locales/fr.d.ts +1 -1
  183. package/dist/locales/hi.d.ts +1 -1
  184. package/dist/locales/it.d.ts +1 -1
  185. package/dist/locales/pl.d.ts +1 -1
  186. package/dist/locales/pt.d.ts +1 -1
  187. package/dist/{pl-BPsAvZvc.js → pl-DoTvWcwp.js} +1 -1
  188. package/dist/pl-DoTvWcwp.js.map +1 -0
  189. package/dist/preview/PropertyPreview.d.ts +2 -2
  190. package/dist/preview/PropertyPreviewProps.d.ts +1 -1
  191. package/dist/preview/components/ArrayEnumPreview.d.ts +2 -2
  192. package/dist/preview/components/BooleanPreview.d.ts +2 -2
  193. package/dist/preview/components/EnumValuesChip.d.ts +1 -1
  194. package/dist/preview/components/ImagePreview.d.ts +1 -1
  195. package/dist/preview/components/ReferencePreview.d.ts +2 -2
  196. package/dist/preview/components/StorageThumbnail.d.ts +1 -1
  197. package/dist/preview/components/UrlComponentPreview.d.ts +2 -2
  198. package/dist/preview/components/UserPreview.d.ts +1 -1
  199. package/dist/preview/components/__tests__/DatePreview.test.d.ts +1 -0
  200. package/dist/preview/index.d.ts +25 -25
  201. package/dist/preview/property_previews/ArrayOfMapsPreview.d.ts +1 -1
  202. package/dist/preview/property_previews/ArrayOfReferencesPreview.d.ts +1 -1
  203. package/dist/preview/property_previews/ArrayOfStorageComponentsPreview.d.ts +1 -1
  204. package/dist/preview/property_previews/ArrayOfStringsPreview.d.ts +1 -1
  205. package/dist/preview/property_previews/ArrayOneOfPreview.d.ts +1 -1
  206. package/dist/preview/property_previews/ArrayPropertyEnumPreview.d.ts +1 -1
  207. package/dist/preview/property_previews/ArrayPropertyPreview.d.ts +1 -1
  208. package/dist/preview/property_previews/GeopointPropertyPreview.d.ts +2 -2
  209. package/dist/preview/property_previews/MapPropertyPreview.d.ts +1 -1
  210. package/dist/preview/property_previews/NumberPropertyPreview.d.ts +1 -1
  211. package/dist/preview/property_previews/SkeletonPropertyComponent.d.ts +2 -2
  212. package/dist/preview/property_previews/StringPropertyPreview.d.ts +1 -1
  213. package/dist/preview/util.d.ts +2 -2
  214. package/dist/{pt-D5q7OQp1.js → pt-DCfk8Nkq.js} +1 -1
  215. package/dist/pt-DCfk8Nkq.js.map +1 -0
  216. package/dist/routes/CustomCMSRoute.d.ts +1 -1
  217. package/dist/types/analytics_controller.d.ts +1 -1
  218. package/dist/types/auth.d.ts +4 -4
  219. package/dist/types/collections.d.ts +10 -10
  220. package/dist/types/customization_controller.d.ts +6 -6
  221. package/dist/types/datasource.d.ts +4 -4
  222. package/dist/types/entity_actions.d.ts +6 -6
  223. package/dist/types/entity_callbacks.d.ts +5 -5
  224. package/dist/types/entity_link_builder.d.ts +1 -1
  225. package/dist/types/entity_overrides.d.ts +2 -2
  226. package/dist/types/export_import.d.ts +3 -3
  227. package/dist/types/fields.d.ts +3 -3
  228. package/dist/types/firecms.d.ts +15 -15
  229. package/dist/types/firecms_context.d.ts +14 -14
  230. package/dist/types/index.d.ts +32 -32
  231. package/dist/types/internal_user_management.d.ts +1 -1
  232. package/dist/types/local_config_persistence.d.ts +1 -1
  233. package/dist/types/locales.d.ts +1 -1
  234. package/dist/types/modify_collections.d.ts +1 -1
  235. package/dist/types/navigation.d.ts +3 -3
  236. package/dist/types/permissions.d.ts +4 -4
  237. package/dist/types/plugins.d.ts +9 -9
  238. package/dist/types/properties.d.ts +6 -6
  239. package/dist/types/property_config.d.ts +1 -1
  240. package/dist/types/resolved_entities.d.ts +3 -3
  241. package/dist/types/roles.d.ts +1 -1
  242. package/dist/types/side_dialogs_controller.d.ts +4 -2
  243. package/dist/types/side_entity_controller.d.ts +4 -4
  244. package/dist/types/user.d.ts +1 -1
  245. package/dist/util/__tests__/locales.test.d.ts +1 -0
  246. package/dist/util/builders.d.ts +1 -1
  247. package/dist/util/callbacks.d.ts +1 -1
  248. package/dist/util/collections.d.ts +1 -1
  249. package/dist/util/conditions.d.ts +1 -1
  250. package/dist/util/date_fns_locales.d.ts +14 -1
  251. package/dist/util/entities.d.ts +1 -1
  252. package/dist/util/entity_actions.d.ts +1 -1
  253. package/dist/util/enums.d.ts +1 -1
  254. package/dist/util/geopoint.d.ts +1 -1
  255. package/dist/util/index.d.ts +31 -31
  256. package/dist/util/join_collections.d.ts +1 -1
  257. package/dist/util/make_properties_editable.d.ts +1 -1
  258. package/dist/util/navigation_from_path.d.ts +1 -1
  259. package/dist/util/navigation_utils.d.ts +1 -1
  260. package/dist/util/parent_references_from_path.d.ts +1 -1
  261. package/dist/util/permissions.d.ts +1 -1
  262. package/dist/util/previews.d.ts +1 -1
  263. package/dist/util/property_utils.d.ts +1 -1
  264. package/dist/util/resolutions.d.ts +1 -1
  265. package/dist/util/storage.d.ts +1 -1
  266. package/dist/util/urls.d.ts +1 -1
  267. package/dist/util/useStorageUploadController.d.ts +2 -2
  268. package/package.json +13 -4
  269. package/src/app/AppBar.tsx +1 -1
  270. package/src/app/Drawer.tsx +1 -1
  271. package/src/app/Scaffold.tsx +5 -5
  272. package/src/app/index.ts +4 -4
  273. package/src/components/AIIcon.tsx +1 -1
  274. package/src/components/ArrayContainer.tsx +2 -2
  275. package/src/components/ClearFilterSortButton.tsx +2 -2
  276. package/src/components/ConfirmationDialog.tsx +1 -1
  277. package/src/components/DeleteEntityDialog.tsx +5 -5
  278. package/src/components/EntityCollectionTable/EntityCollectionRowActions.tsx +5 -5
  279. package/src/components/EntityCollectionTable/EntityCollectionTable.tsx +16 -16
  280. package/src/components/EntityCollectionTable/EntityCollectionTableProps.tsx +3 -3
  281. package/src/components/EntityCollectionTable/PropertyTableCell.tsx +18 -18
  282. package/src/components/EntityCollectionTable/column_utils.tsx +5 -5
  283. package/src/components/EntityCollectionTable/fields/TableReferenceField.tsx +8 -8
  284. package/src/components/EntityCollectionTable/fields/TableStorageUpload.tsx +8 -8
  285. package/src/components/EntityCollectionTable/index.tsx +6 -6
  286. package/src/components/EntityCollectionTable/internal/CollectionTableToolbar.tsx +1 -1
  287. package/src/components/EntityCollectionTable/internal/EntityTableCell.tsx +3 -3
  288. package/src/components/EntityCollectionTable/internal/EntityTableCellActions.tsx +1 -1
  289. package/src/components/EntityCollectionTable/internal/common.tsx +1 -1
  290. package/src/components/EntityCollectionTable/internal/popup_field/PopupFormField.tsx +8 -8
  291. package/src/components/EntityCollectionView/Board.tsx +2 -2
  292. package/src/components/EntityCollectionView/BoardColumn.tsx +3 -3
  293. package/src/components/EntityCollectionView/BoardSortableList.tsx +2 -2
  294. package/src/components/EntityCollectionView/CollectionCountBadge.tsx +17 -0
  295. package/src/components/EntityCollectionView/CollectionDataErrorBanner.tsx +1 -1
  296. package/src/components/EntityCollectionView/CollectionPathTitle.tsx +68 -0
  297. package/src/components/EntityCollectionView/EntityBoardCard.tsx +5 -5
  298. package/src/components/EntityCollectionView/EntityCard.tsx +5 -5
  299. package/src/components/EntityCollectionView/EntityCollectionBoardView.tsx +11 -11
  300. package/src/components/EntityCollectionView/EntityCollectionCardView.tsx +3 -3
  301. package/src/components/EntityCollectionView/EntityCollectionView.tsx +35 -134
  302. package/src/components/EntityCollectionView/EntityCollectionViewActions.tsx +6 -6
  303. package/src/components/EntityCollectionView/EntityCollectionViewStartActions.tsx +7 -7
  304. package/src/components/EntityCollectionView/EntityIdHeaderWidget.tsx +166 -0
  305. package/src/components/EntityCollectionView/FiltersDialog.tsx +8 -8
  306. package/src/components/EntityCollectionView/ViewModeToggle.tsx +2 -2
  307. package/src/components/EntityCollectionView/board_types.ts +1 -1
  308. package/src/components/EntityCollectionView/useBoardDataController.tsx +2 -2
  309. package/src/components/EntityCollectionView/useSelectionController.tsx +1 -1
  310. package/src/components/EntityCollectionView/utils.ts +14 -8
  311. package/src/components/EntityJsonPreview.tsx +2 -2
  312. package/src/components/EntityPreview.tsx +5 -5
  313. package/src/components/EntityView.tsx +6 -6
  314. package/src/components/ErrorBoundary.tsx +1 -1
  315. package/src/components/ErrorView.tsx +1 -1
  316. package/src/components/HomePage/DefaultHomePage.tsx +10 -10
  317. package/src/components/HomePage/FavouritesView.tsx +3 -3
  318. package/src/components/HomePage/HomePageDnD.tsx +3 -3
  319. package/src/components/HomePage/NavigationCardBinding.tsx +6 -6
  320. package/src/components/HomePage/NavigationGroup.tsx +1 -1
  321. package/src/components/HomePage/RenameGroupDialog.tsx +1 -1
  322. package/src/components/HomePage/index.tsx +5 -5
  323. package/src/components/LanguageToggle.tsx +1 -1
  324. package/src/components/LicenseBanner.tsx +5 -5
  325. package/src/components/NotFoundPage.tsx +1 -1
  326. package/src/components/PropertyCollectionView.tsx +3 -3
  327. package/src/components/PropertyConfigBadge.tsx +3 -3
  328. package/src/components/ReferenceTable/ReferenceSelectionTable.tsx +9 -9
  329. package/src/components/ReferenceWidget.tsx +4 -4
  330. package/src/components/SearchIconsView.tsx +2 -2
  331. package/src/components/SelectableTable/SelectableTable.tsx +11 -11
  332. package/src/components/SelectableTable/SelectableTableContext.tsx +1 -1
  333. package/src/components/SelectableTable/filters/BooleanFilterField.tsx +1 -1
  334. package/src/components/SelectableTable/filters/DateTimeFilterField.tsx +2 -2
  335. package/src/components/SelectableTable/filters/ReferenceFilterField.tsx +5 -5
  336. package/src/components/SelectableTable/filters/StringNumberFilterField.tsx +4 -4
  337. package/src/components/SelectableTable/filters/filter_text_input.test.ts +1 -1
  338. package/src/components/UnsavedChangesDialog.tsx +1 -1
  339. package/src/components/UserDisplay.tsx +2 -2
  340. package/src/components/VirtualTable/VirtualTable.performance.test.tsx +2 -2
  341. package/src/components/VirtualTable/VirtualTable.tsx +7 -7
  342. package/src/components/VirtualTable/VirtualTableCell.tsx +1 -1
  343. package/src/components/VirtualTable/VirtualTableHeader.tsx +3 -3
  344. package/src/components/VirtualTable/VirtualTableHeaderRow.tsx +4 -4
  345. package/src/components/VirtualTable/VirtualTableProps.tsx +2 -2
  346. package/src/components/VirtualTable/VirtualTableRow.tsx +1 -1
  347. package/src/components/VirtualTable/fields/VirtualTableDateField.tsx +1 -1
  348. package/src/components/VirtualTable/fields/VirtualTableInput.tsx +1 -1
  349. package/src/components/VirtualTable/fields/VirtualTableNumberInput.tsx +1 -1
  350. package/src/components/VirtualTable/fields/VirtualTableSelect.tsx +2 -2
  351. package/src/components/VirtualTable/fields/VirtualTableUserSelect.tsx +2 -2
  352. package/src/components/VirtualTable/index.tsx +2 -2
  353. package/src/components/VirtualTable/types.tsx +2 -2
  354. package/src/components/common/default_entity_actions.tsx +6 -5
  355. package/src/components/common/index.ts +6 -6
  356. package/src/components/common/table_url_params.ts +2 -2
  357. package/src/components/common/types.tsx +1 -1
  358. package/src/components/common/useColumnsIds.tsx +4 -4
  359. package/src/components/common/useDataSourceTableController.tsx +7 -7
  360. package/src/components/common/useScrollRestoration.tsx +1 -1
  361. package/src/components/common/useTableSearchHelper.ts +2 -2
  362. package/src/components/index.tsx +33 -33
  363. package/src/contexts/AnalyticsContext.tsx +1 -1
  364. package/src/contexts/AuthControllerContext.tsx +1 -1
  365. package/src/contexts/BreacrumbsContext.tsx +1 -1
  366. package/src/contexts/CustomizationControllerContext.tsx +1 -1
  367. package/src/contexts/DataSourceContext.tsx +1 -1
  368. package/src/contexts/DialogsProvider.tsx +1 -1
  369. package/src/contexts/InternalUserManagementContext.tsx +1 -1
  370. package/src/contexts/LicenseStatusContext.tsx +1 -1
  371. package/src/contexts/ModeController.tsx +1 -1
  372. package/src/contexts/NavigationContext.tsx +1 -1
  373. package/src/contexts/SideDialogsControllerContext.tsx +1 -1
  374. package/src/contexts/SideEntityControllerContext.tsx +1 -1
  375. package/src/contexts/StorageSourceContext.tsx +1 -1
  376. package/src/contexts/UserConfigurationPersistenceContext.tsx +1 -1
  377. package/src/contexts/index.ts +13 -13
  378. package/src/core/DefaultAppBar.tsx +18 -15
  379. package/src/core/DefaultDrawer.tsx +7 -7
  380. package/src/core/DrawerNavigationGroup.tsx +4 -4
  381. package/src/core/EntityEditView.tsx +36 -11
  382. package/src/core/EntityEditViewFormActions.tsx +7 -7
  383. package/src/core/EntitySidePanel.tsx +6 -6
  384. package/src/core/FireCMS.tsx +24 -24
  385. package/src/core/FireCMSRouter.tsx +1 -1
  386. package/src/core/NavigationRoutes.tsx +6 -6
  387. package/src/core/SideDialogs.tsx +11 -18
  388. package/src/core/field_configs.tsx +7 -7
  389. package/src/core/index.tsx +10 -10
  390. package/src/core/plugin_translations.ts +1 -1
  391. package/src/core/pro_plugins.ts +1 -1
  392. package/src/editor/components/SlashCommandMenu.tsx +7 -7
  393. package/src/editor/components/editor-bubble-item.tsx +1 -1
  394. package/src/editor/components/editor-bubble.tsx +1 -1
  395. package/src/editor/components/image-bubble.tsx +1 -1
  396. package/src/editor/components/index.ts +5 -5
  397. package/src/editor/components/table-bubble.tsx +1 -1
  398. package/src/editor/editor.tsx +12 -12
  399. package/src/editor/extensions/Image/index.ts +1 -1
  400. package/src/editor/extensions/drag-and-drop.tsx +1 -1
  401. package/src/editor/hooks/useProseMirror.ts +5 -5
  402. package/src/editor/index.ts +3 -3
  403. package/src/editor/lazy_editor.tsx +3 -3
  404. package/src/editor/markdown.ts +1 -1
  405. package/src/editor/nodeViews/ImageComponent.tsx +1 -1
  406. package/src/editor/nodeViews/TaskItemComponent.tsx +1 -1
  407. package/src/editor/nodeViews/index.ts +3 -3
  408. package/src/editor/plugins/index.ts +7 -7
  409. package/src/editor/plugins/inputrules.ts +1 -1
  410. package/src/editor/selectors/color-selector.tsx +4 -4
  411. package/src/editor/selectors/link-selector.tsx +4 -4
  412. package/src/editor/selectors/node-selector.tsx +5 -5
  413. package/src/editor/selectors/text-buttons.tsx +5 -5
  414. package/src/editor/types.ts +1 -1
  415. package/src/editor/useProseMirror.ts +3 -3
  416. package/src/form/EntityForm.tsx +13 -13
  417. package/src/form/EntityFormActions.tsx +3 -3
  418. package/src/form/PropertyFieldBinding.tsx +6 -6
  419. package/src/form/components/CustomIdField.tsx +6 -6
  420. package/src/form/components/FieldHelperText.tsx +1 -1
  421. package/src/form/components/FormEntry.tsx +1 -1
  422. package/src/form/components/LabelWithIconAndTooltip.tsx +2 -2
  423. package/src/form/components/LocalChangesMenu.tsx +5 -5
  424. package/src/form/components/StorageItemPreview.tsx +4 -4
  425. package/src/form/components/StorageUploadProgress.tsx +3 -3
  426. package/src/form/components/index.tsx +5 -5
  427. package/src/form/field_bindings/ArrayCustomShapedFieldBinding.tsx +6 -6
  428. package/src/form/field_bindings/ArrayOfReferencesFieldBinding.tsx +7 -7
  429. package/src/form/field_bindings/BlockFieldBinding.tsx +11 -10
  430. package/src/form/field_bindings/DateTimeFieldBinding.tsx +6 -6
  431. package/src/form/field_bindings/GeopointFieldBinding.tsx +6 -6
  432. package/src/form/field_bindings/KeyValueFieldBinding.tsx +6 -6
  433. package/src/form/field_bindings/MapFieldBinding.tsx +7 -7
  434. package/src/form/field_bindings/MarkdownEditorFieldBinding.tsx +7 -7
  435. package/src/form/field_bindings/MultiSelectFieldBinding.tsx +5 -5
  436. package/src/form/field_bindings/ReadOnlyFieldBinding.tsx +5 -5
  437. package/src/form/field_bindings/ReferenceAsStringFieldBinding.tsx +9 -9
  438. package/src/form/field_bindings/ReferenceFieldBinding.tsx +9 -9
  439. package/src/form/field_bindings/RepeatFieldBinding.tsx +8 -8
  440. package/src/form/field_bindings/SelectFieldBinding.tsx +6 -6
  441. package/src/form/field_bindings/StorageUploadFieldBinding.tsx +10 -10
  442. package/src/form/field_bindings/SwitchFieldBinding.tsx +5 -5
  443. package/src/form/field_bindings/TextFieldBinding.tsx +6 -6
  444. package/src/form/field_bindings/UserSelectFieldBinding.tsx +6 -6
  445. package/src/form/index.tsx +22 -22
  446. package/src/form/useClearRestoreValue.tsx +1 -1
  447. package/src/form/validation.ts +2 -2
  448. package/src/hooks/data/delete.ts +1 -1
  449. package/src/hooks/data/save.ts +3 -3
  450. package/src/hooks/data/useCollectionFetch.tsx +4 -4
  451. package/src/hooks/data/useDataOrder.ts +1 -1
  452. package/src/hooks/data/useDataSource.tsx +2 -2
  453. package/src/hooks/data/useEntityFetch.tsx +5 -5
  454. package/src/hooks/index.tsx +29 -29
  455. package/src/hooks/useAnalyticsController.tsx +2 -2
  456. package/src/hooks/useAuthController.tsx +2 -2
  457. package/src/hooks/useBreadcrumbsController.tsx +1 -1
  458. package/src/hooks/useBuildLocalConfigurationPersistence.tsx +3 -3
  459. package/src/hooks/useBuildModeController.tsx +2 -2
  460. package/src/hooks/useBuildNavigationController.tsx +5 -5
  461. package/src/hooks/useCustomizationController.tsx +2 -2
  462. package/src/hooks/useDialogsController.tsx +2 -2
  463. package/src/hooks/useFireCMSContext.tsx +14 -14
  464. package/src/hooks/useInternalUserManagementController.tsx +3 -3
  465. package/src/hooks/useLicenseStatus.tsx +2 -2
  466. package/src/hooks/useModeController.tsx +1 -1
  467. package/src/hooks/useNavigationController.tsx +2 -2
  468. package/src/hooks/useProjectLog.tsx +2 -2
  469. package/src/hooks/useReferenceDialog.tsx +5 -5
  470. package/src/hooks/useResolvedNavigationFrom.tsx +3 -3
  471. package/src/hooks/useSideDialogsController.tsx +2 -2
  472. package/src/hooks/useSideEntityController.tsx +2 -2
  473. package/src/hooks/useStorageSource.tsx +2 -2
  474. package/src/hooks/useUserConfigurationPersistence.tsx +2 -2
  475. package/src/hooks/useValidateAuthenticator.tsx +1 -1
  476. package/src/i18n/FireCMSi18nProvider.tsx +10 -10
  477. package/src/i18n/__tests__/FireCMSi18nProvider.test.tsx +1 -1
  478. package/src/i18n/__tests__/nested_provider_lifecycle.test.tsx +1 -1
  479. package/src/index.ts +14 -14
  480. package/src/internal/useBuildDataSource.ts +2 -2
  481. package/src/internal/useBuildSideDialogsController.tsx +45 -3
  482. package/src/internal/useBuildSideEntityController.tsx +6 -6
  483. package/src/internal/useLeavePageConfirmation.ts +25 -0
  484. package/src/locales/de.ts +1 -1
  485. package/src/locales/en.ts +1 -1
  486. package/src/locales/es.ts +1 -1
  487. package/src/locales/fr.ts +1 -1
  488. package/src/locales/hi.ts +1 -1
  489. package/src/locales/it.ts +1 -1
  490. package/src/locales/pl.ts +1 -1
  491. package/src/locales/pt.ts +1 -1
  492. package/src/preview/PropertyPreview.tsx +24 -24
  493. package/src/preview/PropertyPreviewProps.tsx +1 -1
  494. package/src/preview/components/ArrayEnumPreview.tsx +4 -4
  495. package/src/preview/components/BooleanPreview.tsx +2 -2
  496. package/src/preview/components/DatePreview.tsx +15 -3
  497. package/src/preview/components/EnumValuesChip.tsx +2 -2
  498. package/src/preview/components/ImagePreview.tsx +2 -2
  499. package/src/preview/components/ReferencePreview.tsx +7 -7
  500. package/src/preview/components/StorageThumbnail.tsx +7 -7
  501. package/src/preview/components/UrlComponentPreview.tsx +6 -6
  502. package/src/preview/components/UserPreview.tsx +5 -5
  503. package/src/preview/components/__tests__/DatePreview.test.tsx +39 -0
  504. package/src/preview/index.ts +25 -25
  505. package/src/preview/property_previews/ArrayOfMapsPreview.tsx +5 -5
  506. package/src/preview/property_previews/ArrayOfReferencesPreview.tsx +5 -5
  507. package/src/preview/property_previews/ArrayOfStorageComponentsPreview.tsx +6 -6
  508. package/src/preview/property_previews/ArrayOfStringsPreview.tsx +5 -5
  509. package/src/preview/property_previews/ArrayOneOfPreview.tsx +7 -7
  510. package/src/preview/property_previews/ArrayPropertyEnumPreview.tsx +3 -3
  511. package/src/preview/property_previews/ArrayPropertyPreview.tsx +6 -6
  512. package/src/preview/property_previews/GeopointPropertyPreview.tsx +3 -3
  513. package/src/preview/property_previews/MapPropertyPreview.tsx +6 -6
  514. package/src/preview/property_previews/NumberPropertyPreview.tsx +2 -2
  515. package/src/preview/property_previews/SkeletonPropertyComponent.tsx +3 -3
  516. package/src/preview/property_previews/StringPropertyPreview.tsx +6 -6
  517. package/src/preview/util.ts +2 -2
  518. package/src/routes/CustomCMSRoute.tsx +2 -2
  519. package/src/routes/FireCMSRoute.tsx +13 -13
  520. package/src/routes/HomePageRoute.tsx +1 -1
  521. package/src/types/analytics_controller.tsx +1 -1
  522. package/src/types/auth.tsx +4 -4
  523. package/src/types/collections.ts +10 -10
  524. package/src/types/customization_controller.tsx +6 -6
  525. package/src/types/datasource.ts +4 -4
  526. package/src/types/entity_actions.tsx +6 -6
  527. package/src/types/entity_callbacks.ts +5 -5
  528. package/src/types/entity_link_builder.ts +1 -1
  529. package/src/types/entity_overrides.tsx +2 -2
  530. package/src/types/export_import.ts +3 -3
  531. package/src/types/fields.tsx +3 -3
  532. package/src/types/firecms.tsx +15 -15
  533. package/src/types/firecms_context.tsx +14 -14
  534. package/src/types/index.ts +32 -32
  535. package/src/types/internal_user_management.ts +1 -1
  536. package/src/types/local_config_persistence.tsx +1 -1
  537. package/src/types/locales.ts +2 -0
  538. package/src/types/modify_collections.tsx +1 -1
  539. package/src/types/navigation.ts +3 -3
  540. package/src/types/permissions.ts +4 -4
  541. package/src/types/plugins.tsx +9 -9
  542. package/src/types/properties.ts +6 -6
  543. package/src/types/property_config.tsx +1 -1
  544. package/src/types/resolved_entities.ts +3 -3
  545. package/src/types/roles.ts +1 -1
  546. package/src/types/side_dialogs_controller.tsx +5 -3
  547. package/src/types/side_entity_controller.tsx +5 -5
  548. package/src/types/user.ts +1 -1
  549. package/src/util/__tests__/collections.test.ts +2 -2
  550. package/src/util/__tests__/conditions.test.ts +2 -2
  551. package/src/util/__tests__/locales.test.ts +46 -0
  552. package/src/util/__tests__/objects.test.ts +1 -1
  553. package/src/util/__tests__/urls.test.ts +1 -1
  554. package/src/util/builders.ts +1 -1
  555. package/src/util/callbacks.ts +2 -2
  556. package/src/util/collections.ts +2 -2
  557. package/src/util/conditions.ts +1 -1
  558. package/src/util/date_fns_locales.ts +29 -1
  559. package/src/util/entities.ts +3 -3
  560. package/src/util/entity_actions.ts +1 -1
  561. package/src/util/entity_cache.ts +3 -3
  562. package/src/util/enums.ts +1 -1
  563. package/src/util/geopoint.ts +1 -1
  564. package/src/util/icon_list.ts +1 -1
  565. package/src/util/icons.tsx +2 -2
  566. package/src/util/index.ts +31 -31
  567. package/src/util/join_collections.ts +4 -4
  568. package/src/util/make_properties_editable.ts +2 -2
  569. package/src/util/navigation_from_path.ts +3 -3
  570. package/src/util/navigation_utils.ts +1 -1
  571. package/src/util/objects.ts +1 -1
  572. package/src/util/parent_references_from_path.ts +2 -2
  573. package/src/util/permissions.ts +2 -2
  574. package/src/util/previews.ts +4 -4
  575. package/src/util/property_utils.tsx +4 -4
  576. package/src/util/resolutions.ts +6 -6
  577. package/src/util/storage.ts +2 -2
  578. package/src/util/strings.test.ts +1 -1
  579. package/src/util/urls.ts +1 -1
  580. package/src/util/useStorageUploadController.tsx +6 -6
  581. package/dist/de-CUF9f7S-.js.map +0 -1
  582. package/dist/editor-WZytSO_1.js.map +0 -1
  583. package/dist/fr-DmkMX6hp.js.map +0 -1
  584. package/dist/hi-BKuaMr7w.js.map +0 -1
  585. package/dist/internal/useUnsavedChangesDialog.d.ts +0 -12
  586. package/dist/it-BwQflFGz.js.map +0 -1
  587. package/dist/pl-BPsAvZvc.js.map +0 -1
  588. package/dist/pt-D5q7OQp1.js.map +0 -1
  589. package/src/internal/useUnsavedChangesDialog.tsx +0 -142
@@ -1,4 +1,4 @@
1
- import { Property, ResolvedProperty } from "../../types";
1
+ import { Property, ResolvedProperty } from "../../types/index.js";
2
2
  import { IconButton, InfoIcon, Tooltip, Typography } from "@firecms/ui";
3
3
 
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { ErrorBoundary } from "../../components";
2
+ import { ErrorBoundary } from "../../components/index.js";
3
3
 
4
4
  export function FormEntry({
5
5
  propertyKey,
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
- import { LabelWithIcon } from "./LabelWithIcon";
3
- import { PropertyIdCopyTooltip } from "../../components/PropertyIdCopyTooltip";
2
+ import { LabelWithIcon } from "./LabelWithIcon.js";
3
+ import { PropertyIdCopyTooltip } from "../../components/PropertyIdCopyTooltip.js";
4
4
 
5
5
  interface LabelWithIconAndTooltip {
6
6
  icon: React.ReactNode;
@@ -16,11 +16,11 @@ import {
16
16
  WarningIcon
17
17
  } from "@firecms/ui";
18
18
  import { FormexController } from "@firecms/formex";
19
- import { useSnackbarController, useTranslation } from "../../hooks";
20
- import { mergeDeep } from "../../util";
21
- import { flattenKeys, removeEntityFromCache } from "../../util/entity_cache";
22
- import { ResolvedProperties } from "../../types";
23
- import { PropertyCollectionView } from "../../components/PropertyCollectionView";
19
+ import { useSnackbarController, useTranslation } from "../../hooks/index.js";
20
+ import { mergeDeep } from "../../util/index.js";
21
+ import { flattenKeys, removeEntityFromCache } from "../../util/entity_cache.js";
22
+ import { ResolvedProperties } from "../../types/index.js";
23
+ import { PropertyCollectionView } from "../../components/PropertyCollectionView.js";
24
24
 
25
25
  interface LocalChangesMenuProps<M extends object> {
26
26
  cacheKey: string;
@@ -1,11 +1,11 @@
1
1
  import React from "react";
2
2
 
3
- import { ResolvedStringProperty } from "../../types";
4
- import { PreviewSize, PropertyPreview } from "../../preview";
3
+ import { ResolvedStringProperty } from "../../types/index.js";
4
+ import { PreviewSize, PropertyPreview } from "../../preview/index.js";
5
5
 
6
6
  import { cls, DescriptionIcon, IconButton, paperMixin, RemoveIcon, Tooltip } from "@firecms/ui";
7
- import { ErrorBoundary } from "../../components";
8
- import { useTranslation } from "../../hooks/useTranslation";
7
+ import { ErrorBoundary } from "../../components/index.js";
8
+ import { useTranslation } from "../../hooks/useTranslation.js";
9
9
 
10
10
  interface StorageItemPreviewProps {
11
11
  name: string;
@@ -1,8 +1,8 @@
1
1
  import React, { useCallback } from "react";
2
2
 
3
- import { useSnackbarController, useStorageSource } from "../../hooks";
4
- import { StorageFieldItem } from "../../util/useStorageUploadController";
5
- import { ErrorView } from "../../components";
3
+ import { useSnackbarController, useStorageSource } from "../../hooks/index.js";
4
+ import { StorageFieldItem } from "../../util/useStorageUploadController.js";
5
+ import { ErrorView } from "../../components/index.js";
6
6
  import { cls, paperMixin, Skeleton } from "@firecms/ui";
7
7
 
8
8
  export interface StorageUploadItemProps {
@@ -1,5 +1,5 @@
1
- export * from "./FieldHelperText";
2
- export * from "./LabelWithIcon";
3
- export * from "./LabelWithIconAndTooltip";
4
- export * from "./FormEntry";
5
- export * from "./FormLayout";
1
+ export * from "./FieldHelperText.js";
2
+ export * from "./LabelWithIcon.js";
3
+ export * from "./LabelWithIconAndTooltip.js";
4
+ export * from "./FormEntry.js";
5
+ export * from "./FormLayout.js";
@@ -1,11 +1,11 @@
1
1
  import React from "react";
2
- import { FieldProps } from "../../types";
3
- import { FieldHelperText, LabelWithIconAndTooltip } from "../components";
4
- import { PropertyFieldBinding } from "../PropertyFieldBinding";
2
+ import { FieldProps } from "../../types/index.js";
3
+ import { FieldHelperText, LabelWithIconAndTooltip } from "../components/index.js";
4
+ import { PropertyFieldBinding } from "../PropertyFieldBinding.js";
5
5
  import { ExpandablePanel, IconButton, CloseIcon } from "@firecms/ui";
6
- import { getArrayResolvedProperties, getIconForProperty, isReadOnly } from "../../util";
7
- import { useClearRestoreValue } from "../useClearRestoreValue";
8
- import { useAuthController } from "../../hooks";
6
+ import { getArrayResolvedProperties, getIconForProperty, isReadOnly } from "../../util/index.js";
7
+ import { useClearRestoreValue } from "../useClearRestoreValue.js";
8
+ import { useAuthController } from "../../hooks/index.js";
9
9
 
10
10
  /**
11
11
  * Array field used for custom
@@ -1,12 +1,12 @@
1
1
  import React, { useCallback, useMemo } from "react";
2
- import { Entity, EntityCollection, EntityReference, FieldProps, ResolvedProperty } from "../../types";
3
- import { ReferencePreview } from "../../preview";
4
- import { FieldHelperText, LabelWithIconAndTooltip } from "../components";
5
- import { ArrayContainer, ArrayEntryParams, ErrorView } from "../../components";
6
- import { getIconForProperty, getReferenceFrom } from "../../util";
7
- import { useNavigationController, useReferenceDialog, useTranslation } from "../../hooks";
2
+ import { Entity, EntityCollection, EntityReference, FieldProps, ResolvedProperty } from "../../types/index.js";
3
+ import { ReferencePreview } from "../../preview/index.js";
4
+ import { FieldHelperText, LabelWithIconAndTooltip } from "../components/index.js";
5
+ import { ArrayContainer, ArrayEntryParams, ErrorView } from "../../components/index.js";
6
+ import { getIconForProperty, getReferenceFrom } from "../../util/index.js";
7
+ import { useNavigationController, useReferenceDialog, useTranslation } from "../../hooks/index.js";
8
8
  import { Button, cls, EditIcon, ExpandablePanel, fieldBackgroundMixin, Typography, IconButton, CloseIcon } from "@firecms/ui";
9
- import { useClearRestoreValue } from "../useClearRestoreValue";
9
+ import { useClearRestoreValue } from "../useClearRestoreValue.js";
10
10
 
11
11
  type ArrayOfReferencesFieldProps = FieldProps<EntityReference[]>;
12
12
 
@@ -2,16 +2,16 @@ import React, { useEffect, useState } from "react";
2
2
 
3
3
  import { Field, useFormex } from "@firecms/formex";
4
4
 
5
- import { FieldHelperText, LabelWithIconAndTooltip } from "../components";
6
- import { PropertyFieldBinding } from "../PropertyFieldBinding";
7
- import { EnumValuesChip } from "../../preview";
8
- import { FieldProps, FormContext, PropertyFieldBindingProps, PropertyOrBuilder } from "../../types";
9
- import { getDefaultValueFor, getIconForProperty, mergeDeep, } from "../../util";
10
- import { DEFAULT_ONE_OF_TYPE, DEFAULT_ONE_OF_VALUE } from "../../util/common";
5
+ import { FieldHelperText, LabelWithIconAndTooltip } from "../components/index.js";
6
+ import { PropertyFieldBinding } from "../PropertyFieldBinding.js";
7
+ import { EnumValuesChip } from "../../preview/index.js";
8
+ import { FieldProps, FormContext, PropertyFieldBindingProps, PropertyOrBuilder } from "../../types/index.js";
9
+ import { getDefaultValueFor, getIconForProperty, mergeDeep, } from "../../util/index.js";
10
+ import { DEFAULT_ONE_OF_TYPE, DEFAULT_ONE_OF_VALUE } from "../../util/common.js";
11
11
  import { cls, ExpandablePanel, paperMixin, Select, SelectItem, Typography, IconButton, CloseIcon } from "@firecms/ui";
12
- import { useClearRestoreValue } from "../useClearRestoreValue";
13
- import { ArrayContainer, ArrayEntryParams } from "../../components";
14
- import { useTranslation } from "../../hooks/useTranslation";
12
+ import { useClearRestoreValue } from "../useClearRestoreValue.js";
13
+ import { ArrayContainer, ArrayEntryParams } from "../../components/index.js";
14
+ import { useTranslation } from "../../hooks/useTranslation.js";
15
15
 
16
16
  /**
17
17
  * If the `oneOf` property is specified, this fields render each array entry as
@@ -96,6 +96,7 @@ export function BlockFieldBinding<T extends Array<any>>({
96
96
  </div>
97
97
  );
98
98
 
99
+ const canAddElements = !property.disabled && !isSubmitting && !disabled && (property.canAddElements ?? true);
99
100
  const firstOneOfKey = Object.keys(property.oneOf.properties)[0];
100
101
  const body = <ArrayContainer value={value}
101
102
  className={"flex flex-col gap-3"}
@@ -104,7 +105,7 @@ export function BlockFieldBinding<T extends Array<any>>({
104
105
  buildEntry={buildEntry}
105
106
  onInternalIdAdded={setLastAddedId}
106
107
  disabled={isSubmitting || Boolean(property.disabled)}
107
- canAddElements={!property.disabled}
108
+ canAddElements={canAddElements}
108
109
  onValueChange={(value) => setFieldValue(propertyKey, value)}
109
110
  newDefaultEntry={{
110
111
  [property.oneOf!.typeField ?? DEFAULT_ONE_OF_TYPE]: firstOneOfKey,
@@ -1,13 +1,13 @@
1
1
  import React from "react";
2
2
 
3
- import { FieldProps } from "../../types";
3
+ import { FieldProps } from "../../types/index.js";
4
4
 
5
- import { FieldHelperText, LabelWithIcon } from "../components";
6
- import { useCustomizationController } from "../../hooks";
7
- import { getIconForProperty } from "../../util";
5
+ import { FieldHelperText, LabelWithIcon } from "../components/index.js";
6
+ import { useCustomizationController } from "../../hooks/index.js";
7
+ import { getIconForProperty } from "../../util/index.js";
8
8
  import { DateTimeField } from "@firecms/ui";
9
- import { useClearRestoreValue } from "../useClearRestoreValue";
10
- import { PropertyIdCopyTooltip } from "../../components";
9
+ import { useClearRestoreValue } from "../useClearRestoreValue.js";
10
+ import { PropertyIdCopyTooltip } from "../../components/index.js";
11
11
 
12
12
  type DateTimeFieldProps = FieldProps<Date>;
13
13
 
@@ -1,12 +1,12 @@
1
1
  import React, { useEffect, useRef, useState } from "react";
2
2
 
3
3
  import { CloseIcon, IconButton, TextField } from "@firecms/ui";
4
- import { FieldProps, GeoPoint } from "../../types";
5
- import { FieldHelperText, LabelWithIcon } from "../components";
6
- import { PropertyIdCopyTooltip } from "../../components";
7
- import { useClearRestoreValue } from "../useClearRestoreValue";
8
- import { getIconForProperty } from "../../util";
9
- import { formatGeoPoint, getGeoPointCoordinates, parseGeoPoint } from "../../util/geopoint";
4
+ import { FieldProps, GeoPoint } from "../../types/index.js";
5
+ import { FieldHelperText, LabelWithIcon } from "../components/index.js";
6
+ import { PropertyIdCopyTooltip } from "../../components/index.js";
7
+ import { useClearRestoreValue } from "../useClearRestoreValue.js";
8
+ import { getIconForProperty } from "../../util/index.js";
9
+ import { formatGeoPoint, getGeoPointCoordinates, parseGeoPoint } from "../../util/geopoint.js";
10
10
 
11
11
  type GeopointFieldBindingProps = FieldProps<GeoPoint>;
12
12
 
@@ -1,8 +1,8 @@
1
1
  import React, { useEffect, useState } from "react";
2
- import { DataType, FieldProps, GeoPoint } from "../../types";
2
+ import { DataType, FieldProps, GeoPoint } from "../../types/index.js";
3
3
 
4
- import { ArrayContainer } from "../../components";
5
- import { FieldHelperText, LabelWithIconAndTooltip } from "../components";
4
+ import { ArrayContainer } from "../../components/index.js";
5
+ import { FieldHelperText, LabelWithIconAndTooltip } from "../components/index.js";
6
6
  import {
7
7
  AddIcon,
8
8
  ArrowDropDownIcon,
@@ -20,10 +20,10 @@ import {
20
20
  TextField,
21
21
  Typography
22
22
  } from "@firecms/ui";
23
- import { getDefaultValueForDataType, getIconForProperty } from "../../util";
24
- import { useCustomizationController } from "../../hooks";
23
+ import { getDefaultValueForDataType, getIconForProperty } from "../../util/index.js";
24
+ import { useCustomizationController } from "../../hooks/index.js";
25
25
  import { getIn } from "@firecms/formex";
26
- import { useTranslation } from "../../hooks/useTranslation";
26
+ import { useTranslation } from "../../hooks/useTranslation.js";
27
27
 
28
28
  type MapEditViewRowState = [number, {
29
29
  key: string,
@@ -1,13 +1,13 @@
1
1
  import React from "react";
2
- import { FieldProps, MapProperty, Properties, PropertyFieldBindingProps, ResolvedProperties } from "../../types";
2
+ import { FieldProps, MapProperty, Properties, PropertyFieldBindingProps, ResolvedProperties } from "../../types/index.js";
3
3
 
4
- import { ErrorBoundary } from "../../components";
5
- import { getIconForProperty, isHidden, isReadOnly, pick } from "../../util";
6
- import { FieldHelperText, LabelWithIconAndTooltip } from "../components";
7
- import { FormEntry } from "../components/FormEntry";
8
- import { PropertyFieldBinding } from "../PropertyFieldBinding";
4
+ import { ErrorBoundary } from "../../components/index.js";
5
+ import { getIconForProperty, isHidden, isReadOnly, pick } from "../../util/index.js";
6
+ import { FieldHelperText, LabelWithIconAndTooltip } from "../components/index.js";
7
+ import { FormEntry } from "../components/FormEntry.js";
8
+ import { PropertyFieldBinding } from "../PropertyFieldBinding.js";
9
9
  import { cls, ExpandablePanel, InputLabel, Select, SelectItem, IconButton, CloseIcon } from "@firecms/ui";
10
- import { useTranslation } from "../../hooks";
10
+ import { useTranslation } from "../../hooks/index.js";
11
11
 
12
12
  /**
13
13
  * Field that renders the children property fields
@@ -10,15 +10,15 @@ import {
10
10
  ResolvedStringProperty,
11
11
  useAuthController,
12
12
  useStorageSource
13
- } from "../../index";
13
+ } from "../../index.js";
14
14
  import { cls, fieldBackgroundDisabledMixin, fieldBackgroundHoverMixin, fieldBackgroundMixin, IconButton, CloseIcon } from "@firecms/ui";
15
- import type { FireCMSEditorProps } from "../../editor";
16
- import { resolveProperty, resolveStorageFilenameString, resolveStoragePathString } from "../../util";
17
- import { isImageFile, resizeImage } from "../../util/useStorageUploadController";
18
- import { lazyEager } from "../../util/lazy_eager";
19
- import { CircularProgressCenter } from "../../components/CircularProgressCenter";
15
+ import type { FireCMSEditorProps } from "../../editor/index.js";
16
+ import { resolveProperty, resolveStorageFilenameString, resolveStoragePathString } from "../../util/index.js";
17
+ import { isImageFile, resizeImage } from "../../util/useStorageUploadController.js";
18
+ import { lazyEager } from "../../util/lazy_eager.js";
19
+ import { CircularProgressCenter } from "../../components/CircularProgressCenter.js";
20
20
 
21
- const FireCMSEditor = lazyEager<typeof import("../../editor/editor")["FireCMSEditor"]>(() => import("../../editor/editor"), "FireCMSEditor");
21
+ const FireCMSEditor = lazyEager<typeof import("../../editor/editor.js")["FireCMSEditor"]>(() => import("../../editor/editor.js"), "FireCMSEditor");
22
22
 
23
23
  interface MarkdownEditorFieldProps {
24
24
  highlight?: { from: number, to: number };
@@ -1,11 +1,11 @@
1
1
  import React, { useCallback } from "react";
2
2
 
3
- import { EnumType, FieldProps, ResolvedProperty } from "../../types";
4
- import { FieldHelperText, LabelWithIconAndTooltip } from "../components";
5
- import { EnumValuesChip } from "../../preview";
6
- import { enumToObjectEntries, getIconForProperty, getLabelOrConfigFrom } from "../../util";
3
+ import { EnumType, FieldProps, ResolvedProperty } from "../../types/index.js";
4
+ import { FieldHelperText, LabelWithIconAndTooltip } from "../components/index.js";
5
+ import { EnumValuesChip } from "../../preview/index.js";
6
+ import { enumToObjectEntries, getIconForProperty, getLabelOrConfigFrom } from "../../util/index.js";
7
7
  import { CloseIcon, MultiSelect, MultiSelectItem, IconButton } from "@firecms/ui";
8
- import { useClearRestoreValue } from "../useClearRestoreValue";
8
+ import { useClearRestoreValue } from "../useClearRestoreValue.js";
9
9
 
10
10
  /**
11
11
  * This fields renders a dropdown with multiple selection.
@@ -1,11 +1,11 @@
1
1
  import React from "react";
2
2
 
3
- import { FieldProps } from "../../types";
3
+ import { FieldProps } from "../../types/index.js";
4
4
 
5
- import { PropertyPreview } from "../../preview";
6
- import { FieldHelperText, LabelWithIconAndTooltip } from "../components";
7
- import { ErrorBoundary } from "../../components";
8
- import { getIconForProperty } from "../../util";
5
+ import { PropertyPreview } from "../../preview/index.js";
6
+ import { FieldHelperText, LabelWithIconAndTooltip } from "../components/index.js";
7
+ import { ErrorBoundary } from "../../components/index.js";
8
+ import { getIconForProperty } from "../../util/index.js";
9
9
  import { cls, paperMixin } from "@firecms/ui";
10
10
 
11
11
  /**
@@ -1,13 +1,13 @@
1
1
  import React, { useCallback, useMemo } from "react";
2
- import { Entity, EntityCollection, EntityReference, FieldProps } from "../../types";
3
- import { useNavigationController, useReferenceDialog } from "../../hooks";
4
- import { ReadOnlyFieldBinding } from "./ReadOnlyFieldBinding";
5
- import { FieldHelperText, LabelWithIconAndTooltip } from "../components";
6
- import { ErrorView } from "../../components";
7
- import { ReferencePreview } from "../../preview";
8
- import { getIconForProperty, IconForView } from "../../util";
9
- import { useClearRestoreValue } from "../useClearRestoreValue";
10
- import { EntityPreviewContainer } from "../../components/EntityPreview";
2
+ import { Entity, EntityCollection, EntityReference, FieldProps } from "../../types/index.js";
3
+ import { useNavigationController, useReferenceDialog } from "../../hooks/index.js";
4
+ import { ReadOnlyFieldBinding } from "./ReadOnlyFieldBinding.js";
5
+ import { FieldHelperText, LabelWithIconAndTooltip } from "../components/index.js";
6
+ import { ErrorView } from "../../components/index.js";
7
+ import { ReferencePreview } from "../../preview/index.js";
8
+ import { getIconForProperty, IconForView } from "../../util/index.js";
9
+ import { useClearRestoreValue } from "../useClearRestoreValue.js";
10
+ import { EntityPreviewContainer } from "../../components/EntityPreview.js";
11
11
  import { cls, IconButton, CloseIcon } from "@firecms/ui";
12
12
 
13
13
  /**
@@ -1,14 +1,14 @@
1
1
  import React, { useCallback, useMemo } from "react";
2
2
 
3
- import { Entity, EntityCollection, EntityReference, FieldProps } from "../../types";
4
- import { useNavigationController, useReferenceDialog } from "../../hooks";
5
- import { ReadOnlyFieldBinding } from "./ReadOnlyFieldBinding";
6
- import { FieldHelperText, LabelWithIconAndTooltip } from "../components";
7
- import { ErrorView } from "../../components";
8
- import { EmptyValue, ReferencePreview } from "../../preview";
9
- import { getIconForProperty, getReferenceFrom, IconForView } from "../../util";
10
- import { useClearRestoreValue } from "../useClearRestoreValue";
11
- import { EntityPreviewContainer } from "../../components/EntityPreview";
3
+ import { Entity, EntityCollection, EntityReference, FieldProps } from "../../types/index.js";
4
+ import { useNavigationController, useReferenceDialog } from "../../hooks/index.js";
5
+ import { ReadOnlyFieldBinding } from "./ReadOnlyFieldBinding.js";
6
+ import { FieldHelperText, LabelWithIconAndTooltip } from "../components/index.js";
7
+ import { ErrorView } from "../../components/index.js";
8
+ import { EmptyValue, ReferencePreview } from "../../preview/index.js";
9
+ import { getIconForProperty, getReferenceFrom, IconForView } from "../../util/index.js";
10
+ import { useClearRestoreValue } from "../useClearRestoreValue.js";
11
+ import { EntityPreviewContainer } from "../../components/EntityPreview.js";
12
12
  import { cls, IconButton, CloseIcon } from "@firecms/ui";
13
13
 
14
14
  /**
@@ -1,13 +1,13 @@
1
1
  import React, { useState } from "react";
2
- import { CMSType, FieldProps, PropertyFieldBindingProps, ResolvedProperty } from "../../types";
3
- import { FieldHelperText, LabelWithIconAndTooltip } from "../components";
4
- import { ArrayContainer, ArrayEntryParams, ErrorBoundary } from "../../components";
5
- import { getArrayResolvedProperties, getDefaultValueFor, getIconForProperty, mergeDeep } from "../../util";
6
- import { PropertyFieldBinding } from "../PropertyFieldBinding";
2
+ import { CMSType, FieldProps, PropertyFieldBindingProps, ResolvedProperty } from "../../types/index.js";
3
+ import { FieldHelperText, LabelWithIconAndTooltip } from "../components/index.js";
4
+ import { ArrayContainer, ArrayEntryParams, ErrorBoundary } from "../../components/index.js";
5
+ import { getArrayResolvedProperties, getDefaultValueFor, getIconForProperty, mergeDeep } from "../../util/index.js";
6
+ import { PropertyFieldBinding } from "../PropertyFieldBinding.js";
7
7
  import { ExpandablePanel, Typography, IconButton, CloseIcon } from "@firecms/ui";
8
- import { useClearRestoreValue } from "../useClearRestoreValue";
9
- import { useAuthController } from "../../hooks";
10
- import { useTranslation } from "../../hooks/useTranslation";
8
+ import { useClearRestoreValue } from "../useClearRestoreValue.js";
9
+ import { useAuthController } from "../../hooks/index.js";
10
+ import { useTranslation } from "../../hooks/useTranslation.js";
11
11
 
12
12
  /**
13
13
  * Generic array field that allows reordering and renders the child property
@@ -1,12 +1,12 @@
1
1
  import React, { useCallback } from "react";
2
2
 
3
- import { EnumType, FieldProps } from "../../types";
4
- import { FieldHelperText, LabelWithIcon } from "../components";
5
- import { EnumValuesChip } from "../../preview";
6
- import { getIconForProperty, resolveEnumValues } from "../../util";
3
+ import { EnumType, FieldProps } from "../../types/index.js";
4
+ import { FieldHelperText, LabelWithIcon } from "../components/index.js";
5
+ import { EnumValuesChip } from "../../preview/index.js";
6
+ import { getIconForProperty, resolveEnumValues } from "../../util/index.js";
7
7
  import { CloseIcon, cls, IconButton, Select, SelectItem } from "@firecms/ui";
8
- import { useClearRestoreValue } from "../useClearRestoreValue";
9
- import { PropertyIdCopyTooltip } from "../../components";
8
+ import { useClearRestoreValue } from "../useClearRestoreValue.js";
9
+ import { PropertyIdCopyTooltip } from "../../components/index.js";
10
10
 
11
11
  type SelectProps<T extends EnumType> = FieldProps<T>;
12
12
 
@@ -6,13 +6,13 @@ import {
6
6
  ResolvedArrayProperty,
7
7
  ResolvedStringProperty,
8
8
  StorageConfig
9
- } from "../../types";
9
+ } from "../../types/index.js";
10
10
  import { useDropzone } from "react-dropzone";
11
- import { PreviewSize } from "../../preview";
12
- import { FieldHelperText, LabelWithIconAndTooltip } from "../components";
11
+ import { PreviewSize } from "../../preview/index.js";
12
+ import { FieldHelperText, LabelWithIconAndTooltip } from "../components/index.js";
13
13
 
14
- import { getIconForProperty, isReadOnly, resolveProperty } from "../../util";
15
- import { useAuthController, useSnackbarController, useStorageSource } from "../../hooks";
14
+ import { getIconForProperty, isReadOnly, resolveProperty } from "../../util/index.js";
15
+ import { useAuthController, useSnackbarController, useStorageSource } from "../../hooks/index.js";
16
16
  import {
17
17
  closestCenter,
18
18
  DndContext,
@@ -30,9 +30,9 @@ import {
30
30
  useSortable
31
31
  } from "@dnd-kit/sortable";
32
32
  import { CSS } from "@dnd-kit/utilities";
33
- import { StorageFieldItem, useStorageUploadController } from "../../util/useStorageUploadController";
34
- import { StorageUploadProgress } from "../components/StorageUploadProgress";
35
- import { StorageItemPreview } from "../components/StorageItemPreview";
33
+ import { StorageFieldItem, useStorageUploadController } from "../../util/useStorageUploadController.js";
34
+ import { StorageUploadProgress } from "../components/StorageUploadProgress.js";
35
+ import { StorageItemPreview } from "../components/StorageItemPreview.js";
36
36
  import {
37
37
  cls,
38
38
  fieldBackgroundDisabledMixin,
@@ -42,8 +42,8 @@ import {
42
42
  IconButton,
43
43
  CloseIcon
44
44
  } from "@firecms/ui";
45
- import { useClearRestoreValue } from "../useClearRestoreValue";
46
- import { useTranslation } from "../../hooks/useTranslation";
45
+ import { useClearRestoreValue } from "../useClearRestoreValue.js";
46
+ import { useTranslation } from "../../hooks/useTranslation.js";
47
47
 
48
48
  const dropZoneClasses = "box-border relative pt-[2px] items-center border border-transparent min-h-[254px] outline-none rounded-md duration-200 ease-[cubic-bezier(0.4,0,0.2,1)] focus:border-primary-solid";
49
49
  const disabledClasses = fieldBackgroundDisabledMixin;
@@ -1,11 +1,11 @@
1
1
  import React from "react";
2
2
 
3
- import { FieldProps } from "../../types";
4
- import { getIconForProperty } from "../../util";
5
- import { FieldHelperText, LabelWithIcon } from "../components";
3
+ import { FieldProps } from "../../types/index.js";
4
+ import { getIconForProperty } from "../../util/index.js";
5
+ import { FieldHelperText, LabelWithIcon } from "../components/index.js";
6
6
  import { BooleanSwitchWithLabel, IconButton, CloseIcon } from "@firecms/ui";
7
- import { useClearRestoreValue } from "../useClearRestoreValue";
8
- import { PropertyIdCopyTooltip } from "../../components";
7
+ import { useClearRestoreValue } from "../useClearRestoreValue.js";
8
+ import { PropertyIdCopyTooltip } from "../../components/index.js";
9
9
 
10
10
  type SwitchFieldProps = FieldProps<boolean>;
11
11
 
@@ -1,12 +1,12 @@
1
1
  import React, { useCallback } from "react";
2
2
 
3
3
  import { CloseIcon, Collapse, IconButton, TextField, TextareaAutosize, fieldBackgroundHoverMixin, fieldBackgroundMixin, cls } from "@firecms/ui";
4
- import { FieldProps, PreviewType } from "../../types";
5
- import { FieldHelperText, LabelWithIcon } from "../components";
6
- import { getIconForProperty } from "../../util";
7
- import { PropertyPreview } from "../../preview";
8
- import { useClearRestoreValue } from "../useClearRestoreValue";
9
- import { PropertyIdCopyTooltip } from "../../components/PropertyIdCopyTooltip";
4
+ import { FieldProps, PreviewType } from "../../types/index.js";
5
+ import { FieldHelperText, LabelWithIcon } from "../components/index.js";
6
+ import { getIconForProperty } from "../../util/index.js";
7
+ import { PropertyPreview } from "../../preview/index.js";
8
+ import { useClearRestoreValue } from "../useClearRestoreValue.js";
9
+ import { PropertyIdCopyTooltip } from "../../components/PropertyIdCopyTooltip.js";
10
10
 
11
11
  interface TextFieldBindingProps<T extends string | number> extends FieldProps<T> {
12
12
  allowInfinity?: boolean
@@ -1,12 +1,12 @@
1
1
  import React, { useCallback } from "react";
2
2
 
3
- import { FieldProps, User } from "../../types";
4
- import { FieldHelperText, LabelWithIcon } from "../components";
5
- import { getIconForProperty } from "../../util";
3
+ import { FieldProps, User } from "../../types/index.js";
4
+ import { FieldHelperText, LabelWithIcon } from "../components/index.js";
5
+ import { getIconForProperty } from "../../util/index.js";
6
6
  import { CloseIcon, cls, IconButton, Select, SelectItem } from "@firecms/ui";
7
- import { PropertyIdCopyTooltip } from "../../components";
8
- import { useInternalUserManagementController } from "../../hooks";
9
- import { UserDisplay } from "../../components/UserDisplay";
7
+ import { PropertyIdCopyTooltip } from "../../components/index.js";
8
+ import { useInternalUserManagementController } from "../../hooks/index.js";
9
+ import { UserDisplay } from "../../components/UserDisplay.js";
10
10
 
11
11
  type UserSelectProps = FieldProps<string>;
12
12
 
@@ -1,28 +1,28 @@
1
1
  export {
2
2
  EntityForm,
3
3
  yupToFormErrors,
4
- } from "./EntityForm";
5
- export type { EntityFormProps } from "./EntityForm";
4
+ } from "./EntityForm.js";
5
+ export type { EntityFormProps } from "./EntityForm.js";
6
6
 
7
- export { SelectFieldBinding } from "./field_bindings/SelectFieldBinding";
8
- export { MultiSelectFieldBinding } from "./field_bindings/MultiSelectFieldBinding";
9
- export { ArrayOfReferencesFieldBinding } from "./field_bindings/ArrayOfReferencesFieldBinding";
10
- export { StorageUploadFieldBinding } from "./field_bindings/StorageUploadFieldBinding";
11
- export { TextFieldBinding } from "./field_bindings/TextFieldBinding";
12
- export { SwitchFieldBinding } from "./field_bindings/SwitchFieldBinding";
13
- export { DateTimeFieldBinding } from "./field_bindings/DateTimeFieldBinding";
14
- export { GeopointFieldBinding } from "./field_bindings/GeopointFieldBinding";
15
- export { ReferenceFieldBinding } from "./field_bindings/ReferenceFieldBinding";
16
- export { ReferenceAsStringFieldBinding } from "./field_bindings/ReferenceAsStringFieldBinding";
17
- export { MapFieldBinding } from "./field_bindings/MapFieldBinding";
18
- export { KeyValueFieldBinding } from "./field_bindings/KeyValueFieldBinding";
19
- export { RepeatFieldBinding } from "./field_bindings/RepeatFieldBinding";
20
- export { BlockFieldBinding } from "./field_bindings/BlockFieldBinding";
21
- export { ReadOnlyFieldBinding } from "./field_bindings/ReadOnlyFieldBinding";
22
- export { MarkdownEditorFieldBinding } from "./field_bindings/MarkdownEditorFieldBinding";
23
- export { ArrayCustomShapedFieldBinding } from "./field_bindings/ArrayCustomShapedFieldBinding";
7
+ export { SelectFieldBinding } from "./field_bindings/SelectFieldBinding.js";
8
+ export { MultiSelectFieldBinding } from "./field_bindings/MultiSelectFieldBinding.js";
9
+ export { ArrayOfReferencesFieldBinding } from "./field_bindings/ArrayOfReferencesFieldBinding.js";
10
+ export { StorageUploadFieldBinding } from "./field_bindings/StorageUploadFieldBinding.js";
11
+ export { TextFieldBinding } from "./field_bindings/TextFieldBinding.js";
12
+ export { SwitchFieldBinding } from "./field_bindings/SwitchFieldBinding.js";
13
+ export { DateTimeFieldBinding } from "./field_bindings/DateTimeFieldBinding.js";
14
+ export { GeopointFieldBinding } from "./field_bindings/GeopointFieldBinding.js";
15
+ export { ReferenceFieldBinding } from "./field_bindings/ReferenceFieldBinding.js";
16
+ export { ReferenceAsStringFieldBinding } from "./field_bindings/ReferenceAsStringFieldBinding.js";
17
+ export { MapFieldBinding } from "./field_bindings/MapFieldBinding.js";
18
+ export { KeyValueFieldBinding } from "./field_bindings/KeyValueFieldBinding.js";
19
+ export { RepeatFieldBinding } from "./field_bindings/RepeatFieldBinding.js";
20
+ export { BlockFieldBinding } from "./field_bindings/BlockFieldBinding.js";
21
+ export { ReadOnlyFieldBinding } from "./field_bindings/ReadOnlyFieldBinding.js";
22
+ export { MarkdownEditorFieldBinding } from "./field_bindings/MarkdownEditorFieldBinding.js";
23
+ export { ArrayCustomShapedFieldBinding } from "./field_bindings/ArrayCustomShapedFieldBinding.js";
24
24
 
25
- export * from "./components";
25
+ export * from "./components/index.js";
26
26
 
27
- export { PropertyFieldBinding } from "./PropertyFieldBinding";
28
- export * from "./useClearRestoreValue";
27
+ export { PropertyFieldBinding } from "./PropertyFieldBinding.js";
28
+ export * from "./useClearRestoreValue.js";
@@ -1,5 +1,5 @@
1
1
  import { useEffect, useRef } from "react";
2
- import { CMSType, Property, ResolvedProperty } from "../types";
2
+ import { CMSType, Property, ResolvedProperty } from "../types/index.js";
3
3
 
4
4
  /**
5
5
  * Hook we use to restore a value after it has been cleared
@@ -6,10 +6,10 @@ import {
6
6
  ResolvedMapProperty,
7
7
  ResolvedProperties,
8
8
  ResolvedProperty
9
- } from "../types";
9
+ } from "../types/index.js";
10
10
  import * as yup from "yup";
11
11
  import { AnySchema, ArraySchema, BooleanSchema, DateSchema, NumberSchema, ObjectSchema, StringSchema } from "yup";
12
- import { enumToObjectEntries, getValueInPath, hydrateRegExp, isPropertyBuilder } from "../util";
12
+ import { enumToObjectEntries, getValueInPath, hydrateRegExp, isPropertyBuilder } from "../util/index.js";
13
13
 
14
14
  // Add custom unique function for array values
15
15
  declare module "yup" {
@@ -7,7 +7,7 @@ import {
7
7
  FireCMSContext,
8
8
  ResolvedEntityCollection,
9
9
  User
10
- } from "../../types";
10
+ } from "../../types/index.js";
11
11
 
12
12
  /**
13
13
  * @group Hooks and utilities