@wix/himalaya-cli 0.1798.0 → 0.1800.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.
@@ -3330,6 +3330,48 @@ export interface TopBarConfig {
3330
3330
  /** RFC 0066 amendment "Title, leading and trailing completion" — "" / "auto" (default) | "leading" | "center".
3331
3331
  * Unknown values read as "auto". Per screen; `NavigationConfig.topBarTitleAlign` is the app-wide twin. */
3332
3332
  titleAlign?: string;
3333
+ /** RFC 0066 amendment "Bar types, styles, search, save and modes" — the tone of the cover image under an
3334
+ * `style: "immersive"` bar: "" / "dark" (default, white icons) | "light" (`#1A1B20` icons). Unknown ⇒ "dark". */
3335
+ coverTone?: string;
3336
+ /** RFC 0066 amendment "Bar types, styles, search, save and modes" (cover to solid) — a transparent or immersive bar stays
3337
+ * clear until this edge, then fades to its fill over 24pt. Unset ⇒ the 0→8pt ramp of a transparent bar. */
3338
+ solidAfter?: TopBarScrollEdge;
3339
+ /** RFC 0066 amendment "Bar types, styles, search, save and modes" — selection mode. */
3340
+ selection?: TopBarSelection;
3341
+ /** RFC 0066 amendment "Bar types, styles, search, save and modes" — edit mode. Uses `dirtyPath`. */
3342
+ edit?: TopBarEdit;
3343
+ }
3344
+ /** RFC 0066 amendment "Bar types, styles, search, save and modes" — where a transparent or immersive bar turns solid.
3345
+ * The fade starts when the bottom edge of the content node `nodeId` reaches the bar's bottom edge; with no
3346
+ * `nodeId`, or one the screen does not have, at the scroll `offset` (points). Both unset ⇒ 0. */
3347
+ export interface TopBarScrollEdge {
3348
+ nodeId?: string;
3349
+ offset?: number;
3350
+ }
3351
+ /** RFC 0066 amendment — selection mode. While `activePath` is truthy the bar shows Close (`onClose`), the count
3352
+ * title and the bulk `items`, which are disabled while the count is 0. */
3353
+ export interface TopBarSelection {
3354
+ /** `$service:` bool. Unset or unresolved ⇒ false: no mode. */
3355
+ activePath?: string;
3356
+ /** `$service:` number of selected items. Unresolved ⇒ 0. */
3357
+ countPath?: string;
3358
+ /** "{count}" is replaced by the count. "" ⇒ the localized "{count} selected". */
3359
+ titleFormat?: string;
3360
+ /** Close: the worker clears the selection and sets `activePath` false. */
3361
+ onClose?: Action;
3362
+ /** Bulk actions. iOS draws them in a bottom toolbar; Android two icons + More Actions. */
3363
+ items?: ToolbarItem[];
3364
+ /** Optional Select all: in More Actions on Android, a bar item on iOS and web. */
3365
+ selectAll?: ToolbarItem;
3366
+ }
3367
+ /** RFC 0066 amendment — edit mode. Outside the mode the bar shows Edit (`onEdit`); in it Done (`onDone`, disabled
3368
+ * until `TopBarConfig.dirtyPath` is truthy) and Cancel (`onCancel`, which asks to discard first when dirty). */
3369
+ export interface TopBarEdit {
3370
+ /** `$service:` bool. Unset or unresolved ⇒ false: not editing. */
3371
+ activePath?: string;
3372
+ onEdit?: Action;
3373
+ onDone?: Action;
3374
+ onCancel?: Action;
3333
3375
  }
3334
3376
  /** RFC 0066 §1 (+ its "top-bar gap items" amendment) — one top-bar item. Test id `toolbar.<id>`
3335
3377
  * (`toolbar-<id>` on web and React Native). Every tap carries an existing `Action`
@@ -3369,6 +3411,10 @@ export interface ToolbarItem {
3369
3411
  * the item's `onTap` and `onLongPress` fire. `avatarsPath` resolves on the screen, like the other
3370
3412
  * top-bar bindings. An "overflow" item draws its label row instead. */
3371
3413
  avatarStrip?: AvatarStripProps;
3414
+ /** RFC 0066 amendment "Bar types, styles, search, save and modes" — with `loadingPath` truthy for 30 s the shell
3415
+ * stops the spinner and dispatches this; the worker shows the failed state. Unset ⇒ the spinner stays.
3416
+ * "Still saving…" shows under the bar at 10 s either way. */
3417
+ onLoadingTimeout?: Action;
3372
3418
  }
3373
3419
  /** RFC 0066 amendment — an avatar item. Images are absolute https URLs (resolve a Wix
3374
3420
  * media id with `wixMediaUrl` before publishing). */
@@ -3829,9 +3875,10 @@ export interface SearchableConfig {
3829
3875
  onCancel?: Action;
3830
3876
  /** `$service:` bool: the search is busy. */
3831
3877
  loadingPath?: string;
3832
- /** Static suggestions. On the wire for a later release: no shell draws them yet (RFC 0010 decision 11). */
3878
+ /** Static suggestions, shown while the user types (RFC 0066 amendment "Bar types, styles, search, save and modes").
3879
+ * The validator warns until every shell draws them. */
3833
3880
  suggestions?: SearchSuggestion[];
3834
- /** `$service:` array of `{ id, label, icon? }`. Not drawn yet (decision 11). */
3881
+ /** `$service:` array of `{ id, label, icon? }`. */
3835
3882
  suggestionsPath?: string;
3836
3883
  /** `args.id` (+ `args.label`) of the tapped suggestion; a static suggestion's own `onTap` wins. */
3837
3884
  onSuggestionTap?: Action;
@@ -3841,6 +3888,18 @@ export interface SearchableConfig {
3841
3888
  scopePath?: string;
3842
3889
  /** `args.selectedId`. */
3843
3890
  onScopeChange?: Action;
3891
+ /** RFC 0066 amendment "Bar types, styles, search, save and modes" — `$service:` array of recent query strings,
3892
+ * shown while the query is empty. None ⇒ an empty area, no message. */
3893
+ recentsPath?: string;
3894
+ /** `args.value` (the recent query). Unset ⇒ the shell puts the query in the field and runs `onSubmit`. */
3895
+ onRecentTap?: Action;
3896
+ /** Clears the recents. Unset ⇒ no Clear control. */
3897
+ onClearRecents?: Action;
3898
+ /** `$service:` "" (results, default) | "empty" ("No results", the query kept) | "error" (the message and
3899
+ * Try Again). Unknown ⇒ "". */
3900
+ resultsStatePath?: string;
3901
+ /** Try Again of the error state. Unset ⇒ `onSubmit` with the same query. */
3902
+ onRetry?: Action;
3844
3903
  }
3845
3904
  /** RFC 0066 §2 — one static search suggestion (`SearchableConfig.suggestions`). */
3846
3905
  export interface SearchSuggestion {
@@ -485,6 +485,75 @@ export declare const screenDescriptorSchema: {
485
485
  readonly titleAlign: {
486
486
  readonly type: "string";
487
487
  };
488
+ readonly coverTone: {
489
+ readonly type: "string";
490
+ };
491
+ readonly solidAfter: {
492
+ readonly $ref: "#/$defs/topBarScrollEdge";
493
+ };
494
+ readonly selection: {
495
+ readonly $ref: "#/$defs/topBarSelection";
496
+ };
497
+ readonly edit: {
498
+ readonly $ref: "#/$defs/topBarEdit";
499
+ };
500
+ };
501
+ };
502
+ readonly topBarScrollEdge: {
503
+ readonly type: "object";
504
+ readonly additionalProperties: false;
505
+ readonly properties: {
506
+ readonly nodeId: {
507
+ readonly type: "string";
508
+ };
509
+ readonly offset: {
510
+ readonly type: "number";
511
+ };
512
+ };
513
+ };
514
+ readonly topBarSelection: {
515
+ readonly type: "object";
516
+ readonly additionalProperties: false;
517
+ readonly properties: {
518
+ readonly activePath: {
519
+ readonly type: "string";
520
+ };
521
+ readonly countPath: {
522
+ readonly type: "string";
523
+ };
524
+ readonly titleFormat: {
525
+ readonly type: "string";
526
+ };
527
+ readonly onClose: {
528
+ readonly $ref: "#/$defs/action";
529
+ };
530
+ readonly items: {
531
+ readonly type: "array";
532
+ readonly items: {
533
+ readonly $ref: "#/$defs/toolbarItem";
534
+ };
535
+ };
536
+ readonly selectAll: {
537
+ readonly $ref: "#/$defs/toolbarItem";
538
+ };
539
+ };
540
+ };
541
+ readonly topBarEdit: {
542
+ readonly type: "object";
543
+ readonly additionalProperties: false;
544
+ readonly properties: {
545
+ readonly activePath: {
546
+ readonly type: "string";
547
+ };
548
+ readonly onEdit: {
549
+ readonly $ref: "#/$defs/action";
550
+ };
551
+ readonly onDone: {
552
+ readonly $ref: "#/$defs/action";
553
+ };
554
+ readonly onCancel: {
555
+ readonly $ref: "#/$defs/action";
556
+ };
488
557
  };
489
558
  };
490
559
  readonly searchableConfig: {
@@ -542,6 +611,21 @@ export declare const screenDescriptorSchema: {
542
611
  readonly onScopeChange: {
543
612
  readonly $ref: "#/$defs/action";
544
613
  };
614
+ readonly recentsPath: {
615
+ readonly type: "string";
616
+ };
617
+ readonly onRecentTap: {
618
+ readonly $ref: "#/$defs/action";
619
+ };
620
+ readonly onClearRecents: {
621
+ readonly $ref: "#/$defs/action";
622
+ };
623
+ readonly resultsStatePath: {
624
+ readonly type: "string";
625
+ };
626
+ readonly onRetry: {
627
+ readonly $ref: "#/$defs/action";
628
+ };
545
629
  };
546
630
  };
547
631
  readonly searchSuggestion: {
@@ -638,6 +722,9 @@ export declare const screenDescriptorSchema: {
638
722
  readonly avatarStrip: {
639
723
  readonly $ref: "#/$defs/toolbarAvatarStrip";
640
724
  };
725
+ readonly onLoadingTimeout: {
726
+ readonly $ref: "#/$defs/action";
727
+ };
641
728
  };
642
729
  };
643
730
  readonly toolbarAvatarStrip: {
@@ -2067,6 +2154,75 @@ export declare const widgetSnapshotSchema: {
2067
2154
  readonly titleAlign: {
2068
2155
  readonly type: "string";
2069
2156
  };
2157
+ readonly coverTone: {
2158
+ readonly type: "string";
2159
+ };
2160
+ readonly solidAfter: {
2161
+ readonly $ref: "#/$defs/topBarScrollEdge";
2162
+ };
2163
+ readonly selection: {
2164
+ readonly $ref: "#/$defs/topBarSelection";
2165
+ };
2166
+ readonly edit: {
2167
+ readonly $ref: "#/$defs/topBarEdit";
2168
+ };
2169
+ };
2170
+ };
2171
+ readonly topBarScrollEdge: {
2172
+ readonly type: "object";
2173
+ readonly additionalProperties: false;
2174
+ readonly properties: {
2175
+ readonly nodeId: {
2176
+ readonly type: "string";
2177
+ };
2178
+ readonly offset: {
2179
+ readonly type: "number";
2180
+ };
2181
+ };
2182
+ };
2183
+ readonly topBarSelection: {
2184
+ readonly type: "object";
2185
+ readonly additionalProperties: false;
2186
+ readonly properties: {
2187
+ readonly activePath: {
2188
+ readonly type: "string";
2189
+ };
2190
+ readonly countPath: {
2191
+ readonly type: "string";
2192
+ };
2193
+ readonly titleFormat: {
2194
+ readonly type: "string";
2195
+ };
2196
+ readonly onClose: {
2197
+ readonly $ref: "#/$defs/action";
2198
+ };
2199
+ readonly items: {
2200
+ readonly type: "array";
2201
+ readonly items: {
2202
+ readonly $ref: "#/$defs/toolbarItem";
2203
+ };
2204
+ };
2205
+ readonly selectAll: {
2206
+ readonly $ref: "#/$defs/toolbarItem";
2207
+ };
2208
+ };
2209
+ };
2210
+ readonly topBarEdit: {
2211
+ readonly type: "object";
2212
+ readonly additionalProperties: false;
2213
+ readonly properties: {
2214
+ readonly activePath: {
2215
+ readonly type: "string";
2216
+ };
2217
+ readonly onEdit: {
2218
+ readonly $ref: "#/$defs/action";
2219
+ };
2220
+ readonly onDone: {
2221
+ readonly $ref: "#/$defs/action";
2222
+ };
2223
+ readonly onCancel: {
2224
+ readonly $ref: "#/$defs/action";
2225
+ };
2070
2226
  };
2071
2227
  };
2072
2228
  readonly searchableConfig: {
@@ -2124,6 +2280,21 @@ export declare const widgetSnapshotSchema: {
2124
2280
  readonly onScopeChange: {
2125
2281
  readonly $ref: "#/$defs/action";
2126
2282
  };
2283
+ readonly recentsPath: {
2284
+ readonly type: "string";
2285
+ };
2286
+ readonly onRecentTap: {
2287
+ readonly $ref: "#/$defs/action";
2288
+ };
2289
+ readonly onClearRecents: {
2290
+ readonly $ref: "#/$defs/action";
2291
+ };
2292
+ readonly resultsStatePath: {
2293
+ readonly type: "string";
2294
+ };
2295
+ readonly onRetry: {
2296
+ readonly $ref: "#/$defs/action";
2297
+ };
2127
2298
  };
2128
2299
  };
2129
2300
  readonly searchSuggestion: {
@@ -2220,6 +2391,9 @@ export declare const widgetSnapshotSchema: {
2220
2391
  readonly avatarStrip: {
2221
2392
  readonly $ref: "#/$defs/toolbarAvatarStrip";
2222
2393
  };
2394
+ readonly onLoadingTimeout: {
2395
+ readonly $ref: "#/$defs/action";
2396
+ };
2223
2397
  };
2224
2398
  };
2225
2399
  readonly toolbarAvatarStrip: {
@@ -9259,11 +9259,47 @@ var screenDescriptorSchema = {
9259
9259
  dirtyPath: { type: "string" },
9260
9260
  // RFC 0066 amendment "long press, bar visibility, tab-bar visibility" (field 15).
9261
9261
  visibilityPath: { type: "string" },
9262
- // RFC 0066 amendment "Title, leading and trailing completion" (field 17; 16 is `cover_tone`).
9263
- titleAlign: { type: "string" }
9262
+ // RFC 0066 amendment "Title, leading and trailing completion" (field 17).
9263
+ titleAlign: { type: "string" },
9264
+ // RFC 0066 amendment "Bar types, styles, search, save and modes" (fields 16, 18–20).
9265
+ coverTone: { type: "string" },
9266
+ solidAfter: { $ref: "#/$defs/topBarScrollEdge" },
9267
+ selection: { $ref: "#/$defs/topBarSelection" },
9268
+ edit: { $ref: "#/$defs/topBarEdit" }
9264
9269
  }
9265
9270
  },
9266
- // RFC 0010 "Native top-bar search" (SearchableConfig fields 1–15). `placement` stays a free string.
9271
+ topBarScrollEdge: {
9272
+ type: "object",
9273
+ additionalProperties: false,
9274
+ properties: {
9275
+ nodeId: { type: "string" },
9276
+ offset: { type: "number" }
9277
+ }
9278
+ },
9279
+ topBarSelection: {
9280
+ type: "object",
9281
+ additionalProperties: false,
9282
+ properties: {
9283
+ activePath: { type: "string" },
9284
+ countPath: { type: "string" },
9285
+ titleFormat: { type: "string" },
9286
+ onClose: { $ref: "#/$defs/action" },
9287
+ items: { type: "array", items: { $ref: "#/$defs/toolbarItem" } },
9288
+ selectAll: { $ref: "#/$defs/toolbarItem" }
9289
+ }
9290
+ },
9291
+ topBarEdit: {
9292
+ type: "object",
9293
+ additionalProperties: false,
9294
+ properties: {
9295
+ activePath: { type: "string" },
9296
+ onEdit: { $ref: "#/$defs/action" },
9297
+ onDone: { $ref: "#/$defs/action" },
9298
+ onCancel: { $ref: "#/$defs/action" }
9299
+ }
9300
+ },
9301
+ // RFC 0010 "Native top-bar search" (SearchableConfig fields 1–15) + RFC 0066 amendment "Bar types, styles,
9302
+ // search, save and modes" (16–20). `placement` and the results state stay free strings.
9267
9303
  searchableConfig: {
9268
9304
  type: "object",
9269
9305
  additionalProperties: false,
@@ -9282,7 +9318,12 @@ var screenDescriptorSchema = {
9282
9318
  onSuggestionTap: { $ref: "#/$defs/action" },
9283
9319
  scopes: { type: "array", items: { $ref: "#/$defs/searchScope" } },
9284
9320
  scopePath: { type: "string" },
9285
- onScopeChange: { $ref: "#/$defs/action" }
9321
+ onScopeChange: { $ref: "#/$defs/action" },
9322
+ recentsPath: { type: "string" },
9323
+ onRecentTap: { $ref: "#/$defs/action" },
9324
+ onClearRecents: { $ref: "#/$defs/action" },
9325
+ resultsStatePath: { type: "string" },
9326
+ onRetry: { $ref: "#/$defs/action" }
9286
9327
  }
9287
9328
  },
9288
9329
  searchSuggestion: {
@@ -9328,7 +9369,9 @@ var screenDescriptorSchema = {
9328
9369
  onLongPress: { $ref: "#/$defs/action" },
9329
9370
  badge: { $ref: "#/$defs/navBadge" },
9330
9371
  // RFC 0066 amendment "Top-bar avatar strip" (field 16) — the AvatarStrip props, drawn in the bar.
9331
- avatarStrip: { $ref: "#/$defs/toolbarAvatarStrip" }
9372
+ avatarStrip: { $ref: "#/$defs/toolbarAvatarStrip" },
9373
+ // RFC 0066 amendment "Bar types, styles, search, save and modes" (field 17).
9374
+ onLoadingTimeout: { $ref: "#/$defs/action" }
9332
9375
  }
9333
9376
  },
9334
9377
  // The proto `AvatarStripProps` as a toolbar item carries it. `caption`, `ringGradient` and `onTap` are
@@ -7271,11 +7271,47 @@ var screenDescriptorSchema = {
7271
7271
  dirtyPath: { type: "string" },
7272
7272
  // RFC 0066 amendment "long press, bar visibility, tab-bar visibility" (field 15).
7273
7273
  visibilityPath: { type: "string" },
7274
- // RFC 0066 amendment "Title, leading and trailing completion" (field 17; 16 is `cover_tone`).
7275
- titleAlign: { type: "string" }
7274
+ // RFC 0066 amendment "Title, leading and trailing completion" (field 17).
7275
+ titleAlign: { type: "string" },
7276
+ // RFC 0066 amendment "Bar types, styles, search, save and modes" (fields 16, 18–20).
7277
+ coverTone: { type: "string" },
7278
+ solidAfter: { $ref: "#/$defs/topBarScrollEdge" },
7279
+ selection: { $ref: "#/$defs/topBarSelection" },
7280
+ edit: { $ref: "#/$defs/topBarEdit" }
7276
7281
  }
7277
7282
  },
7278
- // RFC 0010 "Native top-bar search" (SearchableConfig fields 1–15). `placement` stays a free string.
7283
+ topBarScrollEdge: {
7284
+ type: "object",
7285
+ additionalProperties: false,
7286
+ properties: {
7287
+ nodeId: { type: "string" },
7288
+ offset: { type: "number" }
7289
+ }
7290
+ },
7291
+ topBarSelection: {
7292
+ type: "object",
7293
+ additionalProperties: false,
7294
+ properties: {
7295
+ activePath: { type: "string" },
7296
+ countPath: { type: "string" },
7297
+ titleFormat: { type: "string" },
7298
+ onClose: { $ref: "#/$defs/action" },
7299
+ items: { type: "array", items: { $ref: "#/$defs/toolbarItem" } },
7300
+ selectAll: { $ref: "#/$defs/toolbarItem" }
7301
+ }
7302
+ },
7303
+ topBarEdit: {
7304
+ type: "object",
7305
+ additionalProperties: false,
7306
+ properties: {
7307
+ activePath: { type: "string" },
7308
+ onEdit: { $ref: "#/$defs/action" },
7309
+ onDone: { $ref: "#/$defs/action" },
7310
+ onCancel: { $ref: "#/$defs/action" }
7311
+ }
7312
+ },
7313
+ // RFC 0010 "Native top-bar search" (SearchableConfig fields 1–15) + RFC 0066 amendment "Bar types, styles,
7314
+ // search, save and modes" (16–20). `placement` and the results state stay free strings.
7279
7315
  searchableConfig: {
7280
7316
  type: "object",
7281
7317
  additionalProperties: false,
@@ -7294,7 +7330,12 @@ var screenDescriptorSchema = {
7294
7330
  onSuggestionTap: { $ref: "#/$defs/action" },
7295
7331
  scopes: { type: "array", items: { $ref: "#/$defs/searchScope" } },
7296
7332
  scopePath: { type: "string" },
7297
- onScopeChange: { $ref: "#/$defs/action" }
7333
+ onScopeChange: { $ref: "#/$defs/action" },
7334
+ recentsPath: { type: "string" },
7335
+ onRecentTap: { $ref: "#/$defs/action" },
7336
+ onClearRecents: { $ref: "#/$defs/action" },
7337
+ resultsStatePath: { type: "string" },
7338
+ onRetry: { $ref: "#/$defs/action" }
7298
7339
  }
7299
7340
  },
7300
7341
  searchSuggestion: {
@@ -7340,7 +7381,9 @@ var screenDescriptorSchema = {
7340
7381
  onLongPress: { $ref: "#/$defs/action" },
7341
7382
  badge: { $ref: "#/$defs/navBadge" },
7342
7383
  // RFC 0066 amendment "Top-bar avatar strip" (field 16) — the AvatarStrip props, drawn in the bar.
7343
- avatarStrip: { $ref: "#/$defs/toolbarAvatarStrip" }
7384
+ avatarStrip: { $ref: "#/$defs/toolbarAvatarStrip" },
7385
+ // RFC 0066 amendment "Bar types, styles, search, save and modes" (field 17).
7386
+ onLoadingTimeout: { $ref: "#/$defs/action" }
7344
7387
  }
7345
7388
  },
7346
7389
  // The proto `AvatarStripProps` as a toolbar item carries it. `caption`, `ringGradient` and `onTap` are
@@ -2,7 +2,7 @@
2
2
  "files": [
3
3
  {
4
4
  "name": "sw.js",
5
- "bytes": 2606652
5
+ "bytes": 2607192
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/7838236432e18e6d8b08481d145add5e31d7bfe9573403d3365e141f749e13ff.bin",
24
+ "name": "preview-deferred/ec390e530da7eb0a2f0efa0267b2fb63e1c4f79d4695418e4a97274d92816788.bin",
25
25
  "bytes": 488215
26
26
  },
27
27
  {
@@ -79,10 +79,10 @@
79
79
  ],
80
80
  "deferred": [
81
81
  {
82
- "key": "assets/pdf-D87DNAnY.js",
82
+ "key": "assets/pdf-D6kY5CbD.js",
83
83
  "contentType": "application/javascript; charset=utf-8",
84
- "sha256": "7838236432e18e6d8b08481d145add5e31d7bfe9573403d3365e141f749e13ff",
85
- "file": "preview-deferred/7838236432e18e6d8b08481d145add5e31d7bfe9573403d3365e141f749e13ff.bin"
84
+ "sha256": "ec390e530da7eb0a2f0efa0267b2fb63e1c4f79d4695418e4a97274d92816788",
85
+ "file": "preview-deferred/ec390e530da7eb0a2f0efa0267b2fb63e1c4f79d4695418e4a97274d92816788.bin"
86
86
  },
87
87
  {
88
88
  "key": "assets/pdf.worker.min-BGnVRhRG.js",