atriusmaps-node-sdk 3.3.324 → 3.3.325
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.
|
@@ -11,7 +11,8 @@ function prepareSDKConfig (sc) {
|
|
|
11
11
|
deepLinkParms, uiHide, renderDiv, parentConfig, desktopViewMinWidth,
|
|
12
12
|
forceDesktop, hostAppId, hostAppVersion, hostAppProperties, logFilter,
|
|
13
13
|
searchPlaceholder, dataFetch, engineName, dynamicPoisUrlBaseV1, plugins,
|
|
14
|
-
anaytics2ActiveFlag, enablePoiSelection, minZoom, maxZoom, noLangOptions
|
|
14
|
+
anaytics2ActiveFlag, enablePoiSelection, minZoom, maxZoom, noLangOptions,
|
|
15
|
+
pinnedLocation
|
|
15
16
|
} = sc;
|
|
16
17
|
|
|
17
18
|
const extendsConfig = parentConfig ? [parentConfig] : (headless ? ['sdkHeadless'] : ['sdkVisual']);
|
|
@@ -25,7 +26,6 @@ function prepareSDKConfig (sc) {
|
|
|
25
26
|
return undefined
|
|
26
27
|
|
|
27
28
|
const ret = { }; // lets build this back up ourselves to ensure its purity
|
|
28
|
-
|
|
29
29
|
const keys = Object.keys(hostAppProperties);
|
|
30
30
|
|
|
31
31
|
if (keys.length > 10)
|
|
@@ -98,19 +98,18 @@ function prepareSDKConfig (sc) {
|
|
|
98
98
|
handleI18NParm(sc, 'defaultSearchTerms', config.plugins.searchService);
|
|
99
99
|
|
|
100
100
|
if (extendsConfig.includes('sdkVisual')) {
|
|
101
|
+
config.plugins['online/homeView'] = config.plugins['online/homeView'] || {};
|
|
101
102
|
if (poiCategories)
|
|
102
|
-
config.plugins['online/homeView'] =
|
|
103
|
-
|
|
104
|
-
config.plugins['online/homeView'] = { };
|
|
103
|
+
config.plugins['online/homeView'].poiCategories = poiCategories;
|
|
104
|
+
|
|
105
105
|
handleI18NParm(sc, 'poiCategories', config.plugins['online/homeView']);
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
// Allow *specific* additional plugins
|
|
109
|
+
// for now, this is just for internal use
|
|
109
110
|
if (plugins) {
|
|
110
|
-
// for now, this is just for internal use
|
|
111
111
|
if (plugins.draw)
|
|
112
112
|
config.plugins.draw = plugins.draw;
|
|
113
|
-
|
|
114
113
|
// To get flight status working, one needs 3 plugins. This is a bad design, there should just be one and it provides
|
|
115
114
|
// all 3 of these services. Lets migrate to a single plugin at some point - but until then, lets at least make it look
|
|
116
115
|
// like a single plugin for SDK users. The only plugin that currently has configurable properties is "flightStatus" - so
|
|
@@ -122,6 +121,11 @@ function prepareSDKConfig (sc) {
|
|
|
122
121
|
}
|
|
123
122
|
}
|
|
124
123
|
|
|
124
|
+
if (pinnedLocation) {
|
|
125
|
+
config.plugins['online/homeView'] = config.plugins['online/homeView'] || {};
|
|
126
|
+
config.plugins['online/homeView'].pinnedLocation = pinnedLocation;
|
|
127
|
+
}
|
|
128
|
+
|
|
125
129
|
if (preserveStateInURL) {
|
|
126
130
|
config.configPostProc.push('stateTracking');
|
|
127
131
|
config.plugins.deepLinking = { trackURL: true };
|
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.325";
|
|
7
7
|
var license = "UNLICENSED";
|
|
8
8
|
var type = "module";
|
|
9
9
|
var main = "src/main.js";
|
|
@@ -89,6 +89,7 @@ var dependencies = {
|
|
|
89
89
|
i18next: "^20.3.4",
|
|
90
90
|
"i18next-browser-languagedetector": "^6.1.1",
|
|
91
91
|
"jest-transform-css": "4.0.1",
|
|
92
|
+
jsdom: "^25.0.0",
|
|
92
93
|
jsonschema: "^1.2.6",
|
|
93
94
|
luxon: "^3.3.0",
|
|
94
95
|
"maplibre-gl": "~2.1.9",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{setDeepLinksForParms as e}from"../src/configs/postproc-mol-url-parms.js";import{setStateFromStateString as i}from"../src/configs/postproc-stateTracking.js";import{filterOb as
|
|
1
|
+
import{setDeepLinksForParms as e}from"../src/configs/postproc-mol-url-parms.js";import{setStateFromStateString as i}from"../src/configs/postproc-stateTracking.js";import{filterOb as n}from"../src/utils/funcs.js";function o(o){const{name:s,debug:a,headless:r,theme:l,defaultSearchTerms:p,venueId:c,accountId:u,poiCategories:d,preserveStateInURL:g,supportURLDeepLinks:h,initState:m,deepLinkParms:f,uiHide:v,renderDiv:S,parentConfig:k,desktopViewMinWidth:V,forceDesktop:w,hostAppId:P,hostAppVersion:L,hostAppProperties:A,logFilter:b,searchPlaceholder:y,dataFetch:D,engineName:I,dynamicPoisUrlBaseV1:j,plugins:Z,anaytics2ActiveFlag:F,enablePoiSelection:O,minZoom:T,maxZoom:x,noLangOptions:C,pinnedLocation:M}=o,R=k?[k]:r?["sdkHeadless"]:["sdkVisual"],U=(e,i)=>e&&e.length>i?e.substring(0,i):e,W={name:s,engineName:I,extends:R,debug:a,logFilter:b,theme:l,uiHide:v,renderDiv:S,configPostProc:[],plugins:{venueDataLoader:{dataFetch:D,venueId:c,accountId:u},sdkServer:{headless:r},analytics2:{hostAppId:(e=>e?U(e.toString(),128):void 0)(P),hostAppVersion:(e=>e?U(e.toString(),128):void 0)(L),hostAppProperties:(e=>{if(!e||"object"!=typeof e)return;const i={},n=Object.keys(e);return n.length>10&&(n.length=10),n.forEach((n=>{let o=U(n.toString().replaceAll(/[^a-zA-Z0-9_]/g,""),128);o.match(/^[a-zA-Z]+/)||(o="X"+o);let t=e[n];null==t&&(t=""),t=U(t.toString(),128),i[o]=t})),i})(A)}},uuid:"undefined"!=typeof document&&document&&document.location?document.location.host:"unknown"};void 0!==F&&(W.plugins.analytics2.active=F);const H=(e,i)=>void 0!==i?{[e]:i}:{};return r||(W.plugins["online/headerOnline"]={searchPlaceholder:y},W.plugins.mapRenderer={...H("enablePoiSelection",O),viewLimits:{...H("maxZoom",x),...H("minZoom",T)}},W.plugins.userMenu={noLangOptions:C}),W.plugins.searchService=p?{defaultSearchTerms:p}:{},t(o,"defaultSearchTerms",W.plugins.searchService),R.includes("sdkVisual")&&(W.plugins["online/homeView"]=W.plugins["online/homeView"]||{},d&&(W.plugins["online/homeView"].poiCategories=d),t(o,"poiCategories",W.plugins["online/homeView"])),Z&&(Z.draw&&(W.plugins.draw=Z.draw),Z.flightStatus&&(W.plugins.flightStatus=Z.flightStatus,W.plugins["online/flightDetails"]={},W.plugins["online/flightDetailsSearch"]={})),M&&(W.plugins["online/homeView"]=W.plugins["online/homeView"]||{},W.plugins["online/homeView"].pinnedLocation=M),g&&(W.configPostProc.push("stateTracking"),W.plugins.deepLinking={trackURL:!0}),h&&W.configPostProc.push("mol-url-parms"),m&&i(W,atob(m),!0),f&&e(W,f,!0),void 0!==V&&(W.desktopViewMinWidth=V),w&&(W.desktopViewMinWidth=0),j&&(W.plugins.dynamicPois={urlBaseV1:j}),n(((e,i)=>void 0!==i),W)}function t(e,i,n){Object.keys(e).filter((e=>e.startsWith(i+"-"))).forEach((i=>n[i]=e[i]))}export{o as default};
|
package/dist/package.json.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e="web-engine",s="3.3.
|
|
1
|
+
var e="web-engine",s="3.3.325",o="UNLICENSED",l="module",t="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",e2eTest:"percy exec -- cypress run --browser chrome",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 install","test:vitest":"vitest",test:"jest --no-cache --verbose","test-watch":"jest --verbose --watch","test:e2e:video":"cypress run"},i=["defaults"],n={"@azure/event-hubs":"^5.6.0","@dnd-kit/core":"^6.0.8","@dnd-kit/modifiers":"^7.0.0","@dnd-kit/sortable":"^7.0.2","@dnd-kit/utilities":"^3.2.1","@john-osullivan/react-window-dynamic-fork":"^1.9.0-alpha.1","@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.3.0","@mapbox/mapbox-gl-draw-static-mode":"^1.0.1","@microsoft/applicationinsights-web":"^3.1.2","@turf/circle":"^6.5.0","@turf/helpers":"^6.5.0","@turf/point-to-line-distance":"^6.5.0","@vitejs/plugin-react":"^4.0.1",IObject:"^0.7.2","axe-core":"^4.9.0","crypto-browserify":"^3.12.0","cypress-axe":"^1.5.0","file-loader":"^6.2.0",flexsearch:"^0.7.31","h3-js":"^4.1.0",i18next:"^20.3.4","i18next-browser-languagedetector":"^6.1.1","jest-transform-css":"4.0.1",jsdom:"^25.0.0",jsonschema:"^1.2.6",luxon:"^3.3.0","maplibre-gl":"~2.1.9","mini-css-extract-plugin":"^1.6.0","node-polyfill-webpack-plugin":"^1.1.4","path-browserify":"^1.0.1",polished:"^4.0.2","prop-types":"^15.7.2","query-string":"^8.1.0",ramda:"^0.28.0",react:"^17.0.2","react-compound-slider":"^3.3.1","react-dom":"^17.0.2","react-json-editor-ajrm":"^2.5.13","react-qr-svg":"^2.2.1","react-svg":"^16.1.29","react-tageditor":"^0.2.3","react-virtualized-auto-sizer":"^1.0.2","smoothscroll-polyfill":"^0.4.4","styled-components":"5.1.0","styled-normalize":"^8.0.6","throttle-debounce":"^3.0.1",trackjs:"^3.7.4","ua-parser-js":"^0.7.23",uuid:"3.3.2",zousan:"^3.0.1","zousan-plus":"^4.0.1"},c={"@applitools/eyes-cypress":"^3.44.0","@babel/core":"^7.14.8","@babel/eslint-parser":"^7.24.7","@babel/plugin-proposal-class-properties":"^7.8.3","@babel/plugin-syntax-dynamic-import":"^7.8.3","@babel/plugin-syntax-import-assertions":"^7.20.0","@babel/plugin-transform-modules-commonjs":"^7.8.3","@babel/plugin-transform-runtime":"^7.8.3","@babel/preset-env":"^7.14.8","@babel/preset-react":"^7.8.3","@percy/cli":"^1.0.0-beta.60","@percy/cypress":"^3.1.0","@testing-library/jest-dom":"^6.5.0","@typescript-eslint/eslint-plugin":"^7.13.0","@typescript-eslint/parser":"^7.13.0","babel-jest":"^27.0.6","babel-loader":"^8.2.2","babel-plugin-inline-json-import":"^0.3.2","babel-plugin-module-resolver":"^5.0.0","babel-polyfill":"^6.26.0","chai-colors":"^1.0.1","css-loader":"^5.2.4",cypress:"^12.17.2","cypress-browser-permissions":"^1.1.0","cypress-real-events":"^1.11.0","cypress-wait-until":"^1.7.1",eslint:"^8.57.0","eslint-config-standard":"^16.0.3","eslint-import-resolver-typescript":"^3.6.1","eslint-plugin-cypress":"^2.11.1","eslint-plugin-import":"^2.16.0","eslint-plugin-jest":"^28.6.0","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^5.1.0","eslint-plugin-react":"^7.12.4","eslint-plugin-standard":"^5.0.0","fetch-mock-jest":"^1.3.0",glob:"^10.3.3",husky:"^6.0.0",jest:"27.5.1","lint-staged":"^11.0.1","node-fetch":"^2.6.0","null-loader":"^4.0.1",nx:"19.4.2","nx-remotecache-azure":"^19.0.0","start-server-and-test":"^2.0.0",typescript:"^5.4.5",vite:"^4.3.9",vitest:"^2.0.5",webpack:"^5.84.1","webpack-merge":"^5.8.0"},p="yarn@4.3.1",d={node:">=20"},m={},b={name:e,version:s,private:!0,license:o,type:l,main:t,workspaces:r,scripts:a,"lint-staged":{"*.js":["eslint --fix"]},browserslist:i,dependencies:n,devDependencies:c,packageManager:p,engines:d,nx:m};export{i as browserslist,b as default,n as dependencies,c as devDependencies,d as engines,o as license,t as main,e as name,m as nx,p as packageManager,a as scripts,l as type,s as version,r as workspaces};
|
package/package.json
CHANGED