kepler.gl 3.1.0-alpha.7 → 3.1.0

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 (68) hide show
  1. package/dist/src/components/src/common/data-table/index.d.ts +1 -1
  2. package/dist/src/components/src/common/data-table/option-dropdown.d.ts +3 -3
  3. package/dist/src/components/src/kepler-gl.d.ts +1 -0
  4. package/dist/src/reducers/src/vis-state-updaters.d.ts +1 -0
  5. package/dist/src/reducers/src/vis-state.d.ts +4 -0
  6. package/dist/src/utils/src/application-config.d.ts +2 -0
  7. package/package.json +3 -2
  8. package/src/actions/package.json +8 -8
  9. package/src/ai-assistant/dist/components/ai-assistant-config.js +66 -53
  10. package/src/ai-assistant/package.json +10 -9
  11. package/src/ai-assistant/src/components/ai-assistant-config.tsx +62 -48
  12. package/src/ai-assistant/src/config/models.json +32 -0
  13. package/src/cloud-providers/package.json +2 -2
  14. package/src/common-utils/package.json +3 -3
  15. package/src/components/dist/common/data-table/header-cell.js +10 -10
  16. package/src/components/dist/common/data-table/index.d.ts +1 -1
  17. package/src/components/dist/common/data-table/index.js +1 -1
  18. package/src/components/dist/common/data-table/option-dropdown.d.ts +3 -3
  19. package/src/components/dist/common/data-table/option-dropdown.js +5 -5
  20. package/src/components/dist/kepler-gl.d.ts +1 -0
  21. package/src/components/dist/modals/save-map-modal.js +4 -3
  22. package/src/components/package.json +15 -15
  23. package/src/components/src/common/data-table/header-cell.tsx +5 -3
  24. package/src/components/src/common/data-table/index.tsx +1 -1
  25. package/src/components/src/common/data-table/option-dropdown.tsx +7 -7
  26. package/src/components/src/modals/save-map-modal.tsx +6 -2
  27. package/src/constants/dist/default-settings.js +8 -5
  28. package/src/constants/node_modules/.cache/terser-webpack-plugin/content-v2/sha512/72/80/7a7c561d7985e92aab7b9683e7baf5a0286b353a8f2609c4c71099f668d012be027929e4bbac937f9aa0c9a61be3bd4405136f582895f05aa0313c8efa42 +1 -0
  29. package/src/constants/node_modules/.cache/terser-webpack-plugin/index-v5/f0/6e/aadf3c48345aa72e7b2fb92e8c9788d04986b55caf83daa3fbd749c37c44 +2 -0
  30. package/src/constants/package.json +2 -2
  31. package/src/constants/src/default-settings.ts +8 -3
  32. package/src/constants/umd/keplergl.min.js +1 -1
  33. package/src/deckgl-arrow-layers/package.json +1 -1
  34. package/src/deckgl-layers/package.json +4 -4
  35. package/src/duckdb/dist/components/preview-data-panel.js +2 -9
  36. package/src/duckdb/dist/components/sql-panel.js +2 -2
  37. package/src/duckdb/dist/plugin.js +8 -2
  38. package/src/duckdb/package.json +6 -6
  39. package/src/duckdb/src/components/preview-data-panel.tsx +0 -3
  40. package/src/duckdb/src/components/sql-panel.tsx +1 -1
  41. package/src/duckdb/src/plugin.ts +7 -1
  42. package/src/effects/package.json +5 -5
  43. package/src/layers/dist/index.d.ts +3 -0
  44. package/src/layers/dist/index.js +6 -7
  45. package/src/layers/package.json +9 -9
  46. package/src/layers/src/index.ts +5 -5
  47. package/src/localization/package.json +1 -1
  48. package/src/processors/package.json +7 -7
  49. package/src/reducers/dist/vis-state-updaters.d.ts +1 -0
  50. package/src/reducers/dist/vis-state-updaters.js +2 -2
  51. package/src/reducers/dist/vis-state.d.ts +4 -0
  52. package/src/reducers/package.json +16 -16
  53. package/src/reducers/src/vis-state-updaters.ts +5 -2
  54. package/src/schemas/dist/dataset-schema.js +32 -2
  55. package/src/schemas/package.json +8 -7
  56. package/src/schemas/src/dataset-schema.ts +34 -1
  57. package/src/styles/node_modules/.cache/terser-webpack-plugin/content-v2/sha512/5f/aa/96c67b383dbcd2b95625113a5389c6078fd8a53e6fc73a054229709f2dac1e0a409e7117049485a569fbebf8434a319451842671398904bfe1a7f7b5991c +1 -0
  58. package/src/styles/node_modules/.cache/terser-webpack-plugin/index-v5/c1/39/f7cd1d5947ec6e5d82bfa07041271344eb02f9e67bf5823acf2f22c2d01f +2 -0
  59. package/src/styles/package.json +2 -2
  60. package/src/styles/umd/keplergl.min.js +1 -1
  61. package/src/table/package.json +5 -5
  62. package/src/tasks/package.json +2 -2
  63. package/src/types/package.json +1 -1
  64. package/src/utils/dist/application-config.d.ts +2 -0
  65. package/src/utils/dist/application-config.js +4 -2
  66. package/src/utils/package.json +4 -4
  67. package/src/utils/src/application-config.ts +9 -1
  68. package/umd/keplergl.min.js +1151 -1149
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kepler.gl/components",
3
3
  "author": "Shan He <shan@uber.com>",
4
- "version": "3.1.0-alpha.7",
4
+ "version": "3.1.0",
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.1.0-alpha.7",
42
- "@kepler.gl/cloud-providers": "3.1.0-alpha.7",
43
- "@kepler.gl/common-utils": "3.1.0-alpha.7",
44
- "@kepler.gl/constants": "3.1.0-alpha.7",
45
- "@kepler.gl/effects": "3.1.0-alpha.7",
46
- "@kepler.gl/layers": "3.1.0-alpha.7",
47
- "@kepler.gl/localization": "3.1.0-alpha.7",
48
- "@kepler.gl/processors": "3.1.0-alpha.7",
49
- "@kepler.gl/reducers": "3.1.0-alpha.7",
50
- "@kepler.gl/schemas": "3.1.0-alpha.7",
51
- "@kepler.gl/styles": "3.1.0-alpha.7",
52
- "@kepler.gl/table": "3.1.0-alpha.7",
53
- "@kepler.gl/types": "3.1.0-alpha.7",
54
- "@kepler.gl/utils": "3.1.0-alpha.7",
41
+ "@kepler.gl/actions": "3.1.0",
42
+ "@kepler.gl/cloud-providers": "3.1.0",
43
+ "@kepler.gl/common-utils": "3.1.0",
44
+ "@kepler.gl/constants": "3.1.0",
45
+ "@kepler.gl/effects": "3.1.0",
46
+ "@kepler.gl/layers": "3.1.0",
47
+ "@kepler.gl/localization": "3.1.0",
48
+ "@kepler.gl/processors": "3.1.0",
49
+ "@kepler.gl/reducers": "3.1.0",
50
+ "@kepler.gl/schemas": "3.1.0",
51
+ "@kepler.gl/styles": "3.1.0",
52
+ "@kepler.gl/table": "3.1.0",
53
+ "@kepler.gl/types": "3.1.0",
54
+ "@kepler.gl/utils": "3.1.0",
55
55
  "@loaders.gl/mvt": "^4.3.2",
56
56
  "@loaders.gl/pmtiles": "^4.3.2",
57
57
  "@mapbox/mapbox-sdk": "^0.15.3",
@@ -128,7 +128,7 @@ const HeaderCellFactory = (FieldToken: React.FC<FieldTokenProps>) => {
128
128
  const onCopy = useCallback(() => copyTableColumn(column), [copyTableColumn, column]);
129
129
  const onSetDisplayFormat = useCallback(
130
130
  displayFormat => {
131
- setColumnDisplayFormat({[column]: displayFormat.format});
131
+ setColumnDisplayFormat?.({[column]: displayFormat.format});
132
132
  },
133
133
  [column, setColumnDisplayFormat]
134
134
  );
@@ -195,10 +195,12 @@ const HeaderCellFactory = (FieldToken: React.FC<FieldTokenProps>) => {
195
195
  column={column}
196
196
  colMeta={colMeta}
197
197
  toggleMoreOptions={toggleMoreOptions}
198
- sortTableColumn={mode => sortTableColumn(column, mode)}
198
+ sortTableColumn={
199
+ sortTableColumn ? mode => sortTableColumn(column, mode) : undefined
200
+ }
199
201
  pinTableColumn={onPin}
200
202
  copyTableColumn={onCopy}
201
- setDisplayFormat={onSetDisplayFormat}
203
+ setDisplayFormat={setColumnDisplayFormat ? onSetDisplayFormat : undefined}
202
204
  />
203
205
  </section>
204
206
  </>
@@ -389,7 +389,7 @@ export interface DataTableProps {
389
389
  sortColumn: SortColumn;
390
390
  sortTableColumn: (column: string, mode?: string) => void;
391
391
  pinTableColumn: (column: string) => void;
392
- setColumnDisplayFormat: (formats: {[key: string]: string}) => void;
392
+ setColumnDisplayFormat?: (formats: {[key: string]: string}) => void;
393
393
  copyTableColumn: (column: string) => void;
394
394
  sortOrder?: number[] | null;
395
395
  showStats?: boolean;
@@ -70,7 +70,7 @@ export type FormatterDropdownProps = {
70
70
  top: number;
71
71
  isOpened: boolean;
72
72
  displayFormat?: string;
73
- setDisplayFormat: (displayFormat: TooltipFormat) => void;
73
+ setDisplayFormat?: (displayFormat: TooltipFormat) => void;
74
74
  onClose: () => void;
75
75
  formatLabels: TooltipFormat[];
76
76
  };
@@ -91,7 +91,7 @@ export const FormatterDropdown: React.FC<FormatterDropdownProps> = (
91
91
 
92
92
  const onSelectDisplayFormat = useCallback(
93
93
  result => {
94
- setDisplayFormat(result);
94
+ setDisplayFormat?.(result);
95
95
  onClose();
96
96
  },
97
97
  [setDisplayFormat, onClose]
@@ -117,10 +117,10 @@ export interface OptionDropdownProps {
117
117
  column: string;
118
118
  colMeta: ColMeta;
119
119
  toggleMoreOptions: (column: string) => void;
120
- sortTableColumn: (sort: string) => void;
120
+ sortTableColumn?: (sort: string) => void;
121
121
  pinTableColumn: () => void;
122
122
  copyTableColumn: () => void;
123
- setDisplayFormat: (displayFormat: any) => void;
123
+ setDisplayFormat?: (displayFormat: any) => void;
124
124
  sortMode?: string;
125
125
  isSorted?: string;
126
126
  isPinned?: boolean;
@@ -142,13 +142,13 @@ const OptionDropdown = (props: OptionDropdownProps) => {
142
142
  ({value}) => {
143
143
  switch (value) {
144
144
  case TABLE_OPTION.SORT_ASC:
145
- sortTableColumn(SORT_ORDER.ASCENDING);
145
+ sortTableColumn?.(SORT_ORDER.ASCENDING);
146
146
  break;
147
147
  case TABLE_OPTION.SORT_DES:
148
- sortTableColumn(SORT_ORDER.DESCENDING);
148
+ sortTableColumn?.(SORT_ORDER.DESCENDING);
149
149
  break;
150
150
  case TABLE_OPTION.UNSORT:
151
- sortTableColumn(SORT_ORDER.UNSORT);
151
+ sortTableColumn?.(SORT_ORDER.UNSORT);
152
152
  break;
153
153
  case TABLE_OPTION.PIN:
154
154
  pinTableColumn();
@@ -61,6 +61,10 @@ const StyledSaveMapModal = styled.div.attrs({
61
61
  }
62
62
  `;
63
63
 
64
+ const StyledCompactExportSection = styled(StyledExportSection)`
65
+ margin: 5px 0;
66
+ `;
67
+
64
68
  const nop = () => {
65
69
  return;
66
70
  };
@@ -224,7 +228,7 @@ function SaveMapModalFactory() {
224
228
  </div>
225
229
  </StyledExportSection>
226
230
  ) : null}
227
- <StyledExportSection>
231
+ <StyledCompactExportSection>
228
232
  <div className="description image-preview-panel">
229
233
  <ImagePreview
230
234
  exportImage={exportImage}
@@ -246,7 +250,7 @@ function SaveMapModalFactory() {
246
250
  onChangeInput={onChangeInput}
247
251
  />
248
252
  )}
249
- </StyledExportSection>
253
+ </StyledCompactExportSection>
250
254
  </>
251
255
  )}
252
256
  {providerError ? (