expo-dev-launcher 3.6.4 → 3.6.6

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/CHANGELOG.md CHANGED
@@ -10,6 +10,17 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 3.6.6 — 2024-02-01
14
+
15
+ ### 💡 Others
16
+
17
+ - Update auth session URL to prompt user to select account. ([#26780](https://github.com/expo/expo/pull/26780) by [@gabrieldonadel](https://github.com/gabrieldonadel))
18
+ - Update ModalStack animations. ([#26802](https://github.com/expo/expo/pull/26802) by [@gabrieldonadel](https://github.com/gabrieldonadel))
19
+
20
+ ## 3.6.5 — 2024-01-26
21
+
22
+ _This version does not introduce any user-facing changes._
23
+
13
24
  ## 3.6.4 — 2024-01-23
14
25
 
15
26
  ### 🐛 Bug fixes
@@ -53,7 +53,7 @@ android {
53
53
  minSdkVersion safeExtGet('minSdkVersion', 21)
54
54
  targetSdkVersion safeExtGet("targetSdkVersion", 34)
55
55
  versionCode 9
56
- versionName "3.6.4"
56
+ versionName "3.6.6"
57
57
  }
58
58
 
59
59
 
@@ -1151,14 +1151,14 @@ __d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",
1151
1151
  __d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.sleepAsync=function(n){return u.apply(this,arguments)};var t=n(r(d[1]));function u(){return(u=(0,t.default)((function*(n){return new Promise((function(t){return setTimeout(t,n)}))}))).apply(this,arguments)}}),1018,[6,341]);
1152
1152
  __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.useIsMounted=function(){var n=t.useRef(!1);return t.useEffect((function(){return n.current=!0,function(){n.current=!1}}),[]),t.useCallback((function(){return n.current}),[])};var t=(function(t,u){if(!u&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var f=n(u);if(f&&f.has(t))return f.get(t);var o={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if("default"!==l&&Object.prototype.hasOwnProperty.call(t,l)){var p=c?Object.getOwnPropertyDescriptor(t,l):null;p&&(p.get||p.set)?Object.defineProperty(o,l,p):o[l]=t[l]}o.default=t,f&&f.set(t,o);return o})(r(d[0]));function n(t){if("function"!=typeof WeakMap)return null;var u=new WeakMap,f=new WeakMap;return(n=function(t){return t?f:u})(t)}}),1019,[101]);
1153
1153
  __d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.UserContextProvider=function(t){var h,j,O=t.children,U=t.initialUserData,b=o.useState(U),x=(0,u.default)(b,2),M=x[0],S=x[1],_=o.useState(null!=(h=null==U||null==(j=U.accounts[0])?void 0:j.id)?h:''),w=(0,u.default)(_,2),C=w[0],D=w[1],k=(0,p.useIsMounted)(),W=null==M?void 0:M.accounts.find((function(t){return t.id===C}));function B(t){return I.apply(this,arguments)}function I(){return(I=(0,n.default)((function*(t){var n=yield(0,f.startAuthSessionAsync)(t).catch((function(t){}));if(n){yield(0,s.setSessionAsync)(n);var u=yield(0,c.getUserProfileAsync)();k()&&(S(u),D(u.accounts[0].id))}else yield F()}))).apply(this,arguments)}function Q(){return q.apply(this,arguments)}function q(){return(q=(0,n.default)((function*(){var t=yield F();return yield(0,y.resetBranchQueries)(),t}))).apply(this,arguments)}function z(){return E.apply(this,arguments)}function E(){return E=(0,n.default)((function*(){var t=yield(0,l.restoreUserAsync)();t?k()&&(S(t),D(t.accounts[0].id)):F()})),E.apply(this,arguments)}function F(){return G.apply(this,arguments)}function G(){return(G=(0,n.default)((function*(){return k()&&(S(void 0),D(void 0)),yield(0,s.setSessionAsync)(null)}))).apply(this,arguments)}var H=o.useMemo((function(){return{login:B,logout:Q,restore:z,setUserData:S,setSelectedAccount:D}}),[]);return(0,v.jsx)(A.Provider,{value:H,children:(0,v.jsx)(P.Provider,{value:{userData:M,selectedAccount:W,isAuthenticated:null!=M},children:O})})},e.useUserActions=e.useUser=void 0;var n=t(r(d[1])),u=t(r(d[2])),o=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var u=h(n);if(u&&u.has(t))return u.get(t);var o={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var l=s?Object.getOwnPropertyDescriptor(t,c):null;l&&(l.get||l.set)?Object.defineProperty(o,c,l):o[c]=t[c]}o.default=t,u&&u.set(t,o);return o})(r(d[3])),s=r(d[4]),c=r(d[5]),l=r(d[6]),f=r(d[7]),p=r(d[8]),y=r(d[9]),v=r(d[10]);function h(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,u=new WeakMap;return(h=function(t){return t?u:n})(t)}var A=o.createContext(null),P=o.createContext(null);e.useUser=function(){return o.useContext(P)};e.useUserActions=function(){return o.useContext(A)}}),1020,[6,341,51,101,1002,1011,1010,1021,1019,950,219]);
1154
- __d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.startAuthSessionAsync=function(n){return c.apply(this,arguments)};var t=n(r(d[1])),u=n(r(d[2])),s=r(d[3]),o=r(d[4]);function c(){return(c=(0,t.default)((function*(n){var t=`${yield(0,o.getAuthSchemeAsync)()}://auth`,c=`${s.websiteOrigin}/${n}?app_redirect_uri=${encodeURIComponent(t)}`,p=yield(0,o.openAuthSessionAsync)(c,t);if('success'===p.type){var l=u.default.parse(p.url,!0).query;return decodeURIComponent(l.session_secret)}return null}))).apply(this,arguments)}}),1021,[6,341,1022,1002,1003]);
1154
+ __d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.startAuthSessionAsync=function(n){return o.apply(this,arguments)};var t=n(r(d[1])),u=n(r(d[2])),s=r(d[3]),c=r(d[4]);function o(){return(o=(0,t.default)((function*(n){var t=`${yield(0,c.getAuthSchemeAsync)()}://auth`,o=`${s.websiteOrigin}/${n}?confirm_account=1&app_redirect_uri=${encodeURIComponent(t)}`,p=yield(0,c.openAuthSessionAsync)(o,t);if('success'===p.type){var l=u.default.parse(p.url,!0).query;return decodeURIComponent(l.session_secret)}return null}))).apply(this,arguments)}}),1021,[6,341,1022,1002,1003]);
1155
1155
  __d((function(g,r,_i,a,m,e,d){'use strict';var t=r(d[0]),s=r(d[1]);function h(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}e.parse=q,e.resolve=function(t,s){return q(t,!1,!0).resolve(s)},e.resolveObject=function(t,s){return t?q(t,!1,!0).resolveObject(s):s},e.format=function(t){s.isString(t)&&(t=q(t));return t instanceof h?t.format():h.prototype.format.call(t)},e.Url=h;var o=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,i=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=['{','}','|','\\','^','`'].concat(['<','>','"','`',' ','\r','\n','\t']),p=['\''].concat(l),c=['%','/','?',';','#'].concat(p),f=['/','?','#'],u=/^[+a-z0-9A-Z_-]{0,63}$/,v=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,y={javascript:!0,'javascript:':!0},b={javascript:!0,'javascript:':!0},O={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,'http:':!0,'https:':!0,'ftp:':!0,'gopher:':!0,'file:':!0},j=r(d[2]);function q(t,o,n){if(t&&s.isObject(t)&&t instanceof h)return t;var i=new h;return i.parse(t,o,n),i}h.prototype.parse=function(h,n,l){if(!s.isString(h))throw new TypeError("Parameter 'url' must be a string, not "+typeof h);var q=h.indexOf('?'),x=-1!==q&&q<h.indexOf('#')?'?':'#',A=h.split(x);A[0]=A[0].replace(/\\/g,'/');var C=h=A.join(x);if(C=C.trim(),!l&&1===h.split('#').length){var I=i.exec(C);if(I)return this.path=C,this.href=C,this.pathname=I[1],I[2]?(this.search=I[2],this.query=n?j.parse(this.search.substr(1)):this.search.substr(1)):n&&(this.search='',this.query={}),this}var w=o.exec(C);if(w){var U=(w=w[0]).toLowerCase();this.protocol=U,C=C.substr(w.length)}if(l||w||C.match(/^\/\/[^@\/]+@[^@\/]+/)){var k='//'===C.substr(0,2);!k||w&&b[w]||(C=C.substr(2),this.slashes=!0)}if(!b[w]&&(k||w&&!O[w])){for(var N,R,S=-1,$=0;$<f.length;$++){-1!==(_=C.indexOf(f[$]))&&(-1===S||_<S)&&(S=_)}-1!==(R=-1===S?C.lastIndexOf('@'):C.lastIndexOf('@',S))&&(N=C.slice(0,R),C=C.slice(R+1),this.auth=decodeURIComponent(N)),S=-1;for($=0;$<c.length;$++){var _;-1!==(_=C.indexOf(c[$]))&&(-1===S||_<S)&&(S=_)}-1===S&&(S=C.length),this.host=C.slice(0,S),C=C.slice(S),this.parseHost(),this.hostname=this.hostname||'';var z='['===this.hostname[0]&&']'===this.hostname[this.hostname.length-1];if(!z)for(var H=this.hostname.split(/\./),L=($=0,H.length);$<L;$++){var Z=H[$];if(Z&&!Z.match(u)){for(var E='',P=0,T=Z.length;P<T;P++)Z.charCodeAt(P)>127?E+='x':E+=Z[P];if(!E.match(u)){var B=H.slice(0,$),D=H.slice($+1),F=Z.match(v);F&&(B.push(F[1]),D.unshift(F[2])),D.length&&(C='/'+D.join('.')+C),this.hostname=B.join('.');break}}}this.hostname.length>255?this.hostname='':this.hostname=this.hostname.toLowerCase(),z||(this.hostname=t.toASCII(this.hostname));var G=this.port?':'+this.port:'',J=this.hostname||'';this.host=J+G,this.href+=this.host,z&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),'/'!==C[0]&&(C='/'+C))}if(!y[U])for($=0,L=p.length;$<L;$++){var K=p[$];if(-1!==C.indexOf(K)){var M=encodeURIComponent(K);M===K&&(M=escape(K)),C=C.split(K).join(M)}}var Q=C.indexOf('#');-1!==Q&&(this.hash=C.substr(Q),C=C.slice(0,Q));var V=C.indexOf('?');if(-1!==V?(this.search=C.substr(V),this.query=C.substr(V+1),n&&(this.query=j.parse(this.query)),C=C.slice(0,V)):n&&(this.search='',this.query={}),C&&(this.pathname=C),O[U]&&this.hostname&&!this.pathname&&(this.pathname='/'),this.pathname||this.search){G=this.pathname||'';var W=this.search||'';this.path=G+W}return this.href=this.format(),this},h.prototype.format=function(){var t=this.auth||'';t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,':'),t+='@');var h=this.protocol||'',o=this.pathname||'',n=this.hash||'',i=!1,l='';this.host?i=t+this.host:this.hostname&&(i=t+(-1===this.hostname.indexOf(':')?this.hostname:'['+this.hostname+']'),this.port&&(i+=':'+this.port)),this.query&&s.isObject(this.query)&&Object.keys(this.query).length&&(l=j.stringify(this.query));var p=this.search||l&&'?'+l||'';return h&&':'!==h.substr(-1)&&(h+=':'),this.slashes||(!h||O[h])&&!1!==i?(i='//'+(i||''),o&&'/'!==o.charAt(0)&&(o='/'+o)):i||(i=''),n&&'#'!==n.charAt(0)&&(n='#'+n),p&&'?'!==p.charAt(0)&&(p='?'+p),h+i+(o=o.replace(/[?#]/g,(function(t){return encodeURIComponent(t)})))+(p=p.replace('#','%23'))+n},h.prototype.resolve=function(t){return this.resolveObject(q(t,!1,!0)).format()},h.prototype.resolveObject=function(t){if(s.isString(t)){var o=new h;o.parse(t,!1,!0),t=o}for(var n=new h,i=Object.keys(this),l=0;l<i.length;l++){var p=i[l];n[p]=this[p]}if(n.hash=t.hash,''===t.href)return n.href=n.format(),n;if(t.slashes&&!t.protocol){for(var c=Object.keys(t),f=0;f<c.length;f++){var u=c[f];'protocol'!==u&&(n[u]=t[u])}return O[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname='/'),n.href=n.format(),n}if(t.protocol&&t.protocol!==n.protocol){if(!O[t.protocol]){for(var v=Object.keys(t),y=0;y<v.length;y++){var j=v[y];n[j]=t[j]}return n.href=n.format(),n}if(n.protocol=t.protocol,t.host||b[t.protocol])n.pathname=t.pathname;else{for(var q=(t.pathname||'').split('/');q.length&&!(t.host=q.shift()););t.host||(t.host=''),t.hostname||(t.hostname=''),''!==q[0]&&q.unshift(''),q.length<2&&q.unshift(''),n.pathname=q.join('/')}if(n.search=t.search,n.query=t.query,n.host=t.host||'',n.auth=t.auth,n.hostname=t.hostname||t.host,n.port=t.port,n.pathname||n.search){var x=n.pathname||'',A=n.search||'';n.path=x+A}return n.slashes=n.slashes||t.slashes,n.href=n.format(),n}var C=n.pathname&&'/'===n.pathname.charAt(0),I=t.host||t.pathname&&'/'===t.pathname.charAt(0),w=I||C||n.host&&t.pathname,U=w,k=n.pathname&&n.pathname.split('/')||[],N=(q=t.pathname&&t.pathname.split('/')||[],n.protocol&&!O[n.protocol]);if(N&&(n.hostname='',n.port=null,n.host&&(''===k[0]?k[0]=n.host:k.unshift(n.host)),n.host='',t.protocol&&(t.hostname=null,t.port=null,t.host&&(''===q[0]?q[0]=t.host:q.unshift(t.host)),t.host=null),w=w&&(''===q[0]||''===k[0])),I)n.host=t.host||''===t.host?t.host:n.host,n.hostname=t.hostname||''===t.hostname?t.hostname:n.hostname,n.search=t.search,n.query=t.query,k=q;else if(q.length)k||(k=[]),k.pop(),k=k.concat(q),n.search=t.search,n.query=t.query;else if(!s.isNullOrUndefined(t.search)){if(N)n.hostname=n.host=k.shift(),(z=!!(n.host&&n.host.indexOf('@')>0)&&n.host.split('@'))&&(n.auth=z.shift(),n.host=n.hostname=z.shift());return n.search=t.search,n.query=t.query,s.isNull(n.pathname)&&s.isNull(n.search)||(n.path=(n.pathname?n.pathname:'')+(n.search?n.search:'')),n.href=n.format(),n}if(!k.length)return n.pathname=null,n.search?n.path='/'+n.search:n.path=null,n.href=n.format(),n;for(var R=k.slice(-1)[0],S=(n.host||t.host||k.length>1)&&('.'===R||'..'===R)||''===R,$=0,_=k.length;_>=0;_--)'.'===(R=k[_])?k.splice(_,1):'..'===R?(k.splice(_,1),$++):$&&(k.splice(_,1),$--);if(!w&&!U)for(;$--;$)k.unshift('..');!w||''===k[0]||k[0]&&'/'===k[0].charAt(0)||k.unshift(''),S&&'/'!==k.join('/').substr(-1)&&k.push('');var z,H=''===k[0]||k[0]&&'/'===k[0].charAt(0);N&&(n.hostname=n.host=H?'':k.length?k.shift():'',(z=!!(n.host&&n.host.indexOf('@')>0)&&n.host.split('@'))&&(n.auth=z.shift(),n.host=n.hostname=z.shift()));return(w=w||n.host&&k.length)&&!H&&k.unshift(''),k.length?n.pathname=k.join('/'):(n.pathname=null,n.path=null),s.isNull(n.pathname)&&s.isNull(n.search)||(n.path=(n.pathname?n.pathname:'')+(n.search?n.search:'')),n.auth=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n},h.prototype.parseHost=function(){var t=this.host,s=n.exec(t);s&&(':'!==(s=s[0])&&(this.port=s.substr(1)),t=t.substr(0,t.length-s.length)),t&&(this.hostname=t)}}),1022,[1023,1024,1025]);
1156
1156
  __d((function(g,r,_i,a,_m,e,d){!(function(n){var o='object'==typeof e&&e&&!e.nodeType&&e,t='object'==typeof _m&&_m&&!_m.nodeType&&_m,i='object'==typeof g&&g;i.global!==i&&i.window!==i&&i.self!==i||(n=i);var f,u,c=2147483647,l=36,s=/^xn--/,p=/[^\x20-\x7E]/,h=/[\x2E\u3002\uFF0E\uFF61]/g,v={overflow:'Overflow: input needs wider integers to process','not-basic':'Illegal input >= 0x80 (not a basic code point)','invalid-input':'Invalid input'},w=Math.floor,y=String.fromCharCode;function x(n){throw RangeError(v[n])}function C(n,o){for(var t=n.length,i=[];t--;)i[t]=o(n[t]);return i}function b(n,o){var t=n.split('@'),i='';return t.length>1&&(i=t[0]+'@',n=t[1]),i+C((n=n.replace(h,'.')).split('.'),o).join('.')}function j(n){for(var o,t,i=[],f=0,u=n.length;f<u;)(o=n.charCodeAt(f++))>=55296&&o<=56319&&f<u?56320==(64512&(t=n.charCodeAt(f++)))?i.push(((1023&o)<<10)+(1023&t)+65536):(i.push(o),f--):i.push(o);return i}function A(n){return C(n,(function(n){var o='';return n>65535&&(o+=y((n-=65536)>>>10&1023|55296),n=56320|1023&n),o+=y(n)})).join('')}function I(n,o){return n+22+75*(n<26)-((0!=o)<<5)}function E(n,o,t){var i=0;for(n=t?w(n/700):n>>1,n+=w(n/o);n>455;i+=l)n=w(n/35);return w(i+36*n/(n+38))}function F(n){var o,t,i,f,u,s,p,h,v,y,C,b=[],j=n.length,I=0,F=128,m=72;for((t=n.lastIndexOf("-"))<0&&(t=0),i=0;i<t;++i)n.charCodeAt(i)>=128&&x('not-basic'),b.push(n.charCodeAt(i));for(f=t>0?t+1:0;f<j;){for(u=I,s=1,p=l;f>=j&&x('invalid-input'),((h=(C=n.charCodeAt(f++))-48<10?C-22:C-65<26?C-65:C-97<26?C-97:l)>=l||h>w((c-I)/s))&&x('overflow'),I+=h*s,!(h<(v=p<=m?1:p>=m+26?26:p-m));p+=l)s>w(c/(y=l-v))&&x('overflow'),s*=y;m=E(I-u,o=b.length+1,0==u),w(I/o)>c-F&&x('overflow'),F+=w(I/o),I%=o,b.splice(I++,0,F)}return A(b)}function m(n){var o,t,i,f,u,s,p,h,v,C,b,A,F,m,O,S=[];for(A=(n=j(n)).length,o=128,t=0,u=72,s=0;s<A;++s)(b=n[s])<128&&S.push(y(b));for(i=f=S.length,f&&S.push("-");i<A;){for(p=c,s=0;s<A;++s)(b=n[s])>=o&&b<p&&(p=b);for(p-o>w((c-t)/(F=i+1))&&x('overflow'),t+=(p-o)*F,o=p,s=0;s<A;++s)if((b=n[s])<o&&++t>c&&x('overflow'),b==o){for(h=t,v=l;!(h<(C=v<=u?1:v>=u+26?26:v-u));v+=l)O=h-C,m=l-C,S.push(y(I(C+O%m,0))),h=w(O/m);S.push(y(I(h,0))),u=E(t,F,i==f),t=0,++i}++t,++o}return S.join('')}if(f={version:'1.3.2',ucs2:{decode:j,encode:A},decode:F,encode:m,toASCII:function(n){return b(n,(function(n){return p.test(n)?'xn--'+m(n):n}))},toUnicode:function(n){return b(n,(function(n){return s.test(n)?F(n.slice(4).toLowerCase()):n}))}},'function'==typeof define&&'object'==typeof define.amd&&define.amd)define('punycode',(function(){return f}));else if(o&&t)if(_m.exports==o)t.exports=f;else for(u in f)f.hasOwnProperty(u)&&(o[u]=f[u]);else n.punycode=f})(this)}),1023,[]);
1157
1157
  __d((function(g,r,i,a,m,e,d){'use strict';m.exports={isString:function(n){return'string'==typeof n},isObject:function(n){return'object'==typeof n&&null!==n},isNull:function(n){return null===n},isNullOrUndefined:function(n){return null==n}}}),1024,[]);
1158
1158
  __d((function(g,r,i,a,m,e,d){'use strict';e.decode=e.parse=r(d[0]),e.encode=e.stringify=r(d[1])}),1025,[1026,1027]);
1159
1159
  __d((function(g,r,_i,a,m,e,d){'use strict';function t(t,n){return Object.prototype.hasOwnProperty.call(t,n)}m.exports=function(n,o,s,p){o=o||'&',s=s||'=';var u={};if('string'!=typeof n||0===n.length)return u;var c=/\+/g;n=n.split(o);var i=1e3;p&&'number'==typeof p.maxKeys&&(i=p.maxKeys);var f=n.length;i>0&&f>i&&(f=i);for(var y=0;y<f;++y){var l,v,b,h,x=n[y].replace(c,'%20'),O=x.indexOf(s);O>=0?(l=x.substr(0,O),v=x.substr(O+1)):(l=x,v=''),b=decodeURIComponent(l),h=decodeURIComponent(v),t(u,b)?Array.isArray(u[b])?u[b].push(h):u[b]=[u[b],h]:u[b]=h}return u}}),1026,[]);
1160
1160
  __d((function(g,r,i,a,m,e,d){'use strict';var n=function(n){switch(typeof n){case'string':return n;case'boolean':return n?'true':'false';case'number':return isFinite(n)?n:'';default:return''}};m.exports=function(o,t,c,u){return t=t||'&',c=c||'=',null===o&&(o=void 0),'object'==typeof o?Object.keys(o).map((function(u){var s=encodeURIComponent(n(u))+c;return Array.isArray(o[u])?o[u].map((function(o){return s+encodeURIComponent(n(o))})).join(t):s+encodeURIComponent(n(o[u]))})).join(t):u?encodeURIComponent(n(u))+c+encodeURIComponent(n(o)):''}}),1027,[]);
1161
- __d((function(g,r,_i,a,_m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.ModalStackProvider=function(t){var n=t.children,o=t.modalStack,l=void 0===o?b:o,p=(0,s.useStackItems)(l),O=u.useRef(new i.Animated.Value(0)),j=p.some((function(t){return'settled'===t.status||'pushing'===t.status}));u.useEffect((function(){j?i.Animated.spring(O.current,{toValue:1,useNativeDriver:!1}).start():i.Animated.spring(O.current,{toValue:0,useNativeDriver:!1}).start()}),[j]);var h=O.current.interpolate({inputRange:[0,1],outputRange:['rgba(0,0,0,0)','rgba(0,0,0,0.75)']});return(0,c.jsxs)(v.Provider,{value:{push:function(t){return l.push({element:t})},pop:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return l.pop(t)}},children:[n,(0,c.jsx)(i.Animated.View,{style:[i.StyleSheet.absoluteFillObject,{backgroundColor:h}],pointerEvents:j?'box-none':'none',children:(0,c.jsx)(i.Pressable,{onPress:function(){l.pop()},style:[i.StyleSheet.absoluteFillObject],children:p.map((function(t){return(0,c.jsx)(y,f(f({},t),{},{onClose:t.pop,onPopEnd:t.onPopEnd,onPushEnd:t.onPushEnd}),t.key)}))})})]})},e.useModalStack=void 0;var n=t(r(d[1])),o=r(d[2]),u=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=l(n);if(o&&o.has(t))return o.get(t);var u={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var c=i?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(u,s,c):u[s]=t[s]}u.default=t,o&&o.set(t,u);return u})(r(d[3])),i=r(d[4]),s=r(d[5]),c=r(d[6]);function l(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(l=function(t){return t?o:n})(t)}function p(t,n){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);n&&(u=u.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),o.push.apply(o,u)}return o}function f(t){for(var o=1;o<arguments.length;o++){var u=null!=arguments[o]?arguments[o]:{};o%2?p(Object(u),!0).forEach((function(o){(0,n.default)(t,o,u[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(u)):p(Object(u)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(u,n))}))}return t}var v=u.createContext(null);e.useModalStack=function(){return u.useContext(v)};var b=(0,s.createAsyncStack)();function y(t){var n=t.status,s=t.data,l=t.onPopEnd,p=t.onPushEnd,f=s.element,v=(0,i.useWindowDimensions)().height,b=u.useRef(new i.Animated.Value('settled'===n?1:0));u.useEffect((function(){'pushing'===n&&i.Animated.spring(b.current,{toValue:1,stiffness:1e3,damping:500,mass:3,overshootClamping:!0,useNativeDriver:!0}).start((function(){return p()})),'popping'===n&&i.Animated.spring(b.current,{toValue:0,stiffness:1e3,damping:500,mass:3,overshootClamping:!0,useNativeDriver:!0}).start((function(){return l()}))}),[n]);var y=b.current.interpolate({inputRange:[0,1],outputRange:[v,0]});return(0,c.jsx)(i.Animated.View,{pointerEvents:'popping'===n?'none':'box-none',style:[i.StyleSheet.absoluteFillObject,{justifyContent:'center',transform:[{translateY:y}]}],children:(0,c.jsx)(o.Button.Container,{children:f})})}}),1028,[6,40,650,101,2,1006,219]);
1161
+ __d((function(g,r,_i,a,_m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.ModalStackProvider=function(t){var n=t.children,o=t.modalStack,l=void 0===o?y:o,p=(0,c.useStackItems)(l),O=u.useRef(new i.Animated.Value(0)),j=p.some((function(t){return'settled'===t.status||'pushing'===t.status}));return u.useEffect((function(){j?i.Animated.timing(O.current,{toValue:1,useNativeDriver:!0,duration:200}).start():i.Animated.timing(O.current,{toValue:0,useNativeDriver:!0,duration:200}).start()}),[j]),(0,s.jsxs)(b.Provider,{value:{push:function(t){return l.push({element:t})},pop:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return l.pop(t)}},children:[n,(0,s.jsx)(i.Animated.View,{style:[i.StyleSheet.absoluteFillObject,{backgroundColor:'rgba(0,0,0,0.75)',opacity:O.current}],pointerEvents:j?'box-none':'none',children:(0,s.jsx)(i.Pressable,{onPress:function(){l.pop()},style:[i.StyleSheet.absoluteFillObject],children:p.map((function(t){return(0,s.jsx)(v,f(f({},t),{},{onClose:t.pop,onPopEnd:t.onPopEnd,onPushEnd:t.onPushEnd}),t.key)}))})})]})},e.useModalStack=void 0;var n=t(r(d[1])),o=r(d[2]),u=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=l(n);if(o&&o.has(t))return o.get(t);var u={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var s=i?Object.getOwnPropertyDescriptor(t,c):null;s&&(s.get||s.set)?Object.defineProperty(u,c,s):u[c]=t[c]}u.default=t,o&&o.set(t,u);return u})(r(d[3])),i=r(d[4]),c=r(d[5]),s=r(d[6]);function l(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(l=function(t){return t?o:n})(t)}function p(t,n){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);n&&(u=u.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),o.push.apply(o,u)}return o}function f(t){for(var o=1;o<arguments.length;o++){var u=null!=arguments[o]?arguments[o]:{};o%2?p(Object(u),!0).forEach((function(o){(0,n.default)(t,o,u[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(u)):p(Object(u)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(u,n))}))}return t}var b=u.createContext(null);e.useModalStack=function(){return u.useContext(b)};var y=(0,c.createAsyncStack)();function v(t){var n=t.status,u=t.data.element;return(0,s.jsx)(i.Animated.View,{pointerEvents:'popping'===n?'none':'box-none',style:[i.StyleSheet.absoluteFillObject,{justifyContent:'center'}],children:(0,s.jsx)(o.Button.Container,{children:u})})}}),1028,[6,40,650,101,2,1006,219]);
1162
1162
  __d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.PendingDeepLinkProvider=function(n){var l=n.children,v=n.initialPendingDeepLink,k=void 0===v?'':v,D=(0,p.useModalStack)(),P=u.useState(k),L=(0,t.default)(P,2),j=L[0],y=L[1];return u.useEffect((function(){(0,f.getPendingDeepLink)().then((function(n){n&&(y(n),D.push((function(){return(0,c.jsx)(o.DeepLinkModal,{pendingDeepLink:n})})))}))}),[]),u.useEffect((function(){var n=(0,f.addDeepLinkListener)((function(n){var t=n;t&&(y(t),D.push((function(){return(0,c.jsx)(o.DeepLinkModal,{pendingDeepLink:t})})))}));return function(){n.remove()}}),[]),(0,c.jsx)(s.Provider,{value:{pendingDeepLink:j,setPendingDeepLink:y},children:l})},e.usePendingDeepLink=void 0;var t=n(r(d[1])),u=(function(n,t){if(!t&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=l(t);if(u&&u.has(n))return u.get(n);var o={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in n)if("default"!==p&&Object.prototype.hasOwnProperty.call(n,p)){var c=f?Object.getOwnPropertyDescriptor(n,p):null;c&&(c.get||c.set)?Object.defineProperty(o,p,c):o[p]=n[p]}o.default=n,u&&u.set(n,o);return o})(r(d[2])),o=(r(d[3]),r(d[4])),f=r(d[5]),p=r(d[6]),c=r(d[7]);function l(n){if("function"!=typeof WeakMap)return null;var t=new WeakMap,u=new WeakMap;return(l=function(n){return n?u:t})(n)}var s=u.createContext(null);e.usePendingDeepLink=function(){return u.useContext(s)}}),1029,[6,51,101,2,1030,906,1028,219]);
1163
1163
  __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.DeepLinkModal=function(t){var s=t.pendingDeepLink,l=(0,o.useModalStack)();return(0,x.jsxs)(u.BaseModal,{title:"Deep link received:",children:[(0,x.jsx)(n.Spacer.Vertical,{size:"small"}),(0,x.jsx)(n.View,{py:"small",bg:"secondary",rounded:"medium",px:"medium",children:(0,x.jsx)(n.Text,{type:"mono",numberOfLines:3,children:s})}),(0,x.jsx)(n.Spacer.Vertical,{size:"large"}),(0,x.jsx)(h,{}),(0,x.jsx)(n.Spacer.Vertical,{size:"large"}),(0,x.jsxs)(n.View,{children:[(0,x.jsxs)(n.Text,{children:[(0,x.jsx)(n.Text,{weight:"bold",children:"Note: "}),"The next app you open will receive this link"]}),(0,x.jsx)(n.Spacer.Vertical,{size:"medium"}),(0,x.jsx)(n.Button.FadeOnPressContainer,{bg:"ghost",rounded:"medium",border:"ghost",onPress:function(){l.pop()},children:(0,x.jsx)(n.View,{py:"small",px:"medium",children:(0,x.jsx)(n.Button.Text,{size:"large",align:"center",weight:"semibold",color:"ghost",children:"Go back"})})})]})]})};var n=r(d[0]),t=((function(n,t){if(!t&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var s=j(t);if(s&&s.has(n))return s.get(n);var l={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var u=o?Object.getOwnPropertyDescriptor(n,c):null;u&&(u.get||u.set)?Object.defineProperty(l,c,u):l[c]=n[c]}l.default=n,s&&s.set(n,l)})(r(d[1])),r(d[2])),s=r(d[3]),l=r(d[4]),o=r(d[5]),c=r(d[6]),u=r(d[7]),p=r(d[8]),x=r(d[9]);function j(n){if("function"!=typeof WeakMap)return null;var t=new WeakMap,s=new WeakMap;return(j=function(n){return n?s:t})(n)}function h(){var u=(0,o.useModalStack)(),j=(0,l.useDevSessions)(),h=j.data,v=void 0===h?[]:h,y=j.isFetching,b=(0,c.useRecentlyOpenedApps)(),w=b.data,V=void 0===w?[]:w,S=b.isFetching,z=function(n){var t=n.url;(0,s.loadApp)(t).catch((function(n){u.push((function(){return(0,x.jsx)(p.LoadAppErrorModal,{message:n.message})}))}))};return y||S?(0,x.jsx)(t.ActivityIndicator,{}):v.length>0||V.length>0?(0,x.jsxs)(n.View,{children:[(0,x.jsx)(n.Text,{size:"large",children:"Select an app to open it:"}),(0,x.jsxs)(t.ScrollView,{style:{maxHeight:300},children:[(0,x.jsx)(n.Spacer.Vertical,{size:"medium"}),v.length>0&&(0,x.jsx)(x.Fragment,{children:v.map((function(t,s,l){var o=s===l.length-1;return(0,x.jsxs)(n.View,{children:[(0,x.jsx)(f,{label:t.description,onPress:function(){return z(t)}}),!o&&(0,x.jsx)(n.Divider,{})]},t.url)}))}),V.length>0&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(n.Divider,{}),V.map((function(t,s,l){var o=s===l.length-1;return(0,x.jsxs)(n.View,{children:[(0,x.jsx)(f,{label:t.name,onPress:function(){return z(t)}}),!o&&(0,x.jsx)(n.Divider,{})]},t.url)}))]})]})]}):(0,x.jsxs)(n.View,{children:[(0,x.jsx)(n.Text,{size:"large",weight:"medium",children:"Unable to find any packagers"}),(0,x.jsx)(n.Spacer.Vertical,{size:"small"}),(0,x.jsx)(n.Text,{children:"Start a local development server with:"}),(0,x.jsx)(n.Spacer.Vertical,{size:"small"}),(0,x.jsx)(n.View,{bg:"secondary",border:"default",rounded:"medium",padding:"medium",children:(0,x.jsx)(n.Text,{type:"mono",children:"expo start"})})]})}function f(t){var s=t.onPress,l=t.label;return(0,x.jsx)(n.View,{rounded:"medium",children:(0,x.jsx)(n.Button.FadeOnPressContainer,{bg:"default",onPress:s,children:(0,x.jsxs)(n.Row,{align:"center",py:"medium",px:"small",children:[(0,x.jsx)(n.StatusIndicator,{size:"small",status:"success"}),(0,x.jsx)(n.Spacer.Horizontal,{size:"small"}),(0,x.jsx)(n.Text,{children:l}),(0,x.jsx)(n.Spacer.Horizontal,{}),(0,x.jsx)(n.ChevronRightIcon,{})]})})})}}),1030,[650,101,2,906,1017,1028,1031,1032,1033,219]);
1164
1164
  __d((function(g,r,i,_a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.RecentlyOpenedAppsProvider=function(t){var n=t.children,s=t.initialApps,l=void 0===s?[]:s,o=u.useState(l),f=(0,a.default)(o,2),v=f[0],y=f[1];return(0,p.jsx)(c.Provider,{value:{recentApps:v,setRecentApps:y},children:n})},e.useRecentlyOpenedApps=function(){var t=u.useState(''),s=(0,a.default)(t,2),p=s[0],o=s[1],v=u.useState(!1),y=(0,a.default)(v,2),h=y[0],O=y[1],A=u.useContext(c),j=A.recentApps,b=A.setRecentApps;function P(){return(P=(0,n.default)((function*(){yield(0,l.clearRecentlyOpenedApps)(),b([])}))).apply(this,arguments)}return u.useEffect((function(){O(!0),(0,l.getRecentlyOpenedApps)().then((function(t){var n,a={};for(var u of t){var s=`${u.url}`;if(u.id=s,f(u)){var l,p,o=null!=(l=null==(p=n)?void 0:p.timestamp)?l:0;u.timestamp>o&&(n=u)}else{var c,v,y=null!=(c=null==(v=a[s])?void 0:v.timestamp)?c:0;u.timestamp>y&&(a[s]=u)}}var h=Object.values(a);n&&h.push(n);var A=h.sort((function(t,n){return n.timestamp-t.timestamp}));b(A),O(!1)})).catch((function(t){O(!1),o(t.message),b([])}))}),[]),{data:j,isFetching:h,error:p,clear:function(){return P.apply(this,arguments)}}};var n=t(r(d[1])),a=t(r(d[2])),u=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var a=o(n);if(a&&a.has(t))return a.get(t);var u={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if("default"!==l&&Object.prototype.hasOwnProperty.call(t,l)){var p=s?Object.getOwnPropertyDescriptor(t,l):null;p&&(p.get||p.set)?Object.defineProperty(u,l,p):u[l]=t[l]}u.default=t,a&&a.set(t,u);return u})(r(d[3])),s=t(r(d[4])),l=r(d[5]),p=r(d[6]);function o(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,a=new WeakMap;return(o=function(t){return t?a:n})(t)}var c=u.createContext({recentApps:[],setRecentApps:function(){}});function f(t){var n=s.default.parse(t.url,!0).host;return(null==n?void 0:n.startsWith('192.168.'))||(null==n?void 0:n.startsWith('172.'))||(null==n?void 0:n.startsWith('10.'))||(null==n?void 0:n.startsWith('localhost:'))}}),1031,[6,341,51,101,1022,906,219]);
@@ -7,7 +7,7 @@ export async function startAuthSessionAsync(type: 'signup' | 'login') {
7
7
  const scheme = await getAuthSchemeAsync();
8
8
 
9
9
  const redirectBase = `${scheme}://auth`;
10
- const authSessionURL = `${websiteOrigin}/${type}?app_redirect_uri=${encodeURIComponent(
10
+ const authSessionURL = `${websiteOrigin}/${type}?confirm_account=1&app_redirect_uri=${encodeURIComponent(
11
11
  redirectBase
12
12
  )}`;
13
13
 
@@ -1,6 +1,6 @@
1
1
  import { Button } from 'expo-dev-client-components';
2
2
  import * as React from 'react';
3
- import { Animated, StyleSheet, useWindowDimensions, Pressable } from 'react-native';
3
+ import { Animated, StyleSheet, Pressable } from 'react-native';
4
4
 
5
5
  import {
6
6
  createAsyncStack,
@@ -27,23 +27,20 @@ export function ModalStackProvider({ children, modalStack = defaultModalStack })
27
27
 
28
28
  React.useEffect(() => {
29
29
  if (hasModal) {
30
- Animated.spring(animatedValue.current, {
30
+ Animated.timing(animatedValue.current, {
31
31
  toValue: 1,
32
- useNativeDriver: false,
32
+ useNativeDriver: true,
33
+ duration: 200,
33
34
  }).start();
34
35
  } else {
35
- Animated.spring(animatedValue.current, {
36
+ Animated.timing(animatedValue.current, {
36
37
  toValue: 0,
37
- useNativeDriver: false,
38
+ useNativeDriver: true,
39
+ duration: 200,
38
40
  }).start();
39
41
  }
40
42
  }, [hasModal]);
41
43
 
42
- const backgroundColor = animatedValue.current.interpolate({
43
- inputRange: [0, 1],
44
- outputRange: ['rgba(0,0,0,0)', 'rgba(0,0,0,0.75)'],
45
- });
46
-
47
44
  function push(element: StackItemComponent) {
48
45
  return modalStack.push({ element });
49
46
  }
@@ -56,7 +53,10 @@ export function ModalStackProvider({ children, modalStack = defaultModalStack })
56
53
  <ModalStackContext.Provider value={{ push, pop }}>
57
54
  {children}
58
55
  <Animated.View
59
- style={[StyleSheet.absoluteFillObject, { backgroundColor }]}
56
+ style={[
57
+ StyleSheet.absoluteFillObject,
58
+ { backgroundColor: 'rgba(0,0,0,0.75)', opacity: animatedValue.current },
59
+ ]}
60
60
  pointerEvents={hasModal ? 'box-none' : 'none'}>
61
61
  <Pressable
62
62
  onPress={() => {
@@ -79,52 +79,20 @@ export function ModalStackProvider({ children, modalStack = defaultModalStack })
79
79
  }
80
80
 
81
81
  type ModalScreenProps = StackItem & {
82
- onPushEnd: () => void;
83
- onPopEnd: () => void;
84
82
  onClose: () => void;
85
83
  };
86
84
 
87
- function ModalScreen({ status, data, onPopEnd, onPushEnd }: ModalScreenProps) {
85
+ function ModalScreen({ status, data }: ModalScreenProps) {
88
86
  const { element } = data;
89
- const { height } = useWindowDimensions();
90
-
91
- const animatedValue = React.useRef(new Animated.Value(status === 'settled' ? 1 : 0));
92
-
93
- React.useEffect(() => {
94
- if (status === 'pushing') {
95
- Animated.spring(animatedValue.current, {
96
- toValue: 1,
97
- stiffness: 1000,
98
- damping: 500,
99
- mass: 3,
100
- overshootClamping: true,
101
- useNativeDriver: true,
102
- }).start(() => onPushEnd());
103
- }
104
-
105
- if (status === 'popping') {
106
- Animated.spring(animatedValue.current, {
107
- toValue: 0,
108
- stiffness: 1000,
109
- damping: 500,
110
- mass: 3,
111
- overshootClamping: true,
112
- useNativeDriver: true,
113
- }).start(() => onPopEnd());
114
- }
115
- }, [status]);
116
-
117
- const translateY = animatedValue.current.interpolate({
118
- inputRange: [0, 1],
119
- outputRange: [height, 0],
120
- });
121
87
 
122
88
  return (
123
89
  <Animated.View
124
90
  pointerEvents={status === 'popping' ? 'none' : 'box-none'}
125
91
  style={[
126
92
  StyleSheet.absoluteFillObject,
127
- { justifyContent: 'center', transform: [{ translateY }] },
93
+ {
94
+ justifyContent: 'center',
95
+ },
128
96
  ]}>
129
97
  <Button.Container>{element}</Button.Container>
130
98
  </Animated.View>
package/ios/main.jsbundle CHANGED
@@ -1152,14 +1152,14 @@ __d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",
1152
1152
  __d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.sleepAsync=function(n){return u.apply(this,arguments)};var t=n(r(d[1]));function u(){return(u=(0,t.default)((function*(n){return new Promise((function(t){return setTimeout(t,n)}))}))).apply(this,arguments)}}),1019,[6,340]);
1153
1153
  __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.useIsMounted=function(){var n=t.useRef(!1);return t.useEffect((function(){return n.current=!0,function(){n.current=!1}}),[]),t.useCallback((function(){return n.current}),[])};var t=(function(t,u){if(!u&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var f=n(u);if(f&&f.has(t))return f.get(t);var o={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if("default"!==l&&Object.prototype.hasOwnProperty.call(t,l)){var p=c?Object.getOwnPropertyDescriptor(t,l):null;p&&(p.get||p.set)?Object.defineProperty(o,l,p):o[l]=t[l]}o.default=t,f&&f.set(t,o);return o})(r(d[0]));function n(t){if("function"!=typeof WeakMap)return null;var u=new WeakMap,f=new WeakMap;return(n=function(t){return t?f:u})(t)}}),1020,[101]);
1154
1154
  __d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.UserContextProvider=function(t){var h,j,O=t.children,U=t.initialUserData,b=o.useState(U),x=(0,u.default)(b,2),M=x[0],S=x[1],_=o.useState(null!=(h=null==U||null==(j=U.accounts[0])?void 0:j.id)?h:''),w=(0,u.default)(_,2),C=w[0],D=w[1],k=(0,p.useIsMounted)(),W=null==M?void 0:M.accounts.find((function(t){return t.id===C}));function B(t){return I.apply(this,arguments)}function I(){return(I=(0,n.default)((function*(t){var n=yield(0,f.startAuthSessionAsync)(t).catch((function(t){}));if(n){yield(0,s.setSessionAsync)(n);var u=yield(0,c.getUserProfileAsync)();k()&&(S(u),D(u.accounts[0].id))}else yield F()}))).apply(this,arguments)}function Q(){return q.apply(this,arguments)}function q(){return(q=(0,n.default)((function*(){var t=yield F();return yield(0,y.resetBranchQueries)(),t}))).apply(this,arguments)}function z(){return E.apply(this,arguments)}function E(){return E=(0,n.default)((function*(){var t=yield(0,l.restoreUserAsync)();t?k()&&(S(t),D(t.accounts[0].id)):F()})),E.apply(this,arguments)}function F(){return G.apply(this,arguments)}function G(){return(G=(0,n.default)((function*(){return k()&&(S(void 0),D(void 0)),yield(0,s.setSessionAsync)(null)}))).apply(this,arguments)}var H=o.useMemo((function(){return{login:B,logout:Q,restore:z,setUserData:S,setSelectedAccount:D}}),[]);return(0,v.jsx)(A.Provider,{value:H,children:(0,v.jsx)(P.Provider,{value:{userData:M,selectedAccount:W,isAuthenticated:null!=M},children:O})})},e.useUserActions=e.useUser=void 0;var n=t(r(d[1])),u=t(r(d[2])),o=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var u=h(n);if(u&&u.has(t))return u.get(t);var o={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var l=s?Object.getOwnPropertyDescriptor(t,c):null;l&&(l.get||l.set)?Object.defineProperty(o,c,l):o[c]=t[c]}o.default=t,u&&u.set(t,o);return o})(r(d[3])),s=r(d[4]),c=r(d[5]),l=r(d[6]),f=r(d[7]),p=r(d[8]),y=r(d[9]),v=r(d[10]);function h(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,u=new WeakMap;return(h=function(t){return t?u:n})(t)}var A=o.createContext(null),P=o.createContext(null);e.useUser=function(){return o.useContext(P)};e.useUserActions=function(){return o.useContext(A)}}),1021,[6,340,51,101,1003,1012,1011,1022,1020,951,220]);
1155
- __d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.startAuthSessionAsync=function(n){return c.apply(this,arguments)};var t=n(r(d[1])),u=n(r(d[2])),s=r(d[3]),o=r(d[4]);function c(){return(c=(0,t.default)((function*(n){var t=`${yield(0,o.getAuthSchemeAsync)()}://auth`,c=`${s.websiteOrigin}/${n}?app_redirect_uri=${encodeURIComponent(t)}`,p=yield(0,o.openAuthSessionAsync)(c,t);if('success'===p.type){var l=u.default.parse(p.url,!0).query;return decodeURIComponent(l.session_secret)}return null}))).apply(this,arguments)}}),1022,[6,340,1023,1003,1004]);
1155
+ __d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.startAuthSessionAsync=function(n){return o.apply(this,arguments)};var t=n(r(d[1])),u=n(r(d[2])),s=r(d[3]),c=r(d[4]);function o(){return(o=(0,t.default)((function*(n){var t=`${yield(0,c.getAuthSchemeAsync)()}://auth`,o=`${s.websiteOrigin}/${n}?confirm_account=1&app_redirect_uri=${encodeURIComponent(t)}`,p=yield(0,c.openAuthSessionAsync)(o,t);if('success'===p.type){var l=u.default.parse(p.url,!0).query;return decodeURIComponent(l.session_secret)}return null}))).apply(this,arguments)}}),1022,[6,340,1023,1003,1004]);
1156
1156
  __d((function(g,r,_i,a,m,e,d){'use strict';var t=r(d[0]),s=r(d[1]);function h(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}e.parse=q,e.resolve=function(t,s){return q(t,!1,!0).resolve(s)},e.resolveObject=function(t,s){return t?q(t,!1,!0).resolveObject(s):s},e.format=function(t){s.isString(t)&&(t=q(t));return t instanceof h?t.format():h.prototype.format.call(t)},e.Url=h;var o=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,i=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=['{','}','|','\\','^','`'].concat(['<','>','"','`',' ','\r','\n','\t']),p=['\''].concat(l),c=['%','/','?',';','#'].concat(p),f=['/','?','#'],u=/^[+a-z0-9A-Z_-]{0,63}$/,v=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,y={javascript:!0,'javascript:':!0},b={javascript:!0,'javascript:':!0},O={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,'http:':!0,'https:':!0,'ftp:':!0,'gopher:':!0,'file:':!0},j=r(d[2]);function q(t,o,n){if(t&&s.isObject(t)&&t instanceof h)return t;var i=new h;return i.parse(t,o,n),i}h.prototype.parse=function(h,n,l){if(!s.isString(h))throw new TypeError("Parameter 'url' must be a string, not "+typeof h);var q=h.indexOf('?'),x=-1!==q&&q<h.indexOf('#')?'?':'#',A=h.split(x);A[0]=A[0].replace(/\\/g,'/');var C=h=A.join(x);if(C=C.trim(),!l&&1===h.split('#').length){var I=i.exec(C);if(I)return this.path=C,this.href=C,this.pathname=I[1],I[2]?(this.search=I[2],this.query=n?j.parse(this.search.substr(1)):this.search.substr(1)):n&&(this.search='',this.query={}),this}var w=o.exec(C);if(w){var U=(w=w[0]).toLowerCase();this.protocol=U,C=C.substr(w.length)}if(l||w||C.match(/^\/\/[^@\/]+@[^@\/]+/)){var k='//'===C.substr(0,2);!k||w&&b[w]||(C=C.substr(2),this.slashes=!0)}if(!b[w]&&(k||w&&!O[w])){for(var N,R,S=-1,$=0;$<f.length;$++){-1!==(_=C.indexOf(f[$]))&&(-1===S||_<S)&&(S=_)}-1!==(R=-1===S?C.lastIndexOf('@'):C.lastIndexOf('@',S))&&(N=C.slice(0,R),C=C.slice(R+1),this.auth=decodeURIComponent(N)),S=-1;for($=0;$<c.length;$++){var _;-1!==(_=C.indexOf(c[$]))&&(-1===S||_<S)&&(S=_)}-1===S&&(S=C.length),this.host=C.slice(0,S),C=C.slice(S),this.parseHost(),this.hostname=this.hostname||'';var z='['===this.hostname[0]&&']'===this.hostname[this.hostname.length-1];if(!z)for(var H=this.hostname.split(/\./),L=($=0,H.length);$<L;$++){var Z=H[$];if(Z&&!Z.match(u)){for(var E='',P=0,T=Z.length;P<T;P++)Z.charCodeAt(P)>127?E+='x':E+=Z[P];if(!E.match(u)){var B=H.slice(0,$),D=H.slice($+1),F=Z.match(v);F&&(B.push(F[1]),D.unshift(F[2])),D.length&&(C='/'+D.join('.')+C),this.hostname=B.join('.');break}}}this.hostname.length>255?this.hostname='':this.hostname=this.hostname.toLowerCase(),z||(this.hostname=t.toASCII(this.hostname));var G=this.port?':'+this.port:'',J=this.hostname||'';this.host=J+G,this.href+=this.host,z&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),'/'!==C[0]&&(C='/'+C))}if(!y[U])for($=0,L=p.length;$<L;$++){var K=p[$];if(-1!==C.indexOf(K)){var M=encodeURIComponent(K);M===K&&(M=escape(K)),C=C.split(K).join(M)}}var Q=C.indexOf('#');-1!==Q&&(this.hash=C.substr(Q),C=C.slice(0,Q));var V=C.indexOf('?');if(-1!==V?(this.search=C.substr(V),this.query=C.substr(V+1),n&&(this.query=j.parse(this.query)),C=C.slice(0,V)):n&&(this.search='',this.query={}),C&&(this.pathname=C),O[U]&&this.hostname&&!this.pathname&&(this.pathname='/'),this.pathname||this.search){G=this.pathname||'';var W=this.search||'';this.path=G+W}return this.href=this.format(),this},h.prototype.format=function(){var t=this.auth||'';t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,':'),t+='@');var h=this.protocol||'',o=this.pathname||'',n=this.hash||'',i=!1,l='';this.host?i=t+this.host:this.hostname&&(i=t+(-1===this.hostname.indexOf(':')?this.hostname:'['+this.hostname+']'),this.port&&(i+=':'+this.port)),this.query&&s.isObject(this.query)&&Object.keys(this.query).length&&(l=j.stringify(this.query));var p=this.search||l&&'?'+l||'';return h&&':'!==h.substr(-1)&&(h+=':'),this.slashes||(!h||O[h])&&!1!==i?(i='//'+(i||''),o&&'/'!==o.charAt(0)&&(o='/'+o)):i||(i=''),n&&'#'!==n.charAt(0)&&(n='#'+n),p&&'?'!==p.charAt(0)&&(p='?'+p),h+i+(o=o.replace(/[?#]/g,(function(t){return encodeURIComponent(t)})))+(p=p.replace('#','%23'))+n},h.prototype.resolve=function(t){return this.resolveObject(q(t,!1,!0)).format()},h.prototype.resolveObject=function(t){if(s.isString(t)){var o=new h;o.parse(t,!1,!0),t=o}for(var n=new h,i=Object.keys(this),l=0;l<i.length;l++){var p=i[l];n[p]=this[p]}if(n.hash=t.hash,''===t.href)return n.href=n.format(),n;if(t.slashes&&!t.protocol){for(var c=Object.keys(t),f=0;f<c.length;f++){var u=c[f];'protocol'!==u&&(n[u]=t[u])}return O[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname='/'),n.href=n.format(),n}if(t.protocol&&t.protocol!==n.protocol){if(!O[t.protocol]){for(var v=Object.keys(t),y=0;y<v.length;y++){var j=v[y];n[j]=t[j]}return n.href=n.format(),n}if(n.protocol=t.protocol,t.host||b[t.protocol])n.pathname=t.pathname;else{for(var q=(t.pathname||'').split('/');q.length&&!(t.host=q.shift()););t.host||(t.host=''),t.hostname||(t.hostname=''),''!==q[0]&&q.unshift(''),q.length<2&&q.unshift(''),n.pathname=q.join('/')}if(n.search=t.search,n.query=t.query,n.host=t.host||'',n.auth=t.auth,n.hostname=t.hostname||t.host,n.port=t.port,n.pathname||n.search){var x=n.pathname||'',A=n.search||'';n.path=x+A}return n.slashes=n.slashes||t.slashes,n.href=n.format(),n}var C=n.pathname&&'/'===n.pathname.charAt(0),I=t.host||t.pathname&&'/'===t.pathname.charAt(0),w=I||C||n.host&&t.pathname,U=w,k=n.pathname&&n.pathname.split('/')||[],N=(q=t.pathname&&t.pathname.split('/')||[],n.protocol&&!O[n.protocol]);if(N&&(n.hostname='',n.port=null,n.host&&(''===k[0]?k[0]=n.host:k.unshift(n.host)),n.host='',t.protocol&&(t.hostname=null,t.port=null,t.host&&(''===q[0]?q[0]=t.host:q.unshift(t.host)),t.host=null),w=w&&(''===q[0]||''===k[0])),I)n.host=t.host||''===t.host?t.host:n.host,n.hostname=t.hostname||''===t.hostname?t.hostname:n.hostname,n.search=t.search,n.query=t.query,k=q;else if(q.length)k||(k=[]),k.pop(),k=k.concat(q),n.search=t.search,n.query=t.query;else if(!s.isNullOrUndefined(t.search)){if(N)n.hostname=n.host=k.shift(),(z=!!(n.host&&n.host.indexOf('@')>0)&&n.host.split('@'))&&(n.auth=z.shift(),n.host=n.hostname=z.shift());return n.search=t.search,n.query=t.query,s.isNull(n.pathname)&&s.isNull(n.search)||(n.path=(n.pathname?n.pathname:'')+(n.search?n.search:'')),n.href=n.format(),n}if(!k.length)return n.pathname=null,n.search?n.path='/'+n.search:n.path=null,n.href=n.format(),n;for(var R=k.slice(-1)[0],S=(n.host||t.host||k.length>1)&&('.'===R||'..'===R)||''===R,$=0,_=k.length;_>=0;_--)'.'===(R=k[_])?k.splice(_,1):'..'===R?(k.splice(_,1),$++):$&&(k.splice(_,1),$--);if(!w&&!U)for(;$--;$)k.unshift('..');!w||''===k[0]||k[0]&&'/'===k[0].charAt(0)||k.unshift(''),S&&'/'!==k.join('/').substr(-1)&&k.push('');var z,H=''===k[0]||k[0]&&'/'===k[0].charAt(0);N&&(n.hostname=n.host=H?'':k.length?k.shift():'',(z=!!(n.host&&n.host.indexOf('@')>0)&&n.host.split('@'))&&(n.auth=z.shift(),n.host=n.hostname=z.shift()));return(w=w||n.host&&k.length)&&!H&&k.unshift(''),k.length?n.pathname=k.join('/'):(n.pathname=null,n.path=null),s.isNull(n.pathname)&&s.isNull(n.search)||(n.path=(n.pathname?n.pathname:'')+(n.search?n.search:'')),n.auth=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n},h.prototype.parseHost=function(){var t=this.host,s=n.exec(t);s&&(':'!==(s=s[0])&&(this.port=s.substr(1)),t=t.substr(0,t.length-s.length)),t&&(this.hostname=t)}}),1023,[1024,1025,1026]);
1157
1157
  __d((function(g,r,_i,a,_m,e,d){!(function(n){var o='object'==typeof e&&e&&!e.nodeType&&e,t='object'==typeof _m&&_m&&!_m.nodeType&&_m,i='object'==typeof g&&g;i.global!==i&&i.window!==i&&i.self!==i||(n=i);var f,u,c=2147483647,l=36,s=/^xn--/,p=/[^\x20-\x7E]/,h=/[\x2E\u3002\uFF0E\uFF61]/g,v={overflow:'Overflow: input needs wider integers to process','not-basic':'Illegal input >= 0x80 (not a basic code point)','invalid-input':'Invalid input'},w=Math.floor,y=String.fromCharCode;function x(n){throw RangeError(v[n])}function C(n,o){for(var t=n.length,i=[];t--;)i[t]=o(n[t]);return i}function b(n,o){var t=n.split('@'),i='';return t.length>1&&(i=t[0]+'@',n=t[1]),i+C((n=n.replace(h,'.')).split('.'),o).join('.')}function j(n){for(var o,t,i=[],f=0,u=n.length;f<u;)(o=n.charCodeAt(f++))>=55296&&o<=56319&&f<u?56320==(64512&(t=n.charCodeAt(f++)))?i.push(((1023&o)<<10)+(1023&t)+65536):(i.push(o),f--):i.push(o);return i}function A(n){return C(n,(function(n){var o='';return n>65535&&(o+=y((n-=65536)>>>10&1023|55296),n=56320|1023&n),o+=y(n)})).join('')}function I(n,o){return n+22+75*(n<26)-((0!=o)<<5)}function E(n,o,t){var i=0;for(n=t?w(n/700):n>>1,n+=w(n/o);n>455;i+=l)n=w(n/35);return w(i+36*n/(n+38))}function F(n){var o,t,i,f,u,s,p,h,v,y,C,b=[],j=n.length,I=0,F=128,m=72;for((t=n.lastIndexOf("-"))<0&&(t=0),i=0;i<t;++i)n.charCodeAt(i)>=128&&x('not-basic'),b.push(n.charCodeAt(i));for(f=t>0?t+1:0;f<j;){for(u=I,s=1,p=l;f>=j&&x('invalid-input'),((h=(C=n.charCodeAt(f++))-48<10?C-22:C-65<26?C-65:C-97<26?C-97:l)>=l||h>w((c-I)/s))&&x('overflow'),I+=h*s,!(h<(v=p<=m?1:p>=m+26?26:p-m));p+=l)s>w(c/(y=l-v))&&x('overflow'),s*=y;m=E(I-u,o=b.length+1,0==u),w(I/o)>c-F&&x('overflow'),F+=w(I/o),I%=o,b.splice(I++,0,F)}return A(b)}function m(n){var o,t,i,f,u,s,p,h,v,C,b,A,F,m,O,S=[];for(A=(n=j(n)).length,o=128,t=0,u=72,s=0;s<A;++s)(b=n[s])<128&&S.push(y(b));for(i=f=S.length,f&&S.push("-");i<A;){for(p=c,s=0;s<A;++s)(b=n[s])>=o&&b<p&&(p=b);for(p-o>w((c-t)/(F=i+1))&&x('overflow'),t+=(p-o)*F,o=p,s=0;s<A;++s)if((b=n[s])<o&&++t>c&&x('overflow'),b==o){for(h=t,v=l;!(h<(C=v<=u?1:v>=u+26?26:v-u));v+=l)O=h-C,m=l-C,S.push(y(I(C+O%m,0))),h=w(O/m);S.push(y(I(h,0))),u=E(t,F,i==f),t=0,++i}++t,++o}return S.join('')}if(f={version:'1.3.2',ucs2:{decode:j,encode:A},decode:F,encode:m,toASCII:function(n){return b(n,(function(n){return p.test(n)?'xn--'+m(n):n}))},toUnicode:function(n){return b(n,(function(n){return s.test(n)?F(n.slice(4).toLowerCase()):n}))}},'function'==typeof define&&'object'==typeof define.amd&&define.amd)define('punycode',(function(){return f}));else if(o&&t)if(_m.exports==o)t.exports=f;else for(u in f)f.hasOwnProperty(u)&&(o[u]=f[u]);else n.punycode=f})(this)}),1024,[]);
1158
1158
  __d((function(g,r,i,a,m,e,d){'use strict';m.exports={isString:function(n){return'string'==typeof n},isObject:function(n){return'object'==typeof n&&null!==n},isNull:function(n){return null===n},isNullOrUndefined:function(n){return null==n}}}),1025,[]);
1159
1159
  __d((function(g,r,i,a,m,e,d){'use strict';e.decode=e.parse=r(d[0]),e.encode=e.stringify=r(d[1])}),1026,[1027,1028]);
1160
1160
  __d((function(g,r,_i,a,m,e,d){'use strict';function t(t,n){return Object.prototype.hasOwnProperty.call(t,n)}m.exports=function(n,o,s,p){o=o||'&',s=s||'=';var u={};if('string'!=typeof n||0===n.length)return u;var c=/\+/g;n=n.split(o);var i=1e3;p&&'number'==typeof p.maxKeys&&(i=p.maxKeys);var f=n.length;i>0&&f>i&&(f=i);for(var y=0;y<f;++y){var l,v,b,h,x=n[y].replace(c,'%20'),O=x.indexOf(s);O>=0?(l=x.substr(0,O),v=x.substr(O+1)):(l=x,v=''),b=decodeURIComponent(l),h=decodeURIComponent(v),t(u,b)?Array.isArray(u[b])?u[b].push(h):u[b]=[u[b],h]:u[b]=h}return u}}),1027,[]);
1161
1161
  __d((function(g,r,i,a,m,e,d){'use strict';var n=function(n){switch(typeof n){case'string':return n;case'boolean':return n?'true':'false';case'number':return isFinite(n)?n:'';default:return''}};m.exports=function(o,t,c,u){return t=t||'&',c=c||'=',null===o&&(o=void 0),'object'==typeof o?Object.keys(o).map((function(u){var s=encodeURIComponent(n(u))+c;return Array.isArray(o[u])?o[u].map((function(o){return s+encodeURIComponent(n(o))})).join(t):s+encodeURIComponent(n(o[u]))})).join(t):u?encodeURIComponent(n(u))+c+encodeURIComponent(n(o)):''}}),1028,[]);
1162
- __d((function(g,r,_i,a,_m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.ModalStackProvider=function(t){var n=t.children,o=t.modalStack,l=void 0===o?b:o,p=(0,s.useStackItems)(l),O=u.useRef(new i.Animated.Value(0)),j=p.some((function(t){return'settled'===t.status||'pushing'===t.status}));u.useEffect((function(){j?i.Animated.spring(O.current,{toValue:1,useNativeDriver:!1}).start():i.Animated.spring(O.current,{toValue:0,useNativeDriver:!1}).start()}),[j]);var h=O.current.interpolate({inputRange:[0,1],outputRange:['rgba(0,0,0,0)','rgba(0,0,0,0.75)']});return(0,c.jsxs)(v.Provider,{value:{push:function(t){return l.push({element:t})},pop:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return l.pop(t)}},children:[n,(0,c.jsx)(i.Animated.View,{style:[i.StyleSheet.absoluteFillObject,{backgroundColor:h}],pointerEvents:j?'box-none':'none',children:(0,c.jsx)(i.Pressable,{onPress:function(){l.pop()},style:[i.StyleSheet.absoluteFillObject],children:p.map((function(t){return(0,c.jsx)(y,f(f({},t),{},{onClose:t.pop,onPopEnd:t.onPopEnd,onPushEnd:t.onPushEnd}),t.key)}))})})]})},e.useModalStack=void 0;var n=t(r(d[1])),o=r(d[2]),u=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=l(n);if(o&&o.has(t))return o.get(t);var u={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var c=i?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(u,s,c):u[s]=t[s]}u.default=t,o&&o.set(t,u);return u})(r(d[3])),i=r(d[4]),s=r(d[5]),c=r(d[6]);function l(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(l=function(t){return t?o:n})(t)}function p(t,n){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);n&&(u=u.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),o.push.apply(o,u)}return o}function f(t){for(var o=1;o<arguments.length;o++){var u=null!=arguments[o]?arguments[o]:{};o%2?p(Object(u),!0).forEach((function(o){(0,n.default)(t,o,u[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(u)):p(Object(u)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(u,n))}))}return t}var v=u.createContext(null);e.useModalStack=function(){return u.useContext(v)};var b=(0,s.createAsyncStack)();function y(t){var n=t.status,s=t.data,l=t.onPopEnd,p=t.onPushEnd,f=s.element,v=(0,i.useWindowDimensions)().height,b=u.useRef(new i.Animated.Value('settled'===n?1:0));u.useEffect((function(){'pushing'===n&&i.Animated.spring(b.current,{toValue:1,stiffness:1e3,damping:500,mass:3,overshootClamping:!0,useNativeDriver:!0}).start((function(){return p()})),'popping'===n&&i.Animated.spring(b.current,{toValue:0,stiffness:1e3,damping:500,mass:3,overshootClamping:!0,useNativeDriver:!0}).start((function(){return l()}))}),[n]);var y=b.current.interpolate({inputRange:[0,1],outputRange:[v,0]});return(0,c.jsx)(i.Animated.View,{pointerEvents:'popping'===n?'none':'box-none',style:[i.StyleSheet.absoluteFillObject,{justifyContent:'center',transform:[{translateY:y}]}],children:(0,c.jsx)(o.Button.Container,{children:f})})}}),1029,[6,40,651,101,2,1007,220]);
1162
+ __d((function(g,r,_i,a,_m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.ModalStackProvider=function(t){var n=t.children,o=t.modalStack,l=void 0===o?y:o,p=(0,c.useStackItems)(l),O=u.useRef(new i.Animated.Value(0)),j=p.some((function(t){return'settled'===t.status||'pushing'===t.status}));return u.useEffect((function(){j?i.Animated.timing(O.current,{toValue:1,useNativeDriver:!0,duration:200}).start():i.Animated.timing(O.current,{toValue:0,useNativeDriver:!0,duration:200}).start()}),[j]),(0,s.jsxs)(b.Provider,{value:{push:function(t){return l.push({element:t})},pop:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return l.pop(t)}},children:[n,(0,s.jsx)(i.Animated.View,{style:[i.StyleSheet.absoluteFillObject,{backgroundColor:'rgba(0,0,0,0.75)',opacity:O.current}],pointerEvents:j?'box-none':'none',children:(0,s.jsx)(i.Pressable,{onPress:function(){l.pop()},style:[i.StyleSheet.absoluteFillObject],children:p.map((function(t){return(0,s.jsx)(v,f(f({},t),{},{onClose:t.pop,onPopEnd:t.onPopEnd,onPushEnd:t.onPushEnd}),t.key)}))})})]})},e.useModalStack=void 0;var n=t(r(d[1])),o=r(d[2]),u=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=l(n);if(o&&o.has(t))return o.get(t);var u={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var s=i?Object.getOwnPropertyDescriptor(t,c):null;s&&(s.get||s.set)?Object.defineProperty(u,c,s):u[c]=t[c]}u.default=t,o&&o.set(t,u);return u})(r(d[3])),i=r(d[4]),c=r(d[5]),s=r(d[6]);function l(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(l=function(t){return t?o:n})(t)}function p(t,n){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);n&&(u=u.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),o.push.apply(o,u)}return o}function f(t){for(var o=1;o<arguments.length;o++){var u=null!=arguments[o]?arguments[o]:{};o%2?p(Object(u),!0).forEach((function(o){(0,n.default)(t,o,u[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(u)):p(Object(u)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(u,n))}))}return t}var b=u.createContext(null);e.useModalStack=function(){return u.useContext(b)};var y=(0,c.createAsyncStack)();function v(t){var n=t.status,u=t.data.element;return(0,s.jsx)(i.Animated.View,{pointerEvents:'popping'===n?'none':'box-none',style:[i.StyleSheet.absoluteFillObject,{justifyContent:'center'}],children:(0,s.jsx)(o.Button.Container,{children:u})})}}),1029,[6,40,651,101,2,1007,220]);
1163
1163
  __d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.PendingDeepLinkProvider=function(n){var l=n.children,v=n.initialPendingDeepLink,k=void 0===v?'':v,D=(0,p.useModalStack)(),P=u.useState(k),L=(0,t.default)(P,2),j=L[0],y=L[1];return u.useEffect((function(){(0,f.getPendingDeepLink)().then((function(n){n&&(y(n),D.push((function(){return(0,c.jsx)(o.DeepLinkModal,{pendingDeepLink:n})})))}))}),[]),u.useEffect((function(){var n=(0,f.addDeepLinkListener)((function(n){var t=n.url;t&&(y(t),D.push((function(){return(0,c.jsx)(o.DeepLinkModal,{pendingDeepLink:t})})))}));return function(){n.remove()}}),[]),(0,c.jsx)(s.Provider,{value:{pendingDeepLink:j,setPendingDeepLink:y},children:l})},e.usePendingDeepLink=void 0;var t=n(r(d[1])),u=(function(n,t){if(!t&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=l(t);if(u&&u.has(n))return u.get(n);var o={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in n)if("default"!==p&&Object.prototype.hasOwnProperty.call(n,p)){var c=f?Object.getOwnPropertyDescriptor(n,p):null;c&&(c.get||c.set)?Object.defineProperty(o,p,c):o[p]=n[p]}o.default=n,u&&u.set(n,o);return o})(r(d[2])),o=(r(d[3]),r(d[4])),f=r(d[5]),p=r(d[6]),c=r(d[7]);function l(n){if("function"!=typeof WeakMap)return null;var t=new WeakMap,u=new WeakMap;return(l=function(n){return n?u:t})(n)}var s=u.createContext(null);e.usePendingDeepLink=function(){return u.useContext(s)}}),1030,[6,51,101,2,1031,907,1029,220]);
1164
1164
  __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.DeepLinkModal=function(t){var s=t.pendingDeepLink,l=(0,o.useModalStack)();return(0,x.jsxs)(u.BaseModal,{title:"Deep link received:",children:[(0,x.jsx)(n.Spacer.Vertical,{size:"small"}),(0,x.jsx)(n.View,{py:"small",bg:"secondary",rounded:"medium",px:"medium",children:(0,x.jsx)(n.Text,{type:"mono",numberOfLines:3,children:s})}),(0,x.jsx)(n.Spacer.Vertical,{size:"large"}),(0,x.jsx)(h,{}),(0,x.jsx)(n.Spacer.Vertical,{size:"large"}),(0,x.jsxs)(n.View,{children:[(0,x.jsxs)(n.Text,{children:[(0,x.jsx)(n.Text,{weight:"bold",children:"Note: "}),"The next app you open will receive this link"]}),(0,x.jsx)(n.Spacer.Vertical,{size:"medium"}),(0,x.jsx)(n.Button.FadeOnPressContainer,{bg:"ghost",rounded:"medium",border:"ghost",onPress:function(){l.pop()},children:(0,x.jsx)(n.View,{py:"small",px:"medium",children:(0,x.jsx)(n.Button.Text,{size:"large",align:"center",weight:"semibold",color:"ghost",children:"Go back"})})})]})]})};var n=r(d[0]),t=((function(n,t){if(!t&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var s=j(t);if(s&&s.has(n))return s.get(n);var l={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var u=o?Object.getOwnPropertyDescriptor(n,c):null;u&&(u.get||u.set)?Object.defineProperty(l,c,u):l[c]=n[c]}l.default=n,s&&s.set(n,l)})(r(d[1])),r(d[2])),s=r(d[3]),l=r(d[4]),o=r(d[5]),c=r(d[6]),u=r(d[7]),p=r(d[8]),x=r(d[9]);function j(n){if("function"!=typeof WeakMap)return null;var t=new WeakMap,s=new WeakMap;return(j=function(n){return n?s:t})(n)}function h(){var u=(0,o.useModalStack)(),j=(0,l.useDevSessions)(),h=j.data,v=void 0===h?[]:h,y=j.isFetching,b=(0,c.useRecentlyOpenedApps)(),w=b.data,V=void 0===w?[]:w,S=b.isFetching,z=function(n){var t=n.url;(0,s.loadApp)(t).catch((function(n){u.push((function(){return(0,x.jsx)(p.LoadAppErrorModal,{message:n.message})}))}))};return y||S?(0,x.jsx)(t.ActivityIndicator,{}):v.length>0||V.length>0?(0,x.jsxs)(n.View,{children:[(0,x.jsx)(n.Text,{size:"large",children:"Select an app to open it:"}),(0,x.jsxs)(t.ScrollView,{style:{maxHeight:300},children:[(0,x.jsx)(n.Spacer.Vertical,{size:"medium"}),v.length>0&&(0,x.jsx)(x.Fragment,{children:v.map((function(t,s,l){var o=s===l.length-1;return(0,x.jsxs)(n.View,{children:[(0,x.jsx)(f,{label:t.description,onPress:function(){return z(t)}}),!o&&(0,x.jsx)(n.Divider,{})]},t.url)}))}),V.length>0&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(n.Divider,{}),V.map((function(t,s,l){var o=s===l.length-1;return(0,x.jsxs)(n.View,{children:[(0,x.jsx)(f,{label:t.name,onPress:function(){return z(t)}}),!o&&(0,x.jsx)(n.Divider,{})]},t.url)}))]})]})]}):(0,x.jsxs)(n.View,{children:[(0,x.jsx)(n.Text,{size:"large",weight:"medium",children:"Unable to find any packagers"}),(0,x.jsx)(n.Spacer.Vertical,{size:"small"}),(0,x.jsx)(n.Text,{children:"Start a local development server with:"}),(0,x.jsx)(n.Spacer.Vertical,{size:"small"}),(0,x.jsx)(n.View,{bg:"secondary",border:"default",rounded:"medium",padding:"medium",children:(0,x.jsx)(n.Text,{type:"mono",children:"expo start"})})]})}function f(t){var s=t.onPress,l=t.label;return(0,x.jsx)(n.View,{rounded:"medium",children:(0,x.jsx)(n.Button.FadeOnPressContainer,{bg:"default",onPress:s,children:(0,x.jsxs)(n.Row,{align:"center",py:"medium",px:"small",children:[(0,x.jsx)(n.StatusIndicator,{size:"small",status:"success"}),(0,x.jsx)(n.Spacer.Horizontal,{size:"small"}),(0,x.jsx)(n.Text,{children:l}),(0,x.jsx)(n.Spacer.Horizontal,{}),(0,x.jsx)(n.ChevronRightIcon,{})]})})})}}),1031,[651,101,2,907,1018,1029,1032,1033,1034,220]);
1165
1165
  __d((function(g,r,i,_a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.RecentlyOpenedAppsProvider=function(t){var n=t.children,s=t.initialApps,l=void 0===s?[]:s,o=u.useState(l),f=(0,a.default)(o,2),v=f[0],y=f[1];return(0,p.jsx)(c.Provider,{value:{recentApps:v,setRecentApps:y},children:n})},e.useRecentlyOpenedApps=function(){var t=u.useState(''),s=(0,a.default)(t,2),p=s[0],o=s[1],v=u.useState(!1),y=(0,a.default)(v,2),h=y[0],O=y[1],A=u.useContext(c),j=A.recentApps,b=A.setRecentApps;function P(){return(P=(0,n.default)((function*(){yield(0,l.clearRecentlyOpenedApps)(),b([])}))).apply(this,arguments)}return u.useEffect((function(){O(!0),(0,l.getRecentlyOpenedApps)().then((function(t){var n,a={};for(var u of t){var s=`${u.url}`;if(u.id=s,f(u)){var l,p,o=null!=(l=null==(p=n)?void 0:p.timestamp)?l:0;u.timestamp>o&&(n=u)}else{var c,v,y=null!=(c=null==(v=a[s])?void 0:v.timestamp)?c:0;u.timestamp>y&&(a[s]=u)}}var h=Object.values(a);n&&h.push(n);var A=h.sort((function(t,n){return n.timestamp-t.timestamp}));b(A),O(!1)})).catch((function(t){O(!1),o(t.message),b([])}))}),[]),{data:j,isFetching:h,error:p,clear:function(){return P.apply(this,arguments)}}};var n=t(r(d[1])),a=t(r(d[2])),u=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var a=o(n);if(a&&a.has(t))return a.get(t);var u={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if("default"!==l&&Object.prototype.hasOwnProperty.call(t,l)){var p=s?Object.getOwnPropertyDescriptor(t,l):null;p&&(p.get||p.set)?Object.defineProperty(u,l,p):u[l]=t[l]}u.default=t,a&&a.set(t,u);return u})(r(d[3])),s=t(r(d[4])),l=r(d[5]),p=r(d[6]);function o(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,a=new WeakMap;return(o=function(t){return t?a:n})(t)}var c=u.createContext({recentApps:[],setRecentApps:function(){}});function f(t){var n=s.default.parse(t.url,!0).host;return(null==n?void 0:n.startsWith('192.168.'))||(null==n?void 0:n.startsWith('172.'))||(null==n?void 0:n.startsWith('10.'))||(null==n?void 0:n.startsWith('localhost:'))}}),1032,[6,340,51,101,1023,907,220]);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "expo-dev-launcher",
3
3
  "title": "Expo Development Launcher",
4
- "version": "3.6.4",
4
+ "version": "3.6.6",
5
5
  "description": "Pre-release version of the Expo development launcher package for testing.",
6
6
  "main": "build/DevLauncher.js",
7
7
  "types": "build/DevLauncher.d.ts",
@@ -31,7 +31,7 @@
31
31
  "homepage": "https://docs.expo.dev",
32
32
  "dependencies": {
33
33
  "ajv": "8.11.0",
34
- "expo-dev-menu": "4.5.4",
34
+ "expo-dev-menu": "4.5.5",
35
35
  "expo-manifests": "~0.13.0",
36
36
  "resolve-from": "^5.0.0",
37
37
  "semver": "^7.5.3"
@@ -66,5 +66,5 @@
66
66
  "./setupTests.ts"
67
67
  ]
68
68
  },
69
- "gitHead": "7fb94e3c0598d0e2d428184b16eec5ec67d80388"
69
+ "gitHead": "9e4890b069b18598ea429734b5114b40e3afeabb"
70
70
  }