@ikas/storefront 0.0.16-0.alpha-1 → 0.0.16

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 (196) hide show
  1. package/build/__generated__/global-types.d.ts +8 -214
  2. package/build/api/brand/__generated__/listProductBrand.d.ts +2 -3
  3. package/build/api/brand/index.d.ts +0 -1
  4. package/build/api/cart/__generated__/getCart.d.ts +3 -7
  5. package/build/api/cart/__generated__/saveItemToCart.d.ts +3 -6
  6. package/build/api/category/__generated__/listCategory.d.ts +2 -4
  7. package/build/api/category/index.d.ts +0 -3
  8. package/build/api/checkout/__generated__/checkStocks.d.ts +3 -3
  9. package/build/api/checkout/__generated__/getCheckoutByCartId.d.ts +1 -1
  10. package/build/api/checkout/__generated__/getCheckoutById.d.ts +4 -5
  11. package/build/api/checkout/__generated__/listPaymentGateway.d.ts +2 -14
  12. package/build/api/checkout/__generated__/saveCheckout.d.ts +1 -1
  13. package/build/api/checkout/index.d.ts +3 -11
  14. package/build/api/city/__generated__/listCity.d.ts +1 -1
  15. package/build/api/country/__generated__/getAvailableShippingCountries.d.ts +0 -3
  16. package/build/api/country/__generated__/listCountry.d.ts +1 -8
  17. package/build/api/country/index.d.ts +2 -3
  18. package/build/api/customer/__generated__/customerLogin.d.ts +3 -5
  19. package/build/api/customer/__generated__/getCustomerOrders.d.ts +4 -3
  20. package/build/api/customer/__generated__/getMyCustomer.d.ts +2 -3
  21. package/build/api/customer/__generated__/listOrderTransactions.d.ts +1 -1
  22. package/build/api/customer/__generated__/registerCustomer.d.ts +2 -2
  23. package/build/api/customer/__generated__/saveMyCustomer.d.ts +2 -3
  24. package/build/api/customer/index.d.ts +0 -15
  25. package/build/api/district/__generated__/listDistrict.d.ts +1 -1
  26. package/build/api/html-meta-data/__generated__/listHTMLMetaData.d.ts +1 -2
  27. package/build/api/html-meta-data/index.d.ts +1 -1
  28. package/build/api/index.d.ts +3 -4
  29. package/build/api/merchant/__generated__/listMerchantSettings.d.ts +1 -1
  30. package/build/api/product/__generated__/listProduct.d.ts +90 -0
  31. package/build/api/product/index.d.ts +15 -0
  32. package/build/api/product-attribute/__generated__/listProductAttribute.d.ts +2 -2
  33. package/build/api/product-stock-location/__generated__/listProductStockLocation.d.ts +13 -0
  34. package/build/api/product-stock-location/index.d.ts +4 -0
  35. package/build/api/state/__generated__/listState.d.ts +1 -1
  36. package/build/api/stock-location/__generated__/listStockLocation.d.ts +1 -1
  37. package/build/api/storefront/__generated__/getStorefront.d.ts +12 -41
  38. package/build/api/storefront/index.d.ts +1 -1
  39. package/build/api/theme/index.d.ts +4 -0
  40. package/build/api/variant-type/__generated__/listVariantType.d.ts +2 -2
  41. package/build/components/checkout/components/address-form/index.d.ts +0 -3
  42. package/build/components/checkout/components/address-form/model.d.ts +0 -11
  43. package/build/components/checkout/components/button/index.d.ts +1 -4
  44. package/build/components/checkout/components/checkbox/index.d.ts +1 -2
  45. package/build/components/checkout/components/error-container/payment-error/index.d.ts +0 -2
  46. package/build/components/checkout/components/form-item/model.d.ts +2 -11
  47. package/build/components/checkout/index.d.ts +0 -5
  48. package/build/components/checkout/model.d.ts +5 -18
  49. package/build/components/gtm/functions.d.ts +164 -0
  50. package/build/components/gtm/index.d.ts +7 -0
  51. package/build/components/hoc/ThemeComponent.d.ts +2 -2
  52. package/build/components/index.d.ts +2 -1
  53. package/build/components/page/head.d.ts +0 -5
  54. package/build/components/page/index.d.ts +1 -6
  55. package/build/components/page-editor/model.d.ts +2 -6
  56. package/build/index.d.ts +0 -1
  57. package/build/index.es.js +10449 -18854
  58. package/build/index.js +10441 -18882
  59. package/build/models/data/brand/index.d.ts +1 -1
  60. package/build/models/data/cart/index.d.ts +0 -9
  61. package/build/models/data/category/index.d.ts +1 -22
  62. package/build/models/data/checkout/index.d.ts +0 -5
  63. package/build/models/data/country/index.d.ts +0 -2
  64. package/build/models/data/customer/index.d.ts +0 -7
  65. package/build/models/data/image/index.d.ts +0 -1
  66. package/build/models/data/index.d.ts +1 -5
  67. package/build/models/data/order/address/index.d.ts +0 -6
  68. package/build/models/data/order/index.d.ts +1 -19
  69. package/build/models/data/order/line-item/index.d.ts +0 -18
  70. package/build/models/data/payment-gateway/index.d.ts +2 -26
  71. package/build/models/data/product/attribute-value/index.d.ts +1 -15
  72. package/build/models/data/product/index.d.ts +1 -2
  73. package/build/models/data/product/variant/index.d.ts +0 -1
  74. package/build/models/data/product/variant/price/index.d.ts +0 -2
  75. package/build/models/data/product-attribute/index.d.ts +2 -5
  76. package/build/models/data/storefront/index.d.ts +6 -17
  77. package/build/models/data/storefront/stockfront-location/index.d.ts +5 -0
  78. package/build/models/data/storefront/stockfront-route/index.d.ts +5 -0
  79. package/build/models/data/storefront/{domain → storefront-domain}/index.d.ts +0 -1
  80. package/build/models/data/storefront/storefront-region/index.d.ts +18 -0
  81. package/build/models/data/variant-type/variant-value/index.d.ts +1 -1
  82. package/build/models/theme/component/prop/index.d.ts +1 -17
  83. package/build/models/theme/index.d.ts +0 -4
  84. package/build/models/theme/page/component/prop-value/product-list.d.ts +0 -2
  85. package/build/models/theme/page/index.d.ts +1 -14
  86. package/build/models/theme/theme.d.ts +0 -4
  87. package/build/models/ui/brand-list/index.d.ts +0 -3
  88. package/build/models/ui/category-list/index.d.ts +0 -3
  89. package/build/models/ui/index.d.ts +2 -12
  90. package/build/models/ui/product-detail/index.d.ts +3 -14
  91. package/build/models/ui/product-list/filter.d.ts +18 -0
  92. package/build/models/ui/product-list/index.d.ts +14 -62
  93. package/build/pages/{pages/[slug].d.ts → [slug]/[secondSlug].d.ts} +0 -2
  94. package/build/pages/[slug]/index.d.ts +3 -9
  95. package/build/pages/account/addresses.d.ts +0 -2
  96. package/build/pages/account/forgot-password.d.ts +0 -3
  97. package/build/pages/account/index.d.ts +0 -2
  98. package/build/pages/account/login.d.ts +0 -3
  99. package/build/pages/account/orders/[id].d.ts +0 -2
  100. package/build/pages/account/orders/index.d.ts +0 -2
  101. package/build/pages/account/recover-password.d.ts +0 -3
  102. package/build/pages/account/register.d.ts +0 -3
  103. package/build/pages/checkout/[id].d.ts +0 -5
  104. package/build/pages/home.d.ts +0 -3
  105. package/build/pages/index.d.ts +2 -8
  106. package/build/store/base.d.ts +0 -17
  107. package/build/store/customer.d.ts +1 -31
  108. package/build/storefront/index.d.ts +3 -29
  109. package/build/utils/helper.d.ts +0 -1
  110. package/build/utils/index.d.ts +0 -1
  111. package/build/utils/providers/page-data.d.ts +5 -60
  112. package/build/utils/providers/prop-value/boolean.d.ts +1 -1
  113. package/build/utils/providers/prop-value/category.d.ts +2 -2
  114. package/build/utils/providers/prop-value/product-detail.d.ts +2 -2
  115. package/build/utils/providers/prop-value/product-list.d.ts +3 -1
  116. package/package.json +3 -3
  117. package/build/analytics/analytics.d.ts +0 -22
  118. package/build/analytics/facebookPixel.d.ts +0 -15
  119. package/build/analytics/googleTagManager.d.ts +0 -201
  120. package/build/analytics/head/index.d.ts +0 -7
  121. package/build/analytics/index.d.ts +0 -2
  122. package/build/api/blog/__generated__/getBlog.d.ts +0 -83
  123. package/build/api/blog/__generated__/listBlog.d.ts +0 -86
  124. package/build/api/blog/__generated__/listBlogCategory.d.ts +0 -38
  125. package/build/api/blog/__generated__/listBlogMetaData.d.ts +0 -29
  126. package/build/api/blog/index.d.ts +0 -32
  127. package/build/api/category/__generated__/listCategoryPaths.d.ts +0 -23
  128. package/build/api/checkout/__generated__/listCheckoutSettings.d.ts +0 -26
  129. package/build/api/contact-form/__generated__/sendContactFormToMerchant.d.ts +0 -9
  130. package/build/api/contact-form/index.d.ts +0 -10
  131. package/build/api/country/__generated__/getMyCountry.d.ts +0 -3
  132. package/build/api/customer/__generated__/createCustomerEmailSubscription.d.ts +0 -11
  133. package/build/api/customer/__generated__/createOrderRefundRequest.d.ts +0 -215
  134. package/build/api/customer/__generated__/getLastViewedProducts.d.ts +0 -15
  135. package/build/api/customer/__generated__/saveLastViewedProducts.d.ts +0 -11
  136. package/build/api/favorite-product/__generated__/isFavoriteProduct.d.ts +0 -6
  137. package/build/api/favorite-product/__generated__/listFavoriteProducts.d.ts +0 -12
  138. package/build/api/favorite-product/__generated__/saveFavoriteProduct.d.ts +0 -7
  139. package/build/api/favorite-product/index.d.ts +0 -6
  140. package/build/api/product-search/__generated__/getProductFilterData.d.ts +0 -50
  141. package/build/api/product-search/__generated__/searchProducts.d.ts +0 -26
  142. package/build/api/product-search/index.d.ts +0 -20
  143. package/build/components/checkout/components/cart-summary/cross.d.ts +0 -6
  144. package/build/components/checkout/components/cart-summary/tag.d.ts +0 -6
  145. package/build/components/checkout/components/error-container/customer-login-required-error/index.d.ts +0 -6
  146. package/build/components/image/index.d.ts +0 -35
  147. package/build/models/data/blog/index.d.ts +0 -67
  148. package/build/models/data/checkout-settings/index.d.ts +0 -18
  149. package/build/models/data/contact-form/index.d.ts +0 -7
  150. package/build/models/data/favorite-product/index.d.ts +0 -6
  151. package/build/models/data/order/refund/index.d.ts +0 -6
  152. package/build/models/data/order/refund/refund-line-item/index.d.ts +0 -5
  153. package/build/models/data/product-attribute/product-attribute-table-cell/index.d.ts +0 -5
  154. package/build/models/data/product-attribute/product-attribute-table-template/index.d.ts +0 -6
  155. package/build/models/data/product-filter/index.d.ts +0 -102
  156. package/build/models/data/product-tag/index.d.ts +0 -5
  157. package/build/models/data/sales-channel/index.d.ts +0 -18
  158. package/build/models/data/simple-product/index.d.ts +0 -135
  159. package/build/models/data/storefront/localization/index.d.ts +0 -7
  160. package/build/models/data/storefront/routing/index.d.ts +0 -9
  161. package/build/models/data/storefront/theme/index.d.ts +0 -13
  162. package/build/models/data/storefront/theme-localization/index.d.ts +0 -12
  163. package/build/models/theme/custom-data/index.d.ts +0 -24
  164. package/build/models/theme/page/component/prop-value/attribute-list.d.ts +0 -7
  165. package/build/models/theme/page/component/prop-value/attribute.d.ts +0 -7
  166. package/build/models/theme/page/component/prop-value/blog-list.d.ts +0 -9
  167. package/build/models/theme/page/component/prop-value/blog.d.ts +0 -5
  168. package/build/models/theme/settings/index.d.ts +0 -7
  169. package/build/models/theme/settings/prop/color/index.d.ts +0 -7
  170. package/build/models/theme/settings/prop/favicon/index.d.ts +0 -4
  171. package/build/models/ui/blog-list/index.d.ts +0 -56
  172. package/build/models/ui/component-renderer/index.d.ts +0 -7
  173. package/build/models/ui/validator/form/account-info.d.ts +0 -40
  174. package/build/models/ui/validator/form/address.d.ts +0 -75
  175. package/build/models/ui/validator/form/contact-form.d.ts +0 -45
  176. package/build/models/ui/validator/form/forgot-password.d.ts +0 -29
  177. package/build/models/ui/validator/form/login.d.ts +0 -35
  178. package/build/models/ui/validator/form/recover-password.d.ts +0 -36
  179. package/build/models/ui/validator/form/register.d.ts +0 -45
  180. package/build/models/ui/validator/index.d.ts +0 -27
  181. package/build/models/ui/validator/rules/index.d.ts +0 -87
  182. package/build/pages/404.d.ts +0 -13
  183. package/build/pages/account/favorite-products.d.ts +0 -12
  184. package/build/pages/blog/[slug].d.ts +0 -18
  185. package/build/pages/blog/index.d.ts +0 -13
  186. package/build/pages/cart.d.ts +0 -12
  187. package/build/pages/search.d.ts +0 -13
  188. package/build/utils/providers/placeholders.d.ts +0 -5
  189. package/build/utils/providers/prop-value/attribute-list.d.ts +0 -9
  190. package/build/utils/providers/prop-value/attribute.d.ts +0 -9
  191. package/build/utils/providers/prop-value/blog-list.d.ts +0 -9
  192. package/build/utils/providers/prop-value/blog.d.ts +0 -8
  193. package/build/utils/providers/prop-value/color.d.ts +0 -6
  194. package/build/utils/providers/prop-value/custom.d.ts +0 -40
  195. package/build/utils/providers/prop-value/rich-text.d.ts +0 -6
  196. package/build/utils/settings.d.ts +0 -168
@@ -2,13 +2,8 @@
2
2
  import * as React from "react";
3
3
  import { ParsedUrlQuery } from "querystring";
4
4
  import { IkasCheckout } from "../../models/index";
5
- import { IkasCheckoutSettings } from "../../models/data/checkout-settings/index";
6
5
  declare type Props = {
7
6
  checkout: IkasCheckout;
8
- checkoutSettings: IkasCheckoutSettings;
9
- returnPolicy: string;
10
- privacyPolicy: string;
11
- termsOfService: string;
12
7
  queryParams: ParsedUrlQuery;
13
8
  };
14
9
  export declare const IkasCheckoutPage: React.FC<Props>;
@@ -7,17 +7,14 @@ import { IkasOrderLineVariant } from "../../models/data/order/line-item/variant/
7
7
  import { IkasStorefront } from "../../models/data/storefront/index";
8
8
  import { IkasCustomerStore } from "../../store/customer";
9
9
  import CreditCardData from "./components/credit-card-form/model";
10
- import { IkasCheckoutSettings } from "../../models/data/checkout-settings/index";
11
10
  export default class CheckoutViewModel {
12
11
  checkout: IkasCheckout;
13
- checkoutSettings: IkasCheckoutSettings;
14
12
  storefront?: IkasStorefront | null;
15
13
  customerStore: IkasCustomerStore;
16
14
  router: NextRouter;
17
15
  isCheckoutLoaded: boolean;
18
16
  isErrorsVisible: boolean;
19
17
  isStepLoading: boolean;
20
- isTermsAndConditionsChecked: boolean;
21
18
  step: CheckoutStep;
22
19
  merchantSettings?: IkasMerchantSettings;
23
20
  cardData?: CreditCardData | null;
@@ -30,17 +27,12 @@ export default class CheckoutViewModel {
30
27
  shippingCountryIds?: string[] | null;
31
28
  selectedShippingAddressId?: string;
32
29
  selectedBillingAddressId?: string;
33
- returnPolicy: string;
34
- privacyPolicy: string;
35
- termsOfService: string;
36
- policyModalTitle: string;
37
- policyModalText: string;
38
30
  error?: CheckoutError | null;
39
- constructor(checkout: IkasCheckout, checkoutSettings: IkasCheckoutSettings, queryParams: ParsedUrlQuery, router: NextRouter, returnPolicy: string, privacyPolicy: string, termsOfService: string);
31
+ constructor(checkout: IkasCheckout, queryParams: ParsedUrlQuery, router: NextRouter);
40
32
  init: (queryParams: ParsedUrlQuery) => Promise<void>;
41
33
  get cart(): import("../../models/data/cart/index").IkasCart | null | undefined;
34
+ get storefrontRegion(): import("../../models/data/storefront/storefront-region/index").IkasStorefrontRegion | undefined;
42
35
  get selectedPaymentGatewayIndex(): number;
43
- get selectedPaymentGateway(): IkasPaymentGateway | undefined;
44
36
  get selectedInstallmentIndex(): number;
45
37
  get checkoutUrl(): string;
46
38
  get customerAddressOptions(): {
@@ -49,10 +41,9 @@ export default class CheckoutViewModel {
49
41
  }[];
50
42
  get installmentPrice(): number | null | undefined;
51
43
  get installmentExtraPrice(): number | undefined;
52
- get finalPrice(): number;
53
44
  get canProceedToShipping(): boolean;
54
45
  get canProceedToPayment(): boolean;
55
- get canPerformPayment(): boolean | undefined;
46
+ get canPerformPayment(): boolean;
56
47
  saveCheckout: () => Promise<void>;
57
48
  checkStocks: () => Promise<void>;
58
49
  getShippingCountries: () => Promise<void>;
@@ -60,22 +51,19 @@ export default class CheckoutViewModel {
60
51
  initialStockCheck: () => Promise<void>;
61
52
  listPaymentGateways: () => Promise<void>;
62
53
  retrieveInstallmentInfo: (input: IkasInstallmentInfoInput) => Promise<void>;
54
+ getStorefront: () => Promise<void>;
63
55
  createCustomer: () => void;
64
56
  createShippingAddress: () => void;
65
57
  createBillingAddress: () => void;
66
58
  onEmailChange: (value: string) => void;
67
59
  onShippingMethodChange: (shippingMethod: IkasAvailableShippingMethod) => Promise<void>;
68
60
  onCouponCodeChange: (value: string) => void;
69
- onCouponCodeApply: () => Promise<void>;
70
61
  onSelectedShippingAddressIdChange: (value: string) => void;
71
62
  onSelectedBillingAddressIdChange: (value: string) => void;
72
- onTermsAndConditionsCheckedChange: (value: boolean) => void;
73
- onCheckoutNoteChange: (value: string) => void;
74
63
  onCardNumberChange: (value: string) => void;
75
64
  onCardHolderNameChange: (value: string) => void;
76
65
  onExpirationDateChange: (value: string) => void;
77
66
  onCvcChange: (value: string) => void;
78
- onGoToCartClick: () => void;
79
67
  onBackToShoppingClick: () => void;
80
68
  onProceedToShippingClick: () => Promise<void>;
81
69
  onProceedToPaymentClick: () => Promise<void>;
@@ -101,8 +89,7 @@ export declare enum ErrorType {
101
89
  API_ERROR = 1,
102
90
  STOCK_ERROR = 2,
103
91
  PAYMENT_ERROR = 3,
104
- NO_SHIPPING_ERROR = 4,
105
- CUSTOMER_LOGIN_REQUIRED_ERROR = 5
92
+ NO_SHIPPING_ERROR = 4
106
93
  }
107
94
  export declare type CheckoutError = {
108
95
  type: ErrorType;
@@ -0,0 +1,164 @@
1
+ import { IkasProductDetail, IkasOrderLineItem, IkasCheckout } from "../../models/index";
2
+ import { CheckoutStep } from "../checkout/model";
3
+ export declare function GTMPageView(url: string): {
4
+ event: string;
5
+ page: string;
6
+ } | undefined;
7
+ export declare function GTMProductView(productDetail: IkasProductDetail): {
8
+ event: string;
9
+ ecommerce: {
10
+ items: {
11
+ item_name: string;
12
+ item_id: string;
13
+ price: number;
14
+ item_brand: string;
15
+ item_category: string;
16
+ item_category_2: string;
17
+ item_category_3: string;
18
+ item_category_4: string;
19
+ item_variant: string;
20
+ item_list_name: string;
21
+ item_list_id: string;
22
+ index: number;
23
+ quantity: number;
24
+ }[];
25
+ };
26
+ } | undefined;
27
+ export declare function GTMAddToCart(item: IkasProductDetail | IkasOrderLineItem, quantity: number): {
28
+ event: string;
29
+ ecommerce: {
30
+ items: ({
31
+ item_name: string;
32
+ item_id: string;
33
+ price: number;
34
+ item_brand: string;
35
+ item_category: string;
36
+ item_category_2: string;
37
+ item_category_3: string;
38
+ item_category_4: string;
39
+ item_variant: string;
40
+ item_list_name: string;
41
+ item_list_id: string;
42
+ index: number;
43
+ quantity: number;
44
+ } | {
45
+ item_name: string;
46
+ item_id: string;
47
+ price: string;
48
+ item_brand: string;
49
+ item_category: string;
50
+ item_category_2: string;
51
+ item_category_3: string;
52
+ item_category_4: string;
53
+ item_variant: string;
54
+ item_list_name: string;
55
+ item_list_id: string;
56
+ index: number;
57
+ quantity: number;
58
+ })[];
59
+ };
60
+ } | undefined;
61
+ export declare function GTMRemoveFromCart(item: IkasProductDetail | IkasOrderLineItem, quantity: number): {
62
+ event: string;
63
+ ecommerce: {
64
+ items: ({
65
+ item_name: string;
66
+ item_id: string;
67
+ price: number;
68
+ item_brand: string;
69
+ item_category: string;
70
+ item_category_2: string;
71
+ item_category_3: string;
72
+ item_category_4: string;
73
+ item_variant: string;
74
+ item_list_name: string;
75
+ item_list_id: string;
76
+ index: number;
77
+ quantity: number;
78
+ } | {
79
+ item_name: string;
80
+ item_id: string;
81
+ price: string;
82
+ item_brand: string;
83
+ item_category: string;
84
+ item_category_2: string;
85
+ item_category_3: string;
86
+ item_category_4: string;
87
+ item_variant: string;
88
+ item_list_name: string;
89
+ item_list_id: string;
90
+ index: number;
91
+ quantity: number;
92
+ })[];
93
+ };
94
+ } | undefined;
95
+ export declare function GTMBeginCheckout(checkout: IkasCheckout): {
96
+ event: string;
97
+ ecommerce: {
98
+ items: {
99
+ item_name: string;
100
+ item_id: string;
101
+ price: string;
102
+ item_brand: string;
103
+ item_category: string;
104
+ item_category_2: string;
105
+ item_category_3: string;
106
+ item_category_4: string;
107
+ item_variant: string;
108
+ item_list_name: string;
109
+ item_list_id: string;
110
+ index: number;
111
+ quantity: number;
112
+ }[] | undefined;
113
+ };
114
+ } | undefined;
115
+ export declare function GTMPurchase(checkout: IkasCheckout, orderId: string): {
116
+ event: string;
117
+ ecommerce: {
118
+ purchase: {
119
+ transaction_id: string;
120
+ affiliation: string;
121
+ value: string;
122
+ tax: string;
123
+ shipping: string;
124
+ currency: string | undefined;
125
+ coupon: string | null | undefined;
126
+ items: {
127
+ item_name: string;
128
+ item_id: string;
129
+ price: string;
130
+ item_brand: string;
131
+ item_category: string;
132
+ item_category_2: string;
133
+ item_category_3: string;
134
+ item_category_4: string;
135
+ item_variant: string;
136
+ item_list_name: string;
137
+ item_list_id: string;
138
+ index: number;
139
+ quantity: number;
140
+ }[] | undefined;
141
+ };
142
+ };
143
+ } | undefined;
144
+ export declare function GTMCheckoutStep(checkout: IkasCheckout, step: CheckoutStep): {
145
+ event: string;
146
+ ecommerce: {
147
+ items: {
148
+ item_name: string;
149
+ item_id: string;
150
+ price: string;
151
+ item_brand: string;
152
+ item_category: string;
153
+ item_category_2: string;
154
+ item_category_3: string;
155
+ item_category_4: string;
156
+ item_variant: string;
157
+ item_list_name: string;
158
+ item_list_id: string;
159
+ index: number;
160
+ quantity: number;
161
+ }[] | undefined;
162
+ };
163
+ } | undefined;
164
+ export declare function GTMDisableHTML(): void;
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ declare type GTMHeadProps = {
3
+ blockHTML?: boolean;
4
+ };
5
+ export declare const GTMHead: React.FC<GTMHeadProps>;
6
+ export declare const GTMBody: React.FC;
7
+ export {};
@@ -1,10 +1,10 @@
1
1
  import * as React from "react";
2
- import { IkasThemeSettings } from "../../models/index";
2
+ import { IkasThemePageComponent } from "../../models/index";
3
3
  import { IkasPageComponentPropValue } from "../../utils/index";
4
4
  declare type Props = {
5
5
  pageComponentPropValue: IkasPageComponentPropValue;
6
+ pageComponent: IkasThemePageComponent;
6
7
  index: number;
7
- settings: IkasThemeSettings;
8
8
  };
9
9
  export declare const ThemeComponent: React.FC<Props>;
10
10
  export {};
@@ -2,4 +2,5 @@ export { IkasCheckoutPage } from "./checkout/index";
2
2
  export { IkasPage } from "./page/index";
3
3
  export { IkasPageHead } from "./page/head";
4
4
  export { IkasPageEditor } from "./page-editor/index";
5
- export { Image } from "./image/index";
5
+ export * from "./gtm/index";
6
+ export * from "./gtm/functions";
@@ -1,12 +1,7 @@
1
1
  import * as React from "react";
2
- import { IkasThemePage } from "../../models/index";
3
2
  declare type Props = {
4
- page?: IkasThemePage;
5
3
  pageTitle?: string | null;
6
4
  description?: string | null;
7
- pageSpecificDataStr?: string;
8
- merchantSettings?: string;
9
- addOgpMetas?: boolean;
10
5
  };
11
6
  export declare const IkasPageHead: React.FC<Props>;
12
7
  export {};
@@ -1,14 +1,9 @@
1
1
  import * as React from "react";
2
- import { IkasThemePage, IkasThemeSettings } from "../../models/index";
2
+ import { IkasThemePage } from "../../models/index";
3
3
  import { IkasPageComponentPropValue } from "../../utils/index";
4
4
  declare type Props = {
5
5
  propValues: IkasPageComponentPropValue[];
6
6
  page?: IkasThemePage;
7
- pageSpecificDataStr?: string;
8
- settingsStr: string;
9
- merchantSettings?: string;
10
- addOgpMetas?: boolean;
11
7
  };
12
8
  export declare const IkasPage: React.FC<Props>;
13
- export declare const renderComponent: (pageComponentPropValue: IkasPageComponentPropValue, settings: IkasThemeSettings, index: number) => JSX.Element;
14
9
  export {};
@@ -1,7 +1,6 @@
1
1
  import { NextRouter } from "next/router";
2
2
  import { IkasThemePage, IkasThemePageComponent, IkasTheme, IkasThemeComponent } from "../../models/index";
3
3
  import { IkasPageDataProvider } from "../../utils/index";
4
- import { IkasThemePageSpecification } from "../../models/theme/page/index";
5
4
  export default class PageViewModel {
6
5
  theme?: IkasTheme | null;
7
6
  page?: IkasThemePage | null;
@@ -15,8 +14,6 @@ export default class PageViewModel {
15
14
  pageDataProvider?: IkasPageDataProvider | null;
16
15
  router: NextRouter;
17
16
  constructor(router: NextRouter);
18
- get specification(): IkasThemePageSpecification | undefined;
19
- get pageComponents(): IkasThemePageComponent[];
20
17
  get selectedPageComponent(): IkasThemePageComponent | undefined;
21
18
  get selectedComponent(): IkasThemeComponent | undefined;
22
19
  startMessaging: () => void;
@@ -25,6 +22,7 @@ export default class PageViewModel {
25
22
  onMouseOver: (id: string) => void;
26
23
  onMouseLeave: (id: string) => void;
27
24
  sendMessage: (type: BridgeMessageType, data?: any) => void;
25
+ getComponentPropValues: (pageComponent: IkasThemePageComponent) => any;
28
26
  getPagePropValues: () => Promise<void>;
29
27
  setComponentRef: (element: React.ElementType, component: IkasThemePageComponent) => void;
30
28
  isScrolledIntoView: (el: HTMLElement) => boolean;
@@ -40,7 +38,6 @@ export default class PageViewModel {
40
38
  handleSetSelectedComponent: (data: any) => void;
41
39
  handleSetHoveredComponent: (data: any) => void;
42
40
  handleScrollToComponent: (data: any) => void;
43
- updateThemeSettings: (data: any) => void;
44
41
  }
45
42
  export declare enum BridgeMessageType {
46
43
  FRAME_DID_LOAD = "FRAME_DID_LOAD",
@@ -58,6 +55,5 @@ export declare enum BridgeMessageType {
58
55
  COMPONENT_CLICK = "COMPONENT_CLICK",
59
56
  SET_SELECTED_COMPONENT = "SET_SELECTED_COMPONENT",
60
57
  SET_HOVERED_COMPONENT = "SET_HOVERED_COMPONENT",
61
- SCROLL_TO_COMPONENT = "SCROLL_TO_COMPONENT",
62
- UPDATE_THEME_SETTINGS = "UPDATE_THEME_SETTINGS"
58
+ SCROLL_TO_COMPONENT = "SCROLL_TO_COMPONENT"
63
59
  }
package/build/index.d.ts CHANGED
@@ -5,4 +5,3 @@ export * from "./pages/index";
5
5
  export * from "./store/index";
6
6
  export * from "./storefront/index";
7
7
  export * from "./utils/index";
8
- export * from "./analytics/index";