@dynatrace/strato-geo 0.10.13 → 0.10.43

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.
@@ -15,7 +15,7 @@ const parseRegionDataToGeoJSON = (mapSource, data, regionAccessor, color) => {
15
15
  const regionColor = defineColor(color, item);
16
16
  const canvasColor = getCanvasColor(regionColor);
17
17
  const hoveredColor = calculateHoveredColor(canvasColor);
18
- const { n: name } = feature.properties;
18
+ const { name } = feature.properties;
19
19
  const feat = {
20
20
  ...feature,
21
21
  properties: {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../src/map/components/ChoroplethLayer/functions/parse-region-data-to-geo-json.ts"],
4
- "sourcesContent": ["import type GeoJSON from 'geojson';\n\nimport { _getCanvasColor as getCanvasColor } from '@dynatrace/strato-components-preview/charts';\nimport { _accessValue as accessValue } from '@dynatrace/strato-components-preview/core';\n\nimport { calculateHoveredColor } from '../../../functions/calculate-hovered-color.js';\nimport { defineColor } from '../../../functions/define-color.js';\n\nexport const parseRegionDataToGeoJSON = <T extends Record<string, unknown>>(\n mapSource: GeoJSON.FeatureCollection,\n data: T[],\n regionAccessor: string | ((i: T) => string),\n color: string | ((i: T) => string),\n): GeoJSON.FeatureCollection => {\n const features = data.reduce((features: GeoJSON.Feature[], item) => {\n let id: string | undefined = '';\n\n if (typeof regionAccessor === 'function') {\n id = regionAccessor(item);\n } else {\n id = accessValue<string>(item, regionAccessor);\n }\n\n const feature = mapSource.features.find((region) => region.id === id);\n if (feature !== undefined) {\n const regionColor = defineColor(color, item);\n const canvasColor = getCanvasColor(regionColor);\n const hoveredColor = calculateHoveredColor(canvasColor);\n const { n: name } = feature.properties as { n: string };\n const feat = {\n ...feature,\n properties: {\n name,\n data: item,\n ...item,\n __color: canvasColor,\n __hoveredColor: hoveredColor,\n },\n };\n\n features.push(feat);\n }\n\n return features;\n }, []);\n\n return {\n type: 'FeatureCollection',\n features,\n };\n};\n"],
5
- "mappings": "AAEA,SAAS,mBAAmB,sBAAsB;AAClD,SAAS,gBAAgB,mBAAmB;AAE5C,SAAS,6BAA6B;AACtC,SAAS,mBAAmB;AAErB,MAAM,2BAA2B,CACtC,WACA,MACA,gBACA,UAC8B;AAC9B,QAAM,WAAW,KAAK,OAAO,CAACA,WAA6B,SAAS;AAClE,QAAI,KAAyB;AAE7B,QAAI,OAAO,mBAAmB,YAAY;AACxC,WAAK,eAAe,IAAI;AAAA,IAC1B,OAAO;AACL,WAAK,YAAoB,MAAM,cAAc;AAAA,IAC/C;AAEA,UAAM,UAAU,UAAU,SAAS,KAAK,CAAC,WAAW,OAAO,OAAO,EAAE;AACpE,QAAI,YAAY,QAAW;AACzB,YAAM,cAAc,YAAY,OAAO,IAAI;AAC3C,YAAM,cAAc,eAAe,WAAW;AAC9C,YAAM,eAAe,sBAAsB,WAAW;AACtD,YAAM,EAAE,GAAG,KAAK,IAAI,QAAQ;AAC5B,YAAM,OAAO;AAAA,QACX,GAAG;AAAA,QACH,YAAY;AAAA,UACV;AAAA,UACA,MAAM;AAAA,UACN,GAAG;AAAA,UACH,SAAS;AAAA,UACT,gBAAgB;AAAA,QAClB;AAAA,MACF;AAEA,MAAAA,UAAS,KAAK,IAAI;AAAA,IACpB;AAEA,WAAOA;AAAA,EACT,GAAG,CAAC,CAAC;AAEL,SAAO;AAAA,IACL,MAAM;AAAA,IACN;AAAA,EACF;AACF;",
4
+ "sourcesContent": ["import type GeoJSON from 'geojson';\n\nimport { _getCanvasColor as getCanvasColor } from '@dynatrace/strato-components-preview/charts';\nimport { _accessValue as accessValue } from '@dynatrace/strato-components-preview/core';\n\nimport { calculateHoveredColor } from '../../../functions/calculate-hovered-color.js';\nimport { defineColor } from '../../../functions/define-color.js';\n\nexport const parseRegionDataToGeoJSON = <T extends Record<string, unknown>>(\n mapSource: GeoJSON.FeatureCollection,\n data: T[],\n regionAccessor: string | ((i: T) => string),\n color: string | ((i: T) => string),\n): GeoJSON.FeatureCollection => {\n const features = data.reduce((features: GeoJSON.Feature[], item) => {\n let id: string | undefined = '';\n\n if (typeof regionAccessor === 'function') {\n id = regionAccessor(item);\n } else {\n id = accessValue<string>(item, regionAccessor);\n }\n\n const feature = mapSource.features.find((region) => region.id === id);\n if (feature !== undefined) {\n const regionColor = defineColor(color, item);\n const canvasColor = getCanvasColor(regionColor);\n const hoveredColor = calculateHoveredColor(canvasColor);\n const { name } = feature.properties as { name: string };\n const feat = {\n ...feature,\n properties: {\n name,\n data: item,\n ...item,\n __color: canvasColor,\n __hoveredColor: hoveredColor,\n },\n };\n\n features.push(feat);\n }\n\n return features;\n }, []);\n\n return {\n type: 'FeatureCollection',\n features,\n };\n};\n"],
5
+ "mappings": "AAEA,SAAS,mBAAmB,sBAAsB;AAClD,SAAS,gBAAgB,mBAAmB;AAE5C,SAAS,6BAA6B;AACtC,SAAS,mBAAmB;AAErB,MAAM,2BAA2B,CACtC,WACA,MACA,gBACA,UAC8B;AAC9B,QAAM,WAAW,KAAK,OAAO,CAACA,WAA6B,SAAS;AAClE,QAAI,KAAyB;AAE7B,QAAI,OAAO,mBAAmB,YAAY;AACxC,WAAK,eAAe,IAAI;AAAA,IAC1B,OAAO;AACL,WAAK,YAAoB,MAAM,cAAc;AAAA,IAC/C;AAEA,UAAM,UAAU,UAAU,SAAS,KAAK,CAAC,WAAW,OAAO,OAAO,EAAE;AACpE,QAAI,YAAY,QAAW;AACzB,YAAM,cAAc,YAAY,OAAO,IAAI;AAC3C,YAAM,cAAc,eAAe,WAAW;AAC9C,YAAM,eAAe,sBAAsB,WAAW;AACtD,YAAM,EAAE,KAAK,IAAI,QAAQ;AACzB,YAAM,OAAO;AAAA,QACX,GAAG;AAAA,QACH,YAAY;AAAA,UACV;AAAA,UACA,MAAM;AAAA,UACN,GAAG;AAAA,UACH,SAAS;AAAA,UACT,gBAAgB;AAAA,QAClB;AAAA,MACF;AAEA,MAAAA,UAAS,KAAK,IAAI;AAAA,IACpB;AAEA,WAAOA;AAAA,EACT,GAAG,CAAC,CAAC;AAEL,SAAO;AAAA,IACL,MAAM;AAAA,IACN;AAAA,EACF;AACF;",
6
6
  "names": ["features"]
7
7
  }
@@ -25,7 +25,7 @@ const BASE_LAYER_LINE_ID = "geojson-line";
25
25
  const BASE_LAYER_IDS = [BASE_LAYER_LINE_ID, BASE_LAYER_FILL_ID];
26
26
  const SHAPE_OPACITY = 1;
27
27
  const DEFAULT_SYMBOL_SIZE = 32;
28
- const CDN_BASE_PATH = "https://dt-cdn.net/scripts/data/worldmap/maps/v001/";
28
+ const CDN_BASE_PATH = "https://dt-cdn.net/scripts/data/worldmap/maps/v002/";
29
29
  const INCLUDE_ALL_WILDCARD_RULE = "*";
30
30
  const DEFAULT_BASIC_SHAPE_COLOR_TOKEN = Colors.Charts.CategoricalThemed.PurpleRain.Color01;
31
31
  const DEFAULT_LEGEND_SIZES = {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/map/constants.ts"],
4
- "sourcesContent": ["import type { ExpressionSpecification } from '@maplibre/maplibre-gl-style-spec';\nimport { defineMessages } from 'react-intl';\n\nimport Colors from '@dynatrace/strato-design-tokens/colors';\n\n//region GENERAL\nexport const DEFAULT_COUNTRIES_FILL_COLOR = Colors.Theme.Neutral['50'];\nexport const DEFAULT_COUNTRIES_BORDER_COLOR = Colors.Background.Surface.Default;\nexport const TRANSPARENT_BORDER_COLOR = '#00000000';\nexport const MAX_LATITUDE = 90;\nexport const MIN_LATITUDE = -90;\nexport const MAX_LONGITUDE = 180;\nexport const MIN_LONGITUDE = -180;\nexport const WHOLE_WORLD_VIEW_BOUNDARIES: [number, number, number, number] = [\n MAX_LONGITUDE,\n MAX_LATITUDE,\n MIN_LONGITUDE,\n MIN_LATITUDE,\n];\nexport const DEFAULT_COUNTRY_CODE = 'default';\nexport const FIT_BOUNDS_OPTIONS = { padding: 20 };\nexport const DEFAULT_MAP_HEIGHT = 400;\nexport const DEFAULT_MAP_LEGEND_RATIO = 12;\nexport const DEFAULT_MAP_POSITION = 'auto';\nexport const DEFAULT_INPUT_ICON_SIZE = 20;\nexport const ACTIVE_COLOR = Colors.Border.Neutral.AccentActive;\n\nexport const BASE_LAYER_FILL_ID = 'geojson-fill';\nexport const BASE_LAYER_LINE_ID = 'geojson-line';\nexport const BASE_LAYER_IDS = [BASE_LAYER_LINE_ID, BASE_LAYER_FILL_ID];\nexport const SHAPE_OPACITY = 1;\nexport const DEFAULT_SYMBOL_SIZE = 32;\n\nexport const CDN_BASE_PATH =\n 'https://dt-cdn.net/scripts/data/worldmap/maps/v001/' as const;\nexport const INCLUDE_ALL_WILDCARD_RULE = '*' as const;\n//endregion\n\n//region LEGEND\nexport const DEFAULT_BASIC_SHAPE_COLOR_TOKEN =\n Colors.Charts.CategoricalThemed.PurpleRain.Color01;\nexport const DEFAULT_LEGEND_SIZES = {\n // Minimum size in which the legend can be resized (vertical layout)\n minWidth: 0.1,\n // Minimum size in which the legend can be resized (horizontal layout)\n minHeight: 0.1,\n // Maximum size in which the legend can be resized (vertical layout). 80% represent 4 / 5ths of the container.\n maxWidth: 0.8,\n // Maximum size in which the legend can be resized (horizontal layout). 80% represent 4 / 5ths of the container.\n maxHeight: 0.8,\n};\nexport const DEFAULT_FORMATTER = {\n maximumFractionDigits: 1,\n};\nexport const DEFAULT_RANGE_COLOR = Colors.Background.Field.Neutral.Disabled;\nexport const LEGEND_DIM_OPACITY = 0.2;\nexport const DEFAULT_SEQUENTIAL_LEGEND_COLOR_PALETTE = 'blue';\n//endregion\n\n//region DOT LAYER\nexport const ICON_BACKGROUND_OPACITY = 0.7;\nexport const ICON_BACKGROUND_RADIUS = 16;\nexport const DEFAULT_ICON_BACKGROUND_COLOR =\n Colors.Background.Container.Neutral.Subdued;\nexport const DEFAULT_ICON_SIZE_RATIO = 0.6;\nexport const DEFAULT_SHAPE_COLOR = Colors.Charts.Categorical.Color15.Default;\nexport const DEFAULT_ICON_COLOR = Colors.Icon.Neutral.Default;\n//endregion\n\n//region BUBBLE LAYER\nexport const DEFAULT_BUBBLE_COLOR = Colors.Charts.Categorical.Color07.Default;\nexport const DEFAULT_RADIUS = 12;\nexport const BUBBLE_DEFAULT_OPACITY = 0.4;\nexport const BUBBLE_STROKE = 1;\nexport const BUBBLE_OUTLINE_STROKE = 1;\nexport const DEFAULT_RADIUS_EXPRESSION: ExpressionSpecification = [\n 'get',\n '__radius',\n];\n//endregion\n\n//region CONNECTION LAYER\nexport const DEFAULT_LINE_JOIN: 'bevel' | 'round' | 'miter' = 'miter';\nexport const DEFAULT_LINE_CAP: 'butt' | 'round' | 'square' = 'butt';\nexport const DEFAULT_LINE_THICKNESS = 2;\nexport const DEFAULT_LINE_COLOR = Colors.Charts.Categorical.Color03.Default;\nexport const DEFAULT_LINE_DASH_ARRAY = [5, 2.5];\nexport const MIN_LINE_THICKNESS = 1;\nexport const MAX_LINE_THICKNESS = 64;\nexport const DIRECTION_ICON_OUTPUT_SIZE = 128;\nexport const DIRECTION_ICON_SHRINK_RATIO = 1 / 15;\n//endregion\n\n//region CHOROPLETH LAYER\n\nexport const ACTIVE_STATE_BORDERS_WIDTH = 1.8;\n\nexport const DEFAULT_CHOROPLETH_COLOR =\n Colors.Charts.Sequential.Blue.Color05.Default;\n\nexport const COPY_TO_CLIPBOARD_MESSAGES = defineMessages({\n copyActionCoords: {\n id: 'g2qESM+ibB5sUyjf',\n defaultMessage: 'Copy coordinates',\n description:\n 'Text in a tooltip shown when hovering a tooltip item and hovering the copy button next to its coordinates',\n },\n});\n//endregion\n"],
4
+ "sourcesContent": ["import type { ExpressionSpecification } from '@maplibre/maplibre-gl-style-spec';\nimport { defineMessages } from 'react-intl';\n\nimport Colors from '@dynatrace/strato-design-tokens/colors';\n\n//region GENERAL\nexport const DEFAULT_COUNTRIES_FILL_COLOR = Colors.Theme.Neutral['50'];\nexport const DEFAULT_COUNTRIES_BORDER_COLOR = Colors.Background.Surface.Default;\nexport const TRANSPARENT_BORDER_COLOR = '#00000000';\nexport const MAX_LATITUDE = 90;\nexport const MIN_LATITUDE = -90;\nexport const MAX_LONGITUDE = 180;\nexport const MIN_LONGITUDE = -180;\nexport const WHOLE_WORLD_VIEW_BOUNDARIES: [number, number, number, number] = [\n MAX_LONGITUDE,\n MAX_LATITUDE,\n MIN_LONGITUDE,\n MIN_LATITUDE,\n];\nexport const DEFAULT_COUNTRY_CODE = 'default';\nexport const FIT_BOUNDS_OPTIONS = { padding: 20 };\nexport const DEFAULT_MAP_HEIGHT = 400;\nexport const DEFAULT_MAP_LEGEND_RATIO = 12;\nexport const DEFAULT_MAP_POSITION = 'auto';\nexport const DEFAULT_INPUT_ICON_SIZE = 20;\nexport const ACTIVE_COLOR = Colors.Border.Neutral.AccentActive;\n\nexport const BASE_LAYER_FILL_ID = 'geojson-fill';\nexport const BASE_LAYER_LINE_ID = 'geojson-line';\nexport const BASE_LAYER_IDS = [BASE_LAYER_LINE_ID, BASE_LAYER_FILL_ID];\nexport const SHAPE_OPACITY = 1;\nexport const DEFAULT_SYMBOL_SIZE = 32;\n\nexport const CDN_BASE_PATH =\n 'https://dt-cdn.net/scripts/data/worldmap/maps/v002/' as const;\nexport const INCLUDE_ALL_WILDCARD_RULE = '*' as const;\n//endregion\n\n//region LEGEND\nexport const DEFAULT_BASIC_SHAPE_COLOR_TOKEN =\n Colors.Charts.CategoricalThemed.PurpleRain.Color01;\nexport const DEFAULT_LEGEND_SIZES = {\n // Minimum size in which the legend can be resized (vertical layout)\n minWidth: 0.1,\n // Minimum size in which the legend can be resized (horizontal layout)\n minHeight: 0.1,\n // Maximum size in which the legend can be resized (vertical layout). 80% represent 4 / 5ths of the container.\n maxWidth: 0.8,\n // Maximum size in which the legend can be resized (horizontal layout). 80% represent 4 / 5ths of the container.\n maxHeight: 0.8,\n};\nexport const DEFAULT_FORMATTER = {\n maximumFractionDigits: 1,\n};\nexport const DEFAULT_RANGE_COLOR = Colors.Background.Field.Neutral.Disabled;\nexport const LEGEND_DIM_OPACITY = 0.2;\nexport const DEFAULT_SEQUENTIAL_LEGEND_COLOR_PALETTE = 'blue';\n//endregion\n\n//region DOT LAYER\nexport const ICON_BACKGROUND_OPACITY = 0.7;\nexport const ICON_BACKGROUND_RADIUS = 16;\nexport const DEFAULT_ICON_BACKGROUND_COLOR =\n Colors.Background.Container.Neutral.Subdued;\nexport const DEFAULT_ICON_SIZE_RATIO = 0.6;\nexport const DEFAULT_SHAPE_COLOR = Colors.Charts.Categorical.Color15.Default;\nexport const DEFAULT_ICON_COLOR = Colors.Icon.Neutral.Default;\n//endregion\n\n//region BUBBLE LAYER\nexport const DEFAULT_BUBBLE_COLOR = Colors.Charts.Categorical.Color07.Default;\nexport const DEFAULT_RADIUS = 12;\nexport const BUBBLE_DEFAULT_OPACITY = 0.4;\nexport const BUBBLE_STROKE = 1;\nexport const BUBBLE_OUTLINE_STROKE = 1;\nexport const DEFAULT_RADIUS_EXPRESSION: ExpressionSpecification = [\n 'get',\n '__radius',\n];\n//endregion\n\n//region CONNECTION LAYER\nexport const DEFAULT_LINE_JOIN: 'bevel' | 'round' | 'miter' = 'miter';\nexport const DEFAULT_LINE_CAP: 'butt' | 'round' | 'square' = 'butt';\nexport const DEFAULT_LINE_THICKNESS = 2;\nexport const DEFAULT_LINE_COLOR = Colors.Charts.Categorical.Color03.Default;\nexport const DEFAULT_LINE_DASH_ARRAY = [5, 2.5];\nexport const MIN_LINE_THICKNESS = 1;\nexport const MAX_LINE_THICKNESS = 64;\nexport const DIRECTION_ICON_OUTPUT_SIZE = 128;\nexport const DIRECTION_ICON_SHRINK_RATIO = 1 / 15;\n//endregion\n\n//region CHOROPLETH LAYER\n\nexport const ACTIVE_STATE_BORDERS_WIDTH = 1.8;\n\nexport const DEFAULT_CHOROPLETH_COLOR =\n Colors.Charts.Sequential.Blue.Color05.Default;\n\nexport const COPY_TO_CLIPBOARD_MESSAGES = defineMessages({\n copyActionCoords: {\n id: 'g2qESM+ibB5sUyjf',\n defaultMessage: 'Copy coordinates',\n description:\n 'Text in a tooltip shown when hovering a tooltip item and hovering the copy button next to its coordinates',\n },\n});\n//endregion\n"],
5
5
  "mappings": "AACA,SAAS,sBAAsB;AAE/B,OAAO,YAAY;AAGZ,MAAM,+BAA+B,OAAO,MAAM,QAAQ,IAAI;AAC9D,MAAM,iCAAiC,OAAO,WAAW,QAAQ;AACjE,MAAM,2BAA2B;AACjC,MAAM,eAAe;AACrB,MAAM,eAAe;AACrB,MAAM,gBAAgB;AACtB,MAAM,gBAAgB;AACtB,MAAM,8BAAgE;AAAA,EAC3E;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AACO,MAAM,uBAAuB;AAC7B,MAAM,qBAAqB,EAAE,SAAS,GAAG;AACzC,MAAM,qBAAqB;AAC3B,MAAM,2BAA2B;AACjC,MAAM,uBAAuB;AAC7B,MAAM,0BAA0B;AAChC,MAAM,eAAe,OAAO,OAAO,QAAQ;AAE3C,MAAM,qBAAqB;AAC3B,MAAM,qBAAqB;AAC3B,MAAM,iBAAiB,CAAC,oBAAoB,kBAAkB;AAC9D,MAAM,gBAAgB;AACtB,MAAM,sBAAsB;AAE5B,MAAM,gBACX;AACK,MAAM,4BAA4B;AAIlC,MAAM,kCACX,OAAO,OAAO,kBAAkB,WAAW;AACtC,MAAM,uBAAuB;AAAA;AAAA,EAElC,UAAU;AAAA;AAAA,EAEV,WAAW;AAAA;AAAA,EAEX,UAAU;AAAA;AAAA,EAEV,WAAW;AACb;AACO,MAAM,oBAAoB;AAAA,EAC/B,uBAAuB;AACzB;AACO,MAAM,sBAAsB,OAAO,WAAW,MAAM,QAAQ;AAC5D,MAAM,qBAAqB;AAC3B,MAAM,0CAA0C;AAIhD,MAAM,0BAA0B;AAChC,MAAM,yBAAyB;AAC/B,MAAM,gCACX,OAAO,WAAW,UAAU,QAAQ;AAC/B,MAAM,0BAA0B;AAChC,MAAM,sBAAsB,OAAO,OAAO,YAAY,QAAQ;AAC9D,MAAM,qBAAqB,OAAO,KAAK,QAAQ;AAI/C,MAAM,uBAAuB,OAAO,OAAO,YAAY,QAAQ;AAC/D,MAAM,iBAAiB;AACvB,MAAM,yBAAyB;AAC/B,MAAM,gBAAgB;AACtB,MAAM,wBAAwB;AAC9B,MAAM,4BAAqD;AAAA,EAChE;AAAA,EACA;AACF;AAIO,MAAM,oBAAiD;AACvD,MAAM,mBAAgD;AACtD,MAAM,yBAAyB;AAC/B,MAAM,qBAAqB,OAAO,OAAO,YAAY,QAAQ;AAC7D,MAAM,0BAA0B,CAAC,GAAG,GAAG;AACvC,MAAM,qBAAqB;AAC3B,MAAM,qBAAqB;AAC3B,MAAM,6BAA6B;AACnC,MAAM,8BAA8B,IAAI;AAKxC,MAAM,6BAA6B;AAEnC,MAAM,2BACX,OAAO,OAAO,WAAW,KAAK,QAAQ;AAEjC,MAAM,6BAA6B,eAAe;AAAA,EACvD,kBAAkB;AAAA,IAChB,IAAI;AAAA,IACJ,gBAAgB;AAAA,IAChB,aACE;AAAA,EACJ;AACF,CAAC;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/map/slots/BaseLayer.ts"],
4
- "sourcesContent": ["import type { BaseLayerProps } from '../types/base-layer.js';\n\n/** The base layer component, used to configure the inclusion and exclusion of countries */\nexport const BaseLayer = (_props: BaseLayerProps) => null;\nBaseLayer['displayName'] = 'BaseLayerSlot';\n"],
4
+ "sourcesContent": ["import type { BaseLayerProps } from '../types/base-layer.js';\n\n/** The base layer component, used to configure the inclusion and exclusion of countries and regions*/\nexport const BaseLayer = (_props: BaseLayerProps) => null;\nBaseLayer['displayName'] = 'BaseLayerSlot';\n"],
5
5
  "mappings": "AAGO,MAAM,YAAY,CAAC,WAA2B;AACrD,UAAU,aAAa,IAAI;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/map/slots/Tooltip.tsx"],
4
- "sourcesContent": ["import type { _ChartTooltipAtomsType as ChartTooltipAtomsType } from '@dynatrace/strato-components-preview/charts';\nimport {\n _ChartTooltipSlots as ChartTooltipSlots,\n _ChartTooltipAtoms as ChartTooltipAtoms,\n _ChartTooltipTemplate as ChartTooltipTemplate,\n} from '@dynatrace/strato-components-preview/charts';\n\nimport type { ChartTooltip } from '../types/tooltip.js';\n\n/**\n * @public\n * Tooltip is responsible for exposing the\n * ChartTooltip props, such as, sections, to the consumer\n */\nexport const Tooltip: ChartTooltip = {\n ...ChartTooltipSlots,\n ...ChartTooltipTemplate,\n};\n\n/**\n * @public\n * TooltipAtoms is responsible for exposing the\n * ChartTooltip atoms.\n */\nexport const TooltipAtoms: ChartTooltipAtomsType = { ...ChartTooltipAtoms };\n"],
4
+ "sourcesContent": ["import type { _ChartTooltipAtomsType as ChartTooltipAtomsType } from '@dynatrace/strato-components-preview/charts';\nimport {\n _ChartTooltipSlots as ChartTooltipSlots,\n _ChartTooltipAtoms as ChartTooltipAtoms,\n _ChartTooltipTemplate as ChartTooltipTemplate,\n} from '@dynatrace/strato-components-preview/charts';\n\nimport type { ChartTooltip } from '../types/tooltip.js';\n\n/**\n * Tooltip is responsible for exposing the\n * ChartTooltip props, such as, sections, to the consumer\n * @public\n */\nexport const Tooltip: ChartTooltip = {\n ...ChartTooltipSlots,\n ...ChartTooltipTemplate,\n};\n\n/**\n * TooltipAtoms is responsible for exposing the\n * ChartTooltip atoms.\n * @public\n */\nexport const TooltipAtoms: ChartTooltipAtomsType = { ...ChartTooltipAtoms };\n"],
5
5
  "mappings": "AACA;AAAA,EACE,sBAAsB;AAAA,EACtB,sBAAsB;AAAA,EACtB,yBAAyB;AAAA,OACpB;AASA,MAAM,UAAwB;AAAA,EACnC,GAAG;AAAA,EACH,GAAG;AACL;AAOO,MAAM,eAAsC,EAAE,GAAG,kBAAkB;",
6
6
  "names": []
7
7
  }
package/lang/en.json ADDED
@@ -0,0 +1,50 @@
1
+ {
2
+ "11eDVd4MkXWk8Bok": [
3
+ {
4
+ "type": 0,
5
+ "value": "Zoom in"
6
+ }
7
+ ],
8
+ "5DTYqeFoXLMaXUHR": [
9
+ {
10
+ "type": 0,
11
+ "value": "Zoom out"
12
+ }
13
+ ],
14
+ "EhcEZc1+Xc9wYsXg": [
15
+ {
16
+ "type": 0,
17
+ "value": "Zoom to fit"
18
+ }
19
+ ],
20
+ "TXZNTtB5qReH8XE3": [
21
+ {
22
+ "type": 0,
23
+ "value": "Maps have been disabled in your environment - to enable these, please reach out to your environment administrator."
24
+ }
25
+ ],
26
+ "g2qESM+ibB5sUyjf": [
27
+ {
28
+ "type": 0,
29
+ "value": "Copy coordinates"
30
+ }
31
+ ],
32
+ "hVE7x0G0Q7/ih93A": [
33
+ {
34
+ "type": 0,
35
+ "value": "Reset"
36
+ }
37
+ ],
38
+ "hlwWx47trlDMOy+V": [
39
+ {
40
+ "type": 0,
41
+ "value": "Download Data as CSV"
42
+ }
43
+ ],
44
+ "tS7epcIvtrbIhuBy": [
45
+ {
46
+ "type": 0,
47
+ "value": "An error occurred: Failed to load map data."
48
+ }
49
+ ]
50
+ }
package/lang/ja.json ADDED
@@ -0,0 +1,50 @@
1
+ {
2
+ "11eDVd4MkXWk8Bok": [
3
+ {
4
+ "type": 0,
5
+ "value": "拡大"
6
+ }
7
+ ],
8
+ "5DTYqeFoXLMaXUHR": [
9
+ {
10
+ "type": 0,
11
+ "value": "縮小"
12
+ }
13
+ ],
14
+ "EhcEZc1+Xc9wYsXg": [
15
+ {
16
+ "type": 0,
17
+ "value": "ウィンドウに合わせる"
18
+ }
19
+ ],
20
+ "TXZNTtB5qReH8XE3": [
21
+ {
22
+ "type": 0,
23
+ "value": "マップは、お使いの Environment では無効にされています。有効にするには、Environment の管理者に問い合わせてください。"
24
+ }
25
+ ],
26
+ "g2qESM+ibB5sUyjf": [
27
+ {
28
+ "type": 0,
29
+ "value": "座標をコピー"
30
+ }
31
+ ],
32
+ "hVE7x0G0Q7/ih93A": [
33
+ {
34
+ "type": 0,
35
+ "value": "リセット"
36
+ }
37
+ ],
38
+ "hlwWx47trlDMOy+V": [
39
+ {
40
+ "type": 0,
41
+ "value": "データを CSV としてダウンロード"
42
+ }
43
+ ],
44
+ "tS7epcIvtrbIhuBy": [
45
+ {
46
+ "type": 0,
47
+ "value": "エラーが発生しました:マップ データのロードに失敗しました。"
48
+ }
49
+ ]
50
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "11eDVd4MkXWk8Bok": {
3
+ "notes": "Text in a tooltip shown when hovering the \"Zoom in\" action in the geo map chart toolbar",
4
+ "translation": "Zoom in"
5
+ },
6
+ "5DTYqeFoXLMaXUHR": {
7
+ "notes": "Text in a tooltip shown when hovering the \"Zoom out\" action in the geo map chart toolbar",
8
+ "translation": "Zoom out"
9
+ },
10
+ "EhcEZc1+Xc9wYsXg": {
11
+ "notes": "Text in a tooltip shown when hovering the \"Zoom to fit\" action in the geo map chart toolbar",
12
+ "translation": "Zoom to fit"
13
+ },
14
+ "TXZNTtB5qReH8XE3": {
15
+ "notes": "Message to display when all maps are hidden.",
16
+ "translation": "Maps have been disabled in your environment - to enable these, please reach out to your environment administrator."
17
+ },
18
+ "g2qESM+ibB5sUyjf": {
19
+ "notes": "Text in a tooltip shown when hovering a tooltip item and hovering the copy button next to its coordinates",
20
+ "translation": "Copy coordinates"
21
+ },
22
+ "hVE7x0G0Q7/ih93A": {
23
+ "notes": "Text in a tooltip shown when hovering the \"Reset\" action in the geo map chart toolbar",
24
+ "translation": "Reset"
25
+ },
26
+ "hlwWx47trlDMOy+V": {
27
+ "notes": "Text in a tooltip shown when hovering the \"Download Data\" action in the geo map chart toolbar",
28
+ "translation": "Download Data as CSV"
29
+ },
30
+ "tS7epcIvtrbIhuBy": {
31
+ "notes": "Message to display when an error occurred while getting map data.",
32
+ "translation": "An error occurred: Failed to load map data."
33
+ }
34
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "11eDVd4MkXWk8Bok": {
3
+ "translation": "拡大"
4
+ },
5
+ "5DTYqeFoXLMaXUHR": {
6
+ "translation": "縮小"
7
+ },
8
+ "EhcEZc1+Xc9wYsXg": {
9
+ "translation": "ウィンドウに合わせる"
10
+ },
11
+ "TXZNTtB5qReH8XE3": {
12
+ "translation": "マップは、お使いの Environment では無効にされています。有効にするには、Environment の管理者に問い合わせてください。"
13
+ },
14
+ "g2qESM+ibB5sUyjf": {
15
+ "translation": "座標をコピー"
16
+ },
17
+ "hVE7x0G0Q7/ih93A": {
18
+ "translation": "リセット"
19
+ },
20
+ "hlwWx47trlDMOy+V": {
21
+ "translation": "データを CSV としてダウンロード"
22
+ },
23
+ "tS7epcIvtrbIhuBy": {
24
+ "translation": "エラーが発生しました:マップ データのロードに失敗しました。"
25
+ }
26
+ }
package/map/MapView.d.ts CHANGED
@@ -5,6 +5,6 @@ import type { MapViewProps, MapViewRef } from './types/map-view.js';
5
5
  * The `MapView` is a component that renders a map with various geospatial data layers.
6
6
  * @beta
7
7
  */
8
- export declare const MapView: ((props: React.PropsWithChildren<MapViewProps> & React.RefAttributes<MapViewRef>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null) & {
8
+ export declare const MapView: ((props: React.PropsWithChildren<MapViewProps> & React.RefAttributes<MapViewRef>) => React.ReactElement | null) & {
9
9
  ErrorState: (props: import("./slots/states/ErrorStateSlot.js").ErrorStateSlotProps) => null;
10
10
  };
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const SizeInterpolationContext: import("react").Context<"zoom" | "fixed" | undefined>;
@@ -1,3 +1,3 @@
1
1
  import { type ScaleLinear, type ScaleLogarithmic } from 'd3-scale';
2
2
  import type { Location } from '../../../types/location.js';
3
- export declare const buildRadiusScale: <T extends Location>(data: T[], radius: (item: T) => number, scale: 'linear' | 'log', range: [number, number]) => ScaleLinear<number, number> | ScaleLogarithmic<number, number>;
3
+ export declare const buildRadiusScale: <T extends Location>(data: T[], radius: (item: T) => number, scale: "linear" | "log", range: [number, number]) => ScaleLinear<number, number> | ScaleLogarithmic<number, number>;
@@ -37,7 +37,7 @@ const parseRegionDataToGeoJSON = (mapSource, data, regionAccessor, color) => {
37
37
  const regionColor = (0, import_define_color.defineColor)(color, item);
38
38
  const canvasColor = (0, import_charts._getCanvasColor)(regionColor);
39
39
  const hoveredColor = (0, import_calculate_hovered_color.calculateHoveredColor)(canvasColor);
40
- const { n: name } = feature.properties;
40
+ const { name } = feature.properties;
41
41
  const feat = {
42
42
  ...feature,
43
43
  properties: {
@@ -1 +1 @@
1
- export declare const calculateCircleTranslate: (iconAnchor: 'bottom' | 'center', radius: number) => [number, number];
1
+ export declare const calculateCircleTranslate: (iconAnchor: "bottom" | "center", radius: number) => [number, number];
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import type { MapViewProps } from '../types/map-view.js';
3
- export declare const MapContent: (props: React.PropsWithChildren<MapViewProps> & React.RefAttributes<HTMLDivElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
3
+ export declare const MapContent: (props: React.PropsWithChildren<MapViewProps> & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
@@ -21,7 +21,7 @@ export declare const BASE_LAYER_LINE_ID = "geojson-line";
21
21
  export declare const BASE_LAYER_IDS: string[];
22
22
  export declare const SHAPE_OPACITY = 1;
23
23
  export declare const DEFAULT_SYMBOL_SIZE = 32;
24
- export declare const CDN_BASE_PATH: "https://dt-cdn.net/scripts/data/worldmap/maps/v001/";
24
+ export declare const CDN_BASE_PATH: "https://dt-cdn.net/scripts/data/worldmap/maps/v002/";
25
25
  export declare const INCLUDE_ALL_WILDCARD_RULE: "*";
26
26
  export declare const DEFAULT_BASIC_SHAPE_COLOR_TOKEN: {
27
27
  Default: string;
package/map/constants.js CHANGED
@@ -108,7 +108,7 @@ const BASE_LAYER_LINE_ID = "geojson-line";
108
108
  const BASE_LAYER_IDS = [BASE_LAYER_LINE_ID, BASE_LAYER_FILL_ID];
109
109
  const SHAPE_OPACITY = 1;
110
110
  const DEFAULT_SYMBOL_SIZE = 32;
111
- const CDN_BASE_PATH = "https://dt-cdn.net/scripts/data/worldmap/maps/v001/";
111
+ const CDN_BASE_PATH = "https://dt-cdn.net/scripts/data/worldmap/maps/v002/";
112
112
  const INCLUDE_ALL_WILDCARD_RULE = "*";
113
113
  const DEFAULT_BASIC_SHAPE_COLOR_TOKEN = import_colors.default.Charts.CategoricalThemed.PurpleRain.Color01;
114
114
  const DEFAULT_LEGEND_SIZES = {
@@ -1,2 +1,2 @@
1
- import React, { ReactNode } from 'react';
2
- export declare const isComponent: <T>(child: ReactNode, slotType: React.JSXElementConstructor<T>) => child is React.ReactElement<T, string | React.JSXElementConstructor<any>>;
1
+ import React, { ReactElement, ReactNode } from 'react';
2
+ export declare const isComponent: <T>(child: ReactNode, slotType: React.JSXElementConstructor<T>) => child is ReactElement<T>;
@@ -11,5 +11,5 @@ export declare const isChoroplethTooltipTemplate: (template?: LayerTooltipHandle
11
11
  * Type guards for map types in tooltip context
12
12
  * @param data -
13
13
  */
14
- export declare const isConnection: (data: LayerTooltipData) => data is ConnectionLayerTooltipData<import("../types/connection-layer.js").Connection>;
15
- export declare const isRegion: (data: LayerTooltipData) => data is ChoroplethLayerTooltipData<Record<string, unknown>>;
14
+ export declare const isConnection: (data: LayerTooltipData) => data is ConnectionLayerTooltipData;
15
+ export declare const isRegion: (data: LayerTooltipData) => data is ChoroplethLayerTooltipData;
@@ -1,5 +1,5 @@
1
1
  import type { BaseLayerProps } from '../types/base-layer.js';
2
- /** The base layer component, used to configure the inclusion and exclusion of countries */
2
+ /** The base layer component, used to configure the inclusion and exclusion of countries and regions*/
3
3
  export declare const BaseLayer: {
4
4
  (_props: BaseLayerProps): null;
5
5
  displayName: string;
@@ -1,14 +1,14 @@
1
1
  import type { _ChartTooltipAtomsType as ChartTooltipAtomsType } from '@dynatrace/strato-components-preview/charts';
2
2
  import type { ChartTooltip } from '../types/tooltip.js';
3
3
  /**
4
- * @public
5
4
  * Tooltip is responsible for exposing the
6
5
  * ChartTooltip props, such as, sections, to the consumer
6
+ * @public
7
7
  */
8
8
  export declare const Tooltip: ChartTooltip;
9
9
  /**
10
- * @public
11
10
  * TooltipAtoms is responsible for exposing the
12
11
  * ChartTooltip atoms.
12
+ * @public
13
13
  */
14
14
  export declare const TooltipAtoms: ChartTooltipAtomsType;
@@ -1,5 +1,10 @@
1
+ /**
2
+ * Type to include or exclude countries to show
3
+ */
1
4
  export interface BaseLayerProps {
5
+ /** Include countries */
2
6
  include?: string[];
7
+ /** Exclude countries */
3
8
  exclude?: string[];
4
9
  }
5
10
  export interface BaseLayerRules {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { _ChartTooltipSlotsType as ChartTooltipSlotsType, _ChartTooltipTemplateType as ChartTooltipTemplateType } from '@dynatrace/strato-components-preview/charts';
3
2
  import type { Connection } from './connection-layer.js';
4
3
  import type { Location } from './location.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynatrace/strato-geo",
3
- "version": "0.10.13",
3
+ "version": "0.10.43",
4
4
  "private": false,
5
5
  "license": "Apache-2.0",
6
6
  "lang": "lang/uncompiled",
@@ -31,8 +31,8 @@
31
31
  "@turf/midpoint": "^6.5.0",
32
32
  "@turf/projection": "^6.5.0",
33
33
  "@turf/rhumb-bearing": "^6.5.0",
34
- "@vanilla-extract/css": "^1.13.0",
35
- "@vanilla-extract/recipes": "^0.5.0",
34
+ "@vanilla-extract/css": "^1.15.5",
35
+ "@vanilla-extract/recipes": "^0.5.5",
36
36
  "d3-array": "^3.2.4",
37
37
  "d3-interpolate": "^3.0.1",
38
38
  "d3-scale": "^4.0.2",
@@ -40,16 +40,16 @@
40
40
  "maplibre-gl": "^3.1.0",
41
41
  "react-map-gl": "^7.1.7",
42
42
  "@dynatrace/strato-design-tokens": "0.20.40",
43
- "@dynatrace/strato-icons": "0.39.1"
43
+ "@dynatrace/strato-icons": "0.39.2"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "@dynatrace-sdk/client-classic-environment-v2": "^1.1.0",
47
- "@dynatrace-sdk/client-platform-management-service": "^0.0.6 || ^0.0.8",
47
+ "@dynatrace-sdk/client-platform-management-service": ">= 0.0.6 < 1",
48
48
  "react": "^18.0.0",
49
49
  "react-dom": "^18.0.0",
50
50
  "react-intl": "^6.0.8",
51
51
  "react-is": "^18.0.0",
52
- "@dynatrace/strato-components-preview": "~0.116.13"
52
+ "@dynatrace/strato-components-preview": "~0.116.43"
53
53
  },
54
54
  "sideEffects": [
55
55
  "./map/styles/react-mapgl-styles.css",