@adyen/kyc-components 2.34.0 → 2.34.2

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.
@@ -8,7 +8,6 @@ import { debounce, noop as noop$1, isEmpty as isEmpty$1, range } from "lodash";
8
8
  import OpenBankingSDK from "@adyen/openbankingsdk";
9
9
  import "@adyen/adyen-document-viewer/dist/adyen-document-viewer.min.css";
10
10
  import AdyenDocumentViewer from "@adyen/adyen-document-viewer";
11
- import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
12
11
  const ConfigurationApiContext = createContext(void 0);
13
12
  const useConfigurationApi = () => {
14
13
  const configurationApi = useContext(ConfigurationApiContext);
@@ -2969,7 +2968,7 @@ const icons = {
2969
2968
  warning: lazy(() => import("./warning-99uFf1WU.js")),
2970
2969
  wrong: lazy(() => import("./wrong-1wvh7nZe.js"))
2971
2970
  };
2972
- const logger$v = createLogger("Icon");
2971
+ const logger$w = createLogger("Icon");
2973
2972
  const Icon = ({
2974
2973
  className,
2975
2974
  name,
@@ -2977,7 +2976,7 @@ const Icon = ({
2977
2976
  }) => {
2978
2977
  const LazyLoadedIcon = icons[name];
2979
2978
  if (!LazyLoadedIcon) {
2980
- logger$v.error(`No such icon: "${name}"`);
2979
+ logger$w.error(`No such icon: "${name}"`);
2981
2980
  return null;
2982
2981
  }
2983
2982
  return jsx("span", {
@@ -3181,7 +3180,7 @@ function useFormRouterContext() {
3181
3180
  }
3182
3181
  return context;
3183
3182
  }
3184
- const logger$u = createLogger("Link");
3183
+ const logger$v = createLogger("Link");
3185
3184
  const getIconClass = (icon, external) => {
3186
3185
  if (external) {
3187
3186
  return "adl-link__icon adyen-kyc-icon-external-link";
@@ -3193,7 +3192,7 @@ const getIconClass = (icon, external) => {
3193
3192
  };
3194
3193
  const isValidLink = (href) => {
3195
3194
  if (href === "#") {
3196
- logger$u.error('Links must include a valid href. If your href is "#", consider using a Button instead');
3195
+ logger$v.error('Links must include a valid href. If your href is "#", consider using a Button instead');
3197
3196
  return false;
3198
3197
  }
3199
3198
  return true;
@@ -3481,7 +3480,7 @@ const useSetting = (settingName) => {
3481
3480
  } = context;
3482
3481
  return getSetting(settingName);
3483
3482
  };
3484
- const logger$t = createLogger("useAllowedCountries");
3483
+ const logger$u = createLogger("useAllowedCountries");
3485
3484
  const useAllowedCountries = () => {
3486
3485
  const acceptedCountries = useSetting("acceptedCountries");
3487
3486
  const {
@@ -3491,7 +3490,7 @@ const useAllowedCountries = () => {
3491
3490
  useEffect(() => {
3492
3491
  if (acceptedCountries !== void 0)
3493
3492
  return;
3494
- getAllowedCountries2().then((response) => setAllowedCountries(response.countries)).catch(logger$t.error);
3493
+ getAllowedCountries2().then((response) => setAllowedCountries(response.countries)).catch(logger$u.error);
3495
3494
  }, [acceptedCountries]);
3496
3495
  return allowedCountries;
3497
3496
  };
@@ -3830,7 +3829,7 @@ class ValidationResult {
3830
3829
  return this.validationResults.filter((result) => result.hasError);
3831
3830
  }
3832
3831
  }
3833
- const logger$s = createLogger("useAsyncValidator");
3832
+ const logger$t = createLogger("useAsyncValidator");
3834
3833
  const useAsyncValidator = (asyncRules) => {
3835
3834
  const [asyncValidationResults, setAsyncValidationResults] = useState({});
3836
3835
  const clearAsyncValidationResults = useCallback(() => setAsyncValidationResults({}), []);
@@ -3853,7 +3852,7 @@ const useAsyncValidator = (asyncRules) => {
3853
3852
  hasError: !isValid
3854
3853
  }])
3855
3854
  });
3856
- }).catch(logger$s.error);
3855
+ }).catch(logger$t.error);
3857
3856
  }, [asyncRules, clearAsyncValidationResults]);
3858
3857
  return {
3859
3858
  asyncValidationResults,
@@ -5284,7 +5283,7 @@ function useIsElementVisible(ref, fallback = true) {
5284
5283
  }, [ref]);
5285
5284
  return isOnScreen;
5286
5285
  }
5287
- const logger$r = createLogger("Flag");
5286
+ const logger$s = createLogger("Flag");
5288
5287
  const flagImports = /* @__PURE__ */ Object.assign({
5289
5288
  "../../../../assets/flags/ad.svg": () => import("./ad-DT4vRaBJ.js"),
5290
5289
  "../../../../assets/flags/ae.svg": () => import("./ae-BOcuAHGY.js"),
@@ -5541,7 +5540,7 @@ const flagImports = /* @__PURE__ */ Object.assign({
5541
5540
  const getLazyLoadedSvgComponent = (country2) => {
5542
5541
  const importForCountry = flagImports[`../../../../assets/flags/${country2.toLowerCase()}.svg`];
5543
5542
  if (!importForCountry) {
5544
- logger$r.error(`No flag available for ${country2}`);
5543
+ logger$s.error(`No flag available for ${country2}`);
5545
5544
  return void 0;
5546
5545
  }
5547
5546
  return lazy(importForCountry);
@@ -6330,7 +6329,7 @@ const deriveInputState = (isValid, isFocused, hasBlurred, isDisabled, errorMessa
6330
6329
  };
6331
6330
  };
6332
6331
  const MISMATCH_ANIMATION_NAME = "mismatchShake";
6333
- const logger$q = createLogger("MaskedInputText");
6332
+ const logger$r = createLogger("MaskedInputText");
6334
6333
  const MaskedInputText = ({
6335
6334
  value,
6336
6335
  onInput,
@@ -6372,7 +6371,7 @@ const MaskedInputText = ({
6372
6371
  };
6373
6372
  useEffect(() => {
6374
6373
  if (!mask) {
6375
- logger$q.warn("`mask` is undefined. No masking of input will take place.");
6374
+ logger$r.warn("`mask` is undefined. No masking of input will take place.");
6376
6375
  }
6377
6376
  }, [mask]);
6378
6377
  const getMaskResult = useCallback((pureValue) => {
@@ -6399,7 +6398,7 @@ const MaskedInputText = ({
6399
6398
  return;
6400
6399
  }
6401
6400
  const fallback = displayValueToPure(maskResult.partialDisplayValue);
6402
- logger$q.warn(`Value received "${value}" does not match mask`, maskResult, `
6401
+ logger$r.warn(`Value received "${value}" does not match mask`, maskResult, `
6403
6402
  Falling back to partially valid value "${fallback}"`);
6404
6403
  onInput(fallback);
6405
6404
  }
@@ -10500,7 +10499,7 @@ const accountHolderValidationRules = {
10500
10499
  }
10501
10500
  };
10502
10501
  const accountHolderFields = ["accountHolder"];
10503
- const logger$p = createLogger("AccountHolder");
10502
+ const logger$q = createLogger("AccountHolder");
10504
10503
  function getAvailableAccountHolderOptions(legalEntityType, isChangeOfLegalEntityTypeAllowed, isTrustFlowEnabled, isSoleProprietorshipAllowed, isChangeToMyNameAllowed) {
10505
10504
  switch (legalEntityType) {
10506
10505
  case LegalEntityType.ORGANIZATION: {
@@ -10510,7 +10509,7 @@ function getAvailableAccountHolderOptions(legalEntityType, isChangeOfLegalEntity
10510
10509
  return [...isChangeToMyNameAllowed ? ["myName"] : [], ...isChangeOfLegalEntityTypeAllowed ? ["theCompanyIWorkFor"] : [], ...isTrustFlowEnabled ? ["aTrust"] : [], ...isSoleProprietorshipAllowed ? ["mySoleProprietorName"] : []];
10511
10510
  }
10512
10511
  default:
10513
- logger$p.error(`No available account holder options for legal entity type '${legalEntityType}'`);
10512
+ logger$q.error(`No available account holder options for legal entity type '${legalEntityType}'`);
10514
10513
  return [];
10515
10514
  }
10516
10515
  }
@@ -11253,7 +11252,7 @@ function Dropzone(props) {
11253
11252
  })]
11254
11253
  });
11255
11254
  }
11256
- const logger$o = createLogger("TextArea");
11255
+ const logger$p = createLogger("TextArea");
11257
11256
  function TextArea(props) {
11258
11257
  const {
11259
11258
  classNameModifiers,
@@ -11274,7 +11273,7 @@ function TextArea(props) {
11274
11273
  } = useI18nContext();
11275
11274
  const [value, setValue] = useState("");
11276
11275
  if (Object.prototype.hasOwnProperty.call(props, "onChange")) {
11277
- logger$o.error("Error: Form fields that rely on InputBase may not have an onChange property");
11276
+ logger$p.error("Error: Form fields that rely on InputBase may not have an onChange property");
11278
11277
  }
11279
11278
  const handleInput = (e) => {
11280
11279
  var _a;
@@ -11687,7 +11686,7 @@ function FieldContainer(props) {
11687
11686
  }
11688
11687
  return renderField(fieldName);
11689
11688
  }
11690
- const logger$n = createLogger("SearchAddress");
11689
+ const logger$o = createLogger("SearchAddress");
11691
11690
  const SearchAddress = ({
11692
11691
  data,
11693
11692
  legalEntityId,
@@ -11730,7 +11729,7 @@ const SearchAddress = ({
11730
11729
  const response = await handleFindAddress(selectedAddressId);
11731
11730
  autocompleteAddressForm(response);
11732
11731
  } catch (e) {
11733
- logger$n.error(e);
11732
+ logger$o.error(e);
11734
11733
  }
11735
11734
  };
11736
11735
  const onDrilldown = async (selectedAddress) => {
@@ -11742,7 +11741,7 @@ const SearchAddress = ({
11742
11741
  }, legalEntityId);
11743
11742
  setItems((response == null ? void 0 : response.results) || []);
11744
11743
  } catch (e) {
11745
- logger$n.error(e);
11744
+ logger$o.error(e);
11746
11745
  }
11747
11746
  };
11748
11747
  const onChange = (e) => {
@@ -11797,7 +11796,7 @@ const SearchAddress = ({
11797
11796
  setItems([]);
11798
11797
  }
11799
11798
  } catch (e) {
11800
- logger$n.error(e);
11799
+ logger$o.error(e);
11801
11800
  }
11802
11801
  setLoading(false);
11803
11802
  }
@@ -14742,7 +14741,7 @@ const initOnfido = async ({
14742
14741
  language: getOnfidoLocaleConfig(i18n)
14743
14742
  });
14744
14743
  };
14745
- const logger$m = createLogger("IdVerificationComponent");
14744
+ const logger$n = createLogger("IdVerificationComponent");
14746
14745
  function IdVerificationComponent({
14747
14746
  userDetails,
14748
14747
  legalEntityId,
@@ -14775,7 +14774,7 @@ function IdVerificationComponent({
14775
14774
  onIdVerificationError,
14776
14775
  onIdVerificationComplete
14777
14776
  });
14778
- })().catch(logger$m.error);
14777
+ })().catch(logger$n.error);
14779
14778
  return () => {
14780
14779
  if (onfidoSdk.current)
14781
14780
  onfidoSdk.current.tearDown();
@@ -14827,7 +14826,7 @@ function IdDocumentAlreadyUpload(props) {
14827
14826
  })]
14828
14827
  });
14829
14828
  }
14830
- const logger$l = createLogger("IdDocumentInstantVerificationComponent");
14829
+ const logger$m = createLogger("IdDocumentInstantVerificationComponent");
14831
14830
  const idVerificationSchema = ["instantIdVerificationData", "idDocumentType"];
14832
14831
  const documentTypeValidationRules = {
14833
14832
  instantIdVerificationData: {
@@ -14909,7 +14908,7 @@ function IdDocumentInstantVerificationComponent(props) {
14909
14908
  userDetails: props.userDetails,
14910
14909
  legalEntityId: props.legalEntityId,
14911
14910
  onIdVerificationComplete: handleIdVerificationComplete,
14912
- onIdVerificationError: logger$l.error
14911
+ onIdVerificationError: logger$m.error
14913
14912
  }), jsxs("div", {
14914
14913
  className: "adyen-kyc-document-upload__manual-upload",
14915
14914
  children: [i18n.get("canNotCompleteInstantVerification"), " ", jsx("button", {
@@ -18353,7 +18352,7 @@ class AdyenKycSdkError extends Error {
18353
18352
  }
18354
18353
  let sdkToken;
18355
18354
  let fetchSdkToken;
18356
- const logger$k = createLogger("Session");
18355
+ const logger$l = createLogger("Session");
18357
18356
  const setSdkToken = (token) => {
18358
18357
  sdkToken = token;
18359
18358
  };
@@ -18376,7 +18375,7 @@ const refreshSession = async () => {
18376
18375
  setSdkToken(token);
18377
18376
  isSessionRefreshed = true;
18378
18377
  } catch (e) {
18379
- logger$k.error("Failed to fetch sdk token", e);
18378
+ logger$l.error("Failed to fetch sdk token", e);
18380
18379
  }
18381
18380
  return isSessionRefreshed;
18382
18381
  };
@@ -18386,7 +18385,7 @@ const addAnimationStartListener = (element, listener) => {
18386
18385
  const removeAnimationStartListener = (element, listener) => {
18387
18386
  element.removeEventListener("animationstart", listener, false);
18388
18387
  };
18389
- const logger$j = createLogger("Fetch");
18388
+ const logger$k = createLogger("Fetch");
18390
18389
  const getRequestObject = (options, data) => {
18391
18390
  const {
18392
18391
  headers = [],
@@ -18433,10 +18432,10 @@ const logFetchError = (message, level) => {
18433
18432
  case "info":
18434
18433
  case "warn":
18435
18434
  case "error":
18436
- logger$j[level](message);
18435
+ logger$k[level](message);
18437
18436
  break;
18438
18437
  default:
18439
- logger$j.error(message);
18438
+ logger$k.error(message);
18440
18439
  }
18441
18440
  };
18442
18441
  const handleFetchResponse = async (response, responseType) => {
@@ -18529,7 +18528,7 @@ const RELEVANT_MESSAGE_TYPES = ["account_verification_report_id", "error"];
18529
18528
  const TERMINAL_DATA_PROPS = ["accounts", "error", "reference"];
18530
18529
  const MOUNT_TIMEOUT = 10 * 1e3;
18531
18530
  const TINK_VENDOR = "Tink";
18532
- const logger$i = createLogger("iframeWidget");
18531
+ const logger$j = createLogger("iframeWidget");
18533
18532
  const isObjectData = (data) => typeof data === "object" && !Array.isArray(data) && data !== null;
18534
18533
  const isTerminalMessageData = (data) => isObjectData(data) && Object.entries(data).some(([prop]) => TERMINAL_DATA_PROPS.includes(prop));
18535
18534
  const parseMessageJson = (message) => {
@@ -18548,7 +18547,7 @@ const callbackErrorHandler = async (response) => {
18548
18547
  try {
18549
18548
  await response;
18550
18549
  } catch (ex) {
18551
- logger$i.error(ex);
18550
+ logger$j.error(ex);
18552
18551
  }
18553
18552
  return {
18554
18553
  error: "UNKNOWN_ERROR",
@@ -18657,7 +18656,7 @@ class IFrameWidget {
18657
18656
  message = responseData.errorMessage;
18658
18657
  }
18659
18658
  } catch (ex) {
18660
- logger$i.error(ex);
18659
+ logger$j.error(ex);
18661
18660
  }
18662
18661
  throw new AdyenKycSdkError(reason, jsonData.error);
18663
18662
  }
@@ -18845,7 +18844,7 @@ function BankVerificationWidget({
18845
18844
  ref: widgetContainerRef
18846
18845
  });
18847
18846
  }
18848
- const logger$h = createLogger("BankVerification");
18847
+ const logger$i = createLogger("BankVerification");
18849
18848
  const accountVerificationFields = ["verifiedAccountHolder", "verifiedBankCountry", "verifiedBankName", "verifiedCurrencyCode", "verifiedBankAccountNumber"];
18850
18849
  const InstantVerificationErrorContext = createContext(null);
18851
18850
  const useInstantVerificationErrorNotification = (notificationVisibilityDuration) => {
@@ -18879,7 +18878,7 @@ const usePreferredVendorForCountry = (country2, getBankVerificationVendors) => {
18879
18878
  const vendor = vendors[0];
18880
18879
  setPreferredVendor(vendor.name ? vendor : void 0);
18881
18880
  };
18882
- getPreferredVendor().catch(logger$h.error);
18881
+ getPreferredVendor().catch(logger$i.error);
18883
18882
  }, [country2, getBankVerificationVendors]);
18884
18883
  return preferredVendor;
18885
18884
  };
@@ -20142,7 +20141,7 @@ const makePayoutVerificationMethodsMetadata = (svgPath, instantVerificationProvi
20142
20141
  }
20143
20142
  });
20144
20143
  const payoutVerificationMethods = ["instantVerification", "manualVerification"];
20145
- const logger$g = createLogger("useLocalStorage");
20144
+ const logger$h = createLogger("useLocalStorage");
20146
20145
  const useLocalStorage = (key, defaultValue, options) => {
20147
20146
  const {
20148
20147
  serializer,
@@ -20163,7 +20162,7 @@ const useLocalStorage = (key, defaultValue, options) => {
20163
20162
  const res = rawValueRef.current ? parser(rawValueRef.current) : defaultValue;
20164
20163
  return res;
20165
20164
  } catch (err) {
20166
- logger$g.error(err);
20165
+ logger$h.error(err);
20167
20166
  return defaultValue;
20168
20167
  }
20169
20168
  });
@@ -20195,7 +20194,7 @@ const useLocalStorage = (key, defaultValue, options) => {
20195
20194
  try {
20196
20195
  updateLocalStorage();
20197
20196
  } catch (err) {
20198
- logger$g.error(err);
20197
+ logger$h.error(err);
20199
20198
  }
20200
20199
  }, [value]);
20201
20200
  useEffect(() => {
@@ -20210,7 +20209,7 @@ const useLocalStorage = (key, defaultValue, options) => {
20210
20209
  setValue(event.newValue ? parser(event.newValue) : void 0);
20211
20210
  }
20212
20211
  } catch (err) {
20213
- logger$g.error(err);
20212
+ logger$h.error(err);
20214
20213
  }
20215
20214
  };
20216
20215
  if (typeof window === "undefined")
@@ -21166,30 +21165,10 @@ const hasMinRequiredDecisionMakerCount = (rootLegalEntity) => {
21166
21165
  return roleTypes.some((role2) => min ? (existingDecisionMakerCount == null ? void 0 : existingDecisionMakerCount[role2]) ?? min <= 0 : true);
21167
21166
  });
21168
21167
  };
21169
- const TRUST_MEMBER_COUNT_RANGE = {
21170
- [TrustMemberTypes.DEFINED_BENEFICIARY]: {
21171
- min: 1
21172
- },
21173
- [TrustMemberTypes.SETTLOR]: {
21174
- min: 1
21175
- }
21176
- };
21177
21168
  const isPartOfTrustFromLegalEntity = (legalEntity) => {
21178
21169
  var _a;
21179
21170
  return (_a = legalEntity == null ? void 0 : legalEntity.entityAssociations) == null ? void 0 : _a.some((ea) => ea.entityType === LegalEntityType.TRUST && ea.associatorId === legalEntity.id);
21180
21171
  };
21181
- const getTrustLegalEntityId = (rootLegalEntity) => {
21182
- var _a;
21183
- if (!rootLegalEntity.entityAssociations)
21184
- return void 0;
21185
- return (_a = rootLegalEntity.entityAssociations.find((entityAssociation) => entityAssociation.type === LegalEntityType.TRUST)) == null ? void 0 : _a.legalEntityId;
21186
- };
21187
- const getOwnTrustMembers = (rootLegalEntity) => {
21188
- const trustLegalEntityId = getTrustLegalEntityId(rootLegalEntity);
21189
- if (!trustLegalEntityId || !rootLegalEntity.entityAssociations)
21190
- return [];
21191
- return rootLegalEntity.entityAssociations.filter((entityAssociation) => Object.values(TrustMemberTypes).includes(entityAssociation.type) && trustLegalEntityId === entityAssociation.associatorId);
21192
- };
21193
21172
  const getOwnTrustMembersLegalEntityIds = (rootLegalEntity) => {
21194
21173
  const trustLegalEntityId = getOwnTrustLegalEntityId(rootLegalEntity);
21195
21174
  if (!trustLegalEntityId)
@@ -21217,17 +21196,23 @@ const getOwnTrustProblems = (legalEntity, capabilityProblems) => {
21217
21196
  return (_a = capabilityProblems == null ? void 0 : capabilityProblems.LegalEntity) == null ? void 0 : _a[trustLegalEntityId];
21218
21197
  }
21219
21198
  };
21220
- const getTrustMemberCount = (rootLegalEntity) => {
21221
- const trustMembers2 = getOwnTrustMembers(rootLegalEntity);
21222
- return trustMembers2.reduce((trustMemberCount, trustMember) => {
21223
- trustMemberCount[trustMember.type] = (trustMemberCount[trustMember.type] ?? 0) + 1;
21224
- return trustMemberCount;
21225
- }, {});
21226
- };
21227
- const hasMinRequiredTrustMemberCount = (rootLegalEntity) => {
21228
- const existingTrustMemberCount = getTrustMemberCount(rootLegalEntity);
21229
- const countRangeEntries = Object.entries(TRUST_MEMBER_COUNT_RANGE);
21230
- return countRangeEntries.every(([trustMemberType, requiredRange]) => requiredRange.min ? (existingTrustMemberCount == null ? void 0 : existingTrustMemberCount[trustMemberType]) ?? requiredRange.min <= 0 : true);
21199
+ const hasRequiredTrustMemberCount = (trustMembers2) => {
21200
+ if (!trustMembers2.length) {
21201
+ return false;
21202
+ }
21203
+ return DEFAULT_TRUST_MEMBER_REQUIREMENTS.every(({
21204
+ roleTypes,
21205
+ min
21206
+ }) => {
21207
+ var _a;
21208
+ if (min === 0) {
21209
+ return true;
21210
+ }
21211
+ const actualCount = ((_a = trustMembers2.filter(({
21212
+ roles
21213
+ }) => roleTypes.some((label) => roles.includes(label)))) == null ? void 0 : _a.length) ?? 0;
21214
+ return actualCount >= min;
21215
+ });
21231
21216
  };
21232
21217
  const getCountrySpecificTrustTypeOptions = (country2) => {
21233
21218
  const countrySpecificTrustTypes = countryToTrustTypes[country2];
@@ -22499,7 +22484,7 @@ const defaultPayoutAccountFormat = {
22499
22484
  [CountryCodes.Sweden]: "local",
22500
22485
  [CountryCodes.UnitedKingdom]: "local"
22501
22486
  };
22502
- const logger$f = createLogger("useScenarioConfiguration");
22487
+ const logger$g = createLogger("useScenarioConfiguration");
22503
22488
  const useScenarioConfiguration = ({
22504
22489
  getConfigurationData,
22505
22490
  getPayoutAccountFormatData,
@@ -22522,12 +22507,12 @@ const useScenarioConfiguration = ({
22522
22507
  const response = await getConfigurationData();
22523
22508
  setConfigurationResponse(response);
22524
22509
  } catch (err) {
22525
- logger$f.warn("WARNING: Configuration request failed - error:", err);
22510
+ logger$g.warn("WARNING: Configuration request failed - error:", err);
22526
22511
  } finally {
22527
22512
  setLoadingStatus("success");
22528
22513
  }
22529
22514
  };
22530
- makeConfigCallAndSave().catch(logger$f.error);
22515
+ makeConfigCallAndSave().catch(logger$g.error);
22531
22516
  }, [getConfigurationData, setLoadingStatus]);
22532
22517
  useEffect(() => {
22533
22518
  setLoadingStatus("loading");
@@ -22546,12 +22531,12 @@ const useScenarioConfiguration = ({
22546
22531
  const defaultAccountFormat = defaultPayoutAccountFormat[country2] ?? allowedBankAccountFormats[0];
22547
22532
  setAccountFormat(existingBankAccountFormat ?? defaultAccountFormat);
22548
22533
  } catch (err) {
22549
- logger$f.warn("WARNING: Payout format request failed - error:", err);
22534
+ logger$g.warn("WARNING: Payout format request failed - error:", err);
22550
22535
  } finally {
22551
22536
  setLoadingStatus("success");
22552
22537
  }
22553
22538
  };
22554
- makePayoutFormatCallAndSave().catch(logger$f.error);
22539
+ makePayoutFormatCallAndSave().catch(logger$g.error);
22555
22540
  }, [country2, setAccountFormat, getPayoutAccountFormatData, setLoadingStatus, existingBankAccountFormat]);
22556
22541
  const {
22557
22542
  fieldConfigurations,
@@ -23287,7 +23272,7 @@ var ToastType = /* @__PURE__ */ ((ToastType2) => {
23287
23272
  ToastType2["ERROR"] = "error";
23288
23273
  return ToastType2;
23289
23274
  })(ToastType || {});
23290
- const logger$e = createLogger("FormRouterContextProvider");
23275
+ const logger$f = createLogger("FormRouterContextProvider");
23291
23276
  function FormRouterContextProvider({
23292
23277
  children,
23293
23278
  forms: forms2,
@@ -23307,7 +23292,7 @@ function FormRouterContextProvider({
23307
23292
  if (formIndex > -1) {
23308
23293
  setFormIndex(formIndex);
23309
23294
  } else {
23310
- logger$e.error("No form was found to have that field so form navigation failed.");
23295
+ logger$f.error("No form was found to have that field so form navigation failed.");
23311
23296
  }
23312
23297
  }
23313
23298
  }), [forms2, handleGetIdVerificationToken, setFormIndex]);
@@ -23920,7 +23905,7 @@ var CompanySearchEvents = /* @__PURE__ */ ((CompanySearchEvents2) => {
23920
23905
  CompanySearchEvents2["SELECTION_ERROR"] = "CompanySearch_CompanySelectionError";
23921
23906
  return CompanySearchEvents2;
23922
23907
  })(CompanySearchEvents || {});
23923
- const logger$d = createLogger("useCompanySearch");
23908
+ const logger$e = createLogger("useCompanySearch");
23924
23909
  const LOW_RISK_COMPANY_DATA_COMPLIANCE_WINDOW = 1577664e5;
23925
23910
  function useCompanySearch({
23926
23911
  defaultData,
@@ -24048,7 +24033,7 @@ function useCompanySearch({
24048
24033
  state: companyData.state ?? stateOrProvince2
24049
24034
  });
24050
24035
  } catch (e) {
24051
- logger$d.error(e);
24036
+ logger$e.error(e);
24052
24037
  setError(e);
24053
24038
  setStatus("error");
24054
24039
  } finally {
@@ -24081,7 +24066,7 @@ function useCompanySearch({
24081
24066
  indexSearch: handleCompanyIndexSearch,
24082
24067
  deepSearch: handleCompanyDeepSearch,
24083
24068
  resultsLimit: limit
24084
- })) == null ? void 0 : _a.catch((e) => logger$d.error(e));
24069
+ })) == null ? void 0 : _a.catch((e) => logger$e.error(e));
24085
24070
  }
24086
24071
  }, [legalCompanyName2, country2, stateOrProvince2, taxIdentificationNumber2, verifiedCompany, searchCompanies, handleCompanyIndexSearch, handleCompanyDeepSearch, limit, canVerify, baseTrackingPayload]);
24087
24072
  useEffect(() => {
@@ -25858,7 +25843,7 @@ const mapLegalEntityToCompanySearchSchema = (legalEntity) => {
25858
25843
  }
25859
25844
  }, {});
25860
25845
  };
25861
- const logger$c = createLogger("useFormTaskSubmit");
25846
+ const logger$d = createLogger("useFormTaskSubmit");
25862
25847
  function useCompanySearchTaskSubmit({
25863
25848
  task,
25864
25849
  forms: forms2,
@@ -25904,7 +25889,7 @@ function useCompanySearchTaskSubmit({
25904
25889
  });
25905
25890
  }
25906
25891
  } catch (e) {
25907
- logger$c.error(e);
25892
+ logger$d.error(e);
25908
25893
  userEvents.addEvent(CompanySearchEvents.DOCUMENTS_ERROR, {
25909
25894
  segmentation: {
25910
25895
  ...baseTrackingPayload,
@@ -25956,7 +25941,7 @@ function useCompanySearchTaskSubmit({
25956
25941
  ...trackingPayload
25957
25942
  }
25958
25943
  });
25959
- logger$c.log(submittedLegalEntity);
25944
+ logger$d.log(submittedLegalEntity);
25960
25945
  setAccountHolder(entityTypeToCorrespondingAccountHolderOption[legalEntityResponse.type]);
25961
25946
  clearToasts();
25962
25947
  onExternalSubmit == null ? void 0 : onExternalSubmit(data);
@@ -25981,7 +25966,7 @@ function useCompanySearchTaskSubmit({
25981
25966
  type: ToastType.ERROR
25982
25967
  });
25983
25968
  }
25984
- logger$c.error(e);
25969
+ logger$d.error(e);
25985
25970
  userEvents.addEvent(CompanySearchEvents.TASK_ERROR, {
25986
25971
  segmentation: {
25987
25972
  ...baseTrackingPayload,
@@ -26414,7 +26399,7 @@ const useShouldShowIntroduction = ({
26414
26399
  });
26415
26400
  return canSeeIntroduction && !hasSeenIntroduction;
26416
26401
  };
26417
- const logger$b = createLogger("useAssociatedLegalArrangement");
26402
+ const logger$c = createLogger("useAssociatedLegalArrangement");
26418
26403
  function useAssociatedLegalArrangement({
26419
26404
  rootLegalEntity,
26420
26405
  getLegalEntity: getLegalEntity2
@@ -26425,14 +26410,14 @@ function useAssociatedLegalArrangement({
26425
26410
  var _a;
26426
26411
  const foundEntity = (_a = rootLegalEntity == null ? void 0 : rootLegalEntity.entityAssociations) == null ? void 0 : _a.find((entity) => entity.type === LegalEntityType.SOLE_PROPRIETORSHIP || entity.type === LegalEntityType.TRUST);
26427
26412
  if (foundEntity == null ? void 0 : foundEntity.legalEntityId) {
26428
- getAssociatedEntity(foundEntity == null ? void 0 : foundEntity.legalEntityId).then((res) => setAssociatedLegalArrangement(res)).catch(logger$b.error);
26413
+ getAssociatedEntity(foundEntity == null ? void 0 : foundEntity.legalEntityId).then((res) => setAssociatedLegalArrangement(res)).catch(logger$c.error);
26429
26414
  }
26430
26415
  }, [getAssociatedEntity, rootLegalEntity == null ? void 0 : rootLegalEntity.entityAssociations]);
26431
26416
  return {
26432
26417
  associatedLegalArrangement
26433
26418
  };
26434
26419
  }
26435
- const logger$a = createLogger("useExemptSettlor");
26420
+ const logger$b = createLogger("useExemptSettlor");
26436
26421
  const useExemptSettlor = ({
26437
26422
  trust: trust2,
26438
26423
  handleGetLegalEntity
@@ -26446,7 +26431,7 @@ const useExemptSettlor = ({
26446
26431
  useEffect(() => {
26447
26432
  if (!trust2)
26448
26433
  return;
26449
- updateExemptSettlor(trust2).catch(logger$a.error);
26434
+ updateExemptSettlor(trust2).catch(logger$b.error);
26450
26435
  }, [trust2, updateExemptSettlor]);
26451
26436
  return exemptSettlor;
26452
26437
  };
@@ -26476,6 +26461,26 @@ function useSalesChannelsSettings() {
26476
26461
  return settings;
26477
26462
  }, [isSettingEnabled]);
26478
26463
  }
26464
+ const logger$a = createLogger("useTrust");
26465
+ const useTrust = ({
26466
+ rootLegalEntity,
26467
+ handleGetLegalEntity
26468
+ }) => {
26469
+ const [trust2, setTrust] = useState();
26470
+ const refreshTrust = useCallback(async () => {
26471
+ var _a, _b;
26472
+ const trustId = (_b = (_a = rootLegalEntity == null ? void 0 : rootLegalEntity.entityAssociations) == null ? void 0 : _a.find((association2) => association2.type === LegalEntityType.TRUST)) == null ? void 0 : _b.legalEntityId;
26473
+ const trustLE = trustId ? await handleGetLegalEntity(trustId) : void 0;
26474
+ setTrust(trustLE);
26475
+ return trustLE;
26476
+ }, [handleGetLegalEntity]);
26477
+ useEffect(() => {
26478
+ if (hasOwnEntityAssociationOfType(LegalEntityType.TRUST, rootLegalEntity.entityAssociations, rootLegalEntity.id)) {
26479
+ refreshTrust().catch(logger$a.error);
26480
+ }
26481
+ }, [refreshTrust]);
26482
+ return [trust2, refreshTrust];
26483
+ };
26479
26484
  const downloadFile = async (base64, filename) => {
26480
26485
  saveBlobAsFile(base64ToBlob(base64), filename);
26481
26486
  };
@@ -26575,7 +26580,7 @@ const mapEntityAssociationsToTrustMembers = (trustEntityId, entityAssociations,
26575
26580
  };
26576
26581
  const mapRootLegalEntityToTrustMember = (rootLegalEntity) => ({
26577
26582
  trustMemberType: "rootTrustee",
26578
- roles: [],
26583
+ roles: [TrustMemberTypes.TRUSTEE],
26579
26584
  legalEntityType: rootLegalEntity.type,
26580
26585
  legalEntityId: rootLegalEntity.id,
26581
26586
  name: getLegalEntityNameBasedOnType(rootLegalEntity)
@@ -28509,6 +28514,7 @@ function TaskListComponent({
28509
28514
  pciStatus,
28510
28515
  serviceAgreementTypes,
28511
28516
  serviceAgreementAcceptanceInfos,
28517
+ hasRequiredTrustMemberCount: hasRequiredTrustMemberCount2,
28512
28518
  onTransferInstrumentDelete
28513
28519
  }) {
28514
28520
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
@@ -28658,7 +28664,7 @@ function TaskListComponent({
28658
28664
  onNavigateToTask: handleOnNavigateToTaskTrustMember,
28659
28665
  icon: "decision-maker",
28660
28666
  title: i18n.get("trustMembers"),
28661
- status: hasMinRequiredTrustMemberCount(legalEntityResponse) ? getTaskStatus(EntityType.LEGAL_ENTITY, capabilityProblems, legalEntityResponse, getOwnTrustMembersLegalEntityIds(legalEntityResponse)) : TaskStatus.DETAILS_REQUIRED
28667
+ status: hasRequiredTrustMemberCount2 ? getTaskStatus(EntityType.LEGAL_ENTITY, capabilityProblems, legalEntityResponse, getOwnTrustMembersLegalEntityIds(legalEntityResponse)) : TaskStatus.DETAILS_REQUIRED
28662
28668
  })]
28663
28669
  }), (tasks.includes(TaskTypes.PAYOUT) || tasks.includes(TaskTypes.PAYIN)) && jsx(TaskListGroup, {
28664
28670
  title: isEnableNewEntryFlowEnabled ? i18n.get("letUsKnowTheBankAccountToSendReceiveFunds") : i18n.get(hasPayinTaskNotPayout ? "payinAccountsDescription" : payoutTaskDescriptionKey),
@@ -31656,6 +31662,31 @@ function TrustDropinComponent({
31656
31662
  const requiredForms = getRequiredForms(trustForms, derivedProps == null ? void 0 : derivedProps.requiredFields, derivedProps == null ? void 0 : derivedProps.optionalFields);
31657
31663
  return addValidityToForms(requiredForms, formValidity, problems);
31658
31664
  }, [derivedProps, formValidity, problems]);
31665
+ useEffect(() => {
31666
+ var _a2;
31667
+ const documentIds = ((_a2 = legalEntityResponse == null ? void 0 : legalEntityResponse.documentDetails) == null ? void 0 : _a2.map((documentReference) => documentReference.id)) || [];
31668
+ try {
31669
+ if (documentIds.length) {
31670
+ documentUtils.fetchDocuments(documentIds, legalEntityResponse.id).then(() => {
31671
+ const mappedDocuments = mapApiDocumentToTrustDocument(legalEntityResponse.id);
31672
+ setData({
31673
+ ...data,
31674
+ ...mappedDocuments
31675
+ });
31676
+ }).catch(() => {
31677
+ showToast({
31678
+ label: i18n.get("failedToFetchRelevantDocuments"),
31679
+ type: ToastType.ERROR
31680
+ });
31681
+ });
31682
+ }
31683
+ } catch (e) {
31684
+ showToast({
31685
+ label: i18n.get("failedToFetchRelevantDocuments"),
31686
+ type: ToastType.ERROR
31687
+ });
31688
+ }
31689
+ }, []);
31659
31690
  const onSubmit = async () => {
31660
31691
  setLoadingStatus("loading");
31661
31692
  const trustDetails2 = mapTrustToLegalEntity(data);
@@ -31826,7 +31857,7 @@ function TrustDropinComponent({
31826
31857
  ...derivedProps,
31827
31858
  activeForm,
31828
31859
  capabilities,
31829
- data,
31860
+ data: dataFromResponse,
31830
31861
  country: ((_a = data == null ? void 0 : data.trustRegistrationDetails) == null ? void 0 : _a.country) ?? country2,
31831
31862
  problems,
31832
31863
  handleAddressSearch,
@@ -31901,7 +31932,10 @@ function DropinComposerComponent({
31901
31932
  const [associatedLegalEntityParent, setAssociatedLegalEntityParent] = useState(null);
31902
31933
  const [legalEntityType, setLegalEntityType] = useState(null);
31903
31934
  const [solePropietor, setSolePropietor] = useState(null);
31904
- const [trust2, setTrust] = useState(null);
31935
+ const [trust2, refreshTrust] = useTrust({
31936
+ rootLegalEntity,
31937
+ handleGetLegalEntity: args.handleGetLegalEntity
31938
+ });
31905
31939
  const exemptSettlor = useExemptSettlor({
31906
31940
  trust: trust2,
31907
31941
  handleGetLegalEntity: args.handleGetLegalEntity
@@ -31920,6 +31954,7 @@ function DropinComposerComponent({
31920
31954
  const additionalSalesChannels = useSalesChannelsSettings();
31921
31955
  const isOrganizationSettlorWithExemptionEnabled = isOrganizationSettlorWithExemptionReasonEnabled(isExperimentEnabled("AllowOrganizationSettlorWithExemptionReason"), trust2 == null ? void 0 : trust2.trust.countryOfGoverningLaw);
31922
31956
  const allowMoreRolesForMainRootTrustee = isExperimentEnabled("AllowMoreRolesForMainRootTrustee");
31957
+ const trustMembers2 = trust2 ? allowMoreRolesForMainRootTrustee ? getRootTrusteeTrustMembers(trust2, rootLegalEntity, exemptSettlor) : getTrustMembers(trust2, rootLegalEntity, exemptSettlor) : [];
31923
31958
  const getLegalEntityProblems = (le) => {
31924
31959
  var _a2;
31925
31960
  if (le == null ? void 0 : le.id) {
@@ -32029,18 +32064,6 @@ function DropinComposerComponent({
32029
32064
  }
32030
32065
  return void 0;
32031
32066
  }, [i18n, rootLegalEntity.id]);
32032
- const refreshTrust = async () => {
32033
- if (trust2.id && (args == null ? void 0 : args.handleGetLegalEntity)) {
32034
- try {
32035
- const response = await (args == null ? void 0 : args.handleGetLegalEntity(trust2.id));
32036
- setTrust(response);
32037
- return response;
32038
- } catch (e) {
32039
- logger$8.warn(i18n.get("failedToFetchTrustDetails"));
32040
- }
32041
- }
32042
- return void 0;
32043
- };
32044
32067
  const deleteTransferInstrument = async (id2) => {
32045
32068
  if (id2 && (args == null ? void 0 : args.handleDeleteTransferInstrument)) {
32046
32069
  try {
@@ -32232,21 +32255,18 @@ function DropinComposerComponent({
32232
32255
  }
32233
32256
  };
32234
32257
  const onNavigateToTrust = async (task = TaskTypes.TRUST) => {
32235
- var _a2, _b2;
32236
- const trustId = (_b2 = (_a2 = rootLegalEntity == null ? void 0 : rootLegalEntity.entityAssociations) == null ? void 0 : _a2.find((association2) => association2.type === LegalEntityType.TRUST)) == null ? void 0 : _b2.legalEntityId;
32237
- if (trustId) {
32238
- try {
32239
- const currentTrust = await (args == null ? void 0 : args.handleGetLegalEntity(trustId));
32240
- setTrust(currentTrust);
32258
+ try {
32259
+ const trust22 = await refreshTrust();
32260
+ if (trust22) {
32241
32261
  onNavigateTo(task);
32242
- } catch (e) {
32243
- showToast({
32244
- label: i18n.get("failedToFetchTrustDetails"),
32245
- type: ToastType.ERROR
32246
- });
32262
+ } else {
32263
+ onNavigateTo(TaskTypes.TRUST);
32247
32264
  }
32248
- } else {
32249
- onNavigateTo(TaskTypes.TRUST);
32265
+ } catch (e) {
32266
+ showToast({
32267
+ label: i18n.get("failedToFetchTrustDetails"),
32268
+ type: ToastType.ERROR
32269
+ });
32250
32270
  }
32251
32271
  };
32252
32272
  const onNavigateToTrustMember = async (tm) => {
@@ -32470,6 +32490,7 @@ function DropinComposerComponent({
32470
32490
  serviceAgreementTypes,
32471
32491
  serviceAgreementAcceptanceInfos,
32472
32492
  isReview: reviewRequired,
32493
+ hasRequiredTrustMemberCount: hasRequiredTrustMemberCount(trustMembers2),
32473
32494
  onTransferInstrumentDelete: deleteTransferInstrument
32474
32495
  });
32475
32496
  case TaskTypes.DECISION_MAKER_OVERVIEW:
@@ -32738,7 +32759,7 @@ function DropinComposerComponent({
32738
32759
  });
32739
32760
  case TaskTypes.TRUST_MEMBER_OVERVIEW:
32740
32761
  return jsx(TrustMembersOverview, {
32741
- trustMembers: allowMoreRolesForMainRootTrustee ? getRootTrusteeTrustMembers(trust2, rootLegalEntity, exemptSettlor) : getTrustMembers(trust2, rootLegalEntity, exemptSettlor),
32762
+ trustMembers: trustMembers2,
32742
32763
  getTrustMemberTaskStatus: (member) => getTaskStatus(EntityType.LEGAL_ENTITY, capabilityProblems, rootLegalEntity, member.trustMemberType === "undefinedBeneficiary" ? void 0 : [member.legalEntityId, ...getDirectEntityAssociations(rootLegalEntity, member.legalEntityId).map((association2) => association2.legalEntityId)]),
32743
32764
  navigateBackToTaskList: navigateBack,
32744
32765
  navigateToEditTrustMember: onNavigateToTrustMemberRoleAndType,
@@ -34044,15 +34065,6 @@ const I18nProvider = ({
34044
34065
  children
34045
34066
  });
34046
34067
  };
34047
- const ReactQueryClient = new QueryClient();
34048
- function ReactQueryProvider({
34049
- children
34050
- }) {
34051
- return jsx(QueryClientProvider, {
34052
- client: ReactQueryClient,
34053
- children
34054
- });
34055
- }
34056
34068
  const settingsDefaults = {
34057
34069
  acceptedCountries: void 0,
34058
34070
  allowBankAccountFormatSelection: false,
@@ -34405,11 +34417,9 @@ class UIElement extends BaseElement {
34405
34417
  children: jsx(AutoResizer, {
34406
34418
  children: jsx(ToastContextProvider, {
34407
34419
  children: jsx(StateProvider, {
34408
- children: jsx(ReactQueryProvider, {
34409
- children: jsx(Component, {
34410
- ...this.props.componentProps,
34411
- eventEmitter: this.eventEmitter
34412
- })
34420
+ children: jsx(Component, {
34421
+ ...this.props.componentProps,
34422
+ eventEmitter: this.eventEmitter
34413
34423
  })
34414
34424
  })
34415
34425
  })
@@ -1,4 +1,4 @@
1
1
  import '../TaskList.scss';
2
2
  import { TaskListComponentProps } from '../types';
3
- declare function TaskListComponent({ tasks, trackingConfig, onNavigateToTask, legalEntityResponse, capabilityProblems, onPciDownload, isReview, pciStatus, serviceAgreementTypes, serviceAgreementAcceptanceInfos, onTransferInstrumentDelete, }: TaskListComponentProps): import("preact").JSX.Element;
3
+ declare function TaskListComponent({ tasks, trackingConfig, onNavigateToTask, legalEntityResponse, capabilityProblems, onPciDownload, isReview, pciStatus, serviceAgreementTypes, serviceAgreementAcceptanceInfos, hasRequiredTrustMemberCount, onTransferInstrumentDelete, }: TaskListComponentProps): import("preact").JSX.Element;
4
4
  export default TaskListComponent;
@@ -63,6 +63,7 @@ export interface TaskListComponentProps {
63
63
  onPciDownload?(): void;
64
64
  country?: string;
65
65
  onTransferInstrumentDelete: (id: string) => void;
66
+ hasRequiredTrustMemberCount?: boolean;
66
67
  trackingConfig?: {
67
68
  topLevelLegalEntity: ExistingLegalEntity;
68
69
  };
@@ -0,0 +1,11 @@
1
+ import { DropinAPIHandlers } from '../../components/Dropins/types';
2
+ import { ExistingLegalEntity } from '../models/api/legal-entity';
3
+ interface UseTrustArgs {
4
+ rootLegalEntity: ExistingLegalEntity;
5
+ handleGetLegalEntity: NonNullable<DropinAPIHandlers['handleGetLegalEntity']>;
6
+ }
7
+ export declare const useTrust: ({ rootLegalEntity, handleGetLegalEntity, }: UseTrustArgs) => [
8
+ ExistingLegalEntity | undefined,
9
+ () => Promise<ExistingLegalEntity | undefined>
10
+ ];
11
+ export {};
@@ -1,3 +1,4 @@
1
+ import { TrustMember } from '../components/TrustMembers/types';
1
2
  import { TrustTypeOption } from '../components/TrustRegistrationDetails/types';
2
3
  import { ExistingLegalEntity, LegalEntity } from '../core/models/api/legal-entity';
3
4
  import { LegalEntityAssociation } from '../core/models/api/legal-entity-association';
@@ -9,5 +10,5 @@ export declare const getOwnTrustMembers: (rootLegalEntity: ExistingLegalEntity)
9
10
  export declare const getOwnTrustMembersLegalEntityIds: (rootLegalEntity: ExistingLegalEntity) => string[];
10
11
  export declare const getOwnTrustLegalEntityIdAsArray: (legalEntity: LegalEntity) => string[];
11
12
  export declare const getOwnTrustProblems: (legalEntity: LegalEntity, capabilityProblems: CapabilityProblems) => EntityProblems | undefined;
12
- export declare const hasMinRequiredTrustMemberCount: (rootLegalEntity: ExistingLegalEntity) => boolean;
13
+ export declare const hasRequiredTrustMemberCount: (trustMembers: TrustMember[]) => boolean;
13
14
  export declare const getCountrySpecificTrustTypeOptions: (country: CountryCode) => TrustTypeOption[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "2.34.0",
3
+ "version": "2.34.2",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -70,7 +70,6 @@
70
70
  "dependencies": {
71
71
  "@adyen/adyen-document-viewer": "^1.1.0",
72
72
  "@adyen/openbankingsdk": "^0.1.2",
73
- "@tanstack/react-query": "^5.18.1",
74
73
  "classnames": "^2.3.2",
75
74
  "isomorphic-dompurify": "^0.13.0",
76
75
  "lodash": "^4.17.21",
@@ -88,7 +87,6 @@
88
87
  "@storybook/core-server": "^8.0.4",
89
88
  "@storybook/preact": "^8.0.4",
90
89
  "@storybook/preact-vite": "^8.0.4",
91
- "@tanstack/eslint-plugin-query": "^4.38.0",
92
90
  "@testing-library/jest-dom": "^5.17.0",
93
91
  "@testing-library/preact": "^3.2.3",
94
92
  "@testing-library/user-event": "^14.4.3",
@@ -136,10 +134,6 @@
136
134
  "vitest": "^1.3.1"
137
135
  },
138
136
  "overrides": {
139
- "@tanstack/react-query": {
140
- "react": "npm:@preact/compat@*",
141
- "react-dom": "npm:@preact/compat@*"
142
- },
143
137
  "msw": {
144
138
  "typescript": "^5"
145
139
  },
@@ -1,2 +0,0 @@
1
- import { QueryClient } from '@tanstack/react-query';
2
- export declare const ReactQueryClient: QueryClient;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function ReactQueryProvider({ children }: {
3
- children: JSX.Element;
4
- }): import("preact").JSX.Element;