@wix/himalaya-cli 0.1445.0 → 0.1446.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 (23) hide show
  1. package/dist/cli.mjs +26 -27
  2. package/dist/preview-assets.generated.bin +0 -0
  3. package/fixtures/wix-canned.json +20 -0
  4. package/package.json +2 -2
  5. package/templates/beauty-salon/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  6. package/templates/branded-lite/config.ts +7 -0
  7. package/templates/branded-lite/dev/index.ts +1120 -0
  8. package/templates/branded-lite/himalaya.content.json +3 -0
  9. package/templates/branded-lite/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  10. package/templates/branded-lite/tier5-src/_shared/business-chat-message-model.ts +177 -0
  11. package/templates/branded-lite/tier5-src/_shared/business-chat-model.ts +22 -0
  12. package/templates/branded-lite/tier5-src/_shared/business-chat-presenter.ts +427 -0
  13. package/templates/branded-lite/tier5-src/_shared/business-chat-transport.ts +102 -0
  14. package/templates/branded-lite/tier5-src/business-chat/index.ts +304 -0
  15. package/templates/community-club/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  16. package/templates/events-meetups/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  17. package/templates/gym-fitness/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  18. package/templates/nonprofit-cause/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  19. package/templates/podcast-creator/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  20. package/templates/portfolio-creative/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  21. package/templates/restaurant/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  22. package/templates/retail-store/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  23. package/templates/yoga-studio/tier5-src/_shared/branded-lite-hosted.ts +1 -0
@@ -84135,6 +84135,25 @@ const SCREENS = runtimeSetting({
84135
84135
  }
84136
84136
  }
84137
84137
  },
84138
+ {
84139
+ "id": "himi_inbox.chat_with_us",
84140
+ "body": {
84141
+ "package": "himalaya",
84142
+ "type": "Button",
84143
+ "props": {
84144
+ "title": "Chat with us",
84145
+ "style": "secondary",
84146
+ "fullWidth": true,
84147
+ "leadingIcon": "chat",
84148
+ "action": {
84149
+ "actionId": "himi.open",
84150
+ "params": {
84151
+ "screenId": "himi_business_chat"
84152
+ }
84153
+ }
84154
+ }
84155
+ }
84156
+ },
84138
84157
  {
84139
84158
  "id": "himi_inbox.sample_banner",
84140
84159
  "body": {
@@ -86289,6 +86308,1107 @@ const SCREENS = runtimeSetting({
86289
86308
  "bundleVersion": "0.0.1"
86290
86309
  }
86291
86310
  },
86311
+ "himi_business_chat": {
86312
+ "screenId": "himi_business_chat",
86313
+ "renderer": "sdui_intent",
86314
+ "title": "__HIMI_APP_NAME__",
86315
+ "schemaVersion": 1,
86316
+ "cacheControl": {
86317
+ "maxAge": 0,
86318
+ "staleWhileRevalidate": 0
86319
+ },
86320
+ "payload": {
86321
+ "id": "himi_business_chat.root",
86322
+ "body": {
86323
+ "package": "himalaya",
86324
+ "type": "VStack",
86325
+ "props": {
86326
+ "children": [
86327
+ {
86328
+ "id": "himi_business_chat.loading",
86329
+ "body": {
86330
+ "package": "himalaya",
86331
+ "type": "VStack",
86332
+ "props": {
86333
+ "children": [
86334
+ {
86335
+ "id": "himi_business_chat.loading_text",
86336
+ "body": {
86337
+ "package": "himalaya",
86338
+ "type": "Text",
86339
+ "props": {
86340
+ "text": "Loading…",
86341
+ "style": "body",
86342
+ "color": "textSecondary",
86343
+ "collapseWhenEmpty": true,
86344
+ "textDirection": "auto"
86345
+ }
86346
+ },
86347
+ "modifiers": {}
86348
+ },
86349
+ {
86350
+ "id": "himi_business_chat.loading_row_1",
86351
+ "body": {
86352
+ "package": "himalaya",
86353
+ "type": "Skeleton",
86354
+ "props": {
86355
+ "height": 62,
86356
+ "cornerRadius": 16
86357
+ }
86358
+ },
86359
+ "modifiers": {}
86360
+ },
86361
+ {
86362
+ "id": "himi_business_chat.loading_row_2",
86363
+ "body": {
86364
+ "package": "himalaya",
86365
+ "type": "Skeleton",
86366
+ "props": {
86367
+ "height": 84,
86368
+ "cornerRadius": 16
86369
+ }
86370
+ },
86371
+ "modifiers": {}
86372
+ }
86373
+ ],
86374
+ "spacing": 12,
86375
+ "alignment": "leading"
86376
+ }
86377
+ },
86378
+ "modifiers": {
86379
+ "fillMaxWidth": true,
86380
+ "padding": {
86381
+ "leading": 16,
86382
+ "trailing": 16,
86383
+ "top": 20,
86384
+ "bottom": 8
86385
+ },
86386
+ "hiddenPath": "$service:businessChat.loadingHidden"
86387
+ }
86388
+ },
86389
+ {
86390
+ "id": "himi_business_chat.error",
86391
+ "body": {
86392
+ "package": "himalaya",
86393
+ "type": "VStack",
86394
+ "props": {
86395
+ "children": [
86396
+ {
86397
+ "id": "himi_business_chat.error_text",
86398
+ "body": {
86399
+ "package": "himalaya",
86400
+ "type": "Text",
86401
+ "props": {
86402
+ "text": "$service:businessChat.errorText",
86403
+ "style": "body",
86404
+ "color": "danger",
86405
+ "collapseWhenEmpty": true,
86406
+ "textDirection": "auto"
86407
+ }
86408
+ },
86409
+ "modifiers": {}
86410
+ },
86411
+ {
86412
+ "id": "himi_business_chat.load_failure",
86413
+ "body": {
86414
+ "package": "himalaya",
86415
+ "type": "Text",
86416
+ "props": {
86417
+ "text": "$service:businessChat.loadFailure",
86418
+ "style": "caption",
86419
+ "color": "textSecondary",
86420
+ "collapseWhenEmpty": true,
86421
+ "textDirection": "auto"
86422
+ }
86423
+ },
86424
+ "modifiers": {}
86425
+ },
86426
+ {
86427
+ "id": "himi_business_chat.sign_in",
86428
+ "body": {
86429
+ "package": "himalaya",
86430
+ "type": "Button",
86431
+ "props": {
86432
+ "title": "Sign in",
86433
+ "leadingIcon": "person",
86434
+ "style": "primary",
86435
+ "size": "md",
86436
+ "fullWidth": false,
86437
+ "action": {
86438
+ "actionId": "himi.open",
86439
+ "params": {
86440
+ "screenId": "himi_account"
86441
+ }
86442
+ }
86443
+ }
86444
+ },
86445
+ "modifiers": {
86446
+ "hiddenPath": "$service:businessChat.notGuest"
86447
+ }
86448
+ },
86449
+ {
86450
+ "id": "himi_business_chat.retry",
86451
+ "body": {
86452
+ "package": "himalaya",
86453
+ "type": "Button",
86454
+ "props": {
86455
+ "title": "Try again",
86456
+ "action": {
86457
+ "actionId": "tier5.businessChat.init"
86458
+ },
86459
+ "style": "secondary",
86460
+ "size": "md",
86461
+ "fullWidth": false
86462
+ }
86463
+ },
86464
+ "modifiers": {
86465
+ "hiddenPath": "$service:businessChat.isGuest"
86466
+ }
86467
+ }
86468
+ ],
86469
+ "spacing": 8,
86470
+ "alignment": "leading"
86471
+ }
86472
+ },
86473
+ "modifiers": {
86474
+ "fillMaxWidth": true,
86475
+ "padding": {
86476
+ "leading": 16,
86477
+ "trailing": 16,
86478
+ "top": 12,
86479
+ "bottom": 8
86480
+ },
86481
+ "hiddenPath": "$service:businessChat.noError"
86482
+ }
86483
+ },
86484
+ {
86485
+ "id": "himi_business_chat.empty",
86486
+ "body": {
86487
+ "package": "himalaya",
86488
+ "type": "EmptyState",
86489
+ "props": {
86490
+ "title": "No messages yet",
86491
+ "subtitle": "Send a message to start the conversation.",
86492
+ "icon": "chat"
86493
+ }
86494
+ },
86495
+ "modifiers": {
86496
+ "padding": {
86497
+ "leading": 16,
86498
+ "trailing": 16,
86499
+ "top": 24,
86500
+ "bottom": 24
86501
+ },
86502
+ "hiddenPath": "$service:businessChat.noEmpty"
86503
+ }
86504
+ },
86505
+ {
86506
+ "id": "himi_business_chat.messages",
86507
+ "body": {
86508
+ "package": "himalaya",
86509
+ "type": "LazyList",
86510
+ "props": {
86511
+ "itemsPath": "$service:businessChat.messages",
86512
+ "items": [
86513
+ {
86514
+ "id": "himi_business_chat.message_$item.id",
86515
+ "body": {
86516
+ "package": "himalaya",
86517
+ "type": "VStack",
86518
+ "props": {
86519
+ "children": [
86520
+ {
86521
+ "id": "himi_business_chat.day_row_$item.id",
86522
+ "body": {
86523
+ "package": "himalaya",
86524
+ "type": "HStack",
86525
+ "props": {
86526
+ "children": [
86527
+ {
86528
+ "id": "himi_business_chat.day_left_$item.id",
86529
+ "body": {
86530
+ "package": "himalaya",
86531
+ "type": "Spacer",
86532
+ "props": {}
86533
+ },
86534
+ "modifiers": {}
86535
+ },
86536
+ {
86537
+ "id": "himi_business_chat.day_$item.id",
86538
+ "body": {
86539
+ "package": "himalaya",
86540
+ "type": "Text",
86541
+ "props": {
86542
+ "text": "$item.dayLabel",
86543
+ "style": "caption",
86544
+ "color": "textSecondary",
86545
+ "collapseWhenEmpty": true,
86546
+ "textDirection": "auto"
86547
+ }
86548
+ },
86549
+ "modifiers": {}
86550
+ },
86551
+ {
86552
+ "id": "himi_business_chat.day_right_$item.id",
86553
+ "body": {
86554
+ "package": "himalaya",
86555
+ "type": "Spacer",
86556
+ "props": {}
86557
+ },
86558
+ "modifiers": {}
86559
+ }
86560
+ ],
86561
+ "spacing": 8,
86562
+ "alignment": "leading"
86563
+ }
86564
+ },
86565
+ "modifiers": {
86566
+ "fillMaxWidth": true,
86567
+ "padding": {
86568
+ "leading": 12,
86569
+ "trailing": 12,
86570
+ "top": 12,
86571
+ "bottom": 4
86572
+ },
86573
+ "hiddenPath": "$item.dayHidden"
86574
+ }
86575
+ },
86576
+ {
86577
+ "id": "himi_business_chat.incoming_row_$item.id",
86578
+ "body": {
86579
+ "package": "himalaya",
86580
+ "type": "HStack",
86581
+ "props": {
86582
+ "children": [
86583
+ {
86584
+ "id": "himi_business_chat.avatar_$item.id",
86585
+ "body": {
86586
+ "package": "himalaya",
86587
+ "type": "Image",
86588
+ "props": {
86589
+ "url": "$item.senderAvatar",
86590
+ "initials": "$item.senderInitials",
86591
+ "icon": "person",
86592
+ "width": 30,
86593
+ "height": 30,
86594
+ "contentMode": "fill",
86595
+ "shape": "circle",
86596
+ "contentDescription": "$item.sender"
86597
+ }
86598
+ },
86599
+ "modifiers": {
86600
+ "accessibilityLabel": "$item.sender"
86601
+ }
86602
+ },
86603
+ {
86604
+ "id": "himi_business_chat.incoming_bubble_$item.id",
86605
+ "body": {
86606
+ "package": "himalaya",
86607
+ "type": "VStack",
86608
+ "props": {
86609
+ "children": [
86610
+ {
86611
+ "id": "himi_business_chat.incoming_sender_$item.id",
86612
+ "body": {
86613
+ "package": "himalaya",
86614
+ "type": "Text",
86615
+ "props": {
86616
+ "text": "$item.senderName",
86617
+ "style": "caption",
86618
+ "color": "accentPrimary",
86619
+ "collapseWhenEmpty": true,
86620
+ "textDirection": "auto"
86621
+ }
86622
+ },
86623
+ "modifiers": {}
86624
+ },
86625
+ {
86626
+ "id": "himi_business_chat.staff_badge_$item.id",
86627
+ "body": {
86628
+ "package": "himalaya",
86629
+ "type": "Text",
86630
+ "props": {
86631
+ "text": "$item.senderBadge",
86632
+ "style": "caption",
86633
+ "color": "accentPrimary",
86634
+ "collapseWhenEmpty": true
86635
+ }
86636
+ },
86637
+ "modifiers": {
86638
+ "background": {
86639
+ "token": "accentSurface"
86640
+ },
86641
+ "cornerRadius": 8,
86642
+ "padding": {
86643
+ "leading": 8,
86644
+ "trailing": 8,
86645
+ "top": 3,
86646
+ "bottom": 3
86647
+ }
86648
+ }
86649
+ },
86650
+ {
86651
+ "id": "himi_business_chat.incoming_text_$item.id",
86652
+ "body": {
86653
+ "package": "himalaya",
86654
+ "type": "Text",
86655
+ "props": {
86656
+ "text": "$item.bodyMarkdown",
86657
+ "style": "body",
86658
+ "color": "textPrimary",
86659
+ "collapseWhenEmpty": true,
86660
+ "textDirection": "auto",
86661
+ "markdown": true
86662
+ }
86663
+ },
86664
+ "modifiers": {}
86665
+ },
86666
+ {
86667
+ "id": "himi_business_chat.incoming_attachment_$item.id",
86668
+ "body": {
86669
+ "package": "himalaya",
86670
+ "type": "Image",
86671
+ "props": {
86672
+ "url": "$item.imageUrl",
86673
+ "fillWidth": true,
86674
+ "aspectRatio": 1.5,
86675
+ "contentMode": "fit",
86676
+ "contentDescription": "$item.imageDescription"
86677
+ }
86678
+ },
86679
+ "modifiers": {
86680
+ "fillMaxWidth": true,
86681
+ "cornerRadius": 12,
86682
+ "accessibilityLabel": "$item.imageDescription",
86683
+ "hiddenPath": "$item.noImage"
86684
+ }
86685
+ },
86686
+ {
86687
+ "id": "himi_business_chat.article_actions_$item.id",
86688
+ "body": {
86689
+ "package": "himalaya",
86690
+ "type": "LazyList",
86691
+ "props": {
86692
+ "itemsPath": "$item.articleActions",
86693
+ "items": [
86694
+ {
86695
+ "id": "himi_business_chat.article_action_$item.id",
86696
+ "body": {
86697
+ "package": "himalaya",
86698
+ "type": "Button",
86699
+ "props": {
86700
+ "title": "$item.label",
86701
+ "style": "secondary",
86702
+ "size": "sm",
86703
+ "action": {
86704
+ "actionId": "capability.open_url.open",
86705
+ "params": {
86706
+ "url": "$item.url"
86707
+ }
86708
+ }
86709
+ }
86710
+ },
86711
+ "modifiers": {}
86712
+ }
86713
+ ],
86714
+ "spacing": 6
86715
+ }
86716
+ },
86717
+ "modifiers": {
86718
+ "fillMaxWidth": true
86719
+ }
86720
+ },
86721
+ {
86722
+ "id": "himi_business_chat.suggestions_$item.id",
86723
+ "body": {
86724
+ "package": "himalaya",
86725
+ "type": "LazyList",
86726
+ "props": {
86727
+ "itemsPath": "$item.suggestions",
86728
+ "items": [
86729
+ {
86730
+ "id": "himi_business_chat.suggestion.item.$item.id",
86731
+ "body": {
86732
+ "package": "himalaya",
86733
+ "type": "VStack",
86734
+ "props": {
86735
+ "children": [
86736
+ {
86737
+ "id": "himi_business_chat.suggestion.live.$item.id",
86738
+ "body": {
86739
+ "package": "himalaya",
86740
+ "type": "VStack",
86741
+ "props": {
86742
+ "children": [
86743
+ {
86744
+ "id": "himi_business_chat.suggestion.chiplabel.$item.id",
86745
+ "body": {
86746
+ "package": "himalaya",
86747
+ "type": "Text",
86748
+ "props": {
86749
+ "text": "$item.label",
86750
+ "style": "body",
86751
+ "color": "accentPrimary",
86752
+ "collapseWhenEmpty": true,
86753
+ "textDirection": "auto"
86754
+ }
86755
+ },
86756
+ "modifiers": {}
86757
+ }
86758
+ ],
86759
+ "spacing": 0,
86760
+ "alignment": "leading"
86761
+ }
86762
+ },
86763
+ "modifiers": {
86764
+ "fillMaxWidth": true,
86765
+ "cornerRadius": 16,
86766
+ "padding": {
86767
+ "leading": 14,
86768
+ "trailing": 14,
86769
+ "top": 10,
86770
+ "bottom": 10
86771
+ },
86772
+ "background": {
86773
+ "token": "accentSurface"
86774
+ },
86775
+ "accessibilityRole": "button",
86776
+ "accessibilityLabel": "$item.label",
86777
+ "onTap": {
86778
+ "actionId": "tier5.businessChat.sendSuggestion",
86779
+ "params": {
86780
+ "id": "$item.id"
86781
+ }
86782
+ },
86783
+ "hiddenPath": "$item.disabled"
86784
+ }
86785
+ },
86786
+ {
86787
+ "id": "himi_business_chat.suggestion.used.$item.id",
86788
+ "body": {
86789
+ "package": "himalaya",
86790
+ "type": "VStack",
86791
+ "props": {
86792
+ "children": [
86793
+ {
86794
+ "id": "himi_business_chat.suggestion.usedlabel.$item.id",
86795
+ "body": {
86796
+ "package": "himalaya",
86797
+ "type": "Text",
86798
+ "props": {
86799
+ "text": "$item.label",
86800
+ "style": "body",
86801
+ "color": "textSecondary",
86802
+ "collapseWhenEmpty": true,
86803
+ "textDirection": "auto"
86804
+ }
86805
+ },
86806
+ "modifiers": {}
86807
+ }
86808
+ ],
86809
+ "spacing": 0,
86810
+ "alignment": "leading"
86811
+ }
86812
+ },
86813
+ "modifiers": {
86814
+ "fillMaxWidth": true,
86815
+ "cornerRadius": 16,
86816
+ "padding": {
86817
+ "leading": 14,
86818
+ "trailing": 14,
86819
+ "top": 10,
86820
+ "bottom": 10
86821
+ },
86822
+ "background": {
86823
+ "token": "surfaceElevated"
86824
+ },
86825
+ "hiddenPath": "$item.enabled"
86826
+ }
86827
+ }
86828
+ ],
86829
+ "spacing": 0,
86830
+ "alignment": "leading"
86831
+ }
86832
+ },
86833
+ "modifiers": {
86834
+ "fillMaxWidth": true
86835
+ }
86836
+ }
86837
+ ],
86838
+ "spacing": 6
86839
+ }
86840
+ },
86841
+ "modifiers": {
86842
+ "fillMaxWidth": true
86843
+ }
86844
+ },
86845
+ {
86846
+ "id": "himi_business_chat.incoming_time_$item.id",
86847
+ "body": {
86848
+ "package": "himalaya",
86849
+ "type": "Text",
86850
+ "props": {
86851
+ "text": "$item.when",
86852
+ "style": "caption",
86853
+ "color": "textSecondary",
86854
+ "collapseWhenEmpty": true,
86855
+ "textDirection": "auto"
86856
+ }
86857
+ },
86858
+ "modifiers": {}
86859
+ }
86860
+ ],
86861
+ "spacing": 7,
86862
+ "alignment": "leading"
86863
+ }
86864
+ },
86865
+ "modifiers": {
86866
+ "fillMaxWidth": true,
86867
+ "background": {
86868
+ "token": "surfaceElevated"
86869
+ },
86870
+ "cornerRadius": 16,
86871
+ "padding": {
86872
+ "leading": 12,
86873
+ "trailing": 12,
86874
+ "top": 10,
86875
+ "bottom": 10
86876
+ },
86877
+ "maxWidth": 320
86878
+ }
86879
+ },
86880
+ {
86881
+ "id": "himi_business_chat.incoming_spacer_$item.id",
86882
+ "body": {
86883
+ "package": "himalaya",
86884
+ "type": "Spacer",
86885
+ "props": {}
86886
+ },
86887
+ "modifiers": {}
86888
+ }
86889
+ ],
86890
+ "spacing": 8,
86891
+ "alignment": "leading"
86892
+ }
86893
+ },
86894
+ "modifiers": {
86895
+ "fillMaxWidth": true,
86896
+ "hiddenPath": "$item.mine"
86897
+ }
86898
+ },
86899
+ {
86900
+ "id": "himi_business_chat.outgoing_row_$item.id",
86901
+ "body": {
86902
+ "package": "himalaya",
86903
+ "type": "HStack",
86904
+ "props": {
86905
+ "children": [
86906
+ {
86907
+ "id": "himi_business_chat.outgoing_spacer_$item.id",
86908
+ "body": {
86909
+ "package": "himalaya",
86910
+ "type": "Spacer",
86911
+ "props": {}
86912
+ },
86913
+ "modifiers": {}
86914
+ },
86915
+ {
86916
+ "id": "himi_business_chat.outgoing_bubble_$item.id",
86917
+ "body": {
86918
+ "package": "himalaya",
86919
+ "type": "VStack",
86920
+ "props": {
86921
+ "children": [
86922
+ {
86923
+ "id": "himi_business_chat.outgoing_sender_$item.id",
86924
+ "body": {
86925
+ "package": "himalaya",
86926
+ "type": "Text",
86927
+ "props": {
86928
+ "text": "$item.senderName",
86929
+ "style": "caption",
86930
+ "color": "textOnAccent",
86931
+ "collapseWhenEmpty": true,
86932
+ "textDirection": "auto"
86933
+ }
86934
+ },
86935
+ "modifiers": {}
86936
+ },
86937
+ {
86938
+ "id": "himi_business_chat.outgoing_text_$item.id",
86939
+ "body": {
86940
+ "package": "himalaya",
86941
+ "type": "Text",
86942
+ "props": {
86943
+ "text": "$item.bodyText",
86944
+ "style": "body",
86945
+ "color": "textOnAccent",
86946
+ "collapseWhenEmpty": true,
86947
+ "textDirection": "auto"
86948
+ }
86949
+ },
86950
+ "modifiers": {}
86951
+ },
86952
+ {
86953
+ "id": "himi_business_chat.outgoing_attachment_$item.id",
86954
+ "body": {
86955
+ "package": "himalaya",
86956
+ "type": "Image",
86957
+ "props": {
86958
+ "url": "$item.imageUrl",
86959
+ "fillWidth": true,
86960
+ "aspectRatio": 1.5,
86961
+ "contentMode": "fit",
86962
+ "contentDescription": "$item.imageDescription"
86963
+ }
86964
+ },
86965
+ "modifiers": {
86966
+ "fillMaxWidth": true,
86967
+ "cornerRadius": 12,
86968
+ "accessibilityLabel": "$item.imageDescription",
86969
+ "hiddenPath": "$item.noImage"
86970
+ }
86971
+ },
86972
+ {
86973
+ "id": "himi_business_chat.outgoing_time_$item.id",
86974
+ "body": {
86975
+ "package": "himalaya",
86976
+ "type": "Text",
86977
+ "props": {
86978
+ "text": "$item.when",
86979
+ "style": "caption",
86980
+ "color": "textOnAccent",
86981
+ "collapseWhenEmpty": true,
86982
+ "textDirection": "auto"
86983
+ }
86984
+ },
86985
+ "modifiers": {}
86986
+ }
86987
+ ],
86988
+ "spacing": 7,
86989
+ "alignment": "leading"
86990
+ }
86991
+ },
86992
+ "modifiers": {
86993
+ "fillMaxWidth": true,
86994
+ "background": {
86995
+ "token": "accentPrimary"
86996
+ },
86997
+ "cornerRadius": 16,
86998
+ "padding": {
86999
+ "leading": 12,
87000
+ "trailing": 12,
87001
+ "top": 10,
87002
+ "bottom": 10
87003
+ },
87004
+ "maxWidth": 320
87005
+ }
87006
+ }
87007
+ ],
87008
+ "spacing": 8,
87009
+ "alignment": "leading"
87010
+ }
87011
+ },
87012
+ "modifiers": {
87013
+ "fillMaxWidth": true,
87014
+ "hiddenPath": "$item.notMine"
87015
+ }
87016
+ }
87017
+ ],
87018
+ "spacing": 4,
87019
+ "alignment": "leading"
87020
+ }
87021
+ },
87022
+ "modifiers": {
87023
+ "fillMaxWidth": true,
87024
+ "padding": {
87025
+ "leading": 14,
87026
+ "trailing": 14,
87027
+ "top": 4,
87028
+ "bottom": 4
87029
+ }
87030
+ }
87031
+ }
87032
+ ],
87033
+ "spacing": 0
87034
+ }
87035
+ },
87036
+ "modifiers": {}
87037
+ }
87038
+ ],
87039
+ "spacing": 0,
87040
+ "alignment": "leading"
87041
+ }
87042
+ },
87043
+ "modifiers": {
87044
+ "fillMaxWidth": true,
87045
+ "background": {
87046
+ "token": "surfacePrimary"
87047
+ },
87048
+ "onAppear": {
87049
+ "actionId": "tier5.businessChat.init"
87050
+ }
87051
+ }
87052
+ },
87053
+ "logicBundle": {
87054
+ "url": "http://localhost:8190/v1/bundles/business-chat",
87055
+ "integrity": "",
87056
+ "contentType": "application/javascript+ts-bundle",
87057
+ "declaredCapabilities": [
87058
+ "wix_api",
87059
+ "wix_chat",
87060
+ "open_url"
87061
+ ],
87062
+ "minBinaryVersion": "0.1.0",
87063
+ "bundleVersion": "0.1.0"
87064
+ },
87065
+ "stickyHeader": {
87066
+ "id": "himi_business_chat.header",
87067
+ "body": {
87068
+ "package": "himalaya",
87069
+ "type": "HStack",
87070
+ "props": {
87071
+ "children": [
87072
+ {
87073
+ "id": "himi_business_chat.header_title",
87074
+ "body": {
87075
+ "package": "himalaya",
87076
+ "type": "Text",
87077
+ "props": {
87078
+ "text": "__HIMI_APP_NAME__",
87079
+ "style": "title3",
87080
+ "color": "textOnAccent",
87081
+ "collapseWhenEmpty": true,
87082
+ "textDirection": "auto",
87083
+ "maxLines": 1
87084
+ }
87085
+ },
87086
+ "modifiers": {
87087
+ "hiddenPath": "$service:businessChat.hasHostedName"
87088
+ }
87089
+ },
87090
+ {
87091
+ "id": "himi_business_chat.header_title_hosted",
87092
+ "body": {
87093
+ "package": "himalaya",
87094
+ "type": "Text",
87095
+ "props": {
87096
+ "text": "$service:businessChat.hostedName",
87097
+ "style": "title3",
87098
+ "color": "textOnAccent",
87099
+ "collapseWhenEmpty": true,
87100
+ "textDirection": "auto",
87101
+ "maxLines": 1
87102
+ }
87103
+ },
87104
+ "modifiers": {
87105
+ "hiddenPath": "$service:businessChat.noHostedName"
87106
+ }
87107
+ },
87108
+ {
87109
+ "id": "himi_business_chat.header_spacer",
87110
+ "body": {
87111
+ "package": "himalaya",
87112
+ "type": "Spacer",
87113
+ "props": {}
87114
+ },
87115
+ "modifiers": {}
87116
+ },
87117
+ {
87118
+ "id": "himi_business_chat.live_status",
87119
+ "body": {
87120
+ "package": "himalaya",
87121
+ "type": "Text",
87122
+ "props": {
87123
+ "text": "$service:businessChat.liveLabel",
87124
+ "style": "caption",
87125
+ "color": "textOnAccent",
87126
+ "collapseWhenEmpty": true,
87127
+ "textDirection": "auto",
87128
+ "maxLines": 1
87129
+ }
87130
+ },
87131
+ "modifiers": {
87132
+ "hiddenPath": "$service:businessChat.noActiveRoom"
87133
+ }
87134
+ }
87135
+ ],
87136
+ "spacing": 8,
87137
+ "alignment": "leading"
87138
+ }
87139
+ },
87140
+ "modifiers": {
87141
+ "fillMaxWidth": true,
87142
+ "background": {
87143
+ "token": "accentPrimary"
87144
+ },
87145
+ "padding": {
87146
+ "leading": 16,
87147
+ "trailing": 16,
87148
+ "top": 12,
87149
+ "bottom": 12
87150
+ }
87151
+ }
87152
+ },
87153
+ "stickyFooter": {
87154
+ "id": "himi_business_chat.footer",
87155
+ "body": {
87156
+ "package": "himalaya",
87157
+ "type": "VStack",
87158
+ "props": {
87159
+ "children": [
87160
+ {
87161
+ "id": "himi_business_chat.quick_replies",
87162
+ "body": {
87163
+ "package": "himalaya",
87164
+ "type": "LazyList",
87165
+ "props": {
87166
+ "itemsPath": "$service:businessChat.quickReplies",
87167
+ "items": [
87168
+ {
87169
+ "id": "himi_business_chat.quick_reply.item.$item.id",
87170
+ "body": {
87171
+ "package": "himalaya",
87172
+ "type": "VStack",
87173
+ "props": {
87174
+ "children": [
87175
+ {
87176
+ "id": "himi_business_chat.quick_reply.live.$item.id",
87177
+ "body": {
87178
+ "package": "himalaya",
87179
+ "type": "VStack",
87180
+ "props": {
87181
+ "children": [
87182
+ {
87183
+ "id": "himi_business_chat.quick_reply.chiplabel.$item.id",
87184
+ "body": {
87185
+ "package": "himalaya",
87186
+ "type": "Text",
87187
+ "props": {
87188
+ "text": "$item.label",
87189
+ "style": "body",
87190
+ "color": "accentPrimary",
87191
+ "collapseWhenEmpty": true,
87192
+ "textDirection": "auto"
87193
+ }
87194
+ },
87195
+ "modifiers": {}
87196
+ }
87197
+ ],
87198
+ "spacing": 0,
87199
+ "alignment": "leading"
87200
+ }
87201
+ },
87202
+ "modifiers": {
87203
+ "fillMaxWidth": true,
87204
+ "cornerRadius": 16,
87205
+ "padding": {
87206
+ "leading": 14,
87207
+ "trailing": 14,
87208
+ "top": 10,
87209
+ "bottom": 10
87210
+ },
87211
+ "background": {
87212
+ "token": "accentSurface"
87213
+ },
87214
+ "accessibilityRole": "button",
87215
+ "accessibilityLabel": "$item.label",
87216
+ "onTap": {
87217
+ "actionId": "tier5.businessChat.sendSuggestion",
87218
+ "params": {
87219
+ "id": "$item.id"
87220
+ }
87221
+ },
87222
+ "hiddenPath": "$item.disabled"
87223
+ }
87224
+ },
87225
+ {
87226
+ "id": "himi_business_chat.quick_reply.used.$item.id",
87227
+ "body": {
87228
+ "package": "himalaya",
87229
+ "type": "VStack",
87230
+ "props": {
87231
+ "children": [
87232
+ {
87233
+ "id": "himi_business_chat.quick_reply.usedlabel.$item.id",
87234
+ "body": {
87235
+ "package": "himalaya",
87236
+ "type": "Text",
87237
+ "props": {
87238
+ "text": "$item.label",
87239
+ "style": "body",
87240
+ "color": "textSecondary",
87241
+ "collapseWhenEmpty": true,
87242
+ "textDirection": "auto"
87243
+ }
87244
+ },
87245
+ "modifiers": {}
87246
+ }
87247
+ ],
87248
+ "spacing": 0,
87249
+ "alignment": "leading"
87250
+ }
87251
+ },
87252
+ "modifiers": {
87253
+ "fillMaxWidth": true,
87254
+ "cornerRadius": 16,
87255
+ "padding": {
87256
+ "leading": 14,
87257
+ "trailing": 14,
87258
+ "top": 10,
87259
+ "bottom": 10
87260
+ },
87261
+ "background": {
87262
+ "token": "surfaceElevated"
87263
+ },
87264
+ "hiddenPath": "$item.enabled"
87265
+ }
87266
+ }
87267
+ ],
87268
+ "spacing": 0,
87269
+ "alignment": "leading"
87270
+ }
87271
+ },
87272
+ "modifiers": {
87273
+ "fillMaxWidth": true
87274
+ }
87275
+ }
87276
+ ],
87277
+ "spacing": 6
87278
+ }
87279
+ },
87280
+ "modifiers": {
87281
+ "fillMaxWidth": true,
87282
+ "hiddenPath": "$service:businessChat.noQuickReplies"
87283
+ }
87284
+ },
87285
+ {
87286
+ "id": "himi_business_chat.composer",
87287
+ "body": {
87288
+ "package": "himalaya",
87289
+ "type": "HStack",
87290
+ "props": {
87291
+ "children": [
87292
+ {
87293
+ "id": "himi_business_chat.draft",
87294
+ "body": {
87295
+ "package": "himalaya",
87296
+ "type": "TextField",
87297
+ "props": {
87298
+ "valuePath": "$service:businessChat.draft",
87299
+ "onChange": {
87300
+ "actionId": "tier5.businessChat.setDraft"
87301
+ },
87302
+ "placeholder": "Type your message…",
87303
+ "maxLength": 4000,
87304
+ "multilineMaxLines": 5,
87305
+ "borderless": true
87306
+ }
87307
+ },
87308
+ "modifiers": {
87309
+ "weight": 1,
87310
+ "fillMaxWidth": true,
87311
+ "accessibilityLabel": "Type your message",
87312
+ "padding": {
87313
+ "leading": 16,
87314
+ "trailing": 12,
87315
+ "top": 2,
87316
+ "bottom": 2
87317
+ },
87318
+ "background": {
87319
+ "token": "surfacePrimary"
87320
+ },
87321
+ "cornerRadius": 22,
87322
+ "border": {
87323
+ "width": 1,
87324
+ "color": {
87325
+ "token": "border"
87326
+ }
87327
+ }
87328
+ }
87329
+ },
87330
+ {
87331
+ "id": "himi_business_chat.send_icon",
87332
+ "body": {
87333
+ "package": "himalaya",
87334
+ "type": "Icon",
87335
+ "props": {
87336
+ "name": "send",
87337
+ "size": 20,
87338
+ "tint": "textOnAccent"
87339
+ }
87340
+ },
87341
+ "modifiers": {
87342
+ "accessibilityRole": "button",
87343
+ "width": 40,
87344
+ "height": 40,
87345
+ "cornerRadius": 20,
87346
+ "background": {
87347
+ "token": "accentPrimary"
87348
+ },
87349
+ "accessibilityLabel": "Send",
87350
+ "onTap": {
87351
+ "actionId": "tier5.businessChat.send"
87352
+ },
87353
+ "hiddenPath": "$service:businessChat.sendDisabled"
87354
+ }
87355
+ },
87356
+ {
87357
+ "id": "himi_business_chat.send_icon_off",
87358
+ "body": {
87359
+ "package": "himalaya",
87360
+ "type": "Icon",
87361
+ "props": {
87362
+ "name": "send",
87363
+ "size": 20,
87364
+ "tint": "textTertiary"
87365
+ }
87366
+ },
87367
+ "modifiers": {
87368
+ "accessibilityRole": "decorative",
87369
+ "width": 40,
87370
+ "height": 40,
87371
+ "cornerRadius": 20,
87372
+ "background": {
87373
+ "token": "surfaceSecondary"
87374
+ },
87375
+ "hiddenPath": "$service:businessChat.sendEnabled"
87376
+ }
87377
+ }
87378
+ ],
87379
+ "spacing": 8,
87380
+ "alignment": "center"
87381
+ }
87382
+ },
87383
+ "modifiers": {
87384
+ "fillMaxWidth": true
87385
+ }
87386
+ }
87387
+ ],
87388
+ "spacing": 8,
87389
+ "alignment": "leading"
87390
+ }
87391
+ },
87392
+ "modifiers": {
87393
+ "fillMaxWidth": true,
87394
+ "hiddenPath": "$service:businessChat.isGuest",
87395
+ "background": {
87396
+ "token": "surfacePrimary"
87397
+ },
87398
+ "padding": {
87399
+ "leading": 14,
87400
+ "trailing": 14,
87401
+ "top": 8,
87402
+ "bottom": 8
87403
+ }
87404
+ }
87405
+ },
87406
+ "transcriptScroll": {
87407
+ "sendPath": "$service:businessChat.scrollSend",
87408
+ "anchorPath": "$service:businessChat.scrollAnchor",
87409
+ "jumpLabel": "Jump to latest"
87410
+ }
87411
+ },
86292
87412
  "himi_food_orders": {
86293
87413
  "screenId": "himi_food_orders",
86294
87414
  "renderer": "sdui_intent",