@firecms/core 3.0.0-canary.256 → 3.0.0-canary.258

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.umd.js CHANGED
@@ -11823,7 +11823,7 @@
11823
11823
  sortBy: initialSortUrl
11824
11824
  } = parseFilterAndSort(window.location.search);
11825
11825
  const [filterValues_0, setFilterValues] = React.useState(forceFilter ?? (updateUrl ? initialFilterUrl : void 0) ?? initialFilter ?? void 0);
11826
- const [sortBy_0, setSortBy] = React.useState(initialSortUrl ?? initialSortInternal);
11826
+ const [sortBy_0, setSortBy] = React.useState((updateUrl ? initialSortUrl : void 0) ?? initialSortInternal);
11827
11827
  useUpdateUrl(filterValues_0, sortBy_0, searchString, updateUrl);
11828
11828
  const collectionScroll = scrollRestoration?.getCollectionScroll(fullPath, filterValues_0);
11829
11829
  const initialItemCount = collectionScroll?.data.length ?? pageSize;
@@ -12411,7 +12411,7 @@
12411
12411
  if (collection) {
12412
12412
  addRecentId(collection.id, entity.id);
12413
12413
  }
12414
- const path = collection?.collectionGroup ? collection.path : fullPath ?? collection?.path ?? entity.path;
12414
+ const path = collection?.collectionGroup ? entity.path : fullPath ?? collection?.path ?? entity.path;
12415
12415
  const newFullIdPath = collection?.collectionGroup ? collection.id : fullIdPath ?? collection?.id ?? entity.path;
12416
12416
  const defaultSelectedView = resolveDefaultSelectedView(collection ? collection.defaultSelectedView : void 0, {
12417
12417
  status: "existing",
@@ -15210,7 +15210,7 @@
15210
15210
  const formView = /* @__PURE__ */ jsxRuntime.jsx(ErrorBoundary, { children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
15211
15211
  !Builder && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full py-2 flex flex-col items-start my-4 lg:my-6", children: [
15212
15212
  /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { className: "my-4 flex-grow line-clamp-1 " + (collection.hideIdFromForm ? "mb-6" : ""), variant: "h4", children: title ?? collection.singularName ?? collection.name }),
15213
- showEntityPath && /* @__PURE__ */ jsxRuntime.jsx(ui.Alert, { color: "base", className: "w-full", size: "small", children: /* @__PURE__ */ jsxRuntime.jsxs("code", { className: "text-xs select-all text-text-secondary dark:text-text-secondary-dark", children: [
15213
+ showEntityPath && /* @__PURE__ */ jsxRuntime.jsx(ui.Alert, { color: "base", outerClassName: "w-full", size: "small", children: /* @__PURE__ */ jsxRuntime.jsxs("code", { className: "text-xs select-all text-text-secondary dark:text-text-secondary-dark", children: [
15214
15214
  entity?.path ?? path,
15215
15215
  "/",
15216
15216
  entityId