kepler.gl 3.2.2 → 3.2.3

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 (59) hide show
  1. package/dist/src/processors/src/file-handler.d.ts +2 -7
  2. package/dist/src/utils/src/arrow-data-container.d.ts +38 -1
  3. package/dist/src/utils/src/data-container-interface.d.ts +3 -2
  4. package/dist/src/utils/src/index.d.ts +1 -1
  5. package/package.json +2 -2
  6. package/src/actions/package.json +8 -8
  7. package/src/ai-assistant/package.json +7 -7
  8. package/src/cloud-providers/package.json +2 -2
  9. package/src/common-utils/package.json +3 -3
  10. package/src/components/package.json +16 -16
  11. package/src/constants/dist/default-settings.js +1 -1
  12. package/src/constants/node_modules/.cache/terser-webpack-plugin/content-v2/sha512/da/54/b803dd69cea23939320d2d3aa0502638ac264cea8968854e5ccc4a71ddfbb0d6ce41a875ec1be176eb7d99815b3d6464bf60d0274b1175d7fcb131846d7d +1 -0
  13. package/src/constants/node_modules/.cache/terser-webpack-plugin/index-v5/9c/6d/1f90c56b793c944c2a9a393e837a46aef02e3b867e2bf28fcb0929c4ac5e +2 -0
  14. package/src/constants/package.json +2 -2
  15. package/src/constants/umd/keplergl.min.js +1 -1
  16. package/src/deckgl-arrow-layers/dist/utils/utils.js +5 -4
  17. package/src/deckgl-arrow-layers/dist/utils/validate.js +3 -2
  18. package/src/deckgl-arrow-layers/package.json +3 -2
  19. package/src/deckgl-arrow-layers/src/utils/utils.ts +4 -3
  20. package/src/deckgl-arrow-layers/src/utils/validate.ts +2 -1
  21. package/src/deckgl-layers/package.json +4 -4
  22. package/src/duckdb/dist/table/duckdb-table.js +3 -3
  23. package/src/duckdb/package.json +7 -6
  24. package/src/duckdb/src/table/duckdb-table.ts +11 -6
  25. package/src/effects/package.json +5 -5
  26. package/src/layers/dist/base-layer.js +2 -6
  27. package/src/layers/dist/layer-text-label.js +3 -3
  28. package/src/layers/package.json +9 -9
  29. package/src/layers/src/base-layer.ts +3 -2
  30. package/src/layers/src/layer-text-label.ts +3 -3
  31. package/src/localization/package.json +1 -1
  32. package/src/processors/dist/file-handler.d.ts +2 -7
  33. package/src/processors/dist/file-handler.js +8 -16
  34. package/src/processors/package.json +7 -7
  35. package/src/processors/src/file-handler.ts +3 -10
  36. package/src/reducers/package.json +16 -16
  37. package/src/schemas/package.json +7 -7
  38. package/src/styles/node_modules/.cache/terser-webpack-plugin/content-v2/sha512/fd/ef/551b4725615a0e609688e4b55cf4f617fab2a80dcb5e9efb288d77e62f25cd67f3525e372e109c35ef3b3508da4eb974cdf1a784ee3ff610942b93415cc7 +1 -0
  39. package/src/styles/node_modules/.cache/terser-webpack-plugin/index-v5/aa/b2/36c45c478923af2d1fd8b06c81f5aa622e67be3239349c2219ac4652d959 +2 -0
  40. package/src/styles/package.json +2 -2
  41. package/src/styles/umd/keplergl.min.js +1 -1
  42. package/src/table/dist/kepler-table.js +3 -3
  43. package/src/table/package.json +5 -5
  44. package/src/table/src/kepler-table.ts +1 -1
  45. package/src/tasks/package.json +2 -2
  46. package/src/types/package.json +1 -1
  47. package/src/utils/dist/arrow-data-container.d.ts +38 -1
  48. package/src/utils/dist/arrow-data-container.js +78 -11
  49. package/src/utils/dist/data-container-interface.d.ts +3 -2
  50. package/src/utils/dist/data-container-interface.js +1 -1
  51. package/src/utils/dist/data-utils.js +3 -6
  52. package/src/utils/dist/index.d.ts +1 -1
  53. package/src/utils/dist/index.js +29 -1
  54. package/src/utils/package.json +4 -4
  55. package/src/utils/src/arrow-data-container.ts +101 -13
  56. package/src/utils/src/data-container-interface.ts +3 -2
  57. package/src/utils/src/data-utils.ts +2 -2
  58. package/src/utils/src/index.ts +5 -1
  59. package/umd/keplergl.min.js +1370 -1370
@@ -19,7 +19,13 @@ import {
19
19
  } from '@kepler.gl/processors';
20
20
  import {KeplerTable} from '@kepler.gl/table';
21
21
  import {Field} from '@kepler.gl/types';
22
- import {getApplicationConfig, DatabaseAdapter, DatabaseConnection} from '@kepler.gl/utils';
22
+ import {
23
+ getApplicationConfig,
24
+ DatabaseAdapter,
25
+ DatabaseConnection,
26
+ isArrowTable,
27
+ isArrowVector
28
+ } from '@kepler.gl/utils';
23
29
 
24
30
  import {
25
31
  processCsvRowObject,
@@ -161,10 +167,9 @@ export class KeplerGlDuckDbTable extends KeplerTable {
161
167
  try {
162
168
  // 1) data.rows contains an arrow table created by Add to Map data from DuckDb query.
163
169
  // 2) arrow table is in cols & fields when a file is dragged & dropped into Add Data To Map dialog.
164
- const arrowTable =
165
- data.rows instanceof arrow.Table
166
- ? data.rows
167
- : restoreArrowTable(data.cols || [], data.fields, data.arrowSchema);
170
+ const arrowTable = isArrowTable(data.rows)
171
+ ? data.rows
172
+ : restoreArrowTable(data.cols || [], data.fields, data.arrowSchema);
168
173
 
169
174
  // remove unsupported extensions from an arrow table that throw exceptions in DuckDB.
170
175
  adjustedMetadata = removeUnsupportedExtensions(arrowTable);
@@ -215,7 +220,7 @@ export class KeplerGlDuckDbTable extends KeplerTable {
215
220
  format = DATASET_FORMATS.row;
216
221
  } else if (data.rows?.type === 'FeatureCollection') {
217
222
  format = DATASET_FORMATS.geojson;
218
- } else if (data.cols?.[0] instanceof arrow.Vector) {
223
+ } else if (isArrowVector(data.cols?.[0])) {
219
224
  format = DATASET_FORMATS.arrow;
220
225
  }
221
226
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kepler.gl/effects",
3
3
  "author": "Shan He <shan@uber.com>",
4
- "version": "3.2.2",
4
+ "version": "3.2.3",
5
5
  "description": "kepler.gl viaual effects",
6
6
  "license": "MIT",
7
7
  "main": "dist/index.js",
@@ -31,10 +31,10 @@
31
31
  ],
32
32
  "dependencies": {
33
33
  "@deck.gl/core": "^8.9.27",
34
- "@kepler.gl/common-utils": "3.2.2",
35
- "@kepler.gl/constants": "3.2.2",
36
- "@kepler.gl/types": "3.2.2",
37
- "@kepler.gl/utils": "3.2.2",
34
+ "@kepler.gl/common-utils": "3.2.3",
35
+ "@kepler.gl/constants": "3.2.3",
36
+ "@kepler.gl/types": "3.2.3",
37
+ "@kepler.gl/utils": "3.2.3",
38
38
  "@luma.gl/core": "^8.5.20",
39
39
  "@luma.gl/shadertools": "^8.5.20",
40
40
  "moment-timezone": "^0.5.35",