@firecms/core 3.0.0-beta.2 → 3.0.0-beta.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/components/EntityCollectionTable/EntityCollectionRowActions.d.ts +2 -6
- package/dist/components/ReferenceWidget.d.ts +3 -3
- package/dist/components/index.d.ts +0 -1
- package/dist/core/SideEntityView.d.ts +7 -0
- package/dist/core/index.d.ts +0 -2
- package/dist/form/components/index.d.ts +1 -0
- package/dist/form/index.d.ts +1 -0
- package/dist/hooks/index.d.ts +2 -1
- package/dist/{core → hooks}/useBuildModeController.d.ts +1 -1
- package/dist/hooks/useBuildNavigationController.d.ts +1 -1
- package/dist/index.es.js +2682 -2663
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +5 -5
- package/dist/index.umd.js.map +1 -1
- package/dist/internal/useBuildDataSource.d.ts +4 -0
- package/dist/types/entities.d.ts +1 -0
- package/dist/util/index.d.ts +1 -0
- package/package.json +12 -4
- package/src/components/EntityCollectionTable/EntityCollectionRowActions.tsx +33 -37
- package/src/components/EntityCollectionTable/EntityCollectionTable.tsx +36 -38
- package/src/components/EntityCollectionTable/PropertyTableCell.tsx +2 -1
- package/src/components/EntityCollectionTable/fields/TableReferenceField.tsx +1 -1
- package/src/components/EntityCollectionView/EntityCollectionView.tsx +9 -9
- package/src/components/ReferenceWidget.tsx +4 -4
- package/src/components/SelectableTable/filters/ReferenceFilterField.tsx +2 -2
- package/src/components/index.tsx +0 -1
- package/src/core/EntitySidePanel.tsx +1 -1
- package/src/{internal → core}/EntityView.tsx +2 -2
- package/src/core/SideEntityView.tsx +38 -0
- package/src/core/index.tsx +0 -2
- package/src/form/components/index.tsx +1 -0
- package/src/form/field_bindings/ArrayCustomShapedFieldBinding.tsx +2 -3
- package/src/form/field_bindings/ArrayOfReferencesFieldBinding.tsx +4 -3
- package/src/form/field_bindings/BlockFieldBinding.tsx +2 -3
- package/src/form/field_bindings/DateTimeFieldBinding.tsx +3 -3
- package/src/form/field_bindings/KeyValueFieldBinding.tsx +4 -4
- package/src/form/field_bindings/MapFieldBinding.tsx +2 -2
- package/src/form/field_bindings/MarkdownFieldBinding.tsx +1 -2
- package/src/form/field_bindings/MultiSelectBinding.tsx +2 -3
- package/src/form/field_bindings/ReadOnlyFieldBinding.tsx +2 -2
- package/src/form/field_bindings/ReferenceFieldBinding.tsx +5 -4
- package/src/form/field_bindings/RepeatFieldBinding.tsx +3 -3
- package/src/form/field_bindings/SelectFieldBinding.tsx +2 -3
- package/src/form/field_bindings/StorageUploadFieldBinding.tsx +3 -3
- package/src/form/field_bindings/SwitchFieldBinding.tsx +2 -3
- package/src/form/field_bindings/TextFieldBinding.tsx +3 -4
- package/src/form/index.tsx +1 -0
- package/src/hooks/index.tsx +3 -1
- package/src/{core → hooks}/useBuildModeController.tsx +1 -1
- package/src/hooks/useBuildNavigationController.tsx +30 -15
- package/src/internal/useBuildDataSource.ts +7 -2
- package/src/preview/PropertyPreview.tsx +1 -1
- package/src/preview/components/ReferencePreview.tsx +1 -1
- package/src/types/entities.ts +4 -0
- package/src/util/index.ts +1 -0
- /package/dist/{internal → core}/EntityView.d.ts +0 -0
- /package/dist/{components → form/components}/LabelWithIcon.d.ts +0 -0
- /package/dist/{core → hooks}/useBuildLocalConfigurationPersistence.d.ts +0 -0
- /package/src/{components → form/components}/LabelWithIcon.tsx +0 -0
- /package/src/{core → hooks}/useBuildLocalConfigurationPersistence.tsx +0 -0
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { CollectionSize, Entity, EntityAction, EntityCollection, SelectionController } from "../../types";
|
|
3
2
|
/**
|
|
4
3
|
*
|
|
@@ -9,15 +8,12 @@ import { CollectionSize, Entity, EntityAction, EntityCollection, SelectionContro
|
|
|
9
8
|
* @param selectionEnabled
|
|
10
9
|
* @param size
|
|
11
10
|
* @param toggleEntitySelection
|
|
12
|
-
* @param onCopyClicked
|
|
13
|
-
* @param onEditClicked
|
|
14
|
-
* @param onDeleteClicked
|
|
15
11
|
* @param hideId
|
|
16
12
|
* @constructor
|
|
17
13
|
*
|
|
18
14
|
* @group Collection components
|
|
19
15
|
*/
|
|
20
|
-
export declare const EntityCollectionRowActions:
|
|
16
|
+
export declare const EntityCollectionRowActions: ({ entity, collection, fullPath, width, frozen, isSelected, selectionEnabled, size, highlightEntity, onCollectionChange, unhighlightEntity, actions, hideId, selectionController, }: {
|
|
21
17
|
entity: Entity<any>;
|
|
22
18
|
collection?: EntityCollection<any, import("../../types").User> | undefined;
|
|
23
19
|
fullPath?: string | undefined;
|
|
@@ -32,4 +28,4 @@ export declare const EntityCollectionRowActions: React.NamedExoticComponent<{
|
|
|
32
28
|
selectionController?: SelectionController | undefined;
|
|
33
29
|
highlightEntity?: ((entity: Entity<any>) => void) | undefined;
|
|
34
30
|
unhighlightEntity?: ((entity: Entity<any>) => void) | undefined;
|
|
35
|
-
}
|
|
31
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,13 +3,13 @@ import { PreviewSize } from "../preview";
|
|
|
3
3
|
export type ReferenceWidgetProps<M extends Record<string, any>> = {
|
|
4
4
|
name?: string;
|
|
5
5
|
multiselect?: boolean;
|
|
6
|
-
value: EntityReference
|
|
6
|
+
value: EntityReference | EntityReference[] | null;
|
|
7
7
|
onReferenceSelected?: (params: {
|
|
8
|
-
reference: EntityReference
|
|
8
|
+
reference: EntityReference | null;
|
|
9
9
|
entity: Entity<M> | null;
|
|
10
10
|
}) => void;
|
|
11
11
|
onMultipleReferenceSelected?: (params: {
|
|
12
|
-
references: EntityReference
|
|
12
|
+
references: EntityReference[] | null;
|
|
13
13
|
entities: Entity<M>[] | null;
|
|
14
14
|
}) => void;
|
|
15
15
|
path: string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EntityViewProps } from "./EntityView";
|
|
2
|
+
import { User } from "../types";
|
|
3
|
+
export type SideEntityViewProps<M extends Record<string, any>> = EntityViewProps<M> & {
|
|
4
|
+
formWidth?: number | string;
|
|
5
|
+
onClose?: () => void;
|
|
6
|
+
};
|
|
7
|
+
export declare function SideEntityView<M extends Record<string, any>, UserType extends User>({ path, entityId, selectedSubPath, copy, collection, parentCollectionIds, onValuesAreModified, formWidth, onUpdate, onClose }: SideEntityViewProps<M>): import("react/jsx-runtime").JSX.Element;
|
package/dist/core/index.d.ts
CHANGED
package/dist/form/index.d.ts
CHANGED
package/dist/hooks/index.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ export * from "./data/useCollectionFetch";
|
|
|
3
3
|
export * from "./data/useEntityFetch";
|
|
4
4
|
export * from "./data/save";
|
|
5
5
|
export * from "./data/delete";
|
|
6
|
-
export * from "../form/useClearRestoreValue";
|
|
7
6
|
export * from "./useNavigationController";
|
|
8
7
|
export * from "./useResolvedNavigationFrom";
|
|
9
8
|
export * from "./useStorageSource";
|
|
@@ -19,3 +18,5 @@ export * from "./useReferenceDialog";
|
|
|
19
18
|
export * from "./useBrowserTitleAndIcon";
|
|
20
19
|
export * from "./useCustomizationController";
|
|
21
20
|
export * from "./useBuildNavigationController";
|
|
21
|
+
export * from "./useBuildLocalConfigurationPersistence";
|
|
22
|
+
export * from "./useBuildModeController";
|
|
@@ -16,6 +16,6 @@ type BuildNavigationContextProps<EC extends EntityCollection, UserType extends U
|
|
|
16
16
|
*/
|
|
17
17
|
injectCollections?: (collections: EntityCollection[]) => EntityCollection[];
|
|
18
18
|
};
|
|
19
|
-
export declare function useBuildNavigationController<EC extends EntityCollection, UserType extends User>({ basePath, baseCollectionPath, authController, collections:
|
|
19
|
+
export declare function useBuildNavigationController<EC extends EntityCollection, UserType extends User>({ basePath, baseCollectionPath, authController, collections: collectionsProp, views: baseViews, userConfigPersistence, dataSourceDelegate, injectCollections }: BuildNavigationContextProps<EC, UserType>): NavigationController;
|
|
20
20
|
export declare function getSidePanelKey(path: string, entityId?: string): string;
|
|
21
21
|
export {};
|