@splunk/react-page 4.0.0 → 5.2.0
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 +16 -0
- package/lib/index.js +57 -24
- package/package.json +15 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
Change Log
|
|
2
2
|
============
|
|
3
3
|
|
|
4
|
+
5.2.0 - February 23, 2022
|
|
5
|
+
----------
|
|
6
|
+
Notes:
|
|
7
|
+
* Remove IE browser testing from functional tests.
|
|
8
|
+
|
|
9
|
+
5.1.0 - September 8, 2021
|
|
10
|
+
----------
|
|
11
|
+
New Features:
|
|
12
|
+
* The loading screen now inherits the Splunk Enterprise theme. If one is not provided, it can be set with `loadingThemeOverride`.
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
5.0.0 - February 4, 2021
|
|
16
|
+
----------
|
|
17
|
+
API Changes:
|
|
18
|
+
* Theming updated and now requires `@splunk/themes@^0.7`.
|
|
19
|
+
|
|
4
20
|
4.0.0 - July 7, 2020
|
|
5
21
|
----------
|
|
6
22
|
New Features:
|
package/lib/index.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 12);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ([
|
|
@@ -95,13 +95,13 @@ module.exports = require("react");
|
|
|
95
95
|
/* 1 */
|
|
96
96
|
/***/ (function(module, exports) {
|
|
97
97
|
|
|
98
|
-
module.exports = require("
|
|
98
|
+
module.exports = require("@splunk/themes");
|
|
99
99
|
|
|
100
100
|
/***/ }),
|
|
101
101
|
/* 2 */
|
|
102
102
|
/***/ (function(module, exports) {
|
|
103
103
|
|
|
104
|
-
module.exports = require("
|
|
104
|
+
module.exports = require("styled-components");
|
|
105
105
|
|
|
106
106
|
/***/ }),
|
|
107
107
|
/* 3 */
|
|
@@ -119,34 +119,46 @@ module.exports = require("prop-types");
|
|
|
119
119
|
/* 5 */
|
|
120
120
|
/***/ (function(module, exports) {
|
|
121
121
|
|
|
122
|
-
module.exports = require("
|
|
122
|
+
module.exports = require("@splunk/splunk-utils/themes");
|
|
123
123
|
|
|
124
124
|
/***/ }),
|
|
125
125
|
/* 6 */
|
|
126
126
|
/***/ (function(module, exports) {
|
|
127
127
|
|
|
128
|
-
module.exports = require("
|
|
128
|
+
module.exports = require("scriptjs");
|
|
129
129
|
|
|
130
130
|
/***/ }),
|
|
131
131
|
/* 7 */
|
|
132
132
|
/***/ (function(module, exports) {
|
|
133
133
|
|
|
134
|
-
module.exports = require("@splunk/
|
|
134
|
+
module.exports = require("@splunk/react-ui/Layer");
|
|
135
135
|
|
|
136
136
|
/***/ }),
|
|
137
137
|
/* 8 */
|
|
138
138
|
/***/ (function(module, exports) {
|
|
139
139
|
|
|
140
|
-
module.exports = require("@splunk/
|
|
140
|
+
module.exports = require("@splunk/splunk-utils/url");
|
|
141
141
|
|
|
142
142
|
/***/ }),
|
|
143
143
|
/* 9 */
|
|
144
144
|
/***/ (function(module, exports) {
|
|
145
145
|
|
|
146
|
-
module.exports = require("@splunk/
|
|
146
|
+
module.exports = require("@splunk/themes/SplunkThemeProvider");
|
|
147
147
|
|
|
148
148
|
/***/ }),
|
|
149
149
|
/* 10 */
|
|
150
|
+
/***/ (function(module, exports) {
|
|
151
|
+
|
|
152
|
+
module.exports = require("@splunk/react-ui/ScreenReaderContent");
|
|
153
|
+
|
|
154
|
+
/***/ }),
|
|
155
|
+
/* 11 */
|
|
156
|
+
/***/ (function(module, exports) {
|
|
157
|
+
|
|
158
|
+
module.exports = require("@splunk/ui-utils/i18n");
|
|
159
|
+
|
|
160
|
+
/***/ }),
|
|
161
|
+
/* 12 */
|
|
150
162
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
151
163
|
|
|
152
164
|
"use strict";
|
|
@@ -161,33 +173,39 @@ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_)
|
|
|
161
173
|
var external_react_dom_ = __webpack_require__(3);
|
|
162
174
|
|
|
163
175
|
// EXTERNAL MODULE: external "scriptjs"
|
|
164
|
-
var external_scriptjs_ = __webpack_require__(
|
|
176
|
+
var external_scriptjs_ = __webpack_require__(6);
|
|
165
177
|
var external_scriptjs_default = /*#__PURE__*/__webpack_require__.n(external_scriptjs_);
|
|
166
178
|
|
|
167
179
|
// EXTERNAL MODULE: external "@splunk/react-ui/Layer"
|
|
168
|
-
var Layer_ = __webpack_require__(
|
|
180
|
+
var Layer_ = __webpack_require__(7);
|
|
169
181
|
|
|
170
182
|
// EXTERNAL MODULE: external "@splunk/splunk-utils/url"
|
|
171
|
-
var url_ = __webpack_require__(
|
|
183
|
+
var url_ = __webpack_require__(8);
|
|
184
|
+
|
|
185
|
+
// EXTERNAL MODULE: external "@splunk/themes/SplunkThemeProvider"
|
|
186
|
+
var SplunkThemeProvider_ = __webpack_require__(9);
|
|
187
|
+
var SplunkThemeProvider_default = /*#__PURE__*/__webpack_require__.n(SplunkThemeProvider_);
|
|
188
|
+
|
|
189
|
+
// EXTERNAL MODULE: external "@splunk/splunk-utils/themes"
|
|
190
|
+
var themes_ = __webpack_require__(5);
|
|
172
191
|
|
|
173
192
|
// EXTERNAL MODULE: external "prop-types"
|
|
174
193
|
var external_prop_types_ = __webpack_require__(4);
|
|
175
194
|
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
176
195
|
|
|
177
196
|
// EXTERNAL MODULE: external "@splunk/react-ui/ScreenReaderContent"
|
|
178
|
-
var ScreenReaderContent_ = __webpack_require__(
|
|
197
|
+
var ScreenReaderContent_ = __webpack_require__(10);
|
|
179
198
|
var ScreenReaderContent_default = /*#__PURE__*/__webpack_require__.n(ScreenReaderContent_);
|
|
180
199
|
|
|
181
200
|
// EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
|
|
182
|
-
var i18n_ = __webpack_require__(
|
|
201
|
+
var i18n_ = __webpack_require__(11);
|
|
183
202
|
|
|
184
203
|
// EXTERNAL MODULE: external "styled-components"
|
|
185
|
-
var external_styled_components_ = __webpack_require__(
|
|
204
|
+
var external_styled_components_ = __webpack_require__(2);
|
|
186
205
|
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
187
206
|
|
|
188
|
-
// EXTERNAL MODULE: external "@splunk/themes
|
|
189
|
-
var
|
|
190
|
-
var enterprise_default = /*#__PURE__*/__webpack_require__.n(enterprise_);
|
|
207
|
+
// EXTERNAL MODULE: external "@splunk/themes"
|
|
208
|
+
var external_splunk_themes_ = __webpack_require__(1);
|
|
191
209
|
|
|
192
210
|
// CONCATENATED MODULE: ./src/LoadingStyles.js
|
|
193
211
|
function _templateObject6() {
|
|
@@ -255,11 +273,20 @@ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(
|
|
|
255
273
|
|
|
256
274
|
|
|
257
275
|
var blink = Object(external_styled_components_["keyframes"])(_templateObject());
|
|
258
|
-
var Main = external_styled_components_default.a.div(_templateObject2(),
|
|
259
|
-
var SplunkBar = external_styled_components_default.a.div(_templateObject3(),
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
276
|
+
var Main = external_styled_components_default.a.div(_templateObject2(), external_splunk_themes_["variables"].backgroundColorPage);
|
|
277
|
+
var SplunkBar = external_styled_components_default.a.div(_templateObject3(), Object(external_splunk_themes_["pick"])({
|
|
278
|
+
prisma: external_splunk_themes_["variables"].backgroundColorSection,
|
|
279
|
+
enterprise: external_splunk_themes_["variables"].gray20
|
|
280
|
+
}));
|
|
281
|
+
var AppBar = external_styled_components_default.a.div(_templateObject4(), Object(external_splunk_themes_["pick"])({
|
|
282
|
+
prisma: external_splunk_themes_["variables"].backgroundColorPopup,
|
|
283
|
+
enterprise: external_splunk_themes_["variables"].gray30
|
|
284
|
+
}));
|
|
285
|
+
var AppBody = external_styled_components_default.a.div(_templateObject5(), external_splunk_themes_["variables"].contentColorInverted);
|
|
286
|
+
var Dot = external_styled_components_default.a.div(_templateObject6(), blink, external_splunk_themes_["variables"].neutral500, Object(external_splunk_themes_["pick"])({
|
|
287
|
+
prisma: external_splunk_themes_["variables"].spacingMedium,
|
|
288
|
+
enterprise: external_splunk_themes_["variables"].spacingHalf
|
|
289
|
+
}));
|
|
263
290
|
|
|
264
291
|
// CONCATENATED MODULE: ./src/Loading.jsx
|
|
265
292
|
|
|
@@ -299,6 +326,8 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
299
326
|
|
|
300
327
|
|
|
301
328
|
|
|
329
|
+
|
|
330
|
+
|
|
302
331
|
/**
|
|
303
332
|
* Loads the layout from the server, using requirejs if available on the window and scriptjs if not.
|
|
304
333
|
*
|
|
@@ -333,6 +362,8 @@ function getLayoutApi(callback) {
|
|
|
333
362
|
* @param {Boolean} [options.hideSplunkBar = false] - Hides the Splunk bar.
|
|
334
363
|
* @param {string} [options.layout = 'scrolling'] - Set to `fixed` to fix all navigation bars
|
|
335
364
|
* to the edge of the page.
|
|
365
|
+
* @param {string} [options.loadingThemeOverride] - Allows the theme provided by Splunk Enterprise to the loading screen
|
|
366
|
+
* to be overridden with `enterprise` or `enterpriseDark`.
|
|
336
367
|
* @param {Boolean} [options.useGlobalLayerStack = true] - Wraps elements in @splunk/react-ui's LayerStackGlobalProvider.
|
|
337
368
|
*/
|
|
338
369
|
|
|
@@ -342,17 +373,19 @@ function layout(element) {
|
|
|
342
373
|
|
|
343
374
|
var _ref$useGlobalLayerSt = _ref.useGlobalLayerStack,
|
|
344
375
|
useGlobalLayerStack = _ref$useGlobalLayerSt === void 0 ? true : _ref$useGlobalLayerSt,
|
|
376
|
+
loadingThemeOverride = _ref.loadingThemeOverride,
|
|
345
377
|
pageTitle = _ref.pageTitle,
|
|
346
|
-
layoutAPIOptions = _objectWithoutProperties(_ref, ["useGlobalLayerStack", "pageTitle"]);
|
|
378
|
+
layoutAPIOptions = _objectWithoutProperties(_ref, ["useGlobalLayerStack", "loadingThemeOverride", "pageTitle"]);
|
|
347
379
|
|
|
348
380
|
var loadingContainer = document.createElement('div');
|
|
381
|
+
var loadingTheme = Object(themes_["getThemeOptions"])(loadingThemeOverride || Object(themes_["defaultTheme"])());
|
|
349
382
|
|
|
350
383
|
if (pageTitle) {
|
|
351
384
|
document.title = pageTitle;
|
|
352
385
|
}
|
|
353
386
|
|
|
354
387
|
document.body.appendChild(loadingContainer);
|
|
355
|
-
Object(external_react_dom_["render"])( /*#__PURE__*/external_react_default.a.createElement(src_Loading, layoutAPIOptions), loadingContainer);
|
|
388
|
+
Object(external_react_dom_["render"])( /*#__PURE__*/external_react_default.a.createElement(SplunkThemeProvider_default.a, loadingTheme, /*#__PURE__*/external_react_default.a.createElement(src_Loading, layoutAPIOptions)), loadingContainer);
|
|
356
389
|
getLayoutApi(function (layoutApi) {
|
|
357
390
|
var containerEl;
|
|
358
391
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@splunk/react-page",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.2.0",
|
|
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",
|
|
@@ -20,31 +20,31 @@
|
|
|
20
20
|
"test:functional:cloud": "yarn run test:functional:prepare && splunk-wdio-functional-test-runner functional.cloud.conf.js"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@splunk/react-ui": "^
|
|
24
|
-
"@splunk/splunk-utils": "^1.
|
|
25
|
-
"@splunk/themes": "^0.
|
|
26
|
-
"@splunk/ui-utils": "^1.
|
|
23
|
+
"@splunk/react-ui": "^4.5.0",
|
|
24
|
+
"@splunk/splunk-utils": "^2.1.0",
|
|
25
|
+
"@splunk/themes": "^0.10.0",
|
|
26
|
+
"@splunk/ui-utils": "^1.4.0",
|
|
27
27
|
"prop-types": "^15.6.2",
|
|
28
28
|
"scriptjs": "^2.5.8"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@babel/core": "^7.2.0",
|
|
32
32
|
"@splunk/babel-preset": "^3.0.0",
|
|
33
|
-
"@splunk/eslint-config": "^
|
|
33
|
+
"@splunk/eslint-config": "^4.0.0",
|
|
34
34
|
"@splunk/stylelint-config": "^4.0.0",
|
|
35
|
-
"@splunk/wdio-functional-test-runner": "^10.
|
|
35
|
+
"@splunk/wdio-functional-test-runner": "^10.1.0",
|
|
36
36
|
"@splunk/webpack-configs": "^5.0.0",
|
|
37
37
|
"babel-eslint": "^10.1.0",
|
|
38
38
|
"babel-loader": "^8.0.4",
|
|
39
39
|
"cross-env": "^6.0.3",
|
|
40
|
-
"eslint": "^
|
|
41
|
-
"eslint-config-airbnb": "^18.1
|
|
42
|
-
"eslint-config-prettier": "^6.
|
|
43
|
-
"eslint-import-resolver-webpack": "^0.
|
|
44
|
-
"eslint-plugin-import": "^2.
|
|
45
|
-
"eslint-plugin-jsx-a11y": "^6.
|
|
46
|
-
"eslint-plugin-react": "^7.
|
|
47
|
-
"eslint-plugin-react-hooks": "^2.
|
|
40
|
+
"eslint": "^7.14.0",
|
|
41
|
+
"eslint-config-airbnb": "^18.2.1",
|
|
42
|
+
"eslint-config-prettier": "^6.15.0",
|
|
43
|
+
"eslint-import-resolver-webpack": "^0.13.0",
|
|
44
|
+
"eslint-plugin-import": "^2.22.1",
|
|
45
|
+
"eslint-plugin-jsx-a11y": "^6.4.1",
|
|
46
|
+
"eslint-plugin-react": "^7.21.5",
|
|
47
|
+
"eslint-plugin-react-hooks": "^4.2.0",
|
|
48
48
|
"execa": "^4.0.0",
|
|
49
49
|
"react": "^16.12.0",
|
|
50
50
|
"react-dom": "^16.12.0",
|