@lls/typings 24.1.48-e0b1c53b → 24.1.48-e2e7ef59
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/internal/page.d.ts +13 -13
- package/package.json +1 -1
package/internal/page.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { TODO } from '@typings/utils'
|
|
|
3
3
|
|
|
4
4
|
export type ScreenMode = 'grid-xs' | 'grid-md'
|
|
5
5
|
|
|
6
|
-
export type
|
|
6
|
+
export type ZoneElementTypeCategory = 'picWord' | 'definition' | 'subZone' | 'mask' | 'correction'
|
|
7
7
|
|
|
8
8
|
export type Rect = {
|
|
9
9
|
x: number
|
|
@@ -12,17 +12,17 @@ export type Rect = {
|
|
|
12
12
|
h: number
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
export type
|
|
15
|
+
export type Zone = {
|
|
16
16
|
id: string
|
|
17
17
|
} & Rect
|
|
18
18
|
|
|
19
|
-
export type
|
|
20
|
-
export type
|
|
21
|
-
export type
|
|
22
|
-
export type
|
|
23
|
-
export type
|
|
19
|
+
export type SubZone = Zone & { type: Extract<ZoneElementTypeCategory, 'subZone'> }
|
|
20
|
+
export type Definitions = Zone & { type: Extract<ZoneElementTypeCategory, 'definition'>; word?: Word }
|
|
21
|
+
export type PicWord = Zone & { type: Extract<ZoneElementTypeCategory, 'picWord'>; word?: Word }
|
|
22
|
+
export type Mask = Zone & { type: Extract<ZoneElementTypeCategory, 'mask'> }
|
|
23
|
+
export type Correction = Zone & { type: Extract<ZoneElementTypeCategory, 'correction'> }
|
|
24
24
|
|
|
25
|
-
export type
|
|
25
|
+
export type ZoneElement = SubZone | Definitions | PicWord | Mask | Correction
|
|
26
26
|
|
|
27
27
|
export type DocJson<T extends 'primary' | 'default' = 'default'> = {
|
|
28
28
|
id?: number
|
|
@@ -30,11 +30,11 @@ export type DocJson<T extends 'primary' | 'default' = 'default'> = {
|
|
|
30
30
|
contentMd?: string
|
|
31
31
|
} & (T extends 'primary'
|
|
32
32
|
? {
|
|
33
|
-
picWords?:
|
|
34
|
-
definitions?:
|
|
35
|
-
subZones?:
|
|
36
|
-
masks?:
|
|
37
|
-
corrections?:
|
|
33
|
+
picWords?: PicWord[]
|
|
34
|
+
definitions?: Definitions[]
|
|
35
|
+
subZones?: SubZone[]
|
|
36
|
+
masks?: Mask[]
|
|
37
|
+
corrections?: Correction[]
|
|
38
38
|
audios?: string[]
|
|
39
39
|
videos?: string[]
|
|
40
40
|
rives?: { src: string; stateMachines: string }[]
|