osocna-react-tailwind 0.0.36 → 0.0.37

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.
@@ -1,8 +1,10 @@
1
1
  import { ReactNode } from 'react';
2
+ import { AppLinks } from 'osocna-shared/OsocnaContext';
2
3
  interface OsocnaAppProviderProps {
3
4
  appTitle: string;
5
+ appLinks?: Array<AppLinks>;
4
6
  children: ReactNode;
5
7
  oidcConfig: any;
6
8
  }
7
- export declare const OsocnaAppProvider: ({ appTitle, children, oidcConfig, }: OsocnaAppProviderProps) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const OsocnaAppProvider: ({ appTitle, appLinks, children, oidcConfig, }: OsocnaAppProviderProps) => import("react/jsx-runtime").JSX.Element;
8
10
  export {};
package/dist/index.js CHANGED
@@ -19792,38 +19792,40 @@ const s6 = () => {
19792
19792
  setAppHeaderTools: f6
19793
19793
  }), J6 = ({
19794
19794
  appTitle: e,
19795
- children: t,
19796
- oidcConfig: r
19795
+ appLinks: t,
19796
+ children: r,
19797
+ oidcConfig: n
19797
19798
  }) => {
19798
- const [n, i] = ge(e), [A, a] = ge(""), [o, u] = ge(null), [s, l] = ge(void 0), c = me((h) => {
19799
- i(h);
19800
- }, []), f = me((h) => {
19801
- a(h);
19802
- }, []), d = me((h) => {
19803
- u(h);
19804
- }, []), p = Er(
19799
+ const [i, A] = ge(e), [a, o] = ge(""), [u, s] = ge(null), [l, c] = ge(void 0), f = me((m) => {
19800
+ A(m);
19801
+ }, []), d = me((m) => {
19802
+ o(m);
19803
+ }, []), p = me((m) => {
19804
+ s(m);
19805
+ }, []), v = Er(
19805
19806
  () => ({
19806
- setAppTitle: c,
19807
- setTabTitle: f,
19808
- setAppHeaderTools: d
19807
+ setAppTitle: f,
19808
+ setTabTitle: d,
19809
+ setAppHeaderTools: p
19809
19810
  }),
19810
- [c, f, d]
19811
- ), v = me(
19812
- (h) => {
19813
- l(h), t0(() => h?.token?.token);
19811
+ [f, d, p]
19812
+ ), h = me(
19813
+ (m) => {
19814
+ c(m), t0(() => m?.token?.token);
19814
19815
  },
19815
19816
  []
19816
19817
  );
19817
- return /* @__PURE__ */ J(d6.Provider, { value: p, children: /* @__PURE__ */ J(
19818
+ return /* @__PURE__ */ J(d6.Provider, { value: v, children: /* @__PURE__ */ J(
19818
19819
  r0,
19819
19820
  {
19820
- appTitle: n,
19821
- tabTitle: A,
19822
- oidcSettings: r,
19821
+ appTitle: i,
19822
+ appLinks: t,
19823
+ tabTitle: a,
19824
+ oidcSettings: n,
19823
19825
  requiredPermissions: ["afiliados.ver"],
19824
- appHeaderTools: o,
19825
- onAuthChanged: v,
19826
- children: s?.token?.token ? t : null
19826
+ appHeaderTools: u,
19827
+ onAuthChanged: h,
19828
+ children: l?.token?.token ? r : null
19827
19829
  }
19828
19830
  ) });
19829
19831
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "osocna-react-tailwind",
3
- "version": "0.0.36",
3
+ "version": "0.0.37",
4
4
  "description": "A React component library built with Tailwind CSS v4",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",