@firecms/core 3.0.0-canary.240 → 3.0.0-canary.241

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
@@ -4923,7 +4923,7 @@ function ImagePreview(t0) {
4923
4923
  }
4924
4924
  let t7;
4925
4925
  if ($[13] !== url) {
4926
- t7 = navigator && /* @__PURE__ */ jsx(Tooltip, { asChild: true, title: "Copy url to clipboard", side: "bottom", children: /* @__PURE__ */ jsx(IconButton, { variant: "filled", size: "small", onClick: (e) => {
4926
+ t7 = navigator && /* @__PURE__ */ jsx(Tooltip, { asChild: true, title: "Copy url to clipboard", side: "bottom", children: /* @__PURE__ */ jsx(IconButton, { variant: "filled", size: "smallest", onClick: (e) => {
4927
4927
  e.stopPropagation();
4928
4928
  e.preventDefault();
4929
4929
  return navigator.clipboard.writeText(url);
@@ -4942,7 +4942,7 @@ function ImagePreview(t0) {
4942
4942
  }
4943
4943
  let t9;
4944
4944
  if ($[16] !== url) {
4945
- t9 = /* @__PURE__ */ jsx(Tooltip, { title: "Open image in new tab", side: "bottom", children: /* @__PURE__ */ jsx(IconButton, { className: "invisible group-hover:visible", variant: "filled", component: "a", href: url, rel: "noopener noreferrer", target: "_blank", size: "small", onClick: _temp$q, children: t8 }) });
4945
+ t9 = /* @__PURE__ */ jsx(Tooltip, { title: "Open image in new tab", side: "bottom", children: /* @__PURE__ */ jsx(IconButton, { className: "invisible group-hover:visible", variant: "filled", component: "a", href: url, rel: "noopener noreferrer", target: "_blank", size: "smallest", onClick: _temp$q, children: t8 }) });
4946
4946
  $[16] = url;
4947
4947
  $[17] = t9;
4948
4948
  } else {
@@ -14948,7 +14948,7 @@ function SelectFieldBinding(t0) {
14948
14948
  const t10 = property.validation?.required;
14949
14949
  let t11;
14950
14950
  if ($[13] !== property.name || $[14] !== t10 || $[15] !== t9) {
14951
- t11 = /* @__PURE__ */ jsx(LabelWithIcon, { icon: t9, required: t10, title: property.name, className: "h-6 text-text-secondary dark:text-text-secondary-dark ml-3.5 my-0" });
14951
+ t11 = /* @__PURE__ */ jsx(LabelWithIcon, { icon: t9, required: t10, title: property.name, className: "h-8 text-text-secondary dark:text-text-secondary-dark ml-3.5 my-0" });
14952
14952
  $[13] = property.name;
14953
14953
  $[14] = t10;
14954
14954
  $[15] = t9;
@@ -15080,7 +15080,7 @@ function MultiSelectFieldBinding({
15080
15080
  ] }, enumKey);
15081
15081
  }, [enumValues, setValue, value]);
15082
15082
  return /* @__PURE__ */ jsxs(Fragment, { children: [
15083
- /* @__PURE__ */ jsx(MultiSelect, { className: "w-full mt-2", size, value: validValue ? value.map((v_0) => v_0.toString()) : [], disabled, modalPopover: true, label: /* @__PURE__ */ jsx(LabelWithIconAndTooltip, { propertyKey, icon: getIconForProperty(property, "small"), required: property.validation?.required, title: property.name, className: "h-6 text-text-secondary dark:text-text-secondary-dark ml-3.5" }), onValueChange: (updatedValue) => {
15083
+ /* @__PURE__ */ jsx(MultiSelect, { className: "w-full mt-2", size, value: validValue ? value.map((v_0) => v_0.toString()) : [], disabled, modalPopover: true, label: /* @__PURE__ */ jsx(LabelWithIconAndTooltip, { propertyKey, icon: getIconForProperty(property, "small"), required: property.validation?.required, title: property.name, className: "h-8 text-text-secondary dark:text-text-secondary-dark ml-3.5" }), onValueChange: (updatedValue) => {
15084
15084
  let newValue;
15085
15085
  if (of && of?.dataType === "number") {
15086
15086
  newValue = updatedValue ? updatedValue.map((e_1) => parseFloat(e_1)) : [];
@@ -16135,7 +16135,7 @@ function ReadOnlyFieldBinding(t0) {
16135
16135
  }
16136
16136
  let t1;
16137
16137
  if ($[0] !== minimalistView || $[1] !== property || $[2] !== propertyKey) {
16138
- t1 = !minimalistView && /* @__PURE__ */ jsx(LabelWithIconAndTooltip, { propertyKey, icon: getIconForProperty(property, "small"), required: property.validation?.required, title: property.name, className: "h-6 text-text-secondary dark:text-text-secondary-dark ml-3.5" });
16138
+ t1 = !minimalistView && /* @__PURE__ */ jsx(LabelWithIconAndTooltip, { propertyKey, icon: getIconForProperty(property, "small"), required: property.validation?.required, title: property.name, className: "h-8 text-text-secondary dark:text-text-secondary-dark ml-3.5" });
16139
16139
  $[0] = minimalistView;
16140
16140
  $[1] = property;
16141
16141
  $[2] = propertyKey;
@@ -16257,7 +16257,7 @@ function ReferenceFieldBindingInternal({
16257
16257
  referenceDialogController.open();
16258
16258
  };
16259
16259
  return /* @__PURE__ */ jsxs(Fragment, { children: [
16260
- !minimalistView && /* @__PURE__ */ jsx(LabelWithIconAndTooltip, { propertyKey, icon: getIconForProperty(property, "small"), required: property.validation?.required, title: property.name, className: "h-6 text-text-secondary dark:text-text-secondary-dark ml-3.5" }),
16260
+ !minimalistView && /* @__PURE__ */ jsx(LabelWithIconAndTooltip, { propertyKey, icon: getIconForProperty(property, "small"), required: property.validation?.required, title: property.name, className: "h-8 text-text-secondary dark:text-text-secondary-dark ml-3.5" }),
16261
16261
  !collection && /* @__PURE__ */ jsx(ErrorView, { error: "The specified collection does not exist. Check console" }),
16262
16262
  collection && /* @__PURE__ */ jsxs(Fragment, { children: [
16263
16263
  value && /* @__PURE__ */ jsx(ReferencePreview, { disabled: !property.path, previewProperties: property.previewProperties, hover: !disabled, size, onClick: disabled || isSubmitting ? void 0 : onEntryClick, reference: value, includeEntityLink: property.includeEntityLink, includeId: property.includeId }),
@@ -17950,7 +17950,7 @@ function MarkdownEditorFieldBinding({
17950
17950
  }, ...editorProps });
17951
17951
  if (minimalistView) return editor;
17952
17952
  return /* @__PURE__ */ jsxs(Fragment, { children: [
17953
- /* @__PURE__ */ jsx(LabelWithIconAndTooltip, { propertyKey, icon: getIconForProperty(property, "small"), required: property.validation?.required, title: property.name, className: "h-6 text-text-secondary dark:text-text-secondary-dark ml-3.5" }),
17953
+ /* @__PURE__ */ jsx(LabelWithIconAndTooltip, { propertyKey, icon: getIconForProperty(property, "small"), required: property.validation?.required, title: property.name, className: "h-8 text-text-secondary dark:text-text-secondary-dark ml-3.5" }),
17954
17954
  /* @__PURE__ */ jsx("div", { className: cls("rounded-md", fieldBackgroundMixin, disabled ? fieldBackgroundDisabledMixin : fieldBackgroundHoverMixin), children: editor }),
17955
17955
  /* @__PURE__ */ jsx(FieldHelperText, { includeDescription, showError, error, property })
17956
17956
  ] });
@@ -20485,7 +20485,8 @@ function useBuildNavigationController(props) {
20485
20485
  getParentReferencesFromPath: getAllParentReferencesForPath,
20486
20486
  getParentCollectionIds,
20487
20487
  convertIdsToPaths,
20488
- navigate
20488
+ navigate,
20489
+ plugins
20489
20490
  };
20490
20491
  }
20491
20492
  function encodePath(input) {
@@ -22424,7 +22425,7 @@ function FireCMS(props) {
22424
22425
  authController,
22425
22426
  storageSource,
22426
22427
  dataSourceDelegate,
22427
- plugins,
22428
+ plugins: pluginsProp,
22428
22429
  onAnalyticsEvent,
22429
22430
  propertyConfigs,
22430
22431
  entityViews,
@@ -22432,6 +22433,10 @@ function FireCMS(props) {
22432
22433
  navigationController,
22433
22434
  apiKey
22434
22435
  } = props;
22436
+ if (pluginsProp) {
22437
+ console.warn("The `plugins` prop is deprecated in the FireCMS component. You should pass your plugins to `useBuildNavigationController` instead.");
22438
+ }
22439
+ const plugins = navigationController.plugins ?? pluginsProp;
22435
22440
  const sideDialogsController = useBuildSideDialogsController();
22436
22441
  const sideEntityController = useBuildSideEntityController(navigationController, sideDialogsController, authController);
22437
22442
  const pluginsLoading = plugins?.some((p) => p.loading) ?? false;