@lls/typings 24.1.49 → 24.1.50-0607c676

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.
@@ -30,4 +30,5 @@ export type Book = {
30
30
  slug?: string
31
31
  publishers?: Publisher[]
32
32
  isRenewed?: boolean
33
+ isPrimary?: boolean
33
34
  }
@@ -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 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
+ numberOfParticipants?: number
13
+ id: string
14
+ image: string
15
+ isFeatured: boolean
16
+ isPublished: boolean
17
+ presenceMode: PresenceMode[]
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
+ }
@@ -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 SubzoneTypeCategory = 'picWord' | 'definition' | 'subZone' | 'mask'
6
+ export type ZoneElementTypeCategory = 'picWord' | 'definition' | 'subZone' | 'mask' | 'correction'
7
7
 
8
8
  export type Rect = {
9
9
  x: number
@@ -12,19 +12,17 @@ export type Rect = {
12
12
  h: number
13
13
  }
14
14
 
15
- export type ZoneType = {
15
+ export type Zone = {
16
16
  id: string
17
17
  } & Rect
18
18
 
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'> }
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'> }
26
24
 
27
- export type SubZoneType = ZoomZoneType | DefinitionsType | PicWordType | MaskType
25
+ export type ZoneElement = SubZone | Definitions | PicWord | Mask | Correction
28
26
 
29
27
  export type DocJson<T extends 'primary' | 'default' = 'default'> = {
30
28
  id?: number
@@ -32,13 +30,15 @@ export type DocJson<T extends 'primary' | 'default' = 'default'> = {
32
30
  contentMd?: string
33
31
  } & (T extends 'primary'
34
32
  ? {
35
- picWords?: PicWordType[]
36
- definitions?: DefinitionsType[]
37
- subZones?: ZoomZoneType[]
38
- masks?: MaskType[]
33
+ picWords?: PicWord[]
34
+ definitions?: Definitions[]
35
+ subZones?: SubZone[]
36
+ masks?: Mask[]
37
+ corrections?: Correction[]
39
38
  audios?: string[]
40
39
  videos?: string[]
41
40
  rives?: { src: string; stateMachines: string }[]
41
+ rotation?: number
42
42
  }
43
43
  : {
44
44
  metadata?: TODO | null
@@ -129,6 +129,7 @@ export type Page<T extends 'primary' | 'default' = 'default'> = {
129
129
  } & (T extends 'primary'
130
130
  ? {
131
131
  picture?: string
132
+ correctionPicture?: string
132
133
  children?: PrimaryDoc[]
133
134
  layouts?: {
134
135
  primary?: PrimaryLayoutItem[]
@@ -1,6 +1,9 @@
1
1
  export type ResourcesMenuType = {
2
2
  id?: string
3
+ uri?: string
3
4
  title?: string
5
+ bookUrl?: string
6
+ guideUrl?: string
4
7
  type?: string
5
8
  elements?: Array<ResourcesMenuType>
6
9
  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-0607c676",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "keywords": [],
@@ -19,6 +19,7 @@
19
19
  "scripts": {
20
20
  "dts": "pnpm tsc --project tsconfig.production.json",
21
21
  "lint": "pnpm biome check --apply *.d.ts internal overrides",
22
- "test": "echo \"Error: no test specified\" && exit 0"
22
+ "test": "echo \"Error: no test specified\" && exit 0",
23
+ "packing": "pnpm pack"
23
24
  }
24
25
  }
@@ -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
  }