@wix/himalaya-cli 0.1024.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 (84) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +12 -1
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +6 -0
  3. package/dist/cli.mjs +29 -18
  4. package/dist/preview-assets.generated.bin +0 -0
  5. package/guides/sdk-reference.json +1 -1
  6. package/package.json +2 -2
  7. package/templates/beauty-salon/dev/index.ts +1031 -240
  8. package/templates/beauty-salon/tier5-src/_shared/detail-presence.ts +51 -0
  9. package/templates/beauty-salon/tier5-src/himi-branded-lite-orders/index.ts +4 -1
  10. package/templates/beauty-salon/tier5-src/wix-spaces-collection-detail/index.ts +9 -9
  11. package/templates/beauty-salon/tier5-src/wix-spaces-create-post/index.ts +14 -4
  12. package/templates/beauty-salon/tier5-src/wix-spaces-plan-detail/index.ts +7 -9
  13. package/templates/beauty-salon/tier5-src/wix-spaces-subscription-detail/index.ts +12 -11
  14. package/templates/beauty-salon/tier5-src/wix-spaces-view-profile/index.ts +22 -12
  15. package/templates/branded-lite/config.ts +3 -1
  16. package/templates/branded-lite/dev/index.ts +3455 -813
  17. package/templates/branded-lite/tier5-src/_shared/detail-presence.ts +51 -0
  18. package/templates/branded-lite/tier5-src/himi-branded-lite-orders/index.ts +4 -1
  19. package/templates/branded-lite/tier5-src/himi-branded-lite-portfolio-project/index.ts +7 -2
  20. package/templates/branded-lite/tier5-src/himi-branded-lite-simple-detail/index.ts +4 -3
  21. package/templates/branded-lite/tier5-src/wix-spaces-chat-thread/index.ts +17 -4
  22. package/templates/branded-lite/tier5-src/wix-spaces-collection-detail/index.ts +9 -9
  23. package/templates/branded-lite/tier5-src/wix-spaces-coupon-detail/index.ts +7 -9
  24. package/templates/branded-lite/tier5-src/wix-spaces-create-post/index.ts +14 -4
  25. package/templates/branded-lite/tier5-src/wix-spaces-food-order-detail/index.ts +6 -3
  26. package/templates/branded-lite/tier5-src/wix-spaces-form-detail/index.ts +7 -9
  27. package/templates/branded-lite/tier5-src/wix-spaces-forum-post/index.ts +7 -9
  28. package/templates/branded-lite/tier5-src/wix-spaces-invoice-detail/index.ts +7 -9
  29. package/templates/branded-lite/tier5-src/wix-spaces-member-detail/index.ts +8 -8
  30. package/templates/branded-lite/tier5-src/wix-spaces-photo-albums/index.ts +8 -2
  31. package/templates/branded-lite/tier5-src/wix-spaces-plan-detail/index.ts +7 -9
  32. package/templates/branded-lite/tier5-src/wix-spaces-subscription-detail/index.ts +12 -11
  33. package/templates/branded-lite/tier5-src/wix-spaces-view-profile/index.ts +22 -12
  34. package/templates/community-club/dev/index.ts +345 -97
  35. package/templates/community-club/tier5-src/wix-spaces-create-post/index.ts +14 -4
  36. package/templates/community-club/tier5-src/wix-spaces-view-profile/index.ts +22 -12
  37. package/templates/events-meetups/dev/index.ts +345 -97
  38. package/templates/events-meetups/tier5-src/wix-spaces-create-post/index.ts +14 -4
  39. package/templates/events-meetups/tier5-src/wix-spaces-view-profile/index.ts +22 -12
  40. package/templates/gym-fitness/dev/index.ts +1031 -240
  41. package/templates/gym-fitness/tier5-src/_shared/detail-presence.ts +51 -0
  42. package/templates/gym-fitness/tier5-src/himi-branded-lite-orders/index.ts +4 -1
  43. package/templates/gym-fitness/tier5-src/wix-spaces-collection-detail/index.ts +9 -9
  44. package/templates/gym-fitness/tier5-src/wix-spaces-create-post/index.ts +14 -4
  45. package/templates/gym-fitness/tier5-src/wix-spaces-plan-detail/index.ts +7 -9
  46. package/templates/gym-fitness/tier5-src/wix-spaces-subscription-detail/index.ts +12 -11
  47. package/templates/gym-fitness/tier5-src/wix-spaces-view-profile/index.ts +22 -12
  48. package/templates/nonprofit-cause/dev/index.ts +732 -188
  49. package/templates/nonprofit-cause/tier5-src/_shared/detail-presence.ts +51 -0
  50. package/templates/nonprofit-cause/tier5-src/wix-spaces-create-post/index.ts +14 -4
  51. package/templates/nonprofit-cause/tier5-src/wix-spaces-plan-detail/index.ts +7 -9
  52. package/templates/nonprofit-cause/tier5-src/wix-spaces-subscription-detail/index.ts +12 -11
  53. package/templates/nonprofit-cause/tier5-src/wix-spaces-view-profile/index.ts +22 -12
  54. package/templates/podcast-creator/dev/index.ts +942 -321
  55. package/templates/podcast-creator/tier5-src/_shared/detail-presence.ts +51 -0
  56. package/templates/podcast-creator/tier5-src/himi-branded-lite-simple-detail/index.ts +4 -3
  57. package/templates/podcast-creator/tier5-src/wix-spaces-create-post/index.ts +14 -4
  58. package/templates/podcast-creator/tier5-src/wix-spaces-plan-detail/index.ts +7 -9
  59. package/templates/podcast-creator/tier5-src/wix-spaces-subscription-detail/index.ts +12 -11
  60. package/templates/podcast-creator/tier5-src/wix-spaces-view-profile/index.ts +22 -12
  61. package/templates/portfolio-creative/dev/index.ts +676 -169
  62. package/templates/portfolio-creative/tier5-src/_shared/detail-presence.ts +51 -0
  63. package/templates/portfolio-creative/tier5-src/himi-branded-lite-orders/index.ts +4 -1
  64. package/templates/portfolio-creative/tier5-src/himi-branded-lite-portfolio-project/index.ts +7 -2
  65. package/templates/portfolio-creative/tier5-src/wix-spaces-collection-detail/index.ts +9 -9
  66. package/templates/portfolio-creative/tier5-src/wix-spaces-create-post/index.ts +14 -4
  67. package/templates/portfolio-creative/tier5-src/wix-spaces-view-profile/index.ts +22 -12
  68. package/templates/restaurant/dev/index.ts +529 -149
  69. package/templates/restaurant/tier5-src/_shared/detail-presence.ts +51 -0
  70. package/templates/restaurant/tier5-src/wix-spaces-create-post/index.ts +14 -4
  71. package/templates/restaurant/tier5-src/wix-spaces-food-order-detail/index.ts +6 -3
  72. package/templates/restaurant/tier5-src/wix-spaces-view-profile/index.ts +22 -12
  73. package/templates/retail-store/dev/index.ts +643 -148
  74. package/templates/retail-store/tier5-src/_shared/detail-presence.ts +51 -0
  75. package/templates/retail-store/tier5-src/himi-branded-lite-orders/index.ts +4 -1
  76. package/templates/retail-store/tier5-src/wix-spaces-collection-detail/index.ts +9 -9
  77. package/templates/retail-store/tier5-src/wix-spaces-create-post/index.ts +14 -4
  78. package/templates/retail-store/tier5-src/wix-spaces-view-profile/index.ts +22 -12
  79. package/templates/yoga-studio/dev/index.ts +711 -183
  80. package/templates/yoga-studio/tier5-src/_shared/detail-presence.ts +51 -0
  81. package/templates/yoga-studio/tier5-src/wix-spaces-create-post/index.ts +14 -4
  82. package/templates/yoga-studio/tier5-src/wix-spaces-plan-detail/index.ts +7 -9
  83. package/templates/yoga-studio/tier5-src/wix-spaces-subscription-detail/index.ts +12 -11
  84. 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,
@@ -4636,74 +4636,196 @@ const SCREENS = runtimeSetting({
4636
4636
  "alignment": "center",
4637
4637
  "children": [
4638
4638
  {
4639
- "id": "himi_view_profile.avatar",
4639
+ "id": "himi_view_profile.loading",
4640
+ "body": {
4641
+ "package": "himalaya",
4642
+ "type": "Text",
4643
+ "props": {
4644
+ "text": "Loading…",
4645
+ "style": "body",
4646
+ "color": "textSecondary"
4647
+ }
4648
+ },
4649
+ "modifiers": {
4650
+ "hiddenPath": "$service:spacesViewProfile.hideLoading"
4651
+ }
4652
+ },
4653
+ {
4654
+ "id": "",
4640
4655
  "body": {
4641
4656
  "package": "himalaya",
4642
- "type": "ZStack",
4657
+ "type": "VStack",
4643
4658
  "props": {
4659
+ "spacing": 8,
4644
4660
  "alignment": "center",
4645
4661
  "children": [
4646
4662
  {
4647
- "id": "",
4663
+ "id": "himi_view_profile.avatar",
4648
4664
  "body": {
4649
4665
  "package": "himalaya",
4650
- "type": "Icon",
4666
+ "type": "ZStack",
4651
4667
  "props": {
4652
- "name": "photo",
4653
- "size": 28,
4654
- "tint": "accentPrimary"
4668
+ "alignment": "center",
4669
+ "children": [
4670
+ {
4671
+ "id": "",
4672
+ "body": {
4673
+ "package": "himalaya",
4674
+ "type": "Icon",
4675
+ "props": {
4676
+ "name": "photo",
4677
+ "size": 28,
4678
+ "tint": "accentPrimary"
4679
+ }
4680
+ },
4681
+ "modifiers": {
4682
+ "accessibilityRole": "decorative"
4683
+ }
4684
+ }
4685
+ ]
4655
4686
  }
4656
4687
  },
4657
4688
  "modifiers": {
4658
- "accessibilityRole": "decorative"
4689
+ "width": 96,
4690
+ "height": 96,
4691
+ "background": {
4692
+ "token": "accentSurface"
4693
+ },
4694
+ "cornerRadius": 16
4695
+ }
4696
+ },
4697
+ {
4698
+ "id": "himi_view_profile.name",
4699
+ "body": {
4700
+ "package": "himalaya",
4701
+ "type": "Text",
4702
+ "props": {
4703
+ "text": "$service:spacesViewProfile.name",
4704
+ "style": "title1"
4705
+ }
4706
+ }
4707
+ },
4708
+ {
4709
+ "id": "",
4710
+ "body": {
4711
+ "package": "himalaya",
4712
+ "type": "Text",
4713
+ "props": {
4714
+ "text": "$service:spacesViewProfile.handle",
4715
+ "style": "footnote",
4716
+ "color": "textSecondary",
4717
+ "collapseWhenEmpty": true
4718
+ }
4719
+ }
4720
+ },
4721
+ {
4722
+ "id": "",
4723
+ "body": {
4724
+ "package": "himalaya",
4725
+ "type": "Text",
4726
+ "props": {
4727
+ "text": "$service:spacesViewProfile.about",
4728
+ "style": "body",
4729
+ "collapseWhenEmpty": true
4730
+ }
4659
4731
  }
4660
4732
  }
4661
4733
  ]
4662
4734
  }
4663
4735
  },
4664
4736
  "modifiers": {
4665
- "width": 96,
4666
- "height": 96,
4667
- "background": {
4668
- "token": "accentSurface"
4669
- },
4670
- "cornerRadius": 16
4671
- }
4672
- },
4673
- {
4674
- "id": "himi_view_profile.name",
4675
- "body": {
4676
- "package": "himalaya",
4677
- "type": "Text",
4678
- "props": {
4679
- "text": "$service:spacesViewProfile.name",
4680
- "style": "title1"
4681
- }
4682
- }
4683
- },
4684
- {
4685
- "id": "",
4686
- "body": {
4687
- "package": "himalaya",
4688
- "type": "Text",
4689
- "props": {
4690
- "text": "$service:spacesViewProfile.handle",
4691
- "style": "footnote",
4692
- "color": "textSecondary",
4693
- "collapseWhenEmpty": true
4694
- }
4737
+ "hiddenPath": "$service:spacesViewProfile.profileHidden"
4695
4738
  }
4696
4739
  },
4697
4740
  {
4698
- "id": "",
4741
+ "id": "himi_view_profile.member_gate",
4699
4742
  "body": {
4700
4743
  "package": "himalaya",
4701
- "type": "Text",
4744
+ "type": "VStack",
4702
4745
  "props": {
4703
- "text": "$service:spacesViewProfile.about",
4704
- "style": "body",
4705
- "collapseWhenEmpty": true
4746
+ "spacing": 10,
4747
+ "alignment": "center",
4748
+ "children": [
4749
+ {
4750
+ "id": "",
4751
+ "body": {
4752
+ "package": "himalaya",
4753
+ "type": "Icon",
4754
+ "props": {
4755
+ "name": "person",
4756
+ "size": 28,
4757
+ "tint": "accentPrimary"
4758
+ }
4759
+ },
4760
+ "modifiers": {
4761
+ "accessibilityRole": "decorative"
4762
+ }
4763
+ },
4764
+ {
4765
+ "id": "himi_view_profile.member_gate_title",
4766
+ "body": {
4767
+ "package": "himalaya",
4768
+ "type": "Text",
4769
+ "props": {
4770
+ "text": "Sign in to view your profile",
4771
+ "style": "bodyEmphasis"
4772
+ }
4773
+ }
4774
+ },
4775
+ {
4776
+ "id": "",
4777
+ "body": {
4778
+ "package": "himalaya",
4779
+ "type": "Text",
4780
+ "props": {
4781
+ "text": "Your public profile appears here after you sign in.",
4782
+ "style": "footnote",
4783
+ "color": "textSecondary"
4784
+ }
4785
+ }
4786
+ },
4787
+ {
4788
+ "id": "himi_view_profile.member_gate_signin",
4789
+ "body": {
4790
+ "package": "himalaya",
4791
+ "type": "Button",
4792
+ "props": {
4793
+ "title": "Sign in",
4794
+ "style": "primary",
4795
+ "fullWidth": true,
4796
+ "action": {
4797
+ "actionId": "himi.open",
4798
+ "params": {
4799
+ "screenId": "himi_account",
4800
+ "intent": "profile",
4801
+ "returnScreenId": "himi_view_profile"
4802
+ }
4803
+ }
4804
+ }
4805
+ }
4806
+ }
4807
+ ]
4706
4808
  }
4809
+ },
4810
+ "modifiers": {
4811
+ "background": {
4812
+ "token": "surfaceElevated"
4813
+ },
4814
+ "border": {
4815
+ "width": 1,
4816
+ "color": {
4817
+ "token": "border"
4818
+ }
4819
+ },
4820
+ "cornerRadius": 16,
4821
+ "padding": {
4822
+ "leading": 16,
4823
+ "trailing": 16,
4824
+ "top": 20,
4825
+ "bottom": 20
4826
+ },
4827
+ "fillMaxWidth": true,
4828
+ "hiddenPath": "$service:spacesViewProfile.noSignIn"
4707
4829
  }
4708
4830
  }
4709
4831
  ]
@@ -15640,63 +15762,211 @@ const SCREENS = runtimeSetting({
15640
15762
  "alignment": "leading",
15641
15763
  "children": [
15642
15764
  {
15643
- "id": "himi_plan.chrome",
15644
- "body": {
15645
- "package": "himalaya",
15646
- "type": "Text",
15647
- "props": {
15648
- "text": "Plan details",
15649
- "style": "title1"
15650
- }
15651
- }
15652
- },
15653
- {
15654
- "id": "himi_plan.title",
15765
+ "id": "",
15655
15766
  "body": {
15656
15767
  "package": "himalaya",
15657
- "type": "Text",
15768
+ "type": "VStack",
15658
15769
  "props": {
15659
- "text": "$service:spacesPlanDetail.name",
15660
- "style": "title1",
15661
- "collapseWhenEmpty": true
15770
+ "spacing": 8,
15771
+ "alignment": "leading",
15772
+ "children": [
15773
+ {
15774
+ "id": "himi_plan.chrome",
15775
+ "body": {
15776
+ "package": "himalaya",
15777
+ "type": "Text",
15778
+ "props": {
15779
+ "text": "Plan details",
15780
+ "style": "title1"
15781
+ }
15782
+ }
15783
+ },
15784
+ {
15785
+ "id": "himi_plan.title",
15786
+ "body": {
15787
+ "package": "himalaya",
15788
+ "type": "Text",
15789
+ "props": {
15790
+ "text": "$service:spacesPlanDetail.name",
15791
+ "style": "title1",
15792
+ "collapseWhenEmpty": true
15793
+ }
15794
+ }
15795
+ },
15796
+ {
15797
+ "id": "",
15798
+ "body": {
15799
+ "package": "himalaya",
15800
+ "type": "Text",
15801
+ "props": {
15802
+ "text": "$service:spacesPlanDetail.price",
15803
+ "style": "title3",
15804
+ "color": "accentPrimary",
15805
+ "collapseWhenEmpty": true
15806
+ }
15807
+ }
15808
+ },
15809
+ {
15810
+ "id": "",
15811
+ "body": {
15812
+ "package": "himalaya",
15813
+ "type": "Text",
15814
+ "props": {
15815
+ "text": "$service:spacesPlanDetail.description",
15816
+ "style": "body",
15817
+ "color": "textSecondary",
15818
+ "collapseWhenEmpty": true
15819
+ }
15820
+ }
15821
+ },
15822
+ {
15823
+ "id": "",
15824
+ "body": {
15825
+ "package": "himalaya",
15826
+ "type": "Text",
15827
+ "props": {
15828
+ "text": "$service:spacesPlanDetail.perks",
15829
+ "style": "body",
15830
+ "collapseWhenEmpty": true
15831
+ }
15832
+ }
15833
+ }
15834
+ ]
15662
15835
  }
15836
+ },
15837
+ "modifiers": {
15838
+ "hiddenPath": "$service:spacesPlanDetail.noEntity"
15663
15839
  }
15664
15840
  },
15665
15841
  {
15666
15842
  "id": "",
15667
15843
  "body": {
15668
15844
  "package": "himalaya",
15669
- "type": "Text",
15845
+ "type": "VStack",
15670
15846
  "props": {
15671
- "text": "$service:spacesPlanDetail.price",
15672
- "style": "title3",
15673
- "color": "accentPrimary",
15674
- "collapseWhenEmpty": true
15675
- }
15676
- }
15677
- },
15678
- {
15679
- "id": "",
15680
- "body": {
15681
- "package": "himalaya",
15682
- "type": "Text",
15683
- "props": {
15684
- "text": "$service:spacesPlanDetail.description",
15685
- "style": "body",
15686
- "color": "textSecondary",
15687
- "collapseWhenEmpty": true
15688
- }
15689
- }
15690
- },
15691
- {
15692
- "id": "",
15693
- "body": {
15694
- "package": "himalaya",
15695
- "type": "Text",
15696
- "props": {
15697
- "text": "$service:spacesPlanDetail.perks",
15698
- "style": "body",
15699
- "collapseWhenEmpty": true
15847
+ "spacing": 12,
15848
+ "alignment": "leading",
15849
+ "children": [
15850
+ {
15851
+ "id": "himi_plan.loading",
15852
+ "body": {
15853
+ "package": "himalaya",
15854
+ "type": "Text",
15855
+ "props": {
15856
+ "text": "Loading…",
15857
+ "style": "body",
15858
+ "color": "textSecondary"
15859
+ }
15860
+ },
15861
+ "modifiers": {
15862
+ "hiddenPath": "$service:spacesPlanDetail.hideLoading"
15863
+ }
15864
+ },
15865
+ {
15866
+ "id": "himi_plan.load_error",
15867
+ "body": {
15868
+ "package": "himalaya",
15869
+ "type": "Text",
15870
+ "props": {
15871
+ "text": "This couldn't be loaded. Check your connection and try again.",
15872
+ "style": "body",
15873
+ "color": "textSecondary"
15874
+ }
15875
+ },
15876
+ "modifiers": {
15877
+ "hiddenPath": "$service:spacesPlanDetail.hideLoadError"
15878
+ }
15879
+ },
15880
+ {
15881
+ "id": "himi_plan.not_found",
15882
+ "body": {
15883
+ "package": "himalaya",
15884
+ "type": "VStack",
15885
+ "props": {
15886
+ "spacing": 10,
15887
+ "alignment": "center",
15888
+ "children": [
15889
+ {
15890
+ "id": "",
15891
+ "body": {
15892
+ "package": "himalaya",
15893
+ "type": "Icon",
15894
+ "props": {
15895
+ "name": "ticket",
15896
+ "size": 32,
15897
+ "tint": "textTertiary"
15898
+ }
15899
+ },
15900
+ "modifiers": {
15901
+ "accessibilityRole": "decorative"
15902
+ }
15903
+ },
15904
+ {
15905
+ "id": "himi_plan.not_found_title",
15906
+ "body": {
15907
+ "package": "himalaya",
15908
+ "type": "Text",
15909
+ "props": {
15910
+ "text": "Plan not found",
15911
+ "style": "title3"
15912
+ }
15913
+ }
15914
+ },
15915
+ {
15916
+ "id": "",
15917
+ "body": {
15918
+ "package": "himalaya",
15919
+ "type": "Text",
15920
+ "props": {
15921
+ "text": "This plan is no longer available.",
15922
+ "style": "body",
15923
+ "color": "textSecondary"
15924
+ }
15925
+ }
15926
+ },
15927
+ {
15928
+ "id": "himi_plan.not_found_back",
15929
+ "body": {
15930
+ "package": "himalaya",
15931
+ "type": "Button",
15932
+ "props": {
15933
+ "title": "Back to plans",
15934
+ "style": "primary",
15935
+ "fullWidth": true,
15936
+ "action": {
15937
+ "actionId": "himi.open",
15938
+ "params": {
15939
+ "screenId": "himi_plans"
15940
+ }
15941
+ }
15942
+ }
15943
+ }
15944
+ }
15945
+ ]
15946
+ }
15947
+ },
15948
+ "modifiers": {
15949
+ "background": {
15950
+ "token": "surfaceElevated"
15951
+ },
15952
+ "border": {
15953
+ "width": 1,
15954
+ "color": {
15955
+ "token": "border"
15956
+ }
15957
+ },
15958
+ "cornerRadius": 16,
15959
+ "padding": {
15960
+ "leading": 16,
15961
+ "trailing": 16,
15962
+ "top": 20,
15963
+ "bottom": 20
15964
+ },
15965
+ "fillMaxWidth": true,
15966
+ "hiddenPath": "$service:spacesPlanDetail.hideNotFound"
15967
+ }
15968
+ }
15969
+ ]
15700
15970
  }
15701
15971
  }
15702
15972
  }
@@ -15941,65 +16211,213 @@ const SCREENS = runtimeSetting({
15941
16211
  "spacing": 8,
15942
16212
  "alignment": "leading",
15943
16213
  "children": [
15944
- {
15945
- "id": "himi_subscription.chrome",
15946
- "body": {
15947
- "package": "himalaya",
15948
- "type": "Text",
15949
- "props": {
15950
- "text": "Subscription",
15951
- "style": "title1"
15952
- }
15953
- }
15954
- },
15955
- {
15956
- "id": "himi_subscription.title",
15957
- "body": {
15958
- "package": "himalaya",
15959
- "type": "Text",
15960
- "props": {
15961
- "text": "$service:spacesSubscriptionDetail.name",
15962
- "style": "title1",
15963
- "collapseWhenEmpty": true
15964
- }
15965
- }
15966
- },
15967
16214
  {
15968
16215
  "id": "",
15969
16216
  "body": {
15970
16217
  "package": "himalaya",
15971
- "type": "Text",
15972
- "props": {
15973
- "text": "$service:spacesSubscriptionDetail.subtitle",
15974
- "style": "footnote",
15975
- "color": "textSecondary",
15976
- "collapseWhenEmpty": true
15977
- }
15978
- }
15979
- },
15980
- {
15981
- "id": "",
15982
- "body": {
15983
- "package": "himalaya",
15984
- "type": "Text",
16218
+ "type": "VStack",
15985
16219
  "props": {
15986
- "text": "$service:spacesSubscriptionDetail.price",
15987
- "style": "title3",
15988
- "color": "accentPrimary",
15989
- "collapseWhenEmpty": true
16220
+ "spacing": 8,
16221
+ "alignment": "leading",
16222
+ "children": [
16223
+ {
16224
+ "id": "himi_subscription.chrome",
16225
+ "body": {
16226
+ "package": "himalaya",
16227
+ "type": "Text",
16228
+ "props": {
16229
+ "text": "Subscription",
16230
+ "style": "title1"
16231
+ }
16232
+ }
16233
+ },
16234
+ {
16235
+ "id": "himi_subscription.title",
16236
+ "body": {
16237
+ "package": "himalaya",
16238
+ "type": "Text",
16239
+ "props": {
16240
+ "text": "$service:spacesSubscriptionDetail.name",
16241
+ "style": "title1",
16242
+ "collapseWhenEmpty": true
16243
+ }
16244
+ }
16245
+ },
16246
+ {
16247
+ "id": "",
16248
+ "body": {
16249
+ "package": "himalaya",
16250
+ "type": "Text",
16251
+ "props": {
16252
+ "text": "$service:spacesSubscriptionDetail.subtitle",
16253
+ "style": "footnote",
16254
+ "color": "textSecondary",
16255
+ "collapseWhenEmpty": true
16256
+ }
16257
+ }
16258
+ },
16259
+ {
16260
+ "id": "",
16261
+ "body": {
16262
+ "package": "himalaya",
16263
+ "type": "Text",
16264
+ "props": {
16265
+ "text": "$service:spacesSubscriptionDetail.price",
16266
+ "style": "title3",
16267
+ "color": "accentPrimary",
16268
+ "collapseWhenEmpty": true
16269
+ }
16270
+ }
16271
+ },
16272
+ {
16273
+ "id": "",
16274
+ "body": {
16275
+ "package": "himalaya",
16276
+ "type": "Text",
16277
+ "props": {
16278
+ "text": "$service:spacesSubscriptionDetail.validity",
16279
+ "style": "footnote",
16280
+ "color": "textSecondary",
16281
+ "collapseWhenEmpty": true
16282
+ }
16283
+ }
16284
+ }
16285
+ ]
15990
16286
  }
16287
+ },
16288
+ "modifiers": {
16289
+ "hiddenPath": "$service:spacesSubscriptionDetail.noEntity"
15991
16290
  }
15992
16291
  },
15993
16292
  {
15994
16293
  "id": "",
15995
16294
  "body": {
15996
16295
  "package": "himalaya",
15997
- "type": "Text",
16296
+ "type": "VStack",
15998
16297
  "props": {
15999
- "text": "$service:spacesSubscriptionDetail.validity",
16000
- "style": "footnote",
16001
- "color": "textSecondary",
16002
- "collapseWhenEmpty": true
16298
+ "spacing": 12,
16299
+ "alignment": "leading",
16300
+ "children": [
16301
+ {
16302
+ "id": "himi_subscription.loading",
16303
+ "body": {
16304
+ "package": "himalaya",
16305
+ "type": "Text",
16306
+ "props": {
16307
+ "text": "Loading…",
16308
+ "style": "body",
16309
+ "color": "textSecondary"
16310
+ }
16311
+ },
16312
+ "modifiers": {
16313
+ "hiddenPath": "$service:spacesSubscriptionDetail.hideLoading"
16314
+ }
16315
+ },
16316
+ {
16317
+ "id": "himi_subscription.load_error",
16318
+ "body": {
16319
+ "package": "himalaya",
16320
+ "type": "Text",
16321
+ "props": {
16322
+ "text": "This couldn't be loaded. Check your connection and try again.",
16323
+ "style": "body",
16324
+ "color": "textSecondary"
16325
+ }
16326
+ },
16327
+ "modifiers": {
16328
+ "hiddenPath": "$service:spacesSubscriptionDetail.hideLoadError"
16329
+ }
16330
+ },
16331
+ {
16332
+ "id": "himi_subscription.not_found",
16333
+ "body": {
16334
+ "package": "himalaya",
16335
+ "type": "VStack",
16336
+ "props": {
16337
+ "spacing": 10,
16338
+ "alignment": "center",
16339
+ "children": [
16340
+ {
16341
+ "id": "",
16342
+ "body": {
16343
+ "package": "himalaya",
16344
+ "type": "Icon",
16345
+ "props": {
16346
+ "name": "ticket",
16347
+ "size": 32,
16348
+ "tint": "textTertiary"
16349
+ }
16350
+ },
16351
+ "modifiers": {
16352
+ "accessibilityRole": "decorative"
16353
+ }
16354
+ },
16355
+ {
16356
+ "id": "himi_subscription.not_found_title",
16357
+ "body": {
16358
+ "package": "himalaya",
16359
+ "type": "Text",
16360
+ "props": {
16361
+ "text": "Subscription not found",
16362
+ "style": "title3"
16363
+ }
16364
+ }
16365
+ },
16366
+ {
16367
+ "id": "",
16368
+ "body": {
16369
+ "package": "himalaya",
16370
+ "type": "Text",
16371
+ "props": {
16372
+ "text": "This subscription is no longer available.",
16373
+ "style": "body",
16374
+ "color": "textSecondary"
16375
+ }
16376
+ }
16377
+ },
16378
+ {
16379
+ "id": "himi_subscription.not_found_back",
16380
+ "body": {
16381
+ "package": "himalaya",
16382
+ "type": "Button",
16383
+ "props": {
16384
+ "title": "Back to my subscriptions",
16385
+ "style": "primary",
16386
+ "fullWidth": true,
16387
+ "action": {
16388
+ "actionId": "himi.open",
16389
+ "params": {
16390
+ "screenId": "himi_my_subscriptions"
16391
+ }
16392
+ }
16393
+ }
16394
+ }
16395
+ }
16396
+ ]
16397
+ }
16398
+ },
16399
+ "modifiers": {
16400
+ "background": {
16401
+ "token": "surfaceElevated"
16402
+ },
16403
+ "border": {
16404
+ "width": 1,
16405
+ "color": {
16406
+ "token": "border"
16407
+ }
16408
+ },
16409
+ "cornerRadius": 16,
16410
+ "padding": {
16411
+ "leading": 16,
16412
+ "trailing": 16,
16413
+ "top": 20,
16414
+ "bottom": 20
16415
+ },
16416
+ "fillMaxWidth": true,
16417
+ "hiddenPath": "$service:spacesSubscriptionDetail.hideNotFound"
16418
+ }
16419
+ }
16420
+ ]
16003
16421
  }
16004
16422
  }
16005
16423
  }
@@ -16062,65 +16480,172 @@ const SCREENS = runtimeSetting({
16062
16480
  }
16063
16481
  },
16064
16482
  {
16065
- "id": "",
16066
- "body": {
16067
- "package": "himalaya",
16068
- "type": "Text",
16069
- "props": {
16070
- "text": "$service:spacesCreatePost.hint",
16071
- "style": "footnote",
16072
- "color": "textSecondary",
16073
- "collapseWhenEmpty": true
16074
- }
16075
- }
16076
- },
16077
- {
16078
- "id": "himi_create_post.title_field",
16483
+ "id": "himi_create_post.member_gate",
16079
16484
  "body": {
16080
16485
  "package": "himalaya",
16081
- "type": "TextField",
16486
+ "type": "VStack",
16082
16487
  "props": {
16083
- "placeholder": "Title",
16084
- "value": "",
16085
- "submitLabel": "next",
16086
- "onSubmit": {
16087
- "actionId": "tier5.spacesCreatePost.focusBody"
16088
- },
16089
- "onChange": {
16090
- "actionId": "tier5.spacesCreatePost.setTitle"
16091
- }
16488
+ "spacing": 10,
16489
+ "alignment": "center",
16490
+ "children": [
16491
+ {
16492
+ "id": "",
16493
+ "body": {
16494
+ "package": "himalaya",
16495
+ "type": "Icon",
16496
+ "props": {
16497
+ "name": "person",
16498
+ "size": 28,
16499
+ "tint": "accentPrimary"
16500
+ }
16501
+ },
16502
+ "modifiers": {
16503
+ "accessibilityRole": "decorative"
16504
+ }
16505
+ },
16506
+ {
16507
+ "id": "himi_create_post.member_gate_title",
16508
+ "body": {
16509
+ "package": "himalaya",
16510
+ "type": "Text",
16511
+ "props": {
16512
+ "text": "Sign in to post",
16513
+ "style": "bodyEmphasis"
16514
+ }
16515
+ }
16516
+ },
16517
+ {
16518
+ "id": "",
16519
+ "body": {
16520
+ "package": "himalaya",
16521
+ "type": "Text",
16522
+ "props": {
16523
+ "text": "Sign in to share something with the community.",
16524
+ "style": "footnote",
16525
+ "color": "textSecondary"
16526
+ }
16527
+ }
16528
+ },
16529
+ {
16530
+ "id": "himi_create_post.member_gate_signin",
16531
+ "body": {
16532
+ "package": "himalaya",
16533
+ "type": "Button",
16534
+ "props": {
16535
+ "title": "Sign in",
16536
+ "style": "primary",
16537
+ "fullWidth": true,
16538
+ "action": {
16539
+ "actionId": "himi.open",
16540
+ "params": {
16541
+ "screenId": "himi_account",
16542
+ "intent": "post",
16543
+ "returnScreenId": "himi_create_post"
16544
+ }
16545
+ }
16546
+ }
16547
+ }
16548
+ }
16549
+ ]
16092
16550
  }
16093
- }
16094
- },
16095
- {
16096
- "id": "himi_create_post.body_field",
16097
- "body": {
16098
- "package": "himalaya",
16099
- "type": "TextField",
16100
- "props": {
16101
- "placeholder": "Write something…",
16102
- "value": "",
16103
- "multilineMaxLines": 6,
16104
- "focusPath": "$service:spacesCreatePost.bodyFocus",
16105
- "onChange": {
16106
- "actionId": "tier5.spacesCreatePost.setBody"
16551
+ },
16552
+ "modifiers": {
16553
+ "background": {
16554
+ "token": "surfaceElevated"
16555
+ },
16556
+ "border": {
16557
+ "width": 1,
16558
+ "color": {
16559
+ "token": "border"
16107
16560
  }
16108
- }
16561
+ },
16562
+ "cornerRadius": 16,
16563
+ "padding": {
16564
+ "leading": 16,
16565
+ "trailing": 16,
16566
+ "top": 20,
16567
+ "bottom": 20
16568
+ },
16569
+ "fillMaxWidth": true,
16570
+ "hiddenPath": "$service:spacesCreatePost.noSignIn"
16109
16571
  }
16110
16572
  },
16111
16573
  {
16112
- "id": "himi_create_post.submit",
16574
+ "id": "",
16113
16575
  "body": {
16114
16576
  "package": "himalaya",
16115
- "type": "Button",
16577
+ "type": "VStack",
16116
16578
  "props": {
16117
- "title": "Post",
16118
- "style": "primary",
16119
- "fullWidth": true,
16120
- "action": {
16121
- "actionId": "tier5.spacesCreatePost.submit"
16122
- }
16579
+ "spacing": 16,
16580
+ "alignment": "leading",
16581
+ "children": [
16582
+ {
16583
+ "id": "",
16584
+ "body": {
16585
+ "package": "himalaya",
16586
+ "type": "Text",
16587
+ "props": {
16588
+ "text": "$service:spacesCreatePost.hint",
16589
+ "style": "footnote",
16590
+ "color": "textSecondary",
16591
+ "collapseWhenEmpty": true
16592
+ }
16593
+ }
16594
+ },
16595
+ {
16596
+ "id": "himi_create_post.title_field",
16597
+ "body": {
16598
+ "package": "himalaya",
16599
+ "type": "TextField",
16600
+ "props": {
16601
+ "placeholder": "Title",
16602
+ "value": "",
16603
+ "submitLabel": "next",
16604
+ "onSubmit": {
16605
+ "actionId": "tier5.spacesCreatePost.focusBody"
16606
+ },
16607
+ "onChange": {
16608
+ "actionId": "tier5.spacesCreatePost.setTitle"
16609
+ }
16610
+ }
16611
+ }
16612
+ },
16613
+ {
16614
+ "id": "himi_create_post.body_field",
16615
+ "body": {
16616
+ "package": "himalaya",
16617
+ "type": "TextField",
16618
+ "props": {
16619
+ "placeholder": "Write something…",
16620
+ "value": "",
16621
+ "multilineMaxLines": 6,
16622
+ "focusPath": "$service:spacesCreatePost.bodyFocus",
16623
+ "onChange": {
16624
+ "actionId": "tier5.spacesCreatePost.setBody"
16625
+ }
16626
+ }
16627
+ }
16628
+ },
16629
+ {
16630
+ "id": "himi_create_post.submit",
16631
+ "body": {
16632
+ "package": "himalaya",
16633
+ "type": "Button",
16634
+ "props": {
16635
+ "title": "Post",
16636
+ "style": "primary",
16637
+ "fullWidth": true,
16638
+ "action": {
16639
+ "actionId": "tier5.spacesCreatePost.submit"
16640
+ }
16641
+ }
16642
+ }
16643
+ }
16644
+ ]
16123
16645
  }
16646
+ },
16647
+ "modifiers": {
16648
+ "hiddenPath": "$service:spacesCreatePost.hideForm"
16124
16649
  }
16125
16650
  }
16126
16651
  ]
@@ -16135,6 +16660,9 @@ const SCREENS = runtimeSetting({
16135
16660
  "trailing": 16,
16136
16661
  "top": 18,
16137
16662
  "bottom": 28
16663
+ },
16664
+ "onAppear": {
16665
+ "actionId": "tier5.spacesCreatePost.load"
16138
16666
  }
16139
16667
  }
16140
16668
  },