1mpacto-react-ui 0.1.4 → 0.1.6

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,7 +1,7 @@
1
1
  declare const _default: {
2
2
  "name": "1mpacto-react-ui",
3
3
  "private": false,
4
- "version": "0.1.4",
4
+ "version": "0.1.6",
5
5
  "type": "module",
6
6
  "engines": {
7
7
  "node": ">=20.19.4",
@@ -38,6 +38,7 @@ declare const _default: {
38
38
  "@storybook/test": "^8.4.7",
39
39
  "@types/js-cookie": "^3.0.6",
40
40
  "@types/node": "^20.14.10",
41
+ "@types/node-forge": "^1.3.14",
41
42
  "@types/react": "^18.3.3",
42
43
  "@types/react-dom": "^18.3.0",
43
44
  "@typescript-eslint/eslint-plugin": "^7.13.1",
@@ -117,6 +118,7 @@ declare const _default: {
117
118
  "date-fns": "^3.6.0",
118
119
  "js-cookie": "^3.0.5",
119
120
  "lossless-json": "^4.0.2",
121
+ "node-forge": "^1.3.1",
120
122
  "react-aria": "^3.33.1",
121
123
  "react-chartjs-2": "^5.2.0",
122
124
  "react-number-format": "^5.4.0",
@@ -126,6 +128,7 @@ declare const _default: {
126
128
  "react-virtuoso": "^4.7.11",
127
129
  "tinymce": "^7.9.1"
128
130
  }
129
- };
131
+ }
132
+ ;
130
133
 
131
134
  export default _default;
@@ -12,7 +12,8 @@ export interface ISidebarModule {
12
12
  svgIcon?: React.ReactNode | null;
13
13
  svgIconActive?: React.ReactNode | null;
14
14
  manualRoute?: boolean;
15
- propsLink?: (value: string) => object;
15
+ propsLink?: (value: string, item: ISidebarModule) => object;
16
+ [key: string]: unknown;
16
17
  }
17
18
  export interface ISidebar<T extends React.ElementType> extends React.HTMLAttributes<HTMLDivElement> {
18
19
  as?: T;
@@ -27,7 +28,7 @@ export interface ISidebar<T extends React.ElementType> extends React.HTMLAttribu
27
28
  toleranceWidthIconCompany?: number;
28
29
  footer?: React.ReactNode | React.ReactNode[] | (() => React.ReactNode) | (() => React.ReactNode[]);
29
30
  onClickItems?: (v: ISidebarModule) => void;
30
- propsLink?: (value: string) => object;
31
+ propsLink?: (value: string, item: ISidebarModule) => object;
31
32
  withInheritance?: boolean;
32
33
  }
33
34
  export interface IItemSidebar<T extends React.ElementType> extends ISidebarModule {
@@ -39,7 +40,7 @@ export interface IItemSidebar<T extends React.ElementType> extends ISidebarModul
39
40
  variant?: TVariantSidebarType;
40
41
  setShow: (v: string) => void;
41
42
  onClickItems?: (v: ISidebarModule) => void;
42
- propsLink?: (value: string) => object;
43
+ propsLink?: (value: string, item: ISidebarModule) => object;
43
44
  linkComponent?: T;
44
45
  }
45
46
  export interface ICloneElementSidebar {
@@ -65,3 +65,4 @@ export declare function parseFileName(fileName: string): {
65
65
  extension: string;
66
66
  };
67
67
  export declare const extractElementStringToOriginalValue: (value: string) => string;
68
+ export declare function encryptRSAOAEP<T = object>(data: T, base64Key: string): string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "1mpacto-react-ui",
3
3
  "private": false,
4
- "version": "0.1.4",
4
+ "version": "0.1.6",
5
5
  "type": "module",
6
6
  "engines": {
7
7
  "node": ">=20.19.4",
@@ -38,6 +38,7 @@
38
38
  "@storybook/test": "^8.4.7",
39
39
  "@types/js-cookie": "^3.0.6",
40
40
  "@types/node": "^20.14.10",
41
+ "@types/node-forge": "^1.3.14",
41
42
  "@types/react": "^18.3.3",
42
43
  "@types/react-dom": "^18.3.0",
43
44
  "@typescript-eslint/eslint-plugin": "^7.13.1",
@@ -117,6 +118,7 @@
117
118
  "date-fns": "^3.6.0",
118
119
  "js-cookie": "^3.0.5",
119
120
  "lossless-json": "^4.0.2",
121
+ "node-forge": "^1.3.1",
120
122
  "react-aria": "^3.33.1",
121
123
  "react-chartjs-2": "^5.2.0",
122
124
  "react-number-format": "^5.4.0",
@@ -126,4 +128,4 @@
126
128
  "react-virtuoso": "^4.7.11",
127
129
  "tinymce": "^7.9.1"
128
130
  }
129
- }
131
+ }