@wix/himalaya-cli 0.2008.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.
Files changed (34) hide show
  1. package/dist/cli.mjs +38 -11
  2. package/guides/one-app-to-himi-app.md +1 -1
  3. package/package.json +2 -2
  4. package/templates/branded-lite/l10n/ar.json +10 -0
  5. package/templates/branded-lite/l10n/cs.json +10 -0
  6. package/templates/branded-lite/l10n/da.json +10 -0
  7. package/templates/branded-lite/l10n/de.json +10 -0
  8. package/templates/branded-lite/l10n/el.json +10 -0
  9. package/templates/branded-lite/l10n/es.json +10 -0
  10. package/templates/branded-lite/l10n/fi.json +10 -0
  11. package/templates/branded-lite/l10n/fr.json +10 -0
  12. package/templates/branded-lite/l10n/he.json +10 -0
  13. package/templates/branded-lite/l10n/hu.json +10 -0
  14. package/templates/branded-lite/l10n/id.json +10 -0
  15. package/templates/branded-lite/l10n/it.json +10 -0
  16. package/templates/branded-lite/l10n/ja.json +10 -0
  17. package/templates/branded-lite/l10n/ko.json +10 -0
  18. package/templates/branded-lite/l10n/lt.json +10 -0
  19. package/templates/branded-lite/l10n/nl.json +10 -0
  20. package/templates/branded-lite/l10n/no.json +10 -0
  21. package/templates/branded-lite/l10n/pl.json +10 -0
  22. package/templates/branded-lite/l10n/pt.json +10 -0
  23. package/templates/branded-lite/l10n/ru.json +10 -0
  24. package/templates/branded-lite/l10n/sv.json +10 -0
  25. package/templates/branded-lite/l10n/th.json +10 -0
  26. package/templates/branded-lite/l10n/tr.json +10 -0
  27. package/templates/branded-lite/l10n/uk.json +10 -0
  28. package/templates/branded-lite/l10n/vi.json +10 -0
  29. package/templates/branded-lite/l10n/zh.json +10 -0
  30. package/templates/branded-lite/recipes/group-feed.json +135 -5
  31. package/templates/branded-lite/recipes/groups-newsfeed.json +241 -95
  32. package/templates/branded-lite/tier5-src/_shared/group-feed-section.ts +131 -17
  33. package/templates/branded-lite/tier5-src/_shared/groups-newsfeed-section.ts +8 -5
  34. package/templates/branded-lite/tier5-src/_shared/groups-section.ts +7 -1
@@ -7951,6 +7951,16 @@
7951
7951
  "translation": "無法加入群組。請再試一次。",
7952
7952
  "origin": "machine"
7953
7953
  },
7954
+ "h_ba2557851938": {
7955
+ "source": "Your comment was posted.",
7956
+ "translation": "已發佈你的留言。",
7957
+ "origin": "machine"
7958
+ },
7959
+ "h_3764e494807b": {
7960
+ "source": "The comment could not be posted. Try again.",
7961
+ "translation": "無法發佈留言。請再試一次。",
7962
+ "origin": "machine"
7963
+ },
7954
7964
  "h_db226f1649d3": {
7955
7965
  "source": "Sign in from Profile to manage groups.",
7956
7966
  "translation": "請從「個人檔案」登入以管理群組。",
@@ -1,16 +1,19 @@
1
1
  {
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 }).",
2
+ "_recipe": "One group's shortcuts (About, Members), its latest posts (author with avatar, time, text, and the Like, Comment and Share the feed read names for the viewer) and a button that opens the group. 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 group to join it (a member). A viewer who may neither like nor comment also sees a sign-in gate (a visitor) or a join gate (a member outside 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. 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: the open button, the Members shortcut and the join gate open it",
6
+ "detailScreen": "group screen id, himi_group: the open button, the Members shortcut, the join gate and a member's refused Like or Comment open it",
7
7
  "aboutScreen": "the group's About page, himi_group_about",
8
- "signInScreen": "the sign-in screen the visitor's gate opens, himi_sign_in",
8
+ "signInScreen": "the sign-in screen the visitor's gate and a visitor's Like or Comment open, himi_sign_in",
9
9
  "groupId": "the group the section shows",
10
10
  "openLabel": "the button's label (the source's own text)",
11
11
  "aboutLabel": "the About shortcut's label",
12
12
  "membersLabel": "the Members shortcut's label",
13
13
  "shareLabel": "a post's Share button label",
14
+ "commentPlaceholder": "the comment field's placeholder",
15
+ "sendCommentLabel": "the comment field's send button label",
16
+ "cancelCommentLabel": "the comment field's cancel button label",
14
17
  "signInText": "the visitor's gate line",
15
18
  "signInLabel": "the visitor's gate button label",
16
19
  "joinText": "the join gate line",
@@ -209,8 +212,10 @@
209
212
  "package": "himalaya",
210
213
  "type": "HStack",
211
214
  "props": {
212
- "spacing": 16,
215
+ "spacing": 12,
213
216
  "alignment": "center",
217
+ "wrap": true,
218
+ "lineSpacing": 4,
214
219
  "children": [
215
220
  {
216
221
  "id": "{{id}}.like",
@@ -220,10 +225,13 @@
220
225
  "props": {
221
226
  "title": "$item.likeLabel",
222
227
  "style": "link",
228
+ "size": "sm",
223
229
  "action": {
224
230
  "actionId": "tier5.{{svc}}.like",
225
231
  "params": {
226
- "id": "$item.id"
232
+ "id": "$item.id",
233
+ "screenId": "{{detailScreen}}",
234
+ "signInScreenId": "{{signInScreen}}"
227
235
  }
228
236
  }
229
237
  }
@@ -232,6 +240,30 @@
232
240
  "hiddenPath": "$item.noLike"
233
241
  }
234
242
  },
243
+ {
244
+ "id": "{{id}}.comment",
245
+ "body": {
246
+ "package": "himalaya",
247
+ "type": "Button",
248
+ "props": {
249
+ "title": "$item.commentLabel",
250
+ "style": "link",
251
+ "size": "sm",
252
+ "leadingIcon": "chat",
253
+ "action": {
254
+ "actionId": "tier5.{{svc}}.comment",
255
+ "params": {
256
+ "id": "$item.id",
257
+ "screenId": "{{detailScreen}}",
258
+ "signInScreenId": "{{signInScreen}}"
259
+ }
260
+ }
261
+ }
262
+ },
263
+ "modifiers": {
264
+ "hiddenPath": "$item.noComment"
265
+ }
266
+ },
235
267
  {
236
268
  "id": "{{id}}.share",
237
269
  "body": {
@@ -240,6 +272,7 @@
240
272
  "props": {
241
273
  "title": "{{shareLabel}}",
242
274
  "style": "link",
275
+ "size": "sm",
243
276
  "leadingIcon": "share",
244
277
  "action": {
245
278
  "actionId": "tier5.{{svc}}.share",
@@ -259,6 +292,88 @@
259
292
  "modifiers": {
260
293
  "hiddenPath": "$item.noActions"
261
294
  }
295
+ },
296
+ {
297
+ "id": "{{id}}.composer",
298
+ "body": {
299
+ "package": "himalaya",
300
+ "type": "VStack",
301
+ "props": {
302
+ "spacing": 8,
303
+ "alignment": "leading",
304
+ "children": [
305
+ {
306
+ "id": "{{id}}.composer.field",
307
+ "body": {
308
+ "package": "himalaya",
309
+ "type": "TextField",
310
+ "props": {
311
+ "value": "$service:{{svc}}.commentText",
312
+ "placeholder": "{{commentPlaceholder}}",
313
+ "multilineMaxLines": 4,
314
+ "autoCapitalization": "sentences",
315
+ "onChange": {
316
+ "actionId": "tier5.{{svc}}.setComment"
317
+ }
318
+ }
319
+ },
320
+ "modifiers": {
321
+ "fillMaxWidth": true
322
+ }
323
+ },
324
+ {
325
+ "id": "{{id}}.composer.buttons",
326
+ "body": {
327
+ "package": "himalaya",
328
+ "type": "HStack",
329
+ "props": {
330
+ "spacing": 12,
331
+ "alignment": "center",
332
+ "children": [
333
+ {
334
+ "id": "{{id}}.composer.send",
335
+ "body": {
336
+ "package": "himalaya",
337
+ "type": "Button",
338
+ "props": {
339
+ "title": "{{sendCommentLabel}}",
340
+ "style": "primary",
341
+ "size": "sm",
342
+ "action": {
343
+ "actionId": "tier5.{{svc}}.sendComment",
344
+ "params": {
345
+ "id": "$item.id"
346
+ }
347
+ }
348
+ }
349
+ }
350
+ },
351
+ {
352
+ "id": "{{id}}.composer.cancel",
353
+ "body": {
354
+ "package": "himalaya",
355
+ "type": "Button",
356
+ "props": {
357
+ "title": "{{cancelCommentLabel}}",
358
+ "style": "tertiary",
359
+ "size": "sm",
360
+ "action": {
361
+ "actionId": "tier5.{{svc}}.cancelComment"
362
+ }
363
+ }
364
+ }
365
+ }
366
+ ]
367
+ }
368
+ }
369
+ }
370
+ ]
371
+ }
372
+ },
373
+ "modifiers": {
374
+ "fillMaxWidth": true,
375
+ "hiddenPath": "$item.noComposer"
376
+ }
262
377
  }
263
378
  ]
264
379
  }
@@ -275,6 +390,21 @@
275
390
  "hiddenPath": "$service:{{svc}}.noRows"
276
391
  }
277
392
  },
393
+ {
394
+ "id": "{{id}}.commentMessage",
395
+ "body": {
396
+ "package": "himalaya",
397
+ "type": "Text",
398
+ "props": {
399
+ "text": "$service:{{svc}}.commentMessage",
400
+ "style": "caption",
401
+ "color": "textSecondary"
402
+ }
403
+ },
404
+ "modifiers": {
405
+ "hiddenPath": "$service:{{svc}}.noCommentMessage"
406
+ }
407
+ },
278
408
  {
279
409
  "id": "{{id}}.signin",
280
410
  "body": {