@omerlo/omerlo-webkit 0.0.27 → 0.0.29

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.
@@ -95,7 +95,6 @@ export function parseContent(data, assocs) {
95
95
  }
96
96
  return {
97
97
  ...parseContentSummary(data, assocs),
98
- metadata: data.metadata,
99
98
  seo,
100
99
  blocks: data.localized.blocks
101
100
  .map((block) => parseContentBlock(block, assocs))
@@ -32,6 +32,8 @@ export interface IssueSummary {
32
32
  issueType: IssueType;
33
33
  kind: 'pdf' | 'regular';
34
34
  name: string;
35
+ descriptionHtml: string | null;
36
+ descriptionText: string | null;
35
37
  color: string | null;
36
38
  pdfUrl: string | null;
37
39
  visual: Visual | null;
@@ -45,8 +47,6 @@ export interface IssueSummary {
45
47
  }
46
48
  export interface Issue extends IssueSummary {
47
49
  advertisingKey: string | null;
48
- descriptionHtml: string | null;
49
- descriptionText: string | null;
50
50
  sections: IssueSectionSummary[];
51
51
  }
52
52
  export interface IssueType {
@@ -45,6 +45,8 @@ export function parseIssueSummary(data, assocs) {
45
45
  issueType: getAssoc(assocs, 'issue_types', data.issue_type_id),
46
46
  kind: data.kind,
47
47
  name: data.name,
48
+ descriptionText: data.description_text,
49
+ descriptionHtml: data.description_html,
48
50
  color: data.color,
49
51
  pdfUrl: data.pdf_url,
50
52
  visual: parseVisual(data.visual, assocs),
@@ -59,8 +61,6 @@ export function parseIssue(data, assocs) {
59
61
  return {
60
62
  ...parseIssueSummary(data, assocs),
61
63
  advertisingKey: data.advertising_key,
62
- descriptionText: data.description_text,
63
- descriptionHtml: data.description_html,
64
64
  sections: data.sections.map((section) => parseIssueSectionSummary(section, assocs))
65
65
  };
66
66
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omerlo/omerlo-webkit",
3
- "version": "0.0.27",
3
+ "version": "0.0.29",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package",