@dynatrace/strato-geo 0.11.73 → 1.0.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.
- package/esm/map/constants.js.map +1 -1
- package/esm/map/contexts/map-truncation-mode.context.js.map +1 -1
- package/esm/map/hooks/use-truncation-mode.js.map +1 -1
- package/map/constants.d.ts +1 -1
- package/map/contexts/map-truncation-mode.context.d.ts +1 -1
- package/map/hooks/use-truncation-mode.d.ts +1 -1
- package/map/types/map-view.d.ts +1 -1
- package/package.json +8 -6
package/esm/map/constants.js.map
CHANGED
|
@@ -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 { TruncationMode } from '@dynatrace/strato-components
|
|
4
|
+
"sourcesContent": ["import type { ExpressionSpecification } from '@maplibre/maplibre-gl-style-spec';\nimport { defineMessages } from 'react-intl';\n\nimport type { _TruncationMode as TruncationMode } from '@dynatrace/strato-components/typography';\nimport Colors from '@dynatrace/strato-design-tokens/colors';\n\nimport type { BaseLayerRules } from './types/base-layer.js';\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 = 'auto';\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;\nexport const FALLBACK_SYMBOL_SIZE = 1;\nexport const DEFAULT_TRUNCATION_MODE = 'middle' as TruncationMode;\n\nexport const CDN_BASE_PATH =\n 'https://dt-cdn.net/scripts/data/worldmap/maps/v003/' 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.Container.Neutral.Accent;\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\n//region BASE LAYER RULES\nexport const DEFAULT_BASE_LAYER_RULES = {\n include: [INCLUDE_ALL_WILDCARD_RULE],\n exclude: [],\n} as const as BaseLayerRules;\n\n//endregion\n"],
|
|
5
5
|
"mappings": "AACA,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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;AAIM,MAAM,2BAA2B;AAAA,EACtC,SAAS,CAAC,yBAAyB;AAAA,EACnC,SAAS,CAAC;AACZ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/map/contexts/map-truncation-mode.context.ts"],
|
|
4
|
-
"sourcesContent": ["import { createContext } from 'react';\n\nimport { TruncationMode } from '@dynatrace/strato-components
|
|
4
|
+
"sourcesContent": ["import { createContext } from 'react';\n\nimport type { _TruncationMode as TruncationMode } from '@dynatrace/strato-components/typography';\n\nimport { DEFAULT_TRUNCATION_MODE } from '../constants.js';\n\nexport const MapTruncationModeContext = createContext<TruncationMode>(\n DEFAULT_TRUNCATION_MODE,\n);\n"],
|
|
5
5
|
"mappings": "AAAA,SAAS,qBAAqB;AAI9B,SAAS,+BAA+B;AAEjC,MAAM,2BAA2B;AAAA,EACtC;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/map/hooks/use-truncation-mode.ts"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\n\nimport { TruncationMode } from '@dynatrace/strato-components
|
|
4
|
+
"sourcesContent": ["import React from 'react';\n\nimport type { _TruncationMode as TruncationMode } from '@dynatrace/strato-components/typography';\n\nimport { MapTruncationModeContext } from '../contexts/map-truncation-mode.context.js';\n\nexport const useTruncationMode = () =>\n React.useContext<TruncationMode>(MapTruncationModeContext);\n"],
|
|
5
5
|
"mappings": "AAAA,OAAO,WAAW;AAIlB,SAAS,gCAAgC;AAElC,MAAM,oBAAoB,MAC/B,MAAM,WAA2B,wBAAwB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/map/constants.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ExpressionSpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
2
|
-
import { TruncationMode } from '@dynatrace/strato-components
|
|
2
|
+
import type { _TruncationMode as TruncationMode } from '@dynatrace/strato-components/typography';
|
|
3
3
|
import type { BaseLayerRules } from './types/base-layer.js';
|
|
4
4
|
export declare const DEFAULT_COUNTRIES_FILL_COLOR: string;
|
|
5
5
|
export declare const DEFAULT_COUNTRIES_BORDER_COLOR: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TruncationMode } from '@dynatrace/strato-components
|
|
1
|
+
import type { _TruncationMode as TruncationMode } from '@dynatrace/strato-components/typography';
|
|
2
2
|
export declare const MapTruncationModeContext: import("react").Context<TruncationMode>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TruncationMode } from '@dynatrace/strato-components
|
|
1
|
+
import type { _TruncationMode as TruncationMode } from '@dynatrace/strato-components/typography';
|
|
2
2
|
export declare const useTruncationMode: () => TruncationMode;
|
package/map/types/map-view.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StyleSpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
2
2
|
import type { CSSProperties } from 'react';
|
|
3
|
+
import type { _TruncationMode as TruncationMode } from '@dynatrace/strato-components/typography';
|
|
3
4
|
import { Formatter } from '@dynatrace/strato-components-preview/charts';
|
|
4
|
-
import { TruncationMode } from '@dynatrace/strato-components-preview/typography';
|
|
5
5
|
import { ConvertibleUnit, FormatOptions, Unit } from '@dynatrace-sdk/units';
|
|
6
6
|
/**
|
|
7
7
|
* Type to disallow al props in a given type
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynatrace/strato-geo",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"lang": "lang/uncompiled",
|
|
@@ -41,15 +41,17 @@
|
|
|
41
41
|
"react-map-gl": "^7.1.7"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@dynatrace-sdk/client-classic-environment-v2": "^3.
|
|
45
|
-
"@dynatrace-sdk/client-platform-management-service": "^1.
|
|
44
|
+
"@dynatrace-sdk/client-classic-environment-v2": "^3.6.1",
|
|
45
|
+
"@dynatrace-sdk/client-platform-management-service": "^1.6.0",
|
|
46
|
+
"@dynatrace-sdk/units": "^1.0.2",
|
|
46
47
|
"react": "^18.0.0",
|
|
47
48
|
"react-dom": "^18.0.0",
|
|
48
49
|
"react-intl": "^6.0.8",
|
|
49
50
|
"react-is": "^18.0.0",
|
|
50
|
-
"@dynatrace/strato-components
|
|
51
|
-
"@dynatrace/strato-
|
|
52
|
-
"@dynatrace/strato-
|
|
51
|
+
"@dynatrace/strato-components": "^1.0.0",
|
|
52
|
+
"@dynatrace/strato-components-preview": "^1.0.3",
|
|
53
|
+
"@dynatrace/strato-design-tokens": "^1.0.0",
|
|
54
|
+
"@dynatrace/strato-icons": "^1.0.0"
|
|
53
55
|
},
|
|
54
56
|
"sideEffects": [
|
|
55
57
|
"./map/styles/react-mapgl-styles.css",
|