@wix/himalaya-cli 0.1159.0 → 0.1161.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 (38) hide show
  1. package/dist/cli.mjs +370 -181
  2. package/dist/preview-assets.generated.bin +0 -0
  3. package/guides/component-reference.json +2 -8
  4. package/guides/component-reference.md +1 -3
  5. package/package.json +2 -2
  6. package/templates/beauty-salon-owner/dev/index.ts +382 -194
  7. package/templates/beauty-salon-owner/tier5-src/_shared/owner-editor-value.ts +56 -0
  8. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-post-form/index.ts +132 -46
  9. package/templates/community-club-owner/dev/index.ts +382 -194
  10. package/templates/community-club-owner/tier5-src/_shared/owner-editor-value.ts +56 -0
  11. package/templates/community-club-owner/tier5-src/himi-owner-lite-post-form/index.ts +132 -46
  12. package/templates/events-meetups-owner/dev/index.ts +382 -194
  13. package/templates/events-meetups-owner/tier5-src/_shared/owner-editor-value.ts +56 -0
  14. package/templates/events-meetups-owner/tier5-src/himi-owner-lite-post-form/index.ts +132 -46
  15. package/templates/gym-fitness-owner/dev/index.ts +382 -194
  16. package/templates/gym-fitness-owner/tier5-src/_shared/owner-editor-value.ts +56 -0
  17. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-post-form/index.ts +132 -46
  18. package/templates/nonprofit-cause-owner/dev/index.ts +382 -194
  19. package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-editor-value.ts +56 -0
  20. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-post-form/index.ts +132 -46
  21. package/templates/owner-lite/dev/index.ts +382 -194
  22. package/templates/owner-lite/tier5-src/_shared/owner-editor-value.ts +56 -0
  23. package/templates/owner-lite/tier5-src/himi-owner-lite-post-form/index.ts +132 -46
  24. package/templates/podcast-creator-owner/dev/index.ts +382 -194
  25. package/templates/podcast-creator-owner/tier5-src/_shared/owner-editor-value.ts +56 -0
  26. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-post-form/index.ts +132 -46
  27. package/templates/portfolio-creative-owner/dev/index.ts +382 -194
  28. package/templates/portfolio-creative-owner/tier5-src/_shared/owner-editor-value.ts +56 -0
  29. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-post-form/index.ts +132 -46
  30. package/templates/restaurant-owner/dev/index.ts +382 -194
  31. package/templates/restaurant-owner/tier5-src/_shared/owner-editor-value.ts +56 -0
  32. package/templates/restaurant-owner/tier5-src/himi-owner-lite-post-form/index.ts +132 -46
  33. package/templates/retail-store-owner/dev/index.ts +382 -194
  34. package/templates/retail-store-owner/tier5-src/_shared/owner-editor-value.ts +56 -0
  35. package/templates/retail-store-owner/tier5-src/himi-owner-lite-post-form/index.ts +132 -46
  36. package/templates/yoga-studio-owner/dev/index.ts +382 -194
  37. package/templates/yoga-studio-owner/tier5-src/_shared/owner-editor-value.ts +56 -0
  38. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-post-form/index.ts +132 -46
@@ -76843,50 +76843,18 @@ const SCREENS = runtimeSetting({
76843
76843
  }
76844
76844
  },
76845
76845
  {
76846
- "id": "post_form.body_note",
76846
+ "id": "post_form.details",
76847
76847
  "body": {
76848
76848
  "package": "himalaya",
76849
- "type": "Text",
76850
- "props": {
76851
- "text": "$service:himiOwnerLitePostForm.bodyNote",
76852
- "style": "footnote",
76853
- "color": "textSecondary",
76854
- "collapseWhenEmpty": true
76855
- }
76856
- }
76857
- },
76858
- {
76859
- "id": "post_form.body_preview",
76860
- "body": {
76861
- "package": "himalaya",
76862
- "type": "Text",
76863
- "props": {
76864
- "text": "$service:himiOwnerLitePostForm.body",
76865
- "style": "body",
76866
- "maxLines": 8,
76867
- "collapseWhenEmpty": true
76868
- }
76869
- },
76870
- "modifiers": {
76871
- "hiddenPath": "$service:himiOwnerLitePostForm.bodyEditable"
76872
- }
76873
- },
76874
- {
76875
- "id": "",
76876
- "body": {
76877
- "package": "himalaya",
76878
- "type": "Image",
76849
+ "type": "Button",
76879
76850
  "props": {
76880
- "url": "$service:himiOwnerLitePostForm.coverPreview",
76881
- "fillWidth": true,
76882
- "height": 160,
76883
- "contentMode": "fit",
76884
- "contentDescription": "Cover image preview"
76851
+ "title": "Post details",
76852
+ "style": "secondary",
76853
+ "fullWidth": true,
76854
+ "action": {
76855
+ "actionId": "tier5.himiOwnerLitePostForm.detailsOpen"
76856
+ }
76885
76857
  }
76886
- },
76887
- "modifiers": {
76888
- "cornerRadius": 8,
76889
- "hiddenPath": "$service:himiOwnerLitePostForm.noCover"
76890
76858
  }
76891
76859
  },
76892
76860
  {
@@ -76917,67 +76885,82 @@ const SCREENS = runtimeSetting({
76917
76885
  }
76918
76886
  },
76919
76887
  {
76920
- "id": "post_form.excerpt",
76921
- "body": {
76922
- "package": "himalaya",
76923
- "type": "FormField",
76924
- "props": {
76925
- "id": "excerpt",
76926
- "label": "Excerpt",
76927
- "kind": "text",
76928
- "text": {
76929
- "value": "$service:himiOwnerLitePostForm.excerpt",
76930
- "placeholder": "Optional summary",
76931
- "keyboard": "default",
76932
- "autoCapitalization": "sentences",
76933
- "multilineMaxLines": 3
76934
- }
76935
- }
76936
- }
76937
- },
76938
- {
76939
- "id": "post_form.body",
76940
- "body": {
76941
- "package": "himalaya",
76942
- "type": "FormField",
76943
- "props": {
76944
- "id": "body",
76945
- "label": "Body",
76946
- "kind": "text",
76947
- "text": {
76948
- "value": "$service:himiOwnerLitePostForm.body",
76949
- "placeholder": "Write your post",
76950
- "keyboard": "default",
76951
- "autoCapitalization": "sentences",
76952
- "multilineMaxLines": 6
76953
- }
76954
- }
76955
- },
76956
- "modifiers": {
76957
- "hiddenPath": "$service:himiOwnerLitePostForm.bodyProtected"
76958
- }
76959
- },
76960
- {
76961
- "id": "post_form.coverUrl",
76888
+ "id": "post_form.body_slot",
76962
76889
  "body": {
76963
76890
  "package": "himalaya",
76964
- "type": "FormField",
76891
+ "type": "VStack",
76965
76892
  "props": {
76966
- "id": "coverUrl",
76967
- "label": "Cover image URL",
76968
- "kind": "text",
76969
- "validation": {
76970
- "type": "url"
76971
- },
76972
- "text": {
76973
- "value": "$service:himiOwnerLitePostForm.coverUrl",
76974
- "placeholder": "https://…",
76975
- "keyboard": "url",
76976
- "autoCapitalization": "none",
76977
- "onChange": {
76978
- "actionId": "tier5.himiOwnerLitePostForm.setCover"
76893
+ "spacing": 6,
76894
+ "alignment": "leading",
76895
+ "children": [
76896
+ {
76897
+ "id": "",
76898
+ "body": {
76899
+ "package": "himalaya",
76900
+ "type": "Text",
76901
+ "props": {
76902
+ "text": "Body",
76903
+ "style": "bodyEmphasis"
76904
+ }
76905
+ }
76906
+ },
76907
+ {
76908
+ "id": "post_body_editor",
76909
+ "body": {
76910
+ "package": "himalaya",
76911
+ "type": "RichContentEditor",
76912
+ "props": {
76913
+ "name": "body",
76914
+ "documentPath": "$service:himiOwnerLitePostForm.bodyJson",
76915
+ "placeholder": "Write your post",
76916
+ "uploadService": "himiOwnerLitePostFormUploads",
76917
+ "onChange": {
76918
+ "actionId": "tier5.himiOwnerLitePostForm.bodyChanged"
76919
+ },
76920
+ "minHeight": 360,
76921
+ "fallback": {
76922
+ "id": "post_form.body_unavailable",
76923
+ "body": {
76924
+ "package": "himalaya",
76925
+ "type": "VStack",
76926
+ "props": {
76927
+ "spacing": 4,
76928
+ "alignment": "leading",
76929
+ "children": [
76930
+ {
76931
+ "id": "",
76932
+ "body": {
76933
+ "package": "himalaya",
76934
+ "type": "Text",
76935
+ "props": {
76936
+ "text": "Editor unavailable",
76937
+ "style": "title3"
76938
+ }
76939
+ }
76940
+ },
76941
+ {
76942
+ "id": "",
76943
+ "body": {
76944
+ "package": "himalaya",
76945
+ "type": "Text",
76946
+ "props": {
76947
+ "text": "The post body can’t be edited here right now. The title and details still save, and the body stays as it is.",
76948
+ "style": "footnote",
76949
+ "color": "textSecondary"
76950
+ }
76951
+ }
76952
+ }
76953
+ ]
76954
+ }
76955
+ }
76956
+ }
76957
+ }
76958
+ },
76959
+ "modifiers": {
76960
+ "hiddenPath": "$service:himiOwnerLitePostForm.bodyPending"
76961
+ }
76979
76962
  }
76980
- }
76963
+ ]
76981
76964
  }
76982
76965
  }
76983
76966
  }
@@ -77021,6 +77004,117 @@ const SCREENS = runtimeSetting({
77021
77004
  "modifiers": {
77022
77005
  "hiddenPath": "$service:himiOwnerLitePostForm.hideSavedLink"
77023
77006
  }
77007
+ },
77008
+ {
77009
+ "id": "post_form.details_sheet",
77010
+ "body": {
77011
+ "package": "himalaya",
77012
+ "type": "BottomSheet",
77013
+ "props": {
77014
+ "presentedPath": "$service:himiOwnerLitePostForm.detailsOpen",
77015
+ "dismissible": true,
77016
+ "showGrabber": true,
77017
+ "onDismiss": {
77018
+ "actionId": "tier5.himiOwnerLitePostForm.detailsClose"
77019
+ },
77020
+ "content": {
77021
+ "id": "post_form.details_body",
77022
+ "body": {
77023
+ "package": "himalaya",
77024
+ "type": "VStack",
77025
+ "props": {
77026
+ "spacing": 12,
77027
+ "alignment": "leading",
77028
+ "children": [
77029
+ {
77030
+ "id": "",
77031
+ "body": {
77032
+ "package": "himalaya",
77033
+ "type": "Text",
77034
+ "props": {
77035
+ "text": "Post details",
77036
+ "style": "title3"
77037
+ }
77038
+ }
77039
+ },
77040
+ {
77041
+ "id": "",
77042
+ "body": {
77043
+ "package": "himalaya",
77044
+ "type": "Text",
77045
+ "props": {
77046
+ "text": "Excerpt",
77047
+ "style": "bodyEmphasis"
77048
+ }
77049
+ }
77050
+ },
77051
+ {
77052
+ "id": "post_form.excerpt",
77053
+ "body": {
77054
+ "package": "himalaya",
77055
+ "type": "TextField",
77056
+ "props": {
77057
+ "placeholder": "Optional summary",
77058
+ "valuePath": "$service:himiOwnerLitePostForm.excerpt",
77059
+ "multilineMaxLines": 3,
77060
+ "autoCapitalization": "sentences",
77061
+ "onChange": {
77062
+ "actionId": "tier5.himiOwnerLitePostForm.setExcerpt"
77063
+ }
77064
+ }
77065
+ }
77066
+ },
77067
+ {
77068
+ "id": "",
77069
+ "body": {
77070
+ "package": "himalaya",
77071
+ "type": "Text",
77072
+ "props": {
77073
+ "text": "Cover image URL",
77074
+ "style": "bodyEmphasis"
77075
+ }
77076
+ }
77077
+ },
77078
+ {
77079
+ "id": "post_form.coverUrl",
77080
+ "body": {
77081
+ "package": "himalaya",
77082
+ "type": "TextField",
77083
+ "props": {
77084
+ "placeholder": "https://…",
77085
+ "valuePath": "$service:himiOwnerLitePostForm.coverUrl",
77086
+ "keyboard": "url",
77087
+ "autoCapitalization": "none",
77088
+ "onChange": {
77089
+ "actionId": "tier5.himiOwnerLitePostForm.setCover"
77090
+ }
77091
+ }
77092
+ }
77093
+ },
77094
+ {
77095
+ "id": "",
77096
+ "body": {
77097
+ "package": "himalaya",
77098
+ "type": "Image",
77099
+ "props": {
77100
+ "url": "$service:himiOwnerLitePostForm.coverPreview",
77101
+ "fillWidth": true,
77102
+ "height": 160,
77103
+ "contentMode": "fit",
77104
+ "contentDescription": "Cover image preview"
77105
+ }
77106
+ },
77107
+ "modifiers": {
77108
+ "cornerRadius": 8,
77109
+ "hiddenPath": "$service:himiOwnerLitePostForm.noCover"
77110
+ }
77111
+ }
77112
+ ]
77113
+ }
77114
+ }
77115
+ }
77116
+ }
77117
+ }
77024
77118
  }
77025
77119
  ]
77026
77120
  }
@@ -78006,50 +78100,18 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
78006
78100
  }
78007
78101
  },
78008
78102
  {
78009
- "id": "post_form.body_note",
78103
+ "id": "post_form.details",
78010
78104
  "body": {
78011
78105
  "package": "himalaya",
78012
- "type": "Text",
78013
- "props": {
78014
- "text": "$service:himiOwnerLitePostForm.bodyNote",
78015
- "style": "footnote",
78016
- "color": "textSecondary",
78017
- "collapseWhenEmpty": true
78018
- }
78019
- }
78020
- },
78021
- {
78022
- "id": "post_form.body_preview",
78023
- "body": {
78024
- "package": "himalaya",
78025
- "type": "Text",
78026
- "props": {
78027
- "text": "$service:himiOwnerLitePostForm.body",
78028
- "style": "body",
78029
- "maxLines": 8,
78030
- "collapseWhenEmpty": true
78031
- }
78032
- },
78033
- "modifiers": {
78034
- "hiddenPath": "$service:himiOwnerLitePostForm.bodyEditable"
78035
- }
78036
- },
78037
- {
78038
- "id": "",
78039
- "body": {
78040
- "package": "himalaya",
78041
- "type": "Image",
78106
+ "type": "Button",
78042
78107
  "props": {
78043
- "url": "$service:himiOwnerLitePostForm.coverPreview",
78044
- "fillWidth": true,
78045
- "height": 160,
78046
- "contentMode": "fit",
78047
- "contentDescription": "Cover image preview"
78108
+ "title": "Post details",
78109
+ "style": "secondary",
78110
+ "fullWidth": true,
78111
+ "action": {
78112
+ "actionId": "tier5.himiOwnerLitePostForm.detailsOpen"
78113
+ }
78048
78114
  }
78049
- },
78050
- "modifiers": {
78051
- "cornerRadius": 8,
78052
- "hiddenPath": "$service:himiOwnerLitePostForm.noCover"
78053
78115
  }
78054
78116
  },
78055
78117
  {
@@ -78080,67 +78142,82 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
78080
78142
  }
78081
78143
  },
78082
78144
  {
78083
- "id": "post_form.excerpt",
78084
- "body": {
78085
- "package": "himalaya",
78086
- "type": "FormField",
78087
- "props": {
78088
- "id": "excerpt",
78089
- "label": "Excerpt",
78090
- "kind": "text",
78091
- "text": {
78092
- "value": "$service:himiOwnerLitePostForm.excerpt",
78093
- "placeholder": "Optional summary",
78094
- "keyboard": "default",
78095
- "autoCapitalization": "sentences",
78096
- "multilineMaxLines": 3
78097
- }
78098
- }
78099
- }
78100
- },
78101
- {
78102
- "id": "post_form.body",
78103
- "body": {
78104
- "package": "himalaya",
78105
- "type": "FormField",
78106
- "props": {
78107
- "id": "body",
78108
- "label": "Body",
78109
- "kind": "text",
78110
- "text": {
78111
- "value": "$service:himiOwnerLitePostForm.body",
78112
- "placeholder": "Write your post",
78113
- "keyboard": "default",
78114
- "autoCapitalization": "sentences",
78115
- "multilineMaxLines": 6
78116
- }
78117
- }
78118
- },
78119
- "modifiers": {
78120
- "hiddenPath": "$service:himiOwnerLitePostForm.bodyProtected"
78121
- }
78122
- },
78123
- {
78124
- "id": "post_form.coverUrl",
78145
+ "id": "post_form.body_slot",
78125
78146
  "body": {
78126
78147
  "package": "himalaya",
78127
- "type": "FormField",
78148
+ "type": "VStack",
78128
78149
  "props": {
78129
- "id": "coverUrl",
78130
- "label": "Cover image URL",
78131
- "kind": "text",
78132
- "validation": {
78133
- "type": "url"
78134
- },
78135
- "text": {
78136
- "value": "$service:himiOwnerLitePostForm.coverUrl",
78137
- "placeholder": "https://…",
78138
- "keyboard": "url",
78139
- "autoCapitalization": "none",
78140
- "onChange": {
78141
- "actionId": "tier5.himiOwnerLitePostForm.setCover"
78150
+ "spacing": 6,
78151
+ "alignment": "leading",
78152
+ "children": [
78153
+ {
78154
+ "id": "",
78155
+ "body": {
78156
+ "package": "himalaya",
78157
+ "type": "Text",
78158
+ "props": {
78159
+ "text": "Body",
78160
+ "style": "bodyEmphasis"
78161
+ }
78162
+ }
78163
+ },
78164
+ {
78165
+ "id": "post_body_editor",
78166
+ "body": {
78167
+ "package": "himalaya",
78168
+ "type": "RichContentEditor",
78169
+ "props": {
78170
+ "name": "body",
78171
+ "documentPath": "$service:himiOwnerLitePostForm.bodyJson",
78172
+ "placeholder": "Write your post",
78173
+ "uploadService": "himiOwnerLitePostFormUploads",
78174
+ "onChange": {
78175
+ "actionId": "tier5.himiOwnerLitePostForm.bodyChanged"
78176
+ },
78177
+ "minHeight": 360,
78178
+ "fallback": {
78179
+ "id": "post_form.body_unavailable",
78180
+ "body": {
78181
+ "package": "himalaya",
78182
+ "type": "VStack",
78183
+ "props": {
78184
+ "spacing": 4,
78185
+ "alignment": "leading",
78186
+ "children": [
78187
+ {
78188
+ "id": "",
78189
+ "body": {
78190
+ "package": "himalaya",
78191
+ "type": "Text",
78192
+ "props": {
78193
+ "text": "Editor unavailable",
78194
+ "style": "title3"
78195
+ }
78196
+ }
78197
+ },
78198
+ {
78199
+ "id": "",
78200
+ "body": {
78201
+ "package": "himalaya",
78202
+ "type": "Text",
78203
+ "props": {
78204
+ "text": "The post body can’t be edited here right now. The title and details still save, and the body stays as it is.",
78205
+ "style": "footnote",
78206
+ "color": "textSecondary"
78207
+ }
78208
+ }
78209
+ }
78210
+ ]
78211
+ }
78212
+ }
78213
+ }
78214
+ }
78215
+ },
78216
+ "modifiers": {
78217
+ "hiddenPath": "$service:himiOwnerLitePostForm.bodyPending"
78218
+ }
78142
78219
  }
78143
- }
78220
+ ]
78144
78221
  }
78145
78222
  }
78146
78223
  }
@@ -78184,6 +78261,117 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
78184
78261
  "modifiers": {
78185
78262
  "hiddenPath": "$service:himiOwnerLitePostForm.hideSavedLink"
78186
78263
  }
78264
+ },
78265
+ {
78266
+ "id": "post_form.details_sheet",
78267
+ "body": {
78268
+ "package": "himalaya",
78269
+ "type": "BottomSheet",
78270
+ "props": {
78271
+ "presentedPath": "$service:himiOwnerLitePostForm.detailsOpen",
78272
+ "dismissible": true,
78273
+ "showGrabber": true,
78274
+ "onDismiss": {
78275
+ "actionId": "tier5.himiOwnerLitePostForm.detailsClose"
78276
+ },
78277
+ "content": {
78278
+ "id": "post_form.details_body",
78279
+ "body": {
78280
+ "package": "himalaya",
78281
+ "type": "VStack",
78282
+ "props": {
78283
+ "spacing": 12,
78284
+ "alignment": "leading",
78285
+ "children": [
78286
+ {
78287
+ "id": "",
78288
+ "body": {
78289
+ "package": "himalaya",
78290
+ "type": "Text",
78291
+ "props": {
78292
+ "text": "Post details",
78293
+ "style": "title3"
78294
+ }
78295
+ }
78296
+ },
78297
+ {
78298
+ "id": "",
78299
+ "body": {
78300
+ "package": "himalaya",
78301
+ "type": "Text",
78302
+ "props": {
78303
+ "text": "Excerpt",
78304
+ "style": "bodyEmphasis"
78305
+ }
78306
+ }
78307
+ },
78308
+ {
78309
+ "id": "post_form.excerpt",
78310
+ "body": {
78311
+ "package": "himalaya",
78312
+ "type": "TextField",
78313
+ "props": {
78314
+ "placeholder": "Optional summary",
78315
+ "valuePath": "$service:himiOwnerLitePostForm.excerpt",
78316
+ "multilineMaxLines": 3,
78317
+ "autoCapitalization": "sentences",
78318
+ "onChange": {
78319
+ "actionId": "tier5.himiOwnerLitePostForm.setExcerpt"
78320
+ }
78321
+ }
78322
+ }
78323
+ },
78324
+ {
78325
+ "id": "",
78326
+ "body": {
78327
+ "package": "himalaya",
78328
+ "type": "Text",
78329
+ "props": {
78330
+ "text": "Cover image URL",
78331
+ "style": "bodyEmphasis"
78332
+ }
78333
+ }
78334
+ },
78335
+ {
78336
+ "id": "post_form.coverUrl",
78337
+ "body": {
78338
+ "package": "himalaya",
78339
+ "type": "TextField",
78340
+ "props": {
78341
+ "placeholder": "https://…",
78342
+ "valuePath": "$service:himiOwnerLitePostForm.coverUrl",
78343
+ "keyboard": "url",
78344
+ "autoCapitalization": "none",
78345
+ "onChange": {
78346
+ "actionId": "tier5.himiOwnerLitePostForm.setCover"
78347
+ }
78348
+ }
78349
+ }
78350
+ },
78351
+ {
78352
+ "id": "",
78353
+ "body": {
78354
+ "package": "himalaya",
78355
+ "type": "Image",
78356
+ "props": {
78357
+ "url": "$service:himiOwnerLitePostForm.coverPreview",
78358
+ "fillWidth": true,
78359
+ "height": 160,
78360
+ "contentMode": "fit",
78361
+ "contentDescription": "Cover image preview"
78362
+ }
78363
+ },
78364
+ "modifiers": {
78365
+ "cornerRadius": 8,
78366
+ "hiddenPath": "$service:himiOwnerLitePostForm.noCover"
78367
+ }
78368
+ }
78369
+ ]
78370
+ }
78371
+ }
78372
+ }
78373
+ }
78374
+ }
78187
78375
  }
78188
78376
  ]
78189
78377
  }