@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.
Files changed (188) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/files/src/index.d.ts +23 -2
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/admob-ids.d.ts +4 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/index.d.ts +1 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +3 -0
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/social-feed/src/index.d.ts +13 -4
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/video/src/display.d.ts +3 -0
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +8 -2
  8. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/files.mjs +4 -1
  9. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +3 -1
  10. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-video.mjs +4 -0
  11. package/dist/browser-plane/assets.json +5 -5
  12. package/dist/browser-plane/preview-deferred/{da958a2a47eef7082c7892c1cc755a58bbeefcb4b617b47fde87f1ce567b3e64.bin → a8cfd0e17359578587e8937e88dedd40b46d533f08b4d2fdac4c47d5bae6f385.bin} +1 -1
  13. package/dist/browser-plane/sw.js +9 -9
  14. package/dist/cli.mjs +1906 -800
  15. package/dist/preview-assets.generated.bin +0 -0
  16. package/guides/app-icon.md +7 -3
  17. package/guides/getting-started.md +6 -1
  18. package/guides/himi-skill.md +6 -1
  19. package/guides/himi-test.md +30 -1
  20. package/guides/one-app-section-mappings.md +1 -1
  21. package/guides/one-app-to-himi-app.md +23 -16
  22. package/guides/sdk-reference.json +28 -7
  23. package/guides/skill.md +1 -1
  24. package/package.json +2 -2
  25. package/templates/beauty-salon-owner/config.ts +7 -0
  26. package/templates/beauty-salon-owner/dev/index.ts +567 -0
  27. package/templates/beauty-salon-owner/himalaya.content.json +3 -0
  28. package/templates/beauty-salon-owner/tier5-src/_shared/owner-maestro-activity.ts +151 -0
  29. package/templates/beauty-salon-owner/tier5-src/_shared/owner-maestro-availability.ts +15 -2
  30. package/templates/beauty-salon-owner/tier5-src/_shared/owner-maestro-chat.ts +20 -7
  31. package/templates/beauty-salon-owner/tier5-src/_shared/owner-maestro-when.ts +13 -0
  32. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-maestro/index.ts +60 -11
  33. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-maestro-activity/index.ts +228 -0
  34. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +1 -11
  35. package/templates/branded-lite/l10n/ar.json +21 -0
  36. package/templates/branded-lite/l10n/cs.json +21 -0
  37. package/templates/branded-lite/l10n/da.json +21 -0
  38. package/templates/branded-lite/l10n/de.json +21 -0
  39. package/templates/branded-lite/l10n/el.json +21 -0
  40. package/templates/branded-lite/l10n/en.json +5 -0
  41. package/templates/branded-lite/l10n/es.json +21 -0
  42. package/templates/branded-lite/l10n/fi.json +21 -0
  43. package/templates/branded-lite/l10n/fr.json +21 -0
  44. package/templates/branded-lite/l10n/he.json +21 -0
  45. package/templates/branded-lite/l10n/hu.json +21 -0
  46. package/templates/branded-lite/l10n/id.json +21 -0
  47. package/templates/branded-lite/l10n/it.json +21 -0
  48. package/templates/branded-lite/l10n/ja.json +21 -0
  49. package/templates/branded-lite/l10n/ko.json +21 -0
  50. package/templates/branded-lite/l10n/lt.json +21 -0
  51. package/templates/branded-lite/l10n/nl.json +21 -0
  52. package/templates/branded-lite/l10n/no.json +21 -0
  53. package/templates/branded-lite/l10n/pl.json +21 -0
  54. package/templates/branded-lite/l10n/pt.json +21 -0
  55. package/templates/branded-lite/l10n/ru.json +21 -0
  56. package/templates/branded-lite/l10n/sv.json +21 -0
  57. package/templates/branded-lite/l10n/th.json +21 -0
  58. package/templates/branded-lite/l10n/tr.json +21 -0
  59. package/templates/branded-lite/l10n/uk.json +21 -0
  60. package/templates/branded-lite/l10n/vi.json +21 -0
  61. package/templates/branded-lite/l10n/zh.json +21 -0
  62. package/templates/branded-lite/recipes/form-section.json +958 -0
  63. package/templates/branded-lite/recipes/group-feed.json +221 -3
  64. package/templates/branded-lite/recipes/groups-newsfeed.json +160 -2
  65. package/templates/branded-lite/recipes/video-library.json +475 -0
  66. package/templates/branded-lite/tier5-src/_shared/event-agenda.ts +15 -15
  67. package/templates/branded-lite/tier5-src/_shared/event-schedule-section.ts +8 -8
  68. package/templates/branded-lite/tier5-src/_shared/form-section.ts +640 -0
  69. package/templates/branded-lite/tier5-src/_shared/group-feed-section.ts +119 -7
  70. package/templates/branded-lite/tier5-src/_shared/groups-newsfeed-section.ts +17 -9
  71. package/templates/branded-lite/tier5-src/_shared/videos-section.ts +134 -2
  72. package/templates/branded-lite/tier5-src/himi-branded-lite-form/index.ts +4 -588
  73. package/templates/branded-lite/tier5-src/himi-branded-lite-video/index.ts +4 -2
  74. package/templates/branded-lite/tier5-src/himi-events-detail/index.ts +7 -6
  75. package/templates/community-club/tier5-src/himi-events-detail/index.ts +7 -6
  76. package/templates/community-club-owner/config.ts +7 -0
  77. package/templates/community-club-owner/dev/index.ts +567 -0
  78. package/templates/community-club-owner/himalaya.content.json +3 -0
  79. package/templates/community-club-owner/tier5-src/_shared/owner-maestro-activity.ts +151 -0
  80. package/templates/community-club-owner/tier5-src/_shared/owner-maestro-availability.ts +15 -2
  81. package/templates/community-club-owner/tier5-src/_shared/owner-maestro-chat.ts +20 -7
  82. package/templates/community-club-owner/tier5-src/_shared/owner-maestro-when.ts +13 -0
  83. package/templates/community-club-owner/tier5-src/himi-owner-lite-maestro/index.ts +60 -11
  84. package/templates/community-club-owner/tier5-src/himi-owner-lite-maestro-activity/index.ts +228 -0
  85. package/templates/community-club-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +1 -11
  86. package/templates/conference/tier5-src/_shared/event-agenda.ts +15 -15
  87. package/templates/conference/tier5-src/himi-conference-agenda/index.ts +3 -5
  88. package/templates/conference/tier5-src/himi-conference-home/index.ts +5 -6
  89. package/templates/conference/tier5-src/himi-events-detail/index.ts +7 -6
  90. package/templates/events-meetups/tier5-src/himi-events-detail/index.ts +7 -6
  91. package/templates/events-meetups-owner/config.ts +7 -0
  92. package/templates/events-meetups-owner/dev/index.ts +567 -0
  93. package/templates/events-meetups-owner/himalaya.content.json +3 -0
  94. package/templates/events-meetups-owner/tier5-src/_shared/owner-maestro-activity.ts +151 -0
  95. package/templates/events-meetups-owner/tier5-src/_shared/owner-maestro-availability.ts +15 -2
  96. package/templates/events-meetups-owner/tier5-src/_shared/owner-maestro-chat.ts +20 -7
  97. package/templates/events-meetups-owner/tier5-src/_shared/owner-maestro-when.ts +13 -0
  98. package/templates/events-meetups-owner/tier5-src/himi-owner-lite-maestro/index.ts +60 -11
  99. package/templates/events-meetups-owner/tier5-src/himi-owner-lite-maestro-activity/index.ts +228 -0
  100. package/templates/events-meetups-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +1 -11
  101. package/templates/gym-fitness/tier5-src/himi-events-detail/index.ts +7 -6
  102. package/templates/gym-fitness-owner/config.ts +7 -0
  103. package/templates/gym-fitness-owner/dev/index.ts +567 -0
  104. package/templates/gym-fitness-owner/himalaya.content.json +3 -0
  105. package/templates/gym-fitness-owner/tier5-src/_shared/owner-maestro-activity.ts +151 -0
  106. package/templates/gym-fitness-owner/tier5-src/_shared/owner-maestro-availability.ts +15 -2
  107. package/templates/gym-fitness-owner/tier5-src/_shared/owner-maestro-chat.ts +20 -7
  108. package/templates/gym-fitness-owner/tier5-src/_shared/owner-maestro-when.ts +13 -0
  109. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-maestro/index.ts +60 -11
  110. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-maestro-activity/index.ts +228 -0
  111. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +1 -11
  112. package/templates/nonprofit-cause/tier5-src/himi-events-detail/index.ts +7 -6
  113. package/templates/nonprofit-cause-owner/config.ts +7 -0
  114. package/templates/nonprofit-cause-owner/dev/index.ts +567 -0
  115. package/templates/nonprofit-cause-owner/himalaya.content.json +3 -0
  116. package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-maestro-activity.ts +151 -0
  117. package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-maestro-availability.ts +15 -2
  118. package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-maestro-chat.ts +20 -7
  119. package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-maestro-when.ts +13 -0
  120. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-maestro/index.ts +60 -11
  121. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-maestro-activity/index.ts +228 -0
  122. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +1 -11
  123. package/templates/owner-lite/config.ts +7 -0
  124. package/templates/owner-lite/dev/index.ts +567 -0
  125. package/templates/owner-lite/himalaya.content.json +3 -0
  126. package/templates/owner-lite/tier5-src/_shared/owner-maestro-activity.ts +151 -0
  127. package/templates/owner-lite/tier5-src/_shared/owner-maestro-availability.ts +15 -2
  128. package/templates/owner-lite/tier5-src/_shared/owner-maestro-chat.ts +20 -7
  129. package/templates/owner-lite/tier5-src/_shared/owner-maestro-when.ts +13 -0
  130. package/templates/owner-lite/tier5-src/himi-owner-lite-maestro/index.ts +60 -11
  131. package/templates/owner-lite/tier5-src/himi-owner-lite-maestro-activity/index.ts +228 -0
  132. package/templates/owner-lite/tier5-src/himi-owner-lite-maestro-history/index.ts +1 -11
  133. package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-video/index.ts +4 -2
  134. package/templates/podcast-creator/tier5-src/himi-events-detail/index.ts +7 -6
  135. package/templates/podcast-creator-owner/config.ts +7 -0
  136. package/templates/podcast-creator-owner/dev/index.ts +567 -0
  137. package/templates/podcast-creator-owner/himalaya.content.json +3 -0
  138. package/templates/podcast-creator-owner/tier5-src/_shared/owner-maestro-activity.ts +151 -0
  139. package/templates/podcast-creator-owner/tier5-src/_shared/owner-maestro-availability.ts +15 -2
  140. package/templates/podcast-creator-owner/tier5-src/_shared/owner-maestro-chat.ts +20 -7
  141. package/templates/podcast-creator-owner/tier5-src/_shared/owner-maestro-when.ts +13 -0
  142. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-maestro/index.ts +60 -11
  143. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-maestro-activity/index.ts +228 -0
  144. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +1 -11
  145. package/templates/portfolio-creative/tier5-src/himi-events-detail/index.ts +7 -6
  146. package/templates/portfolio-creative-owner/config.ts +7 -0
  147. package/templates/portfolio-creative-owner/dev/index.ts +567 -0
  148. package/templates/portfolio-creative-owner/himalaya.content.json +3 -0
  149. package/templates/portfolio-creative-owner/tier5-src/_shared/owner-maestro-activity.ts +151 -0
  150. package/templates/portfolio-creative-owner/tier5-src/_shared/owner-maestro-availability.ts +15 -2
  151. package/templates/portfolio-creative-owner/tier5-src/_shared/owner-maestro-chat.ts +20 -7
  152. package/templates/portfolio-creative-owner/tier5-src/_shared/owner-maestro-when.ts +13 -0
  153. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-maestro/index.ts +60 -11
  154. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-maestro-activity/index.ts +228 -0
  155. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +1 -11
  156. package/templates/professional-services/tier5-src/himi-events-detail/index.ts +7 -6
  157. package/templates/restaurant/tier5-src/himi-events-detail/index.ts +7 -6
  158. package/templates/restaurant-owner/config.ts +7 -0
  159. package/templates/restaurant-owner/dev/index.ts +567 -0
  160. package/templates/restaurant-owner/himalaya.content.json +3 -0
  161. package/templates/restaurant-owner/tier5-src/_shared/owner-maestro-activity.ts +151 -0
  162. package/templates/restaurant-owner/tier5-src/_shared/owner-maestro-availability.ts +15 -2
  163. package/templates/restaurant-owner/tier5-src/_shared/owner-maestro-chat.ts +20 -7
  164. package/templates/restaurant-owner/tier5-src/_shared/owner-maestro-when.ts +13 -0
  165. package/templates/restaurant-owner/tier5-src/himi-owner-lite-maestro/index.ts +60 -11
  166. package/templates/restaurant-owner/tier5-src/himi-owner-lite-maestro-activity/index.ts +228 -0
  167. package/templates/restaurant-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +1 -11
  168. package/templates/retail-store-owner/config.ts +7 -0
  169. package/templates/retail-store-owner/dev/index.ts +567 -0
  170. package/templates/retail-store-owner/himalaya.content.json +3 -0
  171. package/templates/retail-store-owner/tier5-src/_shared/owner-maestro-activity.ts +151 -0
  172. package/templates/retail-store-owner/tier5-src/_shared/owner-maestro-availability.ts +15 -2
  173. package/templates/retail-store-owner/tier5-src/_shared/owner-maestro-chat.ts +20 -7
  174. package/templates/retail-store-owner/tier5-src/_shared/owner-maestro-when.ts +13 -0
  175. package/templates/retail-store-owner/tier5-src/himi-owner-lite-maestro/index.ts +60 -11
  176. package/templates/retail-store-owner/tier5-src/himi-owner-lite-maestro-activity/index.ts +228 -0
  177. package/templates/retail-store-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +1 -11
  178. package/templates/yoga-studio/tier5-src/himi-events-detail/index.ts +7 -6
  179. package/templates/yoga-studio-owner/config.ts +7 -0
  180. package/templates/yoga-studio-owner/dev/index.ts +567 -0
  181. package/templates/yoga-studio-owner/himalaya.content.json +3 -0
  182. package/templates/yoga-studio-owner/tier5-src/_shared/owner-maestro-activity.ts +151 -0
  183. package/templates/yoga-studio-owner/tier5-src/_shared/owner-maestro-availability.ts +15 -2
  184. package/templates/yoga-studio-owner/tier5-src/_shared/owner-maestro-chat.ts +20 -7
  185. package/templates/yoga-studio-owner/tier5-src/_shared/owner-maestro-when.ts +13 -0
  186. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-maestro/index.ts +60 -11
  187. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-maestro-activity/index.ts +228 -0
  188. 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 opens, himi_groups"
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": {