@wix/himalaya-cli 0.1880.0 → 0.1882.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/sdk/app-info/src/index.d.ts +4 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/app-info.mjs +1 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap-checkout.mjs +1 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +48 -33
- package/dist/cli.mjs +345 -263
- package/package.json +2 -2
- package/templates/beauty-salon-owner/config.ts +22 -4
- package/templates/beauty-salon-owner/dev/index.ts +2 -1
- package/templates/beauty-salon-owner/tier5-src/_shared/owner-maestro-availability.ts +48 -0
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-maestro/index.ts +33 -31
- package/templates/community-club-owner/config.ts +22 -4
- package/templates/community-club-owner/dev/index.ts +2 -1
- package/templates/community-club-owner/tier5-src/_shared/owner-maestro-availability.ts +48 -0
- package/templates/community-club-owner/tier5-src/himi-owner-lite-maestro/index.ts +33 -31
- package/templates/events-meetups-owner/config.ts +22 -4
- package/templates/events-meetups-owner/dev/index.ts +2 -1
- package/templates/events-meetups-owner/tier5-src/_shared/owner-maestro-availability.ts +48 -0
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-maestro/index.ts +33 -31
- package/templates/gym-fitness-owner/config.ts +22 -4
- package/templates/gym-fitness-owner/dev/index.ts +2 -1
- package/templates/gym-fitness-owner/tier5-src/_shared/owner-maestro-availability.ts +48 -0
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-maestro/index.ts +33 -31
- package/templates/nonprofit-cause-owner/config.ts +22 -4
- package/templates/nonprofit-cause-owner/dev/index.ts +2 -1
- package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-maestro-availability.ts +48 -0
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-maestro/index.ts +33 -31
- package/templates/owner-lite/config.ts +22 -4
- package/templates/owner-lite/dev/index.ts +2 -1
- package/templates/owner-lite/tier5-src/_shared/owner-maestro-availability.ts +48 -0
- package/templates/owner-lite/tier5-src/himi-owner-lite-maestro/index.ts +33 -31
- package/templates/podcast-creator-owner/config.ts +22 -4
- package/templates/podcast-creator-owner/dev/index.ts +2 -1
- package/templates/podcast-creator-owner/tier5-src/_shared/owner-maestro-availability.ts +48 -0
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-maestro/index.ts +33 -31
- package/templates/portfolio-creative-owner/config.ts +22 -4
- package/templates/portfolio-creative-owner/dev/index.ts +2 -1
- package/templates/portfolio-creative-owner/tier5-src/_shared/owner-maestro-availability.ts +48 -0
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-maestro/index.ts +33 -31
- package/templates/restaurant-owner/config.ts +22 -4
- package/templates/restaurant-owner/dev/index.ts +2 -1
- package/templates/restaurant-owner/tier5-src/_shared/owner-maestro-availability.ts +48 -0
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-maestro/index.ts +33 -31
- package/templates/retail-store-owner/config.ts +22 -4
- package/templates/retail-store-owner/dev/index.ts +2 -1
- package/templates/retail-store-owner/tier5-src/_shared/owner-maestro-availability.ts +48 -0
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-maestro/index.ts +33 -31
- package/templates/yoga-studio-owner/config.ts +22 -4
- package/templates/yoga-studio-owner/dev/index.ts +2 -1
- package/templates/yoga-studio-owner/tier5-src/_shared/owner-maestro-availability.ts +48 -0
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-maestro/index.ts +33 -31
|
@@ -31,6 +31,10 @@ export interface AppInfo {
|
|
|
31
31
|
* False on older binaries and web. Does not grant member access or guarantee
|
|
32
32
|
* the site's invitation permission; the server still authorizes each request. */
|
|
33
33
|
oneAppInviteAvailable?: boolean;
|
|
34
|
+
/** The host can read a `_stream` whose `request.format` is "ndjson" (one JSON document per
|
|
35
|
+
* line). False on binaries built before that format existed, which read such a stream as
|
|
36
|
+
* server-sent events and deliver nothing, and on web. */
|
|
37
|
+
ndjsonStreamAvailable?: boolean;
|
|
34
38
|
/** Hardware model id — iOS `utsname` machine (e.g. "iPhone16,2"; a simulator reports the
|
|
35
39
|
* simulated model), Android `Build.MANUFACTURER Build.MODEL` (e.g. "Google Pixel 8"), web the
|
|
36
40
|
* user-agent's platform. "" when unknown. Never a device identifier. */
|
|
@@ -45,6 +45,7 @@ async function get() {
|
|
|
45
45
|
platform: PLATFORMS.includes(platform) ? platform : "unknown",
|
|
46
46
|
memberSiteBound: r?.memberSiteBound === true,
|
|
47
47
|
oneAppInviteAvailable: r?.oneAppInviteAvailable === true,
|
|
48
|
+
ndjsonStreamAvailable: r?.ndjsonStreamAvailable === true,
|
|
48
49
|
deviceModel: str(r?.deviceModel),
|
|
49
50
|
deviceName: str(r?.deviceName),
|
|
50
51
|
osVersion: str(r?.osVersion),
|
|
@@ -45,6 +45,7 @@ async function get() {
|
|
|
45
45
|
platform: PLATFORMS.includes(platform) ? platform : "unknown",
|
|
46
46
|
memberSiteBound: r?.memberSiteBound === true,
|
|
47
47
|
oneAppInviteAvailable: r?.oneAppInviteAvailable === true,
|
|
48
|
+
ndjsonStreamAvailable: r?.ndjsonStreamAvailable === true,
|
|
48
49
|
deviceModel: str(r?.deviceModel),
|
|
49
50
|
deviceName: str(r?.deviceName),
|
|
50
51
|
osVersion: str(r?.osVersion),
|
|
@@ -1823,6 +1823,7 @@ async function get() {
|
|
|
1823
1823
|
platform: PLATFORMS.includes(platform) ? platform : "unknown",
|
|
1824
1824
|
memberSiteBound: r?.memberSiteBound === true,
|
|
1825
1825
|
oneAppInviteAvailable: r?.oneAppInviteAvailable === true,
|
|
1826
|
+
ndjsonStreamAvailable: r?.ndjsonStreamAvailable === true,
|
|
1826
1827
|
deviceModel: str(r?.deviceModel),
|
|
1827
1828
|
deviceName: str(r?.deviceName),
|
|
1828
1829
|
osVersion: str(r?.osVersion),
|
|
@@ -1925,9 +1926,9 @@ var OVERLAPPING_PANEL_COVER_RATIO = 1.6;
|
|
|
1925
1926
|
var OVERLAPPING_PANEL_OVERLAP = 20;
|
|
1926
1927
|
var DEFAULT_COVER_TRANSITION_MS = 3e3;
|
|
1927
1928
|
var RADIUS = 24;
|
|
1928
|
-
var LOGO =
|
|
1929
|
+
var LOGO = 64;
|
|
1929
1930
|
var LOGO_RING = 2;
|
|
1930
|
-
var
|
|
1931
|
+
var LOGO_HANG = (LOGO + LOGO_RING * 2) / 2 - OVERLAPPING_PANEL_OVERLAP;
|
|
1931
1932
|
var LOGO_GAP = 12;
|
|
1932
1933
|
var TEXT_GAP = 4;
|
|
1933
1934
|
var GUTTER = 20;
|
|
@@ -1958,8 +1959,22 @@ function overlappingPanelHeader(options) {
|
|
|
1958
1959
|
const urls = (options.coverUrls ?? []).map((url) => clean2(url)).filter(Boolean);
|
|
1959
1960
|
const hasLogo = logoUrl !== "";
|
|
1960
1961
|
const hasPanel = hasLogo || title !== "" || subtitle !== "";
|
|
1961
|
-
const
|
|
1962
|
-
const
|
|
1962
|
+
const coverNode = cover(id2, urls, options.coverTransitionMs, clean2(options.coverLabel) || "Cover images");
|
|
1963
|
+
const ratioBox = (boxId, content, extra = {}) => node3(
|
|
1964
|
+
boxId,
|
|
1965
|
+
"VStack",
|
|
1966
|
+
{ spacing: 0, alignment: "leading", children: [node3(`${boxId}.fill`, "Spacer", {}, { weight: 1 }), content] },
|
|
1967
|
+
{ fillMaxWidth: true, aspectRatio: OVERLAPPING_PANEL_COVER_RATIO, hitTestable: false, ...extra }
|
|
1968
|
+
);
|
|
1969
|
+
const hang = hasLogo ? LOGO_HANG : 0;
|
|
1970
|
+
const layer = (layerId, child, tail, extra = {}) => node3(layerId, "VStack", { spacing: 0, alignment: "leading", children: [child, tail] }, { fillMaxWidth: true, ...extra });
|
|
1971
|
+
const spacerTail = (layerId) => node3(`${layerId}.tail`, "VStack", { spacing: 0, alignment: "leading", children: [] }, { height: hang });
|
|
1972
|
+
const stage = [hasLogo ? layer(`${id2}.cover.layer`, coverNode, node3(
|
|
1973
|
+
`${id2}.cover.tail`,
|
|
1974
|
+
"Shape",
|
|
1975
|
+
{ kind: "rectangle", fill: { token: "surfacePrimary" } },
|
|
1976
|
+
{ fillMaxWidth: true, height: hang, accessibilityHidden: true }
|
|
1977
|
+
)) : coverNode];
|
|
1963
1978
|
if (hasPanel) {
|
|
1964
1979
|
const cap = node3(
|
|
1965
1980
|
`${id2}.cap`,
|
|
@@ -1967,42 +1982,42 @@ function overlappingPanelHeader(options) {
|
|
|
1967
1982
|
{ kind: "roundedRectangle", cornerRadii: { topLeading: RADIUS, topTrailing: RADIUS }, fill: { token: "surfacePrimary" } },
|
|
1968
1983
|
{ fillMaxWidth: true, height: CAP, accessibilityHidden: true }
|
|
1969
1984
|
);
|
|
1970
|
-
const
|
|
1971
|
-
|
|
1972
|
-
if (hasLogo) {
|
|
1973
|
-
const ring = LOGO - LOGO_RING * 2;
|
|
1974
|
-
const logo = node3(`${id2}.logo.ring`, "VStack", { spacing: 0, alignment: "center", children: [
|
|
1975
|
-
node3(`${id2}.logo`, "Image", { url: logoUrl, width: ring, height: ring, contentMode: "fill", contentDescription: clean2(options.logoLabel) || title || "Logo" }, { cornerRadius: 13 })
|
|
1976
|
-
] }, { background: { token: "surfacePrimary" }, cornerRadius: 15, padding: { leading: LOGO_RING, trailing: LOGO_RING, top: LOGO_RING, bottom: LOGO_RING } });
|
|
1977
|
-
const above = LOGO - LOGO_BELOW_SEAM;
|
|
1978
|
-
seam = node3(`${id2}.seam`, "ZStack", { alignment: "leading", children: [
|
|
1979
|
-
node3(`${id2}.cap.box`, "VStack", { spacing: 0, alignment: "leading", children: [cap] }, { fillMaxWidth: true, padding: { top: above } }),
|
|
1980
|
-
node3(`${id2}.logo.row`, "HStack", { spacing: 0, alignment: "center", children: [logo] }, { padding: { leading: GUTTER, bottom: above + CAP - LOGO } })
|
|
1981
|
-
] }, moved);
|
|
1982
|
-
}
|
|
1983
|
-
stage.push(node3(
|
|
1984
|
-
`${id2}.overlay`,
|
|
1985
|
+
const capBox = ratioBox(`${id2}.overlay`, node3(
|
|
1986
|
+
`${id2}.seam`,
|
|
1985
1987
|
"VStack",
|
|
1986
|
-
{ spacing: 0, alignment: "leading", children: [
|
|
1987
|
-
{ fillMaxWidth: true,
|
|
1988
|
-
));
|
|
1988
|
+
{ spacing: 0, alignment: "leading", children: [cap] },
|
|
1989
|
+
{ fillMaxWidth: true, offsetY: CAP - OVERLAPPING_PANEL_OVERLAP }
|
|
1990
|
+
), { clipShape: "rectangle" });
|
|
1991
|
+
stage.push(hasLogo ? layer(`${id2}.overlay.layer`, capBox, spacerTail(`${id2}.overlay.layer`), { hitTestable: false }) : capBox);
|
|
1992
|
+
}
|
|
1993
|
+
if (hasLogo) {
|
|
1994
|
+
const logo = node3(`${id2}.logo.ring`, "VStack", { spacing: 0, alignment: "center", children: [
|
|
1995
|
+
node3(`${id2}.logo`, "Image", {
|
|
1996
|
+
url: logoUrl,
|
|
1997
|
+
width: LOGO,
|
|
1998
|
+
height: LOGO,
|
|
1999
|
+
contentMode: "fill",
|
|
2000
|
+
contentDescription: clean2(options.logoLabel) || title || "Logo"
|
|
2001
|
+
}, { cornerRadius: 13 })
|
|
2002
|
+
] }, { background: { token: "surfacePrimary" }, cornerRadius: 15, padding: { leading: LOGO_RING, trailing: LOGO_RING, top: LOGO_RING, bottom: LOGO_RING } });
|
|
2003
|
+
const logoBox = ratioBox(
|
|
2004
|
+
`${id2}.logo.box`,
|
|
2005
|
+
node3(`${id2}.logo.row`, "HStack", { spacing: 0, alignment: "center", children: [logo] }, { padding: { leading: GUTTER } }),
|
|
2006
|
+
{ offsetY: hang }
|
|
2007
|
+
);
|
|
2008
|
+
stage.push(layer(`${id2}.logo.layer`, logoBox, spacerTail(`${id2}.logo.layer`), { hitTestable: false, zIndex: 1 }));
|
|
1989
2009
|
}
|
|
1990
2010
|
const children = [node3(`${id2}.stage`, "ZStack", { alignment: "leading", children: stage }, { fillMaxWidth: true })];
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
2011
|
+
const texts = [];
|
|
2012
|
+
if (title) texts.push(node3(`${id2}.title`, "Text", { text: title, style: "title1", color: "textPrimary", textAlign: "leading" }, { headingLevel: 1 }));
|
|
2013
|
+
if (subtitle) texts.push(node3(`${id2}.subtitle`, "Text", { text: subtitle, style: "body", color: "textSecondary", textAlign: "leading" }));
|
|
2014
|
+
if (texts.length) {
|
|
1995
2015
|
const surface = node3(`${id2}.panel.surface`, "VStack", { spacing: TEXT_GAP, alignment: "leading", children: texts }, {
|
|
1996
2016
|
fillMaxWidth: true,
|
|
1997
2017
|
background: { token: "surfacePrimary" },
|
|
1998
|
-
|
|
2018
|
+
padding: { leading: GUTTER, trailing: GUTTER, top: hasLogo ? LOGO_GAP : 0, bottom: BOTTOM }
|
|
1999
2019
|
});
|
|
2000
|
-
children.push(node3(
|
|
2001
|
-
`${id2}.panel`,
|
|
2002
|
-
"VStack",
|
|
2003
|
-
{ spacing: 0, alignment: "leading", children: [surface] },
|
|
2004
|
-
{ fillMaxWidth: true, zIndex: 1, ...hang ? { padding: { top: hang } } : {} }
|
|
2005
|
-
));
|
|
2020
|
+
children.push(node3(`${id2}.panel`, "VStack", { spacing: 0, alignment: "leading", children: [surface] }, { fillMaxWidth: true }));
|
|
2006
2021
|
}
|
|
2007
2022
|
return node3(id2, "VStack", { spacing: 0, alignment: "leading", children }, { fillMaxWidth: true, imagePreview: "off" });
|
|
2008
2023
|
}
|