@wix/himalaya-cli 0.1552.0 → 0.1554.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/cli.mjs +58 -36
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/qa-builds.md +9 -6
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -12882,7 +12882,6 @@ function webViewOriginAllowed(url, origins) {
|
|
|
12882
12882
|
}
|
|
12883
12883
|
var init_webview_origin = __esm({
|
|
12884
12884
|
"../../core/ts/src/webview-origin.ts"() {
|
|
12885
|
-
"use strict";
|
|
12886
12885
|
}
|
|
12887
12886
|
});
|
|
12888
12887
|
|
|
@@ -23888,6 +23887,7 @@ function resolveIdiom(tokens2, ctx = {}) {
|
|
|
23888
23887
|
var IDIOM_CONTEXTS, UNSAFE_KEYS;
|
|
23889
23888
|
var init_idiom = __esm({
|
|
23890
23889
|
"../../core/ts/src/idiom.ts"() {
|
|
23890
|
+
"use strict";
|
|
23891
23891
|
IDIOM_CONTEXTS = {
|
|
23892
23892
|
ios: { native: ["ios"] },
|
|
23893
23893
|
android: { native: ["material"] },
|
|
@@ -33112,6 +33112,21 @@ function encodeToggleFieldValue(raw, fallback = false) {
|
|
|
33112
33112
|
const s2 = String(raw);
|
|
33113
33113
|
return s2 === "true" || s2 === "1" ? "true" : "false";
|
|
33114
33114
|
}
|
|
33115
|
+
function serviceToggleBool(raw) {
|
|
33116
|
+
if (typeof raw === "boolean") return raw;
|
|
33117
|
+
if (typeof raw === "number") return Number.isFinite(raw) ? raw !== 0 : void 0;
|
|
33118
|
+
if (typeof raw !== "string") return void 0;
|
|
33119
|
+
switch (raw.trim().toLowerCase()) {
|
|
33120
|
+
case "true":
|
|
33121
|
+
case "1":
|
|
33122
|
+
return true;
|
|
33123
|
+
case "false":
|
|
33124
|
+
case "0":
|
|
33125
|
+
return false;
|
|
33126
|
+
default:
|
|
33127
|
+
return void 0;
|
|
33128
|
+
}
|
|
33129
|
+
}
|
|
33115
33130
|
function encodeStepperFieldValue(raw, bounds = {}) {
|
|
33116
33131
|
const n2 = stepperInt(raw);
|
|
33117
33132
|
if (n2 == null) return "";
|
|
@@ -35045,10 +35060,11 @@ var init_controls = __esm({
|
|
|
35045
35060
|
A11ySwitch = ({ props, ctx, wrap }) => {
|
|
35046
35061
|
const C2 = ctx.color;
|
|
35047
35062
|
const bound2 = useResolvedScalar(props.valuePath, ctx);
|
|
35048
|
-
const resolved2 = ctx.empty ? false : props.valuePath != null ? encodeToggleFieldValue(bound2) === "true" : encodeToggleFieldValue(props.value, props.on === true) === "true";
|
|
35049
35063
|
const bag = React9.useContext(FormValuesContext);
|
|
35050
35064
|
const fieldId = props.__formFieldId;
|
|
35051
35065
|
const inForm = Boolean(bag && fieldId);
|
|
35066
|
+
const standaloneService = fieldId == null && ctx.provider != null && typeof props.valuePath === "string" && props.valuePath.startsWith("$service:");
|
|
35067
|
+
const resolved2 = ctx.empty ? false : standaloneService ? serviceToggleBool(bound2) ?? encodeToggleFieldValue(props.value) === "true" : props.valuePath != null ? encodeToggleFieldValue(bound2) === "true" : encodeToggleFieldValue(props.value, props.on === true) === "true";
|
|
35052
35068
|
const [formOn, setFormOn] = React9.useState(null);
|
|
35053
35069
|
const touchedField = React9.useRef(void 0);
|
|
35054
35070
|
React9.useEffect(() => {
|
|
@@ -35062,7 +35078,12 @@ var init_controls = __esm({
|
|
|
35062
35078
|
if (!toggleReady && !hasContributed(bag, fieldId)) return;
|
|
35063
35079
|
bag.set(fieldId, encodeToggleFieldValue(resolved2));
|
|
35064
35080
|
}, [toggleReady, resolved2, fieldId, bag]);
|
|
35065
|
-
const
|
|
35081
|
+
const [tapped, setTapped] = React9.useState(null);
|
|
35082
|
+
React9.useEffect(() => {
|
|
35083
|
+
setTapped(null);
|
|
35084
|
+
}, [bound2, props.valuePath, ctx.provider]);
|
|
35085
|
+
const live3 = standaloneService && tapped && tapped.path === props.valuePath && Object.is(tapped.over, bound2) && tapped.provider === ctx.provider ? tapped.on : null;
|
|
35086
|
+
const on4 = inForm && touchedField.current === fieldId && formOn !== null ? formOn : live3 ?? resolved2;
|
|
35066
35087
|
const ruleKey = props.validation ? JSON.stringify(props.validation) : "";
|
|
35067
35088
|
React9.useEffect(() => {
|
|
35068
35089
|
if (!bag || !fieldId) return;
|
|
@@ -35085,6 +35106,7 @@ var init_controls = __esm({
|
|
|
35085
35106
|
const canFire = !props.disabled && Boolean(ctx.onAction) && (inForm || Boolean(act));
|
|
35086
35107
|
const fire = canFire ? () => {
|
|
35087
35108
|
const next = !on4;
|
|
35109
|
+
if (standaloneService) setTapped({ path: props.valuePath, over: bound2, provider: ctx.provider, on: next });
|
|
35088
35110
|
if (inForm) {
|
|
35089
35111
|
touchedField.current = fieldId;
|
|
35090
35112
|
setFormOn(next);
|
|
@@ -170948,40 +170970,40 @@ var init_preview_assets_generated = __esm({
|
|
|
170948
170970
|
"../../packages/serve/src/preview-assets.generated.ts"() {
|
|
170949
170971
|
init_preview_assets_format();
|
|
170950
170972
|
PREVIEW_ASSET_MANIFEST = [
|
|
170951
|
-
{ key: "assets/DashboardHost-
|
|
170952
|
-
{ key: "assets/DevDrawer-
|
|
170953
|
-
{ key: "assets/IdiomCompare-
|
|
170954
|
-
{ key: "assets/LightboxViewer-
|
|
170955
|
-
{ key: "assets/OfflineReadingBar-
|
|
170956
|
-
{ key: "assets/PhonePreviewControl-
|
|
170957
|
-
{ key: "assets/SchemeCompare-
|
|
170973
|
+
{ key: "assets/DashboardHost-fh1sjHP1.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2955, sha256: "497e9254be3c34fa0a192b8dc0bee9d34dc635c08494a1854a4b685265e21fbc" },
|
|
170974
|
+
{ key: "assets/DevDrawer-BXKlhK3d.js", contentType: "application/javascript; charset=utf-8", offset: 2963, length: 16783, sha256: "5369946a57c32f6144267d43c4e9217e1239c341b1321d388e679e899ec57729" },
|
|
170975
|
+
{ key: "assets/IdiomCompare-Cts1tXrv.js", contentType: "application/javascript; charset=utf-8", offset: 19746, length: 1926, sha256: "396d00b9fa08bbd6f8d62f303bcb5f28a826f64540a25ad5ce2daf0a2f2fea5c" },
|
|
170976
|
+
{ key: "assets/LightboxViewer-ClFRK5up.js", contentType: "application/javascript; charset=utf-8", offset: 21672, length: 8171, sha256: "a68b08d689ac4c24c3972f10523ca7356f94ed75b158e94d78ed8a929119a343" },
|
|
170977
|
+
{ key: "assets/OfflineReadingBar-CvmBnNwx.js", contentType: "application/javascript; charset=utf-8", offset: 29843, length: 1707, sha256: "fb4853f2005aac7e3e79509ff63fc831d5211e7fd9c8238ca7eae7204fdd4dac" },
|
|
170978
|
+
{ key: "assets/PhonePreviewControl-CPUm-31t.js", contentType: "application/javascript; charset=utf-8", offset: 31550, length: 37768, sha256: "ea8719ac497c79f84a2d0993226378f96bca265aa9250becb7ac87711e7a62f5" },
|
|
170979
|
+
{ key: "assets/SchemeCompare-BLituisx.js", contentType: "application/javascript; charset=utf-8", offset: 69318, length: 1858, sha256: "27b15d8a2acf5987997e081ba04d2a8eccb2c5c4d02a3ce7dfc50487aae1ac05" },
|
|
170958
170980
|
{ key: "assets/glassPreviewBrowser-Bt5ZFmG4.js", contentType: "application/javascript; charset=utf-8", offset: 71176, length: 342, sha256: "20d73f97d38f6d9a0b79e68e24954cd6bbfe66833a6e6aecae00a9102e64cab3" },
|
|
170959
|
-
{ key: "assets/index-
|
|
170960
|
-
{ key: "assets/jsx-runtime-CY_jTiqj.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
170961
|
-
{ key: "assets/pdf-
|
|
170962
|
-
{ key: "assets/pdf.worker.min-BQa_JDET.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
170963
|
-
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset:
|
|
170964
|
-
{ key: "assets/pdfDocument-
|
|
170965
|
-
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
170966
|
-
{ key: "assets/webviewBridgeHost-
|
|
170967
|
-
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset:
|
|
170968
|
-
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset:
|
|
170969
|
-
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset:
|
|
170970
|
-
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
170971
|
-
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset:
|
|
170972
|
-
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset:
|
|
170973
|
-
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
170974
|
-
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset:
|
|
170975
|
-
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
170976
|
-
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset:
|
|
170977
|
-
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset:
|
|
170978
|
-
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
170979
|
-
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
170980
|
-
{ key: "index.html", contentType: "text/html; charset=utf-8", offset:
|
|
170981
|
-
{ key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset:
|
|
170982
|
-
{ key: "ios-glass-preview.svg", contentType: "image/svg+xml", offset:
|
|
170983
|
-
{ key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset:
|
|
170984
|
-
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
170981
|
+
{ key: "assets/index-BQUB49kY.js", contentType: "application/javascript; charset=utf-8", offset: 71518, length: 1353444, sha256: "940388569e8bb468cf6cf1aa0f50e44ce2ce8b03b163ea0412099b35aae303c8" },
|
|
170982
|
+
{ key: "assets/jsx-runtime-CY_jTiqj.js", contentType: "application/javascript; charset=utf-8", offset: 1424962, length: 7624, sha256: "29dfba5b56f79a0b84d6b04d84d87617454baeba03c225f682ab2ab7ae2d5016" },
|
|
170983
|
+
{ key: "assets/pdf-qXulLsro.js", contentType: "application/javascript; charset=utf-8", offset: 1432586, length: 488199, sha256: "9ebf306df00bc8fd5f21ef84f7e4c0f631fb028f3e7aca869d0e2fffdb4ad1e1" },
|
|
170984
|
+
{ key: "assets/pdf.worker.min-BQa_JDET.js", contentType: "application/javascript; charset=utf-8", offset: 1920785, length: 73, sha256: "41bcfda4f3c8c0a81c785ea87c69afc8e7d0ed8c333324aee94c273d881bb6aa" },
|
|
170985
|
+
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 1920858, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
|
|
170986
|
+
{ key: "assets/pdfDocument-D5oKKWwg.js", contentType: "application/javascript; charset=utf-8", offset: 3237892, length: 3453, sha256: "63c5a1560a085b52226bf72a08e6bbf04361a0d2175f1d7f242ce68b22e46419" },
|
|
170987
|
+
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3241345, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
|
|
170988
|
+
{ key: "assets/webviewBridgeHost-CJonXrXh.js", contentType: "application/javascript; charset=utf-8", offset: 3243611, length: 9888, sha256: "f6013e329925fcf06ea82b81a1fca623d2bed923e13ea311ecc98901bdc99d1e" },
|
|
170989
|
+
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3253499, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
|
|
170990
|
+
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3258109, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
|
|
170991
|
+
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 3746693, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
|
|
170992
|
+
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 3837617, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
|
|
170993
|
+
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 3928601, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
|
|
170994
|
+
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4019581, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
|
|
170995
|
+
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4110453, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
|
|
170996
|
+
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4201433, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
|
|
170997
|
+
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4310069, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
|
|
170998
|
+
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4419153, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
|
|
170999
|
+
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4528201, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
|
|
171000
|
+
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4635901, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
|
|
171001
|
+
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 4724009, length: 6748, sha256: "4a92459977d7cefa1a6a7e020c3a63509737f083b3f2773557c1a5771665811a" },
|
|
171002
|
+
{ key: "index.html", contentType: "text/html; charset=utf-8", offset: 4730757, length: 5037, sha256: "4ee607adc8f81f1d0b5d7ff4e55e18d5990889921f8f8a8b3bfae934e3750885" },
|
|
171003
|
+
{ key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 4735794, length: 7193, sha256: "a482f4796147c2a3893942e10ab225bd3b6f749f7125fe0330680d4c20ea0212" },
|
|
171004
|
+
{ key: "ios-glass-preview.svg", contentType: "image/svg+xml", offset: 4742987, length: 423, sha256: "b9cd5989d31464a0422f260a332af6be5add0b04de2148944de35158f3b75efc" },
|
|
171005
|
+
{ key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 4743410, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
|
|
171006
|
+
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 4744581, length: 19459, sha256: "760d3263ea56776e60a4808558b32ae20ea2c667c0634573b9fdc5c7694a4f20" }
|
|
170985
171007
|
];
|
|
170986
171008
|
}
|
|
170987
171009
|
});
|
|
Binary file
|
package/guides/qa-builds.md
CHANGED
|
@@ -1169,9 +1169,12 @@ himi dist --app <app> --platform android --aab --wait --target bo
|
|
|
1169
1169
|
file its owner uploads to Google Play, so it is checked last before the build starts: the caller
|
|
1170
1170
|
owns the app's site (a self-serve caller's only path to a bundle; any other self-serve `--aab` is
|
|
1171
1171
|
`403 android_format_not_allowed`) (the `--signing byo` check, so `--aab` sends your Wix login), the app holds its
|
|
1172
|
-
site's store app (`PUT /v1/admin/site/store-app`), and Wix agrees (`
|
|
1173
|
-
name is saved, and the site's plan allows publishing the app yourself). That check locks the
|
|
1174
|
-
package name at the app's first store build, and the bundle is built under it.
|
|
1172
|
+
site's store app (`PUT /v1/admin/site/store-app`), and Wix agrees (`CreateBuildRecordIfAllowed`: a
|
|
1173
|
+
package name is saved, and the site's plan allows publishing the app yourself). That check locks the
|
|
1174
|
+
package name at the app's first store build, and the bundle is built under it. It also opens Wix's
|
|
1175
|
+
record of the build, which the job id and then the result (status, version, bundle) are reported to
|
|
1176
|
+
(`UpdateStoreBuild`); a build that never reaches the pool closes its record as failed. A report that
|
|
1177
|
+
fails is sent again on a later read and never fails the build. Refusals:
|
|
1175
1178
|
`store_build_android_only`, `store_build_incompatible_options` (`--signing byo`) and
|
|
1176
1179
|
`store_build_shell_unsupported` (any shell but `branded-lite`, the one that both builds under the
|
|
1177
1180
|
contract's applicationId and targets the API level Google Play requires) 400, `store_build_site_forbidden` 403,
|
|
@@ -1184,8 +1187,8 @@ himi dist --app <app> --platform android --aab --wait --target bo
|
|
|
1184
1187
|
`error`.
|
|
1185
1188
|
The same checks are available WITHOUT a build, for the Containers editor to ask before it
|
|
1186
1189
|
activates a draft release: `GET /v1/admin/site/store-build-check?app=&site=[&shell=]` answers
|
|
1187
|
-
`200 { ok: true, android: { packageName } }` or the same refusals, through `
|
|
1188
|
-
|
|
1190
|
+
`200 { ok: true, android: { packageName } }` or the same refusals, through `CheckIfBuildIsAllowed`,
|
|
1191
|
+
so it locks nothing. It names no release, so it cannot give
|
|
1189
1192
|
`409 release_predates_store_builds`; a draft the editor just built is on a current commit. It never
|
|
1190
1193
|
falls back to the locking call.
|
|
1191
1194
|
- **A Containers app's TestFlight build is an App Store build.** For an app bound to a Wix site,
|
|
@@ -1194,7 +1197,7 @@ himi dist --app <app> --platform android --aab --wait --target bo
|
|
|
1194
1197
|
in mobile-apps-containers-builder, and uploaded to the owner's TestFlight with the owner's App
|
|
1195
1198
|
Store Connect key. The checks run last before the build starts: the caller owns the app's site
|
|
1196
1199
|
(send your Wix login, as for a bundle), the app holds its site's store app, the release's commit
|
|
1197
|
-
can make one (`appStoreBuild` in the signing marker), `
|
|
1200
|
+
can make one (`appStoreBuild` in the signing marker), `CheckIfBuildIsAllowed` finds a
|
|
1198
1201
|
saved bundle id and an eligible plan (so an ineligible site never reaches Apple), then
|
|
1199
1202
|
`PrepareAppleCertificates` registers the bundle id in the owner's Apple account and answers the
|
|
1200
1203
|
certificate, profile and key, and only then `ValidateStoreBuild` locks the bundle id (so a bundle id
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1554.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": [
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"artifactId": "himalaya-cli"
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
|
-
"falconPackageHash": "
|
|
74
|
+
"falconPackageHash": "0deddde2b736534ceb92eb41916db4c25627469d9d6f9c427ab48004"
|
|
75
75
|
}
|