@wix/himalaya-cli 0.1159.0 → 0.1160.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 (35) hide show
  1. package/dist/cli.mjs +3 -0
  2. package/package.json +2 -2
  3. package/templates/beauty-salon-owner/dev/index.ts +382 -194
  4. package/templates/beauty-salon-owner/tier5-src/_shared/owner-editor-value.ts +56 -0
  5. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-post-form/index.ts +132 -46
  6. package/templates/community-club-owner/dev/index.ts +382 -194
  7. package/templates/community-club-owner/tier5-src/_shared/owner-editor-value.ts +56 -0
  8. package/templates/community-club-owner/tier5-src/himi-owner-lite-post-form/index.ts +132 -46
  9. package/templates/events-meetups-owner/dev/index.ts +382 -194
  10. package/templates/events-meetups-owner/tier5-src/_shared/owner-editor-value.ts +56 -0
  11. package/templates/events-meetups-owner/tier5-src/himi-owner-lite-post-form/index.ts +132 -46
  12. package/templates/gym-fitness-owner/dev/index.ts +382 -194
  13. package/templates/gym-fitness-owner/tier5-src/_shared/owner-editor-value.ts +56 -0
  14. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-post-form/index.ts +132 -46
  15. package/templates/nonprofit-cause-owner/dev/index.ts +382 -194
  16. package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-editor-value.ts +56 -0
  17. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-post-form/index.ts +132 -46
  18. package/templates/owner-lite/dev/index.ts +382 -194
  19. package/templates/owner-lite/tier5-src/_shared/owner-editor-value.ts +56 -0
  20. package/templates/owner-lite/tier5-src/himi-owner-lite-post-form/index.ts +132 -46
  21. package/templates/podcast-creator-owner/dev/index.ts +382 -194
  22. package/templates/podcast-creator-owner/tier5-src/_shared/owner-editor-value.ts +56 -0
  23. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-post-form/index.ts +132 -46
  24. package/templates/portfolio-creative-owner/dev/index.ts +382 -194
  25. package/templates/portfolio-creative-owner/tier5-src/_shared/owner-editor-value.ts +56 -0
  26. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-post-form/index.ts +132 -46
  27. package/templates/restaurant-owner/dev/index.ts +382 -194
  28. package/templates/restaurant-owner/tier5-src/_shared/owner-editor-value.ts +56 -0
  29. package/templates/restaurant-owner/tier5-src/himi-owner-lite-post-form/index.ts +132 -46
  30. package/templates/retail-store-owner/dev/index.ts +382 -194
  31. package/templates/retail-store-owner/tier5-src/_shared/owner-editor-value.ts +56 -0
  32. package/templates/retail-store-owner/tier5-src/himi-owner-lite-post-form/index.ts +132 -46
  33. package/templates/yoga-studio-owner/dev/index.ts +382 -194
  34. package/templates/yoga-studio-owner/tier5-src/_shared/owner-editor-value.ts +56 -0
  35. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-post-form/index.ts +132 -46
@@ -67370,50 +67370,18 @@ const SCREENS = runtimeSetting({
67370
67370
  }
67371
67371
  },
67372
67372
  {
67373
- "id": "post_form.body_note",
67373
+ "id": "post_form.details",
67374
67374
  "body": {
67375
67375
  "package": "himalaya",
67376
- "type": "Text",
67377
- "props": {
67378
- "text": "$service:himiOwnerLitePostForm.bodyNote",
67379
- "style": "footnote",
67380
- "color": "textSecondary",
67381
- "collapseWhenEmpty": true
67382
- }
67383
- }
67384
- },
67385
- {
67386
- "id": "post_form.body_preview",
67387
- "body": {
67388
- "package": "himalaya",
67389
- "type": "Text",
67390
- "props": {
67391
- "text": "$service:himiOwnerLitePostForm.body",
67392
- "style": "body",
67393
- "maxLines": 8,
67394
- "collapseWhenEmpty": true
67395
- }
67396
- },
67397
- "modifiers": {
67398
- "hiddenPath": "$service:himiOwnerLitePostForm.bodyEditable"
67399
- }
67400
- },
67401
- {
67402
- "id": "",
67403
- "body": {
67404
- "package": "himalaya",
67405
- "type": "Image",
67376
+ "type": "Button",
67406
67377
  "props": {
67407
- "url": "$service:himiOwnerLitePostForm.coverPreview",
67408
- "fillWidth": true,
67409
- "height": 160,
67410
- "contentMode": "fit",
67411
- "contentDescription": "Cover image preview"
67378
+ "title": "Post details",
67379
+ "style": "secondary",
67380
+ "fullWidth": true,
67381
+ "action": {
67382
+ "actionId": "tier5.himiOwnerLitePostForm.detailsOpen"
67383
+ }
67412
67384
  }
67413
- },
67414
- "modifiers": {
67415
- "cornerRadius": 8,
67416
- "hiddenPath": "$service:himiOwnerLitePostForm.noCover"
67417
67385
  }
67418
67386
  },
67419
67387
  {
@@ -67444,67 +67412,82 @@ const SCREENS = runtimeSetting({
67444
67412
  }
67445
67413
  },
67446
67414
  {
67447
- "id": "post_form.excerpt",
67415
+ "id": "post_form.body_slot",
67448
67416
  "body": {
67449
67417
  "package": "himalaya",
67450
- "type": "FormField",
67451
- "props": {
67452
- "id": "excerpt",
67453
- "label": "Excerpt",
67454
- "kind": "text",
67455
- "text": {
67456
- "value": "$service:himiOwnerLitePostForm.excerpt",
67457
- "placeholder": "Optional summary",
67458
- "keyboard": "default",
67459
- "autoCapitalization": "sentences",
67460
- "multilineMaxLines": 3
67461
- }
67462
- }
67463
- }
67464
- },
67465
- {
67466
- "id": "post_form.body",
67467
- "body": {
67468
- "package": "himalaya",
67469
- "type": "FormField",
67470
- "props": {
67471
- "id": "body",
67472
- "label": "Body",
67473
- "kind": "text",
67474
- "text": {
67475
- "value": "$service:himiOwnerLitePostForm.body",
67476
- "placeholder": "Write your post",
67477
- "keyboard": "default",
67478
- "autoCapitalization": "sentences",
67479
- "multilineMaxLines": 6
67480
- }
67481
- }
67482
- },
67483
- "modifiers": {
67484
- "hiddenPath": "$service:himiOwnerLitePostForm.bodyProtected"
67485
- }
67486
- },
67487
- {
67488
- "id": "post_form.coverUrl",
67489
- "body": {
67490
- "package": "himalaya",
67491
- "type": "FormField",
67418
+ "type": "VStack",
67492
67419
  "props": {
67493
- "id": "coverUrl",
67494
- "label": "Cover image URL",
67495
- "kind": "text",
67496
- "validation": {
67497
- "type": "url"
67498
- },
67499
- "text": {
67500
- "value": "$service:himiOwnerLitePostForm.coverUrl",
67501
- "placeholder": "https://…",
67502
- "keyboard": "url",
67503
- "autoCapitalization": "none",
67504
- "onChange": {
67505
- "actionId": "tier5.himiOwnerLitePostForm.setCover"
67420
+ "spacing": 6,
67421
+ "alignment": "leading",
67422
+ "children": [
67423
+ {
67424
+ "id": "",
67425
+ "body": {
67426
+ "package": "himalaya",
67427
+ "type": "Text",
67428
+ "props": {
67429
+ "text": "Body",
67430
+ "style": "bodyEmphasis"
67431
+ }
67432
+ }
67433
+ },
67434
+ {
67435
+ "id": "post_body_editor",
67436
+ "body": {
67437
+ "package": "himalaya",
67438
+ "type": "RichContentEditor",
67439
+ "props": {
67440
+ "name": "body",
67441
+ "documentPath": "$service:himiOwnerLitePostForm.bodyJson",
67442
+ "placeholder": "Write your post",
67443
+ "uploadService": "himiOwnerLitePostFormUploads",
67444
+ "onChange": {
67445
+ "actionId": "tier5.himiOwnerLitePostForm.bodyChanged"
67446
+ },
67447
+ "minHeight": 360,
67448
+ "fallback": {
67449
+ "id": "post_form.body_unavailable",
67450
+ "body": {
67451
+ "package": "himalaya",
67452
+ "type": "VStack",
67453
+ "props": {
67454
+ "spacing": 4,
67455
+ "alignment": "leading",
67456
+ "children": [
67457
+ {
67458
+ "id": "",
67459
+ "body": {
67460
+ "package": "himalaya",
67461
+ "type": "Text",
67462
+ "props": {
67463
+ "text": "Editor unavailable",
67464
+ "style": "title3"
67465
+ }
67466
+ }
67467
+ },
67468
+ {
67469
+ "id": "",
67470
+ "body": {
67471
+ "package": "himalaya",
67472
+ "type": "Text",
67473
+ "props": {
67474
+ "text": "The post body can’t be edited here right now. The title and details still save, and the body stays as it is.",
67475
+ "style": "footnote",
67476
+ "color": "textSecondary"
67477
+ }
67478
+ }
67479
+ }
67480
+ ]
67481
+ }
67482
+ }
67483
+ }
67484
+ }
67485
+ },
67486
+ "modifiers": {
67487
+ "hiddenPath": "$service:himiOwnerLitePostForm.bodyPending"
67488
+ }
67506
67489
  }
67507
- }
67490
+ ]
67508
67491
  }
67509
67492
  }
67510
67493
  }
@@ -67548,6 +67531,117 @@ const SCREENS = runtimeSetting({
67548
67531
  "modifiers": {
67549
67532
  "hiddenPath": "$service:himiOwnerLitePostForm.hideSavedLink"
67550
67533
  }
67534
+ },
67535
+ {
67536
+ "id": "post_form.details_sheet",
67537
+ "body": {
67538
+ "package": "himalaya",
67539
+ "type": "BottomSheet",
67540
+ "props": {
67541
+ "presentedPath": "$service:himiOwnerLitePostForm.detailsOpen",
67542
+ "dismissible": true,
67543
+ "showGrabber": true,
67544
+ "onDismiss": {
67545
+ "actionId": "tier5.himiOwnerLitePostForm.detailsClose"
67546
+ },
67547
+ "content": {
67548
+ "id": "post_form.details_body",
67549
+ "body": {
67550
+ "package": "himalaya",
67551
+ "type": "VStack",
67552
+ "props": {
67553
+ "spacing": 12,
67554
+ "alignment": "leading",
67555
+ "children": [
67556
+ {
67557
+ "id": "",
67558
+ "body": {
67559
+ "package": "himalaya",
67560
+ "type": "Text",
67561
+ "props": {
67562
+ "text": "Post details",
67563
+ "style": "title3"
67564
+ }
67565
+ }
67566
+ },
67567
+ {
67568
+ "id": "",
67569
+ "body": {
67570
+ "package": "himalaya",
67571
+ "type": "Text",
67572
+ "props": {
67573
+ "text": "Excerpt",
67574
+ "style": "bodyEmphasis"
67575
+ }
67576
+ }
67577
+ },
67578
+ {
67579
+ "id": "post_form.excerpt",
67580
+ "body": {
67581
+ "package": "himalaya",
67582
+ "type": "TextField",
67583
+ "props": {
67584
+ "placeholder": "Optional summary",
67585
+ "valuePath": "$service:himiOwnerLitePostForm.excerpt",
67586
+ "multilineMaxLines": 3,
67587
+ "autoCapitalization": "sentences",
67588
+ "onChange": {
67589
+ "actionId": "tier5.himiOwnerLitePostForm.setExcerpt"
67590
+ }
67591
+ }
67592
+ }
67593
+ },
67594
+ {
67595
+ "id": "",
67596
+ "body": {
67597
+ "package": "himalaya",
67598
+ "type": "Text",
67599
+ "props": {
67600
+ "text": "Cover image URL",
67601
+ "style": "bodyEmphasis"
67602
+ }
67603
+ }
67604
+ },
67605
+ {
67606
+ "id": "post_form.coverUrl",
67607
+ "body": {
67608
+ "package": "himalaya",
67609
+ "type": "TextField",
67610
+ "props": {
67611
+ "placeholder": "https://…",
67612
+ "valuePath": "$service:himiOwnerLitePostForm.coverUrl",
67613
+ "keyboard": "url",
67614
+ "autoCapitalization": "none",
67615
+ "onChange": {
67616
+ "actionId": "tier5.himiOwnerLitePostForm.setCover"
67617
+ }
67618
+ }
67619
+ }
67620
+ },
67621
+ {
67622
+ "id": "",
67623
+ "body": {
67624
+ "package": "himalaya",
67625
+ "type": "Image",
67626
+ "props": {
67627
+ "url": "$service:himiOwnerLitePostForm.coverPreview",
67628
+ "fillWidth": true,
67629
+ "height": 160,
67630
+ "contentMode": "fit",
67631
+ "contentDescription": "Cover image preview"
67632
+ }
67633
+ },
67634
+ "modifiers": {
67635
+ "cornerRadius": 8,
67636
+ "hiddenPath": "$service:himiOwnerLitePostForm.noCover"
67637
+ }
67638
+ }
67639
+ ]
67640
+ }
67641
+ }
67642
+ }
67643
+ }
67644
+ }
67551
67645
  }
67552
67646
  ]
67553
67647
  }
@@ -67979,50 +68073,18 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
67979
68073
  }
67980
68074
  },
67981
68075
  {
67982
- "id": "post_form.body_note",
68076
+ "id": "post_form.details",
67983
68077
  "body": {
67984
68078
  "package": "himalaya",
67985
- "type": "Text",
67986
- "props": {
67987
- "text": "$service:himiOwnerLitePostForm.bodyNote",
67988
- "style": "footnote",
67989
- "color": "textSecondary",
67990
- "collapseWhenEmpty": true
67991
- }
67992
- }
67993
- },
67994
- {
67995
- "id": "post_form.body_preview",
67996
- "body": {
67997
- "package": "himalaya",
67998
- "type": "Text",
67999
- "props": {
68000
- "text": "$service:himiOwnerLitePostForm.body",
68001
- "style": "body",
68002
- "maxLines": 8,
68003
- "collapseWhenEmpty": true
68004
- }
68005
- },
68006
- "modifiers": {
68007
- "hiddenPath": "$service:himiOwnerLitePostForm.bodyEditable"
68008
- }
68009
- },
68010
- {
68011
- "id": "",
68012
- "body": {
68013
- "package": "himalaya",
68014
- "type": "Image",
68079
+ "type": "Button",
68015
68080
  "props": {
68016
- "url": "$service:himiOwnerLitePostForm.coverPreview",
68017
- "fillWidth": true,
68018
- "height": 160,
68019
- "contentMode": "fit",
68020
- "contentDescription": "Cover image preview"
68081
+ "title": "Post details",
68082
+ "style": "secondary",
68083
+ "fullWidth": true,
68084
+ "action": {
68085
+ "actionId": "tier5.himiOwnerLitePostForm.detailsOpen"
68086
+ }
68021
68087
  }
68022
- },
68023
- "modifiers": {
68024
- "cornerRadius": 8,
68025
- "hiddenPath": "$service:himiOwnerLitePostForm.noCover"
68026
68088
  }
68027
68089
  },
68028
68090
  {
@@ -68053,67 +68115,82 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
68053
68115
  }
68054
68116
  },
68055
68117
  {
68056
- "id": "post_form.excerpt",
68118
+ "id": "post_form.body_slot",
68057
68119
  "body": {
68058
68120
  "package": "himalaya",
68059
- "type": "FormField",
68060
- "props": {
68061
- "id": "excerpt",
68062
- "label": "Excerpt",
68063
- "kind": "text",
68064
- "text": {
68065
- "value": "$service:himiOwnerLitePostForm.excerpt",
68066
- "placeholder": "Optional summary",
68067
- "keyboard": "default",
68068
- "autoCapitalization": "sentences",
68069
- "multilineMaxLines": 3
68070
- }
68071
- }
68072
- }
68073
- },
68074
- {
68075
- "id": "post_form.body",
68076
- "body": {
68077
- "package": "himalaya",
68078
- "type": "FormField",
68079
- "props": {
68080
- "id": "body",
68081
- "label": "Body",
68082
- "kind": "text",
68083
- "text": {
68084
- "value": "$service:himiOwnerLitePostForm.body",
68085
- "placeholder": "Write your post",
68086
- "keyboard": "default",
68087
- "autoCapitalization": "sentences",
68088
- "multilineMaxLines": 6
68089
- }
68090
- }
68091
- },
68092
- "modifiers": {
68093
- "hiddenPath": "$service:himiOwnerLitePostForm.bodyProtected"
68094
- }
68095
- },
68096
- {
68097
- "id": "post_form.coverUrl",
68098
- "body": {
68099
- "package": "himalaya",
68100
- "type": "FormField",
68121
+ "type": "VStack",
68101
68122
  "props": {
68102
- "id": "coverUrl",
68103
- "label": "Cover image URL",
68104
- "kind": "text",
68105
- "validation": {
68106
- "type": "url"
68107
- },
68108
- "text": {
68109
- "value": "$service:himiOwnerLitePostForm.coverUrl",
68110
- "placeholder": "https://…",
68111
- "keyboard": "url",
68112
- "autoCapitalization": "none",
68113
- "onChange": {
68114
- "actionId": "tier5.himiOwnerLitePostForm.setCover"
68123
+ "spacing": 6,
68124
+ "alignment": "leading",
68125
+ "children": [
68126
+ {
68127
+ "id": "",
68128
+ "body": {
68129
+ "package": "himalaya",
68130
+ "type": "Text",
68131
+ "props": {
68132
+ "text": "Body",
68133
+ "style": "bodyEmphasis"
68134
+ }
68135
+ }
68136
+ },
68137
+ {
68138
+ "id": "post_body_editor",
68139
+ "body": {
68140
+ "package": "himalaya",
68141
+ "type": "RichContentEditor",
68142
+ "props": {
68143
+ "name": "body",
68144
+ "documentPath": "$service:himiOwnerLitePostForm.bodyJson",
68145
+ "placeholder": "Write your post",
68146
+ "uploadService": "himiOwnerLitePostFormUploads",
68147
+ "onChange": {
68148
+ "actionId": "tier5.himiOwnerLitePostForm.bodyChanged"
68149
+ },
68150
+ "minHeight": 360,
68151
+ "fallback": {
68152
+ "id": "post_form.body_unavailable",
68153
+ "body": {
68154
+ "package": "himalaya",
68155
+ "type": "VStack",
68156
+ "props": {
68157
+ "spacing": 4,
68158
+ "alignment": "leading",
68159
+ "children": [
68160
+ {
68161
+ "id": "",
68162
+ "body": {
68163
+ "package": "himalaya",
68164
+ "type": "Text",
68165
+ "props": {
68166
+ "text": "Editor unavailable",
68167
+ "style": "title3"
68168
+ }
68169
+ }
68170
+ },
68171
+ {
68172
+ "id": "",
68173
+ "body": {
68174
+ "package": "himalaya",
68175
+ "type": "Text",
68176
+ "props": {
68177
+ "text": "The post body can’t be edited here right now. The title and details still save, and the body stays as it is.",
68178
+ "style": "footnote",
68179
+ "color": "textSecondary"
68180
+ }
68181
+ }
68182
+ }
68183
+ ]
68184
+ }
68185
+ }
68186
+ }
68187
+ }
68188
+ },
68189
+ "modifiers": {
68190
+ "hiddenPath": "$service:himiOwnerLitePostForm.bodyPending"
68191
+ }
68115
68192
  }
68116
- }
68193
+ ]
68117
68194
  }
68118
68195
  }
68119
68196
  }
@@ -68157,6 +68234,117 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
68157
68234
  "modifiers": {
68158
68235
  "hiddenPath": "$service:himiOwnerLitePostForm.hideSavedLink"
68159
68236
  }
68237
+ },
68238
+ {
68239
+ "id": "post_form.details_sheet",
68240
+ "body": {
68241
+ "package": "himalaya",
68242
+ "type": "BottomSheet",
68243
+ "props": {
68244
+ "presentedPath": "$service:himiOwnerLitePostForm.detailsOpen",
68245
+ "dismissible": true,
68246
+ "showGrabber": true,
68247
+ "onDismiss": {
68248
+ "actionId": "tier5.himiOwnerLitePostForm.detailsClose"
68249
+ },
68250
+ "content": {
68251
+ "id": "post_form.details_body",
68252
+ "body": {
68253
+ "package": "himalaya",
68254
+ "type": "VStack",
68255
+ "props": {
68256
+ "spacing": 12,
68257
+ "alignment": "leading",
68258
+ "children": [
68259
+ {
68260
+ "id": "",
68261
+ "body": {
68262
+ "package": "himalaya",
68263
+ "type": "Text",
68264
+ "props": {
68265
+ "text": "Post details",
68266
+ "style": "title3"
68267
+ }
68268
+ }
68269
+ },
68270
+ {
68271
+ "id": "",
68272
+ "body": {
68273
+ "package": "himalaya",
68274
+ "type": "Text",
68275
+ "props": {
68276
+ "text": "Excerpt",
68277
+ "style": "bodyEmphasis"
68278
+ }
68279
+ }
68280
+ },
68281
+ {
68282
+ "id": "post_form.excerpt",
68283
+ "body": {
68284
+ "package": "himalaya",
68285
+ "type": "TextField",
68286
+ "props": {
68287
+ "placeholder": "Optional summary",
68288
+ "valuePath": "$service:himiOwnerLitePostForm.excerpt",
68289
+ "multilineMaxLines": 3,
68290
+ "autoCapitalization": "sentences",
68291
+ "onChange": {
68292
+ "actionId": "tier5.himiOwnerLitePostForm.setExcerpt"
68293
+ }
68294
+ }
68295
+ }
68296
+ },
68297
+ {
68298
+ "id": "",
68299
+ "body": {
68300
+ "package": "himalaya",
68301
+ "type": "Text",
68302
+ "props": {
68303
+ "text": "Cover image URL",
68304
+ "style": "bodyEmphasis"
68305
+ }
68306
+ }
68307
+ },
68308
+ {
68309
+ "id": "post_form.coverUrl",
68310
+ "body": {
68311
+ "package": "himalaya",
68312
+ "type": "TextField",
68313
+ "props": {
68314
+ "placeholder": "https://…",
68315
+ "valuePath": "$service:himiOwnerLitePostForm.coverUrl",
68316
+ "keyboard": "url",
68317
+ "autoCapitalization": "none",
68318
+ "onChange": {
68319
+ "actionId": "tier5.himiOwnerLitePostForm.setCover"
68320
+ }
68321
+ }
68322
+ }
68323
+ },
68324
+ {
68325
+ "id": "",
68326
+ "body": {
68327
+ "package": "himalaya",
68328
+ "type": "Image",
68329
+ "props": {
68330
+ "url": "$service:himiOwnerLitePostForm.coverPreview",
68331
+ "fillWidth": true,
68332
+ "height": 160,
68333
+ "contentMode": "fit",
68334
+ "contentDescription": "Cover image preview"
68335
+ }
68336
+ },
68337
+ "modifiers": {
68338
+ "cornerRadius": 8,
68339
+ "hiddenPath": "$service:himiOwnerLitePostForm.noCover"
68340
+ }
68341
+ }
68342
+ ]
68343
+ }
68344
+ }
68345
+ }
68346
+ }
68347
+ }
68160
68348
  }
68161
68349
  ]
68162
68350
  }