From d0371b78e571908df067c4d2a12fa75e0c281169 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 29 Jun 2024 14:57:25 +0000 Subject: [PATCH] Update docs from maps rnmapbox/maps@55216db --- ...5e61d16.js => AppEntry-8ee7a91d23c2a319eaa19a6f225c8b71.js} | 3 ++- static/example-app/index.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) rename static/example-app/_expo/static/js/web/{AppEntry-8c79ada7e11716e9603ed80fe5e61d16.js => AppEntry-8ee7a91d23c2a319eaa19a6f225c8b71.js} (99%) diff --git a/static/example-app/_expo/static/js/web/AppEntry-8c79ada7e11716e9603ed80fe5e61d16.js b/static/example-app/_expo/static/js/web/AppEntry-8ee7a91d23c2a319eaa19a6f225c8b71.js similarity index 99% rename from static/example-app/_expo/static/js/web/AppEntry-8c79ada7e11716e9603ed80fe5e61d16.js rename to static/example-app/_expo/static/js/web/AppEntry-8ee7a91d23c2a319eaa19a6f225c8b71.js index 2cd6747..f36f1b1 100644 --- a/static/example-app/_expo/static/js/web/AppEntry-8c79ada7e11716e9603ed80fe5e61d16.js +++ b/static/example-app/_expo/static/js/web/AppEntry-8ee7a91d23c2a319eaa19a6f225c8b71.js @@ -2,6 +2,7 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. !(function(e){"use strict";e.__r=i,e[`${__METRO_GLOBAL_PREFIX__}__d`]=function(e,n,o){if(null!=t[n])return;const i={dependencyMap:o,factory:e,hasError:!1,importedAll:r,importedDefault:r,isInitialized:!1,publicModule:{exports:{}}};t[n]=i},e.__c=o,e.__registerSegment=function(e,r,n){p[e]=r,n&&n.forEach((r=>{t[r]||h.has(r)||h.set(r,e)}))};var t=o();const r={},{hasOwnProperty:n}={};function o(){return t=Object.create(null)}function i(e){const r=e,n=t[r];return n&&n.isInitialized?n.publicModule.exports:d(r,n)}function l(e){const n=e;if(t[n]&&t[n].importedDefault!==r)return t[n].importedDefault;const o=i(n),l=o&&o.__esModule?o.default:o;return t[n].importedDefault=l}function u(e){const o=e;if(t[o]&&t[o].importedAll!==r)return t[o].importedAll;const l=i(o);let u;if(l&&l.__esModule)u=l;else{if(u={},l)for(const e in l)n.call(l,e)&&(u[e]=l[e]);u.default=l}return t[o].importedAll=u}i.importDefault=l,i.importAll=u,i.context=function(){throw new Error("The experimental Metro feature `require.context` is not enabled in your project.")},i.resolveWeak=function(){throw new Error("require.resolveWeak cannot be called dynamically.")};let c=!1;function d(t,r){if(!c&&e.ErrorUtils){let n;c=!0;try{n=_(t,r)}catch(t){e.ErrorUtils.reportFatalError(t)}return c=!1,n}return _(t,r)}const a=16,s=65535;function f(e){return{segmentId:e>>>a,localId:e&s}}i.unpackModuleId=f,i.packModuleId=function(e){return(e.segmentId<0){const e=h.get(r)??0,o=p[e];null!=o&&(o(r),n=t[r],h.delete(r))}const o=e.nativeRequire;if(!n&&o){const{segmentId:e,localId:i}=f(r);o(i,e),n=t[r]}if(!n)throw m(r);if(n.hasError)throw n.error;n.isInitialized=!0;const{factory:c,dependencyMap:d}=n;try{const t=n.publicModule;return t.id=r,c(e,i,l,u,t,t.exports,d),n.factory=void 0,n.dependencyMap=void 0,t.exports}catch(e){throw n.hasError=!0,n.error=e,n.isInitialized=!1,n.publicModule.exports=void 0,e}}function m(e){return Error('Requiring unknown module "'+e+'".')}})('undefined'!=typeof globalThis?globalThis:'undefined'!=typeof global?global:'undefined'!=typeof window?window:this); !(function(e){e.$$require_external=()=>null})('undefined'!=typeof globalThis?globalThis:'undefined'!=typeof global?global:'undefined'!=typeof window?window:this); 'undefined'!=typeof globalThis?globalThis:'undefined'!=typeof global?global:'undefined'!=typeof window&&window; +!(function(r){let n=0,t=function(r,n){throw r};const l={setGlobalHandler(r){t=r},getGlobalHandler:()=>t,reportError(r){t&&t(r,!1)},reportFatalError(r){t&&t(r,!0)},applyWithGuard(r,t,e,o,a){try{return n++,r.apply(t,e)}catch(r){l.reportError(r)}finally{n--}return null},applyWithGuardIfNeeded:(r,n,t)=>l.inGuard()?r.apply(n,t):(l.applyWithGuard(r,n,t),null),inGuard:()=>!!n,guard(r,n,t){if('function'!=typeof r)return console.warn('A function must be passed to ErrorUtils.guard, got ',r),null;const e=n??r.name??'';return function(...n){return l.applyWithGuard(r,t??this,n,null,e)}}};r.ErrorUtils=l})('undefined'!=typeof globalThis?globalThis:'undefined'!=typeof global?global:'undefined'!=typeof window?window:this); __d((function(g,r,i,a,m,e,d){var f=r(d[0]),t=f(r(d[1])),u=f(r(d[2]));(0,t.default)(u.default)}),0,[1,2,78]); __d((function(g,r,i,a,m,_e,d){m.exports=function(e){return e&&e.__esModule?e:{default:e}},m.exports.__esModule=!0,m.exports.default=m.exports}),1,[]); __d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){let o=t;n.default.registerComponent('main',(()=>o));{const t=document.getElementById('root');n.default.runApplication('main',{rootTag:t,hydrate:'1'===process.env.EXPO_PUBLIC_USE_STATIC})}},r(d[1]);var n=t(r(d[2]));t(r(d[3]))}),2,[1,3,4,77]); @@ -519,7 +520,7 @@ __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e. __d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.fontFamilyNeedsScoping=function(t){return!1},e.getAssetForSource=function(t){const n=o(t),s=(l=t,l.display||r(d[3]).FontDisplay.AUTO);var l;n&&'string'==typeof n||u(n);return{uri:n,display:s}},e.getNativeFontName=function(t){return t},e.loadSingleFontAsync=function(t,o){('object'!=typeof o||'string'!=typeof o.uri||o.downloadAsync)&&u(o);try{return n.default.loadAsync(t,o)}catch{}return Promise.resolve()};var n=t(r(d[1]));function o(t){return'string'==typeof t?t||null:'object'==typeof t?t.uri||t.localUri||t.default||null:'number'==typeof t?o(r(d[2]).Asset.fromModule(t)):null}function u(t){let n=typeof t;throw'object'===n&&(n=JSON.stringify(t,null,2)),new(r(d[4]).CodedError)("ERR_FONT_SOURCE",`Expected font asset of type \`string | FontResource | Asset\` instead got: ${n}`)}}),458,[1,423,459,422,425]); __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),r(d[0]),Object.keys(r(d[1])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[1])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[1])[n]}}))})),Object.keys(r(d[2])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[2])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[2])[n]}}))}))}),459,[460,464,470]); __d((function(g,r,i,a,m,e,d){r(d[0]).IS_ENV_WITH_LOCAL_ASSETS&&(0,r(d[1]).setCustomSourceTransformer)((t=>{try{if(t.asset.fileHashes){const s=r(d[2]).Asset.fromMetadata(t.asset);return t.fromSource(s.downloaded?s.localUri:s.uri)}return t.defaultAsset()}catch{return t.defaultAsset()}}))}),460,[461,462,464]); -__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.IS_ENV_WITH_UPDATES_ENABLED=void 0,e.getManifest=function(){return{}},e.getManifest2=function(){return{}},e.manifestBaseUrl=void 0;e.IS_ENV_WITH_UPDATES_ENABLED=!1,e.manifestBaseUrl=null}),461,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.IS_ENV_WITH_LOCAL_ASSETS=void 0,e.getLocalAssets=function(){return{}},e.getManifest2=function(){return{}},e.manifestBaseUrl=void 0;e.IS_ENV_WITH_LOCAL_ASSETS=!1;e.manifestBaseUrl=null}),461,[]); __d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=c,e.pickScale=void 0,e.setCustomSourceTransformer=u;var n=t(r(d[1]));let o;function u(t){o=t}function c(t){if('object'==typeof t)return t;const u=(0,r(d[2]).getAssetByID)(t);if(!u)return null;const c=new n.default('https://expo.dev',null,u);return o?o(c):c.defaultAsset()}Object.defineProperty(c,'setCustomSourceTransformer',{get:()=>u});const{pickScale:s}=n.default;e.pickScale=s}),462,[1,463,137]); __d((function(g,r,_i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=t(r(d[1]));function i(t){const i=h.pickScale(t.scales,s.default.get()),l=1===i?'':'@'+i+'x',c=t.type?`.${t.type}`:'';return t.httpServerLocation.replace(/\.\.\//g,'_')+'/'+t.name+l+c}class h{constructor(t,s,i){this.serverUrl=t||'https://expo.dev',this.jsbundleUrl=null,this.asset=i}isLoadedFromServer(){return!0}isLoadedFromFileSystem(){return!1}defaultAsset(){return this.assetServerURL()}assetServerURL(){const t=new URL(i(this.asset),this.serverUrl);return t.searchParams.set('platform',"web"),t.searchParams.set('hash',this.asset.hash),this.fromSource(t.toString().replace(t.origin,''))}fromSource(t){return{__packager_asset:!0,width:this.asset.width??void 0,height:this.asset.height??void 0,uri:t,scale:h.pickScale(this.asset.scales,s.default.get())}}static pickScale(t,s){for(let i=0;i=s)return t[i];return t[t.length-1]||1}}e.default=h}),463,[1,135]); __d((function(g,_r,_i,_a,m,_e,d){var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.Asset=void 0;var e=r(_r(d[1])),i=r(_r(d[2])),s=t(_r(d[3]));function a(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,i=new WeakMap;return(a=function(t){return t?i:e})(t)}function r(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var i=a(e);if(i&&i.has(t))return i.get(t);var s={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in t)if("default"!==n&&{}.hasOwnProperty.call(t,n)){var h=r?Object.getOwnPropertyDescriptor(t,n):null;h&&(h.get||h.set)?Object.defineProperty(s,n,h):s[n]=t[n]}return s.default=t,i&&i.set(t,s),s}class n{static byHash={};static byUri={};hash=null;localUri=null;width=null;height=null;downloading=!1;downloaded=!1;_downloadCallbacks=[];constructor({name:t,type:i,hash:s=null,uri:a,width:r,height:n}){this.name=t,this.type=i,this.hash=s,this.uri=a,'number'==typeof r&&(this.width=r),'number'==typeof n&&(this.height=n),s&&(this.localUri=(0,_r(d[4]).getLocalAssetUri)(s,i),this.localUri&&(this.downloaded=!0)),t||(this.name=e.getFilename(a)),i||(this.type=e.getFileExtension(a))}static loadAsync(t){const e=Array.isArray(t)?t:[t];return Promise.all(e.map((t=>n.fromModule(t).downloadAsync())))}static fromModule(t){if('string'==typeof t)return n.fromURI(t);const e=(0,_r(d[5]).getAssetByID)(t);if(!e)throw new Error(`Module "${t}" is missing from the asset registry`);if(!_r(d[6]).IS_ENV_WITH_LOCAL_ASSETS){const{uri:i}=(0,s.default)(t),a=new n({name:e.name,type:e.type,hash:e.hash,uri:i,width:e.width,height:e.height});return n.byHash[e.hash]=a,a}return n.fromMetadata(e)}static fromMetadata(t){const e=t.hash;if(n.byHash[e])return n.byHash[e];const{uri:i,hash:s}=(0,_r(d[7]).selectAssetSource)(t),a=new n({name:t.name,type:t.type,hash:s,uri:i,width:t.width,height:t.height});return n.byHash[e]=a,a}static fromURI(t){if(n.byUri[t])return n.byUri[t];let i='';if(t.indexOf(';base64')>-1)i=t.split(';')[0].split('/')[1];else{const s=e.getFileExtension(t);i=s.startsWith('.')?s.substring(1):s}const s=new n({name:'',type:i,hash:null,uri:t});return n.byUri[t]=s,s}async downloadAsync(){if(this.downloaded)return this;if(this.downloading)return await new Promise(((t,e)=>{this._downloadCallbacks.push({resolve:t,reject:e})})),this;this.downloading=!0;try{if(i.isImageType(this.type)){const{width:t,height:e,name:s}=await i.getImageInfoAsync(this.uri);this.width=t,this.height=e,this.name=s}else this.name=e.getFilename(this.uri);this.localUri=await(0,_r(d[8]).downloadAsync)(this.uri,this.hash,this.type),this.downloaded=!0,this._downloadCallbacks.forEach((({resolve:t})=>t()))}catch(t){throw this._downloadCallbacks.forEach((({reject:e})=>e(t))),t}finally{this.downloading=!1,this._downloadCallbacks=[]}return this}}_e.Asset=n}),464,[1,465,466,462,467,137,461,468,469]); diff --git a/static/example-app/index.html b/static/example-app/index.html index ef2d61e..c1a4e33 100644 --- a/static/example-app/index.html +++ b/static/example-app/index.html @@ -32,6 +32,6 @@
- +