@wix/himalaya-cli 0.2007.0 → 0.2009.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/cli.mjs +71 -29
- package/guides/one-app-to-himi-app.md +1 -1
- package/package.json +2 -2
- package/templates/branded-lite/l10n/ar.json +10 -0
- package/templates/branded-lite/l10n/cs.json +10 -0
- package/templates/branded-lite/l10n/da.json +10 -0
- package/templates/branded-lite/l10n/de.json +10 -0
- package/templates/branded-lite/l10n/el.json +10 -0
- package/templates/branded-lite/l10n/es.json +10 -0
- package/templates/branded-lite/l10n/fi.json +10 -0
- package/templates/branded-lite/l10n/fr.json +10 -0
- package/templates/branded-lite/l10n/he.json +10 -0
- package/templates/branded-lite/l10n/hu.json +10 -0
- package/templates/branded-lite/l10n/id.json +10 -0
- package/templates/branded-lite/l10n/it.json +10 -0
- package/templates/branded-lite/l10n/ja.json +10 -0
- package/templates/branded-lite/l10n/ko.json +10 -0
- package/templates/branded-lite/l10n/lt.json +10 -0
- package/templates/branded-lite/l10n/nl.json +10 -0
- package/templates/branded-lite/l10n/no.json +10 -0
- package/templates/branded-lite/l10n/pl.json +10 -0
- package/templates/branded-lite/l10n/pt.json +10 -0
- package/templates/branded-lite/l10n/ru.json +10 -0
- package/templates/branded-lite/l10n/sv.json +10 -0
- package/templates/branded-lite/l10n/th.json +10 -0
- package/templates/branded-lite/l10n/tr.json +10 -0
- package/templates/branded-lite/l10n/uk.json +10 -0
- package/templates/branded-lite/l10n/vi.json +10 -0
- package/templates/branded-lite/l10n/zh.json +10 -0
- package/templates/branded-lite/recipes/group-feed.json +135 -5
- package/templates/branded-lite/recipes/groups-newsfeed.json +241 -95
- package/templates/branded-lite/tier5-src/_shared/group-feed-section.ts +131 -17
- package/templates/branded-lite/tier5-src/_shared/groups-newsfeed-section.ts +8 -5
- package/templates/branded-lite/tier5-src/_shared/groups-section.ts +7 -1
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
{
|
|
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
|
|
2
|
+
"_recipe": "The latest posts across a page's groups, newest first (author with avatar, time, the group's name, text, and the Like, Comment and Share the post's feed read names for the viewer; a tap opens the group) and a button that opens the groups list. Like and Comment show as the One App shows them: a viewer the read lets react likes in place, one it lets comment opens a comment field under the post, and anyone else is sent to sign in (a visitor) or to the post's group to join it (a member). A viewer who may neither like nor comment on any post also sees a sign-in gate (a visitor) or a join gate (a member, sent to 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. 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
|
-
"detailScreen": "group screen id, himi_group",
|
|
6
|
+
"detailScreen": "group screen id, himi_group: a post's tap and a member's refused Like or Comment open the post's group",
|
|
7
7
|
"groupListLabel": "the groups button's label (the source's own text)",
|
|
8
8
|
"groupListScreen": "the screen the groups button and the join gate open, himi_groups",
|
|
9
|
-
"signInScreen": "the sign-in screen the visitor's gate
|
|
9
|
+
"signInScreen": "the sign-in screen the visitor's gate and a visitor's Like or Comment open, himi_sign_in",
|
|
10
10
|
"shareLabel": "a post's Share button label",
|
|
11
|
+
"commentPlaceholder": "the comment field's placeholder",
|
|
12
|
+
"sendCommentLabel": "the comment field's send button label",
|
|
13
|
+
"cancelCommentLabel": "the comment field's cancel button label",
|
|
11
14
|
"signInText": "the visitor's gate line",
|
|
12
15
|
"signInLabel": "the visitor's gate button label",
|
|
13
16
|
"joinText": "the join gate line",
|
|
@@ -53,7 +56,7 @@
|
|
|
53
56
|
"itemsPath": "$service:{{svc}}.rows",
|
|
54
57
|
"items": [
|
|
55
58
|
{
|
|
56
|
-
"id": "{{id}}.
|
|
59
|
+
"id": "{{id}}.entry",
|
|
57
60
|
"body": {
|
|
58
61
|
"package": "himalaya",
|
|
59
62
|
"type": "VStack",
|
|
@@ -62,171 +65,299 @@
|
|
|
62
65
|
"alignment": "leading",
|
|
63
66
|
"children": [
|
|
64
67
|
{
|
|
65
|
-
"id": "{{id}}.
|
|
68
|
+
"id": "{{id}}.post",
|
|
66
69
|
"body": {
|
|
67
70
|
"package": "himalaya",
|
|
68
|
-
"type": "
|
|
71
|
+
"type": "VStack",
|
|
69
72
|
"props": {
|
|
70
|
-
"spacing":
|
|
71
|
-
"alignment": "
|
|
73
|
+
"spacing": 8,
|
|
74
|
+
"alignment": "leading",
|
|
72
75
|
"children": [
|
|
73
76
|
{
|
|
74
|
-
"id": "{{id}}.
|
|
77
|
+
"id": "{{id}}.head",
|
|
75
78
|
"body": {
|
|
76
79
|
"package": "himalaya",
|
|
77
|
-
"type": "
|
|
80
|
+
"type": "HStack",
|
|
78
81
|
"props": {
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
82
|
+
"spacing": 12,
|
|
83
|
+
"alignment": "center",
|
|
84
|
+
"children": [
|
|
85
|
+
{
|
|
86
|
+
"id": "{{id}}.avatar",
|
|
87
|
+
"body": {
|
|
88
|
+
"package": "himalaya",
|
|
89
|
+
"type": "Image",
|
|
90
|
+
"props": {
|
|
91
|
+
"url": "$item.avatar",
|
|
92
|
+
"initials": "$item.initials",
|
|
93
|
+
"width": 40,
|
|
94
|
+
"height": 40,
|
|
95
|
+
"shape": "circle",
|
|
96
|
+
"contentMode": "fill",
|
|
97
|
+
"contentDescription": "$item.author"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"id": "{{id}}.who",
|
|
103
|
+
"body": {
|
|
104
|
+
"package": "himalaya",
|
|
105
|
+
"type": "VStack",
|
|
106
|
+
"props": {
|
|
107
|
+
"spacing": 2,
|
|
108
|
+
"alignment": "leading",
|
|
109
|
+
"children": [
|
|
110
|
+
{
|
|
111
|
+
"id": "{{id}}.author",
|
|
112
|
+
"body": {
|
|
113
|
+
"package": "himalaya",
|
|
114
|
+
"type": "Text",
|
|
115
|
+
"props": {
|
|
116
|
+
"text": "$item.author",
|
|
117
|
+
"style": "bodyEmphasis",
|
|
118
|
+
"maxLines": 1
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"id": "{{id}}.time",
|
|
124
|
+
"body": {
|
|
125
|
+
"package": "himalaya",
|
|
126
|
+
"type": "Text",
|
|
127
|
+
"props": {
|
|
128
|
+
"text": "$item.timeLabel",
|
|
129
|
+
"style": "caption",
|
|
130
|
+
"maxLines": 1,
|
|
131
|
+
"color": "textSecondary",
|
|
132
|
+
"collapseWhenEmpty": true
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"modifiers": {
|
|
140
|
+
"weight": 1
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
]
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"id": "{{id}}.group",
|
|
149
|
+
"body": {
|
|
150
|
+
"package": "himalaya",
|
|
151
|
+
"type": "Text",
|
|
152
|
+
"props": {
|
|
153
|
+
"text": "$item.groupName",
|
|
154
|
+
"style": "caption",
|
|
155
|
+
"maxLines": 1,
|
|
156
|
+
"color": "accentPrimary"
|
|
86
157
|
}
|
|
87
158
|
}
|
|
88
159
|
},
|
|
89
160
|
{
|
|
90
|
-
"id": "{{id}}.
|
|
161
|
+
"id": "{{id}}.body",
|
|
91
162
|
"body": {
|
|
92
163
|
"package": "himalaya",
|
|
93
|
-
"type": "
|
|
164
|
+
"type": "Text",
|
|
94
165
|
"props": {
|
|
95
|
-
"
|
|
96
|
-
"
|
|
166
|
+
"text": "$item.text",
|
|
167
|
+
"style": "body",
|
|
168
|
+
"maxLines": 6
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"id": "{{id}}.actions",
|
|
174
|
+
"body": {
|
|
175
|
+
"package": "himalaya",
|
|
176
|
+
"type": "HStack",
|
|
177
|
+
"props": {
|
|
178
|
+
"spacing": 12,
|
|
179
|
+
"alignment": "center",
|
|
180
|
+
"wrap": true,
|
|
181
|
+
"lineSpacing": 4,
|
|
97
182
|
"children": [
|
|
98
183
|
{
|
|
99
|
-
"id": "{{id}}.
|
|
184
|
+
"id": "{{id}}.like",
|
|
100
185
|
"body": {
|
|
101
186
|
"package": "himalaya",
|
|
102
|
-
"type": "
|
|
187
|
+
"type": "Button",
|
|
103
188
|
"props": {
|
|
104
|
-
"
|
|
105
|
-
"style": "
|
|
106
|
-
"
|
|
189
|
+
"title": "$item.likeLabel",
|
|
190
|
+
"style": "link",
|
|
191
|
+
"size": "sm",
|
|
192
|
+
"action": {
|
|
193
|
+
"actionId": "tier5.{{svc}}.like",
|
|
194
|
+
"params": {
|
|
195
|
+
"id": "$item.id",
|
|
196
|
+
"screenId": "{{detailScreen}}",
|
|
197
|
+
"signInScreenId": "{{signInScreen}}"
|
|
198
|
+
}
|
|
199
|
+
}
|
|
107
200
|
}
|
|
201
|
+
},
|
|
202
|
+
"modifiers": {
|
|
203
|
+
"hiddenPath": "$item.noLike"
|
|
108
204
|
}
|
|
109
205
|
},
|
|
110
206
|
{
|
|
111
|
-
"id": "{{id}}.
|
|
207
|
+
"id": "{{id}}.comment",
|
|
112
208
|
"body": {
|
|
113
209
|
"package": "himalaya",
|
|
114
|
-
"type": "
|
|
210
|
+
"type": "Button",
|
|
115
211
|
"props": {
|
|
116
|
-
"
|
|
117
|
-
"style": "
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
"
|
|
212
|
+
"title": "$item.commentLabel",
|
|
213
|
+
"style": "link",
|
|
214
|
+
"size": "sm",
|
|
215
|
+
"leadingIcon": "chat",
|
|
216
|
+
"action": {
|
|
217
|
+
"actionId": "tier5.{{svc}}.comment",
|
|
218
|
+
"params": {
|
|
219
|
+
"id": "$item.id",
|
|
220
|
+
"screenId": "{{detailScreen}}",
|
|
221
|
+
"signInScreenId": "{{signInScreen}}"
|
|
222
|
+
}
|
|
223
|
+
}
|
|
121
224
|
}
|
|
225
|
+
},
|
|
226
|
+
"modifiers": {
|
|
227
|
+
"hiddenPath": "$item.noComment"
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"id": "{{id}}.share",
|
|
232
|
+
"body": {
|
|
233
|
+
"package": "himalaya",
|
|
234
|
+
"type": "Button",
|
|
235
|
+
"props": {
|
|
236
|
+
"title": "{{shareLabel}}",
|
|
237
|
+
"style": "link",
|
|
238
|
+
"size": "sm",
|
|
239
|
+
"leadingIcon": "share",
|
|
240
|
+
"action": {
|
|
241
|
+
"actionId": "tier5.{{svc}}.share",
|
|
242
|
+
"params": {
|
|
243
|
+
"id": "$item.id"
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
"modifiers": {
|
|
249
|
+
"hiddenPath": "$item.noShare"
|
|
122
250
|
}
|
|
123
251
|
}
|
|
124
252
|
]
|
|
125
253
|
}
|
|
126
254
|
},
|
|
127
255
|
"modifiers": {
|
|
128
|
-
"
|
|
256
|
+
"hiddenPath": "$item.noActions"
|
|
129
257
|
}
|
|
130
258
|
}
|
|
131
259
|
]
|
|
132
260
|
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
"maxLines": 1,
|
|
144
|
-
"color": "accentPrimary"
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
"id": "{{id}}.body",
|
|
150
|
-
"body": {
|
|
151
|
-
"package": "himalaya",
|
|
152
|
-
"type": "Text",
|
|
153
|
-
"props": {
|
|
154
|
-
"text": "$item.text",
|
|
155
|
-
"style": "body",
|
|
156
|
-
"maxLines": 6
|
|
261
|
+
},
|
|
262
|
+
"modifiers": {
|
|
263
|
+
"fillMaxWidth": true,
|
|
264
|
+
"accessibilityLabel": "$item.groupName",
|
|
265
|
+
"onTap": {
|
|
266
|
+
"actionId": "himi.open",
|
|
267
|
+
"params": {
|
|
268
|
+
"screenId": "{{detailScreen}}",
|
|
269
|
+
"id": "$item.groupId"
|
|
270
|
+
}
|
|
157
271
|
}
|
|
158
272
|
}
|
|
159
273
|
},
|
|
160
274
|
{
|
|
161
|
-
"id": "{{id}}.
|
|
275
|
+
"id": "{{id}}.composer",
|
|
162
276
|
"body": {
|
|
163
277
|
"package": "himalaya",
|
|
164
|
-
"type": "
|
|
278
|
+
"type": "VStack",
|
|
165
279
|
"props": {
|
|
166
|
-
"spacing":
|
|
167
|
-
"alignment": "
|
|
280
|
+
"spacing": 8,
|
|
281
|
+
"alignment": "leading",
|
|
168
282
|
"children": [
|
|
169
283
|
{
|
|
170
|
-
"id": "{{id}}.
|
|
284
|
+
"id": "{{id}}.composer.field",
|
|
171
285
|
"body": {
|
|
172
286
|
"package": "himalaya",
|
|
173
|
-
"type": "
|
|
287
|
+
"type": "TextField",
|
|
174
288
|
"props": {
|
|
175
|
-
"
|
|
176
|
-
"
|
|
177
|
-
"
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
}
|
|
289
|
+
"value": "$service:{{svc}}.commentText",
|
|
290
|
+
"placeholder": "{{commentPlaceholder}}",
|
|
291
|
+
"multilineMaxLines": 4,
|
|
292
|
+
"autoCapitalization": "sentences",
|
|
293
|
+
"onChange": {
|
|
294
|
+
"actionId": "tier5.{{svc}}.setComment"
|
|
182
295
|
}
|
|
183
296
|
}
|
|
184
297
|
},
|
|
185
298
|
"modifiers": {
|
|
186
|
-
"
|
|
299
|
+
"fillMaxWidth": true
|
|
187
300
|
}
|
|
188
301
|
},
|
|
189
302
|
{
|
|
190
|
-
"id": "{{id}}.
|
|
303
|
+
"id": "{{id}}.composer.buttons",
|
|
191
304
|
"body": {
|
|
192
305
|
"package": "himalaya",
|
|
193
|
-
"type": "
|
|
306
|
+
"type": "HStack",
|
|
194
307
|
"props": {
|
|
195
|
-
"
|
|
196
|
-
"
|
|
197
|
-
"
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
308
|
+
"spacing": 12,
|
|
309
|
+
"alignment": "center",
|
|
310
|
+
"children": [
|
|
311
|
+
{
|
|
312
|
+
"id": "{{id}}.composer.send",
|
|
313
|
+
"body": {
|
|
314
|
+
"package": "himalaya",
|
|
315
|
+
"type": "Button",
|
|
316
|
+
"props": {
|
|
317
|
+
"title": "{{sendCommentLabel}}",
|
|
318
|
+
"style": "primary",
|
|
319
|
+
"size": "sm",
|
|
320
|
+
"action": {
|
|
321
|
+
"actionId": "tier5.{{svc}}.sendComment",
|
|
322
|
+
"params": {
|
|
323
|
+
"id": "$item.id"
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"id": "{{id}}.composer.cancel",
|
|
331
|
+
"body": {
|
|
332
|
+
"package": "himalaya",
|
|
333
|
+
"type": "Button",
|
|
334
|
+
"props": {
|
|
335
|
+
"title": "{{cancelCommentLabel}}",
|
|
336
|
+
"style": "tertiary",
|
|
337
|
+
"size": "sm",
|
|
338
|
+
"action": {
|
|
339
|
+
"actionId": "tier5.{{svc}}.cancelComment"
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}
|
|
202
343
|
}
|
|
203
|
-
|
|
344
|
+
]
|
|
204
345
|
}
|
|
205
|
-
},
|
|
206
|
-
"modifiers": {
|
|
207
|
-
"hiddenPath": "$item.noShare"
|
|
208
346
|
}
|
|
209
347
|
}
|
|
210
348
|
]
|
|
211
349
|
}
|
|
212
350
|
},
|
|
213
351
|
"modifiers": {
|
|
214
|
-
"
|
|
352
|
+
"fillMaxWidth": true,
|
|
353
|
+
"hiddenPath": "$item.noComposer"
|
|
215
354
|
}
|
|
216
355
|
}
|
|
217
356
|
]
|
|
218
357
|
}
|
|
219
358
|
},
|
|
220
359
|
"modifiers": {
|
|
221
|
-
"fillMaxWidth": true
|
|
222
|
-
"accessibilityLabel": "$item.groupName",
|
|
223
|
-
"onTap": {
|
|
224
|
-
"actionId": "himi.open",
|
|
225
|
-
"params": {
|
|
226
|
-
"screenId": "{{detailScreen}}",
|
|
227
|
-
"id": "$item.groupId"
|
|
228
|
-
}
|
|
229
|
-
}
|
|
360
|
+
"fillMaxWidth": true
|
|
230
361
|
}
|
|
231
362
|
}
|
|
232
363
|
]
|
|
@@ -236,6 +367,21 @@
|
|
|
236
367
|
"hiddenPath": "$service:{{svc}}.noRows"
|
|
237
368
|
}
|
|
238
369
|
},
|
|
370
|
+
{
|
|
371
|
+
"id": "{{id}}.commentMessage",
|
|
372
|
+
"body": {
|
|
373
|
+
"package": "himalaya",
|
|
374
|
+
"type": "Text",
|
|
375
|
+
"props": {
|
|
376
|
+
"text": "$service:{{svc}}.commentMessage",
|
|
377
|
+
"style": "caption",
|
|
378
|
+
"color": "textSecondary"
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
"modifiers": {
|
|
382
|
+
"hiddenPath": "$service:{{svc}}.noCommentMessage"
|
|
383
|
+
}
|
|
384
|
+
},
|
|
239
385
|
{
|
|
240
386
|
"id": "{{id}}.signin",
|
|
241
387
|
"body": {
|