@akinon/projectzero 1.108.0 → 1.109.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/CHANGELOG.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # @akinon/projectzero
2
2
 
3
+ ## 1.109.0
4
+
3
5
  ## 1.108.0
4
6
 
5
7
  ## 1.107.0
@@ -6,6 +6,7 @@ NEXT_PUBLIC_GTM_KEY=GTM_KEY
6
6
  NEXT_PUBLIC_URL=http://localhost:3000
7
7
  SERVICE_BACKEND_URL=https://02fde10fee4440269e695aa10707dfaf.lb.akinoncloud.com
8
8
  SITEMAP_S3_BUCKET_NAME=0fb534
9
+ NEXT_PUBLIC_VIRTUAL_TRY_ON_API_URL=https://d2a26507c7094f359aba349b96a96881.lb.akinoncloud.com
9
10
 
10
11
  # LOG_LEVEL_DEV=debug # For more details, please refer to the Logging documentation.
11
12
 
@@ -1,5 +1,36 @@
1
1
  # projectzeronext
2
2
 
3
+ ## 1.109.0
4
+
5
+ ### Minor Changes
6
+
7
+ - fcbbea79: ZERO-3648: Add virtual try-on feature with localization support
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [fcbbea79]
12
+ - @akinon/next@1.109.0
13
+ - @akinon/pz-akifast@1.109.0
14
+ - @akinon/pz-apple-pay@1.109.0
15
+ - @akinon/pz-b2b@1.109.0
16
+ - @akinon/pz-basket-gift-pack@1.109.0
17
+ - @akinon/pz-bkm@1.109.0
18
+ - @akinon/pz-checkout-gift-pack@1.109.0
19
+ - @akinon/pz-click-collect@1.109.0
20
+ - @akinon/pz-credit-payment@1.109.0
21
+ - @akinon/pz-cybersource-uc@1.109.0
22
+ - @akinon/pz-flow-payment@1.109.0
23
+ - @akinon/pz-gpay@1.109.0
24
+ - @akinon/pz-hepsipay@1.109.0
25
+ - @akinon/pz-masterpass@1.109.0
26
+ - @akinon/pz-multi-basket@1.109.0
27
+ - @akinon/pz-one-click-checkout@1.109.0
28
+ - @akinon/pz-otp@1.109.0
29
+ - @akinon/pz-pay-on-delivery@1.109.0
30
+ - @akinon/pz-saved-card@1.109.0
31
+ - @akinon/pz-tabby-extension@1.109.0
32
+ - @akinon/pz-tamara-extension@1.109.0
33
+
3
34
  ## 1.108.0
4
35
 
5
36
  ### Minor Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "projectzeronext",
3
- "version": "1.108.0",
3
+ "version": "1.109.0",
4
4
  "private": true,
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -24,24 +24,27 @@
24
24
  "test:middleware": "jest middleware-matcher.test.ts --bail"
25
25
  },
26
26
  "dependencies": {
27
- "@akinon/next": "1.108.0",
28
- "@akinon/pz-akifast": "1.108.0",
29
- "@akinon/pz-b2b": "1.108.0",
30
- "@akinon/pz-basket-gift-pack": "1.108.0",
31
- "@akinon/pz-bkm": "1.108.0",
32
- "@akinon/pz-checkout-gift-pack": "1.108.0",
33
- "@akinon/pz-click-collect": "1.108.0",
34
- "@akinon/pz-credit-payment": "1.108.0",
35
- "@akinon/pz-cybersource-uc": "1.108.0",
36
- "@akinon/pz-gpay": "1.108.0",
37
- "@akinon/pz-hepsipay": "1.108.0",
38
- "@akinon/pz-masterpass": "1.108.0",
39
- "@akinon/pz-one-click-checkout": "1.108.0",
40
- "@akinon/pz-otp": "1.108.0",
41
- "@akinon/pz-pay-on-delivery": "1.108.0",
42
- "@akinon/pz-saved-card": "1.108.0",
43
- "@akinon/pz-tabby-extension": "1.108.0",
44
- "@akinon/pz-tamara-extension": "1.108.0",
27
+ "@akinon/next": "1.109.0",
28
+ "@akinon/pz-akifast": "1.109.0",
29
+ "@akinon/pz-apple-pay": "1.109.0",
30
+ "@akinon/pz-b2b": "1.109.0",
31
+ "@akinon/pz-basket-gift-pack": "1.109.0",
32
+ "@akinon/pz-bkm": "1.109.0",
33
+ "@akinon/pz-checkout-gift-pack": "1.109.0",
34
+ "@akinon/pz-click-collect": "1.109.0",
35
+ "@akinon/pz-credit-payment": "1.109.0",
36
+ "@akinon/pz-cybersource-uc": "1.109.0",
37
+ "@akinon/pz-flow-payment": "1.109.0",
38
+ "@akinon/pz-gpay": "1.109.0",
39
+ "@akinon/pz-hepsipay": "1.109.0",
40
+ "@akinon/pz-masterpass": "1.109.0",
41
+ "@akinon/pz-multi-basket": "1.109.0",
42
+ "@akinon/pz-one-click-checkout": "1.109.0",
43
+ "@akinon/pz-otp": "1.109.0",
44
+ "@akinon/pz-pay-on-delivery": "1.109.0",
45
+ "@akinon/pz-saved-card": "1.109.0",
46
+ "@akinon/pz-tabby-extension": "1.109.0",
47
+ "@akinon/pz-tamara-extension": "1.109.0",
45
48
  "@hookform/resolvers": "2.9.0",
46
49
  "@next/third-parties": "14.1.0",
47
50
  "@react-google-maps/api": "2.17.1",
@@ -64,7 +67,7 @@
64
67
  "yup": "0.32.11"
65
68
  },
66
69
  "devDependencies": {
67
- "@akinon/eslint-plugin-projectzero": "1.108.0",
70
+ "@akinon/eslint-plugin-projectzero": "1.109.0",
68
71
  "@semantic-release/changelog": "6.0.2",
69
72
  "@semantic-release/exec": "6.0.3",
70
73
  "@semantic-release/git": "10.0.1",
@@ -32,8 +32,30 @@
32
32
  "installment": "Installment",
33
33
  "stock_alert": {
34
34
  "title": "Stock Alert",
35
- "success_description": "When your size is back in stock well send an email to: <Email/>",
35
+ "success_description": "When your size is back in stock we'll send an email to: <Email/>",
36
36
  "error_description": "An unexpected error has occured. Please try again later.",
37
37
  "close_button": "CLOSE"
38
+ },
39
+ "virtual_try_on": {
40
+ "title": "Virtual Try On",
41
+ "button_text": "Virtual Try On",
42
+ "loading": "Loading...",
43
+ "upload_title": "Upload Your Photo",
44
+ "upload_prompt": "Click to upload image",
45
+ "upload_requirements": "Max 1MB, JPEG/PNG/WebP only",
46
+ "instructions": "Upload a clear photo of yourself for the best virtual try-on experience. Make sure you are facing the camera directly.",
47
+ "try_on": "Try On",
48
+ "processing": "Processing...",
49
+ "processing_message": "Creating your virtual try-on...",
50
+ "result_title": "Virtual Try-On Result",
51
+ "result_placeholder": "Upload your photo to see the result",
52
+ "error": "Virtual try-on failed. Please try again.",
53
+ "feedback_prompt": "How did the virtual try-on work for you?",
54
+ "reset_crop": "Reset Crop",
55
+ "legal": {
56
+ "title": "Terms & Conditions",
57
+ "text": "By using this virtual try-on feature, you agree to our terms and conditions. Your image will be processed securely and not stored permanently. We use your photo only to generate the virtual try-on result.",
58
+ "accept": "I Accept & Continue"
59
+ }
38
60
  }
39
61
  }
@@ -35,5 +35,27 @@
35
35
  "success_description": "Bedeniniz stoklara tekrar girdiğinde şu adrese bir e-posta göndereceğiz: <Email/>",
36
36
  "error_description": "Beklenmeyen bir hata oluştu. Lütfen daha sonra tekrar deneyiniz.",
37
37
  "close_button": "KAPAT"
38
+ },
39
+ "virtual_try_on": {
40
+ "title": "Sanal Deneme",
41
+ "button_text": "Sanal Deneme",
42
+ "loading": "Yükleniyor...",
43
+ "upload_title": "Fotoğrafınızı Yükleyin",
44
+ "upload_prompt": "Resim yüklemek için tıklayın",
45
+ "upload_requirements": "Maks 1MB, sadece JPEG/PNG/WebP",
46
+ "instructions": "En iyi sanal deneme deneyimi için net bir fotoğrafınızı yükleyin. Kameraya doğrudan baktığınızdan emin olun.",
47
+ "try_on": "Dene",
48
+ "processing": "İşleniyor...",
49
+ "processing_message": "Sanal denemeniz oluşturuluyor...",
50
+ "result_title": "Sanal Deneme Sonucu",
51
+ "result_placeholder": "Sonucu görmek için fotoğrafınızı yükleyin",
52
+ "error": "Sanal deneme başarısız oldu. Lütfen tekrar deneyin.",
53
+ "feedback_prompt": "Sanal deneme sizin için nasıldı?",
54
+ "reset_crop": "Kırpma Sıfırla",
55
+ "legal": {
56
+ "title": "Şartlar ve Koşullar",
57
+ "text": "Bu sanal deneme özelliğini kullanarak şartlar ve koşullarımızı kabul etmiş olursunuz. Fotoğrafınız güvenli bir şekilde işlenecek ve kalıcı olarak saklanmayacaktır. Fotoğrafınızı yalnızca sanal deneme sonucunu oluşturmak için kullanırız.",
58
+ "accept": "Kabul Ediyorum & Devam Et"
59
+ }
38
60
  }
39
61
  }
@@ -0,0 +1 @@
1
+ export * from '@akinon/next/api/virtual-try-on';
@@ -0,0 +1 @@
1
+ export * from '@akinon/next/api/virtual-try-on';
@@ -1,4 +1,3 @@
1
- // we are holding all of the plugins because of the development enviroment.
2
1
  module.exports = [
3
2
  'pz-basket-gift-pack',
4
3
  'pz-click-collect',
@@ -12,9 +11,14 @@ module.exports = [
12
11
  'pz-masterpass',
13
12
  'pz-b2b',
14
13
  'pz-akifast',
14
+ 'pz-multi-basket',
15
15
  'pz-saved-card',
16
16
  'pz-tabby-extension',
17
+ 'pz-apple-pay',
17
18
  'pz-tamara-extension',
19
+ 'pz-hepsipay',
20
+ 'pz-flow-payment',
21
+ 'pz-virtual-try-on',
18
22
  'pz-cybersource-uc',
19
23
  'pz-hepsipay'
20
24
  ];
@@ -22,6 +22,16 @@ export default async function ProductLayout({
22
22
  breadcrumbData,
23
23
  children
24
24
  }: ProductPageProps) {
25
+ const categoryIds = breadcrumbData
26
+ ?.map((item) => item.extra_context?.attributes?.category_id)
27
+ .filter(Boolean)
28
+ .join(',');
29
+
30
+ const categoryPaths = breadcrumbData
31
+ ?.map((item) => item.path)
32
+ .filter(Boolean)
33
+ .join(',');
34
+
25
35
  return (
26
36
  <div className="container mx-auto">
27
37
  <div className="max-w-5xl mx-auto my-5 px-7">
@@ -31,7 +41,11 @@ export default async function ProductLayout({
31
41
  <div className="col-span-5 lg:col-span-3">
32
42
  <ProductInfoSlider product={data.product} />
33
43
  </div>
34
- <div className="flex flex-col items-center col-span-5 lg:col-span-2">
44
+ <div
45
+ className="flex flex-col items-center col-span-5 lg:col-span-2"
46
+ data-category-ids={categoryIds}
47
+ data-category-paths={categoryPaths}
48
+ >
35
49
  <div className="w-full">{children}</div>
36
50
  </div>
37
51
  </div>
@@ -13,6 +13,7 @@ import { useStockAlert } from '../../hooks/use-stock-alert';
13
13
  import { ProductVariants } from './product-variants';
14
14
  import { ProductActions } from './product-actions';
15
15
  import { ProductShare } from './product-share';
16
+ import PluginModule, { Component } from '@akinon/next/components/plugin-module';
16
17
 
17
18
  export default function ProductInfo({ data }: ProductPageProps) {
18
19
  const { data: session } = useSession();
@@ -105,6 +106,13 @@ export default function ProductInfo({ data }: ProductPageProps) {
105
106
  onCloseModal={closeModal}
106
107
  />
107
108
 
109
+ <PluginModule
110
+ component={Component.VirtualTryOnPlugin}
111
+ props={{
112
+ product: data.product
113
+ }}
114
+ />
115
+
108
116
  <MiscButtons
109
117
  productName={data.product.name}
110
118
  productPk={data.product.pk}
@@ -144,6 +144,10 @@ export default async () => {
144
144
  {
145
145
  name: 'Flow Payment',
146
146
  value: 'pz-flow-payment'
147
+ },
148
+ {
149
+ name: 'Virtual Try-On',
150
+ value: 'pz-virtual-try-on'
147
151
  }
148
152
  ];
149
153
 
@@ -159,6 +159,10 @@ exports.default = () => __awaiter(void 0, void 0, void 0, function* () {
159
159
  {
160
160
  name: 'Flow Payment',
161
161
  value: 'pz-flow-payment'
162
+ },
163
+ {
164
+ name: 'Virtual Try-On',
165
+ value: 'pz-virtual-try-on'
162
166
  }
163
167
  ];
164
168
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/projectzero",
3
- "version": "1.108.0",
3
+ "version": "1.109.0",
4
4
  "private": false,
5
5
  "description": "CLI tool to manage your Project Zero Next project",
6
6
  "bin": {