Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
[Feat]: Technical: Translate constants to typescript (#1697)
dariaterekhovaae11c5b4cc93dd
diff --git a/package.json b/package.jsonindex f0bb9969a..5dee50d40 100644--- a/package.json+++ b/package.json@@ -102,6 +102,7 @@"@turf/bbox": "^6.0.1","@turf/boolean-within": "^6.0.1","@turf/helpers": "^6.1.4",+ "@types/keymirror": "^0.1.1","classnames": "^2.2.1","colorbrewer": "^1.5.0","copy-to-clipboard": "^3.3.1",diff --git a/src/constants/action-types.d.ts b/src/constants/action-types.d.tsdeleted file mode 100644index 1dd2c461c..000000000--- a/src/constants/action-types.d.ts+++ /dev/null@@ -1,137 +0,0 @@-export type ActionType = {- // identity action- REGISTER_ENTRY: string;- DELETE_ENTRY: string;- RENAME_ENTRY: string;-- // visState- ADD_DATA: string;- ADD_FILTER: string;- ADD_LAYER: string;- INTERACTION_CONFIG_CHANGE: string;- LAYER_CONFIG_CHANGE: string;- LAYER_VISUAL_CHANNEL_CHANGE: string;- LAYER_TYPE_CHANGE: string;- LAYER_VIS_CONFIG_CHANGE: string;- LAYER_TEXT_LABEL_CHANGE: string;- LAYER_HOVER: string;- LAYER_CLICK: string;- MAP_CLICK: string;- MOUSE_MOVE: string;- REMOVE_FILTER: string;- REMOVE_LAYER: string;- DUPLICATE_LAYER: string;- REMOVE_DATASET: string;- REORDER_LAYER: string;- SET_FILTER: string;- SET_FILTER_ANIMATION_TIME: string;- SET_FILTER_ANIMATION_TIME_CONFIG: string;- SET_FILTER_ANIMATION_WINDOW: string;- SHOW_DATASET_TABLE: string;- UPDATE_LAYER_BLENDING: string;- UPDATE_VIS_DATA: string;- RENAME_DATASET: string;- TOGGLE_FILTER_ANIMATION: string;- UPDATE_FILTER_ANIMATION_SPEED: string;- PLAY_ANIMATION: string;- SET_LAYER_ANIMATION_TIME: string;- SET_LAYER_ANIMATION_TIME_CONFIG: string;- UPDATE_ANIMATION_SPEED: string;- UPDATE_LAYER_ANIMATION_SPEED: string;- TOGGLE_LAYER_CONFIG_ACTIVE: string;- TOGGLE_LAYER_ANIMATION: string;- TOGGLE_LAYER_ANIMATION_CONTROL: string;- ENLARGE_FILTER: string;- TOGGLE_FILTER_FEATURE: string;- SET_VISIBLE_LAYERS_FOR_MAP: string;- TOGGLE_LAYER_FOR_MAP: string;- SET_FILTER_PLOT: string;- LOAD_FILES: string;- LOAD_NEXT_FILE: string;- LOAD_FILES_ERR: string;- LOAD_FILES_SUCCESS: string;- LOAD_FILE_STEP_SUCCESS: string;- LAYER_COLOR_UI_CHANGE: string;- TOGGLE_FEATURE_LAYER: string;- APPLY_CPU_FILTER: string;- SET_MAP_INFO: string;- SORT_TABLE_COLUMN: string;- PIN_TABLE_COLUMN: string;- COPY_TABLE_COLUMN: string;- NEXT_FILE_BATCH: string;- PROCESS_FILE_CONTENT: string;- UPDATE_TABLE_COLOR: string;-- // mapState- UPDATE_MAP: string;- FIT_BOUNDS: string;- TOGGLE_PERSPECTIVE: string;- TOGGLE_SPLIT_MAP: string;- TOGGLE_FULLSCREEN: string;-- // mapStyle- MAP_CONFIG_CHANGE: string;- SET_DEFAULT_MAP_STYLE: string;- MAP_STYLE_CHANGE: string;- LOAD_MAP_STYLES: string;- LOAD_MAP_STYLE_ERR: string;- INPUT_MAP_STYLE: string;- LOAD_CUSTOM_MAP_STYLE: string;- ADD_CUSTOM_MAP_STYLE: string;- REQUEST_MAP_STYLES: string;- SET_3D_BUILDING_COLOR: string;-- // uiState- TOGGLE_SIDE_PANEL: string;- TOGGLE_MODAL: string;- SHOW_EXPORT_DROPDOWN: string;- HIDE_EXPORT_DROPDOWN: string;- OPEN_DELETE_MODAL: string;- TOGGLE_MAP_CONTROL: string;- SET_MAP_CONTROL_VISIBILITY: string;- ADD_NOTIFICATION: string;- REMOVE_NOTIFICATION: string;- SET_LOCALE: string;- TOGGLE_LAYER_PANEL_LIST_VIEW: string;-- // uiState > export image- SET_EXPORT_IMAGE_SETTING: string;- START_EXPORTING_IMAGE: string;- SET_EXPORT_IMAGE_DATA_URI: string;- SET_EXPORT_IMAGE_ERROR: string;- CLEANUP_EXPORT_IMAGE: string;-- // uiState > export data- SET_EXPORT_SELECTED_DATASET: string;- SET_EXPORT_DATA_TYPE: string;- SET_EXPORT_FILTERED: string;- SET_EXPORT_DATA: string;-- // uiState > export map- SET_EXPORT_MAP_FORMAT: string;- SET_USER_MAPBOX_ACCESS_TOKEN: string;- SET_EXPORT_MAP_HTML_MODE: string;-- // uiState > editor- SET_EDITOR_MODE: string;- SET_SELECTED_FEATURE: string;-- // all- INIT: string;- ADD_DATA_TO_MAP: string;- RECEIVE_MAP_CONFIG: string;- RESET_MAP_CONFIG: string;-- // geo-operations- SET_FEATURES: string;- SET_POLYGON_FILTER_LAYER: string;- DELETE_FEATURE: string;- TOGGLE_EDITOR_VISIBILITY: string;-- // storage- START_SAVE_STORAGE: string;-};--export const ActionTypes: ActionType;-export const ACTION_PREFIX: string;-export default ActionTypes;diff --git a/src/constants/action-types.js b/src/constants/action-types.tssimilarity index 100%rename from src/constants/action-types.jsrename to src/constants/action-types.tsdiff --git a/src/constants/color-palette.js b/src/constants/color-palette.tssimilarity index 100%rename from src/constants/color-palette.jsrename to src/constants/color-palette.tsdiff --git a/src/constants/color-ranges.js b/src/constants/color-ranges.tssimilarity index 93%rename from src/constants/color-ranges.jsrename to src/constants/color-ranges.tsindex 23f179f08..984158338 100644--- a/src/constants/color-ranges.js+++ b/src/constants/color-ranges.ts@@ -25,7 +25,7 @@ import {VizColorPalette} from './custom-color-ranges';// See http://colorbrewer2.org/const colorBrewerMap = Object.entries(colorbrewer.schemeGroups).reduce(- (accu, [type, palettes]) => ({+ (accu, [type, palettes]: [string, any]) => ({...accu,...palettes.reduce((group, name) => ({@@ -42,12 +42,12 @@ const colorRanges = [...VizColorPalette];for (const [keyName, colorScheme] of Object.entries(colorbrewer)) {if (keyName !== 'schemeGroups') {- for (const [lenKey, colors] of Object.entries(colorScheme)) {+ for (const [lenKey, colors] of Object.entries(colorScheme as any)) {colorRanges.push({name: `ColorBrewer ${keyName}-${lenKey}`,type: colorBrewerMap[keyName],category: 'ColorBrewer',- colors+ colors: colors as any});}}diff --git a/src/constants/custom-color-ranges.js b/src/constants/custom-color-ranges.tssimilarity index 100%rename from src/constants/custom-color-ranges.jsrename to src/constants/custom-color-ranges.tsdiff --git a/src/constants/default-settings.d.ts b/src/constants/default-settings.d.tsdeleted file mode 100644index b8c9cd6d3..000000000--- a/src/constants/default-settings.d.ts+++ /dev/null@@ -1,390 +0,0 @@-import {Component} from 'react';--export const ALL_FIELD_TYPES: {- boolean: 'boolean';- date: 'date';- geojson: 'geojson';- integer: 'integer';- real: 'real';- string: 'string';- timestamp: 'timestamp';- point: 'point';-};--export const ANIMATION_WINDOW: {- free: 'free';- incremental: 'incremental';- point: 'point';- interval: 'interval';-};--export const FILTER_TYPES: {- range: 'range';- select: 'select';- input: 'input';- timeRange: 'timeRange';- multiSelect: 'multiSelect';- polygon: 'polygon';-};--export const DEFAULT_TIME_FORMAT: string;--export const BASE_SPEED: number;-export const FPS: number;-export const SPEED_CONTROL_RANGE: [number, number];-export const SPEED_CONTROL_STEP: number;--export type SCALE_TYPES_DEF = {- ordinal: 'ordinal';- quantile: 'quantile';- quantize: 'quantize';- linear: 'linear';- sqrt: 'sqrt',- log: 'log';- point: 'point';-}--export const SCALE_TYPES: SCALE_TYPES_DEF;--export type SCALE_FUNC_TYPE = {- [key: keyof SCALE_TYPES_DEF]: () => number-}--export const SCALE_FUNC: SCALE_FUNC_TYPE;--export const SORT_ORDER: {- ASCENDING: 'ASCENDING';- DESCENDING: 'DESCENDING';- UNSORT: 'UNSORT';-};--export type TABLE_OPTION_TYPE = {- SORT_ASC: 'SORT_ASC';- SORT_DES: 'SORT_DES';- UNSORT: 'UNSORT';- PIN: 'PIN';- UNPIN: 'UNPIN';- COPY: 'COPY';-};--export const TABLE_OPTION: TABLE_OPTION_TYPE;--export type TABLE_OPTION = {- value: keyof TABLE_OPTION_TYPE;- display: string;- icon: Component;- condition: (props: any) => boolean;-};--export const TABLE_OPTION_LIST: TABLE_OPTION[];--export type FILED_TYPE_DISPLAY_TYPE = {- label: string;- color: string;-}-export const FILED_TYPE_DISPLAY: {[key: keyof ALL_FIELD_TYPES_DEF]: FILED_TYPE_DISPLAY_TYPE};--export const FIELD_COLORS: {default: string};--export const KEPLER_GL_NAME: string;-export const KEPLER_GL_VERSION: string;-export const KEPLER_GL_WEBSITE: string;--export const EDITOR_MODES: {- READ_ONLY: 'READ_ONLY';- DRAW_POLYGON: 'DRAW_POLYGON';- DRAW_RECTANGLE: 'DRAW_RECTANGLE';- EDIT: 'EDIT';-};--export type LAYER_TYPES = {- point: 'point';- arc: 'arc';- line: 'line';- grid: 'grid';- hexagon: 'hexagon';- geojson: 'geojson';- cluster: 'cluster';- icon: 'icon';- heatmap: 'heatmap';- hexagonId: 'hexagonId';- '3D': '3D';- trip: 'trip';- s2: 's2';-}--export type EDITOR_AVAILABLE_LAYERS_DEF = {- point: 'point';- arc: 'arc';- line: 'line';- hexagon: 'hexagon';- hexagonId: 'hexagonId';-}--export const EDITOR_AVAILABLE_LAYERS: (keyof EDITOR_AVAILABLE_LAYERS_DEF)[];--export const GEOCODER_DATASET_NAME: string;-export const GEOCODER_LAYER_ID: string;-export const GEOCODER_GEO_OFFSET: number;-export const GEOCODER_ICON_COLOR: [number, number, number];-export const GEOCODER_ICON_SIZE: number;--export const DIMENSIONS: {- sidePanel: {- width: number;- margin: {- top: number;- left: number;- bottom: number;- right: number;- },- headerHeight: number;- };- mapControl: {- width: number;- padding: number;- mapLegend: {- pinned: {- bottom: number;- right: number;- }- }- }-};--export const THEME: {- light: 'light';- dark: 'dark';- base: 'base';-};--export const DEFAULT_MAPBOX_API_URL: string;--export const THROTTLE_NOTIFICATION_TIME: number;--export const CHANNEL_SCALES: {- color: 'color';- radius: 'radius';- size: 'size';- colorAggr: 'colorAggr';- sizeAggr: 'sizeAggr';-};--export const EXPORT_DATA_TYPE: {- CSV: string;-};--export type EXPORT_DATA_TYPE_OPTION = {- id: keyof EXPORT_DATA_TYPE_DEF;- label: string;- available: boolean-}-export const EXPORT_DATA_TYPE_OPTIONS: EXPORT_DATA_TYPE_OPTION[];--export const EXPORT_MAP_FORMATS: {- HTML: 'HTML';- JSON: 'JSON';-};--export const EXPORT_IMG_RATIOS: {- SCREEN: 'SCREEN';- FOUR_BY_THREE: 'FOUR_BY_THREE';- SIXTEEN_BY_NINE: 'SIXTEEN_BY_NINE';- CUSTOM: 'CUSTOM';-};--export type EXPORT_IMG_RATIO_OPTION = {- id: keyof EXPORT_IMG_RATIOS_TYPE;- label: string;- getSize: (screenW: number, screenH: number) => {width: number, height: number};- hidden?: boolean;-}--export const EXPORT_IMG_RATIO_OPTIONS: EXPORT_IMG_RATIO_OPTION[];--export const RESOLUTIONS: {- ONE_X: 'ONE_X';- TWO_X: 'TWO_X';-};--export type EXPORT_IMG_RESOLUTION_OPTION = EXPORT_IMG_RATIO_OPTION & {- available: boolean;- scale: number;-}-export const EXPORT_IMG_RESOLUTION_OPTIONS: EXPORT_IMG_RESOLUTION_OPTION[];--export const EXPORT_HTML_MAP_MODES: {- READ: 'READ';- EDIT: 'EDIT';-};--export type EXPORT_HTML_MAP_MODE_OPTION = {- id: keyof EXPORT_HTML_MAP_MODES_TYPE;- label: string;- available: boolean;- url: string;-};-export const EXPORT_HTML_MAP_MODE_OPTIONS: EXPORT_HTML_MAP_MODE_OPTION[];--export type EXPORT_MAP_FORMAT_OPTION = {- id: keyof EXPORT_MAP_FORMATS_TYPE,- label: string;- available: string;-};-export const EXPORT_MAP_FORMAT_OPTIONS: EXPORT_MAP_FORMAT_OPTION[];--export type MAP_THUMBNAIL_DIMENSION_TYPE = {- width: number;- height: number;-};-export const MAP_THUMBNAIL_DIMENSION: MAP_THUMBNAIL_DIMENSION_TYPE;--export const LOADING_METHODS: {- upload: 'upload';- storage: 'storage';-};--export type MAP_INFO_CHARACTER_TYPE = {- title: number;- description: number;-}-export const MAP_INFO_CHARACTER: MAP_INFO_CHARACTER_TYPE;--export type FIELD_OPT = {- type: string;- scale: object;- format: object;-};-export const FIELD_OPTS: {- string: FIELD_OPT,- real: FIELD_OPT,- timestamp: FIELD_OPT,- integer: FIELD_OPT,- boolean: FIELD_OPT,- date: FIELD_OPT,- geojson: FIELD_OPT-}--export type DEFAULT_NOTIFICATION_TOPICS_TYPE = {- global: string;- field: string;-};-export const DEFAULT_NOTIFICATION_TOPICS: DEFAULT_NOTIFICATION_TOPICS_TYPE;-export type SIDEBAR_PANELS_TYPE = {- id: string;- label: string;- iconComponent: Component;- onClick: () => void;-};-export const SIDEBAR_PANELS: SIDEBAR_PANELS_TYPE[];-export const PANELS: SIDEBAR_PANELS_TYPE[];--export type DEFAULT_LAYER_GROUP = {- slug: string;- filter: (value) => boolean;- defaultVisibility: boolean;-};-export const DEFAULT_LAYER_GROUPS: DEFAULT_LAYER_GROUP[];--export const AGGREGATION_TYPES: {- count: string;- average: string;- maximum: string;- minimum: string;- median: string;- stdev: string;- sum: string;- variance: string;- mode: string;- countUnique: string;-};--export const DATASET_FORMATS: {- row: string;- geojson: string;- csv: string;- keplergl: string;-};--export const DEFAULT_MAP_STYLES: {- id: string;- label: string;- url: string;- icon: string;- layerGroup: DEFAULT_LAYER_GROUPS;-}[];--export type LAYER_BLENDING_TYPE = {- label: string;- blendFunc: string[];- blendEquation: string | string[];-}-export const LAYER_BLENDINGS: {- additive: LAYER_BLENDING_TYPE;- normal: LAYER_BLENDING_TYPE;- subtractive: LAYER_BLENDING_TYPE;-};--export type DEFAULT_NOTIFICATION_TYPES_DEF = {- info: string;- error: string;- warning: string;- success: string;-};-export const DEFAULT_NOTIFICATION_TYPES: DEFAULT_NOTIFICATION_TYPES_DEF;--export const TRIP_ARC_FIELDS: {- lat0: string;- lng0: string;- lat1: string;- lng1: string;-}--export const TRIP_POINT_FIELDS: [string, string][];--export const GEOJSON_FIELDS: {- geojson: string[];-}--export const ICON_FIELDS: {- icon: string[];-}--export const MAP_CONTROLS: {- visibleLayers: 'visibleLayers';- mapLegend: 'mapLegend';- toggle3d: 'toggle3d';- toggleGlobe: 'toggleGlobe';- splitMap: 'splitMap';- mapDraw: 'mapDraw';- mapLocale: 'mapLocale';-}--export const DEFAULT_LAYER_COLOR: {- tripArc: string;- begintrip_lat: string;- dropoff_lat: string;- request_lat: string;-};--export const CHANNEL_SCALE_SUPPORTED_FIELDS: object;-export const CLOUDFRONT: string;-export const MAX_DEFAULT_TOOLTIPS: number;-export const NO_VALUE_COLOR: [number, number, number, number];-export const MAX_GPU_FILTERS: number;-export const DEFAULT_TOOLTIP_FIELDS: {name: string}[];-export const DEFAULT_NOTIFICATION_MESSAGE: string;-export const DEFAULT_UUID_COUNT: number;--// modals-export const DATA_TABLE_ID: string;-export const ADD_DATA_ID: string;-export const DELETE_DATA_ID: string;-export const EXPORT_IMAGE_ID: string;-export const EXPORT_DATA_ID: string;-export const ADD_MAP_STYLE_ID: string;-export const EXPORT_MAP_ID: string;-export const SAVE_MAP_ID: string;-export const OVERWRITE_MAP_ID: string;-export const SHARE_MAP_ID: string;-diff --git a/src/constants/default-settings.js b/src/constants/default-settings.tssimilarity index 97%rename from src/constants/default-settings.jsrename to src/constants/default-settings.tsindex e33e7874e..ba53f00e5 100644--- a/src/constants/default-settings.js+++ b/src/constants/default-settings.ts@@ -198,7 +198,13 @@ export const PANELS = SIDEBAR_PANELS;// MAP STYLES-export const DEFAULT_LAYER_GROUPS = [+type DEFAULT_LAYER_GROUP = {+ slug: string;+ filter: (value) => boolean;+ defaultVisibility: boolean;+};++export const DEFAULT_LAYER_GROUPS: DEFAULT_LAYER_GROUP[] = [{slug: 'label',filter: ({id}) => id.match(/(?=(label|place-|poi-))/),@@ -281,7 +287,7 @@ export const ICON_FIELDS = {icon: ['icon']};-export const TRIP_POINT_FIELDS = [+export const TRIP_POINT_FIELDS: [string, string][] = [['lat', 'lng'],['lat', 'lon'],['latitude', 'longitude']@@ -632,9 +638,9 @@ export const DEFAULT_LAYER_COLOR = {};// let user pass in default tooltip fields-export const DEFAULT_TOOLTIP_FIELDS = [];+export const DEFAULT_TOOLTIP_FIELDS: any[] = [];-export const NO_VALUE_COLOR = [0, 0, 0, 0];+export const NO_VALUE_COLOR: [number, number, number, number] = [0, 0, 0, 0];export const LAYER_BLENDINGS = {additive: {@@ -771,13 +777,13 @@ export const EXPORT_HTML_MAP_MODES = keyMirror({});// Export map options-export const EXPORT_MAP_FORMAT_OPTIONS = Object.entries(EXPORT_MAP_FORMATS).map(entry => ({+export const EXPORT_MAP_FORMAT_OPTIONS = Object.entries(EXPORT_MAP_FORMATS).map((entry: [string, any]) => ({id: entry[0],label: entry[1].toLowerCase(),available: true}));-export const EXPORT_HTML_MAP_MODE_OPTIONS = Object.entries(EXPORT_HTML_MAP_MODES).map(entry => ({+export const EXPORT_HTML_MAP_MODE_OPTIONS = Object.entries(EXPORT_HTML_MAP_MODES).map((entry: [string, any]) => ({id: entry[0],label: `modal.exportMap.html.${entry[1].toLowerCase()}`,available: true,@@ -836,14 +842,14 @@ export const ANIMATION_WINDOW = keyMirror({interval: null});export const DEFAULT_TIME_FORMAT = 'MM/DD/YY HH:mm:ssa';-export const SPEED_CONTROL_RANGE = [0, 10];+export const SPEED_CONTROL_RANGE: [number, number] = [0, 10];export const SPEED_CONTROL_STEP = 0.001;// Geocoderexport const GEOCODER_DATASET_NAME = 'geocoder_dataset';export const GEOCODER_LAYER_ID = 'geocoder_layer';export const GEOCODER_GEO_OFFSET = 0.05;-export const GEOCODER_ICON_COLOR = [255, 0, 0];+export const GEOCODER_ICON_COLOR: [number, number, number] = [255, 0, 0];export const GEOCODER_ICON_SIZE = 80;// We could use directly react-map-gl-draw EditorMode but this woulddiff --git a/src/constants/index.d.ts b/src/constants/index.d.tsdeleted file mode 100644index 67d01e0e8..000000000--- a/src/constants/index.d.ts+++ /dev/null@@ -1,6 +0,0 @@-export {PLOT_TYPES} from '../utils/filter-utils';--export * from './action-types';-export * from './default-settings';-export * as KeyEvent from './keyevent';-diff --git a/src/constants/index.js b/src/constants/index.tssimilarity index 100%rename from src/constants/index.jsrename to src/constants/index.tsdiff --git a/src/constants/keyevent.d.ts b/src/constants/keyevent.d.tsdeleted file mode 100644index 4f20ae0f2..000000000--- a/src/constants/keyevent.d.ts+++ /dev/null@@ -1,8 +0,0 @@-export const DOM_VK_UP: string|number;-export const DOM_VK_DOWN: string|number;-export const DOM_VK_BACK_SPACE: string|number;-export const DOM_VK_RETURN: string|number;-export const DOM_VK_ENTER: string|number;-export const DOM_VK_ESCAPE: string|number;-export const DOM_VK_TAB: string|number;-export const DOM_VK_DELETE: string|number;diff --git a/src/constants/keyevent.js b/src/constants/keyevent.tssimilarity index 100%rename from src/constants/keyevent.jsrename to src/constants/keyevent.tsdiff --git a/src/constants/tooltip.js b/src/constants/tooltip.tssimilarity index 100%rename from src/constants/tooltip.jsrename to src/constants/tooltip.tsdiff --git a/src/constants/user-feedbacks.js b/src/constants/user-feedbacks.tssimilarity index 100%rename from src/constants/user-feedbacks.jsrename to src/constants/user-feedbacks.tsdiff --git a/src/constants/user-guides.js b/src/constants/user-guides.tssimilarity index 100%rename from src/constants/user-guides.jsrename to src/constants/user-guides.tsdiff --git a/yarn.lock b/yarn.lockindex a45352b87..4101729d5 100644--- a/yarn.lock+++ b/yarn.lock@@ -3203,6 +3203,11 @@resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.6.tgz#f4c7ec43e81b319a9815115031709f26987891f0"integrity sha512-3c+yGKvVP5Y9TYBEibGNR+kLtijnj7mYrXRg+WpFb2X9xm04g/DXYkfg4hmzJQosc9snFNUPkbYIhu+KAm6jJw==+"@types/keymirror@^0.1.1":+ version "0.1.1"+ resolved "https://registry.yarnpkg.com/@types/keymirror/-/keymirror-0.1.1.tgz#1fe48e6e5e2a969cafecf0f24485ae23c72abd30"+ integrity sha1-H+SObl4qlpyv7PDyRIWuI8cqvTA=+"@types/mdast@^3.0.0", "@types/mdast@^3.0.3":version "3.0.3"resolved "https://registry.yarnpkg.com/@types/mdast/-/mdast-3.0.3.tgz#2d7d671b1cd1ea3deb306ea75036c2a0407d2deb"