atriusmaps-node-sdk 3.3.1133 → 3.3.1134

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var version = "3.3.1133";
5
+ var version = "3.3.1134";
6
6
  var pkg = {
7
7
  version: version};
8
8
 
@@ -57,8 +57,9 @@ function setDeepLinksForParms(config, parms, forceCreate = false) {
57
57
  pluginConfig.deepLinkProps = { ...pluginConfig.deepLinkProps, [key]: parms.get(key) };
58
58
  });
59
59
  });
60
- if (parms.has("poiId") && parms.has("showNav")) {
61
- delete config.plugins["online/poiView"]?.deepLinkProps?.poiId;
60
+ const poiViewConfig = config.plugins["online/poiView"];
61
+ if (parms.has("poiId") && parms.has("showNav") && poiViewConfig) {
62
+ delete poiViewConfig.deepLinkProps?.poiId;
62
63
  }
63
64
  return config;
64
65
  }
@@ -1 +1 @@
1
- var a="3.3.1133",e={version:a};export{e as default,a as version};
1
+ var a="3.3.1134",e={version:a};export{e as default,a as version};
@@ -1 +1 @@
1
- const e={navFrom:"online/getDirectionsFromTo",navTo:"online/getDirectionsFromTo",waypoints:"online/getDirectionsFromTo",accessible:"online/getDirectionsFromTo",showNav:"online/getDirectionsFromTo",poiId:["online/getDirectionsFromTo","online/poiView"],vid:"venueDataLoader",lang:"venueDataLoader",stage:"venueDataLoader",contentStage:"venueDataLoader",accountId:"venueDataLoader",search:"online/headerOnline",ho:["online/getDirectionsFromTo","analytics2"],home:"online/homeView",zoom:"mapRenderer",pitch:"mapRenderer",bearing:"mapRenderer",lat:"mapRenderer",lng:"mapRenderer",radius:"mapRenderer",buildingId:"mapRenderer",floorId:"mapRenderer",visualTest:"mapRenderer",refInstallId:"analytics2",disableZoomToExplorePopup:"levelIndicator"};function n(n,o,r=!1){if(o.has("lldebug"))try{const e=JSON.parse(o.get("lldebug")??"null");n.debug=null===e?{}:e}catch{n.debug=!0}return Object.keys(e).forEach(a=>{if(!o.has(a))return;const i=e[a];(Array.isArray(i)?i:[i]).forEach(e=>{let i=n.plugins[e];!i&&r&&(i=n.plugins[e]={}),i&&(i.deepLinkProps={...i.deepLinkProps,[a]:o.get(a)})})}),o.has("poiId")&&o.has("showNav")&&delete n.plugins["online/poiView"]?.deepLinkProps?.poiId,n}export{n as setDeepLinksForParms};
1
+ const e={navFrom:"online/getDirectionsFromTo",navTo:"online/getDirectionsFromTo",waypoints:"online/getDirectionsFromTo",accessible:"online/getDirectionsFromTo",showNav:"online/getDirectionsFromTo",poiId:["online/getDirectionsFromTo","online/poiView"],vid:"venueDataLoader",lang:"venueDataLoader",stage:"venueDataLoader",contentStage:"venueDataLoader",accountId:"venueDataLoader",search:"online/headerOnline",ho:["online/getDirectionsFromTo","analytics2"],home:"online/homeView",zoom:"mapRenderer",pitch:"mapRenderer",bearing:"mapRenderer",lat:"mapRenderer",lng:"mapRenderer",radius:"mapRenderer",buildingId:"mapRenderer",floorId:"mapRenderer",visualTest:"mapRenderer",refInstallId:"analytics2",disableZoomToExplorePopup:"levelIndicator"};function n(n,o,r=!1){if(o.has("lldebug"))try{const e=JSON.parse(o.get("lldebug")??"null");n.debug=null===e?{}:e}catch{n.debug=!0}Object.keys(e).forEach(a=>{if(!o.has(a))return;const i=e[a];(Array.isArray(i)?i:[i]).forEach(e=>{let i=n.plugins[e];!i&&r&&(i=n.plugins[e]={}),i&&(i.deepLinkProps={...i.deepLinkProps,[a]:o.get(a)})})});const a=n.plugins["online/poiView"];return o.has("poiId")&&o.has("showNav")&&a&&delete a.deepLinkProps?.poiId,n}export{n as setDeepLinksForParms};
@@ -1,3 +1,9 @@
1
- import type { EngineConfig } from '@typings/plugin-runtime.ts';
2
- export declare function process(config: EngineConfig): EngineConfig;
3
- export declare function setDeepLinksForParms(config: EngineConfig, parms: URLSearchParams, forceCreate?: boolean): EngineConfig;
1
+ import type { EngineConfig, PluginConfigEntry } from '@typings/plugin-runtime.ts';
2
+ type UrlConfig = Pick<EngineConfig, 'debug'> & {
3
+ plugins: Record<string, (PluginConfigEntry & {
4
+ preservedQueryParams?: Record<string, string>;
5
+ }) | false>;
6
+ };
7
+ export declare function process<T extends UrlConfig>(config: T): T;
8
+ export declare function setDeepLinksForParms<T extends UrlConfig>(config: T, parms: URLSearchParams, forceCreate?: boolean): T;
9
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "atriusmaps-node-sdk",
3
- "version": "3.3.1133",
3
+ "version": "3.3.1134",
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
  "acuitybrands",