@wix/himalaya-cli 0.1888.0 → 0.1889.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/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/app-config.d.ts +2 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/app-module.d.ts +4 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/builder.d.ts +10 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/bindings.d.ts +5 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +48 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +17 -2
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +12 -2
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{d4250730f37a006c948187a7640453097348fa24695586a3d0014c041511c896.bin → 0c2266c1d7d6e00c558adf2e3706e5ae360fdb6b5ca7663ed596d683a0f39f34.bin} +1 -1
- package/dist/browser-plane/sw.js +7 -7
- package/dist/cli.mjs +2275 -1615
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/component-index.md +5 -1
- package/guides/component-reference.json +11 -4
- package/guides/component-reference.md +20 -5
- package/guides/designing-himi-screens.md +48 -0
- package/guides/index.json +1 -1
- package/guides/sdk-reference.json +12 -5
- package/package.json +2 -2
|
@@ -119,6 +119,8 @@ export interface NavigationConfig {
|
|
|
119
119
|
topBarLogo?: import("@wix/himalaya/core").TopBarLogo;
|
|
120
120
|
topBarTitleAlign?: string;
|
|
121
121
|
presentationQueue?: boolean;
|
|
122
|
+
topBarContent?: import("@wix/himalaya/core").Component;
|
|
123
|
+
topBarAccessory?: import("@wix/himalaya/core").Component;
|
|
122
124
|
splash?: SplashConfig;
|
|
123
125
|
locale?: LocaleConfig;
|
|
124
126
|
backAffordance?: BackAffordanceConfig;
|
|
@@ -265,6 +265,10 @@ export interface DerivedAppMeta {
|
|
|
265
265
|
topBarTitleAlign?: string;
|
|
266
266
|
/** Forwarded from AppConfig.navigation.presentationQueue — the opt-in host alert queue (#4662). */
|
|
267
267
|
presentationQueue?: boolean;
|
|
268
|
+
/** Forwarded from AppConfig.navigation.topBarContent / topBarAccessory — RFC 0081 §5.4, the app-wide composed top bar
|
|
269
|
+
* (L2) and accessory row (L1). */
|
|
270
|
+
topBarContent?: import("@wix/himalaya/core").Component;
|
|
271
|
+
topBarAccessory?: import("@wix/himalaya/core").Component;
|
|
268
272
|
/** Forwarded from AppConfig.`splash` — the in-app splash surface. NOTE the
|
|
269
273
|
* asymmetry with the fields above: this reads the TOP-LEVEL `config.splash`, not
|
|
270
274
|
* `config.navigation.splash`, because the same block also drives the build-time
|
|
@@ -1669,6 +1669,16 @@ export declare function liveWaveform(props?: {
|
|
|
1669
1669
|
id?: string;
|
|
1670
1670
|
modifiers?: Component["modifiers"];
|
|
1671
1671
|
}): Component;
|
|
1672
|
+
/** RFC 0081 §5.2 — where the SHELL draws one of its own chrome pieces inside composed chrome content
|
|
1673
|
+
* (`DrawerConfig.content`, `SidebarConfig.content`, `TopBarConfig.content` / `accessory`, …). `outlet`:
|
|
1674
|
+
* `"leading"` | `"title"` | `"trailing"` | `"search"` | `"items"` (with `placement`) | `"drawer_header"` |
|
|
1675
|
+
* `"drawer_items"` | `"drawer_footer"` (`"tab"` / `"tabs"` arrive with RFC 0081 phase 3). Draws nothing outside
|
|
1676
|
+
* chrome content and for an unknown outlet. */
|
|
1677
|
+
export declare function chromeOutlet(outlet: string, opts?: {
|
|
1678
|
+
placement?: string;
|
|
1679
|
+
id?: string;
|
|
1680
|
+
modifiers?: Component["modifiers"];
|
|
1681
|
+
}): Component;
|
|
1672
1682
|
/** Motion grammar (Batch 4) — a Lottie/Rive vector animation. `source` is an
|
|
1673
1683
|
* https URL to the animation JSON or the inline JSON string (ships OTA). Plays
|
|
1674
1684
|
* via lottie-ios / lottie-compose / lottie-web; reduced motion → static last
|
package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/bindings.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Every sigil the platform understands, without the leading `$`. */
|
|
2
|
-
export declare const BINDING_SIGILS: readonly ["service", "flag", "item", "t", "app"];
|
|
2
|
+
export declare const BINDING_SIGILS: readonly ["service", "flag", "item", "t", "app", "chrome", "tab"];
|
|
3
3
|
export type BindingSigil = (typeof BINDING_SIGILS)[number];
|
|
4
4
|
/**
|
|
5
5
|
* Matches any binding expression by its leading sigil.
|
|
@@ -18,6 +18,10 @@ export type BindingSigil = (typeof BINDING_SIGILS)[number];
|
|
|
18
18
|
* `$app:<svc>.<path>`, and `\b` after `app` would capture a literal `"$app store"` and blank
|
|
19
19
|
* it. React Native deliberately has no `$app:` resolver (RFC 0074 §12): there the binding
|
|
20
20
|
* fails open to the field's literal sibling, exactly like an unbooted worker.
|
|
21
|
+
*
|
|
22
|
+
* RFC 0081's `$chrome:` and `$tab:` are shell context, read-only and resolved by the SHELL on the
|
|
23
|
+
* main thread (no worker): `$chrome:<key>` and `$tab:<key>` (`chrome-content.ts`). Colon sigils for
|
|
24
|
+
* the same reason as `$app:` — `\b` after `tab` would capture a literal `"$tab stop"`.
|
|
21
25
|
*/
|
|
22
26
|
export declare const BINDING_SIGIL_RE: RegExp;
|
|
23
27
|
/** Is this value a binding rather than a literal? */
|
package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts
CHANGED
|
@@ -2090,6 +2090,24 @@ export interface VoiceNoteProps {
|
|
|
2090
2090
|
/** resample target (default 48, clamped 8..128). */
|
|
2091
2091
|
barCount?: number;
|
|
2092
2092
|
}
|
|
2093
|
+
/**
|
|
2094
|
+
* RFC 0081 §5.2 — where the SHELL draws one of its own chrome pieces inside composed chrome content
|
|
2095
|
+
* (`DrawerConfig.content`, `SidebarConfig.content`, `TopBarConfig.content` / `accessory`,
|
|
2096
|
+
* `NavigationConfig.topBarContent` / `topBarAccessory`), with the same code and rules as the L0 chrome. Takes
|
|
2097
|
+
* modifiers like any node (padding, alignment, weight); it cannot change what the piece is. An unknown `outlet`, an
|
|
2098
|
+
* outlet the binary does not draw yet, or an outlet outside chrome content draws nothing (invariant 6).
|
|
2099
|
+
*/
|
|
2100
|
+
export interface ChromeOutletProps {
|
|
2101
|
+
/** `"leading"` | `"title"` | `"trailing"` | `"search"` | `"items"` (top bar) · `"drawer_items"` | `"drawer_header"` |
|
|
2102
|
+
* `"drawer_footer"` (drawer, sidebar) · `"tab"` | `"tabs"` (tab bar, RFC 0081 phase 3: draw nothing until then). */
|
|
2103
|
+
outlet: string;
|
|
2104
|
+
/** Outlet `"items"` only: the toolbar placement to draw (`"leading"`, `"trailing"`, `"bottom"`, `"overflow"`…). */
|
|
2105
|
+
placement?: string;
|
|
2106
|
+
}
|
|
2107
|
+
/** RFC 0081 §5.2 — the outlet values a binary may draw. */
|
|
2108
|
+
export type ChromeOutletKind = "leading" | "title" | "trailing" | "search" | "items" | "tab" | "tabs" | "drawer_items" | "drawer_header" | "drawer_footer";
|
|
2109
|
+
/** RFC 0081 §5.2 — every outlet value, in the order of the RFC table. */
|
|
2110
|
+
export declare const CHROME_OUTLET_KINDS: readonly ChromeOutletKind[];
|
|
2093
2111
|
/**
|
|
2094
2112
|
* A live microphone waveform — the ACTIVE `audio_record` recording's level,
|
|
2095
2113
|
* drawn as bars that scroll in from the trailing edge.
|
|
@@ -2971,6 +2989,10 @@ export type CoreComponentBody = {
|
|
|
2971
2989
|
package: "himalaya";
|
|
2972
2990
|
type: "LiveWaveform";
|
|
2973
2991
|
props: LiveWaveformProps;
|
|
2992
|
+
} | {
|
|
2993
|
+
package: "himalaya";
|
|
2994
|
+
type: "ChromeOutlet";
|
|
2995
|
+
props: ChromeOutletProps;
|
|
2974
2996
|
} | {
|
|
2975
2997
|
package: "himalaya";
|
|
2976
2998
|
type: "Marquee";
|
|
@@ -3145,6 +3167,12 @@ export interface NavigationConfig {
|
|
|
3145
3167
|
* identical consecutive alerts show once. An inline `AlertDialog` component never enters the
|
|
3146
3168
|
* queue. Absent ⇒ today's behaviour. */
|
|
3147
3169
|
presentationQueue?: boolean;
|
|
3170
|
+
/** RFC 0081 §5.4 (L2) — the app-wide composed top bar: the default for tab-stack roots and for screens with no
|
|
3171
|
+
* `topBar`. Drawn once and kept across pushes (only its outlets read the new top screen). A screen's own
|
|
3172
|
+
* `topBar.content` replaces it while that screen is on top. Binds to the nav worker, `$chrome:` and literals. */
|
|
3173
|
+
topBarContent?: Component;
|
|
3174
|
+
/** RFC 0081 §5.4 (L1) — the app-wide accessory row under the title row. A screen's `topBar.accessory` replaces it. */
|
|
3175
|
+
topBarAccessory?: Component;
|
|
3148
3176
|
scheme: string;
|
|
3149
3177
|
deepLinkPatterns: DeepLinkPattern[];
|
|
3150
3178
|
linkableScreens: LinkableScreen[];
|
|
@@ -3229,6 +3257,10 @@ export interface SidebarConfig {
|
|
|
3229
3257
|
* The shell still owns the rail container, width and selection; `items` stay
|
|
3230
3258
|
* the fallback when the descriptor can't load. */
|
|
3231
3259
|
contentScreenId?: string;
|
|
3260
|
+
/** RFC 0081 §5.6 — an INLINE rail body: a component tree in the config, with no descriptor and no worker of its
|
|
3261
|
+
* own. `drawer_header` / `drawer_items` outlets draw the declarative parts. Fallback chain:
|
|
3262
|
+
* `contentScreenId` → `content` → `items`/`header`. */
|
|
3263
|
+
content?: Component;
|
|
3232
3264
|
}
|
|
3233
3265
|
/** RFC 0010 — drawer / hamburger-menu structure config. */
|
|
3234
3266
|
export interface DrawerConfig {
|
|
@@ -3244,6 +3276,10 @@ export interface DrawerConfig {
|
|
|
3244
3276
|
* the panel, scrim, swipe and open/close; the declarative parts stay the
|
|
3245
3277
|
* fallback when the descriptor can't load. */
|
|
3246
3278
|
contentScreenId?: string;
|
|
3279
|
+
/** RFC 0081 §5.6 — an INLINE panel body: a component tree in the config, with no descriptor and no worker of its
|
|
3280
|
+
* own. Binds to the nav worker, `$chrome:` and literals; `drawer_header` / `drawer_items` / `drawer_footer`
|
|
3281
|
+
* outlets draw the declarative parts. Fallback chain: `contentScreenId` → `content` → `items`/`header`/`footer`. */
|
|
3282
|
+
content?: Component;
|
|
3247
3283
|
}
|
|
3248
3284
|
/** RFC 0010 — the drawer's bottom profile footer (avatar + name + an optional
|
|
3249
3285
|
* trailing accent pill, e.g. a credits counter). name→screenId, pill→badgeScreenId. */
|
|
@@ -3392,6 +3428,15 @@ export interface TopBarConfig {
|
|
|
3392
3428
|
selection?: TopBarSelection;
|
|
3393
3429
|
/** RFC 0066 amendment "Bar types, styles, search, save and modes" — edit mode. Uses `dirtyPath`. */
|
|
3394
3430
|
edit?: TopBarEdit;
|
|
3431
|
+
/** RFC 0081 §5.4 (L2) — the bar's composed content: components plus `ChromeOutlet` nodes (`leading`, `title`,
|
|
3432
|
+
* `trailing`, `search`, `items`) that draw the declarative fields above with their L0 rules. The shell keeps the
|
|
3433
|
+
* container, visibility, `scrollBehavior`, the push/pop transition and the reading order. Replaces
|
|
3434
|
+
* `NavigationConfig.topBarContent` while this screen is on top. Needs a binary with RFC 0081 phase 2; older
|
|
3435
|
+
* binaries draw the L0 bar, so keep the declarative fields. */
|
|
3436
|
+
content?: Component;
|
|
3437
|
+
/** RFC 0081 §5.4 (L1) — a row under the title row, inside the bar's fill and glass, hidden with the bar
|
|
3438
|
+
* (a segmented control, filter chips, a scope bar). */
|
|
3439
|
+
accessory?: Component;
|
|
3395
3440
|
}
|
|
3396
3441
|
/** RFC 0066 amendment "Bar types, styles, search, save and modes" — where a transparent or immersive bar turns solid.
|
|
3397
3442
|
* The fade starts when the bottom edge of the content node `nodeId` reaches the bar's bottom edge; with no
|
|
@@ -3443,7 +3488,9 @@ export interface ToolbarItem {
|
|
|
3443
3488
|
disabledPath?: string;
|
|
3444
3489
|
/** Non-empty ⇒ the item opens a menu. */
|
|
3445
3490
|
menu?: MenuItem[];
|
|
3446
|
-
/**
|
|
3491
|
+
/** RFC 0081 L1 — a custom view on ANY placement, sized to the platform's item metrics. The item keeps its
|
|
3492
|
+
* `onTap`, `menu`, `role`, `disabled` and `badge`; `label` stays the accessible name. (Before RFC 0081:
|
|
3493
|
+
* `"principal"` only, a custom title view.) */
|
|
3447
3494
|
content?: Component;
|
|
3448
3495
|
/** Truthy ⇒ a progress indicator replaces the item. Unset/unresolved ⇒ false. */
|
|
3449
3496
|
loadingPath?: string;
|
|
@@ -6884,6 +6884,18 @@ var require_dist = __commonJS({
|
|
|
6884
6884
|
|
|
6885
6885
|
// ../../core/ts/src/schema.ts
|
|
6886
6886
|
var RICH_CONTENT_EDITOR_TOOLS = ["bold", "italic", "underline", "heading", "bullet", "ordered", "quote", "link", "image", "divider", "undo", "redo"];
|
|
6887
|
+
var CHROME_OUTLET_KINDS = [
|
|
6888
|
+
"leading",
|
|
6889
|
+
"title",
|
|
6890
|
+
"trailing",
|
|
6891
|
+
"search",
|
|
6892
|
+
"items",
|
|
6893
|
+
"tab",
|
|
6894
|
+
"tabs",
|
|
6895
|
+
"drawer_items",
|
|
6896
|
+
"drawer_header",
|
|
6897
|
+
"drawer_footer"
|
|
6898
|
+
];
|
|
6887
6899
|
function resolveTabBarPresentation(raw) {
|
|
6888
6900
|
return raw === "kit" ? "kit" : "native";
|
|
6889
6901
|
}
|
|
@@ -8943,8 +8955,8 @@ function isComponentAllowedForFamily(key, family) {
|
|
|
8943
8955
|
}
|
|
8944
8956
|
|
|
8945
8957
|
// ../../core/ts/src/bindings.ts
|
|
8946
|
-
var BINDING_SIGILS = ["service", "flag", "item", "t", "app"];
|
|
8947
|
-
var COLON_SIGILS = /* @__PURE__ */ new Set(["t", "app"]);
|
|
8958
|
+
var BINDING_SIGILS = ["service", "flag", "item", "t", "app", "chrome", "tab"];
|
|
8959
|
+
var COLON_SIGILS = /* @__PURE__ */ new Set(["t", "app", "chrome", "tab"]);
|
|
8948
8960
|
var BINDING_SIGIL_RE = new RegExp(
|
|
8949
8961
|
`^\\$(?:${BINDING_SIGILS.filter((s) => !COLON_SIGILS.has(s)).join("|")})\\b|^\\$(?:${[...COLON_SIGILS].join("|")}):`
|
|
8950
8962
|
);
|
|
@@ -10148,6 +10160,8 @@ var CORE_COMPONENTS = /* @__PURE__ */ new Set([
|
|
|
10148
10160
|
"himalaya.VoiceNote",
|
|
10149
10161
|
// Live microphone waveform — #4670
|
|
10150
10162
|
"himalaya.LiveWaveform",
|
|
10163
|
+
// Composed chrome — RFC 0081
|
|
10164
|
+
"himalaya.ChromeOutlet",
|
|
10151
10165
|
"himalaya.Marquee",
|
|
10152
10166
|
"himalaya.CollapsingHeader",
|
|
10153
10167
|
"himalaya.AvatarStrip",
|
|
@@ -16769,6 +16783,7 @@ export {
|
|
|
16769
16783
|
BUTTON_SIZES,
|
|
16770
16784
|
BUTTON_VARIANTS,
|
|
16771
16785
|
CHASSIS_GEOMETRY,
|
|
16786
|
+
CHROME_OUTLET_KINDS,
|
|
16772
16787
|
CORE_COMPONENTS,
|
|
16773
16788
|
DEFAULT_CONTENT_MAX,
|
|
16774
16789
|
DEFAULT_DISTRIBUTION,
|
|
@@ -6953,8 +6953,8 @@ var WIDGET_VOCABULARY = {
|
|
|
6953
6953
|
var WIDGET_COMPONENTS = new Set(Object.keys(WIDGET_VOCABULARY));
|
|
6954
6954
|
|
|
6955
6955
|
// ../../core/ts/src/bindings.ts
|
|
6956
|
-
var BINDING_SIGILS = ["service", "flag", "item", "t", "app"];
|
|
6957
|
-
var COLON_SIGILS = /* @__PURE__ */ new Set(["t", "app"]);
|
|
6956
|
+
var BINDING_SIGILS = ["service", "flag", "item", "t", "app", "chrome", "tab"];
|
|
6957
|
+
var COLON_SIGILS = /* @__PURE__ */ new Set(["t", "app", "chrome", "tab"]);
|
|
6958
6958
|
var BINDING_SIGIL_RE = new RegExp(
|
|
6959
6959
|
`^\\$(?:${BINDING_SIGILS.filter((s) => !COLON_SIGILS.has(s)).join("|")})\\b|^\\$(?:${[...COLON_SIGILS].join("|")}):`
|
|
6960
6960
|
);
|
|
@@ -9901,6 +9901,13 @@ function liveWaveform(props = {}, opts) {
|
|
|
9901
9901
|
modifiers: opts?.modifiers
|
|
9902
9902
|
};
|
|
9903
9903
|
}
|
|
9904
|
+
function chromeOutlet(outlet, opts) {
|
|
9905
|
+
return {
|
|
9906
|
+
id: opts?.id ?? auto("chromeOutlet"),
|
|
9907
|
+
body: { package: "himalaya", type: "ChromeOutlet", props: opts?.placement ? { outlet, placement: opts.placement } : { outlet } },
|
|
9908
|
+
modifiers: opts?.modifiers
|
|
9909
|
+
};
|
|
9910
|
+
}
|
|
9904
9911
|
function lottie(props, opts) {
|
|
9905
9912
|
return { id: opts?.id ?? auto("lottie"), body: { package: "himalaya", type: "Lottie", props } };
|
|
9906
9913
|
}
|
|
@@ -10085,6 +10092,8 @@ function deriveAppMeta(name, m, platforms = {}, provisioning = {}) {
|
|
|
10085
10092
|
topBarLogo: config.navigation?.topBarLogo,
|
|
10086
10093
|
topBarTitleAlign: config.navigation?.topBarTitleAlign,
|
|
10087
10094
|
presentationQueue: config.navigation?.presentationQueue,
|
|
10095
|
+
topBarContent: config.navigation?.topBarContent,
|
|
10096
|
+
topBarAccessory: config.navigation?.topBarAccessory,
|
|
10088
10097
|
splash: config.splash,
|
|
10089
10098
|
locale: config.locale,
|
|
10090
10099
|
deepLinkPatterns: config.navigation?.deepLinkPatterns,
|
|
@@ -10166,6 +10175,7 @@ export {
|
|
|
10166
10175
|
chart,
|
|
10167
10176
|
chip,
|
|
10168
10177
|
chipsInput,
|
|
10178
|
+
chromeOutlet,
|
|
10169
10179
|
collapsingHeader,
|
|
10170
10180
|
colorPicker,
|
|
10171
10181
|
dataTable,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"files": [
|
|
3
3
|
{
|
|
4
4
|
"name": "sw.js",
|
|
5
|
-
"bytes":
|
|
5
|
+
"bytes": 2790218
|
|
6
6
|
},
|
|
7
7
|
{
|
|
8
8
|
"name": "host.html",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"bytes": 24320
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
|
-
"name": "preview-deferred/
|
|
24
|
+
"name": "preview-deferred/0c2266c1d7d6e00c558adf2e3706e5ae360fdb6b5ca7663ed596d683a0f39f34.bin",
|
|
25
25
|
"bytes": 488215
|
|
26
26
|
},
|
|
27
27
|
{
|
|
@@ -79,10 +79,10 @@
|
|
|
79
79
|
],
|
|
80
80
|
"deferred": [
|
|
81
81
|
{
|
|
82
|
-
"key": "assets/pdf-
|
|
82
|
+
"key": "assets/pdf-BLURz08O.js",
|
|
83
83
|
"contentType": "application/javascript; charset=utf-8",
|
|
84
|
-
"sha256": "
|
|
85
|
-
"file": "preview-deferred/
|
|
84
|
+
"sha256": "0c2266c1d7d6e00c558adf2e3706e5ae360fdb6b5ca7663ed596d683a0f39f34",
|
|
85
|
+
"file": "preview-deferred/0c2266c1d7d6e00c558adf2e3706e5ae360fdb6b5ca7663ed596d683a0f39f34.bin"
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
88
|
"key": "assets/pdf.worker.min-BGnVRhRG.js",
|