@splunk/visualizations-shared 25.7.2 → 25.8.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/Downloader.js +5 -60
- package/Downloader.js.map +1 -1
- package/FileDownloader.js +21 -95
- package/FileDownloader.js.map +1 -1
- package/JSONSchemaUtils.js +0 -5
- package/JSONSchemaUtils.js.map +1 -1
- package/Message.js +10 -21
- package/Message.js.map +1 -1
- package/RemoteIcon.js +33 -86
- package/RemoteIcon.js.map +1 -1
- package/RemoteImage.js +8 -44
- package/RemoteImage.js.map +1 -1
- package/SanitizeProps.js +14 -39
- package/SanitizeProps.js.map +1 -1
- package/SizeAwareWrapper.js +6 -34
- package/SizeAwareWrapper.js.map +1 -1
- package/VisualizationDocPage.js +18 -64
- package/VisualizationDocPage.js.map +1 -1
- package/colorConstants.js.map +1 -1
- package/colorUtils.js +14 -27
- package/colorUtils.js.map +1 -1
- package/configUtils.js +0 -2
- package/configUtils.js.map +1 -1
- package/console.js +0 -12
- package/console.js.map +1 -1
- package/dataSourceUtils.js +1 -10
- package/dataSourceUtils.js.map +1 -1
- package/domUtils.js.map +1 -1
- package/hocUtils.js +0 -14
- package/hocUtils.js.map +1 -1
- package/i18n.js +0 -2
- package/i18n.js.map +1 -1
- package/iconUtils.js +12 -11
- package/iconUtils.js.map +1 -1
- package/mapUtils.js +0 -4
- package/mapUtils.js.map +1 -1
- package/namedColors.js +2 -2
- package/namedColors.js.map +1 -1
- package/numberUtils.js +17 -27
- package/numberUtils.js.map +1 -1
- package/package.json +5 -5
- package/previewVizMessage.js.map +1 -1
- package/propUtils.js +5 -7
- package/propUtils.js.map +1 -1
- package/schemaUtils.js +10 -10
- package/schemaUtils.js.map +1 -1
- package/simpleXMLOptions.js +2 -2
- package/simpleXMLOptions.js.map +1 -1
- package/style.js +6 -11
- package/style.js.map +1 -1
- package/testHelper.js.map +1 -1
- package/themeUtils.js +7 -8
- package/themeUtils.js.map +1 -1
- package/trellisUtils.js +18 -62
- package/trellisUtils.js.map +1 -1
package/SanitizeProps.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"react\"","webpack:///./src/schemaUtils.js","webpack:///./src/namedColors.ts","webpack:///./src/colorUtils.ts","webpack:///external \"lodash\"","webpack:///./src/SanitizeProps.tsx"],"names":["$schema","$id","title","definitions","schemaArray","type","minItems","items","$ref","nonNegativeInteger","minimum","nonNegativeIntegerDefault0","allOf","default","simpleTypes","enum","stringArray","uniqueItems","properties","format","$comment","description","readOnly","examples","multipleOf","exclusiveMinimum","maximum","exclusiveMaximum","maxLength","minLength","pattern","additionalItems","anyOf","maxItems","contains","maxProperties","minProperties","required","additionalProperties","patternProperties","propertyNames","dependencies","const","contentMediaType","contentEncoding","if","then","else","oneOf","not","createTestSchema","optionsSchema","TOKEN_NAMESPACE_PREFIX_PATTERN","TOKEN_NAME_CHARS_PATTERN","TOKEN_PATTERN","rgbColorPattern","rgbaColorPattern","colorPattern","colorPatternWithRGBA","COLOR_OR_TOKEN_PATTERN","COLOR_OR_TOKEN_PATTERN_WITH_RGBA","DYNAMIC_OPTIONS_DSL_PATTERN","getPattern"],"mappings":";;;;;;;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;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,GAAD,EAAM,KAAK,CAAC,GAAD,CAAX,CAAnB,EAAsC;AACzC,WAAK,CAAC,GAAD,CAAL,GAAa,KAAK,CAAC,GAAD,CAAlB;AACH;;AACD,WAAO,KAAP;AACH,GAPM,EAOJ,EAPI,CAAP;AAQH;;AATD;AAWA;;;;;;AAMG;;AACH,SAAgB,kBAAhB,CACI,gBADJ,EAC4C;AAExC,MAAM,OAAO,GAAG,SAAV,OAAU,CAAC,KAAD,EAAa;AACzB,QAAM,cAAc,GAAG,QAAQ,CAAC,KAAD,CAA/B;AACA,WAAO,oBAAC,gBAAD,EAAiB,kBAAM,cAAN,CAAjB,CAAP;AACH,GAHD;;AAIA,SAAO,OAAP;AACH;;AARD,gD","file":"SanitizeProps.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 49);\n","module.exports = require(\"react\");","export default {\n $schema: 'http://json-schema.org/draft-07/schema#',\n $id: 'http://json-schema.org/draft-07/schema#',\n title: 'Core schema meta-schema',\n definitions: {\n schemaArray: {\n type: 'array',\n minItems: 1,\n items: { $ref: '#' },\n },\n nonNegativeInteger: {\n type: 'integer',\n minimum: 0,\n },\n nonNegativeIntegerDefault0: {\n allOf: [{ $ref: '#/definitions/nonNegativeInteger' }, { default: 0 }],\n },\n simpleTypes: {\n enum: ['array', 'boolean', 'integer', 'null', 'number', 'object', 'string'],\n },\n stringArray: {\n type: 'array',\n items: { type: 'string' },\n uniqueItems: true,\n default: [],\n },\n },\n type: ['object', 'boolean'],\n properties: {\n $id: {\n type: 'string',\n format: 'uri-reference',\n },\n $schema: {\n type: 'string',\n format: 'uri',\n },\n $ref: {\n type: 'string',\n format: 'uri-reference',\n },\n $comment: {\n type: 'string',\n },\n title: {\n type: 'string',\n },\n description: {\n type: 'string',\n },\n default: true,\n readOnly: {\n type: 'boolean',\n default: false,\n },\n examples: {\n type: 'array',\n items: true,\n },\n multipleOf: {\n type: 'number',\n exclusiveMinimum: 0,\n },\n maximum: {\n type: 'number',\n },\n exclusiveMaximum: {\n type: 'number',\n },\n minimum: {\n type: 'number',\n },\n exclusiveMinimum: {\n type: 'number',\n },\n maxLength: { $ref: '#/definitions/nonNegativeInteger' },\n minLength: { $ref: '#/definitions/nonNegativeIntegerDefault0' },\n pattern: {\n type: 'string',\n format: 'regex',\n },\n additionalItems: { $ref: '#' },\n items: {\n anyOf: [{ $ref: '#' }, { $ref: '#/definitions/schemaArray' }],\n default: true,\n },\n maxItems: { $ref: '#/definitions/nonNegativeInteger' },\n minItems: { $ref: '#/definitions/nonNegativeIntegerDefault0' },\n uniqueItems: {\n type: 'boolean',\n default: false,\n },\n contains: { $ref: '#' },\n maxProperties: { $ref: '#/definitions/nonNegativeInteger' },\n minProperties: { $ref: '#/definitions/nonNegativeIntegerDefault0' },\n required: { $ref: '#/definitions/stringArray' },\n additionalProperties: { $ref: '#' },\n definitions: {\n type: 'object',\n additionalProperties: { $ref: '#' },\n default: {},\n },\n properties: {\n type: 'object',\n additionalProperties: { $ref: '#' },\n default: {},\n },\n patternProperties: {\n type: 'object',\n additionalProperties: { $ref: '#' },\n propertyNames: { format: 'regex' },\n default: {},\n },\n dependencies: {\n type: 'object',\n additionalProperties: {\n anyOf: [{ $ref: '#' }, { $ref: '#/definitions/stringArray' }],\n },\n },\n propertyNames: { $ref: '#' },\n const: true,\n enum: {\n type: 'array',\n items: true,\n minItems: 1,\n uniqueItems: true,\n },\n type: {\n anyOf: [\n { $ref: '#/definitions/simpleTypes' },\n {\n type: 'array',\n items: { $ref: '#/definitions/simpleTypes' },\n minItems: 1,\n uniqueItems: true,\n },\n ],\n },\n format: { type: 'string' },\n contentMediaType: { type: 'string' },\n contentEncoding: { type: 'string' },\n if: { $ref: '#' },\n then: { $ref: '#' },\n else: { $ref: '#' },\n allOf: { $ref: '#/definitions/schemaArray' },\n anyOf: { $ref: '#/definitions/schemaArray' },\n oneOf: { $ref: '#/definitions/schemaArray' },\n not: { $ref: '#' },\n },\n default: true,\n};\n\nexport const createTestSchema = optionsSchema => ({\n $schema: 'http://json-schema.org/draft-07/schema#',\n $id: 'http://www.splunk.com/dashboard.schema.json',\n title: 'Dashboard Definition',\n description: 'Dashboard Definition',\n type: 'object',\n properties: optionsSchema,\n});\n\n// Below 2 regexs are copied from dashboard-framework/packages/dashboard-utils/src/token.jsc\nconst TOKEN_NAMESPACE_PREFIX_PATTERN = /(\\w+:)?/.source;\n// ex: token.name|suh (old-style filter chain)\n// ex: token.name|lower|capitalize (new-style filter chain)\nconst TOKEN_NAME_CHARS_PATTERN = /([^$|:]+?)(\\|[|\\w]+)?/.source;\n\nexport const TOKEN_PATTERN =\n /\\$/.source + TOKEN_NAMESPACE_PREFIX_PATTERN + TOKEN_NAME_CHARS_PATTERN + /\\$/.source;\n// rgb and rgba regexes were derived from:\n// https://stackoverflow.com/questions/9585973/javascript-regular-expression-for-rgb-values/9586150\n// https://github.com/regexhq/rgba-regex\n// NOTE: this will incorrectly accept values like rgb(999,999,999), but may be overkill to specify a regex that limits values to <= 255\nexport const rgbColorPattern = /^rgb\\(\\s*(\\d{1,3}),\\s*(\\d{1,3}),\\s*(\\d{1,3})\\)$/;\nexport const rgbaColorPattern = /^rgba\\(\\s*(\\d{1,3}%?),\\s*(\\d{1,3}%?),\\s*(\\d{1,3}%?),\\s*(\\d*(?:\\.\\d+)?)\\)$/;\n// todo: rename this to COLOR_PATTERN and replace all occurences.\nexport const colorPattern = '^#[0-9a-fA-F]{6}$|transparent';\nexport const colorPatternWithRGBA = `${colorPattern}|${rgbColorPattern.source}|${rgbaColorPattern.source}`;\nexport const COLOR_OR_TOKEN_PATTERN = `${colorPattern}|${TOKEN_PATTERN}`;\nexport const COLOR_OR_TOKEN_PATTERN_WITH_RGBA = `${colorPatternWithRGBA}|${TOKEN_PATTERN}`;\n// dynamic option DSL expressions always start with a >\nexport const DYNAMIC_OPTIONS_DSL_PATTERN = /^>.*/.source;\n/**\n * Returns the regex string that matches each passed in value as well as tokens.\n * @param {Array.<string>} values\n * @returns {string}\n */\nexport const getPattern = values =>\n values.reduce((accumulator, value) => `${accumulator}|^${value}$`, TOKEN_PATTERN);\n","// Reference - https://www.w3.org/TR/css-color-4/#named-colors\nexport default [\n 'transparent',\n 'aliceblue',\n 'antiquewhite',\n 'aqua',\n 'aquamarine',\n 'azure',\n 'beige',\n 'bisque',\n 'black',\n 'blanchedalmond',\n 'blue',\n 'blueviolet',\n 'brown',\n 'burlywood',\n 'cadetblue',\n 'chartreuse',\n 'chocolate',\n 'coral',\n 'cornflowerblue',\n 'cornsilk',\n 'crimson',\n 'cyan',\n 'darkblue',\n 'darkcyan',\n 'darkgoldenrod',\n 'darkgray',\n 'darkgreen',\n 'darkgrey',\n 'darkkhaki',\n 'darkmagenta',\n 'darkolivegreen',\n 'darkorange',\n 'darkorchid',\n 'darkred',\n 'darksalmon',\n 'darkseagreen',\n 'darkslateblue',\n 'darkslategray',\n 'darkslategrey',\n 'darkturquoise',\n 'darkviolet',\n 'deeppink',\n 'deepskyblue',\n 'dimgray',\n 'dimgrey',\n 'dodgerblue',\n 'firebrick',\n 'floralwhite',\n 'forestgreen',\n 'fuchsia',\n 'gainsboro',\n 'ghostwhite',\n 'gold',\n 'goldenrod',\n 'gray',\n 'green',\n 'greenyellow',\n 'grey',\n 'honeydew',\n 'hotpink',\n 'indianred',\n 'indigo',\n 'ivory',\n 'khaki',\n 'lavender',\n 'lavenderblush',\n 'lawngreen',\n 'lemonchiffon',\n 'lightblue',\n 'lightcoral',\n 'lightcyan',\n 'lightgoldenrodyellow',\n 'lightgray',\n 'lightgreen',\n 'lightgrey',\n 'lightpink',\n 'lightsalmon',\n 'lightseagreen',\n 'lightskyblue',\n 'lightslategray',\n 'lightslategrey',\n 'lightsteelblue',\n 'lightyellow',\n 'lime',\n 'limegreen',\n 'linen',\n 'magenta',\n 'maroon',\n 'mediumaquamarine',\n 'mediumblue',\n 'mediumorchid',\n 'mediumpurple',\n 'mediumseagreen',\n 'mediumslateblue',\n 'mediumspringgreen',\n 'mediumturquoise',\n 'mediumvioletred',\n 'midnightblue',\n 'mintcream',\n 'mistyrose',\n 'moccasin',\n 'navajowhite',\n 'navy',\n 'oldlace',\n 'olive',\n 'olivedrab',\n 'orange',\n 'orangered',\n 'orchid',\n 'palegoldenrod',\n 'palegreen',\n 'paleturquoise',\n 'palevioletred',\n 'papayawhip',\n 'peachpuff',\n 'peru',\n 'pink',\n 'plum',\n 'powderblue',\n 'purple',\n 'rebeccapurple',\n 'red',\n 'rosybrown',\n 'royalblue',\n 'saddlebrown',\n 'salmon',\n 'sandybrown',\n 'seagreen',\n 'seashell',\n 'sienna',\n 'silver',\n 'skyblue',\n 'slateblue',\n 'slategray',\n 'slategrey',\n 'snow',\n 'springgreen',\n 'steelblue',\n 'tan',\n 'teal',\n 'thistle',\n 'tomato',\n 'turquoise',\n 'violet',\n 'wheat',\n 'white',\n 'whitesmoke',\n 'yellow',\n 'yellowgreen',\n];\n","import { rgbColorPattern, rgbaColorPattern } from './schemaUtils';\nimport namedColors from './namedColors';\n\n/**\n * Validates if a given string is a valid color\n *\n * @param {string} color\n * @returns {boolean}\n */\nexport function isColor(color = ''): boolean {\n if (typeof color !== 'string') {\n return false;\n }\n if (color.charAt(0) === '#') {\n color = color.substring(1); // eslint-disable-line no-param-reassign\n return [3, 4, 6, 8].indexOf(color.length) > -1 && !Number.isNaN(parseInt(color, 16));\n }\n const trimmedColor = color.trim();\n if (rgbColorPattern.test(trimmedColor) || rgbaColorPattern.test(trimmedColor)) {\n return true;\n }\n return namedColors.includes(color.toLowerCase());\n // for future when we want to support rgb | hsl\n // return /^(rgb|hsl)a?\\((\\d+%?(deg|rad|grad|turn)?[,\\s]+){2,3}[\\s\\/]*[\\d\\.]+%?\\)$/i.test(color);\n}\n\n/**\n * Validates if a given array of strings is a valid array of colors\n * @param colors\n * @returns\n */\nexport const isArrayOfColors = (colors: string[]) => Array.isArray(colors) && colors.every(isColor);\n\n/**\n * Sanitizes an array of colors `arr` to replace any non-color values with undefined,\n * or the value of `fallback` if provided.\n *\n * @param arr\n * @param {string} fallback\n * @returns {string[]} sanitized array any non-color values replaced with `fallback`\n */\nexport const sanitizeArrayOfColors = (arr: any[], fallback?: string): string[] => {\n return arr.map(entry => (isColor(entry) ? entry : fallback));\n};\n","module.exports = require(\"lodash\");","/* eslint-disable no-param-reassign */\nimport * as React from 'react';\nimport { isPlainObject } from 'lodash';\nimport { isColor } from './colorUtils';\n\nconst propsKeyValidators = {\n backgroundColor: isColor,\n deltaColor: isColor, // SV react-visualizations & dashboard-visualizations\n trendColor: isColor, // SV visualizations\n fontColor: isColor,\n fillColor: isColor,\n gaugeColor: isColor,\n majorColor: isColor,\n radialBackgroundColor: isColor,\n radialStrokeColor: isColor,\n sparklineFillColor: isColor,\n sparklineStrokeColor: isColor,\n strokeColor: isColor,\n strokeHighlightColor: isColor,\n headerBackgroundColor: isColor,\n rowBackgroundColorOdd: isColor,\n rowBackgroundColorEven: isColor,\n headerTextColor: isColor,\n rowTextColorOdd: isColor,\n rowTextColorEven: isColor,\n color: isColor,\n textColor: isColor,\n defaultFontColor: isColor,\n defaultBlockFontColor: isColor,\n sparklineAreaColor: isColor,\n iconColor: isColor,\n areaColor: isColor,\n nodeColor: isColor,\n nodeHighlightColor: isColor,\n linkColor: isColor,\n nodeTextColor: isColor,\n nodeTextHighlightColor: isColor,\n trellisBackgroundColor: isColor,\n};\n\n/**\n * Validates if a given key value pair are valid\n * based on a set of predefined rules.\n *\n * @param {string} key\n * @param {string} value\n * @returns {boolean}\n */\nfunction isValidProperty(key: string, value: string): boolean {\n const { hasOwnProperty } = Object.prototype;\n return hasOwnProperty.call(propsKeyValidators, key) ? propsKeyValidators[key](value) : true;\n}\n\n/**\n * Validates every property in the key and return\n * only valid keys\n *\n * @export\n * @template T\n * @param {T} props\n * @returns {Partial<T>}\n */\nexport function sanitize<T extends Record<string, any>>(props: T): Partial<T> {\n return Object.keys(props).reduce((accum, key) => {\n if (key === 'options' && isPlainObject(props.options)) {\n accum[key] = sanitize(props.options);\n } else if (isValidProperty(key, props[key])) {\n accum[key] = props[key];\n }\n return accum;\n }, {});\n}\n\n/**\n * Helper HOC which will sanitize invalid props\n *\n * @export\n * @param {React.ComponentType} WrappedComponent\n * @returns {React.ComponentType}\n */\nexport function withSanitizedProps<T>(\n WrappedComponent: React.ComponentType<T>\n): React.ComponentType<Partial<T>> {\n const Wrapper = (props: T) => {\n const sanitizedProps = sanitize(props);\n return <WrappedComponent {...(sanitizedProps as T)} />;\n };\n return Wrapper;\n}\n"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"react\"","webpack:///./src/schemaUtils.js","webpack:///./src/namedColors.ts","webpack:///./src/colorUtils.ts","webpack:///external \"lodash\"","webpack:///./src/SanitizeProps.tsx"],"names":["$schema","$id","title","definitions","schemaArray","type","minItems","items","$ref","nonNegativeInteger","minimum","nonNegativeIntegerDefault0","allOf","default","simpleTypes","enum","stringArray","uniqueItems","properties","format","$comment","description","readOnly","examples","multipleOf","exclusiveMinimum","maximum","exclusiveMaximum","maxLength","minLength","pattern","additionalItems","anyOf","maxItems","contains","maxProperties","minProperties","required","additionalProperties","patternProperties","propertyNames","dependencies","const","contentMediaType","contentEncoding","if","then","else","oneOf","not","createTestSchema","optionsSchema","TOKEN_NAMESPACE_PREFIX_PATTERN","source","TOKEN_NAME_CHARS_PATTERN","TOKEN_PATTERN","rgbColorPattern","rgbaColorPattern","colorPattern","colorPatternWithRGBA","concat","COLOR_OR_TOKEN_PATTERN","COLOR_OR_TOKEN_PATTERN_WITH_RGBA","DYNAMIC_OPTIONS_DSL_PATTERN","getPattern","values","reduce","accumulator","value","exports","schemaUtils_1","require","namedColors_1","isColor","color","arguments","length","undefined","charAt","substring","indexOf","Number","isNaN","parseInt","trimmedColor","trim","test","includes","toLowerCase","isArrayOfColors","colors","Array","isArray","every","sanitizeArrayOfColors","arr","fallback","map","entry","React","lodash_1","colorUtils_1","propsKeyValidators","backgroundColor","deltaColor","trendColor","fontColor","fillColor","gaugeColor","majorColor","radialBackgroundColor","radialStrokeColor","sparklineFillColor","sparklineStrokeColor","strokeColor","strokeHighlightColor","headerBackgroundColor","rowBackgroundColorOdd","rowBackgroundColorEven","headerTextColor","rowTextColorOdd","rowTextColorEven","textColor","defaultFontColor","defaultBlockFontColor","sparklineAreaColor","iconColor","areaColor","nodeColor","nodeHighlightColor","linkColor","nodeTextColor","nodeTextHighlightColor","trellisBackgroundColor","isValidProperty","key","hasOwnProperty","Object","prototype","call","sanitize","props","keys","accum","isPlainObject","options","withSanitizedProps","WrappedComponent","Wrapper","sanitizedProps","createElement","assign"],"mappings":";;;;;;;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;AClFA,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;EAExC,IAAMC,OAAO,GAAG,SAAVA,OAAOA,CAAIP,KAAQ,EAAI;IACzB,IAAMQ,cAAc,GAAGT,QAAQ,CAACC,KAAK,CAAC;IACtC,OAAO1C,KAAA,CAAAmD,aAAA,CAACH,gBAAgB,EAAAV,MAAA,CAAAc,MAAA,KAAMF,cAAoB,EAAI;EAC1D,CAAC;EACD,OAAOD,OAAO;AAClB;AARA/E,OAAA,CAAA6E,kBAAA,GAAAA,kBAAA,C","file":"SanitizeProps.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 49);\n","module.exports = require(\"react\");","export default {\n $schema: 'http://json-schema.org/draft-07/schema#',\n $id: 'http://json-schema.org/draft-07/schema#',\n title: 'Core schema meta-schema',\n definitions: {\n schemaArray: {\n type: 'array',\n minItems: 1,\n items: { $ref: '#' },\n },\n nonNegativeInteger: {\n type: 'integer',\n minimum: 0,\n },\n nonNegativeIntegerDefault0: {\n allOf: [{ $ref: '#/definitions/nonNegativeInteger' }, { default: 0 }],\n },\n simpleTypes: {\n enum: ['array', 'boolean', 'integer', 'null', 'number', 'object', 'string'],\n },\n stringArray: {\n type: 'array',\n items: { type: 'string' },\n uniqueItems: true,\n default: [],\n },\n },\n type: ['object', 'boolean'],\n properties: {\n $id: {\n type: 'string',\n format: 'uri-reference',\n },\n $schema: {\n type: 'string',\n format: 'uri',\n },\n $ref: {\n type: 'string',\n format: 'uri-reference',\n },\n $comment: {\n type: 'string',\n },\n title: {\n type: 'string',\n },\n description: {\n type: 'string',\n },\n default: true,\n readOnly: {\n type: 'boolean',\n default: false,\n },\n examples: {\n type: 'array',\n items: true,\n },\n multipleOf: {\n type: 'number',\n exclusiveMinimum: 0,\n },\n maximum: {\n type: 'number',\n },\n exclusiveMaximum: {\n type: 'number',\n },\n minimum: {\n type: 'number',\n },\n exclusiveMinimum: {\n type: 'number',\n },\n maxLength: { $ref: '#/definitions/nonNegativeInteger' },\n minLength: { $ref: '#/definitions/nonNegativeIntegerDefault0' },\n pattern: {\n type: 'string',\n format: 'regex',\n },\n additionalItems: { $ref: '#' },\n items: {\n anyOf: [{ $ref: '#' }, { $ref: '#/definitions/schemaArray' }],\n default: true,\n },\n maxItems: { $ref: '#/definitions/nonNegativeInteger' },\n minItems: { $ref: '#/definitions/nonNegativeIntegerDefault0' },\n uniqueItems: {\n type: 'boolean',\n default: false,\n },\n contains: { $ref: '#' },\n maxProperties: { $ref: '#/definitions/nonNegativeInteger' },\n minProperties: { $ref: '#/definitions/nonNegativeIntegerDefault0' },\n required: { $ref: '#/definitions/stringArray' },\n additionalProperties: { $ref: '#' },\n definitions: {\n type: 'object',\n additionalProperties: { $ref: '#' },\n default: {},\n },\n properties: {\n type: 'object',\n additionalProperties: { $ref: '#' },\n default: {},\n },\n patternProperties: {\n type: 'object',\n additionalProperties: { $ref: '#' },\n propertyNames: { format: 'regex' },\n default: {},\n },\n dependencies: {\n type: 'object',\n additionalProperties: {\n anyOf: [{ $ref: '#' }, { $ref: '#/definitions/stringArray' }],\n },\n },\n propertyNames: { $ref: '#' },\n const: true,\n enum: {\n type: 'array',\n items: true,\n minItems: 1,\n uniqueItems: true,\n },\n type: {\n anyOf: [\n { $ref: '#/definitions/simpleTypes' },\n {\n type: 'array',\n items: { $ref: '#/definitions/simpleTypes' },\n minItems: 1,\n uniqueItems: true,\n },\n ],\n },\n format: { type: 'string' },\n contentMediaType: { type: 'string' },\n contentEncoding: { type: 'string' },\n if: { $ref: '#' },\n then: { $ref: '#' },\n else: { $ref: '#' },\n allOf: { $ref: '#/definitions/schemaArray' },\n anyOf: { $ref: '#/definitions/schemaArray' },\n oneOf: { $ref: '#/definitions/schemaArray' },\n not: { $ref: '#' },\n },\n default: true,\n};\n\nexport const createTestSchema = optionsSchema => ({\n $schema: 'http://json-schema.org/draft-07/schema#',\n $id: 'http://www.splunk.com/dashboard.schema.json',\n title: 'Dashboard Definition',\n description: 'Dashboard Definition',\n type: 'object',\n properties: optionsSchema,\n});\n\n// Below 2 regexs are copied from dashboard-framework/packages/dashboard-utils/src/token.jsc\nconst TOKEN_NAMESPACE_PREFIX_PATTERN = /(\\w+:)?/.source;\n// ex: token.name|suh (old-style filter chain)\n// ex: token.name|lower|capitalize (new-style filter chain)\nconst TOKEN_NAME_CHARS_PATTERN = /([^$|:]+?)(\\|[|\\w]+)?/.source;\n\nexport const TOKEN_PATTERN =\n /\\$/.source + TOKEN_NAMESPACE_PREFIX_PATTERN + TOKEN_NAME_CHARS_PATTERN + /\\$/.source;\n// rgb and rgba regexes were derived from:\n// https://stackoverflow.com/questions/9585973/javascript-regular-expression-for-rgb-values/9586150\n// https://github.com/regexhq/rgba-regex\n// NOTE: this will incorrectly accept values like rgb(999,999,999), but may be overkill to specify a regex that limits values to <= 255\nexport const rgbColorPattern = /^rgb\\(\\s*(\\d{1,3}),\\s*(\\d{1,3}),\\s*(\\d{1,3})\\)$/;\nexport const rgbaColorPattern = /^rgba\\(\\s*(\\d{1,3}%?),\\s*(\\d{1,3}%?),\\s*(\\d{1,3}%?),\\s*(\\d*(?:\\.\\d+)?)\\)$/;\n// todo: rename this to COLOR_PATTERN and replace all occurences.\nexport const colorPattern = '^#[0-9a-fA-F]{6}$|transparent';\nexport const colorPatternWithRGBA = `${colorPattern}|${rgbColorPattern.source}|${rgbaColorPattern.source}`;\nexport const COLOR_OR_TOKEN_PATTERN = `${colorPattern}|${TOKEN_PATTERN}`;\nexport const COLOR_OR_TOKEN_PATTERN_WITH_RGBA = `${colorPatternWithRGBA}|${TOKEN_PATTERN}`;\n// dynamic option DSL expressions always start with a >\nexport const DYNAMIC_OPTIONS_DSL_PATTERN = /^>.*/.source;\n/**\n * Returns the regex string that matches each passed in value as well as tokens.\n * @param {Array.<string>} values\n * @returns {string}\n */\nexport const getPattern = values =>\n values.reduce((accumulator, value) => `${accumulator}|^${value}$`, TOKEN_PATTERN);\n","// Reference - https://www.w3.org/TR/css-color-4/#named-colors\nexport default [\n 'transparent',\n 'aliceblue',\n 'antiquewhite',\n 'aqua',\n 'aquamarine',\n 'azure',\n 'beige',\n 'bisque',\n 'black',\n 'blanchedalmond',\n 'blue',\n 'blueviolet',\n 'brown',\n 'burlywood',\n 'cadetblue',\n 'chartreuse',\n 'chocolate',\n 'coral',\n 'cornflowerblue',\n 'cornsilk',\n 'crimson',\n 'cyan',\n 'darkblue',\n 'darkcyan',\n 'darkgoldenrod',\n 'darkgray',\n 'darkgreen',\n 'darkgrey',\n 'darkkhaki',\n 'darkmagenta',\n 'darkolivegreen',\n 'darkorange',\n 'darkorchid',\n 'darkred',\n 'darksalmon',\n 'darkseagreen',\n 'darkslateblue',\n 'darkslategray',\n 'darkslategrey',\n 'darkturquoise',\n 'darkviolet',\n 'deeppink',\n 'deepskyblue',\n 'dimgray',\n 'dimgrey',\n 'dodgerblue',\n 'firebrick',\n 'floralwhite',\n 'forestgreen',\n 'fuchsia',\n 'gainsboro',\n 'ghostwhite',\n 'gold',\n 'goldenrod',\n 'gray',\n 'green',\n 'greenyellow',\n 'grey',\n 'honeydew',\n 'hotpink',\n 'indianred',\n 'indigo',\n 'ivory',\n 'khaki',\n 'lavender',\n 'lavenderblush',\n 'lawngreen',\n 'lemonchiffon',\n 'lightblue',\n 'lightcoral',\n 'lightcyan',\n 'lightgoldenrodyellow',\n 'lightgray',\n 'lightgreen',\n 'lightgrey',\n 'lightpink',\n 'lightsalmon',\n 'lightseagreen',\n 'lightskyblue',\n 'lightslategray',\n 'lightslategrey',\n 'lightsteelblue',\n 'lightyellow',\n 'lime',\n 'limegreen',\n 'linen',\n 'magenta',\n 'maroon',\n 'mediumaquamarine',\n 'mediumblue',\n 'mediumorchid',\n 'mediumpurple',\n 'mediumseagreen',\n 'mediumslateblue',\n 'mediumspringgreen',\n 'mediumturquoise',\n 'mediumvioletred',\n 'midnightblue',\n 'mintcream',\n 'mistyrose',\n 'moccasin',\n 'navajowhite',\n 'navy',\n 'oldlace',\n 'olive',\n 'olivedrab',\n 'orange',\n 'orangered',\n 'orchid',\n 'palegoldenrod',\n 'palegreen',\n 'paleturquoise',\n 'palevioletred',\n 'papayawhip',\n 'peachpuff',\n 'peru',\n 'pink',\n 'plum',\n 'powderblue',\n 'purple',\n 'rebeccapurple',\n 'red',\n 'rosybrown',\n 'royalblue',\n 'saddlebrown',\n 'salmon',\n 'sandybrown',\n 'seagreen',\n 'seashell',\n 'sienna',\n 'silver',\n 'skyblue',\n 'slateblue',\n 'slategray',\n 'slategrey',\n 'snow',\n 'springgreen',\n 'steelblue',\n 'tan',\n 'teal',\n 'thistle',\n 'tomato',\n 'turquoise',\n 'violet',\n 'wheat',\n 'white',\n 'whitesmoke',\n 'yellow',\n 'yellowgreen',\n];\n","import { rgbColorPattern, rgbaColorPattern } from './schemaUtils';\nimport namedColors from './namedColors';\n\n/**\n * Validates if a given string is a valid color\n *\n * @param {string} color\n * @returns {boolean}\n */\nexport function isColor(color = ''): boolean {\n if (typeof color !== 'string') {\n return false;\n }\n if (color.charAt(0) === '#') {\n color = color.substring(1); // eslint-disable-line no-param-reassign\n return [3, 4, 6, 8].indexOf(color.length) > -1 && !Number.isNaN(parseInt(color, 16));\n }\n const trimmedColor = color.trim();\n if (rgbColorPattern.test(trimmedColor) || rgbaColorPattern.test(trimmedColor)) {\n return true;\n }\n return namedColors.includes(color.toLowerCase());\n // for future when we want to support rgb | hsl\n // return /^(rgb|hsl)a?\\((\\d+%?(deg|rad|grad|turn)?[,\\s]+){2,3}[\\s\\/]*[\\d\\.]+%?\\)$/i.test(color);\n}\n\n/**\n * Validates if a given array of strings is a valid array of colors\n * @param colors\n * @returns\n */\nexport const isArrayOfColors = (colors: string[]) => Array.isArray(colors) && colors.every(isColor);\n\n/**\n * Sanitizes an array of colors `arr` to replace any non-color values with undefined,\n * or the value of `fallback` if provided.\n *\n * @param arr\n * @param {string} fallback\n * @returns {string[]} sanitized array any non-color values replaced with `fallback`\n */\nexport const sanitizeArrayOfColors = (arr: any[], fallback?: string): string[] => {\n return arr.map(entry => (isColor(entry) ? entry : fallback));\n};\n","module.exports = require(\"lodash\");","/* eslint-disable no-param-reassign */\nimport * as React from 'react';\nimport { isPlainObject } from 'lodash';\nimport { isColor } from './colorUtils';\n\nconst propsKeyValidators = {\n backgroundColor: isColor,\n deltaColor: isColor, // SV react-visualizations & dashboard-visualizations\n trendColor: isColor, // SV visualizations\n fontColor: isColor,\n fillColor: isColor,\n gaugeColor: isColor,\n majorColor: isColor,\n radialBackgroundColor: isColor,\n radialStrokeColor: isColor,\n sparklineFillColor: isColor,\n sparklineStrokeColor: isColor,\n strokeColor: isColor,\n strokeHighlightColor: isColor,\n headerBackgroundColor: isColor,\n rowBackgroundColorOdd: isColor,\n rowBackgroundColorEven: isColor,\n headerTextColor: isColor,\n rowTextColorOdd: isColor,\n rowTextColorEven: isColor,\n color: isColor,\n textColor: isColor,\n defaultFontColor: isColor,\n defaultBlockFontColor: isColor,\n sparklineAreaColor: isColor,\n iconColor: isColor,\n areaColor: isColor,\n nodeColor: isColor,\n nodeHighlightColor: isColor,\n linkColor: isColor,\n nodeTextColor: isColor,\n nodeTextHighlightColor: isColor,\n trellisBackgroundColor: isColor,\n};\n\n/**\n * Validates if a given key value pair are valid\n * based on a set of predefined rules.\n *\n * @param {string} key\n * @param {string} value\n * @returns {boolean}\n */\nfunction isValidProperty(key: string, value: string): boolean {\n const { hasOwnProperty } = Object.prototype;\n return hasOwnProperty.call(propsKeyValidators, key) ? propsKeyValidators[key](value) : true;\n}\n\n/**\n * Validates every property in the key and return\n * only valid keys\n *\n * @export\n * @template T\n * @param {T} props\n * @returns {Partial<T>}\n */\nexport function sanitize<T extends Record<string, any>>(props: T): Partial<T> {\n return Object.keys(props).reduce((accum, key) => {\n if (key === 'options' && isPlainObject(props.options)) {\n accum[key] = sanitize(props.options);\n } else if (isValidProperty(key, props[key])) {\n accum[key] = props[key];\n }\n return accum;\n }, {});\n}\n\n/**\n * Helper HOC which will sanitize invalid props\n *\n * @export\n * @param {React.ComponentType} WrappedComponent\n * @returns {React.ComponentType}\n */\nexport function withSanitizedProps<T>(\n WrappedComponent: React.ComponentType<T>\n): React.ComponentType<Partial<T>> {\n const Wrapper = (props: T) => {\n const sanitizedProps = sanitize(props);\n return <WrappedComponent {...(sanitizedProps as T)} />;\n };\n return Wrapper;\n}\n"],"sourceRoot":""}
|
package/SizeAwareWrapper.js
CHANGED
|
@@ -164,31 +164,24 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
164
164
|
|
|
165
165
|
|
|
166
166
|
|
|
167
|
-
|
|
168
167
|
function _createSuper(Derived) {
|
|
169
168
|
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
170
|
-
|
|
171
169
|
return function _createSuperInternal() {
|
|
172
170
|
var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived),
|
|
173
|
-
|
|
174
|
-
|
|
171
|
+
result;
|
|
175
172
|
if (hasNativeReflectConstruct) {
|
|
176
173
|
var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor;
|
|
177
|
-
|
|
178
174
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
179
175
|
} else {
|
|
180
176
|
result = Super.apply(this, arguments);
|
|
181
177
|
}
|
|
182
|
-
|
|
183
178
|
return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result);
|
|
184
179
|
};
|
|
185
180
|
}
|
|
186
|
-
|
|
187
181
|
function _isNativeReflectConstruct() {
|
|
188
182
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
189
183
|
if (Reflect.construct.sham) return false;
|
|
190
184
|
if (typeof Proxy === "function") return true;
|
|
191
|
-
|
|
192
185
|
try {
|
|
193
186
|
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
194
187
|
return true;
|
|
@@ -198,7 +191,6 @@ function _isNativeReflectConstruct() {
|
|
|
198
191
|
}
|
|
199
192
|
|
|
200
193
|
|
|
201
|
-
|
|
202
194
|
var styles = {
|
|
203
195
|
position: 'absolute',
|
|
204
196
|
width: 0,
|
|
@@ -206,31 +198,23 @@ var styles = {
|
|
|
206
198
|
visibility: 'hidden',
|
|
207
199
|
display: 'none'
|
|
208
200
|
};
|
|
209
|
-
|
|
210
201
|
var SizeAwareWrapper = /*#__PURE__*/function (_PureComponent) {
|
|
211
202
|
_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(SizeAwareWrapper, _PureComponent);
|
|
212
|
-
|
|
213
203
|
var _super = _createSuper(SizeAwareWrapper);
|
|
214
|
-
|
|
215
204
|
function SizeAwareWrapper(props) {
|
|
216
205
|
var _this;
|
|
217
|
-
|
|
218
206
|
_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, SizeAwareWrapper);
|
|
219
|
-
|
|
220
207
|
_this = _super.call(this, props);
|
|
221
|
-
|
|
222
208
|
_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2___default()(_this), "getElement", function () {
|
|
223
209
|
// it listens on the size of its parent elemnt
|
|
224
210
|
var parentElement = _this.el && _this.el.parentElement;
|
|
225
211
|
return parentElement;
|
|
226
212
|
});
|
|
227
|
-
|
|
228
213
|
_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2___default()(_this), "handleResize", function (entries) {
|
|
229
214
|
entries.forEach(function (entry) {
|
|
230
215
|
var _entry$contentRect = entry.contentRect,
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
216
|
+
width = _entry$contentRect.width,
|
|
217
|
+
height = _entry$contentRect.height; // use requestAnimationFrame to make sure width/height is updated in time
|
|
234
218
|
_this.animationFrameID = window.requestAnimationFrame(function () {
|
|
235
219
|
_this.setState({
|
|
236
220
|
width: width,
|
|
@@ -239,24 +223,20 @@ var SizeAwareWrapper = /*#__PURE__*/function (_PureComponent) {
|
|
|
239
223
|
});
|
|
240
224
|
});
|
|
241
225
|
});
|
|
242
|
-
|
|
243
226
|
_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2___default()(_this), "renderChildren", function () {
|
|
244
227
|
// expect children to be a function
|
|
245
228
|
var _this$state = _this.state,
|
|
246
|
-
|
|
247
|
-
|
|
229
|
+
width = _this$state.width,
|
|
230
|
+
height = _this$state.height;
|
|
248
231
|
var children = _this.props.children;
|
|
249
|
-
|
|
250
232
|
if (width != null && height != null && typeof children === 'function') {
|
|
251
233
|
return children({
|
|
252
234
|
width: width,
|
|
253
235
|
height: height
|
|
254
236
|
});
|
|
255
237
|
}
|
|
256
|
-
|
|
257
238
|
return null;
|
|
258
239
|
});
|
|
259
|
-
|
|
260
240
|
_this.state = {
|
|
261
241
|
width: null,
|
|
262
242
|
height: null
|
|
@@ -265,12 +245,10 @@ var SizeAwareWrapper = /*#__PURE__*/function (_PureComponent) {
|
|
|
265
245
|
_this.ro = _this.getResizeObserver();
|
|
266
246
|
return _this;
|
|
267
247
|
}
|
|
268
|
-
|
|
269
248
|
_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(SizeAwareWrapper, [{
|
|
270
249
|
key: "componentDidMount",
|
|
271
250
|
value: function componentDidMount() {
|
|
272
251
|
var resizableElement = this.getElement();
|
|
273
|
-
|
|
274
252
|
if (resizableElement) {
|
|
275
253
|
this.ro.observe(resizableElement);
|
|
276
254
|
}
|
|
@@ -279,11 +257,9 @@ var SizeAwareWrapper = /*#__PURE__*/function (_PureComponent) {
|
|
|
279
257
|
key: "componentWillUnmount",
|
|
280
258
|
value: function componentWillUnmount() {
|
|
281
259
|
var resizableElement = this.getElement();
|
|
282
|
-
|
|
283
260
|
if (resizableElement) {
|
|
284
261
|
this.ro.unobserve(resizableElement);
|
|
285
262
|
}
|
|
286
|
-
|
|
287
263
|
if (window && this.animationFrameID) {
|
|
288
264
|
window.cancelAnimationFrame(this.animationFrameID);
|
|
289
265
|
}
|
|
@@ -297,14 +273,12 @@ var SizeAwareWrapper = /*#__PURE__*/function (_PureComponent) {
|
|
|
297
273
|
unobserve: function unobserve() {}
|
|
298
274
|
};
|
|
299
275
|
}
|
|
300
|
-
|
|
301
276
|
return new ResizeObserver(this.handleResize);
|
|
302
277
|
}
|
|
303
278
|
}, {
|
|
304
279
|
key: "render",
|
|
305
280
|
value: function render() {
|
|
306
281
|
var _this2 = this;
|
|
307
|
-
|
|
308
282
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_7___default.a.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div", {
|
|
309
283
|
key: "resize-detector",
|
|
310
284
|
style: styles,
|
|
@@ -314,14 +288,12 @@ var SizeAwareWrapper = /*#__PURE__*/function (_PureComponent) {
|
|
|
314
288
|
}), this.renderChildren());
|
|
315
289
|
}
|
|
316
290
|
}]);
|
|
317
|
-
|
|
318
291
|
return SizeAwareWrapper;
|
|
319
292
|
}(react__WEBPACK_IMPORTED_MODULE_7__["PureComponent"]);
|
|
320
|
-
|
|
321
293
|
SizeAwareWrapper.propTypes = {
|
|
322
294
|
children: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.any // eslint-disable-line react/forbid-prop-types
|
|
323
|
-
|
|
324
295
|
};
|
|
296
|
+
|
|
325
297
|
SizeAwareWrapper.defaultProps = {
|
|
326
298
|
children: null
|
|
327
299
|
};
|
package/SizeAwareWrapper.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"prop-types\"","webpack:///external \"react\"","webpack:///external \"@babel/runtime/helpers/assertThisInitialized\"","webpack:///external \"@babel/runtime/helpers/defineProperty\"","webpack:///external \"@babel/runtime/helpers/getPrototypeOf\"","webpack:///external \"@babel/runtime/helpers/classCallCheck\"","webpack:///./src/SizeAwareWrapper.jsx","webpack:///external \"@babel/runtime/helpers/createClass\"","webpack:///external \"@babel/runtime/helpers/inherits\"","webpack:///external \"@babel/runtime/helpers/possibleConstructorReturn\""],"names":["styles","position","width","height","visibility","display","SizeAwareWrapper","parentElement","entries","entry","children","resizableElement","window","observe","unobserve","PureComponent","T"],"mappings":";;;;;;;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;AClFA,uC;;;;;;;ACAA,kC;;;;;;;ACAA,yE;;;;;;;ACAA,kE;;;;;;;ACAA,kE;;;;;;;ACAA,kE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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ANA,qBAA4B,KAA5BA;AACH;AACJ;;;WAQD,6BAAoB;AAChB,UAAI,0BAAJ,YAA0C;AACtC,eAAO;AACHC,iBADG,qBACO,CADP;AAEHC,mBAFG,uBAES,CAAE;AAFX,SAAP;AAIH;;AACD,aAAO,mBAAmB,KAA1B,YAAO,CAAP;AACH;;;WAsBD,kBAAS;AAAA;;AACL,0BACI,2DAAC,4CAAD,8BACI;AACI,WAAG,EADP;AAEI,aAAK,EAFT;AAGI,WAAG,EAAE,iBAAM;AACP,gBAAI,CAAJ;AACH;AALL,QADJ,EAQK,KATT,cASS,EARL,CADJ;AAYH;;;;EA7E0BC,mD;;AAgF/BT,gBAAgB,CAAhBA,YAA6B;AACzBI,UAAQ,EAAEM,iDAAC,CADc,IACR;;AADQ,CAA7BV;AAIAA,gBAAgB,CAAhBA,eAAgC;AAC5BI,UAAQ,EAAE;AADkB,CAAhCJ;AAIA,iF;;;;;;;ACnGA,+D;;;;;;;ACAA,4D;;;;;;;ACAA,6E","file":"SizeAwareWrapper.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 50);\n","module.exports = require(\"prop-types\");","module.exports = require(\"react\");","module.exports = require(\"@babel/runtime/helpers/assertThisInitialized\");","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@babel/runtime/helpers/getPrototypeOf\");","module.exports = require(\"@babel/runtime/helpers/classCallCheck\");","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 SizeAwareWrapper 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 <React.Fragment>\n <div\n key=\"resize-detector\"\n style={styles}\n ref={el => {\n this.el = el;\n }}\n />\n {this.renderChildren()}\n </React.Fragment>\n );\n }\n}\n\nSizeAwareWrapper.propTypes = {\n children: T.any, // eslint-disable-line react/forbid-prop-types\n};\n\nSizeAwareWrapper.defaultProps = {\n children: null,\n};\n\nexport default SizeAwareWrapper;\n","module.exports = require(\"@babel/runtime/helpers/createClass\");","module.exports = require(\"@babel/runtime/helpers/inherits\");","module.exports = require(\"@babel/runtime/helpers/possibleConstructorReturn\");"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"prop-types\"","webpack:///external \"react\"","webpack:///external \"@babel/runtime/helpers/assertThisInitialized\"","webpack:///external \"@babel/runtime/helpers/defineProperty\"","webpack:///external \"@babel/runtime/helpers/getPrototypeOf\"","webpack:///external \"@babel/runtime/helpers/classCallCheck\"","webpack:///./src/SizeAwareWrapper.jsx","webpack:///external \"@babel/runtime/helpers/createClass\"","webpack:///external \"@babel/runtime/helpers/inherits\"","webpack:///external \"@babel/runtime/helpers/possibleConstructorReturn\""],"names":["styles","position","width","height","visibility","display","SizeAwareWrapper","_PureComponent","_inherits","_super","_createSuper","props","_this","_classCallCheck","call","_defineProperty","_assertThisInitialized","parentElement","el","entries","forEach","entry","_entry$contentRect","contentRect","animationFrameID","window","requestAnimationFrame","setState","_this$state","state","children","ro","getResizeObserver","_createClass","key","value","componentDidMount","resizableElement","getElement","observe","componentWillUnmount","unobserve","cancelAnimationFrame","ResizeObserver","handleResize","render","_this2","React","createElement","Fragment","style","ref","renderChildren","PureComponent","propTypes","T","any","defaultProps"],"mappings":";;;;;;;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;AClFA,uC;;;;;;;ACAA,kC;;;;;;;ACAA,yE;;;;;;;ACAA,kE;;;;;;;ACAA,kE;;;;;;;ACAA,kE;;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AA,EAAoB;MAChB,IAAI,OAAOW,cAAc,KAAK,UAAU,EAAE;QACtC,OAAO;UACHJ,OAAO,WAAAA,QAAA,EAAG,CAAC,CAAC;UACZE,SAAS,WAAAA,UAAA,EAAG,CAAC;QACjB,CAAC;MACL;MACA,OAAO,IAAIE,cAAc,CAAC,IAAI,CAACC,YAAY,CAAC;IAChD;EAAC;IAAAV,GAAA;IAAAC,KAAA,EAsBD,SAAAU,OAAA,EAAS;MAAA,IAAAC,MAAA;MACL,oBACIC,4CAAA,CAAAC,aAAA,CAACD,4CAAK,CAACE,QAAQ,qBACXF,4CAAA,CAAAC,aAAA;QACId,GAAG,EAAC,iBAAiB;QACrBgB,KAAK,EAAElD,MAAO;QACdmD,GAAG,EAAE,SAAAA,IAAAjC,EAAE,EAAI;UACP4B,MAAI,CAAC5B,EAAE,GAAGA,EAAE;QAChB;MAAE,EACJ,EACD,IAAI,CAACkC,cAAc,EAAE,CACT;IAEzB;EAAC;EAAA,OAAA9C,gBAAA;AAAA,EA7E0B+C,mDAAa;AAgF5C/C,gBAAgB,CAACgD,SAAS,GAAG;EACzBxB,QAAQ,EAAEyB,iDAAC,CAACC,GAAG,CAAE;AACrB,CAAC;;AAEDlD,gBAAgB,CAACmD,YAAY,GAAG;EAC5B3B,QAAQ,EAAE;AACd,CAAC;AAEcxB,+EAAgB,E;;;;;;;ACnG/B,+D;;;;;;;ACAA,4D;;;;;;;ACAA,6E","file":"SizeAwareWrapper.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 50);\n","module.exports = require(\"prop-types\");","module.exports = require(\"react\");","module.exports = require(\"@babel/runtime/helpers/assertThisInitialized\");","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@babel/runtime/helpers/getPrototypeOf\");","module.exports = require(\"@babel/runtime/helpers/classCallCheck\");","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 SizeAwareWrapper 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 <React.Fragment>\n <div\n key=\"resize-detector\"\n style={styles}\n ref={el => {\n this.el = el;\n }}\n />\n {this.renderChildren()}\n </React.Fragment>\n );\n }\n}\n\nSizeAwareWrapper.propTypes = {\n children: T.any, // eslint-disable-line react/forbid-prop-types\n};\n\nSizeAwareWrapper.defaultProps = {\n children: null,\n};\n\nexport default SizeAwareWrapper;\n","module.exports = require(\"@babel/runtime/helpers/createClass\");","module.exports = require(\"@babel/runtime/helpers/inherits\");","module.exports = require(\"@babel/runtime/helpers/possibleConstructorReturn\");"],"sourceRoot":""}
|
package/VisualizationDocPage.js
CHANGED
|
@@ -210,31 +210,24 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
210
210
|
|
|
211
211
|
|
|
212
212
|
|
|
213
|
-
|
|
214
213
|
function _createSuper(Derived) {
|
|
215
214
|
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
216
|
-
|
|
217
215
|
return function _createSuperInternal() {
|
|
218
216
|
var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(Derived),
|
|
219
|
-
|
|
220
|
-
|
|
217
|
+
result;
|
|
221
218
|
if (hasNativeReflectConstruct) {
|
|
222
219
|
var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(this).constructor;
|
|
223
|
-
|
|
224
220
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
225
221
|
} else {
|
|
226
222
|
result = Super.apply(this, arguments);
|
|
227
223
|
}
|
|
228
|
-
|
|
229
224
|
return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default()(this, result);
|
|
230
225
|
};
|
|
231
226
|
}
|
|
232
|
-
|
|
233
227
|
function _isNativeReflectConstruct() {
|
|
234
228
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
235
229
|
if (Reflect.construct.sham) return false;
|
|
236
230
|
if (typeof Proxy === "function") return true;
|
|
237
|
-
|
|
238
231
|
try {
|
|
239
232
|
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
240
233
|
return true;
|
|
@@ -248,87 +241,66 @@ function _isNativeReflectConstruct() {
|
|
|
248
241
|
|
|
249
242
|
|
|
250
243
|
|
|
251
|
-
|
|
252
|
-
|
|
253
244
|
var ComponentPage = /*#__PURE__*/function (_Component) {
|
|
254
245
|
_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(ComponentPage, _Component);
|
|
255
|
-
|
|
256
246
|
var _super = _createSuper(ComponentPage);
|
|
257
|
-
|
|
258
247
|
function ComponentPage() {
|
|
259
248
|
var _this;
|
|
260
|
-
|
|
261
249
|
_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, ComponentPage);
|
|
262
|
-
|
|
263
250
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
264
251
|
args[_key] = arguments[_key];
|
|
265
252
|
}
|
|
266
|
-
|
|
267
253
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
268
|
-
|
|
269
254
|
_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default()(_this), "handleBodyMount", function (el) {
|
|
270
255
|
_this.bodyEl = el;
|
|
271
256
|
});
|
|
272
|
-
|
|
273
257
|
_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default()(_this), "handleSectionChange", function (e, _ref) {
|
|
274
258
|
var selectedTabId = _ref.selectedTabId;
|
|
275
259
|
ComponentPage.currentSection = selectedTabId;
|
|
276
|
-
|
|
277
260
|
_this.setState({
|
|
278
261
|
activeSection: selectedTabId
|
|
279
262
|
}, function () {
|
|
280
263
|
// After the new section loads, scroll to the top of the section.
|
|
281
264
|
var _this$bodyEl$getBound = _this.bodyEl.getBoundingClientRect(),
|
|
282
|
-
|
|
283
|
-
|
|
265
|
+
top = _this$bodyEl$getBound.top;
|
|
284
266
|
if (top < window.scrollY) {
|
|
285
267
|
var target = top + window.scrollY - 90;
|
|
286
268
|
window.scroll(0, target);
|
|
287
269
|
}
|
|
288
270
|
});
|
|
289
271
|
});
|
|
290
|
-
|
|
291
272
|
_this.state = {
|
|
292
273
|
activeSection: ComponentPage.currentSection
|
|
293
274
|
};
|
|
294
275
|
return _this;
|
|
295
276
|
}
|
|
296
|
-
|
|
297
277
|
_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(ComponentPage, [{
|
|
298
278
|
key: "renderBody",
|
|
299
279
|
value: function renderBody() {
|
|
300
280
|
var _this$props = this.props,
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
281
|
+
encodingSection = _this$props.encodingSection,
|
|
282
|
+
optionSection = _this$props.optionSection,
|
|
283
|
+
overviewSection = _this$props.overviewSection,
|
|
284
|
+
conceptsSection = _this$props.conceptsSection,
|
|
285
|
+
examplesSection = _this$props.examplesSection,
|
|
286
|
+
eventSection = _this$props.eventSection,
|
|
287
|
+
themeSection = _this$props.themeSection;
|
|
308
288
|
var activeSection = this.state.activeSection;
|
|
309
|
-
|
|
310
289
|
switch (activeSection) {
|
|
311
290
|
case 'concepts':
|
|
312
291
|
return conceptsSection;
|
|
313
|
-
|
|
314
292
|
case 'overview':
|
|
315
293
|
return overviewSection;
|
|
316
|
-
|
|
317
294
|
case 'examples':
|
|
318
295
|
return examplesSection;
|
|
319
|
-
|
|
320
296
|
case 'encoding':
|
|
321
297
|
return encodingSection;
|
|
322
|
-
|
|
323
298
|
case 'option':
|
|
324
299
|
return optionSection;
|
|
325
|
-
|
|
326
300
|
case 'event':
|
|
327
301
|
return eventSection;
|
|
328
|
-
|
|
329
302
|
case 'theme':
|
|
330
303
|
return themeSection;
|
|
331
|
-
|
|
332
304
|
default:
|
|
333
305
|
return null;
|
|
334
306
|
}
|
|
@@ -337,29 +309,25 @@ var ComponentPage = /*#__PURE__*/function (_Component) {
|
|
|
337
309
|
key: "render",
|
|
338
310
|
value: function render() {
|
|
339
311
|
var _this$props2 = this.props,
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
312
|
+
createComponentURL = _this$props2.createComponentURL,
|
|
313
|
+
conceptsSection = _this$props2.conceptsSection,
|
|
314
|
+
overviewSection = _this$props2.overviewSection,
|
|
315
|
+
examplesSection = _this$props2.examplesSection,
|
|
316
|
+
encodingSection = _this$props2.encodingSection,
|
|
317
|
+
eventSection = _this$props2.eventSection,
|
|
318
|
+
themeSection = _this$props2.themeSection,
|
|
319
|
+
headerOffset = _this$props2.headerOffset,
|
|
320
|
+
sourceURL = _this$props2.sourceURL;
|
|
349
321
|
var basePageProps = Object(lodash__WEBPACK_IMPORTED_MODULE_10__["pick"])(this.props, 'dependsOnSplunk', 'description', 'title');
|
|
350
|
-
|
|
351
322
|
if (this.props.status === 'preview') {
|
|
352
323
|
basePageProps.description = "#### ".concat(_splunk_visualizations_shared_previewVizMessage__WEBPACK_IMPORTED_MODULE_13___default.a, " \n ").concat(basePageProps.description || '');
|
|
353
324
|
}
|
|
354
|
-
|
|
355
325
|
var activeSection = this.state.activeSection;
|
|
356
326
|
var body = this.renderBody();
|
|
357
|
-
|
|
358
327
|
if (!body) {
|
|
359
328
|
body = examplesSection;
|
|
360
329
|
activeSection = 'examples';
|
|
361
330
|
}
|
|
362
|
-
|
|
363
331
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(_splunk_react_docs_API__WEBPACK_IMPORTED_MODULE_12___default.a, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
364
332
|
sourceURL: sourceURL || createComponentURL(window.location.pathname)
|
|
365
333
|
}, basePageProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(_splunk_react_docs_DockingTabBar__WEBPACK_IMPORTED_MODULE_11___default.a, {
|
|
@@ -396,71 +364,57 @@ var ComponentPage = /*#__PURE__*/function (_Component) {
|
|
|
396
364
|
}, body));
|
|
397
365
|
}
|
|
398
366
|
}]);
|
|
399
|
-
|
|
400
367
|
return ComponentPage;
|
|
401
368
|
}(react__WEBPACK_IMPORTED_MODULE_8__["Component"]);
|
|
402
|
-
|
|
403
369
|
_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(ComponentPage, "currentSection", 'overview');
|
|
404
|
-
|
|
405
370
|
_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(ComponentPage, "propTypes", {
|
|
406
371
|
createComponentURL: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.func,
|
|
407
372
|
dependsOnSplunk: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.bool,
|
|
408
|
-
|
|
409
373
|
/**
|
|
410
374
|
* If status is `preview`, a message is prepended to the description reflecting this visualization is new
|
|
411
375
|
* and minor changes may be made soon.
|
|
412
376
|
*/
|
|
413
377
|
status: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.string,
|
|
414
378
|
description: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.string,
|
|
415
|
-
|
|
416
379
|
/**
|
|
417
380
|
* The "overview" section of the doc page.
|
|
418
381
|
*/
|
|
419
382
|
overviewSection: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.node,
|
|
420
|
-
|
|
421
383
|
/**
|
|
422
384
|
* The "concepts" section of the doc page.
|
|
423
385
|
*/
|
|
424
386
|
conceptsSection: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.node,
|
|
425
|
-
|
|
426
387
|
/**
|
|
427
388
|
* The "examples" section of the doc page.
|
|
428
389
|
*/
|
|
429
390
|
examplesSection: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.node.isRequired,
|
|
430
|
-
|
|
431
391
|
/**
|
|
432
392
|
* The "options" section of the doc page.
|
|
433
393
|
*/
|
|
434
394
|
optionSection: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.node.isRequired,
|
|
435
|
-
|
|
436
395
|
/**
|
|
437
396
|
* The "encoding" section of the doc page.
|
|
438
397
|
*/
|
|
439
398
|
encodingSection: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.node,
|
|
440
|
-
|
|
441
399
|
/**
|
|
442
400
|
* The "event" section of the doc page.
|
|
443
401
|
*/
|
|
444
402
|
eventSection: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.node,
|
|
445
|
-
|
|
446
403
|
/**
|
|
447
404
|
* The "theme" section of the doc page
|
|
448
405
|
*/
|
|
449
406
|
themeSection: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.node,
|
|
450
407
|
headerOffset: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.number,
|
|
451
|
-
|
|
452
408
|
/**
|
|
453
409
|
* Overrides the (otherwise automatically generated) source code url.
|
|
454
410
|
*/
|
|
455
411
|
sourceURL: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.string,
|
|
456
412
|
title: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.string.isRequired
|
|
457
413
|
});
|
|
458
|
-
|
|
459
414
|
_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(ComponentPage, "defaultProps", {
|
|
460
415
|
createComponentURL: function createComponentURL() {},
|
|
461
416
|
headerOffset: 0
|
|
462
417
|
});
|
|
463
|
-
|
|
464
418
|
/* harmony default export */ __webpack_exports__["default"] = (ComponentPage);
|
|
465
419
|
|
|
466
420
|
/***/ }),
|