@splunk/visualizations 25.0.0 → 25.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_basic.png +0 -0
  2. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_marker_layer_dynamic_color.png +0 -0
  3. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_marker_layer_static_color.png +0 -0
  4. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_marker_layer_static_color_with_no_seriesColors.png +0 -0
  5. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_scale_off.png +0 -0
  6. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_scale_unit_metric.png +0 -0
  7. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Area_Editor.png +0 -0
  8. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bar_Editor.png +0 -0
  9. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bubble_Editor.png +0 -0
  10. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_ChoroplethSvg_Editor.png +0 -0
  11. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Column_Editor.png +0 -0
  12. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Ellipse_Editor.png +0 -0
  13. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_FillerGauge_Editor.png +0 -0
  14. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Image_Editor.png +0 -0
  15. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Line_Editor.png +0 -0
  16. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_LinkGraph_Editor.png +0 -0
  17. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Map_Editor.png +0 -0
  18. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Markdown_Editor.png +0 -0
  19. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_MarkerGauge_Editor.png +0 -0
  20. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Parallel_Coordinates_Editor.png +0 -0
  21. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Pie_Editor.png +0 -0
  22. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Punchcard_Editor.png +0 -0
  23. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Rectangle_Editor.png +0 -0
  24. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Sankey_Editor.png +0 -0
  25. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Scatter_Editor.png +0 -0
  26. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Editor.png +0 -0
  27. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Icon_Editor.png +0 -0
  28. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Radial_Editor.png +0 -0
  29. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Table_Editor.png +0 -0
  30. package/.loki/reference/chrome_docker_Visualizations_Line_Line_Placeholder_if_datasource_does_not_have_any_data.png +0 -0
  31. package/.loki/reference/chrome_docker_Visualizations_Line_Line_Placeholder_if_viz_does_not_connect_to_datasource.png +0 -0
  32. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Basic_Map.png +0 -0
  33. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer.png +0 -0
  34. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_GET.png +0 -0
  35. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_GET_Dynamic_Coloring.png +0 -0
  36. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_Internal_Fields.png +0 -0
  37. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_Static_Coloring.png +0 -0
  38. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_Dynamic_Coloring.png +0 -0
  39. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer.png +0 -0
  40. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer_Dynamic_coloring.png +0 -0
  41. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer_Result_Limit_Set_To_3.png +0 -0
  42. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Restricted_Zoom.png +0 -0
  43. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Set_Map_tiles.png +0 -0
  44. package/Area.config.js +26 -1
  45. package/Area.config.js.map +1 -1
  46. package/Area.js +49 -23
  47. package/Area.js.map +1 -1
  48. package/Bar.config.js +26 -1
  49. package/Bar.config.js.map +1 -1
  50. package/Bar.js +49 -23
  51. package/Bar.js.map +1 -1
  52. package/Bubble.config.js +26 -1
  53. package/Bubble.config.js.map +1 -1
  54. package/Bubble.js +49 -23
  55. package/Bubble.js.map +1 -1
  56. package/ChoroplethSvg.config.js +27 -3
  57. package/ChoroplethSvg.config.js.map +1 -1
  58. package/ChoroplethSvg.js +73 -48
  59. package/ChoroplethSvg.js.map +1 -1
  60. package/Column.config.js +26 -1
  61. package/Column.config.js.map +1 -1
  62. package/Column.js +49 -23
  63. package/Column.js.map +1 -1
  64. package/Ellipse.config.js +26 -1
  65. package/Ellipse.config.js.map +1 -1
  66. package/Ellipse.js +58 -32
  67. package/Ellipse.js.map +1 -1
  68. package/FillerGauge.config.js +27 -2
  69. package/FillerGauge.config.js.map +1 -1
  70. package/FillerGauge.js +60 -34
  71. package/FillerGauge.js.map +1 -1
  72. package/Image.config.js +27 -3
  73. package/Image.config.js.map +1 -1
  74. package/Image.js +58 -34
  75. package/Image.js.map +1 -1
  76. package/Line.config.js +26 -1
  77. package/Line.config.js.map +1 -1
  78. package/Line.js +49 -23
  79. package/Line.js.map +1 -1
  80. package/LinkGraph.config.js +26 -1
  81. package/LinkGraph.config.js.map +1 -1
  82. package/LinkGraph.js +87 -61
  83. package/LinkGraph.js.map +1 -1
  84. package/Map.config.js +42 -5
  85. package/Map.config.js.map +1 -1
  86. package/Map.js +100 -60
  87. package/Map.js.map +1 -1
  88. package/Markdown.config.js +28 -5
  89. package/Markdown.config.js.map +1 -1
  90. package/Markdown.js +58 -35
  91. package/Markdown.js.map +1 -1
  92. package/MarkerGauge.config.js +31 -7
  93. package/MarkerGauge.config.js.map +1 -1
  94. package/MarkerGauge.js +2939 -3022
  95. package/MarkerGauge.js.map +1 -1
  96. package/ParallelCoordinates.config.js +35 -10
  97. package/ParallelCoordinates.config.js.map +1 -1
  98. package/ParallelCoordinates.js +61 -35
  99. package/ParallelCoordinates.js.map +1 -1
  100. package/Pie.config.js +32 -8
  101. package/Pie.config.js.map +1 -1
  102. package/Pie.js +2242 -2330
  103. package/Pie.js.map +1 -1
  104. package/Punchcard.config.js +28 -5
  105. package/Punchcard.config.js.map +1 -1
  106. package/Punchcard.js +72 -48
  107. package/Punchcard.js.map +1 -1
  108. package/Rectangle.config.js +28 -3
  109. package/Rectangle.config.js.map +1 -1
  110. package/Rectangle.js +155 -130
  111. package/Rectangle.js.map +1 -1
  112. package/Sankey.config.js +30 -5
  113. package/Sankey.config.js.map +1 -1
  114. package/Sankey.js +107 -82
  115. package/Sankey.js.map +1 -1
  116. package/Scatter.config.js +29 -3
  117. package/Scatter.config.js.map +1 -1
  118. package/Scatter.js +47 -22
  119. package/Scatter.js.map +1 -1
  120. package/SingleValue.config.js +33 -7
  121. package/SingleValue.config.js.map +1 -1
  122. package/SingleValue.js +63 -38
  123. package/SingleValue.js.map +1 -1
  124. package/SingleValueBasic.js +2 -2
  125. package/SingleValueIcon.config.js +31 -5
  126. package/SingleValueIcon.config.js.map +1 -1
  127. package/SingleValueIcon.js +71 -45
  128. package/SingleValueIcon.js.map +1 -1
  129. package/SingleValueRadial.config.js +160 -165
  130. package/SingleValueRadial.config.js.map +1 -1
  131. package/SingleValueRadial.js +112 -87
  132. package/SingleValueRadial.js.map +1 -1
  133. package/Table.config.js +31 -6
  134. package/Table.config.js.map +1 -1
  135. package/Table.js +249 -224
  136. package/Table.js.map +1 -1
  137. package/common/OptionsDoc.js +26 -1
  138. package/common/OptionsDoc.js.map +1 -1
  139. package/common/utils/configUtils.js +26 -1
  140. package/common/utils/configUtils.js.map +1 -1
  141. package/common/withDashboardViz.js +2 -2
  142. package/package.json +10 -10
package/Rectangle.js CHANGED
@@ -87,7 +87,7 @@ module.exports =
87
87
  /******/
88
88
  /******/
89
89
  /******/ // Load entry module and return exports
90
- /******/ return __webpack_require__(__webpack_require__.s = 242);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 243);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ({
@@ -113,6 +113,83 @@ module.exports = require("@splunk/themes/variables");
113
113
 
114
114
  /***/ }),
115
115
 
116
+ /***/ 100:
117
+ /***/ (function(module, exports, __webpack_require__) {
118
+
119
+ "use strict";
120
+
121
+
122
+ Object.defineProperty(exports, "__esModule", {
123
+ value: true
124
+ });
125
+ exports.getStyledShape = exports.mapToOldKey = void 0;
126
+
127
+ var lodash_1 = __webpack_require__(2);
128
+
129
+ var styled_components_1 = __webpack_require__(4);
130
+
131
+ var pick_1 = __webpack_require__(20);
132
+
133
+ var variables_1 = __webpack_require__(10);
134
+
135
+ var propUtils_1 = __webpack_require__(22); // map for new options names to old option names
136
+
137
+
138
+ var shapeOptionsMapping = {
139
+ fillColor: 'fill',
140
+ strokeColor: 'stroke',
141
+ strokeDashStyle: 'strokeDasharray',
142
+ strokeJoinStyle: 'strokeLinejoin'
143
+ };
144
+ /**
145
+ * Helper method to update the option names to old option names
146
+ * @method mapToOldKey
147
+ * @param {Object} options
148
+ * @returns {Object}
149
+ */
150
+
151
+ var mapToOldKey = function mapToOldKey(options) {
152
+ return lodash_1.mapKeys(options, function (val, key) {
153
+ return shapeOptionsMapping[key] ? shapeOptionsMapping[key] : key;
154
+ });
155
+ };
156
+
157
+ exports.mapToOldKey = mapToOldKey;
158
+ /**
159
+ * Helper method to get styled component for ellipse or rectangle
160
+ * @method mapToOldKey
161
+ * @param {Shape} shape
162
+ */
163
+
164
+ var getStyledShape = function getStyledShape(shape) {
165
+ return styled_components_1.default(shape).withConfig({
166
+ displayName: "shapeUtils",
167
+ componentId: "sc-1myvp5h-0"
168
+ })(["fill:", ";stroke:", ";cursor:", ";"], function (props) {
169
+ return props.fill && propUtils_1.formatColor(props.fill) || pick_1.default({
170
+ enterprise: {
171
+ light: variables_1.default.gray80,
172
+ dark: variables_1.default.gray25
173
+ },
174
+ prisma: variables_1.default.backgroundColorSidebar
175
+ })(props);
176
+ }, function (props) {
177
+ return props.stroke && propUtils_1.formatColor(props.stroke) || pick_1.default({
178
+ enterprise: {
179
+ dark: variables_1.default.gray80,
180
+ light: variables_1.default.textColor
181
+ },
182
+ prisma: variables_1.default.neutral500
183
+ })(props);
184
+ }, function (props) {
185
+ return props.onClick ? 'pointer' : 'inherit';
186
+ });
187
+ };
188
+
189
+ exports.getStyledShape = getStyledShape;
190
+
191
+ /***/ }),
192
+
116
193
  /***/ 11:
117
194
  /***/ (function(module, exports) {
118
195
 
@@ -134,7 +211,7 @@ module.exports = require("@splunk/visualizations-shared/colorUtils");
134
211
 
135
212
  /***/ }),
136
213
 
137
- /***/ 135:
214
+ /***/ 136:
138
215
  /***/ (function(module, exports, __webpack_require__) {
139
216
 
140
217
  "use strict";
@@ -168,11 +245,11 @@ var T = __webpack_require__(0);
168
245
 
169
246
  var withDashboardViz_1 = __webpack_require__(30);
170
247
 
171
- var config_1 = __webpack_require__(243);
248
+ var config_1 = __webpack_require__(244);
172
249
 
173
250
  exports.config = config_1.default;
174
251
 
175
- var shapeUtils_1 = __webpack_require__(99);
252
+ var shapeUtils_1 = __webpack_require__(100);
176
253
 
177
254
  var SVGContainer = styled_components_1.default.svg.withConfig({
178
255
  displayName: "Rectangle__SVGContainer",
@@ -321,7 +398,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
321
398
 
322
399
  return React.createElement(FixSizeItem, {
323
400
  "data-test": "fix-size-item",
324
- "data-splunk-visualization-version": "25.0.0 - 5e0f30e5a",
401
+ "data-splunk-visualization-version": "25.0.1 - de10ad954",
325
402
  width: width,
326
403
  height: height,
327
404
  backgroundColor: backgroundColor
@@ -399,14 +476,41 @@ module.exports = require("@splunk/visualizations-shared/propUtils");
399
476
 
400
477
  /***/ }),
401
478
 
402
- /***/ 23:
403
- /***/ (function(module, exports) {
479
+ /***/ 24:
480
+ /***/ (function(module, exports, __webpack_require__) {
404
481
 
405
- module.exports = require("@babel/runtime/helpers/typeof");
482
+ "use strict";
483
+
484
+
485
+ Object.defineProperty(exports, "__esModule", {
486
+ value: true
487
+ });
488
+ exports.pickFieldFromJSONSchema = void 0;
489
+
490
+ var lodash_1 = __webpack_require__(2);
491
+
492
+ var pickFieldFromJSONSchema = function pickFieldFromJSONSchema(optionsSchema) {
493
+ var fieldName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'default';
494
+ return Object.keys(optionsSchema).reduce(function (accum, k) {
495
+ if (lodash_1.has(optionsSchema[k], fieldName)) {
496
+ accum[k] = optionsSchema[k][fieldName];
497
+ } else if (lodash_1.get(optionsSchema, [k, 'type']) === 'object' && lodash_1.has(optionsSchema[k], 'properties')) {
498
+ var nestedSchema = exports.pickFieldFromJSONSchema(optionsSchema[k].properties, fieldName);
499
+
500
+ if (!lodash_1.isEmpty(nestedSchema)) {
501
+ accum[k] = nestedSchema;
502
+ }
503
+ }
504
+
505
+ return accum;
506
+ }, {});
507
+ };
508
+
509
+ exports.pickFieldFromJSONSchema = pickFieldFromJSONSchema;
406
510
 
407
511
  /***/ }),
408
512
 
409
- /***/ 242:
513
+ /***/ 243:
410
514
  /***/ (function(module, exports, __webpack_require__) {
411
515
 
412
516
  "use strict";
@@ -436,9 +540,9 @@ Object.defineProperty(exports, "__esModule", {
436
540
  });
437
541
  exports.default = void 0;
438
542
 
439
- __exportStar(__webpack_require__(135), exports);
543
+ __exportStar(__webpack_require__(136), exports);
440
544
 
441
- var Rectangle_1 = __webpack_require__(135);
545
+ var Rectangle_1 = __webpack_require__(136);
442
546
 
443
547
  Object.defineProperty(exports, "default", {
444
548
  enumerable: true,
@@ -449,7 +553,7 @@ Object.defineProperty(exports, "default", {
449
553
 
450
554
  /***/ }),
451
555
 
452
- /***/ 243:
556
+ /***/ 244:
453
557
  /***/ (function(module, exports, __webpack_require__) {
454
558
 
455
559
  "use strict";
@@ -476,13 +580,13 @@ var VizCategory_1 = __webpack_require__(29);
476
580
 
477
581
  var configUtils_1 = __webpack_require__(6);
478
582
 
479
- var DynamicFillColorEditor_1 = __webpack_require__(95);
583
+ var DynamicFillColorEditor_1 = __webpack_require__(96);
480
584
 
481
- var DynamicStrokeColorEditor_1 = __webpack_require__(96);
585
+ var DynamicStrokeColorEditor_1 = __webpack_require__(97);
482
586
 
483
- var StaticFillColorEditor_1 = __webpack_require__(97);
587
+ var StaticFillColorEditor_1 = __webpack_require__(98);
484
588
 
485
- var StaticStrokeColorEditor_1 = __webpack_require__(98);
589
+ var StaticStrokeColorEditor_1 = __webpack_require__(99);
486
590
 
487
591
  var dataContract = {
488
592
  requiredDataSources: [],
@@ -799,36 +903,9 @@ exports.default = configUtils_1.enhanceConfig(config);
799
903
  /***/ }),
800
904
 
801
905
  /***/ 25:
802
- /***/ (function(module, exports, __webpack_require__) {
803
-
804
- "use strict";
805
-
806
-
807
- Object.defineProperty(exports, "__esModule", {
808
- value: true
809
- });
810
- exports.pickFieldFromJSONSchema = void 0;
811
-
812
- var lodash_1 = __webpack_require__(2);
813
-
814
- var pickFieldFromJSONSchema = function pickFieldFromJSONSchema(optionsSchema) {
815
- var fieldName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'default';
816
- return Object.keys(optionsSchema).reduce(function (accum, k) {
817
- if (lodash_1.has(optionsSchema[k], fieldName)) {
818
- accum[k] = optionsSchema[k][fieldName];
819
- } else if (lodash_1.get(optionsSchema, [k, 'type']) === 'object' && lodash_1.has(optionsSchema[k], 'properties')) {
820
- var nestedSchema = exports.pickFieldFromJSONSchema(optionsSchema[k].properties, fieldName);
821
-
822
- if (!lodash_1.isEmpty(nestedSchema)) {
823
- accum[k] = nestedSchema;
824
- }
825
- }
826
-
827
- return accum;
828
- }, {});
829
- };
906
+ /***/ (function(module, exports) {
830
907
 
831
- exports.pickFieldFromJSONSchema = pickFieldFromJSONSchema;
908
+ module.exports = require("@babel/runtime/helpers/typeof");
832
909
 
833
910
  /***/ }),
834
911
 
@@ -1132,7 +1209,7 @@ var getPagination_1 = __webpack_require__(28);
1132
1209
 
1133
1210
  var useDeepMemo_1 = __webpack_require__(38);
1134
1211
 
1135
- var JSONSchemaUtils_1 = __webpack_require__(25);
1212
+ var JSONSchemaUtils_1 = __webpack_require__(24);
1136
1213
 
1137
1214
  var MissingPropsMessage_1 = __webpack_require__(39);
1138
1215
 
@@ -1729,7 +1806,7 @@ var Cover = styled_components_1.default.div.withConfig({
1729
1806
  componentId: "sc-1gsbnxb-0"
1730
1807
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
1731
1808
  var Blocker = styled_components_1.default.div.attrs({
1732
- 'data-splunk-visualization-version': "25.0.0 - 5e0f30e5a"
1809
+ 'data-splunk-visualization-version': "25.0.1 - de10ad954"
1733
1810
  }).withConfig({
1734
1811
  displayName: "withEditModeCover__Blocker",
1735
1812
  componentId: "sc-1gsbnxb-1"
@@ -1911,7 +1988,7 @@ var __rest = this && this.__rest || function (s, e) {
1911
1988
  Object.defineProperty(exports, "__esModule", {
1912
1989
  value: true
1913
1990
  });
1914
- exports.insertLayout = exports.generatePrecisionValues = exports.getInitialPreset = exports.isDynamicOption = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
1991
+ exports.insertLayout = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.isDynamicOption = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
1915
1992
 
1916
1993
  var lodash_1 = __webpack_require__(2);
1917
1994
 
@@ -1986,8 +2063,10 @@ function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
1986
2063
  exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamicOptions;
1987
2064
  /**
1988
2065
  * Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
2066
+ * this function also collapse all editor panels
1989
2067
  * @param vizConfig a Visualization Config
1990
2068
  * @returns an enhanced Visualization Config containing updated config entries based on behaviors it supports
2069
+ * and containing `open: false` for all editor panels in editorConfig
1991
2070
  */
1992
2071
 
1993
2072
  function enhanceConfig(vizConfig) {
@@ -1997,10 +2076,33 @@ function enhanceConfig(vizConfig) {
1997
2076
  enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
1998
2077
  }
1999
2078
 
2079
+ enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
2080
+ return Object.assign(Object.assign({}, config), {
2081
+ open: false
2082
+ });
2083
+ });
2000
2084
  return enhancedConfig;
2001
2085
  }
2002
2086
 
2003
2087
  exports.enhanceConfig = enhanceConfig;
2088
+ /**
2089
+ * Helper function to uncollapse all editor panels by adding `open: true` to the editorConfig
2090
+ * Created for editor unit tests
2091
+ * @param vizConfig a Visualization Config
2092
+ * @returns a Visualization Config containing `open: true` for all editor panels in editorConfig
2093
+ */
2094
+
2095
+ function uncollapseEditorConfig(vizConfig) {
2096
+ var editorPanelUncollapsedConfig = vizConfig;
2097
+ editorPanelUncollapsedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
2098
+ return Object.assign(Object.assign({}, config), {
2099
+ open: true
2100
+ });
2101
+ });
2102
+ return editorPanelUncollapsedConfig;
2103
+ }
2104
+
2105
+ exports.uncollapseEditorConfig = uncollapseEditorConfig;
2004
2106
 
2005
2107
  function isDynamicOption(option) {
2006
2108
  return option && typeof option === 'string' && option.trim().startsWith('>') || false;
@@ -2117,7 +2219,7 @@ module.exports = require("@babel/runtime/helpers/defineProperty");
2117
2219
  "use strict";
2118
2220
 
2119
2221
 
2120
- var _typeof = __webpack_require__(23);
2222
+ var _typeof = __webpack_require__(25);
2121
2223
 
2122
2224
  Object.defineProperty(exports, "__esModule", {
2123
2225
  value: true
@@ -2205,7 +2307,7 @@ module.exports = require("@babel/runtime/helpers/toConsumableArray");
2205
2307
 
2206
2308
  /***/ }),
2207
2309
 
2208
- /***/ 95:
2310
+ /***/ 96:
2209
2311
  /***/ (function(module, exports, __webpack_require__) {
2210
2312
 
2211
2313
  "use strict";
@@ -2261,7 +2363,7 @@ exports.getDynamicFillColorEditor = getDynamicFillColorEditor;
2261
2363
 
2262
2364
  /***/ }),
2263
2365
 
2264
- /***/ 96:
2366
+ /***/ 97:
2265
2367
  /***/ (function(module, exports, __webpack_require__) {
2266
2368
 
2267
2369
  "use strict";
@@ -2317,7 +2419,7 @@ exports.getDynamicStrokeColorEditor = getDynamicStrokeColorEditor;
2317
2419
 
2318
2420
  /***/ }),
2319
2421
 
2320
- /***/ 97:
2422
+ /***/ 98:
2321
2423
  /***/ (function(module, exports, __webpack_require__) {
2322
2424
 
2323
2425
  "use strict";
@@ -2344,7 +2446,7 @@ exports.default = StaticFillColorEditor;
2344
2446
 
2345
2447
  /***/ }),
2346
2448
 
2347
- /***/ 98:
2449
+ /***/ 99:
2348
2450
  /***/ (function(module, exports, __webpack_require__) {
2349
2451
 
2350
2452
  "use strict";
@@ -2369,83 +2471,6 @@ var StaticStrokeColorEditor = {
2369
2471
  };
2370
2472
  exports.default = StaticStrokeColorEditor;
2371
2473
 
2372
- /***/ }),
2373
-
2374
- /***/ 99:
2375
- /***/ (function(module, exports, __webpack_require__) {
2376
-
2377
- "use strict";
2378
-
2379
-
2380
- Object.defineProperty(exports, "__esModule", {
2381
- value: true
2382
- });
2383
- exports.getStyledShape = exports.mapToOldKey = void 0;
2384
-
2385
- var lodash_1 = __webpack_require__(2);
2386
-
2387
- var styled_components_1 = __webpack_require__(4);
2388
-
2389
- var pick_1 = __webpack_require__(20);
2390
-
2391
- var variables_1 = __webpack_require__(10);
2392
-
2393
- var propUtils_1 = __webpack_require__(22); // map for new options names to old option names
2394
-
2395
-
2396
- var shapeOptionsMapping = {
2397
- fillColor: 'fill',
2398
- strokeColor: 'stroke',
2399
- strokeDashStyle: 'strokeDasharray',
2400
- strokeJoinStyle: 'strokeLinejoin'
2401
- };
2402
- /**
2403
- * Helper method to update the option names to old option names
2404
- * @method mapToOldKey
2405
- * @param {Object} options
2406
- * @returns {Object}
2407
- */
2408
-
2409
- var mapToOldKey = function mapToOldKey(options) {
2410
- return lodash_1.mapKeys(options, function (val, key) {
2411
- return shapeOptionsMapping[key] ? shapeOptionsMapping[key] : key;
2412
- });
2413
- };
2414
-
2415
- exports.mapToOldKey = mapToOldKey;
2416
- /**
2417
- * Helper method to get styled component for ellipse or rectangle
2418
- * @method mapToOldKey
2419
- * @param {Shape} shape
2420
- */
2421
-
2422
- var getStyledShape = function getStyledShape(shape) {
2423
- return styled_components_1.default(shape).withConfig({
2424
- displayName: "shapeUtils",
2425
- componentId: "sc-1myvp5h-0"
2426
- })(["fill:", ";stroke:", ";cursor:", ";"], function (props) {
2427
- return props.fill && propUtils_1.formatColor(props.fill) || pick_1.default({
2428
- enterprise: {
2429
- light: variables_1.default.gray80,
2430
- dark: variables_1.default.gray25
2431
- },
2432
- prisma: variables_1.default.backgroundColorSidebar
2433
- })(props);
2434
- }, function (props) {
2435
- return props.stroke && propUtils_1.formatColor(props.stroke) || pick_1.default({
2436
- enterprise: {
2437
- dark: variables_1.default.gray80,
2438
- light: variables_1.default.textColor
2439
- },
2440
- prisma: variables_1.default.neutral500
2441
- })(props);
2442
- }, function (props) {
2443
- return props.onClick ? 'pointer' : 'inherit';
2444
- });
2445
- };
2446
-
2447
- exports.getStyledShape = getStyledShape;
2448
-
2449
2474
  /***/ })
2450
2475
 
2451
2476
  /******/ });