@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.
- package/dist/app/AppBar.d.ts +1 -1
- package/dist/app/index.d.ts +4 -4
- package/dist/components/ClearFilterSortButton.d.ts +1 -1
- package/dist/components/DeleteEntityDialog.d.ts +1 -1
- package/dist/components/EntityCollectionTable/EntityCollectionRowActions.d.ts +1 -1
- package/dist/components/EntityCollectionTable/EntityCollectionTable.d.ts +2 -2
- package/dist/components/EntityCollectionTable/EntityCollectionTableProps.d.ts +3 -3
- package/dist/components/EntityCollectionTable/PropertyTableCell.d.ts +2 -2
- package/dist/components/EntityCollectionTable/column_utils.d.ts +2 -2
- package/dist/components/EntityCollectionTable/fields/TableReferenceField.d.ts +1 -1
- package/dist/components/EntityCollectionTable/fields/TableStorageUpload.d.ts +2 -2
- package/dist/components/EntityCollectionTable/index.d.ts +6 -6
- package/dist/components/EntityCollectionTable/internal/EntityTableCell.d.ts +1 -1
- package/dist/components/EntityCollectionTable/internal/common.d.ts +1 -1
- package/dist/components/EntityCollectionTable/internal/popup_field/PopupFormField.d.ts +3 -3
- package/dist/components/EntityCollectionView/Board.d.ts +1 -1
- package/dist/components/EntityCollectionView/BoardColumn.d.ts +1 -1
- package/dist/components/EntityCollectionView/BoardSortableList.d.ts +1 -1
- package/dist/components/EntityCollectionView/CollectionCountBadge.d.ts +8 -0
- package/dist/components/EntityCollectionView/CollectionPathTitle.d.ts +24 -0
- package/dist/components/EntityCollectionView/EntityBoardCard.d.ts +2 -2
- package/dist/components/EntityCollectionView/EntityCard.d.ts +1 -1
- package/dist/components/EntityCollectionView/EntityCollectionBoardView.d.ts +1 -1
- package/dist/components/EntityCollectionView/EntityCollectionCardView.d.ts +1 -1
- package/dist/components/EntityCollectionView/EntityCollectionView.d.ts +6 -1
- package/dist/components/EntityCollectionView/EntityCollectionViewActions.d.ts +1 -1
- package/dist/components/EntityCollectionView/EntityCollectionViewStartActions.d.ts +1 -1
- package/dist/components/EntityCollectionView/EntityIdHeaderWidget.d.ts +12 -0
- package/dist/components/EntityCollectionView/FiltersDialog.d.ts +1 -1
- package/dist/components/EntityCollectionView/ViewModeToggle.d.ts +1 -1
- package/dist/components/EntityCollectionView/board_types.d.ts +1 -1
- package/dist/components/EntityCollectionView/useBoardDataController.d.ts +1 -1
- package/dist/components/EntityCollectionView/useSelectionController.d.ts +1 -1
- package/dist/components/EntityCollectionView/utils.d.ts +4 -3
- package/dist/components/EntityPreview.d.ts +2 -2
- package/dist/components/EntityView.d.ts +1 -1
- package/dist/components/HomePage/HomePageDnD.d.ts +1 -1
- package/dist/components/HomePage/NavigationCardBinding.d.ts +1 -1
- package/dist/components/HomePage/index.d.ts +5 -5
- package/dist/components/PropertyCollectionView.d.ts +2 -2
- package/dist/components/PropertyConfigBadge.d.ts +1 -1
- package/dist/components/ReferenceTable/ReferenceSelectionTable.d.ts +1 -1
- package/dist/components/ReferenceWidget.d.ts +2 -2
- package/dist/components/SelectableTable/SelectableTable.d.ts +3 -3
- package/dist/components/SelectableTable/SelectableTableContext.d.ts +1 -1
- package/dist/components/SelectableTable/filters/BooleanFilterField.d.ts +1 -1
- package/dist/components/SelectableTable/filters/DateTimeFilterField.d.ts +1 -1
- package/dist/components/SelectableTable/filters/ReferenceFilterField.d.ts +1 -1
- package/dist/components/SelectableTable/filters/StringNumberFilterField.d.ts +2 -2
- package/dist/components/UserDisplay.d.ts +1 -1
- package/dist/components/VirtualTable/VirtualTable.d.ts +1 -1
- package/dist/components/VirtualTable/VirtualTableCell.d.ts +1 -1
- package/dist/components/VirtualTable/VirtualTableHeader.d.ts +1 -1
- package/dist/components/VirtualTable/VirtualTableHeaderRow.d.ts +1 -1
- package/dist/components/VirtualTable/VirtualTableProps.d.ts +2 -2
- package/dist/components/VirtualTable/VirtualTableRow.d.ts +1 -1
- package/dist/components/VirtualTable/fields/VirtualTableSelect.d.ts +1 -1
- package/dist/components/VirtualTable/index.d.ts +2 -2
- package/dist/components/VirtualTable/types.d.ts +2 -2
- package/dist/components/common/default_entity_actions.d.ts +1 -1
- package/dist/components/common/index.d.ts +6 -6
- package/dist/components/common/table_url_params.d.ts +1 -1
- package/dist/components/common/types.d.ts +1 -1
- package/dist/components/common/useColumnsIds.d.ts +2 -2
- package/dist/components/common/useDataSourceTableController.d.ts +2 -2
- package/dist/components/common/useScrollRestoration.d.ts +1 -1
- package/dist/components/common/useTableSearchHelper.d.ts +1 -1
- package/dist/components/index.d.ts +33 -33
- package/dist/contexts/AnalyticsContext.d.ts +1 -1
- package/dist/contexts/AuthControllerContext.d.ts +1 -1
- package/dist/contexts/BreacrumbsContext.d.ts +1 -1
- package/dist/contexts/CustomizationControllerContext.d.ts +1 -1
- package/dist/contexts/DataSourceContext.d.ts +1 -1
- package/dist/contexts/DialogsProvider.d.ts +1 -1
- package/dist/contexts/InternalUserManagementContext.d.ts +1 -1
- package/dist/contexts/LicenseStatusContext.d.ts +1 -1
- package/dist/contexts/ModeController.d.ts +1 -1
- package/dist/contexts/NavigationContext.d.ts +1 -1
- package/dist/contexts/SideDialogsControllerContext.d.ts +1 -1
- package/dist/contexts/SideEntityControllerContext.d.ts +1 -1
- package/dist/contexts/StorageSourceContext.d.ts +1 -1
- package/dist/contexts/UserConfigurationPersistenceContext.d.ts +1 -1
- package/dist/contexts/index.d.ts +13 -13
- package/dist/core/DefaultAppBar.d.ts +1 -1
- package/dist/core/DrawerNavigationGroup.d.ts +1 -1
- package/dist/core/EntityEditView.d.ts +2 -2
- package/dist/core/EntityEditViewFormActions.d.ts +1 -1
- package/dist/core/EntitySidePanel.d.ts +1 -1
- package/dist/core/FireCMS.d.ts +1 -1
- package/dist/core/field_configs.d.ts +1 -1
- package/dist/core/index.d.ts +10 -10
- package/dist/core/plugin_translations.d.ts +1 -1
- package/dist/core/pro_plugins.d.ts +1 -1
- package/dist/{de-CUF9f7S-.js → de-CNfJQcnh.js} +1 -1
- package/dist/de-CNfJQcnh.js.map +1 -0
- package/dist/editor/components/SlashCommandMenu.d.ts +2 -2
- package/dist/editor/components/index.d.ts +5 -5
- package/dist/editor/editor.d.ts +2 -2
- package/dist/editor/index.d.ts +3 -3
- package/dist/editor/lazy_editor.d.ts +1 -1
- package/dist/editor/nodeViews/ImageComponent.d.ts +1 -1
- package/dist/editor/nodeViews/TaskItemComponent.d.ts +1 -1
- package/dist/editor/selectors/ai-selector.d.ts +1 -0
- package/dist/editor/types.d.ts +1 -1
- package/dist/{editor-WZytSO_1.js → editor-D0A5yaaJ.js} +1 -1
- package/dist/editor-D0A5yaaJ.js.map +1 -0
- package/dist/form/EntityForm.d.ts +2 -2
- package/dist/form/EntityFormActions.d.ts +1 -1
- package/dist/form/PropertyFieldBinding.d.ts +1 -1
- package/dist/form/components/CustomIdField.d.ts +1 -1
- package/dist/form/components/FieldHelperText.d.ts +1 -1
- package/dist/form/components/LocalChangesMenu.d.ts +1 -1
- package/dist/form/components/StorageItemPreview.d.ts +2 -2
- package/dist/form/components/StorageUploadProgress.d.ts +1 -1
- package/dist/form/components/index.d.ts +5 -5
- package/dist/form/field_bindings/ArrayCustomShapedFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/ArrayOfReferencesFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/BlockFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/DateTimeFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/GeopointFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/KeyValueFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/MapFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/MarkdownEditorFieldBinding.d.ts +2 -2
- package/dist/form/field_bindings/MultiSelectFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/ReadOnlyFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/ReferenceAsStringFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/ReferenceFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/RepeatFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/SelectFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/StorageUploadFieldBinding.d.ts +2 -2
- package/dist/form/field_bindings/SwitchFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/TextFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/UserSelectFieldBinding.d.ts +1 -1
- package/dist/form/index.d.ts +22 -22
- package/dist/form/useClearRestoreValue.d.ts +1 -1
- package/dist/form/validation.d.ts +1 -1
- package/dist/{fr-DmkMX6hp.js → fr-CBtSvDVp.js} +1 -1
- package/dist/fr-CBtSvDVp.js.map +1 -0
- package/dist/{hi-BKuaMr7w.js → hi-Delc4l61.js} +1 -1
- package/dist/hi-Delc4l61.js.map +1 -0
- package/dist/hooks/data/delete.d.ts +1 -1
- package/dist/hooks/data/save.d.ts +1 -1
- package/dist/hooks/data/useCollectionFetch.d.ts +1 -1
- package/dist/hooks/data/useDataOrder.d.ts +1 -1
- package/dist/hooks/data/useDataSource.d.ts +1 -1
- package/dist/hooks/data/useEntityFetch.d.ts +1 -1
- package/dist/hooks/index.d.ts +29 -29
- package/dist/hooks/useAnalyticsController.d.ts +1 -1
- package/dist/hooks/useAuthController.d.ts +1 -1
- package/dist/hooks/useBuildLocalConfigurationPersistence.d.ts +1 -1
- package/dist/hooks/useBuildModeController.d.ts +1 -1
- package/dist/hooks/useBuildNavigationController.d.ts +1 -1
- package/dist/hooks/useCustomizationController.d.ts +1 -1
- package/dist/hooks/useDialogsController.d.ts +1 -1
- package/dist/hooks/useFireCMSContext.d.ts +1 -1
- package/dist/hooks/useInternalUserManagementController.d.ts +1 -1
- package/dist/hooks/useLicenseStatus.d.ts +1 -1
- package/dist/hooks/useNavigationController.d.ts +1 -1
- package/dist/hooks/useProjectLog.d.ts +1 -1
- package/dist/hooks/useReferenceDialog.d.ts +1 -1
- package/dist/hooks/useResolvedNavigationFrom.d.ts +1 -1
- package/dist/hooks/useSideDialogsController.d.ts +1 -1
- package/dist/hooks/useSideEntityController.d.ts +1 -1
- package/dist/hooks/useStorageSource.d.ts +1 -1
- package/dist/hooks/useUserConfigurationPersistence.d.ts +1 -1
- package/dist/hooks/useValidateAuthenticator.d.ts +1 -1
- package/dist/i18n/FireCMSi18nProvider.d.ts +1 -1
- package/dist/index.d.ts +14 -14
- package/dist/index.es.js +624 -579
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +616 -571
- package/dist/index.umd.js.map +1 -1
- package/dist/internal/useBuildDataSource.d.ts +1 -1
- package/dist/internal/useBuildSideDialogsController.d.ts +1 -1
- package/dist/internal/useBuildSideEntityController.d.ts +1 -1
- package/dist/internal/useLeavePageConfirmation.d.ts +11 -0
- package/dist/{it-BwQflFGz.js → it-CdsoaRVO.js} +1 -1
- package/dist/it-CdsoaRVO.js.map +1 -0
- package/dist/locales/de.d.ts +1 -1
- package/dist/locales/en.d.ts +1 -1
- package/dist/locales/es.d.ts +1 -1
- package/dist/locales/fr.d.ts +1 -1
- package/dist/locales/hi.d.ts +1 -1
- package/dist/locales/it.d.ts +1 -1
- package/dist/locales/pl.d.ts +1 -1
- package/dist/locales/pt.d.ts +1 -1
- package/dist/{pl-BPsAvZvc.js → pl-DoTvWcwp.js} +1 -1
- package/dist/pl-DoTvWcwp.js.map +1 -0
- package/dist/preview/PropertyPreview.d.ts +2 -2
- package/dist/preview/PropertyPreviewProps.d.ts +1 -1
- package/dist/preview/components/ArrayEnumPreview.d.ts +2 -2
- package/dist/preview/components/BooleanPreview.d.ts +2 -2
- package/dist/preview/components/EnumValuesChip.d.ts +1 -1
- package/dist/preview/components/ImagePreview.d.ts +1 -1
- package/dist/preview/components/ReferencePreview.d.ts +2 -2
- package/dist/preview/components/StorageThumbnail.d.ts +1 -1
- package/dist/preview/components/UrlComponentPreview.d.ts +2 -2
- package/dist/preview/components/UserPreview.d.ts +1 -1
- package/dist/preview/components/__tests__/DatePreview.test.d.ts +1 -0
- package/dist/preview/index.d.ts +25 -25
- package/dist/preview/property_previews/ArrayOfMapsPreview.d.ts +1 -1
- package/dist/preview/property_previews/ArrayOfReferencesPreview.d.ts +1 -1
- package/dist/preview/property_previews/ArrayOfStorageComponentsPreview.d.ts +1 -1
- package/dist/preview/property_previews/ArrayOfStringsPreview.d.ts +1 -1
- package/dist/preview/property_previews/ArrayOneOfPreview.d.ts +1 -1
- package/dist/preview/property_previews/ArrayPropertyEnumPreview.d.ts +1 -1
- package/dist/preview/property_previews/ArrayPropertyPreview.d.ts +1 -1
- package/dist/preview/property_previews/GeopointPropertyPreview.d.ts +2 -2
- package/dist/preview/property_previews/MapPropertyPreview.d.ts +1 -1
- package/dist/preview/property_previews/NumberPropertyPreview.d.ts +1 -1
- package/dist/preview/property_previews/SkeletonPropertyComponent.d.ts +2 -2
- package/dist/preview/property_previews/StringPropertyPreview.d.ts +1 -1
- package/dist/preview/util.d.ts +2 -2
- package/dist/{pt-D5q7OQp1.js → pt-DCfk8Nkq.js} +1 -1
- package/dist/pt-DCfk8Nkq.js.map +1 -0
- package/dist/routes/CustomCMSRoute.d.ts +1 -1
- package/dist/types/analytics_controller.d.ts +1 -1
- package/dist/types/auth.d.ts +4 -4
- package/dist/types/collections.d.ts +10 -10
- package/dist/types/customization_controller.d.ts +6 -6
- package/dist/types/datasource.d.ts +4 -4
- package/dist/types/entity_actions.d.ts +6 -6
- package/dist/types/entity_callbacks.d.ts +5 -5
- package/dist/types/entity_link_builder.d.ts +1 -1
- package/dist/types/entity_overrides.d.ts +2 -2
- package/dist/types/export_import.d.ts +3 -3
- package/dist/types/fields.d.ts +3 -3
- package/dist/types/firecms.d.ts +15 -15
- package/dist/types/firecms_context.d.ts +14 -14
- package/dist/types/index.d.ts +32 -32
- package/dist/types/internal_user_management.d.ts +1 -1
- package/dist/types/local_config_persistence.d.ts +1 -1
- package/dist/types/locales.d.ts +1 -1
- package/dist/types/modify_collections.d.ts +1 -1
- package/dist/types/navigation.d.ts +3 -3
- package/dist/types/permissions.d.ts +4 -4
- package/dist/types/plugins.d.ts +9 -9
- package/dist/types/properties.d.ts +6 -6
- package/dist/types/property_config.d.ts +1 -1
- package/dist/types/resolved_entities.d.ts +3 -3
- package/dist/types/roles.d.ts +1 -1
- package/dist/types/side_dialogs_controller.d.ts +4 -2
- package/dist/types/side_entity_controller.d.ts +4 -4
- package/dist/types/user.d.ts +1 -1
- package/dist/util/__tests__/locales.test.d.ts +1 -0
- package/dist/util/builders.d.ts +1 -1
- package/dist/util/callbacks.d.ts +1 -1
- package/dist/util/collections.d.ts +1 -1
- package/dist/util/conditions.d.ts +1 -1
- package/dist/util/date_fns_locales.d.ts +14 -1
- package/dist/util/entities.d.ts +1 -1
- package/dist/util/entity_actions.d.ts +1 -1
- package/dist/util/enums.d.ts +1 -1
- package/dist/util/geopoint.d.ts +1 -1
- package/dist/util/index.d.ts +31 -31
- package/dist/util/join_collections.d.ts +1 -1
- package/dist/util/make_properties_editable.d.ts +1 -1
- package/dist/util/navigation_from_path.d.ts +1 -1
- package/dist/util/navigation_utils.d.ts +1 -1
- package/dist/util/parent_references_from_path.d.ts +1 -1
- package/dist/util/permissions.d.ts +1 -1
- package/dist/util/previews.d.ts +1 -1
- package/dist/util/property_utils.d.ts +1 -1
- package/dist/util/resolutions.d.ts +1 -1
- package/dist/util/storage.d.ts +1 -1
- package/dist/util/urls.d.ts +1 -1
- package/dist/util/useStorageUploadController.d.ts +2 -2
- package/package.json +13 -4
- package/src/app/AppBar.tsx +1 -1
- package/src/app/Drawer.tsx +1 -1
- package/src/app/Scaffold.tsx +5 -5
- package/src/app/index.ts +4 -4
- package/src/components/AIIcon.tsx +1 -1
- package/src/components/ArrayContainer.tsx +2 -2
- package/src/components/ClearFilterSortButton.tsx +2 -2
- package/src/components/ConfirmationDialog.tsx +1 -1
- package/src/components/DeleteEntityDialog.tsx +5 -5
- package/src/components/EntityCollectionTable/EntityCollectionRowActions.tsx +5 -5
- package/src/components/EntityCollectionTable/EntityCollectionTable.tsx +16 -16
- package/src/components/EntityCollectionTable/EntityCollectionTableProps.tsx +3 -3
- package/src/components/EntityCollectionTable/PropertyTableCell.tsx +18 -18
- package/src/components/EntityCollectionTable/column_utils.tsx +5 -5
- package/src/components/EntityCollectionTable/fields/TableReferenceField.tsx +8 -8
- package/src/components/EntityCollectionTable/fields/TableStorageUpload.tsx +8 -8
- package/src/components/EntityCollectionTable/index.tsx +6 -6
- package/src/components/EntityCollectionTable/internal/CollectionTableToolbar.tsx +1 -1
- package/src/components/EntityCollectionTable/internal/EntityTableCell.tsx +3 -3
- package/src/components/EntityCollectionTable/internal/EntityTableCellActions.tsx +1 -1
- package/src/components/EntityCollectionTable/internal/common.tsx +1 -1
- package/src/components/EntityCollectionTable/internal/popup_field/PopupFormField.tsx +8 -8
- package/src/components/EntityCollectionView/Board.tsx +2 -2
- package/src/components/EntityCollectionView/BoardColumn.tsx +3 -3
- package/src/components/EntityCollectionView/BoardSortableList.tsx +2 -2
- package/src/components/EntityCollectionView/CollectionCountBadge.tsx +17 -0
- package/src/components/EntityCollectionView/CollectionDataErrorBanner.tsx +1 -1
- package/src/components/EntityCollectionView/CollectionPathTitle.tsx +68 -0
- package/src/components/EntityCollectionView/EntityBoardCard.tsx +5 -5
- package/src/components/EntityCollectionView/EntityCard.tsx +5 -5
- package/src/components/EntityCollectionView/EntityCollectionBoardView.tsx +11 -11
- package/src/components/EntityCollectionView/EntityCollectionCardView.tsx +3 -3
- package/src/components/EntityCollectionView/EntityCollectionView.tsx +35 -134
- package/src/components/EntityCollectionView/EntityCollectionViewActions.tsx +6 -6
- package/src/components/EntityCollectionView/EntityCollectionViewStartActions.tsx +7 -7
- package/src/components/EntityCollectionView/EntityIdHeaderWidget.tsx +166 -0
- package/src/components/EntityCollectionView/FiltersDialog.tsx +8 -8
- package/src/components/EntityCollectionView/ViewModeToggle.tsx +2 -2
- package/src/components/EntityCollectionView/board_types.ts +1 -1
- package/src/components/EntityCollectionView/useBoardDataController.tsx +2 -2
- package/src/components/EntityCollectionView/useSelectionController.tsx +1 -1
- package/src/components/EntityCollectionView/utils.ts +14 -8
- package/src/components/EntityJsonPreview.tsx +2 -2
- package/src/components/EntityPreview.tsx +5 -5
- package/src/components/EntityView.tsx +6 -6
- package/src/components/ErrorBoundary.tsx +1 -1
- package/src/components/ErrorView.tsx +1 -1
- package/src/components/HomePage/DefaultHomePage.tsx +10 -10
- package/src/components/HomePage/FavouritesView.tsx +3 -3
- package/src/components/HomePage/HomePageDnD.tsx +3 -3
- package/src/components/HomePage/NavigationCardBinding.tsx +6 -6
- package/src/components/HomePage/NavigationGroup.tsx +1 -1
- package/src/components/HomePage/RenameGroupDialog.tsx +1 -1
- package/src/components/HomePage/index.tsx +5 -5
- package/src/components/LanguageToggle.tsx +1 -1
- package/src/components/LicenseBanner.tsx +5 -5
- package/src/components/NotFoundPage.tsx +1 -1
- package/src/components/PropertyCollectionView.tsx +3 -3
- package/src/components/PropertyConfigBadge.tsx +3 -3
- package/src/components/ReferenceTable/ReferenceSelectionTable.tsx +9 -9
- package/src/components/ReferenceWidget.tsx +4 -4
- package/src/components/SearchIconsView.tsx +2 -2
- package/src/components/SelectableTable/SelectableTable.tsx +11 -11
- package/src/components/SelectableTable/SelectableTableContext.tsx +1 -1
- package/src/components/SelectableTable/filters/BooleanFilterField.tsx +1 -1
- package/src/components/SelectableTable/filters/DateTimeFilterField.tsx +2 -2
- package/src/components/SelectableTable/filters/ReferenceFilterField.tsx +5 -5
- package/src/components/SelectableTable/filters/StringNumberFilterField.tsx +4 -4
- package/src/components/SelectableTable/filters/filter_text_input.test.ts +1 -1
- package/src/components/UnsavedChangesDialog.tsx +1 -1
- package/src/components/UserDisplay.tsx +2 -2
- package/src/components/VirtualTable/VirtualTable.performance.test.tsx +2 -2
- package/src/components/VirtualTable/VirtualTable.tsx +7 -7
- package/src/components/VirtualTable/VirtualTableCell.tsx +1 -1
- package/src/components/VirtualTable/VirtualTableHeader.tsx +3 -3
- package/src/components/VirtualTable/VirtualTableHeaderRow.tsx +4 -4
- package/src/components/VirtualTable/VirtualTableProps.tsx +2 -2
- package/src/components/VirtualTable/VirtualTableRow.tsx +1 -1
- package/src/components/VirtualTable/fields/VirtualTableDateField.tsx +1 -1
- package/src/components/VirtualTable/fields/VirtualTableInput.tsx +1 -1
- package/src/components/VirtualTable/fields/VirtualTableNumberInput.tsx +1 -1
- package/src/components/VirtualTable/fields/VirtualTableSelect.tsx +2 -2
- package/src/components/VirtualTable/fields/VirtualTableUserSelect.tsx +2 -2
- package/src/components/VirtualTable/index.tsx +2 -2
- package/src/components/VirtualTable/types.tsx +2 -2
- package/src/components/common/default_entity_actions.tsx +6 -5
- package/src/components/common/index.ts +6 -6
- package/src/components/common/table_url_params.ts +2 -2
- package/src/components/common/types.tsx +1 -1
- package/src/components/common/useColumnsIds.tsx +4 -4
- package/src/components/common/useDataSourceTableController.tsx +7 -7
- package/src/components/common/useScrollRestoration.tsx +1 -1
- package/src/components/common/useTableSearchHelper.ts +2 -2
- package/src/components/index.tsx +33 -33
- package/src/contexts/AnalyticsContext.tsx +1 -1
- package/src/contexts/AuthControllerContext.tsx +1 -1
- package/src/contexts/BreacrumbsContext.tsx +1 -1
- package/src/contexts/CustomizationControllerContext.tsx +1 -1
- package/src/contexts/DataSourceContext.tsx +1 -1
- package/src/contexts/DialogsProvider.tsx +1 -1
- package/src/contexts/InternalUserManagementContext.tsx +1 -1
- package/src/contexts/LicenseStatusContext.tsx +1 -1
- package/src/contexts/ModeController.tsx +1 -1
- package/src/contexts/NavigationContext.tsx +1 -1
- package/src/contexts/SideDialogsControllerContext.tsx +1 -1
- package/src/contexts/SideEntityControllerContext.tsx +1 -1
- package/src/contexts/StorageSourceContext.tsx +1 -1
- package/src/contexts/UserConfigurationPersistenceContext.tsx +1 -1
- package/src/contexts/index.ts +13 -13
- package/src/core/DefaultAppBar.tsx +18 -15
- package/src/core/DefaultDrawer.tsx +7 -7
- package/src/core/DrawerNavigationGroup.tsx +4 -4
- package/src/core/EntityEditView.tsx +36 -11
- package/src/core/EntityEditViewFormActions.tsx +7 -7
- package/src/core/EntitySidePanel.tsx +6 -6
- package/src/core/FireCMS.tsx +24 -24
- package/src/core/FireCMSRouter.tsx +1 -1
- package/src/core/NavigationRoutes.tsx +6 -6
- package/src/core/SideDialogs.tsx +11 -18
- package/src/core/field_configs.tsx +7 -7
- package/src/core/index.tsx +10 -10
- package/src/core/plugin_translations.ts +1 -1
- package/src/core/pro_plugins.ts +1 -1
- package/src/editor/components/SlashCommandMenu.tsx +7 -7
- package/src/editor/components/editor-bubble-item.tsx +1 -1
- package/src/editor/components/editor-bubble.tsx +1 -1
- package/src/editor/components/image-bubble.tsx +1 -1
- package/src/editor/components/index.ts +5 -5
- package/src/editor/components/table-bubble.tsx +1 -1
- package/src/editor/editor.tsx +12 -12
- package/src/editor/extensions/Image/index.ts +1 -1
- package/src/editor/extensions/drag-and-drop.tsx +1 -1
- package/src/editor/hooks/useProseMirror.ts +5 -5
- package/src/editor/index.ts +3 -3
- package/src/editor/lazy_editor.tsx +3 -3
- package/src/editor/markdown.ts +1 -1
- package/src/editor/nodeViews/ImageComponent.tsx +1 -1
- package/src/editor/nodeViews/TaskItemComponent.tsx +1 -1
- package/src/editor/nodeViews/index.ts +3 -3
- package/src/editor/plugins/index.ts +7 -7
- package/src/editor/plugins/inputrules.ts +1 -1
- package/src/editor/selectors/color-selector.tsx +4 -4
- package/src/editor/selectors/link-selector.tsx +4 -4
- package/src/editor/selectors/node-selector.tsx +5 -5
- package/src/editor/selectors/text-buttons.tsx +5 -5
- package/src/editor/types.ts +1 -1
- package/src/editor/useProseMirror.ts +3 -3
- package/src/form/EntityForm.tsx +13 -13
- package/src/form/EntityFormActions.tsx +3 -3
- package/src/form/PropertyFieldBinding.tsx +6 -6
- package/src/form/components/CustomIdField.tsx +6 -6
- package/src/form/components/FieldHelperText.tsx +1 -1
- package/src/form/components/FormEntry.tsx +1 -1
- package/src/form/components/LabelWithIconAndTooltip.tsx +2 -2
- package/src/form/components/LocalChangesMenu.tsx +5 -5
- package/src/form/components/StorageItemPreview.tsx +4 -4
- package/src/form/components/StorageUploadProgress.tsx +3 -3
- package/src/form/components/index.tsx +5 -5
- package/src/form/field_bindings/ArrayCustomShapedFieldBinding.tsx +6 -6
- package/src/form/field_bindings/ArrayOfReferencesFieldBinding.tsx +7 -7
- package/src/form/field_bindings/BlockFieldBinding.tsx +11 -10
- package/src/form/field_bindings/DateTimeFieldBinding.tsx +6 -6
- package/src/form/field_bindings/GeopointFieldBinding.tsx +6 -6
- package/src/form/field_bindings/KeyValueFieldBinding.tsx +6 -6
- package/src/form/field_bindings/MapFieldBinding.tsx +7 -7
- package/src/form/field_bindings/MarkdownEditorFieldBinding.tsx +7 -7
- package/src/form/field_bindings/MultiSelectFieldBinding.tsx +5 -5
- package/src/form/field_bindings/ReadOnlyFieldBinding.tsx +5 -5
- package/src/form/field_bindings/ReferenceAsStringFieldBinding.tsx +9 -9
- package/src/form/field_bindings/ReferenceFieldBinding.tsx +9 -9
- package/src/form/field_bindings/RepeatFieldBinding.tsx +8 -8
- package/src/form/field_bindings/SelectFieldBinding.tsx +6 -6
- package/src/form/field_bindings/StorageUploadFieldBinding.tsx +10 -10
- package/src/form/field_bindings/SwitchFieldBinding.tsx +5 -5
- package/src/form/field_bindings/TextFieldBinding.tsx +6 -6
- package/src/form/field_bindings/UserSelectFieldBinding.tsx +6 -6
- package/src/form/index.tsx +22 -22
- package/src/form/useClearRestoreValue.tsx +1 -1
- package/src/form/validation.ts +2 -2
- package/src/hooks/data/delete.ts +1 -1
- package/src/hooks/data/save.ts +3 -3
- package/src/hooks/data/useCollectionFetch.tsx +4 -4
- package/src/hooks/data/useDataOrder.ts +1 -1
- package/src/hooks/data/useDataSource.tsx +2 -2
- package/src/hooks/data/useEntityFetch.tsx +5 -5
- package/src/hooks/index.tsx +29 -29
- package/src/hooks/useAnalyticsController.tsx +2 -2
- package/src/hooks/useAuthController.tsx +2 -2
- package/src/hooks/useBreadcrumbsController.tsx +1 -1
- package/src/hooks/useBuildLocalConfigurationPersistence.tsx +3 -3
- package/src/hooks/useBuildModeController.tsx +2 -2
- package/src/hooks/useBuildNavigationController.tsx +5 -5
- package/src/hooks/useCustomizationController.tsx +2 -2
- package/src/hooks/useDialogsController.tsx +2 -2
- package/src/hooks/useFireCMSContext.tsx +14 -14
- package/src/hooks/useInternalUserManagementController.tsx +3 -3
- package/src/hooks/useLicenseStatus.tsx +2 -2
- package/src/hooks/useModeController.tsx +1 -1
- package/src/hooks/useNavigationController.tsx +2 -2
- package/src/hooks/useProjectLog.tsx +2 -2
- package/src/hooks/useReferenceDialog.tsx +5 -5
- package/src/hooks/useResolvedNavigationFrom.tsx +3 -3
- package/src/hooks/useSideDialogsController.tsx +2 -2
- package/src/hooks/useSideEntityController.tsx +2 -2
- package/src/hooks/useStorageSource.tsx +2 -2
- package/src/hooks/useUserConfigurationPersistence.tsx +2 -2
- package/src/hooks/useValidateAuthenticator.tsx +1 -1
- package/src/i18n/FireCMSi18nProvider.tsx +10 -10
- package/src/i18n/__tests__/FireCMSi18nProvider.test.tsx +1 -1
- package/src/i18n/__tests__/nested_provider_lifecycle.test.tsx +1 -1
- package/src/index.ts +14 -14
- package/src/internal/useBuildDataSource.ts +2 -2
- package/src/internal/useBuildSideDialogsController.tsx +45 -3
- package/src/internal/useBuildSideEntityController.tsx +6 -6
- package/src/internal/useLeavePageConfirmation.ts +25 -0
- package/src/locales/de.ts +1 -1
- package/src/locales/en.ts +1 -1
- package/src/locales/es.ts +1 -1
- package/src/locales/fr.ts +1 -1
- package/src/locales/hi.ts +1 -1
- package/src/locales/it.ts +1 -1
- package/src/locales/pl.ts +1 -1
- package/src/locales/pt.ts +1 -1
- package/src/preview/PropertyPreview.tsx +24 -24
- package/src/preview/PropertyPreviewProps.tsx +1 -1
- package/src/preview/components/ArrayEnumPreview.tsx +4 -4
- package/src/preview/components/BooleanPreview.tsx +2 -2
- package/src/preview/components/DatePreview.tsx +15 -3
- package/src/preview/components/EnumValuesChip.tsx +2 -2
- package/src/preview/components/ImagePreview.tsx +2 -2
- package/src/preview/components/ReferencePreview.tsx +7 -7
- package/src/preview/components/StorageThumbnail.tsx +7 -7
- package/src/preview/components/UrlComponentPreview.tsx +6 -6
- package/src/preview/components/UserPreview.tsx +5 -5
- package/src/preview/components/__tests__/DatePreview.test.tsx +39 -0
- package/src/preview/index.ts +25 -25
- package/src/preview/property_previews/ArrayOfMapsPreview.tsx +5 -5
- package/src/preview/property_previews/ArrayOfReferencesPreview.tsx +5 -5
- package/src/preview/property_previews/ArrayOfStorageComponentsPreview.tsx +6 -6
- package/src/preview/property_previews/ArrayOfStringsPreview.tsx +5 -5
- package/src/preview/property_previews/ArrayOneOfPreview.tsx +7 -7
- package/src/preview/property_previews/ArrayPropertyEnumPreview.tsx +3 -3
- package/src/preview/property_previews/ArrayPropertyPreview.tsx +6 -6
- package/src/preview/property_previews/GeopointPropertyPreview.tsx +3 -3
- package/src/preview/property_previews/MapPropertyPreview.tsx +6 -6
- package/src/preview/property_previews/NumberPropertyPreview.tsx +2 -2
- package/src/preview/property_previews/SkeletonPropertyComponent.tsx +3 -3
- package/src/preview/property_previews/StringPropertyPreview.tsx +6 -6
- package/src/preview/util.ts +2 -2
- package/src/routes/CustomCMSRoute.tsx +2 -2
- package/src/routes/FireCMSRoute.tsx +13 -13
- package/src/routes/HomePageRoute.tsx +1 -1
- package/src/types/analytics_controller.tsx +1 -1
- package/src/types/auth.tsx +4 -4
- package/src/types/collections.ts +10 -10
- package/src/types/customization_controller.tsx +6 -6
- package/src/types/datasource.ts +4 -4
- package/src/types/entity_actions.tsx +6 -6
- package/src/types/entity_callbacks.ts +5 -5
- package/src/types/entity_link_builder.ts +1 -1
- package/src/types/entity_overrides.tsx +2 -2
- package/src/types/export_import.ts +3 -3
- package/src/types/fields.tsx +3 -3
- package/src/types/firecms.tsx +15 -15
- package/src/types/firecms_context.tsx +14 -14
- package/src/types/index.ts +32 -32
- package/src/types/internal_user_management.ts +1 -1
- package/src/types/local_config_persistence.tsx +1 -1
- package/src/types/locales.ts +2 -0
- package/src/types/modify_collections.tsx +1 -1
- package/src/types/navigation.ts +3 -3
- package/src/types/permissions.ts +4 -4
- package/src/types/plugins.tsx +9 -9
- package/src/types/properties.ts +6 -6
- package/src/types/property_config.tsx +1 -1
- package/src/types/resolved_entities.ts +3 -3
- package/src/types/roles.ts +1 -1
- package/src/types/side_dialogs_controller.tsx +5 -3
- package/src/types/side_entity_controller.tsx +5 -5
- package/src/types/user.ts +1 -1
- package/src/util/__tests__/collections.test.ts +2 -2
- package/src/util/__tests__/conditions.test.ts +2 -2
- package/src/util/__tests__/locales.test.ts +46 -0
- package/src/util/__tests__/objects.test.ts +1 -1
- package/src/util/__tests__/urls.test.ts +1 -1
- package/src/util/builders.ts +1 -1
- package/src/util/callbacks.ts +2 -2
- package/src/util/collections.ts +2 -2
- package/src/util/conditions.ts +1 -1
- package/src/util/date_fns_locales.ts +29 -1
- package/src/util/entities.ts +3 -3
- package/src/util/entity_actions.ts +1 -1
- package/src/util/entity_cache.ts +3 -3
- package/src/util/enums.ts +1 -1
- package/src/util/geopoint.ts +1 -1
- package/src/util/icon_list.ts +1 -1
- package/src/util/icons.tsx +2 -2
- package/src/util/index.ts +31 -31
- package/src/util/join_collections.ts +4 -4
- package/src/util/make_properties_editable.ts +2 -2
- package/src/util/navigation_from_path.ts +3 -3
- package/src/util/navigation_utils.ts +1 -1
- package/src/util/objects.ts +1 -1
- package/src/util/parent_references_from_path.ts +2 -2
- package/src/util/permissions.ts +2 -2
- package/src/util/previews.ts +4 -4
- package/src/util/property_utils.tsx +4 -4
- package/src/util/resolutions.ts +6 -6
- package/src/util/storage.ts +2 -2
- package/src/util/strings.test.ts +1 -1
- package/src/util/urls.ts +1 -1
- package/src/util/useStorageUploadController.tsx +6 -6
- package/dist/de-CUF9f7S-.js.map +0 -1
- package/dist/editor-WZytSO_1.js.map +0 -1
- package/dist/fr-DmkMX6hp.js.map +0 -1
- package/dist/hi-BKuaMr7w.js.map +0 -1
- package/dist/internal/useUnsavedChangesDialog.d.ts +0 -12
- package/dist/it-BwQflFGz.js.map +0 -1
- package/dist/pl-BPsAvZvc.js.map +0 -1
- package/dist/pt-D5q7OQp1.js.map +0 -1
- package/src/internal/useUnsavedChangesDialog.tsx +0 -142
package/src/hooks/data/save.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DataSource, Entity, EntityCollection, EntityValues, FireCMSContext, SaveEntityProps, User } from "../../types";
|
|
2
|
-
import { useDataSource } from "./useDataSource";
|
|
3
|
-
import { resolveCollection } from "../../util";
|
|
1
|
+
import { DataSource, Entity, EntityCollection, EntityValues, FireCMSContext, SaveEntityProps, User } from "../../types/index.js";
|
|
2
|
+
import { useDataSource } from "./useDataSource.js";
|
|
3
|
+
import { resolveCollection } from "../../util/index.js";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @group Hooks and utilities
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useEffect, useState } from "react";
|
|
2
|
-
import { Entity, EntityCollection, FilterValues, FireCMSContext, User } from "../../types";
|
|
3
|
-
import { useDataSource } from "./useDataSource";
|
|
4
|
-
import { useNavigationController } from "../useNavigationController";
|
|
5
|
-
import { useFireCMSContext } from "../useFireCMSContext";
|
|
2
|
+
import { Entity, EntityCollection, FilterValues, FireCMSContext, User } from "../../types/index.js";
|
|
3
|
+
import { useDataSource } from "./useDataSource.js";
|
|
4
|
+
import { useNavigationController } from "../useNavigationController.js";
|
|
5
|
+
import { useFireCMSContext } from "../useFireCMSContext.js";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @group Hooks and utilities
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
|
-
import { DataSource, EntityCollection } from "../../types";
|
|
3
|
-
import { DataSourceContext } from "../../contexts/DataSourceContext";
|
|
2
|
+
import { DataSource, EntityCollection } from "../../types/index.js";
|
|
3
|
+
import { DataSourceContext } from "../../contexts/DataSourceContext.js";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Use this hook to get the datasource being used
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useEffect, useState } from "react";
|
|
2
|
-
import { Entity, EntityCollection, FireCMSContext, User } from "../../types";
|
|
3
|
-
import { useDataSource } from "./useDataSource";
|
|
4
|
-
import { useNavigationController } from "../useNavigationController";
|
|
5
|
-
import { useFireCMSContext } from "../useFireCMSContext";
|
|
6
|
-
import { entityCacheKey } from "../../util/entity_cache";
|
|
2
|
+
import { Entity, EntityCollection, FireCMSContext, User } from "../../types/index.js";
|
|
3
|
+
import { useDataSource } from "./useDataSource.js";
|
|
4
|
+
import { useNavigationController } from "../useNavigationController.js";
|
|
5
|
+
import { useFireCMSContext } from "../useFireCMSContext.js";
|
|
6
|
+
import { entityCacheKey } from "../../util/entity_cache.js";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @group Hooks and utilities
|
package/src/hooks/index.tsx
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
export * from "./data/useDataSource";
|
|
2
|
-
export * from "./data/useCollectionFetch";
|
|
3
|
-
export * from "./data/useEntityFetch";
|
|
4
|
-
export * from "./data/save";
|
|
5
|
-
export * from "./data/delete";
|
|
1
|
+
export * from "./data/useDataSource.js";
|
|
2
|
+
export * from "./data/useCollectionFetch.js";
|
|
3
|
+
export * from "./data/useEntityFetch.js";
|
|
4
|
+
export * from "./data/save.js";
|
|
5
|
+
export * from "./data/delete.js";
|
|
6
6
|
|
|
7
|
-
export * from "./useNavigationController";
|
|
7
|
+
export * from "./useNavigationController.js";
|
|
8
8
|
|
|
9
|
-
export * from "./useResolvedNavigationFrom";
|
|
9
|
+
export * from "./useResolvedNavigationFrom.js";
|
|
10
10
|
|
|
11
|
-
export * from "./useStorageSource";
|
|
12
|
-
export * from "./useAuthController";
|
|
13
|
-
export * from "./useDialogsController";
|
|
14
|
-
export * from "./useSideDialogsController";
|
|
15
|
-
export * from "./useSideEntityController";
|
|
16
|
-
export * from "./useFireCMSContext";
|
|
17
|
-
export * from "./useAnalyticsController";
|
|
18
|
-
export * from "./useSnackbarController";
|
|
19
|
-
export * from "./useModeController";
|
|
20
|
-
export * from "./useClipboard";
|
|
21
|
-
export * from "./useLargeLayout";
|
|
22
|
-
export * from "./useCollapsedGroups";
|
|
11
|
+
export * from "./useStorageSource.js";
|
|
12
|
+
export * from "./useAuthController.js";
|
|
13
|
+
export * from "./useDialogsController.js";
|
|
14
|
+
export * from "./useSideDialogsController.js";
|
|
15
|
+
export * from "./useSideEntityController.js";
|
|
16
|
+
export * from "./useFireCMSContext.js";
|
|
17
|
+
export * from "./useAnalyticsController.js";
|
|
18
|
+
export * from "./useSnackbarController.js";
|
|
19
|
+
export * from "./useModeController.js";
|
|
20
|
+
export * from "./useClipboard.js";
|
|
21
|
+
export * from "./useLargeLayout.js";
|
|
22
|
+
export * from "./useCollapsedGroups.js";
|
|
23
23
|
|
|
24
|
-
export * from "./useInternalUserManagementController";
|
|
24
|
+
export * from "./useInternalUserManagementController.js";
|
|
25
25
|
|
|
26
|
-
export * from "./useReferenceDialog";
|
|
27
|
-
export * from "./useBrowserTitleAndIcon";
|
|
28
|
-
export * from "./useCustomizationController";
|
|
29
|
-
export * from "./useBuildNavigationController";
|
|
26
|
+
export * from "./useReferenceDialog.js";
|
|
27
|
+
export * from "./useBrowserTitleAndIcon.js";
|
|
28
|
+
export * from "./useCustomizationController.js";
|
|
29
|
+
export * from "./useBuildNavigationController.js";
|
|
30
30
|
|
|
31
|
-
export * from "./useBuildLocalConfigurationPersistence";
|
|
32
|
-
export * from "./useBuildModeController";
|
|
31
|
+
export * from "./useBuildLocalConfigurationPersistence.js";
|
|
32
|
+
export * from "./useBuildModeController.js";
|
|
33
33
|
|
|
34
|
-
export * from "./useValidateAuthenticator";
|
|
35
|
-
export * from "./useTranslation";
|
|
36
|
-
export * from "./useLicenseStatus";
|
|
34
|
+
export * from "./useValidateAuthenticator.js";
|
|
35
|
+
export * from "./useTranslation.js";
|
|
36
|
+
export * from "./useLicenseStatus.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
|
-
import { AnalyticsController } from "../types";
|
|
3
|
-
import { AnalyticsContext } from "../contexts/AnalyticsContext";
|
|
2
|
+
import { AnalyticsController } from "../types/index.js";
|
|
3
|
+
import { AnalyticsContext } from "../contexts/AnalyticsContext.js";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @group Hooks and utilities
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AuthController, User } from "../types";
|
|
1
|
+
import { AuthController, User } from "../types/index.js";
|
|
2
2
|
import { useContext } from "react";
|
|
3
|
-
import { AuthControllerContext } from "../contexts/AuthControllerContext";
|
|
3
|
+
import { AuthControllerContext } from "../contexts/AuthControllerContext.js";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Hook to retrieve the AuthContext.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
2
|
-
import { PartialEntityCollection, UserConfigurationPersistence } from "../types";
|
|
3
|
-
import { mergeDeep, stripCollectionPath } from "../util";
|
|
4
|
-
import { getLocalStorageJSON, setLocalStorageItem } from "../util/local_storage";
|
|
2
|
+
import { PartialEntityCollection, UserConfigurationPersistence } from "../types/index.js";
|
|
3
|
+
import { mergeDeep, stripCollectionPath } from "../util/index.js";
|
|
4
|
+
import { getLocalStorageJSON, setLocalStorageItem } from "../util/local_storage.js";
|
|
5
5
|
|
|
6
6
|
export function useBuildLocalConfigurationPersistence(): UserConfigurationPersistence {
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCallback, useEffect, useState } from "react";
|
|
2
2
|
|
|
3
|
-
import { ModeController } from "./index";
|
|
4
|
-
import { getLocalStorageItem, removeLocalStorageItem, setLocalStorageItem } from "../util/local_storage";
|
|
3
|
+
import { ModeController } from "./index.js";
|
|
4
|
+
import { getLocalStorageItem, removeLocalStorageItem, setLocalStorageItem } from "../util/local_storage.js";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Use this hook to build a color mode controller that determines
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
2
2
|
import equal from "react-fast-compare"
|
|
3
3
|
import { useBlocker, useNavigate } from "react-router-dom";
|
|
4
|
-
import { filterPausedPlugins, isProPaused } from "../core/pro_plugins";
|
|
5
|
-
import { useLicenseStatus } from "./useLicenseStatus";
|
|
4
|
+
import { filterPausedPlugins, isProPaused } from "../core/pro_plugins.js";
|
|
5
|
+
import { useLicenseStatus } from "./useLicenseStatus.js";
|
|
6
6
|
|
|
7
7
|
import {
|
|
8
8
|
AuthController,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
PermissionsBuilder,
|
|
22
22
|
User,
|
|
23
23
|
UserConfigurationPersistence
|
|
24
|
-
} from "../types";
|
|
24
|
+
} from "../types/index.js";
|
|
25
25
|
import {
|
|
26
26
|
applyPermissionsFunctionIfEmpty,
|
|
27
27
|
collectionSegmentsFrom,
|
|
@@ -33,8 +33,8 @@ import {
|
|
|
33
33
|
resolveCollectionPathIds,
|
|
34
34
|
resolveCollectionPathSegments,
|
|
35
35
|
resolvePermissions
|
|
36
|
-
} from "../util";
|
|
37
|
-
import { getParentReferencesFromPath } from "../util/parent_references_from_path";
|
|
36
|
+
} from "../util/index.js";
|
|
37
|
+
import { getParentReferencesFromPath } from "../util/parent_references_from_path.js";
|
|
38
38
|
|
|
39
39
|
const DEFAULT_BASE_PATH = "/";
|
|
40
40
|
const DEFAULT_COLLECTION_PATH = "/c";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
|
-
import { CustomizationController } from "../types/customization_controller";
|
|
3
|
-
import { CustomizationControllerContext } from "../contexts/CustomizationControllerContext";
|
|
2
|
+
import { CustomizationController } from "../types/customization_controller.js";
|
|
3
|
+
import { CustomizationControllerContext } from "../contexts/CustomizationControllerContext.js";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Use this hook to retrieve the customization controller.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
|
-
import { DialogsController } from "../types/dialogs_controller";
|
|
3
|
-
import { DialogsControllerContext } from "../contexts/DialogsProvider";
|
|
2
|
+
import { DialogsController } from "../types/dialogs_controller.js";
|
|
3
|
+
import { DialogsControllerContext } from "../contexts/DialogsProvider.js";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Use this hook to open a dialog imperatively.
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { AuthController, FireCMSContext, User } from "../types";
|
|
2
|
-
import { useAuthController } from "./useAuthController";
|
|
3
|
-
import { useSideDialogsController } from "./useSideDialogsController";
|
|
4
|
-
import { useNavigationController } from "./useNavigationController";
|
|
5
|
-
import { useSideEntityController } from "./useSideEntityController";
|
|
6
|
-
import { useDataSource } from "./data/useDataSource";
|
|
7
|
-
import { useStorageSource } from "./useStorageSource";
|
|
8
|
-
import { useSnackbarController } from "./useSnackbarController";
|
|
9
|
-
import { useUserConfigurationPersistence } from "./useUserConfigurationPersistence";
|
|
10
|
-
import { useDialogsController } from "./useDialogsController";
|
|
11
|
-
import { useCustomizationController } from "./useCustomizationController";
|
|
12
|
-
import { useAnalyticsController } from "./useAnalyticsController";
|
|
1
|
+
import { AuthController, FireCMSContext, User } from "../types/index.js";
|
|
2
|
+
import { useAuthController } from "./useAuthController.js";
|
|
3
|
+
import { useSideDialogsController } from "./useSideDialogsController.js";
|
|
4
|
+
import { useNavigationController } from "./useNavigationController.js";
|
|
5
|
+
import { useSideEntityController } from "./useSideEntityController.js";
|
|
6
|
+
import { useDataSource } from "./data/useDataSource.js";
|
|
7
|
+
import { useStorageSource } from "./useStorageSource.js";
|
|
8
|
+
import { useSnackbarController } from "./useSnackbarController.js";
|
|
9
|
+
import { useUserConfigurationPersistence } from "./useUserConfigurationPersistence.js";
|
|
10
|
+
import { useDialogsController } from "./useDialogsController.js";
|
|
11
|
+
import { useCustomizationController } from "./useCustomizationController.js";
|
|
12
|
+
import { useAnalyticsController } from "./useAnalyticsController.js";
|
|
13
13
|
import React, { useEffect } from "react";
|
|
14
|
-
import { useInternalUserManagementController } from "./useInternalUserManagementController";
|
|
15
|
-
import { useLicenseStatus } from "./useLicenseStatus";
|
|
14
|
+
import { useInternalUserManagementController } from "./useInternalUserManagementController.js";
|
|
15
|
+
import { useLicenseStatus } from "./useLicenseStatus.js";
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Hook to retrieve the {@link FireCMSContext}.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
|
-
import { InternalUserManagement, NavigationController, User } from "../types";
|
|
3
|
-
import { NavigationContext } from "../contexts/NavigationContext";
|
|
4
|
-
import { InternalUserManagementContext } from "../contexts/InternalUserManagementContext";
|
|
2
|
+
import { InternalUserManagement, NavigationController, User } from "../types/index.js";
|
|
3
|
+
import { NavigationContext } from "../contexts/NavigationContext.js";
|
|
4
|
+
import { InternalUserManagementContext } from "../contexts/InternalUserManagementContext.js";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Use this hook to get the internal user management of the app.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useContext, useSyncExternalStore } from "react";
|
|
2
|
-
import { AccessResponse } from "../types";
|
|
2
|
+
import { AccessResponse } from "../types/index.js";
|
|
3
3
|
import {
|
|
4
4
|
getLicenseStatusSnapshot,
|
|
5
5
|
getServerLicenseStatusSnapshot,
|
|
6
6
|
LicenseStatusContext,
|
|
7
7
|
subscribeLicenseStatus
|
|
8
|
-
} from "../contexts/LicenseStatusContext";
|
|
8
|
+
} from "../contexts/LicenseStatusContext.js";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* The FireCMS license status of this project: whether PRO runs on a trial, is
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
|
-
import { NavigationController } from "../types";
|
|
3
|
-
import { NavigationContext } from "../contexts/NavigationContext";
|
|
2
|
+
import { NavigationController } from "../types/index.js";
|
|
3
|
+
import { NavigationContext } from "../contexts/NavigationContext.js";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Use this hook to get the navigation of the app.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect, useRef, useState } from "react";
|
|
2
|
-
import { AccessResponse, AuthController, DataSourceDelegate, FireCMSPlugin } from "../types";
|
|
3
|
-
import { PRO_PLUGIN_KEYS } from "../core/pro_plugins";
|
|
2
|
+
import { AccessResponse, AuthController, DataSourceDelegate, FireCMSPlugin } from "../types/index.js";
|
|
3
|
+
import { PRO_PLUGIN_KEYS } from "../core/pro_plugins.js";
|
|
4
4
|
|
|
5
5
|
export const DEFAULT_SERVER_DEV = "https://api-kdoe6pj3qq-ey.a.run.app";
|
|
6
6
|
export const DEFAULT_SERVER = "https://api.firecms.co";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { useSideDialogsController } from "./useSideDialogsController";
|
|
2
|
-
import { ReferenceSelectionInnerProps, ReferenceSelectionTable } from "../components";
|
|
1
|
+
import { useSideDialogsController } from "./useSideDialogsController.js";
|
|
2
|
+
import { ReferenceSelectionInnerProps, ReferenceSelectionTable } from "../components/index.js";
|
|
3
3
|
import { useCallback } from "react";
|
|
4
|
-
import { useNavigationController } from "./useNavigationController";
|
|
4
|
+
import { useNavigationController } from "./useNavigationController.js";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* This hook is used to open a side dialog that allows the selection
|
|
@@ -45,8 +45,8 @@ export function useReferenceDialog<M extends Record<string, any>>(referenceDialo
|
|
|
45
45
|
}, [navigation, referenceDialogProps, sideDialogsController]);
|
|
46
46
|
|
|
47
47
|
const close = useCallback(() => {
|
|
48
|
-
sideDialogsController.close();
|
|
49
|
-
}, [sideDialogsController]);
|
|
48
|
+
sideDialogsController.close(`reference_${referenceDialogProps.path}`);
|
|
49
|
+
}, [sideDialogsController, referenceDialogProps.path]);
|
|
50
50
|
|
|
51
51
|
return {
|
|
52
52
|
open,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Entity, EntityCollection, EntityCustomView, FireCMSContext, User } from "../types";
|
|
1
|
+
import { Entity, EntityCollection, EntityCustomView, FireCMSContext, User } from "../types/index.js";
|
|
2
2
|
import { useEffect, useState } from "react";
|
|
3
|
-
import { getNavigationEntriesFromPath } from "../util/navigation_from_path";
|
|
4
|
-
import { useFireCMSContext } from "./useFireCMSContext";
|
|
3
|
+
import { getNavigationEntriesFromPath } from "../util/navigation_from_path.js";
|
|
4
|
+
import { useFireCMSContext } from "./useFireCMSContext.js";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* @see resolveNavigationFrom
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SideDialogsController } from "../types";
|
|
2
|
-
import { SideDialogsControllerContext } from "../contexts/SideDialogsControllerContext";
|
|
1
|
+
import { SideDialogsController } from "../types/index.js";
|
|
2
|
+
import { SideDialogsControllerContext } from "../contexts/SideDialogsControllerContext.js";
|
|
3
3
|
import { useContext } from "react";
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SideEntityController } from "../types";
|
|
1
|
+
import { SideEntityController } from "../types/index.js";
|
|
2
2
|
import { useContext } from "react";
|
|
3
|
-
import { SideEntityControllerContext } from "../contexts/SideEntityControllerContext";
|
|
3
|
+
import { SideEntityControllerContext } from "../contexts/SideEntityControllerContext.js";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Use this hook to retrieve an entity controller that allows you to open
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EntityCollection, StorageSource } from "../types";
|
|
2
|
-
import { StorageSourceContext } from "../contexts/StorageSourceContext";
|
|
1
|
+
import { EntityCollection, StorageSource } from "../types/index.js";
|
|
2
|
+
import { StorageSourceContext } from "../contexts/StorageSourceContext.js";
|
|
3
3
|
import { useContext } from "react";
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { UserConfigurationPersistence } from "../types";
|
|
1
|
+
import { UserConfigurationPersistence } from "../types/index.js";
|
|
2
2
|
import { useContext } from "react";
|
|
3
|
-
import { UserConfigurationPersistenceContext } from "../contexts/UserConfigurationPersistenceContext";
|
|
3
|
+
import { UserConfigurationPersistenceContext } from "../contexts/UserConfigurationPersistenceContext.js";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Use this controller to access the configuration that is stored externally,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
2
2
|
import equal from "react-fast-compare";
|
|
3
3
|
|
|
4
|
-
import { AuthController, Authenticator, DataSourceDelegate, StorageSource, User } from "../index";
|
|
4
|
+
import { AuthController, Authenticator, DataSourceDelegate, StorageSource, User } from "../index.js";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* This hook is used internally for validating an authenticator.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { PropsWithChildren, useContext, useEffect, useMemo, useRef } from "react";
|
|
2
2
|
import i18next, { i18n } from "i18next";
|
|
3
3
|
import { I18nContext, I18nextProvider, initReactI18next } from "react-i18next";
|
|
4
|
-
import { en } from "../locales/en";
|
|
5
|
-
import { es } from "../locales/es";
|
|
6
|
-
import { FireCMSTranslations } from "../types/translations";
|
|
7
|
-
import { getLocalStorageItem, setLocalStorageItem } from "../util/local_storage";
|
|
4
|
+
import { en } from "../locales/en.js";
|
|
5
|
+
import { es } from "../locales/es.js";
|
|
6
|
+
import { FireCMSTranslations } from "../types/translations.js";
|
|
7
|
+
import { getLocalStorageItem, setLocalStorageItem } from "../util/local_storage.js";
|
|
8
8
|
|
|
9
9
|
const FIRECMS_NS = "firecms_core";
|
|
10
10
|
|
|
@@ -23,12 +23,12 @@ const FIRECMS_NS = "firecms_core";
|
|
|
23
23
|
* can see them and emit one chunk per locale.
|
|
24
24
|
*/
|
|
25
25
|
const localeLoaders: Record<string, () => Promise<FireCMSTranslations>> = {
|
|
26
|
-
de: () => import("../locales/de").then((m) => m.de),
|
|
27
|
-
fr: () => import("../locales/fr").then((m) => m.fr),
|
|
28
|
-
it: () => import("../locales/it").then((m) => m.it),
|
|
29
|
-
hi: () => import("../locales/hi").then((m) => m.hi),
|
|
30
|
-
pt: () => import("../locales/pt").then((m) => m.pt),
|
|
31
|
-
pl: () => import("../locales/pl").then((m) => m.pl)
|
|
26
|
+
de: () => import("../locales/de.js").then((m) => m.de),
|
|
27
|
+
fr: () => import("../locales/fr.js").then((m) => m.fr),
|
|
28
|
+
it: () => import("../locales/it.js").then((m) => m.it),
|
|
29
|
+
hi: () => import("../locales/hi.js").then((m) => m.hi),
|
|
30
|
+
pt: () => import("../locales/pt.js").then((m) => m.pt),
|
|
31
|
+
pl: () => import("../locales/pl.js").then((m) => m.pl)
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
/**
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import React from "react";
|
|
5
5
|
import { render, screen } from "@testing-library/react";
|
|
6
6
|
import { useTranslation } from "react-i18next";
|
|
7
|
-
import { FireCMSi18nProvider } from "../FireCMSi18nProvider";
|
|
7
|
+
import { FireCMSi18nProvider } from "../FireCMSi18nProvider.js";
|
|
8
8
|
|
|
9
9
|
/** Reads a key through the same channel application code uses. */
|
|
10
10
|
function Str({ k }: { k: string }) {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import React from "react";
|
|
5
5
|
import { render, screen } from "@testing-library/react";
|
|
6
6
|
import { useTranslation } from "react-i18next";
|
|
7
|
-
import { FireCMSi18nProvider } from "../FireCMSi18nProvider";
|
|
7
|
+
import { FireCMSi18nProvider } from "../FireCMSi18nProvider.js";
|
|
8
8
|
|
|
9
9
|
function Str({ k }: { k: string }) {
|
|
10
10
|
const { t } = useTranslation("firecms_core");
|
package/src/index.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export * from "./core";
|
|
2
|
-
export * from "./app";
|
|
3
|
-
export * from "./types";
|
|
4
|
-
export * from "./form";
|
|
5
|
-
export * from "./preview";
|
|
6
|
-
export * from "./hooks";
|
|
7
|
-
export * from "./components";
|
|
8
|
-
export * from "./util";
|
|
9
|
-
export * from "./contexts";
|
|
10
|
-
export * from "./i18n/FireCMSi18nProvider";
|
|
11
|
-
export * from "./locales/en";
|
|
12
|
-
export * from "./locales/es";
|
|
13
|
-
export * from "./editor";
|
|
14
|
-
export * from "./util/objects";
|
|
1
|
+
export * from "./core/index.js";
|
|
2
|
+
export * from "./app/index.js";
|
|
3
|
+
export * from "./types/index.js";
|
|
4
|
+
export * from "./form/index.js";
|
|
5
|
+
export * from "./preview/index.js";
|
|
6
|
+
export * from "./hooks/index.js";
|
|
7
|
+
export * from "./components/index.js";
|
|
8
|
+
export * from "./util/index.js";
|
|
9
|
+
export * from "./contexts/index.js";
|
|
10
|
+
export * from "./i18n/FireCMSi18nProvider.js";
|
|
11
|
+
export * from "./locales/en.js";
|
|
12
|
+
export * from "./locales/es.js";
|
|
13
|
+
export * from "./editor/index.js";
|
|
14
|
+
export * from "./util/objects.js";
|
|
@@ -17,8 +17,8 @@ import {
|
|
|
17
17
|
PropertyConfig,
|
|
18
18
|
ResolvedProperties,
|
|
19
19
|
SaveEntityProps
|
|
20
|
-
} from "../types";
|
|
21
|
-
import { resolveCollection, updateDateAutoValues } from "../util";
|
|
20
|
+
} from "../types/index.js";
|
|
21
|
+
import { resolveCollection, updateDateAutoValues } from "../util/index.js";
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* Use this hook to build a {@link DataSource} based on Firestore
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
2
2
|
import { useLocation, useNavigate } from "react-router-dom";
|
|
3
|
-
import { SideDialogPanelProps, SideDialogsController } from "../types";
|
|
3
|
+
import { SideDialogPanelProps, SideDialogsController } from "../types/index.js";
|
|
4
4
|
import equal from "react-fast-compare"
|
|
5
5
|
|
|
6
6
|
export function useBuildSideDialogsController(): SideDialogsController {
|
|
@@ -14,6 +14,9 @@ export function useBuildSideDialogsController(): SideDialogsController {
|
|
|
14
14
|
const routesStore = useRef<Record<string, SideDialogPanelProps>>({});
|
|
15
15
|
const routesCount = useRef<number>(0);
|
|
16
16
|
|
|
17
|
+
// The history entry each panel without a URL was opened on, by panel key.
|
|
18
|
+
const entryKeysOfPanelsWithoutUrl = useRef<Record<string, string>>({});
|
|
19
|
+
|
|
17
20
|
const updateSidePanels = (newPanels: SideDialogPanelProps[]) => {
|
|
18
21
|
sidePanelsRef.current = newPanels;
|
|
19
22
|
setSidePanels(newPanels);
|
|
@@ -22,20 +25,55 @@ export function useBuildSideDialogsController(): SideDialogsController {
|
|
|
22
25
|
useEffect(() => {
|
|
23
26
|
const state = location.state as any;
|
|
24
27
|
const panelKeys: string[] = state?.panels ?? [];
|
|
25
|
-
const
|
|
28
|
+
const panelsInHistory = panelKeys
|
|
26
29
|
.map(key => routesStore.current[key])
|
|
27
30
|
.filter(p => Boolean(p)) as SideDialogPanelProps[];
|
|
31
|
+
|
|
32
|
+
// A panel without a URL, like a reference dialog, pushes no history entry, so the
|
|
33
|
+
// entry under it does not list it, and going back to that entry, as closing a
|
|
34
|
+
// panel opened on top of it does, would drop it. It stays open for as long as
|
|
35
|
+
// what it was opened over does: the panel below it or, with none, the entry itself.
|
|
36
|
+
const keptPanels: SideDialogPanelProps[] = [];
|
|
37
|
+
let matched = 0;
|
|
38
|
+
for (const panel of sidePanelsRef.current) {
|
|
39
|
+
if (panelsInHistory[matched]?.key === panel.key) {
|
|
40
|
+
keptPanels.push(panel);
|
|
41
|
+
matched++;
|
|
42
|
+
} else if (!panel.urlPath &&
|
|
43
|
+
(keptPanels.length > 0 || entryKeysOfPanelsWithoutUrl.current[panel.key] === location.key)) {
|
|
44
|
+
keptPanels.push(panel);
|
|
45
|
+
} else {
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
const newPanels = [...keptPanels, ...panelsInHistory.slice(matched)];
|
|
50
|
+
|
|
28
51
|
if (!equal(sidePanelsRef.current.map(p => p.key), newPanels.map(p => p.key))) {
|
|
29
52
|
updateSidePanels(newPanels);
|
|
30
53
|
}
|
|
31
54
|
}, [location]);
|
|
32
55
|
|
|
33
|
-
const close = useCallback(() => {
|
|
56
|
+
const close = useCallback((key?: string) => {
|
|
34
57
|
|
|
35
58
|
const currentPanels = sidePanelsRef.current;
|
|
36
59
|
if (currentPanels.length === 0)
|
|
37
60
|
return;
|
|
38
61
|
|
|
62
|
+
// A panel can ask to close itself while another one is open on top of it: the
|
|
63
|
+
// reference dialog does when an entity created from it is saved. Closing the top
|
|
64
|
+
// one instead would close that entity, and then the entity's own close would take
|
|
65
|
+
// the panel under the dialog with it. Only a panel without a URL can be taken out
|
|
66
|
+
// of the middle, since it has no history entry of its own. Should two panels share
|
|
67
|
+
// a key (a reference dialog opened from an entity created in another one for the
|
|
68
|
+
// same collection), it is the upper one.
|
|
69
|
+
const index = key !== undefined ? currentPanels.findLastIndex(p => p.key === key) : -1;
|
|
70
|
+
if (index !== -1 && index < currentPanels.length - 1 && !currentPanels[index].urlPath) {
|
|
71
|
+
updateSidePanels(currentPanels.filter((_, i) => i !== index));
|
|
72
|
+
if (routesCount.current > 0)
|
|
73
|
+
routesCount.current--;
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
|
|
39
77
|
const lastSidePanel = currentPanels[currentPanels.length - 1];
|
|
40
78
|
const updatedPanels = [...currentPanels.slice(0, -1)];
|
|
41
79
|
updateSidePanels(updatedPanels);
|
|
@@ -65,6 +103,8 @@ export function useBuildSideDialogsController(): SideDialogsController {
|
|
|
65
103
|
|
|
66
104
|
newPanels.forEach((panel) => {
|
|
67
105
|
routesStore.current[panel.key] = panel;
|
|
106
|
+
if (!panel.urlPath)
|
|
107
|
+
entryKeysOfPanelsWithoutUrl.current[panel.key] = location.key;
|
|
68
108
|
});
|
|
69
109
|
routesCount.current = routesCount.current + newPanels.length;
|
|
70
110
|
|
|
@@ -95,6 +135,8 @@ export function useBuildSideDialogsController(): SideDialogsController {
|
|
|
95
135
|
const newPanels: SideDialogPanelProps[] = Array.isArray(panelProps) ? panelProps : [panelProps];
|
|
96
136
|
newPanels.forEach((panel) => {
|
|
97
137
|
routesStore.current[panel.key] = panel;
|
|
138
|
+
if (!panel.urlPath)
|
|
139
|
+
entryKeysOfPanelsWithoutUrl.current[panel.key] = location.key;
|
|
98
140
|
});
|
|
99
141
|
|
|
100
142
|
const baseLocation = (location.state as any)?.base_location ?? location;
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
SideDialogPanelProps,
|
|
10
10
|
SideDialogsController,
|
|
11
11
|
SideEntityController
|
|
12
|
-
} from "../types";
|
|
13
|
-
import { getNavigationEntriesFromPath, NavigationViewInternal } from "../util/navigation_from_path";
|
|
12
|
+
} from "../types/index.js";
|
|
13
|
+
import { getNavigationEntriesFromPath, NavigationViewInternal } from "../util/navigation_from_path.js";
|
|
14
14
|
import { useLocation } from "react-router-dom";
|
|
15
15
|
import {
|
|
16
16
|
encodeEntityId,
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
resolveCollection,
|
|
19
19
|
resolveDefaultSelectedView,
|
|
20
20
|
resolvedSelectedEntityView
|
|
21
|
-
} from "../util";
|
|
22
|
-
import { ADDITIONAL_TAB_WIDTH, CONTAINER_FULL_WIDTH, FORM_CONTAINER_WIDTH } from "./common";
|
|
23
|
-
import { useCustomizationController, useLargeLayout } from "../hooks";
|
|
24
|
-
import { JSON_TAB_VALUE } from "../core/EntityEditView";
|
|
21
|
+
} from "../util/index.js";
|
|
22
|
+
import { ADDITIONAL_TAB_WIDTH, CONTAINER_FULL_WIDTH, FORM_CONTAINER_WIDTH } from "./common.js";
|
|
23
|
+
import { useCustomizationController, useLargeLayout } from "../hooks/index.js";
|
|
24
|
+
import { JSON_TAB_VALUE } from "../core/EntityEditView.js";
|
|
25
25
|
|
|
26
26
|
const NEW_URL_HASH = "new_side";
|
|
27
27
|
const SIDE_URL_HASH = "side";
|