@gjsify/adwaita-core 0.64.2-next.252 → 0.64.2-next.254
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 +3 -3
- package/lib/esm/check-group.js +1 -0
- package/lib/esm/conformance/about-dialog-doors.js +18 -0
- package/lib/esm/conformance/carousel-doors.js +1 -0
- package/lib/esm/conformance/check-group.js +1 -0
- package/lib/esm/conformance/constructs.js +2 -2
- package/lib/esm/conformance/gio-app-info.js +1 -0
- package/lib/esm/conformance/glib-uri.js +2 -0
- package/lib/esm/conformance/icon-theme-resources.js +1 -1
- package/lib/esm/conformance/index.js +1 -1
- package/lib/esm/conformance/row-accessors.js +1 -0
- package/lib/esm/conformance/style-manager.js +1 -1
- package/lib/esm/conformance/widget-map.js +1 -0
- package/lib/esm/gdk.js +1 -1
- package/lib/esm/gio-app-info.js +1 -0
- package/lib/esm/gio-resource.fixtures.js +1 -1
- package/lib/esm/glib-uri.js +1 -0
- package/lib/esm/gtk-string-list.js +1 -1
- package/lib/esm/icon-theme-resources.js +1 -1
- package/lib/esm/index.js +1 -1
- package/lib/esm/release-notes.js +10 -0
- package/lib/esm/style-manager.js +1 -1
- package/lib/types/about-dialog-doors.gjs.spec.d.ts +2 -0
- package/lib/types/about-dialog.d.ts +14 -0
- package/lib/types/carousel-doors.gjs.spec.d.ts +2 -0
- package/lib/types/check-group.d.ts +8 -0
- package/lib/types/check-group.gjs.spec.d.ts +2 -0
- package/lib/types/check-group.spec.d.ts +2 -0
- package/lib/types/conformance/about-dialog-doors.d.ts +57 -0
- package/lib/types/conformance/about-dialog.d.ts +2 -2
- package/lib/types/conformance/carousel-doors.d.ts +29 -0
- package/lib/types/conformance/check-group.d.ts +26 -0
- package/lib/types/conformance/constructs.d.ts +7 -2
- package/lib/types/conformance/gio-app-info.d.ts +44 -0
- package/lib/types/conformance/gio-resource.d.ts +3 -3
- package/lib/types/conformance/glib-uri.d.ts +20 -0
- package/lib/types/conformance/index.d.ts +14 -0
- package/lib/types/conformance/row-accessors.d.ts +33 -0
- package/lib/types/conformance/shared-trees.d.ts +12 -0
- package/lib/types/conformance/style-manager.d.ts +3 -1
- package/lib/types/conformance/widget-map.d.ts +33 -0
- package/lib/types/gdk.d.ts +7 -0
- package/lib/types/gio-app-info.d.ts +11 -0
- package/lib/types/gio-app-info.gjs.spec.d.ts +2 -0
- package/lib/types/gio-app-info.spec.d.ts +2 -0
- package/lib/types/gio-resource.fixtures.d.ts +1 -1
- package/lib/types/glib-uri.d.ts +2 -0
- package/lib/types/glib-uri.gjs.spec.d.ts +2 -0
- package/lib/types/glib-uri.spec.d.ts +2 -0
- package/lib/types/gtk-string-list.d.ts +2 -0
- package/lib/types/icon-theme-resources.d.ts +4 -15
- package/lib/types/index.d.ts +8 -2
- package/lib/types/release-notes.d.ts +42 -0
- package/lib/types/release-notes.spec.d.ts +2 -0
- package/lib/types/row-accessors.gjs.spec.d.ts +2 -0
- package/lib/types/style-manager.d.ts +4 -0
- package/lib/types/widget-map.gjs.spec.d.ts +2 -0
- package/package.json +4 -4
package/lib/types/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
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, setLicense, setLicenseType, translatorCreditsPeople, } from './about-dialog.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
4
|
export type { AdwAboutDialogProps, AdwAboutDialogVisibility, AdwCreditPerson, AdwCreditsInput, AdwCreditsSection, AdwCreditsSectionInput, AdwLicenseAlias, AdwLicenseInfo, AdwLicenseNotify, AdwLicenseState, AdwLicenseTransition, AdwLicenseType, } from './about-dialog.js';
|
|
5
|
+
export { RELEASE_NOTES_LABELS, releaseNotesBuffer } from './release-notes.js';
|
|
6
|
+
export type { ReleaseNotesBuffer, ReleaseNotesError, ReleaseNotesInput, ReleaseNotesLabels, ReleaseNotesSegment, ReleaseNotesTag, } from './release-notes.js';
|
|
5
7
|
export { AVATAR_COLOR_COUNT, AVATAR_COLORS, avatarColor, avatarColorClass, avatarFontSize, avatarIconSize, avatarInitials, avatarMaxFontSize, avatarMode, flattenAvatarGradient, gStrHash, randomAvatarColorClass, } from './avatar.js';
|
|
6
8
|
export type { AdwAvatarColor, AdwAvatarMode } from './avatar.js';
|
|
7
9
|
export { ADW_BANNER_BUTTON_STYLES, ADW_BANNER_BUTTON_STYLE_CLASSES, ADW_BANNER_DEFAULTS, bannerButtonStyleClasses, bannerButtonText, bannerButtonVisible, bannerRenderState, isBannerButtonStyle, parseBannerButtonStyle, } from './banner.js';
|
|
@@ -12,6 +14,7 @@ export { ADW_BUTTON_STYLE_ALIASES, ADW_BUTTON_STYLE_CLASSES, buttonStyleClass, b
|
|
|
12
14
|
export type { AdwButtonStyleClass } from './button.js';
|
|
13
15
|
export { RadioGroupState, resolveCheckState } from './checks.js';
|
|
14
16
|
export type { AdwCheckState, RadioGroupChange, RadioGroupListener } from './checks.js';
|
|
17
|
+
export { checkActivationFlips, checkGroupNeighbours, isRadioCheck, setCheckGroup } from './check-group.js';
|
|
15
18
|
export { AdwBreakpoint, evaluateBreakpointCondition, parseBreakpointCondition } from './breakpoint.js';
|
|
16
19
|
export type { AdwBreakpointHandlers, BreakpointBound, BreakpointConditionGroup, BreakpointConditionLeaf, BreakpointConditionNode, BreakpointDimension, BreakpointSize, } from './breakpoint.js';
|
|
17
20
|
export { ADW_ACCENT_BG_COLORS, ADW_ACCENT_COLOR_NAMES, ADW_ACCENT_FG_COLOR, ADW_DEFAULT_ACCENT_COLOR, adwaitaAccent, adwaitaAccentBgColor, adwaitaAccentColor, adwaitaStandaloneColor, formatAdwRgb, isAdwAccentColorName, nearestAccent, onAdwaitaAccentChanged, parseAdwRgb, setAdwaitaAccent, } from './accent.js';
|
|
@@ -52,7 +55,7 @@ export type { BoxOrientation } from './box.js';
|
|
|
52
55
|
export { DEFAULT_LABEL_ELLIPSIZE, DEFAULT_LABEL_LINES, DEFAULT_LABEL_MAX_WIDTH_CHARS, DEFAULT_LABEL_WIDTH_CHARS, DEFAULT_LABEL_WRAP_MODE, DEFAULT_LABEL_XALIGN, DEFAULT_LABEL_YALIGN, LABEL_ELLIPSIZE_MODES, LABEL_JUSTIFICATIONS, LABEL_WRAP_MODES, labelDisplayText, labelEffectiveLines, labelEllipsizeOverflowValue, labelMarkupIsUnparseable, labelWidthCharsExtent, labelYalignAlignItems, normalizeLabelEllipsize, normalizeLabelJustify, normalizeLabelLines, normalizeLabelMaxWidthChars, normalizeLabelWidthChars, normalizeLabelWrapMode, normalizeLabelXalign, normalizeLabelYalign, } from './label.js';
|
|
53
56
|
export type { LabelAlignItems, LabelEllipsizeMode, LabelJustification, LabelWidthCharsExtent, LabelWrapMode, } from './label.js';
|
|
54
57
|
export { glibClamp, gStrStrip, stringIsNotEmpty } from './glib.js';
|
|
55
|
-
export { ContentFormats, ContentProvider, Clipboard, Display, createGdk, widgetDisplayMembers } from './gdk.js';
|
|
58
|
+
export { AppLaunchContext as GdkAppLaunchContext, ContentFormats, ContentProvider, Clipboard, Display, createGdk, widgetDisplayMembers, } from './gdk.js';
|
|
56
59
|
export { CURRENT_TIME, CssProvider, EventControllerKey, GDK_KEYS, GtkSettings, IconTheme, STYLE_PROVIDER_PRIORITY_APPLICATION, STYLE_PROVIDER_PRIORITY_FALLBACK, STYLE_PROVIDER_PRIORITY_SETTINGS, STYLE_PROVIDER_PRIORITY_THEME, STYLE_PROVIDER_PRIORITY_USER, createGtkPlatform, keyvalOfKey, widgetControllerMembers, } from './gtk-platform.js';
|
|
57
60
|
export type { GtkPlatform, HostKeyEvent, PlatformHost } from './gtk-platform.js';
|
|
58
61
|
export { iconLookupNames, lookupResourceIcon } from './icon-theme-resources.js';
|
|
@@ -137,5 +140,8 @@ export type { Binding, BindingFlag, BlueprintTemplate, BuiltTemplate, ClassLike,
|
|
|
137
140
|
export { engineForTarget, registerGObjectEngine, registeredEngine, resetRegisteredEngine } from './engine.js';
|
|
138
141
|
export type { EngineTarget, GObjectEngine } from './engine.js';
|
|
139
142
|
export { MAXUINT32, buildFilenamev, getCurrentDir, getSystemDataDirs } from './glib-paths.js';
|
|
143
|
+
export { uriEscapeString } from './glib-uri.js';
|
|
144
|
+
export { AppLaunchContext as GioAppLaunchContext, createAppInfo, uriPeekScheme } from './gio-app-info.js';
|
|
145
|
+
export type { GioAppInfo } from './gio-app-info.js';
|
|
140
146
|
export { ColorScheme, StyleManagerBase } from './style-manager.js';
|
|
141
147
|
export type { StyleSource } from './style-manager.js';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/** The buffer tag a run carries; `null` is untagged text. `section` is not modelled. */
|
|
2
|
+
export type ReleaseNotesTag = 'heading' | 'bullet' | 'em' | 'code' | null;
|
|
3
|
+
/** One run of the What's New buffer. Adjacent runs never share a tag. */
|
|
4
|
+
export interface ReleaseNotesSegment {
|
|
5
|
+
text: string;
|
|
6
|
+
tag: ReleaseNotesTag;
|
|
7
|
+
}
|
|
8
|
+
/** Why the notes did not parse, and where — the three values the error page shows. */
|
|
9
|
+
export interface ReleaseNotesError {
|
|
10
|
+
message: string;
|
|
11
|
+
line: number;
|
|
12
|
+
character: number;
|
|
13
|
+
}
|
|
14
|
+
export interface ReleaseNotesBuffer {
|
|
15
|
+
segments: ReleaseNotesSegment[];
|
|
16
|
+
error: ReleaseNotesError | null;
|
|
17
|
+
}
|
|
18
|
+
/** The properties `update_release_notes` reads. */
|
|
19
|
+
export interface ReleaseNotesInput {
|
|
20
|
+
releaseNotes: string;
|
|
21
|
+
releaseNotesVersion?: string;
|
|
22
|
+
version?: string;
|
|
23
|
+
}
|
|
24
|
+
/** The three translatable strings the buffer is built from. */
|
|
25
|
+
export interface ReleaseNotesLabels {
|
|
26
|
+
/** `Version %s`, the heading. */
|
|
27
|
+
releaseNotesHeading: string;
|
|
28
|
+
/** `Unable to parse release notes:`, the first line of the error page. */
|
|
29
|
+
releaseNotesError: string;
|
|
30
|
+
/** `Line: %d, character: %d`, its last line. */
|
|
31
|
+
releaseNotesErrorPosition: string;
|
|
32
|
+
}
|
|
33
|
+
export declare const RELEASE_NOTES_LABELS: ReleaseNotesLabels;
|
|
34
|
+
/**
|
|
35
|
+
* `update_release_notes`: the What's New buffer for these properties.
|
|
36
|
+
*
|
|
37
|
+
* Empty notes give an empty buffer, and the What's New row is hidden. The heading reads
|
|
38
|
+
* `release-notes-version`, falling back to `version`, at the moment the NOTES are set:
|
|
39
|
+
* `set_version` does not rebuild the buffer, so a renderer calls this from the two
|
|
40
|
+
* release-notes setters only.
|
|
41
|
+
*/
|
|
42
|
+
export declare function releaseNotesBuffer(input: ReleaseNotesInput, labels?: ReleaseNotesLabels): ReleaseNotesBuffer;
|
|
@@ -6,6 +6,8 @@ export interface StyleSource {
|
|
|
6
6
|
subscribe(changed: () => void): () => void;
|
|
7
7
|
/** Pins the interface dark or light; `null` hands it back to the system. */
|
|
8
8
|
force?(dark: boolean | null): void;
|
|
9
|
+
/** Whether the platform reports a light/dark preference at all. Absent means it cannot. */
|
|
10
|
+
supportsColorSchemes?(): boolean;
|
|
9
11
|
}
|
|
10
12
|
/** `Adw.ColorScheme`, with the values of the GIR. */
|
|
11
13
|
export declare const ColorScheme: {
|
|
@@ -21,6 +23,8 @@ export declare class StyleManagerBase extends GObjectObject {
|
|
|
21
23
|
static get_default(): StyleManagerBase;
|
|
22
24
|
get dark(): boolean;
|
|
23
25
|
get_dark(): boolean;
|
|
26
|
+
get system_supports_color_schemes(): boolean;
|
|
27
|
+
get_system_supports_color_schemes(): boolean;
|
|
24
28
|
get color_scheme(): number;
|
|
25
29
|
set color_scheme(scheme: number);
|
|
26
30
|
get_color_scheme(): number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/adwaita-core",
|
|
3
|
-
"version": "0.64.2-next.
|
|
3
|
+
"version": "0.64.2-next.254",
|
|
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": "0.64.2-next.
|
|
63
|
+
"@gjsify/cli": "0.64.2-next.254",
|
|
64
64
|
"@gjsify/node-gi": "file:../../../packages/node-gi/node-gi",
|
|
65
|
-
"@gjsify/unit": "0.64.2-next.
|
|
65
|
+
"@gjsify/unit": "0.64.2-next.254",
|
|
66
66
|
"@types/node": "^25.9.2",
|
|
67
67
|
"typescript": "^6.0.3"
|
|
68
68
|
},
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"url": "https://github.com/gjsify/gjsify/issues"
|
|
87
87
|
},
|
|
88
88
|
"homepage": "https://github.com/gjsify/gjsify/tree/main/packages/web/adwaita-core#readme",
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "6c88ac780b9742fce781e9b35aa2f45c125d8064"
|
|
90
90
|
}
|