@wix/himalaya-cli 0.1949.0 → 0.1951.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.
Files changed (252) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/network/src/index.d.ts +22 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/sdk-types/src/capabilities.generated.d.ts +1 -1
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/message-format.d.ts +1 -1
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +10 -0
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/validator.d.ts +37 -0
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/audio-record.mjs +1 -1
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calendar.mjs +1 -1
  8. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calls.mjs +1 -1
  9. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/contacts.mjs +1 -1
  10. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +38 -1
  11. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/l10n.mjs +1 -8
  12. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/location.mjs +1 -1
  13. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/motion.mjs +1 -1
  14. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/network.mjs +19 -3
  15. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/photos.mjs +1 -1
  16. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +1 -8
  17. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdk-types.mjs +1 -1
  18. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +9 -0
  19. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/tasks.mjs +1 -1
  20. package/dist/browser-plane/assets.json +5 -5
  21. package/dist/browser-plane/preview-deferred/{a8cfd0e17359578587e8937e88dedd40b46d533f08b4d2fdac4c47d5bae6f385.bin → 15c152934a97a0d3de15946239a0037a38603f1972d2288b59945bd28a0fd237.bin} +1 -1
  22. package/dist/browser-plane/sw.js +7 -7
  23. package/dist/cli.mjs +206 -123
  24. package/dist/preview-assets.generated.bin +0 -0
  25. package/guides/component-index.md +1 -1
  26. package/guides/component-reference.json +1 -1
  27. package/guides/component-reference.md +4 -0
  28. package/guides/one-app-to-himi-app.md +7 -4
  29. package/guides/release-notes.md +11 -0
  30. package/guides/sdk-reference.json +28 -0
  31. package/guides/web-page-sdk-reference.md +1 -1
  32. package/package.json +2 -2
  33. package/templates/beauty-salon/tier5-src/_shared/member-bookings.ts +48 -1
  34. package/templates/beauty-salon/tier5-src/himi-booking-bookings/index.ts +10 -30
  35. package/templates/branded-lite/recipes/blog-list-thumb-start.json +56 -5
  36. package/templates/branded-lite/recipes/blog-list.json +56 -5
  37. package/templates/branded-lite/recipes/blog-see-all.json +1 -1
  38. package/templates/branded-lite/recipes/upcoming-bookings.json +87 -30
  39. package/templates/branded-lite/tier5-src/_shared/blog-list.ts +34 -10
  40. package/templates/branded-lite/tier5-src/_shared/member-bookings.ts +48 -1
  41. package/templates/branded-lite/tier5-src/_shared/upcoming-bookings-section.ts +27 -5
  42. package/templates/branded-lite/tier5-src/himi-booking-bookings/index.ts +10 -30
  43. package/templates/community-club/l10n/ar.json +44 -0
  44. package/templates/community-club/l10n/cs.json +44 -0
  45. package/templates/community-club/l10n/da.json +44 -0
  46. package/templates/community-club/l10n/de.json +44 -0
  47. package/templates/community-club/l10n/el.json +44 -0
  48. package/templates/community-club/l10n/en.json +27 -0
  49. package/templates/community-club/l10n/es.json +44 -0
  50. package/templates/community-club/l10n/fi.json +44 -0
  51. package/templates/community-club/l10n/fr.json +44 -0
  52. package/templates/community-club/l10n/he.json +36 -0
  53. package/templates/community-club/l10n/hu.json +44 -0
  54. package/templates/community-club/l10n/id.json +44 -0
  55. package/templates/community-club/l10n/it.json +44 -0
  56. package/templates/community-club/l10n/ja.json +44 -0
  57. package/templates/community-club/l10n/ko.json +44 -0
  58. package/templates/community-club/l10n/lt.json +44 -0
  59. package/templates/community-club/l10n/nl.json +44 -0
  60. package/templates/community-club/l10n/no.json +44 -0
  61. package/templates/community-club/l10n/pl.json +44 -0
  62. package/templates/community-club/l10n/pt.json +44 -0
  63. package/templates/community-club/l10n/ru.json +44 -0
  64. package/templates/community-club/l10n/sv.json +44 -0
  65. package/templates/community-club/l10n/th.json +44 -0
  66. package/templates/community-club/l10n/tr.json +44 -0
  67. package/templates/community-club/l10n/uk.json +44 -0
  68. package/templates/community-club/l10n/vi.json +44 -0
  69. package/templates/community-club/l10n/zh.json +44 -0
  70. package/templates/community-club/tier5-src/_shared/member-bookings.ts +48 -1
  71. package/templates/events-meetups/l10n/ar.json +44 -0
  72. package/templates/events-meetups/l10n/cs.json +44 -0
  73. package/templates/events-meetups/l10n/da.json +44 -0
  74. package/templates/events-meetups/l10n/de.json +44 -0
  75. package/templates/events-meetups/l10n/el.json +44 -0
  76. package/templates/events-meetups/l10n/en.json +27 -0
  77. package/templates/events-meetups/l10n/es.json +44 -0
  78. package/templates/events-meetups/l10n/fi.json +44 -0
  79. package/templates/events-meetups/l10n/fr.json +44 -0
  80. package/templates/events-meetups/l10n/he.json +36 -0
  81. package/templates/events-meetups/l10n/hu.json +44 -0
  82. package/templates/events-meetups/l10n/id.json +44 -0
  83. package/templates/events-meetups/l10n/it.json +44 -0
  84. package/templates/events-meetups/l10n/ja.json +44 -0
  85. package/templates/events-meetups/l10n/ko.json +44 -0
  86. package/templates/events-meetups/l10n/lt.json +44 -0
  87. package/templates/events-meetups/l10n/nl.json +44 -0
  88. package/templates/events-meetups/l10n/no.json +44 -0
  89. package/templates/events-meetups/l10n/pl.json +44 -0
  90. package/templates/events-meetups/l10n/pt.json +44 -0
  91. package/templates/events-meetups/l10n/ru.json +44 -0
  92. package/templates/events-meetups/l10n/sv.json +44 -0
  93. package/templates/events-meetups/l10n/th.json +44 -0
  94. package/templates/events-meetups/l10n/tr.json +44 -0
  95. package/templates/events-meetups/l10n/uk.json +44 -0
  96. package/templates/events-meetups/l10n/vi.json +44 -0
  97. package/templates/events-meetups/l10n/zh.json +44 -0
  98. package/templates/events-meetups/tier5-src/_shared/member-bookings.ts +48 -1
  99. package/templates/fitness-gym/tier5-src/_shared/member-bookings.ts +48 -1
  100. package/templates/fitness-gym/tier5-src/himi-booking-bookings/index.ts +10 -30
  101. package/templates/gym-fitness/tier5-src/_shared/member-bookings.ts +48 -1
  102. package/templates/gym-fitness/tier5-src/himi-booking-bookings/index.ts +10 -30
  103. package/templates/medical-services/tier5-src/_shared/member-bookings.ts +48 -1
  104. package/templates/medical-services/tier5-src/himi-booking-bookings/index.ts +10 -30
  105. package/templates/nonprofit-cause/l10n/ar.json +38 -0
  106. package/templates/nonprofit-cause/l10n/cs.json +38 -0
  107. package/templates/nonprofit-cause/l10n/da.json +38 -0
  108. package/templates/nonprofit-cause/l10n/de.json +38 -0
  109. package/templates/nonprofit-cause/l10n/el.json +38 -0
  110. package/templates/nonprofit-cause/l10n/en.json +20 -0
  111. package/templates/nonprofit-cause/l10n/es.json +38 -0
  112. package/templates/nonprofit-cause/l10n/fi.json +38 -0
  113. package/templates/nonprofit-cause/l10n/fr.json +38 -0
  114. package/templates/nonprofit-cause/l10n/he.json +31 -0
  115. package/templates/nonprofit-cause/l10n/hu.json +38 -0
  116. package/templates/nonprofit-cause/l10n/id.json +38 -0
  117. package/templates/nonprofit-cause/l10n/it.json +38 -0
  118. package/templates/nonprofit-cause/l10n/ja.json +38 -0
  119. package/templates/nonprofit-cause/l10n/ko.json +38 -0
  120. package/templates/nonprofit-cause/l10n/lt.json +38 -0
  121. package/templates/nonprofit-cause/l10n/nl.json +38 -0
  122. package/templates/nonprofit-cause/l10n/no.json +38 -0
  123. package/templates/nonprofit-cause/l10n/pl.json +38 -0
  124. package/templates/nonprofit-cause/l10n/pt.json +38 -0
  125. package/templates/nonprofit-cause/l10n/ru.json +38 -0
  126. package/templates/nonprofit-cause/l10n/sv.json +38 -0
  127. package/templates/nonprofit-cause/l10n/th.json +38 -0
  128. package/templates/nonprofit-cause/l10n/tr.json +38 -0
  129. package/templates/nonprofit-cause/l10n/uk.json +38 -0
  130. package/templates/nonprofit-cause/l10n/vi.json +38 -0
  131. package/templates/nonprofit-cause/l10n/zh.json +38 -0
  132. package/templates/nonprofit-cause/tier5-src/_shared/member-bookings.ts +48 -1
  133. package/templates/personal-fitness-trainer/tier5-src/_shared/member-bookings.ts +48 -1
  134. package/templates/personal-fitness-trainer/tier5-src/himi-booking-bookings/index.ts +10 -30
  135. package/templates/podcast-creator/l10n/ar.json +38 -0
  136. package/templates/podcast-creator/l10n/cs.json +38 -0
  137. package/templates/podcast-creator/l10n/da.json +38 -0
  138. package/templates/podcast-creator/l10n/de.json +38 -0
  139. package/templates/podcast-creator/l10n/el.json +38 -0
  140. package/templates/podcast-creator/l10n/en.json +20 -0
  141. package/templates/podcast-creator/l10n/es.json +38 -0
  142. package/templates/podcast-creator/l10n/fi.json +38 -0
  143. package/templates/podcast-creator/l10n/fr.json +38 -0
  144. package/templates/podcast-creator/l10n/he.json +31 -0
  145. package/templates/podcast-creator/l10n/hu.json +38 -0
  146. package/templates/podcast-creator/l10n/id.json +38 -0
  147. package/templates/podcast-creator/l10n/it.json +38 -0
  148. package/templates/podcast-creator/l10n/ja.json +38 -0
  149. package/templates/podcast-creator/l10n/ko.json +38 -0
  150. package/templates/podcast-creator/l10n/lt.json +38 -0
  151. package/templates/podcast-creator/l10n/nl.json +38 -0
  152. package/templates/podcast-creator/l10n/no.json +38 -0
  153. package/templates/podcast-creator/l10n/pl.json +38 -0
  154. package/templates/podcast-creator/l10n/pt.json +38 -0
  155. package/templates/podcast-creator/l10n/ru.json +38 -0
  156. package/templates/podcast-creator/l10n/sv.json +38 -0
  157. package/templates/podcast-creator/l10n/th.json +38 -0
  158. package/templates/podcast-creator/l10n/tr.json +38 -0
  159. package/templates/podcast-creator/l10n/uk.json +38 -0
  160. package/templates/podcast-creator/l10n/vi.json +38 -0
  161. package/templates/podcast-creator/l10n/zh.json +38 -0
  162. package/templates/podcast-creator/tier5-src/_shared/member-bookings.ts +48 -1
  163. package/templates/portfolio-creative/l10n/ar.json +38 -0
  164. package/templates/portfolio-creative/l10n/cs.json +38 -0
  165. package/templates/portfolio-creative/l10n/da.json +38 -0
  166. package/templates/portfolio-creative/l10n/de.json +38 -0
  167. package/templates/portfolio-creative/l10n/el.json +38 -0
  168. package/templates/portfolio-creative/l10n/en.json +20 -0
  169. package/templates/portfolio-creative/l10n/es.json +38 -0
  170. package/templates/portfolio-creative/l10n/fi.json +38 -0
  171. package/templates/portfolio-creative/l10n/fr.json +38 -0
  172. package/templates/portfolio-creative/l10n/he.json +31 -0
  173. package/templates/portfolio-creative/l10n/hu.json +38 -0
  174. package/templates/portfolio-creative/l10n/id.json +38 -0
  175. package/templates/portfolio-creative/l10n/it.json +38 -0
  176. package/templates/portfolio-creative/l10n/ja.json +38 -0
  177. package/templates/portfolio-creative/l10n/ko.json +38 -0
  178. package/templates/portfolio-creative/l10n/lt.json +38 -0
  179. package/templates/portfolio-creative/l10n/nl.json +38 -0
  180. package/templates/portfolio-creative/l10n/no.json +38 -0
  181. package/templates/portfolio-creative/l10n/pl.json +38 -0
  182. package/templates/portfolio-creative/l10n/pt.json +38 -0
  183. package/templates/portfolio-creative/l10n/ru.json +38 -0
  184. package/templates/portfolio-creative/l10n/sv.json +38 -0
  185. package/templates/portfolio-creative/l10n/th.json +38 -0
  186. package/templates/portfolio-creative/l10n/tr.json +38 -0
  187. package/templates/portfolio-creative/l10n/uk.json +38 -0
  188. package/templates/portfolio-creative/l10n/vi.json +38 -0
  189. package/templates/portfolio-creative/l10n/zh.json +38 -0
  190. package/templates/portfolio-creative/tier5-src/_shared/member-bookings.ts +48 -1
  191. package/templates/professional-services/tier5-src/_shared/member-bookings.ts +48 -1
  192. package/templates/professional-services/tier5-src/himi-booking-bookings/index.ts +10 -30
  193. package/templates/restaurant/l10n/ar.json +38 -0
  194. package/templates/restaurant/l10n/cs.json +38 -0
  195. package/templates/restaurant/l10n/da.json +38 -0
  196. package/templates/restaurant/l10n/de.json +38 -0
  197. package/templates/restaurant/l10n/el.json +38 -0
  198. package/templates/restaurant/l10n/en.json +20 -0
  199. package/templates/restaurant/l10n/es.json +38 -0
  200. package/templates/restaurant/l10n/fi.json +38 -0
  201. package/templates/restaurant/l10n/fr.json +38 -0
  202. package/templates/restaurant/l10n/he.json +31 -0
  203. package/templates/restaurant/l10n/hu.json +38 -0
  204. package/templates/restaurant/l10n/id.json +38 -0
  205. package/templates/restaurant/l10n/it.json +38 -0
  206. package/templates/restaurant/l10n/ja.json +38 -0
  207. package/templates/restaurant/l10n/ko.json +38 -0
  208. package/templates/restaurant/l10n/lt.json +38 -0
  209. package/templates/restaurant/l10n/nl.json +38 -0
  210. package/templates/restaurant/l10n/no.json +38 -0
  211. package/templates/restaurant/l10n/pl.json +38 -0
  212. package/templates/restaurant/l10n/pt.json +38 -0
  213. package/templates/restaurant/l10n/ru.json +38 -0
  214. package/templates/restaurant/l10n/sv.json +38 -0
  215. package/templates/restaurant/l10n/th.json +38 -0
  216. package/templates/restaurant/l10n/tr.json +38 -0
  217. package/templates/restaurant/l10n/uk.json +38 -0
  218. package/templates/restaurant/l10n/vi.json +38 -0
  219. package/templates/restaurant/l10n/zh.json +38 -0
  220. package/templates/restaurant/tier5-src/_shared/member-bookings.ts +48 -1
  221. package/templates/retail-store/l10n/ar.json +38 -0
  222. package/templates/retail-store/l10n/cs.json +38 -0
  223. package/templates/retail-store/l10n/da.json +38 -0
  224. package/templates/retail-store/l10n/de.json +38 -0
  225. package/templates/retail-store/l10n/el.json +38 -0
  226. package/templates/retail-store/l10n/en.json +20 -0
  227. package/templates/retail-store/l10n/es.json +38 -0
  228. package/templates/retail-store/l10n/fi.json +38 -0
  229. package/templates/retail-store/l10n/fr.json +38 -0
  230. package/templates/retail-store/l10n/he.json +31 -0
  231. package/templates/retail-store/l10n/hu.json +38 -0
  232. package/templates/retail-store/l10n/id.json +38 -0
  233. package/templates/retail-store/l10n/it.json +38 -0
  234. package/templates/retail-store/l10n/ja.json +38 -0
  235. package/templates/retail-store/l10n/ko.json +38 -0
  236. package/templates/retail-store/l10n/lt.json +38 -0
  237. package/templates/retail-store/l10n/nl.json +38 -0
  238. package/templates/retail-store/l10n/no.json +38 -0
  239. package/templates/retail-store/l10n/pl.json +38 -0
  240. package/templates/retail-store/l10n/pt.json +38 -0
  241. package/templates/retail-store/l10n/ru.json +38 -0
  242. package/templates/retail-store/l10n/sv.json +38 -0
  243. package/templates/retail-store/l10n/th.json +38 -0
  244. package/templates/retail-store/l10n/tr.json +38 -0
  245. package/templates/retail-store/l10n/uk.json +38 -0
  246. package/templates/retail-store/l10n/vi.json +38 -0
  247. package/templates/retail-store/l10n/zh.json +38 -0
  248. package/templates/retail-store/tier5-src/_shared/member-bookings.ts +48 -1
  249. package/templates/salon-spa/tier5-src/_shared/member-bookings.ts +48 -1
  250. package/templates/salon-spa/tier5-src/himi-booking-bookings/index.ts +10 -30
  251. package/templates/yoga-studio/tier5-src/_shared/member-bookings.ts +48 -1
  252. package/templates/yoga-studio/tier5-src/himi-booking-bookings/index.ts +10 -30
@@ -37,3 +37,25 @@ export declare function status(): Promise<NetworkStatus>;
37
37
  * ```
38
38
  */
39
39
  export declare function subscribe(handler: string): Promise<NetworkStatus>;
40
+ /** One answer from {@link watchNext}: a settled change, a quiet window, or the end of the watch. */
41
+ export type NetworkWatchEvent = {
42
+ event: "change" | "timeout";
43
+ status: NetworkStatus;
44
+ } | {
45
+ event: "ended";
46
+ };
47
+ /**
48
+ * Start a change watch — the pull twin of {@link subscribe}, for a WebView page, which has no
49
+ * worker to push into. Resolves with the watch id and the status at the moment of starting;
50
+ * loop on {@link watchNext} and call {@link watchStop} when done. Changes are debounced and
51
+ * deduped exactly as `subscribe` does. Returns `null` where the host has no network source.
52
+ */
53
+ export declare function watchStart(): Promise<{
54
+ watchId: string;
55
+ status: NetworkStatus;
56
+ } | null>;
57
+ /** Park until the next settled change (`change`), the window elapses (`timeout`, with the
58
+ * current status), or the watch is stopped (`ended`). */
59
+ export declare function watchNext(watchId: string, timeoutMs?: number): Promise<NetworkWatchEvent>;
60
+ /** Stop a watch; a parked {@link watchNext} resolves `ended`. */
61
+ export declare function watchStop(watchId: string): Promise<void>;
@@ -27,7 +27,7 @@ export declare const CAPABILITY_REGISTRY: {
27
27
  readonly location: readonly ["backgroundStart", "backgroundStop", "getCurrent", "getPermissionStatus", "regionAdd", "regionClear", "regionList", "regionNext", "regionRemove", "regionSupport", "requestPermission", "watchNext", "watchStart", "watchStop"];
28
28
  readonly media_playback: readonly ["download", "getCapabilities", "getState", "next", "pause", "pictureInPicture", "play", "presentFullscreen", "previous", "release", "removeDownload", "seek", "seekTo", "setMuted", "setQueue", "setRate", "skip", "status", "stop", "subscribeStatus", "unsubscribeStatus"];
29
29
  readonly motion: readonly ["availability", "getAltitude", "getHeading", "getPermissionStatus", "getStepCount", "openStepHistorySetup", "requestPermission", "watchNext", "watchStart", "watchStop"];
30
- readonly network: readonly ["status", "subscribe"];
30
+ readonly network: readonly ["status", "subscribe", "watchNext", "watchStart", "watchStop"];
31
31
  readonly on_device_ai: readonly ["availability", "generateText", "proofreadText", "rewriteText", "summarizeText"];
32
32
  readonly open_url: readonly ["canOpen", "open"];
33
33
  readonly pdf: readonly ["isAvailable", "open"];
@@ -10,7 +10,7 @@ export type PluralCategory = "zero" | "one" | "two" | "few" | "many" | "other";
10
10
  */
11
11
  export declare function pluralCategory(n: number, locale: string): PluralCategory;
12
12
  /**
13
- * The explicit CLDR table used where ECMA-402 does not exist (QuickJS: watchOS, Wear).
13
+ * The explicit CLDR table every renderer uses (web, Swift and Kotlin ports alike).
14
14
  *
15
15
  * EXPORTED so a test can compare it against `Intl.PluralRules` directly. Asserting
16
16
  * through `pluralCategory` cannot check it: on any engine that has `Intl` the branch
@@ -128,6 +128,12 @@ export interface Gradient {
128
128
  start?: string;
129
129
  end?: string;
130
130
  }
131
+ /** #6663 — `Modifiers.topBand`. `extent`: `"bar"` (default) = the top bar's inset; `"bar+status"` = that plus one more
132
+ * status-bar height. Unknown ⇒ `"bar"`. */
133
+ export interface TopBand {
134
+ gradient?: Gradient;
135
+ extent?: string;
136
+ }
131
137
  /** Motion grammar (Batch 1) — enter/exit transition for a subtree. Generalizes
132
138
  * `appear`: `enter`/`exit` ∈ fade|slide|scale|fadeSlide|none, `direction` ∈
133
139
  * up|down|leading|trailing (for slide), `motion` names a `motions` token for
@@ -168,6 +174,10 @@ export interface Modifiers {
168
174
  /** #6256 — "tap": a tap inside this node that no control handles dismisses the software keyboard
169
175
  * (RN `keyboardShouldPersistTaps="handled"`); controls keep their taps. Unknown ⇒ off. */
170
176
  keyboardDismiss?: string;
177
+ /** #6663 — a gradient painted on the screen's BACKDROP (the page-colour layer behind the root): from the window
178
+ * top, full width, behind the content. Honoured on a screen's ROOT only (`top_band_not_root` warns elsewhere);
179
+ * it takes no layout, never scrolls, and is not drawn when the top bar's inset is 0. */
180
+ topBand?: TopBand;
171
181
  /** #4675 — the border drawn while a text field inside this node has focus, in place of `border` (CSS
172
182
  * `:focus-within`). Follows the node's corner radius. Unset ⇒ `border` in both states. */
173
183
  focusWithinBorder?: Border;
@@ -1341,6 +1341,18 @@ export declare const screenDescriptorSchema: {
1341
1341
  readonly keyboardDismiss: {
1342
1342
  readonly type: "string";
1343
1343
  };
1344
+ readonly topBand: {
1345
+ readonly type: "object";
1346
+ readonly additionalProperties: false;
1347
+ readonly properties: {
1348
+ readonly gradient: {
1349
+ readonly $ref: "#/$defs/gradient";
1350
+ };
1351
+ readonly extent: {
1352
+ readonly type: "string";
1353
+ };
1354
+ };
1355
+ };
1344
1356
  readonly focusWithinBorder: {
1345
1357
  readonly type: "object";
1346
1358
  readonly additionalProperties: false;
@@ -1915,6 +1927,11 @@ export interface ValidatorOptions {
1915
1927
  */
1916
1928
  allowedComponents?: Set<string>;
1917
1929
  }
1930
+ export interface ValidationWarning {
1931
+ path: string;
1932
+ code: "top_band_not_root";
1933
+ message: string;
1934
+ }
1918
1935
  export interface ValidationResult {
1919
1936
  ok: boolean;
1920
1937
  schemaErrors: ErrorObject[];
@@ -1924,7 +1941,15 @@ export interface ValidationResult {
1924
1941
  package: string;
1925
1942
  type: string;
1926
1943
  }[];
1944
+ /** Advisory findings: they never make `ok` false. */
1945
+ warnings: ValidationWarning[];
1927
1946
  }
1947
+ /** The `top_band` extents a renderer knows; anything else reads as the default, `"bar"`. */
1948
+ export declare const TOP_BAND_EXTENTS: readonly ["bar", "bar+status"];
1949
+ export declare const topBandExtent: (extent: unknown) => (typeof TOP_BAND_EXTENTS)[number];
1950
+ /** #6663 — `modifiers.topBand` is honoured on a screen's root (`payload`) only; any other node carrying it is ignored
1951
+ * by every renderer, so say so. */
1952
+ export declare function findTopBandWarnings(descriptor: unknown): ValidationWarning[];
1928
1953
  export declare class FixtureValidator {
1929
1954
  private validateFn;
1930
1955
  private tokenRegistry?;
@@ -3069,6 +3094,18 @@ export declare const widgetSnapshotSchema: {
3069
3094
  readonly keyboardDismiss: {
3070
3095
  readonly type: "string";
3071
3096
  };
3097
+ readonly topBand: {
3098
+ readonly type: "object";
3099
+ readonly additionalProperties: false;
3100
+ readonly properties: {
3101
+ readonly gradient: {
3102
+ readonly $ref: "#/$defs/gradient";
3103
+ };
3104
+ readonly extent: {
3105
+ readonly type: "string";
3106
+ };
3107
+ };
3108
+ };
3072
3109
  readonly focusWithinBorder: {
3073
3110
  readonly type: "object";
3074
3111
  readonly additionalProperties: false;
@@ -42,7 +42,7 @@ var CAPABILITY_REGISTRY = {
42
42
  "location": ["backgroundStart", "backgroundStop", "getCurrent", "getPermissionStatus", "regionAdd", "regionClear", "regionList", "regionNext", "regionRemove", "regionSupport", "requestPermission", "watchNext", "watchStart", "watchStop"],
43
43
  "media_playback": ["download", "getCapabilities", "getState", "next", "pause", "pictureInPicture", "play", "presentFullscreen", "previous", "release", "removeDownload", "seek", "seekTo", "setMuted", "setQueue", "setRate", "skip", "status", "stop", "subscribeStatus", "unsubscribeStatus"],
44
44
  "motion": ["availability", "getAltitude", "getHeading", "getPermissionStatus", "getStepCount", "openStepHistorySetup", "requestPermission", "watchNext", "watchStart", "watchStop"],
45
- "network": ["status", "subscribe"],
45
+ "network": ["status", "subscribe", "watchNext", "watchStart", "watchStop"],
46
46
  "on_device_ai": ["availability", "generateText", "proofreadText", "rewriteText", "summarizeText"],
47
47
  "open_url": ["canOpen", "open"],
48
48
  "pdf": ["isAvailable", "open"],
@@ -42,7 +42,7 @@ var CAPABILITY_REGISTRY = {
42
42
  "location": ["backgroundStart", "backgroundStop", "getCurrent", "getPermissionStatus", "regionAdd", "regionClear", "regionList", "regionNext", "regionRemove", "regionSupport", "requestPermission", "watchNext", "watchStart", "watchStop"],
43
43
  "media_playback": ["download", "getCapabilities", "getState", "next", "pause", "pictureInPicture", "play", "presentFullscreen", "previous", "release", "removeDownload", "seek", "seekTo", "setMuted", "setQueue", "setRate", "skip", "status", "stop", "subscribeStatus", "unsubscribeStatus"],
44
44
  "motion": ["availability", "getAltitude", "getHeading", "getPermissionStatus", "getStepCount", "openStepHistorySetup", "requestPermission", "watchNext", "watchStart", "watchStop"],
45
- "network": ["status", "subscribe"],
45
+ "network": ["status", "subscribe", "watchNext", "watchStart", "watchStop"],
46
46
  "on_device_ai": ["availability", "generateText", "proofreadText", "rewriteText", "summarizeText"],
47
47
  "open_url": ["canOpen", "open"],
48
48
  "pdf": ["isAvailable", "open"],
@@ -42,7 +42,7 @@ var CAPABILITY_REGISTRY = {
42
42
  "location": ["backgroundStart", "backgroundStop", "getCurrent", "getPermissionStatus", "regionAdd", "regionClear", "regionList", "regionNext", "regionRemove", "regionSupport", "requestPermission", "watchNext", "watchStart", "watchStop"],
43
43
  "media_playback": ["download", "getCapabilities", "getState", "next", "pause", "pictureInPicture", "play", "presentFullscreen", "previous", "release", "removeDownload", "seek", "seekTo", "setMuted", "setQueue", "setRate", "skip", "status", "stop", "subscribeStatus", "unsubscribeStatus"],
44
44
  "motion": ["availability", "getAltitude", "getHeading", "getPermissionStatus", "getStepCount", "openStepHistorySetup", "requestPermission", "watchNext", "watchStart", "watchStop"],
45
- "network": ["status", "subscribe"],
45
+ "network": ["status", "subscribe", "watchNext", "watchStart", "watchStop"],
46
46
  "on_device_ai": ["availability", "generateText", "proofreadText", "rewriteText", "summarizeText"],
47
47
  "open_url": ["canOpen", "open"],
48
48
  "pdf": ["isAvailable", "open"],
@@ -42,7 +42,7 @@ var CAPABILITY_REGISTRY = {
42
42
  "location": ["backgroundStart", "backgroundStop", "getCurrent", "getPermissionStatus", "regionAdd", "regionClear", "regionList", "regionNext", "regionRemove", "regionSupport", "requestPermission", "watchNext", "watchStart", "watchStop"],
43
43
  "media_playback": ["download", "getCapabilities", "getState", "next", "pause", "pictureInPicture", "play", "presentFullscreen", "previous", "release", "removeDownload", "seek", "seekTo", "setMuted", "setQueue", "setRate", "skip", "status", "stop", "subscribeStatus", "unsubscribeStatus"],
44
44
  "motion": ["availability", "getAltitude", "getHeading", "getPermissionStatus", "getStepCount", "openStepHistorySetup", "requestPermission", "watchNext", "watchStart", "watchStop"],
45
- "network": ["status", "subscribe"],
45
+ "network": ["status", "subscribe", "watchNext", "watchStart", "watchStop"],
46
46
  "on_device_ai": ["availability", "generateText", "proofreadText", "rewriteText", "summarizeText"],
47
47
  "open_url": ["canOpen", "open"],
48
48
  "pdf": ["isAvailable", "open"],
@@ -9814,6 +9814,15 @@ var screenDescriptorSchema = {
9814
9814
  imagePreview: { type: "string" },
9815
9815
  topInset: { type: "string" },
9816
9816
  keyboardDismiss: { type: "string" },
9817
+ // #6663 — a backdrop gradient on a screen's root; `extent` is open ("bar" | "bar+status", unknown ⇒ "bar").
9818
+ topBand: {
9819
+ type: "object",
9820
+ additionalProperties: false,
9821
+ properties: {
9822
+ gradient: { $ref: "#/$defs/gradient" },
9823
+ extent: { type: "string" }
9824
+ }
9825
+ },
9817
9826
  // #4675 — the border while a field inside has focus; same shape as `border`.
9818
9827
  focusWithinBorder: {
9819
9828
  type: "object",
@@ -10086,6 +10095,30 @@ var screenDescriptorSchema = {
10086
10095
  }
10087
10096
  }
10088
10097
  };
10098
+ var TOP_BAND_EXTENTS = ["bar", "bar+status"];
10099
+ var topBandExtent = (extent) => extent === "bar+status" ? "bar+status" : "bar";
10100
+ function findTopBandWarnings(descriptor) {
10101
+ const out = [];
10102
+ const walk2 = (node, path) => {
10103
+ if (node === null || typeof node !== "object") return;
10104
+ if (Array.isArray(node)) {
10105
+ node.forEach((item, i) => walk2(item, `${path}[${i}]`));
10106
+ return;
10107
+ }
10108
+ const obj = node;
10109
+ const mods = obj.modifiers;
10110
+ if (mods && typeof mods === "object" && mods.topBand != null && path !== "$.payload") {
10111
+ out.push({
10112
+ path: `${path}.modifiers.topBand`,
10113
+ code: "top_band_not_root",
10114
+ message: "modifiers.topBand is honoured only on a screen's root node (payload); renderers ignore it here"
10115
+ });
10116
+ }
10117
+ for (const [key, value] of Object.entries(obj)) walk2(value, `${path}.${key}`);
10118
+ };
10119
+ walk2(descriptor, "$");
10120
+ return out;
10121
+ }
10089
10122
  var screenValidateFn;
10090
10123
  function compileScreenSchema() {
10091
10124
  if (!screenValidateFn) {
@@ -10115,7 +10148,8 @@ var FixtureValidator = class {
10115
10148
  ok: schemaErrors.length === 0 && tokenViolations.length === 0 && unknownComponents.length === 0,
10116
10149
  schemaErrors,
10117
10150
  tokenViolations,
10118
- unknownComponents
10151
+ unknownComponents,
10152
+ warnings: findTopBandWarnings(descriptor)
10119
10153
  };
10120
10154
  }
10121
10155
  };
@@ -17105,6 +17139,7 @@ export {
17105
17139
  SURFACE_VIEW_LADDER,
17106
17140
  SYSTEM_FONT_FAMILY,
17107
17141
  TONAL_ELEVATION_ALPHA,
17142
+ TOP_BAND_EXTENTS,
17108
17143
  UNIVERSAL_LAUNCH_NAMESPACES,
17109
17144
  WEBVIEW_EMBEDDED_ENUMS,
17110
17145
  WIDGET_COMPONENTS,
@@ -17167,6 +17202,7 @@ export {
17167
17202
  extractPreviewToken,
17168
17203
  extractReleasePin,
17169
17204
  findTokenViolations,
17205
+ findTopBandWarnings,
17170
17206
  fitChassis,
17171
17207
  impliedKeyboard,
17172
17208
  isComponentAllowed,
@@ -17265,6 +17301,7 @@ export {
17265
17301
  surfaceRenderMode,
17266
17302
  surfacesForApp,
17267
17303
  tonalElevationAlpha,
17304
+ topBandExtent,
17268
17305
  unwrapAppLink,
17269
17306
  validate,
17270
17307
  validateAll,
@@ -1,13 +1,6 @@
1
1
  // ../../core/ts/src/message-format.ts
2
2
  function pluralCategory(n, locale2) {
3
- const lang = (locale2 || "en").split(/[-_]/)[0].toLowerCase();
4
- if (typeof Intl !== "undefined" && typeof Intl.PluralRules === "function") {
5
- try {
6
- return new Intl.PluralRules(lang).select(n);
7
- } catch {
8
- }
9
- }
10
- return pluralCategoryFallback(n, lang);
3
+ return pluralCategoryFallback(n, (locale2 || "en").split(/[-_]/)[0].toLowerCase());
11
4
  }
12
5
  function pluralCategoryFallback(n, locale2) {
13
6
  const lang = (locale2 || "en").split(/[-_]/)[0].toLowerCase();
@@ -42,7 +42,7 @@ var CAPABILITY_REGISTRY = {
42
42
  "location": ["backgroundStart", "backgroundStop", "getCurrent", "getPermissionStatus", "regionAdd", "regionClear", "regionList", "regionNext", "regionRemove", "regionSupport", "requestPermission", "watchNext", "watchStart", "watchStop"],
43
43
  "media_playback": ["download", "getCapabilities", "getState", "next", "pause", "pictureInPicture", "play", "presentFullscreen", "previous", "release", "removeDownload", "seek", "seekTo", "setMuted", "setQueue", "setRate", "skip", "status", "stop", "subscribeStatus", "unsubscribeStatus"],
44
44
  "motion": ["availability", "getAltitude", "getHeading", "getPermissionStatus", "getStepCount", "openStepHistorySetup", "requestPermission", "watchNext", "watchStart", "watchStop"],
45
- "network": ["status", "subscribe"],
45
+ "network": ["status", "subscribe", "watchNext", "watchStart", "watchStop"],
46
46
  "on_device_ai": ["availability", "generateText", "proofreadText", "rewriteText", "summarizeText"],
47
47
  "open_url": ["canOpen", "open"],
48
48
  "pdf": ["isAvailable", "open"],
@@ -42,7 +42,7 @@ var CAPABILITY_REGISTRY = {
42
42
  "location": ["backgroundStart", "backgroundStop", "getCurrent", "getPermissionStatus", "regionAdd", "regionClear", "regionList", "regionNext", "regionRemove", "regionSupport", "requestPermission", "watchNext", "watchStart", "watchStop"],
43
43
  "media_playback": ["download", "getCapabilities", "getState", "next", "pause", "pictureInPicture", "play", "presentFullscreen", "previous", "release", "removeDownload", "seek", "seekTo", "setMuted", "setQueue", "setRate", "skip", "status", "stop", "subscribeStatus", "unsubscribeStatus"],
44
44
  "motion": ["availability", "getAltitude", "getHeading", "getPermissionStatus", "getStepCount", "openStepHistorySetup", "requestPermission", "watchNext", "watchStart", "watchStop"],
45
- "network": ["status", "subscribe"],
45
+ "network": ["status", "subscribe", "watchNext", "watchStart", "watchStop"],
46
46
  "on_device_ai": ["availability", "generateText", "proofreadText", "rewriteText", "summarizeText"],
47
47
  "open_url": ["canOpen", "open"],
48
48
  "pdf": ["isAvailable", "open"],
@@ -21,8 +21,9 @@ function normalizeNetworkStatus(raw) {
21
21
  const type = TYPES.includes(r.type) ? r.type : "unknown";
22
22
  return {
23
23
  online,
24
- // An offline device has no link, whatever a stale `type` said.
25
- type: online ? type === "none" ? "unknown" : type : "none",
24
+ // An offline device has no link, whatever a stale `type` said — except `unknown`, which is
25
+ // what a host says before its first reading (nothing is known, not "no link").
26
+ type: online ? type === "none" ? "unknown" : type : r.type === "unknown" ? "unknown" : "none",
26
27
  expensive: online && (r.expensive === true || r.expensive === "true"),
27
28
  constrained: online && (r.constrained === true || r.constrained === "true")
28
29
  };
@@ -37,9 +38,24 @@ async function subscribe(handler) {
37
38
  }
38
39
  return normalizeNetworkStatus(await dispatch("capability.network.subscribe", { onChange: handler }));
39
40
  }
41
+ async function watchStart() {
42
+ const r = await dispatch("capability.network.watchStart", {});
43
+ return typeof r?.watchId === "string" ? { watchId: r.watchId, status: normalizeNetworkStatus(r.status) } : null;
44
+ }
45
+ async function watchNext(watchId, timeoutMs = 3e4) {
46
+ const r = await dispatch("capability.network.watchNext", { watchId, timeoutMs });
47
+ if (r?.event === "change" || r?.event === "timeout") return { event: r.event, status: normalizeNetworkStatus(r.status) };
48
+ return { event: "ended" };
49
+ }
50
+ async function watchStop(watchId) {
51
+ await dispatch("capability.network.watchStop", { watchId });
52
+ }
40
53
  export {
41
54
  normalizeNetworkStatus,
42
55
  status,
43
- subscribe
56
+ subscribe,
57
+ watchNext,
58
+ watchStart,
59
+ watchStop
44
60
  };
45
61
  //# sourceMappingURL=network.mjs.map
@@ -42,7 +42,7 @@ var CAPABILITY_REGISTRY = {
42
42
  "location": ["backgroundStart", "backgroundStop", "getCurrent", "getPermissionStatus", "regionAdd", "regionClear", "regionList", "regionNext", "regionRemove", "regionSupport", "requestPermission", "watchNext", "watchStart", "watchStop"],
43
43
  "media_playback": ["download", "getCapabilities", "getState", "next", "pause", "pictureInPicture", "play", "presentFullscreen", "previous", "release", "removeDownload", "seek", "seekTo", "setMuted", "setQueue", "setRate", "skip", "status", "stop", "subscribeStatus", "unsubscribeStatus"],
44
44
  "motion": ["availability", "getAltitude", "getHeading", "getPermissionStatus", "getStepCount", "openStepHistorySetup", "requestPermission", "watchNext", "watchStart", "watchStop"],
45
- "network": ["status", "subscribe"],
45
+ "network": ["status", "subscribe", "watchNext", "watchStart", "watchStop"],
46
46
  "on_device_ai": ["availability", "generateText", "proofreadText", "rewriteText", "summarizeText"],
47
47
  "open_url": ["canOpen", "open"],
48
48
  "pdf": ["isAvailable", "open"],
@@ -7207,14 +7207,7 @@ function createRedirectSession(req = {}, opts) {
7207
7207
 
7208
7208
  // ../../core/ts/src/message-format.ts
7209
7209
  function pluralCategory(n, locale) {
7210
- const lang = (locale || "en").split(/[-_]/)[0].toLowerCase();
7211
- if (typeof Intl !== "undefined" && typeof Intl.PluralRules === "function") {
7212
- try {
7213
- return new Intl.PluralRules(lang).select(n);
7214
- } catch {
7215
- }
7216
- }
7217
- return pluralCategoryFallback(n, lang);
7210
+ return pluralCategoryFallback(n, (locale || "en").split(/[-_]/)[0].toLowerCase());
7218
7211
  }
7219
7212
  function pluralCategoryFallback(n, locale) {
7220
7213
  const lang = (locale || "en").split(/[-_]/)[0].toLowerCase();
@@ -27,7 +27,7 @@ var CAPABILITY_REGISTRY = {
27
27
  "location": ["backgroundStart", "backgroundStop", "getCurrent", "getPermissionStatus", "regionAdd", "regionClear", "regionList", "regionNext", "regionRemove", "regionSupport", "requestPermission", "watchNext", "watchStart", "watchStop"],
28
28
  "media_playback": ["download", "getCapabilities", "getState", "next", "pause", "pictureInPicture", "play", "presentFullscreen", "previous", "release", "removeDownload", "seek", "seekTo", "setMuted", "setQueue", "setRate", "skip", "status", "stop", "subscribeStatus", "unsubscribeStatus"],
29
29
  "motion": ["availability", "getAltitude", "getHeading", "getPermissionStatus", "getStepCount", "openStepHistorySetup", "requestPermission", "watchNext", "watchStart", "watchStop"],
30
- "network": ["status", "subscribe"],
30
+ "network": ["status", "subscribe", "watchNext", "watchStart", "watchStop"],
31
31
  "on_device_ai": ["availability", "generateText", "proofreadText", "rewriteText", "summarizeText"],
32
32
  "open_url": ["canOpen", "open"],
33
33
  "pdf": ["isAvailable", "open"],
@@ -7762,6 +7762,15 @@ var screenDescriptorSchema = {
7762
7762
  imagePreview: { type: "string" },
7763
7763
  topInset: { type: "string" },
7764
7764
  keyboardDismiss: { type: "string" },
7765
+ // #6663 — a backdrop gradient on a screen's root; `extent` is open ("bar" | "bar+status", unknown ⇒ "bar").
7766
+ topBand: {
7767
+ type: "object",
7768
+ additionalProperties: false,
7769
+ properties: {
7770
+ gradient: { $ref: "#/$defs/gradient" },
7771
+ extent: { type: "string" }
7772
+ }
7773
+ },
7765
7774
  // #4675 — the border while a field inside has focus; same shape as `border`.
7766
7775
  focusWithinBorder: {
7767
7776
  type: "object",
@@ -42,7 +42,7 @@ var CAPABILITY_REGISTRY = {
42
42
  "location": ["backgroundStart", "backgroundStop", "getCurrent", "getPermissionStatus", "regionAdd", "regionClear", "regionList", "regionNext", "regionRemove", "regionSupport", "requestPermission", "watchNext", "watchStart", "watchStop"],
43
43
  "media_playback": ["download", "getCapabilities", "getState", "next", "pause", "pictureInPicture", "play", "presentFullscreen", "previous", "release", "removeDownload", "seek", "seekTo", "setMuted", "setQueue", "setRate", "skip", "status", "stop", "subscribeStatus", "unsubscribeStatus"],
44
44
  "motion": ["availability", "getAltitude", "getHeading", "getPermissionStatus", "getStepCount", "openStepHistorySetup", "requestPermission", "watchNext", "watchStart", "watchStop"],
45
- "network": ["status", "subscribe"],
45
+ "network": ["status", "subscribe", "watchNext", "watchStart", "watchStop"],
46
46
  "on_device_ai": ["availability", "generateText", "proofreadText", "rewriteText", "summarizeText"],
47
47
  "open_url": ["canOpen", "open"],
48
48
  "pdf": ["isAvailable", "open"],
@@ -2,7 +2,7 @@
2
2
  "files": [
3
3
  {
4
4
  "name": "sw.js",
5
- "bytes": 2831117
5
+ "bytes": 2837248
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/a8cfd0e17359578587e8937e88dedd40b46d533f08b4d2fdac4c47d5bae6f385.bin",
24
+ "name": "preview-deferred/15c152934a97a0d3de15946239a0037a38603f1972d2288b59945bd28a0fd237.bin",
25
25
  "bytes": 488215
26
26
  },
27
27
  {
@@ -79,10 +79,10 @@
79
79
  ],
80
80
  "deferred": [
81
81
  {
82
- "key": "assets/pdf-DvnPEsbL.js",
82
+ "key": "assets/pdf-DbnS12nK.js",
83
83
  "contentType": "application/javascript; charset=utf-8",
84
- "sha256": "a8cfd0e17359578587e8937e88dedd40b46d533f08b4d2fdac4c47d5bae6f385",
85
- "file": "preview-deferred/a8cfd0e17359578587e8937e88dedd40b46d533f08b4d2fdac4c47d5bae6f385.bin"
84
+ "sha256": "15c152934a97a0d3de15946239a0037a38603f1972d2288b59945bd28a0fd237",
85
+ "file": "preview-deferred/15c152934a97a0d3de15946239a0037a38603f1972d2288b59945bd28a0fd237.bin"
86
86
  },
87
87
  {
88
88
  "key": "assets/pdf.worker.min-BGnVRhRG.js",