@lls/typings 24.1.49 → 24.1.50-00cfc66a
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/book.d.ts +3 -1
- package/internal/communityProject.d.ts +25 -0
- package/internal/contact.d.ts +11 -0
- package/internal/page.d.ts +17 -15
- package/internal/resourcesMenu.d.ts +4 -0
- package/models.d.ts +2 -0
- package/package.json +4 -2
- package/presentationProps.d.ts +2 -0
package/internal/book.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export type Book = {
|
|
|
20
20
|
renderer?: string
|
|
21
21
|
filters?: Filter[]
|
|
22
22
|
chapters?: number[]
|
|
23
|
-
collection?: Collection
|
|
23
|
+
collection?: Collection['id']
|
|
24
24
|
resourcesMenu?: ResourcesMenuType
|
|
25
25
|
renewalLabel?: string
|
|
26
26
|
urlLite?: string
|
|
@@ -30,4 +30,6 @@ export type Book = {
|
|
|
30
30
|
slug?: string
|
|
31
31
|
publishers?: Publisher[]
|
|
32
32
|
isRenewed?: boolean
|
|
33
|
+
isPrimary?: boolean
|
|
34
|
+
firstValidPage?: number
|
|
33
35
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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 PresenceModes = '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
|
+
numberOfParticipants?: number
|
|
13
|
+
id: string
|
|
14
|
+
image: string
|
|
15
|
+
isFeatured: boolean
|
|
16
|
+
isPublished: boolean
|
|
17
|
+
presenceModes: PresenceModes[]
|
|
18
|
+
projectStatus: ProjectStatus
|
|
19
|
+
projectTypes: ProjectType[]
|
|
20
|
+
requirements?: string
|
|
21
|
+
schoolTypes?: SchoolTypeName[]
|
|
22
|
+
slug: string
|
|
23
|
+
startingDate?: string
|
|
24
|
+
subjects?: SubjectName[]
|
|
25
|
+
}
|
package/internal/page.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { Word } from '@typings/internal/word'
|
|
2
2
|
import type { TODO } from '@typings/utils'
|
|
3
|
+
import type { StateData } from '@yorab/react-paint'
|
|
3
4
|
|
|
4
5
|
export type ScreenMode = 'grid-xs' | 'grid-md'
|
|
5
6
|
|
|
6
|
-
export type
|
|
7
|
+
export type ZoneElementTypeCategory = 'picWord' | 'definition' | 'subZone' | 'mask' | 'correction'
|
|
7
8
|
|
|
8
9
|
export type Rect = {
|
|
9
10
|
x: number
|
|
@@ -12,19 +13,17 @@ export type Rect = {
|
|
|
12
13
|
h: number
|
|
13
14
|
}
|
|
14
15
|
|
|
15
|
-
export type
|
|
16
|
+
export type Zone = {
|
|
16
17
|
id: string
|
|
17
18
|
} & Rect
|
|
18
19
|
|
|
19
|
-
export type
|
|
20
|
-
export type
|
|
21
|
-
export type
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
export type MaskType = ZoneType & { type: Extract<SubzoneTypeCategory, 'mask'> }
|
|
20
|
+
export type SubZone = Zone & { type: Extract<ZoneElementTypeCategory, 'subZone'> }
|
|
21
|
+
export type Definitions = Zone & { type: Extract<ZoneElementTypeCategory, 'definition'>; word?: Word }
|
|
22
|
+
export type PicWord = Zone & { type: Extract<ZoneElementTypeCategory, 'picWord'>; word?: Word }
|
|
23
|
+
export type Mask = Zone & { type: Extract<ZoneElementTypeCategory, 'mask'> }
|
|
24
|
+
export type Correction = Zone & { type: Extract<ZoneElementTypeCategory, 'correction'> }
|
|
26
25
|
|
|
27
|
-
export type
|
|
26
|
+
export type ZoneElement = SubZone | Definitions | PicWord | Mask | Correction
|
|
28
27
|
|
|
29
28
|
export type DocJson<T extends 'primary' | 'default' = 'default'> = {
|
|
30
29
|
id?: number
|
|
@@ -32,13 +31,15 @@ export type DocJson<T extends 'primary' | 'default' = 'default'> = {
|
|
|
32
31
|
contentMd?: string
|
|
33
32
|
} & (T extends 'primary'
|
|
34
33
|
? {
|
|
35
|
-
picWords?:
|
|
36
|
-
definitions?:
|
|
37
|
-
subZones?:
|
|
38
|
-
masks?:
|
|
34
|
+
picWords?: PicWord[]
|
|
35
|
+
definitions?: Definitions[]
|
|
36
|
+
subZones?: SubZone[]
|
|
37
|
+
masks?: Mask[]
|
|
38
|
+
corrections?: Correction[]
|
|
39
39
|
audios?: string[]
|
|
40
40
|
videos?: string[]
|
|
41
41
|
rives?: { src: string; stateMachines: string }[]
|
|
42
|
+
rotation?: number
|
|
42
43
|
}
|
|
43
44
|
: {
|
|
44
45
|
metadata?: TODO | null
|
|
@@ -46,7 +47,7 @@ export type DocJson<T extends 'primary' | 'default' = 'default'> = {
|
|
|
46
47
|
isIndexable?: boolean | null
|
|
47
48
|
renewalAddedAt?: string
|
|
48
49
|
renewalUpdatedAt?: string
|
|
49
|
-
annotations?:
|
|
50
|
+
annotations?: Record<string, StateData>
|
|
50
51
|
premium?: boolean | null
|
|
51
52
|
responses?:
|
|
52
53
|
| {
|
|
@@ -129,6 +130,7 @@ export type Page<T extends 'primary' | 'default' = 'default'> = {
|
|
|
129
130
|
} & (T extends 'primary'
|
|
130
131
|
? {
|
|
131
132
|
picture?: string
|
|
133
|
+
correctionPicture?: string
|
|
132
134
|
children?: PrimaryDoc[]
|
|
133
135
|
layouts?: {
|
|
134
136
|
primary?: PrimaryLayoutItem[]
|
package/models.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lls/typings",
|
|
3
|
-
"version": "24.1.
|
|
3
|
+
"version": "24.1.50-00cfc66a",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"keywords": [],
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"@types/domhandler": "2.4.5",
|
|
11
11
|
"@types/lodash": "4.17.6",
|
|
12
12
|
"@types/react": "18.3.3",
|
|
13
|
+
"@yorab/react-paint": "0.11.4",
|
|
13
14
|
"cheerio": "1.0.0-rc.12",
|
|
14
15
|
"typescript": "5.5.3"
|
|
15
16
|
},
|
|
@@ -19,6 +20,7 @@
|
|
|
19
20
|
"scripts": {
|
|
20
21
|
"dts": "pnpm tsc --project tsconfig.production.json",
|
|
21
22
|
"lint": "pnpm biome check --apply *.d.ts internal overrides",
|
|
22
|
-
"test": "echo \"Error: no test specified\" && exit 0"
|
|
23
|
+
"test": "echo \"Error: no test specified\" && exit 0",
|
|
24
|
+
"packing": "pnpm pack"
|
|
23
25
|
}
|
|
24
26
|
}
|
package/presentationProps.d.ts
CHANGED
|
@@ -35,4 +35,6 @@ export type PresentationPropsType = {
|
|
|
35
35
|
initZoomModal?: (docUuid?: string) => void
|
|
36
36
|
deleteZoomModal?: (docUuid?: string) => void
|
|
37
37
|
getNbDocs?: (tabId: string) => number
|
|
38
|
+
getFirstDocWithFullscreen?: (tabId: string) => string
|
|
39
|
+
resetLeftDocZoomViewerStep?: () => void
|
|
38
40
|
}
|