@girs/gspell-1 1.0.0-3.2.4 → 1.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/gspell-1-ambient.d.ts +0 -1
- package/gspell-1-import.d.ts +0 -1
- package/gspell-1.d.cts +70 -0
- package/gspell-1.d.ts +70 -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 Gspell-1, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.
|
|
8
|
+
GJS TypeScript type definitions for Gspell-1, generated from library version 1.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 Gspell = imports.gi.Gspell;
|
|
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/gspell-1-ambient.d.ts
CHANGED
package/gspell-1-import.d.ts
CHANGED
package/gspell-1.d.cts
CHANGED
|
@@ -66,6 +66,12 @@ export module LanguageChooser {
|
|
|
66
66
|
* or if the selection has changed.
|
|
67
67
|
*/
|
|
68
68
|
language_code?: string | null
|
|
69
|
+
/**
|
|
70
|
+
* The empty string if the default language was set and the selection
|
|
71
|
+
* hasn't changed. Or the language code if an explicit language was set
|
|
72
|
+
* or if the selection has changed.
|
|
73
|
+
*/
|
|
74
|
+
languageCode?: string | null
|
|
69
75
|
}
|
|
70
76
|
|
|
71
77
|
}
|
|
@@ -84,6 +90,12 @@ export interface LanguageChooser {
|
|
|
84
90
|
* or if the selection has changed.
|
|
85
91
|
*/
|
|
86
92
|
language_code: string | null
|
|
93
|
+
/**
|
|
94
|
+
* The empty string if the default language was set and the selection
|
|
95
|
+
* hasn't changed. Or the language code if an explicit language was set
|
|
96
|
+
* or if the selection has changed.
|
|
97
|
+
*/
|
|
98
|
+
languageCode: string | null
|
|
87
99
|
|
|
88
100
|
// Owm methods of Gspell-1.Gspell.LanguageChooser
|
|
89
101
|
|
|
@@ -407,6 +419,10 @@ export module CheckerDialog {
|
|
|
407
419
|
* The #GspellNavigator to use.
|
|
408
420
|
*/
|
|
409
421
|
spell_navigator?: Navigator | null
|
|
422
|
+
/**
|
|
423
|
+
* The #GspellNavigator to use.
|
|
424
|
+
*/
|
|
425
|
+
spellNavigator?: Navigator | null
|
|
410
426
|
}
|
|
411
427
|
|
|
412
428
|
}
|
|
@@ -419,6 +435,10 @@ export interface CheckerDialog extends Atk.ImplementorIface, Gtk.Buildable {
|
|
|
419
435
|
* The #GspellNavigator to use.
|
|
420
436
|
*/
|
|
421
437
|
readonly spell_navigator: Navigator
|
|
438
|
+
/**
|
|
439
|
+
* The #GspellNavigator to use.
|
|
440
|
+
*/
|
|
441
|
+
readonly spellNavigator: Navigator
|
|
422
442
|
|
|
423
443
|
// Conflicting properties
|
|
424
444
|
|
|
@@ -806,6 +826,14 @@ export module Entry {
|
|
|
806
826
|
* %FALSE.
|
|
807
827
|
*/
|
|
808
828
|
inline_spell_checking?: boolean | null
|
|
829
|
+
/**
|
|
830
|
+
* Whether the inline spell checking is enabled.
|
|
831
|
+
*
|
|
832
|
+
* Even if this property is %TRUE, #GspellEntry disables internally the
|
|
833
|
+
* inline spell checking in case the #GtkEntry:visibility property is
|
|
834
|
+
* %FALSE.
|
|
835
|
+
*/
|
|
836
|
+
inlineSpellChecking?: boolean | null
|
|
809
837
|
}
|
|
810
838
|
|
|
811
839
|
}
|
|
@@ -826,6 +854,14 @@ export interface Entry {
|
|
|
826
854
|
* %FALSE.
|
|
827
855
|
*/
|
|
828
856
|
inline_spell_checking: boolean
|
|
857
|
+
/**
|
|
858
|
+
* Whether the inline spell checking is enabled.
|
|
859
|
+
*
|
|
860
|
+
* Even if this property is %TRUE, #GspellEntry disables internally the
|
|
861
|
+
* inline spell checking in case the #GtkEntry:visibility property is
|
|
862
|
+
* %FALSE.
|
|
863
|
+
*/
|
|
864
|
+
inlineSpellChecking: boolean
|
|
829
865
|
|
|
830
866
|
// Owm methods of Gspell-1.Gspell.Entry
|
|
831
867
|
|
|
@@ -925,6 +961,10 @@ export module EntryBuffer {
|
|
|
925
961
|
* The #GspellChecker.
|
|
926
962
|
*/
|
|
927
963
|
spell_checker?: Checker | null
|
|
964
|
+
/**
|
|
965
|
+
* The #GspellChecker.
|
|
966
|
+
*/
|
|
967
|
+
spellChecker?: Checker | null
|
|
928
968
|
}
|
|
929
969
|
|
|
930
970
|
}
|
|
@@ -941,6 +981,10 @@ export interface EntryBuffer {
|
|
|
941
981
|
* The #GspellChecker.
|
|
942
982
|
*/
|
|
943
983
|
spell_checker: Checker
|
|
984
|
+
/**
|
|
985
|
+
* The #GspellChecker.
|
|
986
|
+
*/
|
|
987
|
+
spellChecker: Checker
|
|
944
988
|
|
|
945
989
|
// Owm methods of Gspell-1.Gspell.EntryBuffer
|
|
946
990
|
|
|
@@ -1699,6 +1743,10 @@ export module TextBuffer {
|
|
|
1699
1743
|
* The #GspellChecker.
|
|
1700
1744
|
*/
|
|
1701
1745
|
spell_checker?: Checker | null
|
|
1746
|
+
/**
|
|
1747
|
+
* The #GspellChecker.
|
|
1748
|
+
*/
|
|
1749
|
+
spellChecker?: Checker | null
|
|
1702
1750
|
}
|
|
1703
1751
|
|
|
1704
1752
|
}
|
|
@@ -1715,6 +1763,10 @@ export interface TextBuffer {
|
|
|
1715
1763
|
* The #GspellChecker.
|
|
1716
1764
|
*/
|
|
1717
1765
|
spell_checker: Checker
|
|
1766
|
+
/**
|
|
1767
|
+
* The #GspellChecker.
|
|
1768
|
+
*/
|
|
1769
|
+
spellChecker: Checker
|
|
1718
1770
|
|
|
1719
1771
|
// Owm methods of Gspell-1.Gspell.TextBuffer
|
|
1720
1772
|
|
|
@@ -1783,6 +1835,15 @@ export module TextView {
|
|
|
1783
1835
|
* The #GtkTextView.
|
|
1784
1836
|
*/
|
|
1785
1837
|
view?: Gtk.TextView | null
|
|
1838
|
+
/**
|
|
1839
|
+
* When the context menu is shown, whether to add a sub-menu to select
|
|
1840
|
+
* the language for the spell checking.
|
|
1841
|
+
*/
|
|
1842
|
+
enableLanguageMenu?: boolean | null
|
|
1843
|
+
/**
|
|
1844
|
+
* Whether the inline spell checking is enabled.
|
|
1845
|
+
*/
|
|
1846
|
+
inlineSpellChecking?: boolean | null
|
|
1786
1847
|
}
|
|
1787
1848
|
|
|
1788
1849
|
}
|
|
@@ -1796,10 +1857,19 @@ export interface TextView {
|
|
|
1796
1857
|
* the language for the spell checking.
|
|
1797
1858
|
*/
|
|
1798
1859
|
enable_language_menu: boolean
|
|
1860
|
+
/**
|
|
1861
|
+
* When the context menu is shown, whether to add a sub-menu to select
|
|
1862
|
+
* the language for the spell checking.
|
|
1863
|
+
*/
|
|
1864
|
+
enableLanguageMenu: boolean
|
|
1799
1865
|
/**
|
|
1800
1866
|
* Whether the inline spell checking is enabled.
|
|
1801
1867
|
*/
|
|
1802
1868
|
inline_spell_checking: boolean
|
|
1869
|
+
/**
|
|
1870
|
+
* Whether the inline spell checking is enabled.
|
|
1871
|
+
*/
|
|
1872
|
+
inlineSpellChecking: boolean
|
|
1803
1873
|
/**
|
|
1804
1874
|
* The #GtkTextView.
|
|
1805
1875
|
*/
|
package/gspell-1.d.ts
CHANGED
|
@@ -68,6 +68,12 @@ module LanguageChooser {
|
|
|
68
68
|
* or if the selection has changed.
|
|
69
69
|
*/
|
|
70
70
|
language_code?: string | null
|
|
71
|
+
/**
|
|
72
|
+
* The empty string if the default language was set and the selection
|
|
73
|
+
* hasn't changed. Or the language code if an explicit language was set
|
|
74
|
+
* or if the selection has changed.
|
|
75
|
+
*/
|
|
76
|
+
languageCode?: string | null
|
|
71
77
|
}
|
|
72
78
|
|
|
73
79
|
}
|
|
@@ -86,6 +92,12 @@ interface LanguageChooser {
|
|
|
86
92
|
* or if the selection has changed.
|
|
87
93
|
*/
|
|
88
94
|
language_code: string | null
|
|
95
|
+
/**
|
|
96
|
+
* The empty string if the default language was set and the selection
|
|
97
|
+
* hasn't changed. Or the language code if an explicit language was set
|
|
98
|
+
* or if the selection has changed.
|
|
99
|
+
*/
|
|
100
|
+
languageCode: string | null
|
|
89
101
|
|
|
90
102
|
// Owm methods of Gspell-1.Gspell.LanguageChooser
|
|
91
103
|
|
|
@@ -409,6 +421,10 @@ module CheckerDialog {
|
|
|
409
421
|
* The #GspellNavigator to use.
|
|
410
422
|
*/
|
|
411
423
|
spell_navigator?: Navigator | null
|
|
424
|
+
/**
|
|
425
|
+
* The #GspellNavigator to use.
|
|
426
|
+
*/
|
|
427
|
+
spellNavigator?: Navigator | null
|
|
412
428
|
}
|
|
413
429
|
|
|
414
430
|
}
|
|
@@ -421,6 +437,10 @@ interface CheckerDialog extends Atk.ImplementorIface, Gtk.Buildable {
|
|
|
421
437
|
* The #GspellNavigator to use.
|
|
422
438
|
*/
|
|
423
439
|
readonly spell_navigator: Navigator
|
|
440
|
+
/**
|
|
441
|
+
* The #GspellNavigator to use.
|
|
442
|
+
*/
|
|
443
|
+
readonly spellNavigator: Navigator
|
|
424
444
|
|
|
425
445
|
// Conflicting properties
|
|
426
446
|
|
|
@@ -808,6 +828,14 @@ module Entry {
|
|
|
808
828
|
* %FALSE.
|
|
809
829
|
*/
|
|
810
830
|
inline_spell_checking?: boolean | null
|
|
831
|
+
/**
|
|
832
|
+
* Whether the inline spell checking is enabled.
|
|
833
|
+
*
|
|
834
|
+
* Even if this property is %TRUE, #GspellEntry disables internally the
|
|
835
|
+
* inline spell checking in case the #GtkEntry:visibility property is
|
|
836
|
+
* %FALSE.
|
|
837
|
+
*/
|
|
838
|
+
inlineSpellChecking?: boolean | null
|
|
811
839
|
}
|
|
812
840
|
|
|
813
841
|
}
|
|
@@ -828,6 +856,14 @@ interface Entry {
|
|
|
828
856
|
* %FALSE.
|
|
829
857
|
*/
|
|
830
858
|
inline_spell_checking: boolean
|
|
859
|
+
/**
|
|
860
|
+
* Whether the inline spell checking is enabled.
|
|
861
|
+
*
|
|
862
|
+
* Even if this property is %TRUE, #GspellEntry disables internally the
|
|
863
|
+
* inline spell checking in case the #GtkEntry:visibility property is
|
|
864
|
+
* %FALSE.
|
|
865
|
+
*/
|
|
866
|
+
inlineSpellChecking: boolean
|
|
831
867
|
|
|
832
868
|
// Owm methods of Gspell-1.Gspell.Entry
|
|
833
869
|
|
|
@@ -927,6 +963,10 @@ module EntryBuffer {
|
|
|
927
963
|
* The #GspellChecker.
|
|
928
964
|
*/
|
|
929
965
|
spell_checker?: Checker | null
|
|
966
|
+
/**
|
|
967
|
+
* The #GspellChecker.
|
|
968
|
+
*/
|
|
969
|
+
spellChecker?: Checker | null
|
|
930
970
|
}
|
|
931
971
|
|
|
932
972
|
}
|
|
@@ -943,6 +983,10 @@ interface EntryBuffer {
|
|
|
943
983
|
* The #GspellChecker.
|
|
944
984
|
*/
|
|
945
985
|
spell_checker: Checker
|
|
986
|
+
/**
|
|
987
|
+
* The #GspellChecker.
|
|
988
|
+
*/
|
|
989
|
+
spellChecker: Checker
|
|
946
990
|
|
|
947
991
|
// Owm methods of Gspell-1.Gspell.EntryBuffer
|
|
948
992
|
|
|
@@ -1701,6 +1745,10 @@ module TextBuffer {
|
|
|
1701
1745
|
* The #GspellChecker.
|
|
1702
1746
|
*/
|
|
1703
1747
|
spell_checker?: Checker | null
|
|
1748
|
+
/**
|
|
1749
|
+
* The #GspellChecker.
|
|
1750
|
+
*/
|
|
1751
|
+
spellChecker?: Checker | null
|
|
1704
1752
|
}
|
|
1705
1753
|
|
|
1706
1754
|
}
|
|
@@ -1717,6 +1765,10 @@ interface TextBuffer {
|
|
|
1717
1765
|
* The #GspellChecker.
|
|
1718
1766
|
*/
|
|
1719
1767
|
spell_checker: Checker
|
|
1768
|
+
/**
|
|
1769
|
+
* The #GspellChecker.
|
|
1770
|
+
*/
|
|
1771
|
+
spellChecker: Checker
|
|
1720
1772
|
|
|
1721
1773
|
// Owm methods of Gspell-1.Gspell.TextBuffer
|
|
1722
1774
|
|
|
@@ -1785,6 +1837,15 @@ module TextView {
|
|
|
1785
1837
|
* The #GtkTextView.
|
|
1786
1838
|
*/
|
|
1787
1839
|
view?: Gtk.TextView | null
|
|
1840
|
+
/**
|
|
1841
|
+
* When the context menu is shown, whether to add a sub-menu to select
|
|
1842
|
+
* the language for the spell checking.
|
|
1843
|
+
*/
|
|
1844
|
+
enableLanguageMenu?: boolean | null
|
|
1845
|
+
/**
|
|
1846
|
+
* Whether the inline spell checking is enabled.
|
|
1847
|
+
*/
|
|
1848
|
+
inlineSpellChecking?: boolean | null
|
|
1788
1849
|
}
|
|
1789
1850
|
|
|
1790
1851
|
}
|
|
@@ -1798,10 +1859,19 @@ interface TextView {
|
|
|
1798
1859
|
* the language for the spell checking.
|
|
1799
1860
|
*/
|
|
1800
1861
|
enable_language_menu: boolean
|
|
1862
|
+
/**
|
|
1863
|
+
* When the context menu is shown, whether to add a sub-menu to select
|
|
1864
|
+
* the language for the spell checking.
|
|
1865
|
+
*/
|
|
1866
|
+
enableLanguageMenu: boolean
|
|
1801
1867
|
/**
|
|
1802
1868
|
* Whether the inline spell checking is enabled.
|
|
1803
1869
|
*/
|
|
1804
1870
|
inline_spell_checking: boolean
|
|
1871
|
+
/**
|
|
1872
|
+
* Whether the inline spell checking is enabled.
|
|
1873
|
+
*/
|
|
1874
|
+
inlineSpellChecking: boolean
|
|
1805
1875
|
/**
|
|
1806
1876
|
* The #GtkTextView.
|
|
1807
1877
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gspell-1",
|
|
3
|
-
"version": "1.0.0-3.2.
|
|
3
|
+
"version": "1.0.0-3.2.6",
|
|
4
4
|
"description": "GJS TypeScript type definitions for Gspell-1, generated from library version 1.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "gspell-1.js",
|
|
@@ -25,20 +25,20 @@
|
|
|
25
25
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gspell-1.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": "*"
|