@akinon/projectzero 2.0.42-beta.0 → 2.0.42

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # @akinon/projectzero
2
2
 
3
- ## 2.0.42-beta.0
3
+ ## 2.0.42
4
4
 
5
5
  ## 2.0.41
6
6
 
@@ -1,37 +1,37 @@
1
1
  # projectzeronext
2
2
 
3
- ## 2.0.42-beta.0
4
-
5
- ### Patch Changes
6
-
7
- - Updated dependencies [cbbbfd75]
8
- - @akinon/next@2.0.42-beta.0
9
- - @akinon/pz-theme@2.0.42-beta.0
10
- - @akinon/pz-virtual-try-on@2.0.42-beta.0
11
- - @akinon/pz-akifast@2.0.42-beta.0
12
- - @akinon/pz-apple-pay@2.0.42-beta.0
13
- - @akinon/pz-b2b@2.0.42-beta.0
14
- - @akinon/pz-basket-gift-pack@2.0.42-beta.0
15
- - @akinon/pz-bkm@2.0.42-beta.0
16
- - @akinon/pz-checkout-gift-pack@2.0.42-beta.0
17
- - @akinon/pz-click-collect@2.0.42-beta.0
18
- - @akinon/pz-credit-payment@2.0.42-beta.0
19
- - @akinon/pz-cybersource-uc@2.0.42-beta.0
20
- - @akinon/pz-flow-payment@2.0.42-beta.0
21
- - @akinon/pz-google-pay@2.0.42-beta.0
22
- - @akinon/pz-gpay@2.0.42-beta.0
23
- - @akinon/pz-haso@2.0.42-beta.0
24
- - @akinon/pz-hepsipay@2.0.42-beta.0
25
- - @akinon/pz-masterpass@2.0.42-beta.0
26
- - @akinon/pz-masterpass-rest@2.0.42-beta.0
27
- - @akinon/pz-multi-basket@2.0.42-beta.0
28
- - @akinon/pz-one-click-checkout@2.0.42-beta.0
29
- - @akinon/pz-otp@2.0.42-beta.0
30
- - @akinon/pz-pay-on-delivery@2.0.42-beta.0
31
- - @akinon/pz-saved-card@2.0.42-beta.0
32
- - @akinon/pz-similar-products@2.0.42-beta.0
33
- - @akinon/pz-tabby-extension@2.0.42-beta.0
34
- - @akinon/pz-tamara-extension@2.0.42-beta.0
3
+ ## 2.0.42
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [3521bb92]
8
+ - @akinon/pz-theme@2.0.42
9
+ - @akinon/next@2.0.42
10
+ - @akinon/pz-akifast@2.0.42
11
+ - @akinon/pz-apple-pay@2.0.42
12
+ - @akinon/pz-b2b@2.0.42
13
+ - @akinon/pz-basket-gift-pack@2.0.42
14
+ - @akinon/pz-bkm@2.0.42
15
+ - @akinon/pz-checkout-gift-pack@2.0.42
16
+ - @akinon/pz-click-collect@2.0.42
17
+ - @akinon/pz-credit-payment@2.0.42
18
+ - @akinon/pz-cybersource-uc@2.0.42
19
+ - @akinon/pz-flow-payment@2.0.42
20
+ - @akinon/pz-google-pay@2.0.42
21
+ - @akinon/pz-gpay@2.0.42
22
+ - @akinon/pz-haso@2.0.42
23
+ - @akinon/pz-hepsipay@2.0.42
24
+ - @akinon/pz-masterpass@2.0.42
25
+ - @akinon/pz-masterpass-rest@2.0.42
26
+ - @akinon/pz-multi-basket@2.0.42
27
+ - @akinon/pz-one-click-checkout@2.0.42
28
+ - @akinon/pz-otp@2.0.42
29
+ - @akinon/pz-pay-on-delivery@2.0.42
30
+ - @akinon/pz-saved-card@2.0.42
31
+ - @akinon/pz-similar-products@2.0.42
32
+ - @akinon/pz-tabby-extension@2.0.42
33
+ - @akinon/pz-tamara-extension@2.0.42
34
+ - @akinon/pz-virtual-try-on@2.0.42
35
35
 
36
36
  ## 2.0.41
37
37
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "projectzeronext",
3
- "version": "2.0.42-beta.0",
3
+ "version": "2.0.42",
4
4
  "private": true,
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -24,33 +24,33 @@
24
24
  "test:middleware": "jest middleware-matcher.test.ts --bail"
25
25
  },
26
26
  "dependencies": {
27
- "@akinon/next": "2.0.42-beta.0",
28
- "@akinon/pz-akifast": "2.0.42-beta.0",
29
- "@akinon/pz-apple-pay": "2.0.42-beta.0",
30
- "@akinon/pz-b2b": "2.0.42-beta.0",
31
- "@akinon/pz-basket-gift-pack": "2.0.42-beta.0",
32
- "@akinon/pz-bkm": "2.0.42-beta.0",
33
- "@akinon/pz-checkout-gift-pack": "2.0.42-beta.0",
34
- "@akinon/pz-click-collect": "2.0.42-beta.0",
35
- "@akinon/pz-credit-payment": "2.0.42-beta.0",
36
- "@akinon/pz-cybersource-uc": "2.0.42-beta.0",
37
- "@akinon/pz-flow-payment": "2.0.42-beta.0",
38
- "@akinon/pz-google-pay": "2.0.42-beta.0",
39
- "@akinon/pz-gpay": "2.0.42-beta.0",
40
- "@akinon/pz-haso": "2.0.42-beta.0",
41
- "@akinon/pz-hepsipay": "2.0.42-beta.0",
42
- "@akinon/pz-masterpass": "2.0.42-beta.0",
43
- "@akinon/pz-masterpass-rest": "2.0.42-beta.0",
44
- "@akinon/pz-multi-basket": "2.0.42-beta.0",
45
- "@akinon/pz-one-click-checkout": "2.0.42-beta.0",
46
- "@akinon/pz-otp": "2.0.42-beta.0",
47
- "@akinon/pz-pay-on-delivery": "2.0.42-beta.0",
48
- "@akinon/pz-saved-card": "2.0.42-beta.0",
49
- "@akinon/pz-similar-products": "2.0.42-beta.0",
50
- "@akinon/pz-tabby-extension": "2.0.42-beta.0",
51
- "@akinon/pz-tamara-extension": "2.0.42-beta.0",
52
- "@akinon/pz-theme": "2.0.42-beta.0",
53
- "@akinon/pz-virtual-try-on": "2.0.42-beta.0",
27
+ "@akinon/next": "2.0.42",
28
+ "@akinon/pz-akifast": "2.0.42",
29
+ "@akinon/pz-apple-pay": "2.0.42",
30
+ "@akinon/pz-b2b": "2.0.42",
31
+ "@akinon/pz-basket-gift-pack": "2.0.42",
32
+ "@akinon/pz-bkm": "2.0.42",
33
+ "@akinon/pz-checkout-gift-pack": "2.0.42",
34
+ "@akinon/pz-click-collect": "2.0.42",
35
+ "@akinon/pz-credit-payment": "2.0.42",
36
+ "@akinon/pz-cybersource-uc": "2.0.42",
37
+ "@akinon/pz-flow-payment": "2.0.42",
38
+ "@akinon/pz-google-pay": "2.0.42",
39
+ "@akinon/pz-gpay": "2.0.42",
40
+ "@akinon/pz-haso": "2.0.42",
41
+ "@akinon/pz-hepsipay": "2.0.42",
42
+ "@akinon/pz-masterpass": "2.0.42",
43
+ "@akinon/pz-masterpass-rest": "2.0.42",
44
+ "@akinon/pz-multi-basket": "2.0.42",
45
+ "@akinon/pz-one-click-checkout": "2.0.42",
46
+ "@akinon/pz-otp": "2.0.42",
47
+ "@akinon/pz-pay-on-delivery": "2.0.42",
48
+ "@akinon/pz-saved-card": "2.0.42",
49
+ "@akinon/pz-similar-products": "2.0.42",
50
+ "@akinon/pz-tabby-extension": "2.0.42",
51
+ "@akinon/pz-tamara-extension": "2.0.42",
52
+ "@akinon/pz-theme": "2.0.42",
53
+ "@akinon/pz-virtual-try-on": "2.0.42",
54
54
  "@hookform/resolvers": "2.9.0",
55
55
  "@next/third-parties": "16.2.6",
56
56
  "@react-google-maps/api": "2.17.1",
@@ -74,7 +74,7 @@
74
74
  "yup": "0.32.11"
75
75
  },
76
76
  "devDependencies": {
77
- "@akinon/eslint-plugin-projectzero": "2.0.42-beta.0",
77
+ "@akinon/eslint-plugin-projectzero": "2.0.42",
78
78
  "@semantic-release/changelog": "6.0.2",
79
79
  "@semantic-release/exec": "6.0.3",
80
80
  "@semantic-release/git": "10.0.1",
@@ -1,12 +1,14 @@
1
1
  import React from 'react';
2
2
  import ChromeSlot from '@akinon/pz-theme/src/chrome/chrome-slot';
3
+ import { CodeOwnedRegion } from '@akinon/pz-theme/src/chrome/code-owned-region';
3
4
  import { PLACEHOLDER_SLUGS } from '@akinon/pz-theme/src/chrome/placeholder-slugs';
4
5
  import { LiveCheckoutPageContext } from '@akinon/pz-theme/src/chrome/live-checkout-page-context';
5
6
 
6
7
  /**
7
- * Checkout is code-owned: only the zones above and below the flow are
8
- * composable, so neither slot takes `fallback={children}`a published
9
- * composition must never be able to replace the payment steps.
8
+ * Checkout is code-owned: only the zones around the flow — above it, the
9
+ * summary extras band under it and the band below are composable, so no
10
+ * slot takes `fallback={children}` a published composition must never be
11
+ * able to replace the payment steps.
10
12
  */
11
13
  export default function CheckoutLayout({
12
14
  children
@@ -16,7 +18,10 @@ export default function CheckoutLayout({
16
18
  return (
17
19
  <LiveCheckoutPageContext>
18
20
  <ChromeSlot slug={PLACEHOLDER_SLUGS.checkoutTop} />
19
- {children}
21
+ {/* The explainer answers the designer who hovers the flow looking for
22
+ an edit affordance: there is none here on purpose. */}
23
+ <CodeOwnedRegion label="checkout flow">{children}</CodeOwnedRegion>
24
+ <ChromeSlot slug={PLACEHOLDER_SLUGS.checkoutSummary} />
20
25
  <ChromeSlot slug={PLACEHOLDER_SLUGS.checkoutBottom} />
21
26
  </LiveCheckoutPageContext>
22
27
  );
@@ -37,27 +37,32 @@ export default async function ProductLayout({
37
37
  .filter(Boolean)
38
38
  .join(',');
39
39
 
40
+ // The brand markup must be the slot's fallback, not a sibling: outside it
41
+ // the designer never gets the takeover affordance, and a published
42
+ // composition would render underneath the brand page instead of replacing it.
40
43
  return (
41
- <div className="container mx-auto px-3 py-16 lg:px-0">
42
- <div className="my-5">
43
- <Breadcrumb breadcrumbList={breadcrumbData} />
44
- </div>
45
- <div className="grid grid-cols-5 lg:gap-10 mx-auto">
46
- <div className="mb-10 col-span-5 lg:col-span-3 lg:mb-0">
47
- <ProductInfoSlider product={data.product} />
44
+ <ChromeSlot
45
+ slug={PLACEHOLDER_SLUGS.productDetail}
46
+ pageContext={productPageContext}
47
+ fallback={
48
+ <div className="container mx-auto px-3 py-16 lg:px-0">
49
+ <div className="my-5">
50
+ <Breadcrumb breadcrumbList={breadcrumbData} />
51
+ </div>
52
+ <div className="grid grid-cols-5 lg:gap-10 mx-auto">
53
+ <div className="mb-10 col-span-5 lg:col-span-3 lg:mb-0">
54
+ <ProductInfoSlider product={data.product} />
55
+ </div>
56
+ <div
57
+ className="flex flex-col items-center col-span-5 lg:col-span-2"
58
+ data-category-ids={categoryIds}
59
+ data-category-paths={categoryPaths}
60
+ >
61
+ <div className="w-full">{children}</div>
62
+ </div>
63
+ </div>
48
64
  </div>
49
- <div
50
- className="flex flex-col items-center col-span-5 lg:col-span-2"
51
- data-category-ids={categoryIds}
52
- data-category-paths={categoryPaths}
53
- >
54
- <div className="w-full">{children}</div>
55
- </div>
56
- </div>
57
- <ChromeSlot
58
- slug={PLACEHOLDER_SLUGS.productDetail}
59
- pageContext={productPageContext}
60
- />
61
- </div>
65
+ }
66
+ />
62
67
  );
63
68
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/projectzero",
3
- "version": "2.0.42-beta.0",
3
+ "version": "2.0.42",
4
4
  "private": false,
5
5
  "description": "CLI tool to manage your Project Zero Next project",
6
6
  "bin": {