@lls/typings 24.19.0 → 24.20.0-0a4bbfe5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lls/typings",
3
- "version": "24.19.0",
3
+ "version": "24.20.0-0a4bbfe5",
4
4
  "description": "types custom du monorepo",
5
5
  "main": "index.js",
6
6
  "keywords": [],
package/page.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import type { Page } from '@lls/store'
2
+
3
+ export type GetRelatedPagesType = (element: Page | undefined) => { relatedPage?: Page; relatedPages: Page[] }
@@ -1,4 +1,4 @@
1
- import type { DocJson, LayoutItem } from '@lls/store'
1
+ import type { DocJson, LayoutItem, LearningResource } from '@lls/store'
2
2
  import type { ReactSetState } from '@typings/react'
3
3
  type ZoomPropsType = {
4
4
  zoomStep?: number
@@ -51,6 +51,17 @@ export type NavigationPropsType = {
51
51
  rightPageLink?: { visible: boolean; href?: string; onClick: (e: React.MouseEvent) => void }
52
52
  }
53
53
 
54
+ export type ArchipelParamsType = {
55
+ isArchipelHidden: boolean
56
+ setShouldKeepArchipel: (value: boolean) => void
57
+ archipelHiddenStyle: {
58
+ top: React.CSSProperties
59
+ right: React.CSSProperties
60
+ bottom: React.CSSProperties
61
+ left: React.CSSProperties
62
+ }
63
+ }
64
+
54
65
  export type PresentationPropsType = {
55
66
  projectorView?: ProjectorView
56
67
  isPresentationMode?: boolean
@@ -68,6 +79,8 @@ export type PresentationPropsType = {
68
79
  docsUuidWithFullscreenEnabled?: { groups: Record<LayoutItem['id'] | 'root', NonNullable<DocJson['uuid']>[]> }
69
80
  isArchipel?: boolean // TODO a supprimer
70
81
  isInFullscreen?: boolean
82
+ archipelParams?: ArchipelParamsType
83
+ learningResources?: LearningResource[]
71
84
  setShowHomo?: (homo: boolean) => void
72
85
  openProjectorView?: () => void
73
86
  extendSplitView?: (view: ProjectorViewPosition) => void