@carto/kepler.gl 0.0.78 → 0.0.79-hex-column.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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@carto/kepler.gl",
3
3
  "author": "CARTO",
4
4
  "homepage": "https://github.com/CartoDB/carto-kepler#readme",
5
- "version": "0.0.78",
5
+ "version": "0.0.79-hex-column.1",
6
6
  "description": "kepler.gl is a webgl based application to visualize large scale location data in the browser",
7
7
  "license": "MIT",
8
8
  "main": "dist/index.js",
@@ -180,16 +180,13 @@
180
180
  "eslint-plugin-prettier": "^3.1.2",
181
181
  "eslint-plugin-react": "^7.13.0",
182
182
  "eslint-plugin-react-hooks": "^4.1.0",
183
- "gl": "^4.2.2",
184
183
  "jest": "^26.6.1",
185
184
  "jest-image-snapshot": "^4.2.0",
186
- "jest-puppeteer": "^4.4.0",
187
185
  "jsdom": "^16.4.0",
188
186
  "json-loader": "^0.5.4",
189
187
  "nyc": "^15.1.0",
190
188
  "prettier": "1.19.1",
191
189
  "progress-bar-webpack-plugin": "^2.1.0",
192
- "puppeteer": "^2.1.1",
193
190
  "react": "^16.8.4",
194
191
  "react-dom": "^16.8.4",
195
192
  "react-hot-loader": "^4.13.0",
@@ -108,7 +108,8 @@ export default function ColorRangeSelectFactory(ColorPaletteGroup, PaletteConfig
108
108
  onSelectColorColumn: PropTypes.func.isRequired,
109
109
  setColorPaletteUI: PropTypes.func.isRequired,
110
110
  // optional
111
- colorRanges: PropTypes.arrayOf(PropTypes.any)
111
+ colorRanges: PropTypes.arrayOf(PropTypes.any),
112
+ noHexColumn: PropTypes.bool
112
113
  };
113
114
 
114
115
  static defaultProps = {
@@ -183,6 +184,7 @@ export default function ColorRangeSelectFactory(ColorPaletteGroup, PaletteConfig
183
184
  };
184
185
 
185
186
  render() {
187
+ const {noHexColumn} = this.props;
186
188
  const {customPalette, showSketcher, colorRangeConfig} = this.props.colorPaletteUI;
187
189
  const filteredColorRanges = this.filteredColorRange(this.props);
188
190
 
@@ -196,11 +198,15 @@ export default function ColorRangeSelectFactory(ColorPaletteGroup, PaletteConfig
196
198
  (colorRangeConfig.custom || colorRangeConfig.isHexColumn ? key === 'type' : true)
197
199
  )
198
200
  .map(key => {
201
+ let config = CONFIG_SETTINGS[key];
202
+ if (noHexColumn) {
203
+ config = {...config, options: config.options.filter(c => c.value !== hexColor)};
204
+ }
199
205
  return (
200
206
  <PaletteConfig
201
207
  key={key}
202
208
  label={CONFIG_SETTINGS[key].label || key}
203
- config={CONFIG_SETTINGS[key]}
209
+ config={config}
204
210
  value={colorRangeConfig[key]}
205
211
  onChange={value => this._updateConfig({key, value})}
206
212
  />
@@ -0,0 +1,33 @@
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
+ //
3
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ // of this software and associated documentation files (the "Software"), to deal
5
+ // in the Software without restriction, including without limitation the rights
6
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ // copies of the Software, and to permit persons to whom the Software is
8
+ // furnished to do so, subject to the following conditions:
9
+ //
10
+ // The above copyright notice and this permission notice shall be included in
11
+ // all copies or substantial portions of the Software.
12
+ //
13
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ // THE SOFTWARE.
20
+
21
+ import React from 'react';
22
+ import {injectIntl} from 'react-intl';
23
+
24
+ CustomMarkerCategoriesSelectorFactory.deps = [];
25
+ function CustomMarkerCategoriesSelectorFactory() {
26
+ const CustomMarkerCategoriesSelector = () => {
27
+ return <div>Component replaced by cloud native</div>;
28
+ };
29
+
30
+ return injectIntl(CustomMarkerCategoriesSelector);
31
+ }
32
+
33
+ export default CustomMarkerCategoriesSelectorFactory;