@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
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
package/dist/types/page/index.js
CHANGED
|
@@ -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["
|
|
7
|
-
SectionStyle[SectionStyle["
|
|
8
|
-
SectionStyle[SectionStyle["
|
|
9
|
-
SectionStyle[SectionStyle["
|
|
10
|
-
SectionStyle[SectionStyle["
|
|
11
|
-
SectionStyle[SectionStyle["
|
|
12
|
-
SectionStyle[SectionStyle["
|
|
13
|
-
SectionStyle[SectionStyle["
|
|
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 = {}));
|