@xwiki/cristal-browser-electron 0.8.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @xwiki/cristal-browser-electron
2
2
 
3
+ ## 0.10.0
4
+
5
+ ### Minor Changes
6
+
7
+ - fa7fe9f: Cristal 0.10 Release
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [fa7fe9f]
12
+ - @xwiki/cristal-api@0.10.0
13
+ - @xwiki/cristal-browser-api@0.10.0
14
+
15
+ ## 0.9.0
16
+
17
+ ### Minor Changes
18
+
19
+ - efbd020: Cristal 0.9 Release
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies [efbd020]
24
+ - @xwiki/cristal-api@0.9.0
25
+ - @xwiki/cristal-browser-api@0.9.0
26
+
3
27
  ## 0.8.0
4
28
 
5
29
  ### Minor Changes
@@ -1,26 +1,2 @@
1
- /**
2
- * See the LICENSE file distributed with this work for additional
3
- * information regarding copyright ownership.
4
- *
5
- * This is free software; you can redistribute it and/or modify it
6
- * under the terms of the GNU Affero General Public License as
7
- * published by the Free Software Foundation; either version 2.1 of
8
- * the License, or (at your option) any later version.
9
- *
10
- * This software is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
- * Lesser General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU Affero General Public
16
- * License along with this software; if not, write to the Free
17
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19
- *
20
- * This file is part of the Cristal Wiki software prototype
21
- * @copyright Copyright (c) 2023 XWiki SAS
22
- * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0
23
- *
24
- **/
25
1
  import BrowserWindow = Electron.BrowserWindow;
26
2
  export default function load(window: BrowserWindow): void;
@@ -1,27 +1,3 @@
1
- /**
2
- * See the LICENSE file distributed with this work for additional
3
- * information regarding copyright ownership.
4
- *
5
- * This is free software; you can redistribute it and/or modify it
6
- * under the terms of the GNU Affero General Public License as
7
- * published by the Free Software Foundation; either version 2.1 of
8
- * the License, or (at your option) any later version.
9
- *
10
- * This software is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
- * Lesser General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU Affero General Public
16
- * License along with this software; if not, write to the Free
17
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19
- *
20
- * This file is part of the Cristal Wiki software prototype
21
- * @copyright Copyright (c) 2023 XWiki SAS
22
- * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0
23
- *
24
- **/
25
1
  export interface APITypes {
26
2
  reloadBrowser(): void;
27
3
  }
@@ -1,25 +1 @@
1
- /**
2
- * See the LICENSE file distributed with this work for additional
3
- * information regarding copyright ownership.
4
- *
5
- * This is free software; you can redistribute it and/or modify it
6
- * under the terms of the GNU Affero General Public License as
7
- * published by the Free Software Foundation; either version 2.1 of
8
- * the License, or (at your option) any later version.
9
- *
10
- * This software is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
- * Lesser General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU Affero General Public
16
- * License along with this software; if not, write to the Free
17
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19
- *
20
- * This file is part of the Cristal Wiki software prototype
21
- * @copyright Copyright (c) 2023 XWiki SAS
22
- * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0
23
- *
24
- **/
25
1
  export {};
@@ -13,30 +13,6 @@ let l = class {
13
13
  l = w([
14
14
  p()
15
15
  ], l);
16
- /**
17
- * See the LICENSE file distributed with this work for additional
18
- * information regarding copyright ownership.
19
- *
20
- * This is free software; you can redistribute it and/or modify it
21
- * under the terms of the GNU Affero General Public License as
22
- * published by the Free Software Foundation; either version 2.1 of
23
- * the License, or (at your option) any later version.
24
- *
25
- * This software is distributed in the hope that it will be useful,
26
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
27
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
28
- * Lesser General Public License for more details.
29
- *
30
- * You should have received a copy of the GNU Affero General Public
31
- * License along with this software; if not, write to the Free
32
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
33
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
34
- *
35
- * This file is part of the Cristal Wiki software prototype
36
- * @copyright Copyright (c) 2023 XWiki SAS
37
- * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0
38
- *
39
- **/
40
16
  class _ {
41
17
  constructor(e) {
42
18
  e.bind(i).to(l).inSingletonScope();
@@ -1 +1 @@
1
- {"version":3,"file":"index.es.js","sources":["../../src/components/browser-api-electron.ts","../../src/componentsInit.ts"],"sourcesContent":["/**\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n *\n * This file is part of the Cristal Wiki software prototype\n * @copyright Copyright (c) 2023 XWiki SAS\n * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0\n *\n **/\n\nimport { BrowserApi } from \"@xwiki/cristal-browser-api\";\nimport { injectable } from \"inversify\";\nimport { APITypes } from \"../electron/preload/apiTypes\";\nimport { WikiConfig } from \"@xwiki/cristal-api\";\n\ndeclare const browserElectron: APITypes;\n\n/**\n * Remembers the current location in the locale storage, then reload the\n * browser.\n */\n@injectable()\nexport class BrowserApiElectron implements BrowserApi {\n switchLocation(wikiConfig: WikiConfig) {\n window.localStorage.setItem(\"currentApp\", wikiConfig.name);\n browserElectron.reloadBrowser();\n }\n}\n","/**\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n *\n * This file is part of the Cristal Wiki software prototype\n * @copyright Copyright (c) 2023 XWiki SAS\n * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0\n *\n **/\n\nimport type { Container } from \"inversify\";\nimport { BrowserApiElectron } from \"./components/browser-api-electron\";\nimport { BrowserApi, name } from \"@xwiki/cristal-browser-api\";\n\nexport class ComponentInit {\n constructor(container: Container) {\n container.bind<BrowserApi>(name).to(BrowserApiElectron).inSingletonScope();\n }\n}\n"],"names":["BrowserApiElectron","wikiConfig","__decorateClass","injectable","ComponentInit","container","name"],"mappings":";;;;;;;AAqCO,IAAMA,IAAN,MAA+C;AAAA,EACpD,eAAeC,GAAwB;AACrC,WAAO,aAAa,QAAQ,cAAcA,EAAW,IAAI,GACzD,gBAAgB,cAAc;AAAA,EAChC;AACF;AALaD,IAANE,EAAA;AAAA,EADNC,EAAW;AAAA,GACCH,CAAA;ACrCb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA6BO,MAAMI,EAAc;AAAA,EACzB,YAAYC,GAAsB;AAChC,IAAAA,EAAU,KAAiBC,CAAI,EAAE,GAAGN,CAAkB,EAAE;EAC1D;AACF;"}
1
+ {"version":3,"file":"index.es.js","sources":["../../src/components/browser-api-electron.ts","../../src/componentsInit.ts"],"sourcesContent":["/*\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport { BrowserApi } from \"@xwiki/cristal-browser-api\";\nimport { injectable } from \"inversify\";\nimport { APITypes } from \"../electron/preload/apiTypes\";\nimport { WikiConfig } from \"@xwiki/cristal-api\";\n\ndeclare const browserElectron: APITypes;\n\n/**\n * Remembers the current location in the locale storage, then reload the\n * browser.\n */\n@injectable()\nexport class BrowserApiElectron implements BrowserApi {\n switchLocation(wikiConfig: WikiConfig): void {\n window.localStorage.setItem(\"currentApp\", wikiConfig.name);\n browserElectron.reloadBrowser();\n }\n}\n","/*\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport type { Container } from \"inversify\";\nimport { BrowserApiElectron } from \"./components/browser-api-electron\";\nimport { BrowserApi, name } from \"@xwiki/cristal-browser-api\";\n\nexport class ComponentInit {\n constructor(container: Container) {\n container.bind<BrowserApi>(name).to(BrowserApiElectron).inSingletonScope();\n }\n}\n"],"names":["BrowserApiElectron","wikiConfig","__decorateClass","injectable","ComponentInit","container","name"],"mappings":";;;;;;;AAgCO,IAAMA,IAAN,MAA+C;AAAA,EACpD,eAAeC,GAA8B;AAC3C,WAAO,aAAa,QAAQ,cAAcA,EAAW,IAAI,GACzD,gBAAgB,cAAc;AAAA,EAChC;AACF;AALaD,IAANE,EAAA;AAAA,EADNC,EAAW;AAAA,GACCH,CAAA;ACRN,MAAMI,EAAc;AAAA,EACzB,YAAYC,GAAsB;AAChC,IAAAA,EAAU,KAAiBC,CAAI,EAAE,GAAGN,CAAkB,EAAE;EAC1D;AACF;"}
@@ -1,25 +1,2 @@
1
- (function(e,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("inversify"),require("@xwiki/cristal-browser-api")):typeof define=="function"&&define.amd?define(["exports","inversify","@xwiki/cristal-browser-api"],n):(e=typeof globalThis<"u"?globalThis:e||self,n(e.cristal_browser={},e.inversify,e.cristalBrowserApi))})(this,function(e,n,l){"use strict";var a=Object.defineProperty,u=Object.getOwnPropertyDescriptor,w=(t,i,c,o)=>{for(var r=o>1?void 0:o?u(i,c):i,p=t.length-1,f;p>=0;p--)(f=t[p])&&(r=(o?f(i,c,r):f(r))||r);return o&&r&&a(i,c,r),r};let s=class{switchLocation(t){window.localStorage.setItem("currentApp",t.name),browserElectron.reloadBrowser()}};s=w([n.injectable()],s);/**
2
- * See the LICENSE file distributed with this work for additional
3
- * information regarding copyright ownership.
4
- *
5
- * This is free software; you can redistribute it and/or modify it
6
- * under the terms of the GNU Affero General Public License as
7
- * published by the Free Software Foundation; either version 2.1 of
8
- * the License, or (at your option) any later version.
9
- *
10
- * This software is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
- * Lesser General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU Affero General Public
16
- * License along with this software; if not, write to the Free
17
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19
- *
20
- * This file is part of the Cristal Wiki software prototype
21
- * @copyright Copyright (c) 2023 XWiki SAS
22
- * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0
23
- *
24
- **/class d{constructor(i){i.bind(l.name).to(s).inSingletonScope()}}e.ComponentInit=d,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
1
+ (function(e,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("inversify"),require("@xwiki/cristal-browser-api")):typeof define=="function"&&define.amd?define(["exports","inversify","@xwiki/cristal-browser-api"],n):(e=typeof globalThis<"u"?globalThis:e||self,n(e.cristal_browser={},e.inversify,e.cristalBrowserApi))})(this,function(e,n,l){"use strict";var a=Object.defineProperty,u=Object.getOwnPropertyDescriptor,w=(t,i,c,o)=>{for(var r=o>1?void 0:o?u(i,c):i,p=t.length-1,f;p>=0;p--)(f=t[p])&&(r=(o?f(i,c,r):f(r))||r);return o&&r&&a(i,c,r),r};let s=class{switchLocation(t){window.localStorage.setItem("currentApp",t.name),browserElectron.reloadBrowser()}};s=w([n.injectable()],s);class d{constructor(i){i.bind(l.name).to(s).inSingletonScope()}}e.ComponentInit=d,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
25
2
  //# sourceMappingURL=index.umd.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.umd.js","sources":["../../src/components/browser-api-electron.ts","../../src/componentsInit.ts"],"sourcesContent":["/**\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n *\n * This file is part of the Cristal Wiki software prototype\n * @copyright Copyright (c) 2023 XWiki SAS\n * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0\n *\n **/\n\nimport { BrowserApi } from \"@xwiki/cristal-browser-api\";\nimport { injectable } from \"inversify\";\nimport { APITypes } from \"../electron/preload/apiTypes\";\nimport { WikiConfig } from \"@xwiki/cristal-api\";\n\ndeclare const browserElectron: APITypes;\n\n/**\n * Remembers the current location in the locale storage, then reload the\n * browser.\n */\n@injectable()\nexport class BrowserApiElectron implements BrowserApi {\n switchLocation(wikiConfig: WikiConfig) {\n window.localStorage.setItem(\"currentApp\", wikiConfig.name);\n browserElectron.reloadBrowser();\n }\n}\n","/**\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n *\n * This file is part of the Cristal Wiki software prototype\n * @copyright Copyright (c) 2023 XWiki SAS\n * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0\n *\n **/\n\nimport type { Container } from \"inversify\";\nimport { BrowserApiElectron } from \"./components/browser-api-electron\";\nimport { BrowserApi, name } from \"@xwiki/cristal-browser-api\";\n\nexport class ComponentInit {\n constructor(container: Container) {\n container.bind<BrowserApi>(name).to(BrowserApiElectron).inSingletonScope();\n }\n}\n"],"names":["BrowserApiElectron","wikiConfig","__decorateClass","injectable","ComponentInit","container","name"],"mappings":"+iBAqCO,IAAMA,EAAN,KAA+C,CACpD,eAAeC,EAAwB,CACrC,OAAO,aAAa,QAAQ,aAAcA,EAAW,IAAI,EACzD,gBAAgB,cAAc,CAChC,CACF,EALaD,EAANE,EAAA,CADNC,aAAW,CAAA,EACCH,CAAA,ECrCb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IA6BO,MAAMI,CAAc,CACzB,YAAYC,EAAsB,CAChCA,EAAU,KAAiBC,MAAI,EAAE,GAAGN,CAAkB,EAAE,kBAC1D,CACF"}
1
+ {"version":3,"file":"index.umd.js","sources":["../../src/components/browser-api-electron.ts","../../src/componentsInit.ts"],"sourcesContent":["/*\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport { BrowserApi } from \"@xwiki/cristal-browser-api\";\nimport { injectable } from \"inversify\";\nimport { APITypes } from \"../electron/preload/apiTypes\";\nimport { WikiConfig } from \"@xwiki/cristal-api\";\n\ndeclare const browserElectron: APITypes;\n\n/**\n * Remembers the current location in the locale storage, then reload the\n * browser.\n */\n@injectable()\nexport class BrowserApiElectron implements BrowserApi {\n switchLocation(wikiConfig: WikiConfig): void {\n window.localStorage.setItem(\"currentApp\", wikiConfig.name);\n browserElectron.reloadBrowser();\n }\n}\n","/*\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport type { Container } from \"inversify\";\nimport { BrowserApiElectron } from \"./components/browser-api-electron\";\nimport { BrowserApi, name } from \"@xwiki/cristal-browser-api\";\n\nexport class ComponentInit {\n constructor(container: Container) {\n container.bind<BrowserApi>(name).to(BrowserApiElectron).inSingletonScope();\n }\n}\n"],"names":["BrowserApiElectron","wikiConfig","__decorateClass","injectable","ComponentInit","container","name"],"mappings":"+iBAgCO,IAAMA,EAAN,KAA+C,CACpD,eAAeC,EAA8B,CAC3C,OAAO,aAAa,QAAQ,aAAcA,EAAW,IAAI,EACzD,gBAAgB,cAAc,CAChC,CACF,EALaD,EAANE,EAAA,CADNC,aAAW,CAAA,EACCH,CAAA,ECRN,MAAMI,CAAc,CACzB,YAAYC,EAAsB,CAChCA,EAAU,KAAiBC,MAAI,EAAE,GAAGN,CAAkB,EAAE,kBAC1D,CACF"}
@@ -1,26 +1,2 @@
1
- /**
2
- * See the LICENSE file distributed with this work for additional
3
- * information regarding copyright ownership.
4
- *
5
- * This is free software; you can redistribute it and/or modify it
6
- * under the terms of the GNU Affero General Public License as
7
- * published by the Free Software Foundation; either version 2.1 of
8
- * the License, or (at your option) any later version.
9
- *
10
- * This software is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
- * Lesser General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU Affero General Public
16
- * License along with this software; if not, write to the Free
17
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19
- *
20
- * This file is part of the Cristal Wiki software prototype
21
- * @copyright Copyright (c) 2023 XWiki SAS
22
- * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0
23
- *
24
- **/
25
1
  import BrowserWindow = Electron.BrowserWindow;
26
2
  export default function load(window: BrowserWindow): void;
@@ -1,27 +1,3 @@
1
- /**
2
- * See the LICENSE file distributed with this work for additional
3
- * information regarding copyright ownership.
4
- *
5
- * This is free software; you can redistribute it and/or modify it
6
- * under the terms of the GNU Affero General Public License as
7
- * published by the Free Software Foundation; either version 2.1 of
8
- * the License, or (at your option) any later version.
9
- *
10
- * This software is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
- * Lesser General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU Affero General Public
16
- * License along with this software; if not, write to the Free
17
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19
- *
20
- * This file is part of the Cristal Wiki software prototype
21
- * @copyright Copyright (c) 2023 XWiki SAS
22
- * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0
23
- *
24
- **/
25
1
  export interface APITypes {
26
2
  reloadBrowser(): void;
27
3
  }
@@ -1,25 +1 @@
1
- /**
2
- * See the LICENSE file distributed with this work for additional
3
- * information regarding copyright ownership.
4
- *
5
- * This is free software; you can redistribute it and/or modify it
6
- * under the terms of the GNU Affero General Public License as
7
- * published by the Free Software Foundation; either version 2.1 of
8
- * the License, or (at your option) any later version.
9
- *
10
- * This software is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
- * Lesser General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU Affero General Public
16
- * License along with this software; if not, write to the Free
17
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19
- *
20
- * This file is part of the Cristal Wiki software prototype
21
- * @copyright Copyright (c) 2023 XWiki SAS
22
- * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0
23
- *
24
- **/
25
1
  export {};
@@ -13,30 +13,6 @@ let l = class {
13
13
  l = w([
14
14
  p()
15
15
  ], l);
16
- /**
17
- * See the LICENSE file distributed with this work for additional
18
- * information regarding copyright ownership.
19
- *
20
- * This is free software; you can redistribute it and/or modify it
21
- * under the terms of the GNU Affero General Public License as
22
- * published by the Free Software Foundation; either version 2.1 of
23
- * the License, or (at your option) any later version.
24
- *
25
- * This software is distributed in the hope that it will be useful,
26
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
27
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
28
- * Lesser General Public License for more details.
29
- *
30
- * You should have received a copy of the GNU Affero General Public
31
- * License along with this software; if not, write to the Free
32
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
33
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
34
- *
35
- * This file is part of the Cristal Wiki software prototype
36
- * @copyright Copyright (c) 2023 XWiki SAS
37
- * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0
38
- *
39
- **/
40
16
  class _ {
41
17
  constructor(e) {
42
18
  e.bind(i).to(l).inSingletonScope();
@@ -1 +1 @@
1
- {"version":3,"file":"index.es.js","sources":["../../src/components/browser-api-electron.ts","../../src/componentsInit.ts"],"sourcesContent":["/**\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n *\n * This file is part of the Cristal Wiki software prototype\n * @copyright Copyright (c) 2023 XWiki SAS\n * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0\n *\n **/\n\nimport { BrowserApi } from \"@xwiki/cristal-browser-api\";\nimport { injectable } from \"inversify\";\nimport { APITypes } from \"../electron/preload/apiTypes\";\nimport { WikiConfig } from \"@xwiki/cristal-api\";\n\ndeclare const browserElectron: APITypes;\n\n/**\n * Remembers the current location in the locale storage, then reload the\n * browser.\n */\n@injectable()\nexport class BrowserApiElectron implements BrowserApi {\n switchLocation(wikiConfig: WikiConfig) {\n window.localStorage.setItem(\"currentApp\", wikiConfig.name);\n browserElectron.reloadBrowser();\n }\n}\n","/**\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n *\n * This file is part of the Cristal Wiki software prototype\n * @copyright Copyright (c) 2023 XWiki SAS\n * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0\n *\n **/\n\nimport type { Container } from \"inversify\";\nimport { BrowserApiElectron } from \"./components/browser-api-electron\";\nimport { BrowserApi, name } from \"@xwiki/cristal-browser-api\";\n\nexport class ComponentInit {\n constructor(container: Container) {\n container.bind<BrowserApi>(name).to(BrowserApiElectron).inSingletonScope();\n }\n}\n"],"names":["BrowserApiElectron","wikiConfig","__decorateClass","injectable","ComponentInit","container","name"],"mappings":";;;;;;;AAqCO,IAAMA,IAAN,MAA+C;AAAA,EACpD,eAAeC,GAAwB;AACrC,WAAO,aAAa,QAAQ,cAAcA,EAAW,IAAI,GACzD,gBAAgB,cAAc;AAAA,EAChC;AACF;AALaD,IAANE,EAAA;AAAA,EADNC,EAAW;AAAA,GACCH,CAAA;ACrCb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA6BO,MAAMI,EAAc;AAAA,EACzB,YAAYC,GAAsB;AAChC,IAAAA,EAAU,KAAiBC,CAAI,EAAE,GAAGN,CAAkB,EAAE;EAC1D;AACF;"}
1
+ {"version":3,"file":"index.es.js","sources":["../../src/components/browser-api-electron.ts","../../src/componentsInit.ts"],"sourcesContent":["/*\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport { BrowserApi } from \"@xwiki/cristal-browser-api\";\nimport { injectable } from \"inversify\";\nimport { APITypes } from \"../electron/preload/apiTypes\";\nimport { WikiConfig } from \"@xwiki/cristal-api\";\n\ndeclare const browserElectron: APITypes;\n\n/**\n * Remembers the current location in the locale storage, then reload the\n * browser.\n */\n@injectable()\nexport class BrowserApiElectron implements BrowserApi {\n switchLocation(wikiConfig: WikiConfig): void {\n window.localStorage.setItem(\"currentApp\", wikiConfig.name);\n browserElectron.reloadBrowser();\n }\n}\n","/*\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport type { Container } from \"inversify\";\nimport { BrowserApiElectron } from \"./components/browser-api-electron\";\nimport { BrowserApi, name } from \"@xwiki/cristal-browser-api\";\n\nexport class ComponentInit {\n constructor(container: Container) {\n container.bind<BrowserApi>(name).to(BrowserApiElectron).inSingletonScope();\n }\n}\n"],"names":["BrowserApiElectron","wikiConfig","__decorateClass","injectable","ComponentInit","container","name"],"mappings":";;;;;;;AAgCO,IAAMA,IAAN,MAA+C;AAAA,EACpD,eAAeC,GAA8B;AAC3C,WAAO,aAAa,QAAQ,cAAcA,EAAW,IAAI,GACzD,gBAAgB,cAAc;AAAA,EAChC;AACF;AALaD,IAANE,EAAA;AAAA,EADNC,EAAW;AAAA,GACCH,CAAA;ACRN,MAAMI,EAAc;AAAA,EACzB,YAAYC,GAAsB;AAChC,IAAAA,EAAU,KAAiBC,CAAI,EAAE,GAAGN,CAAkB,EAAE;EAC1D;AACF;"}
@@ -1,25 +1,2 @@
1
- (function(e,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("inversify"),require("@xwiki/cristal-browser-api")):typeof define=="function"&&define.amd?define(["exports","inversify","@xwiki/cristal-browser-api"],n):(e=typeof globalThis<"u"?globalThis:e||self,n(e.cristal_browser={},e.inversify,e.cristalBrowserApi))})(this,function(e,n,l){"use strict";var a=Object.defineProperty,u=Object.getOwnPropertyDescriptor,w=(t,i,c,o)=>{for(var r=o>1?void 0:o?u(i,c):i,p=t.length-1,f;p>=0;p--)(f=t[p])&&(r=(o?f(i,c,r):f(r))||r);return o&&r&&a(i,c,r),r};let s=class{switchLocation(t){window.localStorage.setItem("currentApp",t.name),browserElectron.reloadBrowser()}};s=w([n.injectable()],s);/**
2
- * See the LICENSE file distributed with this work for additional
3
- * information regarding copyright ownership.
4
- *
5
- * This is free software; you can redistribute it and/or modify it
6
- * under the terms of the GNU Affero General Public License as
7
- * published by the Free Software Foundation; either version 2.1 of
8
- * the License, or (at your option) any later version.
9
- *
10
- * This software is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
- * Lesser General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU Affero General Public
16
- * License along with this software; if not, write to the Free
17
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19
- *
20
- * This file is part of the Cristal Wiki software prototype
21
- * @copyright Copyright (c) 2023 XWiki SAS
22
- * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0
23
- *
24
- **/class d{constructor(i){i.bind(l.name).to(s).inSingletonScope()}}e.ComponentInit=d,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
1
+ (function(e,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("inversify"),require("@xwiki/cristal-browser-api")):typeof define=="function"&&define.amd?define(["exports","inversify","@xwiki/cristal-browser-api"],n):(e=typeof globalThis<"u"?globalThis:e||self,n(e.cristal_browser={},e.inversify,e.cristalBrowserApi))})(this,function(e,n,l){"use strict";var a=Object.defineProperty,u=Object.getOwnPropertyDescriptor,w=(t,i,c,o)=>{for(var r=o>1?void 0:o?u(i,c):i,p=t.length-1,f;p>=0;p--)(f=t[p])&&(r=(o?f(i,c,r):f(r))||r);return o&&r&&a(i,c,r),r};let s=class{switchLocation(t){window.localStorage.setItem("currentApp",t.name),browserElectron.reloadBrowser()}};s=w([n.injectable()],s);class d{constructor(i){i.bind(l.name).to(s).inSingletonScope()}}e.ComponentInit=d,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
25
2
  //# sourceMappingURL=index.umd.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.umd.js","sources":["../../src/components/browser-api-electron.ts","../../src/componentsInit.ts"],"sourcesContent":["/**\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n *\n * This file is part of the Cristal Wiki software prototype\n * @copyright Copyright (c) 2023 XWiki SAS\n * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0\n *\n **/\n\nimport { BrowserApi } from \"@xwiki/cristal-browser-api\";\nimport { injectable } from \"inversify\";\nimport { APITypes } from \"../electron/preload/apiTypes\";\nimport { WikiConfig } from \"@xwiki/cristal-api\";\n\ndeclare const browserElectron: APITypes;\n\n/**\n * Remembers the current location in the locale storage, then reload the\n * browser.\n */\n@injectable()\nexport class BrowserApiElectron implements BrowserApi {\n switchLocation(wikiConfig: WikiConfig) {\n window.localStorage.setItem(\"currentApp\", wikiConfig.name);\n browserElectron.reloadBrowser();\n }\n}\n","/**\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n *\n * This file is part of the Cristal Wiki software prototype\n * @copyright Copyright (c) 2023 XWiki SAS\n * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0\n *\n **/\n\nimport type { Container } from \"inversify\";\nimport { BrowserApiElectron } from \"./components/browser-api-electron\";\nimport { BrowserApi, name } from \"@xwiki/cristal-browser-api\";\n\nexport class ComponentInit {\n constructor(container: Container) {\n container.bind<BrowserApi>(name).to(BrowserApiElectron).inSingletonScope();\n }\n}\n"],"names":["BrowserApiElectron","wikiConfig","__decorateClass","injectable","ComponentInit","container","name"],"mappings":"+iBAqCO,IAAMA,EAAN,KAA+C,CACpD,eAAeC,EAAwB,CACrC,OAAO,aAAa,QAAQ,aAAcA,EAAW,IAAI,EACzD,gBAAgB,cAAc,CAChC,CACF,EALaD,EAANE,EAAA,CADNC,aAAW,CAAA,EACCH,CAAA,ECrCb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IA6BO,MAAMI,CAAc,CACzB,YAAYC,EAAsB,CAChCA,EAAU,KAAiBC,MAAI,EAAE,GAAGN,CAAkB,EAAE,kBAC1D,CACF"}
1
+ {"version":3,"file":"index.umd.js","sources":["../../src/components/browser-api-electron.ts","../../src/componentsInit.ts"],"sourcesContent":["/*\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport { BrowserApi } from \"@xwiki/cristal-browser-api\";\nimport { injectable } from \"inversify\";\nimport { APITypes } from \"../electron/preload/apiTypes\";\nimport { WikiConfig } from \"@xwiki/cristal-api\";\n\ndeclare const browserElectron: APITypes;\n\n/**\n * Remembers the current location in the locale storage, then reload the\n * browser.\n */\n@injectable()\nexport class BrowserApiElectron implements BrowserApi {\n switchLocation(wikiConfig: WikiConfig): void {\n window.localStorage.setItem(\"currentApp\", wikiConfig.name);\n browserElectron.reloadBrowser();\n }\n}\n","/*\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport type { Container } from \"inversify\";\nimport { BrowserApiElectron } from \"./components/browser-api-electron\";\nimport { BrowserApi, name } from \"@xwiki/cristal-browser-api\";\n\nexport class ComponentInit {\n constructor(container: Container) {\n container.bind<BrowserApi>(name).to(BrowserApiElectron).inSingletonScope();\n }\n}\n"],"names":["BrowserApiElectron","wikiConfig","__decorateClass","injectable","ComponentInit","container","name"],"mappings":"+iBAgCO,IAAMA,EAAN,KAA+C,CACpD,eAAeC,EAA8B,CAC3C,OAAO,aAAa,QAAQ,aAAcA,EAAW,IAAI,EACzD,gBAAgB,cAAc,CAChC,CACF,EALaD,EAANE,EAAA,CADNC,aAAW,CAAA,EACCH,CAAA,ECRN,MAAMI,CAAc,CACzB,YAAYC,EAAsB,CAChCA,EAAU,KAAiBC,MAAI,EAAE,GAAGN,CAAkB,EAAE,kBAC1D,CACF"}
@@ -1,26 +1,2 @@
1
- /**
2
- * See the LICENSE file distributed with this work for additional
3
- * information regarding copyright ownership.
4
- *
5
- * This is free software; you can redistribute it and/or modify it
6
- * under the terms of the GNU Affero General Public License as
7
- * published by the Free Software Foundation; either version 2.1 of
8
- * the License, or (at your option) any later version.
9
- *
10
- * This software is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
- * Lesser General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU Affero General Public
16
- * License along with this software; if not, write to the Free
17
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19
- *
20
- * This file is part of the Cristal Wiki software prototype
21
- * @copyright Copyright (c) 2023 XWiki SAS
22
- * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0
23
- *
24
- **/
25
1
  import BrowserWindow = Electron.BrowserWindow;
26
2
  export default function load(window: BrowserWindow): void;
@@ -1,27 +1,3 @@
1
- /**
2
- * See the LICENSE file distributed with this work for additional
3
- * information regarding copyright ownership.
4
- *
5
- * This is free software; you can redistribute it and/or modify it
6
- * under the terms of the GNU Affero General Public License as
7
- * published by the Free Software Foundation; either version 2.1 of
8
- * the License, or (at your option) any later version.
9
- *
10
- * This software is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
- * Lesser General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU Affero General Public
16
- * License along with this software; if not, write to the Free
17
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19
- *
20
- * This file is part of the Cristal Wiki software prototype
21
- * @copyright Copyright (c) 2023 XWiki SAS
22
- * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0
23
- *
24
- **/
25
1
  export interface APITypes {
26
2
  reloadBrowser(): void;
27
3
  }
@@ -1,25 +1 @@
1
- /**
2
- * See the LICENSE file distributed with this work for additional
3
- * information regarding copyright ownership.
4
- *
5
- * This is free software; you can redistribute it and/or modify it
6
- * under the terms of the GNU Affero General Public License as
7
- * published by the Free Software Foundation; either version 2.1 of
8
- * the License, or (at your option) any later version.
9
- *
10
- * This software is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
- * Lesser General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU Affero General Public
16
- * License along with this software; if not, write to the Free
17
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19
- *
20
- * This file is part of the Cristal Wiki software prototype
21
- * @copyright Copyright (c) 2023 XWiki SAS
22
- * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0
23
- *
24
- **/
25
1
  export {};
@@ -13,30 +13,6 @@ let l = class {
13
13
  l = w([
14
14
  p()
15
15
  ], l);
16
- /**
17
- * See the LICENSE file distributed with this work for additional
18
- * information regarding copyright ownership.
19
- *
20
- * This is free software; you can redistribute it and/or modify it
21
- * under the terms of the GNU Affero General Public License as
22
- * published by the Free Software Foundation; either version 2.1 of
23
- * the License, or (at your option) any later version.
24
- *
25
- * This software is distributed in the hope that it will be useful,
26
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
27
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
28
- * Lesser General Public License for more details.
29
- *
30
- * You should have received a copy of the GNU Affero General Public
31
- * License along with this software; if not, write to the Free
32
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
33
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
34
- *
35
- * This file is part of the Cristal Wiki software prototype
36
- * @copyright Copyright (c) 2023 XWiki SAS
37
- * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0
38
- *
39
- **/
40
16
  class _ {
41
17
  constructor(e) {
42
18
  e.bind(i).to(l).inSingletonScope();
@@ -1 +1 @@
1
- {"version":3,"file":"index.es.js","sources":["../../src/components/browser-api-electron.ts","../../src/componentsInit.ts"],"sourcesContent":["/**\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n *\n * This file is part of the Cristal Wiki software prototype\n * @copyright Copyright (c) 2023 XWiki SAS\n * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0\n *\n **/\n\nimport { BrowserApi } from \"@xwiki/cristal-browser-api\";\nimport { injectable } from \"inversify\";\nimport { APITypes } from \"../electron/preload/apiTypes\";\nimport { WikiConfig } from \"@xwiki/cristal-api\";\n\ndeclare const browserElectron: APITypes;\n\n/**\n * Remembers the current location in the locale storage, then reload the\n * browser.\n */\n@injectable()\nexport class BrowserApiElectron implements BrowserApi {\n switchLocation(wikiConfig: WikiConfig) {\n window.localStorage.setItem(\"currentApp\", wikiConfig.name);\n browserElectron.reloadBrowser();\n }\n}\n","/**\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n *\n * This file is part of the Cristal Wiki software prototype\n * @copyright Copyright (c) 2023 XWiki SAS\n * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0\n *\n **/\n\nimport type { Container } from \"inversify\";\nimport { BrowserApiElectron } from \"./components/browser-api-electron\";\nimport { BrowserApi, name } from \"@xwiki/cristal-browser-api\";\n\nexport class ComponentInit {\n constructor(container: Container) {\n container.bind<BrowserApi>(name).to(BrowserApiElectron).inSingletonScope();\n }\n}\n"],"names":["BrowserApiElectron","wikiConfig","__decorateClass","injectable","ComponentInit","container","name"],"mappings":";;;;;;;AAqCO,IAAMA,IAAN,MAA+C;AAAA,EACpD,eAAeC,GAAwB;AACrC,WAAO,aAAa,QAAQ,cAAcA,EAAW,IAAI,GACzD,gBAAgB,cAAc;AAAA,EAChC;AACF;AALaD,IAANE,EAAA;AAAA,EADNC,EAAW;AAAA,GACCH,CAAA;ACrCb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA6BO,MAAMI,EAAc;AAAA,EACzB,YAAYC,GAAsB;AAChC,IAAAA,EAAU,KAAiBC,CAAI,EAAE,GAAGN,CAAkB,EAAE;EAC1D;AACF;"}
1
+ {"version":3,"file":"index.es.js","sources":["../../src/components/browser-api-electron.ts","../../src/componentsInit.ts"],"sourcesContent":["/*\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport { BrowserApi } from \"@xwiki/cristal-browser-api\";\nimport { injectable } from \"inversify\";\nimport { APITypes } from \"../electron/preload/apiTypes\";\nimport { WikiConfig } from \"@xwiki/cristal-api\";\n\ndeclare const browserElectron: APITypes;\n\n/**\n * Remembers the current location in the locale storage, then reload the\n * browser.\n */\n@injectable()\nexport class BrowserApiElectron implements BrowserApi {\n switchLocation(wikiConfig: WikiConfig): void {\n window.localStorage.setItem(\"currentApp\", wikiConfig.name);\n browserElectron.reloadBrowser();\n }\n}\n","/*\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport type { Container } from \"inversify\";\nimport { BrowserApiElectron } from \"./components/browser-api-electron\";\nimport { BrowserApi, name } from \"@xwiki/cristal-browser-api\";\n\nexport class ComponentInit {\n constructor(container: Container) {\n container.bind<BrowserApi>(name).to(BrowserApiElectron).inSingletonScope();\n }\n}\n"],"names":["BrowserApiElectron","wikiConfig","__decorateClass","injectable","ComponentInit","container","name"],"mappings":";;;;;;;AAgCO,IAAMA,IAAN,MAA+C;AAAA,EACpD,eAAeC,GAA8B;AAC3C,WAAO,aAAa,QAAQ,cAAcA,EAAW,IAAI,GACzD,gBAAgB,cAAc;AAAA,EAChC;AACF;AALaD,IAANE,EAAA;AAAA,EADNC,EAAW;AAAA,GACCH,CAAA;ACRN,MAAMI,EAAc;AAAA,EACzB,YAAYC,GAAsB;AAChC,IAAAA,EAAU,KAAiBC,CAAI,EAAE,GAAGN,CAAkB,EAAE;EAC1D;AACF;"}
@@ -1,25 +1,2 @@
1
- (function(e,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("inversify"),require("@xwiki/cristal-browser-api")):typeof define=="function"&&define.amd?define(["exports","inversify","@xwiki/cristal-browser-api"],n):(e=typeof globalThis<"u"?globalThis:e||self,n(e.cristal_browser={},e.inversify,e.cristalBrowserApi))})(this,function(e,n,l){"use strict";var a=Object.defineProperty,u=Object.getOwnPropertyDescriptor,w=(t,i,c,o)=>{for(var r=o>1?void 0:o?u(i,c):i,p=t.length-1,f;p>=0;p--)(f=t[p])&&(r=(o?f(i,c,r):f(r))||r);return o&&r&&a(i,c,r),r};let s=class{switchLocation(t){window.localStorage.setItem("currentApp",t.name),browserElectron.reloadBrowser()}};s=w([n.injectable()],s);/**
2
- * See the LICENSE file distributed with this work for additional
3
- * information regarding copyright ownership.
4
- *
5
- * This is free software; you can redistribute it and/or modify it
6
- * under the terms of the GNU Affero General Public License as
7
- * published by the Free Software Foundation; either version 2.1 of
8
- * the License, or (at your option) any later version.
9
- *
10
- * This software is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
- * Lesser General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU Affero General Public
16
- * License along with this software; if not, write to the Free
17
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19
- *
20
- * This file is part of the Cristal Wiki software prototype
21
- * @copyright Copyright (c) 2023 XWiki SAS
22
- * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0
23
- *
24
- **/class d{constructor(i){i.bind(l.name).to(s).inSingletonScope()}}e.ComponentInit=d,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
1
+ (function(e,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("inversify"),require("@xwiki/cristal-browser-api")):typeof define=="function"&&define.amd?define(["exports","inversify","@xwiki/cristal-browser-api"],n):(e=typeof globalThis<"u"?globalThis:e||self,n(e.cristal_browser={},e.inversify,e.cristalBrowserApi))})(this,function(e,n,l){"use strict";var a=Object.defineProperty,u=Object.getOwnPropertyDescriptor,w=(t,i,c,o)=>{for(var r=o>1?void 0:o?u(i,c):i,p=t.length-1,f;p>=0;p--)(f=t[p])&&(r=(o?f(i,c,r):f(r))||r);return o&&r&&a(i,c,r),r};let s=class{switchLocation(t){window.localStorage.setItem("currentApp",t.name),browserElectron.reloadBrowser()}};s=w([n.injectable()],s);class d{constructor(i){i.bind(l.name).to(s).inSingletonScope()}}e.ComponentInit=d,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
25
2
  //# sourceMappingURL=index.umd.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.umd.js","sources":["../../src/components/browser-api-electron.ts","../../src/componentsInit.ts"],"sourcesContent":["/**\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n *\n * This file is part of the Cristal Wiki software prototype\n * @copyright Copyright (c) 2023 XWiki SAS\n * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0\n *\n **/\n\nimport { BrowserApi } from \"@xwiki/cristal-browser-api\";\nimport { injectable } from \"inversify\";\nimport { APITypes } from \"../electron/preload/apiTypes\";\nimport { WikiConfig } from \"@xwiki/cristal-api\";\n\ndeclare const browserElectron: APITypes;\n\n/**\n * Remembers the current location in the locale storage, then reload the\n * browser.\n */\n@injectable()\nexport class BrowserApiElectron implements BrowserApi {\n switchLocation(wikiConfig: WikiConfig) {\n window.localStorage.setItem(\"currentApp\", wikiConfig.name);\n browserElectron.reloadBrowser();\n }\n}\n","/**\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n *\n * This file is part of the Cristal Wiki software prototype\n * @copyright Copyright (c) 2023 XWiki SAS\n * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0\n *\n **/\n\nimport type { Container } from \"inversify\";\nimport { BrowserApiElectron } from \"./components/browser-api-electron\";\nimport { BrowserApi, name } from \"@xwiki/cristal-browser-api\";\n\nexport class ComponentInit {\n constructor(container: Container) {\n container.bind<BrowserApi>(name).to(BrowserApiElectron).inSingletonScope();\n }\n}\n"],"names":["BrowserApiElectron","wikiConfig","__decorateClass","injectable","ComponentInit","container","name"],"mappings":"+iBAqCO,IAAMA,EAAN,KAA+C,CACpD,eAAeC,EAAwB,CACrC,OAAO,aAAa,QAAQ,aAAcA,EAAW,IAAI,EACzD,gBAAgB,cAAc,CAChC,CACF,EALaD,EAANE,EAAA,CADNC,aAAW,CAAA,EACCH,CAAA,ECrCb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IA6BO,MAAMI,CAAc,CACzB,YAAYC,EAAsB,CAChCA,EAAU,KAAiBC,MAAI,EAAE,GAAGN,CAAkB,EAAE,kBAC1D,CACF"}
1
+ {"version":3,"file":"index.umd.js","sources":["../../src/components/browser-api-electron.ts","../../src/componentsInit.ts"],"sourcesContent":["/*\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport { BrowserApi } from \"@xwiki/cristal-browser-api\";\nimport { injectable } from \"inversify\";\nimport { APITypes } from \"../electron/preload/apiTypes\";\nimport { WikiConfig } from \"@xwiki/cristal-api\";\n\ndeclare const browserElectron: APITypes;\n\n/**\n * Remembers the current location in the locale storage, then reload the\n * browser.\n */\n@injectable()\nexport class BrowserApiElectron implements BrowserApi {\n switchLocation(wikiConfig: WikiConfig): void {\n window.localStorage.setItem(\"currentApp\", wikiConfig.name);\n browserElectron.reloadBrowser();\n }\n}\n","/*\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport type { Container } from \"inversify\";\nimport { BrowserApiElectron } from \"./components/browser-api-electron\";\nimport { BrowserApi, name } from \"@xwiki/cristal-browser-api\";\n\nexport class ComponentInit {\n constructor(container: Container) {\n container.bind<BrowserApi>(name).to(BrowserApiElectron).inSingletonScope();\n }\n}\n"],"names":["BrowserApiElectron","wikiConfig","__decorateClass","injectable","ComponentInit","container","name"],"mappings":"+iBAgCO,IAAMA,EAAN,KAA+C,CACpD,eAAeC,EAA8B,CAC3C,OAAO,aAAa,QAAQ,aAAcA,EAAW,IAAI,EACzD,gBAAgB,cAAc,CAChC,CACF,EALaD,EAANE,EAAA,CADNC,aAAW,CAAA,EACCH,CAAA,ECRN,MAAMI,CAAc,CACzB,YAAYC,EAAsB,CAChCA,EAAU,KAAiBC,MAAI,EAAE,GAAGN,CAAkB,EAAE,kBAC1D,CACF"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xwiki/cristal-browser-electron",
3
- "version": "0.8.0",
4
- "license": "AGPL-3.0",
3
+ "version": "0.10.0",
4
+ "license": "LGPL 2.1",
5
5
  "author": "XWiki Org Community <contact@xwiki.org>",
6
6
  "homepage": "https://cristal.xwiki.org/",
7
7
  "repository": {
@@ -33,18 +33,16 @@
33
33
  "main": "./dist/main/index.es.js",
34
34
  "dependencies": {
35
35
  "inversify": "6.0.2",
36
- "@xwiki/cristal-api": "0.8.0",
37
- "@xwiki/cristal-browser-api": "0.8.0"
36
+ "@xwiki/cristal-api": "0.10.0",
37
+ "@xwiki/cristal-browser-api": "0.10.0"
38
38
  },
39
39
  "peerDependencies": {
40
- "electron": "29.4.1"
41
- },
42
- "devDependencies": {
43
- "typescript": "5.4.5",
44
- "vite": "5.2.11"
40
+ "electron": "31.0.2"
45
41
  },
46
42
  "scripts": {
47
- "build": "tsc --project tsconfig.json --noEmit && vite build && vite build -c vite.preload.config.ts && vite build -c vite.main.config.ts"
43
+ "clean": "rimraf dist",
44
+ "build": "tsc --project tsconfig.json && vite build && vite build -c vite.preload.config.ts && vite build -c vite.main.config.ts",
45
+ "lint": "eslint \"./src/**/*.{ts,tsx}\" --max-warnings=0"
48
46
  },
49
47
  "types": "./dist/main/index.d.ts"
50
48
  }
@@ -1,9 +1,9 @@
1
- /**
1
+ /*
2
2
  * See the LICENSE file distributed with this work for additional
3
3
  * information regarding copyright ownership.
4
4
  *
5
5
  * This is free software; you can redistribute it and/or modify it
6
- * under the terms of the GNU Affero General Public License as
6
+ * under the terms of the GNU Lesser General Public License as
7
7
  * published by the Free Software Foundation; either version 2.1 of
8
8
  * the License, or (at your option) any later version.
9
9
  *
@@ -12,16 +12,11 @@
12
12
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
13
  * Lesser General Public License for more details.
14
14
  *
15
- * You should have received a copy of the GNU Affero General Public
15
+ * You should have received a copy of the GNU Lesser General Public
16
16
  * License along with this software; if not, write to the Free
17
17
  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18
18
  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19
- *
20
- * This file is part of the Cristal Wiki software prototype
21
- * @copyright Copyright (c) 2023 XWiki SAS
22
- * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0
23
- *
24
- **/
19
+ */
25
20
 
26
21
  import { BrowserApi } from "@xwiki/cristal-browser-api";
27
22
  import { injectable } from "inversify";
@@ -36,7 +31,7 @@ declare const browserElectron: APITypes;
36
31
  */
37
32
  @injectable()
38
33
  export class BrowserApiElectron implements BrowserApi {
39
- switchLocation(wikiConfig: WikiConfig) {
34
+ switchLocation(wikiConfig: WikiConfig): void {
40
35
  window.localStorage.setItem("currentApp", wikiConfig.name);
41
36
  browserElectron.reloadBrowser();
42
37
  }
@@ -1,9 +1,9 @@
1
- /**
1
+ /*
2
2
  * See the LICENSE file distributed with this work for additional
3
3
  * information regarding copyright ownership.
4
4
  *
5
5
  * This is free software; you can redistribute it and/or modify it
6
- * under the terms of the GNU Affero General Public License as
6
+ * under the terms of the GNU Lesser General Public License as
7
7
  * published by the Free Software Foundation; either version 2.1 of
8
8
  * the License, or (at your option) any later version.
9
9
  *
@@ -12,16 +12,11 @@
12
12
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
13
  * Lesser General Public License for more details.
14
14
  *
15
- * You should have received a copy of the GNU Affero General Public
15
+ * You should have received a copy of the GNU Lesser General Public
16
16
  * License along with this software; if not, write to the Free
17
17
  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18
18
  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19
- *
20
- * This file is part of the Cristal Wiki software prototype
21
- * @copyright Copyright (c) 2023 XWiki SAS
22
- * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0
23
- *
24
- **/
19
+ */
25
20
 
26
21
  import type { Container } from "inversify";
27
22
  import { BrowserApiElectron } from "./components/browser-api-electron";
@@ -1,9 +1,9 @@
1
- /**
1
+ /*
2
2
  * See the LICENSE file distributed with this work for additional
3
3
  * information regarding copyright ownership.
4
4
  *
5
5
  * This is free software; you can redistribute it and/or modify it
6
- * under the terms of the GNU Affero General Public License as
6
+ * under the terms of the GNU Lesser General Public License as
7
7
  * published by the Free Software Foundation; either version 2.1 of
8
8
  * the License, or (at your option) any later version.
9
9
  *
@@ -12,16 +12,11 @@
12
12
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
13
  * Lesser General Public License for more details.
14
14
  *
15
- * You should have received a copy of the GNU Affero General Public
15
+ * You should have received a copy of the GNU Lesser General Public
16
16
  * License along with this software; if not, write to the Free
17
17
  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18
18
  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19
- *
20
- * This file is part of the Cristal Wiki software prototype
21
- * @copyright Copyright (c) 2023 XWiki SAS
22
- * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0
23
- *
24
- **/
19
+ */
25
20
 
26
21
  import { ipcMain, app } from "electron";
27
22
  import BrowserWindow = Electron.BrowserWindow;
@@ -35,7 +30,7 @@ function reloadBrowser(window: BrowserWindow) {
35
30
  window.loadFile(resolve(app.getAppPath(), "./renderer/dist/index.html"));
36
31
  }
37
32
 
38
- export default function load(window: BrowserWindow) {
33
+ export default function load(window: BrowserWindow): void {
39
34
  ipcMain.handle("reloadBrowser", () => {
40
35
  return reloadBrowser(window);
41
36
  });
@@ -1,9 +1,9 @@
1
- /**
1
+ /*
2
2
  * See the LICENSE file distributed with this work for additional
3
3
  * information regarding copyright ownership.
4
4
  *
5
5
  * This is free software; you can redistribute it and/or modify it
6
- * under the terms of the GNU Affero General Public License as
6
+ * under the terms of the GNU Lesser General Public License as
7
7
  * published by the Free Software Foundation; either version 2.1 of
8
8
  * the License, or (at your option) any later version.
9
9
  *
@@ -12,16 +12,11 @@
12
12
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
13
  * Lesser General Public License for more details.
14
14
  *
15
- * You should have received a copy of the GNU Affero General Public
15
+ * You should have received a copy of the GNU Lesser General Public
16
16
  * License along with this software; if not, write to the Free
17
17
  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18
18
  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19
- *
20
- * This file is part of the Cristal Wiki software prototype
21
- * @copyright Copyright (c) 2023 XWiki SAS
22
- * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0
23
- *
24
- **/
19
+ */
25
20
 
26
21
  export interface APITypes {
27
22
  reloadBrowser(): void;
@@ -1,9 +1,9 @@
1
- /**
1
+ /*
2
2
  * See the LICENSE file distributed with this work for additional
3
3
  * information regarding copyright ownership.
4
4
  *
5
5
  * This is free software; you can redistribute it and/or modify it
6
- * under the terms of the GNU Affero General Public License as
6
+ * under the terms of the GNU Lesser General Public License as
7
7
  * published by the Free Software Foundation; either version 2.1 of
8
8
  * the License, or (at your option) any later version.
9
9
  *
@@ -12,16 +12,11 @@
12
12
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
13
  * Lesser General Public License for more details.
14
14
  *
15
- * You should have received a copy of the GNU Affero General Public
15
+ * You should have received a copy of the GNU Lesser General Public
16
16
  * License along with this software; if not, write to the Free
17
17
  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18
18
  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19
- *
20
- * This file is part of the Cristal Wiki software prototype
21
- * @copyright Copyright (c) 2023 XWiki SAS
22
- * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0
23
- *
24
- **/
19
+ */
25
20
 
26
21
  import { contextBridge, ipcRenderer } from "electron";
27
22
  import { APITypes } from "./apiTypes";
package/src/index.ts CHANGED
@@ -1,9 +1,9 @@
1
- /**
1
+ /*
2
2
  * See the LICENSE file distributed with this work for additional
3
3
  * information regarding copyright ownership.
4
4
  *
5
5
  * This is free software; you can redistribute it and/or modify it
6
- * under the terms of the GNU Affero General Public License as
6
+ * under the terms of the GNU Lesser General Public License as
7
7
  * published by the Free Software Foundation; either version 2.1 of
8
8
  * the License, or (at your option) any later version.
9
9
  *
@@ -12,16 +12,11 @@
12
12
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
13
  * Lesser General Public License for more details.
14
14
  *
15
- * You should have received a copy of the GNU Affero General Public
15
+ * You should have received a copy of the GNU Lesser General Public
16
16
  * License along with this software; if not, write to the Free
17
17
  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18
18
  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19
- *
20
- * This file is part of the Cristal Wiki software prototype
21
- * @copyright Copyright (c) 2023 XWiki SAS
22
- * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0
23
- *
24
- **/
19
+ */
25
20
 
26
21
  import { ComponentInit } from "./componentsInit";
27
22
 
package/vite.config.ts CHANGED
@@ -1,9 +1,9 @@
1
- /**
1
+ /*
2
2
  * See the LICENSE file distributed with this work for additional
3
3
  * information regarding copyright ownership.
4
4
  *
5
5
  * This is free software; you can redistribute it and/or modify it
6
- * under the terms of the GNU Affero General Public License as
6
+ * under the terms of the GNU Lesser General Public License as
7
7
  * published by the Free Software Foundation; either version 2.1 of
8
8
  * the License, or (at your option) any later version.
9
9
  *
@@ -12,20 +12,14 @@
12
12
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
13
  * Lesser General Public License for more details.
14
14
  *
15
- * You should have received a copy of the GNU Affero General Public
15
+ * You should have received a copy of the GNU Lesser General Public
16
16
  * License along with this software; if not, write to the Free
17
17
  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18
18
  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19
- *
20
- * This file is part of the Cristal Wiki software prototype
21
- * @copyright Copyright (c) 2023 XWiki SAS
22
- * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0
23
- *
24
- **/
19
+ */
25
20
 
26
21
  import { generateConfig } from "../../vite.config";
27
- import { mergeConfig } from "vitest/config";
28
- import { defineConfig } from "vite";
22
+ import { defineConfig, mergeConfig } from "vite";
29
23
 
30
24
  export default mergeConfig(
31
25
  generateConfig(import.meta.url),
@@ -1,9 +1,9 @@
1
- /**
1
+ /*
2
2
  * See the LICENSE file distributed with this work for additional
3
3
  * information regarding copyright ownership.
4
4
  *
5
5
  * This is free software; you can redistribute it and/or modify it
6
- * under the terms of the GNU Affero General Public License as
6
+ * under the terms of the GNU Lesser General Public License as
7
7
  * published by the Free Software Foundation; either version 2.1 of
8
8
  * the License, or (at your option) any later version.
9
9
  *
@@ -12,20 +12,14 @@
12
12
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
13
  * Lesser General Public License for more details.
14
14
  *
15
- * You should have received a copy of the GNU Affero General Public
15
+ * You should have received a copy of the GNU Lesser General Public
16
16
  * License along with this software; if not, write to the Free
17
17
  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18
18
  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19
- *
20
- * This file is part of the Cristal Wiki software prototype
21
- * @copyright Copyright (c) 2023 XWiki SAS
22
- * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0
23
- *
24
- **/
19
+ */
25
20
 
26
21
  import { generateConfig } from "../../vite.config";
27
- import { mergeConfig } from "vitest/config";
28
- import { defineConfig } from "vite";
22
+ import { defineConfig, mergeConfig } from "vite";
29
23
 
30
24
  export default mergeConfig(
31
25
  generateConfig(import.meta.url),
@@ -1,9 +1,9 @@
1
- /**
1
+ /*
2
2
  * See the LICENSE file distributed with this work for additional
3
3
  * information regarding copyright ownership.
4
4
  *
5
5
  * This is free software; you can redistribute it and/or modify it
6
- * under the terms of the GNU Affero General Public License as
6
+ * under the terms of the GNU Lesser General Public License as
7
7
  * published by the Free Software Foundation; either version 2.1 of
8
8
  * the License, or (at your option) any later version.
9
9
  *
@@ -12,20 +12,14 @@
12
12
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
13
  * Lesser General Public License for more details.
14
14
  *
15
- * You should have received a copy of the GNU Affero General Public
15
+ * You should have received a copy of the GNU Lesser General Public
16
16
  * License along with this software; if not, write to the Free
17
17
  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18
18
  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19
- *
20
- * This file is part of the Cristal Wiki software prototype
21
- * @copyright Copyright (c) 2023 XWiki SAS
22
- * @license http://opensource.org/licenses/AGPL-3.0 AGPL-3.0
23
- *
24
- **/
19
+ */
25
20
 
26
21
  import { generateConfig } from "../../vite.config";
27
- import { mergeConfig } from "vitest/config";
28
- import { defineConfig } from "vite";
22
+ import { mergeConfig, defineConfig } from "vite";
29
23
 
30
24
  export default mergeConfig(
31
25
  generateConfig(import.meta.url),