@firecms/collection_editor 3.5.2 → 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/ConfigControllerProvider.d.ts +5 -5
- package/dist/api/index.d.ts +1 -1
- package/dist/index.d.ts +16 -16
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/types/collection_editor_controller.d.ts +2 -2
- package/dist/types/config_controller.d.ts +1 -1
- package/dist/ui/CollectionViewHeaderAction.d.ts +1 -1
- package/dist/ui/PropertyAddColumnComponent.d.ts +1 -1
- package/dist/ui/collection_editor/AICollectionGeneratorPopover.d.ts +2 -2
- package/dist/ui/collection_editor/AIModifiedPathsContext.d.ts +1 -1
- package/dist/ui/collection_editor/CollectionEditorDialog.d.ts +4 -4
- package/dist/ui/collection_editor/CollectionEditorWelcomeView.d.ts +1 -1
- package/dist/ui/collection_editor/CollectionPropertiesEditorForm.d.ts +1 -1
- package/dist/ui/collection_editor/EntityActionsEditTab.d.ts +1 -1
- package/dist/ui/collection_editor/ExtendSettingsForm.d.ts +3 -3
- package/dist/ui/collection_editor/SubcollectionsEditTab.d.ts +3 -3
- package/dist/ui/collection_editor/properties/conditions/index.d.ts +6 -6
- package/dist/useCollectionEditorController.d.ts +1 -1
- package/dist/useCollectionEditorPlugin.d.ts +5 -5
- package/dist/useCollectionsConfigController.d.ts +1 -1
- package/dist/utils/collections.d.ts +1 -1
- package/package.json +8 -8
- package/src/ConfigControllerProvider.tsx +8 -8
- package/src/api/index.ts +1 -1
- package/src/index.ts +16 -16
- package/src/types/collection_editor_controller.tsx +2 -2
- package/src/types/config_controller.tsx +1 -1
- package/src/ui/AddKanbanColumnAction.tsx +1 -1
- package/src/ui/CollectionViewHeaderAction.tsx +2 -2
- package/src/ui/EditorCollectionAction.tsx +2 -2
- package/src/ui/EditorCollectionActionStart.tsx +3 -3
- package/src/ui/EditorEntityAction.tsx +2 -2
- package/src/ui/HomePageEditorCollectionAction.tsx +2 -2
- package/src/ui/KanbanSetupAction.tsx +1 -1
- package/src/ui/MissingReferenceWidget.tsx +1 -1
- package/src/ui/NewCollectionButton.tsx +1 -1
- package/src/ui/NewCollectionCard.tsx +1 -1
- package/src/ui/PropertyAddColumnComponent.tsx +2 -2
- package/src/ui/collection_editor/AICollectionGeneratorPopover.tsx +2 -2
- package/src/ui/collection_editor/AIModifiedPathsContext.tsx +1 -1
- package/src/ui/collection_editor/CollectionDetailsForm.tsx +5 -5
- package/src/ui/collection_editor/CollectionEditorDialog.tsx +17 -17
- package/src/ui/collection_editor/CollectionEditorWelcomeView.tsx +8 -8
- package/src/ui/collection_editor/CollectionJsonImportDialog.tsx +1 -1
- package/src/ui/collection_editor/CollectionPropertiesEditorForm.tsx +6 -6
- package/src/ui/collection_editor/DisplaySettingsForm.tsx +4 -4
- package/src/ui/collection_editor/EntityActionsEditTab.tsx +2 -2
- package/src/ui/collection_editor/ExtendSettingsForm.tsx +5 -5
- package/src/ui/collection_editor/GetCodeDialog.tsx +1 -1
- package/src/ui/collection_editor/KanbanConfigSection.tsx +1 -1
- package/src/ui/collection_editor/PropertyEditView.tsx +19 -19
- package/src/ui/collection_editor/PropertyFieldPreview.tsx +1 -1
- package/src/ui/collection_editor/PropertyTree.tsx +4 -4
- package/src/ui/collection_editor/SubcollectionsEditTab.tsx +5 -5
- package/src/ui/collection_editor/import/CollectionEditorImportMapping.tsx +5 -5
- package/src/ui/collection_editor/properties/BlockPropertyField.tsx +3 -3
- package/src/ui/collection_editor/properties/BooleanPropertyField.tsx +3 -3
- package/src/ui/collection_editor/properties/CommonPropertyFields.tsx +1 -1
- package/src/ui/collection_editor/properties/DateTimePropertyField.tsx +2 -2
- package/src/ui/collection_editor/properties/EnumPropertyField.tsx +5 -5
- package/src/ui/collection_editor/properties/KeyValuePropertyField.tsx +2 -2
- package/src/ui/collection_editor/properties/MapPropertyField.tsx +3 -3
- package/src/ui/collection_editor/properties/MarkdownPropertyField.tsx +2 -2
- package/src/ui/collection_editor/properties/NumberPropertyField.tsx +2 -2
- package/src/ui/collection_editor/properties/RepeatPropertyField.tsx +4 -4
- package/src/ui/collection_editor/properties/StoragePropertyField.tsx +4 -4
- package/src/ui/collection_editor/properties/StringPropertyField.tsx +2 -2
- package/src/ui/collection_editor/properties/UrlPropertyField.tsx +2 -2
- package/src/ui/collection_editor/properties/advanced/AdvancedPropertyValidation.tsx +1 -1
- package/src/ui/collection_editor/properties/conditions/ConditionsEditor.tsx +2 -2
- package/src/ui/collection_editor/properties/conditions/EnumConditionsEditor.tsx +2 -2
- package/src/ui/collection_editor/properties/conditions/index.ts +6 -6
- package/src/ui/collection_editor/properties/validation/ArrayPropertyValidation.tsx +1 -1
- package/src/ui/collection_editor/properties/validation/GeneralPropertyValidation.tsx +1 -1
- package/src/ui/collection_editor/properties/validation/NumberPropertyValidation.tsx +2 -2
- package/src/ui/collection_editor/properties/validation/StringPropertyValidation.tsx +2 -2
- package/src/useCollectionEditorController.tsx +2 -2
- package/src/useCollectionEditorPlugin.tsx +24 -24
- package/src/useCollectionsConfigController.tsx +2 -2
- package/src/utils/collections.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CollectionEditorPermissionsBuilder } from "./config_permissions";
|
|
1
|
+
import { CollectionEditorPermissionsBuilder } from "./config_permissions.js";
|
|
2
2
|
import { Entity, Property } from "@firecms/core";
|
|
3
|
-
import { PersistedCollection } from "./persisted_collection";
|
|
3
|
+
import { PersistedCollection } from "./persisted_collection.js";
|
|
4
4
|
/**
|
|
5
5
|
* Controller to open the collection editor dialog.
|
|
6
6
|
* @group Hooks and utilities
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CMSType, EntityCollection, NavigationGroupMapping, Property } from "@firecms/core";
|
|
2
|
-
import { PersistedCollection } from "./persisted_collection";
|
|
2
|
+
import { PersistedCollection } from "./persisted_collection.js";
|
|
3
3
|
export interface CollectionsSetupInfo {
|
|
4
4
|
status: "ongoing" | "complete" | "error" | "dismissed";
|
|
5
5
|
error: string | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EntityTableController, ResolvedProperty } from "@firecms/core";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { PersistedCollection } from "../types/persisted_collection";
|
|
3
|
+
import { PersistedCollection } from "../types/persisted_collection.js";
|
|
4
4
|
export declare function CollectionViewHeaderAction({ propertyKey, onHover, property, fullPath, parentCollectionIds, collection, tableController }: {
|
|
5
5
|
property: ResolvedProperty;
|
|
6
6
|
propertyKey: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EntityTableController } from "@firecms/core";
|
|
2
|
-
import { PersistedCollection } from "../types/persisted_collection";
|
|
2
|
+
import { PersistedCollection } from "../types/persisted_collection.js";
|
|
3
3
|
export declare function PropertyAddColumnComponent({ fullPath, parentCollectionIds, collection, tableController }: {
|
|
4
4
|
fullPath: string;
|
|
5
5
|
parentCollectionIds: string[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { EntityCollection } from "@firecms/core";
|
|
3
|
-
import { CollectionGenerationCallback, CollectionOperation } from "../../api/generateCollectionApi";
|
|
4
|
-
import { PersistedCollection } from "../../types/persisted_collection";
|
|
3
|
+
import { CollectionGenerationCallback, CollectionOperation } from "../../api/generateCollectionApi.js";
|
|
4
|
+
import { PersistedCollection } from "../../types/persisted_collection.js";
|
|
5
5
|
export interface AICollectionGeneratorPopoverProps {
|
|
6
6
|
/**
|
|
7
7
|
* Current collection being edited (if modifying an existing collection)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { CollectionOperation } from "../../api/generateCollectionApi";
|
|
2
|
+
import { CollectionOperation } from "../../api/generateCollectionApi.js";
|
|
3
3
|
export interface AIModifiedPathsContextType {
|
|
4
4
|
/** Set of paths that were modified by AI */
|
|
5
5
|
modifiedPaths: Set<string>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Entity, EntityCollection, User } from "@firecms/core";
|
|
3
|
-
import { CollectionsConfigController } from "../../types/config_controller";
|
|
4
|
-
import { CollectionInference } from "../../types/collection_inference";
|
|
5
|
-
import { PersistedCollection } from "../../types/persisted_collection";
|
|
6
|
-
import { CollectionGenerationCallback } from "../../api/generateCollectionApi";
|
|
3
|
+
import { CollectionsConfigController } from "../../types/config_controller.js";
|
|
4
|
+
import { CollectionInference } from "../../types/collection_inference.js";
|
|
5
|
+
import { PersistedCollection } from "../../types/persisted_collection.js";
|
|
6
|
+
import { CollectionGenerationCallback } from "../../api/generateCollectionApi.js";
|
|
7
7
|
export interface CollectionEditorDialogProps {
|
|
8
8
|
open: boolean;
|
|
9
9
|
isNewCollection: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { EntityCollection } from "@firecms/core";
|
|
3
|
-
import { CollectionGenerationCallback } from "../../api/generateCollectionApi";
|
|
3
|
+
import { CollectionGenerationCallback } from "../../api/generateCollectionApi.js";
|
|
4
4
|
export declare function CollectionEditorWelcomeView({ path, parentCollection, onContinue, existingCollectionPaths, generateCollection, onAnalyticsEvent }: {
|
|
5
5
|
path: string;
|
|
6
6
|
parentCollection?: EntityCollection;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { EntityCollection, PropertyConfig, User } from "@firecms/core";
|
|
3
|
-
import { PersistedCollection } from "../../types/persisted_collection";
|
|
3
|
+
import { PersistedCollection } from "../../types/persisted_collection.js";
|
|
4
4
|
type CollectionEditorFormProps = {
|
|
5
5
|
showErrors: boolean;
|
|
6
6
|
isNewCollection: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { PersistedCollection } from "../../types/persisted_collection";
|
|
2
|
+
import { PersistedCollection } from "../../types/persisted_collection.js";
|
|
3
3
|
export declare function EntityActionsEditTab({ collection, embedded }: {
|
|
4
4
|
collection: PersistedCollection;
|
|
5
5
|
embedded?: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { EntityCollection, User } from "@firecms/core";
|
|
3
|
-
import { CollectionsConfigController } from "../../types/config_controller";
|
|
4
|
-
import { CollectionInference } from "../../types/collection_inference";
|
|
5
|
-
import { PersistedCollection } from "../../types/persisted_collection";
|
|
3
|
+
import { CollectionsConfigController } from "../../types/config_controller.js";
|
|
4
|
+
import { CollectionInference } from "../../types/collection_inference.js";
|
|
5
|
+
import { PersistedCollection } from "../../types/persisted_collection.js";
|
|
6
6
|
export declare function ExtendSettingsForm({ collection, parentCollection, configController, collectionInference, getUser, parentCollectionIds, isMergedCollection, onResetToCode }: {
|
|
7
7
|
collection: PersistedCollection;
|
|
8
8
|
parentCollection?: EntityCollection;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { EntityCollection, User } from "@firecms/core";
|
|
3
|
-
import { CollectionsConfigController } from "../../types/config_controller";
|
|
4
|
-
import { PersistedCollection } from "../../types/persisted_collection";
|
|
5
|
-
import { CollectionInference } from "../../types/collection_inference";
|
|
3
|
+
import { CollectionsConfigController } from "../../types/config_controller.js";
|
|
4
|
+
import { PersistedCollection } from "../../types/persisted_collection.js";
|
|
5
|
+
import { CollectionInference } from "../../types/collection_inference.js";
|
|
6
6
|
export declare function SubcollectionsEditTab({ collection, parentCollection, configController, collectionInference, getUser, parentCollectionIds, embedded }: {
|
|
7
7
|
collection: PersistedCollection;
|
|
8
8
|
parentCollection?: EntityCollection;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { ConditionsPanel } from "./ConditionsPanel";
|
|
2
|
-
export { ConditionsEditor } from "./ConditionsEditor";
|
|
3
|
-
export type { ConditionsEditorProps } from "./ConditionsEditor";
|
|
4
|
-
export { EnumConditionsEditor } from "./EnumConditionsEditor";
|
|
5
|
-
export type { EnumConditionsEditorProps } from "./EnumConditionsEditor";
|
|
6
|
-
export { getPropertyPaths, getGroupedPropertyPaths } from "./property_paths";
|
|
1
|
+
export { ConditionsPanel } from "./ConditionsPanel.js";
|
|
2
|
+
export { ConditionsEditor } from "./ConditionsEditor.js";
|
|
3
|
+
export type { ConditionsEditorProps } from "./ConditionsEditor.js";
|
|
4
|
+
export { EnumConditionsEditor } from "./EnumConditionsEditor.js";
|
|
5
|
+
export type { EnumConditionsEditorProps } from "./EnumConditionsEditor.js";
|
|
6
|
+
export { getPropertyPaths, getGroupedPropertyPaths } from "./property_paths.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CollectionEditorController } from "./types/collection_editor_controller";
|
|
1
|
+
import { CollectionEditorController } from "./types/collection_editor_controller.js";
|
|
2
2
|
/**
|
|
3
3
|
* Hook to access the collection editor controller.
|
|
4
4
|
* The methods in this controller can be used to open the collection editor dialog.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { FireCMSPlugin, User } from "@firecms/core";
|
|
3
|
-
import { CollectionEditorPermissionsBuilder } from "./types/config_permissions";
|
|
4
|
-
import { PersistedCollection } from "./types/persisted_collection";
|
|
5
|
-
import { CollectionInference } from "./types/collection_inference";
|
|
6
|
-
import { CollectionsConfigController } from "./types/config_controller";
|
|
7
|
-
import { CollectionGenerationCallback } from "./api/generateCollectionApi";
|
|
3
|
+
import { CollectionEditorPermissionsBuilder } from "./types/config_permissions.js";
|
|
4
|
+
import { PersistedCollection } from "./types/persisted_collection.js";
|
|
5
|
+
import { CollectionInference } from "./types/collection_inference.js";
|
|
6
|
+
import { CollectionsConfigController } from "./types/config_controller.js";
|
|
7
|
+
import { CollectionGenerationCallback } from "./api/generateCollectionApi.js";
|
|
8
8
|
export interface CollectionConfigControllerProps<EC extends PersistedCollection = PersistedCollection, USER extends User = User> {
|
|
9
9
|
/**
|
|
10
10
|
* Firebase app where the configuration is saved.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CollectionsConfigController } from "./types/config_controller";
|
|
1
|
+
import { CollectionsConfigController } from "./types/config_controller.js";
|
|
2
2
|
/**
|
|
3
3
|
* Use this hook to access the configuration controller.
|
|
4
4
|
* You can use it to get the list of collections, and to save/delete collections.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EntityCollection, ModifyCollectionProps } from "@firecms/core";
|
|
2
|
-
import { PersistedCollection } from "../types/persisted_collection";
|
|
2
|
+
import { PersistedCollection } from "../types/persisted_collection.js";
|
|
3
3
|
/**
|
|
4
4
|
* Function in charge of merging collections defined in code with those stored in the backend.
|
|
5
5
|
*/
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firecms/collection_editor",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.5.
|
|
4
|
+
"version": "3.5.3",
|
|
5
5
|
"main": "./dist/index.umd.js",
|
|
6
6
|
"module": "./dist/index.es.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"source": "src/index.ts",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@firecms/core": "3.5.
|
|
11
|
-
"@firecms/data_export": "3.5.
|
|
12
|
-
"@firecms/data_import": "3.5.
|
|
13
|
-
"@firecms/data_import_export": "3.5.
|
|
14
|
-
"@firecms/formex": "3.5.
|
|
15
|
-
"@firecms/schema_inference": "3.5.
|
|
16
|
-
"@firecms/ui": "3.5.
|
|
10
|
+
"@firecms/core": "3.5.3",
|
|
11
|
+
"@firecms/data_export": "3.5.3",
|
|
12
|
+
"@firecms/data_import": "3.5.3",
|
|
13
|
+
"@firecms/data_import_export": "3.5.3",
|
|
14
|
+
"@firecms/formex": "3.5.3",
|
|
15
|
+
"@firecms/schema_inference": "3.5.3",
|
|
16
|
+
"@firecms/ui": "3.5.3",
|
|
17
17
|
"json5": "^2.2.3",
|
|
18
18
|
"prism-react-renderer": "^2.4.1"
|
|
19
19
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { PropsWithChildren, useCallback } from "react";
|
|
2
2
|
import equal from "react-fast-compare"
|
|
3
3
|
|
|
4
|
-
import { CollectionsConfigController } from "./types/config_controller";
|
|
4
|
+
import { CollectionsConfigController } from "./types/config_controller.js";
|
|
5
5
|
import {
|
|
6
6
|
Entity,
|
|
7
7
|
Property,
|
|
@@ -10,14 +10,14 @@ import {
|
|
|
10
10
|
User,
|
|
11
11
|
useSnackbarController
|
|
12
12
|
} from "@firecms/core";
|
|
13
|
-
import { CollectionEditorDialog } from "./ui/collection_editor/CollectionEditorDialog";
|
|
13
|
+
import { CollectionEditorDialog } from "./ui/collection_editor/CollectionEditorDialog.js";
|
|
14
14
|
import { useNavigate } from "react-router";
|
|
15
|
-
import { CollectionEditorController } from "./types/collection_editor_controller";
|
|
16
|
-
import { CollectionEditorPermissionsBuilder } from "./types/config_permissions";
|
|
17
|
-
import { CollectionInference } from "./types/collection_inference";
|
|
18
|
-
import { PropertyFormDialog } from "./ui/collection_editor/PropertyEditView";
|
|
19
|
-
import { PersistedCollection } from "./types/persisted_collection";
|
|
20
|
-
import { CollectionGenerationCallback } from "./api/generateCollectionApi";
|
|
15
|
+
import { CollectionEditorController } from "./types/collection_editor_controller.js";
|
|
16
|
+
import { CollectionEditorPermissionsBuilder } from "./types/config_permissions.js";
|
|
17
|
+
import { CollectionInference } from "./types/collection_inference.js";
|
|
18
|
+
import { PropertyFormDialog } from "./ui/collection_editor/PropertyEditView.js";
|
|
19
|
+
import { PersistedCollection } from "./types/persisted_collection.js";
|
|
20
|
+
import { CollectionGenerationCallback } from "./api/generateCollectionApi.js";
|
|
21
21
|
|
|
22
22
|
export const ConfigControllerContext = React.createContext<CollectionsConfigController>({} as any);
|
|
23
23
|
export const CollectionEditorContext = React.createContext<CollectionEditorController>({} as any);
|
package/src/api/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./generateCollectionApi";
|
|
1
|
+
export * from "./generateCollectionApi.js";
|
package/src/index.ts
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
export {
|
|
2
2
|
useCollectionEditorPlugin
|
|
3
|
-
} from "./useCollectionEditorPlugin";
|
|
3
|
+
} from "./useCollectionEditorPlugin.js";
|
|
4
4
|
|
|
5
5
|
export {
|
|
6
6
|
useCollectionEditorController
|
|
7
|
-
} from "./useCollectionEditorController";
|
|
7
|
+
} from "./useCollectionEditorController.js";
|
|
8
8
|
export {
|
|
9
9
|
useCollectionsConfigController
|
|
10
|
-
} from "./useCollectionsConfigController";
|
|
10
|
+
} from "./useCollectionsConfigController.js";
|
|
11
11
|
|
|
12
12
|
export {
|
|
13
13
|
editableProperty, removeNonEditableProperties
|
|
14
|
-
} from "./utils/entities";
|
|
15
|
-
export * from "./utils/collections";
|
|
14
|
+
} from "./utils/entities.js";
|
|
15
|
+
export * from "./utils/collections.js";
|
|
16
16
|
export {
|
|
17
17
|
validateCollectionJson,
|
|
18
18
|
type CollectionValidationError,
|
|
19
19
|
type CollectionValidationResult
|
|
20
|
-
} from "./utils/validateCollectionJson";
|
|
20
|
+
} from "./utils/validateCollectionJson.js";
|
|
21
21
|
|
|
22
22
|
export type {
|
|
23
23
|
CollectionsConfigController, DeleteCollectionParams, SaveCollectionParams, UpdateCollectionParams, CollectionsSetupInfo, UpdatePropertiesOrderParams, UpdateKanbanColumnsOrderParams
|
|
24
|
-
} from "./types/config_controller";
|
|
24
|
+
} from "./types/config_controller.js";
|
|
25
25
|
export type {
|
|
26
26
|
CollectionEditorController
|
|
27
|
-
} from "./types/collection_editor_controller";
|
|
27
|
+
} from "./types/collection_editor_controller.js";
|
|
28
28
|
export type {
|
|
29
29
|
CollectionEditorPermissions, CollectionEditorPermissionsBuilder
|
|
30
|
-
} from "./types/config_permissions";
|
|
30
|
+
} from "./types/config_permissions.js";
|
|
31
31
|
export type {
|
|
32
32
|
PersistedCollection
|
|
33
|
-
} from "./types/persisted_collection";
|
|
33
|
+
} from "./types/persisted_collection.js";
|
|
34
34
|
|
|
35
35
|
export type {
|
|
36
36
|
CollectionInference
|
|
37
|
-
} from "./types/collection_inference";
|
|
37
|
+
} from "./types/collection_inference.js";
|
|
38
38
|
|
|
39
39
|
export {
|
|
40
40
|
buildCollectionGenerationCallback,
|
|
41
41
|
CollectionGenerationApiError,
|
|
42
42
|
DEFAULT_COLLECTION_GENERATION_ENDPOINT
|
|
43
|
-
} from "./api/generateCollectionApi";
|
|
43
|
+
} from "./api/generateCollectionApi.js";
|
|
44
44
|
|
|
45
45
|
export type {
|
|
46
46
|
CollectionGenerationCallback,
|
|
@@ -49,15 +49,15 @@ export type {
|
|
|
49
49
|
CollectionOperation,
|
|
50
50
|
CollectionOperationType,
|
|
51
51
|
BuildCollectionGenerationCallbackProps
|
|
52
|
-
} from "./api/generateCollectionApi";
|
|
52
|
+
} from "./api/generateCollectionApi.js";
|
|
53
53
|
|
|
54
|
-
export { MissingReferenceWidget } from "./ui/MissingReferenceWidget";
|
|
54
|
+
export { MissingReferenceWidget } from "./ui/MissingReferenceWidget.js";
|
|
55
55
|
|
|
56
|
-
export * from "./ui/collection_editor/util";
|
|
56
|
+
export * from "./ui/collection_editor/util.js";
|
|
57
57
|
|
|
58
58
|
export {
|
|
59
59
|
PropertyForm,
|
|
60
60
|
PropertyFormDialog,
|
|
61
61
|
type PropertyFormProps,
|
|
62
62
|
type OnPropertyChangedParams
|
|
63
|
-
} from "./ui/collection_editor/PropertyEditView";
|
|
63
|
+
} from "./ui/collection_editor/PropertyEditView.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CollectionEditorPermissionsBuilder } from "./config_permissions";
|
|
1
|
+
import { CollectionEditorPermissionsBuilder } from "./config_permissions.js";
|
|
2
2
|
import { Entity, Property } from "@firecms/core";
|
|
3
|
-
import { PersistedCollection } from "./persisted_collection";
|
|
3
|
+
import { PersistedCollection } from "./persisted_collection.js";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Controller to open the collection editor dialog.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CMSType, EntityCollection, NavigationGroupMapping, Property } from "@firecms/core";
|
|
2
|
-
import { PersistedCollection } from "./persisted_collection";
|
|
2
|
+
import { PersistedCollection } from "./persisted_collection.js";
|
|
3
3
|
|
|
4
4
|
export interface CollectionsSetupInfo {
|
|
5
5
|
status: "ongoing" | "complete" | "error" | "dismissed";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
TextField,
|
|
22
22
|
Typography
|
|
23
23
|
} from "@firecms/ui";
|
|
24
|
-
import { useCollectionsConfigController } from "../useCollectionsConfigController";
|
|
24
|
+
import { useCollectionsConfigController } from "../useCollectionsConfigController.js";
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* Component rendered at the end of the Kanban board to add new columns (enum values).
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { EntityTableController, ResolvedProperty } from "@firecms/core";
|
|
2
2
|
import { IconButton, SettingsIcon, Tooltip } from "@firecms/ui";
|
|
3
3
|
import React from "react";
|
|
4
|
-
import { useCollectionEditorController } from "../useCollectionEditorController";
|
|
5
|
-
import { PersistedCollection } from "../types/persisted_collection";
|
|
4
|
+
import { useCollectionEditorController } from "../useCollectionEditorController.js";
|
|
5
|
+
import { PersistedCollection } from "../types/persisted_collection.js";
|
|
6
6
|
|
|
7
7
|
export function CollectionViewHeaderAction({
|
|
8
8
|
propertyKey,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CollectionActionsProps, useAuthController, useNavigationController, useTranslation } from "@firecms/core";
|
|
2
2
|
import { IconButton, SettingsIcon, Tooltip, } from "@firecms/ui";
|
|
3
3
|
|
|
4
|
-
import { useCollectionEditorController } from "../useCollectionEditorController";
|
|
5
|
-
import { PersistedCollection } from "../types/persisted_collection";
|
|
4
|
+
import { useCollectionEditorController } from "../useCollectionEditorController.js";
|
|
5
|
+
import { PersistedCollection } from "../types/persisted_collection.js";
|
|
6
6
|
|
|
7
7
|
export function EditorCollectionAction({
|
|
8
8
|
path: fullPath,
|
|
@@ -3,9 +3,9 @@ import equal from "react-fast-compare"
|
|
|
3
3
|
import { CollectionActionsProps, mergeDeep, useAuthController, useSnackbarController } from "@firecms/core";
|
|
4
4
|
import { Button, SaveIcon, Tooltip, UndoIcon, } from "@firecms/ui";
|
|
5
5
|
|
|
6
|
-
import { useCollectionEditorController } from "../useCollectionEditorController";
|
|
7
|
-
import { useCollectionsConfigController } from "../useCollectionsConfigController";
|
|
8
|
-
import { PersistedCollection } from "../types/persisted_collection";
|
|
6
|
+
import { useCollectionEditorController } from "../useCollectionEditorController.js";
|
|
7
|
+
import { useCollectionsConfigController } from "../useCollectionsConfigController.js";
|
|
8
|
+
import { PersistedCollection } from "../types/persisted_collection.js";
|
|
9
9
|
|
|
10
10
|
export function EditorCollectionActionStart({
|
|
11
11
|
path: fullPath,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PluginFormActionProps, useAuthController, useNavigationController, useTranslation } from "@firecms/core";
|
|
2
2
|
import { IconButton, SettingsIcon, Tooltip, } from "@firecms/ui";
|
|
3
3
|
|
|
4
|
-
import { useCollectionEditorController } from "../useCollectionEditorController";
|
|
5
|
-
import { PersistedCollection } from "../types/persisted_collection";
|
|
4
|
+
import { useCollectionEditorController } from "../useCollectionEditorController.js";
|
|
5
|
+
import { PersistedCollection } from "../types/persisted_collection.js";
|
|
6
6
|
|
|
7
7
|
export function EditorEntityAction({
|
|
8
8
|
path: fullPath,
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
useSnackbarController
|
|
6
6
|
} from "@firecms/core";
|
|
7
7
|
import { ContentCopyIcon, DeleteIcon, IconButton, Menu, MenuItem, MoreVertIcon, SettingsIcon, } from "@firecms/ui";
|
|
8
|
-
import { useCollectionEditorController } from "../useCollectionEditorController";
|
|
8
|
+
import { useCollectionEditorController } from "../useCollectionEditorController.js";
|
|
9
9
|
import { useState } from "react";
|
|
10
|
-
import { useCollectionsConfigController } from "../useCollectionsConfigController";
|
|
10
|
+
import { useCollectionsConfigController } from "../useCollectionsConfigController.js";
|
|
11
11
|
|
|
12
12
|
export function HomePageEditorCollectionAction({
|
|
13
13
|
path,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { EntityCollection, useNavigationController } from "@firecms/core";
|
|
3
3
|
import { Button } from "@firecms/ui";
|
|
4
|
-
import { useCollectionEditorController } from "../useCollectionEditorController";
|
|
4
|
+
import { useCollectionEditorController } from "../useCollectionEditorController.js";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Component rendered when Kanban view is missing orderProperty configuration.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ErrorView, prettifyIdentifier, useNavigationController } from "@firecms/core";
|
|
2
|
-
import { useCollectionEditorController } from "../useCollectionEditorController";
|
|
2
|
+
import { useCollectionEditorController } from "../useCollectionEditorController.js";
|
|
3
3
|
import { Button } from "@firecms/ui";
|
|
4
4
|
|
|
5
5
|
export function MissingReferenceWidget({ path: pathProp }: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AddIcon, Button } from "@firecms/ui";
|
|
2
2
|
import { useTranslation } from "@firecms/core";
|
|
3
|
-
import { useCollectionEditorController } from "../useCollectionEditorController";
|
|
3
|
+
import { useCollectionEditorController } from "../useCollectionEditorController.js";
|
|
4
4
|
|
|
5
5
|
export function NewCollectionButton() {
|
|
6
6
|
const { t } = useTranslation();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PluginHomePageAdditionalCardsProps, useAuthController, useTranslation } from "@firecms/core";
|
|
2
2
|
import { AddIcon, Card, cls, Typography } from "@firecms/ui";
|
|
3
|
-
import { useCollectionEditorController } from "../useCollectionEditorController";
|
|
3
|
+
import { useCollectionEditorController } from "../useCollectionEditorController.js";
|
|
4
4
|
|
|
5
5
|
export function NewCollectionCard({
|
|
6
6
|
group,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EntityTableController, getDefaultPropertiesOrder, useAuthController, useTranslation } from "@firecms/core";
|
|
2
2
|
import { AddIcon, Tooltip } from "@firecms/ui";
|
|
3
|
-
import { useCollectionEditorController } from "../useCollectionEditorController";
|
|
4
|
-
import { PersistedCollection } from "../types/persisted_collection";
|
|
3
|
+
import { useCollectionEditorController } from "../useCollectionEditorController.js";
|
|
4
|
+
import { PersistedCollection } from "../types/persisted_collection.js";
|
|
5
5
|
|
|
6
6
|
export function PropertyAddColumnComponent({
|
|
7
7
|
fullPath,
|
|
@@ -13,8 +13,8 @@ import {
|
|
|
13
13
|
CollectionGenerationCallback,
|
|
14
14
|
CollectionGenerationApiError,
|
|
15
15
|
CollectionOperation
|
|
16
|
-
} from "../../api/generateCollectionApi";
|
|
17
|
-
import { PersistedCollection } from "../../types/persisted_collection";
|
|
16
|
+
} from "../../api/generateCollectionApi.js";
|
|
17
|
+
import { PersistedCollection } from "../../types/persisted_collection.js";
|
|
18
18
|
|
|
19
19
|
export interface AICollectionGeneratorPopoverProps {
|
|
20
20
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { createContext, useCallback, useContext, useState } from "react";
|
|
2
|
-
import { CollectionOperation } from "../../api/generateCollectionApi";
|
|
2
|
+
import { CollectionOperation } from "../../api/generateCollectionApi.js";
|
|
3
3
|
|
|
4
4
|
export interface AIModifiedPathsContextType {
|
|
5
5
|
/** Set of paths that were modified by AI */
|
|
@@ -19,11 +19,11 @@ import {
|
|
|
19
19
|
} from "@firecms/ui";
|
|
20
20
|
|
|
21
21
|
import { Field, getIn, useFormex } from "@firecms/formex";
|
|
22
|
-
import { useCollectionEditorController } from "../../useCollectionEditorController";
|
|
23
|
-
import { LayoutModeSwitch } from "./LayoutModeSwitch";
|
|
24
|
-
import { ViewModeSwitch } from "./ViewModeSwitch";
|
|
25
|
-
import { KanbanConfigSection } from "./KanbanConfigSection";
|
|
26
|
-
import { PropertyFormDialog } from "./PropertyEditView";
|
|
22
|
+
import { useCollectionEditorController } from "../../useCollectionEditorController.js";
|
|
23
|
+
import { LayoutModeSwitch } from "./LayoutModeSwitch.js";
|
|
24
|
+
import { ViewModeSwitch } from "./ViewModeSwitch.js";
|
|
25
|
+
import { KanbanConfigSection } from "./KanbanConfigSection.js";
|
|
26
|
+
import { PropertyFormDialog } from "./PropertyEditView.js";
|
|
27
27
|
|
|
28
28
|
export function CollectionDetailsForm({
|
|
29
29
|
isNewCollection,
|
|
@@ -42,26 +42,26 @@ import {
|
|
|
42
42
|
Tabs,
|
|
43
43
|
Typography
|
|
44
44
|
} from "@firecms/ui";
|
|
45
|
-
import { YupSchema } from "./CollectionYupValidation";
|
|
46
|
-
import { GeneralSettingsForm } from "./GeneralSettingsForm";
|
|
47
|
-
import { DisplaySettingsForm } from "./DisplaySettingsForm";
|
|
48
|
-
import { CollectionPropertiesEditorForm } from "./CollectionPropertiesEditorForm";
|
|
49
|
-
import { UnsavedChangesDialog } from "./UnsavedChangesDialog";
|
|
50
|
-
import { ExtendSettingsForm } from "./ExtendSettingsForm";
|
|
51
|
-
import { CollectionsConfigController } from "../../types/config_controller";
|
|
52
|
-
import { CollectionEditorWelcomeView } from "./CollectionEditorWelcomeView";
|
|
53
|
-
import { CollectionInference } from "../../types/collection_inference";
|
|
45
|
+
import { YupSchema } from "./CollectionYupValidation.js";
|
|
46
|
+
import { GeneralSettingsForm } from "./GeneralSettingsForm.js";
|
|
47
|
+
import { DisplaySettingsForm } from "./DisplaySettingsForm.js";
|
|
48
|
+
import { CollectionPropertiesEditorForm } from "./CollectionPropertiesEditorForm.js";
|
|
49
|
+
import { UnsavedChangesDialog } from "./UnsavedChangesDialog.js";
|
|
50
|
+
import { ExtendSettingsForm } from "./ExtendSettingsForm.js";
|
|
51
|
+
import { CollectionsConfigController } from "../../types/config_controller.js";
|
|
52
|
+
import { CollectionEditorWelcomeView } from "./CollectionEditorWelcomeView.js";
|
|
53
|
+
import { CollectionInference } from "../../types/collection_inference.js";
|
|
54
54
|
import { getInferenceType, ImportSaveInProgress, useImportConfig } from "@firecms/data_import";
|
|
55
55
|
import { buildEntityPropertiesFromData } from "@firecms/schema_inference";
|
|
56
|
-
import { CollectionEditorImportMapping } from "./import/CollectionEditorImportMapping";
|
|
57
|
-
import { CollectionEditorImportDataPreview } from "./import/CollectionEditorImportDataPreview";
|
|
58
|
-
import { cleanPropertiesFromImport } from "./import/clean_import_data";
|
|
59
|
-
import { PersistedCollection } from "../../types/persisted_collection";
|
|
56
|
+
import { CollectionEditorImportMapping } from "./import/CollectionEditorImportMapping.js";
|
|
57
|
+
import { CollectionEditorImportDataPreview } from "./import/CollectionEditorImportDataPreview.js";
|
|
58
|
+
import { cleanPropertiesFromImport } from "./import/clean_import_data.js";
|
|
59
|
+
import { PersistedCollection } from "../../types/persisted_collection.js";
|
|
60
60
|
import { Formex, FormexController, useCreateFormex } from "@firecms/formex";
|
|
61
|
-
import { getFullIdPath } from "./util";
|
|
62
|
-
import { AICollectionGeneratorPopover } from "./AICollectionGeneratorPopover";
|
|
63
|
-
import { AIModifiedPathsProvider, useAIModifiedPaths } from "./AIModifiedPathsContext";
|
|
64
|
-
import { CollectionOperation, CollectionGenerationCallback } from "../../api/generateCollectionApi";
|
|
61
|
+
import { getFullIdPath } from "./util.js";
|
|
62
|
+
import { AICollectionGeneratorPopover } from "./AICollectionGeneratorPopover.js";
|
|
63
|
+
import { AIModifiedPathsProvider, useAIModifiedPaths } from "./AIModifiedPathsContext.js";
|
|
64
|
+
import { CollectionOperation, CollectionGenerationCallback } from "../../api/generateCollectionApi.js";
|
|
65
65
|
|
|
66
66
|
export interface CollectionEditorDialogProps {
|
|
67
67
|
open: boolean;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
2
|
import { AIIcon, EntityCollection, prettifyIdentifier, useTranslation } from "@firecms/core";
|
|
3
3
|
import { Button, Card, Chip, cls, CodeIcon, Container, Icon, Tooltip, Typography, } from "@firecms/ui";
|
|
4
|
-
import { CollectionJsonImportDialog } from "./CollectionJsonImportDialog";
|
|
4
|
+
import { CollectionJsonImportDialog } from "./CollectionJsonImportDialog.js";
|
|
5
5
|
|
|
6
|
-
import { productsCollectionTemplate } from "./templates/products_template";
|
|
7
|
-
import { blogCollectionTemplate } from "./templates/blog_template";
|
|
8
|
-
import { usersCollectionTemplate } from "./templates/users_template";
|
|
6
|
+
import { productsCollectionTemplate } from "./templates/products_template.js";
|
|
7
|
+
import { blogCollectionTemplate } from "./templates/blog_template.js";
|
|
8
|
+
import { usersCollectionTemplate } from "./templates/users_template.js";
|
|
9
9
|
import { ImportFileUpload } from "@firecms/data_import";
|
|
10
|
-
import { pagesCollectionTemplate } from "./templates/pages_template";
|
|
10
|
+
import { pagesCollectionTemplate } from "./templates/pages_template.js";
|
|
11
11
|
import { useFormex } from "@firecms/formex";
|
|
12
|
-
import { useCollectionEditorController } from "../../useCollectionEditorController";
|
|
13
|
-
import { AICollectionGeneratorPopover } from "./AICollectionGeneratorPopover";
|
|
14
|
-
import { CollectionGenerationCallback } from "../../api/generateCollectionApi";
|
|
12
|
+
import { useCollectionEditorController } from "../../useCollectionEditorController.js";
|
|
13
|
+
import { AICollectionGeneratorPopover } from "./AICollectionGeneratorPopover.js";
|
|
14
|
+
import { CollectionGenerationCallback } from "../../api/generateCollectionApi.js";
|
|
15
15
|
|
|
16
16
|
export function CollectionEditorWelcomeView({
|
|
17
17
|
path,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
Typography
|
|
11
11
|
} from "@firecms/ui";
|
|
12
12
|
import { EntityCollection } from "@firecms/core";
|
|
13
|
-
import { validateCollectionJson, CollectionValidationError } from "../../utils/validateCollectionJson";
|
|
13
|
+
import { validateCollectionJson, CollectionValidationError } from "../../utils/validateCollectionJson.js";
|
|
14
14
|
|
|
15
15
|
const EXAMPLE_JSON = `{
|
|
16
16
|
"id": "products",
|
|
@@ -30,12 +30,12 @@ import {
|
|
|
30
30
|
Typography,
|
|
31
31
|
} from "@firecms/ui";
|
|
32
32
|
|
|
33
|
-
import { getFullId, idToPropertiesPath, namespaceToPropertiesOrderPath } from "./util";
|
|
34
|
-
import { OnPropertyChangedParams, PropertyForm, PropertyFormDialog } from "./PropertyEditView";
|
|
35
|
-
import { PropertyTree } from "./PropertyTree";
|
|
36
|
-
import { PersistedCollection } from "../../types/persisted_collection";
|
|
37
|
-
import { GetCodeDialog } from "./GetCodeDialog";
|
|
38
|
-
import { useAIModifiedPaths } from "./AIModifiedPathsContext";
|
|
33
|
+
import { getFullId, idToPropertiesPath, namespaceToPropertiesOrderPath } from "./util.js";
|
|
34
|
+
import { OnPropertyChangedParams, PropertyForm, PropertyFormDialog } from "./PropertyEditView.js";
|
|
35
|
+
import { PropertyTree } from "./PropertyTree.js";
|
|
36
|
+
import { PersistedCollection } from "../../types/persisted_collection.js";
|
|
37
|
+
import { GetCodeDialog } from "./GetCodeDialog.js";
|
|
38
|
+
import { useAIModifiedPaths } from "./AIModifiedPathsContext.js";
|
|
39
39
|
|
|
40
40
|
type CollectionEditorFormProps = {
|
|
41
41
|
showErrors: boolean;
|