@carto/kepler.gl 0.1.0-alpha.0 → 0.1.0-alpha.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.
@@ -6,7 +6,7 @@ export declare function provideInitialState(initialState: any): (state: {}, acti
6
6
  * @example
7
7
  * import keplerGlReducer from 'kepler.gl/reducers';
8
8
  * import {createStore, combineReducers, applyMiddleware, compose} from 'redux';
9
- * import {taskMiddleware} from 'react-palm/tasks';
9
+ * import {taskMiddleware} from 'react-palm/tasks/index.js';
10
10
  *
11
11
  * const initialState = {};
12
12
  * const reducers = combineReducers({
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.1.0-alpha.0",
5
+ "version": "0.1.0-alpha.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
  "type": "module",
@@ -121,15 +121,13 @@
121
121
  "build": "rm -fr dist && microbundle -i src/index.ts -o dist/bundle.js --format modern --no-compress --tsconfig tsconfig.production.json --jsx React.createElement --jsxFragment React.Fragment",
122
122
  "build:watch": "npm run build -- --watch",
123
123
  "build:types": "tsc --project tsconfig.production.json",
124
- "analyze": "npm run analyze:bundle",
125
- "analyze:bundle": "webpack --config ./webpack/bundle.js --progress --env.prod",
126
124
  "check-licence": "uber-licence --dry",
127
125
  "add-licence": "uber-licence",
128
126
  "prepublish": "yarn build",
129
127
  "docs": "babel-node ./scripts/documentation.js",
130
128
  "example-version": "babel-node ./scripts/edit-version.js",
131
129
  "prettier-all": "prettier --write '{src,examples,test}/**/*.{js,tsx,ts}'",
132
- "lint": "yarn typescript && eslint src test webpack examples/*.js examples/**/src/*.{js,tsx,ts} website/*.js website/src --fix",
130
+ "lint": "yarn typescript && eslint src test examples/*.js examples/**/src/*.{js,tsx,ts} website/*.js website/src --fix",
133
131
  "lint:css": "stylelint './src/**/*.js'",
134
132
  "typescript": "tsc --noEmit",
135
133
  "web": "(yarn && yarn install:web && yarn start:web)",
@@ -146,7 +144,6 @@
146
144
  "@mapbox/geojson-normalize": "0.0.1",
147
145
  "@mapbox/vector-tile": "^1.3.1",
148
146
  "@reduxjs/toolkit": "^1.7.2",
149
- "@tippyjs/react": "^4.2.0",
150
147
  "@turf/bbox": "^6.0.1",
151
148
  "@turf/boolean-within": "^6.0.1",
152
149
  "@turf/helpers": "^6.1.4",
@@ -192,11 +189,8 @@
192
189
  "d3-scale": "^3.2.3",
193
190
  "d3-time": "^3.1.0",
194
191
  "decimal.js": "^10.2.0",
195
- "exenv": "^1.2.2",
196
192
  "fuzzy": "^0.1.3",
197
- "global": "^4.3.0",
198
193
  "h3-js": "^3.1.0",
199
- "html-webpack-plugin": "^4.3.0",
200
194
  "keymirror": "^0.1.1",
201
195
  "lodash.clonedeep": "^4.0.1",
202
196
  "lodash.curry": "^4.1.1",
@@ -217,8 +211,6 @@
217
211
  "moment-timezone": "^0.5.32",
218
212
  "pbf": "^3.1.0",
219
213
  "prop-types": "^15.6.0",
220
- "react-color": "^2.17.3",
221
- "react-copy-to-clipboard": "^5.0.2",
222
214
  "react-intl": "^3.12.0",
223
215
  "react-json-pretty": "^2.2.0",
224
216
  "react-lifecycles-compat": "^3.0.4",
@@ -239,7 +231,6 @@
239
231
  "resize-observer-polyfill": "^1.5.1",
240
232
  "s2-geometry": "^1.2.10",
241
233
  "supercluster": "^7.1.0",
242
- "type-analyzer": "0.3.0",
243
234
  "viewport-mercator-project": "^6.0.0",
244
235
  "wellknown": "^0.5.0"
245
236
  },
@@ -259,13 +250,13 @@
259
250
  "@loaders.gl/json": "^4.2.5",
260
251
  "@probe.gl/test-utils": "^3.0.1",
261
252
  "@testing-library/react-hooks": "^3.4.2",
253
+ "@tippyjs/react": "^4.2.6",
262
254
  "@types/d3-array": "^2.0.0",
263
255
  "@types/d3-scale": "^3.2.2",
264
256
  "@types/geojson": "^7946.0.7",
265
257
  "@types/redux-actions": "^2.6.2",
266
258
  "@typescript-eslint/eslint-plugin": "^5.12.0",
267
259
  "documentation": "^9.1.1",
268
- "dts-bundle-webpack": "^1.0.2",
269
260
  "enzyme": "^3.9.0",
270
261
  "enzyme-adapter-react-16": "^1.10.0",
271
262
  "eslint": "^5.16.0",
@@ -275,24 +266,22 @@
275
266
  "eslint-plugin-prettier": "^3.1.2",
276
267
  "eslint-plugin-react": "^7.13.0",
277
268
  "eslint-plugin-react-hooks": "^4.1.0",
269
+ "global": "^4.4.0",
278
270
  "jest": "^26.6.1",
279
271
  "jest-image-snapshot": "^4.2.0",
280
272
  "jest-puppeteer": "^4.4.0",
281
273
  "jsdom": "^16.4.0",
282
- "json-loader": "^0.5.4",
283
274
  "microbundle": "^0.15.1",
284
275
  "nyc": "^15.1.0",
285
276
  "prettier": "1.19.1",
286
- "progress-bar-webpack-plugin": "^2.1.0",
287
277
  "puppeteer": "^2.1.1",
288
278
  "react": "^16.8.4",
279
+ "react-color": "^2.19.3",
280
+ "react-copy-to-clipboard": "^5.1.0",
289
281
  "react-dom": "^16.8.4",
290
- "react-hot-loader": "^4.13.0",
291
282
  "redux-mock-store": "^1.2.1",
292
- "rollup": "^4.24.0",
293
283
  "sinon": "^2.4.1",
294
284
  "sinon-stub-promise": "^4.0.0",
295
- "source-map-loader": "^1.1.1",
296
285
  "styled-components": "^4.1.3",
297
286
  "stylelint": "^13.6.1",
298
287
  "stylelint-config-recommended": "^3.0.0",
@@ -301,17 +290,10 @@
301
290
  "tap-spec": "^5.0.0",
302
291
  "tape": "^4.9.2",
303
292
  "tape-catch": "^1.0.6",
293
+ "type-analyzer": "^0.4.0",
304
294
  "typescript": "^4.9.5",
305
295
  "uber-licence": "^3.1.1",
306
- "url-loader": "^4.1.1",
307
- "watchify": "^3.6.1",
308
- "webpack": "^4.29.0",
309
- "webpack-bundle-analyzer": "^3.3.2",
310
- "webpack-cli": "^3.2.1",
311
- "webpack-dev-middleware": "^3.5.1",
312
- "webpack-dev-server": "^3.1.14",
313
- "webpack-hot-middleware": "^2.24.3",
314
- "webpack-stats-plugin": "^0.2.1"
296
+ "watchify": "^3.6.1"
315
297
  },
316
298
  "resolutions": {
317
299
  "d3-time": "^2.1.1",
@@ -22,11 +22,11 @@ import React, {Component, createRef, ElementType, PropsWithChildren} from 'react
22
22
  import debounce from 'lodash.debounce';
23
23
  import isEqual from 'lodash.isequal';
24
24
 
25
- import {canUseDOM} from 'exenv';
26
25
  import {withTheme} from 'styled-components';
27
26
  import {RootContext} from 'components/context';
28
27
  import Modal from 'react-modal';
29
28
  import window from 'global/window';
29
+ import document from 'global/document';
30
30
  import {theme} from 'styles/base';
31
31
 
32
32
  const listeners = {};
@@ -37,12 +37,10 @@ const getPageOffset = () => ({
37
37
  x:
38
38
  window.pageXOffset !== undefined
39
39
  ? window.pageXOffset
40
- // @ts-expect-error
41
40
  : (document.documentElement || document.body.parentNode || document.body).scrollLeft,
42
41
  y:
43
42
  window.pageYOffset !== undefined
44
43
  ? window.pageYOffset
45
- // @ts-expect-error
46
44
  : (document.documentElement || document.body.parentNode || document.body).scrollTop
47
45
  });
48
46
 
@@ -95,12 +93,10 @@ export const getChildPos = ({offsets, rect, childRect, pageOffset, padding}: Get
95
93
  return pos;
96
94
  };
97
95
 
98
- if (canUseDOM) {
99
- if (document.body) {
100
- addEventListeners();
101
- } else {
102
- document.addEventListener('DOMContentLoaded', addEventListeners);
103
- }
96
+ if (document.body) {
97
+ addEventListeners();
98
+ } else {
99
+ document.addEventListener('DOMContentLoaded', addEventListeners);
104
100
  }
105
101
 
106
102
  let listenerIdCounter = 0;
@@ -30,7 +30,7 @@ export const ACTION_PREFIX = '@@kepler.gl/';
30
30
  * // store.js
31
31
  * import {handleActions} from 'redux-actions';
32
32
  * import {createStore, combineReducers, applyMiddleware} from 'redux';
33
- * import {taskMiddleware} from 'react-palm/tasks';
33
+ * import {taskMiddleware} from 'react-palm/tasks/index.js';
34
34
  *
35
35
  * import keplerGlReducer from 'kepler.gl/reducers';
36
36
  * import {ActionTypes} from 'kepler.gl/actions';
@@ -21,7 +21,7 @@
21
21
  // Extra helpers for redux
22
22
  // We are exposing this secause react-palm has no UMD module and
23
23
  // users need taskMiddleware to initiate their redux middle ware
24
- import {taskMiddleware} from 'react-palm/tasks';
24
+ import {taskMiddleware} from 'react-palm/tasks/index.js';
25
25
  import {Middleware} from 'redux';
26
26
 
27
27
  /**
@@ -18,7 +18,7 @@
18
18
  // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
19
  // THE SOFTWARE.
20
20
 
21
- import Task, {withTask} from 'react-palm/tasks';
21
+ import Task, {withTask} from 'react-palm/tasks/index.js';
22
22
  import cloneDeep from 'lodash.clonedeep';
23
23
 
24
24
  // Utils
@@ -18,7 +18,7 @@
18
18
  // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
19
  // THE SOFTWARE.
20
20
 
21
- import {withTask} from 'react-palm/tasks';
21
+ import {withTask} from 'react-palm/tasks/index.js';
22
22
  import {default as Console} from 'global/console';
23
23
  import {generateHashId, getError, isPlainObject, toArray} from '../utils/utils';
24
24
  import {
@@ -212,7 +212,7 @@ function decorate(target, savedInitialState = {}) {
212
212
  * @example
213
213
  * import keplerGlReducer from 'kepler.gl/reducers';
214
214
  * import {createStore, combineReducers, applyMiddleware, compose} from 'redux';
215
- * import {taskMiddleware} from 'react-palm/tasks';
215
+ * import {taskMiddleware} from 'react-palm/tasks/index.js';
216
216
  *
217
217
  * const initialState = {};
218
218
  * const reducers = combineReducers({
@@ -19,7 +19,7 @@
19
19
  // THE SOFTWARE.
20
20
 
21
21
  import {console as Console} from 'global/window';
22
- import {disableStackCapturing, withTask} from 'react-palm/tasks';
22
+ import {disableStackCapturing, withTask} from 'react-palm/tasks/index.js';
23
23
  import cloneDeep from 'lodash.clonedeep';
24
24
  import uniq from 'lodash.uniq';
25
25
  import get from 'lodash.get';
@@ -75,7 +75,7 @@ export default class Schema {
75
75
  return {
76
76
  ...accu,
77
77
  ...(key in node
78
- ?
78
+ ?
79
79
  this.properties[key]
80
80
  ? // if it's another schema
81
81
  this.properties[key][operation]
@@ -18,7 +18,7 @@
18
18
  // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
19
  // THE SOFTWARE.
20
20
 
21
- import Task, {taskCreator} from 'react-palm/tasks';
21
+ import Task, {taskCreator} from 'react-palm/tasks/index.js';
22
22
  import {json as requestJson} from 'd3-request';
23
23
  import {readFileInBatches, processFileData} from '../processors/file-handler';
24
24