stentor-models 1.46.6 → 1.48.3

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
@@ -3,6 +3,41 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.48.3](https://github.com/stentorium/stentor/compare/v1.48.2...v1.48.3) (2021-10-29)
7
+
8
+ **Note:** Version bump only for package stentor-models
9
+
10
+
11
+
12
+
13
+
14
+ ## [1.48.1](https://github.com/stentorium/stentor/compare/v1.48.0...v1.48.1) (2021-10-28)
15
+
16
+ **Note:** Version bump only for package stentor-models
17
+
18
+
19
+
20
+
21
+
22
+ # [1.48.0](https://github.com/stentorium/stentor/compare/v1.47.0...v1.48.0) (2021-10-28)
23
+
24
+
25
+ ### Features
26
+
27
+ * List Template ([#1200](https://github.com/stentorium/stentor/issues/1200)) ([6dc854a](https://github.com/stentorium/stentor/commit/6dc854ae810be1f752eea31160759427e768715e))
28
+
29
+
30
+
31
+
32
+
33
+ ## [1.46.7](https://github.com/stentorium/stentor/compare/v1.46.6...v1.46.7) (2021-10-25)
34
+
35
+ **Note:** Version bump only for package stentor-models
36
+
37
+
38
+
39
+
40
+
6
41
  ## [1.46.6](https://github.com/stentorium/stentor/compare/v1.46.5...v1.46.6) (2021-10-25)
7
42
 
8
43
 
@@ -1,5 +1,38 @@
1
1
  /*! Copyright (c) 2019, XAPPmedia */
2
2
  import { BaseDisplay } from "../Types";
3
+ /**
4
+ * Add to a display that has a list of items to give it the ability to be compiled with variables.
5
+ *
6
+ * @beta This is a new feature and may not work 100% as expected or may change.
7
+ */
8
+ export interface TemplatedList {
9
+ /**
10
+ * Used when templating the list for automatic generation.
11
+ *
12
+ * When using itemsObject, the first item in the list is the template
13
+ * and all other items in the list will be ignored.
14
+ *
15
+ * @beta This is not yet fully supported
16
+ */
17
+ itemsObject?: string;
18
+ /**
19
+ * Used with itemsObject, it is then used to reference the current item in the list within the template.
20
+ *
21
+ * @beta This is not yet fully supported
22
+ */
23
+ itemsName?: string;
24
+ /**
25
+ * When itemsObject is provided, this is the amount of list items to display
26
+ * along with the offset within the list.
27
+ *
28
+ * @beta This is not yet fully supported
29
+ */
30
+ range?: {
31
+ length: number;
32
+ from: number;
33
+ };
34
+ items?: any[];
35
+ }
3
36
  /**
4
37
  * List style display items.
5
38
  *
@@ -11,7 +44,7 @@ import { BaseDisplay } from "../Types";
11
44
  * {@link https://developer.amazon.com/docs/custom-skills/display-template-reference.html#listtemplate1}
12
45
  *
13
46
  */
14
- export interface List extends BaseDisplay {
47
+ export interface List extends BaseDisplay, TemplatedList {
15
48
  /**
16
49
  * Type of list.
17
50
  *
@@ -31,31 +64,6 @@ export interface List extends BaseDisplay {
31
64
  * The list items.
32
65
  */
33
66
  items: ListItem[];
34
- /**
35
- * Used when templating the list for automatic generation.
36
- *
37
- * When using itemsObject, the first item in the list is the template
38
- * and all other items in the list will be ignored.
39
- *
40
- * @beta This is not yet fully supported
41
- */
42
- itemsObject?: string;
43
- /**
44
- * Used with itemsObject, it is then used to reference the current item in the list within the template.
45
- *
46
- * @beta This is not yet fully supported
47
- */
48
- itemsName?: string;
49
- /**
50
- * When itemsObject is provided, this is the amount of list items to display
51
- * along with the offset within the list.
52
- *
53
- * @beta This is not yet fully supported
54
- */
55
- range?: {
56
- length: number;
57
- from: number;
58
- };
59
67
  }
60
68
  export interface ListItem {
61
69
  /**
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "1.46.6",
7
+ "version": "1.48.3",
8
8
  "description": "Models for 📣 stentor",
9
9
  "types": "lib/index",
10
10
  "typings": "lib/index",
@@ -17,12 +17,12 @@
17
17
  "node": "^10 || ^12 || ^14"
18
18
  },
19
19
  "devDependencies": {
20
- "@microsoft/api-extractor": "7.18.15",
20
+ "@microsoft/api-extractor": "7.18.17",
21
21
  "@rollup/plugin-typescript": "8.3.0",
22
22
  "@xapp/config": "0.2.3",
23
- "rollup": "2.58.0",
23
+ "rollup": "2.58.3",
24
24
  "tslib": "2.3.1",
25
- "typescript": "4.4.3"
25
+ "typescript": "4.4.4"
26
26
  },
27
27
  "scripts": {
28
28
  "api": "api-extractor run --local",
@@ -33,5 +33,5 @@
33
33
  "dependencies": {
34
34
  "@xapp/patterns": "1.37.29"
35
35
  },
36
- "gitHead": "02d1f403d8ca4aa1323888e6cb4856e44848b533"
36
+ "gitHead": "4a7fd8d39aac1833e8fdac3b3a36d8ec513714d2"
37
37
  }