@wix/himalaya-cli 0.1867.0 → 0.1869.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/dev-server/src/builder.d.ts +2 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/state/src/index.d.ts +7 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +4 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/screens/src/index.d.ts +1 -44
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/screens/src/overlapping-panel-header.d.ts +30 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +162 -144
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{4a8928bb82fc0db03269e14445bfc09155ceb3cde1f268162ac70b7ceb097b1f.bin → fb2b059338baac28265ef57c60a2934572de24f5f84471859dd358f474ca6d4a.bin} +1 -1
- package/dist/browser-plane/sw.js +8 -8
- package/dist/cli.mjs +8951 -6905
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/component-index.md +1 -1
- package/guides/component-reference.json +1 -1
- package/guides/component-reference.md +4 -0
- package/guides/designing-himi-screens.md +4 -0
- package/guides/himi-json-output.md +27 -0
- package/guides/one-app-to-himi-app.md +75 -7
- package/guides/one-app-viewer.md +3 -1
- package/guides/release-notes.md +25 -0
- package/guides/sdk-reference.json +1 -22
- package/package.json +2 -2
- package/templates/bare-fashion/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/beauty-salon/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/beauty-salon-owner/config.ts +7 -0
- package/templates/beauty-salon-owner/dev/index.ts +618 -0
- package/templates/beauty-salon-owner/himalaya.content.json +3 -0
- package/templates/beauty-salon-owner/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-maestro/index.ts +399 -0
- package/templates/branded-lite/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/branded-lite/tier5-src/_shared/one-app-widget-gate.ts +65 -0
- package/templates/brandy/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/community-club/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/community-club-owner/config.ts +7 -0
- package/templates/community-club-owner/dev/index.ts +618 -0
- package/templates/community-club-owner/himalaya.content.json +3 -0
- package/templates/community-club-owner/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/community-club-owner/tier5-src/himi-owner-lite-maestro/index.ts +399 -0
- package/templates/conference/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/events-meetups/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/events-meetups-owner/config.ts +7 -0
- package/templates/events-meetups-owner/dev/index.ts +618 -0
- package/templates/events-meetups-owner/himalaya.content.json +3 -0
- package/templates/events-meetups-owner/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-maestro/index.ts +399 -0
- package/templates/fitness-gym/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/gym-fitness/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/gym-fitness-owner/config.ts +7 -0
- package/templates/gym-fitness-owner/dev/index.ts +618 -0
- package/templates/gym-fitness-owner/himalaya.content.json +3 -0
- package/templates/gym-fitness-owner/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-maestro/index.ts +399 -0
- package/templates/medical-services/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/nonprofit-cause/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/nonprofit-cause-owner/config.ts +7 -0
- package/templates/nonprofit-cause-owner/dev/index.ts +618 -0
- package/templates/nonprofit-cause-owner/himalaya.content.json +3 -0
- package/templates/nonprofit-cause-owner/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-maestro/index.ts +399 -0
- package/templates/owner-lite/config.ts +7 -0
- package/templates/owner-lite/dev/index.ts +618 -0
- package/templates/owner-lite/himalaya.content.json +3 -0
- package/templates/owner-lite/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/owner-lite/tier5-src/himi-owner-lite-maestro/index.ts +399 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/podcast-creator/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/podcast-creator-owner/config.ts +7 -0
- package/templates/podcast-creator-owner/dev/index.ts +618 -0
- package/templates/podcast-creator-owner/himalaya.content.json +3 -0
- package/templates/podcast-creator-owner/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-maestro/index.ts +399 -0
- package/templates/portfolio-creative/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/portfolio-creative-owner/config.ts +7 -0
- package/templates/portfolio-creative-owner/dev/index.ts +618 -0
- package/templates/portfolio-creative-owner/himalaya.content.json +3 -0
- package/templates/portfolio-creative-owner/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-maestro/index.ts +399 -0
- package/templates/restaurant/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/restaurant-owner/config.ts +7 -0
- package/templates/restaurant-owner/dev/index.ts +618 -0
- package/templates/restaurant-owner/himalaya.content.json +3 -0
- package/templates/restaurant-owner/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-maestro/index.ts +399 -0
- package/templates/retail-store/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/retail-store-owner/config.ts +7 -0
- package/templates/retail-store-owner/dev/index.ts +618 -0
- package/templates/retail-store-owner/himalaya.content.json +3 -0
- package/templates/retail-store-owner/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-maestro/index.ts +399 -0
- package/templates/salon-spa/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/wholesale-store/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/yoga-studio/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/yoga-studio-owner/config.ts +7 -0
- package/templates/yoga-studio-owner/dev/index.ts +618 -0
- package/templates/yoga-studio-owner/himalaya.content.json +3 -0
- package/templates/yoga-studio-owner/tier5-src/_shared/engine-intl.ts +9 -0
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-maestro/index.ts +399 -0
|
@@ -972,6 +972,8 @@ export declare function carousel(props: {
|
|
|
972
972
|
autoplayIntervalMs?: number;
|
|
973
973
|
itemsPath?: string;
|
|
974
974
|
liveWindow?: number;
|
|
975
|
+
/** "auto" (default) draws the page dots; "hidden" draws none and reserves no space (paging stays accessible). */
|
|
976
|
+
indicator?: "auto" | "hidden";
|
|
975
977
|
}, opts?: {
|
|
976
978
|
id?: string;
|
|
977
979
|
}): Component;
|
package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/state/src/index.d.ts
CHANGED
|
@@ -78,8 +78,14 @@ export interface StreamDirective {
|
|
|
78
78
|
body?: unknown;
|
|
79
79
|
/** Apply the host's Wix authorization to this request before opening the stream. */
|
|
80
80
|
authorize?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* How the response body is framed. `"sse"` (the default) reads Server-Sent Events `data:`
|
|
83
|
+
* lines; `"ndjson"` reads one JSON object per line (`application/x-ndjson`). Either way each
|
|
84
|
+
* object reaches `onEvent`, and an object whose `type` is `"done"` or `"error"` ends the stream.
|
|
85
|
+
*/
|
|
86
|
+
format?: "sse" | "ndjson";
|
|
81
87
|
};
|
|
82
|
-
/** Reducer action name dispatched once per parsed `data:`
|
|
88
|
+
/** Reducer action name dispatched once per parsed event (an SSE `data:` line, or an NDJSON line). */
|
|
83
89
|
onEvent: string;
|
|
84
90
|
/** Reducer action name dispatched when the stream closes cleanly. */
|
|
85
91
|
onDone?: string;
|
package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts
CHANGED
|
@@ -1422,6 +1422,10 @@ export interface CarouselProps {
|
|
|
1422
1422
|
itemsPath?: string;
|
|
1423
1423
|
/** RFC 0073 §4.5 — 0 (default) = all slides mounted; N ⇒ mount current ± N, unmount the rest. */
|
|
1424
1424
|
liveWindow?: number;
|
|
1425
|
+
/** Page indicator: `"auto"` / absent (default) draws the dots; `"hidden"` draws none and
|
|
1426
|
+
* reserves no space, while paging stays accessible (VoiceOver adjustable, TalkBack position,
|
|
1427
|
+
* web keyboard + live position). Unknown ⇒ `"auto"`; an older binary keeps the dots. */
|
|
1428
|
+
indicator?: "auto" | "hidden";
|
|
1425
1429
|
}
|
|
1426
1430
|
export interface PagerProps {
|
|
1427
1431
|
pages: Component[];
|
|
@@ -5,54 +5,11 @@ export * from "./file-share-screen.js";
|
|
|
5
5
|
export * from "./one-app-page.js";
|
|
6
6
|
export * from "./one-app-visibility.js";
|
|
7
7
|
export * from "./one-app-section.js";
|
|
8
|
+
export * from "./overlapping-panel-header.js";
|
|
8
9
|
export * from "./invite.js";
|
|
9
10
|
export * from "./podcast.js";
|
|
10
11
|
export * from "./podcast-service.js";
|
|
11
12
|
import { entitlement } from "@wix/himalaya/checkout";
|
|
12
|
-
type Node = Record<string, any>;
|
|
13
|
-
/** An action shown by `detailedHeader`. */
|
|
14
|
-
export interface DetailedHeaderAction {
|
|
15
|
-
label: string;
|
|
16
|
-
action: Node;
|
|
17
|
-
style?: "primary" | "secondary" | "plain";
|
|
18
|
-
}
|
|
19
|
-
/** Options for the shared One App-style detailed header composition. */
|
|
20
|
-
export interface DetailedHeaderOptions {
|
|
21
|
-
/** Prefix for stable SDUI node IDs. Use a unique value for each header. */
|
|
22
|
-
id?: string;
|
|
23
|
-
/** Page nodes that scroll beneath the hero and detail card. */
|
|
24
|
-
content?: Node[];
|
|
25
|
-
/** Cover image selected by the migration from the source cover list. */
|
|
26
|
-
imageUrl?: string;
|
|
27
|
-
title: string;
|
|
28
|
-
subtitle?: string;
|
|
29
|
-
logoUrl?: string;
|
|
30
|
-
locationLabel?: string;
|
|
31
|
-
locationAction?: DetailedHeaderAction;
|
|
32
|
-
memberCaption?: string;
|
|
33
|
-
memberAvatars?: Array<{
|
|
34
|
-
imageUrl?: string;
|
|
35
|
-
initials?: string;
|
|
36
|
-
}>;
|
|
37
|
-
/** Live member rows from a service. This takes precedence over `memberAvatars`. */
|
|
38
|
-
memberAvatarsPath?: string;
|
|
39
|
-
inviteAction?: DetailedHeaderAction;
|
|
40
|
-
primaryAction?: DetailedHeaderAction;
|
|
41
|
-
aboutAction?: DetailedHeaderAction;
|
|
42
|
-
/** Keep the hero at one height when the source header is not collapsible. */
|
|
43
|
-
collapsible?: boolean;
|
|
44
|
-
expandedHeight?: number;
|
|
45
|
-
collapsedHeight?: number;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Build an optional Detailed cover header for screens that explicitly request one.
|
|
49
|
-
*
|
|
50
|
-
* The header uses Himalaya's cross-platform `CollapsingHeader` and standard
|
|
51
|
-
* components for the detail card, logo, member strip, and actions. The One App
|
|
52
|
-
* migration workflow uses native navigation bars and does not call this builder.
|
|
53
|
-
* Himalaya's hero accepts one image.
|
|
54
|
-
*/
|
|
55
|
-
export declare function detailedHeader(opts: DetailedHeaderOptions): Node;
|
|
56
13
|
export interface ScreenEnvelope {
|
|
57
14
|
screenId: string;
|
|
58
15
|
renderer: string;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
type Node = Record<string, any>;
|
|
2
|
+
/** The cover's width:height. About 244pt tall at 390pt wide. */
|
|
3
|
+
export declare const OVERLAPPING_PANEL_COVER_RATIO = 1.6;
|
|
4
|
+
/** How far the panel overlaps the cover's bottom. */
|
|
5
|
+
export declare const OVERLAPPING_PANEL_OVERLAP = 20;
|
|
6
|
+
/** The delay between two covers when the source gives none, or one that is not a positive number. */
|
|
7
|
+
export declare const DEFAULT_COVER_TRANSITION_MS = 3000;
|
|
8
|
+
export interface OverlappingPanelHeaderOptions {
|
|
9
|
+
/** Prefix of every node id. Stable: the cover's id (`overlappingPanelCoverId`) keys the immersive bar's `solidAfter`. */
|
|
10
|
+
id: string;
|
|
11
|
+
/** Omitted when empty, as are the subtitle and the logo (no placeholder). */
|
|
12
|
+
title?: string;
|
|
13
|
+
subtitle?: string;
|
|
14
|
+
logoUrl?: string;
|
|
15
|
+
/** The logo's accessible name. Defaults to the title. */
|
|
16
|
+
logoLabel?: string;
|
|
17
|
+
/** Image URLs, in order. */
|
|
18
|
+
coverUrls?: readonly string[];
|
|
19
|
+
/** Milliseconds between covers. Missing, zero, negative or not a number: `DEFAULT_COVER_TRANSITION_MS`. */
|
|
20
|
+
coverTransitionMs?: unknown;
|
|
21
|
+
/** The accessible name of a multi-cover carousel. Default "Cover images". */
|
|
22
|
+
coverLabel?: string;
|
|
23
|
+
}
|
|
24
|
+
/** The node id of the header's cover: the edge after which an immersive bar turns solid. */
|
|
25
|
+
export declare const overlappingPanelCoverId: (id: string) => string;
|
|
26
|
+
/** A usable cover delay in milliseconds: a positive finite number (rounded), else the default. */
|
|
27
|
+
export declare function coverTransitionMs(value: unknown): number;
|
|
28
|
+
/** The Overlapping panel header. Always a header: no cover is the themed surface, no identity collapses the panel. */
|
|
29
|
+
export declare function overlappingPanelHeader(options: OverlappingPanelHeaderOptions): Node;
|
|
30
|
+
export {};
|
|
@@ -1395,8 +1395,8 @@ function deeperThan(nodes, depth, max) {
|
|
|
1395
1395
|
var isObj = (v) => !!v && typeof v === "object" && !Array.isArray(v);
|
|
1396
1396
|
function ricosToPlainText(doc) {
|
|
1397
1397
|
const kids = (v) => Array.isArray(v) ? v.filter(isObj) : [];
|
|
1398
|
-
const inline = (
|
|
1399
|
-
const blocks = (nodes) => nodes.flatMap((
|
|
1398
|
+
const inline = (node6) => typeof node6.textData?.text === "string" ? node6.textData.text : kids(node6.nodes).map(inline).join("");
|
|
1399
|
+
const blocks = (nodes) => nodes.flatMap((node6) => node6.type === "PARAGRAPH" || node6.type === "HEADING" || node6.type === "TEXT" ? [inline(node6)] : blocks(kids(node6.nodes)));
|
|
1400
1400
|
return blocks(kids(doc?.nodes)).join("\n\n");
|
|
1401
1401
|
}
|
|
1402
1402
|
function plainTextToRicos(text2) {
|
|
@@ -1471,29 +1471,29 @@ function cleanNodes(nodes, base, depth, ctx, parentType) {
|
|
|
1471
1471
|
if (!isObj(raw)) continue;
|
|
1472
1472
|
if (depth > RICH_CONTENT_LIMITS.maxDepth) throw TOO_DEEP;
|
|
1473
1473
|
const path = base === "" ? String(out.length) : `${base}.${out.length}`;
|
|
1474
|
-
const
|
|
1475
|
-
if (
|
|
1474
|
+
const node6 = cleanNode({ ...raw }, path, depth, ctx, parentType);
|
|
1475
|
+
if (node6) out.push(node6);
|
|
1476
1476
|
}
|
|
1477
1477
|
return out;
|
|
1478
1478
|
}
|
|
1479
|
-
function cleanNode(
|
|
1480
|
-
if (
|
|
1481
|
-
const decorations =
|
|
1479
|
+
function cleanNode(node6, path, depth, ctx, parentType) {
|
|
1480
|
+
if (node6.type === "TEXT") {
|
|
1481
|
+
const decorations = node6.textData?.decorations;
|
|
1482
1482
|
if (Array.isArray(decorations)) {
|
|
1483
1483
|
const kept = decorations.flatMap((d) => {
|
|
1484
1484
|
if (!(isObj(d) && d.type === "LINK")) return [d];
|
|
1485
1485
|
const next = rewriteAt(d, LINK_DECORATION_URL, cleanLink);
|
|
1486
1486
|
return getAt(next, LINK_DECORATION_URL) === void 0 ? [] : [next];
|
|
1487
1487
|
});
|
|
1488
|
-
|
|
1488
|
+
node6.textData = { ...node6.textData, decorations: kept };
|
|
1489
1489
|
}
|
|
1490
|
-
} else if (
|
|
1491
|
-
const data = isObj(
|
|
1490
|
+
} else if (node6.type === "IMAGE") {
|
|
1491
|
+
const data = isObj(node6.imageData) ? node6.imageData : {};
|
|
1492
1492
|
const url = ricosImageUrl(data, ctx.imageWidth);
|
|
1493
1493
|
if (!url) return null;
|
|
1494
|
-
|
|
1495
|
-
} else if (
|
|
1496
|
-
const data = isObj(
|
|
1494
|
+
node6.imageData = { ...data, image: { ...isObj(data.image) ? data.image : {}, src: { url } } };
|
|
1495
|
+
} else if (node6.type === "GALLERY") {
|
|
1496
|
+
const data = isObj(node6.galleryData) ? node6.galleryData : {};
|
|
1497
1497
|
const items = (Array.isArray(data.items) ? data.items : []).flatMap((item) => {
|
|
1498
1498
|
if (!isObj(item) || !isObj(item.image)) return [];
|
|
1499
1499
|
const media = isObj(item.image.media) ? item.image.media : {};
|
|
@@ -1501,9 +1501,9 @@ function cleanNode(node5, path, depth, ctx, parentType) {
|
|
|
1501
1501
|
return url ? [{ ...item, image: { ...item.image, media: { ...media, src: { url } } } }] : [];
|
|
1502
1502
|
});
|
|
1503
1503
|
if (items.length === 0) return null;
|
|
1504
|
-
|
|
1505
|
-
} else if (
|
|
1506
|
-
const data = isObj(
|
|
1504
|
+
node6.galleryData = { ...data, items };
|
|
1505
|
+
} else if (node6.type === "VIDEO") {
|
|
1506
|
+
const data = isObj(node6.videoData) ? { ...node6.videoData } : {};
|
|
1507
1507
|
const video = isObj(data.video) ? data.video : {};
|
|
1508
1508
|
const url = ricosVideoUrl(video.src);
|
|
1509
1509
|
if (!url) return null;
|
|
@@ -1511,32 +1511,32 @@ function cleanNode(node5, path, depth, ctx, parentType) {
|
|
|
1511
1511
|
const poster = ricosImageUrl({ image: data.thumbnail }, ctx.tileWidth);
|
|
1512
1512
|
if (poster) data.thumbnail = { ...data.thumbnail, src: { url: poster } };
|
|
1513
1513
|
else delete data.thumbnail;
|
|
1514
|
-
|
|
1515
|
-
} else if (
|
|
1516
|
-
|
|
1517
|
-
if (getAt(
|
|
1518
|
-
} else if (
|
|
1519
|
-
|
|
1520
|
-
} else if (
|
|
1521
|
-
|
|
1522
|
-
}
|
|
1523
|
-
for (const [field, ...rest] of (typeof
|
|
1524
|
-
if (field in
|
|
1514
|
+
node6.videoData = data;
|
|
1515
|
+
} else if (node6.type === "BUTTON" || node6.type === "LINK_BUTTON") {
|
|
1516
|
+
node6.buttonData = rewriteAt(node6.buttonData, BUTTON_URL, cleanLink);
|
|
1517
|
+
if (getAt(node6.buttonData, BUTTON_URL) === void 0) return null;
|
|
1518
|
+
} else if (node6.type === "HTML") {
|
|
1519
|
+
node6.htmlData = rewriteAt(node6.htmlData, ["html"], drop);
|
|
1520
|
+
} else if (node6.type === "EMBED") {
|
|
1521
|
+
node6.embedData = rewriteAt(node6.embedData, ["oembed", "html"], drop);
|
|
1522
|
+
}
|
|
1523
|
+
for (const [field, ...rest] of (typeof node6.type === "string" ? LINK_FIELDS[node6.type] : void 0) ?? []) {
|
|
1524
|
+
if (field in node6) node6[field] = rewriteAt(node6[field], rest, cleanLink);
|
|
1525
1525
|
}
|
|
1526
1526
|
const inBlocks = holdsBlocks(parentType);
|
|
1527
|
-
if (
|
|
1528
|
-
const own = typeof
|
|
1527
|
+
if (node6.type !== "TEXT" || inBlocks) {
|
|
1528
|
+
const own = typeof node6.id === "string" ? node6.id : "";
|
|
1529
1529
|
const usable = own !== "" && !unusableId(own);
|
|
1530
|
-
if (inBlocks && !isWrapper(
|
|
1530
|
+
if (inBlocks && !isWrapper(node6.type)) {
|
|
1531
1531
|
if (usable && !ctx.ids.has(own)) ctx.ids.add(own);
|
|
1532
|
-
else
|
|
1533
|
-
} else if (!usable)
|
|
1532
|
+
else node6.id = path;
|
|
1533
|
+
} else if (!usable) node6.id = path;
|
|
1534
1534
|
}
|
|
1535
|
-
if (Array.isArray(
|
|
1536
|
-
return
|
|
1535
|
+
if (Array.isArray(node6.nodes)) node6.nodes = cleanNodes(node6.nodes, path, depth + 1, ctx, typeof node6.type === "string" ? node6.type : "");
|
|
1536
|
+
return node6;
|
|
1537
1537
|
}
|
|
1538
1538
|
function countNodes(nodes) {
|
|
1539
|
-
return nodes.reduce((n,
|
|
1539
|
+
return nodes.reduce((n, node6) => isObj(node6) ? n + 1 + (Array.isArray(node6.nodes) ? countNodes(node6.nodes) : 0) : n, 0);
|
|
1540
1540
|
}
|
|
1541
1541
|
function canonicalJson(v, depth, max) {
|
|
1542
1542
|
if (depth > max) throw TOO_DEEP;
|
|
@@ -1591,18 +1591,18 @@ function normalizeWebsiteLinks(nodes) {
|
|
|
1591
1591
|
GIF: [["gifData", "original", "gif"]],
|
|
1592
1592
|
IMAGE: [["imageData", "link", "url"]]
|
|
1593
1593
|
};
|
|
1594
|
-
for (const
|
|
1595
|
-
for (const path of linkFields[
|
|
1596
|
-
const parent = object(path.slice(0, -1).reduce((value, key2) => object(value)[key2],
|
|
1594
|
+
for (const node6 of nodes) {
|
|
1595
|
+
for (const path of linkFields[node6.type ?? ""] ?? []) {
|
|
1596
|
+
const parent = object(path.slice(0, -1).reduce((value, key2) => object(value)[key2], node6));
|
|
1597
1597
|
const key = path[path.length - 1];
|
|
1598
1598
|
const holder = { url: parent[key] };
|
|
1599
1599
|
normalize2(holder);
|
|
1600
1600
|
if (typeof holder.url === "string") parent[key] = holder.url;
|
|
1601
1601
|
}
|
|
1602
|
-
if (Array.isArray(
|
|
1602
|
+
if (Array.isArray(node6.textData?.decorations)) for (const decoration of node6.textData.decorations) {
|
|
1603
1603
|
if (object(decoration).type === "LINK") normalize2(object(object(decoration).linkData).link);
|
|
1604
1604
|
}
|
|
1605
|
-
if (Array.isArray(
|
|
1605
|
+
if (Array.isArray(node6.nodes)) changed += normalizeWebsiteLinks(node6.nodes);
|
|
1606
1606
|
}
|
|
1607
1607
|
return changed;
|
|
1608
1608
|
}
|
|
@@ -1919,6 +1919,94 @@ function createOneAppSectionService(options) {
|
|
|
1919
1919
|
return svc;
|
|
1920
1920
|
}
|
|
1921
1921
|
|
|
1922
|
+
// ../../stdlib/flows/screens/src/overlapping-panel-header.ts
|
|
1923
|
+
var node3 = (id2, type, props, modifiers) => ({ id: id2, body: { package: "himalaya", type, props }, ...modifiers ? { modifiers } : {} });
|
|
1924
|
+
var OVERLAPPING_PANEL_COVER_RATIO = 1.6;
|
|
1925
|
+
var OVERLAPPING_PANEL_OVERLAP = 20;
|
|
1926
|
+
var DEFAULT_COVER_TRANSITION_MS = 3e3;
|
|
1927
|
+
var RADIUS = 24;
|
|
1928
|
+
var LOGO = 50;
|
|
1929
|
+
var LOGO_RING = 2;
|
|
1930
|
+
var LOGO_BELOW_SEAM = LOGO / 2;
|
|
1931
|
+
var LOGO_GAP = 12;
|
|
1932
|
+
var TEXT_GAP = 4;
|
|
1933
|
+
var GUTTER = 20;
|
|
1934
|
+
var BOTTOM = 21;
|
|
1935
|
+
var CAP = 48;
|
|
1936
|
+
var overlappingPanelCoverId = (id2) => `${id2}.cover`;
|
|
1937
|
+
function coverTransitionMs(value) {
|
|
1938
|
+
return typeof value === "number" && Number.isFinite(value) && value > 0 ? Math.max(1, Math.round(value)) : DEFAULT_COVER_TRANSITION_MS;
|
|
1939
|
+
}
|
|
1940
|
+
var clean2 = (value) => typeof value === "string" ? value.trim() : "";
|
|
1941
|
+
function cover(id2, urls, delay, label) {
|
|
1942
|
+
const frame = { fillMaxWidth: true, aspectRatio: OVERLAPPING_PANEL_COVER_RATIO };
|
|
1943
|
+
const coverId = overlappingPanelCoverId(id2);
|
|
1944
|
+
if (!urls.length) return node3(coverId, "Shape", { kind: "rectangle", fill: { token: "surfaceSecondary" } }, { ...frame, accessibilityHidden: true });
|
|
1945
|
+
const image = (imageId, url) => node3(imageId, "Image", { url, fillWidth: true, contentMode: "fill", aspectRatio: OVERLAPPING_PANEL_COVER_RATIO }, { ...frame, accessibilityHidden: true });
|
|
1946
|
+
if (urls.length === 1) return image(coverId, urls[0]);
|
|
1947
|
+
return node3(coverId, "Carousel", {
|
|
1948
|
+
items: urls.map((url, index) => image(`${coverId}.${index}`, url)),
|
|
1949
|
+
autoplayIntervalMs: coverTransitionMs(delay),
|
|
1950
|
+
indicator: "hidden"
|
|
1951
|
+
}, { ...frame, accessibilityLabel: label });
|
|
1952
|
+
}
|
|
1953
|
+
function overlappingPanelHeader(options) {
|
|
1954
|
+
const id2 = options.id;
|
|
1955
|
+
const title = clean2(options.title);
|
|
1956
|
+
const subtitle = clean2(options.subtitle);
|
|
1957
|
+
const logoUrl = clean2(options.logoUrl);
|
|
1958
|
+
const urls = (options.coverUrls ?? []).map((url) => clean2(url)).filter(Boolean);
|
|
1959
|
+
const hasLogo = logoUrl !== "";
|
|
1960
|
+
const hasPanel = hasLogo || title !== "" || subtitle !== "";
|
|
1961
|
+
const stage = [cover(id2, urls, options.coverTransitionMs, clean2(options.coverLabel) || "Cover images")];
|
|
1962
|
+
const hang = hasLogo ? LOGO_BELOW_SEAM - OVERLAPPING_PANEL_OVERLAP : 0;
|
|
1963
|
+
if (hasPanel) {
|
|
1964
|
+
const cap = node3(
|
|
1965
|
+
`${id2}.cap`,
|
|
1966
|
+
"Shape",
|
|
1967
|
+
{ kind: "roundedRectangle", cornerRadii: { topLeading: RADIUS, topTrailing: RADIUS }, fill: { token: "surfacePrimary" } },
|
|
1968
|
+
{ fillMaxWidth: true, height: CAP, accessibilityHidden: true }
|
|
1969
|
+
);
|
|
1970
|
+
const moved = { fillMaxWidth: true, offsetY: CAP - OVERLAPPING_PANEL_OVERLAP };
|
|
1971
|
+
let seam = node3(`${id2}.seam`, "VStack", { spacing: 0, alignment: "leading", children: [cap] }, moved);
|
|
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
|
+
"VStack",
|
|
1986
|
+
{ spacing: 0, alignment: "leading", children: [node3(`${id2}.overlay.fill`, "Spacer", {}, { weight: 1 }), seam] },
|
|
1987
|
+
{ fillMaxWidth: true, aspectRatio: OVERLAPPING_PANEL_COVER_RATIO, hitTestable: false }
|
|
1988
|
+
));
|
|
1989
|
+
}
|
|
1990
|
+
const children = [node3(`${id2}.stage`, "ZStack", { alignment: "leading", children: stage }, { fillMaxWidth: true })];
|
|
1991
|
+
if (hasPanel) {
|
|
1992
|
+
const texts = [];
|
|
1993
|
+
if (title) texts.push(node3(`${id2}.title`, "Text", { text: title, style: "title1", color: "textPrimary", textAlign: "leading" }, { headingLevel: 1 }));
|
|
1994
|
+
if (subtitle) texts.push(node3(`${id2}.subtitle`, "Text", { text: subtitle, style: "body", color: "textSecondary", textAlign: "leading" }));
|
|
1995
|
+
const surface = node3(`${id2}.panel.surface`, "VStack", { spacing: TEXT_GAP, alignment: "leading", children: texts }, {
|
|
1996
|
+
fillMaxWidth: true,
|
|
1997
|
+
background: { token: "surfacePrimary" },
|
|
1998
|
+
...texts.length ? { padding: { leading: GUTTER, trailing: GUTTER, top: hasLogo ? LOGO_GAP : 0, bottom: BOTTOM } } : { height: BOTTOM }
|
|
1999
|
+
});
|
|
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
|
+
));
|
|
2006
|
+
}
|
|
2007
|
+
return node3(id2, "VStack", { spacing: 0, alignment: "leading", children }, { fillMaxWidth: true, imagePreview: "off" });
|
|
2008
|
+
}
|
|
2009
|
+
|
|
1922
2010
|
// ../../stdlib/flows/auth/src/copy.generated.ts
|
|
1923
2011
|
var copy_generated_default = {
|
|
1924
2012
|
"auth.gate.title": "Welcome",
|
|
@@ -2673,7 +2761,7 @@ function mapPodcastFeed(response, describe = plain) {
|
|
|
2673
2761
|
}
|
|
2674
2762
|
return { ok: true, episodes, unplayable };
|
|
2675
2763
|
}
|
|
2676
|
-
var
|
|
2764
|
+
var node4 = (id2, type, props, modifiers) => ({ id: id2, body: { package: "himalaya", type, props }, ...modifiers ? { modifiers } : {} });
|
|
2677
2765
|
var PODCAST_SCREEN_CAPABILITIES = ["wix_api", "media_playback"];
|
|
2678
2766
|
function podcastFeedSetting(raw) {
|
|
2679
2767
|
const configured = podcastFeedUrl(raw);
|
|
@@ -2699,47 +2787,47 @@ function podcastScreen(opts) {
|
|
|
2699
2787
|
};
|
|
2700
2788
|
const bind = (field) => `$service:${s2}.${field}`;
|
|
2701
2789
|
const act = (action2, params) => ({ actionId: `tier5.${s2}.${action2}`, ...params ? { params } : {} });
|
|
2702
|
-
const text2 = (key, value, style, extra = {}) =>
|
|
2790
|
+
const text2 = (key, value, style, extra = {}) => node4(`${id2}.${key}`, "Text", { text: value, style, collapseWhenEmpty: true, ...extra });
|
|
2703
2791
|
const hiddenWhen = (n, field) => ({ ...n, modifiers: { ...n.modifiers ?? {}, hiddenPath: bind(field) } });
|
|
2704
|
-
const iconButton = (key, icon, label, action2) =>
|
|
2705
|
-
const row =
|
|
2792
|
+
const iconButton = (key, icon, label, action2) => node4(`${id2}.${key}`, "Button", { title: label, leadingIcon: icon, iconOnly: true, style: "plain", action: action2 });
|
|
2793
|
+
const row = node4(`${id2}.episode`, "ListItem", {
|
|
2706
2794
|
title: "$item.title",
|
|
2707
2795
|
subtitle: "$item.subtitle",
|
|
2708
2796
|
overline: "$item.progressLabel",
|
|
2709
|
-
leading:
|
|
2797
|
+
leading: node4(`${id2}.episode_art`, "Image", { url: "$item.image", initials: "P", width: 56, height: 56, contentMode: "fill", shape: "rounded", contentDescription: "$item.title" }),
|
|
2710
2798
|
trailing: iconButton("episode_queue", "list", c.queue, act("queueEpisode", { id: "$item.id" })),
|
|
2711
2799
|
onTap: act("playEpisode", { id: "$item.id" })
|
|
2712
2800
|
}, { accessibilityLabel: "$item.title" });
|
|
2713
|
-
const list =
|
|
2714
|
-
const feedStatus =
|
|
2801
|
+
const list = node4(`${id2}.episodes`, "LazyList", { itemsPath: bind("episodes"), items: [row], spacing: 0 });
|
|
2802
|
+
const feedStatus = node4(`${id2}.feed_status`, "VStack", { spacing: 8, alignment: "leading", children: [
|
|
2715
2803
|
text2("feed_message", bind("emptyText"), "body", { color: "textSecondary" }),
|
|
2716
|
-
hiddenWhen(
|
|
2804
|
+
hiddenWhen(node4(`${id2}.feed_retry`, "Button", { title: c.retry, style: "secondary", action: act("retryFeed") }), "hideFeedRetry")
|
|
2717
2805
|
] });
|
|
2718
|
-
const payload =
|
|
2806
|
+
const payload = node4(`${id2}.root`, "VStack", { spacing: 16, alignment: "leading", children: [
|
|
2719
2807
|
text2("title", c.title, "title1"),
|
|
2720
2808
|
list,
|
|
2721
2809
|
feedStatus
|
|
2722
2810
|
] }, { padding: { leading: 16, trailing: 16, top: 16, bottom: 24 }, onAppear: act("load", { feedUrl }) });
|
|
2723
|
-
const player = hiddenWhen(
|
|
2811
|
+
const player = hiddenWhen(node4(`${id2}.player`, "VStack", { spacing: 8, alignment: "leading", children: [
|
|
2724
2812
|
text2("now_title", bind("nowTitle"), "body", { maxLines: 1 }),
|
|
2725
2813
|
text2("now_subtitle", bind("nowSubtitle"), "caption", { color: "textSecondary", maxLines: 1 }),
|
|
2726
|
-
|
|
2814
|
+
node4(
|
|
2727
2815
|
`${id2}.scrubber`,
|
|
2728
2816
|
"Slider",
|
|
2729
2817
|
{ value: 0, min: 0, max: 1, step: 1e-3, valuePath: bind("progress"), debounceMs: 250, onChange: act("seek") },
|
|
2730
2818
|
{ accessibilityLabel: c.seek, accessibilityValue: bind("progressLabel") }
|
|
2731
2819
|
),
|
|
2732
2820
|
text2("progress", bind("progressLabel"), "caption", { color: "textSecondary" }),
|
|
2733
|
-
|
|
2821
|
+
node4(`${id2}.controls`, "HStack", { spacing: 8, children: [
|
|
2734
2822
|
iconButton("previous", "skip_previous", c.previous, act("previousEpisode")),
|
|
2735
2823
|
iconButton("back", "undo", c.back, act("seekBy", { deltaMs: "-15000" })),
|
|
2736
|
-
|
|
2824
|
+
node4(`${id2}.toggle`, "Button", { title: bind("playLabel"), leadingIcon: bind("playIcon"), style: "primary", action: act("togglePlay") }),
|
|
2737
2825
|
iconButton("forward", "refresh", c.forward, act("seekBy", { deltaMs: "30000" })),
|
|
2738
2826
|
iconButton("next", "skip_next", c.next, act("nextEpisode"))
|
|
2739
2827
|
] }),
|
|
2740
|
-
hiddenWhen(
|
|
2828
|
+
hiddenWhen(node4(`${id2}.playback_error`, "VStack", { spacing: 6, alignment: "leading", children: [
|
|
2741
2829
|
text2("playback_error_text", bind("playbackErrorText"), "caption", { color: "danger" }),
|
|
2742
|
-
hiddenWhen(
|
|
2830
|
+
hiddenWhen(node4(`${id2}.playback_retry`, "Button", { title: c.retry, style: "secondary", action: act("retryPlayback") }), "hidePlaybackRetry")
|
|
2743
2831
|
] }), "hidePlaybackError")
|
|
2744
2832
|
] }, { background: { token: "surfaceSecondary" }, padding: { leading: 16, trailing: 16, top: 10, bottom: 12 } }), "hidePlayer");
|
|
2745
2833
|
return {
|
|
@@ -6788,9 +6876,9 @@ async function readAccess(verticalRef, port) {
|
|
|
6788
6876
|
return ENDED.has(purchase.status) ? "none" : "unavailable";
|
|
6789
6877
|
}
|
|
6790
6878
|
function dataAt(body, path) {
|
|
6791
|
-
let
|
|
6792
|
-
for (const key of path)
|
|
6793
|
-
return isObject7(
|
|
6879
|
+
let node6 = isObject7(body) && isObject7(body.data) ? body.data : body;
|
|
6880
|
+
for (const key of path) node6 = isObject7(node6) ? node6[key] : void 0;
|
|
6881
|
+
return isObject7(node6) ? node6 : null;
|
|
6794
6882
|
}
|
|
6795
6883
|
var ENDED = /* @__PURE__ */ new Set(["DECLINED", "EXPIRED", "CANCELED", "REFUNDED", "FAILED"]);
|
|
6796
6884
|
var UNPAID = /* @__PURE__ */ new Set(["INITIALIZED", "PENDING"]);
|
|
@@ -7057,90 +7145,15 @@ function formatAt(pattern, args, locale, nesting) {
|
|
|
7057
7145
|
|
|
7058
7146
|
// ../../stdlib/flows/screens/src/index.ts
|
|
7059
7147
|
var PKG = "himalaya";
|
|
7060
|
-
var
|
|
7148
|
+
var node5 = (id2, type, props) => ({ id: id2, body: { package: PKG, type, props } });
|
|
7061
7149
|
var hideWhen = (n, path) => ({
|
|
7062
7150
|
...n,
|
|
7063
7151
|
modifiers: { ...n.modifiers ?? {}, hiddenPath: path }
|
|
7064
7152
|
});
|
|
7065
|
-
var text = (id2, value, style = "body") =>
|
|
7066
|
-
var vstack = (id2, children, spacing = 12, alignment = "leading") =>
|
|
7067
|
-
var button = (id2, title, action2, style = "primary") =>
|
|
7153
|
+
var text = (id2, value, style = "body") => node5(id2, "Text", { text: value, style });
|
|
7154
|
+
var vstack = (id2, children, spacing = 12, alignment = "leading") => node5(id2, "VStack", { spacing, alignment, children });
|
|
7155
|
+
var button = (id2, title, action2, style = "primary") => node5(id2, "Button", { title, style, fullWidth: true, action: action2 });
|
|
7068
7156
|
var openScreen = (screenId) => ({ actionId: "himi.open", params: { screenId } });
|
|
7069
|
-
function detailedHeader(opts) {
|
|
7070
|
-
const id2 = opts.id ?? "detailed_header";
|
|
7071
|
-
const cardChildren = [];
|
|
7072
|
-
if (opts.logoUrl || opts.locationLabel) {
|
|
7073
|
-
const identity = [];
|
|
7074
|
-
if (opts.logoUrl) {
|
|
7075
|
-
identity.push(node4(`${id2}.logo`, "Image", {
|
|
7076
|
-
url: opts.logoUrl,
|
|
7077
|
-
width: 56,
|
|
7078
|
-
height: 56,
|
|
7079
|
-
shape: "rounded",
|
|
7080
|
-
contentMode: "fill",
|
|
7081
|
-
contentDescription: opts.title
|
|
7082
|
-
}));
|
|
7083
|
-
}
|
|
7084
|
-
if (opts.locationLabel) {
|
|
7085
|
-
if (opts.locationAction) {
|
|
7086
|
-
identity.push(node4(`${id2}.locationGroup`, "HStack", {
|
|
7087
|
-
spacing: 8,
|
|
7088
|
-
alignment: "center",
|
|
7089
|
-
children: [
|
|
7090
|
-
text(`${id2}.location`, opts.locationLabel, "caption"),
|
|
7091
|
-
node4(`${id2}.location.action`, "Button", {
|
|
7092
|
-
title: opts.locationAction.label,
|
|
7093
|
-
style: opts.locationAction.style ?? "plain",
|
|
7094
|
-
fullWidth: false,
|
|
7095
|
-
action: opts.locationAction.action
|
|
7096
|
-
})
|
|
7097
|
-
]
|
|
7098
|
-
}));
|
|
7099
|
-
} else {
|
|
7100
|
-
identity.push(text(`${id2}.location`, opts.locationLabel, "caption"));
|
|
7101
|
-
}
|
|
7102
|
-
}
|
|
7103
|
-
cardChildren.push(node4(`${id2}.identity`, "HStack", { spacing: 12, alignment: "center", children: identity }));
|
|
7104
|
-
}
|
|
7105
|
-
if (opts.memberCaption || opts.memberAvatarsPath || opts.memberAvatars?.length) {
|
|
7106
|
-
cardChildren.push(node4(`${id2}.members`, "AvatarStrip", {
|
|
7107
|
-
size: 36,
|
|
7108
|
-
maxVisible: 5,
|
|
7109
|
-
...opts.memberCaption ? { caption: opts.memberCaption } : {},
|
|
7110
|
-
...opts.memberAvatarsPath ? { avatarsPath: opts.memberAvatarsPath } : {},
|
|
7111
|
-
...!opts.memberAvatarsPath && opts.memberAvatars ? { avatars: opts.memberAvatars } : {}
|
|
7112
|
-
}));
|
|
7113
|
-
}
|
|
7114
|
-
for (const [key, action2] of [
|
|
7115
|
-
["invite", opts.inviteAction],
|
|
7116
|
-
["primary", opts.primaryAction],
|
|
7117
|
-
["about", opts.aboutAction]
|
|
7118
|
-
]) {
|
|
7119
|
-
if (action2) cardChildren.push(button(`${id2}.${key}`, action2.label, action2.action, action2.style ?? (key === "primary" ? "primary" : "secondary")));
|
|
7120
|
-
}
|
|
7121
|
-
const card = node4(`${id2}.card`, "VStack", {
|
|
7122
|
-
spacing: 14,
|
|
7123
|
-
alignment: "leading",
|
|
7124
|
-
children: cardChildren
|
|
7125
|
-
});
|
|
7126
|
-
card.modifiers = {
|
|
7127
|
-
background: { token: "surfacePrimary" },
|
|
7128
|
-
cornerRadius: 24,
|
|
7129
|
-
padding: { leading: 20, trailing: 20, top: 20, bottom: 20 },
|
|
7130
|
-
offsetY: -20,
|
|
7131
|
-
fillMaxWidth: true
|
|
7132
|
-
};
|
|
7133
|
-
const fixed = opts.collapsible === false;
|
|
7134
|
-
return node4(id2, "CollapsingHeader", {
|
|
7135
|
-
...opts.imageUrl ? { imageUrl: opts.imageUrl } : {},
|
|
7136
|
-
title: opts.title,
|
|
7137
|
-
...opts.subtitle ? { subtitle: opts.subtitle } : {},
|
|
7138
|
-
expandedHeight: fixed ? opts.expandedHeight ?? 240 : opts.expandedHeight ?? 280,
|
|
7139
|
-
collapsedHeight: fixed ? opts.expandedHeight ?? 240 : opts.collapsedHeight ?? 68,
|
|
7140
|
-
children: [...cardChildren.length ? [card] : [], ...opts.content ?? []],
|
|
7141
|
-
parallaxFactor: 0.45
|
|
7142
|
-
});
|
|
7143
|
-
}
|
|
7144
7157
|
function envelope(screenId, title, root, logic) {
|
|
7145
7158
|
return {
|
|
7146
7159
|
screenId,
|
|
@@ -7182,7 +7195,7 @@ function authScreen(opts) {
|
|
|
7182
7195
|
const c = opts.copy ?? {};
|
|
7183
7196
|
const copyOf = (field2) => authCopyText(c, opts.text, field2);
|
|
7184
7197
|
const withRegister = opts.register !== false;
|
|
7185
|
-
const field = (key, label, action2, extra = {}) =>
|
|
7198
|
+
const field = (key, label, action2, extra = {}) => node5(`${s2}.${key}`, "TextField", {
|
|
7186
7199
|
label,
|
|
7187
7200
|
placeholder: label,
|
|
7188
7201
|
valuePath: `$service:${s2}.${key}`,
|
|
@@ -7202,7 +7215,7 @@ function authScreen(opts) {
|
|
|
7202
7215
|
`$service:${s2}.signedIn`
|
|
7203
7216
|
),
|
|
7204
7217
|
hideWhen(
|
|
7205
|
-
|
|
7218
|
+
node5(`${s2}.submit`, "Button", {
|
|
7206
7219
|
title: `$service:${s2}.submitCta`,
|
|
7207
7220
|
style: "primary",
|
|
7208
7221
|
fullWidth: true,
|
|
@@ -7214,7 +7227,7 @@ function authScreen(opts) {
|
|
|
7214
7227
|
if (withRegister) {
|
|
7215
7228
|
children.push(
|
|
7216
7229
|
hideWhen(
|
|
7217
|
-
|
|
7230
|
+
node5(`${s2}.toggle`, "Button", {
|
|
7218
7231
|
title: `$service:${s2}.switchCta`,
|
|
7219
7232
|
style: "secondary",
|
|
7220
7233
|
fullWidth: true,
|
|
@@ -7234,7 +7247,7 @@ function authScreen(opts) {
|
|
|
7234
7247
|
}
|
|
7235
7248
|
children.push(
|
|
7236
7249
|
hideWhen(
|
|
7237
|
-
|
|
7250
|
+
node5(`${s2}.signout`, "Button", {
|
|
7238
7251
|
title: copyOf("signOutCta"),
|
|
7239
7252
|
style: "secondary",
|
|
7240
7253
|
fullWidth: true,
|
|
@@ -7759,7 +7772,7 @@ function checkoutScreen(opts) {
|
|
|
7759
7772
|
// someone the thing they are currently paying for is the obvious next bug.
|
|
7760
7773
|
hideWhen(text(`${s2}.row_joined`, "$item.joinedLabel", "bodyEmphasis"), "$item.notJoined"),
|
|
7761
7774
|
hideWhen(
|
|
7762
|
-
|
|
7775
|
+
node5(`${s2}.row_join`, "Button", {
|
|
7763
7776
|
title: "$item.cta",
|
|
7764
7777
|
disabledPath: "$item.joinDisabled",
|
|
7765
7778
|
style: "primary",
|
|
@@ -7798,7 +7811,7 @@ function checkoutScreen(opts) {
|
|
|
7798
7811
|
}
|
|
7799
7812
|
children.push(
|
|
7800
7813
|
hideWhen(
|
|
7801
|
-
|
|
7814
|
+
node5(`${s2}.list`, "LazyList", { itemsPath: `$service:${s2}.rows`, spacing: 18, items: [row] }),
|
|
7802
7815
|
`$service:${s2}.noRows`
|
|
7803
7816
|
)
|
|
7804
7817
|
);
|
|
@@ -7810,10 +7823,13 @@ function checkoutScreen(opts) {
|
|
|
7810
7823
|
});
|
|
7811
7824
|
}
|
|
7812
7825
|
export {
|
|
7826
|
+
DEFAULT_COVER_TRANSITION_MS,
|
|
7813
7827
|
FILE_SHARE_APP_DEF_ID,
|
|
7814
7828
|
FILE_SHARE_CAPABILITIES,
|
|
7815
7829
|
FILE_SHARE_INITIAL,
|
|
7816
7830
|
ONE_APP_MEMBER_ONLY_SECTIONS,
|
|
7831
|
+
OVERLAPPING_PANEL_COVER_RATIO,
|
|
7832
|
+
OVERLAPPING_PANEL_OVERLAP,
|
|
7817
7833
|
PODCAST_EPISODES_QUERY,
|
|
7818
7834
|
PODCAST_FEED_ENDPOINT,
|
|
7819
7835
|
PODCAST_SCREEN_CAPABILITIES,
|
|
@@ -7823,6 +7839,7 @@ export {
|
|
|
7823
7839
|
businessContactSection,
|
|
7824
7840
|
businessContactSettings,
|
|
7825
7841
|
checkoutScreen,
|
|
7842
|
+
coverTransitionMs,
|
|
7826
7843
|
createAuthService,
|
|
7827
7844
|
createBusinessContactService,
|
|
7828
7845
|
createCheckoutService,
|
|
@@ -7832,7 +7849,6 @@ export {
|
|
|
7832
7849
|
createOneAppSectionService,
|
|
7833
7850
|
createPodcastService,
|
|
7834
7851
|
decodeOneAppPage,
|
|
7835
|
-
detailedHeader,
|
|
7836
7852
|
entitlement,
|
|
7837
7853
|
fileShareScreen,
|
|
7838
7854
|
inviteAction,
|
|
@@ -7845,6 +7861,8 @@ export {
|
|
|
7845
7861
|
oneAppPageSection,
|
|
7846
7862
|
oneAppSection,
|
|
7847
7863
|
oneAppSectionVisibility,
|
|
7864
|
+
overlappingPanelCoverId,
|
|
7865
|
+
overlappingPanelHeader,
|
|
7848
7866
|
podcastAudioUrl,
|
|
7849
7867
|
podcastDurationMs,
|
|
7850
7868
|
podcastFeedRequest,
|