@newskit-render/feed 0.20.0 → 0.21.0-alpha.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/dist/cjs/rss/__tests__/mocks.d.ts +161 -39
- package/dist/cjs/rss/__tests__/mocks.js +178 -11
- package/dist/cjs/rss/__tests__/mocks.js.map +1 -1
- package/dist/cjs/rss/contentEncodedUtils/createBlockElements.d.ts +9 -0
- package/dist/cjs/rss/contentEncodedUtils/createBlockElements.js +47 -0
- package/dist/cjs/rss/contentEncodedUtils/createBlockElements.js.map +1 -0
- package/dist/cjs/rss/contentEncodedUtils/createContentEncoded.js +9 -11
- package/dist/cjs/rss/contentEncodedUtils/createContentEncoded.js.map +1 -1
- package/dist/cjs/rss/contentEncodedUtils/createParagraph.js +3 -9
- package/dist/cjs/rss/contentEncodedUtils/createParagraph.js.map +1 -1
- package/dist/cjs/rss/contentEncodedUtils/createSummary.js +1 -1
- package/dist/cjs/rss/contentEncodedUtils/createSummary.js.map +1 -1
- package/dist/cjs/rss/contentEncodedUtils/index.d.ts +1 -0
- package/dist/cjs/rss/contentEncodedUtils/index.js +1 -0
- package/dist/cjs/rss/contentEncodedUtils/index.js.map +1 -1
- package/dist/cjs/rss/helpers/articleHelper.d.ts +4 -5
- package/dist/cjs/rss/helpers/articleHelper.js +3 -5
- package/dist/cjs/rss/helpers/articleHelper.js.map +1 -1
- package/dist/cjs/rss/helpers/buildBodyDataTypesMap.d.ts +2 -0
- package/dist/cjs/rss/helpers/buildBodyDataTypesMap.js +33 -0
- package/dist/cjs/rss/helpers/buildBodyDataTypesMap.js.map +1 -0
- package/dist/cjs/rss/helpers/buildLists.d.ts +4 -0
- package/dist/cjs/rss/helpers/buildLists.js +33 -0
- package/dist/cjs/rss/helpers/buildLists.js.map +1 -0
- package/dist/cjs/rss/helpers/index.d.ts +2 -0
- package/dist/cjs/rss/helpers/index.js +2 -0
- package/dist/cjs/rss/helpers/index.js.map +1 -1
- package/dist/cjs/rss/queries/getArticleList.js +1 -1
- package/dist/cjs/rss/queries/getArticleList.js.map +1 -1
- package/dist/cjs/rss/types.d.ts +87 -5
- package/dist/cjs/rss/types.js +26 -0
- package/dist/cjs/rss/types.js.map +1 -1
- package/dist/esm/rss/__tests__/mocks.d.ts +161 -39
- package/dist/esm/rss/__tests__/mocks.js +177 -10
- package/dist/esm/rss/__tests__/mocks.js.map +1 -1
- package/dist/esm/rss/contentEncodedUtils/createBlockElements.d.ts +9 -0
- package/dist/esm/rss/contentEncodedUtils/createBlockElements.js +36 -0
- package/dist/esm/rss/contentEncodedUtils/createBlockElements.js.map +1 -0
- package/dist/esm/rss/contentEncodedUtils/createContentEncoded.js +9 -11
- package/dist/esm/rss/contentEncodedUtils/createContentEncoded.js.map +1 -1
- package/dist/esm/rss/contentEncodedUtils/createParagraph.js +1 -7
- package/dist/esm/rss/contentEncodedUtils/createParagraph.js.map +1 -1
- package/dist/esm/rss/contentEncodedUtils/createRSSFeed.js +1 -1
- package/dist/esm/rss/contentEncodedUtils/createRSSFeed.js.map +1 -1
- package/dist/esm/rss/contentEncodedUtils/createSummary.js +1 -1
- package/dist/esm/rss/contentEncodedUtils/createSummary.js.map +1 -1
- package/dist/esm/rss/contentEncodedUtils/index.d.ts +1 -0
- package/dist/esm/rss/contentEncodedUtils/index.js +1 -0
- package/dist/esm/rss/contentEncodedUtils/index.js.map +1 -1
- package/dist/esm/rss/helpers/articleHelper.d.ts +4 -5
- package/dist/esm/rss/helpers/articleHelper.js +3 -5
- package/dist/esm/rss/helpers/articleHelper.js.map +1 -1
- package/dist/esm/rss/helpers/buildBodyDataTypesMap.d.ts +2 -0
- package/dist/esm/rss/helpers/buildBodyDataTypesMap.js +30 -0
- package/dist/esm/rss/helpers/buildBodyDataTypesMap.js.map +1 -0
- package/dist/esm/rss/helpers/buildLists.d.ts +4 -0
- package/dist/esm/rss/helpers/buildLists.js +27 -0
- package/dist/esm/rss/helpers/buildLists.js.map +1 -0
- package/dist/esm/rss/helpers/index.d.ts +2 -0
- package/dist/esm/rss/helpers/index.js +2 -0
- package/dist/esm/rss/helpers/index.js.map +1 -1
- package/dist/esm/rss/queries/getArticleList.js +1 -1
- package/dist/esm/rss/queries/getArticleList.js.map +1 -1
- package/dist/esm/rss/types.d.ts +87 -5
- package/dist/esm/rss/types.js +25 -1
- package/dist/esm/rss/types.js.map +1 -1
- package/package.json +4 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildLists.js","sourceRoot":"","sources":["../../../../src/rss/helpers/buildLists.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC9E,OAAO,EAA8B,aAAa,EAAY,MAAM,UAAU,CAAA;AAE9E,MAAM,CAAC,IAAM,mBAAmB,GAAG,UAAC,aAA4B;IAC9D,OAAA,SAAO,aAAa,CAAC,KAAK;SACvB,GAAG,CAAC,UAAC,IAAI,IAAK,OAAA,SAAO,iBAAiB,CAAC,IAAI,CAAC,UAAO,EAArC,CAAqC,CAAC;SACpD,IAAI,CAAC,EAAE,CAAC,UAAO;AAFlB,CAEkB,CAAA;AAEpB,MAAM,CAAC,IAAM,iBAAiB,GAAG,UAAC,WAAwB;IACxD,OAAA,SAAO,WAAW,CAAC,KAAK;SACrB,GAAG,CAAC,UAAC,IAAI,IAAK,OAAA,SAAO,iBAAiB,CAAC,IAAI,CAAC,UAAO,EAArC,CAAqC,CAAC;SACpD,IAAI,CAAC,EAAE,CAAC,UAAO;AAFlB,CAEkB,CAAA;AAEpB,MAAM,CAAC,IAAM,iBAAiB,GAAG,UAAC,IAAc;IAC9C,QAAQ,IAAI,CAAC,IAAI,EAAE;QACjB,KAAK,aAAa,CAAC,IAAI;YACrB,OAAO,eAAe,CAAC,IAAI,CAAC,CAAA;QAC9B,KAAK,aAAa,CAAC,SAAS;YAC1B,OAAO,oBAAoB,CAAC,IAAI,CAAC,CAAA;QACnC,KAAK,aAAa,CAAC,aAAa;YAC9B,OAAO,mBAAmB,CAAC,IAAI,CAAC,CAAA;QAClC,KAAK,aAAa,CAAC,WAAW;YAC5B,OAAO,iBAAiB,CAAC,IAAI,CAAC,CAAA;QAChC;YACE,OAAO,EAAE,CAAA;KACZ;AACH,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/rss/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/rss/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,cAAc,CAAA;AAC5B,cAAc,yBAAyB,CAAA"}
|
|
@@ -3,6 +3,6 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
3
3
|
return cooked;
|
|
4
4
|
};
|
|
5
5
|
import { gql } from '@apollo/client';
|
|
6
|
-
export var GET_ARTICLE_LIST = gql(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query getArticleList(\n $publisher: Publisher!\n $from: Date\n $to: Date\n $cursor: String\n ) {\n articleList(\n publisher: $publisher\n from: $from\n to: $to\n cursor: $cursor\n limit: 20\n ) {\n pageCursors {\n next\n }\n data {\n categories {\n slug\n }\n bylines {\n ... on AuthorByline {\n name\n }\n }\n publisher\n publishedDateTime\n updatedDateTime\n headline\n id\n body {\n ... on ImageBlock {\n alt\n caption\n credit\n height\n width\n type\n url\n }\n ... on ParagraphBlock {\n children {\n ... on TextBlock {\n bold\n italic\n monospace\n text\n type\n underline\n }\n ... on HyperlinkBlock {\n text\n type\n url\n }\n }\n type\n }\n }\n }\n meta {\n countTotal\n }\n }\n }\n"], ["\n query getArticleList(\n $publisher: Publisher!\n $from: Date\n $to: Date\n $cursor: String\n ) {\n articleList(\n publisher: $publisher\n from: $from\n to: $to\n cursor: $cursor\n limit: 20\n ) {\n pageCursors {\n next\n }\n data {\n categories {\n slug\n }\n bylines {\n ... on AuthorByline {\n name\n }\n }\n publisher\n publishedDateTime\n updatedDateTime\n headline\n id\n body {\n ... on ImageBlock {\n alt\n caption\n credit\n height\n width\n type\n url\n }\n ... on ParagraphBlock {\n children {\n ... on TextBlock {\n bold\n italic\n monospace\n text\n type\n underline\n }\n ... on HyperlinkBlock {\n text\n type\n url\n }\n }\n type\n }\n }\n }\n meta {\n countTotal\n }\n }\n }\n"])));
|
|
6
|
+
export var GET_ARTICLE_LIST = gql(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query getArticleList(\n $publisher: Publisher!\n $from: Date\n $to: Date\n $cursor: String\n ) {\n articleList(\n publisher: $publisher\n from: $from\n to: $to\n cursor: $cursor\n limit: 20\n ) {\n pageCursors {\n next\n }\n data {\n categories {\n slug\n }\n bylines {\n ... on AuthorByline {\n name\n }\n }\n publisher\n publishedDateTime\n updatedDateTime\n headline\n id\n body {\n ... on ImageBlock {\n alt\n caption\n credit\n height\n width\n type\n url\n }\n ... on ParagraphBlock {\n paragraphs: children {\n ... on TextBlock {\n bold\n italic\n monospace\n text\n type\n underline\n }\n ... on HyperlinkBlock {\n text\n type\n url\n }\n }\n type\n }\n ... on TextBlock {\n type\n text\n bold\n italic\n }\n ... on HeadingBlock {\n type\n level\n }\n ... on FormStackBlock {\n type\n id\n }\n ... on TweetBlock {\n type\n id\n }\n ... on InstagramBlock {\n type\n id\n }\n ... on YoutubeBlock {\n type\n id\n }\n ... on VideoBrightcoveBlock {\n type\n id\n accountId\n playerId\n }\n ... on OrderedListBlock {\n type\n items {\n ... on HyperlinkBlock {\n type\n url\n text\n }\n ... on TextBlock {\n type\n text\n bold\n italic\n }\n }\n }\n ... on UnorderedListBlock {\n type\n items {\n ... on HyperlinkBlock {\n type\n url\n text\n }\n ... on TextBlock {\n type\n text\n bold\n italic\n }\n }\n }\n ... on EmbedBlock {\n type\n url\n }\n ... on HeadingBlock {\n type\n level\n children {\n ... on TextBlock {\n type\n text\n bold\n italic\n }\n }\n }\n }\n }\n meta {\n countTotal\n }\n }\n }\n"], ["\n query getArticleList(\n $publisher: Publisher!\n $from: Date\n $to: Date\n $cursor: String\n ) {\n articleList(\n publisher: $publisher\n from: $from\n to: $to\n cursor: $cursor\n limit: 20\n ) {\n pageCursors {\n next\n }\n data {\n categories {\n slug\n }\n bylines {\n ... on AuthorByline {\n name\n }\n }\n publisher\n publishedDateTime\n updatedDateTime\n headline\n id\n body {\n ... on ImageBlock {\n alt\n caption\n credit\n height\n width\n type\n url\n }\n ... on ParagraphBlock {\n paragraphs: children {\n ... on TextBlock {\n bold\n italic\n monospace\n text\n type\n underline\n }\n ... on HyperlinkBlock {\n text\n type\n url\n }\n }\n type\n }\n ... on TextBlock {\n type\n text\n bold\n italic\n }\n ... on HeadingBlock {\n type\n level\n }\n ... on FormStackBlock {\n type\n id\n }\n ... on TweetBlock {\n type\n id\n }\n ... on InstagramBlock {\n type\n id\n }\n ... on YoutubeBlock {\n type\n id\n }\n ... on VideoBrightcoveBlock {\n type\n id\n accountId\n playerId\n }\n ... on OrderedListBlock {\n type\n items {\n ... on HyperlinkBlock {\n type\n url\n text\n }\n ... on TextBlock {\n type\n text\n bold\n italic\n }\n }\n }\n ... on UnorderedListBlock {\n type\n items {\n ... on HyperlinkBlock {\n type\n url\n text\n }\n ... on TextBlock {\n type\n text\n bold\n italic\n }\n }\n }\n ... on EmbedBlock {\n type\n url\n }\n ... on HeadingBlock {\n type\n level\n children {\n ... on TextBlock {\n type\n text\n bold\n italic\n }\n }\n }\n }\n }\n meta {\n countTotal\n }\n }\n }\n"])));
|
|
7
7
|
var templateObject_1;
|
|
8
8
|
//# sourceMappingURL=getArticleList.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getArticleList.js","sourceRoot":"","sources":["../../../../src/rss/queries/getArticleList.ts"],"names":[],"mappings":";;;;AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAEpC,MAAM,CAAC,IAAM,gBAAgB,GAAG,GAAG,
|
|
1
|
+
{"version":3,"file":"getArticleList.js","sourceRoot":"","sources":["../../../../src/rss/queries/getArticleList.ts"],"names":[],"mappings":";;;;AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAEpC,MAAM,CAAC,IAAM,gBAAgB,GAAG,GAAG,u+FAAA,o6FAkJlC,IAAA,CAAA"}
|
package/dist/esm/rss/types.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { NextApiResponse } from 'next';
|
|
2
2
|
import { Publisher } from '@newskit-render/api';
|
|
3
|
+
import { VideoBrightcoveBlock } from 'helpers/types';
|
|
3
4
|
export declare type UpdatePeriod = 'hourly' | 'daily' | 'weekly' | 'monthly' | 'yearly';
|
|
4
5
|
export declare type TiteAttributes = {
|
|
5
6
|
title: string;
|
|
@@ -33,7 +34,12 @@ export declare type HyperlinkBlock = {
|
|
|
33
34
|
export declare type ParagraphBlockChildren = TextBlock | HyperlinkBlock;
|
|
34
35
|
export declare type ParagraphBlock = {
|
|
35
36
|
type: 'paragraph';
|
|
36
|
-
|
|
37
|
+
paragraphs: ParagraphBlockChildren[];
|
|
38
|
+
};
|
|
39
|
+
export declare type HeadingBlock = {
|
|
40
|
+
type: 'heading';
|
|
41
|
+
level: number;
|
|
42
|
+
children: TextBlock[];
|
|
37
43
|
};
|
|
38
44
|
export declare type ImageBlock = {
|
|
39
45
|
alt: string;
|
|
@@ -44,18 +50,70 @@ export declare type ImageBlock = {
|
|
|
44
50
|
url: string;
|
|
45
51
|
type: 'image';
|
|
46
52
|
};
|
|
47
|
-
export declare type
|
|
53
|
+
export declare type TweetBlock = {
|
|
54
|
+
id: string;
|
|
55
|
+
type: 'tweet';
|
|
56
|
+
};
|
|
57
|
+
export declare type FormStackBlock = {
|
|
58
|
+
id: string;
|
|
59
|
+
type: string;
|
|
60
|
+
};
|
|
61
|
+
export declare type EmbedBlock = {
|
|
62
|
+
type: 'embed';
|
|
63
|
+
url: string;
|
|
64
|
+
};
|
|
65
|
+
export declare type InstagramBlock = {
|
|
66
|
+
id: string;
|
|
67
|
+
type: 'instagram';
|
|
68
|
+
};
|
|
69
|
+
export declare type YoutubeBlock = {
|
|
70
|
+
id: 'youtube';
|
|
71
|
+
type: string;
|
|
72
|
+
};
|
|
73
|
+
export declare type Body = TextBlock | ParagraphBlock | ImageBlock | HeadingBlock | EmbedBlock | FormStackBlock | InstagramBlock | VideoBrightcoveBlock | UnorderedList | OrderedList;
|
|
48
74
|
export declare type Summary = {
|
|
49
75
|
children: {
|
|
50
76
|
text: string;
|
|
51
77
|
}[];
|
|
52
78
|
};
|
|
79
|
+
export declare type ListItem = UnorderedList | OrderedList | TextBlock | HyperlinkBlock;
|
|
80
|
+
export declare enum ListTypes {
|
|
81
|
+
UnorderedList = "unordered-list",
|
|
82
|
+
OrderedList = "ordered-list"
|
|
83
|
+
}
|
|
84
|
+
export declare type UnorderedList = {
|
|
85
|
+
type: 'unordered-list';
|
|
86
|
+
items: [ListItem];
|
|
87
|
+
};
|
|
88
|
+
export declare type OrderedList = {
|
|
89
|
+
type: 'ordered-list';
|
|
90
|
+
items: [ListItem];
|
|
91
|
+
};
|
|
92
|
+
export declare enum ListItemTypes {
|
|
93
|
+
UnorderedList = "unordered-list",
|
|
94
|
+
OrderedList = "ordered-list",
|
|
95
|
+
Text = "text",
|
|
96
|
+
Hyperlink = "hyperlink"
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* the Category type, as returned from the API has the following shape:
|
|
100
|
+
* {
|
|
101
|
+
id: string
|
|
102
|
+
parentId: string
|
|
103
|
+
slug: string
|
|
104
|
+
title: string
|
|
105
|
+
type: 'category'
|
|
106
|
+
}
|
|
107
|
+
we're cirrently only using slug, but we might need to use more in the future.
|
|
108
|
+
I have exported the type as it is used now to be able to type an argument in the code properly
|
|
109
|
+
*/
|
|
110
|
+
export declare type ArticleCategory = {
|
|
111
|
+
slug: string;
|
|
112
|
+
};
|
|
53
113
|
export declare type Article = {
|
|
54
114
|
id: string | number;
|
|
55
115
|
headline: string;
|
|
56
|
-
categories:
|
|
57
|
-
slug: string;
|
|
58
|
-
}[];
|
|
116
|
+
categories: ArticleCategory[];
|
|
59
117
|
bylines?: {
|
|
60
118
|
name: string;
|
|
61
119
|
}[];
|
|
@@ -65,3 +123,27 @@ export declare type Article = {
|
|
|
65
123
|
body: Body[];
|
|
66
124
|
};
|
|
67
125
|
export declare type ArticleList = Article[];
|
|
126
|
+
export declare enum BodyBlockTypes {
|
|
127
|
+
Paragraph = "paragraph",
|
|
128
|
+
Image = "image",
|
|
129
|
+
Heading = "heading",
|
|
130
|
+
Tweet = "tweet",
|
|
131
|
+
Youtube = "youtube",
|
|
132
|
+
Instagram = "instagram",
|
|
133
|
+
Embed = "embed",
|
|
134
|
+
VideoBrightcove = "video-brightcove",
|
|
135
|
+
UnorderedListBlock = "unordered-list",
|
|
136
|
+
OrderedListBlock = "ordered-list"
|
|
137
|
+
}
|
|
138
|
+
export declare type BodyDataTypesMap = {
|
|
139
|
+
[BodyBlockTypes.Paragraph]: (data: ParagraphBlock) => string;
|
|
140
|
+
[BodyBlockTypes.Image]: (data: ImageBlock, imageSourceSizes?: string[]) => string;
|
|
141
|
+
[BodyBlockTypes.UnorderedListBlock]: (list: UnorderedList) => string;
|
|
142
|
+
[BodyBlockTypes.OrderedListBlock]: (list: OrderedList) => string;
|
|
143
|
+
[BodyBlockTypes.Heading]: (data: HeadingBlock) => string;
|
|
144
|
+
[BodyBlockTypes.Tweet]: (data: TweetBlock) => string;
|
|
145
|
+
[BodyBlockTypes.Youtube]: (data: YoutubeBlock) => string;
|
|
146
|
+
[BodyBlockTypes.Instagram]: (data: InstagramBlock) => string;
|
|
147
|
+
[BodyBlockTypes.VideoBrightcove]: (data: VideoBrightcoveBlock) => string;
|
|
148
|
+
[BodyBlockTypes.Embed]: (data: EmbedBlock) => string;
|
|
149
|
+
};
|
package/dist/esm/rss/types.js
CHANGED
|
@@ -1,2 +1,26 @@
|
|
|
1
|
-
export
|
|
1
|
+
export var ListTypes;
|
|
2
|
+
(function (ListTypes) {
|
|
3
|
+
ListTypes["UnorderedList"] = "unordered-list";
|
|
4
|
+
ListTypes["OrderedList"] = "ordered-list";
|
|
5
|
+
})(ListTypes || (ListTypes = {}));
|
|
6
|
+
export var ListItemTypes;
|
|
7
|
+
(function (ListItemTypes) {
|
|
8
|
+
ListItemTypes["UnorderedList"] = "unordered-list";
|
|
9
|
+
ListItemTypes["OrderedList"] = "ordered-list";
|
|
10
|
+
ListItemTypes["Text"] = "text";
|
|
11
|
+
ListItemTypes["Hyperlink"] = "hyperlink";
|
|
12
|
+
})(ListItemTypes || (ListItemTypes = {}));
|
|
13
|
+
export var BodyBlockTypes;
|
|
14
|
+
(function (BodyBlockTypes) {
|
|
15
|
+
BodyBlockTypes["Paragraph"] = "paragraph";
|
|
16
|
+
BodyBlockTypes["Image"] = "image";
|
|
17
|
+
BodyBlockTypes["Heading"] = "heading";
|
|
18
|
+
BodyBlockTypes["Tweet"] = "tweet";
|
|
19
|
+
BodyBlockTypes["Youtube"] = "youtube";
|
|
20
|
+
BodyBlockTypes["Instagram"] = "instagram";
|
|
21
|
+
BodyBlockTypes["Embed"] = "embed";
|
|
22
|
+
BodyBlockTypes["VideoBrightcove"] = "video-brightcove";
|
|
23
|
+
BodyBlockTypes["UnorderedListBlock"] = "unordered-list";
|
|
24
|
+
BodyBlockTypes["OrderedListBlock"] = "ordered-list";
|
|
25
|
+
})(BodyBlockTypes || (BodyBlockTypes = {}));
|
|
2
26
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/rss/types.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/rss/types.ts"],"names":[],"mappings":"AAuGA,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,6CAAgC,CAAA;IAChC,yCAA4B,CAAA;AAC9B,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAUD,MAAM,CAAN,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,iDAAgC,CAAA;IAChC,6CAA4B,CAAA;IAC5B,8BAAa,CAAA;IACb,wCAAuB,CAAA;AACzB,CAAC,EALW,aAAa,KAAb,aAAa,QAKxB;AA8BD,MAAM,CAAN,IAAY,cAWX;AAXD,WAAY,cAAc;IACxB,yCAAuB,CAAA;IACvB,iCAAe,CAAA;IACf,qCAAmB,CAAA;IACnB,iCAAe,CAAA;IACf,qCAAmB,CAAA;IACnB,yCAAuB,CAAA;IACvB,iCAAe,CAAA;IACf,sDAAoC,CAAA;IACpC,uDAAqC,CAAA;IACrC,mDAAiC,CAAA;AACnC,CAAC,EAXW,cAAc,KAAd,cAAc,QAWzB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newskit-render/feed",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0-alpha.0",
|
|
4
4
|
"description": "Newskit Render - Feed package",
|
|
5
5
|
"author": "",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -18,13 +18,14 @@
|
|
|
18
18
|
"build:watch": "tsc -b tsconfig.build.json -w",
|
|
19
19
|
"test:unit": "jest --coverage",
|
|
20
20
|
"test:unit:watch": "jest --watch",
|
|
21
|
+
"test:unit:ci": "JEST_JUNIT_OUTPUT_NAME=feed.xml node --max_old_space_size=4096 --expose-gc ./node_modules/.bin/jest --ci --coverage --reporters=default --reporters=jest-junit --runInBand --logHeapUsage",
|
|
21
22
|
"lint": "eslint --ext .js,.jsx,.ts,.tsx src --color",
|
|
22
23
|
"lint:fix": "eslint --ext .js,.ts src --color --fix && prettier --write 'src/**/*.{js,ts,json}'",
|
|
23
24
|
"clean": "rm -rf node_modules & rm -f package-lock.json & rm -f yarn.lock"
|
|
24
25
|
},
|
|
25
26
|
"dependencies": {
|
|
26
27
|
"@apollo/client": "3.3.7",
|
|
27
|
-
"@newskit-render/api": "^0.32.
|
|
28
|
+
"@newskit-render/api": "^0.32.1-alpha.2",
|
|
28
29
|
"cross-fetch": "3.1.5",
|
|
29
30
|
"graphql": "15.6.0",
|
|
30
31
|
"lodash.escape": "4.0.1",
|
|
@@ -46,6 +47,7 @@
|
|
|
46
47
|
"eslint-config-prettier": "7.1.0",
|
|
47
48
|
"eslint-plugin-prettier": "3.3.1",
|
|
48
49
|
"jest": "27.4.7",
|
|
50
|
+
"jest-junit": "12.0.0",
|
|
49
51
|
"next": "12.1.0",
|
|
50
52
|
"prettier": "2.2.1",
|
|
51
53
|
"ts-jest": "27.1.3",
|