@lls/typings 24.20.0 → 24.21.0-04c0e16f
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/overrides/global.d.ts +12 -2
- package/package.json +1 -1
- package/page.d.ts +3 -0
- package/presentationProps.d.ts +14 -1
package/overrides/global.d.ts
CHANGED
|
@@ -1,7 +1,16 @@
|
|
|
1
|
+
import type { AsyncLocalStorage } from 'node:async_hooks'
|
|
1
2
|
import type { Polypad as PolypadType } from '@typings/polypad'
|
|
2
3
|
import type { AnyFunction, TODO } from '@typings/utils'
|
|
3
4
|
import type CheerioModule from 'cheerio'
|
|
4
5
|
|
|
6
|
+
type LlsNamespace = 'UNIVERSAL_VARS'
|
|
7
|
+
export type UniversalVars = {
|
|
8
|
+
NO_CACHE?: boolean
|
|
9
|
+
SSR_INIT_LOCATION?: string
|
|
10
|
+
FLAGS?: Record<string, TODO>
|
|
11
|
+
}
|
|
12
|
+
type Store = Map<LlsNamespace, (UniversalVars & Record<string, any>) | undefined>
|
|
13
|
+
|
|
5
14
|
declare global {
|
|
6
15
|
// https://stackoverflow.com/questions/35074713/extending-typescript-global-object-in-node-js
|
|
7
16
|
var cheerio: typeof CheerioModule
|
|
@@ -19,13 +28,14 @@ declare global {
|
|
|
19
28
|
}
|
|
20
29
|
var WEBFLOW_NAVBAR: string | undefined
|
|
21
30
|
|
|
22
|
-
var UNIVERSAL_VARS:
|
|
31
|
+
var UNIVERSAL_VARS: UniversalVars
|
|
32
|
+
var llsStorageReady: AsyncLocalStorage<Store>
|
|
33
|
+
var llsStoragePromise: Promise<AsyncLocalStorage<Store>>
|
|
23
34
|
|
|
24
35
|
namespace NodeJS {
|
|
25
36
|
interface ProcessEnv {
|
|
26
37
|
NODE_ENV: 'local' | 'development' | 'production'
|
|
27
38
|
CONF_ENV: 'local' | 'development' | 'test' | 'preprod' | 'production' | 'prod'
|
|
28
|
-
SSR_INIT_LOCATION?: string
|
|
29
39
|
}
|
|
30
40
|
}
|
|
31
41
|
var bun: {
|
package/package.json
CHANGED
package/page.d.ts
ADDED
package/presentationProps.d.ts
CHANGED
|
@@ -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
|