@sitevision/api 2023.2.1-alpha.0 → 2023.2.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/README.md CHANGED
@@ -1,20 +1,5 @@
1
1
  # @sitevision/api
2
2
 
3
- Typescript definitions for Sitevision Public API. Project is under construction feel free to add more documentation.
3
+ TypeScript definitions for Sitevision Public API.
4
4
 
5
- ## How?
6
-
7
- - Create a folder for the class you would like to document.
8
- - Add an empty index.js.
9
- - Add index.d.ts and fill with declarations.
10
-
11
- ### Folder structure
12
-
13
- - server
14
- - Classes only available on the server
15
- - client
16
- - Classes only available when on the client
17
- - common
18
- - Interfaces shared between server and client
19
-
20
- More info on how to write TypeScript declarations can be found [here](https://www.typescriptlang.org/docs/handbook/declaration-files/by-example.html).
5
+ For more information and documentation visit https://developer.sitevision.se
@@ -13,8 +13,8 @@ export interface Request {
13
13
  invalidateSession(): void;
14
14
  header(headerName: string): string | null;
15
15
  file(fileParameterName: string): Node;
16
- params: Record<string, string | number>;
17
- cookies: Record<string, string>;
16
+ params: { [key: string]: string };
17
+ cookies: { [key: string]: string };
18
18
  xhr: boolean;
19
19
  session: any;
20
20
  hostname: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sitevision/api",
3
- "version": "2023.02.1-alpha.0",
3
+ "version": "2023.2.1",
4
4
  "author": "Sitevision AB",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -14,6 +14,7 @@
14
14
  "url": "https://github.com/sitevision/sitevision-apps/issues"
15
15
  },
16
16
  "scripts": {
17
+ "prepack": "yarn build",
17
18
  "build": "rimraf dist/ && rimraf build/ && scripts/copysrc.sh && node scripts/generateindex.js && babel build --out-dir dist --copy-files && copyfiles package.json README.md dist/",
18
19
  "deploy": "yarn build && npm publish dist"
19
20
  },
@@ -26,5 +27,6 @@
26
27
  "publishConfig": {
27
28
  "access": "public",
28
29
  "directory": "dist"
29
- }
30
+ },
31
+ "gitHead": "b50466b7c3cbae334f825e186338f42aef7980cc"
30
32
  }
@@ -19,7 +19,7 @@ export interface TextElement {
19
19
  export interface HtmlElement {
20
20
  type: 'block' | 'inline';
21
21
  htmlTag: string;
22
- attributes?: Record<string, string>;
22
+ attributes?: { [key: string]: string | number };
23
23
  children: (HtmlElement | TextElement)[];
24
24
  }
25
25