plataforma-fundacao-componentes 2.23.20 → 2.23.21

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.
@@ -0,0 +1,21 @@
1
+ export declare type MenuPermissions = {
2
+ programas?: string[];
3
+ roles?: string[];
4
+ hide?: boolean;
5
+ incongruencia?: boolean;
6
+ };
7
+ export declare type ItemBase = {
8
+ labelPrograma?: boolean;
9
+ id: string;
10
+ idFerramenta: string;
11
+ label: string;
12
+ url?: string;
13
+ permissoes: MenuPermissions;
14
+ novaAba: boolean;
15
+ ordem: number;
16
+ regex: string;
17
+ };
18
+ export interface Item extends ItemBase {
19
+ subItems?: ItemBase[];
20
+ icon: string;
21
+ }
@@ -1,4 +1,6 @@
1
+ import React from 'react';
1
2
  export declare const stringToDate: (value: string) => Date | null;
2
3
  export declare const dateToString: (date: Date) => string;
3
4
  export declare const getTwoNumbersIfNotTen: (num: number) => string;
4
5
  export declare const secondsToHours: (seconds: number) => string;
6
+ export declare const stringToReactElement: (str: string, props?: React.HTMLAttributes<HTMLDivElement> | undefined) => JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plataforma-fundacao-componentes",
3
- "version": "2.23.20",
3
+ "version": "2.23.21",
4
4
  "description": "Made with create-react-library",
5
5
  "author": "Guvidaletti",
6
6
  "license": "MIT",
@@ -47,6 +47,7 @@
47
47
  "@testing-library/jest-dom": "^4.2.4",
48
48
  "@testing-library/react": "^9.5.0",
49
49
  "@testing-library/user-event": "^7.2.1",
50
+ "@types/dompurify": "^2.4.0",
50
51
  "@types/jest": "^25.1.4",
51
52
  "@types/loadable__component": "^5.13.4",
52
53
  "@types/node": "^12.12.38",
@@ -89,6 +90,7 @@
89
90
  "@loadable/component": "^5.15.2",
90
91
  "axios": "^0.20.0",
91
92
  "chart.js": "^2.9.3",
93
+ "dompurify": "^2.4.1",
92
94
  "express": "^4.17.1",
93
95
  "html2canvas": "^1.4.1",
94
96
  "jspdf": "^2.5.1",