@wix/himalaya-cli 0.1819.0 → 0.1820.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.
@@ -275,6 +275,9 @@ export interface AppConfig {
275
275
  * `tablet` all four (an iPad app must offer all four or set
276
276
  * `UIRequiresFullScreen`, else App Store review rejects it).
277
277
  *
278
+ * `fullscreenMedia` is apart from both: what a video in full screen may turn to,
279
+ * and only while it is full screen. Absent ⇒ both landscapes; `[]` ⇒ none.
280
+ *
278
281
  * Mirrors the `capabilityEnvelope` idea (RFC 0044): pre-bake the native
279
282
  * headroom, then move within it OTA. Full rationale: docs/orientation.md.
280
283
  */
@@ -887,6 +890,10 @@ export interface OrientationEnvelope {
887
890
  phone?: Orientation[];
888
891
  /** iPad / Android tablet. Absent ⇒ all four (App Store requirement). */
889
892
  tablet?: Orientation[];
893
+ /** What a video in full screen may turn to as well, whatever the app itself allows, and only while it is
894
+ * full screen. Absent ⇒ both landscapes, so a full-screen video turns with the device in every app.
895
+ * `[]` ⇒ it stays in the app's own orientations. */
896
+ fullscreenMedia?: Orientation[];
890
897
  }
891
898
  /** The envelope applied when `orientationEnvelope` (or one of its families) is
892
899
  * absent — i.e. the behavior every app has today. */
@@ -2408,6 +2408,15 @@ export interface MediaPlayerAppearance {
2408
2408
  * capability: the player lives in the native media module, which a binary links only when the
2409
2409
  * app declares `media_playback` (in `capabilities` or `capabilityEnvelope`). Without it the
2410
2410
  * component draws a sized placeholder, and `himi validate` rejects a screen that uses it.
2411
+ *
2412
+ * It draws its own controls, the same set on iOS, Android and the web: play/pause, seek bar with
2413
+ * times, skip back and forward, mute, speed, subtitles and audio tracks, a LIVE badge, previous
2414
+ * and next for a queue, Picture in Picture, full screen, and cast where the platform has it
2415
+ * (AirPlay on iOS, Remote Playback on the web, Google Cast on Android in an app that links the
2416
+ * opt-in cast module: `"media": { "cast": true }` in its distribution.json). Over a video they hide after 3 seconds of playback and a tap brings them back. In
2417
+ * full screen the video turns with the device, with no app setup. A player whose `itemsPath`
2418
+ * queue is still empty draws its own loading tile at its final size. Add no buttons, slots or
2419
+ * skeletons for any of this.
2411
2420
  */
2412
2421
  export interface MediaPlayerProps {
2413
2422
  sessionId?: string;
@@ -2415,15 +2424,20 @@ export interface MediaPlayerProps {
2415
2424
  startIndex?: number;
2416
2425
  startPositionSeconds?: number;
2417
2426
  presentation?: MediaPresentation;
2427
+ /** Absent or `builtIn` ⇒ the player's own controls (above). */
2418
2428
  controls?: MediaControls;
2419
2429
  autoplay?: MediaAutoplay;
2420
2430
  autoplayVisibilityThreshold?: number;
2421
2431
  muted?: boolean;
2422
2432
  loop?: MediaLoop;
2433
+ /** `disabled` ⇒ no full-screen button. Audio never has one. */
2423
2434
  fullscreen?: Exclude<MediaPolicy, "automatic" | "audioOnly">;
2435
+ /** `disabled` ⇒ no Picture in Picture button. Shown only where the device can. */
2424
2436
  pictureInPicture?: Extract<MediaPolicy, "disabled" | "allowed" | "automatic">;
2425
2437
  backgroundPlayback?: Extract<MediaPolicy, "disabled" | "allowed" | "audioOnly">;
2438
+ /** `disabled` ⇒ no cast button (AirPlay on iOS, Remote Playback on the web, Google Cast on Android). */
2426
2439
  externalPlayback?: Exclude<MediaPolicy, "automatic" | "audioOnly">;
2440
+ /** The speeds the speed menu offers. Absent ⇒ 0.5, 0.75, 1, 1.25, 1.5, 2. */
2427
2441
  playbackRates?: number[];
2428
2442
  forwardSkipSeconds?: number;
2429
2443
  backwardSkipSeconds?: number;
@@ -8088,12 +8088,15 @@ var ICON_GLYPH_SCALE_MIN = 0.4;
8088
8088
  var ICON_GLYPH_SCALE_MAX = 0.9;
8089
8089
  var DEFAULT_ORIENTATION_ENVELOPE = {
8090
8090
  phone: ["portrait"],
8091
- tablet: [...ALL_ORIENTATIONS]
8091
+ tablet: [...ALL_ORIENTATIONS],
8092
+ fullscreenMedia: ["landscapeLeft", "landscapeRight"]
8092
8093
  };
8093
8094
  function resolveOrientationEnvelope(env) {
8094
8095
  return {
8095
8096
  phone: env?.phone?.length ? env.phone : DEFAULT_ORIENTATION_ENVELOPE.phone,
8096
- tablet: env?.tablet?.length ? env.tablet : DEFAULT_ORIENTATION_ENVELOPE.tablet
8097
+ tablet: env?.tablet?.length ? env.tablet : DEFAULT_ORIENTATION_ENVELOPE.tablet,
8098
+ // Declared and empty is the opt-out, so only an absent key takes the default.
8099
+ fullscreenMedia: env?.fullscreenMedia ?? DEFAULT_ORIENTATION_ENVELOPE.fullscreenMedia
8097
8100
  };
8098
8101
  }
8099
8102
  function validateAuthGateScreen(auth) {
@@ -6909,7 +6909,8 @@ var ALL_ORIENTATIONS = [
6909
6909
  ];
6910
6910
  var DEFAULT_ORIENTATION_ENVELOPE = {
6911
6911
  phone: ["portrait"],
6912
- tablet: [...ALL_ORIENTATIONS]
6912
+ tablet: [...ALL_ORIENTATIONS],
6913
+ fullscreenMedia: ["landscapeLeft", "landscapeRight"]
6913
6914
  };
6914
6915
 
6915
6916
  // ../../core/ts/src/validator.ts
@@ -2,7 +2,7 @@
2
2
  "files": [
3
3
  {
4
4
  "name": "sw.js",
5
- "bytes": 2621480
5
+ "bytes": 2643344
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/07b2e5e38ef6723989a20a92ad6fb8739a065fb1c1efda5414180c4d819f93a0.bin",
24
+ "name": "preview-deferred/c79b92a1e079fa690016cbfe1b407af2be8280da71314a65e1077c127b00f4c4.bin",
25
25
  "bytes": 488215
26
26
  },
27
27
  {
@@ -79,10 +79,10 @@
79
79
  ],
80
80
  "deferred": [
81
81
  {
82
- "key": "assets/pdf-BgvkxM5D.js",
82
+ "key": "assets/pdf-C4mdpKRh.js",
83
83
  "contentType": "application/javascript; charset=utf-8",
84
- "sha256": "07b2e5e38ef6723989a20a92ad6fb8739a065fb1c1efda5414180c4d819f93a0",
85
- "file": "preview-deferred/07b2e5e38ef6723989a20a92ad6fb8739a065fb1c1efda5414180c4d819f93a0.bin"
84
+ "sha256": "c79b92a1e079fa690016cbfe1b407af2be8280da71314a65e1077c127b00f4c4",
85
+ "file": "preview-deferred/c79b92a1e079fa690016cbfe1b407af2be8280da71314a65e1077c127b00f4c4.bin"
86
86
  },
87
87
  {
88
88
  "key": "assets/pdf.worker.min-BGnVRhRG.js",