@wix/himalaya-cli 0.1310.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/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/wix-payments-contract.d.ts +20 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/define-app.d.ts +13 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap.mjs +8 -0
- package/dist/cli.mjs +1321 -692
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/himi-json-output.md +29 -1
- package/guides/iap-products.md +51 -2
- package/guides/sdk-reference.json +19 -1
- 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
|
@@ -6059,7 +6059,7 @@ const SCREENS = runtimeSetting({
|
|
|
6059
6059
|
"modifiers": {
|
|
6060
6060
|
"width": 44,
|
|
6061
6061
|
"height": 44,
|
|
6062
|
-
"accessibilityLabel": "
|
|
6062
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
6063
6063
|
}
|
|
6064
6064
|
},
|
|
6065
6065
|
"items": [
|
|
@@ -6415,7 +6415,7 @@ const SCREENS = runtimeSetting({
|
|
|
6415
6415
|
"modifiers": {
|
|
6416
6416
|
"width": 44,
|
|
6417
6417
|
"height": 44,
|
|
6418
|
-
"accessibilityLabel": "
|
|
6418
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
6419
6419
|
}
|
|
6420
6420
|
},
|
|
6421
6421
|
"items": [
|
|
@@ -6734,7 +6734,7 @@ const SCREENS = runtimeSetting({
|
|
|
6734
6734
|
"modifiers": {
|
|
6735
6735
|
"width": 44,
|
|
6736
6736
|
"height": 44,
|
|
6737
|
-
"accessibilityLabel": "
|
|
6737
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
6738
6738
|
}
|
|
6739
6739
|
},
|
|
6740
6740
|
"items": [
|
|
@@ -7090,7 +7090,7 @@ const SCREENS = runtimeSetting({
|
|
|
7090
7090
|
"modifiers": {
|
|
7091
7091
|
"width": 44,
|
|
7092
7092
|
"height": 44,
|
|
7093
|
-
"accessibilityLabel": "
|
|
7093
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
7094
7094
|
}
|
|
7095
7095
|
},
|
|
7096
7096
|
"items": [
|
|
@@ -7750,7 +7750,7 @@ const SCREENS = runtimeSetting({
|
|
|
7750
7750
|
"modifiers": {
|
|
7751
7751
|
"width": 44,
|
|
7752
7752
|
"height": 44,
|
|
7753
|
-
"accessibilityLabel": "
|
|
7753
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
7754
7754
|
}
|
|
7755
7755
|
},
|
|
7756
7756
|
"items": [
|
|
@@ -9052,7 +9052,7 @@ const SCREENS = runtimeSetting({
|
|
|
9052
9052
|
"modifiers": {
|
|
9053
9053
|
"width": 44,
|
|
9054
9054
|
"height": 44,
|
|
9055
|
-
"accessibilityLabel": "
|
|
9055
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
9056
9056
|
}
|
|
9057
9057
|
},
|
|
9058
9058
|
"items": [
|
|
@@ -9393,7 +9393,7 @@ const SCREENS = runtimeSetting({
|
|
|
9393
9393
|
"modifiers": {
|
|
9394
9394
|
"width": 44,
|
|
9395
9395
|
"height": 44,
|
|
9396
|
-
"accessibilityLabel": "
|
|
9396
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
9397
9397
|
}
|
|
9398
9398
|
},
|
|
9399
9399
|
"items": [
|
|
@@ -9664,7 +9664,7 @@ const SCREENS = runtimeSetting({
|
|
|
9664
9664
|
"modifiers": {
|
|
9665
9665
|
"width": 44,
|
|
9666
9666
|
"height": 44,
|
|
9667
|
-
"accessibilityLabel": "
|
|
9667
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
9668
9668
|
}
|
|
9669
9669
|
},
|
|
9670
9670
|
"items": [
|
|
@@ -10005,7 +10005,7 @@ const SCREENS = runtimeSetting({
|
|
|
10005
10005
|
"modifiers": {
|
|
10006
10006
|
"width": 44,
|
|
10007
10007
|
"height": 44,
|
|
10008
|
-
"accessibilityLabel": "
|
|
10008
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
10009
10009
|
}
|
|
10010
10010
|
},
|
|
10011
10011
|
"items": [
|
|
@@ -10631,7 +10631,7 @@ const SCREENS = runtimeSetting({
|
|
|
10631
10631
|
"modifiers": {
|
|
10632
10632
|
"width": 44,
|
|
10633
10633
|
"height": 44,
|
|
10634
|
-
"accessibilityLabel": "
|
|
10634
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
10635
10635
|
}
|
|
10636
10636
|
},
|
|
10637
10637
|
"items": [
|
|
@@ -11888,7 +11888,7 @@ const SCREENS = runtimeSetting({
|
|
|
11888
11888
|
"modifiers": {
|
|
11889
11889
|
"width": 44,
|
|
11890
11890
|
"height": 44,
|
|
11891
|
-
"accessibilityLabel": "
|
|
11891
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
11892
11892
|
}
|
|
11893
11893
|
},
|
|
11894
11894
|
"items": [
|
|
@@ -12263,7 +12263,7 @@ const SCREENS = runtimeSetting({
|
|
|
12263
12263
|
"modifiers": {
|
|
12264
12264
|
"width": 44,
|
|
12265
12265
|
"height": 44,
|
|
12266
|
-
"accessibilityLabel": "
|
|
12266
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
12267
12267
|
}
|
|
12268
12268
|
},
|
|
12269
12269
|
"items": [
|
|
@@ -12537,7 +12537,7 @@ const SCREENS = runtimeSetting({
|
|
|
12537
12537
|
"modifiers": {
|
|
12538
12538
|
"width": 44,
|
|
12539
12539
|
"height": 44,
|
|
12540
|
-
"accessibilityLabel": "
|
|
12540
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
12541
12541
|
}
|
|
12542
12542
|
},
|
|
12543
12543
|
"items": [
|
|
@@ -12912,7 +12912,7 @@ const SCREENS = runtimeSetting({
|
|
|
12912
12912
|
"modifiers": {
|
|
12913
12913
|
"width": 44,
|
|
12914
12914
|
"height": 44,
|
|
12915
|
-
"accessibilityLabel": "
|
|
12915
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
12916
12916
|
}
|
|
12917
12917
|
},
|
|
12918
12918
|
"items": [
|
|
@@ -13555,7 +13555,7 @@ const SCREENS = runtimeSetting({
|
|
|
13555
13555
|
"modifiers": {
|
|
13556
13556
|
"width": 44,
|
|
13557
13557
|
"height": 44,
|
|
13558
|
-
"accessibilityLabel": "
|
|
13558
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
13559
13559
|
}
|
|
13560
13560
|
},
|
|
13561
13561
|
"items": [
|
|
@@ -14424,7 +14424,7 @@ const SCREENS = runtimeSetting({
|
|
|
14424
14424
|
"modifiers": {
|
|
14425
14425
|
"width": 44,
|
|
14426
14426
|
"height": 44,
|
|
14427
|
-
"accessibilityLabel": "
|
|
14427
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
14428
14428
|
}
|
|
14429
14429
|
},
|
|
14430
14430
|
"items": [
|
|
@@ -14778,7 +14778,7 @@ const SCREENS = runtimeSetting({
|
|
|
14778
14778
|
"modifiers": {
|
|
14779
14779
|
"width": 44,
|
|
14780
14780
|
"height": 44,
|
|
14781
|
-
"accessibilityLabel": "
|
|
14781
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
14782
14782
|
}
|
|
14783
14783
|
},
|
|
14784
14784
|
"items": [
|
|
@@ -15052,7 +15052,7 @@ const SCREENS = runtimeSetting({
|
|
|
15052
15052
|
"modifiers": {
|
|
15053
15053
|
"width": 44,
|
|
15054
15054
|
"height": 44,
|
|
15055
|
-
"accessibilityLabel": "
|
|
15055
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
15056
15056
|
}
|
|
15057
15057
|
},
|
|
15058
15058
|
"items": [
|
|
@@ -15406,7 +15406,7 @@ const SCREENS = runtimeSetting({
|
|
|
15406
15406
|
"modifiers": {
|
|
15407
15407
|
"width": 44,
|
|
15408
15408
|
"height": 44,
|
|
15409
|
-
"accessibilityLabel": "
|
|
15409
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
15410
15410
|
}
|
|
15411
15411
|
},
|
|
15412
15412
|
"items": [
|
|
@@ -16005,7 +16005,7 @@ const SCREENS = runtimeSetting({
|
|
|
16005
16005
|
"modifiers": {
|
|
16006
16006
|
"width": 44,
|
|
16007
16007
|
"height": 44,
|
|
16008
|
-
"accessibilityLabel": "
|
|
16008
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
16009
16009
|
}
|
|
16010
16010
|
},
|
|
16011
16011
|
"items": [
|
|
@@ -18029,7 +18029,7 @@ const SCREENS = runtimeSetting({
|
|
|
18029
18029
|
"modifiers": {
|
|
18030
18030
|
"width": 44,
|
|
18031
18031
|
"height": 44,
|
|
18032
|
-
"accessibilityLabel": "
|
|
18032
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
18033
18033
|
}
|
|
18034
18034
|
},
|
|
18035
18035
|
"items": [
|
|
@@ -18437,7 +18437,7 @@ const SCREENS = runtimeSetting({
|
|
|
18437
18437
|
"modifiers": {
|
|
18438
18438
|
"width": 44,
|
|
18439
18439
|
"height": 44,
|
|
18440
|
-
"accessibilityLabel": "
|
|
18440
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
18441
18441
|
}
|
|
18442
18442
|
},
|
|
18443
18443
|
"items": [
|
|
@@ -18797,7 +18797,7 @@ const SCREENS = runtimeSetting({
|
|
|
18797
18797
|
"modifiers": {
|
|
18798
18798
|
"width": 44,
|
|
18799
18799
|
"height": 44,
|
|
18800
|
-
"accessibilityLabel": "
|
|
18800
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
18801
18801
|
}
|
|
18802
18802
|
},
|
|
18803
18803
|
"items": [
|
|
@@ -19205,7 +19205,7 @@ const SCREENS = runtimeSetting({
|
|
|
19205
19205
|
"modifiers": {
|
|
19206
19206
|
"width": 44,
|
|
19207
19207
|
"height": 44,
|
|
19208
|
-
"accessibilityLabel": "
|
|
19208
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
19209
19209
|
}
|
|
19210
19210
|
},
|
|
19211
19211
|
"items": [
|
|
@@ -19952,7 +19952,7 @@ const SCREENS = runtimeSetting({
|
|
|
19952
19952
|
"modifiers": {
|
|
19953
19953
|
"width": 44,
|
|
19954
19954
|
"height": 44,
|
|
19955
|
-
"accessibilityLabel": "
|
|
19955
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
19956
19956
|
}
|
|
19957
19957
|
},
|
|
19958
19958
|
"items": [
|
|
@@ -21502,7 +21502,7 @@ const SCREENS = runtimeSetting({
|
|
|
21502
21502
|
"modifiers": {
|
|
21503
21503
|
"width": 44,
|
|
21504
21504
|
"height": 44,
|
|
21505
|
-
"accessibilityLabel": "
|
|
21505
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
21506
21506
|
}
|
|
21507
21507
|
},
|
|
21508
21508
|
"items": [
|
|
@@ -21849,7 +21849,7 @@ const SCREENS = runtimeSetting({
|
|
|
21849
21849
|
"modifiers": {
|
|
21850
21850
|
"width": 44,
|
|
21851
21851
|
"height": 44,
|
|
21852
|
-
"accessibilityLabel": "
|
|
21852
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
21853
21853
|
}
|
|
21854
21854
|
},
|
|
21855
21855
|
"items": [
|
|
@@ -22139,7 +22139,7 @@ const SCREENS = runtimeSetting({
|
|
|
22139
22139
|
"modifiers": {
|
|
22140
22140
|
"width": 44,
|
|
22141
22141
|
"height": 44,
|
|
22142
|
-
"accessibilityLabel": "
|
|
22142
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
22143
22143
|
}
|
|
22144
22144
|
},
|
|
22145
22145
|
"items": [
|
|
@@ -22486,7 +22486,7 @@ const SCREENS = runtimeSetting({
|
|
|
22486
22486
|
"modifiers": {
|
|
22487
22487
|
"width": 44,
|
|
22488
22488
|
"height": 44,
|
|
22489
|
-
"accessibilityLabel": "
|
|
22489
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
22490
22490
|
}
|
|
22491
22491
|
},
|
|
22492
22492
|
"items": [
|
|
@@ -23127,7 +23127,7 @@ const SCREENS = runtimeSetting({
|
|
|
23127
23127
|
"modifiers": {
|
|
23128
23128
|
"width": 44,
|
|
23129
23129
|
"height": 44,
|
|
23130
|
-
"accessibilityLabel": "
|
|
23130
|
+
"accessibilityLabel": "$item.collectionActionsLabel"
|
|
23131
23131
|
}
|
|
23132
23132
|
},
|
|
23133
23133
|
"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') },
|