@girs/evincedocument-3.0 45.0.0-3.2.4 → 45.0.0-3.2.6
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/README.md +14 -1
- package/evincedocument-3.0-ambient.d.ts +0 -1
- package/evincedocument-3.0-import.d.ts +0 -1
- package/evincedocument-3.0.d.cts +22 -0
- package/evincedocument-3.0.d.ts +22 -0
- package/package.json +15 -15
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for EvinceDocument-3.0, generated from library version 45.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.
|
|
8
|
+
GJS TypeScript type definitions for EvinceDocument-3.0, generated from library version 45.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.6.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
|
@@ -81,6 +81,19 @@ Now you have also type support for this, too:
|
|
|
81
81
|
const EvinceDocument = imports.gi.EvinceDocument;
|
|
82
82
|
```
|
|
83
83
|
|
|
84
|
+
|
|
85
|
+
### ESM vs. CommonJS
|
|
86
|
+
|
|
87
|
+
GJS supports two different import syntaxes. The new modern ESM syntax and the old global imports syntax.
|
|
88
|
+
|
|
89
|
+
In TypeScript projects for GJS and GNOME Shell extensions, you have the flexibility to use `ESM` syntax and then decide the import syntax for your bundled file. If your bundler is configured to use `CommonJS`, it will convert to the GJS-specific global imports syntax, like `const moduleName = imports.gi[moduleName]`. This is different from the traditional `require` syntax seen in Node.js. The global imports syntax is chosen because it aligns with the CommonJS format supported by NPM, which is used for the generated type definitions and this package.
|
|
90
|
+
|
|
91
|
+
On the other hand, if you configure your bundler to use ESM, it will retain the ESM import syntax. It's crucial to ensure that your bundler is set up to correctly translate and bundle these imports into either CommonJS or ESM format, depending on your project's requirements.
|
|
92
|
+
|
|
93
|
+
This approach is particularly important due to the `@girs` types, which include both `*.cjs `files, using the GJS global imports syntax, and `*.js` files, which utilize the ESM syntax. By appropriately setting up your bundler, you can control which syntax—CommonJS or ESM—is used in your project. The choice of CommonJS in this context is also due to the similarity between the GJS-specific global imports and CommonJS syntax, allowing for easier management and bundling in these specific types of projects.
|
|
94
|
+
|
|
95
|
+
Since GNOME Shell 45, you should only use ESM, even for GNOME Shell extensions. Before that, extensions had to use the global import syntax, unlike normal GJS applications, where ESM has been available for some time.
|
|
96
|
+
|
|
84
97
|
### Bundle
|
|
85
98
|
|
|
86
99
|
Depending on your project configuration, it is recommended to use a bundler like [esbuild](https://esbuild.github.io/). You can find examples using different bundlers [here](https://github.com/gjsify/ts-for-gir/tree/main/examples).
|
package/evincedocument-3.0.d.cts
CHANGED
|
@@ -340,6 +340,9 @@ export module AnnotationMarkup {
|
|
|
340
340
|
opacity?: number | null
|
|
341
341
|
popup_is_open?: boolean | null
|
|
342
342
|
rectangle?: Rectangle | null
|
|
343
|
+
canHavePopup?: boolean | null
|
|
344
|
+
hasPopup?: boolean | null
|
|
345
|
+
popupIsOpen?: boolean | null
|
|
343
346
|
}
|
|
344
347
|
|
|
345
348
|
}
|
|
@@ -349,10 +352,13 @@ export interface AnnotationMarkup extends Annotation {
|
|
|
349
352
|
// Own properties of EvinceDocument-3.0.EvinceDocument.AnnotationMarkup
|
|
350
353
|
|
|
351
354
|
can_have_popup: boolean
|
|
355
|
+
canHavePopup: boolean
|
|
352
356
|
has_popup: boolean
|
|
357
|
+
hasPopup: boolean
|
|
353
358
|
label: string | null
|
|
354
359
|
opacity: number
|
|
355
360
|
popup_is_open: boolean
|
|
361
|
+
popupIsOpen: boolean
|
|
356
362
|
rectangle: Rectangle
|
|
357
363
|
|
|
358
364
|
// Owm methods of EvinceDocument-3.0.EvinceDocument.AnnotationMarkup
|
|
@@ -1505,6 +1511,7 @@ export module AnnotationText {
|
|
|
1505
1511
|
|
|
1506
1512
|
icon?: AnnotationTextIcon | null
|
|
1507
1513
|
is_open?: boolean | null
|
|
1514
|
+
isOpen?: boolean | null
|
|
1508
1515
|
}
|
|
1509
1516
|
|
|
1510
1517
|
}
|
|
@@ -1515,6 +1522,7 @@ export interface AnnotationText extends AnnotationMarkup {
|
|
|
1515
1522
|
|
|
1516
1523
|
icon: AnnotationTextIcon
|
|
1517
1524
|
is_open: boolean
|
|
1525
|
+
isOpen: boolean
|
|
1518
1526
|
|
|
1519
1527
|
// Owm methods of EvinceDocument-3.0.EvinceDocument.AnnotationText
|
|
1520
1528
|
|
|
@@ -2503,6 +2511,11 @@ export module LinkAction {
|
|
|
2503
2511
|
toggle_list?: any | null
|
|
2504
2512
|
type?: LinkActionType | null
|
|
2505
2513
|
uri?: string | null
|
|
2514
|
+
excludeResetFields?: boolean | null
|
|
2515
|
+
hideList?: any | null
|
|
2516
|
+
resetFields?: any | null
|
|
2517
|
+
showList?: any | null
|
|
2518
|
+
toggleList?: any | null
|
|
2506
2519
|
}
|
|
2507
2520
|
|
|
2508
2521
|
}
|
|
@@ -2513,13 +2526,18 @@ export interface LinkAction {
|
|
|
2513
2526
|
|
|
2514
2527
|
readonly dest: LinkDest
|
|
2515
2528
|
readonly exclude_reset_fields: boolean
|
|
2529
|
+
readonly excludeResetFields: boolean
|
|
2516
2530
|
readonly filename: string | null
|
|
2517
2531
|
readonly hide_list: any
|
|
2532
|
+
readonly hideList: any
|
|
2518
2533
|
readonly name: string | null
|
|
2519
2534
|
readonly params: string | null
|
|
2520
2535
|
readonly reset_fields: any
|
|
2536
|
+
readonly resetFields: any
|
|
2521
2537
|
readonly show_list: any
|
|
2538
|
+
readonly showList: any
|
|
2522
2539
|
readonly toggle_list: any
|
|
2540
|
+
readonly toggleList: any
|
|
2523
2541
|
readonly type: LinkActionType
|
|
2524
2542
|
readonly uri: string | null
|
|
2525
2543
|
|
|
@@ -2622,6 +2640,7 @@ export module LinkDest {
|
|
|
2622
2640
|
top?: number | null
|
|
2623
2641
|
type?: LinkDestType | null
|
|
2624
2642
|
zoom?: number | null
|
|
2643
|
+
pageLabel?: string | null
|
|
2625
2644
|
}
|
|
2626
2645
|
|
|
2627
2646
|
}
|
|
@@ -2636,6 +2655,7 @@ export interface LinkDest {
|
|
|
2636
2655
|
readonly named: string | null
|
|
2637
2656
|
readonly page: number
|
|
2638
2657
|
readonly page_label: string | null
|
|
2658
|
+
readonly pageLabel: string | null
|
|
2639
2659
|
readonly right: number
|
|
2640
2660
|
readonly top: number
|
|
2641
2661
|
readonly type: LinkDestType
|
|
@@ -2873,6 +2893,7 @@ export module TransitionEffect {
|
|
|
2873
2893
|
rectangular?: boolean | null
|
|
2874
2894
|
scale?: number | null
|
|
2875
2895
|
type?: TransitionEffectType | null
|
|
2896
|
+
durationReal?: number | null
|
|
2876
2897
|
}
|
|
2877
2898
|
|
|
2878
2899
|
}
|
|
@@ -2886,6 +2907,7 @@ export interface TransitionEffect {
|
|
|
2886
2907
|
direction: TransitionEffectDirection
|
|
2887
2908
|
duration: number
|
|
2888
2909
|
duration_real: number
|
|
2910
|
+
durationReal: number
|
|
2889
2911
|
rectangular: boolean
|
|
2890
2912
|
scale: number
|
|
2891
2913
|
type: TransitionEffectType
|
package/evincedocument-3.0.d.ts
CHANGED
|
@@ -342,6 +342,9 @@ module AnnotationMarkup {
|
|
|
342
342
|
opacity?: number | null
|
|
343
343
|
popup_is_open?: boolean | null
|
|
344
344
|
rectangle?: Rectangle | null
|
|
345
|
+
canHavePopup?: boolean | null
|
|
346
|
+
hasPopup?: boolean | null
|
|
347
|
+
popupIsOpen?: boolean | null
|
|
345
348
|
}
|
|
346
349
|
|
|
347
350
|
}
|
|
@@ -351,10 +354,13 @@ interface AnnotationMarkup extends Annotation {
|
|
|
351
354
|
// Own properties of EvinceDocument-3.0.EvinceDocument.AnnotationMarkup
|
|
352
355
|
|
|
353
356
|
can_have_popup: boolean
|
|
357
|
+
canHavePopup: boolean
|
|
354
358
|
has_popup: boolean
|
|
359
|
+
hasPopup: boolean
|
|
355
360
|
label: string | null
|
|
356
361
|
opacity: number
|
|
357
362
|
popup_is_open: boolean
|
|
363
|
+
popupIsOpen: boolean
|
|
358
364
|
rectangle: Rectangle
|
|
359
365
|
|
|
360
366
|
// Owm methods of EvinceDocument-3.0.EvinceDocument.AnnotationMarkup
|
|
@@ -1507,6 +1513,7 @@ module AnnotationText {
|
|
|
1507
1513
|
|
|
1508
1514
|
icon?: AnnotationTextIcon | null
|
|
1509
1515
|
is_open?: boolean | null
|
|
1516
|
+
isOpen?: boolean | null
|
|
1510
1517
|
}
|
|
1511
1518
|
|
|
1512
1519
|
}
|
|
@@ -1517,6 +1524,7 @@ interface AnnotationText extends AnnotationMarkup {
|
|
|
1517
1524
|
|
|
1518
1525
|
icon: AnnotationTextIcon
|
|
1519
1526
|
is_open: boolean
|
|
1527
|
+
isOpen: boolean
|
|
1520
1528
|
|
|
1521
1529
|
// Owm methods of EvinceDocument-3.0.EvinceDocument.AnnotationText
|
|
1522
1530
|
|
|
@@ -2505,6 +2513,11 @@ module LinkAction {
|
|
|
2505
2513
|
toggle_list?: any | null
|
|
2506
2514
|
type?: LinkActionType | null
|
|
2507
2515
|
uri?: string | null
|
|
2516
|
+
excludeResetFields?: boolean | null
|
|
2517
|
+
hideList?: any | null
|
|
2518
|
+
resetFields?: any | null
|
|
2519
|
+
showList?: any | null
|
|
2520
|
+
toggleList?: any | null
|
|
2508
2521
|
}
|
|
2509
2522
|
|
|
2510
2523
|
}
|
|
@@ -2515,13 +2528,18 @@ interface LinkAction {
|
|
|
2515
2528
|
|
|
2516
2529
|
readonly dest: LinkDest
|
|
2517
2530
|
readonly exclude_reset_fields: boolean
|
|
2531
|
+
readonly excludeResetFields: boolean
|
|
2518
2532
|
readonly filename: string | null
|
|
2519
2533
|
readonly hide_list: any
|
|
2534
|
+
readonly hideList: any
|
|
2520
2535
|
readonly name: string | null
|
|
2521
2536
|
readonly params: string | null
|
|
2522
2537
|
readonly reset_fields: any
|
|
2538
|
+
readonly resetFields: any
|
|
2523
2539
|
readonly show_list: any
|
|
2540
|
+
readonly showList: any
|
|
2524
2541
|
readonly toggle_list: any
|
|
2542
|
+
readonly toggleList: any
|
|
2525
2543
|
readonly type: LinkActionType
|
|
2526
2544
|
readonly uri: string | null
|
|
2527
2545
|
|
|
@@ -2624,6 +2642,7 @@ module LinkDest {
|
|
|
2624
2642
|
top?: number | null
|
|
2625
2643
|
type?: LinkDestType | null
|
|
2626
2644
|
zoom?: number | null
|
|
2645
|
+
pageLabel?: string | null
|
|
2627
2646
|
}
|
|
2628
2647
|
|
|
2629
2648
|
}
|
|
@@ -2638,6 +2657,7 @@ interface LinkDest {
|
|
|
2638
2657
|
readonly named: string | null
|
|
2639
2658
|
readonly page: number
|
|
2640
2659
|
readonly page_label: string | null
|
|
2660
|
+
readonly pageLabel: string | null
|
|
2641
2661
|
readonly right: number
|
|
2642
2662
|
readonly top: number
|
|
2643
2663
|
readonly type: LinkDestType
|
|
@@ -2875,6 +2895,7 @@ module TransitionEffect {
|
|
|
2875
2895
|
rectangular?: boolean | null
|
|
2876
2896
|
scale?: number | null
|
|
2877
2897
|
type?: TransitionEffectType | null
|
|
2898
|
+
durationReal?: number | null
|
|
2878
2899
|
}
|
|
2879
2900
|
|
|
2880
2901
|
}
|
|
@@ -2888,6 +2909,7 @@ interface TransitionEffect {
|
|
|
2888
2909
|
direction: TransitionEffectDirection
|
|
2889
2910
|
duration: number
|
|
2890
2911
|
duration_real: number
|
|
2912
|
+
durationReal: number
|
|
2891
2913
|
rectangular: boolean
|
|
2892
2914
|
scale: number
|
|
2893
2915
|
type: TransitionEffectType
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/evincedocument-3.0",
|
|
3
|
-
"version": "45.0.0-3.2.
|
|
3
|
+
"version": "45.0.0-3.2.6",
|
|
4
4
|
"description": "GJS TypeScript type definitions for EvinceDocument-3.0, generated from library version 45.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "evincedocument-3.0.js",
|
|
@@ -25,20 +25,20 @@
|
|
|
25
25
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit evincedocument-3.0.d.cts"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@girs/atk-1.0": "^2.50.0-3.2.
|
|
29
|
-
"@girs/cairo-1.0": "^1.0.0-3.2.
|
|
30
|
-
"@girs/freetype2-2.0": "^2.0.0-3.2.
|
|
31
|
-
"@girs/gdk-3.0": "^3.24.38-3.2.
|
|
32
|
-
"@girs/gdkpixbuf-2.0": "^2.0.0-3.2.
|
|
33
|
-
"@girs/gio-2.0": "^2.78.0-3.2.
|
|
34
|
-
"@girs/gjs": "^3.2.
|
|
35
|
-
"@girs/glib-2.0": "^2.78.0-3.2.
|
|
36
|
-
"@girs/gmodule-2.0": "^2.0.0-3.2.
|
|
37
|
-
"@girs/gobject-2.0": "^2.78.0-3.2.
|
|
38
|
-
"@girs/gtk-3.0": "^3.24.38-3.2.
|
|
39
|
-
"@girs/harfbuzz-0.0": "^8.2.1-3.2.
|
|
40
|
-
"@girs/pango-1.0": "^1.51.0-3.2.
|
|
41
|
-
"@girs/xlib-2.0": "^2.0.0-3.2.
|
|
28
|
+
"@girs/atk-1.0": "^2.50.0-3.2.6",
|
|
29
|
+
"@girs/cairo-1.0": "^1.0.0-3.2.6",
|
|
30
|
+
"@girs/freetype2-2.0": "^2.0.0-3.2.6",
|
|
31
|
+
"@girs/gdk-3.0": "^3.24.38-3.2.6",
|
|
32
|
+
"@girs/gdkpixbuf-2.0": "^2.0.0-3.2.6",
|
|
33
|
+
"@girs/gio-2.0": "^2.78.0-3.2.6",
|
|
34
|
+
"@girs/gjs": "^3.2.6",
|
|
35
|
+
"@girs/glib-2.0": "^2.78.0-3.2.6",
|
|
36
|
+
"@girs/gmodule-2.0": "^2.0.0-3.2.6",
|
|
37
|
+
"@girs/gobject-2.0": "^2.78.0-3.2.6",
|
|
38
|
+
"@girs/gtk-3.0": "^3.24.38-3.2.6",
|
|
39
|
+
"@girs/harfbuzz-0.0": "^8.2.1-3.2.6",
|
|
40
|
+
"@girs/pango-1.0": "^1.51.0-3.2.6",
|
|
41
|
+
"@girs/xlib-2.0": "^2.0.0-3.2.6"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"typescript": "*"
|