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.
- package/dist/contexts/OsocnaAppProvider.d.ts +3 -1
- package/dist/index.js +25 -23
- package/package.json +1 -1
|
@@ -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
|
-
|
|
19796
|
-
|
|
19795
|
+
appLinks: t,
|
|
19796
|
+
children: r,
|
|
19797
|
+
oidcConfig: n
|
|
19797
19798
|
}) => {
|
|
19798
|
-
const [
|
|
19799
|
-
|
|
19800
|
-
}, []),
|
|
19801
|
-
|
|
19802
|
-
}, []),
|
|
19803
|
-
|
|
19804
|
-
}, []),
|
|
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:
|
|
19807
|
-
setTabTitle:
|
|
19808
|
-
setAppHeaderTools:
|
|
19807
|
+
setAppTitle: f,
|
|
19808
|
+
setTabTitle: d,
|
|
19809
|
+
setAppHeaderTools: p
|
|
19809
19810
|
}),
|
|
19810
|
-
[
|
|
19811
|
-
),
|
|
19812
|
-
(
|
|
19813
|
-
|
|
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:
|
|
19818
|
+
return /* @__PURE__ */ J(d6.Provider, { value: v, children: /* @__PURE__ */ J(
|
|
19818
19819
|
r0,
|
|
19819
19820
|
{
|
|
19820
|
-
appTitle:
|
|
19821
|
-
|
|
19822
|
-
|
|
19821
|
+
appTitle: i,
|
|
19822
|
+
appLinks: t,
|
|
19823
|
+
tabTitle: a,
|
|
19824
|
+
oidcSettings: n,
|
|
19823
19825
|
requiredPermissions: ["afiliados.ver"],
|
|
19824
|
-
appHeaderTools:
|
|
19825
|
-
onAuthChanged:
|
|
19826
|
-
children:
|
|
19826
|
+
appHeaderTools: u,
|
|
19827
|
+
onAuthChanged: h,
|
|
19828
|
+
children: l?.token?.token ? r : null
|
|
19827
19829
|
}
|
|
19828
19830
|
) });
|
|
19829
19831
|
};
|