@readerseye2/cr_type 1.0.93 → 1.0.95

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,4 +1,4 @@
1
- import type { AudioMeta } from '../book/book-sections.type';
1
+ import type { AudioMeta } from "../book/book-sections.type";
2
2
  export type SectionId = string;
3
3
  export type InlineRun = {
4
4
  text: string;
@@ -14,7 +14,7 @@ export type InlineRun = {
14
14
  audioValue?: string;
15
15
  };
16
16
  export type ListMeta = {
17
- kind: 'ordered' | 'bullet';
17
+ kind: "ordered" | "bullet";
18
18
  level: number;
19
19
  numId?: number;
20
20
  format?: string;
@@ -22,14 +22,14 @@ export type ListMeta = {
22
22
  };
23
23
  export type ParagraphBlock = {
24
24
  id: string;
25
- type: 'paragraph';
25
+ type: "paragraph";
26
26
  runs: InlineRun[];
27
27
  list?: ListMeta;
28
- textAlign?: 'left' | 'right' | 'center' | 'justify';
28
+ textAlign?: "left" | "right" | "center" | "justify";
29
29
  };
30
30
  export type ImageBlock = {
31
31
  id: string;
32
- type: 'image';
32
+ type: "image";
33
33
  src: string;
34
34
  alt?: string;
35
35
  width?: number;
@@ -57,16 +57,16 @@ type SectionAudioBase = {
57
57
  meta: AudioClipMeta;
58
58
  };
59
59
  export type SavedSectionAudio = SectionAudioBase & {
60
- kind: 'saved';
60
+ kind: "saved";
61
61
  cdnUrl: string;
62
62
  };
63
63
  export type TempSectionAudio = SectionAudioBase & {
64
- kind: 'temp';
64
+ kind: "temp";
65
65
  blobUrl: string;
66
66
  };
67
67
  export type SectionAudio = SavedSectionAudio | TempSectionAudio;
68
68
  export type SectionImage = {
69
- kind: 'saved';
69
+ kind: "saved";
70
70
  index: number;
71
71
  cdnUrl: string;
72
72
  alt?: string;
@@ -74,7 +74,7 @@ export type SectionImage = {
74
74
  height?: number;
75
75
  assetKey?: string;
76
76
  } | {
77
- kind: 'temp';
77
+ kind: "temp";
78
78
  index: number;
79
79
  blobUrl: string;
80
80
  alt?: string;
@@ -84,7 +84,7 @@ export type SectionImage = {
84
84
  };
85
85
  export type SectionQuiz = {
86
86
  qid: string;
87
- kind: 'saved';
87
+ kind: "saved";
88
88
  index: number;
89
89
  image_cdn_url: string;
90
90
  question: string;
@@ -94,7 +94,7 @@ export type SectionQuiz = {
94
94
  limit_sec: number;
95
95
  } | {
96
96
  qid: string;
97
- kind: 'temp';
97
+ kind: "temp";
98
98
  index: number;
99
99
  image_blob_url: string;
100
100
  question: string;
@@ -106,6 +106,8 @@ export type SectionQuiz = {
106
106
  export type SectionAST = {
107
107
  title: string;
108
108
  blocks: Block[];
109
+ isAddedSplit?: boolean;
110
+ isAddedAudio?: boolean;
109
111
  };
110
112
  export type SectionData = {
111
113
  section_id: SectionId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@readerseye2/cr_type",
3
- "version": "1.0.93",
3
+ "version": "1.0.95",
4
4
  "description": "CheckReading shared TypeScript types",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",