@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
@@ -74265,50 +74265,18 @@ const SCREENS = runtimeSetting({
74265
74265
  }
74266
74266
  },
74267
74267
  {
74268
- "id": "post_form.body_note",
74268
+ "id": "post_form.details",
74269
74269
  "body": {
74270
74270
  "package": "himalaya",
74271
- "type": "Text",
74272
- "props": {
74273
- "text": "$service:himiOwnerLitePostForm.bodyNote",
74274
- "style": "footnote",
74275
- "color": "textSecondary",
74276
- "collapseWhenEmpty": true
74277
- }
74278
- }
74279
- },
74280
- {
74281
- "id": "post_form.body_preview",
74282
- "body": {
74283
- "package": "himalaya",
74284
- "type": "Text",
74285
- "props": {
74286
- "text": "$service:himiOwnerLitePostForm.body",
74287
- "style": "body",
74288
- "maxLines": 8,
74289
- "collapseWhenEmpty": true
74290
- }
74291
- },
74292
- "modifiers": {
74293
- "hiddenPath": "$service:himiOwnerLitePostForm.bodyEditable"
74294
- }
74295
- },
74296
- {
74297
- "id": "",
74298
- "body": {
74299
- "package": "himalaya",
74300
- "type": "Image",
74271
+ "type": "Button",
74301
74272
  "props": {
74302
- "url": "$service:himiOwnerLitePostForm.coverPreview",
74303
- "fillWidth": true,
74304
- "height": 160,
74305
- "contentMode": "fit",
74306
- "contentDescription": "Cover image preview"
74273
+ "title": "Post details",
74274
+ "style": "secondary",
74275
+ "fullWidth": true,
74276
+ "action": {
74277
+ "actionId": "tier5.himiOwnerLitePostForm.detailsOpen"
74278
+ }
74307
74279
  }
74308
- },
74309
- "modifiers": {
74310
- "cornerRadius": 8,
74311
- "hiddenPath": "$service:himiOwnerLitePostForm.noCover"
74312
74280
  }
74313
74281
  },
74314
74282
  {
@@ -74339,67 +74307,82 @@ const SCREENS = runtimeSetting({
74339
74307
  }
74340
74308
  },
74341
74309
  {
74342
- "id": "post_form.excerpt",
74343
- "body": {
74344
- "package": "himalaya",
74345
- "type": "FormField",
74346
- "props": {
74347
- "id": "excerpt",
74348
- "label": "Excerpt",
74349
- "kind": "text",
74350
- "text": {
74351
- "value": "$service:himiOwnerLitePostForm.excerpt",
74352
- "placeholder": "Optional summary",
74353
- "keyboard": "default",
74354
- "autoCapitalization": "sentences",
74355
- "multilineMaxLines": 3
74356
- }
74357
- }
74358
- }
74359
- },
74360
- {
74361
- "id": "post_form.body",
74362
- "body": {
74363
- "package": "himalaya",
74364
- "type": "FormField",
74365
- "props": {
74366
- "id": "body",
74367
- "label": "Body",
74368
- "kind": "text",
74369
- "text": {
74370
- "value": "$service:himiOwnerLitePostForm.body",
74371
- "placeholder": "Write your post",
74372
- "keyboard": "default",
74373
- "autoCapitalization": "sentences",
74374
- "multilineMaxLines": 6
74375
- }
74376
- }
74377
- },
74378
- "modifiers": {
74379
- "hiddenPath": "$service:himiOwnerLitePostForm.bodyProtected"
74380
- }
74381
- },
74382
- {
74383
- "id": "post_form.coverUrl",
74310
+ "id": "post_form.body_slot",
74384
74311
  "body": {
74385
74312
  "package": "himalaya",
74386
- "type": "FormField",
74313
+ "type": "VStack",
74387
74314
  "props": {
74388
- "id": "coverUrl",
74389
- "label": "Cover image URL",
74390
- "kind": "text",
74391
- "validation": {
74392
- "type": "url"
74393
- },
74394
- "text": {
74395
- "value": "$service:himiOwnerLitePostForm.coverUrl",
74396
- "placeholder": "https://…",
74397
- "keyboard": "url",
74398
- "autoCapitalization": "none",
74399
- "onChange": {
74400
- "actionId": "tier5.himiOwnerLitePostForm.setCover"
74315
+ "spacing": 6,
74316
+ "alignment": "leading",
74317
+ "children": [
74318
+ {
74319
+ "id": "",
74320
+ "body": {
74321
+ "package": "himalaya",
74322
+ "type": "Text",
74323
+ "props": {
74324
+ "text": "Body",
74325
+ "style": "bodyEmphasis"
74326
+ }
74327
+ }
74328
+ },
74329
+ {
74330
+ "id": "post_body_editor",
74331
+ "body": {
74332
+ "package": "himalaya",
74333
+ "type": "RichContentEditor",
74334
+ "props": {
74335
+ "name": "body",
74336
+ "documentPath": "$service:himiOwnerLitePostForm.bodyJson",
74337
+ "placeholder": "Write your post",
74338
+ "uploadService": "himiOwnerLitePostFormUploads",
74339
+ "onChange": {
74340
+ "actionId": "tier5.himiOwnerLitePostForm.bodyChanged"
74341
+ },
74342
+ "minHeight": 360,
74343
+ "fallback": {
74344
+ "id": "post_form.body_unavailable",
74345
+ "body": {
74346
+ "package": "himalaya",
74347
+ "type": "VStack",
74348
+ "props": {
74349
+ "spacing": 4,
74350
+ "alignment": "leading",
74351
+ "children": [
74352
+ {
74353
+ "id": "",
74354
+ "body": {
74355
+ "package": "himalaya",
74356
+ "type": "Text",
74357
+ "props": {
74358
+ "text": "Editor unavailable",
74359
+ "style": "title3"
74360
+ }
74361
+ }
74362
+ },
74363
+ {
74364
+ "id": "",
74365
+ "body": {
74366
+ "package": "himalaya",
74367
+ "type": "Text",
74368
+ "props": {
74369
+ "text": "The post body can’t be edited here right now. The title and details still save, and the body stays as it is.",
74370
+ "style": "footnote",
74371
+ "color": "textSecondary"
74372
+ }
74373
+ }
74374
+ }
74375
+ ]
74376
+ }
74377
+ }
74378
+ }
74379
+ }
74380
+ },
74381
+ "modifiers": {
74382
+ "hiddenPath": "$service:himiOwnerLitePostForm.bodyPending"
74383
+ }
74401
74384
  }
74402
- }
74385
+ ]
74403
74386
  }
74404
74387
  }
74405
74388
  }
@@ -74443,6 +74426,117 @@ const SCREENS = runtimeSetting({
74443
74426
  "modifiers": {
74444
74427
  "hiddenPath": "$service:himiOwnerLitePostForm.hideSavedLink"
74445
74428
  }
74429
+ },
74430
+ {
74431
+ "id": "post_form.details_sheet",
74432
+ "body": {
74433
+ "package": "himalaya",
74434
+ "type": "BottomSheet",
74435
+ "props": {
74436
+ "presentedPath": "$service:himiOwnerLitePostForm.detailsOpen",
74437
+ "dismissible": true,
74438
+ "showGrabber": true,
74439
+ "onDismiss": {
74440
+ "actionId": "tier5.himiOwnerLitePostForm.detailsClose"
74441
+ },
74442
+ "content": {
74443
+ "id": "post_form.details_body",
74444
+ "body": {
74445
+ "package": "himalaya",
74446
+ "type": "VStack",
74447
+ "props": {
74448
+ "spacing": 12,
74449
+ "alignment": "leading",
74450
+ "children": [
74451
+ {
74452
+ "id": "",
74453
+ "body": {
74454
+ "package": "himalaya",
74455
+ "type": "Text",
74456
+ "props": {
74457
+ "text": "Post details",
74458
+ "style": "title3"
74459
+ }
74460
+ }
74461
+ },
74462
+ {
74463
+ "id": "",
74464
+ "body": {
74465
+ "package": "himalaya",
74466
+ "type": "Text",
74467
+ "props": {
74468
+ "text": "Excerpt",
74469
+ "style": "bodyEmphasis"
74470
+ }
74471
+ }
74472
+ },
74473
+ {
74474
+ "id": "post_form.excerpt",
74475
+ "body": {
74476
+ "package": "himalaya",
74477
+ "type": "TextField",
74478
+ "props": {
74479
+ "placeholder": "Optional summary",
74480
+ "valuePath": "$service:himiOwnerLitePostForm.excerpt",
74481
+ "multilineMaxLines": 3,
74482
+ "autoCapitalization": "sentences",
74483
+ "onChange": {
74484
+ "actionId": "tier5.himiOwnerLitePostForm.setExcerpt"
74485
+ }
74486
+ }
74487
+ }
74488
+ },
74489
+ {
74490
+ "id": "",
74491
+ "body": {
74492
+ "package": "himalaya",
74493
+ "type": "Text",
74494
+ "props": {
74495
+ "text": "Cover image URL",
74496
+ "style": "bodyEmphasis"
74497
+ }
74498
+ }
74499
+ },
74500
+ {
74501
+ "id": "post_form.coverUrl",
74502
+ "body": {
74503
+ "package": "himalaya",
74504
+ "type": "TextField",
74505
+ "props": {
74506
+ "placeholder": "https://…",
74507
+ "valuePath": "$service:himiOwnerLitePostForm.coverUrl",
74508
+ "keyboard": "url",
74509
+ "autoCapitalization": "none",
74510
+ "onChange": {
74511
+ "actionId": "tier5.himiOwnerLitePostForm.setCover"
74512
+ }
74513
+ }
74514
+ }
74515
+ },
74516
+ {
74517
+ "id": "",
74518
+ "body": {
74519
+ "package": "himalaya",
74520
+ "type": "Image",
74521
+ "props": {
74522
+ "url": "$service:himiOwnerLitePostForm.coverPreview",
74523
+ "fillWidth": true,
74524
+ "height": 160,
74525
+ "contentMode": "fit",
74526
+ "contentDescription": "Cover image preview"
74527
+ }
74528
+ },
74529
+ "modifiers": {
74530
+ "cornerRadius": 8,
74531
+ "hiddenPath": "$service:himiOwnerLitePostForm.noCover"
74532
+ }
74533
+ }
74534
+ ]
74535
+ }
74536
+ }
74537
+ }
74538
+ }
74539
+ }
74446
74540
  }
74447
74541
  ]
74448
74542
  }
@@ -75155,50 +75249,18 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
75155
75249
  }
75156
75250
  },
75157
75251
  {
75158
- "id": "post_form.body_note",
75252
+ "id": "post_form.details",
75159
75253
  "body": {
75160
75254
  "package": "himalaya",
75161
- "type": "Text",
75162
- "props": {
75163
- "text": "$service:himiOwnerLitePostForm.bodyNote",
75164
- "style": "footnote",
75165
- "color": "textSecondary",
75166
- "collapseWhenEmpty": true
75167
- }
75168
- }
75169
- },
75170
- {
75171
- "id": "post_form.body_preview",
75172
- "body": {
75173
- "package": "himalaya",
75174
- "type": "Text",
75175
- "props": {
75176
- "text": "$service:himiOwnerLitePostForm.body",
75177
- "style": "body",
75178
- "maxLines": 8,
75179
- "collapseWhenEmpty": true
75180
- }
75181
- },
75182
- "modifiers": {
75183
- "hiddenPath": "$service:himiOwnerLitePostForm.bodyEditable"
75184
- }
75185
- },
75186
- {
75187
- "id": "",
75188
- "body": {
75189
- "package": "himalaya",
75190
- "type": "Image",
75255
+ "type": "Button",
75191
75256
  "props": {
75192
- "url": "$service:himiOwnerLitePostForm.coverPreview",
75193
- "fillWidth": true,
75194
- "height": 160,
75195
- "contentMode": "fit",
75196
- "contentDescription": "Cover image preview"
75257
+ "title": "Post details",
75258
+ "style": "secondary",
75259
+ "fullWidth": true,
75260
+ "action": {
75261
+ "actionId": "tier5.himiOwnerLitePostForm.detailsOpen"
75262
+ }
75197
75263
  }
75198
- },
75199
- "modifiers": {
75200
- "cornerRadius": 8,
75201
- "hiddenPath": "$service:himiOwnerLitePostForm.noCover"
75202
75264
  }
75203
75265
  },
75204
75266
  {
@@ -75229,67 +75291,82 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
75229
75291
  }
75230
75292
  },
75231
75293
  {
75232
- "id": "post_form.excerpt",
75233
- "body": {
75234
- "package": "himalaya",
75235
- "type": "FormField",
75236
- "props": {
75237
- "id": "excerpt",
75238
- "label": "Excerpt",
75239
- "kind": "text",
75240
- "text": {
75241
- "value": "$service:himiOwnerLitePostForm.excerpt",
75242
- "placeholder": "Optional summary",
75243
- "keyboard": "default",
75244
- "autoCapitalization": "sentences",
75245
- "multilineMaxLines": 3
75246
- }
75247
- }
75248
- }
75249
- },
75250
- {
75251
- "id": "post_form.body",
75252
- "body": {
75253
- "package": "himalaya",
75254
- "type": "FormField",
75255
- "props": {
75256
- "id": "body",
75257
- "label": "Body",
75258
- "kind": "text",
75259
- "text": {
75260
- "value": "$service:himiOwnerLitePostForm.body",
75261
- "placeholder": "Write your post",
75262
- "keyboard": "default",
75263
- "autoCapitalization": "sentences",
75264
- "multilineMaxLines": 6
75265
- }
75266
- }
75267
- },
75268
- "modifiers": {
75269
- "hiddenPath": "$service:himiOwnerLitePostForm.bodyProtected"
75270
- }
75271
- },
75272
- {
75273
- "id": "post_form.coverUrl",
75294
+ "id": "post_form.body_slot",
75274
75295
  "body": {
75275
75296
  "package": "himalaya",
75276
- "type": "FormField",
75297
+ "type": "VStack",
75277
75298
  "props": {
75278
- "id": "coverUrl",
75279
- "label": "Cover image URL",
75280
- "kind": "text",
75281
- "validation": {
75282
- "type": "url"
75283
- },
75284
- "text": {
75285
- "value": "$service:himiOwnerLitePostForm.coverUrl",
75286
- "placeholder": "https://…",
75287
- "keyboard": "url",
75288
- "autoCapitalization": "none",
75289
- "onChange": {
75290
- "actionId": "tier5.himiOwnerLitePostForm.setCover"
75299
+ "spacing": 6,
75300
+ "alignment": "leading",
75301
+ "children": [
75302
+ {
75303
+ "id": "",
75304
+ "body": {
75305
+ "package": "himalaya",
75306
+ "type": "Text",
75307
+ "props": {
75308
+ "text": "Body",
75309
+ "style": "bodyEmphasis"
75310
+ }
75311
+ }
75312
+ },
75313
+ {
75314
+ "id": "post_body_editor",
75315
+ "body": {
75316
+ "package": "himalaya",
75317
+ "type": "RichContentEditor",
75318
+ "props": {
75319
+ "name": "body",
75320
+ "documentPath": "$service:himiOwnerLitePostForm.bodyJson",
75321
+ "placeholder": "Write your post",
75322
+ "uploadService": "himiOwnerLitePostFormUploads",
75323
+ "onChange": {
75324
+ "actionId": "tier5.himiOwnerLitePostForm.bodyChanged"
75325
+ },
75326
+ "minHeight": 360,
75327
+ "fallback": {
75328
+ "id": "post_form.body_unavailable",
75329
+ "body": {
75330
+ "package": "himalaya",
75331
+ "type": "VStack",
75332
+ "props": {
75333
+ "spacing": 4,
75334
+ "alignment": "leading",
75335
+ "children": [
75336
+ {
75337
+ "id": "",
75338
+ "body": {
75339
+ "package": "himalaya",
75340
+ "type": "Text",
75341
+ "props": {
75342
+ "text": "Editor unavailable",
75343
+ "style": "title3"
75344
+ }
75345
+ }
75346
+ },
75347
+ {
75348
+ "id": "",
75349
+ "body": {
75350
+ "package": "himalaya",
75351
+ "type": "Text",
75352
+ "props": {
75353
+ "text": "The post body can’t be edited here right now. The title and details still save, and the body stays as it is.",
75354
+ "style": "footnote",
75355
+ "color": "textSecondary"
75356
+ }
75357
+ }
75358
+ }
75359
+ ]
75360
+ }
75361
+ }
75362
+ }
75363
+ }
75364
+ },
75365
+ "modifiers": {
75366
+ "hiddenPath": "$service:himiOwnerLitePostForm.bodyPending"
75367
+ }
75291
75368
  }
75292
- }
75369
+ ]
75293
75370
  }
75294
75371
  }
75295
75372
  }
@@ -75333,6 +75410,117 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
75333
75410
  "modifiers": {
75334
75411
  "hiddenPath": "$service:himiOwnerLitePostForm.hideSavedLink"
75335
75412
  }
75413
+ },
75414
+ {
75415
+ "id": "post_form.details_sheet",
75416
+ "body": {
75417
+ "package": "himalaya",
75418
+ "type": "BottomSheet",
75419
+ "props": {
75420
+ "presentedPath": "$service:himiOwnerLitePostForm.detailsOpen",
75421
+ "dismissible": true,
75422
+ "showGrabber": true,
75423
+ "onDismiss": {
75424
+ "actionId": "tier5.himiOwnerLitePostForm.detailsClose"
75425
+ },
75426
+ "content": {
75427
+ "id": "post_form.details_body",
75428
+ "body": {
75429
+ "package": "himalaya",
75430
+ "type": "VStack",
75431
+ "props": {
75432
+ "spacing": 12,
75433
+ "alignment": "leading",
75434
+ "children": [
75435
+ {
75436
+ "id": "",
75437
+ "body": {
75438
+ "package": "himalaya",
75439
+ "type": "Text",
75440
+ "props": {
75441
+ "text": "Post details",
75442
+ "style": "title3"
75443
+ }
75444
+ }
75445
+ },
75446
+ {
75447
+ "id": "",
75448
+ "body": {
75449
+ "package": "himalaya",
75450
+ "type": "Text",
75451
+ "props": {
75452
+ "text": "Excerpt",
75453
+ "style": "bodyEmphasis"
75454
+ }
75455
+ }
75456
+ },
75457
+ {
75458
+ "id": "post_form.excerpt",
75459
+ "body": {
75460
+ "package": "himalaya",
75461
+ "type": "TextField",
75462
+ "props": {
75463
+ "placeholder": "Optional summary",
75464
+ "valuePath": "$service:himiOwnerLitePostForm.excerpt",
75465
+ "multilineMaxLines": 3,
75466
+ "autoCapitalization": "sentences",
75467
+ "onChange": {
75468
+ "actionId": "tier5.himiOwnerLitePostForm.setExcerpt"
75469
+ }
75470
+ }
75471
+ }
75472
+ },
75473
+ {
75474
+ "id": "",
75475
+ "body": {
75476
+ "package": "himalaya",
75477
+ "type": "Text",
75478
+ "props": {
75479
+ "text": "Cover image URL",
75480
+ "style": "bodyEmphasis"
75481
+ }
75482
+ }
75483
+ },
75484
+ {
75485
+ "id": "post_form.coverUrl",
75486
+ "body": {
75487
+ "package": "himalaya",
75488
+ "type": "TextField",
75489
+ "props": {
75490
+ "placeholder": "https://…",
75491
+ "valuePath": "$service:himiOwnerLitePostForm.coverUrl",
75492
+ "keyboard": "url",
75493
+ "autoCapitalization": "none",
75494
+ "onChange": {
75495
+ "actionId": "tier5.himiOwnerLitePostForm.setCover"
75496
+ }
75497
+ }
75498
+ }
75499
+ },
75500
+ {
75501
+ "id": "",
75502
+ "body": {
75503
+ "package": "himalaya",
75504
+ "type": "Image",
75505
+ "props": {
75506
+ "url": "$service:himiOwnerLitePostForm.coverPreview",
75507
+ "fillWidth": true,
75508
+ "height": 160,
75509
+ "contentMode": "fit",
75510
+ "contentDescription": "Cover image preview"
75511
+ }
75512
+ },
75513
+ "modifiers": {
75514
+ "cornerRadius": 8,
75515
+ "hiddenPath": "$service:himiOwnerLitePostForm.noCover"
75516
+ }
75517
+ }
75518
+ ]
75519
+ }
75520
+ }
75521
+ }
75522
+ }
75523
+ }
75336
75524
  }
75337
75525
  ]
75338
75526
  }