@wix/headless-stores 0.0.111 → 0.0.113

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.
@@ -216,7 +216,6 @@ function Modifier(props) {
216
216
  const modifiersService = useModifiersService();
217
217
  const { modifier } = props;
218
218
  const name = modifier.name || '';
219
- // @ts-expect-error - This field is currently INTERNAL but will be public in the future
220
219
  const key = modifier.key || name;
221
220
  const type = modifier.modifierRenderType;
222
221
  const mandatory = modifier.mandatory || false;
@@ -130,7 +130,6 @@ function Option(props) {
130
130
  const selectedChoices = variantService.selectedChoices.get();
131
131
  const { option } = props;
132
132
  const name = option.name || '';
133
- // @ts-expect-error - This field is currently INTERNAL but will be public in the future
134
133
  const key = option.key || name;
135
134
  const choices = option.choicesSettings?.choices || [];
136
135
  const selectedValue = selectedChoices[name] || null;
@@ -173,10 +172,8 @@ function Choice(props) {
173
172
  const selectedChoices = variantService.selectedChoices.get();
174
173
  const { option, choice } = props;
175
174
  const optionName = option.name || '';
176
- // @ts-expect-error - This field is currently INTERNAL but will be public in the future
177
175
  const optionKey = option.key || optionName;
178
176
  const choiceValue = choice.name || '';
179
- // @ts-expect-error - This field is currently INTERNAL but will be public in the future
180
177
  const choiceKey = choice.key || choiceValue;
181
178
  const isSelected = selectedChoices[optionKey] === choiceKey;
182
179
  // Check if this choice is available based on current selections
@@ -208,7 +208,6 @@ export function Modifier(props) {
208
208
  const modifiersService = useModifiersService();
209
209
  const { modifier } = props;
210
210
  const name = modifier.name || '';
211
- // @ts-expect-error - This field is currently INTERNAL but will be public in the future
212
211
  const key = modifier.key || name;
213
212
  const type = modifier.modifierRenderType;
214
213
  const mandatory = modifier.mandatory || false;
@@ -122,7 +122,6 @@ export function Option(props) {
122
122
  const selectedChoices = variantService.selectedChoices.get();
123
123
  const { option } = props;
124
124
  const name = option.name || '';
125
- // @ts-expect-error - This field is currently INTERNAL but will be public in the future
126
125
  const key = option.key || name;
127
126
  const choices = option.choicesSettings?.choices || [];
128
127
  const selectedValue = selectedChoices[name] || null;
@@ -165,10 +164,8 @@ export function Choice(props) {
165
164
  const selectedChoices = variantService.selectedChoices.get();
166
165
  const { option, choice } = props;
167
166
  const optionName = option.name || '';
168
- // @ts-expect-error - This field is currently INTERNAL but will be public in the future
169
167
  const optionKey = option.key || optionName;
170
168
  const choiceValue = choice.name || '';
171
- // @ts-expect-error - This field is currently INTERNAL but will be public in the future
172
169
  const choiceKey = choice.key || choiceValue;
173
170
  const isSelected = selectedChoices[optionKey] === choiceKey;
174
171
  // Check if this choice is available based on current selections
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/headless-stores",
3
- "version": "0.0.111",
3
+ "version": "0.0.113",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -10,7 +10,8 @@
10
10
  "build:cjs": "tsc -p tsconfig.cjs.json",
11
11
  "test": "vitest",
12
12
  "lint:fix": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md}\"",
13
- "lint:check": "prettier --check \"src/**/*.{ts,tsx,js,jsx,json,md}\""
13
+ "lint:check": "prettier --check \"src/**/*.{ts,tsx,js,jsx,json,md}\"",
14
+ "test:cjs-esm": "npx @wix/cjs-esm-verifier"
14
15
  },
15
16
  "files": [
16
17
  "dist",
@@ -49,8 +50,9 @@
49
50
  "@types/node": "^20.9.0",
50
51
  "@vitest/ui": "^3.1.4",
51
52
  "@wix/categories": "^1.0.133",
53
+ "@wix/cjs-esm-verifier": "1.0.0",
52
54
  "@wix/headless-components": "0.0.0",
53
- "@wix/stores": "^1.0.606",
55
+ "@wix/stores": "^1.0.650",
54
56
  "jsdom": "^26.1.0",
55
57
  "prettier": "^3.4.2",
56
58
  "typescript": "^5.8.3",
@@ -60,16 +62,16 @@
60
62
  "@radix-ui/react-slot": "^1.2.3",
61
63
  "@wix/auto_sdk_bookings_availability-calendar": "^1.0.155",
62
64
  "@wix/auto_sdk_categories_categories": "^1.0.62",
63
- "@wix/ecom": "^1.0.1560",
65
+ "@wix/ecom": "^1.0.1744",
64
66
  "@wix/essentials": "^0.1.24",
65
- "@wix/headless-ecom": "0.0.41",
66
- "@wix/headless-media": "0.0.21",
67
- "@wix/headless-utils": "0.0.8",
67
+ "@wix/headless-ecom": "0.0.42",
68
+ "@wix/headless-media": "0.0.22",
69
+ "@wix/headless-utils": "0.0.9",
68
70
  "@wix/redirects": "^1.0.83",
69
71
  "@wix/services-definitions": "^1.0.1",
70
72
  "@wix/services-manager-react": "^1.0.3",
71
73
  "@wix/site": "^1.40.0",
72
- "@wix/stores": "^1.0.606"
74
+ "@wix/stores": "^1.0.650"
73
75
  },
74
76
  "peerDependencies": {
75
77
  "@wix/headless-components": "^0.0.0"
@@ -84,5 +86,5 @@
84
86
  "groupId": "com.wixpress.headless-components"
85
87
  }
86
88
  },
87
- "falconPackageHash": "dae1187e9800eec22dca64e6d9cd3123f537fc7d93f88c672d58d90a"
89
+ "falconPackageHash": "4c28f3bab51f570d4d0d9114a101aa6d851180edbd77ae2cbe492a3d"
88
90
  }