@vertigis/react-ui 9.9.0 → 9.9.3
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/package.json +5 -4
- package/styles/createTheme.js +2 -1
- package/utils/markdown.js +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vertigis/react-ui",
|
|
3
|
-
"version": "9.9.
|
|
3
|
+
"version": "9.9.3",
|
|
4
4
|
"description": "Utilities and React components used in VertiGIS applications.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vertigis",
|
|
@@ -21,15 +21,16 @@
|
|
|
21
21
|
"@mui/icons-material": "5.5.1",
|
|
22
22
|
"@mui/material": "5.5.2",
|
|
23
23
|
"clsx": "^1.1.1",
|
|
24
|
-
"lodash": "^4.
|
|
24
|
+
"lodash.escape": "^4.0.1",
|
|
25
|
+
"lodash.merge": "^4.6.2",
|
|
25
26
|
"marked": "^4.0.12",
|
|
26
27
|
"tslib": "^2.1.0"
|
|
27
28
|
},
|
|
28
29
|
"devDependencies": {
|
|
29
|
-
"@geocortex/icons": "5.0.
|
|
30
|
+
"@geocortex/icons": "5.0.426",
|
|
30
31
|
"@testing-library/react": "^12.1.2",
|
|
31
32
|
"@testing-library/user-event": "^13.5.0",
|
|
32
|
-
"@types/lodash": "^4.
|
|
33
|
+
"@types/lodash.merge": "^4.6.7",
|
|
33
34
|
"@types/marked": "^4.0.2",
|
|
34
35
|
"@types/react": "^17.0.34",
|
|
35
36
|
"@types/react-dom": "^17.0.11",
|
package/styles/createTheme.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { alpha, createTheme as createMuiTheme, } from "@mui/material/styles";
|
|
2
|
-
import merge from "lodash
|
|
2
|
+
import merge from "lodash.merge";
|
|
3
3
|
import blue from "../colors/blue.js";
|
|
4
4
|
import common from "../colors/common.js";
|
|
5
5
|
import green from "../colors/green.js";
|
|
@@ -846,6 +846,7 @@ function createTheme(options = {}) {
|
|
|
846
846
|
// If we are using light mode, then we want to use our defined light theme palette
|
|
847
847
|
const modeOptions = mode === "light" ? lightThemeOverrides : {};
|
|
848
848
|
const { dense = false, ...overrides } = options;
|
|
849
|
+
/* eslint-disable @typescript-eslint/no-unsafe-call */
|
|
849
850
|
const mergedOptions = merge({}, defaultOptions, modeOptions, dense ? defaultDenseOptions : {}, overrides);
|
|
850
851
|
const createdTheme = createMuiTheme(mergedOptions);
|
|
851
852
|
return merge({}, getOverrides(createdTheme), createdTheme);
|
package/utils/markdown.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import escapeHtml from "lodash
|
|
1
|
+
import escapeHtml from "lodash.escape";
|
|
2
2
|
import { marked } from "marked";
|
|
3
3
|
/**
|
|
4
4
|
* A custom marked renderer that escapes HTML in the original markdown.
|
|
5
5
|
*/
|
|
6
6
|
class EscapeHtmlRenderer extends marked.Renderer {
|
|
7
7
|
html(html) {
|
|
8
|
+
/* eslint-disable @typescript-eslint/no-unsafe-call */
|
|
8
9
|
return escapeHtml(html);
|
|
9
10
|
}
|
|
10
11
|
}
|