@xwiki/cristal-wiki-config-api 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-wiki-config-api
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-configuration-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-configuration-api@0.21.0
23
+
3
24
  ## 0.20.0
4
25
 
5
26
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -1,6 +1,25 @@
1
- import { WikiConfig } from '@xwiki/cristal-api';
2
- import { Configurations } from '@xwiki/cristal-configuration-api';
3
- import { Ref } from 'vue';
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 Lesser 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 Lesser 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
+ import type { WikiConfig } from "@xwiki/cristal-api";
21
+ import type { Configurations } from "@xwiki/cristal-configuration-api";
22
+ import type { Ref } from "vue";
4
23
  /**
5
24
  * Service that provides a reactive proxy to handle changes in available
6
25
  * WikiConfigs.
@@ -30,3 +49,4 @@ interface WikiConfigProxy {
30
49
  deleteAvailableConfiguration(configName: string): void;
31
50
  }
32
51
  export type { WikiConfigProxy };
52
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE/B;;;;;GAKG;AACH,UAAU,eAAe;IACvB;;;;OAIG;IACH,0BAA0B,IAAI,GAAG,CAAC,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;IAE3D;;;;;OAKG;IACH,0BAA0B,CAAC,MAAM,EAAE,cAAc,GAAG,IAAI,CAAC;IAEzD;;;;;OAKG;IACH,4BAA4B,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CACxD;AAED,YAAY,EAAE,eAAe,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xwiki/cristal-wiki-config-api",
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/",
@@ -15,35 +15,26 @@
15
15
  "type": "module",
16
16
  "exports": {
17
17
  ".": {
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
- }
18
+ "types": "./dist/index.d.ts"
26
19
  }
27
20
  },
28
- "main": "./dist/index.es.js",
21
+ "types": "./src/index.ts",
29
22
  "dependencies": {
30
- "@xwiki/cristal-api": "0.20.0",
31
- "@xwiki/cristal-configuration-api": "0.20.0"
23
+ "@xwiki/cristal-configuration-api": "0.21.1",
24
+ "@xwiki/cristal-api": "0.21.1"
32
25
  },
33
26
  "peerDependencies": {
34
27
  "reflect-metadata": "0.x",
35
28
  "vue": "3.x"
36
29
  },
37
30
  "devDependencies": {
38
- "typescript": "5.8.3",
39
- "vite": "7.0.0",
40
- "vue": "3.5.17",
41
- "@xwiki/cristal-dev-config": "0.20.0"
31
+ "typescript": "5.9.2",
32
+ "vue": "3.5.18",
33
+ "@xwiki/cristal-dev-config": "0.21.1"
42
34
  },
43
35
  "scripts": {
44
- "build": "tsc --project tsconfig.json && vite build",
45
- "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0",
46
- "test": "vitest --run"
47
- },
48
- "types": "./dist/index.d.ts"
36
+ "build": "rimraf dist && tsc --project tsconfig.json",
37
+ "clean": "rimraf dist",
38
+ "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0"
39
+ }
49
40
  }
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/tsconfig.json CHANGED
@@ -2,7 +2,10 @@
2
2
  "compilerOptions": {
3
3
  "rootDir": "src",
4
4
  "outDir": "dist",
5
- "resolveJsonModule": true
5
+ "resolveJsonModule": true,
6
+ "emitDeclarationOnly": true,
7
+ "noEmit": false,
8
+ "declarationMap": true
6
9
  },
7
10
  "extends": "../../../tsconfig.json",
8
11
  "include": [
package/dist/index.d.cts DELETED
@@ -1,32 +0,0 @@
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/dist/index.es.js DELETED
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=index.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/dist/index.umd.js DELETED
@@ -1,2 +0,0 @@
1
- (function(n){typeof define=="function"&&define.amd?define(n):n()})(function(){"use strict"});
2
- //# sourceMappingURL=index.umd.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/vite.config.ts DELETED
@@ -1,23 +0,0 @@
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 Lesser 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 Lesser 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
-
21
- import { generateConfig } from "../../../vite.config";
22
-
23
- export default generateConfig(import.meta.url);
package/vitest.config.ts DELETED
@@ -1,25 +0,0 @@
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 Lesser 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 Lesser 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
-
21
- import localConfig from "./vite.config";
22
- import { mergeConfig } from "vitest/config";
23
- import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config";
24
-
25
- export default mergeConfig(defaultConfig, localConfig);