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.
package/dist/cjs/package.json.js
CHANGED
|
@@ -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
|
-
|
|
61
|
-
|
|
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
|
}
|
package/dist/package.json.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var a="3.3.
|
|
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}
|
|
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
|
-
|
|
3
|
-
|
|
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