kepler.gl 3.2.1 → 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 (72) 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 +41 -3
  3. package/dist/src/utils/src/data-container-interface.d.ts +3 -2
  4. package/dist/src/utils/src/data-container-utils.d.ts +2 -0
  5. package/dist/src/utils/src/index.d.ts +1 -1
  6. package/package.json +2 -2
  7. package/src/actions/package.json +8 -8
  8. package/src/ai-assistant/package.json +7 -7
  9. package/src/cloud-providers/package.json +2 -2
  10. package/src/common-utils/package.json +3 -3
  11. package/src/components/package.json +16 -16
  12. package/src/constants/dist/default-settings.js +1 -1
  13. package/src/constants/node_modules/.cache/terser-webpack-plugin/content-v2/sha512/1b/11/43d4199b6142de0b88c672f2b036c5aa4ca836cf35977bbafcdb1962b91e94f8336655a57f0742571ceb13fc69ef4ba0e3cb91dc9a8d61ef041c6eb15e7a +1 -0
  14. package/src/constants/node_modules/.cache/terser-webpack-plugin/content-v2/sha512/da/54/b803dd69cea23939320d2d3aa0502638ac264cea8968854e5ccc4a71ddfbb0d6ce41a875ec1be176eb7d99815b3d6464bf60d0274b1175d7fcb131846d7d +1 -0
  15. package/src/constants/node_modules/.cache/terser-webpack-plugin/index-v5/9c/6d/1f90c56b793c944c2a9a393e837a46aef02e3b867e2bf28fcb0929c4ac5e +2 -0
  16. package/src/constants/node_modules/.cache/terser-webpack-plugin/index-v5/ac/e2/e903ec95ada0b0075fdcfb6133e2e75c9b3b0504a29ca665704aaed90b2b +2 -0
  17. package/src/constants/package.json +2 -2
  18. package/src/constants/umd/keplergl.min.js +1 -1
  19. package/src/deckgl-arrow-layers/dist/utils/utils.js +5 -4
  20. package/src/deckgl-arrow-layers/dist/utils/validate.js +3 -2
  21. package/src/deckgl-arrow-layers/package.json +3 -2
  22. package/src/deckgl-arrow-layers/src/utils/utils.ts +4 -3
  23. package/src/deckgl-arrow-layers/src/utils/validate.ts +2 -1
  24. package/src/deckgl-layers/package.json +4 -4
  25. package/src/duckdb/dist/table/duckdb-table.js +3 -3
  26. package/src/duckdb/package.json +7 -6
  27. package/src/duckdb/src/table/duckdb-table.ts +11 -6
  28. package/src/effects/package.json +5 -5
  29. package/src/layers/dist/base-layer.js +2 -6
  30. package/src/layers/dist/geojson-layer/geojson-utils.js +23 -5
  31. package/src/layers/dist/layer-text-label.js +3 -3
  32. package/src/layers/package.json +9 -9
  33. package/src/layers/src/base-layer.ts +3 -2
  34. package/src/layers/src/geojson-layer/geojson-utils.ts +22 -0
  35. package/src/layers/src/layer-text-label.ts +3 -3
  36. package/src/localization/package.json +1 -1
  37. package/src/processors/dist/file-handler.d.ts +2 -7
  38. package/src/processors/dist/file-handler.js +8 -16
  39. package/src/processors/package.json +7 -7
  40. package/src/processors/src/file-handler.ts +3 -10
  41. package/src/reducers/package.json +16 -16
  42. package/src/schemas/package.json +7 -7
  43. package/src/styles/node_modules/.cache/terser-webpack-plugin/content-v2/sha512/53/93/f8e389b6450ee0636bf336363d2d6865d8a1fe2445c15cc1e36c651e1ddf448358eb74e894f4bf6fc48ef881dc64cc221c48b133ecf0e02132f2c5fbfe11 +1 -0
  44. package/src/styles/node_modules/.cache/terser-webpack-plugin/content-v2/sha512/fd/ef/551b4725615a0e609688e4b55cf4f617fab2a80dcb5e9efb288d77e62f25cd67f3525e372e109c35ef3b3508da4eb974cdf1a784ee3ff610942b93415cc7 +1 -0
  45. package/src/styles/node_modules/.cache/terser-webpack-plugin/index-v5/2e/45/ed6e0c1beb8bca4698a47b5feda8789a22d96978bc4839949bd26e827454 +2 -0
  46. package/src/styles/node_modules/.cache/terser-webpack-plugin/index-v5/aa/b2/36c45c478923af2d1fd8b06c81f5aa622e67be3239349c2219ac4652d959 +2 -0
  47. package/src/styles/package.json +2 -2
  48. package/src/styles/umd/keplergl.min.js +1 -1
  49. package/src/table/dist/dataset-utils.js +18 -7
  50. package/src/table/dist/kepler-table.js +4 -3
  51. package/src/table/package.json +5 -5
  52. package/src/table/src/dataset-utils.ts +7 -2
  53. package/src/table/src/kepler-table.ts +2 -1
  54. package/src/tasks/package.json +2 -2
  55. package/src/types/actions.d.ts +1 -0
  56. package/src/types/package.json +1 -1
  57. package/src/utils/dist/arrow-data-container.d.ts +41 -3
  58. package/src/utils/dist/arrow-data-container.js +80 -13
  59. package/src/utils/dist/data-container-interface.d.ts +3 -2
  60. package/src/utils/dist/data-container-interface.js +1 -1
  61. package/src/utils/dist/data-container-utils.d.ts +2 -0
  62. package/src/utils/dist/data-container-utils.js +3 -2
  63. package/src/utils/dist/data-utils.js +3 -6
  64. package/src/utils/dist/index.d.ts +1 -1
  65. package/src/utils/dist/index.js +29 -1
  66. package/src/utils/package.json +4 -4
  67. package/src/utils/src/arrow-data-container.ts +101 -11
  68. package/src/utils/src/data-container-interface.ts +3 -2
  69. package/src/utils/src/data-container-utils.ts +3 -1
  70. package/src/utils/src/data-utils.ts +2 -2
  71. package/src/utils/src/index.ts +5 -1
  72. package/umd/keplergl.min.js +1370 -1370
@@ -1,5 +1,5 @@
1
- import * as arrow from 'apache-arrow';
2
1
  import { Loader } from '@loaders.gl/loader-utils';
2
+ import { isArrowTable } from '@kepler.gl/utils';
3
3
  import { AddDataToMapPayload, Feature } from '@kepler.gl/types';
4
4
  import { FeatureCollection } from '@turf/helpers';
5
5
  import { FileCacheItem, ValidKeplerGlMap } from './types';
@@ -15,12 +15,7 @@ export declare type ProcessFileDataContent = {
15
15
  /** metadata e.g. for arrow data, metadata could be the schema.fields */
16
16
  metadata?: Map<string, string>;
17
17
  };
18
- /**
19
- * check if table is an ArrowTable object
20
- * @param table - object to check
21
- * @returns {boolean} - true if table is an ArrowTable object type guarded
22
- */
23
- export declare function isArrowTable(table: any): table is arrow.Table;
18
+ export { isArrowTable };
24
19
  /**
25
20
  * check if data is an ArrowData object, which is an array of RecordBatch
26
21
  * @param data - object to check
@@ -1,12 +1,50 @@
1
+ import { ProtoDatasetField } from '@kepler.gl/types';
1
2
  import * as arrow from 'apache-arrow';
2
3
  import { DATA_TYPES as AnalyzerDATA_TYPES } from 'type-analyzer';
3
- import { ProtoDatasetField } from '@kepler.gl/types';
4
- import { DataRow, SharedRowOptions } from './data-row';
5
4
  import { DataContainerInterface, RangeOptions } from './data-container-interface';
5
+ import { DataRow, SharedRowOptions } from './data-row';
6
6
  declare type ArrowDataContainerInput = {
7
7
  cols: arrow.Vector[];
8
8
  fields?: ProtoDatasetField[];
9
+ arrowTable?: arrow.Table;
9
10
  };
11
+ /**
12
+ * Check if table is an ArrowTable object.
13
+ *
14
+ * We use duck-typing instead of `instanceof arrow.Table` because DuckDB loads its own
15
+ * bundled version of Apache Arrow. When DuckDB creates Arrow tables, they are instances
16
+ * of DuckDB's Arrow.Table class, not the Arrow.Table class from our application's
17
+ * apache-arrow package. This causes `instanceof` checks to fail even though the objects
18
+ * are functionally equivalent Arrow tables.
19
+ *
20
+ * @param data - object to check
21
+ * @returns true if data is an ArrowTable object (type guarded)
22
+ */
23
+ export declare function isArrowTable(data: any): data is arrow.Table;
24
+ /**
25
+ * Check if data is an ArrowVector object.
26
+ * Uses duck-typing instead of `instanceof` to handle DuckDB's bundled Arrow version.
27
+ *
28
+ * @param data - object to check
29
+ * @returns true if data is an ArrowVector object (type guarded)
30
+ */
31
+ export declare function isArrowVector(data: any): data is arrow.Vector;
32
+ /**
33
+ * Check if data is an Arrow FixedSizeList DataType.
34
+ * Uses duck-typing instead of `instanceof` to handle DuckDB's bundled Arrow version.
35
+ *
36
+ * @param data - object to check
37
+ * @returns true if data is an Arrow FixedSizeList DataType (type guarded)
38
+ */
39
+ export declare function isArrowFixedSizeList(data: any): data is arrow.FixedSizeList;
40
+ /**
41
+ * Check if data is an Arrow Struct DataType.
42
+ * Uses duck-typing instead of `instanceof` to handle DuckDB's bundled Arrow version.
43
+ *
44
+ * @param data - object to check
45
+ * @returns true if data is an Arrow Struct DataType (type guarded)
46
+ */
47
+ export declare function isArrowStruct(data: any): data is arrow.Struct;
10
48
  /**
11
49
  * A data container where all data is stored in raw Arrow table
12
50
  */
@@ -25,7 +63,7 @@ export declare class ArrowDataContainer implements DataContainerInterface {
25
63
  */
26
64
  private _createTable;
27
65
  getTable(): arrow.Table<any>;
28
- update(updateData: arrow.Vector<any>[]): void;
66
+ update(updateData: arrow.Vector<any>[] | arrow.Table): void;
29
67
  numChunks(): number;
30
68
  numRows(): number;
31
69
  numColumns(): number;
@@ -1,5 +1,6 @@
1
1
  import { ProtoDatasetField } from '@kepler.gl/types';
2
2
  import { DataRow, SharedRowOptions } from './data-row';
3
+ import * as arrow from 'apache-arrow';
3
4
  /**
4
5
  * Specifies a range of rows of a data container that should be processed.
5
6
  */
@@ -10,9 +11,9 @@ export declare type RangeOptions = {
10
11
  export interface DataContainerInterface {
11
12
  /**
12
13
  * Updates the data container with new data.
13
- * @param updateData updated data, e.g. for arrow data container, it's an array of arrow columns; for row data container, it's an array of rows.
14
+ * @param updateData updated data, e.g. for arrow data container, it's an array of arrow columns or an arrow.Table; for row data container, it's an array of rows.
14
15
  */
15
- update?(updateData: any[]): void;
16
+ update?(updateData: any[] | arrow.Table): void;
16
17
  /**
17
18
  * Returns the number of rows in the data container.
18
19
  * @returns Number of rows in the data container.
@@ -1,8 +1,10 @@
1
1
  import { DataContainerInterface } from './data-container-interface';
2
2
  import { ProtoDatasetField } from '@kepler.gl/types';
3
+ import * as arrow from 'apache-arrow';
3
4
  export declare type DataContainerOptions = {
4
5
  inputDataFormat?: string;
5
6
  fields?: ProtoDatasetField[];
7
+ arrowTable?: arrow.Table;
6
8
  };
7
9
  export declare const DataForm: {
8
10
  ROWS_ARRAY: string;
@@ -28,7 +28,7 @@ export * from './utils';
28
28
  export { computeDeckEffects, fixEffectOrder, reorderEffectOrder, validateEffectParameters } from './effect-utils';
29
29
  export { isStyleUsingMapboxTiles, isStyleUsingOpenStreetMapTiles, getBaseMapLibrary, transformRequest } from './map-style-utils/mapbox-utils';
30
30
  export * from './map-utils';
31
- export { ArrowDataContainer, arrowDataTypeToAnalyzerDataType, arrowDataTypeToFieldType } from './arrow-data-container';
31
+ export { ArrowDataContainer, arrowDataTypeToAnalyzerDataType, arrowDataTypeToFieldType, isArrowTable, isArrowFixedSizeList, isArrowStruct, isArrowVector } from './arrow-data-container';
32
32
  export type { DataContainerInterface } from './data-container-interface';
33
33
  export { DataForm, createDataContainer, createIndexedDataContainer, getSampleData as getSampleContainerData } from './data-container-utils';
34
34
  export * from './filter-utils';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kepler.gl",
3
3
  "author": "Shan He <shan@uber.com>",
4
- "version": "3.2.1",
4
+ "version": "3.2.3",
5
5
  "description": "kepler.gl is a webgl based application to visualize large scale location data in the browser",
6
6
  "license": "MIT",
7
7
  "main": "dist/index.js",
@@ -103,7 +103,7 @@
103
103
  "@deck.gl/mapbox": "^8.9.27",
104
104
  "@hubble.gl/core": "1.4.0",
105
105
  "@hubble.gl/react": "1.4.0",
106
- "@kepler.gl/components": "3.2.1",
106
+ "@kepler.gl/components": "3.2.3",
107
107
  "@loaders.gl/polyfills": "^4.3.2",
108
108
  "@types/mapbox__geo-viewport": "^0.4.1",
109
109
  "html-webpack-plugin": "^4.3.0",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kepler.gl/actions",
3
3
  "author": "Shan He <shan@uber.com>",
4
- "version": "3.2.1",
4
+ "version": "3.2.3",
5
5
  "description": "kepler.gl constants used by kepler.gl components, actions and reducers",
6
6
  "license": "MIT",
7
7
  "main": "dist/index.js",
@@ -31,13 +31,13 @@
31
31
  ],
32
32
  "dependencies": {
33
33
  "@deck.gl/core": "^8.9.27",
34
- "@kepler.gl/cloud-providers": "3.2.1",
35
- "@kepler.gl/constants": "3.2.1",
36
- "@kepler.gl/layers": "3.2.1",
37
- "@kepler.gl/processors": "3.2.1",
38
- "@kepler.gl/table": "3.2.1",
39
- "@kepler.gl/types": "3.2.1",
40
- "@kepler.gl/utils": "3.2.1",
34
+ "@kepler.gl/cloud-providers": "3.2.3",
35
+ "@kepler.gl/constants": "3.2.3",
36
+ "@kepler.gl/layers": "3.2.3",
37
+ "@kepler.gl/processors": "3.2.3",
38
+ "@kepler.gl/table": "3.2.3",
39
+ "@kepler.gl/types": "3.2.3",
40
+ "@kepler.gl/utils": "3.2.3",
41
41
  "@reduxjs/toolkit": "^1.7.2",
42
42
  "@types/lodash": "4.17.5",
43
43
  "@types/react-redux": "^7.1.23",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kepler.gl/ai-assistant",
3
3
  "author": "Xun Li<lixun910@gmail.com>",
4
- "version": "3.2.1",
4
+ "version": "3.2.3",
5
5
  "description": "kepler.gl AI assistant",
6
6
  "license": "MIT",
7
7
  "main": "dist/index.js",
@@ -34,12 +34,12 @@
34
34
  "@ai-sdk/deepseek": "^0.2.14",
35
35
  "@ai-sdk/google": "^1.2.18",
36
36
  "@ai-sdk/xai": "^1.2.16",
37
- "@kepler.gl/components": "3.2.1",
38
- "@kepler.gl/constants": "3.2.1",
39
- "@kepler.gl/layers": "3.2.1",
40
- "@kepler.gl/table": "3.2.1",
41
- "@kepler.gl/types": "3.2.1",
42
- "@kepler.gl/utils": "3.2.1",
37
+ "@kepler.gl/components": "3.2.3",
38
+ "@kepler.gl/constants": "3.2.3",
39
+ "@kepler.gl/layers": "3.2.3",
40
+ "@kepler.gl/table": "3.2.3",
41
+ "@kepler.gl/types": "3.2.3",
42
+ "@kepler.gl/utils": "3.2.3",
43
43
  "@openassistant/core": "^0.5.17",
44
44
  "@openassistant/duckdb": "^0.5.17",
45
45
  "@openassistant/echarts": "^0.5.17",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kepler.gl/cloud-providers",
3
3
  "author": "Shan He <shan@uber.com>",
4
- "version": "3.2.1",
4
+ "version": "3.2.3",
5
5
  "description": "kepler.gl constants used by kepler.gl components, actions and reducers",
6
6
  "license": "MIT",
7
7
  "main": "dist/index.js",
@@ -30,7 +30,7 @@
30
30
  "umd"
31
31
  ],
32
32
  "dependencies": {
33
- "@kepler.gl/types": "3.2.1",
33
+ "@kepler.gl/types": "3.2.3",
34
34
  "react": "^18.2.0"
35
35
  },
36
36
  "nyc": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kepler.gl/common-utils",
3
3
  "author": "Shan He <heshan0131@gmail.com>",
4
- "version": "3.2.1",
4
+ "version": "3.2.3",
5
5
  "description": "kepler.gl common utils",
6
6
  "license": "MIT",
7
7
  "main": "dist/index.js",
@@ -30,8 +30,8 @@
30
30
  "umd"
31
31
  ],
32
32
  "dependencies": {
33
- "@kepler.gl/constants": "3.2.1",
34
- "@kepler.gl/types": "3.2.1",
33
+ "@kepler.gl/constants": "3.2.3",
34
+ "@kepler.gl/types": "3.2.3",
35
35
  "d3-array": "^2.8.0",
36
36
  "global": "^4.3.0",
37
37
  "h3-js": "^3.1.0",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kepler.gl/components",
3
3
  "author": "Shan He <shan@uber.com>",
4
- "version": "3.2.1",
4
+ "version": "3.2.3",
5
5
  "description": "kepler.gl constants used by kepler.gl components, actions and reducers",
6
6
  "license": "MIT",
7
7
  "main": "dist/index.js",
@@ -38,20 +38,20 @@
38
38
  "@dnd-kit/utilities": "^3.2.2",
39
39
  "@emotion/is-prop-valid": "^1.2.1",
40
40
  "@floating-ui/react": "0.25.1",
41
- "@kepler.gl/actions": "3.2.1",
42
- "@kepler.gl/cloud-providers": "3.2.1",
43
- "@kepler.gl/common-utils": "3.2.1",
44
- "@kepler.gl/constants": "3.2.1",
45
- "@kepler.gl/effects": "3.2.1",
46
- "@kepler.gl/layers": "3.2.1",
47
- "@kepler.gl/localization": "3.2.1",
48
- "@kepler.gl/processors": "3.2.1",
49
- "@kepler.gl/reducers": "3.2.1",
50
- "@kepler.gl/schemas": "3.2.1",
51
- "@kepler.gl/styles": "3.2.1",
52
- "@kepler.gl/table": "3.2.1",
53
- "@kepler.gl/types": "3.2.1",
54
- "@kepler.gl/utils": "3.2.1",
41
+ "@kepler.gl/actions": "3.2.3",
42
+ "@kepler.gl/cloud-providers": "3.2.3",
43
+ "@kepler.gl/common-utils": "3.2.3",
44
+ "@kepler.gl/constants": "3.2.3",
45
+ "@kepler.gl/effects": "3.2.3",
46
+ "@kepler.gl/layers": "3.2.3",
47
+ "@kepler.gl/localization": "3.2.3",
48
+ "@kepler.gl/processors": "3.2.3",
49
+ "@kepler.gl/reducers": "3.2.3",
50
+ "@kepler.gl/schemas": "3.2.3",
51
+ "@kepler.gl/styles": "3.2.3",
52
+ "@kepler.gl/table": "3.2.3",
53
+ "@kepler.gl/types": "3.2.3",
54
+ "@kepler.gl/utils": "3.2.3",
55
55
  "@loaders.gl/mvt": "^4.3.2",
56
56
  "@loaders.gl/pmtiles": "^4.3.2",
57
57
  "@loaders.gl/wms": "4.3.2",
@@ -109,7 +109,7 @@
109
109
  "react-sortable-hoc": "^1.8.3",
110
110
  "react-time-picker": "^6.2.0",
111
111
  "react-tooltip": "^4.2.17",
112
- "react-virtualized": "^9.22.5",
112
+ "react-virtualized": "9.22.6",
113
113
  "react-vis": "1.11.7",
114
114
  "redux": "^4.2.1",
115
115
  "reselect": "^4.1.0",
@@ -101,7 +101,7 @@ var KEPLER_GL_NAME = exports.KEPLER_GL_NAME = 'kepler.gl';
101
101
  // Since we are injecting this during the build process with babel
102
102
  // while developing VERSION is not defined, we capture the exception and return
103
103
  // an empty string which will allow us to retrieve the latest umd version
104
- var KEPLER_GL_VERSION = exports.KEPLER_GL_VERSION = "3.2.1";
104
+ var KEPLER_GL_VERSION = exports.KEPLER_GL_VERSION = "3.2.3";
105
105
  var KEPLER_GL_WEBSITE = exports.KEPLER_GL_WEBSITE = 'http://kepler.gl/';
106
106
  var DIMENSIONS = exports.DIMENSIONS = {
107
107
  sidePanel: {