@firecms/collection_editor 3.0.0-canary.245 → 3.0.0-canary.247
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "react-compiler-runtime";
|
|
3
|
-
import { FieldCaption, SearchIconsView, toSnakeCase, singular, IconForView, ArrayContainer, serializeRegExp, useSnackbarController, resolveEnumValues, isPropertyBuilder, useCustomizationController, getFieldConfig, ErrorBoundary, PropertyConfigBadge, unslugify, useNavigationController, mergeDeep, DEFAULT_FIELD_CONFIGS, getFieldId, isValidRegExp,
|
|
3
|
+
import { FieldCaption, SearchIconsView, toSnakeCase, singular, IconForView, ArrayContainer, serializeRegExp, useSnackbarController, resolveEnumValues, isPropertyBuilder, useCustomizationController, getFieldConfig, ErrorBoundary, PropertyConfigBadge, unslugify, useNavigationController, mergeDeep, DEFAULT_FIELD_CONFIGS, getFieldId, isValidRegExp, ConfirmationDialog, isEmptyObject, useLargeLayout, makePropertiesEditable, resolveEntityView, useAuthController, useSelectionController, CircularProgressCenter, EntityCollectionTable, slugify, randomString, removeUndefined, ErrorView, removeInitialAndTrailingSlashes, getDefaultPropertiesOrder, joinCollectionLists } from "@firecms/core";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import React__default, { useContext, useState, useEffect, useMemo, useRef, useDeferredValue } from "react";
|
|
6
6
|
import equal from "react-fast-compare";
|
|
@@ -5982,7 +5982,7 @@ function PropertyEditFormFields(t0) {
|
|
|
5982
5982
|
let t6;
|
|
5983
5983
|
if ($[14] !== errors || $[15] !== onError || $[16] !== propertyNamespace || $[17] !== values?.id) {
|
|
5984
5984
|
t6 = () => {
|
|
5985
|
-
if (values?.id && onError
|
|
5985
|
+
if (values?.id && onError) {
|
|
5986
5986
|
onError(values?.id, propertyNamespace, errors);
|
|
5987
5987
|
}
|
|
5988
5988
|
};
|
|
@@ -10223,7 +10223,7 @@ function HomePageEditorCollectionAction(t0) {
|
|
|
10223
10223
|
const deleteCollection = t3;
|
|
10224
10224
|
let t4;
|
|
10225
10225
|
if ($[11] !== permissions.deleteCollections) {
|
|
10226
|
-
t4 = permissions.deleteCollections && /* @__PURE__ */ jsx(Menu, { trigger: /* @__PURE__ */ jsx(IconButton, { children: /* @__PURE__ */ jsx(MoreVertIcon, { size: "small" }) }), children: /* @__PURE__ */ jsxs(MenuItem, { dense: true, onClick: (event) => {
|
|
10226
|
+
t4 = permissions.deleteCollections && /* @__PURE__ */ jsx(Menu, { trigger: /* @__PURE__ */ jsx(IconButton, { size: "small", children: /* @__PURE__ */ jsx(MoreVertIcon, { size: "small" }) }), children: /* @__PURE__ */ jsxs(MenuItem, { dense: true, onClick: (event) => {
|
|
10227
10227
|
event.preventDefault();
|
|
10228
10228
|
event.stopPropagation();
|
|
10229
10229
|
setDeleteRequested(true);
|
|
@@ -10238,7 +10238,7 @@ function HomePageEditorCollectionAction(t0) {
|
|
|
10238
10238
|
}
|
|
10239
10239
|
let t5;
|
|
10240
10240
|
if ($[13] !== onEditCollectionClicked || $[14] !== permissions.editCollections) {
|
|
10241
|
-
t5 = permissions.editCollections && /* @__PURE__ */ jsx(IconButton, { onClick: (event_0) => {
|
|
10241
|
+
t5 = permissions.editCollections && /* @__PURE__ */ jsx(IconButton, { size: "small", onClick: (event_0) => {
|
|
10242
10242
|
onEditCollectionClicked();
|
|
10243
10243
|
}, children: /* @__PURE__ */ jsx(SettingsIcon, { size: "small" }) });
|
|
10244
10244
|
$[13] = onEditCollectionClicked;
|