@lls/typings 24.16.0-fbd65354 → 24.17.0-03e47b6d

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
+ }
@@ -25,6 +25,7 @@ declare global {
25
25
  interface ProcessEnv {
26
26
  NODE_ENV: 'local' | 'development' | 'production'
27
27
  CONF_ENV: 'local' | 'development' | 'test' | 'preprod' | 'production' | 'prod'
28
+ SSR_INIT_LOCATION?: string
28
29
  }
29
30
  }
30
31
  var bun: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lls/typings",
3
- "version": "24.16.0-fbd65354",
3
+ "version": "24.17.0-03e47b6d",
4
4
  "description": "types custom du monorepo",
5
5
  "main": "index.js",
6
6
  "keywords": [],
@@ -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
@@ -42,11 +42,21 @@ type ProjectorView = {
42
42
  prevPreSlideDocUuid?: string
43
43
  }
44
44
 
45
+ export type NavigationPropsType = {
46
+ showRightSinglePage?: boolean
47
+ forceHomoSinglePage?: boolean
48
+ setForceHomoSinglePage?: (force: boolean) => void
49
+ showHomoSinglePage?: boolean
50
+ leftPageLink?: { visible: boolean; href?: string; onClick: (e: React.MouseEvent) => void }
51
+ rightPageLink?: { visible: boolean; href?: string; onClick: (e: React.MouseEvent) => void }
52
+ }
53
+
45
54
  export type PresentationPropsType = {
46
55
  projectorView?: ProjectorView
47
56
  isPresentationMode?: boolean
48
57
  isPaginationEnabled?: boolean
49
58
  presentationView?: PresentationViewType
59
+ navigationProps?: NavigationPropsType
50
60
  preSlideDocUuid?: string
51
61
  viewerZoomProps?: ZoomPropsType
52
62
  leftDocZoomProps?: ZoomPropsType
@@ -55,19 +65,25 @@ export type PresentationPropsType = {
55
65
  setIsLaserCursor?: ReactSetState<boolean>
56
66
  boardId?: string | undefined
57
67
  showHomo?: boolean
68
+ docsUuidWithFullscreenEnabled?: { groups: Record<LayoutItem['id'] | 'root', NonNullable<DocJson['uuid']>[]> }
69
+ isArchipel?: boolean // TODO a supprimer
70
+ isInFullscreen?: boolean
58
71
  setShowHomo?: (homo: boolean) => void
59
72
  openProjectorView?: () => void
60
73
  extendSplitView?: (view: ProjectorViewPosition) => void
61
74
  closeFullscreenCard?: (docUuid?: string) => void
75
+ goBackToPage?: () => void
62
76
  closeProjectorView?: () => void
63
77
  closeSplitView?: () => void
64
- openFullscreenCard?: (docUuid: string, forceSplit?: boolean) => void
78
+ openFullscreenCard?: (docUuid: string | undefined, forceSplit?: boolean) => void
65
79
  slideToPreviousDocument?: (currentDocUuid: string, tabId?: string | undefined) => void
66
80
  getChildPosition?: (docUuid?: string, tabId?: string | undefined) => number
67
81
  slideToNextDocument?: (currentDocUuid: string, tabId?: string | undefined) => void
68
82
  initZoomModal?: (docUuid?: string) => void
69
83
  deleteZoomModal?: (docUuid?: string) => void
70
84
  getNbDocs?: (tabId?: string | undefined) => number
71
- getFirstDocWithFullscreen?: (tabId?: string) => string
85
+ getFirstDocWithFullscreen?: (tabId?: string) => string | undefined
72
86
  resetLeftDocZoomViewerStep?: () => void
87
+ closeBrowserFullscreen?: () => void
88
+ openBrowserFullscreen?: () => void
73
89
  }