@lookiero/checkout 11.3.1 → 11.5.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.
- package/dist/index.d.ts +2 -1
- package/dist/src/ExpoRoot.js +5 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/index.ts +2 -1
- package/package.json +4 -4
- package/src/ExpoRoot.tsx +6 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentType } from "react";
|
|
2
2
|
import { EndpointFunction } from "@lookiero/i18n";
|
|
3
|
-
import { translationEndpoint, translationExternalEndpoint } from "@lookiero/sty-psp-i18n";
|
|
3
|
+
import { translationEndpoint, translationExternalEndpoint, Project } from "@lookiero/sty-psp-i18n";
|
|
4
4
|
import { Country, Locale } from "@lookiero/sty-psp-locale";
|
|
5
5
|
import { SentryEnvironment, SentryLoggerFunctionArgs } from "@lookiero/sty-psp-logging";
|
|
6
6
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
@@ -33,5 +33,6 @@ interface BootstrapFunction {
|
|
|
33
33
|
(args: BootstrapFunctionArgs): BootstrapFunctionReturn;
|
|
34
34
|
}
|
|
35
35
|
declare const bootstrap: BootstrapFunction;
|
|
36
|
+
export type { Project };
|
|
36
37
|
export { bootstrap, translationEndpoint, translationExternalEndpoint, Country, Segment, CheckoutStatus, Tradename };
|
|
37
38
|
export type { SentryEnvironment, KameleoonEnvironment, Customer, SubscriptionProjection as Subscription, OrderProjection as Order, Locale, };
|
package/dist/src/ExpoRoot.js
CHANGED
|
@@ -53,10 +53,14 @@ const externalTranslationsUrl = Platform.OS !== "web"
|
|
|
53
53
|
: __DEV__
|
|
54
54
|
? "/local-to-external-i18n"
|
|
55
55
|
: "/external-i18n";
|
|
56
|
+
const translationProjectsByTradename = {
|
|
57
|
+
[Tradename.LOOKIERO]: [["checkout"], ["inventory-catalog"]],
|
|
58
|
+
[Tradename.OUTFITTERY]: [["outfittery-checkout"], ["inventory-catalog"]],
|
|
59
|
+
};
|
|
56
60
|
const translations = [
|
|
57
61
|
(locale) => translationExternalEndpoint({
|
|
58
62
|
translationsUrl: externalTranslationsUrl,
|
|
59
|
-
projects: [
|
|
63
|
+
projects: translationProjectsByTradename[tradename],
|
|
60
64
|
})(locale),
|
|
61
65
|
];
|
|
62
66
|
const useRedirect = () => ({
|
package/dist/src/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "11.
|
|
1
|
+
export declare const VERSION = "11.5.0";
|
package/dist/src/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "11.
|
|
1
|
+
export const VERSION = "11.5.0";
|
package/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentType } from "react";
|
|
2
2
|
import { EndpointFunction } from "@lookiero/i18n";
|
|
3
3
|
import { i18n } from "@lookiero/i18n-react";
|
|
4
|
-
import { fetchTranslations, translationEndpoint, translationExternalEndpoint } from "@lookiero/sty-psp-i18n";
|
|
4
|
+
import { fetchTranslations, translationEndpoint, translationExternalEndpoint, Project } from "@lookiero/sty-psp-i18n";
|
|
5
5
|
import { Country, Locale } from "@lookiero/sty-psp-locale";
|
|
6
6
|
import { SentryEnvironment, SentryLoggerFunctionArgs } from "@lookiero/sty-psp-logging";
|
|
7
7
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
@@ -58,6 +58,7 @@ const bootstrap: BootstrapFunction = ({ apiUrl, getAuthToken, translations, sent
|
|
|
58
58
|
};
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
+
export type { Project };
|
|
61
62
|
export { bootstrap, translationEndpoint, translationExternalEndpoint, Country, Segment, CheckoutStatus, Tradename };
|
|
62
63
|
export type {
|
|
63
64
|
SentryEnvironment,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lookiero/checkout",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.5.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"sideEffects": "false",
|
|
@@ -24,16 +24,16 @@
|
|
|
24
24
|
"@lookiero/sty-psp-ab-testing": "^0.3",
|
|
25
25
|
"@lookiero/sty-psp-expo-config": "^0.2",
|
|
26
26
|
"@lookiero/sty-psp-http": "^2.0",
|
|
27
|
-
"@lookiero/sty-psp-i18n": "^0
|
|
27
|
+
"@lookiero/sty-psp-i18n": "^1.0",
|
|
28
28
|
"@lookiero/sty-psp-locale": "^0.4",
|
|
29
29
|
"@lookiero/sty-psp-logging": "^0.5",
|
|
30
|
-
"@lookiero/sty-psp-notifications": "^1.
|
|
30
|
+
"@lookiero/sty-psp-notifications": "^1.2",
|
|
31
31
|
"@lookiero/sty-psp-react-native": "^0.3",
|
|
32
32
|
"@lookiero/sty-psp-segment": "^0.1",
|
|
33
33
|
"@lookiero/sty-psp-storage": "^0.2",
|
|
34
34
|
"@lookiero/sty-psp-tracking": "^0.2",
|
|
35
35
|
"@lookiero/sty-sp-tradename": "^1.0",
|
|
36
|
-
"@lookiero/sty-psp-ui": "^1.
|
|
36
|
+
"@lookiero/sty-psp-ui": "^1.1",
|
|
37
37
|
"@lookiero/sty-psp-ui-settings": "^0.2",
|
|
38
38
|
"@lookiero/sty-psp-units": "^0.1",
|
|
39
39
|
"@lookiero/sty-psp-uuid": "^0.2",
|
package/src/ExpoRoot.tsx
CHANGED
|
@@ -9,7 +9,7 @@ import { EventProvider } from "@lookiero/event";
|
|
|
9
9
|
import { EndpointFunction } from "@lookiero/i18n";
|
|
10
10
|
import { i18n } from "@lookiero/i18n-react";
|
|
11
11
|
import { PaymentsQueryProvider, setPaymentsBridge } from "@lookiero/payments-front";
|
|
12
|
-
import { fetchTranslations, translationExternalEndpoint } from "@lookiero/sty-psp-i18n";
|
|
12
|
+
import { fetchTranslations, Project, translationExternalEndpoint } from "@lookiero/sty-psp-i18n";
|
|
13
13
|
import { Country, Locale } from "@lookiero/sty-psp-locale";
|
|
14
14
|
import { SentryEnvironment } from "@lookiero/sty-psp-logging";
|
|
15
15
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
@@ -68,11 +68,15 @@ const externalTranslationsUrl =
|
|
|
68
68
|
: __DEV__
|
|
69
69
|
? "/local-to-external-i18n"
|
|
70
70
|
: "/external-i18n";
|
|
71
|
+
const translationProjectsByTradename: Record<Tradename, [project: Project, filter?: string][]> = {
|
|
72
|
+
[Tradename.LOOKIERO]: [["checkout"], ["inventory-catalog"]],
|
|
73
|
+
[Tradename.OUTFITTERY]: [["outfittery-checkout"], ["inventory-catalog"]],
|
|
74
|
+
};
|
|
71
75
|
const translations: EndpointFunction[] = [
|
|
72
76
|
(locale) =>
|
|
73
77
|
translationExternalEndpoint({
|
|
74
78
|
translationsUrl: externalTranslationsUrl,
|
|
75
|
-
projects: [
|
|
79
|
+
projects: translationProjectsByTradename[tradename],
|
|
76
80
|
})(locale),
|
|
77
81
|
];
|
|
78
82
|
|