jcicl 0.0.130 → 0.0.132

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.
@@ -4,14 +4,13 @@ var u = (t, e, r) => l(t, typeof e != "symbol" ? e + "" : e, r);
4
4
  import { P as c } from "./DefaultPropsProvider.js";
5
5
  import * as n from "react";
6
6
  import p from "react";
7
- const _ = c.oneOfType([c.func, c.object]);
8
- function d(t, e) {
7
+ const _ = c.oneOfType([c.func, c.object]), d = typeof window < "u" ? n.useLayoutEffect : n.useEffect;
8
+ function y(t, e) {
9
9
  typeof t == "function" ? t(e) : t && (t.current = e);
10
10
  }
11
- const y = typeof window < "u" ? n.useLayoutEffect : n.useEffect;
12
11
  function b(t) {
13
12
  const e = n.useRef(t);
14
- return y(() => {
13
+ return d(() => {
15
14
  e.current = t;
16
15
  }), n.useRef((...r) => (
17
16
  // @ts-expect-error hide `this`
@@ -21,7 +20,7 @@ function b(t) {
21
20
  function P(...t) {
22
21
  return n.useMemo(() => t.every((e) => e == null) ? null : (e) => {
23
22
  t.forEach((r) => {
24
- d(r, e);
23
+ y(r, e);
25
24
  });
26
25
  }, t);
27
26
  }
@@ -86,6 +85,6 @@ export {
86
85
  b as e,
87
86
  f,
88
87
  _ as r,
89
- d as s,
90
- y as u
88
+ y as s,
89
+ d as u
91
90
  };
@@ -1,9 +1,14 @@
1
- import { PropsWithChildren } from 'react';
1
+ import { default as React, PropsWithChildren } from 'react';
2
2
  import { AppHeaderProps, CustomLogoProps } from '../../../../../../../../../src/components/supercomposite/AppHeader/AppHeader';
3
3
  import { NavProps, NavItemProps } from '../../../../../../../../../src/components/supercomposite/Nav/Nav';
4
- import { AvatarProps } from '../../../../../../../../../src/components/base/Avatar';
4
+ import { IconProps } from '../../../../../../../../../src/components/base/Icon';
5
5
  import { TemplateThemeProps } from '../../../../../../../../../src/components/theme';
6
6
  type ReducedAppHeaderProps = Omit<AppHeaderProps, 'logoProps' | 'iconColor | loggedIn'>;
7
+ interface UserInfo {
8
+ name: string;
9
+ email: string;
10
+ avatar: React.ReactNode;
11
+ }
7
12
  export interface AppContainerProps {
8
13
  navProps: Omit<NavProps, 'themeColors'>;
9
14
  appHeaderProps?: ReducedAppHeaderProps;
@@ -14,12 +19,14 @@ export interface AppContainerProps {
14
19
  tablet: string;
15
20
  };
16
21
  themeColors?: Partial<TemplateThemeProps & {
17
- avatarColors: AvatarProps;
22
+ iconColors: IconProps;
18
23
  }>;
19
24
  logoProps?: Partial<CustomLogoProps>;
20
25
  userProfileMenuItems?: NavItemProps[];
21
26
  loggedIn?: boolean;
22
27
  mobileActionsPanelOpen?: boolean;
28
+ userInfo?: UserInfo;
29
+ userSettingsEnabled?: boolean;
23
30
  }
24
31
  declare const AppContainer: React.FC<PropsWithChildren<AppContainerProps>>;
25
32
  export default AppContainer;