@lookiero/checkout 0.8.6-beta.2 → 0.8.6

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 (65) hide show
  1. package/dist/infrastructure/projection/bookedProductsVariants/react/useViewBookedProductsVariantsForCheckoutItem.js +1 -1
  2. package/dist/infrastructure/projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId.js +1 -1
  3. package/dist/infrastructure/projection/checkout/react/useViewFiveItemsDiscountByCustomerId.js +1 -1
  4. package/dist/infrastructure/projection/checkout/react/useViewIsCheckoutAccessibleByCustomerId.js +1 -6
  5. package/dist/infrastructure/projection/checkoutQuestion/react/useListCheckoutQuestionsByCheckoutId.js +1 -1
  6. package/dist/infrastructure/projection/payment/react/useViewPaymentFlowPayloadByCheckoutId.js +1 -1
  7. package/dist/infrastructure/projection/pricing/react/useViewPricingByCheckoutId.js +1 -6
  8. package/dist/infrastructure/projection/returnQuestion/react/useListReturnQuestionsByCheckoutItemId.js +1 -1
  9. package/dist/infrastructure/projection/uiSetting/react/useViewUiSettingByKey.js +1 -1
  10. package/dist/shared/notifications/projection/notification/react/useListNotifications.js +1 -1
  11. package/package.json +1 -1
  12. package/dist/domain/checkout/command/markCheckoutAsPaid.d.ts +0 -13
  13. package/dist/domain/checkout/command/markCheckoutAsPaid.js +0 -4
  14. package/dist/domain/checkout/model/checkoutPaid.d.ts +0 -13
  15. package/dist/domain/checkout/model/checkoutPaid.js +0 -4
  16. package/dist/infrastructure/domain/checkout/model/httpCheckoutsMarkAsPaid.d.ts +0 -5
  17. package/dist/infrastructure/domain/checkout/model/httpCheckoutsMarkAsPaid.js +0 -13
  18. package/dist/infrastructure/domain/checkout/react/useMarkCheckoutAsPaid.d.ts +0 -13
  19. package/dist/infrastructure/domain/checkout/react/useMarkCheckoutAsPaid.js +0 -16
  20. package/dist/infrastructure/domain/checkoutBooking/react/useBookCheckouBookingForCheckoutItem.d.ts +0 -13
  21. package/dist/infrastructure/domain/checkoutBooking/react/useBookCheckouBookingForCheckoutItem.js +0 -14
  22. package/dist/infrastructure/domain/uiSetting/react/useIncrementIntroShownCount.d.ts +0 -10
  23. package/dist/infrastructure/domain/uiSetting/react/useIncrementIntroShownCount.js +0 -11
  24. package/dist/infrastructure/projection/bookedSizeChangeProductsVariants/httpBookedSizeChangeProductsVariantsForCheckoutItemView.d.ts +0 -12
  25. package/dist/infrastructure/projection/bookedSizeChangeProductsVariants/httpBookedSizeChangeProductsVariantsForCheckoutItemView.js +0 -9
  26. package/dist/infrastructure/projection/bookedSizeChangeProductsVariants/react/useViewBookedSizeChangeProductsVariantsForCheckoutItem.d.ts +0 -10
  27. package/dist/infrastructure/projection/bookedSizeChangeProductsVariants/react/useViewBookedSizeChangeProductsVariantsForCheckoutItem.js +0 -12
  28. package/dist/infrastructure/projection/checkoutFeedback/httpCheckoutFeedbackByCheckoutIdView.d.ts +0 -12
  29. package/dist/infrastructure/projection/checkoutFeedback/httpCheckoutFeedbackByCheckoutIdView.js +0 -9
  30. package/dist/infrastructure/projection/uiSetting/react/useShouldIntroBeShown.d.ts +0 -6
  31. package/dist/infrastructure/projection/uiSetting/react/useShouldIntroBeShown.js +0 -7
  32. package/dist/infrastructure/projection/uiSetting/react/useViewIntroShownCount.d.ts +0 -6
  33. package/dist/infrastructure/projection/uiSetting/react/useViewIntroShownCount.js +0 -9
  34. package/dist/infrastructure/ui/views/App.style.d.ts +0 -4
  35. package/dist/infrastructure/ui/views/App.style.js +0 -16
  36. package/dist/infrastructure/ui/views/header/Header.d.ts +0 -15
  37. package/dist/infrastructure/ui/views/header/Header.js +0 -90
  38. package/dist/infrastructure/ui/views/header/Header.style.d.ts +0 -35
  39. package/dist/infrastructure/ui/views/header/Header.style.js +0 -38
  40. package/dist/infrastructure/ui/views/header/components/Logo.d.ts +0 -7
  41. package/dist/infrastructure/ui/views/header/components/Logo.js +0 -11
  42. package/dist/infrastructure/ui/views/header/components/Logo.style.d.ts +0 -7
  43. package/dist/infrastructure/ui/views/header/components/Logo.style.js +0 -8
  44. package/dist/infrastructure/ui/views/intro/Intro.d.ts +0 -6
  45. package/dist/infrastructure/ui/views/intro/Intro.js +0 -52
  46. package/dist/infrastructure/ui/views/intro/Intro.style.d.ts +0 -55
  47. package/dist/infrastructure/ui/views/intro/Intro.style.js +0 -58
  48. package/dist/projection/bookedSizeChangeProductsVariants/bookedSizeChangeProductsVariants.d.ts +0 -10
  49. package/dist/projection/bookedSizeChangeProductsVariants/bookedSizeChangeProductsVariants.js +0 -1
  50. package/dist/projection/bookedSizeChangeProductsVariants/viewBookedSizeChangeProductVariantsForCheckoutItem.d.ts +0 -25
  51. package/dist/projection/bookedSizeChangeProductsVariants/viewBookedSizeChangeProductVariantsForCheckoutItem.js +0 -8
  52. package/dist/projection/checkoutFeedback/viewCheckoutFeedbackByCheckoutId.d.ts +0 -25
  53. package/dist/projection/checkoutFeedback/viewCheckoutFeedbackByCheckoutId.js +0 -8
  54. package/dist/shared/logging/location.d.ts +0 -3
  55. package/dist/shared/logging/location.js +0 -5
  56. package/dist/shared/logging/matchRoutes.d.ts +0 -3
  57. package/dist/shared/logging/matchRoutes.js +0 -7
  58. package/dist/shared/logging/reactRouterV6Instrumentation/reactRouterV6Instrumentation.native.d.ts +0 -29
  59. package/dist/shared/logging/reactRouterV6Instrumentation/reactRouterV6Instrumentation.native.js +0 -134
  60. package/dist/shared/logging/reactRouterV6Instrumentation/transactionContext.d.ts +0 -22
  61. package/dist/shared/logging/reactRouterV6Instrumentation/transactionContext.js +0 -15
  62. package/dist/shared/logging/reactRouterV6Instrumentation.native.d.ts +0 -27
  63. package/dist/shared/logging/reactRouterV6Instrumentation.native.js +0 -115
  64. package/dist/shared/notifications/domain/notification/command/removeNotification.tes.d.ts +0 -1
  65. package/dist/shared/notifications/domain/notification/command/removeNotification.tes.js +0 -9
@@ -1,115 +0,0 @@
1
- /* eslint-disable @typescript-eslint/ban-ts-comment */
2
- import { RoutingInstrumentation } from "@sentry/react-native";
3
- import { logger } from "@sentry/utils";
4
- import React from "react";
5
- class ReactRouterV6Instrumentation extends RoutingInstrumentation {
6
- static instrumentationName = "react-router-v6";
7
- useEffect;
8
- useLocation;
9
- useNavigationType;
10
- matchRoutes;
11
- // @ts-ignore
12
- prevRoute;
13
- recentRouteKeys = [];
14
- // @ts-ignore
15
- latestTransaction;
16
- // @ts-ignore
17
- shouldUpdateLatestTransaction = false;
18
- constructor(useEffect, useLocation, useNavigationType, matchRoutes) {
19
- super();
20
- this.useEffect = useEffect;
21
- this.useLocation = useLocation;
22
- this.useNavigationType = useNavigationType;
23
- this.matchRoutes = matchRoutes;
24
- }
25
- /**
26
- * Extends by calling _handleInitialState at the end.
27
- */
28
- registerRoutingInstrumentation(listener, beforeNavigate, onConfirmRoute) {
29
- super.registerRoutingInstrumentation(listener, beforeNavigate, onConfirmRoute);
30
- // Need to handle the initial state as the router patch will only attach transactions on subsequent route changes.
31
- this.handleInitialState();
32
- }
33
- /**
34
- * Starts an idle transaction for the initial state which won't get called by the router listener.
35
- */
36
- handleInitialState() {
37
- this.latestTransaction = this.onRouteWillChange(INITIAL_TRANSACTION_CONTEXT);
38
- // We set this to true so when registerAppContainer is called, the transaction gets updated with the actual route data
39
- this.shouldUpdateLatestTransaction = true;
40
- }
41
- // @ts-ignore
42
- getTransactionContext(route, previousRoute) {
43
- return {
44
- name: route.name,
45
- op: "navigation",
46
- tags: {
47
- ["routing.instrumentation"]: ReactRouterV6Instrumentation.instrumentationName,
48
- ["routing.route.name"]: route.name,
49
- },
50
- data: {
51
- route: {
52
- name: route.name,
53
- key: route.key,
54
- params: route.params ?? {},
55
- hasBeenSeen: this.recentRouteKeys.includes(route.key),
56
- },
57
- previousRoute: previousRoute
58
- ? {
59
- name: previousRoute.name,
60
- key: previousRoute.key,
61
- params: previousRoute.params ?? {},
62
- }
63
- : null,
64
- },
65
- };
66
- }
67
- wrapUseRoutes = (origUseRoutes) => {
68
- if (!this.useEffect ||
69
- !this.useLocation ||
70
- !this.useNavigationType ||
71
- !this.matchRoutes
72
- // !this._customStartTransaction
73
- ) {
74
- __DEBUG_BUILD__ &&
75
- logger.warn("reactRouterV6Instrumentation was unable to wrap `useRoutes` because of one or more missing parameters.");
76
- return origUseRoutes;
77
- }
78
- let isMountRenderPass = true;
79
- // eslint-disable-next-line react/display-name
80
- return (routes, locationArg) => {
81
- const SentryRoutes = () => {
82
- const Routes = origUseRoutes(routes, locationArg);
83
- const location = this.useLocation();
84
- const navigationType = this.useNavigationType();
85
- // A value with stable identity to either pick `locationArg` if available or `location` if not
86
- const stableLocationParam = typeof locationArg === "string" || (locationArg && locationArg.pathname)
87
- ? locationArg
88
- : location;
89
- this.useEffect(() => {
90
- const normalizedLocation = typeof stableLocationParam === "string" ? { pathname: stableLocationParam } : stableLocationParam;
91
- if (isMountRenderPass) {
92
- console.log("updatePageloadTransaction", normalizedLocation, routes);
93
- // updatePageloadTransaction(normalizedLocation, routes);
94
- isMountRenderPass = false;
95
- }
96
- else {
97
- console.log("normalizedLocation", normalizedLocation, routes, navigationType);
98
- // handleNavigation(normalizedLocation, routes, navigationType);
99
- }
100
- }, [navigationType, stableLocationParam]);
101
- return Routes;
102
- };
103
- return React.createElement(SentryRoutes, null);
104
- };
105
- };
106
- }
107
- const INITIAL_TRANSACTION_CONTEXT = {
108
- name: "App Launch",
109
- op: "navigation",
110
- tags: {
111
- ["routing.instrumentation"]: ReactRouterV6Instrumentation.instrumentationName,
112
- },
113
- data: {},
114
- };
115
- export { ReactRouterV6Instrumentation };
@@ -1,9 +0,0 @@
1
- import { removeNotification as sut, REMOVE_NOTIFICATION } from "./removeNotification";
2
- describe("removeNotification", () => {
3
- it("returns a RemoveNotification command", () => {
4
- const aggregateId = "67ac1d5c-6d24-4b19-bc01-8f61c266670c";
5
- const command = sut({ aggregateId });
6
- expect(command.aggregateId).toBe(aggregateId);
7
- expect(command.name).toBe(REMOVE_NOTIFICATION);
8
- });
9
- });