@wix/himalaya-cli 0.1261.0 → 0.1263.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.
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/builder.d.ts +1 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +2 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/tokens.d.ts +4 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +26 -0
- package/dist/cli.mjs +155 -38
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/component-reference.json +1 -1
- package/guides/component-reference.md +2 -0
- package/package.json +2 -2
- package/templates/beauty-salon/dev/index.ts +45 -7
- package/templates/beauty-salon/tier5-src/_shared/home-service.ts +18 -5
- package/templates/beauty-salon-owner/dev/index.ts +301 -94
- package/templates/beauty-salon-owner/tier5-src/_shared/home-service.ts +18 -5
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-ask/index.ts +5 -0
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-drawer/logic.ts +3 -0
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-product-form/index.ts +21 -7
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-service-form/index.ts +10 -8
- package/templates/branded-lite/dev/index.ts +45 -7
- package/templates/branded-lite/tier5-src/_shared/home-service.ts +18 -5
- package/templates/community-club/dev/index.ts +45 -7
- package/templates/community-club/tier5-src/_shared/home-service.ts +18 -5
- package/templates/community-club-owner/dev/index.ts +237 -78
- package/templates/community-club-owner/tier5-src/_shared/home-service.ts +18 -5
- package/templates/community-club-owner/tier5-src/himi-owner-lite-ask/index.ts +5 -0
- package/templates/community-club-owner/tier5-src/himi-owner-lite-drawer/logic.ts +3 -0
- package/templates/community-club-owner/tier5-src/himi-owner-lite-event-form/index.ts +16 -6
- package/templates/community-club-owner/tier5-src/himi-owner-lite-product-form/index.ts +21 -7
- package/templates/events-meetups/dev/index.ts +45 -7
- package/templates/events-meetups/tier5-src/_shared/home-service.ts +18 -5
- package/templates/events-meetups-owner/dev/index.ts +141 -54
- package/templates/events-meetups-owner/tier5-src/_shared/home-service.ts +18 -5
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-ask/index.ts +5 -0
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-drawer/logic.ts +3 -0
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-event-form/index.ts +16 -6
- package/templates/gym-fitness/dev/index.ts +45 -7
- package/templates/gym-fitness/tier5-src/_shared/home-service.ts +18 -5
- package/templates/gym-fitness-owner/dev/index.ts +333 -102
- package/templates/gym-fitness-owner/tier5-src/_shared/home-service.ts +18 -5
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-ask/index.ts +5 -0
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-drawer/logic.ts +3 -0
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-event-form/index.ts +16 -6
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-product-form/index.ts +21 -7
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-service-form/index.ts +10 -8
- package/templates/nonprofit-cause/dev/index.ts +45 -7
- package/templates/nonprofit-cause/tier5-src/_shared/home-service.ts +18 -5
- package/templates/nonprofit-cause-owner/dev/index.ts +237 -78
- package/templates/nonprofit-cause-owner/tier5-src/_shared/home-service.ts +18 -5
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-ask/index.ts +5 -0
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-drawer/logic.ts +3 -0
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-event-form/index.ts +16 -6
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-service-form/index.ts +10 -8
- package/templates/owner-lite/dev/index.ts +333 -102
- package/templates/owner-lite/tier5-src/_shared/home-service.ts +18 -5
- package/templates/owner-lite/tier5-src/himi-owner-lite-ask/index.ts +5 -0
- package/templates/owner-lite/tier5-src/himi-owner-lite-drawer/logic.ts +3 -0
- package/templates/owner-lite/tier5-src/himi-owner-lite-event-form/index.ts +16 -6
- package/templates/owner-lite/tier5-src/himi-owner-lite-product-form/index.ts +21 -7
- package/templates/owner-lite/tier5-src/himi-owner-lite-service-form/index.ts +10 -8
- package/templates/podcast-creator/dev/index.ts +45 -7
- package/templates/podcast-creator/tier5-src/_shared/home-service.ts +18 -5
- package/templates/podcast-creator-owner/dev/index.ts +237 -78
- package/templates/podcast-creator-owner/tier5-src/_shared/home-service.ts +18 -5
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-ask/index.ts +5 -0
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-drawer/logic.ts +3 -0
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-event-form/index.ts +16 -6
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-product-form/index.ts +21 -7
- package/templates/portfolio-creative/dev/index.ts +45 -7
- package/templates/portfolio-creative/tier5-src/_shared/home-service.ts +18 -5
- package/templates/portfolio-creative-owner/dev/index.ts +301 -94
- package/templates/portfolio-creative-owner/tier5-src/_shared/home-service.ts +18 -5
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-ask/index.ts +5 -0
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-drawer/logic.ts +3 -0
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-product-form/index.ts +21 -7
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-service-form/index.ts +10 -8
- package/templates/restaurant/dev/index.ts +45 -7
- package/templates/restaurant/tier5-src/_shared/home-service.ts +18 -5
- package/templates/restaurant-owner/dev/index.ts +333 -102
- package/templates/restaurant-owner/tier5-src/_shared/home-service.ts +18 -5
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-ask/index.ts +5 -0
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-drawer/logic.ts +3 -0
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-event-form/index.ts +16 -6
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-product-form/index.ts +21 -7
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-service-form/index.ts +10 -8
- package/templates/retail-store/dev/index.ts +45 -7
- package/templates/retail-store/tier5-src/_shared/home-service.ts +18 -5
- package/templates/retail-store-owner/dev/index.ts +205 -70
- package/templates/retail-store-owner/tier5-src/_shared/home-service.ts +18 -5
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-ask/index.ts +5 -0
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-drawer/logic.ts +3 -0
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-product-form/index.ts +21 -7
- package/templates/yoga-studio/dev/index.ts +45 -7
- package/templates/yoga-studio/tier5-src/_shared/home-service.ts +18 -5
- package/templates/yoga-studio-owner/dev/index.ts +237 -78
- package/templates/yoga-studio-owner/tier5-src/_shared/home-service.ts +18 -5
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-ask/index.ts +5 -0
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-drawer/logic.ts +3 -0
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-event-form/index.ts +16 -6
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-service-form/index.ts +10 -8
|
@@ -50097,6 +50097,9 @@ const SCREENS = runtimeSetting({
|
|
|
50097
50097
|
"type": "BottomSheet",
|
|
50098
50098
|
"props": {
|
|
50099
50099
|
"presentedPath": "$service:himiOwnerLiteHome.homeModules.presented",
|
|
50100
|
+
"detents": [
|
|
50101
|
+
0.95
|
|
50102
|
+
],
|
|
50100
50103
|
"dismissible": true,
|
|
50101
50104
|
"showGrabber": true,
|
|
50102
50105
|
"onDismiss": {
|
|
@@ -50198,6 +50201,9 @@ const SCREENS = runtimeSetting({
|
|
|
50198
50201
|
}
|
|
50199
50202
|
}
|
|
50200
50203
|
}
|
|
50204
|
+
},
|
|
50205
|
+
"modifiers": {
|
|
50206
|
+
"accessibilityLabel": "$item.pinA11yLabel"
|
|
50201
50207
|
}
|
|
50202
50208
|
},
|
|
50203
50209
|
{
|
|
@@ -50215,31 +50221,63 @@ const SCREENS = runtimeSetting({
|
|
|
50215
50221
|
}
|
|
50216
50222
|
}
|
|
50217
50223
|
}
|
|
50224
|
+
},
|
|
50225
|
+
"modifiers": {
|
|
50226
|
+
"accessibilityLabel": "$item.visibilityA11yLabel"
|
|
50218
50227
|
}
|
|
50219
|
-
}
|
|
50228
|
+
}
|
|
50229
|
+
]
|
|
50230
|
+
}
|
|
50231
|
+
}
|
|
50232
|
+
},
|
|
50233
|
+
{
|
|
50234
|
+
"id": "",
|
|
50235
|
+
"body": {
|
|
50236
|
+
"package": "himalaya",
|
|
50237
|
+
"type": "HStack",
|
|
50238
|
+
"props": {
|
|
50239
|
+
"spacing": 8,
|
|
50240
|
+
"children": [
|
|
50220
50241
|
{
|
|
50221
|
-
"id": "",
|
|
50242
|
+
"id": "btn_tier5_himiownerlitehome_homemoveup",
|
|
50222
50243
|
"body": {
|
|
50223
50244
|
"package": "himalaya",
|
|
50224
|
-
"type": "
|
|
50225
|
-
"props": {
|
|
50245
|
+
"type": "Button",
|
|
50246
|
+
"props": {
|
|
50247
|
+
"title": "Move up",
|
|
50248
|
+
"style": "plain",
|
|
50249
|
+
"action": {
|
|
50250
|
+
"actionId": "tier5.himiOwnerLiteHome.homeMoveUp",
|
|
50251
|
+
"params": {
|
|
50252
|
+
"id": "$item.id"
|
|
50253
|
+
}
|
|
50254
|
+
}
|
|
50255
|
+
}
|
|
50256
|
+
},
|
|
50257
|
+
"modifiers": {
|
|
50258
|
+
"accessibilityLabel": "$item.moveUpA11yLabel",
|
|
50259
|
+
"hiddenPath": "$item.isFirst"
|
|
50226
50260
|
}
|
|
50227
50261
|
},
|
|
50228
50262
|
{
|
|
50229
|
-
"id": "
|
|
50263
|
+
"id": "btn_tier5_himiownerlitehome_homemovedown",
|
|
50230
50264
|
"body": {
|
|
50231
50265
|
"package": "himalaya",
|
|
50232
50266
|
"type": "Button",
|
|
50233
50267
|
"props": {
|
|
50234
|
-
"title": "Move
|
|
50268
|
+
"title": "Move down",
|
|
50235
50269
|
"style": "plain",
|
|
50236
50270
|
"action": {
|
|
50237
|
-
"actionId": "tier5.himiOwnerLiteHome.
|
|
50271
|
+
"actionId": "tier5.himiOwnerLiteHome.homeMoveDown",
|
|
50238
50272
|
"params": {
|
|
50239
50273
|
"id": "$item.id"
|
|
50240
50274
|
}
|
|
50241
50275
|
}
|
|
50242
50276
|
}
|
|
50277
|
+
},
|
|
50278
|
+
"modifiers": {
|
|
50279
|
+
"accessibilityLabel": "$item.moveDownA11yLabel",
|
|
50280
|
+
"hiddenPath": "$item.isLast"
|
|
50243
50281
|
}
|
|
50244
50282
|
}
|
|
50245
50283
|
]
|
|
@@ -51675,7 +51713,7 @@ const SCREENS = runtimeSetting({
|
|
|
51675
51713
|
"package": "himalaya",
|
|
51676
51714
|
"type": "HStack",
|
|
51677
51715
|
"props": {
|
|
51678
|
-
"spacing":
|
|
51716
|
+
"spacing": 0,
|
|
51679
51717
|
"children": [
|
|
51680
51718
|
{
|
|
51681
51719
|
"id": "",
|
|
@@ -51687,6 +51725,11 @@ const SCREENS = runtimeSetting({
|
|
|
51687
51725
|
"style": "footnote",
|
|
51688
51726
|
"color": "textSecondary"
|
|
51689
51727
|
}
|
|
51728
|
+
},
|
|
51729
|
+
"modifiers": {
|
|
51730
|
+
"padding": {
|
|
51731
|
+
"trailing": 10
|
|
51732
|
+
}
|
|
51690
51733
|
}
|
|
51691
51734
|
},
|
|
51692
51735
|
{
|
|
@@ -51705,7 +51748,8 @@ const SCREENS = runtimeSetting({
|
|
|
51705
51748
|
"props": {
|
|
51706
51749
|
"text": "$service:himiOwnerLiteAccount.businessName",
|
|
51707
51750
|
"style": "bodyEmphasis",
|
|
51708
|
-
"maxLines": 1
|
|
51751
|
+
"maxLines": 1,
|
|
51752
|
+
"collapseWhenEmpty": true
|
|
51709
51753
|
}
|
|
51710
51754
|
}
|
|
51711
51755
|
}
|
|
@@ -51719,7 +51763,7 @@ const SCREENS = runtimeSetting({
|
|
|
51719
51763
|
"package": "himalaya",
|
|
51720
51764
|
"type": "HStack",
|
|
51721
51765
|
"props": {
|
|
51722
|
-
"spacing":
|
|
51766
|
+
"spacing": 0,
|
|
51723
51767
|
"children": [
|
|
51724
51768
|
{
|
|
51725
51769
|
"id": "",
|
|
@@ -51731,6 +51775,11 @@ const SCREENS = runtimeSetting({
|
|
|
51731
51775
|
"style": "footnote",
|
|
51732
51776
|
"color": "textSecondary"
|
|
51733
51777
|
}
|
|
51778
|
+
},
|
|
51779
|
+
"modifiers": {
|
|
51780
|
+
"padding": {
|
|
51781
|
+
"trailing": 10
|
|
51782
|
+
}
|
|
51734
51783
|
}
|
|
51735
51784
|
},
|
|
51736
51785
|
{
|
|
@@ -51749,7 +51798,8 @@ const SCREENS = runtimeSetting({
|
|
|
51749
51798
|
"props": {
|
|
51750
51799
|
"text": "Organiser",
|
|
51751
51800
|
"style": "bodyEmphasis",
|
|
51752
|
-
"maxLines": 1
|
|
51801
|
+
"maxLines": 1,
|
|
51802
|
+
"collapseWhenEmpty": true
|
|
51753
51803
|
}
|
|
51754
51804
|
}
|
|
51755
51805
|
}
|
|
@@ -51763,7 +51813,7 @@ const SCREENS = runtimeSetting({
|
|
|
51763
51813
|
"package": "himalaya",
|
|
51764
51814
|
"type": "HStack",
|
|
51765
51815
|
"props": {
|
|
51766
|
-
"spacing":
|
|
51816
|
+
"spacing": 0,
|
|
51767
51817
|
"children": [
|
|
51768
51818
|
{
|
|
51769
51819
|
"id": "",
|
|
@@ -51775,6 +51825,11 @@ const SCREENS = runtimeSetting({
|
|
|
51775
51825
|
"style": "footnote",
|
|
51776
51826
|
"color": "textSecondary"
|
|
51777
51827
|
}
|
|
51828
|
+
},
|
|
51829
|
+
"modifiers": {
|
|
51830
|
+
"padding": {
|
|
51831
|
+
"trailing": 10
|
|
51832
|
+
}
|
|
51778
51833
|
}
|
|
51779
51834
|
},
|
|
51780
51835
|
{
|
|
@@ -51793,7 +51848,8 @@ const SCREENS = runtimeSetting({
|
|
|
51793
51848
|
"props": {
|
|
51794
51849
|
"text": "Business",
|
|
51795
51850
|
"style": "bodyEmphasis",
|
|
51796
|
-
"maxLines": 1
|
|
51851
|
+
"maxLines": 1,
|
|
51852
|
+
"collapseWhenEmpty": true
|
|
51797
51853
|
}
|
|
51798
51854
|
}
|
|
51799
51855
|
}
|
|
@@ -52038,16 +52094,12 @@ const SCREENS = runtimeSetting({
|
|
|
52038
52094
|
"text": "$service:drawer.siteName",
|
|
52039
52095
|
"style": "title3",
|
|
52040
52096
|
"color": "textPrimary",
|
|
52041
|
-
"maxLines": 1
|
|
52097
|
+
"maxLines": 1,
|
|
52098
|
+
"collapseWhenEmpty": true
|
|
52042
52099
|
}
|
|
52043
|
-
}
|
|
52044
|
-
|
|
52045
|
-
|
|
52046
|
-
"id": "",
|
|
52047
|
-
"body": {
|
|
52048
|
-
"package": "himalaya",
|
|
52049
|
-
"type": "Spacer",
|
|
52050
|
-
"props": {}
|
|
52100
|
+
},
|
|
52101
|
+
"modifiers": {
|
|
52102
|
+
"hiddenPath": "$service:drawer.noSiteName"
|
|
52051
52103
|
}
|
|
52052
52104
|
}
|
|
52053
52105
|
]
|
|
@@ -52496,14 +52548,6 @@ const SCREENS = runtimeSetting({
|
|
|
52496
52548
|
"modifiers": {
|
|
52497
52549
|
"hiddenPath": "$service:drawer.noAttention"
|
|
52498
52550
|
}
|
|
52499
|
-
},
|
|
52500
|
-
{
|
|
52501
|
-
"id": "",
|
|
52502
|
-
"body": {
|
|
52503
|
-
"package": "himalaya",
|
|
52504
|
-
"type": "Spacer",
|
|
52505
|
-
"props": {}
|
|
52506
|
-
}
|
|
52507
52551
|
}
|
|
52508
52552
|
]
|
|
52509
52553
|
}
|
|
@@ -55668,6 +55712,9 @@ const SCREENS = runtimeSetting({
|
|
|
55668
55712
|
],
|
|
55669
55713
|
"defaultCase": "loading"
|
|
55670
55714
|
}
|
|
55715
|
+
},
|
|
55716
|
+
"modifiers": {
|
|
55717
|
+
"hiddenPath": "$service:ask.noAfterAnswer"
|
|
55671
55718
|
}
|
|
55672
55719
|
}
|
|
55673
55720
|
]
|
|
@@ -61156,14 +61203,6 @@ const SCREENS = runtimeSetting({
|
|
|
61156
61203
|
},
|
|
61157
61204
|
"accessibilityLabel": "Take a photo"
|
|
61158
61205
|
}
|
|
61159
|
-
},
|
|
61160
|
-
{
|
|
61161
|
-
"id": "",
|
|
61162
|
-
"body": {
|
|
61163
|
-
"package": "himalaya",
|
|
61164
|
-
"type": "Spacer",
|
|
61165
|
-
"props": {}
|
|
61166
|
-
}
|
|
61167
61206
|
}
|
|
61168
61207
|
]
|
|
61169
61208
|
}
|
|
@@ -69574,7 +69613,7 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
69574
69613
|
"package": "himalaya",
|
|
69575
69614
|
"type": "HStack",
|
|
69576
69615
|
"props": {
|
|
69577
|
-
"spacing":
|
|
69616
|
+
"spacing": 0,
|
|
69578
69617
|
"children": [
|
|
69579
69618
|
{
|
|
69580
69619
|
"id": "",
|
|
@@ -69586,6 +69625,11 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
69586
69625
|
"style": "footnote",
|
|
69587
69626
|
"color": "textSecondary"
|
|
69588
69627
|
}
|
|
69628
|
+
},
|
|
69629
|
+
"modifiers": {
|
|
69630
|
+
"padding": {
|
|
69631
|
+
"trailing": 10
|
|
69632
|
+
}
|
|
69589
69633
|
}
|
|
69590
69634
|
},
|
|
69591
69635
|
{
|
|
@@ -69604,7 +69648,8 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
69604
69648
|
"props": {
|
|
69605
69649
|
"text": "$service:himiOwnerLiteEvent.dateLine",
|
|
69606
69650
|
"style": "bodyEmphasis",
|
|
69607
|
-
"maxLines": 1
|
|
69651
|
+
"maxLines": 1,
|
|
69652
|
+
"collapseWhenEmpty": true
|
|
69608
69653
|
}
|
|
69609
69654
|
}
|
|
69610
69655
|
}
|
|
@@ -69626,7 +69671,7 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
69626
69671
|
"package": "himalaya",
|
|
69627
69672
|
"type": "HStack",
|
|
69628
69673
|
"props": {
|
|
69629
|
-
"spacing":
|
|
69674
|
+
"spacing": 0,
|
|
69630
69675
|
"children": [
|
|
69631
69676
|
{
|
|
69632
69677
|
"id": "",
|
|
@@ -69638,6 +69683,11 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
69638
69683
|
"style": "footnote",
|
|
69639
69684
|
"color": "textSecondary"
|
|
69640
69685
|
}
|
|
69686
|
+
},
|
|
69687
|
+
"modifiers": {
|
|
69688
|
+
"padding": {
|
|
69689
|
+
"trailing": 10
|
|
69690
|
+
}
|
|
69641
69691
|
}
|
|
69642
69692
|
},
|
|
69643
69693
|
{
|
|
@@ -69656,7 +69706,8 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
69656
69706
|
"props": {
|
|
69657
69707
|
"text": "$service:himiOwnerLiteEvent.location",
|
|
69658
69708
|
"style": "bodyEmphasis",
|
|
69659
|
-
"maxLines": 1
|
|
69709
|
+
"maxLines": 1,
|
|
69710
|
+
"collapseWhenEmpty": true
|
|
69660
69711
|
}
|
|
69661
69712
|
}
|
|
69662
69713
|
}
|
|
@@ -69678,7 +69729,7 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
69678
69729
|
"package": "himalaya",
|
|
69679
69730
|
"type": "HStack",
|
|
69680
69731
|
"props": {
|
|
69681
|
-
"spacing":
|
|
69732
|
+
"spacing": 0,
|
|
69682
69733
|
"children": [
|
|
69683
69734
|
{
|
|
69684
69735
|
"id": "",
|
|
@@ -69690,6 +69741,11 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
69690
69741
|
"style": "footnote",
|
|
69691
69742
|
"color": "textSecondary"
|
|
69692
69743
|
}
|
|
69744
|
+
},
|
|
69745
|
+
"modifiers": {
|
|
69746
|
+
"padding": {
|
|
69747
|
+
"trailing": 10
|
|
69748
|
+
}
|
|
69693
69749
|
}
|
|
69694
69750
|
},
|
|
69695
69751
|
{
|
|
@@ -69708,7 +69764,8 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
69708
69764
|
"props": {
|
|
69709
69765
|
"text": "$service:himiOwnerLiteEvent.statusLabel",
|
|
69710
69766
|
"style": "bodyEmphasis",
|
|
69711
|
-
"maxLines": 1
|
|
69767
|
+
"maxLines": 1,
|
|
69768
|
+
"collapseWhenEmpty": true
|
|
69712
69769
|
}
|
|
69713
69770
|
}
|
|
69714
69771
|
}
|
|
@@ -69730,7 +69787,7 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
69730
69787
|
"package": "himalaya",
|
|
69731
69788
|
"type": "HStack",
|
|
69732
69789
|
"props": {
|
|
69733
|
-
"spacing":
|
|
69790
|
+
"spacing": 0,
|
|
69734
69791
|
"children": [
|
|
69735
69792
|
{
|
|
69736
69793
|
"id": "",
|
|
@@ -69742,6 +69799,11 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
69742
69799
|
"style": "footnote",
|
|
69743
69800
|
"color": "textSecondary"
|
|
69744
69801
|
}
|
|
69802
|
+
},
|
|
69803
|
+
"modifiers": {
|
|
69804
|
+
"padding": {
|
|
69805
|
+
"trailing": 10
|
|
69806
|
+
}
|
|
69745
69807
|
}
|
|
69746
69808
|
},
|
|
69747
69809
|
{
|
|
@@ -69760,7 +69822,8 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
69760
69822
|
"props": {
|
|
69761
69823
|
"text": "$service:himiOwnerLiteEvent.registration",
|
|
69762
69824
|
"style": "bodyEmphasis",
|
|
69763
|
-
"maxLines": 1
|
|
69825
|
+
"maxLines": 1,
|
|
69826
|
+
"collapseWhenEmpty": true
|
|
69764
69827
|
}
|
|
69765
69828
|
}
|
|
69766
69829
|
}
|
|
@@ -70508,7 +70571,7 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
70508
70571
|
"package": "himalaya",
|
|
70509
70572
|
"type": "HStack",
|
|
70510
70573
|
"props": {
|
|
70511
|
-
"spacing":
|
|
70574
|
+
"spacing": 0,
|
|
70512
70575
|
"children": [
|
|
70513
70576
|
{
|
|
70514
70577
|
"id": "",
|
|
@@ -70520,6 +70583,11 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
70520
70583
|
"style": "footnote",
|
|
70521
70584
|
"color": "textSecondary"
|
|
70522
70585
|
}
|
|
70586
|
+
},
|
|
70587
|
+
"modifiers": {
|
|
70588
|
+
"padding": {
|
|
70589
|
+
"trailing": 10
|
|
70590
|
+
}
|
|
70523
70591
|
}
|
|
70524
70592
|
},
|
|
70525
70593
|
{
|
|
@@ -70538,7 +70606,8 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
70538
70606
|
"props": {
|
|
70539
70607
|
"text": "$service:himiOwnerLitePost.postStatus",
|
|
70540
70608
|
"style": "bodyEmphasis",
|
|
70541
|
-
"maxLines": 1
|
|
70609
|
+
"maxLines": 1,
|
|
70610
|
+
"collapseWhenEmpty": true
|
|
70542
70611
|
}
|
|
70543
70612
|
}
|
|
70544
70613
|
}
|
|
@@ -70560,7 +70629,7 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
70560
70629
|
"package": "himalaya",
|
|
70561
70630
|
"type": "HStack",
|
|
70562
70631
|
"props": {
|
|
70563
|
-
"spacing":
|
|
70632
|
+
"spacing": 0,
|
|
70564
70633
|
"children": [
|
|
70565
70634
|
{
|
|
70566
70635
|
"id": "",
|
|
@@ -70572,6 +70641,11 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
70572
70641
|
"style": "footnote",
|
|
70573
70642
|
"color": "textSecondary"
|
|
70574
70643
|
}
|
|
70644
|
+
},
|
|
70645
|
+
"modifiers": {
|
|
70646
|
+
"padding": {
|
|
70647
|
+
"trailing": 10
|
|
70648
|
+
}
|
|
70575
70649
|
}
|
|
70576
70650
|
},
|
|
70577
70651
|
{
|
|
@@ -70590,7 +70664,8 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
70590
70664
|
"props": {
|
|
70591
70665
|
"text": "$service:himiOwnerLitePost.category",
|
|
70592
70666
|
"style": "bodyEmphasis",
|
|
70593
|
-
"maxLines": 1
|
|
70667
|
+
"maxLines": 1,
|
|
70668
|
+
"collapseWhenEmpty": true
|
|
70594
70669
|
}
|
|
70595
70670
|
}
|
|
70596
70671
|
}
|
|
@@ -70612,7 +70687,7 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
70612
70687
|
"package": "himalaya",
|
|
70613
70688
|
"type": "HStack",
|
|
70614
70689
|
"props": {
|
|
70615
|
-
"spacing":
|
|
70690
|
+
"spacing": 0,
|
|
70616
70691
|
"children": [
|
|
70617
70692
|
{
|
|
70618
70693
|
"id": "",
|
|
@@ -70624,6 +70699,11 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
70624
70699
|
"style": "footnote",
|
|
70625
70700
|
"color": "textSecondary"
|
|
70626
70701
|
}
|
|
70702
|
+
},
|
|
70703
|
+
"modifiers": {
|
|
70704
|
+
"padding": {
|
|
70705
|
+
"trailing": 10
|
|
70706
|
+
}
|
|
70627
70707
|
}
|
|
70628
70708
|
},
|
|
70629
70709
|
{
|
|
@@ -70642,7 +70722,8 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
70642
70722
|
"props": {
|
|
70643
70723
|
"text": "$service:himiOwnerLitePost.published",
|
|
70644
70724
|
"style": "bodyEmphasis",
|
|
70645
|
-
"maxLines": 1
|
|
70725
|
+
"maxLines": 1,
|
|
70726
|
+
"collapseWhenEmpty": true
|
|
70646
70727
|
}
|
|
70647
70728
|
}
|
|
70648
70729
|
}
|
|
@@ -70664,7 +70745,7 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
70664
70745
|
"package": "himalaya",
|
|
70665
70746
|
"type": "HStack",
|
|
70666
70747
|
"props": {
|
|
70667
|
-
"spacing":
|
|
70748
|
+
"spacing": 0,
|
|
70668
70749
|
"children": [
|
|
70669
70750
|
{
|
|
70670
70751
|
"id": "",
|
|
@@ -70676,6 +70757,11 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
70676
70757
|
"style": "footnote",
|
|
70677
70758
|
"color": "textSecondary"
|
|
70678
70759
|
}
|
|
70760
|
+
},
|
|
70761
|
+
"modifiers": {
|
|
70762
|
+
"padding": {
|
|
70763
|
+
"trailing": 10
|
|
70764
|
+
}
|
|
70679
70765
|
}
|
|
70680
70766
|
},
|
|
70681
70767
|
{
|
|
@@ -70694,7 +70780,8 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
70694
70780
|
"props": {
|
|
70695
70781
|
"text": "$service:himiOwnerLitePost.updated",
|
|
70696
70782
|
"style": "bodyEmphasis",
|
|
70697
|
-
"maxLines": 1
|
|
70783
|
+
"maxLines": 1,
|
|
70784
|
+
"collapseWhenEmpty": true
|
|
70698
70785
|
}
|
|
70699
70786
|
}
|
|
70700
70787
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineService as register, type ServiceDefinition } from '@himalaya/state';
|
|
2
2
|
import { normalizeHome, visibleHome, moduleIsEmpty, type HomeModule, type HomePreferences } from './home-modules.js';
|
|
3
|
-
import { copyParam, stashCopy } from './himi-copy.js';
|
|
3
|
+
import { copyParam, copyTemplate, stashCopy } from './himi-copy.js';
|
|
4
4
|
import { localPreferences } from './local-preferences.js';
|
|
5
5
|
type State = Record<string, unknown>;
|
|
6
6
|
type Action = (s: State, ...args: unknown[]) => State | undefined | Promise<State | undefined>;
|
|
@@ -32,10 +32,22 @@ export function decorateHome(def: { state: State; actions?: Record<string, Actio
|
|
|
32
32
|
return { ...s, homeModules: { presented, visible: painted.map(id => ({ id })),
|
|
33
33
|
persistenceLabel: persisted.available ? copyParam('homeModules.onDevice', 'Saved on this device') : copyParam('homeModules.sessionOnly', 'Choices last for this session'),
|
|
34
34
|
slots: Object.fromEntries(modules.map((_, i) => [`slot${i}`, order[i] ?? 'empty'])),
|
|
35
|
-
choices: prefs.order.map(id =>
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
choices: prefs.order.map((id, index) => {
|
|
36
|
+
const module = modules.find(candidate => candidate.id === id);
|
|
37
|
+
const name = module?.label ?? id;
|
|
38
|
+
const isHidden = prefs.hidden.includes(id);
|
|
39
|
+
const isPinned = prefs.pinned.includes(id);
|
|
40
|
+
return { ...module,
|
|
41
|
+
isFirst: index === 0,
|
|
42
|
+
isLast: index === prefs.order.length - 1,
|
|
43
|
+
visibility: isHidden ? copyParam('homeModules.show', 'Show') : copyParam('homeModules.hide', 'Hide'),
|
|
44
|
+
pinLabel: isPinned ? copyParam('homeModules.unpin', 'Unpin') : copyParam('homeModules.pin', 'Pin'),
|
|
45
|
+
visibilityA11yLabel: copyTemplate(isHidden ? 'homeModules.showA11y' : 'homeModules.hideA11y', isHidden ? 'Show {module}' : 'Hide {module}', { module: name }),
|
|
46
|
+
pinA11yLabel: copyTemplate(isPinned ? 'homeModules.unpinA11y' : 'homeModules.pinA11y', isPinned ? 'Unpin {module}' : 'Pin {module}', { module: name }),
|
|
47
|
+
moveUpA11yLabel: copyTemplate('homeModules.moveUpA11y', 'Move {module} up', { module: name }),
|
|
48
|
+
moveDownA11yLabel: copyTemplate('homeModules.moveDownA11y', 'Move {module} down', { module: name }),
|
|
49
|
+
};
|
|
50
|
+
}) } };
|
|
39
51
|
};
|
|
40
52
|
const actions: Record<string, Action> = {};
|
|
41
53
|
for (const [name, action] of Object.entries(def.actions ?? {})) actions[name] = (s, ...args) => {
|
|
@@ -72,6 +84,7 @@ export function decorateHome(def: { state: State; actions?: Record<string, Actio
|
|
|
72
84
|
actions.homeToggle = change(id => { if (modules.some(m => m.id === id)) prefs.hidden = prefs.hidden.includes(id) ? prefs.hidden.filter(x => x !== id) : [...prefs.hidden, id]; });
|
|
73
85
|
actions.homePin = change(id => { if (modules.some(m => m.id === id)) { prefs.pinned = prefs.pinned.includes(id) ? prefs.pinned.filter(x => x !== id) : [...prefs.pinned, id]; prefs.hidden = prefs.hidden.filter(x => x !== id); } });
|
|
74
86
|
actions.homeMoveUp = change(id => { const index = prefs.order.indexOf(id); if (index > 0) [prefs.order[index - 1], prefs.order[index]] = [prefs.order[index], prefs.order[index - 1]]; });
|
|
87
|
+
actions.homeMoveDown = change(id => { const index = prefs.order.indexOf(id); if (index >= 0 && index < prefs.order.length - 1) [prefs.order[index], prefs.order[index + 1]] = [prefs.order[index + 1], prefs.order[index]]; });
|
|
75
88
|
return { state: derive(def.state), actions };
|
|
76
89
|
}
|
|
77
90
|
export const defineService: typeof register = ((name: string, def: ServiceDefinition<unknown>) => register(name, decorateHome(def as unknown as { state: State; actions?: Record<string, Action> }))) as typeof register;
|
|
@@ -74,6 +74,8 @@ interface AskState {
|
|
|
74
74
|
noRecents: boolean;
|
|
75
75
|
hasAnswer: boolean;
|
|
76
76
|
noAnswer: boolean;
|
|
77
|
+
/** Hide the authored answer controls when neither an answer nor recents exist. */
|
|
78
|
+
noAfterAnswer: boolean;
|
|
77
79
|
|
|
78
80
|
// --- Proposed write (Phase 6) -------------------------------------------
|
|
79
81
|
// A generated row can PROPOSE a change; it can never make one. `proposeWrite`
|
|
@@ -145,6 +147,7 @@ const initialState: AskState = {
|
|
|
145
147
|
noRecents: true,
|
|
146
148
|
hasAnswer: false,
|
|
147
149
|
noAnswer: true,
|
|
150
|
+
noAfterAnswer: true,
|
|
148
151
|
proposalVerb: "",
|
|
149
152
|
proposalEntity: "",
|
|
150
153
|
proposalId: "",
|
|
@@ -436,6 +439,7 @@ async function runTurn(state: AskState, rawIntent: string, options: TurnOptions
|
|
|
436
439
|
savedScreenId: options.remember ? savedScreenId(intent) : state.savedScreenId,
|
|
437
440
|
hasAnswer: true,
|
|
438
441
|
noAnswer: false,
|
|
442
|
+
noAfterAnswer: false,
|
|
439
443
|
...NO_PROPOSAL,
|
|
440
444
|
};
|
|
441
445
|
}
|
|
@@ -499,6 +503,7 @@ const ask = defineService<AskState, {
|
|
|
499
503
|
...state, recents,
|
|
500
504
|
hasRecents: recents.length > 0,
|
|
501
505
|
noRecents: recents.length === 0,
|
|
506
|
+
noAfterAnswer: state.noAnswer && recents.length === 0,
|
|
502
507
|
// A saved link whose question has aged out of the recents list can't
|
|
503
508
|
// be replayed — say so rather than opening a blank screen.
|
|
504
509
|
...(id ? { headline: "That saved answer is gone", note: "Ask the question again to bring it back." } : {}),
|
|
@@ -40,6 +40,8 @@ export interface DrawerCore {
|
|
|
40
40
|
|
|
41
41
|
export interface DrawerState extends DrawerCore {
|
|
42
42
|
siteInitials: string;
|
|
43
|
+
/** Hide the name completely when unavailable so the site row has no empty gap. */
|
|
44
|
+
noSiteName: boolean;
|
|
43
45
|
attentionTotal: number;
|
|
44
46
|
attentionLabel: string;
|
|
45
47
|
/** TRUE when there is nothing to chase. Feeds `hiddenPath`, which hides on a
|
|
@@ -85,6 +87,7 @@ export function withDerived(core: DrawerCore): DrawerState {
|
|
|
85
87
|
attention,
|
|
86
88
|
confirmingClear,
|
|
87
89
|
siteInitials: initialsOf(core.siteName),
|
|
90
|
+
noSiteName: core.siteName.trim().length === 0,
|
|
88
91
|
attentionTotal: total,
|
|
89
92
|
attentionLabel: total === 0
|
|
90
93
|
? "All caught up"
|
|
@@ -268,6 +268,7 @@ const svc = defineService<EventFormState, {
|
|
|
268
268
|
submit: async (s, values): Promise<EventFormState> => settleOverLive(svc, s, await (async (): Promise<EventFormState> => {
|
|
269
269
|
if (isOwnerPreviewDemo() || s.demoNote) return demoRefusal(s);
|
|
270
270
|
const v = values ?? {};
|
|
271
|
+
const targetId = s.id || (typeof v.id === "string" ? v.id : "");
|
|
271
272
|
const title = String(v.title ?? s.title).trim();
|
|
272
273
|
// The description, per record mode. A queue replay boots a FRESH worker and says so with
|
|
273
274
|
// `descriptionEdited`: this bundle's editor items add the document as `descriptionJson`; the
|
|
@@ -299,7 +300,7 @@ const svc = defineService<EventFormState, {
|
|
|
299
300
|
}
|
|
300
301
|
const description = doc ? postBodyText(doc as never) : s.description; // the plain-text mirror
|
|
301
302
|
if (!title) return shape({ ...s, status: "error", error: copyParam("ownerEventForm.titleRequired", "Title is required"), savedMessage: "" });
|
|
302
|
-
if (!
|
|
303
|
+
if (!targetId) return shape({ ...s, status: "error", error: copyParam("ownerEventForm.errorNoEvent", "No event to edit."), savedMessage: "" });
|
|
303
304
|
|
|
304
305
|
// updateEvent(id, event) wraps the body as { event } internally, so pass the event fields
|
|
305
306
|
// directly. Only what the owner edited is written, the description always as a Ricos document
|
|
@@ -315,22 +316,31 @@ const svc = defineService<EventFormState, {
|
|
|
315
316
|
// Plain only when KNOWN plain: a plain row, or a loaded event with no description. Before load
|
|
316
317
|
// lands nothing is known, so the row stays protected (fail closed).
|
|
317
318
|
const knownPlain = s.descriptionMode === "plain" || (s.descriptionMode === "editor" && !s.descriptionPending && s.descriptionJson === "");
|
|
318
|
-
|
|
319
|
+
const cached = replay && !s.id ? await cacheGet(targetId) : null;
|
|
320
|
+
// A queued metadata edit omitted the event body and read-only details. Keep their cached
|
|
321
|
+
// values rather than replacing them with a fresh worker's empty/default state.
|
|
322
|
+
await cachePut({
|
|
323
|
+
...(cached ?? {}), id: targetId, name: title, title,
|
|
324
|
+
description: doc ? description : String(cached?.description ?? description),
|
|
325
|
+
descriptionProtected: doc ? cachedRichVerdict(heldDoc as never, knownPlain) : String(cached?.descriptionProtected ?? cachedRichVerdict(heldDoc as never, knownPlain)),
|
|
326
|
+
...(heldJson ? { descriptionJson: heldJson } : {}),
|
|
327
|
+
when: String(cached?.when ?? s.when), location: String(cached?.location ?? s.location),
|
|
328
|
+
});
|
|
319
329
|
const savedState = (savedMessage: string) => {
|
|
320
330
|
// An edit typed while this save was in flight stays unsaved work ([rico] #3644).
|
|
321
331
|
const after = editorAfterSave("description", s as never, liveState(svc), !!doc);
|
|
322
332
|
return shape({
|
|
323
|
-
...s, mode: "edit", id:
|
|
333
|
+
...s, mode: "edit", id: targetId, heading: copyParam("ownerEventForm.headingEdit", "Edit event"),
|
|
324
334
|
title, description, originalDescription: doc ? description : s.originalDescription,
|
|
325
335
|
...(docRaw ? { descriptionJson: docRaw } : {}),
|
|
326
336
|
descriptionDirty: after.dirty, descriptionEdits: after.edits,
|
|
327
|
-
status: "saved", savedMessage, savedId:
|
|
337
|
+
status: "saved", savedMessage, savedId: targetId,
|
|
328
338
|
...(after.editedDuringSave ? { status: "idle" as const, savedMessage: "" } : {}),
|
|
329
339
|
error: tooLarge ? copyParam("ownerEventForm.descriptionTooLarge", "The description is too long to save, so it was left as it was. Your other changes were saved.") : "",
|
|
330
340
|
});
|
|
331
341
|
};
|
|
332
342
|
try {
|
|
333
|
-
await updateEvent(
|
|
343
|
+
await updateEvent(targetId, event);
|
|
334
344
|
return savedState(copyParam("ownerEventForm.savedMessage", "Event saved."));
|
|
335
345
|
} catch (e) {
|
|
336
346
|
if (shouldQueueOwnerWrite(e)) {
|
|
@@ -342,7 +352,7 @@ const svc = defineService<EventFormState, {
|
|
|
342
352
|
// (WriteQueue, idempotent) when connectivity returns. A document rides as `descriptionJson`
|
|
343
353
|
// with descriptionEdited "false", so a bundle rolled back past this change leaves the
|
|
344
354
|
// description rather than flattening it to text.
|
|
345
|
-
await queueWrite("tier5.himiOwnerLiteEventForm.submit", { id:
|
|
355
|
+
await queueWrite("tier5.himiOwnerLiteEventForm.submit", { id: targetId, title, description,
|
|
346
356
|
...(docRaw ? { descriptionJson: docRaw, descriptionEdited: "false" } : { descriptionEdited: String(doc !== null) }) });
|
|
347
357
|
return savedState(copyParam("ownerEventForm.savedOffline", "Saved offline — will sync when you reconnect."));
|
|
348
358
|
}
|