@wix/himalaya-cli 0.1947.0 → 0.1949.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/files/src/index.d.ts +23 -2
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/admob-ids.d.ts +4 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/index.d.ts +1 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +3 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/social-feed/src/index.d.ts +13 -4
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/video/src/display.d.ts +3 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +8 -2
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/files.mjs +4 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +3 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-video.mjs +4 -0
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{da958a2a47eef7082c7892c1cc755a58bbeefcb4b617b47fde87f1ce567b3e64.bin → a8cfd0e17359578587e8937e88dedd40b46d533f08b4d2fdac4c47d5bae6f385.bin} +1 -1
- package/dist/browser-plane/sw.js +9 -9
- package/dist/cli.mjs +1906 -800
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/app-icon.md +7 -3
- package/guides/getting-started.md +6 -1
- package/guides/himi-skill.md +6 -1
- package/guides/himi-test.md +30 -1
- package/guides/one-app-section-mappings.md +1 -1
- package/guides/one-app-to-himi-app.md +23 -16
- package/guides/sdk-reference.json +28 -7
- package/guides/skill.md +1 -1
- package/package.json +2 -2
- package/templates/beauty-salon-owner/config.ts +7 -0
- package/templates/beauty-salon-owner/dev/index.ts +567 -0
- package/templates/beauty-salon-owner/himalaya.content.json +3 -0
- package/templates/beauty-salon-owner/tier5-src/_shared/owner-maestro-activity.ts +151 -0
- package/templates/beauty-salon-owner/tier5-src/_shared/owner-maestro-availability.ts +15 -2
- package/templates/beauty-salon-owner/tier5-src/_shared/owner-maestro-chat.ts +20 -7
- package/templates/beauty-salon-owner/tier5-src/_shared/owner-maestro-when.ts +13 -0
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-maestro/index.ts +60 -11
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-maestro-activity/index.ts +228 -0
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +1 -11
- package/templates/branded-lite/l10n/ar.json +21 -0
- package/templates/branded-lite/l10n/cs.json +21 -0
- package/templates/branded-lite/l10n/da.json +21 -0
- package/templates/branded-lite/l10n/de.json +21 -0
- package/templates/branded-lite/l10n/el.json +21 -0
- package/templates/branded-lite/l10n/en.json +5 -0
- package/templates/branded-lite/l10n/es.json +21 -0
- package/templates/branded-lite/l10n/fi.json +21 -0
- package/templates/branded-lite/l10n/fr.json +21 -0
- package/templates/branded-lite/l10n/he.json +21 -0
- package/templates/branded-lite/l10n/hu.json +21 -0
- package/templates/branded-lite/l10n/id.json +21 -0
- package/templates/branded-lite/l10n/it.json +21 -0
- package/templates/branded-lite/l10n/ja.json +21 -0
- package/templates/branded-lite/l10n/ko.json +21 -0
- package/templates/branded-lite/l10n/lt.json +21 -0
- package/templates/branded-lite/l10n/nl.json +21 -0
- package/templates/branded-lite/l10n/no.json +21 -0
- package/templates/branded-lite/l10n/pl.json +21 -0
- package/templates/branded-lite/l10n/pt.json +21 -0
- package/templates/branded-lite/l10n/ru.json +21 -0
- package/templates/branded-lite/l10n/sv.json +21 -0
- package/templates/branded-lite/l10n/th.json +21 -0
- package/templates/branded-lite/l10n/tr.json +21 -0
- package/templates/branded-lite/l10n/uk.json +21 -0
- package/templates/branded-lite/l10n/vi.json +21 -0
- package/templates/branded-lite/l10n/zh.json +21 -0
- package/templates/branded-lite/recipes/form-section.json +958 -0
- package/templates/branded-lite/recipes/group-feed.json +221 -3
- package/templates/branded-lite/recipes/groups-newsfeed.json +160 -2
- package/templates/branded-lite/recipes/video-library.json +475 -0
- package/templates/branded-lite/tier5-src/_shared/event-agenda.ts +15 -15
- package/templates/branded-lite/tier5-src/_shared/event-schedule-section.ts +8 -8
- package/templates/branded-lite/tier5-src/_shared/form-section.ts +640 -0
- package/templates/branded-lite/tier5-src/_shared/group-feed-section.ts +119 -7
- package/templates/branded-lite/tier5-src/_shared/groups-newsfeed-section.ts +17 -9
- package/templates/branded-lite/tier5-src/_shared/videos-section.ts +134 -2
- package/templates/branded-lite/tier5-src/himi-branded-lite-form/index.ts +4 -588
- package/templates/branded-lite/tier5-src/himi-branded-lite-video/index.ts +4 -2
- package/templates/branded-lite/tier5-src/himi-events-detail/index.ts +7 -6
- package/templates/community-club/tier5-src/himi-events-detail/index.ts +7 -6
- package/templates/community-club-owner/config.ts +7 -0
- package/templates/community-club-owner/dev/index.ts +567 -0
- package/templates/community-club-owner/himalaya.content.json +3 -0
- package/templates/community-club-owner/tier5-src/_shared/owner-maestro-activity.ts +151 -0
- package/templates/community-club-owner/tier5-src/_shared/owner-maestro-availability.ts +15 -2
- package/templates/community-club-owner/tier5-src/_shared/owner-maestro-chat.ts +20 -7
- package/templates/community-club-owner/tier5-src/_shared/owner-maestro-when.ts +13 -0
- package/templates/community-club-owner/tier5-src/himi-owner-lite-maestro/index.ts +60 -11
- package/templates/community-club-owner/tier5-src/himi-owner-lite-maestro-activity/index.ts +228 -0
- package/templates/community-club-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +1 -11
- package/templates/conference/tier5-src/_shared/event-agenda.ts +15 -15
- package/templates/conference/tier5-src/himi-conference-agenda/index.ts +3 -5
- package/templates/conference/tier5-src/himi-conference-home/index.ts +5 -6
- package/templates/conference/tier5-src/himi-events-detail/index.ts +7 -6
- package/templates/events-meetups/tier5-src/himi-events-detail/index.ts +7 -6
- package/templates/events-meetups-owner/config.ts +7 -0
- package/templates/events-meetups-owner/dev/index.ts +567 -0
- package/templates/events-meetups-owner/himalaya.content.json +3 -0
- package/templates/events-meetups-owner/tier5-src/_shared/owner-maestro-activity.ts +151 -0
- package/templates/events-meetups-owner/tier5-src/_shared/owner-maestro-availability.ts +15 -2
- package/templates/events-meetups-owner/tier5-src/_shared/owner-maestro-chat.ts +20 -7
- package/templates/events-meetups-owner/tier5-src/_shared/owner-maestro-when.ts +13 -0
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-maestro/index.ts +60 -11
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-maestro-activity/index.ts +228 -0
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +1 -11
- package/templates/gym-fitness/tier5-src/himi-events-detail/index.ts +7 -6
- package/templates/gym-fitness-owner/config.ts +7 -0
- package/templates/gym-fitness-owner/dev/index.ts +567 -0
- package/templates/gym-fitness-owner/himalaya.content.json +3 -0
- package/templates/gym-fitness-owner/tier5-src/_shared/owner-maestro-activity.ts +151 -0
- package/templates/gym-fitness-owner/tier5-src/_shared/owner-maestro-availability.ts +15 -2
- package/templates/gym-fitness-owner/tier5-src/_shared/owner-maestro-chat.ts +20 -7
- package/templates/gym-fitness-owner/tier5-src/_shared/owner-maestro-when.ts +13 -0
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-maestro/index.ts +60 -11
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-maestro-activity/index.ts +228 -0
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +1 -11
- package/templates/nonprofit-cause/tier5-src/himi-events-detail/index.ts +7 -6
- package/templates/nonprofit-cause-owner/config.ts +7 -0
- package/templates/nonprofit-cause-owner/dev/index.ts +567 -0
- package/templates/nonprofit-cause-owner/himalaya.content.json +3 -0
- package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-maestro-activity.ts +151 -0
- package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-maestro-availability.ts +15 -2
- package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-maestro-chat.ts +20 -7
- package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-maestro-when.ts +13 -0
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-maestro/index.ts +60 -11
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-maestro-activity/index.ts +228 -0
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +1 -11
- package/templates/owner-lite/config.ts +7 -0
- package/templates/owner-lite/dev/index.ts +567 -0
- package/templates/owner-lite/himalaya.content.json +3 -0
- package/templates/owner-lite/tier5-src/_shared/owner-maestro-activity.ts +151 -0
- package/templates/owner-lite/tier5-src/_shared/owner-maestro-availability.ts +15 -2
- package/templates/owner-lite/tier5-src/_shared/owner-maestro-chat.ts +20 -7
- package/templates/owner-lite/tier5-src/_shared/owner-maestro-when.ts +13 -0
- package/templates/owner-lite/tier5-src/himi-owner-lite-maestro/index.ts +60 -11
- package/templates/owner-lite/tier5-src/himi-owner-lite-maestro-activity/index.ts +228 -0
- package/templates/owner-lite/tier5-src/himi-owner-lite-maestro-history/index.ts +1 -11
- package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-video/index.ts +4 -2
- package/templates/podcast-creator/tier5-src/himi-events-detail/index.ts +7 -6
- package/templates/podcast-creator-owner/config.ts +7 -0
- package/templates/podcast-creator-owner/dev/index.ts +567 -0
- package/templates/podcast-creator-owner/himalaya.content.json +3 -0
- package/templates/podcast-creator-owner/tier5-src/_shared/owner-maestro-activity.ts +151 -0
- package/templates/podcast-creator-owner/tier5-src/_shared/owner-maestro-availability.ts +15 -2
- package/templates/podcast-creator-owner/tier5-src/_shared/owner-maestro-chat.ts +20 -7
- package/templates/podcast-creator-owner/tier5-src/_shared/owner-maestro-when.ts +13 -0
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-maestro/index.ts +60 -11
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-maestro-activity/index.ts +228 -0
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +1 -11
- package/templates/portfolio-creative/tier5-src/himi-events-detail/index.ts +7 -6
- package/templates/portfolio-creative-owner/config.ts +7 -0
- package/templates/portfolio-creative-owner/dev/index.ts +567 -0
- package/templates/portfolio-creative-owner/himalaya.content.json +3 -0
- package/templates/portfolio-creative-owner/tier5-src/_shared/owner-maestro-activity.ts +151 -0
- package/templates/portfolio-creative-owner/tier5-src/_shared/owner-maestro-availability.ts +15 -2
- package/templates/portfolio-creative-owner/tier5-src/_shared/owner-maestro-chat.ts +20 -7
- package/templates/portfolio-creative-owner/tier5-src/_shared/owner-maestro-when.ts +13 -0
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-maestro/index.ts +60 -11
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-maestro-activity/index.ts +228 -0
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +1 -11
- package/templates/professional-services/tier5-src/himi-events-detail/index.ts +7 -6
- package/templates/restaurant/tier5-src/himi-events-detail/index.ts +7 -6
- package/templates/restaurant-owner/config.ts +7 -0
- package/templates/restaurant-owner/dev/index.ts +567 -0
- package/templates/restaurant-owner/himalaya.content.json +3 -0
- package/templates/restaurant-owner/tier5-src/_shared/owner-maestro-activity.ts +151 -0
- package/templates/restaurant-owner/tier5-src/_shared/owner-maestro-availability.ts +15 -2
- package/templates/restaurant-owner/tier5-src/_shared/owner-maestro-chat.ts +20 -7
- package/templates/restaurant-owner/tier5-src/_shared/owner-maestro-when.ts +13 -0
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-maestro/index.ts +60 -11
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-maestro-activity/index.ts +228 -0
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +1 -11
- package/templates/retail-store-owner/config.ts +7 -0
- package/templates/retail-store-owner/dev/index.ts +567 -0
- package/templates/retail-store-owner/himalaya.content.json +3 -0
- package/templates/retail-store-owner/tier5-src/_shared/owner-maestro-activity.ts +151 -0
- package/templates/retail-store-owner/tier5-src/_shared/owner-maestro-availability.ts +15 -2
- package/templates/retail-store-owner/tier5-src/_shared/owner-maestro-chat.ts +20 -7
- package/templates/retail-store-owner/tier5-src/_shared/owner-maestro-when.ts +13 -0
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-maestro/index.ts +60 -11
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-maestro-activity/index.ts +228 -0
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +1 -11
- package/templates/yoga-studio/tier5-src/himi-events-detail/index.ts +7 -6
- package/templates/yoga-studio-owner/config.ts +7 -0
- package/templates/yoga-studio-owner/dev/index.ts +567 -0
- package/templates/yoga-studio-owner/himalaya.content.json +3 -0
- package/templates/yoga-studio-owner/tier5-src/_shared/owner-maestro-activity.ts +151 -0
- package/templates/yoga-studio-owner/tier5-src/_shared/owner-maestro-availability.ts +15 -2
- package/templates/yoga-studio-owner/tier5-src/_shared/owner-maestro-chat.ts +20 -7
- package/templates/yoga-studio-owner/tier5-src/_shared/owner-maestro-when.ts +13 -0
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-maestro/index.ts +60 -11
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-maestro-activity/index.ts +228 -0
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +1 -11
|
@@ -0,0 +1,475 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_recipe": "The site's Wix Video channels, each inline: the channel's cover, title and size (\"1 video · Free\"), Play All, its first clips as rows (thumbnail with the length on it, title, the video's host when it is not Wix, a play glyph) and See All when the channel has more. A clip and Play All open the video screen with the video, its channel and title; See All opens the channel's screen (the generator removes it when the scaffold has none). A site with no ready video shows \"No videos yet.\". ONE node, always mounted. Service: registerVideoLibrarySection(svc, { channelId, channels, videosPerChannel }); a failed read shows the shared section-error piece.",
|
|
3
|
+
"_keys": {
|
|
4
|
+
"Play All": "videos.playAllCta",
|
|
5
|
+
"See All": "videos.seeAllCta",
|
|
6
|
+
"No videos yet.": "videos.libraryEmpty"
|
|
7
|
+
},
|
|
8
|
+
"_placeholders": {
|
|
9
|
+
"svc": "service name the page worker registered with registerVideoLibrarySection",
|
|
10
|
+
"id": "unique node id prefix for this section",
|
|
11
|
+
"detailScreen": "video screen id, himi_video",
|
|
12
|
+
"channelScreen": "channel screen id, himi_video_channel",
|
|
13
|
+
"videosScreen": "the videos screen id, himi_videos: See All to every channel when the site has more than the section shows (the generator removes it when the section names one channel or the scaffold has no such screen)"
|
|
14
|
+
},
|
|
15
|
+
"node": {
|
|
16
|
+
"id": "{{id}}.library",
|
|
17
|
+
"body": {
|
|
18
|
+
"package": "himalaya",
|
|
19
|
+
"type": "VStack",
|
|
20
|
+
"props": {
|
|
21
|
+
"spacing": 16,
|
|
22
|
+
"alignment": "leading",
|
|
23
|
+
"children": [
|
|
24
|
+
{
|
|
25
|
+
"id": "{{id}}.loading",
|
|
26
|
+
"body": {
|
|
27
|
+
"package": "himalaya",
|
|
28
|
+
"type": "Skeleton",
|
|
29
|
+
"props": {
|
|
30
|
+
"height": 160,
|
|
31
|
+
"count": 1,
|
|
32
|
+
"cornerRadius": 12
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"modifiers": {
|
|
36
|
+
"padding": {
|
|
37
|
+
"leading": 0,
|
|
38
|
+
"trailing": 0,
|
|
39
|
+
"top": 0,
|
|
40
|
+
"bottom": 0
|
|
41
|
+
},
|
|
42
|
+
"hiddenPath": "$service:{{svc}}.notLoading"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"id": "{{id}}.channels",
|
|
47
|
+
"body": {
|
|
48
|
+
"package": "himalaya",
|
|
49
|
+
"type": "Grid",
|
|
50
|
+
"props": {
|
|
51
|
+
"columns": 1,
|
|
52
|
+
"spacing": 24,
|
|
53
|
+
"itemsPath": "$service:{{svc}}.channels",
|
|
54
|
+
"items": [
|
|
55
|
+
{
|
|
56
|
+
"id": "{{id}}.channel",
|
|
57
|
+
"body": {
|
|
58
|
+
"package": "himalaya",
|
|
59
|
+
"type": "VStack",
|
|
60
|
+
"props": {
|
|
61
|
+
"spacing": 12,
|
|
62
|
+
"alignment": "leading",
|
|
63
|
+
"children": [
|
|
64
|
+
{
|
|
65
|
+
"id": "{{id}}.cover",
|
|
66
|
+
"body": {
|
|
67
|
+
"package": "himalaya",
|
|
68
|
+
"type": "Image",
|
|
69
|
+
"props": {
|
|
70
|
+
"url": "$item.coverUrl",
|
|
71
|
+
"fillWidth": true,
|
|
72
|
+
"height": 160,
|
|
73
|
+
"contentMode": "fill",
|
|
74
|
+
"shape": "rect"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"modifiers": {
|
|
78
|
+
"fillMaxWidth": true,
|
|
79
|
+
"cornerRadius": 12,
|
|
80
|
+
"hiddenPath": "$item.noCover",
|
|
81
|
+
"accessibilityRole": "decorative",
|
|
82
|
+
"imagePreview": "off"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"id": "{{id}}.head",
|
|
87
|
+
"body": {
|
|
88
|
+
"package": "himalaya",
|
|
89
|
+
"type": "VStack",
|
|
90
|
+
"props": {
|
|
91
|
+
"spacing": 2,
|
|
92
|
+
"alignment": "leading",
|
|
93
|
+
"children": [
|
|
94
|
+
{
|
|
95
|
+
"id": "{{id}}.channel_title",
|
|
96
|
+
"body": {
|
|
97
|
+
"package": "himalaya",
|
|
98
|
+
"type": "Text",
|
|
99
|
+
"props": {
|
|
100
|
+
"text": "$item.title",
|
|
101
|
+
"style": "title3",
|
|
102
|
+
"maxLines": 2,
|
|
103
|
+
"collapseWhenEmpty": true
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"id": "{{id}}.summary",
|
|
109
|
+
"body": {
|
|
110
|
+
"package": "himalaya",
|
|
111
|
+
"type": "Text",
|
|
112
|
+
"props": {
|
|
113
|
+
"text": "$item.summary",
|
|
114
|
+
"style": "footnote",
|
|
115
|
+
"color": "textSecondary",
|
|
116
|
+
"maxLines": 1
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"id": "{{id}}.play_all",
|
|
126
|
+
"body": {
|
|
127
|
+
"package": "himalaya",
|
|
128
|
+
"type": "Button",
|
|
129
|
+
"props": {
|
|
130
|
+
"title": "Play All",
|
|
131
|
+
"style": "link",
|
|
132
|
+
"leadingIcon": "play",
|
|
133
|
+
"action": {
|
|
134
|
+
"actionId": "himi.open",
|
|
135
|
+
"params": {
|
|
136
|
+
"screenId": "{{detailScreen}}",
|
|
137
|
+
"id": "$item.playId",
|
|
138
|
+
"channelId": "$item.playChannelId",
|
|
139
|
+
"title": "$item.playTitle"
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"modifiers": {
|
|
145
|
+
"hiddenPath": "$item.noPlayAll",
|
|
146
|
+
"accessibilityLabel": "$item.playAllLabel"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"id": "{{id}}.clips",
|
|
151
|
+
"body": {
|
|
152
|
+
"package": "himalaya",
|
|
153
|
+
"type": "Grid",
|
|
154
|
+
"props": {
|
|
155
|
+
"columns": 1,
|
|
156
|
+
"spacing": 12,
|
|
157
|
+
"itemsPath": "$item.videos",
|
|
158
|
+
"items": [
|
|
159
|
+
{
|
|
160
|
+
"id": "{{id}}.clip",
|
|
161
|
+
"body": {
|
|
162
|
+
"package": "himalaya",
|
|
163
|
+
"type": "HStack",
|
|
164
|
+
"props": {
|
|
165
|
+
"spacing": 12,
|
|
166
|
+
"alignment": "center",
|
|
167
|
+
"children": [
|
|
168
|
+
{
|
|
169
|
+
"id": "{{id}}.thumb",
|
|
170
|
+
"body": {
|
|
171
|
+
"package": "himalaya",
|
|
172
|
+
"type": "ZStack",
|
|
173
|
+
"props": {
|
|
174
|
+
"alignment": "leading",
|
|
175
|
+
"children": [
|
|
176
|
+
{
|
|
177
|
+
"id": "{{id}}.thumb_image",
|
|
178
|
+
"body": {
|
|
179
|
+
"package": "himalaya",
|
|
180
|
+
"type": "Image",
|
|
181
|
+
"props": {
|
|
182
|
+
"url": "$item.coverUrl",
|
|
183
|
+
"width": 112,
|
|
184
|
+
"height": 63,
|
|
185
|
+
"contentMode": "fill",
|
|
186
|
+
"shape": "rect"
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
"modifiers": {
|
|
190
|
+
"hiddenPath": "$item.noCover",
|
|
191
|
+
"accessibilityRole": "decorative"
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"id": "{{id}}.thumb_placeholder",
|
|
196
|
+
"body": {
|
|
197
|
+
"package": "himalaya",
|
|
198
|
+
"type": "ZStack",
|
|
199
|
+
"props": {
|
|
200
|
+
"alignment": "center",
|
|
201
|
+
"children": [
|
|
202
|
+
{
|
|
203
|
+
"id": "",
|
|
204
|
+
"body": {
|
|
205
|
+
"package": "himalaya",
|
|
206
|
+
"type": "Icon",
|
|
207
|
+
"props": {
|
|
208
|
+
"name": "play",
|
|
209
|
+
"size": 20,
|
|
210
|
+
"tint": "accentPrimary"
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
"modifiers": {
|
|
214
|
+
"accessibilityRole": "decorative"
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
]
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"modifiers": {
|
|
221
|
+
"width": 112,
|
|
222
|
+
"height": 63,
|
|
223
|
+
"background": {
|
|
224
|
+
"token": "accentSurface"
|
|
225
|
+
},
|
|
226
|
+
"hiddenPath": "$item.hasCover"
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"id": "",
|
|
231
|
+
"body": {
|
|
232
|
+
"package": "himalaya",
|
|
233
|
+
"type": "VStack",
|
|
234
|
+
"props": {
|
|
235
|
+
"spacing": 0,
|
|
236
|
+
"alignment": "leading",
|
|
237
|
+
"children": [
|
|
238
|
+
{
|
|
239
|
+
"id": "",
|
|
240
|
+
"body": {
|
|
241
|
+
"package": "himalaya",
|
|
242
|
+
"type": "Spacer",
|
|
243
|
+
"props": {}
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"id": "",
|
|
248
|
+
"body": {
|
|
249
|
+
"package": "himalaya",
|
|
250
|
+
"type": "HStack",
|
|
251
|
+
"props": {
|
|
252
|
+
"spacing": 0,
|
|
253
|
+
"alignment": "center",
|
|
254
|
+
"children": [
|
|
255
|
+
{
|
|
256
|
+
"id": "",
|
|
257
|
+
"body": {
|
|
258
|
+
"package": "himalaya",
|
|
259
|
+
"type": "Spacer",
|
|
260
|
+
"props": {}
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"id": "{{id}}.duration",
|
|
265
|
+
"body": {
|
|
266
|
+
"package": "himalaya",
|
|
267
|
+
"type": "Text",
|
|
268
|
+
"props": {
|
|
269
|
+
"text": "$item.duration",
|
|
270
|
+
"style": "caption",
|
|
271
|
+
"color": "textOnAccent",
|
|
272
|
+
"maxLines": 1
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
"modifiers": {
|
|
276
|
+
"background": {
|
|
277
|
+
"token": "accentPrimary"
|
|
278
|
+
},
|
|
279
|
+
"cornerRadius": 4,
|
|
280
|
+
"padding": {
|
|
281
|
+
"leading": 6,
|
|
282
|
+
"trailing": 6,
|
|
283
|
+
"top": 1,
|
|
284
|
+
"bottom": 1
|
|
285
|
+
},
|
|
286
|
+
"hiddenPath": "$item.noDuration"
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
]
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
]
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
"modifiers": {
|
|
297
|
+
"width": 112,
|
|
298
|
+
"height": 63,
|
|
299
|
+
"padding": {
|
|
300
|
+
"leading": 4,
|
|
301
|
+
"trailing": 4,
|
|
302
|
+
"top": 4,
|
|
303
|
+
"bottom": 4
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
]
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
"modifiers": {
|
|
311
|
+
"width": 112,
|
|
312
|
+
"height": 63,
|
|
313
|
+
"cornerRadius": 8
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"id": "{{id}}.clip_text",
|
|
318
|
+
"body": {
|
|
319
|
+
"package": "himalaya",
|
|
320
|
+
"type": "VStack",
|
|
321
|
+
"props": {
|
|
322
|
+
"spacing": 2,
|
|
323
|
+
"alignment": "leading",
|
|
324
|
+
"children": [
|
|
325
|
+
{
|
|
326
|
+
"id": "{{id}}.clip_title",
|
|
327
|
+
"body": {
|
|
328
|
+
"package": "himalaya",
|
|
329
|
+
"type": "Text",
|
|
330
|
+
"props": {
|
|
331
|
+
"text": "$item.title",
|
|
332
|
+
"style": "bodyEmphasis",
|
|
333
|
+
"maxLines": 2
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"id": "{{id}}.provider",
|
|
339
|
+
"body": {
|
|
340
|
+
"package": "himalaya",
|
|
341
|
+
"type": "Text",
|
|
342
|
+
"props": {
|
|
343
|
+
"text": "$item.provider",
|
|
344
|
+
"style": "footnote",
|
|
345
|
+
"color": "textSecondary",
|
|
346
|
+
"maxLines": 1
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
"modifiers": {
|
|
350
|
+
"hiddenPath": "$item.noProvider"
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
]
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
"modifiers": {
|
|
357
|
+
"weight": 1
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"id": "",
|
|
362
|
+
"body": {
|
|
363
|
+
"package": "himalaya",
|
|
364
|
+
"type": "Icon",
|
|
365
|
+
"props": {
|
|
366
|
+
"name": "play",
|
|
367
|
+
"size": 20,
|
|
368
|
+
"tint": "accentPrimary"
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
"modifiers": {
|
|
372
|
+
"accessibilityRole": "decorative"
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
]
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
"modifiers": {
|
|
379
|
+
"fillMaxWidth": true,
|
|
380
|
+
"onTap": {
|
|
381
|
+
"actionId": "himi.open",
|
|
382
|
+
"params": {
|
|
383
|
+
"screenId": "{{detailScreen}}",
|
|
384
|
+
"id": "$item.id",
|
|
385
|
+
"channelId": "$item.channelId",
|
|
386
|
+
"title": "$item.title"
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
"pressFeedback": "scale",
|
|
390
|
+
"haptic": "light",
|
|
391
|
+
"accessibilityLabel": "$item.accessibilityLabel"
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
]
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"id": "{{id}}.channel_all",
|
|
400
|
+
"body": {
|
|
401
|
+
"package": "himalaya",
|
|
402
|
+
"type": "Button",
|
|
403
|
+
"props": {
|
|
404
|
+
"title": "See All",
|
|
405
|
+
"style": "link",
|
|
406
|
+
"action": {
|
|
407
|
+
"actionId": "himi.open",
|
|
408
|
+
"params": {
|
|
409
|
+
"screenId": "{{channelScreen}}",
|
|
410
|
+
"id": "$item.id"
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
"modifiers": {
|
|
416
|
+
"hiddenPath": "$item.noMore",
|
|
417
|
+
"accessibilityLabel": "$item.seeAllLabel"
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
]
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
"modifiers": {
|
|
424
|
+
"fillMaxWidth": true
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
]
|
|
428
|
+
}
|
|
429
|
+
},
|
|
430
|
+
"modifiers": {
|
|
431
|
+
"hiddenPath": "$service:{{svc}}.noRows"
|
|
432
|
+
}
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
"id": "{{id}}.all_channels",
|
|
436
|
+
"body": {
|
|
437
|
+
"package": "himalaya",
|
|
438
|
+
"type": "Button",
|
|
439
|
+
"props": {
|
|
440
|
+
"title": "See All",
|
|
441
|
+
"style": "secondary",
|
|
442
|
+
"size": "md",
|
|
443
|
+
"fullWidth": true,
|
|
444
|
+
"action": {
|
|
445
|
+
"actionId": "himi.open",
|
|
446
|
+
"params": {
|
|
447
|
+
"screenId": "{{videosScreen}}"
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
"modifiers": {
|
|
453
|
+
"hiddenPath": "$service:{{svc}}.noMoreChannels"
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"id": "{{id}}.empty",
|
|
458
|
+
"body": {
|
|
459
|
+
"package": "himalaya",
|
|
460
|
+
"type": "Text",
|
|
461
|
+
"props": {
|
|
462
|
+
"text": "No videos yet.",
|
|
463
|
+
"style": "body",
|
|
464
|
+
"color": "textSecondary"
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
"modifiers": {
|
|
468
|
+
"hiddenPath": "$service:{{svc}}.noEmpty"
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
]
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
}
|
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
// visible session in start order, its time range and length in the EVENT's time zone (an
|
|
3
3
|
// attendee abroad plans by the venue's clock), its stage, and the day it falls on.
|
|
4
4
|
//
|
|
5
|
-
// Read from the visitor-readable `GET /events/v1/schedule?eventId
|
|
6
|
-
//
|
|
7
|
-
//
|
|
5
|
+
// Read from the visitor-readable `GET /events/v1/schedule?eventId=`, whatever the event's
|
|
6
|
+
// `agendaSettings.enabled` says: that switch is the website's agenda page, not the API's. With it
|
|
7
|
+
// off, Wix still answers a visitor 200 — the published sessions for a One App visitor, an empty
|
|
8
|
+
// list where there are none — and One App shows them. A failed read is reported (`ok: false`) so
|
|
9
|
+
// the caller can show an error with Retry, never an empty agenda.
|
|
8
10
|
import { calendarDay, formatClock, formatWeekdayMonthDayLong } from "./engine-intl.js";
|
|
9
11
|
import { copyParam, copyTemplate } from "./himi-copy.js";
|
|
10
12
|
|
|
@@ -55,14 +57,15 @@ export function durationLabel(minutes: number): string {
|
|
|
55
57
|
}
|
|
56
58
|
|
|
57
59
|
interface RawItem {
|
|
58
|
-
id?: unknown; name?: unknown; title?: unknown; hidden?: unknown; status?: unknown;
|
|
60
|
+
id?: unknown; name?: unknown; title?: unknown; hidden?: unknown; status?: unknown; draft?: unknown;
|
|
59
61
|
stageName?: unknown; description?: unknown;
|
|
60
62
|
timeSlot?: { start?: unknown; end?: unknown; timeZoneId?: unknown };
|
|
61
63
|
}
|
|
62
64
|
|
|
63
65
|
/** One session row from a Wix schedule item, or null for a hidden, draft or unnamed one. */
|
|
64
66
|
export function agendaSession(item: RawItem, eventZone: string): AgendaSession | null {
|
|
65
|
-
|
|
67
|
+
// An owner's read lists each item's draft copy too (`draft: true`), and only the draft until it is published.
|
|
68
|
+
if (item.hidden === true || item.draft === true) return null;
|
|
66
69
|
// Wix schedule items are SCHEDULED or CANCELED (a draft is a separate copy, not a status).
|
|
67
70
|
if (clean(item.status).toUpperCase() === "CANCELED") return null;
|
|
68
71
|
const id = clean(item.id), name = clean(item.name) || clean(item.title);
|
|
@@ -91,9 +94,9 @@ export function agendaSession(item: RawItem, eventZone: string): AgendaSession |
|
|
|
91
94
|
|
|
92
95
|
export type AgendaRead = { ok: true; sessions: AgendaSession[] } | { ok: false; sessions: AgendaSession[] };
|
|
93
96
|
|
|
94
|
-
/** The visible sessions of `eventId`, in start order.
|
|
95
|
-
export async function readAgenda(eventId: string,
|
|
96
|
-
if (!eventId
|
|
97
|
+
/** The visible sessions of `eventId`, in start order. */
|
|
98
|
+
export async function readAgenda(eventId: string, eventZone: string): Promise<AgendaRead> {
|
|
99
|
+
if (!eventId) return { ok: true, sessions: [] };
|
|
97
100
|
const api = wixApi();
|
|
98
101
|
if (!api) return { ok: false, sessions: [] };
|
|
99
102
|
try {
|
|
@@ -112,11 +115,8 @@ export async function readAgenda(eventId: string, agendaEnabled: boolean, eventZ
|
|
|
112
115
|
}
|
|
113
116
|
}
|
|
114
117
|
|
|
115
|
-
/** The event's own time zone
|
|
116
|
-
export function
|
|
117
|
-
const e = event as {
|
|
118
|
-
return
|
|
119
|
-
enabled: e?.agendaSettings?.enabled === true,
|
|
120
|
-
zone: clean(e?.dateAndTimeSettings?.timeZoneId) || clean(e?.scheduling?.config?.timeZoneId) || clean(e?.scheduling?.timeZoneId),
|
|
121
|
-
};
|
|
118
|
+
/** The event's own time zone, from an Events v3 record (the DETAILS fieldset carries it). */
|
|
119
|
+
export function eventZoneOf(event: unknown): string {
|
|
120
|
+
const e = event as { dateAndTimeSettings?: { timeZoneId?: unknown }; scheduling?: { timeZoneId?: unknown; config?: { timeZoneId?: unknown } } } | null;
|
|
121
|
+
return clean(e?.dateAndTimeSettings?.timeZoneId) || clean(e?.scheduling?.config?.timeZoneId) || clean(e?.scheduling?.timeZoneId);
|
|
122
122
|
}
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
// order, each as the day and start time it runs (in the app's language, in the EVENT's time zone), its name and its stage.
|
|
3
3
|
// limit -> how many sessions (default 10); `noMore` is false when the event has more, which is when the section's View All button
|
|
4
4
|
// (to the event screen, whose full schedule lists every session) shows.
|
|
5
|
-
// The read is the one the conference agenda makes: the event
|
|
6
|
-
//
|
|
7
|
-
// sessions: the section then hides completely (`hideSection`), title included. A failed read is `error`, never an
|
|
8
|
-
// that no longer exists (404) is an empty one.
|
|
5
|
+
// The read is the one the conference agenda makes: the event (DETAILS, for its time zone), then `GET /events/v1/schedule?eventId=`
|
|
6
|
+
// (_shared/event-agenda.ts), whether or not the event's agenda switch is on — One App shows the published sessions either way. An event
|
|
7
|
+
// with no sessions has none to show: the section then hides completely (`hideSection`), title included. A failed read is `error`, never an
|
|
8
|
+
// empty schedule; an event that no longer exists (404) is an empty one.
|
|
9
9
|
// The section adds no words of its own: every row is the event's own data, and the error state is the shared section-error recipe's.
|
|
10
10
|
// A page worker registers it under a service name; the descriptor binds `$service:<serviceName>.*` (recipe event-schedule).
|
|
11
11
|
import { defineService } from "@himalaya/state";
|
|
12
12
|
import { getEvent } from "@himalaya/wix-events";
|
|
13
|
-
import {
|
|
13
|
+
import { eventZoneOf, readAgenda, type AgendaSession } from "./event-agenda.js";
|
|
14
14
|
import { isNotFoundError } from "./detail-presence.js";
|
|
15
15
|
import { formatClock, formatWeekdayMonthDayLong } from "./engine-intl.js";
|
|
16
16
|
import { stashCopy } from "./himi-copy.js";
|
|
@@ -75,9 +75,9 @@ export function registerEventScheduleSection(serviceName: string, options: Event
|
|
|
75
75
|
stashCopy(arg);
|
|
76
76
|
try {
|
|
77
77
|
if (!options.eventId) return view("ready", [], false);
|
|
78
|
-
const res = await getEvent(options.eventId, { fields: ["DETAILS"
|
|
79
|
-
const
|
|
80
|
-
const agenda = await readAgenda(options.eventId,
|
|
78
|
+
const res = await getEvent(options.eventId, { fields: ["DETAILS"] });
|
|
79
|
+
const zone = eventZoneOf((res as unknown as { event?: unknown }).event ?? res);
|
|
80
|
+
const agenda = await readAgenda(options.eventId, zone);
|
|
81
81
|
if (!agenda.ok) throw new Error("The event schedule could not be read");
|
|
82
82
|
return view("ready", agenda.sessions.slice(0, limit).map((session) => rowOf(session, zone)), agenda.sessions.length > limit);
|
|
83
83
|
} catch (error) {
|