@firecms/core 3.0.0-canary.129 → 3.0.0-canary.130

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
@@ -9102,10 +9102,10 @@
9102
9102
  ),
9103
9103
  customView && /* @__PURE__ */ jsxRuntime.jsx("div", { style: {
9104
9104
  position: "sticky",
9105
- top: "56px",
9105
+ top: "48px",
9106
9106
  flexGrow: 1,
9107
- height: "calc(100% - 56px)",
9108
- marginTop: "calc(56px - 100vh)",
9107
+ height: "calc(100% - 48px)",
9108
+ marginTop: "calc(48px - 100vh)",
9109
9109
  left: 0
9110
9110
  }, children: customView })
9111
9111
  ] });
@@ -9241,21 +9241,7 @@
9241
9241
  }
9242
9242
  if (onFilterUpdate) onFilterUpdate(newFilterValue);
9243
9243
  }, [checkFilterCombination, currentSort, onFilterUpdate, sortByProperty]);
9244
- const buildEmptyView = React.useCallback(() => {
9245
- if (loading)
9246
- return /* @__PURE__ */ jsxRuntime.jsx(CircularProgressCenter, {});
9247
- return /* @__PURE__ */ jsxRuntime.jsxs(
9248
- "div",
9249
- {
9250
- className: "flex flex-col overflow-auto items-center justify-center p-2 gap-2 h-full",
9251
- children: [
9252
- /* @__PURE__ */ jsxRuntime.jsx(ui.AssignmentIcon, {}),
9253
- emptyComponent
9254
- ]
9255
- }
9256
- );
9257
- }, [emptyComponent, loading]);
9258
- const empty = data?.length ?? true;
9244
+ const empty = !loading && (data?.length ?? 0) === 0;
9259
9245
  const customView = error ? /* @__PURE__ */ jsxRuntime.jsxs(
9260
9246
  ui.CenteredView,
9261
9247
  {
@@ -9266,7 +9252,16 @@
9266
9252
  error?.message && /* @__PURE__ */ jsxRuntime.jsx(SafeLinkRenderer, { text: error.message })
9267
9253
  ]
9268
9254
  }
9269
- ) : empty ? buildEmptyView() : void 0;
9255
+ ) : empty ? loading ? /* @__PURE__ */ jsxRuntime.jsx(CircularProgressCenter, {}) : /* @__PURE__ */ jsxRuntime.jsxs(
9256
+ "div",
9257
+ {
9258
+ className: "flex flex-col overflow-auto items-center justify-center p-2 gap-2 h-full",
9259
+ children: [
9260
+ /* @__PURE__ */ jsxRuntime.jsx(ui.AssignmentIcon, {}),
9261
+ emptyComponent
9262
+ ]
9263
+ }
9264
+ ) : void 0;
9270
9265
  const virtualListController = {
9271
9266
  data,
9272
9267
  rowHeight,
@@ -19189,6 +19184,7 @@
19189
19184
  accessResponse?.message && /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { children: accessResponse?.message })
19190
19185
  ] });
19191
19186
  }
19187
+ console.log("FireCMS render");
19192
19188
  return /* @__PURE__ */ jsxRuntime.jsx(AnalyticsContext.Provider, { value: analyticsController, children: /* @__PURE__ */ jsxRuntime.jsx(CustomizationControllerContext.Provider, { value: customizationController, children: /* @__PURE__ */ jsxRuntime.jsx(
19193
19189
  UserConfigurationPersistenceContext.Provider,
19194
19190
  {