@scalemule/news-publication 0.0.24 → 0.0.26

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.
@@ -0,0 +1,45 @@
1
+ import react__default from 'react';
2
+
3
+ type Media = {
4
+ kind?: "image" | "video";
5
+ contribution_id: string;
6
+ file_id: string;
7
+ caption: string;
8
+ credit: string;
9
+ alt: string;
10
+ position: string;
11
+ };
12
+ type Document = {
13
+ title: string;
14
+ subtitle: string;
15
+ content_markdown: string;
16
+ section: string;
17
+ community: string;
18
+ media: Media[];
19
+ };
20
+ type Editorial = {
21
+ content_kind?: string;
22
+ disclosure?: string;
23
+ notices?: {
24
+ kind: string;
25
+ text: string;
26
+ }[];
27
+ };
28
+ type Revision = {
29
+ editorial?: Editorial;
30
+ id: string;
31
+ number: number;
32
+ document: Document;
33
+ content_html: string;
34
+ };
35
+ declare function StoryReview({ sessionId, publicationName, }: {
36
+ sessionId: string;
37
+ publicationName: string;
38
+ }): react__default.JSX.Element;
39
+ /** Paragraph comparisons preserve readable prose and identify title/dek and media changes. */
40
+ declare function ReviewDiff({ before, after, }: {
41
+ before: Revision;
42
+ after: Revision;
43
+ }): react__default.JSX.Element;
44
+
45
+ export { ReviewDiff, StoryReview };
@@ -0,0 +1,45 @@
1
+ import react__default from 'react';
2
+
3
+ type Media = {
4
+ kind?: "image" | "video";
5
+ contribution_id: string;
6
+ file_id: string;
7
+ caption: string;
8
+ credit: string;
9
+ alt: string;
10
+ position: string;
11
+ };
12
+ type Document = {
13
+ title: string;
14
+ subtitle: string;
15
+ content_markdown: string;
16
+ section: string;
17
+ community: string;
18
+ media: Media[];
19
+ };
20
+ type Editorial = {
21
+ content_kind?: string;
22
+ disclosure?: string;
23
+ notices?: {
24
+ kind: string;
25
+ text: string;
26
+ }[];
27
+ };
28
+ type Revision = {
29
+ editorial?: Editorial;
30
+ id: string;
31
+ number: number;
32
+ document: Document;
33
+ content_html: string;
34
+ };
35
+ declare function StoryReview({ sessionId, publicationName, }: {
36
+ sessionId: string;
37
+ publicationName: string;
38
+ }): react__default.JSX.Element;
39
+ /** Paragraph comparisons preserve readable prose and identify title/dek and media changes. */
40
+ declare function ReviewDiff({ before, after, }: {
41
+ before: Revision;
42
+ after: Revision;
43
+ }): react__default.JSX.Element;
44
+
45
+ export { ReviewDiff, StoryReview };