@mapxus/mapxus-map-jp 10.1.0 → 10.2.0

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/utils.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const A=require("d3-dispatch"),n=require("@mapxus/mapxus-auth-jp"),p="10.1.0",T={version:p},S=T.version,f="https://map-api.mapxus.co.jp/bms",l=10,E=1;class e{static instance;_globalDispatcher;_httpSession;_theme=null;_isSDKInitialized=!1;constructor(){}static getInstance(){return e.instance||(e.instance=new e),e.instance}setGlobalDispatcher(s){this._globalDispatcher=s}getGlobalDispatcher(){return this._globalDispatcher}async getHttpSession(){return this._httpSession||(this.registerSDK(),this._httpSession=await n.HTTPSession.create(n.SDKName.MapSDK,n.base64Encode(`version-${S}`)),this._httpSession.setBaseURL(f),this._httpSession.setRetryConfig(3)),this._httpSession}registerSDK(){this._isSDKInitialized||(this._isSDKInitialized=!0,n.reportLog(`${n.SDKName.MapSDK} initialized`))}get theme(){return this._theme}setTheme(s){this._theme=s}clear(){this._httpSession.destroy(),this._globalDispatcher=null,e.instance=null}}const c=["unauthorized","initError"],r=globalThis,o=A.dispatch(...c);e.getInstance().setGlobalDispatcher(o);r.MapxusMapEvents=r.MapxusMapEvents||{};r.MapxusMapEvents.on=function(t,s){return o.on(t,s),{off:()=>o.on(t,null)}};var i=(t=>(t.ENGLISH="en",t.CHINESE_SIMPLIFIED="zh-Hans",t.CHINESE_TRADITIONAL="zh-Hant",t.CHINESE_TRADITIONAL_TW="zh-Hant-TW",t.JAPANESE="ja",t.KOREAN="ko",t.FILIPINO="fil",t.INDONESIAN="id",t.PORTUGUESE="pt",t.THAI="th",t.VIETNAMESE="vi",t.ARABIC="ar",t))(i||{});function I(t){let s=null;return u(t)?s=i.ENGLISH:N(t)?s=i.CHINESE_SIMPLIFIED:_(t)?s=i.CHINESE_TRADITIONAL:O(t)?s=i.CHINESE_TRADITIONAL_TW:R(t)?s=i.JAPANESE:D(t)?s=i.KOREAN:H(t)?s=i.FILIPINO:d(t)?s=i.INDONESIAN:M(t)?s=i.PORTUGUESE:m(t)?s=i.THAI:v(t)?s=i.VIETNAMESE:K(t)&&(s=i.ARABIC),s}function u(t){return/^en(-(US|GB|AU))?$/.test(t)}function N(t){return/^zh(-(Hans|CN))?$/.test(t)}function _(t){return/^zh-(Hant|HK|MO)$/.test(t)}function O(t){return t==="zh-TW"}function R(t){return/^ja(-JP)?$/.test(t)}function D(t){return/^ko(-KR)?$/.test(t)}function H(t){return/^(fil|tl)(-PH)?$/.test(t)}function d(t){return/^id(-ID)?$/.test(t)}function M(t){return/^pt(-(BR|PT))?$/.test(t)}function m(t){return/^th(-TH)?$/.test(t)}function v(t){return/^vi(-VN)?$/.test(t)}function K(t){return/^ar(-(DZ|BH|EG|IQ|JO|KW|LB|LY|MA|OM|QA|SA|SY|TN|AE|YE))?$/.test(t)}const h="reserve_mapxus-level-fill",a="reserve_mapxus-shared-level-fill",L={convertBrowserLangToPresetLang:I,VERSION:S,OFFSET:l,PAGE:E,ERRORS:c,ASSISTANT_LAYER_INDOOR_FLOORS:h,ASSISTANT_LAYER_SHARED_FLOORS:a};exports.ASSISTANT_LAYER_INDOOR_FLOORS=h;exports.ASSISTANT_LAYER_SHARED_FLOORS=a;exports.ERRORS=c;exports.OFFSET=l;exports.PAGE=E;exports.VERSION=S;exports.convertBrowserLangToPresetLang=I;exports.default=L;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const f=require("d3-dispatch"),n=require("@mapxus/mapxus-auth-jp"),T="10.2.0",p={version:T},S=p.version,N="https://map-api.mapxus.co.jp/bms",l=10,I=1;class e{static instance;_globalDispatcher;_httpSession;_theme=null;_isSDKInitialized=!1;constructor(){}static getInstance(){return e.instance||(e.instance=new e),e.instance}setGlobalDispatcher(i){this._globalDispatcher=i}getGlobalDispatcher(){return this._globalDispatcher}async getHttpSession(){return this._httpSession||(this.registerSDK(),this._httpSession=await n.HTTPSession.create(n.SDKName.MapSDK,n.base64Encode(`version-${S}`)),this._httpSession.setBaseURL(N),this._httpSession.setRetryConfig(3)),this._httpSession}registerSDK(){this._isSDKInitialized||(this._isSDKInitialized=!0,n.reportLog(`${n.SDKName.MapSDK} initialized`))}get theme(){return this._theme}setTheme(i){this._theme=i}clear(){this._httpSession.destroy(),this._globalDispatcher=null,e.instance=null}}const c=["unauthorized","initError"],r=globalThis,o=f.dispatch(...c);e.getInstance().setGlobalDispatcher(o);r.MapxusMapEvents=r.MapxusMapEvents||{};r.MapxusMapEvents.on=function(t,i){return o.on(t,i),{off:()=>o.on(t,null)}};var s=(t=>(t.ENGLISH="en",t.CHINESE_SIMPLIFIED="zh-Hans",t.CHINESE_TRADITIONAL="zh-Hant",t.CHINESE_TRADITIONAL_TW="zh-Hant-TW",t.JAPANESE="ja",t.KOREAN="ko",t.FILIPINO="fil",t.INDONESIAN="id",t.PORTUGUESE="pt",t.THAI="th",t.VIETNAMESE="vi",t.ARABIC="ar",t.FRENCH="fr",t.ITALIAN="it",t))(s||{});function E(t){let i=null;return a(t)?i=s.ENGLISH:u(t)?i=s.CHINESE_SIMPLIFIED:R(t)?i=s.CHINESE_TRADITIONAL:_(t)?i=s.CHINESE_TRADITIONAL_TW:O(t)?i=s.JAPANESE:D(t)?i=s.KOREAN:H(t)?i=s.FILIPINO:d(t)?i=s.INDONESIAN:M(t)?i=s.PORTUGUESE:m(t)?i=s.THAI:v(t)?i=s.VIETNAMESE:F(t)?i=s.ARABIC:K(t)?i=s.FRENCH:L(t)&&(i=s.ITALIAN),i}function a(t){return/^en(-(US|GB|AU))?$/.test(t)}function u(t){return/^zh(-(Hans|CN))?$/.test(t)}function R(t){return/^zh-(Hant|HK|MO)$/.test(t)}function _(t){return t==="zh-TW"}function O(t){return/^ja(-JP)?$/.test(t)}function D(t){return/^ko(-KR)?$/.test(t)}function H(t){return/^(fil|tl)(-PH)?$/.test(t)}function d(t){return/^id(-ID)?$/.test(t)}function M(t){return/^pt(-(BR|PT))?$/.test(t)}function m(t){return/^th(-TH)?$/.test(t)}function v(t){return/^vi(-VN)?$/.test(t)}function F(t){return/^ar(-(DZ|BH|EG|IQ|JO|KW|LB|LY|MA|OM|QA|SA|SY|TN|AE|YE))?$/.test(t)}function K(t){return/^fr(-(FR|CA|CH))?$/.test(t)}function L(t){return/^it(-(IT|CH))?$/.test(t)}const h="reserve_mapxus-level-fill",A="reserve_mapxus-shared-level-fill",b={convertBrowserLangToPresetLang:E,VERSION:S,OFFSET:l,PAGE:I,ERRORS:c,ASSISTANT_LAYER_INDOOR_FLOORS:h,ASSISTANT_LAYER_SHARED_FLOORS:A};exports.ASSISTANT_LAYER_INDOOR_FLOORS=h;exports.ASSISTANT_LAYER_SHARED_FLOORS=A;exports.ERRORS=c;exports.OFFSET=l;exports.PAGE=I;exports.VERSION=S;exports.convertBrowserLangToPresetLang=E;exports.default=b;
package/es/index.d.ts CHANGED
@@ -21,7 +21,9 @@ export declare enum PresetLanguage {
21
21
  PORTUGUESE = "pt",
22
22
  THAI = "th",
23
23
  VIETNAMESE = "vi",
24
- ARABIC = "ar"
24
+ ARABIC = "ar",
25
+ FRENCH = "fr",
26
+ ITALIAN = "it"
25
27
  }
26
28
  export type TMultilingualString = Partial<Record<PresetLanguage, string>>;
27
29
  export interface IMultilingualName extends TMultilingualString {
@@ -1062,7 +1064,8 @@ export declare enum VehicleType {
1062
1064
  FOOT = "foot",
1063
1065
  WHEELCHAIR = "wheelchair",
1064
1066
  ESCALATOR = "escalator",
1065
- EMERGENCY = "emergency"
1067
+ EMERGENCY = "emergency",
1068
+ ELEVATOR = "elevator"
1066
1069
  }
1067
1070
  export interface IRouteInfo {
1068
1071
  copyrights: string[];