jupytergis-lab 0.9.1__tar.gz → 0.9.2__tar.gz

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.
Files changed (39) hide show
  1. {jupytergis_lab-0.9.1 → jupytergis_lab-0.9.2}/PKG-INFO +1 -1
  2. {jupytergis_lab-0.9.1 → jupytergis_lab-0.9.2}/jupytergis_lab/_version.py +1 -1
  3. {jupytergis_lab-0.9.1 → jupytergis_lab-0.9.2}/jupytergis_lab/labextension/package.json +4 -4
  4. jupytergis_lab-0.9.2/jupytergis_lab/labextension/static/484.00464b7eccab1de26f8b.js +1 -0
  5. jupytergis_lab-0.9.1/jupytergis_lab/labextension/static/remoteEntry.057367ee9baccd8bc582.js → jupytergis_lab-0.9.2/jupytergis_lab/labextension/static/remoteEntry.f5eb8b56a568a5ea9ea3.js +1 -1
  6. {jupytergis_lab-0.9.1 → jupytergis_lab-0.9.2}/jupytergis_lab/labextension/static/third-party-licenses.json +1 -1
  7. {jupytergis_lab-0.9.1 → jupytergis_lab-0.9.2}/lib/notebookrenderer.d.ts +1 -1
  8. {jupytergis_lab-0.9.1 → jupytergis_lab-0.9.2}/lib/notebookrenderer.js +2 -2
  9. {jupytergis_lab-0.9.1 → jupytergis_lab-0.9.2}/package.json +3 -3
  10. {jupytergis_lab-0.9.1 → jupytergis_lab-0.9.2}/src/notebookrenderer.ts +3 -3
  11. jupytergis_lab-0.9.2/tsconfig.tsbuildinfo +1 -0
  12. jupytergis_lab-0.9.1/jupytergis_lab/labextension/static/484.03e2847cc3cf21c046f0.js +0 -1
  13. jupytergis_lab-0.9.1/tsconfig.tsbuildinfo +0 -1
  14. {jupytergis_lab-0.9.1 → jupytergis_lab-0.9.2}/.gitignore +0 -0
  15. {jupytergis_lab-0.9.1 → jupytergis_lab-0.9.2}/.prettierignore +0 -0
  16. {jupytergis_lab-0.9.1 → jupytergis_lab-0.9.2}/LICENSE +0 -0
  17. {jupytergis_lab-0.9.1 → jupytergis_lab-0.9.2}/README.md +0 -0
  18. {jupytergis_lab-0.9.1 → jupytergis_lab-0.9.2}/install.json +0 -0
  19. {jupytergis_lab-0.9.1 → jupytergis_lab-0.9.2}/jupytergis_lab/__init__.py +0 -0
  20. {jupytergis_lab-0.9.1 → jupytergis_lab-0.9.2}/jupytergis_lab/labextension/static/234.8ab0931c15a13e5d92fd.js +0 -0
  21. {jupytergis_lab-0.9.1 → jupytergis_lab-0.9.2}/jupytergis_lab/labextension/static/432.43c3c6b1178c1ea13d41.js +0 -0
  22. {jupytergis_lab-0.9.1 → jupytergis_lab-0.9.2}/jupytergis_lab/labextension/static/style.js +0 -0
  23. {jupytergis_lab-0.9.1 → jupytergis_lab-0.9.2}/jupytergis_lab/notebook/__init__.py +0 -0
  24. {jupytergis_lab-0.9.1 → jupytergis_lab-0.9.2}/jupytergis_lab/notebook/explore.py +0 -0
  25. {jupytergis_lab-0.9.1 → jupytergis_lab-0.9.2}/jupytergis_lab/notebook/gis_document.py +0 -0
  26. {jupytergis_lab-0.9.1 → jupytergis_lab-0.9.2}/jupytergis_lab/notebook/tests/__init__.py +0 -0
  27. {jupytergis_lab-0.9.1 → jupytergis_lab-0.9.2}/jupytergis_lab/notebook/tests/test_api.py +0 -0
  28. {jupytergis_lab-0.9.1 → jupytergis_lab-0.9.2}/jupytergis_lab/notebook/utils.py +0 -0
  29. {jupytergis_lab-0.9.1 → jupytergis_lab-0.9.2}/jupytergis_lab/notebook/y_connector.py +0 -0
  30. {jupytergis_lab-0.9.1 → jupytergis_lab-0.9.2}/lib/index.d.ts +0 -0
  31. {jupytergis_lab-0.9.1 → jupytergis_lab-0.9.2}/lib/index.js +0 -0
  32. {jupytergis_lab-0.9.1 → jupytergis_lab-0.9.2}/pyproject.toml +0 -0
  33. {jupytergis_lab-0.9.1 → jupytergis_lab-0.9.2}/scripts/bump-version.py +0 -0
  34. {jupytergis_lab-0.9.1 → jupytergis_lab-0.9.2}/setup.py +0 -0
  35. {jupytergis_lab-0.9.1 → jupytergis_lab-0.9.2}/src/index.ts +0 -0
  36. {jupytergis_lab-0.9.1 → jupytergis_lab-0.9.2}/style/base.css +0 -0
  37. {jupytergis_lab-0.9.1 → jupytergis_lab-0.9.2}/style/index.css +0 -0
  38. {jupytergis_lab-0.9.1 → jupytergis_lab-0.9.2}/style/index.js +0 -0
  39. {jupytergis_lab-0.9.1 → jupytergis_lab-0.9.2}/tsconfig.json +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: jupytergis_lab
3
- Version: 0.9.1
3
+ Version: 0.9.2
4
4
  Dynamic: Keywords
5
5
  Summary: JupyterGIS Lab extension.
6
6
  Project-URL: Homepage, https://github.com/geojupyter/jupytergis
@@ -1,4 +1,4 @@
1
1
  # This file is auto-generated by Hatchling. As such, do not:
2
2
  # - modify
3
3
  # - track in version control e.g. be sure to add to .gitignore
4
- __version__ = VERSION = '0.9.1'
4
+ __version__ = VERSION = '0.9.2'
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupytergis/jupytergis-lab",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "description": "JupyterGIS Lab extension.",
5
5
  "keywords": [
6
6
  "jupyter",
@@ -53,8 +53,8 @@
53
53
  },
54
54
  "dependencies": {
55
55
  "@jupyter/collaborative-drive": "^3.0.0",
56
- "@jupytergis/base": "^0.9.1",
57
- "@jupytergis/schema": "^0.9.1",
56
+ "@jupytergis/base": "^0.9.2",
57
+ "@jupytergis/schema": "^0.9.2",
58
58
  "@jupyterlab/application": "^4.3.0",
59
59
  "@jupyterlab/apputils": "^4.3.0",
60
60
  "@jupyterlab/completer": "^4.3.0",
@@ -124,7 +124,7 @@
124
124
  }
125
125
  },
126
126
  "_build": {
127
- "load": "static/remoteEntry.057367ee9baccd8bc582.js",
127
+ "load": "static/remoteEntry.f5eb8b56a568a5ea9ea3.js",
128
128
  "extension": "./extension",
129
129
  "style": "./style"
130
130
  }
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_jupytergis_jupytergis_lab=self.webpackChunk_jupytergis_jupytergis_lab||[]).push([[484],{3484:(e,t,n)=>{n.r(t),n.d(t,{default:()=>v});var o=n(7110),a=n(5088),s=n(7630),r=n(3517),d=n(830),i=n(4690),m=n(5256),l=n(6903),c=n(1436),u=n(5428),g=n(8397),p=n(9980),y=n(5010),I=n(6230),h=n(9173);class M extends h.JupyterYModel{}class b extends m.Panel{constructor(e){super(),this._buildWidget=e=>{const{commands:t,model:n,externalCommands:a,tracker:s,formSchemaRegistry:r,state:d,annotationModel:i}=e,m=new o.JupyterGISPanel({model:n,commandRegistry:t,formSchemaRegistry:r,state:d,annotationModel:i});let l;n.filePath&&(l=new o.ToolbarWidget({commands:t,model:n,externalCommands:(null==a?void 0:a.getCommands())||[]})),this._jgisWidget=new o.JupyterGISOutputWidget({model:n,content:m,toolbar:l}),this.addWidget(this._jgisWidget),null==s||s.add(this._jgisWidget)};const{model:t}=e;this.addClass("jupytergis-notebook-widget"),this._buildWidget(e),t.sharedModel.changed.connect((t,n)=>{n.stateChange&&n.stateChange.forEach(t=>{var n;"path"===t.name&&(null===(n=this.layout)||void 0===n||n.removeWidget(this._jgisWidget),this._jgisWidget.dispose(),this._buildWidget(e))})})}get jgisWidget(){return this._jgisWidget}}const j={id:"jupytergis:yjswidget-plugin",autoStart:!0,requires:[a.IJGISFormSchemaRegistryToken],optional:[a.IJGISExternalCommandRegistryToken,a.IJupyterGISDocTracker,h.IJupyterYWidgetManager,l.ICollaborativeDrive,d.IStateDB,a.IAnnotationToken,y.ISettingRegistry],activate:(e,t,n,o,s,r,d,i,l)=>{s?s.registerWidget("@jupytergis:widget",class extends M{async initialize(t){const{path:n,format:o,contentType:s}=t,d=o;if(!r)throw(0,c.showErrorMessage)("Error using the JupyterGIS Python API","You cannot use the JupyterGIS Python API without a collaborative drive. You need to install a package providing collaboration features (e.g. jupyter-collaboration)."),new Error("Failed to create the YDoc without a collaborative drive");let i="";const m=e.shell.currentWidget;(m instanceof p.NotebookPanel||m instanceof u.ConsolePanel)&&(i=m.sessionContext.path);let y="";if(n){y=g.PathExt.join(g.PathExt.dirname(i),n);try{await e.serviceManager.contents.get(y)}catch(t){await e.serviceManager.contents.save(y,{content:btoa("{}"),format:"base64"})}}else y=g.PathExt.join(g.PathExt.dirname(i),"unsaved_project");const I=r.sharedModelFactory.createNew({path:y,format:d,contentType:s,collaborative:!0});this.jupyterGISModel=new a.JupyterGISModel({sharedModel:I,settingRegistry:l}),this.jupyterGISModel.contentsManager=e.serviceManager.contents,this.jupyterGISModel.filePath=y,this.ydoc=this.jupyterGISModel.sharedModel.ydoc,this.sharedModel=new h.JupyterYDoc(t,this.ydoc)}},class{constructor(a,s){this.yModel=a,this.node=s;const r=new b({commands:e.commands,model:a.jupyterGISModel,externalCommands:n,tracker:o,annotationModel:i,state:d,formSchemaRegistry:t});this._jgisWidget=r.jgisWidget,I.MessageLoop.sendMessage(r,m.Widget.Msg.BeforeAttach),s.appendChild(r.node),I.MessageLoop.sendMessage(r,m.Widget.Msg.AfterAttach)}dispose(){this._jgisWidget.dispose()}}):console.error("Missing IJupyterYWidgetManager token!")}},v=[{id:"jupytergis:lab:main-menu",autoStart:!0,requires:[a.IJupyterGISDocTracker,a.IJGISFormSchemaRegistryToken,a.IJGISLayerBrowserRegistryToken,d.IStateDB],optional:[r.IMainMenu,i.ITranslator,s.ICompletionProviderManager],activate:(e,t,n,s,r,d,l,c)=>{console.log("jupytergis:lab:main-menu is activated!"),l=null!=l?l:i.nullTranslator;(0,o.createDefaultLayerRegistry)(s),o.GlobalStateDbManager.getInstance().initialize(r),(0,o.addCommands)(e,t,l,n,s,r,c),e.contextMenu.addItem({selector:".jp-gis-source.jp-gis-sourceUnused",rank:1,command:o.CommandIDs.removeSource}),e.contextMenu.addItem({selector:".jp-gis-source",rank:1,command:o.CommandIDs.renameSource}),e.contextMenu.addItem({command:o.CommandIDs.symbology,selector:".jp-gis-layerItem",rank:1}),e.contextMenu.addItem({type:"separator",selector:".jp-gis-layerPanel",rank:1}),e.contextMenu.addItem({command:o.CommandIDs.removeLayer,selector:".jp-gis-layerItem",rank:2}),e.contextMenu.addItem({command:o.CommandIDs.renameLayer,selector:".jp-gis-layerItem",rank:2}),e.contextMenu.addItem({command:o.CommandIDs.zoomToLayer,selector:".jp-gis-layerItem",rank:2});const u=new m.Menu({commands:e.commands});u.title.label=l.load("jupyterlab").__("Download"),u.id="jp-gis-contextmenu-download",u.addItem({command:o.CommandIDs.downloadGeoJSON}),e.contextMenu.addItem({type:"submenu",selector:".jp-gis-layerItem",rank:2,submenu:u});const g=new m.Menu({commands:e.commands});g.title.label=l.load("jupyterlab").__("Processing"),g.id="jp-gis-contextmenu-processing";for(const e of a.ProcessingMerge)g.addItem({command:e.name});e.contextMenu.addItem({type:"submenu",selector:".jp-gis-layerItem",rank:2,submenu:g});const p=new m.Menu({commands:e.commands});p.title.label=l.load("jupyterlab").__("Move Selected Layers to Group"),p.id="jp-gis-contextmenu-movelayer",e.contextMenu.addItem({type:"submenu",selector:".jp-gis-layerItem",rank:2,submenu:p}),e.contextMenu.opened.connect(()=>function(e,t){var n,a,s,r;if(!(null===(n=t.currentWidget)||void 0===n?void 0:n.model))return;const d=null===(a=t.currentWidget)||void 0===a?void 0:a.model,i=null!==(r=null===(s=e.menu.items.find(e=>{var t;return"submenu"===e.type&&"jp-gis-contextmenu-movelayer"===(null===(t=e.submenu)||void 0===t?void 0:t.id)}))||void 0===s?void 0:s.submenu)&&void 0!==r?r:null;if(!i)return;i.clearItems();const m=function e(t){const n=[];for(const o of t)if("string"!=typeof o&&o.layers){n.push(o.name);const t=e(o.layers);n.push(...t)}return n}(d.getLayerTree());i.addItem({command:o.CommandIDs.moveLayersToGroup,args:{label:""}}),m.forEach(e=>{i.addItem({command:o.CommandIDs.moveLayersToGroup,args:{label:e}})}),i.addItem({command:o.CommandIDs.moveLayerToNewGroup})}(e.contextMenu,t)),e.contextMenu.addItem({command:o.CommandIDs.removeGroup,selector:".jp-gis-layerGroupHeader",rank:2}),e.contextMenu.addItem({command:o.CommandIDs.renameGroup,selector:".jp-gis-layerGroupHeader",rank:2}),e.contextMenu.addItem({type:"separator",selector:".jp-gis-layerPanel",rank:2});const y=new m.Menu({commands:e.commands});y.title.label=l.load("jupyterlab").__("Add Layer"),y.id="jp-gis-contextmenu-addLayer",y.addItem({type:"submenu",submenu:(0,o.rasterSubMenu)(e.commands)}),y.addItem({type:"submenu",submenu:(0,o.vectorSubMenu)(e.commands)}),e.contextMenu.addItem({type:"submenu",selector:".jp-gis-layerPanel",rank:3,submenu:y}),d&&function(e,t){e.editMenu.undoers.redo.add({id:o.CommandIDs.redo,isEnabled:t}),e.editMenu.undoers.undo.add({id:o.CommandIDs.undo,isEnabled:t})}(d,()=>null!==t.currentWidget&&t.currentWidget===e.shell.currentWidget)}},j]}}]);
@@ -1 +1 @@
1
- var _JUPYTERLAB;(()=>{"use strict";var e,r,t,a,n,o,i,u,l,s,f,p,d,c,h,v,g,b,y,m,j,w,S,k={1450:(e,r,t)=>{var a={"./index":()=>t.e(484).then(()=>()=>t(3484)),"./extension":()=>t.e(484).then(()=>()=>t(3484)),"./style":()=>t.e(432).then(()=>()=>t(1432))},n=(e,r)=>(t.R=r,r=t.o(a,e)?a[e]():Promise.resolve().then(()=>{throw new Error('Module "'+e+'" does not exist in container.')}),t.R=void 0,r),o=(e,r)=>{if(t.S){var a="default",n=t.S[a];if(n&&n!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[a]=e,t.I(a,r)}};t.d(r,{get:()=>n,init:()=>o})}},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+"."+{234:"8ab0931c15a13e5d92fd",432:"43c3c6b1178c1ea13d41",484:"03e2847cc3cf21c046f0"}[e]+".js?v="+{234:"8ab0931c15a13e5d92fd",432:"43c3c6b1178c1ea13d41",484:"03e2847cc3cf21c046f0"}[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="@jupytergis/jupytergis-lab:",P.l=(t,a,n,o)=>{if(e[t])e[t].push(a);else{var i,u;if(void 0!==n)for(var l=document.getElementsByTagName("script"),s=0;s<l.length;s++){var f=l[s];if(f.getAttribute("src")==t||f.getAttribute("data-webpack")==r+n){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+n),i.src=t),e[t]=[a];var p=(r,a)=>{i.onerror=i.onload=null,clearTimeout(d);var n=e[t];if(delete e[t],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach(e=>e(a)),r)return r(a)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.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,a)=>{a||(a=[]);var n=r[t];if(n||(n=r[t]={}),!(a.indexOf(n)>=0)){if(a.push(n),e[t])return e[t];P.o(P.S,t)||(P.S[t]={});var o=P.S[t],i="@jupytergis/jupytergis-lab",u=(e,r,t,a)=>{var n=o[e]=o[e]||{},u=n[r];(!u||!u.loaded&&(!a!=!u.eager?a:i>u.from))&&(n[r]={get:t,from:i,eager:!!a})},l=[];return"default"===t&&(u("@jupyter/collaborative-drive","3.1.2",()=>P.e(234).then(()=>()=>P(234))),u("@jupytergis/jupytergis-lab","0.9.1",()=>P.e(484).then(()=>()=>P(3484)))),e[t]=l.length?Promise.all(l).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 a=t.length-1;a>-1&&(!e||!/^http(s?):/.test(e));)e=t[a--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),P.p=e})(),t=e=>{var r=e=>e.split(".").map(e=>+e==e?+e:e),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),a=t[1]?r(t[1]):[];return t[2]&&(a.length++,a.push.apply(a,r(t[2]))),t[3]&&(a.push([]),a.push.apply(a,r(t[3]))),a},a=(e,r)=>{e=t(e),r=t(r);for(var a=0;;){if(a>=e.length)return a<r.length&&"u"!=(typeof r[a])[0];var n=e[a],o=(typeof n)[0];if(a>=r.length)return"u"==o;var i=r[a],u=(typeof i)[0];if(o!=u)return"o"==o&&"n"==u||"s"==u||"u"==o;if("o"!=o&&"u"!=o&&n!=i)return n<i;a++}},n=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 a=1,o=1;o<e.length;o++)a--,t+="u"==(typeof(u=e[o]))[0]?"-":(a>0?".":"")+(a=2,u);return t}var i=[];for(o=1;o<e.length;o++){var u=e[o];i.push(0===u?"not("+l()+")":1===u?"("+l()+" || "+l()+")":2===u?i.pop()+" "+i.pop():n(u))}return l();function l(){return i.pop().replace(/^\((.+)\)$/,"$1")}},o=(e,r)=>{if(0 in e){r=t(r);var a=e[0],n=a<0;n&&(a=-a-1);for(var i=0,u=1,l=!0;;u++,i++){var s,f,p=u<e.length?(typeof e[u])[0]:"";if(i>=r.length||"o"==(f=(typeof(s=r[i]))[0]))return!l||("u"==p?u>a&&!n:""==p!=n);if("u"==f){if(!l||"u"!=p)return!1}else if(l)if(p==f)if(u<=a){if(s!=e[u])return!1}else{if(n?s>e[u]:s<e[u])return!1;s!=e[u]&&(l=!1)}else if("s"!=p&&"n"!=p){if(n||u<=a)return!1;l=!1,u--}else{if(u<=a||f<p!=n)return!1;l=!1}else"s"!=p&&"n"!=p&&(l=!1,u--)}}var d=[],c=d.pop.bind(d);for(i=1;i<e.length;i++){var h=e[i];d.push(1==h?c()|c():2==h?c()&c():h?o(h,r):!c())}return!!c()},i=(e,r)=>e&&P.o(e,r),u=e=>(e.loaded=1,e.get()),l=e=>Object.keys(e).reduce((r,t)=>(e[t].eager&&(r[t]=e[t]),r),{}),s=(e,r,t,n)=>{var i=n?l(e[r]):e[r];return(r=Object.keys(i).reduce((e,r)=>!o(t,r)||e&&!a(e,r)?e:r,0))&&i[r]},f=(e,r,t)=>{var n=t?l(e[r]):e[r];return Object.keys(n).reduce((e,r)=>!e||!n[e].loaded&&a(e,r)?r:e,0)},p=(e,r,t,a)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+n(a)+")",d=(e,r,t,a,o)=>{var i=e[t];return"No satisfying version ("+n(a)+")"+(o?" 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(", ")},c=e=>{throw new Error(e)},h=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},g=(e,r,t)=>t?t():((e,r)=>c("Shared module "+r+" doesn't exist in shared scope "+e))(e,r),b=(v=e=>function(r,t,a,n,o){var i=P.I(r);return i&&i.then&&!a?i.then(e.bind(e,r,P.S[r],t,!1,n,o)):e(r,P.S[r],t,a,n,o)})((e,r,t,a,n,o)=>{if(!i(r,t))return g(e,t,o);var l=s(r,t,n,a);return l?u(l):o?o():void c(d(r,e,t,n,a))}),y=v((e,r,t,a,n,l)=>{if(!i(r,t))return g(e,t,l);var s=f(r,t,a);return o(n,s)||h(p(r,t,s,n)),u(r[t][s])}),m={},j={389:()=>y("default","@jupyterlab/statedb",!1,[1,4,4,6]),1593:()=>y("default","@jupyterlab/translation",!1,[1,4,4,6]),2310:()=>y("default","@jupyterlab/coreutils",!1,[1,6,4,6]),2406:()=>y("default","@jupyterlab/mainmenu",!1,[1,4,4,6]),2597:()=>y("default","@jupyterlab/completer",!1,[1,4,4,6]),5163:()=>y("default","@jupyterlab/console",!1,[1,4,4,6]),5256:()=>y("default","@lumino/widgets",!1,[1,2,3,1,,"alpha",0]),6230:()=>y("default","@lumino/messaging",!1,[1,2,0,0]),6903:()=>b("default","@jupyter/collaborative-drive",!1,[1,3,0,0],()=>P.e(234).then(()=>()=>P(234))),7737:()=>y("default","@jupytergis/schema",!1,[2,0,9,1]),8075:()=>y("default","@jupytergis/base",!1,[2,0,9,1]),8361:()=>y("default","@jupyterlab/settingregistry",!1,[1,4,4,6]),8531:()=>y("default","@jupyterlab/notebook",!1,[1,4,4,6]),9173:()=>y("default","yjs-widgets",!1,[2,0,4]),9715:()=>y("default","@jupyterlab/apputils",!1,[1,4,5,6]),7262:()=>y("default","@lumino/coreutils",!1,[1,2,0,0])},w={234:[7262],484:[389,1593,2310,2406,2597,5163,5256,6230,6903,7737,8075,8361,8531,9173,9715]},S={},P.f.consumes=(e,r)=>{P.o(w,e)&&w[e].forEach(e=>{if(P.o(m,e))return r.push(m[e]);if(!S[e]){var t=r=>{m[e]=0,P.m[e]=t=>{delete P.c[e],t.exports=r()}};S[e]=!0;var a=r=>{delete m[e],P.m[e]=t=>{throw delete P.c[e],r}};try{var n=j[e]();n.then?r.push(m[e]=n.then(t).catch(a)):t(n)}catch(e){a(e)}}})},(()=>{P.b=document.baseURI||self.location.href;var e={738:0};P.f.j=(r,t)=>{var a=P.o(e,r)?e[r]:void 0;if(0!==a)if(a)t.push(a[2]);else{var n=new Promise((t,n)=>a=e[r]=[t,n]);t.push(a[2]=n);var o=P.p+P.u(r),i=new Error;P.l(o,t=>{if(P.o(e,r)&&(0!==(a=e[r])&&(e[r]=void 0),a)){var n=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+n+": "+o+")",i.name="ChunkLoadError",i.type=n,i.request=o,a[1](i)}},"chunk-"+r,r)}};var r=(r,t)=>{var a,n,[o,i,u]=t,l=0;if(o.some(r=>0!==e[r])){for(a in i)P.o(i,a)&&(P.m[a]=i[a]);u&&u(P)}for(r&&r(t);l<o.length;l++)n=o[l],P.o(e,n)&&e[n]&&e[n][0](),e[n]=0},t=self.webpackChunk_jupytergis_jupytergis_lab=self.webpackChunk_jupytergis_jupytergis_lab||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),P.nc=void 0;var _=P(1450);(_JUPYTERLAB=void 0===_JUPYTERLAB?{}:_JUPYTERLAB)["@jupytergis/jupytergis-lab"]=_})();
1
+ var _JUPYTERLAB;(()=>{"use strict";var e,r,t,a,n,o,i,u,l,s,f,d,p,c,h,v,b,g,y,m,j,w,S,k={1450:(e,r,t)=>{var a={"./index":()=>t.e(484).then(()=>()=>t(3484)),"./extension":()=>t.e(484).then(()=>()=>t(3484)),"./style":()=>t.e(432).then(()=>()=>t(1432))},n=(e,r)=>(t.R=r,r=t.o(a,e)?a[e]():Promise.resolve().then(()=>{throw new Error('Module "'+e+'" does not exist in container.')}),t.R=void 0,r),o=(e,r)=>{if(t.S){var a="default",n=t.S[a];if(n&&n!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[a]=e,t.I(a,r)}};t.d(r,{get:()=>n,init:()=>o})}},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+"."+{234:"8ab0931c15a13e5d92fd",432:"43c3c6b1178c1ea13d41",484:"00464b7eccab1de26f8b"}[e]+".js?v="+{234:"8ab0931c15a13e5d92fd",432:"43c3c6b1178c1ea13d41",484:"00464b7eccab1de26f8b"}[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="@jupytergis/jupytergis-lab:",P.l=(t,a,n,o)=>{if(e[t])e[t].push(a);else{var i,u;if(void 0!==n)for(var l=document.getElementsByTagName("script"),s=0;s<l.length;s++){var f=l[s];if(f.getAttribute("src")==t||f.getAttribute("data-webpack")==r+n){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+n),i.src=t),e[t]=[a];var d=(r,a)=>{i.onerror=i.onload=null,clearTimeout(p);var n=e[t];if(delete e[t],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach(e=>e(a)),r)return r(a)},p=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,a)=>{a||(a=[]);var n=r[t];if(n||(n=r[t]={}),!(a.indexOf(n)>=0)){if(a.push(n),e[t])return e[t];P.o(P.S,t)||(P.S[t]={});var o=P.S[t],i="@jupytergis/jupytergis-lab",u=(e,r,t,a)=>{var n=o[e]=o[e]||{},u=n[r];(!u||!u.loaded&&(!a!=!u.eager?a:i>u.from))&&(n[r]={get:t,from:i,eager:!!a})},l=[];return"default"===t&&(u("@jupyter/collaborative-drive","3.1.2",()=>P.e(234).then(()=>()=>P(234))),u("@jupytergis/jupytergis-lab","0.9.2",()=>P.e(484).then(()=>()=>P(3484)))),e[t]=l.length?Promise.all(l).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 a=t.length-1;a>-1&&(!e||!/^http(s?):/.test(e));)e=t[a--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),P.p=e})(),t=e=>{var r=e=>e.split(".").map(e=>+e==e?+e:e),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),a=t[1]?r(t[1]):[];return t[2]&&(a.length++,a.push.apply(a,r(t[2]))),t[3]&&(a.push([]),a.push.apply(a,r(t[3]))),a},a=(e,r)=>{e=t(e),r=t(r);for(var a=0;;){if(a>=e.length)return a<r.length&&"u"!=(typeof r[a])[0];var n=e[a],o=(typeof n)[0];if(a>=r.length)return"u"==o;var i=r[a],u=(typeof i)[0];if(o!=u)return"o"==o&&"n"==u||"s"==u||"u"==o;if("o"!=o&&"u"!=o&&n!=i)return n<i;a++}},n=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 a=1,o=1;o<e.length;o++)a--,t+="u"==(typeof(u=e[o]))[0]?"-":(a>0?".":"")+(a=2,u);return t}var i=[];for(o=1;o<e.length;o++){var u=e[o];i.push(0===u?"not("+l()+")":1===u?"("+l()+" || "+l()+")":2===u?i.pop()+" "+i.pop():n(u))}return l();function l(){return i.pop().replace(/^\((.+)\)$/,"$1")}},o=(e,r)=>{if(0 in e){r=t(r);var a=e[0],n=a<0;n&&(a=-a-1);for(var i=0,u=1,l=!0;;u++,i++){var s,f,d=u<e.length?(typeof e[u])[0]:"";if(i>=r.length||"o"==(f=(typeof(s=r[i]))[0]))return!l||("u"==d?u>a&&!n:""==d!=n);if("u"==f){if(!l||"u"!=d)return!1}else if(l)if(d==f)if(u<=a){if(s!=e[u])return!1}else{if(n?s>e[u]:s<e[u])return!1;s!=e[u]&&(l=!1)}else if("s"!=d&&"n"!=d){if(n||u<=a)return!1;l=!1,u--}else{if(u<=a||f<d!=n)return!1;l=!1}else"s"!=d&&"n"!=d&&(l=!1,u--)}}var p=[],c=p.pop.bind(p);for(i=1;i<e.length;i++){var h=e[i];p.push(1==h?c()|c():2==h?c()&c():h?o(h,r):!c())}return!!c()},i=(e,r)=>e&&P.o(e,r),u=e=>(e.loaded=1,e.get()),l=e=>Object.keys(e).reduce((r,t)=>(e[t].eager&&(r[t]=e[t]),r),{}),s=(e,r,t,n)=>{var i=n?l(e[r]):e[r];return(r=Object.keys(i).reduce((e,r)=>!o(t,r)||e&&!a(e,r)?e:r,0))&&i[r]},f=(e,r,t)=>{var n=t?l(e[r]):e[r];return Object.keys(n).reduce((e,r)=>!e||!n[e].loaded&&a(e,r)?r:e,0)},d=(e,r,t,a)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+n(a)+")",p=(e,r,t,a,o)=>{var i=e[t];return"No satisfying version ("+n(a)+")"+(o?" 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(", ")},c=e=>{throw new Error(e)},h=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},b=(e,r,t)=>t?t():((e,r)=>c("Shared module "+r+" doesn't exist in shared scope "+e))(e,r),g=(v=e=>function(r,t,a,n,o){var i=P.I(r);return i&&i.then&&!a?i.then(e.bind(e,r,P.S[r],t,!1,n,o)):e(r,P.S[r],t,a,n,o)})((e,r,t,a,n,o)=>{if(!i(r,t))return b(e,t,o);var l=s(r,t,n,a);return l?u(l):o?o():void c(p(r,e,t,n,a))}),y=v((e,r,t,a,n,l)=>{if(!i(r,t))return b(e,t,l);var s=f(r,t,a);return o(n,s)||h(d(r,t,s,n)),u(r[t][s])}),m={},j={830:()=>y("default","@jupyterlab/statedb",!1,[1,4,4,7]),1436:()=>y("default","@jupyterlab/apputils",!1,[1,4,5,7]),3517:()=>y("default","@jupyterlab/mainmenu",!1,[1,4,4,7]),4690:()=>y("default","@jupyterlab/translation",!1,[1,4,4,7]),5010:()=>y("default","@jupyterlab/settingregistry",!1,[1,4,4,7]),5088:()=>y("default","@jupytergis/schema",!1,[2,0,9,2]),5256:()=>y("default","@lumino/widgets",!1,[1,2,3,1,,"alpha",0]),5428:()=>y("default","@jupyterlab/console",!1,[1,4,4,7]),6230:()=>y("default","@lumino/messaging",!1,[1,2,0,0]),6903:()=>g("default","@jupyter/collaborative-drive",!1,[1,3,0,0],()=>P.e(234).then(()=>()=>P(234))),7110:()=>y("default","@jupytergis/base",!1,[2,0,9,2]),7630:()=>y("default","@jupyterlab/completer",!1,[1,4,4,7]),8397:()=>y("default","@jupyterlab/coreutils",!1,[1,6,4,7]),9173:()=>y("default","yjs-widgets",!1,[2,0,4]),9980:()=>y("default","@jupyterlab/notebook",!1,[1,4,4,7]),7262:()=>y("default","@lumino/coreutils",!1,[1,2,0,0])},w={234:[7262],484:[830,1436,3517,4690,5010,5088,5256,5428,6230,6903,7110,7630,8397,9173,9980]},S={},P.f.consumes=(e,r)=>{P.o(w,e)&&w[e].forEach(e=>{if(P.o(m,e))return r.push(m[e]);if(!S[e]){var t=r=>{m[e]=0,P.m[e]=t=>{delete P.c[e],t.exports=r()}};S[e]=!0;var a=r=>{delete m[e],P.m[e]=t=>{throw delete P.c[e],r}};try{var n=j[e]();n.then?r.push(m[e]=n.then(t).catch(a)):t(n)}catch(e){a(e)}}})},(()=>{P.b=document.baseURI||self.location.href;var e={738:0};P.f.j=(r,t)=>{var a=P.o(e,r)?e[r]:void 0;if(0!==a)if(a)t.push(a[2]);else{var n=new Promise((t,n)=>a=e[r]=[t,n]);t.push(a[2]=n);var o=P.p+P.u(r),i=new Error;P.l(o,t=>{if(P.o(e,r)&&(0!==(a=e[r])&&(e[r]=void 0),a)){var n=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+n+": "+o+")",i.name="ChunkLoadError",i.type=n,i.request=o,a[1](i)}},"chunk-"+r,r)}};var r=(r,t)=>{var a,n,[o,i,u]=t,l=0;if(o.some(r=>0!==e[r])){for(a in i)P.o(i,a)&&(P.m[a]=i[a]);u&&u(P)}for(r&&r(t);l<o.length;l++)n=o[l],P.o(e,n)&&e[n]&&e[n][0](),e[n]=0},t=self.webpackChunk_jupytergis_jupytergis_lab=self.webpackChunk_jupytergis_jupytergis_lab||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),P.nc=void 0;var _=P(1450);(_JUPYTERLAB=void 0===_JUPYTERLAB?{}:_JUPYTERLAB)["@jupytergis/jupytergis-lab"]=_})();
@@ -8,7 +8,7 @@
8
8
  },
9
9
  {
10
10
  "name": "@jupytergis/base",
11
- "versionInfo": "0.9.1",
11
+ "versionInfo": "0.9.2",
12
12
  "licenseId": "BSD-3-Clause",
13
13
  "extractedText": ""
14
14
  },
@@ -31,7 +31,7 @@ interface IOptions {
31
31
  model: JupyterGISModel;
32
32
  externalCommands?: IJGISExternalCommandRegistry;
33
33
  tracker?: JupyterGISTracker;
34
- formSchemaRegistry?: IJGISFormSchemaRegistry;
34
+ formSchemaRegistry: IJGISFormSchemaRegistry;
35
35
  state?: IStateDB;
36
36
  annotationModel?: IAnnotationModel;
37
37
  }
@@ -71,17 +71,17 @@ export class YJupyterGISLuminoWidget extends Panel {
71
71
  export const notebookRendererPlugin = {
72
72
  id: 'jupytergis:yjswidget-plugin',
73
73
  autoStart: true,
74
+ requires: [IJGISFormSchemaRegistryToken],
74
75
  optional: [
75
76
  IJGISExternalCommandRegistryToken,
76
77
  IJupyterGISDocTracker,
77
78
  IJupyterYWidgetManager,
78
79
  ICollaborativeDrive,
79
80
  IStateDB,
80
- IJGISFormSchemaRegistryToken,
81
81
  IAnnotationToken,
82
82
  ISettingRegistry,
83
83
  ],
84
- activate: (app, externalCommandRegistry, jgisTracker, yWidgetManager, drive, formSchemaRegistry, state, annotationModel, settingRegistry) => {
84
+ activate: (app, formSchemaRegistry, externalCommandRegistry, jgisTracker, yWidgetManager, drive, state, annotationModel, settingRegistry) => {
85
85
  if (!yWidgetManager) {
86
86
  console.error('Missing IJupyterYWidgetManager token!');
87
87
  return;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupytergis/jupytergis-lab",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "description": "JupyterGIS Lab extension.",
5
5
  "keywords": [
6
6
  "jupyter",
@@ -53,8 +53,8 @@
53
53
  },
54
54
  "dependencies": {
55
55
  "@jupyter/collaborative-drive": "^3.0.0",
56
- "@jupytergis/base": "^0.9.1",
57
- "@jupytergis/schema": "^0.9.1",
56
+ "@jupytergis/base": "^0.9.2",
57
+ "@jupytergis/schema": "^0.9.2",
58
58
  "@jupyterlab/application": "^4.3.0",
59
59
  "@jupyterlab/apputils": "^4.3.0",
60
60
  "@jupyterlab/completer": "^4.3.0",
@@ -127,7 +127,7 @@ interface IOptions {
127
127
  model: JupyterGISModel;
128
128
  externalCommands?: IJGISExternalCommandRegistry;
129
129
  tracker?: JupyterGISTracker;
130
- formSchemaRegistry?: IJGISFormSchemaRegistry;
130
+ formSchemaRegistry: IJGISFormSchemaRegistry;
131
131
  state?: IStateDB;
132
132
  annotationModel?: IAnnotationModel;
133
133
  }
@@ -135,23 +135,23 @@ interface IOptions {
135
135
  export const notebookRendererPlugin: JupyterFrontEndPlugin<void> = {
136
136
  id: 'jupytergis:yjswidget-plugin',
137
137
  autoStart: true,
138
+ requires: [IJGISFormSchemaRegistryToken],
138
139
  optional: [
139
140
  IJGISExternalCommandRegistryToken,
140
141
  IJupyterGISDocTracker,
141
142
  IJupyterYWidgetManager,
142
143
  ICollaborativeDrive,
143
144
  IStateDB,
144
- IJGISFormSchemaRegistryToken,
145
145
  IAnnotationToken,
146
146
  ISettingRegistry,
147
147
  ],
148
148
  activate: (
149
149
  app: JupyterFrontEnd,
150
+ formSchemaRegistry: IJGISFormSchemaRegistry,
150
151
  externalCommandRegistry?: IJGISExternalCommandRegistry,
151
152
  jgisTracker?: JupyterGISTracker,
152
153
  yWidgetManager?: IJupyterYWidgetManager,
153
154
  drive?: ICollaborativeDrive,
154
- formSchemaRegistry?: IJGISFormSchemaRegistry,
155
155
  state?: IStateDB,
156
156
  annotationModel?: IAnnotationModel,
157
157
  settingRegistry?: ISettingRegistry,