@lls/typings 24.1.48-a07e161f → 24.1.48-a5c74cfd
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 -15
- package/internal/resourcesMenu.d.ts +0 -1
- package/models.d.ts +0 -2
- package/package.json +1 -1
- package/internal/communityProject.d.ts +0 -26
- package/internal/contact.d.ts +0 -11
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 SubzoneTypeCategory = '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 ZoneType = {
|
|
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 ZoomZoneType = ZoneType & { type: Extract<SubzoneTypeCategory, 'subZone'> }
|
|
20
|
+
export type DefinitionsType = ZoneType & { type: Extract<SubzoneTypeCategory, 'definition'>; word?: Word }
|
|
21
|
+
export type PicWordType = ZoneType & { type: Extract<SubzoneTypeCategory, 'picWord'>; word?: Word }
|
|
22
|
+
export type MaskType = ZoneType & { type: Extract<SubzoneTypeCategory, 'mask'> }
|
|
23
|
+
export type CorrectionType = ZoneType & { type: Extract<SubzoneTypeCategory, 'correction'> }
|
|
24
24
|
|
|
25
|
-
export type
|
|
25
|
+
export type SubZoneType = ZoomZoneType | DefinitionsType | PicWordType | MaskType | CorrectionType
|
|
26
26
|
|
|
27
27
|
export type DocJson<T extends 'primary' | 'default' = 'default'> = {
|
|
28
28
|
id?: number
|
|
@@ -30,15 +30,14 @@ 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?: PicWordType[]
|
|
34
|
+
definitions?: DefinitionsType[]
|
|
35
|
+
subZones?: ZoomZoneType[]
|
|
36
|
+
masks?: MaskType[]
|
|
37
|
+
corrections?: CorrectionType[]
|
|
38
38
|
audios?: string[]
|
|
39
39
|
videos?: string[]
|
|
40
40
|
rives?: { src: string; stateMachines: string }[]
|
|
41
|
-
rotation?: number
|
|
42
41
|
}
|
|
43
42
|
: {
|
|
44
43
|
metadata?: TODO | null
|
|
@@ -129,7 +128,6 @@ export type Page<T extends 'primary' | 'default' = 'default'> = {
|
|
|
129
128
|
} & (T extends 'primary'
|
|
130
129
|
? {
|
|
131
130
|
picture?: string
|
|
132
|
-
correctionPicture?: string
|
|
133
131
|
children?: PrimaryDoc[]
|
|
134
132
|
layouts?: {
|
|
135
133
|
primary?: PrimaryLayoutItem[]
|
package/models.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { SchoolTypeName } from './schoolType'
|
|
2
|
-
import type { SubjectName } from './subject'
|
|
3
|
-
|
|
4
|
-
export type ProjectStatus = 'En cours' | 'Terminé' | 'Recutement en cours' | 'Recutement terminé'
|
|
5
|
-
export type PresenceMode = 'Présentiel' | 'À distance'
|
|
6
|
-
export type ProjectType = 'Communauté' | 'Numérique' | 'Editorial'
|
|
7
|
-
|
|
8
|
-
export type CommunityProject = {
|
|
9
|
-
description: string
|
|
10
|
-
displayName: string
|
|
11
|
-
endingDate?: string
|
|
12
|
-
goalParticipants: number
|
|
13
|
-
id: string
|
|
14
|
-
image: string
|
|
15
|
-
isFeatured: boolean
|
|
16
|
-
isPublished: boolean
|
|
17
|
-
presenceMode: PresenceMode[]
|
|
18
|
-
projectStatus: ProjectStatus
|
|
19
|
-
projectTypes: ProjectType[]
|
|
20
|
-
registeredContactCount: number
|
|
21
|
-
requirements?: string
|
|
22
|
-
schoolTypes?: SchoolTypeName[]
|
|
23
|
-
slug: string
|
|
24
|
-
startingDate?: string
|
|
25
|
-
subjects?: SubjectName[]
|
|
26
|
-
}
|