@wix/himalaya-cli 0.1311.0 → 0.1312.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/cli.mjs +55 -34
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/web-page-native-sdk.md +18 -8
- package/guides/webview-page-sdk.md +9 -3
- package/package.json +2 -2
- package/templates/beauty-salon/dev/index.ts +25 -25
- package/templates/beauty-salon/tier5-src/_shared/collection-contract.ts +10 -0
- package/templates/beauty-salon/tier5-src/_shared/collection-service.ts +3 -1
- package/templates/beauty-salon-owner/dev/index.ts +844 -510
- package/templates/beauty-salon-owner/tier5-src/_shared/collection-contract.ts +10 -0
- package/templates/beauty-salon-owner/tier5-src/_shared/collection-service.ts +3 -1
- package/templates/beauty-salon-owner/tier5-src/_shared/detail-facts.ts +26 -0
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-ask/blocks.ts +7 -3
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-ask/index.ts +2 -2
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-manage/logic.ts +3 -0
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-post/index.ts +10 -0
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-posts/index.ts +21 -2
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-product/index.ts +10 -0
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-search/index.ts +6 -0
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-search/vertical-sources.ts +178 -0
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-service/index.ts +10 -0
- package/templates/branded-lite/dev/index.ts +120 -120
- package/templates/branded-lite/tier5-src/_shared/collection-contract.ts +10 -0
- package/templates/branded-lite/tier5-src/_shared/collection-service.ts +3 -1
- package/templates/community-club/dev/index.ts +20 -20
- package/templates/community-club/tier5-src/_shared/collection-contract.ts +10 -0
- package/templates/community-club/tier5-src/_shared/collection-service.ts +3 -1
- package/templates/community-club-owner/dev/index.ts +957 -595
- package/templates/community-club-owner/tier5-src/_shared/collection-contract.ts +10 -0
- package/templates/community-club-owner/tier5-src/_shared/collection-service.ts +3 -1
- package/templates/community-club-owner/tier5-src/_shared/detail-facts.ts +26 -0
- package/templates/community-club-owner/tier5-src/himi-owner-lite-ask/blocks.ts +7 -3
- package/templates/community-club-owner/tier5-src/himi-owner-lite-ask/index.ts +2 -2
- package/templates/community-club-owner/tier5-src/himi-owner-lite-event/index.ts +10 -0
- package/templates/community-club-owner/tier5-src/himi-owner-lite-manage/logic.ts +3 -0
- package/templates/community-club-owner/tier5-src/himi-owner-lite-post/index.ts +10 -0
- package/templates/community-club-owner/tier5-src/himi-owner-lite-posts/index.ts +21 -2
- package/templates/community-club-owner/tier5-src/himi-owner-lite-product/index.ts +10 -0
- package/templates/community-club-owner/tier5-src/himi-owner-lite-search/index.ts +6 -0
- package/templates/community-club-owner/tier5-src/himi-owner-lite-search/vertical-sources.ts +178 -0
- package/templates/events-meetups/dev/index.ts +15 -15
- package/templates/events-meetups/tier5-src/_shared/collection-contract.ts +10 -0
- package/templates/events-meetups/tier5-src/_shared/collection-service.ts +3 -1
- package/templates/events-meetups-owner/dev/index.ts +726 -433
- package/templates/events-meetups-owner/tier5-src/_shared/collection-contract.ts +10 -0
- package/templates/events-meetups-owner/tier5-src/_shared/collection-service.ts +3 -1
- package/templates/events-meetups-owner/tier5-src/_shared/detail-facts.ts +26 -0
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-ask/blocks.ts +7 -3
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-ask/index.ts +2 -2
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-event/index.ts +10 -0
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-manage/logic.ts +3 -0
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-post/index.ts +10 -0
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-posts/index.ts +21 -2
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-search/index.ts +6 -0
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-search/vertical-sources.ts +178 -0
- package/templates/gym-fitness/dev/index.ts +30 -30
- package/templates/gym-fitness/tier5-src/_shared/collection-contract.ts +10 -0
- package/templates/gym-fitness/tier5-src/_shared/collection-service.ts +3 -1
- package/templates/gym-fitness-owner/dev/index.ts +1041 -644
- package/templates/gym-fitness-owner/tier5-src/_shared/collection-contract.ts +10 -0
- package/templates/gym-fitness-owner/tier5-src/_shared/collection-service.ts +3 -1
- package/templates/gym-fitness-owner/tier5-src/_shared/detail-facts.ts +26 -0
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-ask/blocks.ts +7 -3
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-ask/index.ts +2 -2
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-event/index.ts +10 -0
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-manage/logic.ts +3 -0
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-post/index.ts +10 -0
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-posts/index.ts +21 -2
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-product/index.ts +10 -0
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-search/index.ts +6 -0
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-search/vertical-sources.ts +178 -0
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-service/index.ts +10 -0
- package/templates/nonprofit-cause/dev/index.ts +20 -20
- package/templates/nonprofit-cause/tier5-src/_shared/collection-contract.ts +10 -0
- package/templates/nonprofit-cause/tier5-src/_shared/collection-service.ts +3 -1
- package/templates/nonprofit-cause-owner/dev/index.ts +810 -482
- package/templates/nonprofit-cause-owner/tier5-src/_shared/collection-contract.ts +10 -0
- package/templates/nonprofit-cause-owner/tier5-src/_shared/collection-service.ts +3 -1
- package/templates/nonprofit-cause-owner/tier5-src/_shared/detail-facts.ts +26 -0
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-ask/blocks.ts +7 -3
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-ask/index.ts +2 -2
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-event/index.ts +10 -0
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-manage/logic.ts +3 -0
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-post/index.ts +10 -0
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-posts/index.ts +21 -2
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-search/index.ts +6 -0
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-search/vertical-sources.ts +178 -0
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-service/index.ts +10 -0
- package/templates/owner-lite/dev/index.ts +1066 -648
- package/templates/owner-lite/tier5-src/_shared/collection-contract.ts +10 -0
- package/templates/owner-lite/tier5-src/_shared/collection-service.ts +3 -1
- package/templates/owner-lite/tier5-src/_shared/detail-facts.ts +26 -0
- package/templates/owner-lite/tier5-src/himi-owner-lite-ask/blocks.ts +7 -3
- package/templates/owner-lite/tier5-src/himi-owner-lite-ask/index.ts +2 -2
- package/templates/owner-lite/tier5-src/himi-owner-lite-event/index.ts +10 -0
- package/templates/owner-lite/tier5-src/himi-owner-lite-manage/logic.ts +3 -0
- package/templates/owner-lite/tier5-src/himi-owner-lite-post/index.ts +10 -0
- package/templates/owner-lite/tier5-src/himi-owner-lite-posts/index.ts +21 -2
- package/templates/owner-lite/tier5-src/himi-owner-lite-product/index.ts +10 -0
- package/templates/owner-lite/tier5-src/himi-owner-lite-search/index.ts +6 -0
- package/templates/owner-lite/tier5-src/himi-owner-lite-search/vertical-sources.ts +178 -0
- package/templates/owner-lite/tier5-src/himi-owner-lite-service/index.ts +10 -0
- package/templates/podcast-creator/dev/index.ts +20 -20
- package/templates/podcast-creator/tier5-src/_shared/collection-contract.ts +10 -0
- package/templates/podcast-creator/tier5-src/_shared/collection-service.ts +3 -1
- package/templates/podcast-creator-owner/dev/index.ts +957 -595
- package/templates/podcast-creator-owner/tier5-src/_shared/collection-contract.ts +10 -0
- package/templates/podcast-creator-owner/tier5-src/_shared/collection-service.ts +3 -1
- package/templates/podcast-creator-owner/tier5-src/_shared/detail-facts.ts +26 -0
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-ask/blocks.ts +7 -3
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-ask/index.ts +2 -2
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-event/index.ts +10 -0
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-manage/logic.ts +3 -0
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-post/index.ts +10 -0
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-posts/index.ts +21 -2
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-product/index.ts +10 -0
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-search/index.ts +6 -0
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-search/vertical-sources.ts +178 -0
- package/templates/portfolio-creative/dev/index.ts +20 -20
- package/templates/portfolio-creative/tier5-src/_shared/collection-contract.ts +10 -0
- package/templates/portfolio-creative/tier5-src/_shared/collection-service.ts +3 -1
- package/templates/portfolio-creative-owner/dev/index.ts +844 -510
- package/templates/portfolio-creative-owner/tier5-src/_shared/collection-contract.ts +10 -0
- package/templates/portfolio-creative-owner/tier5-src/_shared/collection-service.ts +3 -1
- package/templates/portfolio-creative-owner/tier5-src/_shared/detail-facts.ts +26 -0
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-ask/blocks.ts +7 -3
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-ask/index.ts +2 -2
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-manage/logic.ts +3 -0
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-post/index.ts +10 -0
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-posts/index.ts +21 -2
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-product/index.ts +10 -0
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-search/index.ts +6 -0
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-search/vertical-sources.ts +178 -0
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-service/index.ts +10 -0
- package/templates/restaurant/dev/index.ts +15 -15
- package/templates/restaurant/tier5-src/_shared/collection-contract.ts +10 -0
- package/templates/restaurant/tier5-src/_shared/collection-service.ts +3 -1
- package/templates/restaurant-owner/dev/index.ts +1041 -644
- package/templates/restaurant-owner/tier5-src/_shared/collection-contract.ts +10 -0
- package/templates/restaurant-owner/tier5-src/_shared/collection-service.ts +3 -1
- package/templates/restaurant-owner/tier5-src/_shared/detail-facts.ts +26 -0
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-ask/blocks.ts +7 -3
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-ask/index.ts +2 -2
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-event/index.ts +10 -0
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-manage/logic.ts +3 -0
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-post/index.ts +10 -0
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-posts/index.ts +21 -2
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-product/index.ts +10 -0
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-search/index.ts +6 -0
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-search/vertical-sources.ts +178 -0
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-service/index.ts +10 -0
- package/templates/retail-store/dev/index.ts +10 -10
- package/templates/retail-store/tier5-src/_shared/collection-contract.ts +10 -0
- package/templates/retail-store/tier5-src/_shared/collection-service.ts +3 -1
- package/templates/retail-store-owner/dev/index.ts +760 -461
- package/templates/retail-store-owner/tier5-src/_shared/collection-contract.ts +10 -0
- package/templates/retail-store-owner/tier5-src/_shared/collection-service.ts +3 -1
- package/templates/retail-store-owner/tier5-src/_shared/detail-facts.ts +26 -0
- package/templates/retail-store-owner/tier5-src/_shared/offset-page.ts +10 -0
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-ask/blocks.ts +7 -3
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-ask/index.ts +2 -2
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-manage/logic.ts +3 -0
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-post/index.ts +10 -0
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-posts/index.ts +21 -2
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-product/index.ts +10 -0
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-search/index.ts +6 -0
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-search/vertical-sources.ts +178 -0
- package/templates/yoga-studio/dev/index.ts +30 -30
- package/templates/yoga-studio/tier5-src/_shared/collection-contract.ts +10 -0
- package/templates/yoga-studio/tier5-src/_shared/collection-service.ts +3 -1
- package/templates/yoga-studio-owner/dev/index.ts +810 -482
- package/templates/yoga-studio-owner/tier5-src/_shared/collection-contract.ts +10 -0
- package/templates/yoga-studio-owner/tier5-src/_shared/collection-service.ts +3 -1
- package/templates/yoga-studio-owner/tier5-src/_shared/detail-facts.ts +26 -0
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-ask/blocks.ts +7 -3
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-ask/index.ts +2 -2
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-event/index.ts +10 -0
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-manage/logic.ts +3 -0
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-post/index.ts +10 -0
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-posts/index.ts +21 -2
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-search/index.ts +6 -0
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-search/vertical-sources.ts +178 -0
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-service/index.ts +10 -0
|
@@ -5495,7 +5495,7 @@ const SCREENS = runtimeSetting({
|
|
|
5495
5495
|
"modifiers": {
|
|
5496
5496
|
"width": 44,
|
|
5497
5497
|
"height": 44,
|
|
5498
|
-
"accessibilityLabel": "
|
|
5498
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
5499
5499
|
}
|
|
5500
5500
|
},
|
|
5501
5501
|
"items": [
|
|
@@ -5849,7 +5849,7 @@ const SCREENS = runtimeSetting({
|
|
|
5849
5849
|
"modifiers": {
|
|
5850
5850
|
"width": 44,
|
|
5851
5851
|
"height": 44,
|
|
5852
|
-
"accessibilityLabel": "
|
|
5852
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
5853
5853
|
}
|
|
5854
5854
|
},
|
|
5855
5855
|
"items": [
|
|
@@ -6123,7 +6123,7 @@ const SCREENS = runtimeSetting({
|
|
|
6123
6123
|
"modifiers": {
|
|
6124
6124
|
"width": 44,
|
|
6125
6125
|
"height": 44,
|
|
6126
|
-
"accessibilityLabel": "
|
|
6126
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
6127
6127
|
}
|
|
6128
6128
|
},
|
|
6129
6129
|
"items": [
|
|
@@ -6477,7 +6477,7 @@ const SCREENS = runtimeSetting({
|
|
|
6477
6477
|
"modifiers": {
|
|
6478
6478
|
"width": 44,
|
|
6479
6479
|
"height": 44,
|
|
6480
|
-
"accessibilityLabel": "
|
|
6480
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
6481
6481
|
}
|
|
6482
6482
|
},
|
|
6483
6483
|
"items": [
|
|
@@ -7076,7 +7076,7 @@ const SCREENS = runtimeSetting({
|
|
|
7076
7076
|
"modifiers": {
|
|
7077
7077
|
"width": 44,
|
|
7078
7078
|
"height": 44,
|
|
7079
|
-
"accessibilityLabel": "
|
|
7079
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
7080
7080
|
}
|
|
7081
7081
|
},
|
|
7082
7082
|
"items": [
|
|
@@ -9832,7 +9832,7 @@ const SCREENS = runtimeSetting({
|
|
|
9832
9832
|
"modifiers": {
|
|
9833
9833
|
"width": 44,
|
|
9834
9834
|
"height": 44,
|
|
9835
|
-
"accessibilityLabel": "
|
|
9835
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
9836
9836
|
}
|
|
9837
9837
|
},
|
|
9838
9838
|
"items": [
|
|
@@ -10240,7 +10240,7 @@ const SCREENS = runtimeSetting({
|
|
|
10240
10240
|
"modifiers": {
|
|
10241
10241
|
"width": 44,
|
|
10242
10242
|
"height": 44,
|
|
10243
|
-
"accessibilityLabel": "
|
|
10243
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
10244
10244
|
}
|
|
10245
10245
|
},
|
|
10246
10246
|
"items": [
|
|
@@ -10600,7 +10600,7 @@ const SCREENS = runtimeSetting({
|
|
|
10600
10600
|
"modifiers": {
|
|
10601
10601
|
"width": 44,
|
|
10602
10602
|
"height": 44,
|
|
10603
|
-
"accessibilityLabel": "
|
|
10603
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
10604
10604
|
}
|
|
10605
10605
|
},
|
|
10606
10606
|
"items": [
|
|
@@ -11008,7 +11008,7 @@ const SCREENS = runtimeSetting({
|
|
|
11008
11008
|
"modifiers": {
|
|
11009
11009
|
"width": 44,
|
|
11010
11010
|
"height": 44,
|
|
11011
|
-
"accessibilityLabel": "
|
|
11011
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
11012
11012
|
}
|
|
11013
11013
|
},
|
|
11014
11014
|
"items": [
|
|
@@ -11755,7 +11755,7 @@ const SCREENS = runtimeSetting({
|
|
|
11755
11755
|
"modifiers": {
|
|
11756
11756
|
"width": 44,
|
|
11757
11757
|
"height": 44,
|
|
11758
|
-
"accessibilityLabel": "
|
|
11758
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
11759
11759
|
}
|
|
11760
11760
|
},
|
|
11761
11761
|
"items": [
|
|
@@ -13305,7 +13305,7 @@ const SCREENS = runtimeSetting({
|
|
|
13305
13305
|
"modifiers": {
|
|
13306
13306
|
"width": 44,
|
|
13307
13307
|
"height": 44,
|
|
13308
|
-
"accessibilityLabel": "
|
|
13308
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
13309
13309
|
}
|
|
13310
13310
|
},
|
|
13311
13311
|
"items": [
|
|
@@ -13652,7 +13652,7 @@ const SCREENS = runtimeSetting({
|
|
|
13652
13652
|
"modifiers": {
|
|
13653
13653
|
"width": 44,
|
|
13654
13654
|
"height": 44,
|
|
13655
|
-
"accessibilityLabel": "
|
|
13655
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
13656
13656
|
}
|
|
13657
13657
|
},
|
|
13658
13658
|
"items": [
|
|
@@ -13942,7 +13942,7 @@ const SCREENS = runtimeSetting({
|
|
|
13942
13942
|
"modifiers": {
|
|
13943
13943
|
"width": 44,
|
|
13944
13944
|
"height": 44,
|
|
13945
|
-
"accessibilityLabel": "
|
|
13945
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
13946
13946
|
}
|
|
13947
13947
|
},
|
|
13948
13948
|
"items": [
|
|
@@ -14289,7 +14289,7 @@ const SCREENS = runtimeSetting({
|
|
|
14289
14289
|
"modifiers": {
|
|
14290
14290
|
"width": 44,
|
|
14291
14291
|
"height": 44,
|
|
14292
|
-
"accessibilityLabel": "
|
|
14292
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
14293
14293
|
}
|
|
14294
14294
|
},
|
|
14295
14295
|
"items": [
|
|
@@ -14930,7 +14930,7 @@ const SCREENS = runtimeSetting({
|
|
|
14930
14930
|
"modifiers": {
|
|
14931
14931
|
"width": 44,
|
|
14932
14932
|
"height": 44,
|
|
14933
|
-
"accessibilityLabel": "
|
|
14933
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
14934
14934
|
}
|
|
14935
14935
|
},
|
|
14936
14936
|
"items": [
|
|
@@ -16315,7 +16315,7 @@ const SCREENS = runtimeSetting({
|
|
|
16315
16315
|
"modifiers": {
|
|
16316
16316
|
"width": 44,
|
|
16317
16317
|
"height": 44,
|
|
16318
|
-
"accessibilityLabel": "
|
|
16318
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
16319
16319
|
}
|
|
16320
16320
|
},
|
|
16321
16321
|
"items": [
|
|
@@ -16722,7 +16722,7 @@ const SCREENS = runtimeSetting({
|
|
|
16722
16722
|
"modifiers": {
|
|
16723
16723
|
"width": 44,
|
|
16724
16724
|
"height": 44,
|
|
16725
|
-
"accessibilityLabel": "
|
|
16725
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
16726
16726
|
}
|
|
16727
16727
|
},
|
|
16728
16728
|
"items": [
|
|
@@ -16994,7 +16994,7 @@ const SCREENS = runtimeSetting({
|
|
|
16994
16994
|
"modifiers": {
|
|
16995
16995
|
"width": 44,
|
|
16996
16996
|
"height": 44,
|
|
16997
|
-
"accessibilityLabel": "
|
|
16997
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
16998
16998
|
}
|
|
16999
16999
|
},
|
|
17000
17000
|
"items": [
|
|
@@ -17401,7 +17401,7 @@ const SCREENS = runtimeSetting({
|
|
|
17401
17401
|
"modifiers": {
|
|
17402
17402
|
"width": 44,
|
|
17403
17403
|
"height": 44,
|
|
17404
|
-
"accessibilityLabel": "
|
|
17404
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
17405
17405
|
}
|
|
17406
17406
|
},
|
|
17407
17407
|
"items": [
|
|
@@ -18059,7 +18059,7 @@ const SCREENS = runtimeSetting({
|
|
|
18059
18059
|
"modifiers": {
|
|
18060
18060
|
"width": 44,
|
|
18061
18061
|
"height": 44,
|
|
18062
|
-
"accessibilityLabel": "
|
|
18062
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
18063
18063
|
}
|
|
18064
18064
|
},
|
|
18065
18065
|
"items": [
|
|
@@ -58,6 +58,13 @@ export interface CollectionConfig {
|
|
|
58
58
|
/** At or below this many records, with no query/filter narrowing them and no further
|
|
59
59
|
* page, the list/grid toggle, Refine, chips, search and count are noise. */
|
|
60
60
|
export const COLLECTION_CHROME_MIN_ITEMS = 4;
|
|
61
|
+
/** The accessible name of a row's overflow menu: `template` with `{title}` filled, or the
|
|
62
|
+
* generic `fallback` for a record with no title. */
|
|
63
|
+
export function collectionActionsLabel(title: string, template: string, fallback: string): string {
|
|
64
|
+
const t = title.trim();
|
|
65
|
+
return t ? template.replace('{title}', () => t) : fallback;
|
|
66
|
+
}
|
|
67
|
+
|
|
61
68
|
export const COLLECTIONS: Record<string, CollectionConfig> = {
|
|
62
69
|
himiStoreShop: { rows: 'results', title: 'name', subtitle: 'subtitle', image: 'image', view: 'grid', backendQuery: true, countNoun: ['product', 'products'], favoriteToggle: true },
|
|
63
70
|
himiBookingServices: { rows: 'results', title: 'name', subtitle: 'subtitle', image: 'image', filter: 'category', view: 'grid', backendQuery: true, searchPlaceholder: 'Search services', countNoun: ['service', 'services'], primaryVerb: { label: 'Book', screenId: 'himi_time' } },
|
|
@@ -184,6 +191,9 @@ export function projectCollection(source: CollectionRow[], config: CollectionCon
|
|
|
184
191
|
collectionSelectLabel: prefs.selectedIds.includes(collectionId(row)) ? 'Selected' : 'Select',
|
|
185
192
|
// The save toggle names the action it WILL take (the service localizes it).
|
|
186
193
|
collectionSaveLabel: prefs.savedIds.includes(collectionId(row)) ? 'Remove from saved' : 'Save',
|
|
194
|
+
// The row's overflow menu, named for its record: out of context (a rotor, a voice
|
|
195
|
+
// command) a list of identical "Item actions" cannot be told apart.
|
|
196
|
+
collectionActionsLabel: collectionActionsLabel(collectionTitle(row, config), 'Actions for {title}', 'Item actions'),
|
|
187
197
|
collectionSubtitle: scalar(row[config.subtitle ?? '']) || scalar(row.subtitle) || scalar(row.description) || scalar(row.meta),
|
|
188
198
|
collectionImage: scalar(row[config.image ?? '']), collectionNoImage: !scalar(row[config.image ?? '']), collectionHasImage: !!scalar(row[config.image ?? '']),
|
|
189
199
|
collectionSaved: prefs.savedIds.includes(collectionId(row)), collectionNotSaved: !prefs.savedIds.includes(collectionId(row)), collectionSelected: prefs.selectedIds.includes(collectionId(row)),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineService as register, type ServiceDefinition } from '@himalaya/state';
|
|
2
|
-
import { COLLECTIONS, COLLECTION_CHROME_MIN_ITEMS, initialCollection, normalizeCollection, projectCollection, collectionId, type CollectionRow } from './collection-contract.js';
|
|
2
|
+
import { COLLECTIONS, COLLECTION_CHROME_MIN_ITEMS, initialCollection, normalizeCollection, projectCollection, collectionId, collectionActionsLabel, type CollectionRow } from './collection-contract.js';
|
|
3
3
|
import { localPreferences, type PreferenceRuntime } from './local-preferences.js';
|
|
4
4
|
import { copyParam, stashCopy } from './himi-copy.js';
|
|
5
5
|
import { createCollectionQuery, type CollectionQuerySource, type CollectionQueryState } from './collection-query.js';
|
|
@@ -130,6 +130,8 @@ export function decorateCollection(name: string, def: { state: State; actions?:
|
|
|
130
130
|
// the save toggle names the action it WILL take for this row. The
|
|
131
131
|
// old static "Save / unsave" made the owner work out the row's state.
|
|
132
132
|
row.collectionSaveLabel = row.collectionSaved ? copyParam('collection.unsave', 'Remove from saved') : copyParam('collection.save', 'Save');
|
|
133
|
+
row.collectionActionsLabel = collectionActionsLabel(String(row.collectionTitle ?? ''),
|
|
134
|
+
copyParam('collection.itemActionsFor', 'Actions for {title}'), copyParam('collection.itemActions', 'Item actions'));
|
|
133
135
|
});
|
|
134
136
|
if (previewId && !rows.some(row => collectionId(row) === previewId)) previewId = '';
|
|
135
137
|
const filterChoices = [{ id: 'all', label: copyParam('collection.all', 'All') }, { id: 'saved', label: copyParam('collection.saved', 'Saved') },
|