@wix/himalaya-cli 0.1232.0 → 0.1233.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.
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import type { PushRoute } from "./push-routes.js";
|
|
2
2
|
/**
|
|
3
|
-
* The Ping app family a customer app's members register under
|
|
4
|
-
*
|
|
5
|
-
*
|
|
3
|
+
* The Ping app family a customer app's members register under: member recipients, the site's own
|
|
4
|
+
* credentials by `filterForMetaSite`, the BRANDED link format. Not `WixWebShell`, the family Ping
|
|
5
|
+
* renamed `WixBrandedWebApp` to: a send with `isForBrandedApp` (Ping automations addressed to a
|
|
6
|
+
* contact, and the hosted test send) targets `Branded` and keeps only registrations whose family
|
|
7
|
+
* starts with `WixBranded` (`RegistrationsFetcher.getMobileRegistrationsForTarget`). One constant,
|
|
8
|
+
* so a change of family is a one-line change.
|
|
6
9
|
*/
|
|
7
|
-
export declare const DEFAULT_PING_APP_NAME = "
|
|
10
|
+
export declare const DEFAULT_PING_APP_NAME = "WixBrandedLite";
|
|
11
|
+
/** The family to register under instead of `name`, or undefined when `name` is not retired. */
|
|
12
|
+
export declare function replacementPingFamily(name: string): string | undefined;
|
|
8
13
|
/** One place a member notification can open, and every Wix link shape that names it. */
|
|
9
14
|
export interface WixPushDestination {
|
|
10
15
|
/** `<vertical>.<thing>`, the key an author uses in `push.screens`. */
|
package/dist/cli.mjs
CHANGED
|
@@ -6827,7 +6827,6 @@ 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";
|
|
6831
6830
|
SYSTEM_FONT_FAMILY = "$system";
|
|
6832
6831
|
TONAL_ELEVATION_ALPHA = [0, 0.05, 0.08, 0.11, 0.12, 0.14];
|
|
6833
6832
|
COLOR_TOKEN_PROPS = {
|
|
@@ -6878,7 +6877,6 @@ function resolveTranslation(value, catalog, sourceCatalog) {
|
|
|
6878
6877
|
var BINDING_SIGILS, BINDING_SIGIL_RE, TRANSLATION_PREFIX, TRANSLATION_KEY_RE;
|
|
6879
6878
|
var init_bindings = __esm({
|
|
6880
6879
|
"../../core/ts/src/bindings.ts"() {
|
|
6881
|
-
"use strict";
|
|
6882
6880
|
BINDING_SIGILS = ["service", "flag", "item", "t"];
|
|
6883
6881
|
BINDING_SIGIL_RE = new RegExp(
|
|
6884
6882
|
`^\\$(?:${BINDING_SIGILS.filter((s2) => s2 !== "t").join("|")})\\b|^\\$t:`
|
|
@@ -24173,6 +24171,9 @@ var init_l10n = __esm({
|
|
|
24173
24171
|
});
|
|
24174
24172
|
|
|
24175
24173
|
// ../../core/ts/src/wix-push-links.ts
|
|
24174
|
+
function replacementPingFamily(name) {
|
|
24175
|
+
return RETIRED_PING_FAMILIES.has(name) ? DEFAULT_PING_APP_NAME : void 0;
|
|
24176
|
+
}
|
|
24176
24177
|
function derivesWixPushRoutes(push, installedVerticals) {
|
|
24177
24178
|
return push?.payloadAdapter === "wix-ping" && push.routes === void 0 && installedVerticals !== void 0;
|
|
24178
24179
|
}
|
|
@@ -24216,10 +24217,14 @@ function itemParamKey(paramKeys) {
|
|
|
24216
24217
|
if (paramKeys.includes("id")) return "id";
|
|
24217
24218
|
return paramKeys.length === 1 ? paramKeys[0] : void 0;
|
|
24218
24219
|
}
|
|
24219
|
-
var DEFAULT_PING_APP_NAME, EVENTS_APP_ID, WIX_MEMBER_PUSH_DESTINATIONS;
|
|
24220
|
+
var DEFAULT_PING_APP_NAME, RETIRED_PING_FAMILIES, EVENTS_APP_ID, WIX_MEMBER_PUSH_DESTINATIONS;
|
|
24220
24221
|
var init_wix_push_links = __esm({
|
|
24221
24222
|
"../../core/ts/src/wix-push-links.ts"() {
|
|
24222
|
-
DEFAULT_PING_APP_NAME = "
|
|
24223
|
+
DEFAULT_PING_APP_NAME = "WixBrandedLite";
|
|
24224
|
+
RETIRED_PING_FAMILIES = /* @__PURE__ */ new Set([
|
|
24225
|
+
// Renamed to WixWebShell by wix-private/wixos #22625, 2026-10-04.
|
|
24226
|
+
"WixBrandedWebApp"
|
|
24227
|
+
]);
|
|
24223
24228
|
EVENTS_APP_ID = "140603ad-af8d-84a5-2c80-a0f60cb47351";
|
|
24224
24229
|
WIX_MEMBER_PUSH_DESTINATIONS = [
|
|
24225
24230
|
{
|
|
@@ -133565,7 +133570,7 @@ import { lstatSync as lstatSync11, readFileSync as readFileSync53 } from "node:f
|
|
|
133565
133570
|
import { basename as basename13, join as join46 } from "node:path";
|
|
133566
133571
|
import ts2 from "typescript";
|
|
133567
133572
|
function enablePushInConfig(source, options) {
|
|
133568
|
-
const pingAppName =
|
|
133573
|
+
const pingAppName = DEFAULT_PING_APP_NAME;
|
|
133569
133574
|
const fileName = options.fileName ?? "config.ts";
|
|
133570
133575
|
const kind = fileName.endsWith(".ts") ? ts2.ScriptKind.TS : ts2.ScriptKind.JS;
|
|
133571
133576
|
const file = ts2.createSourceFile(fileName, source, ts2.ScriptTarget.Latest, true, kind);
|
|
@@ -133606,6 +133611,7 @@ function planPush(app, pingAppName, plan) {
|
|
|
133606
133611
|
}
|
|
133607
133612
|
const block = push.kind === "written" ? push.node.initializer : void 0;
|
|
133608
133613
|
plan.pushOn = !!block && stringValue(block, "registrar") === "wix-ping" && stringValue(block, "payloadAdapter") === "wix-ping";
|
|
133614
|
+
if (block && stringValue(block, "registrar") === "wix-ping") planRetiredFamily(block, plan);
|
|
133609
133615
|
const lacking = [
|
|
133610
133616
|
...block && stringValue(block, "registrar") === "wix-ping" ? [] : ['registrar: "wix-ping"'],
|
|
133611
133617
|
...block && stringValue(block, "pingAppName") ? [] : [`pingAppName: ${JSON.stringify(pingAppName)}`],
|
|
@@ -133617,6 +133623,15 @@ function planPush(app, pingAppName, plan) {
|
|
|
133617
133623
|
);
|
|
133618
133624
|
}
|
|
133619
133625
|
}
|
|
133626
|
+
function planRetiredFamily(block, plan) {
|
|
133627
|
+
const literal = unwrap(block);
|
|
133628
|
+
const found = ts2.isObjectLiteralExpression(literal) ? lookup2(literal, "pingAppName") : void 0;
|
|
133629
|
+
const value = found?.kind === "written" ? unwrap(found.node.initializer) : void 0;
|
|
133630
|
+
const replacement = value && ts2.isStringLiteralLike(value) ? replacementPingFamily(value.text) : void 0;
|
|
133631
|
+
if (!value || !replacement) return;
|
|
133632
|
+
plan.splices.push({ at: value.getStart(), end: value.end, text: JSON.stringify(replacement) });
|
|
133633
|
+
plan.applied.push(`pingAppName ${JSON.stringify(replacement)} in place of ${value.getText()}`);
|
|
133634
|
+
}
|
|
133620
133635
|
function planCapability(app, plan) {
|
|
133621
133636
|
const capabilities = lookup2(app, "capabilities");
|
|
133622
133637
|
if (capabilities.kind === "absent") {
|
|
@@ -136675,6 +136690,7 @@ async function navIssues(dir, strict) {
|
|
|
136675
136690
|
pushRouteIssues(cfg.push, nav, provisioning, warn3);
|
|
136676
136691
|
pushScreenMapIssues(cfg.push, provisioning, warn3);
|
|
136677
136692
|
pushAuthIssues(cfg.push, cfg.auth, provisioning, warn3);
|
|
136693
|
+
pushFamilyIssues(cfg.push, warn3);
|
|
136678
136694
|
if (nav === void 0 || nav === null) return issues;
|
|
136679
136695
|
if (!isPlainObject2(nav)) {
|
|
136680
136696
|
error("nav-not-an-object", `navigation must be an object (got ${Array.isArray(nav) ? "array" : typeof nav}).`);
|
|
@@ -136795,6 +136811,15 @@ function pushAuthIssues(push, auth, provisioning, warn3) {
|
|
|
136795
136811
|
`push.registrar is "wix-ping", which registers a signed-in member's device with Wix Ping, but ${problem}. Use auth: WixConsumerAuthProvider({ siteId: "${provisioning.siteId ?? "<metaSiteId>"}", \u2026 }).`
|
|
136796
136812
|
);
|
|
136797
136813
|
}
|
|
136814
|
+
function pushFamilyIssues(push, warn3) {
|
|
136815
|
+
if (!isPlainObject2(push) || push.registrar !== "wix-ping" || typeof push.pingAppName !== "string") return;
|
|
136816
|
+
const replacement = replacementPingFamily(push.pingAppName);
|
|
136817
|
+
if (!replacement) return;
|
|
136818
|
+
warn3(
|
|
136819
|
+
"push-ping-family-retired",
|
|
136820
|
+
`push.pingAppName "${push.pingAppName}" is a family Ping no longer has, and it kept no alias: a device registering under it gets no notifications. Use pingAppName: "${replacement}".`
|
|
136821
|
+
);
|
|
136822
|
+
}
|
|
136798
136823
|
function pushRouteAdvisories(pushRoutes) {
|
|
136799
136824
|
if (!pushRoutes) return [];
|
|
136800
136825
|
const linked = new Set(WIX_MEMBER_PUSH_DESTINATIONS.map((d2) => d2.vertical));
|
|
@@ -116,16 +116,18 @@ capabilities: ["push" /* , … */],
|
|
|
116
116
|
// Routes are derived at build time from provisioning.json and your screens; see himi validate.
|
|
117
117
|
push: {
|
|
118
118
|
registrar: "wix-ping",
|
|
119
|
-
pingAppName: "
|
|
119
|
+
pingAppName: "WixBrandedLite",
|
|
120
120
|
requestPermissionOnLaunch: true,
|
|
121
121
|
payloadAdapter: "wix-ping",
|
|
122
122
|
},
|
|
123
123
|
```
|
|
124
124
|
|
|
125
|
-
- `pingAppName` is the Ping app family the device registers under. Use `
|
|
126
|
-
Ping allows it for site members
|
|
127
|
-
the site. A build signed for the APNs
|
|
128
|
-
do not add it.
|
|
125
|
+
- `pingAppName` is the Ping app family the device registers under. Use `WixBrandedLite`:
|
|
126
|
+
Ping allows it for site members, uses the credentials `himi notify setup` stored for the
|
|
127
|
+
site, and delivers the site's member notifications to it. A build signed for the APNs
|
|
128
|
+
development environment appends `.sandbox` itself; do not add it. `WixBrandedWebApp` no
|
|
129
|
+
longer exists in Ping: `himi validate` reports it as `push-ping-family-retired`, and
|
|
130
|
+
re-running `himi notify setup` replaces it.
|
|
129
131
|
- The device registers only after a member signs in; a visitor's device receives nothing.
|
|
130
132
|
Keep `siteId` in `auth` on the site `himi notify setup` configured. A changed `siteId` or
|
|
131
133
|
`clientId` ships with `himi push` like the rest of the config, and the app picks it up on
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1233.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": "275f14082a30c282271a3f592ad642e90be8aa534e36c4920d763121"
|
|
71
71
|
}
|