@lls/typings 24.15.0 → 24.16.0-013ebeb1

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.
@@ -0,0 +1,27 @@
1
+ import type { Page } from '@lls/store'
2
+
3
+ export type HistoryItem = {
4
+ template: Page
5
+ touchedId: string | null
6
+ }
7
+
8
+ export type LightEditorHistory = {
9
+ items: HistoryItem[]
10
+ index: number
11
+ }
12
+
13
+ export type LightTouchedIds = Record<string, number>
14
+
15
+ export type useViewerHistoryProps = {
16
+ template: Page
17
+ onChange?: (template: Page, context: string) => void
18
+ }
19
+
20
+ export type HistoryProps = {
21
+ lightTouchedIds: LightTouchedIds
22
+ addEntry: (template: Page, id: string) => void
23
+ hasPreviousEntry: boolean
24
+ hasNextEntry: boolean
25
+ onGoBack: () => void
26
+ onGoForward: () => void
27
+ }
@@ -42,4 +42,5 @@ interface Document {
42
42
  mozExitFullscreen: exitFullscreenType
43
43
  msExitFullscreen: exitFullscreenType
44
44
  outerHTML: unknown
45
+ pyodideMplTarget: HTMLDivElement
45
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lls/typings",
3
- "version": "24.15.0",
3
+ "version": "24.16.0-013ebeb1",
4
4
  "description": "types custom du monorepo",
5
5
  "main": "index.js",
6
6
  "keywords": [],
@@ -8,7 +8,7 @@
8
8
  "license": "ISC",
9
9
  "devDependencies": {
10
10
  "@types/domhandler": "2.4.5",
11
- "@types/lodash": "4.17.14",
11
+ "@types/lodash": "4.17.16",
12
12
  "@types/react": "18.3.12",
13
13
  "@yorab/react-paint": "0.11.4",
14
14
  "cheerio": "1.0.0",
@@ -1,5 +1,5 @@
1
+ import type { DocJson, LayoutItem } from '@lls/store'
1
2
  import type { ReactSetState } from '@typings/react'
2
-
3
3
  type ZoomPropsType = {
4
4
  zoomStep?: number
5
5
  zoom: number
@@ -13,7 +13,37 @@ export type PresentationViewType = {
13
13
  uuid?: string
14
14
  lastOpenUuid?: string
15
15
  }
16
+
17
+ type ProjectorViewPosition = -1 | 0 | 1
18
+
19
+ type ProjectorView = {
20
+ enterSlideView?: (
21
+ documentNode: HTMLElement | null,
22
+ docUuid: string,
23
+ transitionName: string,
24
+ splitViewPosition: number
25
+ ) => void
26
+ exitSlideView?: (docUuid: string, transition: string) => void
27
+ fullscreenViews?: Record<string, Boolean>
28
+ docStyleDatas?: Record<
29
+ string,
30
+ {
31
+ position: string
32
+ left: number
33
+ top: number
34
+ right: number
35
+ bottom: number
36
+ docHeight: number
37
+ transition: string
38
+ }
39
+ >
40
+ splitPositions?: Record<string, number>
41
+ prevPresentationView?: PresentationViewType
42
+ prevPreSlideDocUuid?: string
43
+ }
44
+
16
45
  export type PresentationPropsType = {
46
+ projectorView?: ProjectorView
17
47
  isPresentationMode?: boolean
18
48
  isPaginationEnabled?: boolean
19
49
  presentationView?: PresentationViewType
@@ -25,19 +55,23 @@ export type PresentationPropsType = {
25
55
  setIsLaserCursor?: ReactSetState<boolean>
26
56
  boardId?: string | undefined
27
57
  showHomo?: boolean
58
+ forceHomoSinglePage?: boolean
59
+ showHomoSinglePage?: boolean
60
+ docsUuidWithFullscreenEnabled?: { groups: Record<LayoutItem['id'] | 'root', NonNullable<DocJson['uuid']>[]> }
28
61
  setShowHomo?: (homo: boolean) => void
29
62
  openProjectorView?: () => void
30
- extendSplitView?: (view: -1 | 0 | 1) => void
31
- closeFullscreenCard?: (docUuid: string) => void
63
+ extendSplitView?: (view: ProjectorViewPosition) => void
64
+ closeFullscreenCard?: (docUuid?: string) => void
32
65
  closeProjectorView?: () => void
33
66
  closeSplitView?: () => void
34
67
  openFullscreenCard?: (docUuid: string, forceSplit?: boolean) => void
35
- slideToPreviousDocument?: (currentDocUuid: string, tabId: string) => void
68
+ slideToPreviousDocument?: (currentDocUuid: string, tabId?: string | undefined) => void
36
69
  getChildPosition?: (docUuid?: string, tabId?: string | undefined) => number
37
- slideToNextDocument?: (currentDocUuid: string, tabId: string) => void
70
+ slideToNextDocument?: (currentDocUuid: string, tabId?: string | undefined) => void
38
71
  initZoomModal?: (docUuid?: string) => void
39
72
  deleteZoomModal?: (docUuid?: string) => void
40
- getNbDocs?: (tabId: string) => number
41
- getFirstDocWithFullscreen?: (tabId?: string) => string
73
+ getNbDocs?: (tabId?: string | undefined) => number
74
+ getFirstDocWithFullscreen?: (tabId?: string) => string | undefined
42
75
  resetLeftDocZoomViewerStep?: () => void
76
+ setForceHomoSinglePage?: (force: boolean) => void
43
77
  }