@splunk/visualizations-shared 28.0.0 → 28.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/.eslintrc.json +5 -0
- package/Downloader.d.ts +25 -0
- package/Downloader.js +16 -15
- package/Downloader.js.map +2 -2
- package/FileDownloader.d.ts +32 -0
- package/FileDownloader.js.map +2 -2
- package/FileDownloader.test.d.ts +1 -0
- package/JSONSchemaUtils.d.ts +9 -0
- package/Message.d.ts +9 -0
- package/Message.js +10 -41
- package/Message.js.map +4 -4
- package/RemoteIcon.d.ts +35 -0
- package/RemoteIcon.js +23 -46
- package/RemoteIcon.js.map +4 -4
- package/RemoteImage.d.ts +27 -0
- package/RemoteImage.js +21 -42
- package/RemoteImage.js.map +4 -4
- package/SanitizeProps.d.ts +19 -0
- package/SizeAwareWrapper.d.ts +23 -0
- package/SizeAwareWrapper.js +16 -29
- package/SizeAwareWrapper.js.map +3 -3
- package/VisualizationDocPage.d.ts +32 -0
- package/VisualizationDocPage.js +34 -88
- package/VisualizationDocPage.js.map +4 -4
- package/colorUtils.d.ts +1 -0
- package/configUtils.d.ts +2 -0
- package/dataSourceUtils.d.ts +27 -0
- package/hocUtils.d.ts +1 -0
- package/iconUtils.d.ts +15 -0
- package/mapUtils.d.ts +2 -0
- package/package.json +15 -15
- package/previewVizMessage.d.ts +2 -0
- package/schemaUtils.d.ts +1 -0
- package/style.d.ts +5 -0
- package/trellisUtils.d.ts +21 -0
- package/tsconfig.json +9 -8
- package/SizeAwareWrapperDeprecated.js +0 -145
- package/SizeAwareWrapperDeprecated.js.map +0 -7
package/VisualizationDocPage.js
CHANGED
|
@@ -3,7 +3,9 @@ SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
|
|
|
3
3
|
in part without a valid written license from Splunk Inc. is PROHIBITED. */
|
|
4
4
|
var __create = Object.create;
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
6
|
+
var __defProps = Object.defineProperties;
|
|
6
7
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
8
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
7
9
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
10
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
9
11
|
var __getProtoOf = Object.getPrototypeOf;
|
|
@@ -21,6 +23,7 @@ var __spreadValues = (a, b) => {
|
|
|
21
23
|
}
|
|
22
24
|
return a;
|
|
23
25
|
};
|
|
26
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
24
27
|
var __export = (target, all) => {
|
|
25
28
|
for (var name in all)
|
|
26
29
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -43,9 +46,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
43
46
|
mod
|
|
44
47
|
));
|
|
45
48
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
46
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
47
49
|
|
|
48
|
-
// src/VisualizationDocPage.
|
|
50
|
+
// src/VisualizationDocPage.tsx
|
|
49
51
|
var VisualizationDocPage_exports = {};
|
|
50
52
|
__export(VisualizationDocPage_exports, {
|
|
51
53
|
default: () => VisualizationDocPage_default
|
|
@@ -61,54 +63,45 @@ var defaultImport = __toESM(require("react"));
|
|
|
61
63
|
__reExport(react_exports, require("react"));
|
|
62
64
|
var react_default = "default" in defaultImport ? defaultImport.default : defaultImport;
|
|
63
65
|
|
|
64
|
-
// esm-externals:prop-types
|
|
65
|
-
var prop_types_exports = {};
|
|
66
|
-
__export(prop_types_exports, {
|
|
67
|
-
default: () => prop_types_default
|
|
68
|
-
});
|
|
69
|
-
var defaultImport2 = __toESM(require("prop-types"));
|
|
70
|
-
__reExport(prop_types_exports, require("prop-types"));
|
|
71
|
-
var prop_types_default = "default" in defaultImport2 ? defaultImport2.default : defaultImport2;
|
|
72
|
-
|
|
73
66
|
// esm-externals:lodash
|
|
74
67
|
var lodash_exports = {};
|
|
75
68
|
__export(lodash_exports, {
|
|
76
69
|
default: () => lodash_default
|
|
77
70
|
});
|
|
78
|
-
var
|
|
71
|
+
var defaultImport2 = __toESM(require("lodash"));
|
|
79
72
|
__reExport(lodash_exports, require("lodash"));
|
|
80
|
-
var lodash_default = "default" in
|
|
73
|
+
var lodash_default = "default" in defaultImport2 ? defaultImport2.default : defaultImport2;
|
|
81
74
|
|
|
82
75
|
// esm-externals:@splunk/react-docs/DockingTabBar
|
|
83
76
|
var DockingTabBar_exports = {};
|
|
84
77
|
__export(DockingTabBar_exports, {
|
|
85
78
|
default: () => DockingTabBar_default
|
|
86
79
|
});
|
|
87
|
-
var
|
|
80
|
+
var defaultImport3 = __toESM(require("@splunk/react-docs/DockingTabBar"));
|
|
88
81
|
__reExport(DockingTabBar_exports, require("@splunk/react-docs/DockingTabBar"));
|
|
89
|
-
var DockingTabBar_default = "default" in
|
|
82
|
+
var DockingTabBar_default = "default" in defaultImport3 ? defaultImport3.default : defaultImport3;
|
|
90
83
|
|
|
91
84
|
// esm-externals:@splunk/react-docs/API
|
|
92
85
|
var API_exports = {};
|
|
93
86
|
__export(API_exports, {
|
|
94
87
|
default: () => API_default
|
|
95
88
|
});
|
|
96
|
-
var
|
|
89
|
+
var defaultImport4 = __toESM(require("@splunk/react-docs/API"));
|
|
97
90
|
__reExport(API_exports, require("@splunk/react-docs/API"));
|
|
98
|
-
var API_default = "default" in
|
|
91
|
+
var API_default = "default" in defaultImport4 ? defaultImport4.default : defaultImport4;
|
|
99
92
|
|
|
100
93
|
// src/previewVizMessage.ts
|
|
101
94
|
var previewVizMessage = "\u26A0\uFE0F This is a preview of a new visualization component. Minor updates and bug fixes should be expected.";
|
|
102
95
|
var previewVizMessage_default = previewVizMessage;
|
|
103
96
|
|
|
104
|
-
// src/VisualizationDocPage.
|
|
97
|
+
// src/VisualizationDocPage.tsx
|
|
105
98
|
var _ComponentPage = class _ComponentPage extends react_exports.Component {
|
|
106
|
-
constructor(
|
|
107
|
-
super(
|
|
108
|
-
|
|
99
|
+
constructor(args) {
|
|
100
|
+
super(args);
|
|
101
|
+
this.handleBodyMount = (el) => {
|
|
109
102
|
this.bodyEl = el;
|
|
110
|
-
}
|
|
111
|
-
|
|
103
|
+
};
|
|
104
|
+
this.handleSectionChange = (e, { selectedTabId }) => {
|
|
112
105
|
_ComponentPage.currentSection = selectedTabId;
|
|
113
106
|
this.setState({ activeSection: selectedTabId }, () => {
|
|
114
107
|
const { top } = this.bodyEl.getBoundingClientRect();
|
|
@@ -117,7 +110,7 @@ var _ComponentPage = class _ComponentPage extends react_exports.Component {
|
|
|
117
110
|
window.scroll(0, target);
|
|
118
111
|
}
|
|
119
112
|
});
|
|
120
|
-
}
|
|
113
|
+
};
|
|
121
114
|
this.state = { activeSection: _ComponentPage.currentSection };
|
|
122
115
|
}
|
|
123
116
|
renderBody() {
|
|
@@ -152,20 +145,22 @@ var _ComponentPage = class _ComponentPage extends react_exports.Component {
|
|
|
152
145
|
}
|
|
153
146
|
render() {
|
|
154
147
|
const {
|
|
155
|
-
createComponentURL,
|
|
148
|
+
createComponentURL = lodash_exports.noop,
|
|
156
149
|
conceptsSection,
|
|
157
150
|
overviewSection,
|
|
158
151
|
examplesSection,
|
|
159
152
|
encodingSection,
|
|
160
153
|
eventSection,
|
|
161
154
|
themeSection,
|
|
162
|
-
headerOffset,
|
|
155
|
+
headerOffset = 0,
|
|
163
156
|
sourceURL
|
|
164
157
|
} = this.props;
|
|
165
|
-
|
|
158
|
+
let basePageProps = (0, lodash_exports.pick)(this.props, "dependsOnSplunk", "description", "title");
|
|
166
159
|
if (this.props.status === "preview") {
|
|
167
|
-
basePageProps
|
|
168
|
-
${
|
|
160
|
+
basePageProps = __spreadProps(__spreadValues({}, basePageProps), {
|
|
161
|
+
description: `#### ${previewVizMessage_default}
|
|
162
|
+
${basePageProps.description || ""}`
|
|
163
|
+
});
|
|
169
164
|
}
|
|
170
165
|
let { activeSection } = this.state;
|
|
171
166
|
let body = this.renderBody();
|
|
@@ -173,21 +168,21 @@ var _ComponentPage = class _ComponentPage extends react_exports.Component {
|
|
|
173
168
|
body = examplesSection;
|
|
174
169
|
activeSection = "examples";
|
|
175
170
|
}
|
|
176
|
-
return /* @__PURE__ */
|
|
171
|
+
return /* @__PURE__ */ react_exports.createElement(API_default, __spreadValues({ sourceURL: sourceURL || createComponentURL(window.location.pathname) }, basePageProps), /* @__PURE__ */ react_exports.createElement(
|
|
177
172
|
DockingTabBar_default,
|
|
178
173
|
{
|
|
179
174
|
activeTabId: activeSection,
|
|
180
175
|
offset: headerOffset,
|
|
181
176
|
onChange: this.handleSectionChange
|
|
182
177
|
},
|
|
183
|
-
overviewSection && /* @__PURE__ */
|
|
184
|
-
/* @__PURE__ */
|
|
185
|
-
encodingSection && /* @__PURE__ */
|
|
186
|
-
/* @__PURE__ */
|
|
187
|
-
eventSection && /* @__PURE__ */
|
|
188
|
-
themeSection && /* @__PURE__ */
|
|
189
|
-
conceptsSection && /* @__PURE__ */
|
|
190
|
-
), /* @__PURE__ */
|
|
178
|
+
overviewSection && /* @__PURE__ */ react_exports.createElement(DockingTabBar_exports.Tab, { label: "Overview", tabId: "overview" }),
|
|
179
|
+
/* @__PURE__ */ react_exports.createElement(DockingTabBar_exports.Tab, { label: "Examples", tabId: "examples" }),
|
|
180
|
+
encodingSection && /* @__PURE__ */ react_exports.createElement(DockingTabBar_exports.Tab, { label: "Encoding", tabId: "encoding" }),
|
|
181
|
+
/* @__PURE__ */ react_exports.createElement(DockingTabBar_exports.Tab, { label: "Options", tabId: "option" }),
|
|
182
|
+
eventSection && /* @__PURE__ */ react_exports.createElement(DockingTabBar_exports.Tab, { label: "Events", tabId: "event" }),
|
|
183
|
+
themeSection && /* @__PURE__ */ react_exports.createElement(DockingTabBar_exports.Tab, { label: "Themes", tabId: "theme" }),
|
|
184
|
+
conceptsSection && /* @__PURE__ */ react_exports.createElement(DockingTabBar_exports.Tab, { label: "Concepts", tabId: "concepts" })
|
|
185
|
+
), /* @__PURE__ */ react_exports.createElement(
|
|
191
186
|
"div",
|
|
192
187
|
{
|
|
193
188
|
style: {
|
|
@@ -200,56 +195,7 @@ var _ComponentPage = class _ComponentPage extends react_exports.Component {
|
|
|
200
195
|
));
|
|
201
196
|
}
|
|
202
197
|
};
|
|
203
|
-
|
|
204
|
-
__publicField(_ComponentPage, "propTypes", {
|
|
205
|
-
createComponentURL: prop_types_default.func,
|
|
206
|
-
dependsOnSplunk: prop_types_default.bool,
|
|
207
|
-
/**
|
|
208
|
-
* If status is `preview`, a message is prepended to the description reflecting this visualization is new
|
|
209
|
-
* and minor changes may be made soon.
|
|
210
|
-
*/
|
|
211
|
-
status: prop_types_default.string,
|
|
212
|
-
description: prop_types_default.string,
|
|
213
|
-
/**
|
|
214
|
-
* The "overview" section of the doc page.
|
|
215
|
-
*/
|
|
216
|
-
overviewSection: prop_types_default.node,
|
|
217
|
-
/**
|
|
218
|
-
* The "concepts" section of the doc page.
|
|
219
|
-
*/
|
|
220
|
-
conceptsSection: prop_types_default.node,
|
|
221
|
-
/**
|
|
222
|
-
* The "examples" section of the doc page.
|
|
223
|
-
*/
|
|
224
|
-
examplesSection: prop_types_default.node.isRequired,
|
|
225
|
-
/**
|
|
226
|
-
* The "options" section of the doc page.
|
|
227
|
-
*/
|
|
228
|
-
optionSection: prop_types_default.node.isRequired,
|
|
229
|
-
/**
|
|
230
|
-
* The "encoding" section of the doc page.
|
|
231
|
-
*/
|
|
232
|
-
encodingSection: prop_types_default.node,
|
|
233
|
-
/**
|
|
234
|
-
* The "event" section of the doc page.
|
|
235
|
-
*/
|
|
236
|
-
eventSection: prop_types_default.node,
|
|
237
|
-
/**
|
|
238
|
-
* The "theme" section of the doc page
|
|
239
|
-
*/
|
|
240
|
-
themeSection: prop_types_default.node,
|
|
241
|
-
headerOffset: prop_types_default.number,
|
|
242
|
-
/**
|
|
243
|
-
* Overrides the (otherwise automatically generated) source code url.
|
|
244
|
-
*/
|
|
245
|
-
sourceURL: prop_types_default.string,
|
|
246
|
-
title: prop_types_default.string.isRequired
|
|
247
|
-
});
|
|
248
|
-
__publicField(_ComponentPage, "defaultProps", {
|
|
249
|
-
createComponentURL() {
|
|
250
|
-
},
|
|
251
|
-
headerOffset: 0
|
|
252
|
-
});
|
|
198
|
+
_ComponentPage.currentSection = "overview";
|
|
253
199
|
var ComponentPage = _ComponentPage;
|
|
254
200
|
var VisualizationDocPage_default = ComponentPage;
|
|
255
201
|
//# sourceMappingURL=VisualizationDocPage.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["src/VisualizationDocPage.
|
|
4
|
-
"sourcesContent": ["import
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["defaultImport", "defaultImport", "defaultImport"
|
|
3
|
+
"sources": ["src/VisualizationDocPage.tsx", "esm-externals:react", "esm-externals:lodash", "esm-externals:@splunk/react-docs/DockingTabBar", "esm-externals:@splunk/react-docs/API", "src/previewVizMessage.ts"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nimport { noop, pick } from 'lodash';\nimport DockingTabBar, { Tab } from '@splunk/react-docs/DockingTabBar';\nimport APIPage from '@splunk/react-docs/API';\nimport previewVizMessage from './previewVizMessage';\n\ninterface ComponentPageProps {\n createComponentURL: (componentName: string) => string;\n dependsOnSplunk: boolean;\n status: string;\n description: string;\n overviewSection: React.ReactNode;\n conceptsSection: React.ReactNode;\n examplesSection: React.ReactNode;\n optionSection: React.ReactNode;\n encodingSection: React.ReactNode;\n eventSection: React.ReactNode;\n themeSection: React.ReactNode;\n headerOffset: number;\n sourceURL: string;\n title: string;\n}\n\ninterface ComponentPageState {\n activeSection: string;\n}\n\nclass ComponentPage extends React.Component<ComponentPageProps, ComponentPageState> {\n static currentSection = 'overview';\n\n bodyEl: any;\n\n constructor(args) {\n super(args);\n this.state = { activeSection: ComponentPage.currentSection };\n }\n\n handleBodyMount = el => {\n this.bodyEl = el;\n };\n\n handleSectionChange = (e, { selectedTabId }) => {\n ComponentPage.currentSection = selectedTabId;\n this.setState({ activeSection: selectedTabId }, () => {\n // After the new section loads, scroll to the top of the section.\n const { top } = this.bodyEl.getBoundingClientRect();\n if (top < window.scrollY) {\n const target = top + window.scrollY - 90;\n window.scroll(0, target);\n }\n });\n };\n\n renderBody() {\n const {\n encodingSection,\n optionSection,\n overviewSection,\n conceptsSection,\n examplesSection,\n eventSection,\n themeSection,\n } = this.props;\n const { activeSection } = this.state;\n switch (activeSection) {\n case 'concepts':\n return conceptsSection;\n case 'overview':\n return overviewSection;\n case 'examples':\n return examplesSection;\n case 'encoding':\n return encodingSection;\n case 'option':\n return optionSection;\n case 'event':\n return eventSection;\n case 'theme':\n return themeSection;\n default:\n return null;\n }\n }\n\n render() {\n const {\n createComponentURL = noop,\n conceptsSection,\n overviewSection,\n examplesSection,\n encodingSection,\n eventSection,\n themeSection,\n headerOffset = 0,\n sourceURL,\n } = this.props;\n let basePageProps = pick(this.props, 'dependsOnSplunk', 'description', 'title');\n\n if (this.props.status === 'preview') {\n basePageProps = {\n ...basePageProps,\n description: `#### ${previewVizMessage} \\n ${basePageProps.description || ''}`,\n };\n }\n\n let { activeSection } = this.state;\n let body = this.renderBody();\n\n if (!body) {\n body = examplesSection;\n activeSection = 'examples';\n }\n return (\n <APIPage sourceURL={sourceURL || createComponentURL(window.location.pathname)} {...basePageProps}>\n <DockingTabBar\n activeTabId={activeSection}\n offset={headerOffset}\n onChange={this.handleSectionChange}\n >\n {overviewSection && <Tab label=\"Overview\" tabId=\"overview\" />}\n <Tab label=\"Examples\" tabId=\"examples\" />\n {encodingSection && <Tab label=\"Encoding\" tabId=\"encoding\" />}\n <Tab label=\"Options\" tabId=\"option\" />\n {eventSection && <Tab label=\"Events\" tabId=\"event\" />}\n {themeSection && <Tab label=\"Themes\" tabId=\"theme\" />}\n {conceptsSection && <Tab label=\"Concepts\" tabId=\"concepts\" />}\n </DockingTabBar>\n <div\n style={{\n padding: '0 30px 30px',\n marginTop: '20px',\n }}\n ref={this.handleBodyMount}\n >\n {body}\n </div>\n </APIPage>\n );\n }\n}\n\nexport default ComponentPage;\n", "\nimport * as defaultImport from \"react\";\nexport * from \"react\";\nexport default ('default' in defaultImport ? defaultImport.default : defaultImport);\n", "\nimport * as defaultImport from \"lodash\";\nexport * from \"lodash\";\nexport default ('default' in defaultImport ? defaultImport.default : defaultImport);\n", "\nimport * as defaultImport from \"@splunk/react-docs/DockingTabBar\";\nexport * from \"@splunk/react-docs/DockingTabBar\";\nexport default ('default' in defaultImport ? defaultImport.default : defaultImport);\n", "\nimport * as defaultImport from \"@splunk/react-docs/API\";\nexport * from \"@splunk/react-docs/API\";\nexport default ('default' in defaultImport ? defaultImport.default : defaultImport);\n", "const previewVizMessage =\n '\u26A0\uFE0F This is a preview of a new visualization component. Minor updates and bug fixes should be expected.';\n\nexport default previewVizMessage;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AACA,oBAA+B;AAC/B,0BAAc;AACd,IAAO,gBAAS,aAAa,gBAA8B,wBAAU;;;ACHrE;AAAA;AAAA;AAAA;AACA,IAAAA,iBAA+B;AAC/B,2BAAc;AACd,IAAO,iBAAS,aAAaA,iBAA8B,yBAAUA;;;ACHrE;AAAA;AAAA;AAAA;AACA,IAAAC,iBAA+B;AAC/B,kCAAc;AACd,IAAO,wBAAS,aAAaA,iBAA8B,yBAAUA;;;ACHrE;AAAA;AAAA;AAAA;AACA,IAAAC,iBAA+B;AAC/B,wBAAc;AACd,IAAO,cAAS,aAAaA,iBAA8B,yBAAUA;;;ACHrE,IAAM,oBACF;AAEJ,IAAO,4BAAQ;;;ALwBf,IAAM,iBAAN,MAAM,uBAA4B,wBAAkD;AAAA,EAKhF,YAAY,MAAM;AACd,UAAM,IAAI;AAId,2BAAkB,QAAM;AACpB,WAAK,SAAS;AAAA,IAClB;AAEA,+BAAsB,CAAC,GAAG,EAAE,cAAc,MAAM;AAC5C,qBAAc,iBAAiB;AAC/B,WAAK,SAAS,EAAE,eAAe,cAAc,GAAG,MAAM;AAElD,cAAM,EAAE,IAAI,IAAI,KAAK,OAAO,sBAAsB;AAClD,YAAI,MAAM,OAAO,SAAS;AACtB,gBAAM,SAAS,MAAM,OAAO,UAAU;AACtC,iBAAO,OAAO,GAAG,MAAM;AAAA,QAC3B;AAAA,MACJ,CAAC;AAAA,IACL;AAjBI,SAAK,QAAQ,EAAE,eAAe,eAAc,eAAe;AAAA,EAC/D;AAAA,EAkBA,aAAa;AACT,UAAM;AAAA,MACF;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACJ,IAAI,KAAK;AACT,UAAM,EAAE,cAAc,IAAI,KAAK;AAC/B,YAAQ,eAAe;AAAA,MACnB,KAAK;AACD,eAAO;AAAA,MACX,KAAK;AACD,eAAO;AAAA,MACX,KAAK;AACD,eAAO;AAAA,MACX,KAAK;AACD,eAAO;AAAA,MACX,KAAK;AACD,eAAO;AAAA,MACX,KAAK;AACD,eAAO;AAAA,MACX,KAAK;AACD,eAAO;AAAA,MACX;AACI,eAAO;AAAA,IACf;AAAA,EACJ;AAAA,EAEA,SAAS;AACL,UAAM;AAAA,MACF,qBAAqB;AAAA,MACrB;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,eAAe;AAAA,MACf;AAAA,IACJ,IAAI,KAAK;AACT,QAAI,oBAAgB,qBAAK,KAAK,OAAO,mBAAmB,eAAe,OAAO;AAE9E,QAAI,KAAK,MAAM,WAAW,WAAW;AACjC,sBAAgB,iCACT,gBADS;AAAA,QAEZ,aAAa,QAAQ,yBAAiB;AAAA,GAAO,cAAc,eAAe,EAAE;AAAA,MAChF;AAAA,IACJ;AAEA,QAAI,EAAE,cAAc,IAAI,KAAK;AAC7B,QAAI,OAAO,KAAK,WAAW;AAE3B,QAAI,CAAC,MAAM;AACP,aAAO;AACP,sBAAgB;AAAA,IACpB;AACA,WACI,4CAAC,8BAAQ,WAAW,aAAa,mBAAmB,OAAO,SAAS,QAAQ,KAAO,gBAC/E;AAAA,MAAC;AAAA;AAAA,QACG,aAAa;AAAA,QACb,QAAQ;AAAA,QACR,UAAU,KAAK;AAAA;AAAA,MAEd,mBAAmB,4CAAC,6BAAI,OAAM,YAAW,OAAM,YAAW;AAAA,MAC3D,4CAAC,6BAAI,OAAM,YAAW,OAAM,YAAW;AAAA,MACtC,mBAAmB,4CAAC,6BAAI,OAAM,YAAW,OAAM,YAAW;AAAA,MAC3D,4CAAC,6BAAI,OAAM,WAAU,OAAM,UAAS;AAAA,MACnC,gBAAgB,4CAAC,6BAAI,OAAM,UAAS,OAAM,SAAQ;AAAA,MAClD,gBAAgB,4CAAC,6BAAI,OAAM,UAAS,OAAM,SAAQ;AAAA,MAClD,mBAAmB,4CAAC,6BAAI,OAAM,YAAW,OAAM,YAAW;AAAA,IAC/D,GACA;AAAA,MAAC;AAAA;AAAA,QACG,OAAO;AAAA,UACH,SAAS;AAAA,UACT,WAAW;AAAA,QACf;AAAA,QACA,KAAK,KAAK;AAAA;AAAA,MAET;AAAA,IACL,CACJ;AAAA,EAER;AACJ;AAhHM,eACK,iBAAiB;AAD5B,IAAM,gBAAN;AAkHA,IAAO,+BAAQ;",
|
|
6
|
+
"names": ["defaultImport", "defaultImport", "defaultImport"]
|
|
7
7
|
}
|
package/colorUtils.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { isColor, isArrayOfColors, sanitizeArrayOfColors, } from '@splunk/visualization-encoding/utils/colorUtils';
|
package/configUtils.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare enum DataSourceState {
|
|
2
|
+
NONEXISTENT = 0,
|
|
3
|
+
ERROR = 1,
|
|
4
|
+
LOADING = 2,
|
|
5
|
+
OK = 3
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* represents the data in a raw columnar format, resulting from a splunk
|
|
9
|
+
* query request.
|
|
10
|
+
*/
|
|
11
|
+
export interface FieldEntry {
|
|
12
|
+
name: string;
|
|
13
|
+
type?: string;
|
|
14
|
+
groupby_rank?: string;
|
|
15
|
+
splitby_field?: string;
|
|
16
|
+
splitby_value?: string;
|
|
17
|
+
data_source?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* A utility fn to return data source state info as an object of boolean flags
|
|
21
|
+
* @param dataSource
|
|
22
|
+
*/
|
|
23
|
+
export declare const getDataSourceStateInfo: (dataSource: any) => {
|
|
24
|
+
hasError: boolean;
|
|
25
|
+
isMissing: boolean;
|
|
26
|
+
isLoading: boolean;
|
|
27
|
+
};
|
package/hocUtils.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { deepMergeWithArrayPrimitiveOverrides } from '@splunk/visualization-encoding/utils/deepMergeWithArrayPrimitiveOverrides';
|
package/iconUtils.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export function isRemoteIcon(icon?: any): boolean;
|
|
2
|
+
export function isDataURI(icon?: any): any;
|
|
3
|
+
export function shouldChangeFill({ fillAttr, fillStyle, strokeAttr, strokeStyle }: {
|
|
4
|
+
fillAttr: any;
|
|
5
|
+
fillStyle: any;
|
|
6
|
+
strokeAttr: any;
|
|
7
|
+
strokeStyle: any;
|
|
8
|
+
}): boolean;
|
|
9
|
+
export function shouldChangeStroke({ fillAttr, fillStyle, strokeAttr, strokeStyle }: {
|
|
10
|
+
fillAttr: any;
|
|
11
|
+
fillStyle: any;
|
|
12
|
+
strokeAttr: any;
|
|
13
|
+
strokeStyle: any;
|
|
14
|
+
}): boolean;
|
|
15
|
+
export function b64EncodeUnicode(str: any): string;
|
package/mapUtils.d.ts
ADDED
package/package.json
CHANGED
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
"description": "Visualizations Shared Files",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
5
5
|
"author": "Splunk",
|
|
6
|
-
"version": "28.
|
|
6
|
+
"version": "28.2.0",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"build": "viz-build
|
|
8
|
+
"build": "viz-build",
|
|
9
9
|
"build-storybook": "sb build -c .storybook -o .storybook-bundle",
|
|
10
10
|
"clean": "yarn clean:storybook && yarn clean:esbuild && yarn clean:test-reports",
|
|
11
11
|
"clean:storybook": "rm -rf .storybook-bundle",
|
|
12
12
|
"clean:esbuild": "git ls-files --others -i --exclude-standard *.js *.map | xargs rm",
|
|
13
13
|
"clean:test-reports": "rm -rf ./test-reports",
|
|
14
|
-
"dev": "viz-build --
|
|
14
|
+
"dev": "viz-build --watch",
|
|
15
15
|
"storybook": "sb dev -p 9001 -c .storybook",
|
|
16
16
|
"lint": "eslint src --ext \".js,.jsx,.es,.ts,.tsx\"",
|
|
17
17
|
"lint:fix": "yarn run lint --fix",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"test:integration": "echo integration test",
|
|
21
21
|
"test:unit": "jest src/.* --transformIgnorePatterns \"node_modules/(?!@splunk/react-docs)/\"",
|
|
22
22
|
"test:unit:ci": "yarn run test:unit",
|
|
23
|
-
"test:unit:watch": "
|
|
23
|
+
"test:unit:watch": "yarn test:unit --watch src/.*",
|
|
24
24
|
"test:visual": "yarn build-storybook --quiet && yarn loki test --reactUri file:./.storybook-bundle",
|
|
25
25
|
"test:visual:ci": "yarn test:visual --requireReference --verboseRenderer",
|
|
26
26
|
"test:visual:update": "yarn loki approve"
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@loki/create-async-callback": "^0.35.1",
|
|
30
30
|
"@splunk/moment": "^0.7.0",
|
|
31
|
-
"@splunk/react-icons": "^5.
|
|
32
|
-
"@splunk/react-ui": "^5.
|
|
33
|
-
"@splunk/themes": "^1.1
|
|
31
|
+
"@splunk/react-icons": "^5.3.0",
|
|
32
|
+
"@splunk/react-ui": "^5.3.0",
|
|
33
|
+
"@splunk/themes": "^1.2.1",
|
|
34
34
|
"@splunk/ui-utils": "^1.10.0",
|
|
35
|
-
"@splunk/visualization-encoding": "^28.
|
|
36
|
-
"@splunk/visualization-schemas": "^28.
|
|
35
|
+
"@splunk/visualization-encoding": "^28.2.0",
|
|
36
|
+
"@splunk/visualization-schemas": "^28.2.0",
|
|
37
37
|
"element-resize-detector": "^1.2.4",
|
|
38
38
|
"lodash": "^4.17.21",
|
|
39
39
|
"numeral": "^2.0.6",
|
|
@@ -41,21 +41,21 @@
|
|
|
41
41
|
"xmlserializer": "^0.6.1"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@splunk/visualization-context": "^28.
|
|
44
|
+
"@splunk/visualization-context": "^28.2.0",
|
|
45
45
|
"react": "^18.3.1",
|
|
46
46
|
"react-dom": "^18.3.1",
|
|
47
47
|
"styled-components": "^5.3.10"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@splunk/react-docs": "^1.
|
|
51
|
-
"@splunk/visualization-build-tools": "^28.
|
|
52
|
-
"@splunk/visualization-context": "^28.
|
|
50
|
+
"@splunk/react-docs": "^1.3.0",
|
|
51
|
+
"@splunk/visualization-build-tools": "^28.2.0",
|
|
52
|
+
"@splunk/visualization-context": "^28.2.0",
|
|
53
53
|
"@storybook/addon-actions": "^7.6.20",
|
|
54
54
|
"@storybook/addons": "^7.6.20",
|
|
55
55
|
"@storybook/react": "^7.6.20",
|
|
56
56
|
"@storybook/react-webpack5": "^7.6.20",
|
|
57
|
-
"@testing-library/dom": "^10.4.
|
|
58
|
-
"@testing-library/react": "^16.
|
|
57
|
+
"@testing-library/dom": "^10.4.1",
|
|
58
|
+
"@testing-library/react": "^16.3.0",
|
|
59
59
|
"jest-canvas-mock": "^2.5.2",
|
|
60
60
|
"jest-styled-components": "^7.2.0",
|
|
61
61
|
"loki": "^0.35.1",
|
package/schemaUtils.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { schemaDraft07 as default, createTestSchema, TOKEN_PATTERN, rgbColorPattern, rgbaColorPattern, colorPattern, colorPatternWithRGBA, COLOR_OR_TOKEN_PATTERN, COLOR_OR_TOKEN_PATTERN_WITH_RGBA, DYNAMIC_OPTIONS_DSL_PATTERN, getPattern, } from '@splunk/visualization-schemas';
|
package/style.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export function toPx(number: any, defaultNumber?: number): any;
|
|
2
|
+
export function toDimension({ width, height }: any): string;
|
|
3
|
+
export function arrayToCSSProp(prop: any, vals?: number[]): string;
|
|
4
|
+
export function toMargin(margins?: number[]): string;
|
|
5
|
+
export function toPadding(paddings?: number[]): string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FieldEntry } from './dataSourceUtils';
|
|
2
|
+
export declare const CHART = "chart";
|
|
3
|
+
export declare const TIMECHART = "timechart";
|
|
4
|
+
export declare const STATS = "stats";
|
|
5
|
+
export declare const UNKNOWN = "unknown";
|
|
6
|
+
export type DataSplitMode = 'timechart' | 'chart' | 'stats' | 'unknown';
|
|
7
|
+
export declare const getTrellisDataSplitterMode: (fields: FieldEntry[]) => DataSplitMode;
|
|
8
|
+
export declare const isTimeChartCmdData: (fields: FieldEntry[]) => boolean;
|
|
9
|
+
export declare const isChartCmdData: (fields: FieldEntry[]) => boolean;
|
|
10
|
+
export declare const isStatsCmdData: (fields: FieldEntry[]) => boolean;
|
|
11
|
+
export declare const checkForTrellisFieldMetaInfo: (fields: FieldEntry[]) => boolean;
|
|
12
|
+
export declare const extractSplitByFieldsChartFields: (fields: FieldEntry[]) => string[];
|
|
13
|
+
export declare const extractDataSourceAggregationKeysChart: (fields: FieldEntry[]) => string[];
|
|
14
|
+
export declare const extractAllAggregationKeysChart: (fields: FieldEntry[]) => string[];
|
|
15
|
+
export declare const extractDataSourceAggregationKeysStats: (fields: FieldEntry[]) => string[];
|
|
16
|
+
export declare const extractSplitByFieldsForStats: (fields: FieldEntry[]) => string[];
|
|
17
|
+
export declare const extractSplitByFieldsForUnknown: (fields: FieldEntry[]) => string[];
|
|
18
|
+
export declare const getAllPossibleSplitByFields: (fields: FieldEntry[]) => {
|
|
19
|
+
fields: string[];
|
|
20
|
+
aggregations: string[];
|
|
21
|
+
};
|
package/tsconfig.json
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
+
"lib": ["ES2020", "DOM"],
|
|
3
4
|
"sourceMap": true,
|
|
4
5
|
"module": "commonjs",
|
|
5
6
|
"target": "es6",
|
|
6
7
|
"jsx": "react",
|
|
7
8
|
"preserveSymlinks": true,
|
|
9
|
+
"declaration": true,
|
|
10
|
+
"declarationDir": ".",
|
|
11
|
+
"esModuleInterop": true,
|
|
12
|
+
"allowJs": true,
|
|
13
|
+
"checkJs": false,
|
|
14
|
+
"skipLibCheck": true
|
|
8
15
|
},
|
|
9
|
-
"include": [
|
|
10
|
-
|
|
11
|
-
"**/*.tsx"
|
|
12
|
-
],
|
|
13
|
-
"exclude": [
|
|
14
|
-
"node_modules/**/*",
|
|
15
|
-
"./src/**/*.test.ts"
|
|
16
|
-
]
|
|
16
|
+
"include": ["src/*.ts", "src/*.tsx"],
|
|
17
|
+
"exclude": ["./src/**/*.test.ts"]
|
|
17
18
|
}
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
/* Copyright © 2020 Splunk Inc.
|
|
2
|
-
SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
|
|
3
|
-
in part without a valid written license from Splunk Inc. is PROHIBITED. */
|
|
4
|
-
var __create = Object.create;
|
|
5
|
-
var __defProp = Object.defineProperty;
|
|
6
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
9
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11
|
-
var __export = (target, all) => {
|
|
12
|
-
for (var name in all)
|
|
13
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
14
|
-
};
|
|
15
|
-
var __copyProps = (to, from, except, desc) => {
|
|
16
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
17
|
-
for (let key of __getOwnPropNames(from))
|
|
18
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
19
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
20
|
-
}
|
|
21
|
-
return to;
|
|
22
|
-
};
|
|
23
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
24
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
25
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
26
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
27
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
28
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
29
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
30
|
-
mod
|
|
31
|
-
));
|
|
32
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
33
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
34
|
-
|
|
35
|
-
// src/SizeAwareWrapperDeprecated.jsx
|
|
36
|
-
var SizeAwareWrapperDeprecated_exports = {};
|
|
37
|
-
__export(SizeAwareWrapperDeprecated_exports, {
|
|
38
|
-
default: () => SizeAwareWrapperDeprecated_default
|
|
39
|
-
});
|
|
40
|
-
module.exports = __toCommonJS(SizeAwareWrapperDeprecated_exports);
|
|
41
|
-
|
|
42
|
-
// esm-externals:react
|
|
43
|
-
var react_exports = {};
|
|
44
|
-
__export(react_exports, {
|
|
45
|
-
default: () => react_default
|
|
46
|
-
});
|
|
47
|
-
var defaultImport = __toESM(require("react"));
|
|
48
|
-
__reExport(react_exports, require("react"));
|
|
49
|
-
var react_default = "default" in defaultImport ? defaultImport.default : defaultImport;
|
|
50
|
-
|
|
51
|
-
// esm-externals:prop-types
|
|
52
|
-
var prop_types_exports = {};
|
|
53
|
-
__export(prop_types_exports, {
|
|
54
|
-
default: () => prop_types_default
|
|
55
|
-
});
|
|
56
|
-
var defaultImport2 = __toESM(require("prop-types"));
|
|
57
|
-
__reExport(prop_types_exports, require("prop-types"));
|
|
58
|
-
var prop_types_default = "default" in defaultImport2 ? defaultImport2.default : defaultImport2;
|
|
59
|
-
|
|
60
|
-
// src/SizeAwareWrapperDeprecated.jsx
|
|
61
|
-
var styles = {
|
|
62
|
-
position: "absolute",
|
|
63
|
-
width: 0,
|
|
64
|
-
height: 0,
|
|
65
|
-
visibility: "hidden",
|
|
66
|
-
display: "none"
|
|
67
|
-
};
|
|
68
|
-
var SizeAwareWrapperDeprecated = class extends react_exports.PureComponent {
|
|
69
|
-
constructor(props) {
|
|
70
|
-
super(props);
|
|
71
|
-
__publicField(this, "getElement", () => {
|
|
72
|
-
const parentElement = this.el && this.el.parentElement;
|
|
73
|
-
return parentElement;
|
|
74
|
-
});
|
|
75
|
-
__publicField(this, "handleResize", (entries) => {
|
|
76
|
-
entries.forEach((entry) => {
|
|
77
|
-
const { width, height } = entry.contentRect;
|
|
78
|
-
this.animationFrameID = window.requestAnimationFrame(() => {
|
|
79
|
-
this.setState({ width, height });
|
|
80
|
-
});
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
__publicField(this, "renderChildren", () => {
|
|
84
|
-
const { width, height } = this.state;
|
|
85
|
-
const { children } = this.props;
|
|
86
|
-
if (width != null && height != null && typeof children === "function") {
|
|
87
|
-
return children({ width, height });
|
|
88
|
-
}
|
|
89
|
-
return null;
|
|
90
|
-
});
|
|
91
|
-
this.state = {
|
|
92
|
-
width: null,
|
|
93
|
-
height: null
|
|
94
|
-
};
|
|
95
|
-
this.animationFrameID = null;
|
|
96
|
-
this.ro = this.getResizeObserver();
|
|
97
|
-
}
|
|
98
|
-
componentDidMount() {
|
|
99
|
-
const resizableElement = this.getElement();
|
|
100
|
-
if (resizableElement) {
|
|
101
|
-
this.ro.observe(resizableElement);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
componentWillUnmount() {
|
|
105
|
-
const resizableElement = this.getElement();
|
|
106
|
-
if (resizableElement) {
|
|
107
|
-
this.ro.unobserve(resizableElement);
|
|
108
|
-
}
|
|
109
|
-
if (window && this.animationFrameID) {
|
|
110
|
-
window.cancelAnimationFrame(this.animationFrameID);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
getResizeObserver() {
|
|
114
|
-
if (typeof ResizeObserver !== "function") {
|
|
115
|
-
return {
|
|
116
|
-
observe() {
|
|
117
|
-
},
|
|
118
|
-
unobserve() {
|
|
119
|
-
}
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
return new ResizeObserver(this.handleResize);
|
|
123
|
-
}
|
|
124
|
-
render() {
|
|
125
|
-
return /* @__PURE__ */ react_default.createElement(react_default.Fragment, null, /* @__PURE__ */ react_default.createElement(
|
|
126
|
-
"div",
|
|
127
|
-
{
|
|
128
|
-
key: "resize-detector",
|
|
129
|
-
style: styles,
|
|
130
|
-
ref: (el) => {
|
|
131
|
-
this.el = el;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
), this.renderChildren());
|
|
135
|
-
}
|
|
136
|
-
};
|
|
137
|
-
SizeAwareWrapperDeprecated.propTypes = {
|
|
138
|
-
children: prop_types_default.any
|
|
139
|
-
// eslint-disable-line react/forbid-prop-types
|
|
140
|
-
};
|
|
141
|
-
SizeAwareWrapperDeprecated.defaultProps = {
|
|
142
|
-
children: null
|
|
143
|
-
};
|
|
144
|
-
var SizeAwareWrapperDeprecated_default = SizeAwareWrapperDeprecated;
|
|
145
|
-
//# sourceMappingURL=SizeAwareWrapperDeprecated.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["src/SizeAwareWrapperDeprecated.jsx", "esm-externals:react", "esm-externals:prop-types"],
|
|
4
|
-
"sourcesContent": ["import React, { PureComponent } from 'react';\nimport T from 'prop-types';\n\nconst styles = {\n position: 'absolute',\n width: 0,\n height: 0,\n visibility: 'hidden',\n display: 'none',\n};\n\nclass SizeAwareWrapperDeprecated extends PureComponent {\n constructor(props) {\n super(props);\n this.state = {\n width: null,\n height: null,\n };\n this.animationFrameID = null;\n this.ro = this.getResizeObserver();\n }\n\n componentDidMount() {\n const resizableElement = this.getElement();\n if (resizableElement) {\n this.ro.observe(resizableElement);\n }\n }\n\n componentWillUnmount() {\n const resizableElement = this.getElement();\n if (resizableElement) {\n this.ro.unobserve(resizableElement);\n }\n if (window && this.animationFrameID) {\n window.cancelAnimationFrame(this.animationFrameID);\n }\n }\n\n getElement = () => {\n // it listens on the size of its parent elemnt\n const parentElement = this.el && this.el.parentElement;\n return parentElement;\n };\n\n getResizeObserver() {\n if (typeof ResizeObserver !== 'function') {\n return {\n observe() {},\n unobserve() {},\n };\n }\n return new ResizeObserver(this.handleResize);\n }\n\n handleResize = entries => {\n entries.forEach(entry => {\n const { width, height } = entry.contentRect;\n // use requestAnimationFrame to make sure width/height is updated in time\n this.animationFrameID = window.requestAnimationFrame(() => {\n this.setState({ width, height });\n });\n });\n };\n\n renderChildren = () => {\n // expect children to be a function\n const { width, height } = this.state;\n const { children } = this.props;\n if (width != null && height != null && typeof children === 'function') {\n return children({ width, height });\n }\n return null;\n };\n\n render() {\n return (\n <>\n <div\n key=\"resize-detector\"\n style={styles}\n ref={el => {\n this.el = el;\n }}\n />\n {this.renderChildren()}\n </>\n );\n }\n}\n\nSizeAwareWrapperDeprecated.propTypes = {\n children: T.any, // eslint-disable-line react/forbid-prop-types\n};\n\nSizeAwareWrapperDeprecated.defaultProps = {\n children: null,\n};\n\nexport default SizeAwareWrapperDeprecated;\n", "\nimport * as defaultImport from \"react\";\nexport * from \"react\";\nexport default ('default' in defaultImport ? defaultImport.default : defaultImport);\n", "\nimport * as defaultImport from \"prop-types\";\nexport * from \"prop-types\";\nexport default ('default' in defaultImport ? defaultImport.default : defaultImport);\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AACA,oBAA+B;AAC/B,0BAAc;AACd,IAAO,gBAAS,aAAa,gBAA8B,wBAAU;;;ACHrE;AAAA;AAAA;AAAA;AACA,IAAAA,iBAA+B;AAC/B,+BAAc;AACd,IAAO,qBAAS,aAAaA,iBAA8B,yBAAUA;;;AFArE,IAAM,SAAS;AAAA,EACX,UAAU;AAAA,EACV,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,YAAY;AAAA,EACZ,SAAS;AACb;AAEA,IAAM,6BAAN,cAAyC,4BAAc;AAAA,EACnD,YAAY,OAAO;AACf,UAAM,KAAK;AA0Bf,sCAAa,MAAM;AAEf,YAAM,gBAAgB,KAAK,MAAM,KAAK,GAAG;AACzC,aAAO;AAAA,IACX;AAYA,wCAAe,aAAW;AACtB,cAAQ,QAAQ,WAAS;AACrB,cAAM,EAAE,OAAO,OAAO,IAAI,MAAM;AAEhC,aAAK,mBAAmB,OAAO,sBAAsB,MAAM;AACvD,eAAK,SAAS,EAAE,OAAO,OAAO,CAAC;AAAA,QACnC,CAAC;AAAA,MACL,CAAC;AAAA,IACL;AAEA,0CAAiB,MAAM;AAEnB,YAAM,EAAE,OAAO,OAAO,IAAI,KAAK;AAC/B,YAAM,EAAE,SAAS,IAAI,KAAK;AAC1B,UAAI,SAAS,QAAQ,UAAU,QAAQ,OAAO,aAAa,YAAY;AACnE,eAAO,SAAS,EAAE,OAAO,OAAO,CAAC;AAAA,MACrC;AACA,aAAO;AAAA,IACX;AA3DI,SAAK,QAAQ;AAAA,MACT,OAAO;AAAA,MACP,QAAQ;AAAA,IACZ;AACA,SAAK,mBAAmB;AACxB,SAAK,KAAK,KAAK,kBAAkB;AAAA,EACrC;AAAA,EAEA,oBAAoB;AAChB,UAAM,mBAAmB,KAAK,WAAW;AACzC,QAAI,kBAAkB;AAClB,WAAK,GAAG,QAAQ,gBAAgB;AAAA,IACpC;AAAA,EACJ;AAAA,EAEA,uBAAuB;AACnB,UAAM,mBAAmB,KAAK,WAAW;AACzC,QAAI,kBAAkB;AAClB,WAAK,GAAG,UAAU,gBAAgB;AAAA,IACtC;AACA,QAAI,UAAU,KAAK,kBAAkB;AACjC,aAAO,qBAAqB,KAAK,gBAAgB;AAAA,IACrD;AAAA,EACJ;AAAA,EAQA,oBAAoB;AAChB,QAAI,OAAO,mBAAmB,YAAY;AACtC,aAAO;AAAA,QACH,UAAU;AAAA,QAAC;AAAA,QACX,YAAY;AAAA,QAAC;AAAA,MACjB;AAAA,IACJ;AACA,WAAO,IAAI,eAAe,KAAK,YAAY;AAAA,EAC/C;AAAA,EAsBA,SAAS;AACL,WACI,0EACI;AAAA,MAAC;AAAA;AAAA,QACG,KAAI;AAAA,QACJ,OAAO;AAAA,QACP,KAAK,QAAM;AACP,eAAK,KAAK;AAAA,QACd;AAAA;AAAA,IACJ,GACC,KAAK,eAAe,CACzB;AAAA,EAER;AACJ;AAEA,2BAA2B,YAAY;AAAA,EACnC,UAAU,mBAAE;AAAA;AAChB;AAEA,2BAA2B,eAAe;AAAA,EACtC,UAAU;AACd;AAEA,IAAO,qCAAQ;",
|
|
6
|
-
"names": ["defaultImport"]
|
|
7
|
-
}
|