@mana-app/types 0.0.6 → 0.0.8

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.
@@ -7,14 +7,6 @@ export type BaseItem = {
7
7
  * Base Cover/Thumbnail for content
8
8
  */
9
9
  cover: string;
10
- /**
11
- * Additional Covers Provided
12
- */
13
- additionalCovers?: string[];
14
- /**
15
- * Additional Info that may be displayed with this content
16
- */
17
- info?: string[];
18
10
  /**
19
11
  * Indicates that this title contains NSFW content
20
12
  */
@@ -18,6 +18,10 @@ export type Content = BaseItem & {
18
18
  * Summary / Description of the content
19
19
  */
20
20
  summary?: string;
21
+ /**
22
+ * Additional Covers Provided
23
+ */
24
+ additionalCovers?: string[];
21
25
  /**
22
26
  * Other Names of the Publication
23
27
  */
@@ -44,6 +48,10 @@ export type Content = BaseItem & {
44
48
  * Useful for display stuff like recommended Content
45
49
  */
46
50
  collections?: HighlightCollection[];
51
+ /**
52
+ * Additional Info that may be displayed with this content
53
+ */
54
+ info?: string[];
47
55
  /**
48
56
  * The Content's defined Tracking ID's.
49
57
  */
@@ -8,6 +8,10 @@ export type Highlight = BaseItem & ContextProvider & {
8
8
  * The Subtitle of the tile
9
9
  */
10
10
  subtitle?: string;
11
+ /**
12
+ * Additional Info that may be displayed with this content
13
+ */
14
+ info?: Record<string, string>;
11
15
  /**
12
16
  * Badge to be displayed with the tile
13
17
  */
@@ -30,14 +30,17 @@ export type PageLinkLabel = {
30
30
  link: Linkable;
31
31
  };
32
32
  export declare enum SectionStyle {
33
- DEFAULT = 0,
34
- INFO = 1,
35
- GALLERY = 2,
36
- NAVIGATION_LIST = 3,
37
- ITEM_LIST = 4,
38
- PADDED_LIST = 5,
39
- TAG = 6,
40
- STANDARD_GRID = 7
33
+ SimpleSingleRow = 0,
34
+ SimpleDoubleRow = 1,
35
+ SimpleTripleRow = 2,
36
+ SimpleHero = 3,
37
+ SimpleHeroPaged = 4,
38
+ DetailedSingleRowPaged = 5,
39
+ DetailedDoubleRowPaged = 6,
40
+ DetailedTripleRowPaged = 7,
41
+ DetailedVerticalList = 8,
42
+ DetailedVerticalListGrouped = 9,
43
+ Grid = 10
41
44
  }
42
45
  /**
43
46
  * This defines a section within the page, if the `items` property is populated, the `resolvePageSection` will not be called as the section is treated as resolved
@@ -3,12 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SectionStyle = void 0;
4
4
  var SectionStyle;
5
5
  (function (SectionStyle) {
6
- SectionStyle[SectionStyle["DEFAULT"] = 0] = "DEFAULT";
7
- SectionStyle[SectionStyle["INFO"] = 1] = "INFO";
8
- SectionStyle[SectionStyle["GALLERY"] = 2] = "GALLERY";
9
- SectionStyle[SectionStyle["NAVIGATION_LIST"] = 3] = "NAVIGATION_LIST";
10
- SectionStyle[SectionStyle["ITEM_LIST"] = 4] = "ITEM_LIST";
11
- SectionStyle[SectionStyle["PADDED_LIST"] = 5] = "PADDED_LIST";
12
- SectionStyle[SectionStyle["TAG"] = 6] = "TAG";
13
- SectionStyle[SectionStyle["STANDARD_GRID"] = 7] = "STANDARD_GRID";
6
+ SectionStyle[SectionStyle["SimpleSingleRow"] = 0] = "SimpleSingleRow";
7
+ SectionStyle[SectionStyle["SimpleDoubleRow"] = 1] = "SimpleDoubleRow";
8
+ SectionStyle[SectionStyle["SimpleTripleRow"] = 2] = "SimpleTripleRow";
9
+ SectionStyle[SectionStyle["SimpleHero"] = 3] = "SimpleHero";
10
+ SectionStyle[SectionStyle["SimpleHeroPaged"] = 4] = "SimpleHeroPaged";
11
+ SectionStyle[SectionStyle["DetailedSingleRowPaged"] = 5] = "DetailedSingleRowPaged";
12
+ SectionStyle[SectionStyle["DetailedDoubleRowPaged"] = 6] = "DetailedDoubleRowPaged";
13
+ SectionStyle[SectionStyle["DetailedTripleRowPaged"] = 7] = "DetailedTripleRowPaged";
14
+ SectionStyle[SectionStyle["DetailedVerticalList"] = 8] = "DetailedVerticalList";
15
+ SectionStyle[SectionStyle["DetailedVerticalListGrouped"] = 9] = "DetailedVerticalListGrouped";
16
+ SectionStyle[SectionStyle["Grid"] = 10] = "Grid";
14
17
  })(SectionStyle || (exports.SectionStyle = SectionStyle = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mana-app/types",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {