@xwiki/cristal-settings-browser 0.21.1 → 0.23.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 +19 -4
- package/api-extractor.json +4 -0
- package/dist/defaultSettingsStorage.d.ts +1 -0
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.es.js +10 -12
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/etc/cristal-settings-browser.api.md +16 -0
- package/package.json +14 -12
- package/src/defaultSettingsStorage.ts +1 -0
- package/src/index.ts +3 -0
- package/vitest.config.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,28 @@
|
|
|
1
1
|
# @xwiki/cristal-settings-browser
|
|
2
2
|
|
|
3
|
-
## 0.
|
|
3
|
+
## 0.23.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Cristal 0.23 Release
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @xwiki/cristal-api@0.23.0
|
|
13
|
+
- @xwiki/cristal-settings-api@0.23.0
|
|
14
|
+
|
|
15
|
+
## 0.22.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- Cristal 0.22 Release
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
6
22
|
|
|
7
|
-
- Cristal 0.21.1 Release
|
|
8
23
|
- Updated dependencies
|
|
9
|
-
- @xwiki/cristal-api@0.
|
|
10
|
-
- @xwiki/cristal-settings-api@0.
|
|
24
|
+
- @xwiki/cristal-api@0.22.0
|
|
25
|
+
- @xwiki/cristal-settings-api@0.22.0
|
|
11
26
|
|
|
12
27
|
## 0.21.0
|
|
13
28
|
|
|
@@ -3,6 +3,7 @@ import { SettingsManager, SettingsStorage } from '@xwiki/cristal-settings-api';
|
|
|
3
3
|
* Default implementation for {@link SettingsStorage}.
|
|
4
4
|
* It stores and retrieves settings as JSON from the browser's local storage.
|
|
5
5
|
* @since 0.18
|
|
6
|
+
* @beta
|
|
6
7
|
*/
|
|
7
8
|
export declare class DefaultSettingsStorage implements SettingsStorage {
|
|
8
9
|
private readonly localStorageSettingsKey;
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.es.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { injectable as
|
|
2
|
-
var
|
|
3
|
-
for (var o =
|
|
4
|
-
(
|
|
1
|
+
import { injectable as g } from "inversify";
|
|
2
|
+
var i = Object.getOwnPropertyDescriptor, S = (t, e, l, r) => {
|
|
3
|
+
for (var o = r > 1 ? void 0 : r ? i(e, l) : e, a = t.length - 1, s; a >= 0; a--)
|
|
4
|
+
(s = t[a]) && (o = s(o) || o);
|
|
5
5
|
return o;
|
|
6
6
|
};
|
|
7
|
-
let
|
|
8
|
-
|
|
9
|
-
this.localStorageSettingsKey = "settings";
|
|
10
|
-
}
|
|
7
|
+
let n = class {
|
|
8
|
+
localStorageSettingsKey = "settings";
|
|
11
9
|
async save(t) {
|
|
12
10
|
window.localStorage.setItem(
|
|
13
11
|
this.localStorageSettingsKey,
|
|
@@ -20,12 +18,12 @@ let s = class {
|
|
|
20
18
|
);
|
|
21
19
|
}
|
|
22
20
|
};
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
],
|
|
21
|
+
n = S([
|
|
22
|
+
g()
|
|
23
|
+
], n);
|
|
26
24
|
class p {
|
|
27
25
|
constructor(e) {
|
|
28
|
-
e.bind("SettingsStorage").to(
|
|
26
|
+
e.bind("SettingsStorage").to(n).inSingletonScope();
|
|
29
27
|
}
|
|
30
28
|
}
|
|
31
29
|
export {
|
package/dist/index.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["../src/defaultSettingsStorage.ts","../src/index.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 { injectable } from \"inversify\";\nimport type {\n SettingsManager,\n SettingsStorage,\n} from \"@xwiki/cristal-settings-api\";\n\n/**\n * Default implementation for {@link SettingsStorage}.\n * It stores and retrieves settings as JSON from the browser's local storage.\n * @since 0.18\n */\n@injectable()\nexport class DefaultSettingsStorage implements SettingsStorage {\n private readonly localStorageSettingsKey = \"settings\";\n\n async save(settingsManager: SettingsManager): Promise<void> {\n window.localStorage.setItem(\n this.localStorageSettingsKey,\n settingsManager.toJSON(),\n );\n }\n\n async load(settingsManager: SettingsManager): Promise<void> {\n settingsManager.fromJSON(\n window.localStorage.getItem(this.localStorageSettingsKey) ?? \"[]\",\n );\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 { DefaultSettingsStorage } from \"./defaultSettingsStorage\";\nimport { Container } from \"inversify\";\nimport type { SettingsStorage } from \"@xwiki/cristal-settings-api\";\n\nexport class ComponentInit {\n constructor(container: Container) {\n container\n .bind<SettingsStorage>(\"SettingsStorage\")\n .to(DefaultSettingsStorage)\n .inSingletonScope();\n }\n}\n"],"names":["DefaultSettingsStorage","settingsManager","__decorateClass","injectable","ComponentInit","container"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../src/defaultSettingsStorage.ts","../src/index.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 { injectable } from \"inversify\";\nimport type {\n SettingsManager,\n SettingsStorage,\n} from \"@xwiki/cristal-settings-api\";\n\n/**\n * Default implementation for {@link SettingsStorage}.\n * It stores and retrieves settings as JSON from the browser's local storage.\n * @since 0.18\n * @beta\n */\n@injectable()\nexport class DefaultSettingsStorage implements SettingsStorage {\n private readonly localStorageSettingsKey = \"settings\";\n\n async save(settingsManager: SettingsManager): Promise<void> {\n window.localStorage.setItem(\n this.localStorageSettingsKey,\n settingsManager.toJSON(),\n );\n }\n\n async load(settingsManager: SettingsManager): Promise<void> {\n settingsManager.fromJSON(\n window.localStorage.getItem(this.localStorageSettingsKey) ?? \"[]\",\n );\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 { DefaultSettingsStorage } from \"./defaultSettingsStorage\";\nimport { Container } from \"inversify\";\nimport type { SettingsStorage } from \"@xwiki/cristal-settings-api\";\n\n/**\n * @beta\n */\nexport class ComponentInit {\n constructor(container: Container) {\n container\n .bind<SettingsStorage>(\"SettingsStorage\")\n .to(DefaultSettingsStorage)\n .inSingletonScope();\n }\n}\n"],"names":["DefaultSettingsStorage","settingsManager","__decorateClass","injectable","ComponentInit","container"],"mappings":";;;;;;AAiCO,IAAMA,IAAN,MAAwD;AAAA,EAC5C,0BAA0B;AAAA,EAE3C,MAAM,KAAKC,GAAiD;AAC1D,WAAO,aAAa;AAAA,MAClB,KAAK;AAAA,MACLA,EAAgB,OAAA;AAAA,IAAO;AAAA,EAE3B;AAAA,EAEA,MAAM,KAAKA,GAAiD;AAC1D,IAAAA,EAAgB;AAAA,MACd,OAAO,aAAa,QAAQ,KAAK,uBAAuB,KAAK;AAAA,IAAA;AAAA,EAEjE;AACF;AAfaD,IAANE,EAAA;AAAA,EADNC,EAAA;AAAW,GACCH,CAAA;ACNN,MAAMI,EAAc;AAAA,EACzB,YAAYC,GAAsB;AAChC,IAAAA,EACG,KAAsB,iBAAiB,EACvC,GAAGL,CAAsB,EACzB,iBAAA;AAAA,EACL;AACF;"}
|
package/dist/index.umd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(e,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("inversify")):typeof define=="function"&&define.amd?define(["exports","inversify"],n):(e=typeof globalThis<"u"?globalThis:e||self,n(e["cristal_settings-browser"]={},e.inversify))})(this,function(e,n){"use strict";var c=Object.getOwnPropertyDescriptor,f=(t,o,S,a)=>{for(var i=a>1?void 0:a?c(o,S):o,r=t.length-1,l;r>=0;r--)(l=t[r])&&(i=l(i)||i);return i};let s=class{
|
|
1
|
+
(function(e,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("inversify")):typeof define=="function"&&define.amd?define(["exports","inversify"],n):(e=typeof globalThis<"u"?globalThis:e||self,n(e["cristal_settings-browser"]={},e.inversify))})(this,(function(e,n){"use strict";var c=Object.getOwnPropertyDescriptor,f=(t,o,S,a)=>{for(var i=a>1?void 0:a?c(o,S):o,r=t.length-1,l;r>=0;r--)(l=t[r])&&(i=l(i)||i);return i};let s=class{localStorageSettingsKey="settings";async save(t){window.localStorage.setItem(this.localStorageSettingsKey,t.toJSON())}async load(t){t.fromJSON(window.localStorage.getItem(this.localStorageSettingsKey)??"[]")}};s=f([n.injectable()],s);class g{constructor(o){o.bind("SettingsStorage").to(s).inSingletonScope()}}e.ComponentInit=g,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
|
|
2
2
|
//# sourceMappingURL=index.umd.js.map
|
package/dist/index.umd.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.umd.js","sources":["../src/defaultSettingsStorage.ts","../src/index.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 { injectable } from \"inversify\";\nimport type {\n SettingsManager,\n SettingsStorage,\n} from \"@xwiki/cristal-settings-api\";\n\n/**\n * Default implementation for {@link SettingsStorage}.\n * It stores and retrieves settings as JSON from the browser's local storage.\n * @since 0.18\n */\n@injectable()\nexport class DefaultSettingsStorage implements SettingsStorage {\n private readonly localStorageSettingsKey = \"settings\";\n\n async save(settingsManager: SettingsManager): Promise<void> {\n window.localStorage.setItem(\n this.localStorageSettingsKey,\n settingsManager.toJSON(),\n );\n }\n\n async load(settingsManager: SettingsManager): Promise<void> {\n settingsManager.fromJSON(\n window.localStorage.getItem(this.localStorageSettingsKey) ?? \"[]\",\n );\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 { DefaultSettingsStorage } from \"./defaultSettingsStorage\";\nimport { Container } from \"inversify\";\nimport type { SettingsStorage } from \"@xwiki/cristal-settings-api\";\n\nexport class ComponentInit {\n constructor(container: Container) {\n container\n .bind<SettingsStorage>(\"SettingsStorage\")\n .to(DefaultSettingsStorage)\n .inSingletonScope();\n }\n}\n"],"names":["DefaultSettingsStorage","settingsManager","__decorateClass","injectable","ComponentInit","container"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.umd.js","sources":["../src/defaultSettingsStorage.ts","../src/index.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 { injectable } from \"inversify\";\nimport type {\n SettingsManager,\n SettingsStorage,\n} from \"@xwiki/cristal-settings-api\";\n\n/**\n * Default implementation for {@link SettingsStorage}.\n * It stores and retrieves settings as JSON from the browser's local storage.\n * @since 0.18\n * @beta\n */\n@injectable()\nexport class DefaultSettingsStorage implements SettingsStorage {\n private readonly localStorageSettingsKey = \"settings\";\n\n async save(settingsManager: SettingsManager): Promise<void> {\n window.localStorage.setItem(\n this.localStorageSettingsKey,\n settingsManager.toJSON(),\n );\n }\n\n async load(settingsManager: SettingsManager): Promise<void> {\n settingsManager.fromJSON(\n window.localStorage.getItem(this.localStorageSettingsKey) ?? \"[]\",\n );\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 { DefaultSettingsStorage } from \"./defaultSettingsStorage\";\nimport { Container } from \"inversify\";\nimport type { SettingsStorage } from \"@xwiki/cristal-settings-api\";\n\n/**\n * @beta\n */\nexport class ComponentInit {\n constructor(container: Container) {\n container\n .bind<SettingsStorage>(\"SettingsStorage\")\n .to(DefaultSettingsStorage)\n .inSingletonScope();\n }\n}\n"],"names":["DefaultSettingsStorage","settingsManager","__decorateClass","injectable","ComponentInit","container"],"mappings":"+aAiCO,IAAMA,EAAN,KAAwD,CAC5C,wBAA0B,WAE3C,MAAM,KAAKC,EAAiD,CAC1D,OAAO,aAAa,QAClB,KAAK,wBACLA,EAAgB,OAAA,CAAO,CAE3B,CAEA,MAAM,KAAKA,EAAiD,CAC1DA,EAAgB,SACd,OAAO,aAAa,QAAQ,KAAK,uBAAuB,GAAK,IAAA,CAEjE,CACF,EAfaD,EAANE,EAAA,CADNC,EAAAA,WAAA,CAAW,EACCH,CAAA,ECNN,MAAMI,CAAc,CACzB,YAAYC,EAAsB,CAChCA,EACG,KAAsB,iBAAiB,EACvC,GAAGL,CAAsB,EACzB,iBAAA,CACL,CACF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
## API Report File for "@xwiki/cristal-settings-browser"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
import { Container } from 'inversify';
|
|
8
|
+
|
|
9
|
+
// @beta (undocumented)
|
|
10
|
+
export class ComponentInit {
|
|
11
|
+
constructor(container: Container);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// (No @packageDocumentation comment for this package)
|
|
15
|
+
|
|
16
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xwiki/cristal-settings-browser",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0",
|
|
4
4
|
"license": "LGPL 2.1",
|
|
5
5
|
"author": "XWiki Org Community <contact@xwiki.org>",
|
|
6
6
|
"homepage": "https://cristal.xwiki.org/",
|
|
@@ -26,25 +26,27 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"main": "./dist/index.es.js",
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
29
30
|
"dependencies": {
|
|
30
|
-
"@xwiki/cristal-api": "0.
|
|
31
|
-
"@xwiki/cristal-settings-api": "0.
|
|
31
|
+
"@xwiki/cristal-api": "0.23.0",
|
|
32
|
+
"@xwiki/cristal-settings-api": "0.23.0"
|
|
32
33
|
},
|
|
33
34
|
"peerDependencies": {
|
|
34
35
|
"inversify": "7.x"
|
|
35
36
|
},
|
|
36
37
|
"devDependencies": {
|
|
37
|
-
"inversify": "7.
|
|
38
|
-
"typescript": "5.9.
|
|
39
|
-
"vite": "7.
|
|
40
|
-
"@xwiki/cristal-dev-config": "0.
|
|
41
|
-
"@xwiki/cristal-dsapi": "0.
|
|
38
|
+
"inversify": "7.10.2",
|
|
39
|
+
"typescript": "5.9.3",
|
|
40
|
+
"vite": "7.1.9",
|
|
41
|
+
"@xwiki/cristal-dev-config": "0.23.0",
|
|
42
|
+
"@xwiki/cristal-dsapi": "0.23.0"
|
|
42
43
|
},
|
|
43
44
|
"scripts": {
|
|
44
|
-
"
|
|
45
|
+
"api-extractor:local": "api-extractor run --local",
|
|
46
|
+
"build": "vite build",
|
|
45
47
|
"clean": "rimraf dist",
|
|
46
48
|
"lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0",
|
|
47
|
-
"test": "vitest --run"
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
"test": "vitest --run",
|
|
50
|
+
"typecheck": "tsc"
|
|
51
|
+
}
|
|
50
52
|
}
|
|
@@ -28,6 +28,7 @@ import type {
|
|
|
28
28
|
* Default implementation for {@link SettingsStorage}.
|
|
29
29
|
* It stores and retrieves settings as JSON from the browser's local storage.
|
|
30
30
|
* @since 0.18
|
|
31
|
+
* @beta
|
|
31
32
|
*/
|
|
32
33
|
@injectable()
|
|
33
34
|
export class DefaultSettingsStorage implements SettingsStorage {
|
package/src/index.ts
CHANGED
|
@@ -22,6 +22,9 @@ import { DefaultSettingsStorage } from "./defaultSettingsStorage";
|
|
|
22
22
|
import { Container } from "inversify";
|
|
23
23
|
import type { SettingsStorage } from "@xwiki/cristal-settings-api";
|
|
24
24
|
|
|
25
|
+
/**
|
|
26
|
+
* @beta
|
|
27
|
+
*/
|
|
25
28
|
export class ComponentInit {
|
|
26
29
|
constructor(container: Container) {
|
|
27
30
|
container
|
package/vitest.config.ts
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
21
|
import localConfig from "./vite.config";
|
|
22
|
+
import { vitestVue as defaultConfig } from "@xwiki/cristal-dev-config";
|
|
22
23
|
import { mergeConfig } from "vitest/config";
|
|
23
|
-
import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config";
|
|
24
24
|
|
|
25
25
|
export default mergeConfig(defaultConfig, localConfig);
|