@firecms/collection_editor 3.0.0-canary.143 → 3.0.0-canary.145
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 +13 -13
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +13 -13
- package/dist/index.umd.js.map +1 -1
- package/dist/types/config_permissions.d.ts +2 -2
- package/dist/types/persisted_collection.d.ts +1 -1
- package/dist/useCollectionEditorPlugin.d.ts +4 -4
- package/package.json +8 -8
- package/src/types/config_permissions.ts +1 -1
- package/src/types/persisted_collection.ts +2 -2
- package/src/ui/CollectionViewHeaderAction.tsx +1 -1
- package/src/ui/NewCollectionButton.tsx +1 -1
- package/src/ui/PropertyAddColumnComponent.tsx +2 -2
- package/src/ui/collection_editor/CollectionDetailsForm.tsx +1 -1
- package/src/ui/collection_editor/CollectionEditorDialog.tsx +1 -1
- package/src/ui/collection_editor/CollectionEditorWelcomeView.tsx +2 -2
- package/src/ui/collection_editor/CollectionPropertiesEditorForm.tsx +1 -1
- package/src/ui/collection_editor/PropertyFieldPreview.tsx +1 -1
- package/src/ui/collection_editor/properties/MarkdownPropertyField.tsx +1 -1
- package/src/ui/collection_editor/properties/StoragePropertyField.tsx +1 -1
- package/src/ui/collection_editor/properties/validation/ValidationPanel.tsx +1 -1
- package/src/useCollectionEditorPlugin.tsx +6 -6
package/dist/index.es.js
CHANGED
|
@@ -193,7 +193,7 @@ function CollectionDetailsForm({
|
|
|
193
193
|
{
|
|
194
194
|
expanded: advancedPanelExpanded,
|
|
195
195
|
onExpandedChange: setAdvancedPanelExpanded,
|
|
196
|
-
title: /* @__PURE__ */ jsxs("div", { className: "flex flex-row text-
|
|
196
|
+
title: /* @__PURE__ */ jsxs("div", { className: "flex flex-row text-surface-500", children: [
|
|
197
197
|
/* @__PURE__ */ jsx(SettingsIcon, {}),
|
|
198
198
|
/* @__PURE__ */ jsx(
|
|
199
199
|
Typography,
|
|
@@ -997,7 +997,7 @@ function ValidationPanel({
|
|
|
997
997
|
initiallyExpanded: false,
|
|
998
998
|
asField: true,
|
|
999
999
|
innerClassName: "p-4",
|
|
1000
|
-
title: /* @__PURE__ */ jsxs("div", { className: "flex flex-row text-
|
|
1000
|
+
title: /* @__PURE__ */ jsxs("div", { className: "flex flex-row text-surface-500", children: [
|
|
1001
1001
|
/* @__PURE__ */ jsx(RuleIcon, {}),
|
|
1002
1002
|
/* @__PURE__ */ jsx(
|
|
1003
1003
|
Typography,
|
|
@@ -1134,7 +1134,7 @@ function StoragePropertyField({
|
|
|
1134
1134
|
/* @__PURE__ */ jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsx(
|
|
1135
1135
|
ExpandablePanel,
|
|
1136
1136
|
{
|
|
1137
|
-
title: /* @__PURE__ */ jsxs("div", { className: "flex flex-row text-
|
|
1137
|
+
title: /* @__PURE__ */ jsxs("div", { className: "flex flex-row text-surface-500", children: [
|
|
1138
1138
|
/* @__PURE__ */ jsx(FileUploadIcon, {}),
|
|
1139
1139
|
/* @__PURE__ */ jsx(
|
|
1140
1140
|
Typography,
|
|
@@ -1382,7 +1382,7 @@ function NonEditablePropertyPreview({
|
|
|
1382
1382
|
!propertyConfig && /* @__PURE__ */ jsx(
|
|
1383
1383
|
"div",
|
|
1384
1384
|
{
|
|
1385
|
-
className: "h-8 w-8 p-1 rounded-full shadow text-white bg-
|
|
1385
|
+
className: "h-8 w-8 p-1 rounded-full shadow text-white bg-surface-500",
|
|
1386
1386
|
children: /* @__PURE__ */ jsx(FunctionsIcon, { color: "inherit", size: "medium" })
|
|
1387
1387
|
}
|
|
1388
1388
|
),
|
|
@@ -2918,7 +2918,7 @@ function MarkdownPropertyField({
|
|
|
2918
2918
|
/* @__PURE__ */ jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsx(
|
|
2919
2919
|
ExpandablePanel,
|
|
2920
2920
|
{
|
|
2921
|
-
title: /* @__PURE__ */ jsxs("div", { className: "flex flex-row text-
|
|
2921
|
+
title: /* @__PURE__ */ jsxs("div", { className: "flex flex-row text-surface-500", children: [
|
|
2922
2922
|
/* @__PURE__ */ jsx(FileUploadIcon, {}),
|
|
2923
2923
|
/* @__PURE__ */ jsx(
|
|
2924
2924
|
Typography,
|
|
@@ -4023,7 +4023,7 @@ function CollectionPropertiesEditorForm({
|
|
|
4023
4023
|
setSelectedPropertyKey(propertyKey);
|
|
4024
4024
|
setSelectedPropertyNamespace(namespace);
|
|
4025
4025
|
};
|
|
4026
|
-
const body = /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-12 gap-2 h-full bg-
|
|
4026
|
+
const body = /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-12 gap-2 h-full bg-surface-50 dark:bg-surface-900", children: [
|
|
4027
4027
|
/* @__PURE__ */ jsxs("div", { className: cls(
|
|
4028
4028
|
"p-4 md:p-8 pb-20 md:pb-20",
|
|
4029
4029
|
"col-span-12 lg:col-span-5 h-full overflow-auto",
|
|
@@ -5124,9 +5124,9 @@ function TemplateButton({
|
|
|
5124
5124
|
onClick,
|
|
5125
5125
|
className: cls(
|
|
5126
5126
|
"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",
|
|
5127
|
-
"text-
|
|
5127
|
+
"text-surface-700 dark:text-surface-accent-300",
|
|
5128
5128
|
"hover:border-primary-dark hover:text-primary-dark dark:hover:text-primary focus:ring-primary hover:ring-1 hover:ring-primary",
|
|
5129
|
-
"border-
|
|
5129
|
+
"border-surface-400 dark:border-surface-600 "
|
|
5130
5130
|
),
|
|
5131
5131
|
children: [
|
|
5132
5132
|
icon,
|
|
@@ -5836,7 +5836,7 @@ function CollectionEditorInternal({
|
|
|
5836
5836
|
Tabs,
|
|
5837
5837
|
{
|
|
5838
5838
|
value: currentView,
|
|
5839
|
-
className: cls(defaultBorderMixin, "justify-end bg-
|
|
5839
|
+
className: cls(defaultBorderMixin, "justify-end bg-surface-50 dark:bg-surface-950 border-b"),
|
|
5840
5840
|
onValueChange: (v) => setCurrentView(v),
|
|
5841
5841
|
children: [
|
|
5842
5842
|
/* @__PURE__ */ jsx(Tab, { value: "details", children: "Details" }),
|
|
@@ -6499,7 +6499,7 @@ function CollectionViewHeaderAction({
|
|
|
6499
6499
|
children: /* @__PURE__ */ jsx(
|
|
6500
6500
|
IconButton,
|
|
6501
6501
|
{
|
|
6502
|
-
className: onHover ? "bg-white dark:bg-
|
|
6502
|
+
className: onHover ? "bg-white dark:bg-surface-950" : "hidden",
|
|
6503
6503
|
onClick: () => {
|
|
6504
6504
|
collectionEditorController.editProperty({
|
|
6505
6505
|
propertyKey,
|
|
@@ -6537,7 +6537,7 @@ function PropertyAddColumnComponent({
|
|
|
6537
6537
|
children: /* @__PURE__ */ jsx(
|
|
6538
6538
|
"div",
|
|
6539
6539
|
{
|
|
6540
|
-
className: "p-0.5 w-20 h-full flex items-center justify-center cursor-pointer bg-
|
|
6540
|
+
className: "p-0.5 w-20 h-full flex items-center justify-center cursor-pointer bg-surface-100 bg-opacity-40 hover:bg-surface-100 dark:bg-surface-950 dark:bg-opacity-40 dark:hover:bg-surface-950",
|
|
6541
6541
|
onClick: () => {
|
|
6542
6542
|
collectionEditorController.editProperty({
|
|
6543
6543
|
editedCollectionId: collection.id,
|
|
@@ -6555,7 +6555,7 @@ function PropertyAddColumnComponent({
|
|
|
6555
6555
|
}
|
|
6556
6556
|
function NewCollectionButton() {
|
|
6557
6557
|
const collectionEditorController = useCollectionEditorController();
|
|
6558
|
-
return /* @__PURE__ */ jsx("div", { className: "bg-
|
|
6558
|
+
return /* @__PURE__ */ jsx("div", { className: "bg-surface-50 dark:bg-surface-900 min-w-fit rounded", children: /* @__PURE__ */ jsxs(
|
|
6559
6559
|
Button,
|
|
6560
6560
|
{
|
|
6561
6561
|
className: "min-w-fit",
|
|
@@ -6755,7 +6755,7 @@ function IntroWidget({}) {
|
|
|
6755
6755
|
return /* @__PURE__ */ jsxs(
|
|
6756
6756
|
Paper,
|
|
6757
6757
|
{
|
|
6758
|
-
className: "my-4 px-4 py-6 flex flex-col bg-white dark:bg-
|
|
6758
|
+
className: "my-4 px-4 py-6 flex flex-col bg-white dark:bg-surface-accent-800 gap-2",
|
|
6759
6759
|
children: [
|
|
6760
6760
|
/* @__PURE__ */ jsx(Typography, { variant: "subtitle2", className: "uppercase", children: "No collections found" }),
|
|
6761
6761
|
/* @__PURE__ */ jsx(Typography, { children: "Start building collections in FireCMS easily. Map them to your existing database data, import from files, or use our templates." }),
|