@firecms/core 3.0.0-canary.17 → 3.0.0-canary.18

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.
@@ -17,13 +17,13 @@ export type EntityPreviewProps = {
17
17
  * It is used by default in reference fields and whenever a reference is displayed.
18
18
  */
19
19
  export declare function EntityPreview({ actions, disabled, hover, collection: collectionProp, previewProperties, onClick, size, includeEntityNavigation, entity }: EntityPreviewProps): import("react/jsx-runtime").JSX.Element;
20
- type EntityPreviewContainerProps = {
20
+ export type EntityPreviewContainerProps = {
21
21
  children: React.ReactNode;
22
22
  hover?: boolean;
23
+ fullwidth?: boolean;
23
24
  size: PreviewSize;
24
25
  className?: string;
25
26
  style?: React.CSSProperties;
26
27
  onClick?: (e: React.SyntheticEvent) => void;
27
28
  };
28
29
  export declare const EntityPreviewContainer: React.FC<EntityPreviewContainerProps>;
29
- export {};
@@ -7,12 +7,12 @@ import { AppCheckTokenResult, AuthController, Authenticator, DataSourceDelegate,
7
7
  * @param getAppCheckToken
8
8
  * @param appCheckForceRefresh
9
9
  * @param storageSource
10
- * @param dataSource
10
+ * @param dataSourceDelegate
11
11
  */
12
- export declare function useValidateAuthenticator<UserType extends User = User, Controller extends AuthController<UserType> = AuthController<UserType>>({ disabled, authController, authentication, getAppCheckToken, appCheckForceRefresh, storageSource, dataSourceDelegate }: {
12
+ export declare function useValidateAuthenticator<UserType extends User = User, Controller extends AuthController<UserType> = AuthController<UserType>>({ disabled, authController, authenticator, getAppCheckToken, appCheckForceRefresh, storageSource, dataSourceDelegate }: {
13
13
  disabled?: boolean;
14
14
  authController: Controller;
15
- authentication?: boolean | Authenticator<UserType, Controller>;
15
+ authenticator?: boolean | Authenticator<UserType, Controller>;
16
16
  getAppCheckToken?: (forceRefresh: boolean) => Promise<AppCheckTokenResult> | undefined;
17
17
  appCheckForceRefresh?: boolean;
18
18
  dataSourceDelegate: DataSourceDelegate;
package/dist/index.es.js CHANGED
@@ -3097,7 +3097,7 @@ function Xn(e, t, r = "", i = 0, a = 10) {
3097
3097
  function Pu(e, t = 3) {
3098
3098
  const r = ce(e);
3099
3099
  z(() => {
3100
- Xn(e, r.current, "", 0, t), r.current = e;
3100
+ console.log("Changed props:"), Xn(e, r.current, "", 0, t), r.current = e;
3101
3101
  });
3102
3102
  }
3103
3103
  const Fs = "100vw", Qs = "55vw", Gi = "768px", Kn = I.createContext({}), Xe = (e) => {
@@ -4212,11 +4212,12 @@ const Ao = bt.forwardRef(({
4212
4212
  size: i,
4213
4213
  style: a,
4214
4214
  className: o,
4215
- ...s
4216
- }, c) => /* @__PURE__ */ n(
4215
+ fullwidth: s = !0,
4216
+ ...c
4217
+ }, l) => /* @__PURE__ */ n(
4217
4218
  "div",
4218
4219
  {
4219
- ref: c,
4220
+ ref: l,
4220
4221
  style: {
4221
4222
  ...a,
4222
4223
  // @ts-ignore
@@ -4224,6 +4225,7 @@ const Ao = bt.forwardRef(({
4224
4225
  },
4225
4226
  className: H(
4226
4227
  "bg-white dark:bg-gray-900",
4228
+ s ? "w-full" : "",
4227
4229
  "items-center",
4228
4230
  t ? "hover:bg-slate-50 dark:hover:bg-gray-800 group-hover:bg-slate-50 dark:group-hover:bg-gray-800" : "",
4229
4231
  i === "tiny" ? "p-1" : "p-2",
@@ -4232,10 +4234,10 @@ const Ao = bt.forwardRef(({
4232
4234
  Be,
4233
4235
  o
4234
4236
  ),
4235
- onClick: (l) => {
4236
- r && (l.preventDefault(), r(l));
4237
+ onClick: (d) => {
4238
+ r && (d.preventDefault(), r(d));
4237
4239
  },
4238
- ...s,
4240
+ ...c,
4239
4241
  children: e
4240
4242
  }
4241
4243
  ));
@@ -8595,7 +8597,7 @@ function uc({
8595
8597
  variant: "body2",
8596
8598
  color: "secondary",
8597
8599
  component: "div",
8598
- children: /* @__PURE__ */ n(cr, { source: t })
8600
+ children: /* @__PURE__ */ n(cr, { source: t, size: "small" })
8599
8601
  }
8600
8602
  )
8601
8603
  ]
@@ -14058,7 +14060,7 @@ function Yu({
14058
14060
  size: d,
14059
14061
  className: u
14060
14062
  }) {
14061
- const p = ke(), m = ge(() => p.getCollection(r), [r, p]), h = x((b) => {
14063
+ const p = ke(), m = ge(() => p.getCollection(r), [r, p.getCollection]), h = x((b) => {
14062
14064
  if (!i && o) {
14063
14065
  const w = b ? nt(b) : null;
14064
14066
  o?.({ reference: w, entity: b });
@@ -14358,10 +14360,7 @@ function $u(e) {
14358
14360
  }
14359
14361
  if (oe)
14360
14362
  return { ...F, ...oe };
14361
- }, [
14362
- t,
14363
- r
14364
- ]), q = x((M) => {
14363
+ }, [d]), q = x((M) => {
14365
14364
  let Z = [...m.current ?? []];
14366
14365
  if (!Z)
14367
14366
  throw Error("Collections have not been initialised yet");
@@ -14540,7 +14539,7 @@ function Hu() {
14540
14539
  function Zu({
14541
14540
  disabled: e,
14542
14541
  authController: t,
14543
- authentication: r,
14542
+ authenticator: r,
14544
14543
  getAppCheckToken: i,
14545
14544
  appCheckForceRefresh: a = !1,
14546
14545
  storageSource: o,