@kepler.gl/actions 3.3.0-alpha.16 → 3.3.0-alpha.17

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.
@@ -175,7 +175,7 @@ export type SetExportImageSettingUpdaterAction = {
175
175
  payload: Partial<ExportImage>;
176
176
  };
177
177
  /**
178
- * Set `exportImage` settings: ratio, resolution, legend, charts
178
+ * Set `exportImage` settings: ratio, resolution, legend, charts, transparent background
179
179
  * @memberof uiStateActions
180
180
  * @param newSetting - {ratio: '1x'}
181
181
  * @public
@@ -192,6 +192,7 @@ export declare const startExportingImage: (options?: {
192
192
  ratio?: string;
193
193
  resolution?: string;
194
194
  legend?: string;
195
+ transparentBackground?: boolean;
195
196
  center?: boolean;
196
197
  }) => Merge<SetExportImageSettingUpdaterAction, {
197
198
  type: typeof ActionTypes.START_EXPORTING_IMAGE;
@@ -327,6 +328,21 @@ export type SetExportHTMLMapModeUpdaterAction = {
327
328
  export declare const setExportHTMLMapMode: (mode: SetExportHTMLMapModeUpdaterAction['payload']) => Merge<SetExportHTMLMapModeUpdaterAction, {
328
329
  type: typeof ActionTypes.SET_EXPORT_MAP_HTML_MODE;
329
330
  }>;
331
+ /** SET_EXPORT_MAP_BRANDING */
332
+ export type SetExportMapBrandingUpdaterAction = {
333
+ payload: {
334
+ appName?: string;
335
+ appWebsite?: string;
336
+ };
337
+ };
338
+ /**
339
+ * Set application branding overrides for exported maps
340
+ * @memberOf uiStateActions
341
+ * @param payload - application name and/or website overrides
342
+ */
343
+ export declare const setExportMapBranding: (payload: SetExportMapBrandingUpdaterAction['payload']) => Merge<SetExportMapBrandingUpdaterAction, {
344
+ type: typeof ActionTypes.SET_EXPORT_MAP_BRANDING;
345
+ }>;
330
346
  /** SET_EXPORT_MAP_FILE_NAME */
331
347
  export type SetExportMapFileNameUpdaterAction = {
332
348
  payload: string;
@@ -1,7 +1,7 @@
1
1
  import { default as ActionTypes } from './action-types';
2
2
  import { FileCacheItem, ZipArchiveExpansion } from '@kepler.gl/processors';
3
3
  import { Layer, LayerBaseConfig } from '@kepler.gl/layers';
4
- import { GroupByOp, JoinOp, KeplerTable } from '@kepler.gl/table';
4
+ import { GroupByOp, JoinOp, KeplerTable, SuitabilityOp } from '@kepler.gl/table';
5
5
  import { AddDataToMapOptions, AddDataToMapPayload, ViewportPadding, ValueOf, Merge, PickInfo, RGBColor, NestedPartial, LayerVisConfig, ColorUI, Feature, FeatureSelectionContext, InteractionConfig, Filter, ParsedConfig, ParsedLayer, EffectPropsPartial, AnnotationPropsPartial, SyncTimelineMode, AnimationConfig, FilterAnimationConfig, LayerOrder, LayerOrderGroup, ProtoDataset, ChartConfig } from '@kepler.gl/types';
6
6
  export type ApplyLayerConfigUpdaterAction = {
7
7
  oldLayerId: string;
@@ -761,6 +761,32 @@ export type PinTableColumnUpdaterAction = {
761
761
  export declare function pinTableColumn(dataId: string, column: string): Merge<PinTableColumnUpdaterAction, {
762
762
  type: typeof ActionTypes.PIN_TABLE_COLUMN;
763
763
  }>;
764
+ export type ToggleTableColumnHiddenUpdaterAction = {
765
+ dataId: string;
766
+ column: string;
767
+ };
768
+ /**
769
+ * Hide or show a dataset column in the attribute table and in data export.
770
+ * @param dataId
771
+ * @param column
772
+ * @returns action
773
+ * @public
774
+ */
775
+ export declare function toggleTableColumnHidden(dataId: string, column: string): Merge<ToggleTableColumnHiddenUpdaterAction, {
776
+ type: typeof ActionTypes.TOGGLE_TABLE_COLUMN_HIDDEN;
777
+ }>;
778
+ export type ShowAllTableColumnsUpdaterAction = {
779
+ dataId: string;
780
+ };
781
+ /**
782
+ * Show every attribute-table column that was hidden.
783
+ * @param dataId
784
+ * @returns action
785
+ * @public
786
+ */
787
+ export declare function showAllTableColumns(dataId: string): Merge<ShowAllTableColumnsUpdaterAction, {
788
+ type: typeof ActionTypes.SHOW_ALL_TABLE_COLUMNS;
789
+ }>;
764
790
  export type CopyTableColumnUpdaterAction = {
765
791
  dataId: string;
766
792
  column: string;
@@ -810,26 +836,32 @@ export type LoadColumnStatsSuccessUpdaterAction = {
810
836
  fieldName: string;
811
837
  result: any;
812
838
  filterProps?: any;
839
+ fieldType?: string;
813
840
  };
814
841
  /**
815
842
  * Column statistics finished loading
816
843
  * @returns action
817
844
  * @public
818
845
  */
819
- export declare function loadColumnStatsSuccess(dataId: string, fieldName: string, result: any, filterProps?: any): Merge<LoadColumnStatsSuccessUpdaterAction, {
846
+ export declare function loadColumnStatsSuccess(dataId: string, fieldName: string, result: any, filterProps?: any, request?: {
847
+ fieldType: string;
848
+ }): Merge<LoadColumnStatsSuccessUpdaterAction, {
820
849
  type: typeof ActionTypes.LOAD_COLUMN_STATS_SUCCESS;
821
850
  }>;
822
851
  export type LoadColumnStatsErrorUpdaterAction = {
823
852
  dataId: string;
824
853
  fieldName: string;
825
854
  error: Error;
855
+ fieldType?: string;
826
856
  };
827
857
  /**
828
858
  * Column statistics failed to load
829
859
  * @returns action
830
860
  * @public
831
861
  */
832
- export declare function loadColumnStatsError(dataId: string, fieldName: string, error: Error): Merge<LoadColumnStatsErrorUpdaterAction, {
862
+ export declare function loadColumnStatsError(dataId: string, fieldName: string, error: Error, request?: {
863
+ fieldType: string;
864
+ }): Merge<LoadColumnStatsErrorUpdaterAction, {
833
865
  type: typeof ActionTypes.LOAD_COLUMN_STATS_ERROR;
834
866
  }>;
835
867
  export type AddDataToMapUpdaterOptions = {
@@ -922,6 +954,54 @@ export type UpdateDatasetUpdaterAction = {
922
954
  export declare function updateDataset(dataId: string, data: ProtoDataset['data'], renames?: Record<string, string>): Merge<UpdateDatasetUpdaterAction, {
923
955
  type: typeof ActionTypes.UPDATE_DATASET;
924
956
  }>;
957
+ export type RenameTableColumnUpdaterAction = {
958
+ dataId: string;
959
+ fieldName: string;
960
+ newName: string;
961
+ };
962
+ /**
963
+ * Rename a dataset column. The new name becomes the field identity stored in
964
+ * layers, filters, charts, dataset operations, and saved maps.
965
+ * @param dataId - dataset id
966
+ * @param fieldName - current column name
967
+ * @param newName - next column name
968
+ * @returns action
969
+ * @public
970
+ */
971
+ export declare function renameTableColumn(dataId: string, fieldName: string, newName: string): Merge<RenameTableColumnUpdaterAction, {
972
+ type: typeof ActionTypes.RENAME_TABLE_COLUMN;
973
+ }>;
974
+ export type ChangeTableColumnTypeUpdaterAction = {
975
+ dataId: string;
976
+ fieldName: string;
977
+ newType: string;
978
+ };
979
+ /**
980
+ * Convert every value in a dataset column and update its field type atomically.
981
+ * Invalid values leave the dataset unchanged and produce an error notification.
982
+ * @param dataId - dataset id
983
+ * @param fieldName - column name
984
+ * @param newType - target kepler.gl field type
985
+ * @returns action
986
+ * @public
987
+ */
988
+ export declare function changeTableColumnType(dataId: string, fieldName: string, newType: string): Merge<ChangeTableColumnTypeUpdaterAction, {
989
+ type: typeof ActionTypes.CHANGE_TABLE_COLUMN_TYPE;
990
+ }>;
991
+ export type DeleteTableColumnUpdaterAction = {
992
+ dataId: string;
993
+ fieldName: string;
994
+ };
995
+ /**
996
+ * Delete a dataset column and drop references that required it.
997
+ * @param dataId - dataset id
998
+ * @param fieldName - column name
999
+ * @returns action
1000
+ * @public
1001
+ */
1002
+ export declare function deleteTableColumn(dataId: string, fieldName: string): Merge<DeleteTableColumnUpdaterAction, {
1003
+ type: typeof ActionTypes.DELETE_TABLE_COLUMN;
1004
+ }>;
925
1005
  export type ToggleFilterAnimationUpdaterAction = {
926
1006
  idx: number;
927
1007
  };
@@ -1645,6 +1725,25 @@ export type RunSpatialJoinUpdaterAction = {
1645
1725
  export declare function runSpatialJoin(id: string): Merge<RunSpatialJoinUpdaterAction, {
1646
1726
  type: typeof ActionTypes.RUN_SPATIAL_JOIN;
1647
1727
  }>;
1728
+ export type AddSuitabilityUpdaterAction = {
1729
+ dataId: string;
1730
+ };
1731
+ export declare function addSuitability(dataId: string): Merge<AddSuitabilityUpdaterAction, {
1732
+ type: typeof ActionTypes.ADD_SUITABILITY;
1733
+ }>;
1734
+ export type SetSuitabilityConfigUpdaterAction = {
1735
+ id: string;
1736
+ config: Partial<SuitabilityOp>;
1737
+ };
1738
+ export declare function setSuitabilityConfig(id: string, config: Partial<SuitabilityOp>): Merge<SetSuitabilityConfigUpdaterAction, {
1739
+ type: typeof ActionTypes.SET_SUITABILITY_CONFIG;
1740
+ }>;
1741
+ export type RunSuitabilityUpdaterAction = {
1742
+ id: string;
1743
+ };
1744
+ export declare function runSuitability(id: string): Merge<RunSuitabilityUpdaterAction, {
1745
+ type: typeof ActionTypes.RUN_SUITABILITY;
1746
+ }>;
1648
1747
  export type RemoveDatasetOpUpdaterAction = {
1649
1748
  id: string;
1650
1749
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kepler.gl/actions",
3
3
  "author": "Shan He <shan@uber.com>",
4
- "version": "3.3.0-alpha.16",
4
+ "version": "3.3.0-alpha.17",
5
5
  "description": "kepler.gl constants used by kepler.gl components, actions and reducers",
6
6
  "license": "MIT",
7
7
  "main": "dist/cjs/index.js",
@@ -29,13 +29,13 @@
29
29
  ],
30
30
  "dependencies": {
31
31
  "@deck.gl/core": "^9.3.1",
32
- "@kepler.gl/cloud-providers": "3.3.0-alpha.16",
33
- "@kepler.gl/constants": "3.3.0-alpha.16",
34
- "@kepler.gl/layers": "3.3.0-alpha.16",
35
- "@kepler.gl/processors": "3.3.0-alpha.16",
36
- "@kepler.gl/table": "3.3.0-alpha.16",
37
- "@kepler.gl/types": "3.3.0-alpha.16",
38
- "@kepler.gl/utils": "3.3.0-alpha.16",
32
+ "@kepler.gl/cloud-providers": "3.3.0-alpha.17",
33
+ "@kepler.gl/constants": "3.3.0-alpha.17",
34
+ "@kepler.gl/layers": "3.3.0-alpha.17",
35
+ "@kepler.gl/processors": "3.3.0-alpha.17",
36
+ "@kepler.gl/table": "3.3.0-alpha.17",
37
+ "@kepler.gl/types": "3.3.0-alpha.17",
38
+ "@kepler.gl/utils": "3.3.0-alpha.17",
39
39
  "@reduxjs/toolkit": "^1.7.2",
40
40
  "@types/react-redux": "^7.1.23",
41
41
  "@types/redux-actions": "^2.6.2",
@@ -58,7 +58,7 @@
58
58
  "node": ">=20"
59
59
  },
60
60
  "volta": {
61
- "node": "20.19.3",
61
+ "node": "24.21.0",
62
62
  "yarn": "4.4.0"
63
63
  },
64
64
  "packageManager": "yarn@4.4.0",