@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.
@@ -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
+ }
@@ -0,0 +1,11 @@
1
+ export type Contact = {
2
+ id?: number
3
+ firstname: string
4
+ lastname?: string
5
+ phone: string
6
+ secondPhone: string
7
+ email: string
8
+ gender: 'neutral' | 'female' | 'male'
9
+ url: string
10
+ role: string
11
+ }
@@ -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 SubzoneTypeCategory = 'picWord' | 'definition' | 'subZone' | 'mask'
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 ZoneType = {
16
+ export type Zone = {
16
17
  id: string
17
18
  } & Rect
18
19
 
19
- export type ZoomZoneType = ZoneType & { type: Extract<SubzoneTypeCategory, 'subZone'> }
20
- export type DefinitionsType = ZoneType & { type: Extract<SubzoneTypeCategory, 'definition'>; src?: string }
21
- export type PicWordType = ZoneType & {
22
- type: Extract<SubzoneTypeCategory, 'picWord'>
23
- word?: Word
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 SubZoneType = ZoomZoneType | DefinitionsType | PicWordType | MaskType
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?: PicWordType[]
36
- definitions?: DefinitionsType[]
37
- subZones?: ZoomZoneType[]
38
- masks?: MaskType[]
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?: TODO
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[]
@@ -1,6 +1,10 @@
1
1
  export type ResourcesMenuType = {
2
2
  id?: string
3
+ uri?: string
3
4
  title?: string
5
+ bookUrl?: string
6
+ additionalInfo?: string
7
+ guideUrl?: string
4
8
  type?: string
5
9
  elements?: Array<ResourcesMenuType>
6
10
  version?: string
package/models.d.ts CHANGED
@@ -19,3 +19,5 @@ export * from './internal/tool'
19
19
  export * from './internal/user'
20
20
  export * from './internal/word'
21
21
  export * from './internal/resourcesMenu'
22
+ export * from './internal/contact'
23
+ export * from './internal/communityProject'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lls/typings",
3
- "version": "24.1.49",
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
  }
@@ -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
  }