@lls/typings 24.1.31-e60d40d9 → 24.1.31-ea709f67
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/internal/page.d.ts +7 -9
- package/internal/school.d.ts +0 -2
- package/overrides/cheerio.d.ts +6 -0
- package/overrides/window.d.ts +0 -2
- package/package.json +1 -2
- package/overrides/global.d.ts +0 -14
package/internal/page.d.ts
CHANGED
|
@@ -4,18 +4,13 @@ export type ScreenMode = 'grid-xs' | 'grid-md'
|
|
|
4
4
|
|
|
5
5
|
export type SubzoneTypeCategory = 'picWord' | 'definition' | 'subZone'
|
|
6
6
|
|
|
7
|
-
export type
|
|
7
|
+
export type ZoneType = {
|
|
8
|
+
id: string
|
|
8
9
|
x: number
|
|
9
10
|
y: number
|
|
10
11
|
w: number
|
|
11
12
|
h: number
|
|
12
13
|
}
|
|
13
|
-
|
|
14
|
-
export type ZoneType = {
|
|
15
|
-
id: string
|
|
16
|
-
src?: string
|
|
17
|
-
} & Rect
|
|
18
|
-
|
|
19
14
|
export type ZoomZoneType = ZoneType & { type: Extract<SubzoneTypeCategory, 'subZone'> }
|
|
20
15
|
export type DefinitionsType = ZoneType & { type: Extract<SubzoneTypeCategory, 'definition'> }
|
|
21
16
|
export type PicWordType = ZoneType & { type: Extract<SubzoneTypeCategory, 'picWord'>; word?: string }
|
|
@@ -82,7 +77,11 @@ export type LayoutCell = {
|
|
|
82
77
|
|
|
83
78
|
export type PrimaryLayoutItem = {
|
|
84
79
|
id: string
|
|
85
|
-
|
|
80
|
+
x: number
|
|
81
|
+
y: number
|
|
82
|
+
w: number
|
|
83
|
+
h: number
|
|
84
|
+
}
|
|
86
85
|
|
|
87
86
|
export type Page<T extends 'primary' | 'default' = 'default'> = {
|
|
88
87
|
id?: number
|
|
@@ -120,7 +119,6 @@ export type Page<T extends 'primary' | 'default' = 'default'> = {
|
|
|
120
119
|
metadata?: TODO | null
|
|
121
120
|
} & (T extends 'primary'
|
|
122
121
|
? {
|
|
123
|
-
picture?: string
|
|
124
122
|
children?: PrimaryDoc[]
|
|
125
123
|
layouts?: {
|
|
126
124
|
primary?: PrimaryLayoutItem[]
|
package/internal/school.d.ts
CHANGED
package/overrides/window.d.ts
CHANGED
|
@@ -4,12 +4,10 @@ type TPianoOpts = {
|
|
|
4
4
|
} & Record<string, unknown>
|
|
5
5
|
|
|
6
6
|
interface Window {
|
|
7
|
-
__PRELOADED_STATE__: string | undefined
|
|
8
7
|
opera: any | undefined
|
|
9
8
|
MSStream: any | undefined
|
|
10
9
|
coreOpenWindow?: typeof window.open
|
|
11
10
|
coreHref?: string
|
|
12
|
-
outerHTML: unknown
|
|
13
11
|
pa?: {
|
|
14
12
|
user?: {
|
|
15
13
|
setUser?: (user_id: TPianoOpts['user_id'], user_category: TPianoOpts['user_category']) => void
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lls/typings",
|
|
3
|
-
"version": "24.1.31-
|
|
3
|
+
"version": "24.1.31-ea709f67",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"keywords": [],
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
"@types/domhandler": "2.4.5",
|
|
11
11
|
"@types/lodash": "4.14.202",
|
|
12
12
|
"@types/react": "18.2.45",
|
|
13
|
-
"cheerio": "1.0.0-rc.12",
|
|
14
13
|
"typescript": "5.4.5"
|
|
15
14
|
},
|
|
16
15
|
"peerDependencies": {
|
package/overrides/global.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type CheerioModule from 'cheerio'
|
|
2
|
-
|
|
3
|
-
declare global {
|
|
4
|
-
// https://stackoverflow.com/questions/35074713/extending-typescript-global-object-in-node-js
|
|
5
|
-
var cheerio: typeof CheerioModule
|
|
6
|
-
var __SERVER__: boolean
|
|
7
|
-
|
|
8
|
-
namespace NodeJS {
|
|
9
|
-
interface ProcessEnv {
|
|
10
|
-
NODE_ENV: 'local' | 'development' | 'production'
|
|
11
|
-
CONF_ENV: 'local' | 'development' | 'test' | 'preprod' | 'production' | 'prod'
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|