@lls/typings 24.1.48-03c7fa68 → 24.1.48-06daef97

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.
Files changed (2) hide show
  1. package/internal/page.d.ts +14 -13
  2. package/package.json +1 -1
@@ -3,7 +3,7 @@ import type { TODO } from '@typings/utils'
3
3
 
4
4
  export type ScreenMode = 'grid-xs' | 'grid-md'
5
5
 
6
- export type ZoneElementTypeCategory = 'picWord' | 'definition' | 'subZone' | 'mask' | 'correction'
6
+ export type SubzoneTypeCategory = 'picWord' | 'definition' | 'subZone' | 'mask'
7
7
 
8
8
  export type Rect = {
9
9
  x: number
@@ -12,17 +12,19 @@ export type Rect = {
12
12
  h: number
13
13
  }
14
14
 
15
- export type Zone = {
15
+ export type ZoneType = {
16
16
  id: string
17
17
  } & Rect
18
18
 
19
- export type SubZone = Zone & { type: Extract<ZoneElementTypeCategory, 'subZone'> }
20
- export type Definitions = Zone & { type: Extract<ZoneElementTypeCategory, 'definition'>; word?: Word }
21
- export type PicWord = Zone & { type: Extract<ZoneElementTypeCategory, 'picWord'>; word?: Word }
22
- export type Mask = Zone & { type: Extract<ZoneElementTypeCategory, 'mask'> }
23
- export type Correction = Zone & { type: Extract<ZoneElementTypeCategory, 'correction'> }
19
+ export type ZoomZoneType = ZoneType & { type: Extract<SubzoneTypeCategory, 'subZone'> }
20
+ export type DefinitionsType = ZoneType & { type: Extract<SubzoneTypeCategory, 'definition'>; src?: string }
21
+ export type PicWordType = ZoneType & {
22
+ type: Extract<SubzoneTypeCategory, 'picWord'>
23
+ word?: Word
24
+ }
25
+ export type MaskType = ZoneType & { type: Extract<SubzoneTypeCategory, 'mask'> }
24
26
 
25
- export type ZoneElement = SubZone | Definitions | PicWord | Mask | Correction
27
+ export type SubZoneType = ZoomZoneType | DefinitionsType | PicWordType | MaskType
26
28
 
27
29
  export type DocJson<T extends 'primary' | 'default' = 'default'> = {
28
30
  id?: number
@@ -30,11 +32,10 @@ export type DocJson<T extends 'primary' | 'default' = 'default'> = {
30
32
  contentMd?: string
31
33
  } & (T extends 'primary'
32
34
  ? {
33
- picWords?: PicWord[]
34
- definitions?: Definitions[]
35
- subZones?: SubZone[]
36
- masks?: Mask[]
37
- corrections?: Correction[]
35
+ picWords?: PicWordType[]
36
+ definitions?: DefinitionsType[]
37
+ subZones?: ZoomZoneType[]
38
+ masks?: MaskType[]
38
39
  audios?: string[]
39
40
  videos?: string[]
40
41
  rives?: { src: string; stateMachines: string }[]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lls/typings",
3
- "version": "24.1.48-03c7fa68",
3
+ "version": "24.1.48-06daef97",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "keywords": [],