@addsign/moje-agenda-shared-lib 0.0.20 → 0.0.22

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,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- interface IPageTitleProps {
2
+ interface IPageTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
3
3
  textSize?: string;
4
4
  children?: React.ReactNode;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- interface ISectionTitleProps {
2
+ interface ISectionTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
3
3
  textSize?: string;
4
4
  children?: React.ReactNode;
5
5
  }
@@ -1,16 +1,17 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import { createContext as a } from "react";
3
- const c = a({}), d = ({
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { createContext as s } from "react";
3
+ const c = s({}), u = ({
4
4
  children: t,
5
5
  value: e
6
6
  }) => {
7
- const { userInfo: o, apiClient: r } = e, n = {
7
+ const { userInfo: o, apiClient: r, authApps: n } = e, i = {
8
8
  userInfo: o,
9
- apiClient: r
9
+ apiClient: r,
10
+ authApps: n
10
11
  };
11
- return /* @__PURE__ */ i(c.Provider, { value: n, children: t });
12
+ return /* @__PURE__ */ a(c.Provider, { value: i, children: t });
12
13
  };
13
14
  export {
14
15
  c as FederationContext,
15
- d as FederationContextProvider
16
+ u as FederationContextProvider
16
17
  };
package/dist/types.d.ts CHANGED
@@ -15,9 +15,13 @@ export interface IUserInfo {
15
15
  positionNumber: string;
16
16
  userId: string;
17
17
  }
18
+ export interface IAuthApps {
19
+ [index: number]: string;
20
+ }
18
21
  export interface IContextValue {
19
22
  userInfo: IUserInfo;
20
23
  apiClient: AxiosInstance;
24
+ authApps: IAuthApps;
21
25
  }
22
26
  export interface IOptionItem {
23
27
  value: string | number | null;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@addsign/moje-agenda-shared-lib",
3
3
  "private": false,
4
- "version": "0.0.20",
4
+ "version": "0.0.22",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",