@xwiki/cristal-page-api 1.2.0 → 1.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xwiki/cristal-page-api",
3
- "version": "1.2.0",
3
+ "version": "1.4.0",
4
4
  "license": "LGPL 2.1",
5
5
  "author": "XWiki Org Community <contact@xwiki.org>",
6
6
  "homepage": "https://cristal.xwiki.org/",
@@ -20,14 +20,14 @@
20
20
  },
21
21
  "types": "./dist/index.d.ts",
22
22
  "peerDependencies": {
23
- "inversify": "7.x",
23
+ "inversify": "8.x",
24
24
  "reflect-metadata": "0.x"
25
25
  },
26
26
  "devDependencies": {
27
- "inversify": "7.11.0",
27
+ "inversify": "8.1.0",
28
28
  "reflect-metadata": "0.2.2",
29
29
  "typescript": "5.9.3",
30
- "@xwiki/cristal-dev-config": "1.2.0"
30
+ "@xwiki/cristal-dev-config": "1.4.0"
31
31
  },
32
32
  "scripts": {
33
33
  "api-extractor:local": "api-extractor run --local",
package/dist/index.d.ts DELETED
@@ -1,46 +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
- * Provide the operations to read a page content
22
- * @since 0.20
23
- * @beta
24
- */
25
- interface PageReader {
26
- /**
27
- * Parse the provided page content, and returns a json object containing the actual page content plus the
28
- * available metadata. The metadata are expected to be provided as a yaml object wrapped between two lines
29
- * containing exactly '---'
30
- * @param pageContent - the provided page content
31
- */
32
- readPage(pageContent: string): {
33
- [key: string]: unknown;
34
- };
35
- }
36
- /**
37
- * @since 0.20
38
- * @beta
39
- */
40
- interface PageWriter {
41
- writePage(pageContent: {
42
- [key: string]: unknown;
43
- }): string;
44
- }
45
- export type { PageReader, PageWriter };
46
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
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"}