@wix/himalaya-cli 0.1004.0 → 0.1005.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 +23 -15
- package/dist/preview-assets.generated.bin +0 -0
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -12400,6 +12400,11 @@ function springStep(response, zeta) {
|
|
|
12400
12400
|
const r1 = -w0 * (zeta - root), r2 = -w0 * (zeta + root);
|
|
12401
12401
|
return (t) => 1 - (r2 * Math.exp(r1 * t) - r1 * Math.exp(r2 * t)) / (r2 - r1);
|
|
12402
12402
|
}
|
|
12403
|
+
function springEnvelope(response, zeta, x) {
|
|
12404
|
+
if (zeta >= 1) return (t) => Math.abs(1 - x(t));
|
|
12405
|
+
const decay = zeta * 2 * Math.PI / response, peak = 1 / Math.sqrt(1 - zeta * zeta);
|
|
12406
|
+
return (t) => peak * Math.exp(-decay * t);
|
|
12407
|
+
}
|
|
12403
12408
|
function springCurve(spring, durationMs) {
|
|
12404
12409
|
const { response, dampingFraction: zeta } = normalizeSpring(spring, durationMs);
|
|
12405
12410
|
const key2 = `${response}|${zeta}`;
|
|
@@ -12407,8 +12412,9 @@ function springCurve(spring, durationMs) {
|
|
|
12407
12412
|
if (cached3) return cached3;
|
|
12408
12413
|
const x = springStep(response, zeta);
|
|
12409
12414
|
const step = response / 64;
|
|
12415
|
+
const envelope = springEnvelope(response, zeta, x);
|
|
12410
12416
|
let settle = 0;
|
|
12411
|
-
for (let t = 0; t <= SPRING_MAX_SECS; t += step) if (Math.abs(1 - x(t)) > SPRING_SETTLE_TOLERANCE) settle = t;
|
|
12417
|
+
for (let t = 0; t <= SPRING_MAX_SECS && envelope(t) > SPRING_SETTLE_TOLERANCE; t += step) if (Math.abs(1 - x(t)) > SPRING_SETTLE_TOLERANCE) settle = t;
|
|
12412
12418
|
const secs = Math.min(settle + step, SPRING_MAX_SECS);
|
|
12413
12419
|
const samples = Math.min(200, Math.max(24, Math.ceil(12 * secs / response)));
|
|
12414
12420
|
const points = [];
|
|
@@ -12687,7 +12693,7 @@ var init_tokens2 = __esm({
|
|
|
12687
12693
|
clampTo = (v, lo, hi) => Math.min(hi, Math.max(lo, v));
|
|
12688
12694
|
finite = (v) => typeof v === "number" && Number.isFinite(v) ? v : void 0;
|
|
12689
12695
|
SPRING_SETTLE_TOLERANCE = 1e-3;
|
|
12690
|
-
SPRING_MAX_SECS =
|
|
12696
|
+
SPRING_MAX_SECS = 120;
|
|
12691
12697
|
springCurves = /* @__PURE__ */ new Map();
|
|
12692
12698
|
WEB_IDIOM_CONTEXT = { surface: "desktop" };
|
|
12693
12699
|
}
|
|
@@ -19461,6 +19467,7 @@ function shouldRevealError(args) {
|
|
|
19461
19467
|
var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE;
|
|
19462
19468
|
var init_validation = __esm({
|
|
19463
19469
|
"../../core/ts/src/validation.ts"() {
|
|
19470
|
+
"use strict";
|
|
19464
19471
|
EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
|
|
19465
19472
|
URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
|
|
19466
19473
|
INTEGER_RE = /^[+-]?[0-9]+$/;
|
|
@@ -22885,6 +22892,7 @@ function validateWorkerSubtree(raw, slotId, policy, actionCatalog) {
|
|
|
22885
22892
|
var WORKER_SUBTREE_CEILINGS, ID_PART, ACTION_ID;
|
|
22886
22893
|
var init_worker_subtree = __esm({
|
|
22887
22894
|
"../../core/ts/src/worker-subtree.ts"() {
|
|
22895
|
+
"use strict";
|
|
22888
22896
|
init_worker_subtree_safe_types_generated();
|
|
22889
22897
|
WORKER_SUBTREE_CEILINGS = Object.freeze({
|
|
22890
22898
|
maxEncodedBytes: 65536,
|
|
@@ -45352,19 +45360,19 @@ var init_preview_assets_generated = __esm({
|
|
|
45352
45360
|
"../../packages/serve/src/preview-assets.generated.ts"() {
|
|
45353
45361
|
init_preview_assets_format();
|
|
45354
45362
|
PREVIEW_ASSET_MANIFEST = [
|
|
45355
|
-
{ key: "assets/index-
|
|
45356
|
-
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset:
|
|
45357
|
-
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
45358
|
-
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset:
|
|
45359
|
-
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset:
|
|
45360
|
-
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
45361
|
-
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset:
|
|
45362
|
-
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
45363
|
-
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset:
|
|
45364
|
-
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset:
|
|
45365
|
-
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
45366
|
-
{ key: "index.html", contentType: "text/html; charset=utf-8", offset:
|
|
45367
|
-
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
45363
|
+
{ key: "assets/index-vRMb0Dqk.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 1009302, sha256: "3eabff510509e865ab7d3b6e7ac347d36ba9b8a44183d65d67d980efb85a42c5" },
|
|
45364
|
+
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 1009310, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
|
|
45365
|
+
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 1100234, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
|
|
45366
|
+
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 1191218, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
|
|
45367
|
+
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 1282198, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
|
|
45368
|
+
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 1373070, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
|
|
45369
|
+
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 1464050, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
|
|
45370
|
+
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 1572686, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
|
|
45371
|
+
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 1681770, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
|
|
45372
|
+
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 1790818, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
|
|
45373
|
+
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 1898518, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
|
|
45374
|
+
{ key: "index.html", contentType: "text/html; charset=utf-8", offset: 1986626, length: 4448, sha256: "70f18366fc27e810bac91bc54dfc247f27c071fb6f0442b07af48bdb7efabb8e" },
|
|
45375
|
+
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 1991074, length: 17209, sha256: "dffc9718e2faa63ae2cc919e0a842f585ed565aaaa7c53778e90379442c731b6" }
|
|
45368
45376
|
];
|
|
45369
45377
|
}
|
|
45370
45378
|
});
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1005.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": [
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"artifactId": "himalaya-cli"
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
|
-
"falconPackageHash": "
|
|
68
|
+
"falconPackageHash": "bbc5500979643dbfcf57fbe15a73b4981e2f2e6b4a09e1e3549f5f3f"
|
|
69
69
|
}
|