@wix/himalaya-cli 0.1954.0 → 0.1955.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 +137 -71
- package/guides/one-app-section-mappings.md +1 -1
- package/guides/one-app-to-himi-app.md +11 -7
- package/package.json +2 -2
- package/templates/branded-lite/l10n/ar.json +5 -0
- package/templates/branded-lite/l10n/cs.json +5 -0
- package/templates/branded-lite/l10n/da.json +5 -0
- package/templates/branded-lite/l10n/de.json +5 -0
- package/templates/branded-lite/l10n/el.json +5 -0
- package/templates/branded-lite/l10n/es.json +5 -0
- package/templates/branded-lite/l10n/fi.json +5 -0
- package/templates/branded-lite/l10n/fr.json +5 -0
- package/templates/branded-lite/l10n/he.json +5 -0
- package/templates/branded-lite/l10n/hu.json +5 -0
- package/templates/branded-lite/l10n/id.json +5 -0
- package/templates/branded-lite/l10n/it.json +5 -0
- package/templates/branded-lite/l10n/ja.json +5 -0
- package/templates/branded-lite/l10n/ko.json +5 -0
- package/templates/branded-lite/l10n/lt.json +5 -0
- package/templates/branded-lite/l10n/nl.json +5 -0
- package/templates/branded-lite/l10n/no.json +5 -0
- package/templates/branded-lite/l10n/pl.json +5 -0
- package/templates/branded-lite/l10n/pt.json +5 -0
- package/templates/branded-lite/l10n/ru.json +5 -0
- package/templates/branded-lite/l10n/sv.json +5 -0
- package/templates/branded-lite/l10n/th.json +5 -0
- package/templates/branded-lite/l10n/tr.json +5 -0
- package/templates/branded-lite/l10n/uk.json +5 -0
- package/templates/branded-lite/l10n/vi.json +5 -0
- package/templates/branded-lite/l10n/zh.json +5 -0
- package/templates/branded-lite/recipes/blog-carousel-classic.json +335 -0
- package/templates/branded-lite/recipes/blog-carousel-full.json +374 -0
- package/templates/branded-lite/recipes/events-inline-carousel.json +308 -0
- package/templates/branded-lite/recipes/galleries-carousel.json +51 -2
- package/templates/branded-lite/recipes/galleries-collage.json +51 -2
- package/templates/branded-lite/recipes/galleries-list.json +51 -2
- package/templates/branded-lite/recipes/groups-cards.json +194 -86
- package/templates/branded-lite/recipes/groups-list.json +209 -62
- package/templates/branded-lite/tier5-src/_shared/blog-list.ts +5 -1
- package/templates/branded-lite/tier5-src/_shared/galleries-section.ts +70 -23
- package/templates/branded-lite/tier5-src/_shared/groups-section.ts +297 -26
- package/templates/branded-lite/recipes/blog-hero.json +0 -95
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_recipe": "A page's groups as a rail of cards, scrolling sideways (cover, name, teaser, member count; a tap opens the group)
|
|
2
|
+
"_recipe": "A page's groups as a rail of cards, scrolling sideways: the section's title with its View All link (the source's call to action, always shown), then each card (cover, name, teaser, member count; a tap opens the group) with the viewer's join control (Join group, Request to join) or membership status (Joined, Pending request) below it, the join message and the empty text. ONE node, always mounted. Service: registerGroupsSection(svc, { groupIds, limit, cards: true }).",
|
|
3
3
|
"_placeholders": {
|
|
4
4
|
"svc": "service name the page worker registered with registerGroupsSection",
|
|
5
5
|
"id": "unique node id prefix for this section",
|
|
6
|
+
"title": "the section's title. The header keeps exactly one flexing child: the generator removes {{id}}.headSpacer when the title shows (the title takes the row) and {{id}}.headTitle when the source hides it (the spacer keeps the link trailing)",
|
|
7
|
+
"headLabel": "the header link's label (the source's own expand text, else View All)",
|
|
8
|
+
"headScreen": "the screen the header link opens, himi_groups",
|
|
6
9
|
"detailScreen": "group screen id, himi_group",
|
|
7
|
-
"
|
|
8
|
-
"seeAllScreen": "the screen View All opens, himi_groups"
|
|
10
|
+
"signInScreen": "the app's sign-in screen, himi_sign_in: a visitor's join control signs in first and then opens the group"
|
|
9
11
|
},
|
|
10
12
|
"node": {
|
|
11
13
|
"id": "{{id}}.groups",
|
|
@@ -16,6 +18,63 @@
|
|
|
16
18
|
"spacing": 12,
|
|
17
19
|
"alignment": "leading",
|
|
18
20
|
"children": [
|
|
21
|
+
{
|
|
22
|
+
"id": "{{id}}.head",
|
|
23
|
+
"body": {
|
|
24
|
+
"package": "himalaya",
|
|
25
|
+
"type": "HStack",
|
|
26
|
+
"props": {
|
|
27
|
+
"spacing": 8,
|
|
28
|
+
"alignment": "center",
|
|
29
|
+
"children": [
|
|
30
|
+
{
|
|
31
|
+
"id": "{{id}}.headTitle",
|
|
32
|
+
"body": {
|
|
33
|
+
"package": "himalaya",
|
|
34
|
+
"type": "Text",
|
|
35
|
+
"props": {
|
|
36
|
+
"text": "{{title}}",
|
|
37
|
+
"style": "title3",
|
|
38
|
+
"maxLines": 2
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"modifiers": {
|
|
42
|
+
"weight": 1
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"id": "{{id}}.headSpacer",
|
|
47
|
+
"body": {
|
|
48
|
+
"package": "himalaya",
|
|
49
|
+
"type": "Spacer",
|
|
50
|
+
"props": {}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"id": "{{id}}.all",
|
|
55
|
+
"body": {
|
|
56
|
+
"package": "himalaya",
|
|
57
|
+
"type": "Button",
|
|
58
|
+
"props": {
|
|
59
|
+
"title": "{{headLabel}}",
|
|
60
|
+
"style": "tertiary",
|
|
61
|
+
"size": "md",
|
|
62
|
+
"action": {
|
|
63
|
+
"actionId": "himi.open",
|
|
64
|
+
"params": {
|
|
65
|
+
"screenId": "{{headScreen}}"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"modifiers": {
|
|
75
|
+
"fillMaxWidth": true
|
|
76
|
+
}
|
|
77
|
+
},
|
|
19
78
|
{
|
|
20
79
|
"id": "{{id}}.loading",
|
|
21
80
|
"body": {
|
|
@@ -46,7 +105,7 @@
|
|
|
46
105
|
"itemsPath": "$service:{{svc}}.rows",
|
|
47
106
|
"items": [
|
|
48
107
|
{
|
|
49
|
-
"id": "{{id}}.
|
|
108
|
+
"id": "{{id}}.item",
|
|
50
109
|
"body": {
|
|
51
110
|
"package": "himalaya",
|
|
52
111
|
"type": "VStack",
|
|
@@ -55,105 +114,171 @@
|
|
|
55
114
|
"alignment": "leading",
|
|
56
115
|
"children": [
|
|
57
116
|
{
|
|
58
|
-
"id": "{{id}}.
|
|
117
|
+
"id": "{{id}}.card",
|
|
59
118
|
"body": {
|
|
60
119
|
"package": "himalaya",
|
|
61
|
-
"type": "
|
|
120
|
+
"type": "VStack",
|
|
62
121
|
"props": {
|
|
122
|
+
"spacing": 8,
|
|
63
123
|
"alignment": "leading",
|
|
64
124
|
"children": [
|
|
65
125
|
{
|
|
66
|
-
"id": "{{id}}.
|
|
67
|
-
"body": {
|
|
68
|
-
"package": "himalaya",
|
|
69
|
-
"type": "Image",
|
|
70
|
-
"props": {
|
|
71
|
-
"url": "$item.image",
|
|
72
|
-
"fillWidth": true,
|
|
73
|
-
"height": 135,
|
|
74
|
-
"contentMode": "fill",
|
|
75
|
-
"contentDescription": "$item.title"
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
"modifiers": {
|
|
79
|
-
"cornerRadius": 8,
|
|
80
|
-
"fillMaxWidth": true,
|
|
81
|
-
"hiddenPath": "$item.noImage"
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"id": "{{id}}.initial",
|
|
126
|
+
"id": "{{id}}.cover",
|
|
86
127
|
"body": {
|
|
87
128
|
"package": "himalaya",
|
|
88
129
|
"type": "ZStack",
|
|
89
130
|
"props": {
|
|
90
|
-
"alignment": "
|
|
131
|
+
"alignment": "leading",
|
|
91
132
|
"children": [
|
|
92
133
|
{
|
|
93
|
-
"id": "{{id}}.
|
|
134
|
+
"id": "{{id}}.photo",
|
|
135
|
+
"body": {
|
|
136
|
+
"package": "himalaya",
|
|
137
|
+
"type": "Image",
|
|
138
|
+
"props": {
|
|
139
|
+
"url": "$item.image",
|
|
140
|
+
"fillWidth": true,
|
|
141
|
+
"height": 135,
|
|
142
|
+
"contentMode": "fill",
|
|
143
|
+
"contentDescription": "$item.title"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"modifiers": {
|
|
147
|
+
"cornerRadius": 8,
|
|
148
|
+
"fillMaxWidth": true,
|
|
149
|
+
"hiddenPath": "$item.noImage"
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"id": "{{id}}.initial",
|
|
94
154
|
"body": {
|
|
95
155
|
"package": "himalaya",
|
|
96
|
-
"type": "
|
|
156
|
+
"type": "ZStack",
|
|
97
157
|
"props": {
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
|
|
101
|
-
|
|
158
|
+
"alignment": "center",
|
|
159
|
+
"children": [
|
|
160
|
+
{
|
|
161
|
+
"id": "{{id}}.initialText",
|
|
162
|
+
"body": {
|
|
163
|
+
"package": "himalaya",
|
|
164
|
+
"type": "Text",
|
|
165
|
+
"props": {
|
|
166
|
+
"text": "$item.initial",
|
|
167
|
+
"style": "display",
|
|
168
|
+
"maxLines": 1,
|
|
169
|
+
"color": "textOnAccent"
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
]
|
|
102
174
|
}
|
|
175
|
+
},
|
|
176
|
+
"modifiers": {
|
|
177
|
+
"fillMaxWidth": true,
|
|
178
|
+
"height": 135,
|
|
179
|
+
"background": {
|
|
180
|
+
"token": "accentPrimary"
|
|
181
|
+
},
|
|
182
|
+
"cornerRadius": 8,
|
|
183
|
+
"hiddenPath": "$item.hasImage"
|
|
103
184
|
}
|
|
104
185
|
}
|
|
105
186
|
]
|
|
106
187
|
}
|
|
107
188
|
},
|
|
108
189
|
"modifiers": {
|
|
109
|
-
"fillMaxWidth": true
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
"
|
|
190
|
+
"fillMaxWidth": true
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"id": "{{id}}.title",
|
|
195
|
+
"body": {
|
|
196
|
+
"package": "himalaya",
|
|
197
|
+
"type": "Text",
|
|
198
|
+
"props": {
|
|
199
|
+
"text": "$item.title",
|
|
200
|
+
"style": "bodyEmphasis",
|
|
201
|
+
"maxLines": 2
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"id": "{{id}}.subtitle",
|
|
207
|
+
"body": {
|
|
208
|
+
"package": "himalaya",
|
|
209
|
+
"type": "Text",
|
|
210
|
+
"props": {
|
|
211
|
+
"text": "$item.subtitle",
|
|
212
|
+
"style": "caption",
|
|
213
|
+
"maxLines": 2,
|
|
214
|
+
"color": "textSecondary"
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"id": "{{id}}.meta",
|
|
220
|
+
"body": {
|
|
221
|
+
"package": "himalaya",
|
|
222
|
+
"type": "Text",
|
|
223
|
+
"props": {
|
|
224
|
+
"text": "$item.meta",
|
|
225
|
+
"style": "caption",
|
|
226
|
+
"maxLines": 1,
|
|
227
|
+
"color": "textSecondary",
|
|
228
|
+
"collapseWhenEmpty": true
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
"modifiers": {
|
|
232
|
+
"hiddenPath": "$item.noMeta"
|
|
116
233
|
}
|
|
117
234
|
}
|
|
118
235
|
]
|
|
119
236
|
}
|
|
120
237
|
},
|
|
121
238
|
"modifiers": {
|
|
122
|
-
"fillMaxWidth": true
|
|
239
|
+
"fillMaxWidth": true,
|
|
240
|
+
"onTap": {
|
|
241
|
+
"actionId": "himi.open",
|
|
242
|
+
"params": {
|
|
243
|
+
"screenId": "{{detailScreen}}",
|
|
244
|
+
"id": "$item.id"
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
"pressFeedback": "scale",
|
|
248
|
+
"haptic": "light",
|
|
249
|
+
"accessibilityLabel": "$item.title"
|
|
123
250
|
}
|
|
124
251
|
},
|
|
125
252
|
{
|
|
126
|
-
"id": "{{id}}.
|
|
253
|
+
"id": "{{id}}.join",
|
|
127
254
|
"body": {
|
|
128
255
|
"package": "himalaya",
|
|
129
|
-
"type": "
|
|
256
|
+
"type": "Button",
|
|
130
257
|
"props": {
|
|
131
|
-
"
|
|
132
|
-
"style": "
|
|
133
|
-
"
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
"props": {
|
|
143
|
-
"text": "$item.subtitle",
|
|
144
|
-
"style": "caption",
|
|
145
|
-
"maxLines": 2,
|
|
146
|
-
"color": "textSecondary"
|
|
258
|
+
"title": "$item.actionLabel",
|
|
259
|
+
"style": "secondary",
|
|
260
|
+
"size": "md",
|
|
261
|
+
"fullWidth": true,
|
|
262
|
+
"action": {
|
|
263
|
+
"actionId": "tier5.{{svc}}.join",
|
|
264
|
+
"params": {
|
|
265
|
+
"id": "$item.id",
|
|
266
|
+
"signInScreenId": "{{signInScreen}}"
|
|
267
|
+
}
|
|
268
|
+
}
|
|
147
269
|
}
|
|
270
|
+
},
|
|
271
|
+
"modifiers": {
|
|
272
|
+
"hiddenPath": "$item.noAction"
|
|
148
273
|
}
|
|
149
274
|
},
|
|
150
275
|
{
|
|
151
|
-
"id": "{{id}}.
|
|
276
|
+
"id": "{{id}}.status",
|
|
152
277
|
"body": {
|
|
153
278
|
"package": "himalaya",
|
|
154
279
|
"type": "Text",
|
|
155
280
|
"props": {
|
|
156
|
-
"text": "$item.
|
|
281
|
+
"text": "$item.statusLabel",
|
|
157
282
|
"style": "caption",
|
|
158
283
|
"maxLines": 1,
|
|
159
284
|
"color": "textSecondary",
|
|
@@ -161,24 +286,14 @@
|
|
|
161
286
|
}
|
|
162
287
|
},
|
|
163
288
|
"modifiers": {
|
|
164
|
-
"hiddenPath": "$item.
|
|
289
|
+
"hiddenPath": "$item.noStatus"
|
|
165
290
|
}
|
|
166
291
|
}
|
|
167
292
|
]
|
|
168
293
|
}
|
|
169
294
|
},
|
|
170
295
|
"modifiers": {
|
|
171
|
-
"width": 240
|
|
172
|
-
"onTap": {
|
|
173
|
-
"actionId": "himi.open",
|
|
174
|
-
"params": {
|
|
175
|
-
"screenId": "{{detailScreen}}",
|
|
176
|
-
"id": "$item.id"
|
|
177
|
-
}
|
|
178
|
-
},
|
|
179
|
-
"pressFeedback": "scale",
|
|
180
|
-
"haptic": "light",
|
|
181
|
-
"accessibilityLabel": "$item.title"
|
|
296
|
+
"width": 240
|
|
182
297
|
}
|
|
183
298
|
}
|
|
184
299
|
]
|
|
@@ -189,25 +304,18 @@
|
|
|
189
304
|
}
|
|
190
305
|
},
|
|
191
306
|
{
|
|
192
|
-
"id": "{{id}}.
|
|
307
|
+
"id": "{{id}}.message",
|
|
193
308
|
"body": {
|
|
194
309
|
"package": "himalaya",
|
|
195
|
-
"type": "
|
|
310
|
+
"type": "Text",
|
|
196
311
|
"props": {
|
|
197
|
-
"
|
|
198
|
-
"style": "
|
|
199
|
-
"
|
|
200
|
-
"fullWidth": true,
|
|
201
|
-
"action": {
|
|
202
|
-
"actionId": "himi.open",
|
|
203
|
-
"params": {
|
|
204
|
-
"screenId": "{{seeAllScreen}}"
|
|
205
|
-
}
|
|
206
|
-
}
|
|
312
|
+
"text": "$service:{{svc}}.message",
|
|
313
|
+
"style": "caption",
|
|
314
|
+
"color": "textSecondary"
|
|
207
315
|
}
|
|
208
316
|
},
|
|
209
317
|
"modifiers": {
|
|
210
|
-
"hiddenPath": "$service:{{svc}}.
|
|
318
|
+
"hiddenPath": "$service:{{svc}}.noMessage"
|
|
211
319
|
}
|
|
212
320
|
},
|
|
213
321
|
{
|