@gjsify/adwaita-core 0.64.2 → 0.64.3-next.259
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/lib/esm/about-dialog.js +5 -3
- package/lib/esm/conformance/about-dialog-doors.js +1 -1
- package/lib/esm/conformance/about-dialog.js +9 -1
- package/lib/esm/conformance/glib-language.js +1 -0
- package/lib/esm/conformance/glib-unichar.js +1 -0
- package/lib/esm/conformance/glib-variant.js +2 -0
- package/lib/esm/conformance/index.js +1 -1
- package/lib/esm/glib-language.js +1 -0
- package/lib/esm/glib-unichar.generated.js +1 -0
- package/lib/esm/glib-unichar.js +1 -0
- package/lib/esm/glib-variant.js +1 -0
- package/lib/esm/gobject.js +1 -1
- package/lib/esm/index.js +1 -1
- package/lib/esm/release-notes.js +7 -7
- package/lib/types/about-dialog.d.ts +81 -0
- package/lib/types/conformance/about-dialog.d.ts +63 -16
- package/lib/types/conformance/glib-language.d.ts +44 -0
- package/lib/types/conformance/glib-unichar.d.ts +20 -0
- package/lib/types/conformance/glib-variant.d.ts +37 -0
- package/lib/types/conformance/index.d.ts +8 -2
- package/lib/types/engine.d.ts +42 -1
- package/lib/types/glib-language.d.ts +14 -0
- package/lib/types/glib-language.gjs.spec.d.ts +2 -0
- package/lib/types/glib-language.spec.d.ts +2 -0
- package/lib/types/glib-unichar.d.ts +7 -0
- package/lib/types/glib-unichar.generated.d.ts +6 -0
- package/lib/types/glib-unichar.gjs.spec.d.ts +2 -0
- package/lib/types/glib-unichar.spec.d.ts +2 -0
- package/lib/types/glib-variant.d.ts +23 -0
- package/lib/types/glib-variant.gjs.spec.d.ts +2 -0
- package/lib/types/glib-variant.spec.d.ts +2 -0
- package/lib/types/index.d.ts +7 -3
- package/package.json +5 -4
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `g_get_language_names()` over the POSIX locales `locales` (what `LANGUAGE=a:b:c` would hold, each
|
|
3
|
+
* entry itself `language[_territory][.codeset][@modifier]`): the variants of each in order, then `"C"`.
|
|
4
|
+
* An entry holding a colon list is expanded like GLib's `LANGUAGE` is.
|
|
5
|
+
*/
|
|
6
|
+
export declare function computeLanguageNames(locales: readonly string[]): string[];
|
|
7
|
+
/** A BCP 47 tag as the POSIX locale `language[_REGION]`, or `null` when it names none. See the header. */
|
|
8
|
+
export declare function localeFromLanguageTag(tag: string): string | null;
|
|
9
|
+
/**
|
|
10
|
+
* The names a host that speaks in BCP 47 tags (`navigator.languages`, `NSLocale.preferredLanguages`)
|
|
11
|
+
* answers `get_language_names()` with: each tag as a POSIX locale, variants most specific first, no
|
|
12
|
+
* repeats, `"C"` last. No tag names a language: just `["C"]`.
|
|
13
|
+
*/
|
|
14
|
+
export declare function languageNamesFromTags(tags: readonly string[]): string[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** `g_unichar_isalpha` for the first code point of `c`; `false` for the empty string. */
|
|
2
|
+
export declare function unicharIsalpha(c: string): boolean;
|
|
3
|
+
/**
|
|
4
|
+
* `g_unichar_isprint` for the first code point of `c`: false for control, format, unassigned
|
|
5
|
+
* and surrogate code points; `false` for the empty string.
|
|
6
|
+
*/
|
|
7
|
+
export declare function unicharIsprint(c: string): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** The Unicode version the tables were read from. */
|
|
2
|
+
export declare const GLIB_UNICHAR_UNICODE_VERSION = "17.0.0";
|
|
3
|
+
/** General category L*, what `g_unichar_isalpha` answers true for: 684 ranges. */
|
|
4
|
+
export declare const GLIB_UNICHAR_ALPHA_RANGES: readonly string[];
|
|
5
|
+
/** `Cc|Cf|Cn|Cs`, what `g_unichar_isprint` answers false for: 743 ranges. */
|
|
6
|
+
export declare const GLIB_UNICHAR_NONPRINT_RANGES: readonly string[];
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
type BasicType = 'b' | 'i' | 'u' | 'd' | 's';
|
|
2
|
+
export type VariantTypeString = BasicType | 'ab' | 'ai' | 'au' | 'ad' | 'as';
|
|
3
|
+
export type VariantBasicValue = boolean | number | string;
|
|
4
|
+
export type VariantValue = VariantBasicValue | VariantBasicValue[];
|
|
5
|
+
export declare class Variant {
|
|
6
|
+
#private;
|
|
7
|
+
constructor(sig: string, value: unknown);
|
|
8
|
+
/** Deprecated on GJS, still there. */
|
|
9
|
+
static new(sig: string, value: unknown): Variant;
|
|
10
|
+
/** @internal GLib's text format for `sig`, for `@gjsify/app-settings`'s stored array keys. */
|
|
11
|
+
static parseText(sig: string, text: string): Variant;
|
|
12
|
+
get_type_string(): string;
|
|
13
|
+
unpack<T = unknown>(): T;
|
|
14
|
+
deepUnpack<T = unknown>(): T;
|
|
15
|
+
/** The backwards-compatibility alias: the same function as `deepUnpack`. */
|
|
16
|
+
deep_unpack: <T = unknown>() => T;
|
|
17
|
+
/** No `v` in the subset, so there is nothing to recurse into beyond `deepUnpack`. */
|
|
18
|
+
recursiveUnpack<T = unknown>(): T;
|
|
19
|
+
equal(other: unknown): boolean;
|
|
20
|
+
print(type_annotate: boolean): string;
|
|
21
|
+
toString(): string;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { ActionRowState, BUTTON_ROW_ACTIVATABLE, ButtonRowState, SwitchRowState, WindowTitleState, deriveRowLabels, } from './action-row.js';
|
|
2
2
|
export type { ActionRowRenderState, AdwRowLabelInput, AdwRowLabels, ButtonRowRenderState, WindowTitleRenderState, } from './action-row.js';
|
|
3
|
-
export { ADW_ABOUT_DIALOG_LABELS, ADW_CREDITS_SECTION_TITLES, ADW_LICENSES, ADW_LICENSE_ALIASES, ADW_LICENSE_DEFAULTS, ADW_LICENSE_WARRANTY_TEMPLATE, ADW_TRANSLATOR_CREDITS_SENTINELS, GTK_LICENSE, aboutDialogVisibility, creditsSections, isLicenseType, legalSectionVisible, licenseText, licenseTypeForSpdxId, parseCreditPerson, refuseNewFromAppdata, setLicense, setLicenseType, translatorCreditsPeople, } from './about-dialog.js';
|
|
4
|
-
export type { AdwAboutDialogProps, AdwAboutDialogVisibility, AdwCreditPerson, AdwCreditsInput, AdwCreditsSection, AdwCreditsSectionInput, AdwLicenseAlias, AdwLicenseInfo, AdwLicenseNotify, AdwLicenseState, AdwLicenseTransition, AdwLicenseType, } from './about-dialog.js';
|
|
3
|
+
export { ADW_ABOUT_DIALOG_LABELS, ADW_LINK_ROW_ICON_NAME, ADW_LINK_ROW_MAIL_ICON_NAME, linkRowIconName, linkRowTooltip, ADW_CREDITS_SECTION_TITLES, ADW_LEGAL_DEFAULT_TITLE, ADW_LICENSES, ADW_LICENSE_ALIASES, ADW_LICENSE_DEFAULTS, ADW_LICENSE_WARRANTY_TEMPLATE, ADW_TRANSLATOR_CREDITS_SENTINELS, GTK_LICENSE, aboutDialogVisibility, acknowledgementSections, creditsSections, flatCardShowsWebsite, isLicenseType, legalSectionVisible, legalSections, legalMarkupText, legalVisible, licenseText, licenseTypeForNick, licenseTypeForSpdxId, parseCreditPerson, refuseNewFromAppdata, setLicense, setLicenseType, translatorCreditsPeople, } from './about-dialog.js';
|
|
4
|
+
export type { AdwAboutDialogProps, AdwAboutDialogVisibility, AdwCreditPerson, AdwCreditsInput, AdwCreditsSection, AdwCreditsSectionInput, AdwLegalInput, AdwLegalSection, AdwLegalSectionInput, AdwLicenseAlias, AdwLicenseInfo, AdwLicenseNotify, AdwLicenseState, AdwLicenseTransition, AdwLicenseType, } from './about-dialog.js';
|
|
5
5
|
export { RELEASE_NOTES_LABELS, releaseNotesBuffer } from './release-notes.js';
|
|
6
6
|
export type { ReleaseNotesBuffer, ReleaseNotesError, ReleaseNotesInput, ReleaseNotesLabels, ReleaseNotesSegment, ReleaseNotesTag, } from './release-notes.js';
|
|
7
7
|
export { AVATAR_COLOR_COUNT, AVATAR_COLORS, avatarColor, avatarColorClass, avatarFontSize, avatarIconSize, avatarInitials, avatarMaxFontSize, avatarMode, flattenAvatarGradient, gStrHash, randomAvatarColorClass, } from './avatar.js';
|
|
@@ -67,6 +67,7 @@ export type { GLibTimers, SourceFunc, TimerHost } from './glib-timers.js';
|
|
|
67
67
|
export { GLibError, DialogError, IOErrorEnum, ResourceError, asGLibError } from './glib-error.js';
|
|
68
68
|
export { Resource as GioResource, ResourceLookupFlags, resources_register, resources_unregister, resources_lookup_data, resources_enumerate_children, resources_get_info, } from './gio-resource.js';
|
|
69
69
|
export { Bytes as GLibBytes } from './glib-bytes.js';
|
|
70
|
+
export { Variant as GLibVariant } from './glib-variant.js';
|
|
70
71
|
export { FileDialog as GtkFileDialog, FileFilter as GtkFileFilter, GioFile, GioListStore, OutputStream as GioOutputStream, FileOutputStream as GioFileOutputStream, FileCreateFlags, promisify, registerFileChooserDriver, fileForHandle, fileFilterSpec, fileFilterAccepts, dismissedError, dialogFailedError, } from './file-chooser.js';
|
|
71
72
|
export type { FileChooserDriver, FileChooserHandle, FileChooserRequest, FileChooserWriter, FileFilterSpec, } from './file-chooser.js';
|
|
72
73
|
export { ViewStackState, normalizeIconName, resolvePageTitle } from './view-stack.js';
|
|
@@ -138,9 +139,12 @@ export { ActionRegistry, SimpleAction, actionRegistryOf, activateWidgetAction, a
|
|
|
138
139
|
export type { ActionActivateHandler, ActionGroupLike, ActionLike, SimpleActionProps } from './gio-actions.js';
|
|
139
140
|
export type { Binding, BindingFlag, BlueprintTemplate, BuiltTemplate, ClassLike, ClassMeta, GObjectConstructor, GObjectDoor, GObjectInstance, GObjectNamespace, GType, ParamKind, RegisterClass, RegisteredClass, SignalHandler, SignalMeta, TemplateScope, } from './gobject.js';
|
|
140
141
|
export { engineForTarget, registerGObjectEngine, registeredEngine, resetRegisteredEngine } from './engine.js';
|
|
141
|
-
export type { EngineTarget, GObjectEngine } from './engine.js';
|
|
142
|
+
export type { EngineTarget, ForeignClassMeta, ForeignProperty, ForeignPropertyKind, ForeignSignal, GObjectEngine, } from './engine.js';
|
|
142
143
|
export { MAXUINT32, buildFilenamev, getCurrentDir, getSystemDataDirs } from './glib-paths.js';
|
|
143
144
|
export { uriEscapeString } from './glib-uri.js';
|
|
145
|
+
export { computeLanguageNames, languageNamesFromTags, localeFromLanguageTag } from './glib-language.js';
|
|
146
|
+
export { unicharIsalpha } from './glib-unichar.js';
|
|
147
|
+
export { GLIB_UNICHAR_UNICODE_VERSION } from './glib-unichar.generated.js';
|
|
144
148
|
export { AppLaunchContext as GioAppLaunchContext, createAppInfo, uriPeekScheme } from './gio-app-info.js';
|
|
145
149
|
export type { GioAppInfo } from './gio-app-info.js';
|
|
146
150
|
export { ColorScheme, StyleManagerBase } from './style-manager.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/adwaita-core",
|
|
3
|
-
"version": "0.64.
|
|
3
|
+
"version": "0.64.3-next.259",
|
|
4
4
|
"description": "Headless Adwaita widget behavior (breakpoint condition grammar + apply/unapply state machine, color-scheme observable, avatar derivation) shared by the web and NativeScript Adwaita renderers — pure TS, no platform imports",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "lib/esm/index.js",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"headless"
|
|
61
61
|
],
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@gjsify/cli": "
|
|
63
|
+
"@gjsify/cli": "0.64.3-next.259",
|
|
64
64
|
"@gjsify/node-gi": "file:../../../packages/node-gi/node-gi",
|
|
65
|
-
"@gjsify/unit": "
|
|
65
|
+
"@gjsify/unit": "0.64.3-next.259",
|
|
66
66
|
"@types/node": "^25.9.2",
|
|
67
67
|
"typescript": "^6.0.3"
|
|
68
68
|
},
|
|
@@ -85,5 +85,6 @@
|
|
|
85
85
|
"bugs": {
|
|
86
86
|
"url": "https://github.com/gjsify/gjsify/issues"
|
|
87
87
|
},
|
|
88
|
-
"homepage": "https://github.com/gjsify/gjsify/tree/main/packages/web/adwaita-core#readme"
|
|
88
|
+
"homepage": "https://github.com/gjsify/gjsify/tree/main/packages/web/adwaita-core#readme",
|
|
89
|
+
"gitHead": "84f8ece003be30456a8ace70115e480bf3220d47"
|
|
89
90
|
}
|