@lookiero/checkout 9.9.0-beta.2 → 9.10.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.
Files changed (177) hide show
  1. package/dist/fake-dependencies/@lookiero/payments-front/index.d.ts +6 -8
  2. package/dist/fake-dependencies/@lookiero/payments-front/index.js +4 -7
  3. package/dist/index.js +2 -2
  4. package/dist/src/ExpoRoot.js +13 -17
  5. package/dist/src/infrastructure/ui/Root.d.ts +2 -0
  6. package/dist/src/infrastructure/ui/Root.js +4 -2
  7. package/dist/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.style.js +3 -2
  8. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.js +1 -1
  9. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.style.d.ts +0 -1
  10. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.style.js +0 -1
  11. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.js +1 -1
  12. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.style.d.ts +0 -1
  13. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.style.js +0 -1
  14. package/dist/src/infrastructure/ui/hooks/usePaymentInstrumentEvents.d.ts +2 -3
  15. package/dist/src/infrastructure/ui/hooks/usePaymentInstrumentEvents.js +26 -17
  16. package/dist/src/infrastructure/ui/hooks/useQueryBus.d.ts +9 -0
  17. package/dist/src/infrastructure/ui/hooks/useQueryBus.js +10 -0
  18. package/dist/src/infrastructure/ui/hooks/useSubmitCheckout.d.ts +1 -1
  19. package/dist/src/infrastructure/ui/hooks/useSubmitCheckout.js +55 -22
  20. package/dist/src/infrastructure/ui/i18n/i18n.d.ts +0 -1
  21. package/dist/src/infrastructure/ui/i18n/i18n.js +0 -1
  22. package/dist/src/infrastructure/ui/views/App.js +6 -5
  23. package/dist/src/infrastructure/ui/views/checkout/Checkout.js +2 -5
  24. package/dist/src/infrastructure/ui/views/checkout/Checkout.style.d.ts +0 -3
  25. package/dist/src/infrastructure/ui/views/checkout/Checkout.style.js +0 -3
  26. package/dist/src/infrastructure/ui/views/checkout/components/checkoutPaymentModal/CheckoutPaymentModal.js +2 -2
  27. package/dist/src/infrastructure/ui/views/checkout/components/paymentInstrument/PaymentInstrument.js +7 -7
  28. package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.d.ts +1 -0
  29. package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.js +2 -1
  30. package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.style.d.ts +1 -0
  31. package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.style.js +2 -1
  32. package/dist/src/projection/customer/customer.d.ts +0 -2
  33. package/dist/src/version.d.ts +1 -1
  34. package/dist/src/version.js +1 -1
  35. package/fake-dependencies/@lookiero/payments-front/index.tsx +9 -32
  36. package/index.ts +2 -2
  37. package/jest.config.js +2 -2
  38. package/package.json +7 -7
  39. package/src/ExpoRoot.tsx +32 -37
  40. package/src/infrastructure/ui/Root.tsx +30 -17
  41. package/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.style.ts +3 -2
  42. package/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/__snapshots__/FiveItemsDiscountBanner.test.tsx.snap +1 -1
  43. package/src/infrastructure/ui/components/atoms/price/__snapshots__/Price.test.tsx.snap +3 -3
  44. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.style.ts +0 -1
  45. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.tsx +1 -0
  46. package/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.style.ts +0 -1
  47. package/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.tsx +1 -0
  48. package/src/infrastructure/ui/components/templates/header/checkoutHeader/__snapshots__/CheckoutHeader.test.tsx.snap +1 -1
  49. package/src/infrastructure/ui/components/templates/header/itemDetailHeader/__snapshots__/ItemDetailHeader.test.tsx.snap +1 -1
  50. package/src/infrastructure/ui/components/templates/header/itemHeader/__snapshots__/ItemHeader.test.tsx.snap +1 -1
  51. package/src/infrastructure/ui/hooks/usePaymentInstrumentEvents.ts +60 -18
  52. package/src/infrastructure/ui/hooks/useQueryBus.test.tsx +23 -0
  53. package/src/infrastructure/ui/hooks/useQueryBus.tsx +27 -0
  54. package/src/infrastructure/ui/hooks/useSubmitCheckout.test.ts +58 -0
  55. package/src/infrastructure/ui/hooks/useSubmitCheckout.ts +77 -33
  56. package/src/infrastructure/ui/i18n/i18n.ts +0 -1
  57. package/src/infrastructure/ui/views/App.tsx +13 -5
  58. package/src/infrastructure/ui/views/checkout/Checkout.style.ts +0 -3
  59. package/src/infrastructure/ui/views/checkout/Checkout.tsx +3 -12
  60. package/src/infrastructure/ui/views/checkout/components/checkoutPaymentModal/CheckoutPaymentModal.tsx +2 -2
  61. package/src/infrastructure/ui/views/checkout/components/deliveryBanner/__snapshots__/DeliveryBanner.test.tsx.snap +1 -1
  62. package/src/infrastructure/ui/views/checkout/components/paymentInstrument/PaymentInstrument.tsx +8 -8
  63. package/src/infrastructure/ui/views/item/components/banner/__snapshots__/CustomerDecissionBanner.test.tsx.snap +3 -3
  64. package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/__snapshots__/GetOutOfCheckoutModal.test.tsx.snap +3 -3
  65. package/src/infrastructure/ui/views/item/components/itemActions/__snapshots__/ItemActions.test.tsx.snap +5 -5
  66. package/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.ts +2 -1
  67. package/src/infrastructure/ui/views/item/components/productVariantDescription/__snapshots__/ProductVariantDescription.test.tsx.snap +10 -8
  68. package/src/infrastructure/ui/views/item/components/productVariantSlider/__snapshots__/ProductVariantSlider.test.tsx.snap +30 -30
  69. package/src/infrastructure/ui/views/item/components/selectModal/__snapshots__/SelecModal.test.tsx.snap +1 -1
  70. package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/__snapshots__/SizeWithoutStockModal.test.tsx.snap +2 -2
  71. package/src/infrastructure/ui/views/item/views/productVariant/__snapshots__/ProductVariant.test.tsx.snap +105 -102
  72. package/src/infrastructure/ui/views/return/components/price/__snapshots__/Price.test.tsx.snap +3 -3
  73. package/src/infrastructure/ui/views/return/components/productVariantPreview/__snapshots__/ProductVariantPreview.test.tsx.snap +1 -1
  74. package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.style.ts +2 -1
  75. package/src/infrastructure/ui/views/shared/components/productVariant/__snapshots__/ProductVariant.test.tsx.snap +30 -30
  76. package/src/infrastructure/ui/views/summary/components/collapsiblePricing/__snapshots__/CollapsiblePricing.test.tsx.snap +4 -4
  77. package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/__snapshots__/CheckoutItemsTabs.test.tsx.snap +62 -62
  78. package/src/projection/customer/customer.ts +0 -2
  79. package/dist/pact.config.d.ts +0 -21
  80. package/dist/pact.config.js +0 -16
  81. package/dist/public/public/assets/adaptive-icon.png +0 -0
  82. package/dist/public/public/assets/favicon.png +0 -0
  83. package/dist/public/public/assets/icon.png +0 -0
  84. package/dist/public/public/assets/splash.png +0 -0
  85. package/dist/public/public/images/not-found.png +0 -0
  86. package/dist/src/infrastructure/projection/bookedProductsVariants/httpBookedProductsVariantsForCheckoutItemView.pact.d.ts +0 -1
  87. package/dist/src/infrastructure/projection/bookedProductsVariants/httpBookedProductsVariantsForCheckoutItemView.pact.js +0 -55
  88. package/dist/src/infrastructure/projection/checkout/httpCheckoutByIdView.pact.d.ts +0 -1
  89. package/dist/src/infrastructure/projection/checkout/httpCheckoutByIdView.pact.js +0 -116
  90. package/dist/src/infrastructure/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.pact.d.ts +0 -1
  91. package/dist/src/infrastructure/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.pact.js +0 -56
  92. package/dist/src/infrastructure/projection/checkout/httpFiveItemsDiscountByCustomerIdView.pact.d.ts +0 -1
  93. package/dist/src/infrastructure/projection/checkout/httpFiveItemsDiscountByCustomerIdView.pact.js +0 -51
  94. package/dist/src/infrastructure/projection/checkout/httpIsCheckoutEnabledByCustomerIdView.pact.d.ts +0 -1
  95. package/dist/src/infrastructure/projection/checkout/httpIsCheckoutEnabledByCustomerIdView.pact.js +0 -51
  96. package/dist/src/infrastructure/projection/checkout/httpIsSizeChangeEnabledByCheckoutIdView.pact.d.ts +0 -1
  97. package/dist/src/infrastructure/projection/checkout/httpIsSizeChangeEnabledByCheckoutIdView.pact.js +0 -51
  98. package/dist/src/infrastructure/projection/checkout/react/useViewIsCheckoutAccessibleByCustomerId.d.ts +0 -13
  99. package/dist/src/infrastructure/projection/checkout/react/useViewIsCheckoutAccessibleByCustomerId.js +0 -19
  100. package/dist/src/infrastructure/projection/checkoutBooking/httpCheckoutBookingByIdView.pact.d.ts +0 -1
  101. package/dist/src/infrastructure/projection/checkoutBooking/httpCheckoutBookingByIdView.pact.js +0 -56
  102. package/dist/src/infrastructure/projection/checkoutItem/httpCheckoutItemByIdView.pact.d.ts +0 -1
  103. package/dist/src/infrastructure/projection/checkoutItem/httpCheckoutItemByIdView.pact.js +0 -57
  104. package/dist/src/infrastructure/projection/checkoutQuestion/httpCheckoutQuestionsByCheckoutIdView.pact.d.ts +0 -1
  105. package/dist/src/infrastructure/projection/checkoutQuestion/httpCheckoutQuestionsByCheckoutIdView.pact.js +0 -55
  106. package/dist/src/infrastructure/projection/payment/httpPaymentFlowPayloadByCheckoutIdView.pact.d.ts +0 -1
  107. package/dist/src/infrastructure/projection/payment/httpPaymentFlowPayloadByCheckoutIdView.pact.js +0 -120
  108. package/dist/src/infrastructure/projection/pricing/httpPricingByCheckoutIdView.pact.d.ts +0 -1
  109. package/dist/src/infrastructure/projection/pricing/httpPricingByCheckoutIdView.pact.js +0 -55
  110. package/dist/src/infrastructure/projection/returnQuestion/httpReturnQuestionsByCheckoutItemIdView.pact.d.ts +0 -1
  111. package/dist/src/infrastructure/projection/returnQuestion/httpReturnQuestionsByCheckoutItemIdView.pact.js +0 -55
  112. package/dist/src/infrastructure/ui/components/layouts/layout/Layout.d.ts +0 -22
  113. package/dist/src/infrastructure/ui/components/layouts/layout/Layout.js +0 -1
  114. package/dist/src/infrastructure/ui/components/layouts/layout/components/footer/Footer.d.ts +0 -7
  115. package/dist/src/infrastructure/ui/components/layouts/layout/components/footer/Footer.js +0 -5
  116. package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.d.ts +0 -7
  117. package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.js +0 -6
  118. package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.style.d.ts +0 -4
  119. package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.style.js +0 -20
  120. package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.d.ts +0 -4
  121. package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.js +0 -43
  122. package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.style.d.ts +0 -12
  123. package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.style.js +0 -14
  124. package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.d.ts +0 -7
  125. package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.js +0 -21
  126. package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.style.d.ts +0 -8
  127. package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.style.js +0 -12
  128. package/dist/src/infrastructure/ui/hooks/useNewFeedbackExperiment.d.ts +0 -12
  129. package/dist/src/infrastructure/ui/hooks/useNewFeedbackExperiment.js +0 -64
  130. package/dist/src/infrastructure/ui/i18n/fetchTranslations.d.ts +0 -10
  131. package/dist/src/infrastructure/ui/i18n/fetchTranslations.js +0 -17
  132. package/dist/src/infrastructure/ui/i18n/translationEndpoint.d.ts +0 -20
  133. package/dist/src/infrastructure/ui/i18n/translationEndpoint.js +0 -27
  134. package/dist/src/infrastructure/ui/routing/CheckoutAccessibilityMiddleware.d.ts +0 -10
  135. package/dist/src/infrastructure/ui/routing/CheckoutAccessibilityMiddleware.js +0 -27
  136. package/dist/src/infrastructure/ui/views/App.style.d.ts +0 -6
  137. package/dist/src/infrastructure/ui/views/App.style.js +0 -8
  138. package/dist/src/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.style.d.ts +0 -7
  139. package/dist/src/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.style.js +0 -11
  140. package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.d.ts +0 -12
  141. package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.js +0 -64
  142. package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.d.ts +0 -12
  143. package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.js +0 -16
  144. package/dist/src/infrastructure/ui/views/return/Return.style.d.ts +0 -40
  145. package/dist/src/infrastructure/ui/views/return/Return.style.js +0 -44
  146. package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.d.ts +0 -14
  147. package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.js +0 -28
  148. package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.style.d.ts +0 -7
  149. package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.style.js +0 -11
  150. package/dist/src/projection/checkout/viewIsCheckoutAccessibleByCustomerId.d.ts +0 -26
  151. package/dist/src/projection/checkout/viewIsCheckoutAccessibleByCustomerId.js +0 -21
  152. package/dist/src/projection/shared/country.d.ts +0 -14
  153. package/dist/src/projection/shared/country.js +0 -15
  154. package/dist/src/projection/shared/customer.d.ts +0 -9
  155. package/dist/src/projection/shared/customer.js +0 -1
  156. package/dist/src/projection/shared/locale.d.ts +0 -12
  157. package/dist/src/projection/shared/locale.js +0 -13
  158. package/dist/src/projection/shared/order.d.ts +0 -6
  159. package/dist/src/projection/shared/order.js +0 -1
  160. package/dist/src/projection/shared/price.d.ts +0 -11
  161. package/dist/src/projection/shared/price.js +0 -1
  162. package/dist/src/projection/shared/size.d.ts +0 -21
  163. package/dist/src/projection/shared/size.js +0 -4
  164. package/dist/src/projection/shared/subscription.d.ts +0 -2
  165. package/dist/src/projection/shared/subscription.js +0 -1
  166. package/dist/src/shared/ui/components/atoms/aspectRatioView/AspectRatioView.d.ts +0 -15
  167. package/dist/src/shared/ui/components/atoms/aspectRatioView/AspectRatioView.js +0 -16
  168. package/dist/src/shared/ui/components/atoms/error/Error.d.ts +0 -11
  169. package/dist/src/shared/ui/components/atoms/error/Error.js +0 -6
  170. package/dist/src/shared/ui/components/atoms/field/Field.d.ts +0 -14
  171. package/dist/src/shared/ui/components/atoms/field/Field.js +0 -29
  172. package/dist/src/shared/ui/components/atoms/field/Field.style.d.ts +0 -16
  173. package/dist/src/shared/ui/components/atoms/field/Field.style.js +0 -19
  174. package/dist/src/shared/ui/components/molecules/inputField/InputField.d.ts +0 -24
  175. package/dist/src/shared/ui/components/molecules/inputField/InputField.js +0 -28
  176. package/dist/src/shared/ui/components/molecules/inputField/InputField.style.d.ts +0 -29
  177. package/dist/src/shared/ui/components/molecules/inputField/InputField.style.js +0 -37
@@ -1,51 +0,0 @@
1
- import { MatchersV3, PactV3 } from "@pact-foundation/pact";
2
- import { fetchHttpGet } from "@lookiero/sty-psp-http";
3
- import {
4
- AUTH_TOKEN,
5
- DEFAULT_PACT_OPTIONS,
6
- DEFAULT_REQUEST_HEADERS,
7
- DEFAULT_RESPONSE_HEADERS,
8
- fromMockServerUrlToApiUrl,
9
- } from "../../../../pact.config";
10
- import { httpFiveItemsDiscountByCustomerIdView } from "./httpFiveItemsDiscountByCustomerIdView";
11
-
12
- const provider = new PactV3({
13
- ...DEFAULT_PACT_OPTIONS,
14
- consumer: "STY-BOX_CHECKOUT-FRONT",
15
- provider: "STY-BOX_CHECKOUT-BACK_ViewFiveItemsDiscountByCustomerId",
16
- });
17
- const customerId = "fab61a4d-c94d-4e33-b098-1945294a5f75";
18
- const fiveItemsDiscountResponse = 25;
19
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
20
- // @ts-ignore
21
- const EXPECTED_BODY = MatchersV3.number(fiveItemsDiscountResponse);
22
- describe("STY-BOX_CHECKOUT-BACK_ViewFiveItemsDiscountByCustomerId API", () => {
23
- it("returns a five items discount for the given customer id", () => {
24
- provider
25
- .given("a five items discount for the given customer id")
26
- .uponReceiving("five items discount")
27
- .withRequest({
28
- method: "GET",
29
- path: `/api/view-five-items-discount-by-customer-id/${customerId}`,
30
- headers: DEFAULT_REQUEST_HEADERS,
31
- })
32
- .willRespondWith({
33
- status: 200,
34
- headers: DEFAULT_RESPONSE_HEADERS,
35
- body: EXPECTED_BODY,
36
- });
37
- return provider.executeTest(async (mockserver) => {
38
- const httpGet = fetchHttpGet({
39
- apiUrl: () => fromMockServerUrlToApiUrl(mockserver),
40
- getAuthToken: () => Promise.resolve(AUTH_TOKEN),
41
- device: "web",
42
- version: "1.0.0",
43
- });
44
- const response = await httpFiveItemsDiscountByCustomerIdView({ httpGet })({
45
- customerId,
46
- signal: undefined,
47
- });
48
- expect(response).toStrictEqual(fiveItemsDiscountResponse);
49
- });
50
- });
51
- });
@@ -1,51 +0,0 @@
1
- import { MatchersV3, PactV3 } from "@pact-foundation/pact";
2
- import { fetchHttpGet } from "@lookiero/sty-psp-http";
3
- import {
4
- AUTH_TOKEN,
5
- DEFAULT_PACT_OPTIONS,
6
- DEFAULT_REQUEST_HEADERS,
7
- DEFAULT_RESPONSE_HEADERS,
8
- fromMockServerUrlToApiUrl,
9
- } from "../../../../pact.config";
10
- import { httpIsCheckoutEnabledByCustomerIdView } from "./httpIsCheckoutEnabledByCustomerIdView";
11
-
12
- const provider = new PactV3({
13
- ...DEFAULT_PACT_OPTIONS,
14
- consumer: "STY-BOX_CHECKOUT-FRONT",
15
- provider: "STY-BOX_CHECKOUT-BACK_ViewIsCheckoutEnabledByCustomerId",
16
- });
17
- const customerId = "fab61a4d-c94d-4e33-b098-1945294a5f75";
18
- const isCheckoutEnabledResponse = true;
19
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
20
- // @ts-ignore
21
- const EXPECTED_BODY = MatchersV3.boolean(isCheckoutEnabledResponse);
22
- describe("STY-BOX_CHECKOUT-BACK_ViewIsCheckoutEnabledByCustomerId API", () => {
23
- it("returns is new checkout enabled for the given customer id", () => {
24
- provider
25
- .given("is new checkout enabled for the given customer id")
26
- .uponReceiving("is new checkout enabled")
27
- .withRequest({
28
- method: "GET",
29
- path: `/api/is-new-checkout-enabled/${customerId}`,
30
- headers: DEFAULT_REQUEST_HEADERS,
31
- })
32
- .willRespondWith({
33
- status: 200,
34
- headers: DEFAULT_RESPONSE_HEADERS,
35
- body: EXPECTED_BODY,
36
- });
37
- return provider.executeTest(async (mockserver) => {
38
- const httpGet = fetchHttpGet({
39
- apiUrl: () => fromMockServerUrlToApiUrl(mockserver),
40
- getAuthToken: () => Promise.resolve(AUTH_TOKEN),
41
- device: "web",
42
- version: "1.0.0",
43
- });
44
- const response = await httpIsCheckoutEnabledByCustomerIdView({ httpGet })({
45
- customerId,
46
- signal: undefined,
47
- });
48
- expect(response).toStrictEqual(isCheckoutEnabledResponse);
49
- });
50
- });
51
- });
@@ -1,51 +0,0 @@
1
- import { MatchersV3, PactV3 } from "@pact-foundation/pact";
2
- import { fetchHttpGet } from "@lookiero/sty-psp-http";
3
- import {
4
- AUTH_TOKEN,
5
- DEFAULT_PACT_OPTIONS,
6
- DEFAULT_REQUEST_HEADERS,
7
- DEFAULT_RESPONSE_HEADERS,
8
- fromMockServerUrlToApiUrl,
9
- } from "../../../../pact.config";
10
- import { httpIsSizeChangeEnabledByCheckoutIdView } from "./httpIsSizeChangeEnabledByCheckoutIdView";
11
-
12
- const provider = new PactV3({
13
- ...DEFAULT_PACT_OPTIONS,
14
- consumer: "STY-BOX_CHECKOUT-FRONT",
15
- provider: "STY-BOX_CHECKOUT-BACK_ViewIsSizeChangeEnabledByCheckoutId",
16
- });
17
- const checkoutId = "fab61a4d-c94d-4e33-b098-1945294a5f75";
18
- const isSizeChangeEnabledResponse = true;
19
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
20
- // @ts-ignore
21
- const EXPECTED_BODY = MatchersV3.like(isSizeChangeEnabledResponse);
22
- describe("STY-BOX_CHECKOUT-BACK_ViewIsSizeChangeEnabledByCheckoutId API", () => {
23
- it("returns is size-change enabled for the given checkout id", () => {
24
- provider
25
- .given("is size-change enabled for the given checkout id")
26
- .uponReceiving("is size-change enabled")
27
- .withRequest({
28
- method: "GET",
29
- path: `/api/is-size-change-enabled-by-checkout-id/${checkoutId}`,
30
- headers: DEFAULT_REQUEST_HEADERS,
31
- })
32
- .willRespondWith({
33
- status: 200,
34
- headers: DEFAULT_RESPONSE_HEADERS,
35
- body: EXPECTED_BODY,
36
- });
37
- return provider.executeTest(async (mockserver) => {
38
- const httpGet = fetchHttpGet({
39
- apiUrl: () => fromMockServerUrlToApiUrl(mockserver),
40
- getAuthToken: () => Promise.resolve(AUTH_TOKEN),
41
- device: "web",
42
- version: "1.0.0",
43
- });
44
- const response = await httpIsSizeChangeEnabledByCheckoutIdView({ httpGet })({
45
- checkoutId,
46
- signal: undefined,
47
- });
48
- expect(response).toStrictEqual(isSizeChangeEnabledResponse);
49
- });
50
- });
51
- });
@@ -1,13 +0,0 @@
1
- import { UseQueryFunctionResult } from "@lookiero/messaging-react";
2
- import { IsCheckoutAccessibleByCustomerIdProjection } from "../../../../projection/checkout/viewIsCheckoutAccessibleByCustomerId";
3
-
4
- interface UseViewIsCheckoutAccessibleByCustomerIdFunctionArgs {
5
- readonly customerId: string | undefined;
6
- }
7
- interface UseViewIsCheckoutAccessibleByCustomerIdFunction {
8
- (
9
- args: UseViewIsCheckoutAccessibleByCustomerIdFunctionArgs,
10
- ): UseQueryFunctionResult<IsCheckoutAccessibleByCustomerIdProjection>;
11
- }
12
- declare const useViewIsCheckoutAccessibleByCustomerId: UseViewIsCheckoutAccessibleByCustomerIdFunction;
13
- export { useViewIsCheckoutAccessibleByCustomerId };
@@ -1,19 +0,0 @@
1
- import { useQuery } from "@lookiero/messaging-react";
2
- import { isCheckoutFeedbackGiven } from "../../../../domain/checkoutFeedback/model/checkoutFeedbackGiven";
3
- import { viewIsCheckoutAccessibleByCustomerId } from "../../../../projection/checkout/viewIsCheckoutAccessibleByCustomerId";
4
- import { MESSAGING_CONTEXT_ID } from "../../../delivery/baseBootstrap";
5
-
6
- const useViewIsCheckoutAccessibleByCustomerId = ({ customerId }) =>
7
- useQuery({
8
- query: viewIsCheckoutAccessibleByCustomerId({ customerId }),
9
- contextId: MESSAGING_CONTEXT_ID,
10
- invalidation: isCheckoutFeedbackGiven,
11
- options: {
12
- refetchOnMount: "always",
13
- staleTime: Infinity,
14
- retry: false,
15
- refetchOnWindowFocus: false,
16
- cacheTime: 0,
17
- },
18
- });
19
- export { useViewIsCheckoutAccessibleByCustomerId };
@@ -1,56 +0,0 @@
1
- import { MatchersV3, PactV3 } from "@pact-foundation/pact";
2
- import { fetchHttpPost } from "@lookiero/sty-psp-http";
3
- import {
4
- AUTH_TOKEN,
5
- DEFAULT_PACT_OPTIONS,
6
- DEFAULT_REQUEST_HEADERS,
7
- DEFAULT_RESPONSE_HEADERS,
8
- fromMockServerUrlToApiUrl,
9
- } from "../../../../pact.config";
10
- import { checkoutBooking as checkoutBookingMock } from "./checkoutBooking.mock";
11
- import { httpCheckoutBookingByIdView } from "./httpCheckoutBookingByIdView";
12
-
13
- const provider = new PactV3({
14
- ...DEFAULT_PACT_OPTIONS,
15
- consumer: "STY-BOX_CHECKOUT-FRONT",
16
- provider: "STY-BOX_CHECKOUT-BACK_ViewCheckoutBookingById",
17
- });
18
- const checkoutBookingProjection = checkoutBookingMock;
19
- const checkoutBookingId = checkoutBookingProjection.id;
20
- const checkoutBookingResponse = {
21
- result: checkoutBookingProjection,
22
- };
23
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
24
- // @ts-ignore
25
- const EXPECTED_BODY = MatchersV3.like(checkoutBookingResponse);
26
- describe("STY-BOX_CHECKOUT-BACK_ViewCheckoutBookingById API", () => {
27
- it("returns a valid checkout booking for the given id", () => {
28
- provider
29
- .given("a valid checkout booking for the given id")
30
- .uponReceiving("checkout booking projection")
31
- .withRequest({
32
- method: "POST",
33
- path: "/api/view-checkout-booking-by-id",
34
- headers: DEFAULT_REQUEST_HEADERS,
35
- body: { checkoutBookingId },
36
- })
37
- .willRespondWith({
38
- status: 200,
39
- headers: DEFAULT_RESPONSE_HEADERS,
40
- body: EXPECTED_BODY,
41
- });
42
- return provider.executeTest(async (mockserver) => {
43
- const httpPost = fetchHttpPost({
44
- apiUrl: () => fromMockServerUrlToApiUrl(mockserver),
45
- getAuthToken: () => Promise.resolve(AUTH_TOKEN),
46
- device: "web",
47
- version: "1.0.0",
48
- });
49
- const response = await httpCheckoutBookingByIdView({ httpPost })({
50
- checkoutBookingId,
51
- signal: undefined,
52
- });
53
- expect(response).toStrictEqual(checkoutBookingResponse.result);
54
- });
55
- });
56
- });
@@ -1,57 +0,0 @@
1
- import { MatchersV3, PactV3 } from "@pact-foundation/pact";
2
- import { fetchHttpPost } from "@lookiero/sty-psp-http";
3
- import {
4
- AUTH_TOKEN,
5
- DEFAULT_PACT_OPTIONS,
6
- DEFAULT_REQUEST_HEADERS,
7
- DEFAULT_RESPONSE_HEADERS,
8
- fromMockServerUrlToApiUrl,
9
- } from "../../../../pact.config";
10
- import { CheckoutItemStatus } from "../../../domain/checkoutItem/model/checkoutItem";
11
- import { checkoutItem } from "./checkoutItem.mock";
12
- import { httpCheckoutItemByIdView } from "./httpCheckoutItemByIdView";
13
-
14
- const provider = new PactV3({
15
- ...DEFAULT_PACT_OPTIONS,
16
- consumer: "STY-BOX_CHECKOUT-FRONT",
17
- provider: "STY-BOX_CHECKOUT-BACK_ViewCheckoutItemById",
18
- });
19
- const checkoutItemProjection = checkoutItem({ status: CheckoutItemStatus.INITIAL });
20
- const checkoutItemId = checkoutItemProjection.id;
21
- const checkoutItemResponse = {
22
- result: checkoutItemProjection,
23
- };
24
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
25
- // @ts-ignore
26
- const EXPECTED_BODY = MatchersV3.like(checkoutItemResponse);
27
- describe("STY-BOX_CHECKOUT-BACK_ViewCheckoutItemById API", () => {
28
- it("returns a valid checkout item for the given id", () => {
29
- provider
30
- .given("a valid checkout item for the given id")
31
- .uponReceiving("checkout item projection")
32
- .withRequest({
33
- method: "POST",
34
- path: "/api/view-checkout-item-by-id",
35
- headers: DEFAULT_REQUEST_HEADERS,
36
- body: { checkoutItemId },
37
- })
38
- .willRespondWith({
39
- status: 200,
40
- headers: DEFAULT_RESPONSE_HEADERS,
41
- body: EXPECTED_BODY,
42
- });
43
- return provider.executeTest(async (mockserver) => {
44
- const httpPost = fetchHttpPost({
45
- apiUrl: () => fromMockServerUrlToApiUrl(mockserver),
46
- getAuthToken: () => Promise.resolve(AUTH_TOKEN),
47
- device: "web",
48
- version: "1.0.0",
49
- });
50
- const response = await httpCheckoutItemByIdView({ httpPost })({
51
- checkoutItemId,
52
- signal: undefined,
53
- });
54
- expect(response).toStrictEqual(checkoutItemResponse.result);
55
- });
56
- });
57
- });
@@ -1,55 +0,0 @@
1
- import { MatchersV3, PactV3 } from "@pact-foundation/pact";
2
- import { fetchHttpPost } from "@lookiero/sty-psp-http";
3
- import {
4
- AUTH_TOKEN,
5
- DEFAULT_PACT_OPTIONS,
6
- DEFAULT_REQUEST_HEADERS,
7
- DEFAULT_RESPONSE_HEADERS,
8
- fromMockServerUrlToApiUrl,
9
- } from "../../../../pact.config";
10
- import { checkoutQuestions } from "./checkoutQuestions.mock";
11
- import { httpCheckoutQuestionsByCheckoutIdView } from "./httpCheckoutQuestionsByCheckoutIdView";
12
-
13
- const provider = new PactV3({
14
- ...DEFAULT_PACT_OPTIONS,
15
- consumer: "STY-BOX_CHECKOUT-FRONT",
16
- provider: "STY-BOX_CHECKOUT-BACK_ListCheckoutQuestionsByCheckoutId",
17
- });
18
- const checkoutId = "52440ae5-7a4c-498b-8b35-08ecfde15776";
19
- const checkoutQuestionsResponse = {
20
- result: checkoutQuestions,
21
- };
22
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
23
- // @ts-ignore
24
- const EXPECTED_BODY = MatchersV3.like(checkoutQuestionsResponse);
25
- describe("STY-BOX_CHECKOUT-BACK_ListCheckoutQuestionsByCheckoutId API", () => {
26
- it("returns a valid checkout questions for the given checkout id", () => {
27
- provider
28
- .given("a valid checkout questions for the given checkout id")
29
- .uponReceiving("checkout questions projection")
30
- .withRequest({
31
- method: "POST",
32
- path: "/api/list-checkout-questions-by-checkout-id",
33
- headers: DEFAULT_REQUEST_HEADERS,
34
- body: { checkoutId },
35
- })
36
- .willRespondWith({
37
- status: 200,
38
- headers: DEFAULT_RESPONSE_HEADERS,
39
- body: EXPECTED_BODY,
40
- });
41
- return provider.executeTest(async (mockserver) => {
42
- const httpPost = fetchHttpPost({
43
- apiUrl: () => fromMockServerUrlToApiUrl(mockserver),
44
- getAuthToken: () => Promise.resolve(AUTH_TOKEN),
45
- device: "web",
46
- version: "1.0.0",
47
- });
48
- const response = await httpCheckoutQuestionsByCheckoutIdView({ httpPost })({
49
- checkoutId,
50
- signal: undefined,
51
- });
52
- expect(response).toStrictEqual(checkoutQuestionsResponse.result);
53
- });
54
- });
55
- });
@@ -1,120 +0,0 @@
1
- import { MatchersV3, PactV3 } from "@pact-foundation/pact";
2
- import { fetchHttpPost } from "@lookiero/sty-psp-http";
3
- import {
4
- AUTH_TOKEN,
5
- DEFAULT_PACT_OPTIONS,
6
- DEFAULT_REQUEST_HEADERS,
7
- DEFAULT_RESPONSE_HEADERS,
8
- fromMockServerUrlToApiUrl,
9
- } from "../../../../pact.config";
10
- import { httpPaymentFlowPayloadByCheckoutIdView } from "./httpPaymentFlowPayloadByCheckoutIdView";
11
- import {
12
- paymentFlowPayloadForKeptItems,
13
- paymentFlowPayloadForReturnedItems,
14
- paymentFlowPayloadForReplacedItems,
15
- } from "./paymentFlowPayload.mock";
16
-
17
- const provider = new PactV3({
18
- ...DEFAULT_PACT_OPTIONS,
19
- consumer: "STY-BOX_CHECKOUT-FRONT",
20
- provider: "STY-BOX_CHECKOUT-BACK_ViewPaymentFlowPayloadByCheckoutId",
21
- });
22
- const checkoutId = "e2490de5-5bd3-43d5-b7c4-526e33f71304";
23
- const paymentFlowPayloadForKeptItemsResponse = {
24
- result: paymentFlowPayloadForKeptItems,
25
- };
26
- const paymentFlowPayloadForReturnedItemsResponse = {
27
- result: paymentFlowPayloadForReturnedItems,
28
- };
29
- const paymentFlowPayloadForReplacedItemsResponse = {
30
- result: paymentFlowPayloadForReplacedItems,
31
- };
32
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
33
- // @ts-ignore
34
- const EXPECTED_BODY_FOR_KEPT_ITEMS = MatchersV3.like(paymentFlowPayloadForKeptItemsResponse);
35
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
36
- // @ts-ignore
37
- const EXPECTED_BODY_FOR_RETURNED_ITEMS = MatchersV3.like(paymentFlowPayloadForReturnedItemsResponse);
38
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
39
- // @ts-ignore
40
- const EXPECTED_BODY_FOR_REPLACED_ITEMS = MatchersV3.like(paymentFlowPayloadForReplacedItemsResponse);
41
- describe("STY-BOX_CHECKOUT-BACK_ViewPaymentFlowPayloadByCheckoutId API", () => {
42
- it("returns a valid payment-flow payload for the given checkout id [KEPT items] ", () => {
43
- provider
44
- .given("a valid payment-flow payload for the given checkout id [KEPT items] ")
45
- .uponReceiving("payment-flow payload projection")
46
- .withRequest({
47
- method: "POST",
48
- path: "/api/view-payment-flow-payload-by-checkout-id",
49
- headers: DEFAULT_REQUEST_HEADERS,
50
- body: { checkoutId },
51
- })
52
- .willRespondWith({
53
- status: 200,
54
- headers: DEFAULT_RESPONSE_HEADERS,
55
- body: EXPECTED_BODY_FOR_KEPT_ITEMS,
56
- });
57
- return provider.executeTest(async (mockserver) => {
58
- const httpPost = fetchHttpPost({
59
- apiUrl: () => fromMockServerUrlToApiUrl(mockserver),
60
- getAuthToken: () => Promise.resolve(AUTH_TOKEN),
61
- device: "web",
62
- version: "1.0.0",
63
- });
64
- const response = await httpPaymentFlowPayloadByCheckoutIdView({ httpPost })({ checkoutId, signal: undefined });
65
- expect(response).toStrictEqual(paymentFlowPayloadForKeptItemsResponse.result);
66
- });
67
- });
68
- it("returns a valid payment-flow payload for the given checkout id [RETURNED items] ", () => {
69
- provider
70
- .given("a valid payment-flow payload for the given checkout id [RETURNED items] ")
71
- .uponReceiving("payment-flow payload projection")
72
- .withRequest({
73
- method: "POST",
74
- path: "/api/view-payment-flow-payload-by-checkout-id",
75
- headers: DEFAULT_REQUEST_HEADERS,
76
- body: { checkoutId },
77
- })
78
- .willRespondWith({
79
- status: 200,
80
- headers: DEFAULT_RESPONSE_HEADERS,
81
- body: EXPECTED_BODY_FOR_RETURNED_ITEMS,
82
- });
83
- return provider.executeTest(async (mockserver) => {
84
- const httpPost = fetchHttpPost({
85
- apiUrl: () => fromMockServerUrlToApiUrl(mockserver),
86
- getAuthToken: () => Promise.resolve(AUTH_TOKEN),
87
- device: "web",
88
- version: "1.0.0",
89
- });
90
- const response = await httpPaymentFlowPayloadByCheckoutIdView({ httpPost })({ checkoutId, signal: undefined });
91
- expect(response).toStrictEqual(paymentFlowPayloadForReturnedItemsResponse.result);
92
- });
93
- });
94
- it("returns a valid payment-flow payload for the given checkout id [REPLACED items] ", () => {
95
- provider
96
- .given("a valid payment-flow payload for the given checkout id [REPLACED items] ")
97
- .uponReceiving("payment-flow payload projection")
98
- .withRequest({
99
- method: "POST",
100
- path: "/api/view-payment-flow-payload-by-checkout-id",
101
- headers: DEFAULT_REQUEST_HEADERS,
102
- body: { checkoutId },
103
- })
104
- .willRespondWith({
105
- status: 200,
106
- headers: DEFAULT_RESPONSE_HEADERS,
107
- body: EXPECTED_BODY_FOR_REPLACED_ITEMS,
108
- });
109
- return provider.executeTest(async (mockserver) => {
110
- const httpPost = fetchHttpPost({
111
- apiUrl: () => fromMockServerUrlToApiUrl(mockserver),
112
- getAuthToken: () => Promise.resolve(AUTH_TOKEN),
113
- device: "web",
114
- version: "1.0.0",
115
- });
116
- const response = await httpPaymentFlowPayloadByCheckoutIdView({ httpPost })({ checkoutId, signal: undefined });
117
- expect(response).toStrictEqual(paymentFlowPayloadForReplacedItemsResponse.result);
118
- });
119
- });
120
- });
@@ -1,55 +0,0 @@
1
- import { MatchersV3, PactV3 } from "@pact-foundation/pact";
2
- import { fetchHttpPost } from "@lookiero/sty-psp-http";
3
- import {
4
- AUTH_TOKEN,
5
- DEFAULT_PACT_OPTIONS,
6
- DEFAULT_REQUEST_HEADERS,
7
- DEFAULT_RESPONSE_HEADERS,
8
- fromMockServerUrlToApiUrl,
9
- } from "../../../../pact.config";
10
- import { httpPricingByCheckoutIdView } from "./httpPricingByCheckoutIdView";
11
- import { pricing } from "./pricing.mock";
12
-
13
- const provider = new PactV3({
14
- ...DEFAULT_PACT_OPTIONS,
15
- consumer: "STY-BOX_CHECKOUT-FRONT",
16
- provider: "STY-BOX_CHECKOUT-BACK_ViewPricingByCheckoutId",
17
- });
18
- const checkoutId = "6f720954-8039-4bed-9596-34fc5a02131b";
19
- const pricingResponse = {
20
- result: pricing(),
21
- };
22
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
23
- // @ts-ignore
24
- const EXPECTED_BODY = MatchersV3.like(pricingResponse);
25
- describe("STY-BOX_CHECKOUT-BACK_ViewPricingByCheckoutId API", () => {
26
- it("returns a valid pricing for the given checkout", () => {
27
- provider
28
- .given("a valid pricing for the given checkout")
29
- .uponReceiving("pricing projection")
30
- .withRequest({
31
- method: "POST",
32
- path: "/api/view-pricing-by-checkout-id",
33
- headers: DEFAULT_REQUEST_HEADERS,
34
- body: { checkoutId },
35
- })
36
- .willRespondWith({
37
- status: 200,
38
- headers: DEFAULT_RESPONSE_HEADERS,
39
- body: EXPECTED_BODY,
40
- });
41
- return provider.executeTest(async (mockserver) => {
42
- const httpPost = fetchHttpPost({
43
- apiUrl: () => fromMockServerUrlToApiUrl(mockserver),
44
- getAuthToken: () => Promise.resolve(AUTH_TOKEN),
45
- device: "web",
46
- version: "1.0.0",
47
- });
48
- const response = await httpPricingByCheckoutIdView({ httpPost })({
49
- checkoutId,
50
- signal: undefined,
51
- });
52
- expect(response).toStrictEqual(pricingResponse.result);
53
- });
54
- });
55
- });
@@ -1,55 +0,0 @@
1
- import { MatchersV3, PactV3 } from "@pact-foundation/pact";
2
- import { fetchHttpPost } from "@lookiero/sty-psp-http";
3
- import {
4
- AUTH_TOKEN,
5
- DEFAULT_PACT_OPTIONS,
6
- DEFAULT_REQUEST_HEADERS,
7
- DEFAULT_RESPONSE_HEADERS,
8
- fromMockServerUrlToApiUrl,
9
- } from "../../../../pact.config";
10
- import { httpReturnQuestionsByCheckoutItemIdView } from "./httpReturnQuestionsByCheckoutItemIdView";
11
- import { returnQuestions } from "./returnQuestions.mock";
12
-
13
- const provider = new PactV3({
14
- ...DEFAULT_PACT_OPTIONS,
15
- consumer: "STY-BOX_CHECKOUT-FRONT",
16
- provider: "STY-BOX_CHECKOUT-BACK_ListReturnQuestionsByCheckoutItemId",
17
- });
18
- const checkoutItemId = "52440ae5-7a4c-498b-8b35-08ecfde15776";
19
- const returnQuestionsResponse = {
20
- result: returnQuestions,
21
- };
22
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
23
- // @ts-ignore
24
- const EXPECTED_BODY = MatchersV3.like(returnQuestionsResponse);
25
- describe("STY-BOX_CHECKOUT-BACK_ListReturnQuestionsByCheckoutItemId API", () => {
26
- it("returns a valid return questions for the given checkout item id", () => {
27
- provider
28
- .given("a valid return questions for the given checkout item id")
29
- .uponReceiving("return questions projection")
30
- .withRequest({
31
- method: "POST",
32
- path: "/api/list-return-questions-by-checkout-item-id",
33
- headers: DEFAULT_REQUEST_HEADERS,
34
- body: { checkoutItemId },
35
- })
36
- .willRespondWith({
37
- status: 200,
38
- headers: DEFAULT_RESPONSE_HEADERS,
39
- body: EXPECTED_BODY,
40
- });
41
- return provider.executeTest(async (mockserver) => {
42
- const httpPost = fetchHttpPost({
43
- apiUrl: () => fromMockServerUrlToApiUrl(mockserver),
44
- getAuthToken: () => Promise.resolve(AUTH_TOKEN),
45
- device: "web",
46
- version: "1.0.0",
47
- });
48
- const response = await httpReturnQuestionsByCheckoutItemIdView({ httpPost })({
49
- checkoutItemId,
50
- signal: undefined,
51
- });
52
- expect(response).toStrictEqual(returnQuestionsResponse.result);
53
- });
54
- });
55
- });
@@ -1,22 +0,0 @@
1
- import { FC, ReactNode, RefObject } from "react";
2
- import { LayoutChangeEvent, ScrollView, StyleProp, ViewStyle } from "react-native";
3
-
4
- interface LayoutStyle {
5
- readonly safeAreaView: StyleProp<ViewStyle>;
6
- readonly scrollView: StyleProp<ViewStyle>;
7
- readonly header: StyleProp<ViewStyle>;
8
- }
9
- interface LayoutProps {
10
- readonly children: ReactNode;
11
- readonly header?: JSX.Element | null;
12
- readonly footer?: JSX.Element | null;
13
- readonly panel?: JSX.Element | null;
14
- readonly stickyHeader?: boolean;
15
- readonly stickyHeaderHiddenOnScroll?: boolean;
16
- readonly scrollRef?: RefObject<ScrollView>;
17
- readonly scrollEnabled?: boolean;
18
- readonly style?: Partial<LayoutStyle>;
19
- readonly onLayout?: (event: LayoutChangeEvent) => void;
20
- }
21
- type Layout = FC<LayoutProps>;
22
- export type { Layout };
@@ -1,7 +0,0 @@
1
- import { FC, ReactNode } from "react";
2
-
3
- interface FooterProps {
4
- readonly children: ReactNode;
5
- }
6
- declare const Footer: FC<FooterProps>;
7
- export { Footer };
@@ -1,5 +0,0 @@
1
- import React from "react";
2
- import { Platform } from "react-native";
3
-
4
- const Footer = ({ children }) => (Platform.OS !== "web" ? React.createElement(React.Fragment, null, children) : null);
5
- export { Footer };
@@ -1,7 +0,0 @@
1
- import { FC, ReactNode } from "react";
2
-
3
- interface HeaderProps {
4
- readonly children: ReactNode;
5
- }
6
- declare const Header: FC<HeaderProps>;
7
- export { Header };