@wix/himalaya-cli 0.1233.0 → 0.1235.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 -2
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/define-app.d.ts +2 -2
- package/dist/cli.mjs +27 -26
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/testing-himi-apps.md +7 -0
- package/package.json +2 -2
|
@@ -189,8 +189,8 @@ export interface DevGatewayConfig {
|
|
|
189
189
|
* `passthrough` (default) forwards it to the real host; `fail` answers a deterministic
|
|
190
190
|
* `404 HIMI_HERMETIC_NO_FIXTURE` and sends nothing upstream (#3019). Honoured by the
|
|
191
191
|
* dev-server's `/v1/__webwix/call` bridge (web host) and `/__dev/{wix,net}/proxy`
|
|
192
|
-
* (native redirect). On-device `NetFake`
|
|
193
|
-
*
|
|
192
|
+
* (native redirect). On-device `NetFake` (iOS/Android, DEBUG) reads it too: a sealed scenario
|
|
193
|
+
* answers a miss with the same 404 and never calls the real capability. */
|
|
194
194
|
unmatched?: "passthrough" | "fail";
|
|
195
195
|
}
|
|
196
196
|
/** Derive the OTA authConfig block from a defineApp auth block
|
package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/define-app.d.ts
CHANGED
|
@@ -1038,8 +1038,8 @@ export interface DevGatewayConfig {
|
|
|
1038
1038
|
* `passthrough` (default) forwards it to the real host; `fail` answers a deterministic
|
|
1039
1039
|
* `404 HIMI_HERMETIC_NO_FIXTURE` and sends nothing upstream (#3019). Honoured by the
|
|
1040
1040
|
* dev-server's `/v1/__webwix/call` bridge (web host) and `/__dev/{wix,net}/proxy`
|
|
1041
|
-
* (native redirect). On-device `NetFake`
|
|
1042
|
-
*
|
|
1041
|
+
* (native redirect). On-device `NetFake` (iOS/Android, DEBUG) reads it too: a sealed scenario
|
|
1042
|
+
* answers a miss with the same 404 and never calls the real capability. */
|
|
1043
1043
|
unmatched?: "passthrough" | "fail";
|
|
1044
1044
|
}
|
|
1045
1045
|
export declare function defineApp(config: AppConfig): AppConfig;
|
package/dist/cli.mjs
CHANGED
|
@@ -6827,6 +6827,7 @@ function walk(node, registry, path2, out2) {
|
|
|
6827
6827
|
var SYSTEM_FONT_FAMILY, TONAL_ELEVATION_ALPHA, COLOR_TOKEN_PROPS, TYPOGRAPHY_TOKEN_PROPS;
|
|
6828
6828
|
var init_tokens = __esm({
|
|
6829
6829
|
"../../core/ts/src/tokens.ts"() {
|
|
6830
|
+
"use strict";
|
|
6830
6831
|
SYSTEM_FONT_FAMILY = "$system";
|
|
6831
6832
|
TONAL_ELEVATION_ALPHA = [0, 0.05, 0.08, 0.11, 0.12, 0.14];
|
|
6832
6833
|
COLOR_TOKEN_PROPS = {
|
|
@@ -6877,6 +6878,7 @@ function resolveTranslation(value, catalog, sourceCatalog) {
|
|
|
6877
6878
|
var BINDING_SIGILS, BINDING_SIGIL_RE, TRANSLATION_PREFIX, TRANSLATION_KEY_RE;
|
|
6878
6879
|
var init_bindings = __esm({
|
|
6879
6880
|
"../../core/ts/src/bindings.ts"() {
|
|
6881
|
+
"use strict";
|
|
6880
6882
|
BINDING_SIGILS = ["service", "flag", "item", "t"];
|
|
6881
6883
|
BINDING_SIGIL_RE = new RegExp(
|
|
6882
6884
|
`^\\$(?:${BINDING_SIGILS.filter((s2) => s2 !== "t").join("|")})\\b|^\\$t:`
|
|
@@ -20524,6 +20526,7 @@ var init_player_host_manifest = __esm({
|
|
|
20524
20526
|
"speaker_diarization",
|
|
20525
20527
|
"speech",
|
|
20526
20528
|
"stream",
|
|
20529
|
+
"ui",
|
|
20527
20530
|
"wix_api",
|
|
20528
20531
|
"wix_cashier",
|
|
20529
20532
|
"wix_platform"
|
|
@@ -20543,6 +20546,7 @@ var init_player_host_manifest = __esm({
|
|
|
20543
20546
|
"motion",
|
|
20544
20547
|
"push",
|
|
20545
20548
|
"speech",
|
|
20549
|
+
"ui",
|
|
20546
20550
|
"wix_cashier"
|
|
20547
20551
|
],
|
|
20548
20552
|
"android": [
|
|
@@ -20559,6 +20563,7 @@ var init_player_host_manifest = __esm({
|
|
|
20559
20563
|
"generic-oauth",
|
|
20560
20564
|
"wix-api-key",
|
|
20561
20565
|
"wix-consumer",
|
|
20566
|
+
"wix-native",
|
|
20562
20567
|
"wix-owner"
|
|
20563
20568
|
],
|
|
20564
20569
|
"nativeActions": [
|
|
@@ -22737,7 +22742,7 @@ var init_shell_capabilities_generated = __esm({
|
|
|
22737
22742
|
shared: true,
|
|
22738
22743
|
extensible: false,
|
|
22739
22744
|
built: ["audio_record_background", "biometrics", "calendar", "calls", "camera", "clipboard", "contacts", "haptic", "location", "media_playback", "motion", "photos", "speech"],
|
|
22740
|
-
serves: ["app_info", "audio_record", "audio_record_background", "biometrics", "browser_auth", "calendar", "calls", "camera", "clipboard", "contacts", "file_picker", "files", "haptic", "himi_apps", "iap", "keyboard", "local_database", "location", "media_playback", "motion", "on_device_ai", "open_url", "pdf", "photos", "presigned_upload", "push", "release_control", "secure_storage", "share", "speaker_diarization", "speech", "stream", "wix_api", "wix_cashier", "wix_platform"]
|
|
22745
|
+
serves: ["app_info", "audio_record", "audio_record_background", "biometrics", "browser_auth", "calendar", "calls", "camera", "clipboard", "contacts", "file_picker", "files", "haptic", "himi_apps", "iap", "keyboard", "local_database", "location", "media_playback", "motion", "on_device_ai", "open_url", "pdf", "photos", "presigned_upload", "push", "release_control", "secure_storage", "share", "speaker_diarization", "speech", "stream", "ui", "wix_api", "wix_cashier", "wix_platform"]
|
|
22741
22746
|
}
|
|
22742
22747
|
};
|
|
22743
22748
|
}
|
|
@@ -28951,7 +28956,10 @@ function applyNetMocks(gw, mocks) {
|
|
|
28951
28956
|
function resolveNetMocks(fileMocks, appDeclared) {
|
|
28952
28957
|
if (fileMocks) return { mocks: fileMocks, source: "file" };
|
|
28953
28958
|
const declared = Array.isArray(appDeclared?.rules) ? appDeclared.rules : [];
|
|
28954
|
-
if (declared.length > 0
|
|
28959
|
+
if (declared.length > 0 || appDeclared?.mode !== void 0 || appDeclared?.unmatched !== void 0) {
|
|
28960
|
+
const mode = appDeclared?.mode ?? (appDeclared?.unmatched === "fail" ? "mock" : void 0);
|
|
28961
|
+
return { mocks: { mode, rules: declared, unmatched: appDeclared?.unmatched }, source: "app" };
|
|
28962
|
+
}
|
|
28955
28963
|
return null;
|
|
28956
28964
|
}
|
|
28957
28965
|
function readNetMocksFile(path2) {
|
|
@@ -126511,13 +126519,6 @@ function createDevServer(opts = {}) {
|
|
|
126511
126519
|
const from = resolved2.source === "file" ? netMocksPath : `${state.appName} devGateway.rules`;
|
|
126512
126520
|
console.error(`[himalaya-dev] net-mocks: seeded ${seeded.rules} rule(s), mode=${seeded.mode} from ${from}`);
|
|
126513
126521
|
}
|
|
126514
|
-
const appScenario = state.app?.meta.devGateway;
|
|
126515
|
-
if (!netMocksDisabled && appScenario?.rules?.length && state.wix.rules.length === 0) {
|
|
126516
|
-
const seeded = applyNetMocks(state.wix, { mode: appScenario.mode, rules: appScenario.rules, unmatched: appScenario.unmatched });
|
|
126517
|
-
state.wixSeededOn = todayYmd();
|
|
126518
|
-
state.wixSeededFromApp = true;
|
|
126519
|
-
console.error(`[himalaya-dev] net-mocks: seeded ${seeded.rules} rule(s), mode=${seeded.mode} from the app's devGateway scenario`);
|
|
126520
|
-
}
|
|
126521
126522
|
if (state.hotReloadEnabled) {
|
|
126522
126523
|
state.bundleWatcher = startBundleArtifactWatcher(state);
|
|
126523
126524
|
state.bundleSourceWatcher = startBundleSourceWatcher(state);
|
|
@@ -143473,23 +143474,23 @@ var init_preview_assets_generated = __esm({
|
|
|
143473
143474
|
"../../packages/serve/src/preview-assets.generated.ts"() {
|
|
143474
143475
|
init_preview_assets_format();
|
|
143475
143476
|
PREVIEW_ASSET_MANIFEST = [
|
|
143476
|
-
{ key: "assets/index-
|
|
143477
|
-
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/octet-stream", offset:
|
|
143478
|
-
{ key: "assets/pdfDocument-
|
|
143479
|
-
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset:
|
|
143480
|
-
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset:
|
|
143481
|
-
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset:
|
|
143482
|
-
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
143483
|
-
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset:
|
|
143484
|
-
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset:
|
|
143485
|
-
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
143486
|
-
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset:
|
|
143487
|
-
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
143488
|
-
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset:
|
|
143489
|
-
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset:
|
|
143490
|
-
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
143491
|
-
{ key: "index.html", contentType: "text/html; charset=utf-8", offset:
|
|
143492
|
-
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
143477
|
+
{ key: "assets/index-foA0ySYi.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 1191112, sha256: "18d4cc6a89df036267a88103f1c3a1e2bed96cfc78926bf48dc0c2c9b637546d" },
|
|
143478
|
+
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/octet-stream", offset: 1191120, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
|
|
143479
|
+
{ key: "assets/pdfDocument-mwaz-XmD.js", contentType: "application/javascript; charset=utf-8", offset: 2508154, length: 489166, sha256: "709898ff6336a208e677fff9def67063adaa4605492c81597468199e4968d2d3" },
|
|
143480
|
+
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 2997320, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
|
|
143481
|
+
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3001930, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
|
|
143482
|
+
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 3490514, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
|
|
143483
|
+
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 3581438, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
|
|
143484
|
+
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 3672422, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
|
|
143485
|
+
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 3763402, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
|
|
143486
|
+
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 3854274, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
|
|
143487
|
+
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 3945254, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
|
|
143488
|
+
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4053890, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
|
|
143489
|
+
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4162974, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
|
|
143490
|
+
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4272022, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
|
|
143491
|
+
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4379722, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
|
|
143492
|
+
{ key: "index.html", contentType: "text/html; charset=utf-8", offset: 4467830, length: 4947, sha256: "58a871eb4e920e5f620d7cbe850b1418ac1cd3e08746145666cad95e2dcb9fd9" },
|
|
143493
|
+
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 4472777, length: 17344, sha256: "d057298d75e7373e5e2c4d11b7d1bcbea88e03af555ba63d97641c78509c58e4" }
|
|
143493
143494
|
];
|
|
143494
143495
|
}
|
|
143495
143496
|
});
|
|
Binary file
|
|
@@ -379,6 +379,13 @@ snapshot tests. `FakeServiceProvider` answers `value(at: "counter.value")` from
|
|
|
379
379
|
-himalaya.fake.services '{"ownerInbox":{"count":3,"items":[{"title":"New order"}]}}'
|
|
380
380
|
```
|
|
381
381
|
|
|
382
|
+
**From an XCUITest, write every `'` in the blob as `\u0027`.** `XCUIApplication.launchArguments`
|
|
383
|
+
are re-quoted shell-style on the way to the app: an apostrophe opens a quoted run whose spaces and
|
|
384
|
+
`"` arrive backslash-escaped, so `"today's"` turns a valid fixture into invalid JSON. The launch
|
|
385
|
+
manifest then keeps the value as a plain string, `fake.services` is silently off, and the screen
|
|
386
|
+
renders its live worker. `xcrun simctl launch` passes argv untouched, so the same blob works by
|
|
387
|
+
hand. `BrandedLiteUITestCase.launchSafeJSON` does the escaping for the branded-lite target.
|
|
388
|
+
|
|
382
389
|
The **web/headless** tier has the same seam: `POST /__dev/render { descriptor, services: {…} }`
|
|
383
390
|
builds a `FakeServiceProvider` (core/web-renderer/src/FakeServiceProvider.ts) so the browser-free
|
|
384
391
|
render resolves the same `$service:`/`$item.` bindings — text filled and repeaters expanded — with
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1235.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "himi — the Himalaya authoring CLI. Build a Tier-5 content package on your own machine, push it to the production serve as a draft, preview it on web + Himi Player, and read worker logs back — the remote dev loop. Wraps @himalaya/serve-cli for transport.",
|
|
6
6
|
"keywords": [
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"artifactId": "himalaya-cli"
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
|
-
"falconPackageHash": "
|
|
70
|
+
"falconPackageHash": "de163fe22d68e5cdbb4e3d0d8c826ae70500dc575f2e0ba2d1aa535f"
|
|
71
71
|
}
|