atriusmaps-node-sdk 3.3.400 → 3.3.402
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/dist/cjs/package.json.js +67 -66
- package/dist/cjs/plugins/dynamicPois/src/dynamicPois.js +7 -16
- package/dist/cjs/plugins/searchService/src/flexsearchExports/simple.js +1 -1
- package/dist/cjs/plugins/venueDataLoader/src/venueDataLoader.js +1 -6
- package/dist/cjs/plugins/wayfinder/src/segmentBadges.js +0 -3
- package/dist/cjs/src/extModules/geohasher.js +2 -2
- package/dist/cjs/src/utils/i18n.js +5 -4
- package/dist/package.json.js +1 -1
- package/dist/plugins/dynamicPois/src/dynamicPois.js +1 -1
- package/dist/plugins/searchService/src/flexsearchExports/simple.js +1 -1
- package/dist/plugins/wayfinder/src/segmentBadges.js +1 -1
- package/dist/plugins/wayfinder/src/stepBuilder.js +1 -1
- package/dist/src/debugTools.js +1 -1
- package/dist/src/utils/bounds.js +1 -1
- package/dist/src/utils/i18n.js +1 -1
- package/package.json +9 -9
- package/dist/cjs/plugins/dynamicPois/mocks/mockDynamicRoutingData.js +0 -41
- package/dist/plugins/dynamicPois/mocks/mockDynamicRoutingData.js +0 -1
package/dist/cjs/package.json.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var name = "web-engine";
|
|
6
|
-
var version = "3.3.
|
|
6
|
+
var version = "3.3.402";
|
|
7
7
|
var license = "UNLICENSED";
|
|
8
8
|
var type = "module";
|
|
9
9
|
var main = "src/main.js";
|
|
@@ -32,7 +32,7 @@ var scripts = {
|
|
|
32
32
|
mol: "demo/startMol.sh",
|
|
33
33
|
"mol:build": "demo/startMolBuild.sh",
|
|
34
34
|
molProd: "cd deploy && yarn buildAndRunMol",
|
|
35
|
-
prepare: "husky
|
|
35
|
+
prepare: "husky",
|
|
36
36
|
test: "jest --no-cache --verbose",
|
|
37
37
|
"test-watch": "jest --verbose --watch",
|
|
38
38
|
"test:vitest": "vitest run"
|
|
@@ -45,9 +45,9 @@ var resolutions = {
|
|
|
45
45
|
};
|
|
46
46
|
var dependencies = {
|
|
47
47
|
"@azure/event-hubs": "^5.12.2",
|
|
48
|
-
"@dnd-kit/core": "^6.1
|
|
49
|
-
"@dnd-kit/modifiers": "^
|
|
50
|
-
"@dnd-kit/sortable": "^
|
|
48
|
+
"@dnd-kit/core": "^6.3.1",
|
|
49
|
+
"@dnd-kit/modifiers": "^9.0.0",
|
|
50
|
+
"@dnd-kit/sortable": "^10.0.0",
|
|
51
51
|
"@dnd-kit/utilities": "^3.2.2",
|
|
52
52
|
"@locus-labs/mod-badge": "^0.1.102",
|
|
53
53
|
"@locus-labs/mod-default-theme": "^0.0.113",
|
|
@@ -73,114 +73,115 @@ var dependencies = {
|
|
|
73
73
|
"@locus-labs/mol-mobile-icon": "^0.1.118",
|
|
74
74
|
"@locus-labs/mol-mobile-text": "^0.1.116",
|
|
75
75
|
"@locus-labs/mol-mobile-toast": "^0.1.102",
|
|
76
|
-
"@mapbox/mapbox-gl-draw": "^1.
|
|
76
|
+
"@mapbox/mapbox-gl-draw": "^1.5.0",
|
|
77
77
|
"@mapbox/mapbox-gl-draw-static-mode": "^1.0.1",
|
|
78
|
-
"@microsoft/applicationinsights-web": "^3.3.
|
|
78
|
+
"@microsoft/applicationinsights-web": "^3.3.6",
|
|
79
79
|
"@turf/area": "^7.2.0",
|
|
80
80
|
"@turf/bbox-clip": "^7.2.0",
|
|
81
81
|
"@turf/bbox-polygon": "^7.2.0",
|
|
82
|
-
"@turf/circle": "^
|
|
83
|
-
"@turf/helpers": "^
|
|
84
|
-
"@turf/point-to-line-distance": "^
|
|
85
|
-
"@vitejs/plugin-react": "^4.
|
|
86
|
-
"axe-core": "^4.
|
|
87
|
-
browserslist: "^4.24.
|
|
88
|
-
"crypto-browserify": "^3.12.
|
|
82
|
+
"@turf/circle": "^7.2.0",
|
|
83
|
+
"@turf/helpers": "^7.2.0",
|
|
84
|
+
"@turf/point-to-line-distance": "^7.2.0",
|
|
85
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
86
|
+
"axe-core": "^4.10.3",
|
|
87
|
+
browserslist: "^4.24.4",
|
|
88
|
+
"crypto-browserify": "^3.12.1",
|
|
89
89
|
"cypress-axe": "^1.6.0",
|
|
90
|
-
"cypress-multi-reporters": "^
|
|
90
|
+
"cypress-multi-reporters": "^2.0.5",
|
|
91
91
|
"cypress-real-events": "^1.14.0",
|
|
92
92
|
"file-loader": "^6.2.0",
|
|
93
93
|
flexsearch: "^0.7.43",
|
|
94
94
|
"h3-js": "^4.1.0",
|
|
95
|
-
i18next: "^20.
|
|
96
|
-
"i18next-browser-languagedetector": "^6.1.
|
|
95
|
+
i18next: "^20.6.1",
|
|
96
|
+
"i18next-browser-languagedetector": "^6.1.8",
|
|
97
97
|
"jest-transform-css": "6.0.1",
|
|
98
98
|
jsdom: "^25.0.1",
|
|
99
|
-
jsonschema: "^1.
|
|
100
|
-
luxon: "^3.
|
|
99
|
+
jsonschema: "^1.5.0",
|
|
100
|
+
luxon: "^3.5.0",
|
|
101
101
|
"maplibre-gl": "^4.7.1",
|
|
102
|
-
"mini-css-extract-plugin": "^
|
|
102
|
+
"mini-css-extract-plugin": "^2.9.2",
|
|
103
103
|
"mocha-junit-reporter": "^2.2.1",
|
|
104
104
|
mochawesome: "^7.1.3",
|
|
105
105
|
"node-polyfill-webpack-plugin": "^1.1.4",
|
|
106
106
|
"path-browserify": "^1.0.1",
|
|
107
|
-
polished: "^4.
|
|
108
|
-
"prop-types": "^15.
|
|
109
|
-
"query-string": "^
|
|
107
|
+
polished: "^4.3.1",
|
|
108
|
+
"prop-types": "^15.8.1",
|
|
109
|
+
"query-string": "^9.1.1",
|
|
110
110
|
ramda: "^0.30.1",
|
|
111
111
|
react: "^18.3.1",
|
|
112
|
-
"react-compound-slider": "^3.
|
|
112
|
+
"react-compound-slider": "^3.4.0",
|
|
113
113
|
"react-dom": "^18.3.1",
|
|
114
|
-
"react-json-editor-ajrm": "^2.5.
|
|
115
|
-
"react-qr-svg": "^2.
|
|
116
|
-
"react-svg": "^16.
|
|
117
|
-
"react-virtualized-auto-sizer": "^1.0.
|
|
114
|
+
"react-json-editor-ajrm": "^2.5.14",
|
|
115
|
+
"react-qr-svg": "^2.4.0",
|
|
116
|
+
"react-svg": "^16.3.0",
|
|
117
|
+
"react-virtualized-auto-sizer": "^1.0.25",
|
|
118
118
|
"react-window": "^1.8.11",
|
|
119
119
|
"smoothscroll-polyfill": "^0.4.4",
|
|
120
|
-
"styled-components": "^6.1.
|
|
121
|
-
"styled-normalize": "^8.
|
|
122
|
-
"throttle-debounce": "^
|
|
123
|
-
trackjs: "^3.
|
|
124
|
-
"ua-parser-js": "^0.7.
|
|
125
|
-
uuid: "
|
|
120
|
+
"styled-components": "^6.1.15",
|
|
121
|
+
"styled-normalize": "^8.1.1",
|
|
122
|
+
"throttle-debounce": "^5.0.2",
|
|
123
|
+
trackjs: "^3.10.4",
|
|
124
|
+
"ua-parser-js": "^0.7.40",
|
|
125
|
+
uuid: "11.1.0",
|
|
126
126
|
zousan: "^3.0.1",
|
|
127
127
|
"zousan-plus": "^4.0.1"
|
|
128
128
|
};
|
|
129
129
|
var devDependencies = {
|
|
130
|
-
"@applitools/eyes-cypress": "^3.
|
|
131
|
-
"@babel/core": "^7.26.
|
|
132
|
-
"@babel/eslint-parser": "^7.
|
|
130
|
+
"@applitools/eyes-cypress": "^3.50.3",
|
|
131
|
+
"@babel/core": "^7.26.10",
|
|
132
|
+
"@babel/eslint-parser": "^7.26.10",
|
|
133
133
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
134
134
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
135
135
|
"@babel/plugin-syntax-import-assertions": "^7.26.0",
|
|
136
|
-
"@babel/plugin-transform-modules-commonjs": "^7.
|
|
137
|
-
"@babel/plugin-transform-runtime": "^7.
|
|
138
|
-
"@babel/preset-env": "^7.26.
|
|
139
|
-
"@babel/preset-react": "^7.
|
|
136
|
+
"@babel/plugin-transform-modules-commonjs": "^7.26.3",
|
|
137
|
+
"@babel/plugin-transform-runtime": "^7.26.10",
|
|
138
|
+
"@babel/preset-env": "^7.26.9",
|
|
139
|
+
"@babel/preset-react": "^7.26.3",
|
|
140
140
|
"@testing-library/jest-dom": "^6.6.3",
|
|
141
141
|
"@types/react": "^19.0.10",
|
|
142
142
|
"@types/react-dom": "^19.0.4",
|
|
143
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
144
|
-
"@typescript-eslint/parser": "^
|
|
145
|
-
"babel-jest": "^
|
|
146
|
-
"babel-loader": "^
|
|
143
|
+
"@typescript-eslint/eslint-plugin": "^8.26.1",
|
|
144
|
+
"@typescript-eslint/parser": "^8.26.1",
|
|
145
|
+
"babel-jest": "^29.7.0",
|
|
146
|
+
"babel-loader": "^10.0.0",
|
|
147
147
|
"babel-plugin-inline-json-import": "^0.3.2",
|
|
148
|
-
"babel-plugin-module-resolver": "^5.0.
|
|
148
|
+
"babel-plugin-module-resolver": "^5.0.2",
|
|
149
149
|
"babel-plugin-styled-components": "^2.1.4",
|
|
150
150
|
"babel-polyfill": "^6.26.0",
|
|
151
151
|
"chai-colors": "^1.0.1",
|
|
152
|
-
"css-loader": "^
|
|
152
|
+
"css-loader": "^7.1.2",
|
|
153
153
|
cypress: "^12.17.4",
|
|
154
154
|
"cypress-browser-permissions": "^1.1.0",
|
|
155
|
-
"cypress-wait-until": "^
|
|
156
|
-
eslint: "^8.57.
|
|
157
|
-
"eslint-config-standard": "^
|
|
158
|
-
"eslint-import-resolver-typescript": "^3.
|
|
159
|
-
"eslint-plugin-cypress": "^2.
|
|
160
|
-
"eslint-plugin-import": "^2.
|
|
161
|
-
"eslint-plugin-jest": "^28.
|
|
155
|
+
"cypress-wait-until": "^3.0.2",
|
|
156
|
+
eslint: "^8.57.1",
|
|
157
|
+
"eslint-config-standard": "^17.1.0",
|
|
158
|
+
"eslint-import-resolver-typescript": "^3.9.1",
|
|
159
|
+
"eslint-plugin-cypress": "^2.15.2",
|
|
160
|
+
"eslint-plugin-import": "^2.31.0",
|
|
161
|
+
"eslint-plugin-jest": "^28.11.0",
|
|
162
|
+
"eslint-plugin-n": "^17.16.2",
|
|
162
163
|
"eslint-plugin-node": "^11.1.0",
|
|
163
|
-
"eslint-plugin-promise": "^5.
|
|
164
|
-
"eslint-plugin-react": "^7.
|
|
164
|
+
"eslint-plugin-promise": "^5.2.0",
|
|
165
|
+
"eslint-plugin-react": "^7.37.4",
|
|
165
166
|
"eslint-plugin-standard": "^5.0.0",
|
|
166
|
-
"fetch-mock-jest": "^1.
|
|
167
|
-
glob: "^
|
|
168
|
-
husky: "^
|
|
167
|
+
"fetch-mock-jest": "^1.5.1",
|
|
168
|
+
glob: "^11.0.1",
|
|
169
|
+
husky: "^9.1.7",
|
|
169
170
|
jest: "29.7.0",
|
|
170
171
|
"jest-environment-jsdom": "^29.7.0",
|
|
171
|
-
"lint-staged": "^
|
|
172
|
+
"lint-staged": "^15.5.0",
|
|
172
173
|
"node-fetch": "^2.6.0",
|
|
173
174
|
"null-loader": "^4.0.1",
|
|
174
|
-
nx: "19.
|
|
175
|
+
nx: "19.8.14",
|
|
175
176
|
"nx-remotecache-azure": "^19.0.0",
|
|
176
|
-
"start-server-and-test": "^2.0.
|
|
177
|
-
typescript: "^5.
|
|
177
|
+
"start-server-and-test": "^2.0.11",
|
|
178
|
+
typescript: "^5.8.2",
|
|
178
179
|
vite: "^4.3.9",
|
|
179
|
-
vitest: "^2.1.
|
|
180
|
-
webpack: "^5.
|
|
180
|
+
vitest: "^2.1.9",
|
|
181
|
+
webpack: "^5.98.0",
|
|
181
182
|
"webpack-merge": "^6.0.1"
|
|
182
183
|
};
|
|
183
|
-
var packageManager = "yarn@4.
|
|
184
|
+
var packageManager = "yarn@4.7.0";
|
|
184
185
|
var engines = {
|
|
185
186
|
node: "20.x"
|
|
186
187
|
};
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
var luxon = require('luxon');
|
|
4
4
|
var R = require('ramda');
|
|
5
5
|
var Zousan = require('zousan');
|
|
6
|
-
var mockDynamicRoutingData = require('../mocks/mockDynamicRoutingData.js');
|
|
7
6
|
var processors = require('./processors.js');
|
|
8
7
|
|
|
9
8
|
function _interopNamespaceDefault(e) {
|
|
@@ -101,24 +100,16 @@ function create (app, config = {}) {
|
|
|
101
100
|
}
|
|
102
101
|
};
|
|
103
102
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
// This will certainly need to change at some point.
|
|
108
|
-
const queueTypes = await app.bus.get('venueData/getQueueTypes');
|
|
109
|
-
if (queueTypes.SecurityLane && queueTypes.SecurityLane.length) {
|
|
110
|
-
return updateFromAPI()
|
|
111
|
-
.then(() => { fetchIntervalHandle = setInterval(updateFromAPI, REFRESH_FREQUENCY); })
|
|
112
|
-
.finally(() => state.dynamicDataNotPending.resolve(true)) // even in case of failure, we don't want to hold up the UI
|
|
113
|
-
} else
|
|
114
|
-
return state.dynamicDataNotPending.resolve(true) // no need to wait for this since there is no dynamic data
|
|
103
|
+
return updateFromAPI()
|
|
104
|
+
.then(() => { fetchIntervalHandle = setInterval(updateFromAPI, REFRESH_FREQUENCY); })
|
|
105
|
+
.finally(() => state.dynamicDataNotPending.resolve(true)) // even in case of failure, we don't want to hold up the UI
|
|
115
106
|
};
|
|
116
107
|
|
|
117
108
|
async function processDynamicPois (pois) {
|
|
118
109
|
processParkingPOIS(pois);
|
|
119
110
|
processOpenClosedPois(pois);
|
|
120
111
|
processSecurityWaitTimes(pois);
|
|
121
|
-
|
|
112
|
+
processDynamicRouting(pois);
|
|
122
113
|
}
|
|
123
114
|
|
|
124
115
|
function processParkingPOIS (poiMap) {
|
|
@@ -137,8 +128,8 @@ function create (app, config = {}) {
|
|
|
137
128
|
};
|
|
138
129
|
|
|
139
130
|
/*
|
|
140
|
-
|
|
141
|
-
|
|
131
|
+
API response: https://gitlab.com/locuslabs/core-data-team/json-schemas/-/blob/develop/src/api-marketplace/dynamic-queue-data.json
|
|
132
|
+
*/
|
|
142
133
|
async function processSecurityWaitTimes (poiMap) {
|
|
143
134
|
const idValuesMap = processors.processSecurityWaitTimes(poiMap);
|
|
144
135
|
|
|
@@ -156,7 +147,7 @@ function create (app, config = {}) {
|
|
|
156
147
|
app.bus.send('poi/setDynamicData', { plugin: 'open-closed-status', idValuesMap });
|
|
157
148
|
}
|
|
158
149
|
|
|
159
|
-
async function
|
|
150
|
+
async function processDynamicRouting (pois) {
|
|
160
151
|
let poiResults = [];
|
|
161
152
|
|
|
162
153
|
if (!config.dynamicRoutingEnabled) {
|
|
@@ -31,7 +31,7 @@ function encode (str) {
|
|
|
31
31
|
return lang.pipeline.call(this,
|
|
32
32
|
/* string: */lang.normalize(str).toLowerCase(),
|
|
33
33
|
/* normalize: */!str.normalize && pairs,
|
|
34
|
-
/* split: */lang.regex_whitespace,
|
|
34
|
+
/* split: */lang.regex_whitespace, false)
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
exports.encode = encode;
|
|
@@ -49,12 +49,7 @@ async function create (app, config) {
|
|
|
49
49
|
async function loadVenueData (vConfig, languagesToTry) {
|
|
50
50
|
// For all non-production stages, require SSO (if no assetStage defined we default to 'prod')
|
|
51
51
|
if (vConfig.assetStage && vConfig.assetStage !== 'prod' && location.hostname !== 'localhost' && USE_AUTH_WHEN_NOT_PROD_STAGE)
|
|
52
|
-
|
|
53
|
-
type: 'cognito',
|
|
54
|
-
config: {
|
|
55
|
-
userPoolWebClientId: '484dghfpojlldauo956d84jtrj'
|
|
56
|
-
}
|
|
57
|
-
};
|
|
52
|
+
;
|
|
58
53
|
|
|
59
54
|
const fetchJson = venueLoadingUtils.createFetchJson();
|
|
60
55
|
const fetchText = venueLoadingUtils.createFetchText();
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
const segmentBadges = {
|
|
4
4
|
START: 'wayfinding.start',
|
|
5
5
|
END: 'wayfinding.end',
|
|
6
|
-
WALKING_TO_SECURITY_CHECKPOINT: 'wayfinding.security',
|
|
7
6
|
ELEVATOR: 'wayfinding.elevator',
|
|
8
7
|
ELEVATOR_UP: 'wayfinding.elevator.up',
|
|
9
8
|
ELEVATOR_DOWN: 'wayfinding.elevator.down',
|
|
@@ -14,8 +13,6 @@ const segmentBadges = {
|
|
|
14
13
|
ESCALATOR_UP: 'wayfinding.escalator.up',
|
|
15
14
|
ESCALATOR_DOWN: 'wayfinding.escalator.down',
|
|
16
15
|
WALK: 'wayfinding.movingwalkway',
|
|
17
|
-
WALK_DOWN: 'walk.movingwalkway',
|
|
18
|
-
WALK_UP: 'walk.movingwalkway',
|
|
19
16
|
TRAIN: 'wayfinding.train',
|
|
20
17
|
TRAIN_UP: 'wayfinding.train.up',
|
|
21
18
|
TRAIN_DOWN: 'wayfinding.train.down',
|
|
@@ -50,8 +50,8 @@ function calculateAdjacent (srcHash, dir) {
|
|
|
50
50
|
|
|
51
51
|
function encode (latitude, longitude, precision) {
|
|
52
52
|
let isEven = 1;
|
|
53
|
-
const lat = [-90
|
|
54
|
-
const lng = [-180
|
|
53
|
+
const lat = [-90, 90.0];
|
|
54
|
+
const lng = [-180, 180.0];
|
|
55
55
|
let bit = 0;
|
|
56
56
|
let ch = 0;
|
|
57
57
|
precision = precision || 12;
|
|
@@ -25,10 +25,11 @@ async function init (langOverride, { debugMode, fallbackLng } = {}) {
|
|
|
25
25
|
fallbackLng: fallbackLng === undefined ? 'en' : fallbackLng,
|
|
26
26
|
// ns: ['common', 'banner', 'common', 'directions', 'failure', 'flights', 'legal', 'navigation', 'poi', 'search', 'security', 'time', 'tooltip'],
|
|
27
27
|
// defaultNS: 'common',
|
|
28
|
-
lng: langOverride
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
lng: langOverride
|
|
29
|
+
/* interpolation: {
|
|
30
|
+
escapeValue: true
|
|
31
|
+
}
|
|
32
|
+
postProcess: ['pseudoTrans'] */
|
|
32
33
|
})
|
|
33
34
|
.then(() => {
|
|
34
35
|
if (debugMode) {
|
package/dist/package.json.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e="web-engine",s="3.3.
|
|
1
|
+
var e="web-engine",s="3.3.402",o="UNLICENSED",t="module",l="src/main.js",r=["demo","deploy","nodesdk","src/extModules/flexapi","services/*","libraries/*"],a={colors:"cat utils/colors1.txt && node utils/processColors.js | pbcopy && cat utils/colors2.txt","cypress:a11y":"APPLITOOLS_IS_DISABLED=true && cypress open --browser chrome --env INPUT_MODALITY='keyboard'","cypress:comp":"APPLITOOLS_IS_DISABLED=true && cypress open --component --browser chrome","cypress:e2e":"APPLITOOLS_IS_DISABLED=true && cypress open --e2e --browser chrome",demo:"cd demo/ && yarn start","e2e:comp":"cypress run --component","e2e:record":"yarn cypress run --env RECORD_MODE=true",e2eSDKTest:"yarn start-server-and-test 'cd ./deploy && yarn buildDev && yarn serveLocal' 8085 'cd ./cypress/e2e/sdk && npx http-server' 8080 'yarn cypress run --spec cypress/e2e/sdk/**'",goProd:"cd deploy && scripts/goProd.sh",goStaging:"deploy/scripts/goStaging.sh",i18nOverrides:"yarn node utils/i18nOverrideCli src/i18n src/i18n-overrides",lint:"eslint .",mod:"demo/startMod.sh",mol:"demo/startMol.sh","mol:build":"demo/startMolBuild.sh",molProd:"cd deploy && yarn buildAndRunMol",prepare:"husky",test:"jest --no-cache --verbose","test-watch":"jest --verbose --watch","test:vitest":"vitest run"},i=["defaults"],n={react:"^18.3.1"},c={"@azure/event-hubs":"^5.12.2","@dnd-kit/core":"^6.3.1","@dnd-kit/modifiers":"^9.0.0","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@locus-labs/mod-badge":"^0.1.102","@locus-labs/mod-default-theme":"^0.0.113","@locus-labs/mod-footer":"^0.0.111","@locus-labs/mod-header":"^0.0.105","@locus-labs/mod-location-marker":"^0.0.104","@locus-labs/mod-map-legend":"^0.0.104","@locus-labs/mod-offscreen-indicator":"^0.0.104","@locus-labs/mod-pin":"^0.0.104","@locus-labs/mod-qr-code-card":"^0.0.104","@locus-labs/mod-qr-code-window":"^0.0.105","@locus-labs/mod-walk-time-matrix":"^0.0.103","@locus-labs/mol-desktop-building-level-selector":"^0.1.119","@locus-labs/mol-desktop-compass":"^0.1.120","@locus-labs/mol-desktop-default-theme":"^0.2.105","@locus-labs/mol-desktop-icon":"^0.1.131","@locus-labs/mol-desktop-logo":"^0.1.101","@locus-labs/mol-desktop-map-nav-button":"^0.1.130","@locus-labs/mol-desktop-tooltip":"^0.3.102","@locus-labs/mol-desktop-zoom-control":"^0.1.141","@locus-labs/mol-mobile-box":"^0.1.115","@locus-labs/mol-mobile-floating-action-button":"^0.0.117","@locus-labs/mol-mobile-icon":"^0.1.118","@locus-labs/mol-mobile-text":"^0.1.116","@locus-labs/mol-mobile-toast":"^0.1.102","@mapbox/mapbox-gl-draw":"^1.5.0","@mapbox/mapbox-gl-draw-static-mode":"^1.0.1","@microsoft/applicationinsights-web":"^3.3.6","@turf/area":"^7.2.0","@turf/bbox-clip":"^7.2.0","@turf/bbox-polygon":"^7.2.0","@turf/circle":"^7.2.0","@turf/helpers":"^7.2.0","@turf/point-to-line-distance":"^7.2.0","@vitejs/plugin-react":"^4.3.4","axe-core":"^4.10.3",browserslist:"^4.24.4","crypto-browserify":"^3.12.1","cypress-axe":"^1.6.0","cypress-multi-reporters":"^2.0.5","cypress-real-events":"^1.14.0","file-loader":"^6.2.0",flexsearch:"^0.7.43","h3-js":"^4.1.0",i18next:"^20.6.1","i18next-browser-languagedetector":"^6.1.8","jest-transform-css":"6.0.1",jsdom:"^25.0.1",jsonschema:"^1.5.0",luxon:"^3.5.0","maplibre-gl":"^4.7.1","mini-css-extract-plugin":"^2.9.2","mocha-junit-reporter":"^2.2.1",mochawesome:"^7.1.3","node-polyfill-webpack-plugin":"^1.1.4","path-browserify":"^1.0.1",polished:"^4.3.1","prop-types":"^15.8.1","query-string":"^9.1.1",ramda:"^0.30.1",react:"^18.3.1","react-compound-slider":"^3.4.0","react-dom":"^18.3.1","react-json-editor-ajrm":"^2.5.14","react-qr-svg":"^2.4.0","react-svg":"^16.3.0","react-virtualized-auto-sizer":"^1.0.25","react-window":"^1.8.11","smoothscroll-polyfill":"^0.4.4","styled-components":"^6.1.15","styled-normalize":"^8.1.1","throttle-debounce":"^5.0.2",trackjs:"^3.10.4","ua-parser-js":"^0.7.40",uuid:"11.1.0",zousan:"^3.0.1","zousan-plus":"^4.0.1"},p={"@applitools/eyes-cypress":"^3.50.3","@babel/core":"^7.26.10","@babel/eslint-parser":"^7.26.10","@babel/plugin-proposal-class-properties":"^7.18.6","@babel/plugin-syntax-dynamic-import":"^7.8.3","@babel/plugin-syntax-import-assertions":"^7.26.0","@babel/plugin-transform-modules-commonjs":"^7.26.3","@babel/plugin-transform-runtime":"^7.26.10","@babel/preset-env":"^7.26.9","@babel/preset-react":"^7.26.3","@testing-library/jest-dom":"^6.6.3","@types/react":"^19.0.10","@types/react-dom":"^19.0.4","@typescript-eslint/eslint-plugin":"^8.26.1","@typescript-eslint/parser":"^8.26.1","babel-jest":"^29.7.0","babel-loader":"^10.0.0","babel-plugin-inline-json-import":"^0.3.2","babel-plugin-module-resolver":"^5.0.2","babel-plugin-styled-components":"^2.1.4","babel-polyfill":"^6.26.0","chai-colors":"^1.0.1","css-loader":"^7.1.2",cypress:"^12.17.4","cypress-browser-permissions":"^1.1.0","cypress-wait-until":"^3.0.2",eslint:"^8.57.1","eslint-config-standard":"^17.1.0","eslint-import-resolver-typescript":"^3.9.1","eslint-plugin-cypress":"^2.15.2","eslint-plugin-import":"^2.31.0","eslint-plugin-jest":"^28.11.0","eslint-plugin-n":"^17.16.2","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^5.2.0","eslint-plugin-react":"^7.37.4","eslint-plugin-standard":"^5.0.0","fetch-mock-jest":"^1.5.1",glob:"^11.0.1",husky:"^9.1.7",jest:"29.7.0","jest-environment-jsdom":"^29.7.0","lint-staged":"^15.5.0","node-fetch":"^2.6.0","null-loader":"^4.0.1",nx:"19.8.14","nx-remotecache-azure":"^19.0.0","start-server-and-test":"^2.0.11",typescript:"^5.8.2",vite:"^4.3.9",vitest:"^2.1.9",webpack:"^5.98.0","webpack-merge":"^6.0.1"},d="yarn@4.7.0",m={node:"20.x"},u={},b={name:e,version:s,private:!0,license:o,type:t,main:l,workspaces:r,scripts:a,"lint-staged":{"*.js":["eslint --fix"]},browserslist:i,resolutions:n,dependencies:c,devDependencies:p,packageManager:d,engines:m,nx:u};export{i as browserslist,b as default,c as dependencies,p as devDependencies,m as engines,o as license,l as main,e as name,u as nx,d as packageManager,n as resolutions,a as scripts,t as type,s as version,r as workspaces};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{DateTime as
|
|
1
|
+
import{DateTime as n}from"luxon";import*as t from"ramda";import e from"zousan";import{processParkingPOIS as o,processOpenClosedPois as a,processSecurityWaitTimes as s,mutateSecurityCheckpointLabel as i}from"./processors.js";let c=3e4;const r="x-account-id";function u(u,d={}){const l={dynamicDataNotPending:new e,poisToAvoid:new e},p=u.gt();d._overrideRefreshFrequency&&(c=d._overrideRefreshFrequency),u.bus.on("system/readywhenyouare",(()=>l.dynamicDataNotPending)),u.bus.on("dynamicRouting/poisToAvoid",(()=>l.poisToAvoid));const m=async n=>{const t={};for(const e of n){const n=await u.bus.get("poi/getById",{id:e});n&&(t[e]=n.name)}return t};return{init:async()=>{const[e,y]=await Promise.all([u.bus.get("venueData/getAccountId"),u.bus.get("venueData/getVenueId")]),f=`https://marketplace.locuslabs.com/venueId/${y}/dynamic-poi`;let g,v=0,h=0;const b=async()=>{const c=await fetch(f,{headers:{[r]:e}});if(c.ok)return c.json().then((({data:e})=>async function(e){(function(n){const t=o(n);u.bus.send("poi/setDynamicData",{plugin:"parking",idValuesMap:t})})(e),function(n){const t=a(n);u.bus.send("poi/setDynamicData",{plugin:"open-closed-status",idValuesMap:t})}(e),async function(n){const t=s(n);u.bus.send("poi/setDynamicData",{plugin:"security",idValuesMap:t});const e=await m(Object.keys(t));u.bus.send("map/mutateFeature",{functor:i(p,t,e)})}(e),async function(e){let o=[];if(!d.dynamicRoutingEnabled)return void l.poisToAvoid.resolve(o);const a=n.now().toMillis(),s=Object.values(t.filter((n=>{const e=t.path(["dynamicData","dynamic-routing","navGraphHidden"],n),o=t.path(["dynamicData","dynamic-routing","expiration"],n);return!0===e&&o>a}),e));if(s.length>0){const n=await u.bus.get("poi/getAll");o=Object.values(n).length>0?s.map((t=>n[t?.poiId]))?.filter(Boolean):[]}l.poisToAvoid.resolve(o)}(e)}(e))).then((()=>{h++})).catch(console.error);console.warn("dynamicPois: fetch response status not ok",c),v++,v>=3&&v>h&&clearInterval(g)};return b().then((()=>{g=setInterval(b,c)})).finally((()=>l.dynamicDataNotPending.resolve(!0)))}}}export{u as create};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{pipeline as o,normalize as n,
|
|
1
|
+
import{pipeline as o,normalize as n,regex as r,regex_whitespace as t}from"./lang.js";const a=[r("[àáâãäå]"),"a",r("[èéêë]"),"e",r("[ìíîï]"),"i",r("[òóôõöő]"),"o",r("[ùúûüű]"),"u",r("[ýŷÿ]"),"y",r("ñ"),"n",r("[çc]"),"k",r("ß"),"s",r(" & ")," and "];function e(r){return r=""+r,o.call(this,n(r).toLowerCase(),!r.normalize&&a,t,!1)}export{e as encode};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const n={START:"wayfinding.start",END:"wayfinding.end",
|
|
1
|
+
const n={START:"wayfinding.start",END:"wayfinding.end",ELEVATOR:"wayfinding.elevator",ELEVATOR_UP:"wayfinding.elevator.up",ELEVATOR_DOWN:"wayfinding.elevator.down",STAIRS:"wayfinding.stairs",STAIRS_UP:"wayfinding.stairs.up",STAIRS_DOWN:"wayfinding.stairs.down",ESCALATOR:"wayfinding.escalator",ESCALATOR_UP:"wayfinding.escalator.up",ESCALATOR_DOWN:"wayfinding.escalator.down",WALK:"wayfinding.movingwalkway",TRAIN:"wayfinding.train",TRAIN_UP:"wayfinding.train.up",TRAIN_DOWN:"wayfinding.train.down",BUS:"wayfinding.bus",BUS_UP:"wayfinding.bus.up",BUS_DOWN:"wayfinding.bus.down",SECURITY_CHECKPOINT:"wayfinding.security",RAMP:"wayfinding.ramp",RAMP_UP:"wayfinding.ramp.up",RAMP_DOWN:"wayfinding.ramp.down"};export{n as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{compose as e,not as t,includes as r,__ as n,toLower as a,prop as s,
|
|
1
|
+
import{compose as e,not as t,includes as r,__ as n,toLower as a,prop as s,find as i,drop as o,last as u,propEq as c}from"ramda";import{findBoundsOfWaypoints as T}from"../../../src/utils/bounds.js";import{distance as A}from"../../../src/utils/geodesy.js";import _ from"./segmentBadges.js";import R from"./segmentCategories.js";function O(e,t="",r="",n,a,i={},o,u=[]){return e.map(((o,c)=>{const A=l("securityWaitTimes")(o.waypoints),O=A&&!A.isTemporarilyClosed?A.queueTime:Math.round(1===(N=o.waypoints).length?N[0].eta:N.map(s("eta")).slice(1).reduce(((e,t)=>e+t),0));var N;const I=Math.round(function(e){return 1===e.length?e[0].distance:e.map((e=>e.distance)).slice(1).reduce(((e,t)=>e+t),0)}(o.waypoints)),f=function(e){switch(e){case R.START:return _.START;case R.WALKING_TO_END:return _.END;case R.ELEVATOR:return _.ELEVATOR;case R.ELEVATOR_UP:return _.ELEVATOR_UP;case R.ELEVATOR_DOWN:return _.ELEVATOR_DOWN;case R.STAIRS:return _.STAIRS;case R.STAIRS_UP:return _.STAIRS_UP;case R.STAIRS_DOWN:return _.STAIRS_DOWN;case R.ESCALATOR:return _.ESCALATOR;case R.ESCALATOR_UP:return _.ESCALATOR_UP;case R.ESCALATOR_DOWN:return _.ESCALATOR_DOWN;case R.WALKING_TO_PORTAL:case R.WALK:case R.WALK_DOWN:case R.WALK_UP:return _.WALK;case R.TRAIN:return _.TRAIN;case R.TRAIN_UP:return _.TRAIN_UP;case R.TRAIN_DOWN:return _.TRAIN_DOWN;case R.BUS:return _.BUS;case R.BUS_UP:return _.BUS_UP;case R.BUS_DOWN:return _.BUS_DOWN;case R.SECURITY_CHECKPOINT:return _.SECURITY_CHECKPOINT;case R.RAMP:return _.RAMP;case R.RAMP_UP:return _.RAMP_UP;case R.RAMP_DOWN:return _.RAMP_DOWN;default:return _.WALK}}(o.segmentCategory),m=function(e,t){let r;switch(e){case R.START:r=0;break;case R.WALKING_TO_END:r=t.length-1;break;case R.WALKING_TO_PORTAL:r=Math.min(t.length-1,Math.ceil(t.length/2));break;default:r=t.length-1}return t[r].position}(o.segmentCategory,o.waypoints),w=function(e,t,r,n,a,s,i,o){const u=e[t];switch(u.segmentCategory){case R.START:return d(u.waypoints[0].position,r);case R.WALKING_TO_END:return d(u.waypoints[u.waypoints.length-1].position,n);case R.WALKING_TO_SECURITY_CHECKPOINT:{const r=e[t+1].waypoints,n=p(o,r),a=s("wayfinder:Security Lane"),c=n?`${n} ${a}`:null,T=L(r,i);return c||T||s(`wayfinder:${u.type}`)}case R.WALKING_TO_PORTAL:return s(`wayfinder:${e[t+1].type}`);case R.SECURITY_CHECKPOINT:{const e=p(o,u.waypoints),t=s("wayfinder:Security Lane"),r=e?`${e} ${t}`:null,n=L(u.waypoints,i);return r||n||S(u,a)}case R.ELEVATOR:case R.ELEVATOR_DOWN:case R.ELEVATOR_UP:case R.ESCALATOR:case R.ESCALATOR_DOWN:case R.ESCALATOR_UP:case R.STAIRS:case R.STAIRS_DOWN:case R.STAIRS_UP:return S(u,a);default:return s(`wayfinder:${u.type}`)}}(e,c,t,r,n,a,u,i),P=function(e,t,r){const n=E(t,r),a="Proceed";switch(e.segmentCategory){case R.START:return r("wayfinder:Begin route at");case R.ELEVATOR:return r("wayfinder:Take elevator to");case R.ELEVATOR_UP:return r("wayfinder:Take elevator up to");case R.ELEVATOR_DOWN:return r("wayfinder:Take elevator down to");case R.STAIRS:return r("wayfinder:Take stairs to");case R.STAIRS_UP:return r("wayfinder:Take stairs up to");case R.STAIRS_DOWN:return r("wayfinder:Take stairs down to");case R.ESCALATOR:return r("wayfinder:Take escalator to");case R.ESCALATOR_UP:return r("wayfinder:Take escalator up to");case R.ESCALATOR_DOWN:return r("wayfinder:Take escalator down to");case R.WALK:case R.WALKING_TO_SECURITY_CHECKPOINT:case R.WALKING_TO_PORTAL:case R.WALKING_TO_END:return n(`${a} <1 minute to`,`${a} xx minute to`);case R.WALK_DOWN:return n(`${a} <1 minute down to`,`${a} xx minute down to`);case R.WALK_UP:return n(`${a} <1 minute up to`,`${a} xx minute up to`);case R.TRAIN:return n("Take train <1 minute","Take train xx minute");case R.BUS:return n("Take bus <1 minute","Take bus xx minute");case R.SECURITY_CHECKPOINT:return r("wayfinder:Through");case R.RAMP:return r("wayfinder:Take ramp to");case R.RAMP_UP:return r("wayfinder:Take ramp up to");case R.RAMP_DOWN:return r("wayfinder:Take ramp down to");default:return""}}(o,O,a),W={primaryText:w,secondaryText:P,icon:f,animationAnchor:m,eta:O,distance:I,bounds:T(o.waypoints),isAccessible:y(o),securityWaitTimes:A};return o.poiId&&(W.poiId=o.poiId),W}))}function d(e,t){return e.name?e.name:t}function S(e,t){return t[u(e.waypoints).position.floorId]}const E=(e,t)=>(r,n)=>0===e?t("wayfinder:"+r):t("wayfinder:"+n,{count:e}),y=e(t,r(n,["escalator","stairs"]),a,s("type")),p=(e,t)=>{const r=l("securityLane")(t);if(!r)return;const n=s(r.type,e),a=i(c(r.id,"id"),n);return s("displayText",a)},l=t=>e(s(t),i(s(t)),o(1)),L=(e,t)=>{if(!e||0===e.length)return null;const r=e[0],{lat:n,lng:a,floorId:s}=r.position,i=t.filter((e=>e.position&&e.position.floorId===s));let o=null,u=1/0;return i.forEach((e=>{const t=A(n,a,e.position.latitude,e.position.longitude);t<u&&(u=t,o=e)})),o?o.name:null};export{O as default};
|
package/dist/src/debugTools.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"ramda";import{orphanTest as t}from"../plugins/wayfinder/src/navGraphDebug.js";import{
|
|
1
|
+
import*as e from"ramda";import{orphanTest as t}from"../plugins/wayfinder/src/navGraphDebug.js";import{ad as n,$ as s,$$ as o,del as a}from"./utils/dom.js";import{singleFile as r}from"./utils/funcs.js";"undefined"!=typeof window&&(window.R=e);const i=(e,t)=>d((()=>t.send(e)),t),d=(e,t)=>{const n=t.monitor("homeview/performSearch",(({term:t})=>{t||(e(),n())}))};async function u(){const e=await this.bus.get("map/getPadding"),t=(e.left-e.right)/2,o=(e.top-e.bottom)/2,r=n({html:'<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path stroke="#fF000080" stroke-width="2" d="M0 50h45M55 50h45M50 0v45M50 55v45"/></svg>',styles:{position:"absolute",left:"50%",top:"50%","margin-left":-50+t+"px","margin-top":-50+o+"px"}},s(".maplibregl-map"));d((()=>a(r)),this.bus)}var g={bounds:async function(){const e=await this.bus.get("venueData/getVenueCenter"),{venueRadius:t,bounds:n}=await this.bus.get("venueData/getVenueData");this.bus.send("map/showVenueBounds",{venueCenter:e,venueRadius:t,bounds:n}),i("map/resetVenueBounds",this.bus)},buildingBounds:async function(e){this.bus.send("map/showBuildingBounds",{nameFilter:e}),i("map/resetVenueBounds",this.bus),u.apply(this)},dndGo:function(){const e=this.bus,t=(e,t)=>{e.preventDefault(),t?e.target.classList.add("dragover"):e.target.classList.remove("dragover")},n={drop:async function(n){t(n,!1);for(const t of n.dataTransfer.files){const n=t.name;if("application/json"===t.type||t.type.startsWith("text/")){const s=new FileReader;s.onload=r((async s=>e.send("debugTools/fileDrop",{file:t,filename:n,content:s.target.result}))),s.readAsText(t)}}},dragover:function(e){t(e,!0)},dragleave:function(e){t(e,!1)}};Object.keys(n).forEach((function(e){document.body.addEventListener(e,n[e])})),console.log("DnD Listeners installed")},floorBounds:async function(e){const t=this.bus;t.send("map/showFloorBounds",{nameFilter:e}),i("map/resetVenueBounds",t);const n=t.monitor("map/floorChanged",(()=>t.send("map/showFloorBounds",{nameFilter:e})));d(n,t),u.apply(this)},getPoiById:function(e){return this.bus.send("poi/getById",{id:e}).then((e=>e[0]))},highlightNodes:()=>n({tag:"style",html:"* { background-color: rgba(255,0,0,.2); } * * { background-color: rgba(0,255,0,.2); } * * * { background-color: rgba(0,0,255,.2); } * * * * { background-color: rgba(255,0,255,.2); } * * * * * { background-color: rgba(0,255,255,.2); } * * * * * * { background-color: rgba(255,255,0,.2); } * * * * * * * { background-color: rgba(255,0,0,.2); } * * * * * * * * { background-color: rgba(0,255,0,.2); } * * * * * * * * * { background-color: rgba(0,0,255,.2); }"},s("head")),orphanTest:t,padding:async function(){this.bus.send("map/togglePadding"),i("map/togglePadding",this.bus)},poisByCategory:function(){return this.bus.send("poi/getAll").then((e=>e[0])).then((e=>Object.values(e))).then(e.groupBy((e=>e.category)))},showCenter:u,showgraph:async function(){const e=await this.bus.get("wayfinder/getNavGraphFeatures");this.bus.send("map/showNavGraphFeatures",{navGraph:e}),i("map/resetNavGraphFeatures",this.bus)},showIcons:()=>{s("#mapRenderDiv").innerHTML="<style> div { display: inline-block; text-align: center; border: 1px solid lightblue; }</style>"+o("svg symbol").map((e=>`<div><svg><use xlink:href="#${e.id}"/></svg><br/>${e.id}</div>`)).join("")},showOrphaned:async function(){const e=await this.bus.get("wayfinder/_getNavGraph"),n=t(e._nodes);this.bus.send("map/showOrphanedGraphNodes",{orphanedNodes:n.orphaned})}};export{g as default};
|
package/dist/src/utils/bounds.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{prop as t,identity as n,path as i}from"ramda";function r(t){return m(t.map(i(["position","lat"])).filter(n),t.map(i(["position","lng"])).filter(n))}function a(i){return m(i.map(t(0)).filter(n),i.map(t(1)).filter(n))}function m(t,n){return{n:Math.max(...t),s:Math.min(...t),e:Math.max(...n),w:Math.min(...n)}}export{a as findBoundsOfCoordinates,r as findBoundsOfWaypoints};
|
package/dist/src/utils/i18n.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import n from"i18next";async function e(e,{debugMode:t,fallbackLng:o}={}){const a=n.createInstance();return a.init({debug:t,interpolation:{escapeValue:!1},resources:{en:{translation:{"Proceed xx minutes to":"Proceed {{count}} minute to","Proceed xx minutes to_plural":"Proceed {{count}} minutes to"}}},fallbackLng:void 0===o?"en":o,lng:e
|
|
1
|
+
import n from"i18next";async function e(e,{debugMode:t,fallbackLng:o}={}){const a=n.createInstance();return a.init({debug:t,interpolation:{escapeValue:!1},resources:{en:{translation:{"Proceed xx minutes to":"Proceed {{count}} minute to","Proceed xx minutes to_plural":"Proceed {{count}} minutes to"}}},fallbackLng:void 0===o?"en":o,lng:e}).then((()=>(t&&a.on("missingKey",(function(n,e,t,o){console.error("i18nNext: key not found. Language: "+a.language+", Key: "+t+", namespace: "+e+", lngs: ",n)})),a)))}const t={ar:"بال عن أمام الأخذ البرية. ثم كما وقام شاسعة الجنوبي, أمدها الإمداد عن انه. ٣٠ فكانت والكساد انه. أساسي الشمال الإتفاقية بال أم. زهاء المؤلّفة حين عل, سكان قررت هذه ان, شعار باستخدام ولم مع.\n\nدول الأمور الصفحة الأوروبية قد. تم حدى فاتّبع الهجوم, ما أوسع معاملة فعل, خلاف الأوروبية، إيو كل. تُصب واندونيسيا، حين قد. أي حاول حقول وهولندا، هذا, بين عن لهيمنة بالسيطرة.\n\nأعمال الإتحاد العمليات من وصل. وقوعها، باستخدام قد أخر, بل حتى علاقة التبرعات. فقد لم الأرض استبدال. حتى الخاسر اقتصادية بـ. أصقاع أعلنت اتفاقية تلك بل, كان إذ بحشد أخرى ليبين. الشتاء، اليابان، مكن أم, به، قد العالم، أوراقهم, بل لعدم لغزو أواخر مكن.\n",ja:"私は場合いよいよある所有らってのの末がしたた。無論結果に圧迫顔もよくその発展ないですまでを決するてみるでしでも発展云いませたから、そうには描いたないたた。機会へ載っない方は別に今をひょろひょろでずまし。むしろ嘉納さんを意味方面そう#「を積んない権力この自分何か記念をというおお尋ねだろででですで、ある今はこれか頼み例があるで、ネルソンさんののの引込のあなたにもっともお努力といと私赤に実建設が起っようにとやかくご附随を描いですましから、どうもとにかく相違に云おでてならますのが行っないませ。"},o=(n,e)=>"en"===e?n:a(n,t[e]),a=(n,e)=>n.length<e.length?e.substring(0,n.length):e;export{e as default,o as toLang};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "atriusmaps-node-sdk",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.402",
|
|
4
4
|
"description": "This project provides an API to Atrius Personal Wayfinder maps within a Node environment. See the README.md for more information",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"map",
|
|
@@ -38,23 +38,23 @@
|
|
|
38
38
|
"testpack": "yarn run build && yarn pack"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@turf/circle": "^
|
|
42
|
-
"@turf/helpers": "^
|
|
43
|
-
"@turf/point-to-line-distance": "^
|
|
41
|
+
"@turf/circle": "^7.2.0",
|
|
42
|
+
"@turf/helpers": "^7.2.0",
|
|
43
|
+
"@turf/point-to-line-distance": "^7.2.0",
|
|
44
44
|
"flexsearch": "^0.7.43",
|
|
45
45
|
"https-proxy-agent": "^7.0.4",
|
|
46
|
-
"i18next": "^20.
|
|
47
|
-
"luxon": "^3.
|
|
46
|
+
"i18next": "^20.6.1",
|
|
47
|
+
"luxon": "^3.5.0",
|
|
48
48
|
"node-fetch": "^2.6.1",
|
|
49
|
-
"query-string": "^
|
|
49
|
+
"query-string": "^9.1.1",
|
|
50
50
|
"ramda": "^0.30.1",
|
|
51
51
|
"zousan": "^3.0.1",
|
|
52
52
|
"zousan-plus": "^4.0.1"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@rollup/plugin-json": "^6.1.0",
|
|
56
|
-
"rollup": "^4.
|
|
56
|
+
"rollup": "^4.36.0",
|
|
57
57
|
"rollup-plugin-terser": "^7.0.2",
|
|
58
|
-
"vitest": "^2.1.
|
|
58
|
+
"vitest": "^2.1.9"
|
|
59
59
|
}
|
|
60
60
|
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const dynamicRoutingData = {
|
|
4
|
-
430: {
|
|
5
|
-
category: 'portal',
|
|
6
|
-
description: 'Elevator',
|
|
7
|
-
poiId: '430',
|
|
8
|
-
position: {
|
|
9
|
-
floorId: 'staticdca-terminals-departures',
|
|
10
|
-
latitude: 38.851973,
|
|
11
|
-
longitude: -77.082142
|
|
12
|
-
},
|
|
13
|
-
dynamicData: {
|
|
14
|
-
'dynamic-routing': {
|
|
15
|
-
navGraphHidden: true,
|
|
16
|
-
navGraphHiddenReason: 'reason 2',
|
|
17
|
-
expiration: 2055958719000
|
|
18
|
-
// expiration: 1740608456150
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
431: {
|
|
23
|
-
category: 'portal',
|
|
24
|
-
description: 'Elevator',
|
|
25
|
-
poiId: '431',
|
|
26
|
-
position: {
|
|
27
|
-
floorId: 'staticdca-terminals-departures',
|
|
28
|
-
latitude: 38.851973,
|
|
29
|
-
longitude: -77.082142
|
|
30
|
-
},
|
|
31
|
-
dynamicData: {
|
|
32
|
-
'dynamic-routing': {
|
|
33
|
-
navGraphHidden: true,
|
|
34
|
-
navGraphHiddenReason: 'reason 2',
|
|
35
|
-
expiration: 2055958719000
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
exports.dynamicRoutingData = dynamicRoutingData;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a={430:{category:"portal",description:"Elevator",poiId:"430",position:{floorId:"staticdca-terminals-departures",latitude:38.851973,longitude:-77.082142},dynamicData:{"dynamic-routing":{navGraphHidden:!0,navGraphHiddenReason:"reason 2",expiration:2055958719e3}}},431:{category:"portal",description:"Elevator",poiId:"431",position:{floorId:"staticdca-terminals-departures",latitude:38.851973,longitude:-77.082142},dynamicData:{"dynamic-routing":{navGraphHidden:!0,navGraphHiddenReason:"reason 2",expiration:2055958719e3}}}};export{a as dynamicRoutingData};
|