@xwiki/cristal-rename-api 0.21.1 → 0.22.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,12 +1,15 @@
1
1
  # @xwiki/cristal-rename-api
2
2
 
3
- ## 0.21.1
3
+ ## 0.22.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Cristal 0.22 Release
4
8
 
5
9
  ### Patch Changes
6
10
 
7
- - Cristal 0.21.1 Release
8
11
  - Updated dependencies
9
- - @xwiki/cristal-api@0.21.1
12
+ - @xwiki/cristal-api@0.22.0
10
13
 
11
14
  ## 0.21.0
12
15
 
@@ -0,0 +1,4 @@
1
+ {
2
+ "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3
+ "extends": "../../../api-extractor.json"
4
+ }
package/dist/index.d.cts CHANGED
@@ -3,6 +3,7 @@ import { PageData } from '@xwiki/cristal-api';
3
3
  * A PageRenameManager can handle page rename operations.
4
4
  *
5
5
  * @since 0.14
6
+ * @beta
6
7
  **/
7
8
  interface PageRenameManager {
8
9
  /**
@@ -23,6 +24,7 @@ interface PageRenameManager {
23
24
  * matching the current wiki configuration.
24
25
  *
25
26
  * @since 0.14
27
+ * @beta
26
28
  **/
27
29
  interface PageRenameManagerProvider {
28
30
  /**
@@ -43,6 +45,7 @@ interface PageRenameManagerProvider {
43
45
  /**
44
46
  * The component id of PageRenameManager.
45
47
  * @since 0.14
48
+ * @beta
46
49
  */
47
50
  declare const name = "PageRenameManager";
48
51
  export { type PageRenameManager, type PageRenameManagerProvider, name };
package/dist/index.d.ts CHANGED
@@ -3,6 +3,7 @@ import { PageData } from '@xwiki/cristal-api';
3
3
  * A PageRenameManager can handle page rename operations.
4
4
  *
5
5
  * @since 0.14
6
+ * @beta
6
7
  **/
7
8
  interface PageRenameManager {
8
9
  /**
@@ -23,6 +24,7 @@ interface PageRenameManager {
23
24
  * matching the current wiki configuration.
24
25
  *
25
26
  * @since 0.14
27
+ * @beta
26
28
  **/
27
29
  interface PageRenameManagerProvider {
28
30
  /**
@@ -43,6 +45,7 @@ interface PageRenameManagerProvider {
43
45
  /**
44
46
  * The component id of PageRenameManager.
45
47
  * @since 0.14
48
+ * @beta
46
49
  */
47
50
  declare const name = "PageRenameManager";
48
51
  export { type PageRenameManager, type PageRenameManagerProvider, name };
@@ -1 +1 @@
1
- {"version":3,"file":"index.es.js","sources":["../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 type { PageData } from \"@xwiki/cristal-api\";\n\n/**\n * A PageRenameManager can handle page rename operations.\n *\n * @since 0.14\n **/\ninterface PageRenameManager {\n /**\n * Change the reference of a given page.\n *\n * @param pageData - the page for which to get the revisions\n * @param newReference - the new reference for the page\n * @param preserveChildren - whether to also affect children\n * @returns true if this was successful, false with the reason otherwise\n */\n updateReference(\n page: PageData,\n newReference: string,\n preserveChildren: boolean,\n ): Promise<{ success: boolean; error?: string }>;\n\n /* TODO: Fix CRISTAL-84 and add operations to update backlinks and set-up\n automatic redirects. */\n}\n\n/**\n * A PageRenameManagerProvider returns the instance of {@link PageRenameManager}\n * matching the current wiki configuration.\n *\n * @since 0.14\n **/\ninterface PageRenameManagerProvider {\n /**\n * Check whether an instance of PageRenameManager matching the current wiki\n * configuration exists.\n *\n * @returns whether or not an instance exists\n */\n has(): boolean;\n\n /**\n * Return the instance of PageRenameManager matching the current wiki\n * configuration.\n *\n * @returns the instance of PageRenameManager\n */\n get(): PageRenameManager;\n}\n\n/**\n * The component id of PageRenameManager.\n * @since 0.14\n */\nconst name = \"PageRenameManager\";\n\nexport { type PageRenameManager, type PageRenameManagerProvider, name };\n"],"names":["name"],"mappings":"AA0EA,MAAMA,IAAO;"}
1
+ {"version":3,"file":"index.es.js","sources":["../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 type { PageData } from \"@xwiki/cristal-api\";\n\n/**\n * A PageRenameManager can handle page rename operations.\n *\n * @since 0.14\n * @beta\n **/\ninterface PageRenameManager {\n /**\n * Change the reference of a given page.\n *\n * @param pageData - the page for which to get the revisions\n * @param newReference - the new reference for the page\n * @param preserveChildren - whether to also affect children\n * @returns true if this was successful, false with the reason otherwise\n */\n updateReference(\n page: PageData,\n newReference: string,\n preserveChildren: boolean,\n ): Promise<{ success: boolean; error?: string }>;\n\n /* TODO: Fix CRISTAL-84 and add operations to update backlinks and set-up\n automatic redirects. */\n}\n\n/**\n * A PageRenameManagerProvider returns the instance of {@link PageRenameManager}\n * matching the current wiki configuration.\n *\n * @since 0.14\n * @beta\n **/\ninterface PageRenameManagerProvider {\n /**\n * Check whether an instance of PageRenameManager matching the current wiki\n * configuration exists.\n *\n * @returns whether or not an instance exists\n */\n has(): boolean;\n\n /**\n * Return the instance of PageRenameManager matching the current wiki\n * configuration.\n *\n * @returns the instance of PageRenameManager\n */\n get(): PageRenameManager;\n}\n\n/**\n * The component id of PageRenameManager.\n * @since 0.14\n * @beta\n */\nconst name = \"PageRenameManager\";\n\nexport { type PageRenameManager, type PageRenameManagerProvider, name };\n"],"names":["name"],"mappings":"AA6EA,MAAMA,IAAO;"}
package/dist/index.umd.js CHANGED
@@ -1,2 +1,2 @@
1
- (function(e,n){typeof exports=="object"&&typeof module<"u"?n(exports):typeof define=="function"&&define.amd?define(["exports"],n):(e=typeof globalThis<"u"?globalThis:e||self,n(e["cristal_rename-api"]={}))})(this,function(e){"use strict";const n="PageRenameManager";e.name=n,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
1
+ (function(e,n){typeof exports=="object"&&typeof module<"u"?n(exports):typeof define=="function"&&define.amd?define(["exports"],n):(e=typeof globalThis<"u"?globalThis:e||self,n(e["cristal_rename-api"]={}))})(this,(function(e){"use strict";const n="PageRenameManager";e.name=n,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
2
2
  //# sourceMappingURL=index.umd.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.umd.js","sources":["../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 type { PageData } from \"@xwiki/cristal-api\";\n\n/**\n * A PageRenameManager can handle page rename operations.\n *\n * @since 0.14\n **/\ninterface PageRenameManager {\n /**\n * Change the reference of a given page.\n *\n * @param pageData - the page for which to get the revisions\n * @param newReference - the new reference for the page\n * @param preserveChildren - whether to also affect children\n * @returns true if this was successful, false with the reason otherwise\n */\n updateReference(\n page: PageData,\n newReference: string,\n preserveChildren: boolean,\n ): Promise<{ success: boolean; error?: string }>;\n\n /* TODO: Fix CRISTAL-84 and add operations to update backlinks and set-up\n automatic redirects. */\n}\n\n/**\n * A PageRenameManagerProvider returns the instance of {@link PageRenameManager}\n * matching the current wiki configuration.\n *\n * @since 0.14\n **/\ninterface PageRenameManagerProvider {\n /**\n * Check whether an instance of PageRenameManager matching the current wiki\n * configuration exists.\n *\n * @returns whether or not an instance exists\n */\n has(): boolean;\n\n /**\n * Return the instance of PageRenameManager matching the current wiki\n * configuration.\n *\n * @returns the instance of PageRenameManager\n */\n get(): PageRenameManager;\n}\n\n/**\n * The component id of PageRenameManager.\n * @since 0.14\n */\nconst name = \"PageRenameManager\";\n\nexport { type PageRenameManager, type PageRenameManagerProvider, name };\n"],"names":["name"],"mappings":"6OA0EA,MAAMA,EAAO"}
1
+ {"version":3,"file":"index.umd.js","sources":["../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 type { PageData } from \"@xwiki/cristal-api\";\n\n/**\n * A PageRenameManager can handle page rename operations.\n *\n * @since 0.14\n * @beta\n **/\ninterface PageRenameManager {\n /**\n * Change the reference of a given page.\n *\n * @param pageData - the page for which to get the revisions\n * @param newReference - the new reference for the page\n * @param preserveChildren - whether to also affect children\n * @returns true if this was successful, false with the reason otherwise\n */\n updateReference(\n page: PageData,\n newReference: string,\n preserveChildren: boolean,\n ): Promise<{ success: boolean; error?: string }>;\n\n /* TODO: Fix CRISTAL-84 and add operations to update backlinks and set-up\n automatic redirects. */\n}\n\n/**\n * A PageRenameManagerProvider returns the instance of {@link PageRenameManager}\n * matching the current wiki configuration.\n *\n * @since 0.14\n * @beta\n **/\ninterface PageRenameManagerProvider {\n /**\n * Check whether an instance of PageRenameManager matching the current wiki\n * configuration exists.\n *\n * @returns whether or not an instance exists\n */\n has(): boolean;\n\n /**\n * Return the instance of PageRenameManager matching the current wiki\n * configuration.\n *\n * @returns the instance of PageRenameManager\n */\n get(): PageRenameManager;\n}\n\n/**\n * The component id of PageRenameManager.\n * @since 0.14\n * @beta\n */\nconst name = \"PageRenameManager\";\n\nexport { type PageRenameManager, type PageRenameManagerProvider, name };\n"],"names":["name"],"mappings":"8OA6EA,MAAMA,EAAO"}
@@ -0,0 +1,29 @@
1
+ ## API Report File for "@xwiki/cristal-rename-api"
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 { PageData } from '@xwiki/cristal-api';
8
+
9
+ // @beta
10
+ const name_2 = "PageRenameManager";
11
+ export { name_2 as name }
12
+
13
+ // @beta
14
+ export interface PageRenameManager {
15
+ updateReference(page: PageData, newReference: string, preserveChildren: boolean): Promise<{
16
+ success: boolean;
17
+ error?: string;
18
+ }>;
19
+ }
20
+
21
+ // @beta
22
+ export interface PageRenameManagerProvider {
23
+ get(): PageRenameManager;
24
+ has(): boolean;
25
+ }
26
+
27
+ // (No @packageDocumentation comment for this package)
28
+
29
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xwiki/cristal-rename-api",
3
- "version": "0.21.1",
3
+ "version": "0.22.0",
4
4
  "license": "LGPL 2.1",
5
5
  "author": "XWiki Org Community <contact@xwiki.org>",
6
6
  "homepage": "https://cristal.xwiki.org/",
@@ -26,18 +26,20 @@
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.21.1"
31
+ "@xwiki/cristal-api": "0.22.0"
31
32
  },
32
33
  "devDependencies": {
33
34
  "typescript": "5.9.2",
34
- "vite": "7.0.6",
35
- "@xwiki/cristal-dev-config": "0.21.1"
35
+ "vite": "7.1.5",
36
+ "@xwiki/cristal-dev-config": "0.22.0"
36
37
  },
37
38
  "scripts": {
38
- "build": "tsc --project tsconfig.json && vite build",
39
+ "api-extractor:local": "api-extractor run --local",
40
+ "build": "vite build",
39
41
  "clean": "rimraf dist",
40
- "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0"
41
- },
42
- "types": "./dist/index.d.ts"
42
+ "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0",
43
+ "typecheck": "tsc"
44
+ }
43
45
  }
package/src/index.ts CHANGED
@@ -24,6 +24,7 @@ import type { PageData } from "@xwiki/cristal-api";
24
24
  * A PageRenameManager can handle page rename operations.
25
25
  *
26
26
  * @since 0.14
27
+ * @beta
27
28
  **/
28
29
  interface PageRenameManager {
29
30
  /**
@@ -49,6 +50,7 @@ interface PageRenameManager {
49
50
  * matching the current wiki configuration.
50
51
  *
51
52
  * @since 0.14
53
+ * @beta
52
54
  **/
53
55
  interface PageRenameManagerProvider {
54
56
  /**
@@ -71,6 +73,7 @@ interface PageRenameManagerProvider {
71
73
  /**
72
74
  * The component id of PageRenameManager.
73
75
  * @since 0.14
76
+ * @beta
74
77
  */
75
78
  const name = "PageRenameManager";
76
79