@xwiki/cristal-settings-browser 0.20.0 → 0.21.1

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,26 @@
1
1
  # @xwiki/cristal-settings-browser
2
2
 
3
+ ## 0.21.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Cristal 0.21.1 Release
8
+ - Updated dependencies
9
+ - @xwiki/cristal-api@0.21.1
10
+ - @xwiki/cristal-settings-api@0.21.1
11
+
12
+ ## 0.21.0
13
+
14
+ ### Minor Changes
15
+
16
+ - Cristal 0.21 Release
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+ - @xwiki/cristal-api@0.21.0
22
+ - @xwiki/cristal-settings-api@0.21.0
23
+
3
24
  ## 0.20.0
4
25
 
5
26
  ### Minor Changes
@@ -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":";;;;;;AAgCO,IAAMA,IAAN,MAAwD;AAAA,EAAxD,cAAA;AACL,SAAiB,0BAA0B;AAAA,EAAA;AAAA,EAE3C,MAAM,KAAKC,GAAiD;AAC1D,WAAO,aAAa;AAAA,MAClB,KAAK;AAAA,MACLA,EAAgB,OAAO;AAAA,IACzB;AAAA,EAAA;AAAA,EAGF,MAAM,KAAKA,GAAiD;AAC1C,IAAAA,EAAA;AAAA,MACd,OAAO,aAAa,QAAQ,KAAK,uBAAuB,KAAK;AAAA,IAC/D;AAAA,EAAA;AAEJ;AAfaD,IAANE,EAAA;AAAA,EADNC,EAAW;AAAA,GACCH,CAAA;ACRN,MAAMI,EAAc;AAAA,EACzB,YAAYC,GAAsB;AAChC,IAAAA,EACG,KAAsB,iBAAiB,EACvC,GAAGL,CAAsB,EACzB,iBAAiB;AAAA,EAAA;AAExB;"}
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":";;;;;;AAgCO,IAAMA,IAAN,MAAwD;AAAA,EAAxD,cAAA;AACL,SAAiB,0BAA0B;AAAA,EAAA;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;ACRN,MAAMI,EAAc;AAAA,EACzB,YAAYC,GAAsB;AAChC,IAAAA,EACG,KAAsB,iBAAiB,EACvC,GAAGL,CAAsB,EACzB,iBAAA;AAAA,EACL;AACF;"}
@@ -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":"8aAgCO,IAAMA,EAAN,KAAwD,CAAxD,aAAA,CACL,KAAiB,wBAA0B,UAAA,CAE3C,MAAM,KAAKC,EAAiD,CAC1D,OAAO,aAAa,QAClB,KAAK,wBACLA,EAAgB,OAAO,CACzB,CAAA,CAGF,MAAM,KAAKA,EAAiD,CAC1CA,EAAA,SACd,OAAO,aAAa,QAAQ,KAAK,uBAAuB,GAAK,IAC/D,CAAA,CAEJ,EAfaD,EAANE,EAAA,CADNC,EAAW,WAAA,CAAA,EACCH,CAAA,ECRN,MAAMI,CAAc,CACzB,YAAYC,EAAsB,CAChCA,EACG,KAAsB,iBAAiB,EACvC,GAAGL,CAAsB,EACzB,iBAAiB,CAAA,CAExB"}
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":"8aAgCO,IAAMA,EAAN,KAAwD,CAAxD,aAAA,CACL,KAAiB,wBAA0B,UAAA,CAE3C,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,ECRN,MAAMI,CAAc,CACzB,YAAYC,EAAsB,CAChCA,EACG,KAAsB,iBAAiB,EACvC,GAAGL,CAAsB,EACzB,iBAAA,CACL,CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xwiki/cristal-settings-browser",
3
- "version": "0.20.0",
3
+ "version": "0.21.1",
4
4
  "license": "LGPL 2.1",
5
5
  "author": "XWiki Org Community <contact@xwiki.org>",
6
6
  "homepage": "https://cristal.xwiki.org/",
@@ -27,15 +27,18 @@
27
27
  },
28
28
  "main": "./dist/index.es.js",
29
29
  "dependencies": {
30
- "inversify": "7.5.4",
31
- "@xwiki/cristal-api": "0.20.0",
32
- "@xwiki/cristal-settings-api": "0.20.0"
30
+ "@xwiki/cristal-api": "0.21.1",
31
+ "@xwiki/cristal-settings-api": "0.21.1"
32
+ },
33
+ "peerDependencies": {
34
+ "inversify": "7.x"
33
35
  },
34
36
  "devDependencies": {
35
- "typescript": "5.8.3",
36
- "vite": "7.0.0",
37
- "@xwiki/cristal-dev-config": "0.20.0",
38
- "@xwiki/cristal-dsapi": "0.20.0"
37
+ "inversify": "7.7.0",
38
+ "typescript": "5.9.2",
39
+ "vite": "7.0.6",
40
+ "@xwiki/cristal-dev-config": "0.21.1",
41
+ "@xwiki/cristal-dsapi": "0.21.1"
39
42
  },
40
43
  "scripts": {
41
44
  "build": "tsc --project tsconfig.json && vite build",
@@ -1,4 +1,4 @@
1
- /*
1
+ /**
2
2
  * See the LICENSE file distributed with this work for additional
3
3
  * information regarding copyright ownership.
4
4
  *
package/src/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- /*
1
+ /**
2
2
  * See the LICENSE file distributed with this work for additional
3
3
  * information regarding copyright ownership.
4
4
  *
package/vite.config.ts CHANGED
@@ -1,4 +1,4 @@
1
- /*
1
+ /**
2
2
  * See the LICENSE file distributed with this work for additional
3
3
  * information regarding copyright ownership.
4
4
  *
package/vitest.config.ts CHANGED
@@ -1,4 +1,4 @@
1
- /*
1
+ /**
2
2
  * See the LICENSE file distributed with this work for additional
3
3
  * information regarding copyright ownership.
4
4
  *