@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.
@@ -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 Rect = {
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
- } & Rect
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[]
@@ -3,6 +3,4 @@ export type School = {
3
3
  name?: string
4
4
  city?: string
5
5
  prefix?: string | null
6
- rne?: string
7
- department?: number
8
6
  }
@@ -0,0 +1,6 @@
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
+ }
@@ -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-e60d40d9",
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": {
@@ -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
- }