@wix/himalaya-cli 0.1497.0 → 0.1498.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 (72) hide show
  1. package/dist/cli.mjs +1 -0
  2. package/guides/sdk-reference.json +27 -376
  3. package/package.json +2 -2
  4. package/templates/beauty-salon-owner/dev/index.ts +571 -0
  5. package/templates/beauty-salon-owner/himalaya.content.json +6 -0
  6. package/templates/beauty-salon-owner/tier5-src/_shared/owner-today-rollup.ts +307 -0
  7. package/templates/beauty-salon-owner/tier5-src/_shared/owner-widget-reads.ts +23 -0
  8. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-today/index.ts +8 -20
  9. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-today-rollup/index.ts +121 -0
  10. package/templates/branded-lite/dev/index.ts +560 -198
  11. package/templates/branded-lite/tier5-src/_shared/business-chat-presenter.ts +46 -8
  12. package/templates/branded-lite/tier5-src/business-chat/index.ts +3 -2
  13. package/templates/community-club-owner/dev/index.ts +571 -0
  14. package/templates/community-club-owner/himalaya.content.json +6 -0
  15. package/templates/community-club-owner/tier5-src/_shared/owner-today-rollup.ts +307 -0
  16. package/templates/community-club-owner/tier5-src/_shared/owner-widget-reads.ts +23 -0
  17. package/templates/community-club-owner/tier5-src/himi-owner-lite-today/index.ts +8 -20
  18. package/templates/community-club-owner/tier5-src/himi-owner-lite-today-rollup/index.ts +121 -0
  19. package/templates/events-meetups-owner/dev/index.ts +571 -0
  20. package/templates/events-meetups-owner/himalaya.content.json +6 -0
  21. package/templates/events-meetups-owner/tier5-src/_shared/owner-today-rollup.ts +307 -0
  22. package/templates/events-meetups-owner/tier5-src/_shared/owner-widget-reads.ts +23 -0
  23. package/templates/events-meetups-owner/tier5-src/himi-owner-lite-today/index.ts +8 -20
  24. package/templates/events-meetups-owner/tier5-src/himi-owner-lite-today-rollup/index.ts +121 -0
  25. package/templates/gym-fitness-owner/dev/index.ts +571 -0
  26. package/templates/gym-fitness-owner/himalaya.content.json +6 -0
  27. package/templates/gym-fitness-owner/tier5-src/_shared/owner-today-rollup.ts +307 -0
  28. package/templates/gym-fitness-owner/tier5-src/_shared/owner-widget-reads.ts +23 -0
  29. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-today/index.ts +8 -20
  30. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-today-rollup/index.ts +121 -0
  31. package/templates/nonprofit-cause-owner/dev/index.ts +571 -0
  32. package/templates/nonprofit-cause-owner/himalaya.content.json +6 -0
  33. package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-today-rollup.ts +307 -0
  34. package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-widget-reads.ts +23 -0
  35. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-today/index.ts +8 -20
  36. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-today-rollup/index.ts +121 -0
  37. package/templates/owner-lite/dev/index.ts +571 -0
  38. package/templates/owner-lite/himalaya.content.json +6 -0
  39. package/templates/owner-lite/tier5-src/_shared/owner-today-rollup.ts +307 -0
  40. package/templates/owner-lite/tier5-src/_shared/owner-widget-reads.ts +23 -0
  41. package/templates/owner-lite/tier5-src/himi-owner-lite-today/index.ts +8 -20
  42. package/templates/owner-lite/tier5-src/himi-owner-lite-today-rollup/index.ts +121 -0
  43. package/templates/podcast-creator-owner/dev/index.ts +571 -0
  44. package/templates/podcast-creator-owner/himalaya.content.json +6 -0
  45. package/templates/podcast-creator-owner/tier5-src/_shared/owner-today-rollup.ts +307 -0
  46. package/templates/podcast-creator-owner/tier5-src/_shared/owner-widget-reads.ts +23 -0
  47. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-today/index.ts +8 -20
  48. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-today-rollup/index.ts +121 -0
  49. package/templates/portfolio-creative-owner/dev/index.ts +571 -0
  50. package/templates/portfolio-creative-owner/himalaya.content.json +6 -0
  51. package/templates/portfolio-creative-owner/tier5-src/_shared/owner-today-rollup.ts +307 -0
  52. package/templates/portfolio-creative-owner/tier5-src/_shared/owner-widget-reads.ts +23 -0
  53. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-today/index.ts +8 -20
  54. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-today-rollup/index.ts +121 -0
  55. package/templates/restaurant-owner/dev/index.ts +571 -0
  56. package/templates/restaurant-owner/himalaya.content.json +6 -0
  57. package/templates/restaurant-owner/tier5-src/_shared/owner-today-rollup.ts +307 -0
  58. package/templates/restaurant-owner/tier5-src/_shared/owner-widget-reads.ts +23 -0
  59. package/templates/restaurant-owner/tier5-src/himi-owner-lite-today/index.ts +8 -20
  60. package/templates/restaurant-owner/tier5-src/himi-owner-lite-today-rollup/index.ts +121 -0
  61. package/templates/retail-store-owner/dev/index.ts +571 -0
  62. package/templates/retail-store-owner/himalaya.content.json +6 -0
  63. package/templates/retail-store-owner/tier5-src/_shared/owner-today-rollup.ts +307 -0
  64. package/templates/retail-store-owner/tier5-src/_shared/owner-widget-reads.ts +23 -0
  65. package/templates/retail-store-owner/tier5-src/himi-owner-lite-today/index.ts +8 -20
  66. package/templates/retail-store-owner/tier5-src/himi-owner-lite-today-rollup/index.ts +121 -0
  67. package/templates/yoga-studio-owner/dev/index.ts +571 -0
  68. package/templates/yoga-studio-owner/himalaya.content.json +6 -0
  69. package/templates/yoga-studio-owner/tier5-src/_shared/owner-today-rollup.ts +307 -0
  70. package/templates/yoga-studio-owner/tier5-src/_shared/owner-widget-reads.ts +23 -0
  71. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-today/index.ts +8 -20
  72. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-today-rollup/index.ts +121 -0
@@ -88687,105 +88687,28 @@ const SCREENS = runtimeSetting({
88687
88687
  }
88688
88688
  },
88689
88689
  {
88690
- "id": "himi_business_chat.incoming_bubble_$item.id",
88690
+ "id": "himi_business_chat.incoming_message_$item.id",
88691
88691
  "body": {
88692
88692
  "package": "himalaya",
88693
88693
  "type": "VStack",
88694
88694
  "props": {
88695
88695
  "children": [
88696
88696
  {
88697
- "id": "himi_business_chat.incoming_sender_$item.id",
88698
- "body": {
88699
- "package": "himalaya",
88700
- "type": "Text",
88701
- "props": {
88702
- "text": "$item.senderName",
88703
- "style": "caption",
88704
- "color": "accentPrimary",
88705
- "collapseWhenEmpty": true,
88706
- "textDirection": "auto"
88707
- }
88708
- },
88709
- "modifiers": {}
88710
- },
88711
- {
88712
- "id": "himi_business_chat.staff_badge_$item.id",
88713
- "body": {
88714
- "package": "himalaya",
88715
- "type": "Text",
88716
- "props": {
88717
- "text": "$item.senderBadge",
88718
- "style": "caption",
88719
- "color": "accentPrimary",
88720
- "collapseWhenEmpty": true
88721
- }
88722
- },
88723
- "modifiers": {
88724
- "background": {
88725
- "token": "accentSurface"
88726
- },
88727
- "cornerRadius": 8,
88728
- "padding": {
88729
- "leading": 8,
88730
- "trailing": 8,
88731
- "top": 3,
88732
- "bottom": 3
88733
- }
88734
- }
88735
- },
88736
- {
88737
- "id": "himi_business_chat.incoming_attachment_$item.id",
88738
- "body": {
88739
- "package": "himalaya",
88740
- "type": "Image",
88741
- "props": {
88742
- "url": "$item.imageUrl",
88743
- "fillWidth": true,
88744
- "aspectRatio": 1.5,
88745
- "contentMode": "fit",
88746
- "contentDescription": "$item.imageDescription"
88747
- }
88748
- },
88749
- "modifiers": {
88750
- "fillMaxWidth": true,
88751
- "cornerRadius": 12,
88752
- "accessibilityLabel": "$item.imageDescription",
88753
- "hiddenPath": "$item.noImage"
88754
- }
88755
- },
88756
- {
88757
- "id": "himi_business_chat.incoming_text_$item.id",
88758
- "body": {
88759
- "package": "himalaya",
88760
- "type": "Text",
88761
- "props": {
88762
- "text": "$item.bodyMarkdown",
88763
- "style": "body",
88764
- "color": "textPrimary",
88765
- "collapseWhenEmpty": true,
88766
- "textDirection": "auto",
88767
- "markdown": true,
88768
- "maxLines": 1000
88769
- }
88770
- },
88771
- "modifiers": {}
88772
- },
88773
- {
88774
- "id": "himi_business_chat.coupon_$item.id",
88697
+ "id": "himi_business_chat.incoming_bubble_$item.id",
88775
88698
  "body": {
88776
88699
  "package": "himalaya",
88777
88700
  "type": "VStack",
88778
88701
  "props": {
88779
88702
  "children": [
88780
88703
  {
88781
- "id": "himi_business_chat.coupon_label_$item.id",
88704
+ "id": "himi_business_chat.incoming_sender_$item.id",
88782
88705
  "body": {
88783
88706
  "package": "himalaya",
88784
88707
  "type": "Text",
88785
88708
  "props": {
88786
- "text": "Coupon code",
88709
+ "text": "$item.senderName",
88787
88710
  "style": "caption",
88788
- "color": "textSecondary",
88711
+ "color": "accentPrimary",
88789
88712
  "collapseWhenEmpty": true,
88790
88713
  "textDirection": "auto"
88791
88714
  }
@@ -88793,14 +88716,236 @@ const SCREENS = runtimeSetting({
88793
88716
  "modifiers": {}
88794
88717
  },
88795
88718
  {
88796
- "id": "himi_business_chat.coupon_code_$item.id",
88719
+ "id": "himi_business_chat.staff_badge_$item.id",
88797
88720
  "body": {
88798
88721
  "package": "himalaya",
88799
88722
  "type": "Text",
88800
88723
  "props": {
88801
- "text": "$item.couponCode",
88802
- "style": "title3",
88724
+ "text": "$item.senderBadge",
88725
+ "style": "caption",
88803
88726
  "color": "accentPrimary",
88727
+ "collapseWhenEmpty": true
88728
+ }
88729
+ },
88730
+ "modifiers": {
88731
+ "background": {
88732
+ "token": "accentSurface"
88733
+ },
88734
+ "cornerRadius": 12,
88735
+ "padding": {
88736
+ "leading": 10,
88737
+ "trailing": 10,
88738
+ "top": 3,
88739
+ "bottom": 3
88740
+ }
88741
+ }
88742
+ },
88743
+ {
88744
+ "id": "himi_business_chat.incoming_attachment_$item.id",
88745
+ "body": {
88746
+ "package": "himalaya",
88747
+ "type": "Image",
88748
+ "props": {
88749
+ "url": "$item.imageUrl",
88750
+ "fillWidth": true,
88751
+ "aspectRatio": 1.5,
88752
+ "contentMode": "fit",
88753
+ "contentDescription": "$item.imageDescription"
88754
+ }
88755
+ },
88756
+ "modifiers": {
88757
+ "fillMaxWidth": true,
88758
+ "cornerRadius": 12,
88759
+ "accessibilityLabel": "$item.imageDescription",
88760
+ "hiddenPath": "$item.noImage"
88761
+ }
88762
+ },
88763
+ {
88764
+ "id": "himi_business_chat.incoming_text_$item.id",
88765
+ "body": {
88766
+ "package": "himalaya",
88767
+ "type": "Text",
88768
+ "props": {
88769
+ "text": "$item.bodyMarkdown",
88770
+ "style": "body",
88771
+ "color": "textPrimary",
88772
+ "collapseWhenEmpty": true,
88773
+ "textDirection": "auto",
88774
+ "markdown": true,
88775
+ "maxLines": 1000
88776
+ }
88777
+ },
88778
+ "modifiers": {}
88779
+ },
88780
+ {
88781
+ "id": "himi_business_chat.article_actions_$item.id",
88782
+ "body": {
88783
+ "package": "himalaya",
88784
+ "type": "LazyList",
88785
+ "props": {
88786
+ "itemsPath": "$item.articleActions",
88787
+ "items": [
88788
+ {
88789
+ "id": "himi_business_chat.article_action_$item.id",
88790
+ "body": {
88791
+ "package": "himalaya",
88792
+ "type": "Button",
88793
+ "props": {
88794
+ "title": "$item.label",
88795
+ "style": "secondary",
88796
+ "size": "sm",
88797
+ "fullWidth": false,
88798
+ "action": {
88799
+ "actionId": "capability.open_url.open",
88800
+ "params": {
88801
+ "url": "$item.url"
88802
+ }
88803
+ }
88804
+ }
88805
+ },
88806
+ "modifiers": {}
88807
+ }
88808
+ ],
88809
+ "spacing": 6
88810
+ }
88811
+ },
88812
+ "modifiers": {
88813
+ "fillMaxWidth": true
88814
+ }
88815
+ },
88816
+ {
88817
+ "id": "himi_business_chat.suggestions_$item.id",
88818
+ "body": {
88819
+ "package": "himalaya",
88820
+ "type": "LazyList",
88821
+ "props": {
88822
+ "itemsPath": "$item.suggestions",
88823
+ "items": [
88824
+ {
88825
+ "id": "himi_business_chat.suggestion.item.$item.id",
88826
+ "body": {
88827
+ "package": "himalaya",
88828
+ "type": "VStack",
88829
+ "props": {
88830
+ "children": [
88831
+ {
88832
+ "id": "himi_business_chat.suggestion.live.$item.id",
88833
+ "body": {
88834
+ "package": "himalaya",
88835
+ "type": "VStack",
88836
+ "props": {
88837
+ "children": [
88838
+ {
88839
+ "id": "himi_business_chat.suggestion.chiplabel.$item.id",
88840
+ "body": {
88841
+ "package": "himalaya",
88842
+ "type": "Text",
88843
+ "props": {
88844
+ "text": "$item.label",
88845
+ "style": "body",
88846
+ "color": "accentPrimary",
88847
+ "collapseWhenEmpty": true,
88848
+ "textDirection": "auto"
88849
+ }
88850
+ },
88851
+ "modifiers": {}
88852
+ }
88853
+ ],
88854
+ "spacing": 0,
88855
+ "alignment": "leading"
88856
+ }
88857
+ },
88858
+ "modifiers": {
88859
+ "fillMaxWidth": true,
88860
+ "cornerRadius": 16,
88861
+ "padding": {
88862
+ "leading": 14,
88863
+ "trailing": 14,
88864
+ "top": 10,
88865
+ "bottom": 10
88866
+ },
88867
+ "background": {
88868
+ "token": "accentSurface"
88869
+ },
88870
+ "accessibilityRole": "button",
88871
+ "accessibilityLabel": "$item.label",
88872
+ "onTap": {
88873
+ "actionId": "tier5.businessChat.sendSuggestion",
88874
+ "params": {
88875
+ "id": "$item.id"
88876
+ }
88877
+ },
88878
+ "hiddenPath": "$item.disabled"
88879
+ }
88880
+ },
88881
+ {
88882
+ "id": "himi_business_chat.suggestion.used.$item.id",
88883
+ "body": {
88884
+ "package": "himalaya",
88885
+ "type": "VStack",
88886
+ "props": {
88887
+ "children": [
88888
+ {
88889
+ "id": "himi_business_chat.suggestion.usedlabel.$item.id",
88890
+ "body": {
88891
+ "package": "himalaya",
88892
+ "type": "Text",
88893
+ "props": {
88894
+ "text": "$item.label",
88895
+ "style": "body",
88896
+ "color": "textSecondary",
88897
+ "collapseWhenEmpty": true,
88898
+ "textDirection": "auto"
88899
+ }
88900
+ },
88901
+ "modifiers": {}
88902
+ }
88903
+ ],
88904
+ "spacing": 0,
88905
+ "alignment": "leading"
88906
+ }
88907
+ },
88908
+ "modifiers": {
88909
+ "fillMaxWidth": true,
88910
+ "cornerRadius": 16,
88911
+ "padding": {
88912
+ "leading": 14,
88913
+ "trailing": 14,
88914
+ "top": 10,
88915
+ "bottom": 10
88916
+ },
88917
+ "background": {
88918
+ "token": "surfaceElevated"
88919
+ },
88920
+ "hiddenPath": "$item.enabled"
88921
+ }
88922
+ }
88923
+ ],
88924
+ "spacing": 0,
88925
+ "alignment": "leading"
88926
+ }
88927
+ },
88928
+ "modifiers": {
88929
+ "fillMaxWidth": true
88930
+ }
88931
+ }
88932
+ ],
88933
+ "spacing": 6
88934
+ }
88935
+ },
88936
+ "modifiers": {
88937
+ "fillMaxWidth": true
88938
+ }
88939
+ },
88940
+ {
88941
+ "id": "himi_business_chat.incoming_time_$item.id",
88942
+ "body": {
88943
+ "package": "himalaya",
88944
+ "type": "Text",
88945
+ "props": {
88946
+ "text": "$item.when",
88947
+ "style": "caption",
88948
+ "color": "textSecondary",
88804
88949
  "collapseWhenEmpty": true,
88805
88950
  "textDirection": "auto"
88806
88951
  }
@@ -88808,224 +88953,441 @@ const SCREENS = runtimeSetting({
88808
88953
  "modifiers": {}
88809
88954
  }
88810
88955
  ],
88811
- "spacing": 2,
88812
- "alignment": "center"
88956
+ "spacing": 7,
88957
+ "alignment": "leading"
88813
88958
  }
88814
88959
  },
88815
88960
  "modifiers": {
88816
88961
  "fillMaxWidth": true,
88817
88962
  "background": {
88818
- "token": "accentSurface"
88963
+ "token": "surfaceElevated"
88819
88964
  },
88820
- "cornerRadius": 12,
88821
88965
  "border": {
88822
88966
  "width": 1,
88823
88967
  "color": {
88824
- "token": "accentPrimary"
88968
+ "token": "border"
88825
88969
  }
88826
88970
  },
88971
+ "cornerRadius": 16,
88827
88972
  "padding": {
88828
- "leading": 14,
88829
- "trailing": 14,
88973
+ "leading": 10,
88974
+ "trailing": 10,
88830
88975
  "top": 10,
88831
88976
  "bottom": 10
88832
88977
  },
88833
- "hiddenPath": "$item.noCoupon"
88978
+ "maxWidth": 360,
88979
+ "hiddenPath": "$item.isCard"
88834
88980
  }
88835
88981
  },
88836
88982
  {
88837
- "id": "himi_business_chat.article_actions_$item.id",
88983
+ "id": "himi_business_chat.card_$item.id",
88838
88984
  "body": {
88839
88985
  "package": "himalaya",
88840
- "type": "LazyList",
88986
+ "type": "VStack",
88841
88987
  "props": {
88842
- "itemsPath": "$item.articleActions",
88843
- "items": [
88988
+ "children": [
88844
88989
  {
88845
- "id": "himi_business_chat.article_action_$item.id",
88990
+ "id": "himi_business_chat.card_sender_$item.id",
88846
88991
  "body": {
88847
88992
  "package": "himalaya",
88848
- "type": "Button",
88993
+ "type": "Text",
88849
88994
  "props": {
88850
- "title": "$item.label",
88851
- "style": "$item.style",
88852
- "size": "md",
88853
- "fullWidth": true,
88854
- "action": {
88855
- "actionId": "capability.open_url.open",
88856
- "params": {
88857
- "url": "$item.url"
88858
- }
88859
- }
88995
+ "text": "$item.senderName",
88996
+ "style": "caption",
88997
+ "color": "accentPrimary",
88998
+ "collapseWhenEmpty": true,
88999
+ "textDirection": "auto"
88860
89000
  }
88861
89001
  },
88862
89002
  "modifiers": {}
88863
- }
88864
- ],
88865
- "spacing": 6
88866
- }
88867
- },
88868
- "modifiers": {
88869
- "fillMaxWidth": true
88870
- }
88871
- },
88872
- {
88873
- "id": "himi_business_chat.suggestions_$item.id",
88874
- "body": {
88875
- "package": "himalaya",
88876
- "type": "LazyList",
88877
- "props": {
88878
- "itemsPath": "$item.suggestions",
88879
- "items": [
89003
+ },
88880
89004
  {
88881
- "id": "himi_business_chat.suggestion.item.$item.id",
89005
+ "id": "himi_business_chat.card_badge_$item.id",
89006
+ "body": {
89007
+ "package": "himalaya",
89008
+ "type": "Text",
89009
+ "props": {
89010
+ "text": "$item.senderBadge",
89011
+ "style": "caption",
89012
+ "color": "accentPrimary",
89013
+ "collapseWhenEmpty": true
89014
+ }
89015
+ },
89016
+ "modifiers": {
89017
+ "background": {
89018
+ "token": "accentSurface"
89019
+ },
89020
+ "cornerRadius": 12,
89021
+ "padding": {
89022
+ "leading": 10,
89023
+ "trailing": 10,
89024
+ "top": 3,
89025
+ "bottom": 3
89026
+ }
89027
+ }
89028
+ },
89029
+ {
89030
+ "id": "himi_business_chat.card_box_$item.id",
88882
89031
  "body": {
88883
89032
  "package": "himalaya",
88884
89033
  "type": "VStack",
88885
89034
  "props": {
88886
89035
  "children": [
88887
89036
  {
88888
- "id": "himi_business_chat.suggestion.live.$item.id",
89037
+ "id": "himi_business_chat.card_attachment_$item.id",
89038
+ "body": {
89039
+ "package": "himalaya",
89040
+ "type": "Image",
89041
+ "props": {
89042
+ "url": "$item.imageUrl",
89043
+ "fillWidth": true,
89044
+ "aspectRatio": 1.3333333333333333,
89045
+ "contentMode": "fill",
89046
+ "contentDescription": "$item.imageDescription"
89047
+ }
89048
+ },
89049
+ "modifiers": {
89050
+ "fillMaxWidth": true,
89051
+ "cornerRadius": 8,
89052
+ "accessibilityLabel": "$item.imageDescription",
89053
+ "hiddenPath": "$item.noImage"
89054
+ }
89055
+ },
89056
+ {
89057
+ "id": "himi_business_chat.card_text_$item.id",
88889
89058
  "body": {
88890
89059
  "package": "himalaya",
88891
89060
  "type": "VStack",
88892
89061
  "props": {
88893
89062
  "children": [
88894
89063
  {
88895
- "id": "himi_business_chat.suggestion.chiplabel.$item.id",
89064
+ "id": "himi_business_chat.card_title_$item.id",
88896
89065
  "body": {
88897
89066
  "package": "himalaya",
88898
89067
  "type": "Text",
88899
89068
  "props": {
88900
- "text": "$item.label",
89069
+ "text": "$item.cardTitle",
88901
89070
  "style": "body",
88902
- "color": "accentPrimary",
89071
+ "color": "textPrimary",
88903
89072
  "collapseWhenEmpty": true,
88904
- "textDirection": "auto"
89073
+ "textDirection": "auto",
89074
+ "textAlign": "center",
89075
+ "maxLines": 1000
89076
+ }
89077
+ },
89078
+ "modifiers": {}
89079
+ },
89080
+ {
89081
+ "id": "himi_business_chat.card_detail_$item.id",
89082
+ "body": {
89083
+ "package": "himalaya",
89084
+ "type": "Text",
89085
+ "props": {
89086
+ "text": "$item.cardDetail",
89087
+ "style": "body",
89088
+ "color": "textPrimary",
89089
+ "collapseWhenEmpty": true,
89090
+ "textDirection": "auto",
89091
+ "markdown": true,
89092
+ "textAlign": "center",
89093
+ "maxLines": 1000
88905
89094
  }
88906
89095
  },
88907
89096
  "modifiers": {}
88908
89097
  }
88909
89098
  ],
88910
- "spacing": 0,
88911
- "alignment": "leading"
89099
+ "spacing": 4,
89100
+ "alignment": "center"
88912
89101
  }
88913
89102
  },
88914
89103
  "modifiers": {
88915
89104
  "fillMaxWidth": true,
88916
- "cornerRadius": 16,
88917
- "padding": {
88918
- "leading": 14,
88919
- "trailing": 14,
88920
- "top": 10,
88921
- "bottom": 10
88922
- },
88923
- "background": {
88924
- "token": "accentSurface"
88925
- },
88926
- "accessibilityRole": "button",
88927
- "accessibilityLabel": "$item.label",
88928
- "onTap": {
88929
- "actionId": "tier5.businessChat.sendSuggestion",
88930
- "params": {
88931
- "id": "$item.id"
88932
- }
88933
- },
88934
- "hiddenPath": "$item.disabled"
89105
+ "hiddenPath": "$item.noCardText"
88935
89106
  }
88936
89107
  },
88937
89108
  {
88938
- "id": "himi_business_chat.suggestion.used.$item.id",
89109
+ "id": "himi_business_chat.coupon_$item.id",
88939
89110
  "body": {
88940
89111
  "package": "himalaya",
88941
89112
  "type": "VStack",
88942
89113
  "props": {
88943
89114
  "children": [
88944
89115
  {
88945
- "id": "himi_business_chat.suggestion.usedlabel.$item.id",
89116
+ "id": "himi_business_chat.coupon_label_$item.id",
88946
89117
  "body": {
88947
89118
  "package": "himalaya",
88948
89119
  "type": "Text",
88949
89120
  "props": {
88950
- "text": "$item.label",
88951
- "style": "body",
89121
+ "text": "Coupon code",
89122
+ "style": "caption",
88952
89123
  "color": "textSecondary",
88953
89124
  "collapseWhenEmpty": true,
88954
89125
  "textDirection": "auto"
88955
89126
  }
88956
89127
  },
88957
89128
  "modifiers": {}
89129
+ },
89130
+ {
89131
+ "id": "himi_business_chat.coupon_code_$item.id",
89132
+ "body": {
89133
+ "package": "himalaya",
89134
+ "type": "Text",
89135
+ "props": {
89136
+ "text": "$item.couponCode",
89137
+ "style": "title3",
89138
+ "color": "accentPrimary",
89139
+ "collapseWhenEmpty": true,
89140
+ "textDirection": "auto"
89141
+ }
89142
+ },
89143
+ "modifiers": {}
88958
89144
  }
88959
89145
  ],
88960
- "spacing": 0,
88961
- "alignment": "leading"
89146
+ "spacing": 2,
89147
+ "alignment": "center"
88962
89148
  }
88963
89149
  },
88964
89150
  "modifiers": {
88965
89151
  "fillMaxWidth": true,
88966
- "cornerRadius": 16,
89152
+ "background": {
89153
+ "token": "accentSurface"
89154
+ },
89155
+ "cornerRadius": 12,
89156
+ "border": {
89157
+ "width": 1,
89158
+ "color": {
89159
+ "token": "accentPrimary"
89160
+ }
89161
+ },
88967
89162
  "padding": {
88968
89163
  "leading": 14,
88969
89164
  "trailing": 14,
88970
89165
  "top": 10,
88971
89166
  "bottom": 10
88972
89167
  },
88973
- "background": {
88974
- "token": "surfaceElevated"
88975
- },
88976
- "hiddenPath": "$item.enabled"
89168
+ "hiddenPath": "$item.noCoupon"
89169
+ }
89170
+ },
89171
+ {
89172
+ "id": "himi_business_chat.card_actions_$item.id",
89173
+ "body": {
89174
+ "package": "himalaya",
89175
+ "type": "LazyList",
89176
+ "props": {
89177
+ "itemsPath": "$item.articleActions",
89178
+ "items": [
89179
+ {
89180
+ "id": "himi_business_chat.card_action_$item.id",
89181
+ "body": {
89182
+ "package": "himalaya",
89183
+ "type": "Button",
89184
+ "props": {
89185
+ "title": "$item.label",
89186
+ "style": "secondary",
89187
+ "size": "md",
89188
+ "fullWidth": true,
89189
+ "action": {
89190
+ "actionId": "capability.open_url.open",
89191
+ "params": {
89192
+ "url": "$item.url"
89193
+ }
89194
+ }
89195
+ }
89196
+ },
89197
+ "modifiers": {}
89198
+ }
89199
+ ],
89200
+ "spacing": 6
89201
+ }
89202
+ },
89203
+ "modifiers": {
89204
+ "fillMaxWidth": true,
89205
+ "hiddenPath": "$item.noActions"
89206
+ }
89207
+ },
89208
+ {
89209
+ "id": "himi_business_chat.card_suggestions_$item.id",
89210
+ "body": {
89211
+ "package": "himalaya",
89212
+ "type": "LazyList",
89213
+ "props": {
89214
+ "itemsPath": "$item.suggestions",
89215
+ "items": [
89216
+ {
89217
+ "id": "himi_business_chat.card_suggestion.item.$item.id",
89218
+ "body": {
89219
+ "package": "himalaya",
89220
+ "type": "VStack",
89221
+ "props": {
89222
+ "children": [
89223
+ {
89224
+ "id": "himi_business_chat.card_suggestion.live.$item.id",
89225
+ "body": {
89226
+ "package": "himalaya",
89227
+ "type": "VStack",
89228
+ "props": {
89229
+ "children": [
89230
+ {
89231
+ "id": "himi_business_chat.card_suggestion.chiplabel.$item.id",
89232
+ "body": {
89233
+ "package": "himalaya",
89234
+ "type": "Text",
89235
+ "props": {
89236
+ "text": "$item.label",
89237
+ "style": "body",
89238
+ "color": "accentPrimary",
89239
+ "collapseWhenEmpty": true,
89240
+ "textDirection": "auto"
89241
+ }
89242
+ },
89243
+ "modifiers": {}
89244
+ }
89245
+ ],
89246
+ "spacing": 0,
89247
+ "alignment": "leading"
89248
+ }
89249
+ },
89250
+ "modifiers": {
89251
+ "fillMaxWidth": true,
89252
+ "cornerRadius": 16,
89253
+ "padding": {
89254
+ "leading": 14,
89255
+ "trailing": 14,
89256
+ "top": 10,
89257
+ "bottom": 10
89258
+ },
89259
+ "background": {
89260
+ "token": "accentSurface"
89261
+ },
89262
+ "accessibilityRole": "button",
89263
+ "accessibilityLabel": "$item.label",
89264
+ "onTap": {
89265
+ "actionId": "tier5.businessChat.sendSuggestion",
89266
+ "params": {
89267
+ "id": "$item.id"
89268
+ }
89269
+ },
89270
+ "hiddenPath": "$item.disabled"
89271
+ }
89272
+ },
89273
+ {
89274
+ "id": "himi_business_chat.card_suggestion.used.$item.id",
89275
+ "body": {
89276
+ "package": "himalaya",
89277
+ "type": "VStack",
89278
+ "props": {
89279
+ "children": [
89280
+ {
89281
+ "id": "himi_business_chat.card_suggestion.usedlabel.$item.id",
89282
+ "body": {
89283
+ "package": "himalaya",
89284
+ "type": "Text",
89285
+ "props": {
89286
+ "text": "$item.label",
89287
+ "style": "body",
89288
+ "color": "textSecondary",
89289
+ "collapseWhenEmpty": true,
89290
+ "textDirection": "auto"
89291
+ }
89292
+ },
89293
+ "modifiers": {}
89294
+ }
89295
+ ],
89296
+ "spacing": 0,
89297
+ "alignment": "leading"
89298
+ }
89299
+ },
89300
+ "modifiers": {
89301
+ "fillMaxWidth": true,
89302
+ "cornerRadius": 16,
89303
+ "padding": {
89304
+ "leading": 14,
89305
+ "trailing": 14,
89306
+ "top": 10,
89307
+ "bottom": 10
89308
+ },
89309
+ "background": {
89310
+ "token": "surfaceElevated"
89311
+ },
89312
+ "hiddenPath": "$item.enabled"
89313
+ }
89314
+ }
89315
+ ],
89316
+ "spacing": 0,
89317
+ "alignment": "leading"
89318
+ }
89319
+ },
89320
+ "modifiers": {
89321
+ "fillMaxWidth": true
89322
+ }
89323
+ }
89324
+ ],
89325
+ "spacing": 6
89326
+ }
89327
+ },
89328
+ "modifiers": {
89329
+ "fillMaxWidth": true,
89330
+ "hiddenPath": "$item.noSuggestions"
88977
89331
  }
88978
89332
  }
88979
89333
  ],
88980
- "spacing": 0,
88981
- "alignment": "leading"
89334
+ "spacing": 12,
89335
+ "alignment": "center"
88982
89336
  }
88983
89337
  },
88984
89338
  "modifiers": {
88985
- "fillMaxWidth": true
89339
+ "fillMaxWidth": true,
89340
+ "background": {
89341
+ "token": "surfaceElevated"
89342
+ },
89343
+ "border": {
89344
+ "width": 1,
89345
+ "color": {
89346
+ "token": "border"
89347
+ }
89348
+ },
89349
+ "cornerRadius": 8,
89350
+ "padding": {
89351
+ "leading": 12,
89352
+ "trailing": 12,
89353
+ "top": 12,
89354
+ "bottom": 8
89355
+ },
89356
+ "maxWidth": 270
88986
89357
  }
89358
+ },
89359
+ {
89360
+ "id": "himi_business_chat.card_time_$item.id",
89361
+ "body": {
89362
+ "package": "himalaya",
89363
+ "type": "Text",
89364
+ "props": {
89365
+ "text": "$item.when",
89366
+ "style": "caption",
89367
+ "color": "textSecondary",
89368
+ "collapseWhenEmpty": true,
89369
+ "textDirection": "auto"
89370
+ }
89371
+ },
89372
+ "modifiers": {}
88987
89373
  }
88988
89374
  ],
88989
- "spacing": 6
89375
+ "spacing": 7,
89376
+ "alignment": "leading"
88990
89377
  }
88991
89378
  },
88992
89379
  "modifiers": {
88993
- "fillMaxWidth": true
89380
+ "fillMaxWidth": true,
89381
+ "hiddenPath": "$item.notCard"
88994
89382
  }
88995
- },
88996
- {
88997
- "id": "himi_business_chat.incoming_time_$item.id",
88998
- "body": {
88999
- "package": "himalaya",
89000
- "type": "Text",
89001
- "props": {
89002
- "text": "$item.when",
89003
- "style": "caption",
89004
- "color": "textSecondary",
89005
- "collapseWhenEmpty": true,
89006
- "textDirection": "auto"
89007
- }
89008
- },
89009
- "modifiers": {}
89010
89383
  }
89011
89384
  ],
89012
- "spacing": 7,
89385
+ "spacing": 0,
89013
89386
  "alignment": "leading"
89014
89387
  }
89015
89388
  },
89016
89389
  "modifiers": {
89017
- "fillMaxWidth": true,
89018
- "background": {
89019
- "token": "surfaceElevated"
89020
- },
89021
- "cornerRadius": 16,
89022
- "padding": {
89023
- "leading": 10,
89024
- "trailing": 10,
89025
- "top": 10,
89026
- "bottom": 10
89027
- },
89028
- "maxWidth": 360
89390
+ "fillMaxWidth": true
89029
89391
  }
89030
89392
  },
89031
89393
  {
@@ -89195,7 +89557,7 @@ const SCREENS = runtimeSetting({
89195
89557
  "modifiers": {
89196
89558
  "fillMaxWidth": true,
89197
89559
  "background": {
89198
- "token": "surfacePrimary"
89560
+ "token": "surfaceSecondary"
89199
89561
  },
89200
89562
  "onAppear": {
89201
89563
  "actionId": "tier5.businessChat.init"