@lookiero/checkout 6.0.0-beta.1 → 6.0.0-beta.3

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.
package/dist/index.d.ts CHANGED
@@ -9,6 +9,9 @@ import { RootProps } from "./src/infrastructure/ui/Root";
9
9
  import { translationEndpoint, translationExternalEndpoint } from "./src/infrastructure/ui/i18n/translationEndpoint";
10
10
  import { CheckoutProjection } from "./src/projection/checkout/checkout";
11
11
  import { IsCheckoutAccessibleByCustomerIdProjection } from "./src/projection/checkout/viewIsCheckoutAccessibleByCustomerId";
12
+ import { Customer } from "./src/projection/shared/customer";
13
+ import { Order } from "./src/projection/shared/order";
14
+ import { Subscription } from "./src/projection/shared/subscription";
12
15
  interface IsCheckoutAccessibleFunctionArgs {
13
16
  readonly customerId: string | undefined;
14
17
  }
@@ -38,4 +41,4 @@ interface BootstrapFunction {
38
41
  }
39
42
  declare const bootstrap: BootstrapFunction;
40
43
  export { bootstrap, translationEndpoint, translationExternalEndpoint, Country, Segment, CheckoutStatus };
41
- export type { SentryEnvironment, KameleoonEnvironment };
44
+ export type { SentryEnvironment, KameleoonEnvironment, Customer, Subscription, Order };
@@ -34,7 +34,7 @@ const HostSelectReturnQuestionItem = ({ returnQuestion, children, portalHostName
34
34
  React.createElement(TouchableHighlight, { accessibilityLabel: testID, style: style.container, testID: testID, underlayColor: containerUnderlayColor, accessible: true, onPress: handleOnPress },
35
35
  React.createElement(View, { pointerEvents: "none" },
36
36
  React.createElement(InputField, { editable: false, icon: "arrow_down", label: placeholderText, value: inputValue }))),
37
- React.createElement(Modal, { portalHostName: portalHostName, visible: modalVisible, header: deepestReturnQuestionWithFeedback && (React.createElement(ButtonIcon, { name: "arrow_left", style: style.backButton, testID: "modal-back-button", onPress: handleOnBackButtonPress })), scroll: true, showCloseButton: true, onClose: handleOnModalClose },
37
+ React.createElement(Modal, { portalHostName: portalHostName, style: deepestReturnQuestionWithFeedback && { header: style.header }, visible: modalVisible, header: deepestReturnQuestionWithFeedback && (React.createElement(ButtonIcon, { name: "arrow_left", style: style.backButton, testID: "modal-back-button", onPress: handleOnBackButtonPress })), scroll: true, showCloseButton: true, onClose: handleOnModalClose },
38
38
  React.createElement(View, { style: style.modalContent }, children))));
39
39
  };
40
40
  export { HostSelectReturnQuestionItem };
@@ -6,6 +6,9 @@ declare const style: {
6
6
  container: {
7
7
  marginBottom: number;
8
8
  };
9
+ header: {
10
+ justifyContent: "space-between";
11
+ };
9
12
  modalContent: {
10
13
  paddingBottom: number;
11
14
  paddingHorizontal: number;
@@ -9,6 +9,9 @@ const style = StyleSheet.create({
9
9
  container: {
10
10
  marginBottom: space4,
11
11
  },
12
+ header: {
13
+ justifyContent: "space-between",
14
+ },
12
15
  modalContent: {
13
16
  paddingBottom: space6,
14
17
  paddingHorizontal: space6,
@@ -1 +1 @@
1
- export declare const VERSION = "6.0.0-beta.1";
1
+ export declare const VERSION = "6.0.0-beta.3";
@@ -1 +1 @@
1
- export const VERSION = "6.0.0-beta.1";
1
+ export const VERSION = "6.0.0-beta.3";
package/index.ts CHANGED
@@ -16,6 +16,9 @@ import {
16
16
  IsCheckoutAccessibleByCustomerIdProjection,
17
17
  viewIsCheckoutAccessibleByCustomerId,
18
18
  } from "./src/projection/checkout/viewIsCheckoutAccessibleByCustomerId";
19
+ import { Customer } from "./src/projection/shared/customer";
20
+ import { Order } from "./src/projection/shared/order";
21
+ import { Subscription } from "./src/projection/shared/subscription";
19
22
 
20
23
  interface IsCheckoutAccessibleFunctionArgs {
21
24
  readonly customerId: string | undefined;
@@ -72,4 +75,4 @@ const bootstrap: BootstrapFunction = ({ apiUrl, getAuthToken, translations, sent
72
75
  };
73
76
 
74
77
  export { bootstrap, translationEndpoint, translationExternalEndpoint, Country, Segment, CheckoutStatus };
75
- export type { SentryEnvironment, KameleoonEnvironment };
78
+ export type { SentryEnvironment, KameleoonEnvironment, Customer, Subscription, Order };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lookiero/checkout",
3
- "version": "6.0.0-beta.1",
3
+ "version": "6.0.0-beta.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "sideEffects": "false",
@@ -11,6 +11,9 @@ const style = StyleSheet.create({
11
11
  container: {
12
12
  marginBottom: space4,
13
13
  },
14
+ header: {
15
+ justifyContent: "space-between",
16
+ },
14
17
  modalContent: {
15
18
  paddingBottom: space6,
16
19
  paddingHorizontal: space6,
@@ -74,6 +74,7 @@ const HostSelectReturnQuestionItem: ReturnQuestionItem = ({
74
74
  </TouchableHighlight>
75
75
  <Modal
76
76
  portalHostName={portalHostName}
77
+ style={deepestReturnQuestionWithFeedback && { header: style.header }}
77
78
  visible={modalVisible}
78
79
  header={
79
80
  deepestReturnQuestionWithFeedback && (