mitosheet 0.2.43__py2.py3-none-any.whl → 0.2.50__py2.py3-none-any.whl
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.
- mitosheet/labextension/package.json +2 -2
- mitosheet-0.2.43.data/data/share/jupyter/labextensions/mitosheet/static/339.293232320a916194409e.js → mitosheet/labextension/static/339.53f78db5b4beeb902f70.js +1 -1
- mitosheet/labextension/static/{remoteEntry.14d346dcfe1e569663b5.js → remoteEntry.8d8431c3cef326a8e05b.js} +1 -1
- mitosheet/user/create.py +19 -1
- {mitosheet-0.2.43.data → mitosheet-0.2.50.data}/data/share/jupyter/labextensions/mitosheet/package.json +2 -2
- mitosheet/labextension/static/339.293232320a916194409e.js → mitosheet-0.2.50.data/data/share/jupyter/labextensions/mitosheet/static/339.53f78db5b4beeb902f70.js +1 -1
- mitosheet-0.2.43.data/data/share/jupyter/labextensions/mitosheet/static/remoteEntry.14d346dcfe1e569663b5.js → mitosheet-0.2.50.data/data/share/jupyter/labextensions/mitosheet/static/remoteEntry.8d8431c3cef326a8e05b.js +1 -1
- {mitosheet-0.2.43.dist-info → mitosheet-0.2.50.dist-info}/METADATA +1 -1
- {mitosheet-0.2.43.dist-info → mitosheet-0.2.50.dist-info}/RECORD +16 -16
- {mitosheet-0.2.43.data → mitosheet-0.2.50.data}/data/share/jupyter/labextensions/mitosheet/static/405.4dea6fd8e64e4dc9015a.js +0 -0
- {mitosheet-0.2.43.data → mitosheet-0.2.50.data}/data/share/jupyter/labextensions/mitosheet/static/509.9cd86a57778b85719494.js +0 -0
- {mitosheet-0.2.43.data → mitosheet-0.2.50.data}/data/share/jupyter/labextensions/mitosheet/static/style.js +0 -0
- {mitosheet-0.2.43.data → mitosheet-0.2.50.data}/data/share/jupyter/labextensions/mitosheet/static/third-party-licenses.json +0 -0
- {mitosheet-0.2.43.dist-info → mitosheet-0.2.50.dist-info}/LICENSE.txt +0 -0
- {mitosheet-0.2.43.dist-info → mitosheet-0.2.50.dist-info}/WHEEL +0 -0
- {mitosheet-0.2.43.dist-info → mitosheet-0.2.50.dist-info}/top_level.txt +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
var _JUPYTERLAB;(()=>{"use strict";var e,r,t,n,o,a,i,u,s,l,f,d,c,p,h,v,m,g,
|
|
1
|
+
var _JUPYTERLAB;(()=>{"use strict";var e,r,t,n,o,a,i,u,s,l,f,d,c,p,h,v,m,b,g,y,w,S,j,k={133:(e,r,t)=>{var n={"./index":()=>Promise.all([t.e(339),t.e(509)]).then((()=>()=>t(509))),"./extension":()=>t.e(339).then((()=>()=>t(339)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},E={};function P(e){var r=E[e];if(void 0!==r)return r.exports;var t=E[e]={id:e,exports:{}};return k[e](t,t.exports,P),t.exports}P.m=k,P.c=E,P.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return P.d(r,{a:r}),r},P.d=(e,r)=>{for(var t in r)P.o(r,t)&&!P.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},P.f={},P.e=e=>Promise.all(Object.keys(P.f).reduce(((r,t)=>(P.f[t](e,r),r)),[])),P.u=e=>e+"."+{339:"53f78db5b4beeb902f70",405:"4dea6fd8e64e4dc9015a",509:"9cd86a57778b85719494"}[e]+".js?v="+{339:"53f78db5b4beeb902f70",405:"4dea6fd8e64e4dc9015a",509:"9cd86a57778b85719494"}[e],P.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),P.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="mitosheet:",P.l=(t,n,o,a)=>{if(e[t])e[t].push(n);else{var i,u;if(void 0!==o)for(var s=document.getElementsByTagName("script"),l=0;l<s.length;l++){var f=s[l];if(f.getAttribute("src")==t||f.getAttribute("data-webpack")==r+o){i=f;break}}i||(u=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,P.nc&&i.setAttribute("nonce",P.nc),i.setAttribute("data-webpack",r+o),i.src=t),e[t]=[n];var d=(r,n)=>{i.onerror=i.onload=null,clearTimeout(c);var o=e[t];if(delete e[t],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(n)},c=setTimeout(d.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),u&&document.head.appendChild(i)}},P.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{P.S={};var e={},r={};P.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];P.o(P.S,t)||(P.S[t]={});var a=P.S[t],i="mitosheet",u=(e,r,t,n)=>{var o=a[e]=a[e]||{},u=o[r];(!u||!u.loaded&&(!n!=!u.eager?n:i>u.from))&&(o[r]={get:t,from:i,eager:!!n})},s=[];return"default"===t&&(u("fscreen","1.2.0",(()=>P.e(405).then((()=>()=>P(405))))),u("mitosheet","0.2.50",(()=>Promise.all([P.e(339),P.e(509)]).then((()=>()=>P(509)))))),e[t]=s.length?Promise.all(s).then((()=>e[t]=1)):1}}})(),(()=>{var e;P.g.importScripts&&(e=P.g.location+"");var r=P.g.document;if(!e&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),P.p=e})(),t=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},n=(e,r)=>{e=t(e),r=t(r);for(var n=0;;){if(n>=e.length)return n<r.length&&"u"!=(typeof r[n])[0];var o=e[n],a=(typeof o)[0];if(n>=r.length)return"u"==a;var i=r[n],u=(typeof i)[0];if(a!=u)return"o"==a&&"n"==u||"s"==u||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;n++}},o=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var n=1,a=1;a<e.length;a++)n--,t+="u"==(typeof(u=e[a]))[0]?"-":(n>0?".":"")+(n=2,u);return t}var i=[];for(a=1;a<e.length;a++){var u=e[a];i.push(0===u?"not("+s()+")":1===u?"("+s()+" || "+s()+")":2===u?i.pop()+" "+i.pop():o(u))}return s();function s(){return i.pop().replace(/^\((.+)\)$/,"$1")}},a=(e,r)=>{if(0 in e){r=t(r);var n=e[0],o=n<0;o&&(n=-n-1);for(var i=0,u=1,s=!0;;u++,i++){var l,f,d=u<e.length?(typeof e[u])[0]:"";if(i>=r.length||"o"==(f=(typeof(l=r[i]))[0]))return!s||("u"==d?u>n&&!o:""==d!=o);if("u"==f){if(!s||"u"!=d)return!1}else if(s)if(d==f)if(u<=n){if(l!=e[u])return!1}else{if(o?l>e[u]:l<e[u])return!1;l!=e[u]&&(s=!1)}else if("s"!=d&&"n"!=d){if(o||u<=n)return!1;s=!1,u--}else{if(u<=n||f<d!=o)return!1;s=!1}else"s"!=d&&"n"!=d&&(s=!1,u--)}}var c=[],p=c.pop.bind(c);for(i=1;i<e.length;i++){var h=e[i];c.push(1==h?p()|p():2==h?p()&p():h?a(h,r):!p())}return!!p()},i=(e,r)=>e&&P.o(e,r),u=e=>(e.loaded=1,e.get()),s=e=>Object.keys(e).reduce(((r,t)=>(e[t].eager&&(r[t]=e[t]),r)),{}),l=(e,r,t,o)=>{var i=o?s(e[r]):e[r];return(r=Object.keys(i).reduce(((e,r)=>!a(t,r)||e&&!n(e,r)?e:r),0))&&i[r]},f=(e,r,t)=>{var o=t?s(e[r]):e[r];return Object.keys(o).reduce(((e,r)=>!e||!o[e].loaded&&n(e,r)?r:e),0)},d=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+o(n)+")",c=(e,r,t,n,a)=>{var i=e[t];return"No satisfying version ("+o(n)+")"+(a?" for eager consumption":"")+" of shared module "+t+" found in shared scope "+r+".\nAvailable versions: "+Object.keys(i).map((e=>e+" from "+i[e].from)).join(", ")},p=e=>{throw new Error(e)},h=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},m=(e,r,t)=>t?t():((e,r)=>p("Shared module "+r+" doesn't exist in shared scope "+e))(e,r),b=(v=e=>function(r,t,n,o,a){var i=P.I(r);return i&&i.then&&!n?i.then(e.bind(e,r,P.S[r],t,!1,o,a)):e(r,P.S[r],t,n,o,a)})(((e,r,t,n,o,a)=>{if(!i(r,t))return m(e,t,a);var s=l(r,t,o,n);return s?u(s):a?a():void p(c(r,e,t,o,n))})),g=v(((e,r,t,n,o,s)=>{if(!i(r,t))return m(e,t,s);var l=f(r,t,n);return a(o,l)||h(d(r,t,l,o)),u(r[t][l])})),y={},w={345:()=>g("default","react",!1,[1,18,2,0]),583:()=>b("default","fscreen",!1,[1,1,1,0],(()=>P.e(405).then((()=>()=>P(405))))),628:()=>g("default","react-dom",!1,[1,18,2,0]),694:()=>g("default","@jupyterlab/ui-components",!1,[1,4,4,10]),762:()=>g("default","@jupyterlab/notebook",!1,[1,4,4,10]),986:()=>g("default","@jupyterlab/apputils",!1,[1,4,5,10])},S={339:[345,583,628,694,762,986]},j={},P.f.consumes=(e,r)=>{P.o(S,e)&&S[e].forEach((e=>{if(P.o(y,e))return r.push(y[e]);if(!j[e]){var t=r=>{y[e]=0,P.m[e]=t=>{delete P.c[e],t.exports=r()}};j[e]=!0;var n=r=>{delete y[e],P.m[e]=t=>{throw delete P.c[e],r}};try{var o=w[e]();o.then?r.push(y[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}}))},(()=>{var e={739:0};P.f.j=(r,t)=>{var n=P.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=P.p+P.u(r),i=new Error;P.l(a,(t=>{if(P.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[a,i,u]=t,s=0;if(a.some((r=>0!==e[r]))){for(n in i)P.o(i,n)&&(P.m[n]=i[n]);u&&u(P)}for(r&&r(t);s<a.length;s++)o=a[s],P.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=self.webpackChunkmitosheet=self.webpackChunkmitosheet||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),P.nc=void 0;var T=P(133);(_JUPYTERLAB=void 0===_JUPYTERLAB?{}:_JUPYTERLAB).mitosheet=T})();
|
mitosheet/user/create.py
CHANGED
|
@@ -43,6 +43,19 @@ def is_user_json_exists_and_valid_json() -> bool:
|
|
|
43
43
|
return False
|
|
44
44
|
|
|
45
45
|
|
|
46
|
+
def get_temp_user_id() -> Optional[str]:
|
|
47
|
+
"""
|
|
48
|
+
Looks for a temporary user ID, generated by the desktop app.
|
|
49
|
+
"""
|
|
50
|
+
temp_user_id_path = os.path.join(MITO_FOLDER, 'temp_user_id.txt')
|
|
51
|
+
|
|
52
|
+
if os.path.exists(temp_user_id_path):
|
|
53
|
+
with open(temp_user_id_path, 'r') as f:
|
|
54
|
+
return f.read()
|
|
55
|
+
|
|
56
|
+
return None
|
|
57
|
+
|
|
58
|
+
|
|
46
59
|
def try_create_user_json_file() -> None:
|
|
47
60
|
# Create the mito folder if it does not exist
|
|
48
61
|
if not os.path.exists(MITO_FOLDER):
|
|
@@ -55,7 +68,12 @@ def try_create_user_json_file() -> None:
|
|
|
55
68
|
with open(USER_JSON_PATH, 'w+') as f:
|
|
56
69
|
f.write(json.dumps(USER_JSON_DEFAULT))
|
|
57
70
|
|
|
58
|
-
#
|
|
71
|
+
# Next, look for a temp user id
|
|
72
|
+
temp_user_id = get_temp_user_id()
|
|
73
|
+
if temp_user_id:
|
|
74
|
+
set_user_field(UJ_STATIC_USER_ID, temp_user_id)
|
|
75
|
+
|
|
76
|
+
# Finally, we take special care to put all the testing/CI environments
|
|
59
77
|
# (e.g. Github actions) under one ID and email
|
|
60
78
|
from mitosheet.user.utils import is_running_test
|
|
61
79
|
if is_running_test():
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"outputDir": "mitosheet/labextension",
|
|
11
11
|
"extension": "lib/plugin",
|
|
12
12
|
"_build": {
|
|
13
|
-
"load": "static/remoteEntry.
|
|
13
|
+
"load": "static/remoteEntry.8d8431c3cef326a8e05b.js",
|
|
14
14
|
"extension": "./extension"
|
|
15
15
|
}
|
|
16
16
|
},
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"url": "https://github.com/mito-ds/monorepo",
|
|
28
28
|
"type": "git"
|
|
29
29
|
},
|
|
30
|
-
"version": "0.2.
|
|
30
|
+
"version": "0.2.50",
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@jupyterlab/application": "^4.0.0",
|
|
33
33
|
"@jupyterlab/notebook": "^4.2.4",
|