@escapenavigator/hooks 1.10.134 → 1.10.136

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.
@@ -163,7 +163,11 @@ const PlayersAndVariationPicker = ({ slot, currentTariffId, currentDuration, loa
163
163
  const totalHeads = _players + (_children || 0);
164
164
  const personPrice = totalHeads > 0 ? Math.round(teamPrice / totalHeads / 100) * 100 : 0;
165
165
  const showVariations = pickerOptions.length > 1;
166
- const variationDescription = (_a = selectedVariation === null || selectedVariation === void 0 ? void 0 : selectedVariation.description) !== null && _a !== void 0 ? _a : null;
166
+ // Клиентское описание показываем только для вариаций у стандартного
167
+ // (default) тарифа описание не выводим.
168
+ const variationDescription = selectedVariation && !selectedVariation.isDefault
169
+ ? ((_a = selectedVariation.description) !== null && _a !== void 0 ? _a : null)
170
+ : null;
167
171
  const handleVariationClick = (optionId, isFree) => {
168
172
  if (!isFree)
169
173
  return;
@@ -134,7 +134,7 @@ const usePlayersAndVariationPicker = ({ slot, currentTariffId, currentDuration,
134
134
  const label = isFlex
135
135
  ? (0, format_flex_duration_label_1.formatFlexDurationLabel)(variation.duration, t)
136
136
  : variation.isDefault
137
- ? 'Default'
137
+ ? t('common:default')
138
138
  : variation.title || `Tariff ${variation.tariffId}`;
139
139
  return {
140
140
  id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/hooks",
3
- "version": "1.10.134",
3
+ "version": "1.10.136",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -14,9 +14,9 @@
14
14
  "test": "jest"
15
15
  },
16
16
  "dependencies": {
17
- "@escapenavigator/services": "^1.10.142",
18
- "@escapenavigator/types": "^1.10.133",
19
- "@escapenavigator/utils": "^1.10.137",
17
+ "@escapenavigator/services": "^1.10.144",
18
+ "@escapenavigator/types": "^1.10.135",
19
+ "@escapenavigator/utils": "^1.10.139",
20
20
  "react": "19.2.6"
21
21
  },
22
22
  "peerDependencies": {
@@ -30,5 +30,5 @@
30
30
  "ts-jest": "^29.1.1",
31
31
  "typescript": "^5.6"
32
32
  },
33
- "gitHead": "e6562ef1dbf0652659bc037c3574e4f188663bf1"
33
+ "gitHead": "fb70cba9a803a188add7ec1bcac7d78b915a092c"
34
34
  }