@wix/himalaya-cli 0.1025.0 → 0.1026.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 (80) hide show
  1. package/dist/cli.mjs +0 -2
  2. package/package.json +2 -2
  3. package/templates/beauty-salon/dev/index.ts +1031 -240
  4. package/templates/beauty-salon/tier5-src/_shared/detail-presence.ts +51 -0
  5. package/templates/beauty-salon/tier5-src/himi-branded-lite-orders/index.ts +4 -1
  6. package/templates/beauty-salon/tier5-src/wix-spaces-collection-detail/index.ts +9 -9
  7. package/templates/beauty-salon/tier5-src/wix-spaces-create-post/index.ts +14 -4
  8. package/templates/beauty-salon/tier5-src/wix-spaces-plan-detail/index.ts +7 -9
  9. package/templates/beauty-salon/tier5-src/wix-spaces-subscription-detail/index.ts +12 -11
  10. package/templates/beauty-salon/tier5-src/wix-spaces-view-profile/index.ts +22 -12
  11. package/templates/branded-lite/config.ts +3 -1
  12. package/templates/branded-lite/dev/index.ts +3455 -813
  13. package/templates/branded-lite/tier5-src/_shared/detail-presence.ts +51 -0
  14. package/templates/branded-lite/tier5-src/himi-branded-lite-orders/index.ts +4 -1
  15. package/templates/branded-lite/tier5-src/himi-branded-lite-portfolio-project/index.ts +7 -2
  16. package/templates/branded-lite/tier5-src/himi-branded-lite-simple-detail/index.ts +4 -3
  17. package/templates/branded-lite/tier5-src/wix-spaces-chat-thread/index.ts +17 -4
  18. package/templates/branded-lite/tier5-src/wix-spaces-collection-detail/index.ts +9 -9
  19. package/templates/branded-lite/tier5-src/wix-spaces-coupon-detail/index.ts +7 -9
  20. package/templates/branded-lite/tier5-src/wix-spaces-create-post/index.ts +14 -4
  21. package/templates/branded-lite/tier5-src/wix-spaces-food-order-detail/index.ts +6 -3
  22. package/templates/branded-lite/tier5-src/wix-spaces-form-detail/index.ts +7 -9
  23. package/templates/branded-lite/tier5-src/wix-spaces-forum-post/index.ts +7 -9
  24. package/templates/branded-lite/tier5-src/wix-spaces-invoice-detail/index.ts +7 -9
  25. package/templates/branded-lite/tier5-src/wix-spaces-member-detail/index.ts +8 -8
  26. package/templates/branded-lite/tier5-src/wix-spaces-photo-albums/index.ts +8 -2
  27. package/templates/branded-lite/tier5-src/wix-spaces-plan-detail/index.ts +7 -9
  28. package/templates/branded-lite/tier5-src/wix-spaces-subscription-detail/index.ts +12 -11
  29. package/templates/branded-lite/tier5-src/wix-spaces-view-profile/index.ts +22 -12
  30. package/templates/community-club/dev/index.ts +345 -97
  31. package/templates/community-club/tier5-src/wix-spaces-create-post/index.ts +14 -4
  32. package/templates/community-club/tier5-src/wix-spaces-view-profile/index.ts +22 -12
  33. package/templates/events-meetups/dev/index.ts +345 -97
  34. package/templates/events-meetups/tier5-src/wix-spaces-create-post/index.ts +14 -4
  35. package/templates/events-meetups/tier5-src/wix-spaces-view-profile/index.ts +22 -12
  36. package/templates/gym-fitness/dev/index.ts +1031 -240
  37. package/templates/gym-fitness/tier5-src/_shared/detail-presence.ts +51 -0
  38. package/templates/gym-fitness/tier5-src/himi-branded-lite-orders/index.ts +4 -1
  39. package/templates/gym-fitness/tier5-src/wix-spaces-collection-detail/index.ts +9 -9
  40. package/templates/gym-fitness/tier5-src/wix-spaces-create-post/index.ts +14 -4
  41. package/templates/gym-fitness/tier5-src/wix-spaces-plan-detail/index.ts +7 -9
  42. package/templates/gym-fitness/tier5-src/wix-spaces-subscription-detail/index.ts +12 -11
  43. package/templates/gym-fitness/tier5-src/wix-spaces-view-profile/index.ts +22 -12
  44. package/templates/nonprofit-cause/dev/index.ts +732 -188
  45. package/templates/nonprofit-cause/tier5-src/_shared/detail-presence.ts +51 -0
  46. package/templates/nonprofit-cause/tier5-src/wix-spaces-create-post/index.ts +14 -4
  47. package/templates/nonprofit-cause/tier5-src/wix-spaces-plan-detail/index.ts +7 -9
  48. package/templates/nonprofit-cause/tier5-src/wix-spaces-subscription-detail/index.ts +12 -11
  49. package/templates/nonprofit-cause/tier5-src/wix-spaces-view-profile/index.ts +22 -12
  50. package/templates/podcast-creator/dev/index.ts +942 -321
  51. package/templates/podcast-creator/tier5-src/_shared/detail-presence.ts +51 -0
  52. package/templates/podcast-creator/tier5-src/himi-branded-lite-simple-detail/index.ts +4 -3
  53. package/templates/podcast-creator/tier5-src/wix-spaces-create-post/index.ts +14 -4
  54. package/templates/podcast-creator/tier5-src/wix-spaces-plan-detail/index.ts +7 -9
  55. package/templates/podcast-creator/tier5-src/wix-spaces-subscription-detail/index.ts +12 -11
  56. package/templates/podcast-creator/tier5-src/wix-spaces-view-profile/index.ts +22 -12
  57. package/templates/portfolio-creative/dev/index.ts +676 -169
  58. package/templates/portfolio-creative/tier5-src/_shared/detail-presence.ts +51 -0
  59. package/templates/portfolio-creative/tier5-src/himi-branded-lite-orders/index.ts +4 -1
  60. package/templates/portfolio-creative/tier5-src/himi-branded-lite-portfolio-project/index.ts +7 -2
  61. package/templates/portfolio-creative/tier5-src/wix-spaces-collection-detail/index.ts +9 -9
  62. package/templates/portfolio-creative/tier5-src/wix-spaces-create-post/index.ts +14 -4
  63. package/templates/portfolio-creative/tier5-src/wix-spaces-view-profile/index.ts +22 -12
  64. package/templates/restaurant/dev/index.ts +529 -149
  65. package/templates/restaurant/tier5-src/_shared/detail-presence.ts +51 -0
  66. package/templates/restaurant/tier5-src/wix-spaces-create-post/index.ts +14 -4
  67. package/templates/restaurant/tier5-src/wix-spaces-food-order-detail/index.ts +6 -3
  68. package/templates/restaurant/tier5-src/wix-spaces-view-profile/index.ts +22 -12
  69. package/templates/retail-store/dev/index.ts +643 -148
  70. package/templates/retail-store/tier5-src/_shared/detail-presence.ts +51 -0
  71. package/templates/retail-store/tier5-src/himi-branded-lite-orders/index.ts +4 -1
  72. package/templates/retail-store/tier5-src/wix-spaces-collection-detail/index.ts +9 -9
  73. package/templates/retail-store/tier5-src/wix-spaces-create-post/index.ts +14 -4
  74. package/templates/retail-store/tier5-src/wix-spaces-view-profile/index.ts +22 -12
  75. package/templates/yoga-studio/dev/index.ts +711 -183
  76. package/templates/yoga-studio/tier5-src/_shared/detail-presence.ts +51 -0
  77. package/templates/yoga-studio/tier5-src/wix-spaces-create-post/index.ts +14 -4
  78. package/templates/yoga-studio/tier5-src/wix-spaces-plan-detail/index.ts +7 -9
  79. package/templates/yoga-studio/tier5-src/wix-spaces-subscription-detail/index.ts +12 -11
  80. package/templates/yoga-studio/tier5-src/wix-spaces-view-profile/index.ts +22 -12
@@ -14,7 +14,7 @@ const SCREENS = runtimeSetting({
14
14
  "himi_branded_home": {
15
15
  "screenId": "himi_branded_home",
16
16
  "renderer": "sdui_intent",
17
- "title": "",
17
+ "title": "__HIMI_APP_NAME__",
18
18
  "schemaVersion": 1,
19
19
  "cacheControl": {
20
20
  "maxAge": 0,
@@ -4290,74 +4290,196 @@ const SCREENS = runtimeSetting({
4290
4290
  "alignment": "center",
4291
4291
  "children": [
4292
4292
  {
4293
- "id": "himi_view_profile.avatar",
4293
+ "id": "himi_view_profile.loading",
4294
+ "body": {
4295
+ "package": "himalaya",
4296
+ "type": "Text",
4297
+ "props": {
4298
+ "text": "Loading…",
4299
+ "style": "body",
4300
+ "color": "textSecondary"
4301
+ }
4302
+ },
4303
+ "modifiers": {
4304
+ "hiddenPath": "$service:spacesViewProfile.hideLoading"
4305
+ }
4306
+ },
4307
+ {
4308
+ "id": "",
4294
4309
  "body": {
4295
4310
  "package": "himalaya",
4296
- "type": "ZStack",
4311
+ "type": "VStack",
4297
4312
  "props": {
4313
+ "spacing": 8,
4298
4314
  "alignment": "center",
4299
4315
  "children": [
4300
4316
  {
4301
- "id": "",
4317
+ "id": "himi_view_profile.avatar",
4302
4318
  "body": {
4303
4319
  "package": "himalaya",
4304
- "type": "Icon",
4320
+ "type": "ZStack",
4305
4321
  "props": {
4306
- "name": "photo",
4307
- "size": 28,
4308
- "tint": "accentPrimary"
4322
+ "alignment": "center",
4323
+ "children": [
4324
+ {
4325
+ "id": "",
4326
+ "body": {
4327
+ "package": "himalaya",
4328
+ "type": "Icon",
4329
+ "props": {
4330
+ "name": "photo",
4331
+ "size": 28,
4332
+ "tint": "accentPrimary"
4333
+ }
4334
+ },
4335
+ "modifiers": {
4336
+ "accessibilityRole": "decorative"
4337
+ }
4338
+ }
4339
+ ]
4309
4340
  }
4310
4341
  },
4311
4342
  "modifiers": {
4312
- "accessibilityRole": "decorative"
4343
+ "width": 96,
4344
+ "height": 96,
4345
+ "background": {
4346
+ "token": "accentSurface"
4347
+ },
4348
+ "cornerRadius": 16
4349
+ }
4350
+ },
4351
+ {
4352
+ "id": "himi_view_profile.name",
4353
+ "body": {
4354
+ "package": "himalaya",
4355
+ "type": "Text",
4356
+ "props": {
4357
+ "text": "$service:spacesViewProfile.name",
4358
+ "style": "title1"
4359
+ }
4360
+ }
4361
+ },
4362
+ {
4363
+ "id": "",
4364
+ "body": {
4365
+ "package": "himalaya",
4366
+ "type": "Text",
4367
+ "props": {
4368
+ "text": "$service:spacesViewProfile.handle",
4369
+ "style": "footnote",
4370
+ "color": "textSecondary",
4371
+ "collapseWhenEmpty": true
4372
+ }
4373
+ }
4374
+ },
4375
+ {
4376
+ "id": "",
4377
+ "body": {
4378
+ "package": "himalaya",
4379
+ "type": "Text",
4380
+ "props": {
4381
+ "text": "$service:spacesViewProfile.about",
4382
+ "style": "body",
4383
+ "collapseWhenEmpty": true
4384
+ }
4313
4385
  }
4314
4386
  }
4315
4387
  ]
4316
4388
  }
4317
4389
  },
4318
4390
  "modifiers": {
4319
- "width": 96,
4320
- "height": 96,
4321
- "background": {
4322
- "token": "accentSurface"
4323
- },
4324
- "cornerRadius": 16
4325
- }
4326
- },
4327
- {
4328
- "id": "himi_view_profile.name",
4329
- "body": {
4330
- "package": "himalaya",
4331
- "type": "Text",
4332
- "props": {
4333
- "text": "$service:spacesViewProfile.name",
4334
- "style": "title1"
4335
- }
4336
- }
4337
- },
4338
- {
4339
- "id": "",
4340
- "body": {
4341
- "package": "himalaya",
4342
- "type": "Text",
4343
- "props": {
4344
- "text": "$service:spacesViewProfile.handle",
4345
- "style": "footnote",
4346
- "color": "textSecondary",
4347
- "collapseWhenEmpty": true
4348
- }
4391
+ "hiddenPath": "$service:spacesViewProfile.profileHidden"
4349
4392
  }
4350
4393
  },
4351
4394
  {
4352
- "id": "",
4395
+ "id": "himi_view_profile.member_gate",
4353
4396
  "body": {
4354
4397
  "package": "himalaya",
4355
- "type": "Text",
4398
+ "type": "VStack",
4356
4399
  "props": {
4357
- "text": "$service:spacesViewProfile.about",
4358
- "style": "body",
4359
- "collapseWhenEmpty": true
4400
+ "spacing": 10,
4401
+ "alignment": "center",
4402
+ "children": [
4403
+ {
4404
+ "id": "",
4405
+ "body": {
4406
+ "package": "himalaya",
4407
+ "type": "Icon",
4408
+ "props": {
4409
+ "name": "person",
4410
+ "size": 28,
4411
+ "tint": "accentPrimary"
4412
+ }
4413
+ },
4414
+ "modifiers": {
4415
+ "accessibilityRole": "decorative"
4416
+ }
4417
+ },
4418
+ {
4419
+ "id": "himi_view_profile.member_gate_title",
4420
+ "body": {
4421
+ "package": "himalaya",
4422
+ "type": "Text",
4423
+ "props": {
4424
+ "text": "Sign in to view your profile",
4425
+ "style": "bodyEmphasis"
4426
+ }
4427
+ }
4428
+ },
4429
+ {
4430
+ "id": "",
4431
+ "body": {
4432
+ "package": "himalaya",
4433
+ "type": "Text",
4434
+ "props": {
4435
+ "text": "Your public profile appears here after you sign in.",
4436
+ "style": "footnote",
4437
+ "color": "textSecondary"
4438
+ }
4439
+ }
4440
+ },
4441
+ {
4442
+ "id": "himi_view_profile.member_gate_signin",
4443
+ "body": {
4444
+ "package": "himalaya",
4445
+ "type": "Button",
4446
+ "props": {
4447
+ "title": "Sign in",
4448
+ "style": "primary",
4449
+ "fullWidth": true,
4450
+ "action": {
4451
+ "actionId": "himi.open",
4452
+ "params": {
4453
+ "screenId": "himi_account",
4454
+ "intent": "profile",
4455
+ "returnScreenId": "himi_view_profile"
4456
+ }
4457
+ }
4458
+ }
4459
+ }
4460
+ }
4461
+ ]
4360
4462
  }
4463
+ },
4464
+ "modifiers": {
4465
+ "background": {
4466
+ "token": "surfaceElevated"
4467
+ },
4468
+ "border": {
4469
+ "width": 1,
4470
+ "color": {
4471
+ "token": "border"
4472
+ }
4473
+ },
4474
+ "cornerRadius": 16,
4475
+ "padding": {
4476
+ "leading": 16,
4477
+ "trailing": 16,
4478
+ "top": 20,
4479
+ "bottom": 20
4480
+ },
4481
+ "fillMaxWidth": true,
4482
+ "hiddenPath": "$service:spacesViewProfile.noSignIn"
4361
4483
  }
4362
4484
  }
4363
4485
  ]
@@ -7230,64 +7352,212 @@ const SCREENS = runtimeSetting({
7230
7352
  "spacing": 8,
7231
7353
  "alignment": "leading",
7232
7354
  "children": [
7233
- {
7234
- "id": "himi_plan.chrome",
7235
- "body": {
7236
- "package": "himalaya",
7237
- "type": "Text",
7238
- "props": {
7239
- "text": "Plan details",
7240
- "style": "title1"
7241
- }
7242
- }
7243
- },
7244
- {
7245
- "id": "himi_plan.title",
7246
- "body": {
7247
- "package": "himalaya",
7248
- "type": "Text",
7249
- "props": {
7250
- "text": "$service:spacesPlanDetail.name",
7251
- "style": "title1",
7252
- "collapseWhenEmpty": true
7253
- }
7254
- }
7255
- },
7256
7355
  {
7257
7356
  "id": "",
7258
7357
  "body": {
7259
7358
  "package": "himalaya",
7260
- "type": "Text",
7359
+ "type": "VStack",
7261
7360
  "props": {
7262
- "text": "$service:spacesPlanDetail.price",
7263
- "style": "title3",
7264
- "color": "accentPrimary",
7265
- "collapseWhenEmpty": true
7361
+ "spacing": 8,
7362
+ "alignment": "leading",
7363
+ "children": [
7364
+ {
7365
+ "id": "himi_plan.chrome",
7366
+ "body": {
7367
+ "package": "himalaya",
7368
+ "type": "Text",
7369
+ "props": {
7370
+ "text": "Plan details",
7371
+ "style": "title1"
7372
+ }
7373
+ }
7374
+ },
7375
+ {
7376
+ "id": "himi_plan.title",
7377
+ "body": {
7378
+ "package": "himalaya",
7379
+ "type": "Text",
7380
+ "props": {
7381
+ "text": "$service:spacesPlanDetail.name",
7382
+ "style": "title1",
7383
+ "collapseWhenEmpty": true
7384
+ }
7385
+ }
7386
+ },
7387
+ {
7388
+ "id": "",
7389
+ "body": {
7390
+ "package": "himalaya",
7391
+ "type": "Text",
7392
+ "props": {
7393
+ "text": "$service:spacesPlanDetail.price",
7394
+ "style": "title3",
7395
+ "color": "accentPrimary",
7396
+ "collapseWhenEmpty": true
7397
+ }
7398
+ }
7399
+ },
7400
+ {
7401
+ "id": "",
7402
+ "body": {
7403
+ "package": "himalaya",
7404
+ "type": "Text",
7405
+ "props": {
7406
+ "text": "$service:spacesPlanDetail.description",
7407
+ "style": "body",
7408
+ "color": "textSecondary",
7409
+ "collapseWhenEmpty": true
7410
+ }
7411
+ }
7412
+ },
7413
+ {
7414
+ "id": "",
7415
+ "body": {
7416
+ "package": "himalaya",
7417
+ "type": "Text",
7418
+ "props": {
7419
+ "text": "$service:spacesPlanDetail.perks",
7420
+ "style": "body",
7421
+ "collapseWhenEmpty": true
7422
+ }
7423
+ }
7424
+ }
7425
+ ]
7266
7426
  }
7427
+ },
7428
+ "modifiers": {
7429
+ "hiddenPath": "$service:spacesPlanDetail.noEntity"
7267
7430
  }
7268
7431
  },
7269
7432
  {
7270
7433
  "id": "",
7271
7434
  "body": {
7272
7435
  "package": "himalaya",
7273
- "type": "Text",
7274
- "props": {
7275
- "text": "$service:spacesPlanDetail.description",
7276
- "style": "body",
7277
- "color": "textSecondary",
7278
- "collapseWhenEmpty": true
7279
- }
7280
- }
7281
- },
7282
- {
7283
- "id": "",
7284
- "body": {
7285
- "package": "himalaya",
7286
- "type": "Text",
7436
+ "type": "VStack",
7287
7437
  "props": {
7288
- "text": "$service:spacesPlanDetail.perks",
7289
- "style": "body",
7290
- "collapseWhenEmpty": true
7438
+ "spacing": 12,
7439
+ "alignment": "leading",
7440
+ "children": [
7441
+ {
7442
+ "id": "himi_plan.loading",
7443
+ "body": {
7444
+ "package": "himalaya",
7445
+ "type": "Text",
7446
+ "props": {
7447
+ "text": "Loading…",
7448
+ "style": "body",
7449
+ "color": "textSecondary"
7450
+ }
7451
+ },
7452
+ "modifiers": {
7453
+ "hiddenPath": "$service:spacesPlanDetail.hideLoading"
7454
+ }
7455
+ },
7456
+ {
7457
+ "id": "himi_plan.load_error",
7458
+ "body": {
7459
+ "package": "himalaya",
7460
+ "type": "Text",
7461
+ "props": {
7462
+ "text": "This couldn't be loaded. Check your connection and try again.",
7463
+ "style": "body",
7464
+ "color": "textSecondary"
7465
+ }
7466
+ },
7467
+ "modifiers": {
7468
+ "hiddenPath": "$service:spacesPlanDetail.hideLoadError"
7469
+ }
7470
+ },
7471
+ {
7472
+ "id": "himi_plan.not_found",
7473
+ "body": {
7474
+ "package": "himalaya",
7475
+ "type": "VStack",
7476
+ "props": {
7477
+ "spacing": 10,
7478
+ "alignment": "center",
7479
+ "children": [
7480
+ {
7481
+ "id": "",
7482
+ "body": {
7483
+ "package": "himalaya",
7484
+ "type": "Icon",
7485
+ "props": {
7486
+ "name": "ticket",
7487
+ "size": 32,
7488
+ "tint": "textTertiary"
7489
+ }
7490
+ },
7491
+ "modifiers": {
7492
+ "accessibilityRole": "decorative"
7493
+ }
7494
+ },
7495
+ {
7496
+ "id": "himi_plan.not_found_title",
7497
+ "body": {
7498
+ "package": "himalaya",
7499
+ "type": "Text",
7500
+ "props": {
7501
+ "text": "Plan not found",
7502
+ "style": "title3"
7503
+ }
7504
+ }
7505
+ },
7506
+ {
7507
+ "id": "",
7508
+ "body": {
7509
+ "package": "himalaya",
7510
+ "type": "Text",
7511
+ "props": {
7512
+ "text": "This plan is no longer available.",
7513
+ "style": "body",
7514
+ "color": "textSecondary"
7515
+ }
7516
+ }
7517
+ },
7518
+ {
7519
+ "id": "himi_plan.not_found_back",
7520
+ "body": {
7521
+ "package": "himalaya",
7522
+ "type": "Button",
7523
+ "props": {
7524
+ "title": "Back to plans",
7525
+ "style": "primary",
7526
+ "fullWidth": true,
7527
+ "action": {
7528
+ "actionId": "himi.open",
7529
+ "params": {
7530
+ "screenId": "himi_plans"
7531
+ }
7532
+ }
7533
+ }
7534
+ }
7535
+ }
7536
+ ]
7537
+ }
7538
+ },
7539
+ "modifiers": {
7540
+ "background": {
7541
+ "token": "surfaceElevated"
7542
+ },
7543
+ "border": {
7544
+ "width": 1,
7545
+ "color": {
7546
+ "token": "border"
7547
+ }
7548
+ },
7549
+ "cornerRadius": 16,
7550
+ "padding": {
7551
+ "leading": 16,
7552
+ "trailing": 16,
7553
+ "top": 20,
7554
+ "bottom": 20
7555
+ },
7556
+ "fillMaxWidth": true,
7557
+ "hiddenPath": "$service:spacesPlanDetail.hideNotFound"
7558
+ }
7559
+ }
7560
+ ]
7291
7561
  }
7292
7562
  }
7293
7563
  }
@@ -7532,65 +7802,213 @@ const SCREENS = runtimeSetting({
7532
7802
  "spacing": 8,
7533
7803
  "alignment": "leading",
7534
7804
  "children": [
7535
- {
7536
- "id": "himi_subscription.chrome",
7537
- "body": {
7538
- "package": "himalaya",
7539
- "type": "Text",
7540
- "props": {
7541
- "text": "Subscription",
7542
- "style": "title1"
7543
- }
7544
- }
7545
- },
7546
- {
7547
- "id": "himi_subscription.title",
7548
- "body": {
7549
- "package": "himalaya",
7550
- "type": "Text",
7551
- "props": {
7552
- "text": "$service:spacesSubscriptionDetail.name",
7553
- "style": "title1",
7554
- "collapseWhenEmpty": true
7555
- }
7556
- }
7557
- },
7558
- {
7559
- "id": "",
7560
- "body": {
7561
- "package": "himalaya",
7562
- "type": "Text",
7563
- "props": {
7564
- "text": "$service:spacesSubscriptionDetail.subtitle",
7565
- "style": "footnote",
7566
- "color": "textSecondary",
7567
- "collapseWhenEmpty": true
7568
- }
7569
- }
7570
- },
7571
7805
  {
7572
7806
  "id": "",
7573
7807
  "body": {
7574
7808
  "package": "himalaya",
7575
- "type": "Text",
7809
+ "type": "VStack",
7576
7810
  "props": {
7577
- "text": "$service:spacesSubscriptionDetail.price",
7578
- "style": "title3",
7579
- "color": "accentPrimary",
7580
- "collapseWhenEmpty": true
7811
+ "spacing": 8,
7812
+ "alignment": "leading",
7813
+ "children": [
7814
+ {
7815
+ "id": "himi_subscription.chrome",
7816
+ "body": {
7817
+ "package": "himalaya",
7818
+ "type": "Text",
7819
+ "props": {
7820
+ "text": "Subscription",
7821
+ "style": "title1"
7822
+ }
7823
+ }
7824
+ },
7825
+ {
7826
+ "id": "himi_subscription.title",
7827
+ "body": {
7828
+ "package": "himalaya",
7829
+ "type": "Text",
7830
+ "props": {
7831
+ "text": "$service:spacesSubscriptionDetail.name",
7832
+ "style": "title1",
7833
+ "collapseWhenEmpty": true
7834
+ }
7835
+ }
7836
+ },
7837
+ {
7838
+ "id": "",
7839
+ "body": {
7840
+ "package": "himalaya",
7841
+ "type": "Text",
7842
+ "props": {
7843
+ "text": "$service:spacesSubscriptionDetail.subtitle",
7844
+ "style": "footnote",
7845
+ "color": "textSecondary",
7846
+ "collapseWhenEmpty": true
7847
+ }
7848
+ }
7849
+ },
7850
+ {
7851
+ "id": "",
7852
+ "body": {
7853
+ "package": "himalaya",
7854
+ "type": "Text",
7855
+ "props": {
7856
+ "text": "$service:spacesSubscriptionDetail.price",
7857
+ "style": "title3",
7858
+ "color": "accentPrimary",
7859
+ "collapseWhenEmpty": true
7860
+ }
7861
+ }
7862
+ },
7863
+ {
7864
+ "id": "",
7865
+ "body": {
7866
+ "package": "himalaya",
7867
+ "type": "Text",
7868
+ "props": {
7869
+ "text": "$service:spacesSubscriptionDetail.validity",
7870
+ "style": "footnote",
7871
+ "color": "textSecondary",
7872
+ "collapseWhenEmpty": true
7873
+ }
7874
+ }
7875
+ }
7876
+ ]
7581
7877
  }
7878
+ },
7879
+ "modifiers": {
7880
+ "hiddenPath": "$service:spacesSubscriptionDetail.noEntity"
7582
7881
  }
7583
7882
  },
7584
7883
  {
7585
7884
  "id": "",
7586
7885
  "body": {
7587
7886
  "package": "himalaya",
7588
- "type": "Text",
7887
+ "type": "VStack",
7589
7888
  "props": {
7590
- "text": "$service:spacesSubscriptionDetail.validity",
7591
- "style": "footnote",
7592
- "color": "textSecondary",
7593
- "collapseWhenEmpty": true
7889
+ "spacing": 12,
7890
+ "alignment": "leading",
7891
+ "children": [
7892
+ {
7893
+ "id": "himi_subscription.loading",
7894
+ "body": {
7895
+ "package": "himalaya",
7896
+ "type": "Text",
7897
+ "props": {
7898
+ "text": "Loading…",
7899
+ "style": "body",
7900
+ "color": "textSecondary"
7901
+ }
7902
+ },
7903
+ "modifiers": {
7904
+ "hiddenPath": "$service:spacesSubscriptionDetail.hideLoading"
7905
+ }
7906
+ },
7907
+ {
7908
+ "id": "himi_subscription.load_error",
7909
+ "body": {
7910
+ "package": "himalaya",
7911
+ "type": "Text",
7912
+ "props": {
7913
+ "text": "This couldn't be loaded. Check your connection and try again.",
7914
+ "style": "body",
7915
+ "color": "textSecondary"
7916
+ }
7917
+ },
7918
+ "modifiers": {
7919
+ "hiddenPath": "$service:spacesSubscriptionDetail.hideLoadError"
7920
+ }
7921
+ },
7922
+ {
7923
+ "id": "himi_subscription.not_found",
7924
+ "body": {
7925
+ "package": "himalaya",
7926
+ "type": "VStack",
7927
+ "props": {
7928
+ "spacing": 10,
7929
+ "alignment": "center",
7930
+ "children": [
7931
+ {
7932
+ "id": "",
7933
+ "body": {
7934
+ "package": "himalaya",
7935
+ "type": "Icon",
7936
+ "props": {
7937
+ "name": "ticket",
7938
+ "size": 32,
7939
+ "tint": "textTertiary"
7940
+ }
7941
+ },
7942
+ "modifiers": {
7943
+ "accessibilityRole": "decorative"
7944
+ }
7945
+ },
7946
+ {
7947
+ "id": "himi_subscription.not_found_title",
7948
+ "body": {
7949
+ "package": "himalaya",
7950
+ "type": "Text",
7951
+ "props": {
7952
+ "text": "Subscription not found",
7953
+ "style": "title3"
7954
+ }
7955
+ }
7956
+ },
7957
+ {
7958
+ "id": "",
7959
+ "body": {
7960
+ "package": "himalaya",
7961
+ "type": "Text",
7962
+ "props": {
7963
+ "text": "This subscription is no longer available.",
7964
+ "style": "body",
7965
+ "color": "textSecondary"
7966
+ }
7967
+ }
7968
+ },
7969
+ {
7970
+ "id": "himi_subscription.not_found_back",
7971
+ "body": {
7972
+ "package": "himalaya",
7973
+ "type": "Button",
7974
+ "props": {
7975
+ "title": "Back to my subscriptions",
7976
+ "style": "primary",
7977
+ "fullWidth": true,
7978
+ "action": {
7979
+ "actionId": "himi.open",
7980
+ "params": {
7981
+ "screenId": "himi_my_subscriptions"
7982
+ }
7983
+ }
7984
+ }
7985
+ }
7986
+ }
7987
+ ]
7988
+ }
7989
+ },
7990
+ "modifiers": {
7991
+ "background": {
7992
+ "token": "surfaceElevated"
7993
+ },
7994
+ "border": {
7995
+ "width": 1,
7996
+ "color": {
7997
+ "token": "border"
7998
+ }
7999
+ },
8000
+ "cornerRadius": 16,
8001
+ "padding": {
8002
+ "leading": 16,
8003
+ "trailing": 16,
8004
+ "top": 20,
8005
+ "bottom": 20
8006
+ },
8007
+ "fillMaxWidth": true,
8008
+ "hiddenPath": "$service:spacesSubscriptionDetail.hideNotFound"
8009
+ }
8010
+ }
8011
+ ]
7594
8012
  }
7595
8013
  }
7596
8014
  }
@@ -7769,16 +8187,31 @@ const SCREENS = runtimeSetting({
7769
8187
  }
7770
8188
  },
7771
8189
  {
7772
- "id": "himi_feed.signin_card",
8190
+ "id": "himi_feed.member_gate",
7773
8191
  "body": {
7774
8192
  "package": "himalaya",
7775
8193
  "type": "VStack",
7776
8194
  "props": {
7777
- "spacing": 8,
7778
- "alignment": "leading",
8195
+ "spacing": 10,
8196
+ "alignment": "center",
7779
8197
  "children": [
7780
8198
  {
7781
8199
  "id": "",
8200
+ "body": {
8201
+ "package": "himalaya",
8202
+ "type": "Icon",
8203
+ "props": {
8204
+ "name": "person",
8205
+ "size": 28,
8206
+ "tint": "accentPrimary"
8207
+ }
8208
+ },
8209
+ "modifiers": {
8210
+ "accessibilityRole": "decorative"
8211
+ }
8212
+ },
8213
+ {
8214
+ "id": "himi_feed.member_gate_title",
7782
8215
  "body": {
7783
8216
  "package": "himalaya",
7784
8217
  "type": "Text",
@@ -7801,7 +8234,7 @@ const SCREENS = runtimeSetting({
7801
8234
  }
7802
8235
  },
7803
8236
  {
7804
- "id": "himi_feed.signin",
8237
+ "id": "himi_feed.member_gate_signin",
7805
8238
  "body": {
7806
8239
  "package": "himalaya",
7807
8240
  "type": "Button",
@@ -7837,9 +8270,10 @@ const SCREENS = runtimeSetting({
7837
8270
  "padding": {
7838
8271
  "leading": 16,
7839
8272
  "trailing": 16,
7840
- "top": 16,
7841
- "bottom": 16
8273
+ "top": 20,
8274
+ "bottom": 20
7842
8275
  },
8276
+ "fillMaxWidth": true,
7843
8277
  "hiddenPath": "$service:himiBrandedFeed.noSignIn"
7844
8278
  }
7845
8279
  },
@@ -8341,65 +8775,172 @@ const SCREENS = runtimeSetting({
8341
8775
  }
8342
8776
  },
8343
8777
  {
8344
- "id": "",
8778
+ "id": "himi_create_post.member_gate",
8345
8779
  "body": {
8346
8780
  "package": "himalaya",
8347
- "type": "Text",
8348
- "props": {
8349
- "text": "$service:spacesCreatePost.hint",
8350
- "style": "footnote",
8351
- "color": "textSecondary",
8352
- "collapseWhenEmpty": true
8353
- }
8354
- }
8355
- },
8356
- {
8357
- "id": "himi_create_post.title_field",
8358
- "body": {
8359
- "package": "himalaya",
8360
- "type": "TextField",
8781
+ "type": "VStack",
8361
8782
  "props": {
8362
- "placeholder": "Title",
8363
- "value": "",
8364
- "submitLabel": "next",
8365
- "onSubmit": {
8366
- "actionId": "tier5.spacesCreatePost.focusBody"
8367
- },
8368
- "onChange": {
8369
- "actionId": "tier5.spacesCreatePost.setTitle"
8370
- }
8783
+ "spacing": 10,
8784
+ "alignment": "center",
8785
+ "children": [
8786
+ {
8787
+ "id": "",
8788
+ "body": {
8789
+ "package": "himalaya",
8790
+ "type": "Icon",
8791
+ "props": {
8792
+ "name": "person",
8793
+ "size": 28,
8794
+ "tint": "accentPrimary"
8795
+ }
8796
+ },
8797
+ "modifiers": {
8798
+ "accessibilityRole": "decorative"
8799
+ }
8800
+ },
8801
+ {
8802
+ "id": "himi_create_post.member_gate_title",
8803
+ "body": {
8804
+ "package": "himalaya",
8805
+ "type": "Text",
8806
+ "props": {
8807
+ "text": "Sign in to post",
8808
+ "style": "bodyEmphasis"
8809
+ }
8810
+ }
8811
+ },
8812
+ {
8813
+ "id": "",
8814
+ "body": {
8815
+ "package": "himalaya",
8816
+ "type": "Text",
8817
+ "props": {
8818
+ "text": "Sign in to share something with the community.",
8819
+ "style": "footnote",
8820
+ "color": "textSecondary"
8821
+ }
8822
+ }
8823
+ },
8824
+ {
8825
+ "id": "himi_create_post.member_gate_signin",
8826
+ "body": {
8827
+ "package": "himalaya",
8828
+ "type": "Button",
8829
+ "props": {
8830
+ "title": "Sign in",
8831
+ "style": "primary",
8832
+ "fullWidth": true,
8833
+ "action": {
8834
+ "actionId": "himi.open",
8835
+ "params": {
8836
+ "screenId": "himi_account",
8837
+ "intent": "post",
8838
+ "returnScreenId": "himi_create_post"
8839
+ }
8840
+ }
8841
+ }
8842
+ }
8843
+ }
8844
+ ]
8371
8845
  }
8372
- }
8373
- },
8374
- {
8375
- "id": "himi_create_post.body_field",
8376
- "body": {
8377
- "package": "himalaya",
8378
- "type": "TextField",
8379
- "props": {
8380
- "placeholder": "Write something…",
8381
- "value": "",
8382
- "multilineMaxLines": 6,
8383
- "focusPath": "$service:spacesCreatePost.bodyFocus",
8384
- "onChange": {
8385
- "actionId": "tier5.spacesCreatePost.setBody"
8846
+ },
8847
+ "modifiers": {
8848
+ "background": {
8849
+ "token": "surfaceElevated"
8850
+ },
8851
+ "border": {
8852
+ "width": 1,
8853
+ "color": {
8854
+ "token": "border"
8386
8855
  }
8387
- }
8856
+ },
8857
+ "cornerRadius": 16,
8858
+ "padding": {
8859
+ "leading": 16,
8860
+ "trailing": 16,
8861
+ "top": 20,
8862
+ "bottom": 20
8863
+ },
8864
+ "fillMaxWidth": true,
8865
+ "hiddenPath": "$service:spacesCreatePost.noSignIn"
8388
8866
  }
8389
8867
  },
8390
8868
  {
8391
- "id": "himi_create_post.submit",
8869
+ "id": "",
8392
8870
  "body": {
8393
8871
  "package": "himalaya",
8394
- "type": "Button",
8872
+ "type": "VStack",
8395
8873
  "props": {
8396
- "title": "Post",
8397
- "style": "primary",
8398
- "fullWidth": true,
8399
- "action": {
8400
- "actionId": "tier5.spacesCreatePost.submit"
8401
- }
8874
+ "spacing": 16,
8875
+ "alignment": "leading",
8876
+ "children": [
8877
+ {
8878
+ "id": "",
8879
+ "body": {
8880
+ "package": "himalaya",
8881
+ "type": "Text",
8882
+ "props": {
8883
+ "text": "$service:spacesCreatePost.hint",
8884
+ "style": "footnote",
8885
+ "color": "textSecondary",
8886
+ "collapseWhenEmpty": true
8887
+ }
8888
+ }
8889
+ },
8890
+ {
8891
+ "id": "himi_create_post.title_field",
8892
+ "body": {
8893
+ "package": "himalaya",
8894
+ "type": "TextField",
8895
+ "props": {
8896
+ "placeholder": "Title",
8897
+ "value": "",
8898
+ "submitLabel": "next",
8899
+ "onSubmit": {
8900
+ "actionId": "tier5.spacesCreatePost.focusBody"
8901
+ },
8902
+ "onChange": {
8903
+ "actionId": "tier5.spacesCreatePost.setTitle"
8904
+ }
8905
+ }
8906
+ }
8907
+ },
8908
+ {
8909
+ "id": "himi_create_post.body_field",
8910
+ "body": {
8911
+ "package": "himalaya",
8912
+ "type": "TextField",
8913
+ "props": {
8914
+ "placeholder": "Write something…",
8915
+ "value": "",
8916
+ "multilineMaxLines": 6,
8917
+ "focusPath": "$service:spacesCreatePost.bodyFocus",
8918
+ "onChange": {
8919
+ "actionId": "tier5.spacesCreatePost.setBody"
8920
+ }
8921
+ }
8922
+ }
8923
+ },
8924
+ {
8925
+ "id": "himi_create_post.submit",
8926
+ "body": {
8927
+ "package": "himalaya",
8928
+ "type": "Button",
8929
+ "props": {
8930
+ "title": "Post",
8931
+ "style": "primary",
8932
+ "fullWidth": true,
8933
+ "action": {
8934
+ "actionId": "tier5.spacesCreatePost.submit"
8935
+ }
8936
+ }
8937
+ }
8938
+ }
8939
+ ]
8402
8940
  }
8941
+ },
8942
+ "modifiers": {
8943
+ "hiddenPath": "$service:spacesCreatePost.hideForm"
8403
8944
  }
8404
8945
  }
8405
8946
  ]
@@ -8414,6 +8955,9 @@ const SCREENS = runtimeSetting({
8414
8955
  "trailing": 16,
8415
8956
  "top": 18,
8416
8957
  "bottom": 28
8958
+ },
8959
+ "onAppear": {
8960
+ "actionId": "tier5.spacesCreatePost.load"
8417
8961
  }
8418
8962
  }
8419
8963
  },