@omerlo/omerlo-webkit 0.0.8 → 0.0.10

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.
@@ -1,2 +1,4 @@
1
1
  import * as Reader from './reader/fetchers';
2
+ import { initReader } from './reader';
3
+ initReader();
2
4
  export const useReader = Reader.fetchers;
@@ -61,7 +61,7 @@ export interface IssueType {
61
61
  }
62
62
  export interface IssueSectionSummary {
63
63
  id: string;
64
- name: string;
64
+ name: string | null;
65
65
  advertisingKey: string | null;
66
66
  color: string | null;
67
67
  visual: Visual | null;
@@ -18,3 +18,4 @@ export type * from './endpoints/projects';
18
18
  export type * from './endpoints/visuals';
19
19
  export type * from './endpoints/webpage';
20
20
  export type * from './utils/response';
21
+ export declare function initReader(): void;
@@ -6,14 +6,16 @@ import { registerAssocParser } from './utils/assocs';
6
6
  import { parseContentSummary } from './endpoints/contents';
7
7
  import { parseIssueBlockConfiguration, parseIssueType } from './endpoints/magazines';
8
8
  export * from './stores/user_session';
9
- registerAssocParser('categories', parseCategory);
10
- registerAssocParser('profiles', parseProfileSummary);
11
- registerAssocParser('content_templates', parseContentTemplate);
12
- registerAssocParser('profile_types', parseProfileTypeSummary);
13
- registerAssocParser('profile_block_types', parseProfileBlock);
14
- registerAssocParser('content_block_templates', parseContentBlockTemplate);
15
- registerAssocParser('contents', parseContentSummary);
16
- registerAssocParser('issue_types', parseIssueType);
17
- registerAssocParser('issue_block_configurations', parseIssueBlockConfiguration);
18
- // NOTE: This one is for retro compatibility with publisher public api v2
19
- registerAssocParser('templates', parseContentTemplate);
9
+ export function initReader() {
10
+ registerAssocParser('categories', parseCategory);
11
+ registerAssocParser('profiles', parseProfileSummary);
12
+ registerAssocParser('content_templates', parseContentTemplate);
13
+ registerAssocParser('profile_types', parseProfileTypeSummary);
14
+ registerAssocParser('profile_block_types', parseProfileBlock);
15
+ registerAssocParser('content_block_templates', parseContentBlockTemplate);
16
+ registerAssocParser('contents', parseContentSummary);
17
+ registerAssocParser('issue_types', parseIssueType);
18
+ registerAssocParser('issue_block_configurations', parseIssueBlockConfiguration);
19
+ // NOTE: This one is for retro compatibility with publisher public api v2
20
+ registerAssocParser('templates', parseContentTemplate);
21
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omerlo/omerlo-webkit",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package",