@akinon/projectzero 1.42.0-rc.13 → 1.42.0-rc.15

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,18 @@
1
1
  # @akinon/projectzero
2
2
 
3
+ ## 1.42.0-rc.15
4
+
5
+ ### Minor Changes
6
+
7
+ - 90282b5: ZERO-2729: Audit packages for yarn and npm and also update app-template
8
+ - 03c4c3e: ZERO-2731: Update Project Zero CLI command
9
+ - 9b6bf91: ZERO-2660: Change campaings to campaigns
10
+ - 00ffde2: ZERO-2637: enhance create command with improved messaging
11
+ - d2f0f15: ZERO-2723: Update sentry version and dependencies
12
+ - 5ea00a6: ZERO-2761: Add multi basket package
13
+
14
+ ## 1.42.0-rc.14
15
+
3
16
  ## 1.42.0-rc.13
4
17
 
5
18
  ## 1.42.0-rc.12
@@ -1,5 +1,111 @@
1
1
  # projectzeronext
2
2
 
3
+ ## 1.42.0-rc.15
4
+
5
+ ### Minor Changes
6
+
7
+ - 90282b5: ZERO-2729: Audit packages for yarn and npm and also update app-template
8
+ - 572d2e8: ZERO-2667: Add iframe support for redirection payment methods
9
+ - c53ea3e: ZERO-2609: Reset additional form fields when selectedFormType is not company
10
+ - 97b8bdc: ZERO-2724: Remove onClick event in shipping options component
11
+ - 714e0b4: ZERO-2759: update pz-click-collect peer dependencies
12
+ - 7521265: ZERO-2787: Fix hover classname for favorite item
13
+ - 27a5296: ZERO-2631:Fix Checkbox Click
14
+ - 5a4c607: ZERO-2764: Add case-warning rule to eslint-plugin-projectzero
15
+ - e665a0a: ZERO-2625: Add click outside functionality to close mobile menu
16
+ - 52c1373: ZERO-2619: Added fix flag for the staged linter
17
+ - 552ee8a: ZERO-2777: fix link component usage
18
+ - 03c4c3e: ZERO-2731: Update Project Zero CLI command
19
+ - 0d3a913: ZERO-2725: Update decimal scale in Price component
20
+ - 778a9a0: ZERO-2740: Upgrade next to 14.2.4
21
+ - 9b6bf91: ZERO-2660: Change campaings to campaigns
22
+ - 06650ca: ZERO-2620: Remove unnecessary pointer-events-none class
23
+ - 74a1269: ZERO-2658:Edit product name clickability on completed order page
24
+ - d3474c6: ZERO-2655: Add data source shipping option
25
+ - d2f0f15: ZERO-2723: Update sentry version and dependencies
26
+ - 75080fd: ZERO-2630: Add max limit to postcode area
27
+ - 9609eb2: ZERO-2779: Upgrade for tailwind
28
+ - 91265bb: ZERO-2551: Improve pretty url and caching performance
29
+ - 959e1fa: ZERO-2778: Upgrade for nextjs
30
+ - 902d828: ZERO-2621:edit position of loaderSpinner in favorites page
31
+ - 7a4bb76: ZERO-2610:Refactor FilterItem component for better readability and efficiency
32
+ - dff0d59: ZERO-2659: add formData support to proxy api requests
33
+ - beb499e: ZERO-2551: Add new tsconfig paths
34
+ - fac2e5b: ZERO-2622: Add isMenuOpen state to Category reducer and update CategoryInfo component
35
+ - 4614eee: ZERO-2602: The script that checks the build for standalone projects
36
+ - e9a46ac: ZERO-2738: add CVC input to registered cards in Masterpass
37
+ - f046f8e: ZERO-2575: update version for react-number-format
38
+ - 86d2531: ZERO-2693: resolve dependency collision warning for eslint-config-next
39
+ - 5ea00a6: ZERO-2761: Add multi basket package
40
+
41
+ ### Patch Changes
42
+
43
+ - Updated dependencies [90282b5]
44
+ - Updated dependencies [50b9069]
45
+ - Updated dependencies [572d2e8]
46
+ - Updated dependencies [a4c8d6a]
47
+ - Updated dependencies [fda5b92]
48
+ - Updated dependencies [2d9b2b2]
49
+ - Updated dependencies [c53ea3e]
50
+ - Updated dependencies [8d9ac9a]
51
+ - Updated dependencies [18e8197]
52
+ - Updated dependencies [714e0b4]
53
+ - Updated dependencies [e9541a1]
54
+ - Updated dependencies [c53ef7b]
55
+ - Updated dependencies [0d3a913]
56
+ - Updated dependencies [1448a96]
57
+ - Updated dependencies [d3474c6]
58
+ - Updated dependencies [75080fd]
59
+ - Updated dependencies [91265bb]
60
+ - Updated dependencies [bbe18b9]
61
+ - Updated dependencies [d409996]
62
+ - Updated dependencies [69ca080]
63
+ - Updated dependencies [94b6928]
64
+ - Updated dependencies [98bb8dc]
65
+ - Updated dependencies [46b7aad]
66
+ - Updated dependencies [dcc8a15]
67
+ - Updated dependencies [fad2768]
68
+ - Updated dependencies [dff0d59]
69
+ - Updated dependencies [beb499e]
70
+ - Updated dependencies [146ea39]
71
+ - Updated dependencies [c47be30]
72
+ - Updated dependencies [e9a46ac]
73
+ - Updated dependencies [f046f8e]
74
+ - Updated dependencies [86d2531]
75
+ - Updated dependencies [5ea00a6]
76
+ - @akinon/next@1.42.0-rc.15
77
+ - @akinon/pz-checkout-gift-pack@1.42.0-rc.15
78
+ - @akinon/pz-one-click-checkout@1.42.0-rc.15
79
+ - @akinon/pz-basket-gift-pack@1.42.0-rc.15
80
+ - @akinon/pz-click-collect@1.42.0-rc.15
81
+ - @akinon/pz-masterpass@1.42.0-rc.15
82
+ - @akinon/pz-akifast@1.42.0-rc.15
83
+ - @akinon/pz-gpay@1.42.0-rc.15
84
+ - @akinon/pz-b2b@1.42.0-rc.15
85
+ - @akinon/pz-bkm@1.42.0-rc.15
86
+ - @akinon/pz-otp@1.42.0-rc.15
87
+ - @akinon/pz-credit-payment@1.42.0-rc.15
88
+ - @akinon/pz-pay-on-delivery@1.42.0-rc.15
89
+
90
+ ## 1.42.0-rc.14
91
+
92
+ ### Patch Changes
93
+
94
+ - Updated dependencies [94b6928]
95
+ - @akinon/next@1.42.0-rc.14
96
+ - @akinon/pz-akifast@1.42.0-rc.14
97
+ - @akinon/pz-b2b@1.42.0-rc.14
98
+ - @akinon/pz-basket-gift-pack@1.42.0-rc.14
99
+ - @akinon/pz-bkm@1.42.0-rc.14
100
+ - @akinon/pz-checkout-gift-pack@1.42.0-rc.14
101
+ - @akinon/pz-click-collect@1.42.0-rc.14
102
+ - @akinon/pz-credit-payment@1.42.0-rc.14
103
+ - @akinon/pz-gpay@1.42.0-rc.14
104
+ - @akinon/pz-masterpass@1.42.0-rc.14
105
+ - @akinon/pz-one-click-checkout@1.42.0-rc.14
106
+ - @akinon/pz-otp@1.42.0-rc.14
107
+ - @akinon/pz-pay-on-delivery@1.42.0-rc.14
108
+
3
109
  ## 1.42.0-rc.13
4
110
 
5
111
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "projectzeronext",
3
- "version": "1.42.0-rc.13",
3
+ "version": "1.42.0-rc.15",
4
4
  "private": true,
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -22,19 +22,19 @@
22
22
  "prestart": "pz-prestart"
23
23
  },
24
24
  "dependencies": {
25
- "@akinon/next": "1.42.0-rc.13",
26
- "@akinon/pz-akifast": "1.42.0-rc.13",
27
- "@akinon/pz-b2b": "1.42.0-rc.13",
28
- "@akinon/pz-basket-gift-pack": "1.42.0-rc.13",
29
- "@akinon/pz-bkm": "1.42.0-rc.13",
30
- "@akinon/pz-checkout-gift-pack": "1.42.0-rc.13",
31
- "@akinon/pz-click-collect": "1.42.0-rc.13",
32
- "@akinon/pz-credit-payment": "1.42.0-rc.13",
33
- "@akinon/pz-gpay": "1.42.0-rc.13",
34
- "@akinon/pz-masterpass": "1.42.0-rc.13",
35
- "@akinon/pz-one-click-checkout": "1.42.0-rc.13",
36
- "@akinon/pz-otp": "1.42.0-rc.13",
37
- "@akinon/pz-pay-on-delivery": "1.42.0-rc.13",
25
+ "@akinon/next": "1.42.0-rc.15",
26
+ "@akinon/pz-akifast": "1.42.0-rc.15",
27
+ "@akinon/pz-b2b": "1.42.0-rc.15",
28
+ "@akinon/pz-basket-gift-pack": "1.42.0-rc.15",
29
+ "@akinon/pz-bkm": "1.42.0-rc.15",
30
+ "@akinon/pz-checkout-gift-pack": "1.42.0-rc.15",
31
+ "@akinon/pz-click-collect": "1.42.0-rc.15",
32
+ "@akinon/pz-credit-payment": "1.42.0-rc.15",
33
+ "@akinon/pz-gpay": "1.42.0-rc.15",
34
+ "@akinon/pz-masterpass": "1.42.0-rc.15",
35
+ "@akinon/pz-one-click-checkout": "1.42.0-rc.15",
36
+ "@akinon/pz-otp": "1.42.0-rc.15",
37
+ "@akinon/pz-pay-on-delivery": "1.42.0-rc.15",
38
38
  "@hookform/resolvers": "2.9.0",
39
39
  "@next/third-parties": "14.1.0",
40
40
  "@react-google-maps/api": "2.17.1",
@@ -58,7 +58,7 @@
58
58
  "yup": "0.32.11"
59
59
  },
60
60
  "devDependencies": {
61
- "@akinon/eslint-plugin-projectzero": "1.42.0-rc.13",
61
+ "@akinon/eslint-plugin-projectzero": "1.42.0-rc.15",
62
62
  "@semantic-release/changelog": "6.0.2",
63
63
  "@semantic-release/exec": "6.0.3",
64
64
  "@semantic-release/git": "10.0.1",
@@ -1,6 +1,10 @@
1
1
  {
2
2
  "my_cart": "My Cart",
3
3
  "back_to_shopping": "BACK TO SHOPPING",
4
+ "selected_basket": "SELECTED BASKET",
5
+ "select_basket": "SELECT BASKET",
6
+ "total": "Total",
7
+ "remove_basket": "Remove Basket",
4
8
  "empty": {
5
9
  "title": "Your Shopping Cart is Empty!",
6
10
  "content_first": "Your cart is currently empty",
@@ -1,6 +1,10 @@
1
1
  {
2
2
  "my_cart": "Sepetim",
3
3
  "back_to_shopping": "ALIŞVERİŞE GERİ DÖN",
4
+ "selected_basket": "SEÇİLEN SEPET",
5
+ "select_basket": "SEPETİ SEÇİN",
6
+ "total": "Toplam",
7
+ "remove_basket": "Sepeti Kaldır",
4
8
  "empty": {
5
9
  "title": "Alışveriş Sepetiniz Boş!",
6
10
  "content_first": "Sepetiniz şu anda boş",
@@ -7,10 +7,13 @@ import { pushCartView } from '@theme/utils/gtm';
7
7
  import { Button, LoaderSpinner, Link } from '@theme/components';
8
8
  import { BasketItem, Summary } from '@theme/views/basket';
9
9
  import { useLocalization } from '@akinon/next/hooks';
10
+ import PluginModule, { Component } from '@akinon/next/components/plugin-module';
11
+ import settings from '@theme/settings';
10
12
 
11
13
  export default function Page() {
12
14
  const { data: basket, isLoading, isSuccess } = useGetBasketQuery();
13
15
  const { t } = useLocalization();
16
+ const multiBasket = settings.plugins?.multiBasket ?? false;
14
17
 
15
18
  useEffect(() => {
16
19
  if (isSuccess) {
@@ -29,7 +32,7 @@ export default function Page() {
29
32
  </div>
30
33
  )}
31
34
  {isSuccess &&
32
- (basket && basket.basketitem_set && basket.basketitem_set.length > 0 ? (
35
+ (basket ? (
33
36
  <>
34
37
  <div className="flex-1 xl:mr-16">
35
38
  <div className="flex items-center justify-between py-2 border-b border-gray-200 lg:py-3">
@@ -44,12 +47,19 @@ export default function Page() {
44
47
  </Link>
45
48
  </div>
46
49
  <ul>
47
- {basket.basketitem_set.map((basketItem, index) => (
48
- <BasketItem basketItem={basketItem} key={index} />
49
- ))}
50
+ {multiBasket ? (
51
+ <PluginModule
52
+ component={Component.MultiBasket}
53
+ props={{ BasketItem }}
54
+ />
55
+ ) : (
56
+ basket.basketitem_set.map((basketItem, index) => (
57
+ <BasketItem basketItem={basketItem} key={index} />
58
+ ))
59
+ )}
50
60
  </ul>
51
61
  </div>
52
- <Summary basket={basket} />
62
+ {/* <Summary basket={basket} /> */}
53
63
  </>
54
64
  ) : (
55
65
  <div className="flex flex-col items-center container max-w-screen-sm py-4 px-4 xs:py-6 xs:px-6 sm:py-8 sm:px-8 lg:max-w-screen-xl">
@@ -15,13 +15,15 @@ import PluginModule, { Component } from '@akinon/next/components/plugin-module';
15
15
  import { Image } from '@akinon/next/components/image';
16
16
  import clsx from 'clsx';
17
17
  import { pushRemoveFromCart } from '@theme/utils/gtm';
18
+
18
19
  interface Props {
19
- basketItem: BasketItemType;
20
+ basketItem?: BasketItemType;
21
+ namespace?: string;
20
22
  }
21
23
 
22
24
  export const BasketItem = (props: Props) => {
23
25
  const { t } = useLocalization();
24
- const { basketItem } = props;
26
+ const { basketItem, namespace } = props;
25
27
  const [updateQuantityMutation] = useUpdateQuantityMutation();
26
28
  const dispatch = useAppDispatch();
27
29
  const [isRemoveBasketModalOpen, setRemoveBasketModalOpen] = useState(false);
@@ -37,11 +39,17 @@ export const BasketItem = (props: Props) => {
37
39
  quantity: number,
38
40
  attributes: object = {}
39
41
  ) => {
40
- await updateQuantityMutation({
42
+ const requestParams: any = {
41
43
  product: productPk,
42
44
  quantity,
43
45
  attributes
44
- })
46
+ };
47
+
48
+ if (namespace) {
49
+ requestParams.namespace = namespace;
50
+ }
51
+
52
+ await updateQuantityMutation(requestParams)
45
53
  .unwrap()
46
54
  .then((data) =>
47
55
  dispatch(
@@ -105,6 +105,10 @@ export default async () => {
105
105
  {
106
106
  name: 'Credit Payment',
107
107
  value: 'pz-credit-payment'
108
+ },
109
+ {
110
+ name: 'Multi Basket',
111
+ value: 'pz-multi-basket'
108
112
  }
109
113
  ];
110
114
 
@@ -119,6 +119,10 @@ exports.default = () => __awaiter(void 0, void 0, void 0, function* () {
119
119
  {
120
120
  name: 'Credit Payment',
121
121
  value: 'pz-credit-payment'
122
+ },
123
+ {
124
+ name: 'Multi Basket',
125
+ value: 'pz-multi-basket'
122
126
  }
123
127
  ];
124
128
  const prompt = new Prompt({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/projectzero",
3
- "version": "1.42.0-rc.13",
3
+ "version": "1.42.0-rc.15",
4
4
  "private": false,
5
5
  "description": "CLI tool to manage your Project Zero Next project",
6
6
  "bin": {