@gjsify/storybook-nativescript 0.35.0 → 0.37.0
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/types/app.d.ts +11 -21
- package/package.json +8 -8
package/lib/types/app.d.ts
CHANGED
|
@@ -23,9 +23,8 @@ export interface StorybookNativeOptions {
|
|
|
23
23
|
/** Auto-select the first story on mount (default true). */
|
|
24
24
|
openFirst?: boolean;
|
|
25
25
|
/**
|
|
26
|
-
* The NativeScript `Application
|
|
27
|
-
*
|
|
28
|
-
* (so backgrounds/text follow the system theme), and this keeps the symbolic
|
|
26
|
+
* The NativeScript `Application`. When given, the storybook follows the OS color
|
|
27
|
+
* scheme: NS already flips `ns-dark` on the root view, and this keeps the symbolic
|
|
29
28
|
* ICON bitmaps recoloured to match (they are pre-coloured, outside CSS's reach).
|
|
30
29
|
*/
|
|
31
30
|
application?: NsAppearanceSource;
|
|
@@ -54,17 +53,12 @@ export declare class StorybookNativeApp implements StorybookView<StoryView> {
|
|
|
54
53
|
private _isWideWidth;
|
|
55
54
|
/** Build the UI, instantiate stories, and select the first one. Returns the root view. */
|
|
56
55
|
mount(): View;
|
|
57
|
-
/**
|
|
58
|
-
* Collapse to phone layout below 720sp, expand to three side-by-side panes at
|
|
59
|
-
* or above it — the GTK storybook's `Adw.Breakpoint`, driven by the root
|
|
60
|
-
* view's post-layout width. Seeds immediately so the first paint is correct.
|
|
61
|
-
*/
|
|
56
|
+
/** Driven by the root view's post-layout width; seeds immediately so the first paint is correct. */
|
|
62
57
|
private _wireBreakpoint;
|
|
63
58
|
/**
|
|
64
59
|
* Switch between collapsed (phone) and expanded (wide) chrome. Collapsed: the
|
|
65
|
-
* master/detail nav swaps panes, the controls are a tap-to-reveal overlay, and
|
|
66
|
-
*
|
|
67
|
-
* side and the back button hides (no navigation needed).
|
|
60
|
+
* master/detail nav swaps panes, the controls are a tap-to-reveal overlay, and the
|
|
61
|
+
* back button shows. Expanded: three panes side by side, no back button.
|
|
68
62
|
*/
|
|
69
63
|
private _applyLayoutMode;
|
|
70
64
|
/** The currently-displayed story, or null. */
|
|
@@ -84,17 +78,13 @@ export declare class StorybookNativeApp implements StorybookView<StoryView> {
|
|
|
84
78
|
/** The underlying controller (e.g. to build a devtools extension over it). */
|
|
85
79
|
get controller(): StorybookController<StoryView>;
|
|
86
80
|
/**
|
|
87
|
-
* Match the OS color scheme at mount. NS applies
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
* ICON bitmaps are outside CSS's reach, so this sets the global icon scheme to
|
|
91
|
-
* the matching fg (dark icons on light, near-white on dark). No-op without an
|
|
92
|
-
* `application` option.
|
|
81
|
+
* Match the OS color scheme at mount. NS applies `ns-dark` before the first style
|
|
82
|
+
* pass; the pre-coloured symbolic ICON bitmaps are outside CSS's reach, so this sets
|
|
83
|
+
* the global icon scheme to the matching fg.
|
|
93
84
|
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
* icons getting ahead of a CSS that didn't flip.
|
|
85
|
+
* SEED ONLY, deliberately: NS 9.1-alpha does not reliably RE-APPLY the `.ns-dark`
|
|
86
|
+
* overrides at runtime, so a live OS theme switch is picked up on the next launch
|
|
87
|
+
* rather than risking icons that are ahead of a CSS which did not flip.
|
|
98
88
|
*/
|
|
99
89
|
private _wireColorScheme;
|
|
100
90
|
renderSidebar(groups: Array<CategoryGroup<StoryView>>, onSelect: (instance: StoryView) => void): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/storybook-nativescript",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.37.0",
|
|
4
4
|
"description": "NativeScript renderer for the @gjsify/stories contract — the NS counterpart of @gjsify/storybook (GTK) and @gjsify/adwaita-storybook (browser), built on @gjsify/adwaita-nativescript real native widgets",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "lib/esm/index.js",
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"gnome"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@gjsify/adwaita-icons": "^0.
|
|
43
|
-
"@gjsify/adwaita-nativescript": "^0.
|
|
44
|
-
"@gjsify/devtools-nativescript": "^0.
|
|
45
|
-
"@gjsify/stories": "^0.
|
|
46
|
-
"@gjsify/storybook-core": "^0.
|
|
42
|
+
"@gjsify/adwaita-icons": "^0.37.0",
|
|
43
|
+
"@gjsify/adwaita-nativescript": "^0.37.0",
|
|
44
|
+
"@gjsify/devtools-nativescript": "^0.37.0",
|
|
45
|
+
"@gjsify/stories": "^0.37.0",
|
|
46
|
+
"@gjsify/storybook-core": "^0.37.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"@nativescript/core": "*"
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@gjsify/cli": "^0.
|
|
58
|
-
"@gjsify/unit": "^0.
|
|
57
|
+
"@gjsify/cli": "^0.37.0",
|
|
58
|
+
"@gjsify/unit": "^0.37.0",
|
|
59
59
|
"@nativescript/types": "~9.0.0",
|
|
60
60
|
"@types/node": "^25.9.2",
|
|
61
61
|
"typescript": "^6.0.3"
|