@saasquatch/mint-components 1.8.0-118 → 1.8.0-119
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/cjs/sqm-banking-info-form_16.cjs.entry.js +6 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/data.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +5 -1
- package/dist/esm/sqm-banking-info-form_16.entry.js +6 -2
- package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-5176b408.system.entry.js +1 -0
- package/dist/mint-components/{p-20de1121.entry.js → p-81396033.entry.js} +3 -3
- package/dist/mint-components/p-d5364cae.system.js +1 -1
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
- package/dist/mint-components/p-b02079b9.system.entry.js +0 -1
|
@@ -397,11 +397,11 @@ const GET_COUNTRIES = index_module.dist.gql `
|
|
|
397
397
|
}
|
|
398
398
|
`;
|
|
399
399
|
const GET_CURRENCIES = index_module.dist.gql `
|
|
400
|
-
query currencies {
|
|
400
|
+
query currencies($locale: RSLocale) {
|
|
401
401
|
currencies(limit: 300) {
|
|
402
402
|
data {
|
|
403
403
|
displayName
|
|
404
|
-
currencyCode
|
|
404
|
+
currencyCode(locale: $locale)
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
407
|
}
|
|
@@ -4200,6 +4200,7 @@ function useTaxAndCash() {
|
|
|
4200
4200
|
// setupDemo();
|
|
4201
4201
|
/** END DEMO DATA */
|
|
4202
4202
|
const user = index_module.H();
|
|
4203
|
+
const locale = index_module.N();
|
|
4203
4204
|
// State for current step of form
|
|
4204
4205
|
const [step, setStep] = useParentState({
|
|
4205
4206
|
namespace: TAX_CONTEXT_NAMESPACE,
|
|
@@ -4253,6 +4254,9 @@ function useTaxAndCash() {
|
|
|
4253
4254
|
namespace: CURRENCIES_QUERY_NAMESPACE,
|
|
4254
4255
|
query: GET_CURRENCIES,
|
|
4255
4256
|
skip: !user,
|
|
4257
|
+
variables: {
|
|
4258
|
+
locale,
|
|
4259
|
+
},
|
|
4256
4260
|
});
|
|
4257
4261
|
const supportedCurrencies = stencilHooks_module.useMemo(() => {
|
|
4258
4262
|
var _a, _b;
|
|
@@ -71,11 +71,11 @@ export const GET_COUNTRIES = gql `
|
|
|
71
71
|
}
|
|
72
72
|
`;
|
|
73
73
|
export const GET_CURRENCIES = gql `
|
|
74
|
-
query currencies {
|
|
74
|
+
query currencies($locale: RSLocale) {
|
|
75
75
|
currencies(limit: 300) {
|
|
76
76
|
data {
|
|
77
77
|
displayName
|
|
78
|
-
currencyCode
|
|
78
|
+
currencyCode(locale: $locale)
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { setUserIdentity, useHost, useUserIdentity, } from "@saasquatch/component-boilerplate";
|
|
1
|
+
import { setUserIdentity, useHost, useLocale, useUserIdentity, } from "@saasquatch/component-boilerplate";
|
|
2
2
|
import { useEffect, useMemo } from "@saasquatch/universal-hooks";
|
|
3
3
|
import { useParentQuery } from "../../../utils/useParentQuery";
|
|
4
4
|
import { getContextValueName, useParentState, } from "../../../utils/useParentState";
|
|
@@ -95,6 +95,7 @@ export function useTaxAndCash() {
|
|
|
95
95
|
// setupDemo();
|
|
96
96
|
/** END DEMO DATA */
|
|
97
97
|
const user = useUserIdentity();
|
|
98
|
+
const locale = useLocale();
|
|
98
99
|
// State for current step of form
|
|
99
100
|
const [step, setStep] = useParentState({
|
|
100
101
|
namespace: TAX_CONTEXT_NAMESPACE,
|
|
@@ -148,6 +149,9 @@ export function useTaxAndCash() {
|
|
|
148
149
|
namespace: CURRENCIES_QUERY_NAMESPACE,
|
|
149
150
|
query: GET_CURRENCIES,
|
|
150
151
|
skip: !user,
|
|
152
|
+
variables: {
|
|
153
|
+
locale,
|
|
154
|
+
},
|
|
151
155
|
});
|
|
152
156
|
const supportedCurrencies = useMemo(() => {
|
|
153
157
|
var _a, _b;
|
|
@@ -393,11 +393,11 @@ const GET_COUNTRIES = dist.gql `
|
|
|
393
393
|
}
|
|
394
394
|
`;
|
|
395
395
|
const GET_CURRENCIES = dist.gql `
|
|
396
|
-
query currencies {
|
|
396
|
+
query currencies($locale: RSLocale) {
|
|
397
397
|
currencies(limit: 300) {
|
|
398
398
|
data {
|
|
399
399
|
displayName
|
|
400
|
-
currencyCode
|
|
400
|
+
currencyCode(locale: $locale)
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
}
|
|
@@ -4196,6 +4196,7 @@ function useTaxAndCash() {
|
|
|
4196
4196
|
// setupDemo();
|
|
4197
4197
|
/** END DEMO DATA */
|
|
4198
4198
|
const user = H();
|
|
4199
|
+
const locale = N();
|
|
4199
4200
|
// State for current step of form
|
|
4200
4201
|
const [step, setStep] = useParentState({
|
|
4201
4202
|
namespace: TAX_CONTEXT_NAMESPACE,
|
|
@@ -4249,6 +4250,9 @@ function useTaxAndCash() {
|
|
|
4249
4250
|
namespace: CURRENCIES_QUERY_NAMESPACE,
|
|
4250
4251
|
query: GET_CURRENCIES,
|
|
4251
4252
|
skip: !user,
|
|
4253
|
+
variables: {
|
|
4254
|
+
locale,
|
|
4255
|
+
},
|
|
4252
4256
|
});
|
|
4253
4257
|
const supportedCurrencies = useMemo(() => {
|
|
4254
4258
|
var _a, _b;
|