@xwiki/cristal-wiki-config-api 0.18.0 → 0.19.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,17 @@
1
1
  # @xwiki/cristal-wiki-config-api
2
2
 
3
+ ## 0.19.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 3eea53e: Cristal 0.19 Release
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [3eea53e]
12
+ - @xwiki/cristal-api@0.19.0
13
+ - @xwiki/cristal-configuration-api@0.19.0
14
+
3
15
  ## 0.18.0
4
16
 
5
17
  ### Minor Changes
@@ -0,0 +1,32 @@
1
+ import { WikiConfig } from '@xwiki/cristal-api';
2
+ import { Configurations } from '@xwiki/cristal-configuration-api';
3
+ import { Ref } from 'vue';
4
+ /**
5
+ * Service that provides a reactive proxy to handle changes in available
6
+ * WikiConfigs.
7
+ *
8
+ * @since 0.18
9
+ */
10
+ interface WikiConfigProxy {
11
+ /**
12
+ * Provide a reactive Map containing the currently available configurations.
13
+ *
14
+ * @returns the reactive Map
15
+ */
16
+ getAvailableConfigurations(): Ref<Map<string, WikiConfig>>;
17
+ /**
18
+ * Add or replace configurations from the set of available configurations and
19
+ * trigger a change in the internal Map.
20
+ *
21
+ * @param config - the configurations to add or replace
22
+ */
23
+ setAvailableConfigurations(config: Configurations): void;
24
+ /**
25
+ * Delete a configuration from the set of available configurations and
26
+ * trigger a change in the internal Map.
27
+ *
28
+ * @param configName - the name of the configuration to delete
29
+ */
30
+ deleteAvailableConfiguration(configName: string): void;
31
+ }
32
+ export type { WikiConfigProxy };
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@xwiki/cristal-wiki-config-api",
3
- "version": "0.18.0",
3
+ "version": "0.19.0",
4
4
  "license": "LGPL 2.1",
5
5
  "author": "XWiki Org Community <contact@xwiki.org>",
6
6
  "homepage": "https://cristal.xwiki.org/",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "directory": "/core/wiki-config/wiki-config-api",
10
- "url": "https://github.com/xwiki-contrib/cristal/"
10
+ "url": "git+https://github.com/xwiki-contrib/cristal.git"
11
11
  },
12
12
  "bugs": {
13
13
  "url": "https://jira.xwiki.org/projects/CRISTAL/"
@@ -15,21 +15,26 @@
15
15
  "type": "module",
16
16
  "exports": {
17
17
  ".": {
18
- "import": "./dist/index.es.js",
19
- "require": "./dist/index.umd.js",
20
- "types": "./dist/index.d.ts"
18
+ "import": {
19
+ "types": "./dist/index.d.ts",
20
+ "default": "./dist/index.es.js"
21
+ },
22
+ "require": {
23
+ "types": "./dist/index.d.cts",
24
+ "default": "./dist/index.umd.js"
25
+ }
21
26
  }
22
27
  },
23
28
  "main": "./dist/index.es.js",
24
29
  "dependencies": {
25
- "vue": "3.5.13",
26
- "@xwiki/cristal-api": "0.18.0",
27
- "@xwiki/cristal-configuration-api": "0.18.0"
30
+ "vue": "3.5.16",
31
+ "@xwiki/cristal-api": "0.19.0",
32
+ "@xwiki/cristal-configuration-api": "0.19.0"
28
33
  },
29
34
  "devDependencies": {
30
35
  "typescript": "5.8.3",
31
36
  "vite": "6.3.5",
32
- "@xwiki/cristal-dev-config": "0.18.0"
37
+ "@xwiki/cristal-dev-config": "0.19.0"
33
38
  },
34
39
  "scripts": {
35
40
  "build": "tsc --project tsconfig.json && vite build",