@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/core/SideDialogs.tsx
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { useContext, useEffect, useRef, useState } from "react";
|
|
2
|
-
import { useSideDialogsController } from "../hooks";
|
|
3
|
-
import { EntitySidePanelProps, SideDialogPanelProps } from "../types";
|
|
2
|
+
import { useSideDialogsController } from "../hooks/index.js";
|
|
3
|
+
import { EntitySidePanelProps, SideDialogPanelProps } from "../types/index.js";
|
|
4
4
|
import { Sheet } from "@firecms/ui";
|
|
5
|
-
import {
|
|
6
|
-
import { ErrorBoundary } from "../components";
|
|
7
|
-
import { UnsavedChangesDialog } from "../components/UnsavedChangesDialog";
|
|
8
|
-
import { EntitySidePanel } from "./EntitySidePanel";
|
|
5
|
+
import { useLeavePageConfirmation } from "../internal/useLeavePageConfirmation.js";
|
|
6
|
+
import { ErrorBoundary } from "../components/index.js";
|
|
7
|
+
import { UnsavedChangesDialog } from "../components/UnsavedChangesDialog.js";
|
|
8
|
+
import { EntitySidePanel } from "./EntitySidePanel.js";
|
|
9
9
|
|
|
10
10
|
export type SideDialogController = {
|
|
11
11
|
blocked: boolean,
|
|
@@ -123,14 +123,7 @@ function SideDialogView({
|
|
|
123
123
|
|
|
124
124
|
const sideDialogsController = useSideDialogsController();
|
|
125
125
|
|
|
126
|
-
|
|
127
|
-
navigationWasBlocked,
|
|
128
|
-
handleOk: handleNavigationOk,
|
|
129
|
-
handleCancel: handleNavigationCancel
|
|
130
|
-
} = useNavigationUnsavedChangesDialog(
|
|
131
|
-
blocked && !drawerCloseRequested,
|
|
132
|
-
() => setBlocked(false)
|
|
133
|
-
);
|
|
126
|
+
useLeavePageConfirmation(blocked && !drawerCloseRequested);
|
|
134
127
|
|
|
135
128
|
useEffect(() => {
|
|
136
129
|
if (panel)
|
|
@@ -140,7 +133,7 @@ function SideDialogView({
|
|
|
140
133
|
const handleDrawerCloseOk = () => {
|
|
141
134
|
setBlocked(false);
|
|
142
135
|
setDrawerCloseRequested(false);
|
|
143
|
-
sideDialogsController.close();
|
|
136
|
+
sideDialogsController.close(panel?.key);
|
|
144
137
|
panel?.onClose?.();
|
|
145
138
|
};
|
|
146
139
|
|
|
@@ -152,7 +145,7 @@ function SideDialogView({
|
|
|
152
145
|
if (blocked && !force) {
|
|
153
146
|
setDrawerCloseRequested(true);
|
|
154
147
|
} else {
|
|
155
|
-
sideDialogsController.close();
|
|
148
|
+
sideDialogsController.close(panel?.key);
|
|
156
149
|
panel?.onClose?.();
|
|
157
150
|
}
|
|
158
151
|
};
|
|
@@ -212,8 +205,8 @@ function SideDialogView({
|
|
|
212
205
|
|
|
213
206
|
<UnsavedChangesDialog
|
|
214
207
|
open={drawerCloseRequested}
|
|
215
|
-
handleOk={
|
|
216
|
-
handleCancel={
|
|
208
|
+
handleOk={handleDrawerCloseOk}
|
|
209
|
+
handleCancel={handleDrawerCloseCancel}
|
|
217
210
|
body={blockedNavigationMessage} />
|
|
218
211
|
|
|
219
212
|
</SideDialogContext.Provider>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
import { ArrayProperty, FieldProps, NumberProperty, Property, PropertyConfig, ResolvedProperty, StringProperty } from "../types";
|
|
3
|
+
import { ArrayProperty, FieldProps, NumberProperty, Property, PropertyConfig, ResolvedProperty, StringProperty } from "../types/index.js";
|
|
4
4
|
import {
|
|
5
5
|
ArrayCustomShapedFieldBinding,
|
|
6
6
|
ArrayOfReferencesFieldBinding,
|
|
@@ -16,12 +16,12 @@ import {
|
|
|
16
16
|
SelectFieldBinding,
|
|
17
17
|
SwitchFieldBinding,
|
|
18
18
|
TextFieldBinding
|
|
19
|
-
} from "../form";
|
|
20
|
-
import { lazyEager } from "../util/lazy_eager";
|
|
19
|
+
} from "../form/index.js";
|
|
20
|
+
import { lazyEager } from "../util/lazy_eager.js";
|
|
21
21
|
|
|
22
|
-
const MarkdownEditorFieldBinding = lazyEager<typeof import("../form/field_bindings/MarkdownEditorFieldBinding")["MarkdownEditorFieldBinding"]>(() => import("../form/field_bindings/MarkdownEditorFieldBinding"), "MarkdownEditorFieldBinding");
|
|
23
|
-
const StorageUploadFieldBinding = lazyEager<typeof import("../form/field_bindings/StorageUploadFieldBinding")["StorageUploadFieldBinding"]>(() => import("../form/field_bindings/StorageUploadFieldBinding"), "StorageUploadFieldBinding");
|
|
24
|
-
import { isPropertyBuilder, mergeDeep } from "../util";
|
|
22
|
+
const MarkdownEditorFieldBinding = lazyEager<typeof import("../form/field_bindings/MarkdownEditorFieldBinding.js")["MarkdownEditorFieldBinding"]>(() => import("../form/field_bindings/MarkdownEditorFieldBinding.js"), "MarkdownEditorFieldBinding");
|
|
23
|
+
const StorageUploadFieldBinding = lazyEager<typeof import("../form/field_bindings/StorageUploadFieldBinding.js")["StorageUploadFieldBinding"]>(() => import("../form/field_bindings/StorageUploadFieldBinding.js"), "StorageUploadFieldBinding");
|
|
24
|
+
import { isPropertyBuilder, mergeDeep } from "../util/index.js";
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
AddLinkIcon,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
VerifiedUserIcon,
|
|
46
46
|
ViewStreamIcon
|
|
47
47
|
} from "@firecms/ui";
|
|
48
|
-
import { UserSelectFieldBinding } from "../form/field_bindings/UserSelectFieldBinding";
|
|
48
|
+
import { UserSelectFieldBinding } from "../form/field_bindings/UserSelectFieldBinding.js";
|
|
49
49
|
|
|
50
50
|
export function isDefaultFieldConfigId(id: string) {
|
|
51
51
|
return Object.keys(DEFAULT_FIELD_CONFIGS).includes(id);
|
package/src/core/index.tsx
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export * from "./FireCMS";
|
|
2
|
-
export * from "./pro_plugins";
|
|
1
|
+
export * from "./FireCMS.js";
|
|
2
|
+
export * from "./pro_plugins.js";
|
|
3
3
|
|
|
4
|
-
export * from "./DefaultDrawer";
|
|
5
|
-
export * from "./DrawerNavigationItem";
|
|
6
|
-
export * from "./DrawerNavigationGroup";
|
|
4
|
+
export * from "./DefaultDrawer.js";
|
|
5
|
+
export * from "./DrawerNavigationItem.js";
|
|
6
|
+
export * from "./DrawerNavigationGroup.js";
|
|
7
7
|
|
|
8
|
-
export * from "./field_configs";
|
|
8
|
+
export * from "./field_configs.js";
|
|
9
9
|
|
|
10
|
-
export * from "./SideDialogs";
|
|
11
|
-
export * from "./NavigationRoutes";
|
|
10
|
+
export * from "./SideDialogs.js";
|
|
11
|
+
export * from "./NavigationRoutes.js";
|
|
12
12
|
|
|
13
|
-
export * from "./FireCMSRouter";
|
|
13
|
+
export * from "./FireCMSRouter.js";
|
|
14
14
|
|
|
15
|
-
export * from "../app";
|
|
15
|
+
export * from "../app/index.js";
|
package/src/core/pro_plugins.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useEffect, useRef, useState, ReactNode } from "react";
|
|
2
2
|
import { Fragment, DOMParser } from "prosemirror-model";
|
|
3
|
-
import { useProseMirrorContext } from "../hooks/useProseMirrorContext";
|
|
3
|
+
import { useProseMirrorContext } from "../hooks/useProseMirrorContext.js";
|
|
4
4
|
import { autoUpdate, computePosition, flip, offset, shift } from "@floating-ui/dom";
|
|
5
|
-
import { SlashCommandPluginKey } from "../plugins/slashCommandPlugin";
|
|
5
|
+
import { SlashCommandPluginKey } from "../plugins/slashCommandPlugin.js";
|
|
6
6
|
import {
|
|
7
7
|
cls,
|
|
8
8
|
defaultBorderMixin,
|
|
@@ -21,13 +21,13 @@ import {
|
|
|
21
21
|
} from "@firecms/ui";
|
|
22
22
|
import { setBlockType, wrapIn } from "prosemirror-commands";
|
|
23
23
|
import { wrapInList } from "prosemirror-schema-list";
|
|
24
|
-
import { schema } from "../schema";
|
|
24
|
+
import { schema } from "../schema.js";
|
|
25
25
|
import { EditorView } from "prosemirror-view";
|
|
26
26
|
import { TextSelection } from "prosemirror-state";
|
|
27
|
-
import { EditorAIController } from "../types";
|
|
28
|
-
import { onFileRead, UploadFn } from "../extensions/Image";
|
|
29
|
-
import { textLoadingCommands } from "../extensions/TextLoadingDecorationExtension";
|
|
30
|
-
import { parser } from "../markdown";
|
|
27
|
+
import { EditorAIController } from "../types.js";
|
|
28
|
+
import { onFileRead, UploadFn } from "../extensions/Image.js";
|
|
29
|
+
import { textLoadingCommands } from "../extensions/TextLoadingDecorationExtension.js";
|
|
30
|
+
import { parser } from "../markdown.js";
|
|
31
31
|
|
|
32
32
|
interface SuggestionItem {
|
|
33
33
|
title: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ComponentPropsWithoutRef, type ReactNode, forwardRef } from "react";
|
|
2
2
|
import { Slot } from "@radix-ui/react-slot";
|
|
3
|
-
import { useProseMirrorContext } from "../hooks/useProseMirrorContext";
|
|
3
|
+
import { useProseMirrorContext } from "../hooks/useProseMirrorContext.js";
|
|
4
4
|
|
|
5
5
|
interface EditorBubbleItemProps {
|
|
6
6
|
children: ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { forwardRef, type ReactNode, useEffect, useRef, useState } from "react";
|
|
2
|
-
import { useProseMirrorContext } from "../hooks/useProseMirrorContext";
|
|
2
|
+
import { useProseMirrorContext } from "../hooks/useProseMirrorContext.js";
|
|
3
3
|
import { autoUpdate, computePosition, flip, offset, shift } from "@floating-ui/dom";
|
|
4
4
|
import { NodeSelection } from "prosemirror-state";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { forwardRef, useEffect, useRef, useState } from "react";
|
|
2
|
-
import { useProseMirrorContext } from "../hooks/useProseMirrorContext";
|
|
2
|
+
import { useProseMirrorContext } from "../hooks/useProseMirrorContext.js";
|
|
3
3
|
import { autoUpdate, computePosition, flip, offset, shift } from "@floating-ui/dom";
|
|
4
4
|
import { NodeSelection } from "prosemirror-state";
|
|
5
5
|
import { TextField, defaultBorderMixin, Typography, cls } from "@firecms/ui";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { EditorBubble } from "./editor-bubble";
|
|
2
|
-
export { EditorBubbleItem } from "./editor-bubble-item";
|
|
3
|
-
export { SlashCommandMenu } from "./SlashCommandMenu";
|
|
4
|
-
export { ImageBubble } from "./image-bubble";
|
|
5
|
-
export { TableBubble } from "./table-bubble";
|
|
1
|
+
export { EditorBubble } from "./editor-bubble.js";
|
|
2
|
+
export { EditorBubbleItem } from "./editor-bubble-item.js";
|
|
3
|
+
export { SlashCommandMenu } from "./SlashCommandMenu.js";
|
|
4
|
+
export { ImageBubble } from "./image-bubble.js";
|
|
5
|
+
export { TableBubble } from "./table-bubble.js";
|
|
6
6
|
|
|
7
7
|
export type JSONContent = {
|
|
8
8
|
type?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { forwardRef, useEffect, useRef, useState } from "react";
|
|
2
|
-
import { useProseMirrorContext } from "../hooks/useProseMirrorContext";
|
|
2
|
+
import { useProseMirrorContext } from "../hooks/useProseMirrorContext.js";
|
|
3
3
|
import { autoUpdate, computePosition, flip, offset, shift } from "@floating-ui/dom";
|
|
4
4
|
import { IconButton, Tooltip, defaultBorderMixin, cls } from "@firecms/ui";
|
|
5
5
|
import {
|
package/src/editor/editor.tsx
CHANGED
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import React, { useEffect, useState, useRef } from "react";
|
|
3
3
|
import { EditorState } from "prosemirror-state";
|
|
4
4
|
import { cls, defaultBorderMixin, Separator, useInjectStyles, TextareaAutosize } from "@firecms/ui";
|
|
5
|
-
import { useTranslation } from "../hooks/useTranslation";
|
|
6
|
-
import { EditorBubble, ImageBubble, SlashCommandMenu, TableBubble, type JSONContent } from "./components";
|
|
7
|
-
import { NodeSelector } from "./selectors/node-selector";
|
|
8
|
-
import { LinkSelector } from "./selectors/link-selector";
|
|
9
|
-
import { TextButtons } from "./selectors/text-buttons";
|
|
10
|
-
import { removeClassesFromJson } from "./utils/remove_classes";
|
|
11
|
-
import { parser, serializer } from "./markdown";
|
|
12
|
-
import { EditorAIController } from "./types";
|
|
13
|
-
import { useProseMirror } from "./hooks/useProseMirror";
|
|
14
|
-
import { ProseMirrorContext } from "./hooks/useProseMirrorContext";
|
|
15
|
-
import { highlightCommands } from "./extensions/HighlightDecorationExtension";
|
|
16
|
-
import { schema } from "./schema";
|
|
5
|
+
import { useTranslation } from "../hooks/useTranslation.js";
|
|
6
|
+
import { EditorBubble, ImageBubble, SlashCommandMenu, TableBubble, type JSONContent } from "./components/index.js";
|
|
7
|
+
import { NodeSelector } from "./selectors/node-selector.js";
|
|
8
|
+
import { LinkSelector } from "./selectors/link-selector.js";
|
|
9
|
+
import { TextButtons } from "./selectors/text-buttons.js";
|
|
10
|
+
import { removeClassesFromJson } from "./utils/remove_classes.js";
|
|
11
|
+
import { parser, serializer } from "./markdown.js";
|
|
12
|
+
import { EditorAIController } from "./types.js";
|
|
13
|
+
import { useProseMirror } from "./hooks/useProseMirror.js";
|
|
14
|
+
import { ProseMirrorContext } from "./hooks/useProseMirrorContext.js";
|
|
15
|
+
import { highlightCommands } from "./extensions/HighlightDecorationExtension.js";
|
|
16
|
+
import { schema } from "./schema.js";
|
|
17
17
|
|
|
18
18
|
export type CustomEditorComponent = {
|
|
19
19
|
name: string,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Decoration, DecorationSet, EditorView } from "prosemirror-view";
|
|
2
2
|
import { Plugin, PluginKey } from "prosemirror-state";
|
|
3
|
-
import { schema } from "../../schema";
|
|
3
|
+
import { schema } from "../../schema.js";
|
|
4
4
|
|
|
5
5
|
export type UploadFn = (image: File) => Promise<string>;
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NodeSelection, Plugin } from "prosemirror-state";
|
|
2
2
|
import { EditorView } from "prosemirror-view";
|
|
3
3
|
import { Slice } from "prosemirror-model";
|
|
4
|
-
import { serializeForClipboard } from "./clipboard";
|
|
4
|
+
import { serializeForClipboard } from "./clipboard.js";
|
|
5
5
|
|
|
6
6
|
export interface DragHandleOptions {
|
|
7
7
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useState, useEffect, useRef, useLayoutEffect } from "react";
|
|
2
2
|
import { EditorState, Transaction, Plugin } from "prosemirror-state";
|
|
3
3
|
import { EditorView } from "prosemirror-view";
|
|
4
|
-
import { schema } from "../schema";
|
|
5
|
-
import { corePlugins } from "../plugins";
|
|
6
|
-
import { parser } from "../markdown";
|
|
7
|
-
import { nodeViews } from "../nodeViews";
|
|
8
|
-
import { createDropImagePlugin } from "../extensions/Image";
|
|
4
|
+
import { schema } from "../schema.js";
|
|
5
|
+
import { corePlugins } from "../plugins/index.js";
|
|
6
|
+
import { parser } from "../markdown.js";
|
|
7
|
+
import { nodeViews } from "../nodeViews/index.js";
|
|
8
|
+
import { createDropImagePlugin } from "../extensions/Image.js";
|
|
9
9
|
import { columnResizing, tableEditing } from "prosemirror-tables";
|
|
10
10
|
|
|
11
11
|
const trailingNodePlugin = new Plugin({
|
package/src/editor/index.ts
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
// a static re-export here would pull ProseMirror into every consumer of
|
|
3
3
|
// `@firecms/core`. The types come straight from the implementation and are
|
|
4
4
|
// erased at build time, so they cost nothing.
|
|
5
|
-
export { FireCMSEditor } from "./lazy_editor";
|
|
5
|
+
export { FireCMSEditor } from "./lazy_editor.js";
|
|
6
6
|
export type {
|
|
7
7
|
CustomEditorComponent,
|
|
8
8
|
MarkdownEditorConfig,
|
|
9
9
|
FireCMSEditorTextSize,
|
|
10
10
|
FireCMSEditorProps
|
|
11
|
-
} from "./editor";
|
|
12
|
-
export * from "./types";
|
|
11
|
+
} from "./editor.js";
|
|
12
|
+
export * from "./types.js";
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
|
|
5
|
-
import { CircularProgressCenter } from "../components/CircularProgressCenter";
|
|
6
|
-
import type { FireCMSEditorProps } from "./editor";
|
|
5
|
+
import { CircularProgressCenter } from "../components/CircularProgressCenter.js";
|
|
6
|
+
import type { FireCMSEditorProps } from "./editor.js";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* `FireCMSEditor`, loaded on demand.
|
|
@@ -20,7 +20,7 @@ import type { FireCMSEditorProps } from "./editor";
|
|
|
20
20
|
* a consumer rendering it without a boundary of their own still works.
|
|
21
21
|
*/
|
|
22
22
|
const LazyFireCMSEditor = React.lazy(() =>
|
|
23
|
-
import("./editor").then((module) => ({ default: module.FireCMSEditor })));
|
|
23
|
+
import("./editor.js").then((module) => ({ default: module.FireCMSEditor })));
|
|
24
24
|
|
|
25
25
|
export function FireCMSEditor(props: FireCMSEditorProps) {
|
|
26
26
|
return (
|
package/src/editor/markdown.ts
CHANGED
|
@@ -12,7 +12,7 @@ import markdownItMark from "markdown-it-mark";
|
|
|
12
12
|
// @ts-ignore
|
|
13
13
|
import markdownItIns from "markdown-it-ins";
|
|
14
14
|
|
|
15
|
-
import { schema } from "./schema";
|
|
15
|
+
import { schema } from "./schema.js";
|
|
16
16
|
|
|
17
17
|
const parserTokens: any = {
|
|
18
18
|
...defaultMarkdownParser.tokens,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { ReactNodeViewProps } from "./ReactNodeView";
|
|
2
|
+
import { ReactNodeViewProps } from "./ReactNodeView.js";
|
|
3
3
|
import { cls, defaultBorderMixin } from "@firecms/ui";
|
|
4
4
|
|
|
5
5
|
export const ImageComponent: React.FC<ReactNodeViewProps> = ({ node, view, getPos }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { ReactNodeViewProps } from "./ReactNodeView";
|
|
2
|
+
import { ReactNodeViewProps } from "./ReactNodeView.js";
|
|
3
3
|
|
|
4
4
|
export const TaskItemComponent: React.FC<ReactNodeViewProps> = ({ node, view, getPos }) => {
|
|
5
5
|
const checked = node.attrs.checked;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Node as ProseMirrorNode } from "prosemirror-model";
|
|
2
2
|
import { EditorView, NodeView } from "prosemirror-view";
|
|
3
|
-
import { ReactNodeView, ReactNodeViewComponent } from "./ReactNodeView";
|
|
4
|
-
import { TaskItemComponent } from "./TaskItemComponent";
|
|
5
|
-
import { ImageComponent } from "./ImageComponent";
|
|
3
|
+
import { ReactNodeView, ReactNodeViewComponent } from "./ReactNodeView.js";
|
|
4
|
+
import { TaskItemComponent } from "./TaskItemComponent.js";
|
|
5
|
+
import { ImageComponent } from "./ImageComponent.js";
|
|
6
6
|
|
|
7
7
|
function createReactNodeView(
|
|
8
8
|
Component: ReactNodeViewComponent,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { keymap } from "prosemirror-keymap";
|
|
2
2
|
import { history, undo, redo } from "prosemirror-history";
|
|
3
|
-
import { slashCommandPlugin } from "./slashCommandPlugin";
|
|
4
|
-
import { dragHandlePlugin, globalDragDropPlugin } from "../extensions/drag-and-drop";
|
|
3
|
+
import { slashCommandPlugin } from "./slashCommandPlugin.js";
|
|
4
|
+
import { dragHandlePlugin, globalDragDropPlugin } from "../extensions/drag-and-drop.js";
|
|
5
5
|
import { baseKeymap, setBlockType, toggleMark, chainCommands, exitCode, joinUp, joinDown, lift, selectParentNode } from "prosemirror-commands";
|
|
6
|
-
import { highlightDecorationPlugin } from "../extensions/HighlightDecorationExtension";
|
|
7
|
-
import { textLoadingDecorationPlugin } from "../extensions/TextLoadingDecorationExtension";
|
|
6
|
+
import { highlightDecorationPlugin } from "../extensions/HighlightDecorationExtension.js";
|
|
7
|
+
import { textLoadingDecorationPlugin } from "../extensions/TextLoadingDecorationExtension.js";
|
|
8
8
|
import { splitListItem, liftListItem, sinkListItem } from "prosemirror-schema-list";
|
|
9
|
-
import { schema } from "../schema";
|
|
9
|
+
import { schema } from "../schema.js";
|
|
10
10
|
import { Plugin } from "prosemirror-state";
|
|
11
11
|
import { gapCursor } from "prosemirror-gapcursor";
|
|
12
12
|
import { dropCursor } from "prosemirror-dropcursor";
|
|
13
|
-
import { markdownInputRules } from "./inputrules";
|
|
14
|
-
import { placeholderPlugin } from "./placeholderPlugin";
|
|
13
|
+
import { markdownInputRules } from "./inputrules.js";
|
|
14
|
+
import { placeholderPlugin } from "./placeholderPlugin.js";
|
|
15
15
|
import { goToNextCell } from "prosemirror-tables";
|
|
16
16
|
|
|
17
17
|
const customKeymap = {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
ellipsis,
|
|
8
8
|
InputRule,
|
|
9
9
|
} from "prosemirror-inputrules";
|
|
10
|
-
import { schema } from "../schema";
|
|
10
|
+
import { schema } from "../schema.js";
|
|
11
11
|
import { MarkType } from "prosemirror-model";
|
|
12
12
|
|
|
13
13
|
const blockQuoteRule = wrappingInputRule(/^\s*>\s$/, schema.nodes.blockquote);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Dispatch, SetStateAction } from "react";
|
|
2
|
-
import { EditorBubbleItem } from "../components";
|
|
2
|
+
import { EditorBubbleItem } from "../components/index.js";
|
|
3
3
|
import { Button, CheckIcon, KeyboardArrowDownIcon, Popover } from "@firecms/ui";
|
|
4
|
-
import { useProseMirrorContext } from "../hooks/useProseMirrorContext";
|
|
5
|
-
import { isMarkActive, getMarkAttributes, setMark, unsetMark } from "../utils/prosemirror-utils";
|
|
6
|
-
import { schema } from "../schema";
|
|
4
|
+
import { useProseMirrorContext } from "../hooks/useProseMirrorContext.js";
|
|
5
|
+
import { isMarkActive, getMarkAttributes, setMark, unsetMark } from "../utils/prosemirror-utils.js";
|
|
6
|
+
import { schema } from "../schema.js";
|
|
7
7
|
|
|
8
8
|
export interface BubbleColorMenuItem {
|
|
9
9
|
name: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useEffect, useRef, useState} from "react";
|
|
2
2
|
import { Button, CheckIcon, cls, DeleteIcon, focusedDisabled, Popover, Typography } from "@firecms/ui";
|
|
3
|
-
import { useTranslation } from "../../hooks/useTranslation";
|
|
4
|
-
import { useProseMirrorContext } from "../hooks/useProseMirrorContext";
|
|
5
|
-
import { getMarkAttributes, isMarkActive, setMark, unsetMark } from "../utils/prosemirror-utils";
|
|
6
|
-
import { schema } from "../schema";
|
|
3
|
+
import { useTranslation } from "../../hooks/useTranslation.js";
|
|
4
|
+
import { useProseMirrorContext } from "../hooks/useProseMirrorContext.js";
|
|
5
|
+
import { getMarkAttributes, isMarkActive, setMark, unsetMark } from "../utils/prosemirror-utils.js";
|
|
6
|
+
import { schema } from "../schema.js";
|
|
7
7
|
|
|
8
8
|
export function isValidUrl(url: string) {
|
|
9
9
|
try {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EditorState, Transaction } from "prosemirror-state";
|
|
2
|
-
import { EditorBubbleItem } from "../components";
|
|
3
|
-
import { useTranslation } from "../../hooks/useTranslation";
|
|
2
|
+
import { EditorBubbleItem } from "../components/index.js";
|
|
3
|
+
import { useTranslation } from "../../hooks/useTranslation.js";
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
Button,
|
|
@@ -17,9 +17,9 @@ import {
|
|
|
17
17
|
Popover,
|
|
18
18
|
TextFieldsIcon
|
|
19
19
|
} from "@firecms/ui";
|
|
20
|
-
import { useProseMirrorContext } from "../hooks/useProseMirrorContext";
|
|
21
|
-
import { isNodeActive } from "../utils/prosemirror-utils";
|
|
22
|
-
import { schema } from "../schema";
|
|
20
|
+
import { useProseMirrorContext } from "../hooks/useProseMirrorContext.js";
|
|
21
|
+
import { isNodeActive } from "../utils/prosemirror-utils.js";
|
|
22
|
+
import { schema } from "../schema.js";
|
|
23
23
|
import { setBlockType, wrapIn } from "prosemirror-commands";
|
|
24
24
|
import { wrapInList } from "prosemirror-schema-list";
|
|
25
25
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EditorState, Transaction } from "prosemirror-state";
|
|
2
|
-
import { EditorBubbleItem } from "../components";
|
|
3
|
-
import type { SelectorItem } from "./node-selector";
|
|
2
|
+
import { EditorBubbleItem } from "../components/index.js";
|
|
3
|
+
import type { SelectorItem } from "./node-selector.js";
|
|
4
4
|
import {
|
|
5
5
|
Button,
|
|
6
6
|
cls,
|
|
@@ -10,9 +10,9 @@ import {
|
|
|
10
10
|
FormatStrikethroughIcon,
|
|
11
11
|
FormatUnderlinedIcon
|
|
12
12
|
} from "@firecms/ui";
|
|
13
|
-
import { useProseMirrorContext } from "../hooks/useProseMirrorContext";
|
|
14
|
-
import { isMarkActive } from "../utils/prosemirror-utils";
|
|
15
|
-
import { schema } from "../schema";
|
|
13
|
+
import { useProseMirrorContext } from "../hooks/useProseMirrorContext.js";
|
|
14
|
+
import { isMarkActive } from "../utils/prosemirror-utils.js";
|
|
15
|
+
import { schema } from "../schema.js";
|
|
16
16
|
import { toggleMark } from "prosemirror-commands";
|
|
17
17
|
|
|
18
18
|
export const TextButtons = () => {
|
package/src/editor/types.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useEffect, useRef, useState } from "react";
|
|
2
2
|
import { EditorState, Transaction, Plugin } from "prosemirror-state";
|
|
3
3
|
import { EditorView } from "prosemirror-view";
|
|
4
|
-
import { schema } from "./schema";
|
|
5
|
-
import { markdownParser, markdownSerializer } from "./markdown";
|
|
6
|
-
import { removeClassesFromJson } from "./utils/remove_classes";
|
|
4
|
+
import { schema } from "./schema.js";
|
|
5
|
+
import { markdownParser, markdownSerializer } from "./markdown.js";
|
|
6
|
+
import { removeClassesFromJson } from "./utils/remove_classes.js";
|
|
7
7
|
import { DOMParser as ProseMirrorDOMParser, DOMSerializer } from "prosemirror-model";
|
|
8
8
|
|
|
9
9
|
export interface UseProseMirrorOptions {
|
package/src/form/EntityForm.tsx
CHANGED
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
PropertyConfig,
|
|
13
13
|
PropertyFieldBindingProps,
|
|
14
14
|
ResolvedEntityCollection
|
|
15
|
-
} from "../types";
|
|
15
|
+
} from "../types/index.js";
|
|
16
16
|
import equal from "react-fast-compare";
|
|
17
17
|
|
|
18
|
-
import { ErrorBoundary, getFormFieldKeys } from "../components";
|
|
18
|
+
import { ErrorBoundary, getFormFieldKeys } from "../components/index.js";
|
|
19
19
|
import {
|
|
20
20
|
getDefaultValuesFor,
|
|
21
21
|
getEntityTitlePropertyKey,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
mergeDeep,
|
|
28
28
|
resolveCollection,
|
|
29
29
|
useDebouncedCallback
|
|
30
|
-
} from "../util";
|
|
30
|
+
} from "../util/index.js";
|
|
31
31
|
|
|
32
32
|
import {
|
|
33
33
|
saveEntityWithCallbacks,
|
|
@@ -38,14 +38,14 @@ import {
|
|
|
38
38
|
useNavigationController,
|
|
39
39
|
useSideEntityController,
|
|
40
40
|
useSnackbarController
|
|
41
|
-
} from "../hooks";
|
|
41
|
+
} from "../hooks/index.js";
|
|
42
42
|
import { Alert, CheckIcon, Chip, cls, EditIcon, NotesIcon, paperMixin, Tooltip, Typography } from "@firecms/ui";
|
|
43
43
|
import { Formex, FormexController, getIn, setIn, useCreateFormex,
|
|
44
44
|
useFormex
|
|
45
45
|
} from "@firecms/formex";
|
|
46
|
-
import { useTranslation } from "../hooks";
|
|
47
|
-
import { useAnalyticsController } from "../hooks/useAnalyticsController";
|
|
48
|
-
import { FormEntry, FormLayout, LabelWithIconAndTooltip, PropertyFieldBinding } from "../form";
|
|
46
|
+
import { useTranslation } from "../hooks/index.js";
|
|
47
|
+
import { useAnalyticsController } from "../hooks/useAnalyticsController.js";
|
|
48
|
+
import { FormEntry, FormLayout, LabelWithIconAndTooltip, PropertyFieldBinding } from "../form/index.js";
|
|
49
49
|
import { ValidationError } from "yup";
|
|
50
50
|
import {
|
|
51
51
|
entityCacheKey,
|
|
@@ -54,12 +54,12 @@ import {
|
|
|
54
54
|
removeEntityFromCache,
|
|
55
55
|
removeEntityFromMemoryCache,
|
|
56
56
|
saveEntityToCache
|
|
57
|
-
} from "../util/entity_cache";
|
|
58
|
-
import { CustomIdField } from "./components/CustomIdField";
|
|
59
|
-
import { ErrorFocus } from "./components/ErrorFocus";
|
|
60
|
-
import { CustomFieldValidator, getYupEntitySchema } from "./validation";
|
|
61
|
-
import { EntityFormActions, EntityFormActionsProps } from "./EntityFormActions";
|
|
62
|
-
import { LocalChangesMenu } from "./components/LocalChangesMenu";
|
|
57
|
+
} from "../util/entity_cache.js";
|
|
58
|
+
import { CustomIdField } from "./components/CustomIdField.js";
|
|
59
|
+
import { ErrorFocus } from "./components/ErrorFocus.js";
|
|
60
|
+
import { CustomFieldValidator, getYupEntitySchema } from "./validation.js";
|
|
61
|
+
import { EntityFormActions, EntityFormActionsProps } from "./EntityFormActions.js";
|
|
62
|
+
import { LocalChangesMenu } from "./components/LocalChangesMenu.js";
|
|
63
63
|
|
|
64
64
|
export type OnUpdateParams = {
|
|
65
65
|
entity: Entity<any>,
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
FormContext,
|
|
7
7
|
ResolvedEntityCollection,
|
|
8
8
|
SideEntityController
|
|
9
|
-
} from "../types";
|
|
9
|
+
} from "../types/index.js";
|
|
10
10
|
import {
|
|
11
11
|
Button,
|
|
12
12
|
cls,
|
|
@@ -18,8 +18,8 @@ import {
|
|
|
18
18
|
Typography
|
|
19
19
|
} from "@firecms/ui";
|
|
20
20
|
import { FormexController } from "@firecms/formex";
|
|
21
|
-
import { useFireCMSContext, useSideEntityController } from "../hooks";
|
|
22
|
-
import { useTranslation } from "../hooks/useTranslation";
|
|
21
|
+
import { useFireCMSContext, useSideEntityController } from "../hooks/index.js";
|
|
22
|
+
import { useTranslation } from "../hooks/useTranslation.js";
|
|
23
23
|
|
|
24
24
|
export interface EntityFormActionsProps {
|
|
25
25
|
fullPath: string;
|
|
@@ -13,14 +13,14 @@ import {
|
|
|
13
13
|
PropertyOrBuilder,
|
|
14
14
|
ResolvedEntityCollection,
|
|
15
15
|
ResolvedProperty
|
|
16
|
-
} from "../types";
|
|
17
|
-
import { ReadOnlyFieldBinding } from "./field_bindings/ReadOnlyFieldBinding";
|
|
16
|
+
} from "../types/index.js";
|
|
17
|
+
import { ReadOnlyFieldBinding } from "./field_bindings/ReadOnlyFieldBinding.js";
|
|
18
18
|
|
|
19
|
-
import { isHidden, isPropertyBuilder, isReadOnly, resolveProperty } from "../util";
|
|
20
|
-
import { useAuthController, useCustomizationController, useTranslation } from "../hooks";
|
|
19
|
+
import { isHidden, isPropertyBuilder, isReadOnly, resolveProperty } from "../util/index.js";
|
|
20
|
+
import { useAuthController, useCustomizationController, useTranslation } from "../hooks/index.js";
|
|
21
21
|
import { Typography } from "@firecms/ui";
|
|
22
|
-
import { getFieldConfig, getFieldId } from "../core";
|
|
23
|
-
import { ErrorBoundary, CircularProgressCenter } from "../components";
|
|
22
|
+
import { getFieldConfig, getFieldId } from "../core/index.js";
|
|
23
|
+
import { ErrorBoundary, CircularProgressCenter } from "../components/index.js";
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* This component renders a form field creating the corresponding configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { useMemo } from "react";
|
|
2
2
|
|
|
3
3
|
// import { ErrorMessage } from "@firecms/formex";
|
|
4
|
-
import { Entity, EntityStatus, EnumValueConfig, EnumValues } from "../../types";
|
|
4
|
+
import { Entity, EntityStatus, EnumValueConfig, EnumValues } from "../../types/index.js";
|
|
5
5
|
|
|
6
|
-
import { useClipboard, useSnackbarController } from "../../hooks";
|
|
7
|
-
import { enumToObjectEntries } from "../../util";
|
|
6
|
+
import { useClipboard, useSnackbarController } from "../../hooks/index.js";
|
|
7
|
+
import { enumToObjectEntries } from "../../util/index.js";
|
|
8
8
|
import {
|
|
9
9
|
CircularProgress,
|
|
10
10
|
ContentCopyIcon,
|
|
@@ -16,9 +16,9 @@ import {
|
|
|
16
16
|
Tooltip,
|
|
17
17
|
Typography
|
|
18
18
|
} from "@firecms/ui";
|
|
19
|
-
import { EnumValuesChip } from "../../preview";
|
|
20
|
-
import { useCustomizationController } from "../../hooks/useCustomizationController";
|
|
21
|
-
import { CustomizationController } from "../../types/customization_controller";
|
|
19
|
+
import { EnumValuesChip } from "../../preview/index.js";
|
|
20
|
+
import { useCustomizationController } from "../../hooks/useCustomizationController.js";
|
|
21
|
+
import { CustomizationController } from "../../types/customization_controller.js";
|
|
22
22
|
import { useFormex } from "@firecms/formex";
|
|
23
23
|
|
|
24
24
|
export function CustomIdField<M extends Record<string, any>>({
|