@wix/himalaya-cli 0.1948.0 → 0.1950.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/sdk/network/src/index.d.ts +22 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/sdk-types/src/capabilities.generated.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/message-format.d.ts +1 -1
- 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/audio-record.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calendar.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calls.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/contacts.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/files.mjs +4 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/l10n.mjs +1 -8
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/location.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/motion.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/network.mjs +19 -3
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/photos.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +4 -9
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdk-types.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/tasks.mjs +1 -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/{1425fc7ef3149df8ba41fdbcca629cefd430a2cae524822c21985f0aade6430a.bin → bb3ece9e6e814275817059f029f1b2db624dceb90d9e1a53ebae2b45fe6d36e5.bin} +1 -1
- package/dist/browser-plane/sw.js +9 -9
- package/dist/cli.mjs +185 -95
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/app-icon.md +7 -3
- package/guides/one-app-to-himi-app.md +2 -2
- package/guides/release-notes.md +11 -0
- package/guides/sdk-reference.json +55 -6
- package/guides/web-page-sdk-reference.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/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/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-video/index.ts +4 -2
- 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/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-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-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-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-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/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-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
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_recipe": "One group's latest posts (author with avatar, time, text) and a button that opens the group. A group that is not public, or whose feed Wix will not show the viewer, shows its name, privacy and the reason instead of any post: the state the group screen shows a non-member. ONE node, always mounted. Service: registerGroupFeedSection(svc, { groupId, limit }).",
|
|
2
|
+
"_recipe": "One group's shortcuts (About, Members), its latest posts (author with avatar, time, text, and the Like and Share the viewer is allowed) and a button that opens the group. A viewer who may not like the posts sees a sign-in gate (a visitor) or a join gate (a member outside the group) instead. A group that is not public, or whose feed Wix will not show the viewer, shows its name, privacy and the reason instead of any post: the state the group screen shows a non-member. ONE node, always mounted. To switch a shortcut or a gate OFF, drop the node with id {{id}}.about, {{id}}.members, {{id}}.signin or {{id}}.join. Service: registerGroupFeedSection(svc, { groupId, limit }).",
|
|
3
3
|
"_placeholders": {
|
|
4
4
|
"svc": "service name the page worker registered with registerGroupFeedSection",
|
|
5
5
|
"id": "unique node id prefix for this section",
|
|
6
|
-
"detailScreen": "group screen id, himi_group",
|
|
6
|
+
"detailScreen": "group screen id, himi_group: the open button, the Members shortcut and the join gate open it",
|
|
7
|
+
"aboutScreen": "the group's About page, himi_group_about",
|
|
8
|
+
"signInScreen": "the sign-in screen the visitor's gate opens, himi_sign_in",
|
|
7
9
|
"groupId": "the group the section shows",
|
|
8
|
-
"openLabel": "the button's label (the source's own text)"
|
|
10
|
+
"openLabel": "the button's label (the source's own text)",
|
|
11
|
+
"aboutLabel": "the About shortcut's label",
|
|
12
|
+
"membersLabel": "the Members shortcut's label",
|
|
13
|
+
"shareLabel": "a post's Share button label",
|
|
14
|
+
"signInText": "the visitor's gate line",
|
|
15
|
+
"signInLabel": "the visitor's gate button label",
|
|
16
|
+
"joinText": "the join gate line",
|
|
17
|
+
"joinLabel": "the join gate button label"
|
|
9
18
|
},
|
|
10
19
|
"node": {
|
|
11
20
|
"id": "{{id}}.feed",
|
|
@@ -16,6 +25,62 @@
|
|
|
16
25
|
"spacing": 12,
|
|
17
26
|
"alignment": "leading",
|
|
18
27
|
"children": [
|
|
28
|
+
{
|
|
29
|
+
"id": "{{id}}.shortcuts",
|
|
30
|
+
"body": {
|
|
31
|
+
"package": "himalaya",
|
|
32
|
+
"type": "HStack",
|
|
33
|
+
"props": {
|
|
34
|
+
"spacing": 8,
|
|
35
|
+
"alignment": "center",
|
|
36
|
+
"children": [
|
|
37
|
+
{
|
|
38
|
+
"id": "{{id}}.about",
|
|
39
|
+
"body": {
|
|
40
|
+
"package": "himalaya",
|
|
41
|
+
"type": "Button",
|
|
42
|
+
"props": {
|
|
43
|
+
"title": "{{aboutLabel}}",
|
|
44
|
+
"style": "secondary",
|
|
45
|
+
"size": "sm",
|
|
46
|
+
"leadingIcon": "info",
|
|
47
|
+
"action": {
|
|
48
|
+
"actionId": "himi.open",
|
|
49
|
+
"params": {
|
|
50
|
+
"screenId": "{{aboutScreen}}",
|
|
51
|
+
"id": "{{groupId}}"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"id": "{{id}}.members",
|
|
59
|
+
"body": {
|
|
60
|
+
"package": "himalaya",
|
|
61
|
+
"type": "Button",
|
|
62
|
+
"props": {
|
|
63
|
+
"title": "{{membersLabel}}",
|
|
64
|
+
"style": "secondary",
|
|
65
|
+
"size": "sm",
|
|
66
|
+
"leadingIcon": "people",
|
|
67
|
+
"action": {
|
|
68
|
+
"actionId": "himi.open",
|
|
69
|
+
"params": {
|
|
70
|
+
"screenId": "{{detailScreen}}",
|
|
71
|
+
"id": "{{groupId}}"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"modifiers": {
|
|
81
|
+
"hiddenPath": "$service:{{svc}}.noShortcuts"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
19
84
|
{
|
|
20
85
|
"id": "{{id}}.loading",
|
|
21
86
|
"body": {
|
|
@@ -137,6 +202,63 @@
|
|
|
137
202
|
"maxLines": 6
|
|
138
203
|
}
|
|
139
204
|
}
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"id": "{{id}}.actions",
|
|
208
|
+
"body": {
|
|
209
|
+
"package": "himalaya",
|
|
210
|
+
"type": "HStack",
|
|
211
|
+
"props": {
|
|
212
|
+
"spacing": 16,
|
|
213
|
+
"alignment": "center",
|
|
214
|
+
"children": [
|
|
215
|
+
{
|
|
216
|
+
"id": "{{id}}.like",
|
|
217
|
+
"body": {
|
|
218
|
+
"package": "himalaya",
|
|
219
|
+
"type": "Button",
|
|
220
|
+
"props": {
|
|
221
|
+
"title": "$item.likeLabel",
|
|
222
|
+
"style": "link",
|
|
223
|
+
"action": {
|
|
224
|
+
"actionId": "tier5.{{svc}}.like",
|
|
225
|
+
"params": {
|
|
226
|
+
"id": "$item.id"
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
"modifiers": {
|
|
232
|
+
"hiddenPath": "$item.noLike"
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"id": "{{id}}.share",
|
|
237
|
+
"body": {
|
|
238
|
+
"package": "himalaya",
|
|
239
|
+
"type": "Button",
|
|
240
|
+
"props": {
|
|
241
|
+
"title": "{{shareLabel}}",
|
|
242
|
+
"style": "link",
|
|
243
|
+
"leadingIcon": "share",
|
|
244
|
+
"action": {
|
|
245
|
+
"actionId": "tier5.{{svc}}.share",
|
|
246
|
+
"params": {
|
|
247
|
+
"id": "$item.id"
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
"modifiers": {
|
|
253
|
+
"hiddenPath": "$item.noShare"
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
]
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
"modifiers": {
|
|
260
|
+
"hiddenPath": "$item.noActions"
|
|
261
|
+
}
|
|
140
262
|
}
|
|
141
263
|
]
|
|
142
264
|
}
|
|
@@ -153,6 +275,102 @@
|
|
|
153
275
|
"hiddenPath": "$service:{{svc}}.noRows"
|
|
154
276
|
}
|
|
155
277
|
},
|
|
278
|
+
{
|
|
279
|
+
"id": "{{id}}.signin",
|
|
280
|
+
"body": {
|
|
281
|
+
"package": "himalaya",
|
|
282
|
+
"type": "VStack",
|
|
283
|
+
"props": {
|
|
284
|
+
"spacing": 8,
|
|
285
|
+
"alignment": "leading",
|
|
286
|
+
"children": [
|
|
287
|
+
{
|
|
288
|
+
"id": "{{id}}.signin.text",
|
|
289
|
+
"body": {
|
|
290
|
+
"package": "himalaya",
|
|
291
|
+
"type": "Text",
|
|
292
|
+
"props": {
|
|
293
|
+
"text": "{{signInText}}",
|
|
294
|
+
"style": "body",
|
|
295
|
+
"color": "textSecondary"
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"id": "{{id}}.signin.button",
|
|
301
|
+
"body": {
|
|
302
|
+
"package": "himalaya",
|
|
303
|
+
"type": "Button",
|
|
304
|
+
"props": {
|
|
305
|
+
"title": "{{signInLabel}}",
|
|
306
|
+
"style": "primary",
|
|
307
|
+
"size": "md",
|
|
308
|
+
"fullWidth": true,
|
|
309
|
+
"action": {
|
|
310
|
+
"actionId": "himi.open",
|
|
311
|
+
"params": {
|
|
312
|
+
"screenId": "{{signInScreen}}",
|
|
313
|
+
"mode": "signin"
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
]
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
"modifiers": {
|
|
323
|
+
"hiddenPath": "$service:{{svc}}.noSignInGate"
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"id": "{{id}}.join",
|
|
328
|
+
"body": {
|
|
329
|
+
"package": "himalaya",
|
|
330
|
+
"type": "VStack",
|
|
331
|
+
"props": {
|
|
332
|
+
"spacing": 8,
|
|
333
|
+
"alignment": "leading",
|
|
334
|
+
"children": [
|
|
335
|
+
{
|
|
336
|
+
"id": "{{id}}.join.text",
|
|
337
|
+
"body": {
|
|
338
|
+
"package": "himalaya",
|
|
339
|
+
"type": "Text",
|
|
340
|
+
"props": {
|
|
341
|
+
"text": "{{joinText}}",
|
|
342
|
+
"style": "body",
|
|
343
|
+
"color": "textSecondary"
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"id": "{{id}}.join.button",
|
|
349
|
+
"body": {
|
|
350
|
+
"package": "himalaya",
|
|
351
|
+
"type": "Button",
|
|
352
|
+
"props": {
|
|
353
|
+
"title": "{{joinLabel}}",
|
|
354
|
+
"style": "primary",
|
|
355
|
+
"size": "md",
|
|
356
|
+
"fullWidth": true,
|
|
357
|
+
"action": {
|
|
358
|
+
"actionId": "himi.open",
|
|
359
|
+
"params": {
|
|
360
|
+
"screenId": "{{detailScreen}}",
|
|
361
|
+
"id": "{{groupId}}"
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
]
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
"modifiers": {
|
|
371
|
+
"hiddenPath": "$service:{{svc}}.noJoinGate"
|
|
372
|
+
}
|
|
373
|
+
},
|
|
156
374
|
{
|
|
157
375
|
"id": "{{id}}.restricted",
|
|
158
376
|
"body": {
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_recipe": "The latest posts across a page's groups, newest first (author with avatar, time, the group's name, text; a tap opens the group) and a button that opens the groups list. When every group's feed refuses the viewer it shows the member-only reason instead of any post. ONE node, always mounted. Service: registerGroupsNewsfeedSection(svc, { groupIds, limit }).",
|
|
2
|
+
"_recipe": "The latest posts across a page's groups, newest first (author with avatar, time, the group's name, text, and the Like and Share the viewer is allowed; a tap opens the group) and a button that opens the groups list. A viewer who may not like any post sees a sign-in gate (a visitor) or a join gate (a member, sent to the groups list) instead. When every group's feed refuses the viewer it shows the member-only reason instead of any post. ONE node, always mounted. To switch a gate OFF, drop the node with id {{id}}.signin or {{id}}.join. Service: registerGroupsNewsfeedSection(svc, { groupIds, limit }).",
|
|
3
3
|
"_placeholders": {
|
|
4
4
|
"svc": "service name the page worker registered with registerGroupsNewsfeedSection",
|
|
5
5
|
"id": "unique node id prefix for this section",
|
|
6
6
|
"detailScreen": "group screen id, himi_group",
|
|
7
7
|
"groupListLabel": "the groups button's label (the source's own text)",
|
|
8
|
-
"groupListScreen": "the screen the groups button
|
|
8
|
+
"groupListScreen": "the screen the groups button and the join gate open, himi_groups",
|
|
9
|
+
"signInScreen": "the sign-in screen the visitor's gate opens, himi_sign_in",
|
|
10
|
+
"shareLabel": "a post's Share button label",
|
|
11
|
+
"signInText": "the visitor's gate line",
|
|
12
|
+
"signInLabel": "the visitor's gate button label",
|
|
13
|
+
"joinText": "the join gate line",
|
|
14
|
+
"joinLabel": "the join gate button label"
|
|
9
15
|
},
|
|
10
16
|
"node": {
|
|
11
17
|
"id": "{{id}}.feed",
|
|
@@ -150,6 +156,63 @@
|
|
|
150
156
|
"maxLines": 6
|
|
151
157
|
}
|
|
152
158
|
}
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"id": "{{id}}.actions",
|
|
162
|
+
"body": {
|
|
163
|
+
"package": "himalaya",
|
|
164
|
+
"type": "HStack",
|
|
165
|
+
"props": {
|
|
166
|
+
"spacing": 16,
|
|
167
|
+
"alignment": "center",
|
|
168
|
+
"children": [
|
|
169
|
+
{
|
|
170
|
+
"id": "{{id}}.like",
|
|
171
|
+
"body": {
|
|
172
|
+
"package": "himalaya",
|
|
173
|
+
"type": "Button",
|
|
174
|
+
"props": {
|
|
175
|
+
"title": "$item.likeLabel",
|
|
176
|
+
"style": "link",
|
|
177
|
+
"action": {
|
|
178
|
+
"actionId": "tier5.{{svc}}.like",
|
|
179
|
+
"params": {
|
|
180
|
+
"id": "$item.id"
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
"modifiers": {
|
|
186
|
+
"hiddenPath": "$item.noLike"
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"id": "{{id}}.share",
|
|
191
|
+
"body": {
|
|
192
|
+
"package": "himalaya",
|
|
193
|
+
"type": "Button",
|
|
194
|
+
"props": {
|
|
195
|
+
"title": "{{shareLabel}}",
|
|
196
|
+
"style": "link",
|
|
197
|
+
"leadingIcon": "share",
|
|
198
|
+
"action": {
|
|
199
|
+
"actionId": "tier5.{{svc}}.share",
|
|
200
|
+
"params": {
|
|
201
|
+
"id": "$item.id"
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
"modifiers": {
|
|
207
|
+
"hiddenPath": "$item.noShare"
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
]
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
"modifiers": {
|
|
214
|
+
"hiddenPath": "$item.noActions"
|
|
215
|
+
}
|
|
153
216
|
}
|
|
154
217
|
]
|
|
155
218
|
}
|
|
@@ -173,6 +236,101 @@
|
|
|
173
236
|
"hiddenPath": "$service:{{svc}}.noRows"
|
|
174
237
|
}
|
|
175
238
|
},
|
|
239
|
+
{
|
|
240
|
+
"id": "{{id}}.signin",
|
|
241
|
+
"body": {
|
|
242
|
+
"package": "himalaya",
|
|
243
|
+
"type": "VStack",
|
|
244
|
+
"props": {
|
|
245
|
+
"spacing": 8,
|
|
246
|
+
"alignment": "leading",
|
|
247
|
+
"children": [
|
|
248
|
+
{
|
|
249
|
+
"id": "{{id}}.signin.text",
|
|
250
|
+
"body": {
|
|
251
|
+
"package": "himalaya",
|
|
252
|
+
"type": "Text",
|
|
253
|
+
"props": {
|
|
254
|
+
"text": "{{signInText}}",
|
|
255
|
+
"style": "body",
|
|
256
|
+
"color": "textSecondary"
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"id": "{{id}}.signin.button",
|
|
262
|
+
"body": {
|
|
263
|
+
"package": "himalaya",
|
|
264
|
+
"type": "Button",
|
|
265
|
+
"props": {
|
|
266
|
+
"title": "{{signInLabel}}",
|
|
267
|
+
"style": "primary",
|
|
268
|
+
"size": "md",
|
|
269
|
+
"fullWidth": true,
|
|
270
|
+
"action": {
|
|
271
|
+
"actionId": "himi.open",
|
|
272
|
+
"params": {
|
|
273
|
+
"screenId": "{{signInScreen}}",
|
|
274
|
+
"mode": "signin"
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
]
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
"modifiers": {
|
|
284
|
+
"hiddenPath": "$service:{{svc}}.noSignInGate"
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"id": "{{id}}.join",
|
|
289
|
+
"body": {
|
|
290
|
+
"package": "himalaya",
|
|
291
|
+
"type": "VStack",
|
|
292
|
+
"props": {
|
|
293
|
+
"spacing": 8,
|
|
294
|
+
"alignment": "leading",
|
|
295
|
+
"children": [
|
|
296
|
+
{
|
|
297
|
+
"id": "{{id}}.join.text",
|
|
298
|
+
"body": {
|
|
299
|
+
"package": "himalaya",
|
|
300
|
+
"type": "Text",
|
|
301
|
+
"props": {
|
|
302
|
+
"text": "{{joinText}}",
|
|
303
|
+
"style": "body",
|
|
304
|
+
"color": "textSecondary"
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"id": "{{id}}.join.button",
|
|
310
|
+
"body": {
|
|
311
|
+
"package": "himalaya",
|
|
312
|
+
"type": "Button",
|
|
313
|
+
"props": {
|
|
314
|
+
"title": "{{joinLabel}}",
|
|
315
|
+
"style": "primary",
|
|
316
|
+
"size": "md",
|
|
317
|
+
"fullWidth": true,
|
|
318
|
+
"action": {
|
|
319
|
+
"actionId": "himi.open",
|
|
320
|
+
"params": {
|
|
321
|
+
"screenId": "{{groupListScreen}}"
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
]
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
"modifiers": {
|
|
331
|
+
"hiddenPath": "$service:{{svc}}.noJoinGate"
|
|
332
|
+
}
|
|
333
|
+
},
|
|
176
334
|
{
|
|
177
335
|
"id": "{{id}}.restricted",
|
|
178
336
|
"body": {
|