mobility-toolbox-js 3.1.1-beta.5 → 3.1.1-beta.7
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/mbt.js +413 -411
- package/mbt.js.map +4 -4
- package/mbt.min.js +3 -3
- package/mbt.min.js.map +4 -4
- package/package.json +7 -7
- package/{src/types → types}/index.d.ts +1 -0
- package/.eslintrc.d.ts +0 -27
- package/.eslintrc.js +0 -32
- package/{src/api → api}/HttpAPI.d.ts +0 -0
- package/{src/api → api}/HttpAPI.js +0 -0
- package/{src/api → api}/RealtimeAPI.d.ts +0 -0
- package/{src/api → api}/RealtimeAPI.js +0 -0
- package/{src/api → api}/RoutingAPI.d.ts +0 -0
- package/{src/api → api}/RoutingAPI.js +0 -0
- package/{src/api → api}/StopsAPI.d.ts +0 -0
- package/{src/api → api}/StopsAPI.js +0 -0
- package/{src/api → api}/WebSocketAPI.d.ts +0 -0
- package/{src/api → api}/WebSocketAPI.js +0 -0
- package/{src/api → api}/index.d.ts +0 -0
- package/{src/api → api}/index.js +0 -0
- package/{src/api → api}/typedefs.d.ts +0 -0
- package/{src/api → api}/typedefs.js +0 -0
- package/{src/common → common}/controls/StopFinderControlCommon.d.ts +0 -0
- package/{src/common → common}/controls/StopFinderControlCommon.js +0 -0
- package/{src/common → common}/index.d.ts +0 -0
- package/{src/common → common}/index.js +0 -0
- package/{src/common → common}/styles/index.d.ts +0 -0
- package/{src/common → common}/styles/index.js +0 -0
- package/{src/common → common}/styles/realtimeDefaultStyle.d.ts +0 -0
- package/{src/common → common}/styles/realtimeDefaultStyle.js +0 -0
- package/{src/common → common}/styles/realtimeDelayStyle.d.ts +0 -0
- package/{src/common → common}/styles/realtimeDelayStyle.js +0 -0
- package/{src/common → common}/styles/realtimeHeadingStyle.d.ts +0 -0
- package/{src/common → common}/styles/realtimeHeadingStyle.js +0 -0
- package/{src/common → common}/styles/realtimeSimpleStyle.d.ts +0 -0
- package/{src/common → common}/styles/realtimeSimpleStyle.js +0 -0
- package/{src/common → common}/typedefs.d.ts +0 -0
- package/{src/common → common}/typedefs.js +0 -0
- package/{src/common → common}/utils/RealtimeEngine.d.ts +0 -0
- package/{src/common → common}/utils/RealtimeEngine.js +0 -0
- package/{src/common → common}/utils/compareDepartures.d.ts +0 -0
- package/{src/common → common}/utils/compareDepartures.js +0 -0
- package/{src/common → common}/utils/constants.d.ts +0 -0
- package/{src/common → common}/utils/constants.js +0 -0
- package/{src/common → common}/utils/createCanvas.d.ts +0 -0
- package/{src/common → common}/utils/createCanvas.js +0 -0
- package/{src/common → common}/utils/createDefaultCopyrightElt.d.ts +0 -0
- package/{src/common → common}/utils/createDefaultCopyrightElt.js +0 -0
- package/{src/common → common}/utils/createDefaultStopFinderElt.d.ts +0 -0
- package/{src/common → common}/utils/createDefaultStopFinderElt.js +0 -0
- package/{src/common → common}/utils/createRealtimeFilters.d.ts +0 -0
- package/{src/common → common}/utils/createRealtimeFilters.js +0 -0
- package/{src/common → common}/utils/debounceDeparturesMessages.d.ts +0 -0
- package/{src/common → common}/utils/debounceDeparturesMessages.js +0 -0
- package/{src/common → common}/utils/debounceWebsocketMessages.d.ts +0 -0
- package/{src/common → common}/utils/debounceWebsocketMessages.js +0 -0
- package/{src/common → common}/utils/getLayersAsFlatArray.d.ts +0 -0
- package/{src/common → common}/utils/getLayersAsFlatArray.js +0 -0
- package/{src/common → common}/utils/getMapGlCopyrights.d.ts +0 -0
- package/{src/common → common}/utils/getMapGlCopyrights.js +0 -0
- package/{src/common → common}/utils/getRealtimeModeSuffix.d.ts +0 -0
- package/{src/common → common}/utils/getRealtimeModeSuffix.js +0 -0
- package/{src/common → common}/utils/getUrlWithParams.d.ts +0 -0
- package/{src/common → common}/utils/getUrlWithParams.js +0 -0
- package/{src/common → common}/utils/getVehiclePosition.d.ts +0 -0
- package/{src/common → common}/utils/getVehiclePosition.js +0 -0
- package/{src/common → common}/utils/index.d.ts +0 -0
- package/{src/common → common}/utils/index.js +0 -0
- package/{src/common → common}/utils/realtimeConfig.d.ts +0 -0
- package/{src/common → common}/utils/realtimeConfig.js +0 -0
- package/{src/common → common}/utils/removeDuplicate.d.ts +0 -0
- package/{src/common → common}/utils/removeDuplicate.js +0 -0
- package/{src/common → common}/utils/renderTrajectories.d.ts +0 -0
- package/{src/common → common}/utils/renderTrajectories.js +0 -0
- package/{src/common → common}/utils/sortAndFilterDepartures.d.ts +0 -0
- package/{src/common → common}/utils/sortAndFilterDepartures.js +0 -0
- package/{src/common → common}/utils/sortByDelay.d.ts +0 -0
- package/{src/common → common}/utils/sortByDelay.js +0 -0
- package/{src/common → common}/utils/timeUtils.d.ts +0 -0
- package/{src/common → common}/utils/timeUtils.js +0 -0
- package/{src/common → common}/utils/toMercatorExtent.d.ts +0 -0
- package/{src/common → common}/utils/toMercatorExtent.js +0 -0
- package/{src/iife.d.ts → iife.d.ts} +0 -0
- package/{src/iife.js → iife.js} +0 -0
- package/{src/index.d.ts → index.d.ts} +0 -0
- package/{src/index.js → index.js} +0 -0
- package/{src/maplibre → maplibre}/controls/CopyrightControl.d.ts +0 -0
- package/{src/maplibre → maplibre}/controls/CopyrightControl.js +0 -0
- package/{src/maplibre → maplibre}/controls/index.d.ts +0 -0
- package/{src/maplibre → maplibre}/controls/index.js +0 -0
- package/{src/maplibre → maplibre}/index.d.ts +0 -0
- package/{src/maplibre → maplibre}/index.js +0 -0
- package/{src/maplibre → maplibre}/layers/Layer.d.ts +0 -0
- package/{src/maplibre → maplibre}/layers/Layer.js +0 -0
- package/{src/maplibre → maplibre}/layers/RealtimeLayer.d.ts +0 -0
- package/{src/maplibre → maplibre}/layers/RealtimeLayer.js +0 -0
- package/{src/maplibre → maplibre}/layers/index.d.ts +0 -0
- package/{src/maplibre → maplibre}/layers/index.js +0 -0
- package/{src/maplibre → maplibre}/utils/getMercatorResolution.d.ts +0 -0
- package/{src/maplibre → maplibre}/utils/getMercatorResolution.js +0 -0
- package/{src/maplibre → maplibre}/utils/getSourceCoordinates.d.ts +0 -0
- package/{src/maplibre → maplibre}/utils/getSourceCoordinates.js +0 -0
- package/{src/maplibre → maplibre}/utils/index.d.ts +0 -0
- package/{src/maplibre → maplibre}/utils/index.js +0 -0
- package/{src/ol → ol}/controls/CopyrightControl.d.ts +0 -0
- package/{src/ol → ol}/controls/CopyrightControl.js +0 -0
- package/{src/ol → ol}/controls/RoutingControl.d.ts +0 -0
- package/{src/ol → ol}/controls/RoutingControl.js +0 -0
- package/{src/ol → ol}/controls/StopFinderControl.d.ts +0 -0
- package/{src/ol → ol}/controls/StopFinderControl.js +0 -0
- package/{src/ol → ol}/controls/index.d.ts +0 -0
- package/{src/ol → ol}/controls/index.js +0 -0
- package/{src/ol → ol}/index.d.ts +0 -0
- package/{src/ol → ol}/index.js +0 -0
- package/{src/ol → ol}/layers/Layer.d.ts +0 -0
- package/{src/ol → ol}/layers/Layer.js +0 -0
- package/{src/ol → ol}/layers/MaplibreLayer.d.ts +0 -0
- package/{src/ol → ol}/layers/MaplibreLayer.js +0 -0
- package/{src/ol → ol}/layers/MaplibreStyleLayer.d.ts +0 -0
- package/{src/ol → ol}/layers/MaplibreStyleLayer.js +0 -0
- package/{src/ol → ol}/layers/RealtimeLayer.d.ts +0 -0
- package/{src/ol → ol}/layers/RealtimeLayer.js +0 -0
- package/{src/ol → ol}/layers/VectorLayer.d.ts +0 -0
- package/{src/ol → ol}/layers/VectorLayer.js +0 -0
- package/{src/ol → ol}/layers/index.d.ts +1 -1
- package/{src/ol → ol}/layers/index.js +2 -2
- /package/{src/ol → ol}/renderers/MaplibreLayerRenderer.d.ts +0 -0
- /package/{src/ol → ol}/renderers/MaplibreLayerRenderer.js +0 -0
- /package/{src/ol → ol}/renderers/MaplibreStyleLayerRenderer.d.ts +0 -0
- /package/{src/ol → ol}/renderers/MaplibreStyleLayerRenderer.js +0 -0
- /package/{src/ol → ol}/renderers/RealtimeLayerRenderer.d.ts +0 -0
- /package/{src/ol → ol}/renderers/RealtimeLayerRenderer.js +0 -0
- /package/{src/ol → ol}/styles/fullTrajectoryDelayStyle.d.ts +0 -0
- /package/{src/ol → ol}/styles/fullTrajectoryDelayStyle.js +0 -0
- /package/{src/ol → ol}/styles/fullTrajectoryStyle.d.ts +0 -0
- /package/{src/ol → ol}/styles/fullTrajectoryStyle.js +0 -0
- /package/{src/ol → ol}/styles/index.d.ts +0 -0
- /package/{src/ol → ol}/styles/index.js +0 -0
- /package/{src/ol → ol}/styles/routingStyle.d.ts +0 -0
- /package/{src/ol → ol}/styles/routingStyle.js +0 -0
- /package/{src/ol → ol}/utils/defineDeprecatedProperties.d.ts +0 -0
- /package/{src/ol → ol}/utils/defineDeprecatedProperties.js +0 -0
- /package/{src/ol → ol}/utils/getFeatureInfoAtCoordinate.d.ts +0 -0
- /package/{src/ol → ol}/utils/getFeatureInfoAtCoordinate.js +0 -0
- /package/{src/ol → ol}/utils/index.d.ts +0 -0
- /package/{src/ol → ol}/utils/index.js +0 -0
- /package/{src/setupTests.d.ts → setupTests.d.ts} +0 -0
- /package/{src/setupTests.js → setupTests.js} +0 -0
- /package/{src/types → types}/common.d.ts +0 -0
- /package/{src/types → types}/realtime.d.ts +0 -0
- /package/{src/types → types}/routing.d.ts +0 -0
- /package/{src/types → types}/stops.d.ts +0 -0
package/package.json
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
"name": "mobility-toolbox-js",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"description": "Toolbox for JavaScript applications in the domains of mobility and logistics.",
|
|
5
|
-
"version": "3.1.1-beta.
|
|
5
|
+
"version": "3.1.1-beta.7",
|
|
6
6
|
"homepage": "https://mobility-toolbox-js.geops.io/",
|
|
7
7
|
"exports": {
|
|
8
|
-
".": "./
|
|
9
|
-
"./api": "./
|
|
10
|
-
"./maplibre": "./
|
|
11
|
-
"./ol": "./
|
|
12
|
-
"./types": "./
|
|
8
|
+
".": "./index.js",
|
|
9
|
+
"./api": "./api/index.js",
|
|
10
|
+
"./maplibre": "./maplibre/index.js",
|
|
11
|
+
"./ol": "./ol/index.js",
|
|
12
|
+
"./types": "./types/index.d.ts"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@geoblocks/ol-maplibre-layer": "^1.0.3",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"scripts": {
|
|
89
89
|
"apidoc": "esdoc && cp apidoc/index.json doc/src/components/Esdoc",
|
|
90
90
|
"build": "yarn build:tsc && yarn esbuild:iife",
|
|
91
|
-
"build:tsc": "rm -rf build && yarn tsc && cp package.json build/ && cp README.md build/ && cp LICENSE build/ && cp -R src/types build/
|
|
91
|
+
"build:tsc": "rm -rf build && yarn tsc && cp package.json build/ && cp README.md build/ && cp LICENSE build/ && cp -R src/types build/ && find build -type f -name '*.test.*' -delete",
|
|
92
92
|
"clean": "rm -rf .next && rm -rf doc/.next",
|
|
93
93
|
"coverage": "yarn test --watchAll=false --coverage --coverageDirectory=coverage",
|
|
94
94
|
"cy:open": "cypress open",
|
|
@@ -3,6 +3,7 @@ import { Paths as Stops } from './stops';
|
|
|
3
3
|
|
|
4
4
|
export * from './common';
|
|
5
5
|
export * from './realtime';
|
|
6
|
+
export * from './ol';
|
|
6
7
|
|
|
7
8
|
export type RoutingParameters = Routing['/']['get']['parameters']['query'];
|
|
8
9
|
export type RoutingResponse = Routing['/']['get']['responses']['200']['schema'];
|
package/.eslintrc.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export declare let env: {
|
|
2
|
-
browser: boolean;
|
|
3
|
-
'cypress/globals': boolean;
|
|
4
|
-
es6: boolean;
|
|
5
|
-
jest: boolean;
|
|
6
|
-
node: boolean;
|
|
7
|
-
};
|
|
8
|
-
declare let _extends: string[];
|
|
9
|
-
export { _extends as extends };
|
|
10
|
-
export declare namespace parserOptions {
|
|
11
|
-
let project: string;
|
|
12
|
-
}
|
|
13
|
-
export declare let plugins: string[];
|
|
14
|
-
export declare let rules: {
|
|
15
|
-
'@typescript-eslint/no-empty-function': string;
|
|
16
|
-
'@typescript-eslint/no-floating-promises': string;
|
|
17
|
-
'@typescript-eslint/no-unsafe-argument': string;
|
|
18
|
-
'@typescript-eslint/no-unsafe-assignment': string;
|
|
19
|
-
'@typescript-eslint/no-unsafe-call': string;
|
|
20
|
-
'@typescript-eslint/no-unsafe-member-access': string;
|
|
21
|
-
'@typescript-eslint/prefer-nullish-coalescing': string;
|
|
22
|
-
'arrow-body-style': number;
|
|
23
|
-
'prettier/prettier': string;
|
|
24
|
-
'react/jsx-filename-extension': (number | {
|
|
25
|
-
extensions: string[];
|
|
26
|
-
})[];
|
|
27
|
-
};
|
package/.eslintrc.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
module.exports = {
|
|
3
|
-
env: {
|
|
4
|
-
browser: true,
|
|
5
|
-
'cypress/globals': true,
|
|
6
|
-
es6: true,
|
|
7
|
-
jest: true,
|
|
8
|
-
node: true,
|
|
9
|
-
},
|
|
10
|
-
extends: ['@geops/eslint-config-react'],
|
|
11
|
-
parserOptions: {
|
|
12
|
-
project: './tsconfig.json',
|
|
13
|
-
},
|
|
14
|
-
plugins: ['cypress', 'prettier'],
|
|
15
|
-
rules: {
|
|
16
|
-
'@typescript-eslint/no-empty-function': 'Off',
|
|
17
|
-
'@typescript-eslint/no-floating-promises': 'Off',
|
|
18
|
-
'@typescript-eslint/no-unsafe-argument': 'Off',
|
|
19
|
-
'@typescript-eslint/no-unsafe-assignment': 'Off',
|
|
20
|
-
'@typescript-eslint/no-unsafe-call': 'Off',
|
|
21
|
-
'@typescript-eslint/no-unsafe-member-access': 'Off',
|
|
22
|
-
'@typescript-eslint/prefer-nullish-coalescing': 'Off',
|
|
23
|
-
'arrow-body-style': 0,
|
|
24
|
-
'prettier/prettier': 'error',
|
|
25
|
-
'react/jsx-filename-extension': [
|
|
26
|
-
1,
|
|
27
|
-
{
|
|
28
|
-
extensions: ['.js', '.jsx'],
|
|
29
|
-
},
|
|
30
|
-
],
|
|
31
|
-
},
|
|
32
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/{src/api → api}/index.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/{src/iife.js → iife.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/{src/ol → ol}/index.d.ts
RENAMED
|
File without changes
|
package/{src/ol → ol}/index.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
export { default as Layer } from "./Layer";
|
|
1
2
|
export { default as MaplibreLayer } from "./MaplibreLayer";
|
|
2
3
|
export { default as MaplibreStyleLayer } from "./MaplibreStyleLayer";
|
|
3
4
|
export { default as RealtimeLayer } from "./RealtimeLayer";
|
|
4
|
-
export { default as Layer } from "./Layer";
|
|
5
5
|
export { default as VectorLayer } from "./VectorLayer";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
// Deprecated export
|
|
2
|
+
export { default as Layer } from './Layer';
|
|
1
3
|
export { default as MaplibreLayer } from './MaplibreLayer';
|
|
2
4
|
export { default as MaplibreStyleLayer } from './MaplibreStyleLayer';
|
|
3
5
|
export { default as RealtimeLayer } from './RealtimeLayer';
|
|
4
|
-
// Deprecated export
|
|
5
|
-
export { default as Layer } from './Layer';
|
|
6
6
|
export { default as VectorLayer } from './VectorLayer';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|