@ikas/storefront 0.1.13 → 0.1.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.
Files changed (35) hide show
  1. package/build/__generated__/global-types.d.ts +1 -0
  2. package/build/api/cart/__generated__/getCart.d.ts +2 -2
  3. package/build/api/cart/__generated__/saveItemToCart.d.ts +2 -2
  4. package/build/api/checkout/__generated__/getCheckoutById.d.ts +10 -2
  5. package/build/api/checkout/__generated__/getOrder.d.ts +2 -2
  6. package/build/api/customer/__generated__/createOrderRefundRequest.d.ts +2 -2
  7. package/build/api/customer/__generated__/getCustomerOrders.d.ts +2 -2
  8. package/build/components/checkout/components/cart-summary/cart-item/index.d.ts +2 -0
  9. package/build/components/checkout/components/{cart-summary → svg}/arrow-down.d.ts +0 -0
  10. package/build/components/checkout/components/{arrow-left.d.ts → svg/arrow-left.d.ts} +0 -0
  11. package/build/components/checkout/components/{cart-summary → svg}/arrow-right.d.ts +0 -0
  12. package/build/components/checkout/components/{cart-summary → svg}/cross.d.ts +0 -0
  13. package/build/components/checkout/components/{cross.d.ts → svg/discount.d.ts} +2 -2
  14. package/build/components/checkout/components/{external.d.ts → svg/external.d.ts} +0 -0
  15. package/build/components/checkout/components/{cart-summary → svg}/gift.d.ts +0 -0
  16. package/build/components/checkout/components/{ikas.d.ts → svg/ikas.d.ts} +0 -0
  17. package/build/components/checkout/components/{lock.d.ts → svg/lock.d.ts} +0 -0
  18. package/build/components/checkout/components/{cart-summary → svg}/shopping-cart.d.ts +0 -0
  19. package/build/components/checkout/components/{success-circle.d.ts → svg/success-circle.d.ts} +0 -0
  20. package/build/components/checkout/components/{cart-summary → svg}/tag.d.ts +0 -0
  21. package/build/components/checkout/components/{warning.d.ts → svg/warning.d.ts} +0 -0
  22. package/build/components/checkout/model.d.ts +0 -1
  23. package/build/index.css +22 -0
  24. package/build/index.es.css +22 -0
  25. package/build/index.es.js +211 -2289
  26. package/build/index.js +211 -2297
  27. package/build/models/data/checkout/index.d.ts +4 -2
  28. package/build/models/data/order/index.d.ts +6 -0
  29. package/build/pages/index.d.ts +1 -11
  30. package/package.json +3 -9
  31. package/build/pages/api/getComponentDirs.d.ts +0 -3
  32. package/build/pages/api/getTheme.d.ts +0 -3
  33. package/build/pages/api/middleware.d.ts +0 -3
  34. package/build/pages/api/updateTheme.d.ts +0 -9
  35. package/build/pages/api/uploadTheme.d.ts +0 -3
@@ -353,6 +353,7 @@ export interface CheckoutCustomerInput {
353
353
  firstName?: string | null;
354
354
  id?: string | null;
355
355
  lastName?: string | null;
356
+ notificationsAccepted?: boolean | null;
356
357
  }
357
358
  export interface CreateCustomerEmailSubscriptionInput {
358
359
  createdAt?: any | null;
@@ -9,9 +9,9 @@ export interface getCart_getCart_items_variant_variantValues {
9
9
  __typename: "OrderLineVariantVariantValues";
10
10
  order: number;
11
11
  variantTypeId: string;
12
- variantTypeName: string;
12
+ variantTypeName: string | null;
13
13
  variantValueId: string;
14
- variantValueName: string;
14
+ variantValueName: string | null;
15
15
  }
16
16
  export interface getCart_getCart_items_variant {
17
17
  __typename: "OrderLineVariant";
@@ -14,9 +14,9 @@ export interface saveItemToCart_saveItemToCart_items_variant_variantValues {
14
14
  __typename: "OrderLineVariantVariantValues";
15
15
  order: number;
16
16
  variantTypeId: string;
17
- variantTypeName: string;
17
+ variantTypeName: string | null;
18
18
  variantValueId: string;
19
- variantValueName: string;
19
+ variantValueName: string | null;
20
20
  }
21
21
  export interface saveItemToCart_saveItemToCart_items_variant {
22
22
  __typename: "OrderLineVariant";
@@ -56,6 +56,7 @@ export interface getCheckoutById_getCheckoutById_customer {
56
56
  firstName: string | null;
57
57
  id: string | null;
58
58
  lastName: string | null;
59
+ notificationsAccepted: boolean | null;
59
60
  }
60
61
  export interface getCheckoutById_getCheckoutById_shippingAddress_city {
61
62
  __typename: "OrderAddressCity";
@@ -123,9 +124,9 @@ export interface getCheckoutById_getCheckoutById_cart_items_variant_variantValue
123
124
  __typename: "OrderLineVariantVariantValues";
124
125
  order: number;
125
126
  variantTypeId: string;
126
- variantTypeName: string;
127
+ variantTypeName: string | null;
127
128
  variantValueId: string;
128
- variantValueName: string;
129
+ variantValueName: string | null;
129
130
  }
130
131
  export interface getCheckoutById_getCheckoutById_cart_items_variant {
131
132
  __typename: "OrderLineVariant";
@@ -172,6 +173,12 @@ export interface getCheckoutById_getCheckoutById_cart {
172
173
  totalPrice: number;
173
174
  updatedAt: any | null;
174
175
  }
176
+ export interface getCheckoutById_getCheckoutById_adjustments_appliedOrderLines {
177
+ __typename: "OrderAdjustmentAppliedOrderLine";
178
+ amount: number;
179
+ appliedQuantity: number;
180
+ orderLineId: string;
181
+ }
175
182
  export interface getCheckoutById_getCheckoutById_adjustments {
176
183
  __typename: "OrderAdjustment";
177
184
  amount: number;
@@ -180,6 +187,7 @@ export interface getCheckoutById_getCheckoutById_adjustments {
180
187
  order: number;
181
188
  type: AdjustmentEnum;
182
189
  couponId: string | null;
190
+ appliedOrderLines: getCheckoutById_getCheckoutById_adjustments_appliedOrderLines[] | null;
183
191
  }
184
192
  export interface getCheckoutById_getCheckoutById_giftPackageLines {
185
193
  __typename: "OrderGiftPackageLine";
@@ -70,9 +70,9 @@ export interface getOrder_getOrder_orderLineItems_discount {
70
70
  }
71
71
  export interface getOrder_getOrder_orderLineItems_variant_variantValues {
72
72
  __typename: "OrderLineVariantVariantValues";
73
- variantValueName: string;
73
+ variantValueName: string | null;
74
74
  variantValueId: string;
75
- variantTypeName: string;
75
+ variantTypeName: string | null;
76
76
  variantTypeId: string;
77
77
  order: number;
78
78
  }
@@ -70,9 +70,9 @@ export interface createOrderRefundRequest_createOrderRefundRequest_orderLineItem
70
70
  }
71
71
  export interface createOrderRefundRequest_createOrderRefundRequest_orderLineItems_variant_variantValues {
72
72
  __typename: "OrderLineVariantVariantValues";
73
- variantValueName: string;
73
+ variantValueName: string | null;
74
74
  variantValueId: string;
75
- variantTypeName: string;
75
+ variantTypeName: string | null;
76
76
  variantTypeId: string;
77
77
  order: number;
78
78
  }
@@ -70,9 +70,9 @@ export interface getCustomerOrders_getCustomerOrders_orderLineItems_discount {
70
70
  }
71
71
  export interface getCustomerOrders_getCustomerOrders_orderLineItems_variant_variantValues {
72
72
  __typename: "OrderLineVariantVariantValues";
73
- variantValueName: string;
73
+ variantValueName: string | null;
74
74
  variantValueId: string;
75
- variantTypeName: string;
75
+ variantTypeName: string | null;
76
76
  variantTypeId: string;
77
77
  order: number;
78
78
  }
@@ -1,6 +1,8 @@
1
1
  import * as React from "react";
2
2
  import { IkasOrderLineItem } from "../../../../../models/index";
3
+ import CheckoutViewModel from "../../../model";
3
4
  declare type Props = {
5
+ vm: CheckoutViewModel;
4
6
  currencyCode: string;
5
7
  cartItem: IkasOrderLineItem;
6
8
  };
@@ -2,5 +2,5 @@ import * as React from "react";
2
2
  declare type Props = {
3
3
  className?: string;
4
4
  };
5
- declare const SVGCross: React.FC<Props>;
6
- export default SVGCross;
5
+ declare const SVGDiscount: React.FC<Props>;
6
+ export default SVGDiscount;
@@ -35,7 +35,6 @@ export default class CheckoutViewModel {
35
35
  policyModalTitle: string;
36
36
  policyModalText: string;
37
37
  error?: CheckoutError | null;
38
- customerConsentGranted: boolean;
39
38
  order?: IkasOrder;
40
39
  successTransaction?: IkasOrderTransaction;
41
40
  t: TFunction;
package/build/index.css CHANGED
@@ -980,6 +980,28 @@
980
980
  color: var(--checkout-secondary-text-color);
981
981
  text-decoration: line-through;
982
982
  margin-right: 8px; }
983
+ .style-module_CheckoutItem__2JjSt .style-module_Price__1Vw31 .style-module_DiscountIcon__39hOP {
984
+ margin-left: 8px;
985
+ position: relative;
986
+ display: flex;
987
+ align-items: center;
988
+ justify-content: center; }
989
+ .style-module_CheckoutItem__2JjSt .style-module_Price__1Vw31 .style-module_DiscountIcon__39hOP:hover .style-module_DiscountTooltip__2hO7z {
990
+ display: block; }
991
+ .style-module_CheckoutItem__2JjSt .style-module_Price__1Vw31 .style-module_DiscountIcon__39hOP .style-module_DiscountTooltip__2hO7z {
992
+ display: none;
993
+ position: absolute;
994
+ bottom: 120%;
995
+ margin: auto;
996
+ padding: 12px;
997
+ border-radius: 4px;
998
+ background-color: white;
999
+ box-shadow: 0px 4px 20px rgba(110, 113, 117, 0.12);
1000
+ width: 200px; }
1001
+ .style-module_CheckoutItem__2JjSt .style-module_Price__1Vw31 .style-module_DiscountIcon__39hOP .style-module_DiscountTooltip__2hO7z .style-module_DiscountAdjustment__3QUlC {
1002
+ margin-bottom: 4px; }
1003
+ .style-module_CheckoutItem__2JjSt .style-module_Price__1Vw31 .style-module_DiscountIcon__39hOP .style-module_DiscountTooltip__2hO7z .style-module_DiscountAdjustment__3QUlC:last-of-type {
1004
+ margin-bottom: 0; }
983
1005
 
984
1006
  .style-module_TooltipContainer__1IW8v {
985
1007
  width: 16px;
@@ -980,6 +980,28 @@
980
980
  color: var(--checkout-secondary-text-color);
981
981
  text-decoration: line-through;
982
982
  margin-right: 8px; }
983
+ .style-module_CheckoutItem__2JjSt .style-module_Price__1Vw31 .style-module_DiscountIcon__39hOP {
984
+ margin-left: 8px;
985
+ position: relative;
986
+ display: flex;
987
+ align-items: center;
988
+ justify-content: center; }
989
+ .style-module_CheckoutItem__2JjSt .style-module_Price__1Vw31 .style-module_DiscountIcon__39hOP:hover .style-module_DiscountTooltip__2hO7z {
990
+ display: block; }
991
+ .style-module_CheckoutItem__2JjSt .style-module_Price__1Vw31 .style-module_DiscountIcon__39hOP .style-module_DiscountTooltip__2hO7z {
992
+ display: none;
993
+ position: absolute;
994
+ bottom: 120%;
995
+ margin: auto;
996
+ padding: 12px;
997
+ border-radius: 4px;
998
+ background-color: white;
999
+ box-shadow: 0px 4px 20px rgba(110, 113, 117, 0.12);
1000
+ width: 200px; }
1001
+ .style-module_CheckoutItem__2JjSt .style-module_Price__1Vw31 .style-module_DiscountIcon__39hOP .style-module_DiscountTooltip__2hO7z .style-module_DiscountAdjustment__3QUlC {
1002
+ margin-bottom: 4px; }
1003
+ .style-module_CheckoutItem__2JjSt .style-module_Price__1Vw31 .style-module_DiscountIcon__39hOP .style-module_DiscountTooltip__2hO7z .style-module_DiscountAdjustment__3QUlC:last-of-type {
1004
+ margin-bottom: 0; }
983
1005
 
984
1006
  .style-module_TooltipContainer__1IW8v {
985
1007
  width: 16px;