@akinon/pz-theme 2.0.152-rc.2 → 2.0.152
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/CHANGELOG.md +7 -52
- package/package.json +4 -4
- package/src/blocks/__tests__/add-to-cart-action.test.tsx +1 -0
- package/src/blocks/__tests__/add-to-cart-stock-alert.test.tsx +673 -0
- package/src/blocks/add-to-cart-block.tsx +400 -10
- package/src/blocks/item-template.tsx +19 -25
- package/src/blocks/order-list-block.tsx +2 -25
- package/src/blocks/product-block-utils.tsx +40 -0
- package/src/blocks/stock-alert-pick.ts +106 -0
- package/src/blocks/variant-selector-block.tsx +167 -9
- package/src/chrome/__tests__/page-context-builders.test.ts +1 -14
- package/src/chrome/page-context.ts +0 -4
- package/src/custom/README.md +0 -20
- package/src/overlays/overlay-surface.tsx +21 -12
- package/src/__tests__/row-scope.test.tsx +0 -118
- package/src/blocks/__tests__/order-list-rows.test.tsx +0 -112
- package/src/blocks/row-scope.tsx +0 -35
package/CHANGELOG.md
CHANGED
|
@@ -1,57 +1,12 @@
|
|
|
1
1
|
# @akinon/pz-theme
|
|
2
2
|
|
|
3
|
-
## 2.0.152
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
-
|
|
8
|
-
-
|
|
9
|
-
- @akinon/
|
|
10
|
-
- @akinon/theme-contract@2.0.152-rc.2
|
|
11
|
-
|
|
12
|
-
## 2.0.152-rc.1
|
|
13
|
-
|
|
14
|
-
### Patch Changes
|
|
15
|
-
|
|
16
|
-
- ad5240c4: ZERO-5254: add custom render and theme editor support to pz-rate-review
|
|
17
|
-
- Updated dependencies [97d29893]
|
|
18
|
-
- @akinon/next@2.0.152-rc.1
|
|
19
|
-
- @akinon/theme-contract@2.0.152-rc.1
|
|
20
|
-
|
|
21
|
-
## 2.0.152-rc.0
|
|
22
|
-
|
|
23
|
-
### Patch Changes
|
|
24
|
-
|
|
25
|
-
- Updated dependencies [86187b1c2]
|
|
26
|
-
- Updated dependencies [0cf9ea239]
|
|
27
|
-
- Updated dependencies [324f97d55]
|
|
28
|
-
- Updated dependencies [51ea06888]
|
|
29
|
-
- Updated dependencies
|
|
30
|
-
- Updated dependencies [2fea41430]
|
|
31
|
-
- Updated dependencies [b55acb768]
|
|
32
|
-
- Updated dependencies [760258c1c]
|
|
33
|
-
- Updated dependencies [143be2b9d]
|
|
34
|
-
- Updated dependencies [7889b08fe]
|
|
35
|
-
- Updated dependencies [9f8cd3bc5]
|
|
36
|
-
- Updated dependencies [bfafa3f49]
|
|
37
|
-
- Updated dependencies [57d7eb305]
|
|
38
|
-
- Updated dependencies [d99a6a7d5]
|
|
39
|
-
- Updated dependencies [9db81a714]
|
|
40
|
-
- Updated dependencies [591e345e1]
|
|
41
|
-
- Updated dependencies [4de5303c5]
|
|
42
|
-
- Updated dependencies [95b139dc1]
|
|
43
|
-
- Updated dependencies [1d00f2d06]
|
|
44
|
-
- Updated dependencies [4ac7b2a1e]
|
|
45
|
-
- Updated dependencies [4998a9631]
|
|
46
|
-
- Updated dependencies [804d2bd6c]
|
|
47
|
-
- Updated dependencies [3909d3224]
|
|
48
|
-
- Updated dependencies [6a3d8a631]
|
|
49
|
-
- Updated dependencies [e18836b20]
|
|
50
|
-
- Updated dependencies [b1111d7b1]
|
|
51
|
-
- Updated dependencies [1595d458e]
|
|
52
|
-
- Updated dependencies [dca128112]
|
|
53
|
-
- @akinon/next@2.0.152-rc.0
|
|
54
|
-
- @akinon/theme-contract@2.0.152-rc.0
|
|
3
|
+
## 2.0.152
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a2bf51f8: ZERO-5233: Add a back-in-stock mode to the add-to-cart block (sign-in redirect with a return path, confirmation dialog or drawer naming the shopper's email), fed by a sold-out size picked in the variant selector
|
|
8
|
+
- @akinon/next@2.0.152
|
|
9
|
+
- @akinon/theme-contract@2.0.152
|
|
55
10
|
|
|
56
11
|
## 2.0.151
|
|
57
12
|
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akinon/pz-theme",
|
|
3
3
|
"description": "Theme package for Project Zero Next — ThemePlaceholder system and theme editor infrastructure",
|
|
4
|
-
"version": "2.0.152
|
|
4
|
+
"version": "2.0.152",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"test": "jest"
|
|
9
9
|
},
|
|
10
10
|
"peerDependencies": {
|
|
11
|
-
"@akinon/next": "2.0.152
|
|
11
|
+
"@akinon/next": "2.0.152",
|
|
12
12
|
"react": "^18.0.0 || ^19.0.0",
|
|
13
13
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@akinon/theme-contract": "2.0.152
|
|
16
|
+
"@akinon/theme-contract": "2.0.152",
|
|
17
17
|
"clsx": "2.1.1",
|
|
18
18
|
"lottie-web": "^5.13.0",
|
|
19
19
|
"react-multi-carousel": "2.8.4",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"zod": "4.4.1"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@akinon/next": "2.0.152
|
|
24
|
+
"@akinon/next": "2.0.152",
|
|
25
25
|
"@testing-library/jest-dom": "5.16.4",
|
|
26
26
|
"@testing-library/react": "16.3.2",
|
|
27
27
|
"@testing-library/user-event": "14.1.1",
|
|
@@ -46,6 +46,7 @@ jest.mock('@akinon/next/data/client/product', () => ({
|
|
|
46
46
|
(payload: unknown) => mockAddProduct(payload),
|
|
47
47
|
{ isLoading: false }
|
|
48
48
|
],
|
|
49
|
+
useAddStockAlertMutation: () => [jest.fn(), { isLoading: false }],
|
|
49
50
|
basketApi: {
|
|
50
51
|
util: { invalidateTags: () => ({ type: 'basket/invalidateTags' }) }
|
|
51
52
|
}
|