@splunk/react-page 5.0.0 → 5.2.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 +23 -0
- package/lib/index.js +61 -32
- package/package.json +10 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,29 @@
|
|
|
1
1
|
Change Log
|
|
2
2
|
============
|
|
3
3
|
|
|
4
|
+
5.2.1 - April 5, 2022
|
|
5
|
+
----------
|
|
6
|
+
API Changes:
|
|
7
|
+
* Pinned `styled-components@5.1.1` to avoid breaking changes introduced in `styled-components@5.2.0`.
|
|
8
|
+
|
|
9
|
+
**`@splunk/react-page` is incompatible with styled-components version(s) `^5.2.0`**.
|
|
10
|
+
|
|
11
|
+
`styled-components@5.2.0` changed how selectors like `& + &` are compiled; [styled-components PR#3236](https://github.com/styled-components/styled-components/pull/3236).
|
|
12
|
+
This breaks styles that worked in previous versions of styled-components; [styled-components issue #3265](https://github.com/styled-components/styled-components/issues/3265).
|
|
13
|
+
|
|
14
|
+
**Until noted otherwise in a future release of `@splunk/react-page` do not use `styled-components@^5.2.0` with` @splunk/react-page`**.
|
|
15
|
+
|
|
16
|
+
5.2.0 - February 23, 2022
|
|
17
|
+
----------
|
|
18
|
+
Notes:
|
|
19
|
+
* Remove IE browser testing from functional tests.
|
|
20
|
+
|
|
21
|
+
5.1.0 - September 8, 2021
|
|
22
|
+
----------
|
|
23
|
+
New Features:
|
|
24
|
+
* The loading screen now inherits the Splunk Enterprise theme. If one is not provided, it can be set with `loadingThemeOverride`.
|
|
25
|
+
|
|
26
|
+
|
|
4
27
|
5.0.0 - February 4, 2021
|
|
5
28
|
----------
|
|
6
29
|
API Changes:
|
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,58 +95,70 @@ 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 */
|
|
108
108
|
/***/ (function(module, exports) {
|
|
109
109
|
|
|
110
|
-
module.exports = require("
|
|
110
|
+
module.exports = require("react-dom");
|
|
111
111
|
|
|
112
112
|
/***/ }),
|
|
113
113
|
/* 4 */
|
|
114
114
|
/***/ (function(module, exports) {
|
|
115
115
|
|
|
116
|
-
module.exports = require("
|
|
116
|
+
module.exports = require("prop-types");
|
|
117
117
|
|
|
118
118
|
/***/ }),
|
|
119
119
|
/* 5 */
|
|
120
120
|
/***/ (function(module, exports) {
|
|
121
121
|
|
|
122
|
-
module.exports = require("@splunk/
|
|
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/react-ui/
|
|
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/themes/
|
|
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";
|
|
@@ -158,36 +170,42 @@ var external_react_ = __webpack_require__(0);
|
|
|
158
170
|
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
159
171
|
|
|
160
172
|
// EXTERNAL MODULE: external "react-dom"
|
|
161
|
-
var external_react_dom_ = __webpack_require__(
|
|
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
|
-
var external_prop_types_ = __webpack_require__(
|
|
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 getTheme_default = /*#__PURE__*/__webpack_require__.n(getTheme_);
|
|
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() {
|
|
@@ -254,16 +272,21 @@ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(
|
|
|
254
272
|
|
|
255
273
|
|
|
256
274
|
|
|
257
|
-
var theme = getTheme_default()({
|
|
258
|
-
family: 'enterprise',
|
|
259
|
-
colorScheme: 'light'
|
|
260
|
-
});
|
|
261
275
|
var blink = Object(external_styled_components_["keyframes"])(_templateObject());
|
|
262
|
-
var Main = external_styled_components_default.a.div(_templateObject2(),
|
|
263
|
-
var SplunkBar = external_styled_components_default.a.div(_templateObject3(),
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
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
|
+
}));
|
|
267
290
|
|
|
268
291
|
// CONCATENATED MODULE: ./src/Loading.jsx
|
|
269
292
|
|
|
@@ -303,6 +326,8 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
303
326
|
|
|
304
327
|
|
|
305
328
|
|
|
329
|
+
|
|
330
|
+
|
|
306
331
|
/**
|
|
307
332
|
* Loads the layout from the server, using requirejs if available on the window and scriptjs if not.
|
|
308
333
|
*
|
|
@@ -337,6 +362,8 @@ function getLayoutApi(callback) {
|
|
|
337
362
|
* @param {Boolean} [options.hideSplunkBar = false] - Hides the Splunk bar.
|
|
338
363
|
* @param {string} [options.layout = 'scrolling'] - Set to `fixed` to fix all navigation bars
|
|
339
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`.
|
|
340
367
|
* @param {Boolean} [options.useGlobalLayerStack = true] - Wraps elements in @splunk/react-ui's LayerStackGlobalProvider.
|
|
341
368
|
*/
|
|
342
369
|
|
|
@@ -346,17 +373,19 @@ function layout(element) {
|
|
|
346
373
|
|
|
347
374
|
var _ref$useGlobalLayerSt = _ref.useGlobalLayerStack,
|
|
348
375
|
useGlobalLayerStack = _ref$useGlobalLayerSt === void 0 ? true : _ref$useGlobalLayerSt,
|
|
376
|
+
loadingThemeOverride = _ref.loadingThemeOverride,
|
|
349
377
|
pageTitle = _ref.pageTitle,
|
|
350
|
-
layoutAPIOptions = _objectWithoutProperties(_ref, ["useGlobalLayerStack", "pageTitle"]);
|
|
378
|
+
layoutAPIOptions = _objectWithoutProperties(_ref, ["useGlobalLayerStack", "loadingThemeOverride", "pageTitle"]);
|
|
351
379
|
|
|
352
380
|
var loadingContainer = document.createElement('div');
|
|
381
|
+
var loadingTheme = Object(themes_["getThemeOptions"])(loadingThemeOverride || Object(themes_["defaultTheme"])());
|
|
353
382
|
|
|
354
383
|
if (pageTitle) {
|
|
355
384
|
document.title = pageTitle;
|
|
356
385
|
}
|
|
357
386
|
|
|
358
387
|
document.body.appendChild(loadingContainer);
|
|
359
|
-
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);
|
|
360
389
|
getLayoutApi(function (layoutApi) {
|
|
361
390
|
var containerEl;
|
|
362
391
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@splunk/react-page",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.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",
|
|
@@ -17,13 +17,15 @@
|
|
|
17
17
|
"test:functional:prepare": "node src/tests/helpers/prepare_environment.js 8.0.3",
|
|
18
18
|
"test:functional": "yarn run test:functional:prepare && splunk-wdio-functional-test-runner functional.local.conf.js",
|
|
19
19
|
"test:functional:ci": "yarn run test:functional:prepare && splunk-wdio-functional-test-runner functional.ci.conf.js",
|
|
20
|
-
"test:functional:cloud": "yarn run test:functional:prepare && splunk-wdio-functional-test-runner functional.cloud.conf.js"
|
|
20
|
+
"test:functional:cloud": "yarn run test:functional:prepare && splunk-wdio-functional-test-runner functional.cloud.conf.js",
|
|
21
|
+
"test:cypress": "echo TODO: SUI-3442",
|
|
22
|
+
"test:cypress:ci": "echo TODO: SUI-3442"
|
|
21
23
|
},
|
|
22
24
|
"dependencies": {
|
|
23
|
-
"@splunk/react-ui": "^4.
|
|
24
|
-
"@splunk/splunk-utils": "^2.
|
|
25
|
-
"@splunk/themes": "^0.
|
|
26
|
-
"@splunk/ui-utils": "^1.
|
|
25
|
+
"@splunk/react-ui": "^4.6.0",
|
|
26
|
+
"@splunk/splunk-utils": "^2.1.0",
|
|
27
|
+
"@splunk/themes": "^0.10.1",
|
|
28
|
+
"@splunk/ui-utils": "^1.4.0",
|
|
27
29
|
"prop-types": "^15.6.2",
|
|
28
30
|
"scriptjs": "^2.5.8"
|
|
29
31
|
},
|
|
@@ -49,7 +51,7 @@
|
|
|
49
51
|
"react": "^16.12.0",
|
|
50
52
|
"react-dom": "^16.12.0",
|
|
51
53
|
"style-loader": "^0.23.1",
|
|
52
|
-
"styled-components": "
|
|
54
|
+
"styled-components": "5.1.1",
|
|
53
55
|
"stylelint": "^13.0.0",
|
|
54
56
|
"webpack": "^4.16.2",
|
|
55
57
|
"webpack-cli": "^3.1.0",
|
|
@@ -58,7 +60,7 @@
|
|
|
58
60
|
"peerDependencies": {
|
|
59
61
|
"react": "^16.8",
|
|
60
62
|
"react-dom": "^16.8",
|
|
61
|
-
"styled-components": "
|
|
63
|
+
"styled-components": "5.1.1"
|
|
62
64
|
},
|
|
63
65
|
"engines": {
|
|
64
66
|
"node": ">=6"
|