@splunk/react-page 6.0.0 → 6.0.1
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/CHANGELOG.md +4 -0
- package/lib/index.js +4 -2
- package/package.json +11 -6
package/CHANGELOG.md
CHANGED
package/lib/index.js
CHANGED
|
@@ -374,10 +374,12 @@ function layout(element) {
|
|
|
374
374
|
document.title = pageTitle;
|
|
375
375
|
}
|
|
376
376
|
|
|
377
|
-
var loadingContainer = document.createElement('div');
|
|
377
|
+
var loadingContainer = document.createElement('div'); // The "theme" in enterprise used to be "enterprise" instead of "light"...
|
|
378
|
+
|
|
379
|
+
var colorScheme = theme === 'light' || theme === 'enterprise' ? 'light' : 'dark';
|
|
378
380
|
var splunkTheme = {
|
|
379
381
|
family: 'enterprise',
|
|
380
|
-
colorScheme:
|
|
382
|
+
colorScheme: colorScheme,
|
|
381
383
|
density: 'comfortable'
|
|
382
384
|
};
|
|
383
385
|
document.body.appendChild(loadingContainer);
|
package/package.json
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@splunk/react-page",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.1",
|
|
4
4
|
"description": "Load React components into the latest layout from Splunk Enterprise",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"author": "Splunk Inc.",
|
|
8
8
|
"scripts": {
|
|
9
|
-
"build": "cross-env NODE_ENV=production webpack
|
|
9
|
+
"build": "cross-env NODE_ENV=production webpack",
|
|
10
|
+
"docs": "NODE_ENV=production webpack --config docs.gen.webpack.config.js",
|
|
11
|
+
"docs:publish": "cicd-publish-docs docs --force",
|
|
12
|
+
"docs:start": "webpack serve --config docs.gen.webpack.config.js",
|
|
10
13
|
"eslint": "eslint src --ext \".js,.jsx\"",
|
|
11
14
|
"eslint:fix": "eslint src --ext \".js, .jsx\" --fix",
|
|
12
15
|
"eslint:ci": "yarn run eslint -- -f junit -o test-reports/lint-results.xml",
|
|
@@ -22,9 +25,9 @@
|
|
|
22
25
|
"test:cypress:ci": "echo TODO: SUI-3442"
|
|
23
26
|
},
|
|
24
27
|
"dependencies": {
|
|
25
|
-
"@splunk/react-ui": "^4.
|
|
26
|
-
"@splunk/splunk-utils": "^2.2.
|
|
27
|
-
"@splunk/themes": "^0.
|
|
28
|
+
"@splunk/react-ui": "^4.11.0",
|
|
29
|
+
"@splunk/splunk-utils": "^2.2.1",
|
|
30
|
+
"@splunk/themes": "^0.12.0",
|
|
28
31
|
"@splunk/ui-utils": "^1.5.0",
|
|
29
32
|
"prop-types": "^15.6.2",
|
|
30
33
|
"scriptjs": "^2.5.8"
|
|
@@ -32,6 +35,7 @@
|
|
|
32
35
|
"devDependencies": {
|
|
33
36
|
"@babel/core": "^7.2.0",
|
|
34
37
|
"@splunk/babel-preset": "^3.0.0",
|
|
38
|
+
"@splunk/cicd-tools": "^0.4.0",
|
|
35
39
|
"@splunk/eslint-config": "^4.0.0",
|
|
36
40
|
"@splunk/stylelint-config": "^4.0.0",
|
|
37
41
|
"@splunk/wdio-functional-test-runner": "^10.1.0",
|
|
@@ -54,7 +58,8 @@
|
|
|
54
58
|
"styled-components": "5.1.1",
|
|
55
59
|
"stylelint": "^13.0.0",
|
|
56
60
|
"webpack": "^4.16.2",
|
|
57
|
-
"webpack-cli": "^
|
|
61
|
+
"webpack-cli": "^4.9.2",
|
|
62
|
+
"webpack-dev-server": "^4.7.4",
|
|
58
63
|
"webpack-merge": "^4.1.3"
|
|
59
64
|
},
|
|
60
65
|
"peerDependencies": {
|