@firecms/core 3.0.0-alpha.72 → 3.0.0-alpha.73

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@firecms/core",
3
3
  "type": "module",
4
- "version": "3.0.0-alpha.72",
4
+ "version": "3.0.0-alpha.73",
5
5
  "description": "Awesome Firebase/Firestore-based headless open-source CMS",
6
6
  "funding": {
7
7
  "url": "https://github.com/sponsors/firecmsco"
@@ -38,7 +38,7 @@
38
38
  "generateIcons": "ts-node --esm src/icons/generateIcons.ts"
39
39
  },
40
40
  "dependencies": {
41
- "@firecms/ui": "^3.0.0-alpha.72",
41
+ "@firecms/ui": "^3.0.0-alpha.73",
42
42
  "@fontsource/ibm-plex-mono": "^5.0.8",
43
43
  "@fontsource/roboto": "^5.0.8",
44
44
  "@hello-pangea/dnd": "^16.5.0",
@@ -107,7 +107,7 @@
107
107
  "dist",
108
108
  "src"
109
109
  ],
110
- "gitHead": "7f6599121c226abbb4fb4dccbe109b2c8ba6e23e",
110
+ "gitHead": "df625cc7bd6af087b7012d1c9ae77d3a6c17a320",
111
111
  "publishConfig": {
112
112
  "access": "public"
113
113
  }
@@ -71,9 +71,9 @@ export function CollectionTableToolbar(props: CollectionTableToolbarProps) {
71
71
 
72
72
  return (
73
73
  <div
74
- className={cn(defaultBorderMixin, "no-scrollbar min-h-[56px] overflow-x-auto px-4 bg-gray-50 dark:bg-gray-900 border-b flex flex-row justify-between items-center w-full")}>
74
+ className={cn(defaultBorderMixin, "no-scrollbar min-h-[56px] overflow-x-auto px-2 md:px-4 bg-gray-50 dark:bg-gray-900 border-b flex flex-row justify-between items-center w-full")}>
75
75
 
76
- <div className="flex items-center gap-2">
76
+ <div className="flex items-center gap-2 md:mr-4 mr-2">
77
77
 
78
78
  {props.title && <div className={"hidden lg:block"}>
79
79
  {props.title}
@@ -19,7 +19,6 @@ export const VirtualTableRow = React.memo<VirtualTableRowProps<any>>(
19
19
  }: VirtualTableRowProps<T>) {
20
20
 
21
21
  const onClick = useCallback((event: React.SyntheticEvent) => {
22
- console.debug("VirtualTableRow click");
23
22
  if (onRowClick)
24
23
  onRowClick({
25
24
  rowData,
@@ -74,7 +74,6 @@ export function EntitySidePanel(props: EntitySidePanelProps) {
74
74
 
75
75
  return (
76
76
  <>
77
-
78
77
  <ErrorBoundary>
79
78
  <EntityView
80
79
  {...props}
@@ -28,7 +28,7 @@ import {
28
28
  import { useAuthController, useDataSource, useFireCMSContext, useSideEntityController } from "../hooks";
29
29
  import { ErrorFocus } from "./components/ErrorFocus";
30
30
  import { CustomIdField } from "./components/CustomIdField";
31
- import { Button, cn, DialogActions, IconButton, Typography } from "@firecms/ui";
31
+ import { Alert, Button, cn, DialogActions, IconButton, Typography } from "@firecms/ui";
32
32
  import { ErrorBoundary } from "../components";
33
33
  import {
34
34
  copyEntityAction,
@@ -400,9 +400,7 @@ function EntityFormInternal<M extends Record<string, any>>({
400
400
  )).filter(Boolean));
401
401
  }
402
402
 
403
- return <div
404
- className="h-full overflow-auto"
405
- >
403
+ return <div className="h-full overflow-auto">
406
404
 
407
405
  {pluginActions.length > 0 && <div
408
406
  className={cn("w-full flex justify-end items-center sticky top-0 right-0 left-0 z-10 bg-opacity-60 bg-slate-200 dark:bg-opacity-60 dark:bg-slate-800 backdrop-blur-md")}>
@@ -413,12 +411,15 @@ function EntityFormInternal<M extends Record<string, any>>({
413
411
  className="pl-4 pr-4 pt-12 pb-16 md:pl-8"
414
412
  >
415
413
  <div
416
- className={`w-full py-2 flex items-center mt-${4 + (pluginActions ? 8 : 0)} lg:mt-${8 + (pluginActions ? 8 : 0)} mb-8`}>
414
+ className={`w-full py-2 flex flex-col items-start mt-${4 + (pluginActions ? 8 : 0)} lg:mt-${8 + (pluginActions ? 8 : 0)} mb-8`}>
417
415
 
418
416
  <Typography
419
417
  className={"mt-4 flex-grow " + inputCollection.hideIdFromForm ? "mb-2" : "mb-0"}
420
418
  variant={"h4"}>{inputCollection.singularName ?? inputCollection.name}
421
419
  </Typography>
420
+ <Alert color={"base"} className={"w-full"} size={"small"}>
421
+ <code className={"text-sm select-all"}>{path}/{entityId}</code>
422
+ </Alert>
422
423
  </div>
423
424
 
424
425
  {!hideId &&
@@ -202,7 +202,7 @@ function FieldInternal<T extends CMSType, CustomProps, M extends Record<string,
202
202
  (!Array.isArray(error) || !!error.filter((e: any) => !!e).length);
203
203
 
204
204
  const WrappedComponent: ComponentType<FieldProps<T, any, M>> | null = useWrappedComponent(context.path, context.collection, propertyKey, property, Component, plugins);
205
- const UsedComponent: ComponentType<FieldProps<T>> = Component;
205
+ const UsedComponent: ComponentType<FieldProps<T>> = WrappedComponent ?? Component;
206
206
 
207
207
  const isSubmitting = fieldProps.form.isSubmitting;
208
208