@wix/himalaya-cli 0.1741.0 → 0.1742.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/stdlib/wix-sdk/members-v1/src/index.d.ts +7 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/pricing-plans/src/index.d.ts +6 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-members.mjs +6 -0
- package/dist/cli.mjs +161 -73
- package/guides/getting-started.md +18 -7
- package/guides/himi-json-output.md +11 -0
- package/guides/himi-skill.md +18 -7
- package/guides/sdk-reference.json +11 -2
- package/guides/skill.md +24 -13
- package/package.json +2 -2
- package/templates/beauty-salon/l10n/en.json +55 -0
- package/templates/beauty-salon/l10n/fr.json +297 -0
- package/templates/beauty-salon/l10n/he.json +319 -0
- package/templates/beauty-salon/recipes/blog-list-thumb-start.json +364 -0
- package/templates/beauty-salon/recipes/blog-list.json +364 -0
- package/templates/beauty-salon/recipes/blog-see-all.json +50 -0
- package/templates/beauty-salon/recipes/events-inline-list.json +203 -0
- package/templates/beauty-salon/recipes/events-inline.json +284 -0
- package/templates/beauty-salon/recipes/members-list.json +445 -0
- package/templates/beauty-salon/recipes/plans-card.json +811 -0
- package/templates/beauty-salon/recipes/programs-card.json +254 -0
- package/templates/beauty-salon/recipes/programs-carousel.json +234 -0
- package/templates/beauty-salon/recipes/section-error.json +58 -0
- package/templates/beauty-salon/tier5-src/_shared/blog-list.ts +207 -0
- package/templates/beauty-salon/tier5-src/_shared/event-registration.ts +86 -0
- package/templates/beauty-salon/tier5-src/_shared/events-card.ts +33 -0
- package/templates/beauty-salon/tier5-src/_shared/events-inline-options.ts +25 -0
- package/templates/beauty-salon/tier5-src/_shared/events-inline.ts +82 -0
- package/templates/beauty-salon/tier5-src/_shared/member-activity.ts +34 -0
- package/templates/beauty-salon/tier5-src/_shared/member-row-extras.ts +167 -0
- package/templates/beauty-salon/tier5-src/_shared/members-directory-view.ts +39 -0
- package/templates/beauty-salon/tier5-src/_shared/members-directory.ts +267 -0
- package/templates/beauty-salon/tier5-src/_shared/plan-facts.ts +87 -0
- package/templates/beauty-salon/tier5-src/_shared/plans-section.ts +106 -0
- package/templates/beauty-salon/tier5-src/_shared/programs-section.ts +728 -0
- package/templates/beauty-salon/tier5-src/_shared/relative-time.ts +21 -0
- package/templates/branded-lite/l10n/fr.json +10 -0
- package/templates/branded-lite/l10n/he.json +88 -0
- package/templates/branded-lite/recipes/blog-list-thumb-start.json +364 -0
- package/templates/branded-lite/recipes/blog-list.json +364 -0
- package/templates/branded-lite/recipes/blog-see-all.json +50 -0
- package/templates/branded-lite/recipes/events-inline-list.json +203 -0
- package/templates/branded-lite/recipes/events-inline.json +284 -0
- package/templates/branded-lite/recipes/members-list.json +445 -0
- package/templates/branded-lite/recipes/plans-card.json +811 -0
- package/templates/branded-lite/recipes/programs-card.json +254 -0
- package/templates/branded-lite/recipes/programs-carousel.json +234 -0
- package/templates/branded-lite/recipes/section-error.json +58 -0
- package/templates/branded-lite/tier5-src/_shared/blog-list.ts +207 -0
- package/templates/branded-lite/tier5-src/_shared/events-card.ts +33 -0
- package/templates/branded-lite/tier5-src/_shared/events-inline-options.ts +25 -0
- package/templates/branded-lite/tier5-src/_shared/events-inline.ts +82 -0
- package/templates/branded-lite/tier5-src/_shared/member-row-extras.ts +1 -1
- package/templates/branded-lite/tier5-src/_shared/members-directory-view.ts +39 -0
- package/templates/branded-lite/tier5-src/_shared/members-directory.ts +267 -0
- package/templates/branded-lite/tier5-src/_shared/plan-facts.ts +87 -0
- package/templates/branded-lite/tier5-src/_shared/plans-section.ts +106 -0
- package/templates/branded-lite/tier5-src/_shared/programs-section.ts +728 -0
- package/templates/branded-lite/tier5-src/_shared/relative-time.ts +21 -0
- package/templates/community-club/l10n/en.json +45 -0
- package/templates/community-club/l10n/fr.json +292 -0
- package/templates/community-club/l10n/he.json +315 -0
- package/templates/community-club/recipes/blog-list-thumb-start.json +364 -0
- package/templates/community-club/recipes/blog-list.json +364 -0
- package/templates/community-club/recipes/blog-see-all.json +50 -0
- package/templates/community-club/recipes/events-inline-list.json +203 -0
- package/templates/community-club/recipes/events-inline.json +284 -0
- package/templates/community-club/recipes/members-list.json +445 -0
- package/templates/community-club/recipes/plans-card.json +811 -0
- package/templates/community-club/recipes/programs-card.json +254 -0
- package/templates/community-club/recipes/programs-carousel.json +234 -0
- package/templates/community-club/recipes/section-error.json +58 -0
- package/templates/community-club/tier5-src/_shared/blog-list.ts +207 -0
- package/templates/community-club/tier5-src/_shared/detail-presence.ts +51 -0
- package/templates/community-club/tier5-src/_shared/events-card.ts +33 -0
- package/templates/community-club/tier5-src/_shared/events-inline-options.ts +25 -0
- package/templates/community-club/tier5-src/_shared/events-inline.ts +82 -0
- package/templates/community-club/tier5-src/_shared/member-activity.ts +34 -0
- package/templates/community-club/tier5-src/_shared/member-row-extras.ts +167 -0
- package/templates/community-club/tier5-src/_shared/members-directory-view.ts +39 -0
- package/templates/community-club/tier5-src/_shared/members-directory.ts +267 -0
- package/templates/community-club/tier5-src/_shared/plan-facts.ts +87 -0
- package/templates/community-club/tier5-src/_shared/plans-section.ts +106 -0
- package/templates/community-club/tier5-src/_shared/programs-section.ts +728 -0
- package/templates/community-club/tier5-src/_shared/relative-time.ts +21 -0
- package/templates/events-meetups/l10n/en.json +45 -0
- package/templates/events-meetups/l10n/fr.json +292 -0
- package/templates/events-meetups/l10n/he.json +315 -0
- package/templates/events-meetups/recipes/blog-list-thumb-start.json +364 -0
- package/templates/events-meetups/recipes/blog-list.json +364 -0
- package/templates/events-meetups/recipes/blog-see-all.json +50 -0
- package/templates/events-meetups/recipes/events-inline-list.json +203 -0
- package/templates/events-meetups/recipes/events-inline.json +284 -0
- package/templates/events-meetups/recipes/members-list.json +445 -0
- package/templates/events-meetups/recipes/plans-card.json +811 -0
- package/templates/events-meetups/recipes/programs-card.json +254 -0
- package/templates/events-meetups/recipes/programs-carousel.json +234 -0
- package/templates/events-meetups/recipes/section-error.json +58 -0
- package/templates/events-meetups/tier5-src/_shared/blog-list.ts +207 -0
- package/templates/events-meetups/tier5-src/_shared/detail-presence.ts +51 -0
- package/templates/events-meetups/tier5-src/_shared/events-card.ts +33 -0
- package/templates/events-meetups/tier5-src/_shared/events-inline-options.ts +25 -0
- package/templates/events-meetups/tier5-src/_shared/events-inline.ts +82 -0
- package/templates/events-meetups/tier5-src/_shared/member-activity.ts +34 -0
- package/templates/events-meetups/tier5-src/_shared/member-row-extras.ts +167 -0
- package/templates/events-meetups/tier5-src/_shared/members-directory-view.ts +39 -0
- package/templates/events-meetups/tier5-src/_shared/members-directory.ts +267 -0
- package/templates/events-meetups/tier5-src/_shared/plan-facts.ts +87 -0
- package/templates/events-meetups/tier5-src/_shared/plans-section.ts +106 -0
- package/templates/events-meetups/tier5-src/_shared/programs-section.ts +728 -0
- package/templates/events-meetups/tier5-src/_shared/relative-time.ts +21 -0
- package/templates/gym-fitness/l10n/en.json +45 -0
- package/templates/gym-fitness/l10n/fr.json +282 -0
- package/templates/gym-fitness/l10n/he.json +307 -0
- package/templates/gym-fitness/recipes/blog-list-thumb-start.json +364 -0
- package/templates/gym-fitness/recipes/blog-list.json +364 -0
- package/templates/gym-fitness/recipes/blog-see-all.json +50 -0
- package/templates/gym-fitness/recipes/events-inline-list.json +203 -0
- package/templates/gym-fitness/recipes/events-inline.json +284 -0
- package/templates/gym-fitness/recipes/members-list.json +445 -0
- package/templates/gym-fitness/recipes/plans-card.json +811 -0
- package/templates/gym-fitness/recipes/programs-card.json +254 -0
- package/templates/gym-fitness/recipes/programs-carousel.json +234 -0
- package/templates/gym-fitness/recipes/section-error.json +58 -0
- package/templates/gym-fitness/tier5-src/_shared/blog-list.ts +207 -0
- package/templates/gym-fitness/tier5-src/_shared/events-card.ts +33 -0
- package/templates/gym-fitness/tier5-src/_shared/events-inline-options.ts +25 -0
- package/templates/gym-fitness/tier5-src/_shared/events-inline.ts +82 -0
- package/templates/gym-fitness/tier5-src/_shared/member-activity.ts +34 -0
- package/templates/gym-fitness/tier5-src/_shared/member-row-extras.ts +167 -0
- package/templates/gym-fitness/tier5-src/_shared/members-directory-view.ts +39 -0
- package/templates/gym-fitness/tier5-src/_shared/members-directory.ts +267 -0
- package/templates/gym-fitness/tier5-src/_shared/plan-facts.ts +87 -0
- package/templates/gym-fitness/tier5-src/_shared/plans-section.ts +106 -0
- package/templates/gym-fitness/tier5-src/_shared/programs-section.ts +728 -0
- package/templates/gym-fitness/tier5-src/_shared/relative-time.ts +21 -0
- package/templates/nonprofit-cause/l10n/en.json +45 -0
- package/templates/nonprofit-cause/l10n/fr.json +267 -0
- package/templates/nonprofit-cause/l10n/he.json +295 -0
- package/templates/nonprofit-cause/recipes/blog-list-thumb-start.json +364 -0
- package/templates/nonprofit-cause/recipes/blog-list.json +364 -0
- package/templates/nonprofit-cause/recipes/blog-see-all.json +50 -0
- package/templates/nonprofit-cause/recipes/events-inline-list.json +203 -0
- package/templates/nonprofit-cause/recipes/events-inline.json +284 -0
- package/templates/nonprofit-cause/recipes/members-list.json +445 -0
- package/templates/nonprofit-cause/recipes/plans-card.json +811 -0
- package/templates/nonprofit-cause/recipes/programs-card.json +254 -0
- package/templates/nonprofit-cause/recipes/programs-carousel.json +234 -0
- package/templates/nonprofit-cause/recipes/section-error.json +58 -0
- package/templates/nonprofit-cause/tier5-src/_shared/blog-list.ts +207 -0
- package/templates/nonprofit-cause/tier5-src/_shared/events-card.ts +33 -0
- package/templates/nonprofit-cause/tier5-src/_shared/events-inline-options.ts +25 -0
- package/templates/nonprofit-cause/tier5-src/_shared/events-inline.ts +82 -0
- package/templates/nonprofit-cause/tier5-src/_shared/member-activity.ts +34 -0
- package/templates/nonprofit-cause/tier5-src/_shared/member-row-extras.ts +167 -0
- package/templates/nonprofit-cause/tier5-src/_shared/members-directory-view.ts +39 -0
- package/templates/nonprofit-cause/tier5-src/_shared/members-directory.ts +267 -0
- package/templates/nonprofit-cause/tier5-src/_shared/plan-facts.ts +87 -0
- package/templates/nonprofit-cause/tier5-src/_shared/plans-section.ts +106 -0
- package/templates/nonprofit-cause/tier5-src/_shared/programs-section.ts +728 -0
- package/templates/nonprofit-cause/tier5-src/_shared/relative-time.ts +21 -0
- package/templates/podcast-creator/l10n/en.json +45 -0
- package/templates/podcast-creator/l10n/fr.json +287 -0
- package/templates/podcast-creator/l10n/he.json +311 -0
- package/templates/podcast-creator/recipes/blog-list-thumb-start.json +364 -0
- package/templates/podcast-creator/recipes/blog-list.json +364 -0
- package/templates/podcast-creator/recipes/blog-see-all.json +50 -0
- package/templates/podcast-creator/recipes/events-inline-list.json +203 -0
- package/templates/podcast-creator/recipes/events-inline.json +284 -0
- package/templates/podcast-creator/recipes/members-list.json +445 -0
- package/templates/podcast-creator/recipes/plans-card.json +811 -0
- package/templates/podcast-creator/recipes/programs-card.json +254 -0
- package/templates/podcast-creator/recipes/programs-carousel.json +234 -0
- package/templates/podcast-creator/recipes/section-error.json +58 -0
- package/templates/podcast-creator/tier5-src/_shared/blog-list.ts +207 -0
- package/templates/podcast-creator/tier5-src/_shared/events-card.ts +33 -0
- package/templates/podcast-creator/tier5-src/_shared/events-inline-options.ts +25 -0
- package/templates/podcast-creator/tier5-src/_shared/events-inline.ts +82 -0
- package/templates/podcast-creator/tier5-src/_shared/member-activity.ts +34 -0
- package/templates/podcast-creator/tier5-src/_shared/member-row-extras.ts +167 -0
- package/templates/podcast-creator/tier5-src/_shared/members-directory-view.ts +39 -0
- package/templates/podcast-creator/tier5-src/_shared/members-directory.ts +267 -0
- package/templates/podcast-creator/tier5-src/_shared/plan-facts.ts +87 -0
- package/templates/podcast-creator/tier5-src/_shared/plans-section.ts +106 -0
- package/templates/podcast-creator/tier5-src/_shared/programs-section.ts +728 -0
- package/templates/podcast-creator/tier5-src/_shared/relative-time.ts +21 -0
- package/templates/portfolio-creative/l10n/en.json +45 -0
- package/templates/portfolio-creative/l10n/fr.json +317 -0
- package/templates/portfolio-creative/l10n/he.json +335 -0
- package/templates/portfolio-creative/recipes/blog-list-thumb-start.json +364 -0
- package/templates/portfolio-creative/recipes/blog-list.json +364 -0
- package/templates/portfolio-creative/recipes/blog-see-all.json +50 -0
- package/templates/portfolio-creative/recipes/events-inline-list.json +203 -0
- package/templates/portfolio-creative/recipes/events-inline.json +284 -0
- package/templates/portfolio-creative/recipes/members-list.json +445 -0
- package/templates/portfolio-creative/recipes/plans-card.json +811 -0
- package/templates/portfolio-creative/recipes/programs-card.json +254 -0
- package/templates/portfolio-creative/recipes/programs-carousel.json +234 -0
- package/templates/portfolio-creative/recipes/section-error.json +58 -0
- package/templates/portfolio-creative/tier5-src/_shared/blog-list.ts +207 -0
- package/templates/portfolio-creative/tier5-src/_shared/events-card.ts +33 -0
- package/templates/portfolio-creative/tier5-src/_shared/events-inline-options.ts +25 -0
- package/templates/portfolio-creative/tier5-src/_shared/events-inline.ts +82 -0
- package/templates/portfolio-creative/tier5-src/_shared/member-activity.ts +34 -0
- package/templates/portfolio-creative/tier5-src/_shared/member-row-extras.ts +167 -0
- package/templates/portfolio-creative/tier5-src/_shared/members-directory-view.ts +39 -0
- package/templates/portfolio-creative/tier5-src/_shared/members-directory.ts +267 -0
- package/templates/portfolio-creative/tier5-src/_shared/plan-facts.ts +87 -0
- package/templates/portfolio-creative/tier5-src/_shared/plans-section.ts +106 -0
- package/templates/portfolio-creative/tier5-src/_shared/programs-section.ts +728 -0
- package/templates/portfolio-creative/tier5-src/_shared/relative-time.ts +21 -0
- package/templates/restaurant/l10n/en.json +45 -0
- package/templates/restaurant/l10n/fr.json +317 -0
- package/templates/restaurant/l10n/he.json +335 -0
- package/templates/restaurant/recipes/blog-list-thumb-start.json +364 -0
- package/templates/restaurant/recipes/blog-list.json +364 -0
- package/templates/restaurant/recipes/blog-see-all.json +50 -0
- package/templates/restaurant/recipes/events-inline-list.json +203 -0
- package/templates/restaurant/recipes/events-inline.json +284 -0
- package/templates/restaurant/recipes/members-list.json +445 -0
- package/templates/restaurant/recipes/plans-card.json +811 -0
- package/templates/restaurant/recipes/programs-card.json +254 -0
- package/templates/restaurant/recipes/programs-carousel.json +234 -0
- package/templates/restaurant/recipes/section-error.json +58 -0
- package/templates/restaurant/tier5-src/_shared/blog-list.ts +207 -0
- package/templates/restaurant/tier5-src/_shared/events-card.ts +33 -0
- package/templates/restaurant/tier5-src/_shared/events-inline-options.ts +25 -0
- package/templates/restaurant/tier5-src/_shared/events-inline.ts +82 -0
- package/templates/restaurant/tier5-src/_shared/member-activity.ts +34 -0
- package/templates/restaurant/tier5-src/_shared/member-row-extras.ts +167 -0
- package/templates/restaurant/tier5-src/_shared/members-directory-view.ts +39 -0
- package/templates/restaurant/tier5-src/_shared/members-directory.ts +267 -0
- package/templates/restaurant/tier5-src/_shared/plan-facts.ts +87 -0
- package/templates/restaurant/tier5-src/_shared/plans-section.ts +106 -0
- package/templates/restaurant/tier5-src/_shared/programs-section.ts +728 -0
- package/templates/restaurant/tier5-src/_shared/relative-time.ts +21 -0
- package/templates/retail-store/l10n/en.json +60 -0
- package/templates/retail-store/l10n/fr.json +342 -0
- package/templates/retail-store/l10n/he.json +355 -0
- package/templates/retail-store/recipes/blog-list-thumb-start.json +364 -0
- package/templates/retail-store/recipes/blog-list.json +364 -0
- package/templates/retail-store/recipes/blog-see-all.json +50 -0
- package/templates/retail-store/recipes/events-inline-list.json +203 -0
- package/templates/retail-store/recipes/events-inline.json +284 -0
- package/templates/retail-store/recipes/members-list.json +445 -0
- package/templates/retail-store/recipes/plans-card.json +811 -0
- package/templates/retail-store/recipes/programs-card.json +254 -0
- package/templates/retail-store/recipes/programs-carousel.json +234 -0
- package/templates/retail-store/recipes/section-error.json +58 -0
- package/templates/retail-store/tier5-src/_shared/blog-list.ts +207 -0
- package/templates/retail-store/tier5-src/_shared/event-registration.ts +86 -0
- package/templates/retail-store/tier5-src/_shared/events-card.ts +33 -0
- package/templates/retail-store/tier5-src/_shared/events-inline-options.ts +25 -0
- package/templates/retail-store/tier5-src/_shared/events-inline.ts +82 -0
- package/templates/retail-store/tier5-src/_shared/member-activity.ts +34 -0
- package/templates/retail-store/tier5-src/_shared/member-row-extras.ts +167 -0
- package/templates/retail-store/tier5-src/_shared/members-directory-view.ts +39 -0
- package/templates/retail-store/tier5-src/_shared/members-directory.ts +267 -0
- package/templates/retail-store/tier5-src/_shared/plan-facts.ts +87 -0
- package/templates/retail-store/tier5-src/_shared/plans-section.ts +106 -0
- package/templates/retail-store/tier5-src/_shared/programs-section.ts +728 -0
- package/templates/retail-store/tier5-src/_shared/relative-time.ts +21 -0
- package/templates/yoga-studio/l10n/en.json +24 -0
- package/templates/yoga-studio/l10n/fr.json +64 -0
- package/templates/yoga-studio/l10n/he.json +132 -0
- package/templates/yoga-studio/recipes/blog-list-thumb-start.json +364 -0
- package/templates/yoga-studio/recipes/blog-list.json +364 -0
- package/templates/yoga-studio/recipes/blog-see-all.json +50 -0
- package/templates/yoga-studio/recipes/events-inline-list.json +203 -0
- package/templates/yoga-studio/recipes/events-inline.json +284 -0
- package/templates/yoga-studio/recipes/members-list.json +445 -0
- package/templates/yoga-studio/recipes/plans-card.json +811 -0
- package/templates/yoga-studio/recipes/programs-card.json +254 -0
- package/templates/yoga-studio/recipes/programs-carousel.json +234 -0
- package/templates/yoga-studio/recipes/section-error.json +58 -0
- package/templates/yoga-studio/tier5-src/_shared/blog-list.ts +207 -0
- package/templates/yoga-studio/tier5-src/_shared/events-card.ts +33 -0
- package/templates/yoga-studio/tier5-src/_shared/events-inline-options.ts +25 -0
- package/templates/yoga-studio/tier5-src/_shared/events-inline.ts +82 -0
- package/templates/yoga-studio/tier5-src/_shared/member-activity.ts +34 -0
- package/templates/yoga-studio/tier5-src/_shared/member-row-extras.ts +167 -0
- package/templates/yoga-studio/tier5-src/_shared/members-directory-view.ts +39 -0
- package/templates/yoga-studio/tier5-src/_shared/members-directory.ts +267 -0
- package/templates/yoga-studio/tier5-src/_shared/plan-facts.ts +87 -0
- package/templates/yoga-studio/tier5-src/_shared/plans-section.ts +106 -0
- package/templates/yoga-studio/tier5-src/_shared/programs-section.ts +728 -0
- package/templates/yoga-studio/tier5-src/_shared/relative-time.ts +21 -0
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_recipe": "Single-column full-width program cards (wide image, title, duration, access line, divider, full-width action), PAGED with the list layout's nextCursor/loadMore (inert for the carousel layout). Service: registerProgramsSection(svc,{layout:'list'|'carousel',...}). The list is the screen's own scroller: place it as a direct child of the page root.",
|
|
3
|
+
"_placeholders": {
|
|
4
|
+
"svc": "service name the page worker registered with registerProgramsSection",
|
|
5
|
+
"id": "unique node id prefix (e.g. the screen id)",
|
|
6
|
+
"detailScreen": "program detail screen id, default himi_program"
|
|
7
|
+
},
|
|
8
|
+
"node": {
|
|
9
|
+
"id": "{{id}}.cards",
|
|
10
|
+
"body": {
|
|
11
|
+
"package": "himalaya",
|
|
12
|
+
"type": "VStack",
|
|
13
|
+
"props": {
|
|
14
|
+
"spacing": 12,
|
|
15
|
+
"alignment": "leading",
|
|
16
|
+
"children": [
|
|
17
|
+
{
|
|
18
|
+
"id": "{{id}}.list",
|
|
19
|
+
"body": {
|
|
20
|
+
"package": "himalaya",
|
|
21
|
+
"type": "LazyList",
|
|
22
|
+
"props": {
|
|
23
|
+
"spacing": 12,
|
|
24
|
+
"itemsPath": "$service:{{svc}}.rows",
|
|
25
|
+
"items": [
|
|
26
|
+
{
|
|
27
|
+
"id": "{{id}}.card",
|
|
28
|
+
"body": {
|
|
29
|
+
"package": "himalaya",
|
|
30
|
+
"type": "VStack",
|
|
31
|
+
"props": {
|
|
32
|
+
"spacing": 8,
|
|
33
|
+
"alignment": "leading",
|
|
34
|
+
"children": [
|
|
35
|
+
{
|
|
36
|
+
"id": "",
|
|
37
|
+
"body": {
|
|
38
|
+
"package": "himalaya",
|
|
39
|
+
"type": "ZStack",
|
|
40
|
+
"props": {
|
|
41
|
+
"alignment": "leading",
|
|
42
|
+
"children": [
|
|
43
|
+
{
|
|
44
|
+
"id": "",
|
|
45
|
+
"body": {
|
|
46
|
+
"package": "himalaya",
|
|
47
|
+
"type": "Image",
|
|
48
|
+
"props": {
|
|
49
|
+
"url": "$item.image",
|
|
50
|
+
"fillWidth": true,
|
|
51
|
+
"height": 180,
|
|
52
|
+
"contentMode": "fill",
|
|
53
|
+
"contentDescription": "$item.name"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"modifiers": {
|
|
57
|
+
"cornerRadius": 8,
|
|
58
|
+
"fillMaxWidth": true,
|
|
59
|
+
"hiddenPath": "$item.noImage"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"id": "",
|
|
64
|
+
"body": {
|
|
65
|
+
"package": "himalaya",
|
|
66
|
+
"type": "ZStack",
|
|
67
|
+
"props": {
|
|
68
|
+
"alignment": "center",
|
|
69
|
+
"children": [
|
|
70
|
+
{
|
|
71
|
+
"id": "",
|
|
72
|
+
"body": {
|
|
73
|
+
"package": "himalaya",
|
|
74
|
+
"type": "Text",
|
|
75
|
+
"props": {
|
|
76
|
+
"text": "$item.initial",
|
|
77
|
+
"style": "display",
|
|
78
|
+
"maxLines": 1,
|
|
79
|
+
"color": "textOnAccent"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"modifiers": {
|
|
87
|
+
"fillMaxWidth": true,
|
|
88
|
+
"height": 180,
|
|
89
|
+
"background": {
|
|
90
|
+
"token": "accentPrimary"
|
|
91
|
+
},
|
|
92
|
+
"cornerRadius": 8,
|
|
93
|
+
"hiddenPath": "$item.hasImage"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"id": "",
|
|
102
|
+
"body": {
|
|
103
|
+
"package": "himalaya",
|
|
104
|
+
"type": "Text",
|
|
105
|
+
"props": {
|
|
106
|
+
"text": "$item.name",
|
|
107
|
+
"style": "bodyEmphasis",
|
|
108
|
+
"maxLines": 2
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"id": "",
|
|
114
|
+
"body": {
|
|
115
|
+
"package": "himalaya",
|
|
116
|
+
"type": "Text",
|
|
117
|
+
"props": {
|
|
118
|
+
"text": "$item.durationLine",
|
|
119
|
+
"style": "footnote",
|
|
120
|
+
"maxLines": 1,
|
|
121
|
+
"color": "textSecondary",
|
|
122
|
+
"collapseWhenEmpty": true
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"modifiers": {
|
|
126
|
+
"hiddenPath": "$item.noDuration"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"id": "",
|
|
131
|
+
"body": {
|
|
132
|
+
"package": "himalaya",
|
|
133
|
+
"type": "Text",
|
|
134
|
+
"props": {
|
|
135
|
+
"text": "$item.accessLine",
|
|
136
|
+
"style": "footnote",
|
|
137
|
+
"maxLines": 1,
|
|
138
|
+
"color": "textSecondary",
|
|
139
|
+
"collapseWhenEmpty": true
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
"modifiers": {
|
|
143
|
+
"hiddenPath": "$item.noAccess"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"id": "",
|
|
148
|
+
"body": {
|
|
149
|
+
"package": "himalaya",
|
|
150
|
+
"type": "Text",
|
|
151
|
+
"props": {
|
|
152
|
+
"text": "$item.descriptionLine",
|
|
153
|
+
"style": "footnote",
|
|
154
|
+
"maxLines": 2,
|
|
155
|
+
"color": "textSecondary",
|
|
156
|
+
"collapseWhenEmpty": true
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"id": "",
|
|
162
|
+
"body": {
|
|
163
|
+
"package": "himalaya",
|
|
164
|
+
"type": "Text",
|
|
165
|
+
"props": {
|
|
166
|
+
"text": "$item.priceLine",
|
|
167
|
+
"style": "bodyEmphasis",
|
|
168
|
+
"maxLines": 1,
|
|
169
|
+
"color": "accentPrimary"
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"modifiers": {
|
|
173
|
+
"hiddenPath": "$item.noPrice"
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"id": "",
|
|
178
|
+
"body": {
|
|
179
|
+
"package": "himalaya",
|
|
180
|
+
"type": "Divider",
|
|
181
|
+
"props": {}
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"id": "{{id}}.action",
|
|
186
|
+
"body": {
|
|
187
|
+
"package": "himalaya",
|
|
188
|
+
"type": "Button",
|
|
189
|
+
"props": {
|
|
190
|
+
"title": "$item.actionLabel",
|
|
191
|
+
"style": "link",
|
|
192
|
+
"fullWidth": true,
|
|
193
|
+
"disabledPath": "$item.actionDisabled",
|
|
194
|
+
"action": {
|
|
195
|
+
"actionId": "tier5.{{svc}}.open",
|
|
196
|
+
"params": {
|
|
197
|
+
"id": "$item.id"
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
]
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
"modifiers": {
|
|
207
|
+
"background": {
|
|
208
|
+
"token": "surfaceElevated"
|
|
209
|
+
},
|
|
210
|
+
"border": {
|
|
211
|
+
"width": 1,
|
|
212
|
+
"color": {
|
|
213
|
+
"token": "border"
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
"cornerRadius": 8,
|
|
217
|
+
"padding": {
|
|
218
|
+
"leading": 12,
|
|
219
|
+
"trailing": 12,
|
|
220
|
+
"top": 12,
|
|
221
|
+
"bottom": 8
|
|
222
|
+
},
|
|
223
|
+
"fillMaxWidth": true,
|
|
224
|
+
"onTap": {
|
|
225
|
+
"actionId": "himi.open",
|
|
226
|
+
"params": {
|
|
227
|
+
"screenId": "{{detailScreen}}",
|
|
228
|
+
"id": "$item.id"
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
"pressFeedback": "scale",
|
|
232
|
+
"haptic": "light",
|
|
233
|
+
"accessibilityLabel": "$item.name"
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
],
|
|
237
|
+
"pagination": {
|
|
238
|
+
"cursor": "$service:{{svc}}.nextCursor",
|
|
239
|
+
"onLoadMore": {
|
|
240
|
+
"actionId": "tier5.{{svc}}.loadMore"
|
|
241
|
+
},
|
|
242
|
+
"pageSize": 20
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
]
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
"modifiers": {
|
|
251
|
+
"hiddenPath": "$service:{{svc}}.noRows"
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_recipe": "Programs carousel (one page, snapping, page dots drawn by the renderer). Service: registerProgramsSection(svc,{layout:'carousel',...}).",
|
|
3
|
+
"_placeholders": {
|
|
4
|
+
"svc": "service name the page worker registered with registerProgramsSection",
|
|
5
|
+
"id": "unique node id prefix (e.g. the screen id)",
|
|
6
|
+
"detailScreen": "program detail screen id, default himi_program"
|
|
7
|
+
},
|
|
8
|
+
"node": {
|
|
9
|
+
"id": "{{id}}.carousel",
|
|
10
|
+
"body": {
|
|
11
|
+
"package": "himalaya",
|
|
12
|
+
"type": "Carousel",
|
|
13
|
+
"props": {
|
|
14
|
+
"itemsPath": "$service:{{svc}}.rows",
|
|
15
|
+
"paged": true,
|
|
16
|
+
"items": [
|
|
17
|
+
{
|
|
18
|
+
"id": "{{id}}.card",
|
|
19
|
+
"body": {
|
|
20
|
+
"package": "himalaya",
|
|
21
|
+
"type": "VStack",
|
|
22
|
+
"props": {
|
|
23
|
+
"spacing": 8,
|
|
24
|
+
"alignment": "leading",
|
|
25
|
+
"children": [
|
|
26
|
+
{
|
|
27
|
+
"id": "",
|
|
28
|
+
"body": {
|
|
29
|
+
"package": "himalaya",
|
|
30
|
+
"type": "ZStack",
|
|
31
|
+
"props": {
|
|
32
|
+
"alignment": "leading",
|
|
33
|
+
"children": [
|
|
34
|
+
{
|
|
35
|
+
"id": "",
|
|
36
|
+
"body": {
|
|
37
|
+
"package": "himalaya",
|
|
38
|
+
"type": "Image",
|
|
39
|
+
"props": {
|
|
40
|
+
"url": "$item.image",
|
|
41
|
+
"fillWidth": true,
|
|
42
|
+
"height": 180,
|
|
43
|
+
"contentMode": "fill",
|
|
44
|
+
"contentDescription": "$item.name"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"modifiers": {
|
|
48
|
+
"cornerRadius": 8,
|
|
49
|
+
"fillMaxWidth": true,
|
|
50
|
+
"hiddenPath": "$item.noImage"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"id": "",
|
|
55
|
+
"body": {
|
|
56
|
+
"package": "himalaya",
|
|
57
|
+
"type": "ZStack",
|
|
58
|
+
"props": {
|
|
59
|
+
"alignment": "center",
|
|
60
|
+
"children": [
|
|
61
|
+
{
|
|
62
|
+
"id": "",
|
|
63
|
+
"body": {
|
|
64
|
+
"package": "himalaya",
|
|
65
|
+
"type": "Text",
|
|
66
|
+
"props": {
|
|
67
|
+
"text": "$item.initial",
|
|
68
|
+
"style": "display",
|
|
69
|
+
"maxLines": 1,
|
|
70
|
+
"color": "textOnAccent"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"modifiers": {
|
|
78
|
+
"fillMaxWidth": true,
|
|
79
|
+
"height": 180,
|
|
80
|
+
"background": {
|
|
81
|
+
"token": "accentPrimary"
|
|
82
|
+
},
|
|
83
|
+
"cornerRadius": 8,
|
|
84
|
+
"hiddenPath": "$item.hasImage"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"id": "",
|
|
93
|
+
"body": {
|
|
94
|
+
"package": "himalaya",
|
|
95
|
+
"type": "Text",
|
|
96
|
+
"props": {
|
|
97
|
+
"text": "$item.name",
|
|
98
|
+
"style": "bodyEmphasis",
|
|
99
|
+
"maxLines": 2
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"id": "",
|
|
105
|
+
"body": {
|
|
106
|
+
"package": "himalaya",
|
|
107
|
+
"type": "Text",
|
|
108
|
+
"props": {
|
|
109
|
+
"text": "$item.durationLine",
|
|
110
|
+
"style": "footnote",
|
|
111
|
+
"maxLines": 1,
|
|
112
|
+
"color": "textSecondary",
|
|
113
|
+
"collapseWhenEmpty": true
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"modifiers": {
|
|
117
|
+
"hiddenPath": "$item.noDuration"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"id": "",
|
|
122
|
+
"body": {
|
|
123
|
+
"package": "himalaya",
|
|
124
|
+
"type": "Text",
|
|
125
|
+
"props": {
|
|
126
|
+
"text": "$item.accessLine",
|
|
127
|
+
"style": "footnote",
|
|
128
|
+
"maxLines": 1,
|
|
129
|
+
"color": "textSecondary",
|
|
130
|
+
"collapseWhenEmpty": true
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"modifiers": {
|
|
134
|
+
"hiddenPath": "$item.noAccess"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"id": "",
|
|
139
|
+
"body": {
|
|
140
|
+
"package": "himalaya",
|
|
141
|
+
"type": "Text",
|
|
142
|
+
"props": {
|
|
143
|
+
"text": "$item.descriptionLine",
|
|
144
|
+
"style": "footnote",
|
|
145
|
+
"maxLines": 2,
|
|
146
|
+
"color": "textSecondary",
|
|
147
|
+
"collapseWhenEmpty": true
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"id": "",
|
|
153
|
+
"body": {
|
|
154
|
+
"package": "himalaya",
|
|
155
|
+
"type": "Text",
|
|
156
|
+
"props": {
|
|
157
|
+
"text": "$item.priceLine",
|
|
158
|
+
"style": "bodyEmphasis",
|
|
159
|
+
"maxLines": 1,
|
|
160
|
+
"color": "accentPrimary"
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"modifiers": {
|
|
164
|
+
"hiddenPath": "$item.noPrice"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"id": "",
|
|
169
|
+
"body": {
|
|
170
|
+
"package": "himalaya",
|
|
171
|
+
"type": "Divider",
|
|
172
|
+
"props": {}
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"id": "{{id}}.action",
|
|
177
|
+
"body": {
|
|
178
|
+
"package": "himalaya",
|
|
179
|
+
"type": "Button",
|
|
180
|
+
"props": {
|
|
181
|
+
"title": "$item.actionLabel",
|
|
182
|
+
"style": "link",
|
|
183
|
+
"fullWidth": true,
|
|
184
|
+
"disabledPath": "$item.actionDisabled",
|
|
185
|
+
"action": {
|
|
186
|
+
"actionId": "tier5.{{svc}}.open",
|
|
187
|
+
"params": {
|
|
188
|
+
"id": "$item.id"
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
]
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"modifiers": {
|
|
198
|
+
"background": {
|
|
199
|
+
"token": "surfaceElevated"
|
|
200
|
+
},
|
|
201
|
+
"border": {
|
|
202
|
+
"width": 1,
|
|
203
|
+
"color": {
|
|
204
|
+
"token": "border"
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"cornerRadius": 8,
|
|
208
|
+
"padding": {
|
|
209
|
+
"leading": 12,
|
|
210
|
+
"trailing": 12,
|
|
211
|
+
"top": 12,
|
|
212
|
+
"bottom": 8
|
|
213
|
+
},
|
|
214
|
+
"fillMaxWidth": true,
|
|
215
|
+
"onTap": {
|
|
216
|
+
"actionId": "himi.open",
|
|
217
|
+
"params": {
|
|
218
|
+
"screenId": "{{detailScreen}}",
|
|
219
|
+
"id": "$item.id"
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
"pressFeedback": "scale",
|
|
223
|
+
"haptic": "light",
|
|
224
|
+
"accessibilityLabel": "$item.name"
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
]
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
"modifiers": {
|
|
231
|
+
"hiddenPath": "$service:{{svc}}.noRows"
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_recipe": "A section's failed read: a message and a retry button, shown only while the service is in its error state. ONE node. Placed beside a section recipe whose list hides on `noRows`, so a failure never leaves a blank section. Service: any section module that publishes `notErrored` and the action named by `action`.",
|
|
3
|
+
"_placeholders": {
|
|
4
|
+
"svc": "service name the page worker registered",
|
|
5
|
+
"id": "unique node id prefix for this section",
|
|
6
|
+
"action": "the service action that reads again: load, or retry"
|
|
7
|
+
},
|
|
8
|
+
"node": {
|
|
9
|
+
"id": "{{id}}.error",
|
|
10
|
+
"body": {
|
|
11
|
+
"package": "himalaya",
|
|
12
|
+
"type": "VStack",
|
|
13
|
+
"props": {
|
|
14
|
+
"spacing": 8,
|
|
15
|
+
"alignment": "leading",
|
|
16
|
+
"children": [
|
|
17
|
+
{
|
|
18
|
+
"id": "{{id}}.error.text",
|
|
19
|
+
"body": {
|
|
20
|
+
"package": "himalaya",
|
|
21
|
+
"type": "Text",
|
|
22
|
+
"props": {
|
|
23
|
+
"text": "This couldn't be loaded. Check your connection and try again.",
|
|
24
|
+
"style": "body",
|
|
25
|
+
"color": "textSecondary"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"id": "{{id}}.error.retry",
|
|
31
|
+
"body": {
|
|
32
|
+
"package": "himalaya",
|
|
33
|
+
"type": "Button",
|
|
34
|
+
"props": {
|
|
35
|
+
"title": "Try again",
|
|
36
|
+
"style": "secondary",
|
|
37
|
+
"size": "md",
|
|
38
|
+
"action": {
|
|
39
|
+
"actionId": "tier5.{{svc}}.{{action}}",
|
|
40
|
+
"params": {}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"modifiers": {
|
|
49
|
+
"hiddenPath": "$service:{{svc}}.notErrored",
|
|
50
|
+
"padding": {
|
|
51
|
+
"leading": 0,
|
|
52
|
+
"trailing": 0,
|
|
53
|
+
"top": 0,
|
|
54
|
+
"bottom": 0
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|