@xwiki/cristal-page-api 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 +9 -3
- package/api-extractor.json +4 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/etc/cristal-page-api.api.md +24 -0
- package/package.json +7 -6
- package/src/index.ts +3 -0
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
/**
|
|
21
21
|
* Provide the operations to read a page content
|
|
22
22
|
* @since 0.20
|
|
23
|
+
* @beta
|
|
23
24
|
*/
|
|
24
25
|
interface PageReader {
|
|
25
26
|
/**
|
|
@@ -34,6 +35,7 @@ interface PageReader {
|
|
|
34
35
|
}
|
|
35
36
|
/**
|
|
36
37
|
* @since 0.20
|
|
38
|
+
* @beta
|
|
37
39
|
*/
|
|
38
40
|
interface PageWriter {
|
|
39
41
|
writePage(pageContent: {
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH;;;;GAIG;AACH,UAAU,UAAU;IAClB;;;;;OAKG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;CAC3D;AAED;;;GAGG;AACH,UAAU,UAAU;IAClB,SAAS,CAAC,WAAW,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG,MAAM,CAAC;CAC5D;AAED,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
## API Report File for "@xwiki/cristal-page-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
|
+
// @beta
|
|
8
|
+
export interface PageReader {
|
|
9
|
+
readPage(pageContent: string): {
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// @beta (undocumented)
|
|
15
|
+
export interface PageWriter {
|
|
16
|
+
// (undocumented)
|
|
17
|
+
writePage(pageContent: {
|
|
18
|
+
[key: string]: unknown;
|
|
19
|
+
}): string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// (No @packageDocumentation comment for this package)
|
|
23
|
+
|
|
24
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xwiki/cristal-page-api",
|
|
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/",
|
|
@@ -18,19 +18,20 @@
|
|
|
18
18
|
"types": "./dist/index.d.ts"
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
|
-
"types": "./
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"inversify": "7.x",
|
|
24
24
|
"reflect-metadata": "0.x"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"inversify": "7.
|
|
27
|
+
"inversify": "7.10.2",
|
|
28
28
|
"reflect-metadata": "0.2.2",
|
|
29
|
-
"typescript": "5.9.
|
|
30
|
-
"@xwiki/cristal-dev-config": "0.
|
|
29
|
+
"typescript": "5.9.3",
|
|
30
|
+
"@xwiki/cristal-dev-config": "0.23.0"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
|
-
"
|
|
33
|
+
"api-extractor:local": "api-extractor run --local",
|
|
34
|
+
"build": "rimraf dist && tsc",
|
|
34
35
|
"clean": "rimraf dist",
|
|
35
36
|
"lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0"
|
|
36
37
|
}
|
package/src/index.ts
CHANGED
|
@@ -17,9 +17,11 @@
|
|
|
17
17
|
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
|
18
18
|
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
|
|
19
19
|
*/
|
|
20
|
+
|
|
20
21
|
/**
|
|
21
22
|
* Provide the operations to read a page content
|
|
22
23
|
* @since 0.20
|
|
24
|
+
* @beta
|
|
23
25
|
*/
|
|
24
26
|
interface PageReader {
|
|
25
27
|
/**
|
|
@@ -33,6 +35,7 @@ interface PageReader {
|
|
|
33
35
|
|
|
34
36
|
/**
|
|
35
37
|
* @since 0.20
|
|
38
|
+
* @beta
|
|
36
39
|
*/
|
|
37
40
|
interface PageWriter {
|
|
38
41
|
writePage(pageContent: { [key: string]: unknown }): string;
|