@lls/typings 24.1.31-a3d41d8a → 24.1.31-cc7571a5
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 +9 -7
- package/internal/school.d.ts +2 -0
- package/package.json +1 -1
package/internal/page.d.ts
CHANGED
|
@@ -4,13 +4,18 @@ export type ScreenMode = 'grid-xs' | 'grid-md'
|
|
|
4
4
|
|
|
5
5
|
export type SubzoneTypeCategory = 'picWord' | 'definition' | 'subZone'
|
|
6
6
|
|
|
7
|
-
export type
|
|
8
|
-
id: string
|
|
7
|
+
export type Rect = {
|
|
9
8
|
x: number
|
|
10
9
|
y: number
|
|
11
10
|
w: number
|
|
12
11
|
h: number
|
|
13
12
|
}
|
|
13
|
+
|
|
14
|
+
export type ZoneType = {
|
|
15
|
+
id: string
|
|
16
|
+
src?: string
|
|
17
|
+
} & Rect
|
|
18
|
+
|
|
14
19
|
export type ZoomZoneType = ZoneType & { type: Extract<SubzoneTypeCategory, 'subZone'> }
|
|
15
20
|
export type DefinitionsType = ZoneType & { type: Extract<SubzoneTypeCategory, 'definition'> }
|
|
16
21
|
export type PicWordType = ZoneType & { type: Extract<SubzoneTypeCategory, 'picWord'>; word?: string }
|
|
@@ -77,11 +82,7 @@ export type LayoutCell = {
|
|
|
77
82
|
|
|
78
83
|
export type PrimaryLayoutItem = {
|
|
79
84
|
id: string
|
|
80
|
-
|
|
81
|
-
y: number
|
|
82
|
-
w: number
|
|
83
|
-
h: number
|
|
84
|
-
}
|
|
85
|
+
} & Rect
|
|
85
86
|
|
|
86
87
|
export type Page<T extends 'primary' | 'default' = 'default'> = {
|
|
87
88
|
id?: number
|
|
@@ -119,6 +120,7 @@ export type Page<T extends 'primary' | 'default' = 'default'> = {
|
|
|
119
120
|
metadata?: TODO | null
|
|
120
121
|
} & (T extends 'primary'
|
|
121
122
|
? {
|
|
123
|
+
picture?: string
|
|
122
124
|
children?: PrimaryDoc[]
|
|
123
125
|
layouts?: {
|
|
124
126
|
primary?: PrimaryLayoutItem[]
|
package/internal/school.d.ts
CHANGED