@ikas/storefront 5.0.0-beta.28 → 5.0.0-beta.29

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 (129) hide show
  1. package/build/analytics/events.d.ts +2 -2
  2. package/build/components/checkout/components/address-form/model.d.ts +1 -1
  3. package/build/components/checkout/components/adyen/index.d.ts +1 -1
  4. package/build/components/checkout/components/button/index.d.ts +1 -1
  5. package/build/components/checkout/components/cart-summary/cart-item/index.d.ts +1 -1
  6. package/build/components/checkout/components/cart-summary/index.d.ts +1 -1
  7. package/build/components/checkout/components/checkbox/check.d.ts +1 -1
  8. package/build/components/checkout/components/checkbox/index.d.ts +1 -1
  9. package/build/components/checkout/components/credit-card-form/index.d.ts +1 -1
  10. package/build/components/checkout/components/credit-card-form/model.d.ts +1 -1
  11. package/build/components/checkout/components/credit-card-form/svg/amex.d.ts +1 -1
  12. package/build/components/checkout/components/credit-card-form/svg/master-card.d.ts +1 -1
  13. package/build/components/checkout/components/credit-card-form/svg/troy.d.ts +1 -1
  14. package/build/components/checkout/components/credit-card-form/svg/visa.d.ts +1 -1
  15. package/build/components/checkout/components/customer-addresses/index.d.ts +4 -4
  16. package/build/components/checkout/components/customer-addresses/model.d.ts +1 -1
  17. package/build/components/checkout/components/delivery-methods/icon-button/index.d.ts +1 -1
  18. package/build/components/checkout/components/delivery-methods/icons/box.d.ts +1 -1
  19. package/build/components/checkout/components/delivery-methods/icons/store.d.ts +1 -1
  20. package/build/components/checkout/components/delivery-methods/index.d.ts +1 -1
  21. package/build/components/checkout/components/epaykolay-button/index.d.ts +1 -1
  22. package/build/components/checkout/components/error/customer-login-required-error/index.d.ts +1 -1
  23. package/build/components/checkout/components/error/index.d.ts +1 -1
  24. package/build/components/checkout/components/error/payment-error/index.d.ts +1 -1
  25. package/build/components/checkout/components/error/stock-error/index.d.ts +1 -1
  26. package/build/components/checkout/components/error/unknown-error/index.d.ts +1 -1
  27. package/build/components/checkout/components/expandable-section/index.d.ts +2 -1
  28. package/build/components/checkout/components/form-item/caret-down.d.ts +1 -1
  29. package/build/components/checkout/components/form-item/model.d.ts +1 -1
  30. package/build/components/checkout/components/input-with-button/index.d.ts +1 -1
  31. package/build/components/checkout/components/klarna/index.d.ts +1 -1
  32. package/build/components/checkout/components/master-pass/credit-card-form/index.d.ts +1 -1
  33. package/build/components/checkout/components/master-pass/link-card-to-client/index.d.ts +1 -1
  34. package/build/components/checkout/components/master-pass/modal/index.d.ts +1 -1
  35. package/build/components/checkout/components/master-pass/modal-otp/index.d.ts +1 -1
  36. package/build/components/checkout/components/master-pass/modal-response/index.d.ts +1 -1
  37. package/build/components/checkout/components/master-pass/modal-success/index.d.ts +2 -2
  38. package/build/components/checkout/components/master-pass/payment-gateway/svg/master-card.js +1 -1
  39. package/build/components/checkout/components/master-pass/payment-gateway/svg/troy.d.ts +1 -1
  40. package/build/components/checkout/components/master-pass/payment-gateway/svg/visa.d.ts +1 -1
  41. package/build/components/checkout/components/modal/index.d.ts +1 -1
  42. package/build/components/checkout/components/modal/useEscape.d.ts +1 -1
  43. package/build/components/checkout/components/notification-box/index.d.ts +1 -1
  44. package/build/components/checkout/components/offer-product/index.d.ts +1 -1
  45. package/build/components/checkout/components/offer-product/select/arrows.d.ts +1 -1
  46. package/build/components/checkout/components/offer-product/select/index.d.ts +1 -1
  47. package/build/components/checkout/components/paypal/index.d.ts +1 -1
  48. package/build/components/checkout/components/phone-number-input/get-countries.d.ts +1 -1
  49. package/build/components/checkout/components/phone-number-input/index.d.ts +1 -1
  50. package/build/components/checkout/components/quick-registration/completed.d.ts +1 -1
  51. package/build/components/checkout/components/quick-registration/index.d.ts +1 -1
  52. package/build/components/checkout/components/select-box/index.d.ts +1 -1
  53. package/build/components/checkout/components/step-container/index.d.ts +1 -1
  54. package/build/components/checkout/components/stripe/checkout-form.d.ts +1 -1
  55. package/build/components/checkout/components/stripe/index.d.ts +1 -1
  56. package/build/components/checkout/components/svg/arrow-down.d.ts +1 -1
  57. package/build/components/checkout/components/svg/arrow-left.d.ts +1 -1
  58. package/build/components/checkout/components/svg/arrow-right.d.ts +1 -1
  59. package/build/components/checkout/components/svg/cross.d.ts +1 -1
  60. package/build/components/checkout/components/svg/discount.d.ts +1 -1
  61. package/build/components/checkout/components/svg/epaykolay.d.ts +1 -1
  62. package/build/components/checkout/components/svg/external.d.ts +1 -1
  63. package/build/components/checkout/components/svg/gift.d.ts +1 -1
  64. package/build/components/checkout/components/svg/ikas.d.ts +1 -1
  65. package/build/components/checkout/components/svg/lock.d.ts +1 -1
  66. package/build/components/checkout/components/svg/shopping-cart.d.ts +1 -1
  67. package/build/components/checkout/components/svg/success-circle.d.ts +1 -1
  68. package/build/components/checkout/components/svg/tag.d.ts +1 -1
  69. package/build/components/checkout/components/svg/warning.d.ts +1 -1
  70. package/build/components/checkout/components/toggle/index.d.ts +1 -1
  71. package/build/components/checkout/components/tooltip/index.d.ts +1 -1
  72. package/build/components/checkout/index.d.ts +2 -2
  73. package/build/components/checkout/model.d.ts +1 -1
  74. package/build/components/checkout/modelMasterPass.d.ts +12 -12
  75. package/build/components/checkout/steps/step-info/index.d.ts +1 -1
  76. package/build/components/checkout/steps/step-payment/billing-address/index.d.ts +1 -1
  77. package/build/components/checkout/steps/step-payment/index.d.ts +1 -1
  78. package/build/components/checkout/steps/step-payment/payment-gateways/index.d.ts +1 -1
  79. package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.d.ts +1 -1
  80. package/build/components/checkout/steps/step-shipping/index.d.ts +1 -1
  81. package/build/components/checkout/steps/step-success/index.d.ts +1 -1
  82. package/build/components/checkout/types.d.ts +3 -3
  83. package/build/components/google-captcha/index.d.ts +1 -1
  84. package/build/components/image/index.d.ts +2 -1
  85. package/build/components/link/index.d.ts +5 -14
  86. package/build/components/link/index.js +1 -1
  87. package/build/components/page/ThemeComponent.d.ts +1 -1
  88. package/build/components/page/head.d.ts +1 -1
  89. package/build/components/page/index.d.ts +1 -1
  90. package/build/components/page-editor/ThemeComponentEditor.d.ts +1 -1
  91. package/build/components/page-editor/loader/index.d.ts +1 -1
  92. package/build/components/page-editor/model.js +1 -1
  93. package/build/models/data/checkout/index.d.ts +1 -1
  94. package/build/models/data/localized-customer-address/functions.d.ts +2 -0
  95. package/build/models/data/localized-customer-address/index.d.ts +1 -1
  96. package/build/models/data/localized-order-address/functions.d.ts +2 -0
  97. package/build/models/data/localized-order-address/index.d.ts +1 -1
  98. package/build/models/data/review-form/index.d.ts +1 -1
  99. package/build/models/ui/blog-category-list/index.d.ts +1 -1
  100. package/build/models/ui/blog-list/index.d.ts +1 -1
  101. package/build/models/ui/brand-list/index.d.ts +1 -1
  102. package/build/models/ui/category-list/index.d.ts +1 -1
  103. package/build/models/ui/component-renderer/index.d.ts +1 -1
  104. package/build/models/ui/customer-review-list/index.d.ts +1 -1
  105. package/build/models/ui/customer-review-summary-list/index.d.ts +1 -1
  106. package/build/models/ui/list-commons/index.d.ts +1 -1
  107. package/build/models/ui/navigation-link/index.d.ts +1 -1
  108. package/build/models/ui/product-list/index.d.ts +1 -1
  109. package/build/models/ui/raffle-list/index.d.ts +1 -1
  110. package/build/models/ui/validator/form/account-info.d.ts +2 -2
  111. package/build/models/ui/validator/form/address.d.ts +2 -2
  112. package/build/models/ui/validator/form/contact-form.d.ts +2 -2
  113. package/build/models/ui/validator/form/customer-review.d.ts +2 -2
  114. package/build/models/ui/validator/form/forgot-password.d.ts +2 -2
  115. package/build/models/ui/validator/form/ikas-address.d.ts +7 -2
  116. package/build/models/ui/validator/form/login.d.ts +2 -2
  117. package/build/models/ui/validator/form/raffle-form.d.ts +2 -2
  118. package/build/models/ui/validator/form/recover-password.d.ts +2 -2
  119. package/build/models/ui/validator/form/register.d.ts +5 -5
  120. package/build/models/ui/validator/index.d.ts +2 -2
  121. package/build/models/ui/validator/rules/index.d.ts +2 -2
  122. package/build/pages/checkout.d.ts +1 -1
  123. package/build/pages/editor.d.ts +1 -1
  124. package/build/store/base/index.d.ts +3 -3
  125. package/build/store/cart/index.d.ts +2 -2
  126. package/build/store/customer/index.d.ts +1 -1
  127. package/build/store/customer/index.js +1 -1
  128. package/build/utils/i18n.d.ts +2 -2
  129. package/package.json +9 -9
@@ -1,11 +1,11 @@
1
- declare type ContactFormProps<T> = {
1
+ type ContactFormProps<T> = {
2
2
  message: {
3
3
  requiredRule: ((model: T) => string) | string;
4
4
  emailRule: ((model: T) => string) | string;
5
5
  minRule: ((model: T) => string) | string;
6
6
  };
7
7
  };
8
- declare type ContactFormModel = {
8
+ type ContactFormModel = {
9
9
  firstName: string;
10
10
  lastName: string;
11
11
  email: string;
@@ -1,10 +1,10 @@
1
- declare type CustomerReviewFormProps<T> = {
1
+ type CustomerReviewFormProps<T> = {
2
2
  productId: string;
3
3
  message: {
4
4
  starRule: ((model: T) => string) | string;
5
5
  };
6
6
  };
7
- declare type CustomerReviewFormModel = {
7
+ type CustomerReviewFormModel = {
8
8
  title: string;
9
9
  comment: string;
10
10
  star: number;
@@ -1,10 +1,10 @@
1
- declare type ForgotPasswordProps<T> = {
1
+ type ForgotPasswordProps<T> = {
2
2
  message: {
3
3
  requiredRule: ((model: T) => string) | string;
4
4
  emailRule: ((model: T) => string) | string;
5
5
  };
6
6
  };
7
- declare type ForgotPasswordFormModel = {
7
+ type ForgotPasswordFormModel = {
8
8
  email: string;
9
9
  };
10
10
  export declare class ForgotPasswordForm {
@@ -1,11 +1,11 @@
1
1
  import { IkasCity, IkasCountry, IkasDistrict, IkasLocalizedCustomerAddress, IkasState } from "../../../data";
2
2
  import { AddressFormItem } from "@ikas/localized-address";
3
- declare type IkasAddressFormPropsValidatorMessage<T> = {
3
+ type IkasAddressFormPropsValidatorMessage<T> = {
4
4
  requiredRule: ((model: T) => string) | string;
5
5
  invalidRule: ((model: T) => string) | string;
6
6
  phoneRule?: ((model: T) => string) | string;
7
7
  };
8
- declare type IkasAddressFormProps<T> = {
8
+ type IkasAddressFormProps<T> = {
9
9
  message: IkasAddressFormPropsValidatorMessage<T>;
10
10
  address?: IkasLocalizedCustomerAddress;
11
11
  };
@@ -79,6 +79,7 @@ export declare class IkasAddressForm {
79
79
  state: import("@ikas/localized-address").AddressFormField;
80
80
  city: import("@ikas/localized-address").AddressFormField;
81
81
  district: import("@ikas/localized-address").AddressFormField;
82
+ region: import("@ikas/localized-address").AddressFormField;
82
83
  phone: import("@ikas/localized-address").AddressFormField;
83
84
  company: import("@ikas/localized-address").AddressFormField;
84
85
  taxOffice: import("@ikas/localized-address").AddressFormField;
@@ -128,6 +129,10 @@ export declare class IkasAddressForm {
128
129
  hasError: boolean;
129
130
  message: string;
130
131
  };
132
+ region: {
133
+ hasError: boolean;
134
+ message: string;
135
+ };
131
136
  phone: {
132
137
  hasError: boolean;
133
138
  message: string;
@@ -1,11 +1,11 @@
1
- declare type LoginFormProps<T> = {
1
+ type LoginFormProps<T> = {
2
2
  message: {
3
3
  requiredRule: ((model: T) => string) | string;
4
4
  emailRule: ((model: T) => string) | string;
5
5
  minRule: ((model: T) => string) | string;
6
6
  };
7
7
  };
8
- declare type LoginFormModel = {
8
+ type LoginFormModel = {
9
9
  email: string;
10
10
  password: string;
11
11
  };
@@ -1,6 +1,6 @@
1
1
  import { GraphQLError } from "graphql";
2
2
  import { IkasRaffle } from "../../../data";
3
- declare type RaffleFormProps<T> = {
3
+ type RaffleFormProps<T> = {
4
4
  message: {
5
5
  requiredRule: ((model: T) => string) | string;
6
6
  emailRule: ((model: T) => string) | string;
@@ -10,7 +10,7 @@ declare type RaffleFormProps<T> = {
10
10
  };
11
11
  raffle: IkasRaffle;
12
12
  };
13
- declare type RaffleFormModel = {
13
+ type RaffleFormModel = {
14
14
  firstName: string;
15
15
  lastName: string;
16
16
  email: string;
@@ -1,11 +1,11 @@
1
- declare type RecoverPasswordFormProps<T> = {
1
+ type RecoverPasswordFormProps<T> = {
2
2
  message: {
3
3
  requiredRule: ((model: T) => string) | string;
4
4
  minRule: ((model: T) => string) | string;
5
5
  equalsRule: ((model: T) => string) | string;
6
6
  };
7
7
  };
8
- declare type RecoverPasswordFormModel = {
8
+ type RecoverPasswordFormModel = {
9
9
  password: string;
10
10
  passwordAgain: string;
11
11
  };
@@ -1,15 +1,15 @@
1
1
  import { EmailRule, MinRule, PhoneRule, RequiredRule } from "../rules";
2
2
  import { IkasCustomerAttribute, IkasCustomerAttributeValue } from "../../../data";
3
- declare type RegisterFormPropsValidatorMessage<T> = {
3
+ type RegisterFormPropsValidatorMessage<T> = {
4
4
  requiredRule: ((model: T) => string) | string;
5
5
  emailRule: ((model: T) => string) | string;
6
6
  minRule: ((model: T) => string) | string;
7
7
  phoneRule?: ((model: T) => string) | string;
8
8
  };
9
- declare type RegisterFormProps<T> = {
9
+ type RegisterFormProps<T> = {
10
10
  message: RegisterFormPropsValidatorMessage<T>;
11
11
  };
12
- declare type RegisterFormModel = {
12
+ type RegisterFormModel = {
13
13
  firstName: string;
14
14
  lastName: string;
15
15
  email: string;
@@ -18,12 +18,12 @@ declare type RegisterFormModel = {
18
18
  isMarketingAccepted?: boolean;
19
19
  phone?: string | null;
20
20
  };
21
- declare type AttributeValue = {
21
+ type AttributeValue = {
22
22
  isChecked?: boolean;
23
23
  value?: string;
24
24
  selectedIdList?: string[];
25
25
  };
26
- export declare type RegisterFormCustomerAttribute = {
26
+ export type RegisterFormCustomerAttribute = {
27
27
  attribute: IkasCustomerAttribute;
28
28
  attributeValue: AttributeValue;
29
29
  validator: {
@@ -1,8 +1,8 @@
1
1
  import { ValidatorErrorType, ValidationRule } from "./rules";
2
- export declare type ValidationResults = {
2
+ export type ValidationResults = {
3
3
  [fieldKey: string]: ValidationResult;
4
4
  };
5
- export declare type ValidationStatus = "success" | "warning" | "error" | "validating";
5
+ export type ValidationStatus = "success" | "warning" | "error" | "validating";
6
6
  export declare class Validator<T = any> {
7
7
  model: T;
8
8
  rules: ValidationRule[];
@@ -3,8 +3,8 @@ export declare enum ValidatorErrorType {
3
3
  "EMAIl_RULE" = "EMAIl_RULE",
4
4
  "MIN_RULE" = "MIN_RULE"
5
5
  }
6
- declare type ValueGetter<T> = (model: T) => any;
7
- declare type ValuePath<T> = string | ValueGetter<T>;
6
+ type ValueGetter<T> = (model: T) => any;
7
+ type ValuePath<T> = string | ValueGetter<T>;
8
8
  export interface IValidationRuleParams<T = any> {
9
9
  model?: T;
10
10
  fieldKey: string;
@@ -3,7 +3,7 @@ import * as React from "react";
3
3
  import { ParsedUrlQuery } from "querystring";
4
4
  import { IkasCheckoutCustomizationProps } from "../components/checkout";
5
5
  import { IkasCheckoutSettings } from "../models/data";
6
- declare type Props = {
6
+ type Props = {
7
7
  checkoutSettings: IkasCheckoutSettings;
8
8
  customizationProps: IkasCheckoutCustomizationProps;
9
9
  returnPolicy: string;
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- declare type Props = {
2
+ type Props = {
3
3
  configJson?: Record<string, any>;
4
4
  components?: Record<string, any>;
5
5
  };
@@ -1,6 +1,6 @@
1
1
  import { IkasStorefrontRouting, IkasThemeJsonPageType } from "@ikas/storefront-models";
2
2
  import { NextRouter } from "next/router";
3
- export declare type IkasBaseStoreData = {
3
+ export type IkasBaseStoreData = {
4
4
  currentPageType?: IkasThemeJsonPageType | null;
5
5
  localeOptions: IkasLocaleOption[];
6
6
  languageOptions: IkasLanguageOption[];
@@ -12,7 +12,7 @@ export declare type IkasBaseStoreData = {
12
12
  };
13
13
  export declare const IkasBaseStore: IkasBaseStoreData;
14
14
  export declare function useBaseStore(): IkasBaseStoreData;
15
- export declare type IkasLocaleOption = {
15
+ export type IkasLocaleOption = {
16
16
  readonly id: string;
17
17
  readonly countryName?: string;
18
18
  readonly iso2?: string;
@@ -20,7 +20,7 @@ export declare type IkasLocaleOption = {
20
20
  readonly routing: IkasStorefrontRouting;
21
21
  readonly isRecommended: boolean;
22
22
  };
23
- export declare type IkasLanguageOption = {
23
+ export type IkasLanguageOption = {
24
24
  readonly id: string;
25
25
  readonly locale: string;
26
26
  readonly language: string;
@@ -1,13 +1,13 @@
1
1
  import { IkasCart } from "../../models/data";
2
2
  import { APIResponse } from "@ikas/storefront-api";
3
- export declare type IkasCartStoreData = {
3
+ export type IkasCartStoreData = {
4
4
  cart?: IkasCart | null;
5
5
  isLoadingCart: boolean;
6
6
  isCartLoadFinished: boolean;
7
7
  };
8
8
  export declare const IkasCartStore: IkasCartStoreData;
9
9
  export declare function useCartStore(): IkasCartStoreData;
10
- export declare type IkasCartOperationResult = {
10
+ export type IkasCartOperationResult = {
11
11
  success: boolean;
12
12
  validationError?: IkasCartOperationValidationError;
13
13
  response?: APIResponse<IkasCart | null>;
@@ -1,7 +1,7 @@
1
1
  import { IkasCustomer } from "../../models/data";
2
2
  import { IkasRegisterError } from "@ikas/storefront-api";
3
3
  export type { IkasRegisterError as RegisterResponseErrorCode };
4
- export declare type IkasCustomerStoreData = {
4
+ export type IkasCustomerStoreData = {
5
5
  customer?: IkasCustomer | null;
6
6
  initialized: boolean;
7
7
  };
@@ -1 +1 @@
1
- import{observable as o}from"mobx";import"@ikas/storefront-api";var r=o({customer:null,initialized:!1}),t=r;function i(){return t}function n(t){r.customer=o(t)}export{t as IkasCustomerStore,n as setCustomer,i as useCustomerStore};
1
+ import{observable as o}from"mobx";var r=o({customer:null,initialized:!1}),t=r;function i(){return t}function n(t){r.customer=o(t)}export{t as IkasCustomerStore,n as setCustomer,i as useCustomerStore};
@@ -3,9 +3,9 @@ export declare function useTranslation(): {
3
3
  t: typeof t;
4
4
  };
5
5
  export declare function createTranslationInputData(value: string): InputData[];
6
- declare type InputData = {
6
+ type InputData = {
7
7
  value: string;
8
8
  isVariable: boolean;
9
9
  };
10
- export declare type TFunction = (pathString: string, params?: Record<string, any>) => string;
10
+ export type TFunction = (pathString: string, params?: Record<string, any>) => string;
11
11
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront",
3
- "version": "5.0.0-beta.28",
3
+ "version": "5.0.0-beta.29",
4
4
  "description": "Storefront functionality for ikas storefront themes.",
5
5
  "author": "ikas",
6
6
  "license": "ISC",
@@ -17,19 +17,19 @@
17
17
  "build": "rm -rf build && rollup -c"
18
18
  },
19
19
  "dependencies": {
20
- "@ikas/storefront-api": "^5.0.0-beta.28",
21
- "@ikas/storefront-config": "^5.0.0-beta.28",
22
- "@ikas/storefront-model-functions": "^5.0.0-beta.28",
23
- "@ikas/storefront-models": "^5.0.0-beta.28",
24
- "@ikas/storefront-providers": "^5.0.0-beta.28",
20
+ "@ikas/storefront-api": "^5.0.0-beta.29",
21
+ "@ikas/storefront-config": "^5.0.0-beta.29",
22
+ "@ikas/storefront-model-functions": "^5.0.0-beta.29",
23
+ "@ikas/storefront-models": "^5.0.0-beta.29",
24
+ "@ikas/storefront-providers": "^5.0.0-beta.29",
25
25
  "@ikas/localized-address": "^1.0.0-beta.2",
26
26
  "@ikas/fe-api-client": "^1.0.20-beta.1",
27
27
  "@adyen/adyen-web": "^5.28.2",
28
28
  "mobx": "^6.1.3",
29
29
  "mobx-react-lite": "^3.1.5",
30
- "next": "12.2.0",
31
- "react": "^17.0.2",
32
- "react-dom": "^17.0.2",
30
+ "next": "13.3.0",
31
+ "react": "^18.2.0",
32
+ "react-dom": "^18.2.0",
33
33
  "lodash": "^4.17.21",
34
34
  "html-react-parser": "^1.4.0",
35
35
  "query-string": "^6.13.8",