@firecms/collection_editor 3.0.0-canary.144 → 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.umd.js
CHANGED
|
@@ -201,7 +201,7 @@
|
|
|
201
201
|
{
|
|
202
202
|
expanded: advancedPanelExpanded,
|
|
203
203
|
onExpandedChange: setAdvancedPanelExpanded,
|
|
204
|
-
title: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-row text-
|
|
204
|
+
title: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-row text-surface-500", children: [
|
|
205
205
|
/* @__PURE__ */ jsxRuntime.jsx(ui.SettingsIcon, {}),
|
|
206
206
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
207
207
|
ui.Typography,
|
|
@@ -1005,7 +1005,7 @@
|
|
|
1005
1005
|
initiallyExpanded: false,
|
|
1006
1006
|
asField: true,
|
|
1007
1007
|
innerClassName: "p-4",
|
|
1008
|
-
title: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-row text-
|
|
1008
|
+
title: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-row text-surface-500", children: [
|
|
1009
1009
|
/* @__PURE__ */ jsxRuntime.jsx(ui.RuleIcon, {}),
|
|
1010
1010
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1011
1011
|
ui.Typography,
|
|
@@ -1142,7 +1142,7 @@
|
|
|
1142
1142
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1143
1143
|
ui.ExpandablePanel,
|
|
1144
1144
|
{
|
|
1145
|
-
title: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-row text-
|
|
1145
|
+
title: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-row text-surface-500", children: [
|
|
1146
1146
|
/* @__PURE__ */ jsxRuntime.jsx(ui.FileUploadIcon, {}),
|
|
1147
1147
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1148
1148
|
ui.Typography,
|
|
@@ -1390,7 +1390,7 @@
|
|
|
1390
1390
|
!propertyConfig && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1391
1391
|
"div",
|
|
1392
1392
|
{
|
|
1393
|
-
className: "h-8 w-8 p-1 rounded-full shadow text-white bg-
|
|
1393
|
+
className: "h-8 w-8 p-1 rounded-full shadow text-white bg-surface-500",
|
|
1394
1394
|
children: /* @__PURE__ */ jsxRuntime.jsx(ui.FunctionsIcon, { color: "inherit", size: "medium" })
|
|
1395
1395
|
}
|
|
1396
1396
|
),
|
|
@@ -2926,7 +2926,7 @@
|
|
|
2926
2926
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2927
2927
|
ui.ExpandablePanel,
|
|
2928
2928
|
{
|
|
2929
|
-
title: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-row text-
|
|
2929
|
+
title: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-row text-surface-500", children: [
|
|
2930
2930
|
/* @__PURE__ */ jsxRuntime.jsx(ui.FileUploadIcon, {}),
|
|
2931
2931
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2932
2932
|
ui.Typography,
|
|
@@ -4031,7 +4031,7 @@
|
|
|
4031
4031
|
setSelectedPropertyKey(propertyKey);
|
|
4032
4032
|
setSelectedPropertyNamespace(namespace);
|
|
4033
4033
|
};
|
|
4034
|
-
const body = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-12 gap-2 h-full bg-
|
|
4034
|
+
const body = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-12 gap-2 h-full bg-surface-50 dark:bg-surface-900", children: [
|
|
4035
4035
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: ui.cls(
|
|
4036
4036
|
"p-4 md:p-8 pb-20 md:pb-20",
|
|
4037
4037
|
"col-span-12 lg:col-span-5 h-full overflow-auto",
|
|
@@ -5132,9 +5132,9 @@
|
|
|
5132
5132
|
onClick,
|
|
5133
5133
|
className: ui.cls(
|
|
5134
5134
|
"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",
|
|
5135
|
-
"text-
|
|
5135
|
+
"text-surface-700 dark:text-surface-accent-300",
|
|
5136
5136
|
"hover:border-primary-dark hover:text-primary-dark dark:hover:text-primary focus:ring-primary hover:ring-1 hover:ring-primary",
|
|
5137
|
-
"border-
|
|
5137
|
+
"border-surface-400 dark:border-surface-600 "
|
|
5138
5138
|
),
|
|
5139
5139
|
children: [
|
|
5140
5140
|
icon,
|
|
@@ -5844,7 +5844,7 @@
|
|
|
5844
5844
|
ui.Tabs,
|
|
5845
5845
|
{
|
|
5846
5846
|
value: currentView,
|
|
5847
|
-
className: ui.cls(ui.defaultBorderMixin, "justify-end bg-
|
|
5847
|
+
className: ui.cls(ui.defaultBorderMixin, "justify-end bg-surface-50 dark:bg-surface-950 border-b"),
|
|
5848
5848
|
onValueChange: (v) => setCurrentView(v),
|
|
5849
5849
|
children: [
|
|
5850
5850
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Tab, { value: "details", children: "Details" }),
|
|
@@ -6507,7 +6507,7 @@
|
|
|
6507
6507
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6508
6508
|
ui.IconButton,
|
|
6509
6509
|
{
|
|
6510
|
-
className: onHover ? "bg-white dark:bg-
|
|
6510
|
+
className: onHover ? "bg-white dark:bg-surface-950" : "hidden",
|
|
6511
6511
|
onClick: () => {
|
|
6512
6512
|
collectionEditorController.editProperty({
|
|
6513
6513
|
propertyKey,
|
|
@@ -6545,7 +6545,7 @@
|
|
|
6545
6545
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6546
6546
|
"div",
|
|
6547
6547
|
{
|
|
6548
|
-
className: "p-0.5 w-20 h-full flex items-center justify-center cursor-pointer bg-
|
|
6548
|
+
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",
|
|
6549
6549
|
onClick: () => {
|
|
6550
6550
|
collectionEditorController.editProperty({
|
|
6551
6551
|
editedCollectionId: collection.id,
|
|
@@ -6563,7 +6563,7 @@
|
|
|
6563
6563
|
}
|
|
6564
6564
|
function NewCollectionButton() {
|
|
6565
6565
|
const collectionEditorController = useCollectionEditorController();
|
|
6566
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-
|
|
6566
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-surface-50 dark:bg-surface-900 min-w-fit rounded", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6567
6567
|
ui.Button,
|
|
6568
6568
|
{
|
|
6569
6569
|
className: "min-w-fit",
|
|
@@ -6763,7 +6763,7 @@
|
|
|
6763
6763
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6764
6764
|
ui.Paper,
|
|
6765
6765
|
{
|
|
6766
|
-
className: "my-4 px-4 py-6 flex flex-col bg-white dark:bg-
|
|
6766
|
+
className: "my-4 px-4 py-6 flex flex-col bg-white dark:bg-surface-accent-800 gap-2",
|
|
6767
6767
|
children: [
|
|
6768
6768
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { variant: "subtitle2", className: "uppercase", children: "No collections found" }),
|
|
6769
6769
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { children: "Start building collections in FireCMS easily. Map them to your existing database data, import from files, or use our templates." }),
|