@firecms/collection_editor 3.0.0-alpha.79 → 3.0.0-alpha.80
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/index.es.js +3 -12
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +5 -5
- package/src/ui/collection_editor/CollectionEditorWelcomeView.tsx +4 -20
- package/src/ui/collection_editor/CollectionPropertiesEditorForm.tsx +1 -1
- package/src/ui/collection_editor/properties/ReferencePropertyField.tsx +0 -2
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firecms/collection_editor",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.0.0-alpha.
|
|
4
|
+
"version": "3.0.0-alpha.80",
|
|
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/data_import_export": "^3.0.0-alpha.
|
|
11
|
-
"@firecms/schema_inference": "^3.0.0-alpha.
|
|
12
|
-
"@firecms/ui": "^3.0.0-alpha.
|
|
10
|
+
"@firecms/data_import_export": "^3.0.0-alpha.80",
|
|
11
|
+
"@firecms/schema_inference": "^3.0.0-alpha.80",
|
|
12
|
+
"@firecms/ui": "^3.0.0-alpha.80",
|
|
13
13
|
"json5": "^2.2.3",
|
|
14
14
|
"prism-react-renderer": "^2.3.0"
|
|
15
15
|
},
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"publishConfig": {
|
|
73
73
|
"access": "public"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "60fbe594a5ad36fa5a47ba279ef3f55014fe823f"
|
|
76
76
|
}
|
|
@@ -1,18 +1,6 @@
|
|
|
1
1
|
import React, { useEffect, useState } from "react";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
} from "@firecms/core";
|
|
5
|
-
import {
|
|
6
|
-
Button,
|
|
7
|
-
Card,
|
|
8
|
-
Chip,
|
|
9
|
-
CircularProgress,
|
|
10
|
-
cn,
|
|
11
|
-
Container,
|
|
12
|
-
Icon,
|
|
13
|
-
Tooltip,
|
|
14
|
-
Typography,
|
|
15
|
-
} from "@firecms/ui";
|
|
2
|
+
import { EntityCollection, unslugify, } from "@firecms/core";
|
|
3
|
+
import { Button, Card, Chip, CircularProgress, cn, Container, Icon, Tooltip, Typography, } from "@firecms/ui";
|
|
16
4
|
import { useFormikContext } from "formik";
|
|
17
5
|
|
|
18
6
|
import { productsCollectionTemplate } from "./templates/products_template";
|
|
@@ -196,16 +184,12 @@ export function TemplateButton({
|
|
|
196
184
|
className={cn(
|
|
197
185
|
"my-2 rounded-md border mx-0 p-6 px-4 focus:outline-none transition ease-in-out duration-150 flex flex-row gap-4 items-center",
|
|
198
186
|
"text-gray-700 dark:text-gray-300",
|
|
199
|
-
"hover:border-
|
|
200
|
-
// "border-transparent hover:bg-primary hover:bg-opacity-10",
|
|
201
|
-
// "my-2 cursor-pointer max-w-sm p-6 border border-solid rounded-lg flex flex-row gap-4 items-center bg-gray-50 dark:bg-gray-800 ",
|
|
187
|
+
"hover:border-primary-dark hover:text-primary-dark dark:hover:text-primary focus:ring-primary hover:ring-1 hover:ring-primary",
|
|
202
188
|
"border-gray-400 dark:border-gray-600 "
|
|
203
189
|
)}
|
|
204
190
|
>
|
|
205
191
|
{icon}
|
|
206
|
-
<div
|
|
207
|
-
className={"flex flex-col items-start"}
|
|
208
|
-
>
|
|
192
|
+
<div className={"flex flex-col items-start"}>
|
|
209
193
|
|
|
210
194
|
<Typography variant={"subtitle1"}>
|
|
211
195
|
{title}
|
|
@@ -76,7 +76,7 @@ export function CollectionPropertiesEditorForm({
|
|
|
76
76
|
|
|
77
77
|
const snackbarController = useSnackbarController();
|
|
78
78
|
|
|
79
|
-
const largeLayout = useLargeLayout(
|
|
79
|
+
const largeLayout = useLargeLayout();
|
|
80
80
|
const asDialog = !largeLayout
|
|
81
81
|
|
|
82
82
|
// index of the selected property within the namespace
|