@wix/himalaya-cli 0.1818.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.
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/l10n-catalog.d.ts +18 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/define-app.d.ts +7 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +14 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/tools/l10n/pseudo.d.ts +14 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +5 -2
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +2 -1
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{07b2e5e38ef6723989a20a92ad6fb8739a065fb1c1efda5414180c4d819f93a0.bin → c79b92a1e079fa690016cbfe1b407af2be8280da71314a65e1077c127b00f4c4.bin} +1 -1
- package/dist/browser-plane/sw.js +8 -8
- package/dist/cli.mjs +2410 -1531
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/app-config.md +12 -4
- package/guides/capabilities.md +3 -0
- package/guides/component-reference.json +1 -1
- package/guides/component-reference.md +5 -0
- package/guides/designing-himi-screens.md +119 -2
- package/guides/himi-skill.md +17 -0
- package/guides/image-preview.md +1 -1
- package/guides/index.json +1 -0
- package/package.json +2 -2
- package/templates/branded-lite/dev/index.ts +6 -23
- package/templates/branded-lite/tier5-src/himi-branded-lite-video/index.ts +29 -7
- package/templates/personal-fitness-trainer/dev/index.ts +4 -22
- package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-video/index.ts +29 -7
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { isPseudoLocale, PSEUDO_LOCALE } from "../../../tools/l10n/pseudo.js";
|
|
2
|
+
export { isPseudoLocale, PSEUDO_LOCALE };
|
|
1
3
|
export interface CatalogMessage {
|
|
2
4
|
/** The English text this message was harvested from. Always present. */
|
|
3
5
|
source: string;
|
|
@@ -60,3 +62,19 @@ export declare function duplicateKeys(catalog: Catalog | undefined): {
|
|
|
60
62
|
key: string;
|
|
61
63
|
sources: string[];
|
|
62
64
|
}[];
|
|
65
|
+
/**
|
|
66
|
+
* The `en-XA` pseudo-locale catalog, derived from the SOURCE locale's catalog: every row's
|
|
67
|
+
* translation is its source string, pseudo-localized. Every row carries one — the keyed
|
|
68
|
+
* runtime-copy rows and the auth-gate rows included, since they live in the same file — so
|
|
69
|
+
* a string that reaches a screen through the catalog paints `⟦…⟧` and one that bypasses it
|
|
70
|
+
* paints plain English (RFC 0054; `pseudo-locale-differential.test.ts`).
|
|
71
|
+
*
|
|
72
|
+
* A pure transform of the input, never a file of its own: nothing to keep fresh, nothing to translate.
|
|
73
|
+
*/
|
|
74
|
+
export declare function pseudoCatalog(source: Catalog | undefined): Catalog | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* Whether an `Accept-Language` header asks for the pseudo-locale as its FIRST choice: `en-XA` (or the
|
|
77
|
+
* `qps-ploc` alias) holds the highest q-value, ties broken by order, and its q is above 0. `q=0` means
|
|
78
|
+
* "not acceptable", and `he, en-XA;q=0.5` prefers Hebrew, so neither selects it.
|
|
79
|
+
*/
|
|
80
|
+
export declare function prefersPseudoLocale(acceptLanguage: string | undefined | null): boolean;
|
package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/define-app.d.ts
CHANGED
|
@@ -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. */
|
package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts
CHANGED
|
@@ -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;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** The pseudo-locale tag, and the Windows-style alias some hosts send. Compared case-insensitively. */
|
|
2
|
+
export declare const PSEUDO_LOCALE = "en-XA";
|
|
3
|
+
export declare const PSEUDO_LOCALE_ALIASES: readonly string[];
|
|
4
|
+
export declare const PSEUDO_OPEN = "\u27E6";
|
|
5
|
+
export declare const PSEUDO_CLOSE = "\u27E7";
|
|
6
|
+
/** Extra length: translations routinely run 30–40% longer than English. */
|
|
7
|
+
export declare const PSEUDO_EXPANSION = 0.35;
|
|
8
|
+
export declare function isPseudoLocale(tag: string | null | undefined): boolean;
|
|
9
|
+
/**
|
|
10
|
+
* `Sign in` → `⟦Šîĝñ îñ ~~~⟧`. Accents every letter, adds ~35% length and wraps in `⟦…⟧`.
|
|
11
|
+
* ICU `{placeholders}`, `$t:` keys and printf specifiers are preserved. Idempotent: text
|
|
12
|
+
* already wrapped is returned unchanged. An empty string stays empty (nothing to paint).
|
|
13
|
+
*/
|
|
14
|
+
export declare function pseudoLocalize(text: string): string;
|
|
@@ -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":
|
|
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/
|
|
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-
|
|
82
|
+
"key": "assets/pdf-C4mdpKRh.js",
|
|
83
83
|
"contentType": "application/javascript; charset=utf-8",
|
|
84
|
-
"sha256": "
|
|
85
|
-
"file": "preview-deferred/
|
|
84
|
+
"sha256": "c79b92a1e079fa690016cbfe1b407af2be8280da71314a65e1077c127b00f4c4",
|
|
85
|
+
"file": "preview-deferred/c79b92a1e079fa690016cbfe1b407af2be8280da71314a65e1077c127b00f4c4.bin"
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
88
|
"key": "assets/pdf.worker.min-BGnVRhRG.js",
|