@wix/himalaya-cli 0.2036.0 → 0.2038.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/ts/src/site-shell.d.ts +21 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +5 -2
- package/dist/cli.mjs +1135 -1090
- package/guides/himi-json-output.md +1 -0
- package/guides/push-cli-onboarding.md +7 -3
- package/package.json +2 -2
- package/templates/brandy/config.ts +5 -9
package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/site-shell.d.ts
CHANGED
|
@@ -568,7 +568,8 @@ export declare function siteMemberPushRoutes(origin: string, memberPages: SiteMe
|
|
|
568
568
|
link: string;
|
|
569
569
|
}>;
|
|
570
570
|
/** The push block of a site shell whose Wix member login carries the site's metaSiteId: signed-in members
|
|
571
|
-
* register with Wix Ping
|
|
571
|
+
* register with Wix Ping as the WebShell app, as apps/himi-brandy does (RFC 0062), and taps open the site
|
|
572
|
+
* (`siteMemberPushRoutes`). Ping automations skip that family; Himi's test send reaches it (`pingSendPath`). */
|
|
572
573
|
export declare function siteWixPingPush(site: Pick<SiteShellConfig, "origin" | "memberPages">): {
|
|
573
574
|
registrar: "wix-ping";
|
|
574
575
|
pingAppName: string;
|
|
@@ -579,6 +580,25 @@ export declare function siteWixPingPush(site: Pick<SiteShellConfig, "origin" | "
|
|
|
579
580
|
link: string;
|
|
580
581
|
}[];
|
|
581
582
|
};
|
|
583
|
+
/** A site shell's whole push block, from the `site` and `wix` blocks of its provisioning.json. With the
|
|
584
|
+
* site's metaSiteId (`wix.siteId`) it is `siteWixPingPush`; without one there is no Wix member to
|
|
585
|
+
* register, so `generic` asks for permission and registers only in the dev loop. apps/himi-brandy and the
|
|
586
|
+
* `brandy` template both call it, so a WebShell push setting is changed here and nowhere else. */
|
|
587
|
+
export declare function siteShellPush(site: Pick<SiteShellConfig, "origin" | "memberPages">, wix: {
|
|
588
|
+
siteId?: string;
|
|
589
|
+
} | undefined): {
|
|
590
|
+
registrar: "wix-ping";
|
|
591
|
+
pingAppName: string;
|
|
592
|
+
requestPermissionOnLaunch: boolean;
|
|
593
|
+
payloadAdapter: "wix-ping";
|
|
594
|
+
routes: {
|
|
595
|
+
match: string;
|
|
596
|
+
link: string;
|
|
597
|
+
}[];
|
|
598
|
+
} | {
|
|
599
|
+
registrar: "generic";
|
|
600
|
+
requestPermissionOnLaunch: boolean;
|
|
601
|
+
};
|
|
582
602
|
/**
|
|
583
603
|
* A screen with a top bar of its own (a member chat thread, say) replaces `navigation.topBarDefault`, so
|
|
584
604
|
* the contract's app-wide icons (`site.topBar`) would vanish there. This appends them after the screen's
|
|
@@ -15724,7 +15724,6 @@ function webViewEmbeddedAppFindings(screens) {
|
|
|
15724
15724
|
}
|
|
15725
15725
|
|
|
15726
15726
|
// ../../core/ts/src/wix-push-links.ts
|
|
15727
|
-
var DEFAULT_PING_APP_NAME = "WixBrandedLite";
|
|
15728
15727
|
var EVENTS_APP_ID = "140603ad-af8d-84a5-2c80-a0f60cb47351";
|
|
15729
15728
|
var WIX_MEMBER_PUSH_DESTINATIONS = [
|
|
15730
15729
|
{
|
|
@@ -16762,12 +16761,15 @@ function siteMemberPushRoutes(origin, memberPages) {
|
|
|
16762
16761
|
function siteWixPingPush(site) {
|
|
16763
16762
|
return {
|
|
16764
16763
|
registrar: "wix-ping",
|
|
16765
|
-
pingAppName:
|
|
16764
|
+
pingAppName: "WixWebShell",
|
|
16766
16765
|
requestPermissionOnLaunch: true,
|
|
16767
16766
|
payloadAdapter: "wix-ping",
|
|
16768
16767
|
routes: siteMemberPushRoutes(site.origin, site.memberPages)
|
|
16769
16768
|
};
|
|
16770
16769
|
}
|
|
16770
|
+
function siteShellPush(site, wix) {
|
|
16771
|
+
return wix?.siteId ? siteWixPingPush(site) : { registrar: "generic", requestPermissionOnLaunch: true };
|
|
16772
|
+
}
|
|
16771
16773
|
function withSiteTopBarActions(descriptor, defaults) {
|
|
16772
16774
|
const extra = defaults?.actions ?? [];
|
|
16773
16775
|
if (!descriptor.topBar || extra.length === 0) return descriptor;
|
|
@@ -17374,6 +17376,7 @@ export {
|
|
|
17374
17376
|
siteScreens,
|
|
17375
17377
|
siteServesMemberCart,
|
|
17376
17378
|
siteShellLinks,
|
|
17379
|
+
siteShellPush,
|
|
17377
17380
|
siteSidebar,
|
|
17378
17381
|
siteTopBarDefault,
|
|
17379
17382
|
siteWebSdkBundleName,
|