@adyen/kyc-components 2.41.0 → 2.41.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.
@@ -10,7 +10,6 @@ import OpenBankingSDK from "@adyen/openbankingsdk";
10
10
  import { jsxs as jsxs$1, jsx as jsx$1 } from "preact/compat/jsx-runtime";
11
11
  import "@adyen/adyen-document-viewer/dist/adyen-document-viewer.min.css";
12
12
  import AdyenDocumentViewer from "@adyen/adyen-document-viewer";
13
- import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
14
13
  const ConfigurationApiContext = createContext(void 0);
15
14
  const useConfigurationApi = () => {
16
15
  const configurationApi = useContext(ConfigurationApiContext);
@@ -10202,7 +10201,10 @@ const entityTypeToCorrespondingAccountHolderOption = {
10202
10201
  [LegalEntityType.SOLE_PROPRIETORSHIP]: "mySoleProprietorName",
10203
10202
  [LegalEntityType.TRUST]: "aTrust"
10204
10203
  };
10205
- const getDefaultAccountHolderType = (legalEntityResponse, isTypeChanging = false) => {
10204
+ const getDefaultAccountHolderType = (legalEntityResponse, isTypeChanging = false, accountHolder2) => {
10205
+ if (accountHolder2) {
10206
+ return accountHolder2;
10207
+ }
10206
10208
  if (!(legalEntityResponse == null ? void 0 : legalEntityResponse.type))
10207
10209
  return void 0;
10208
10210
  if (hasOwnEntityAssociationOfType(LegalEntityType.SOLE_PROPRIETORSHIP, legalEntityResponse.entityAssociations, legalEntityResponse.id)) {
@@ -10455,6 +10457,7 @@ const companyTypeValidationRules = {
10455
10457
  };
10456
10458
  const companyTypeFields = ["entityType", ...accountHolderFields];
10457
10459
  function CompanyTypeComponent(props) {
10460
+ var _a;
10458
10461
  const {
10459
10462
  i18n
10460
10463
  } = useI18nContext();
@@ -10485,8 +10488,8 @@ function CompanyTypeComponent(props) {
10485
10488
  const formUtils = formUtilities(props, i18n);
10486
10489
  const accountHolderProps = getFieldProps(props, accountHolderFields);
10487
10490
  useEffect(() => {
10488
- var _a, _b;
10489
- (_b = (_a = stateRef.current) == null ? void 0 : _a.setState) == null ? void 0 : _b.call(_a, {
10491
+ var _a2, _b;
10492
+ (_b = (_a2 = stateRef.current) == null ? void 0 : _a2.setState) == null ? void 0 : _b.call(_a2, {
10490
10493
  type: "addToState",
10491
10494
  value: {
10492
10495
  data,
@@ -10499,7 +10502,7 @@ function CompanyTypeComponent(props) {
10499
10502
  }
10500
10503
  });
10501
10504
  }, [data, valid, errors, isValid]);
10502
- const companyTypeOptions = isNewEntryFlowEnabled ? companyTypes.filter((companyType2) => companyType2.id !== CompanyTypesValue.INCORPORATED_PARTNERSHIP && companyType2.id !== CompanyTypesValue.INCORPORATED_ASSOCIATION) : companyTypes;
10505
+ const companyTypeOptions = isNewEntryFlowEnabled && ((_a = props.data) == null ? void 0 : _a.accountHolder) !== "aTrust" ? companyTypes.filter((companyType2) => companyType2.id !== CompanyTypesValue.INCORPORATED_PARTNERSHIP && companyType2.id !== CompanyTypesValue.INCORPORATED_ASSOCIATION) : companyTypes;
10503
10506
  const companyTypeExamples2 = useCompanyTypeExamples(country2);
10504
10507
  return jsxs(Fragment, {
10505
10508
  children: [jsx(StateContextSetter, {
@@ -13462,7 +13465,7 @@ const mapIndividualToLegalEntity = (data) => {
13462
13465
  }
13463
13466
  return requestObj;
13464
13467
  };
13465
- const mapLegalEntityToCompany = (legalEntity, isChangingType) => {
13468
+ const mapLegalEntityToCompany = (legalEntity, isChangingType, accountHolder2) => {
13466
13469
  var _a, _b, _c, _d;
13467
13470
  let companyCompData;
13468
13471
  if (legalEntity == null ? void 0 : legalEntity.organization) {
@@ -13507,7 +13510,7 @@ const mapLegalEntityToCompany = (legalEntity, isChangingType) => {
13507
13510
  ...companyCompData,
13508
13511
  companyType: {
13509
13512
  ...companyCompData == null ? void 0 : companyCompData.companyType,
13510
- accountHolder: getDefaultAccountHolderType(legalEntity, isChangingType)
13513
+ accountHolder: getDefaultAccountHolderType(legalEntity, isChangingType, accountHolder2)
13511
13514
  }
13512
13515
  };
13513
13516
  return companyCompData;
@@ -22623,23 +22626,35 @@ const mapLegalArrangementOptionToCompanyTypesValue = (legalArrangement) => {
22623
22626
  case "associationIncorporated":
22624
22627
  return CompanyTypesValue.INCORPORATED_ASSOCIATION;
22625
22628
  default:
22629
+ return void 0;
22630
+ }
22631
+ };
22632
+ const determineOrganizationTypeToUpdate = (defaultLegalArrangement, targetLegalArrangement, currentCompanyTypeValue) => {
22633
+ if (targetLegalArrangement === "aTrust") {
22634
+ return;
22635
+ }
22636
+ if (!targetLegalArrangement) {
22637
+ const isUnavailableTypesInCompany = currentCompanyTypeValue === CompanyTypesValue.INCORPORATED_ASSOCIATION || currentCompanyTypeValue === CompanyTypesValue.INCORPORATED_PARTNERSHIP;
22638
+ if (isUnavailableTypesInCompany) {
22626
22639
  return "";
22640
+ }
22627
22641
  }
22642
+ return mapLegalArrangementOptionToCompanyTypesValue(targetLegalArrangement);
22628
22643
  };
22629
22644
  const getDefaultLegalArrangementOrSuborganizationType = (legalEntityResponse, accountHolder2) => {
22630
22645
  var _a;
22631
22646
  const entityAssociations = legalEntityResponse == null ? void 0 : legalEntityResponse.entityAssociations;
22632
22647
  const suborganizationType = (_a = legalEntityResponse == null ? void 0 : legalEntityResponse.organization) == null ? void 0 : _a.type;
22648
+ const hasTrust = hasOwnEntityAssociationOfType(LegalEntityType.TRUST, entityAssociations, legalEntityResponse == null ? void 0 : legalEntityResponse.id);
22649
+ if (hasTrust || accountHolder2 === "aTrust") {
22650
+ return "aTrust";
22651
+ }
22633
22652
  if (suborganizationType === CompanyTypesValue.INCORPORATED_PARTNERSHIP) {
22634
22653
  return "partnershipIncorporated";
22635
22654
  }
22636
22655
  if (suborganizationType === CompanyTypesValue.INCORPORATED_ASSOCIATION) {
22637
22656
  return "associationIncorporated";
22638
22657
  }
22639
- const hasTrust = hasOwnEntityAssociationOfType(LegalEntityType.TRUST, entityAssociations, legalEntityResponse == null ? void 0 : legalEntityResponse.id);
22640
- if (hasTrust || accountHolder2 === "aTrust") {
22641
- return "aTrust";
22642
- }
22643
22658
  return void 0;
22644
22659
  };
22645
22660
  const getTargetLegalEntityType = (businessType, legalArrangement, trusteeType, currentLegalEntityType) => {
@@ -22649,11 +22664,12 @@ const getTargetLegalEntityType = (businessType, legalArrangement, trusteeType, c
22649
22664
  if (businessType === "legalArrangement" && legalArrangement === "aTrust" && trusteeType === "individual" || businessType === "individual" || businessType === "soleProprietorship") {
22650
22665
  return LegalEntityType.INDIVIDUAL;
22651
22666
  }
22652
- if (legalArrangement === "partnershipIncorporated") {
22667
+ if (legalArrangement && isLegalArrangementOrganizationSubtype(legalArrangement)) {
22653
22668
  return LegalEntityType.ORGANIZATION;
22654
22669
  }
22655
22670
  return currentLegalEntityType;
22656
22671
  };
22672
+ const isLegalArrangementOrganizationSubtype = (legalArrangementOption) => legalArrangementOption === "partnershipIncorporated" || legalArrangementOption === "associationIncorporated";
22657
22673
  var ToastType = /* @__PURE__ */ ((ToastType2) => {
22658
22674
  ToastType2["LOADING"] = "loading";
22659
22675
  ToastType2["SUCCESS"] = "success";
@@ -22963,7 +22979,8 @@ function CompanyDropinComponent({
22963
22979
  handleUpdateLegalEntity,
22964
22980
  handleHomeClick,
22965
22981
  onTypeSwitch,
22966
- onChange
22982
+ onChange,
22983
+ accountHolder: accountHolder2
22967
22984
  }) {
22968
22985
  var _a, _b;
22969
22986
  const {
@@ -22980,7 +22997,8 @@ function CompanyDropinComponent({
22980
22997
  i18n,
22981
22998
  setLocale
22982
22999
  } = useI18nContext();
22983
- const dataFromResponse = mapLegalEntityToCompany(legalEntityResponse, isTargetLegalEntityType);
23000
+ const isNewEntryFlowEnabled = useEnableNewEntryFlow();
23001
+ const dataFromResponse = mapLegalEntityToCompany(legalEntityResponse, isTargetLegalEntityType, isNewEntryFlowEnabled ? accountHolder2 : void 0);
22984
23002
  const {
22985
23003
  getConfiguration: getConfiguration2
22986
23004
  } = useConfigurationApi();
@@ -23036,7 +23054,7 @@ function CompanyDropinComponent({
23036
23054
  });
23037
23055
  onChange == null ? void 0 : onChange(currentState);
23038
23056
  }, [currentState]);
23039
- const isSkippingCompanyStructure = useEnableNewEntryFlow() && organizationTypesToSkipCompanyStructureForm.includes((_b = legalEntityResponse == null ? void 0 : legalEntityResponse.organization) == null ? void 0 : _b.type);
23057
+ const isSkippingCompanyStructure = useEnableNewEntryFlow() && organizationTypesToSkipCompanyStructureForm.includes((_b = legalEntityResponse == null ? void 0 : legalEntityResponse.organization) == null ? void 0 : _b.type) && accountHolder2 !== "aTrust";
23040
23058
  const forms2 = useMemo(() => {
23041
23059
  const requiredForms = getRequiredForms(companyForms, derivedProps == null ? void 0 : derivedProps.requiredFields, derivedProps == null ? void 0 : derivedProps.optionalFields);
23042
23060
  const validityAddedForms = addValidityToForms(requiredForms, formValidity, problems);
@@ -26488,18 +26506,15 @@ const BusinessTypeSelection = ({
26488
26506
  type: targetLegalEntityType
26489
26507
  };
26490
26508
  await (handleUpdateLegalEntity == null ? void 0 : handleUpdateLegalEntity(updateLegalEntityPayload, legalEntityResponse == null ? void 0 : legalEntityResponse.id));
26491
- if (targetLegalEntityType === LegalEntityType.ORGANIZATION && targetLegalEntityType) {
26492
- await (handleUpdateLegalEntity == null ? void 0 : handleUpdateLegalEntity({
26493
- organization: {
26494
- type: mapLegalArrangementOptionToCompanyTypesValue(targetLegalArrangement)
26495
- }
26496
- }, legalEntityResponse == null ? void 0 : legalEntityResponse.id));
26497
- }
26498
26509
  }
26499
- if (isLegalArrangementChanging && targetLegalArrangement) {
26510
+ if (targetLegalEntityType === LegalEntityType.INDIVIDUAL) {
26511
+ return;
26512
+ }
26513
+ const targetOrganizationType = determineOrganizationTypeToUpdate(defaultLegalArrangementType == null ? void 0 : defaultLegalArrangementType.id, targetLegalArrangement, currentCompanyTypesValue);
26514
+ if (targetOrganizationType !== void 0) {
26500
26515
  await (handleUpdateLegalEntity == null ? void 0 : handleUpdateLegalEntity({
26501
26516
  organization: {
26502
- type: mapLegalArrangementOptionToCompanyTypesValue(targetLegalArrangement)
26517
+ type: targetOrganizationType
26503
26518
  }
26504
26519
  }, legalEntityResponse == null ? void 0 : legalEntityResponse.id));
26505
26520
  }
@@ -31697,11 +31712,8 @@ const getDefaultTask = ({
31697
31712
  showIntroduction,
31698
31713
  shouldShowSingpassSelection
31699
31714
  }) => {
31700
- var _a, _b;
31701
- const hasOwnEntityAssocation = (_a = legalEntity.entityAssociations) == null ? void 0 : _a.some((ea) => ea.associatorId === legalEntity.id);
31702
- const hasOrganizationType = (_b = legalEntity.organization) == null ? void 0 : _b.type;
31703
- const hasProgressedBeyondEntitySelection = hasOwnEntityAssocation || !!hasOrganizationType;
31704
- if (isNewEntryFlowEnabled && !accountHolder2 && !hasProgressedBeyondEntitySelection)
31715
+ const hasLegalEntityProgressedBeyondEntitySelection = hasProgressedBeyondEntitySelection(legalEntity);
31716
+ if (isNewEntryFlowEnabled && !accountHolder2 && !hasLegalEntityProgressedBeyondEntitySelection)
31705
31717
  return TaskTypes.BUSINESS_TYPE_SELECTION;
31706
31718
  if (showIntroduction)
31707
31719
  return TaskTypes.INTRODUCTION;
@@ -31709,6 +31721,12 @@ const getDefaultTask = ({
31709
31721
  return TaskTypes.SINGPASS_SELECTION;
31710
31722
  return TaskTypes.TASKS_OVERVIEW;
31711
31723
  };
31724
+ const hasProgressedBeyondEntitySelection = (legalEntity) => {
31725
+ var _a, _b;
31726
+ const hasOwnEntityAssocation = (_a = legalEntity.entityAssociations) == null ? void 0 : _a.some((ea) => ea.associatorId === legalEntity.id);
31727
+ const hasOrganizationType = (_b = legalEntity.organization) == null ? void 0 : _b.type;
31728
+ return hasOwnEntityAssocation || !!hasOrganizationType;
31729
+ };
31712
31730
  const PAGES_WITH_POLLING = [TaskTypes.DECISION_MAKER_OVERVIEW, TaskTypes.TASKS_OVERVIEW];
31713
31731
  const POLLING_INTERVAL = 3e3;
31714
31732
  const logger$8 = createLogger("DropinComposerComponent");
@@ -32517,7 +32535,8 @@ function DropinComposerComponent({
32517
32535
  handleAddressSearch: args == null ? void 0 : args.handleAddressSearch,
32518
32536
  handleFindAddress: args == null ? void 0 : args.handleFindAddress,
32519
32537
  onTypeSwitch: navigateToTypeSwitcher,
32520
- isTargetLegalEntityType: legalEntityType === LegalEntityType.ORGANIZATION
32538
+ isTargetLegalEntityType: legalEntityType === LegalEntityType.ORGANIZATION,
32539
+ accountHolder: accountHolder2
32521
32540
  });
32522
32541
  case TaskTypes.COMPANY_SEARCH:
32523
32542
  return jsx(CompanySearchDropinComponent, {
@@ -32574,7 +32593,8 @@ function DropinComposerComponent({
32574
32593
  homeButtonLabel: i18n.get("saveAndGoToOverview"),
32575
32594
  associationDetail: trustMember,
32576
32595
  handleAddressSearch: args == null ? void 0 : args.handleAddressSearch,
32577
- handleFindAddress: args == null ? void 0 : args.handleFindAddress
32596
+ handleFindAddress: args == null ? void 0 : args.handleFindAddress,
32597
+ accountHolder: accountHolder2
32578
32598
  });
32579
32599
  case TaskTypes.PAYOUT:
32580
32600
  case TaskTypes.PAYIN:
@@ -33878,7 +33898,7 @@ const ConfigurationApiProvider = ({
33878
33898
  isEmbeddedDropin,
33879
33899
  loadingContext
33880
33900
  } = authContext;
33881
- const sdkVersion = "2.41.0";
33901
+ const sdkVersion = "2.41.2";
33882
33902
  useAnalytics({
33883
33903
  onUserEvent,
33884
33904
  legalEntityId: rootLegalEntityId,
@@ -34037,15 +34057,6 @@ const I18nProvider = ({
34037
34057
  children
34038
34058
  });
34039
34059
  };
34040
- const ReactQueryClient = new QueryClient();
34041
- function ReactQueryProvider({
34042
- children
34043
- }) {
34044
- return jsx(QueryClientProvider, {
34045
- client: ReactQueryClient,
34046
- children
34047
- });
34048
- }
34049
34060
  const settingsDefaults = {
34050
34061
  acceptedCountries: void 0,
34051
34062
  allowBankAccountFormatSelection: false,
@@ -34400,11 +34411,9 @@ class UIElement extends BaseElement {
34400
34411
  children: jsx(AutoResizer, {
34401
34412
  children: jsx(ToastContextProvider, {
34402
34413
  children: jsx(StateProvider, {
34403
- children: jsx(ReactQueryProvider, {
34404
- children: jsx(Component, {
34405
- ...this.props.componentProps,
34406
- eventEmitter: this.eventEmitter
34407
- })
34414
+ children: jsx(Component, {
34415
+ ...this.props.componentProps,
34416
+ eventEmitter: this.eventEmitter
34408
34417
  })
34409
34418
  })
34410
34419
  })
@@ -30,6 +30,7 @@ export declare const useSelectionOptions: (legalEntityResponse: ExistingLegalEnt
30
30
  /**
31
31
  *
32
32
  */
33
- export declare const mapLegalArrangementOptionToCompanyTypesValue: (legalArrangement: LegalArrangementOption | undefined) => CompanyTypesValue | '';
33
+ export declare const mapLegalArrangementOptionToCompanyTypesValue: (legalArrangement: LegalArrangementOption | undefined) => CompanyTypesValue | undefined;
34
+ export declare const determineOrganizationTypeToUpdate: (defaultLegalArrangement?: LegalArrangementOption, targetLegalArrangement?: LegalArrangementOption, currentCompanyTypeValue?: CompanyTypesValue) => CompanyTypesValue | '' | undefined;
34
35
  export declare const getDefaultLegalArrangementOrSuborganizationType: (legalEntityResponse: ExistingLegalEntity | undefined, accountHolder: AccountHolderOption | null) => LegalArrangementOption | undefined;
35
36
  export declare const getTargetLegalEntityType: (businessType: BusinessType | undefined, legalArrangement: LegalArrangementOption | undefined, trusteeType: TrusteeType | undefined, currentLegalEntityType: LegalEntityType | undefined) => LegalEntityType;
@@ -1,2 +1,2 @@
1
1
  import type { CompanyDropinProps } from '../types';
2
- export declare function CompanyDropinComponent({ country: parentCountry, problems: propProblems, hideDropinLayout, taskName, capabilities, homeButtonLabel, taskType, trackingConfig, associationDetail, parentLegalEntity, legalEntityResponse, isTargetLegalEntityType, eventEmitter, onSubmit: onExternalSubmit, handleCreateDocument, handleGetDocument, handleUpdateDocument, handleAddressSearch, handleFindAddress, handleCreateLegalEntity, handleUpdateLegalEntity, handleHomeClick, onTypeSwitch, onChange, }: CompanyDropinProps): import("preact").JSX.Element;
2
+ export declare function CompanyDropinComponent({ country: parentCountry, problems: propProblems, hideDropinLayout, taskName, capabilities, homeButtonLabel, taskType, trackingConfig, associationDetail, parentLegalEntity, legalEntityResponse, isTargetLegalEntityType, eventEmitter, onSubmit: onExternalSubmit, handleCreateDocument, handleGetDocument, handleUpdateDocument, handleAddressSearch, handleFindAddress, handleCreateLegalEntity, handleUpdateLegalEntity, handleHomeClick, onTypeSwitch, onChange, accountHolder, }: CompanyDropinProps): import("preact").JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import type { ExistingLegalEntity } from '../../../core/models/api/legal-entity';
2
2
  import type { CompanyProps, CompanySchema } from '../../Company/types';
3
+ import type { AccountHolderOption } from '../../internal/AccountHolder/types';
3
4
  import type { TrustMember } from '../../TrustMembers/types';
4
5
  import type { DropinAPIHandlers, DropinProps } from '../types';
5
6
  export interface CompanyDropinProps extends Omit<CompanyProps, 'isTopLevelEntity'>, DropinAPIHandlers, DropinProps {
@@ -7,4 +8,5 @@ export interface CompanyDropinProps extends Omit<CompanyProps, 'isTopLevelEntity
7
8
  associationDetail?: TrustMember;
8
9
  isTargetLegalEntityType?: boolean;
9
10
  onSubmit?: (company: CompanySchema) => void;
11
+ accountHolder?: AccountHolderOption;
10
12
  }
@@ -2,7 +2,7 @@ import type { BaseInnerFormProps } from '../../../core/hooks/useForm';
2
2
  import type { LegalEntityType } from '../../../core/models/api/legal-entity-type';
3
3
  import type { CountryCode } from '../../../core/models/country-code';
4
4
  export type LegalArrangementOption = 'aTrust' | 'partnershipIncorporated' | 'partnershipUnincorporated' | 'associationIncorporated';
5
- export type AccountHolderOption = 'myName' | 'mySoleProprietorName' | 'theCompanyIWorkFor' | LegalArrangementOption;
5
+ export type AccountHolderOption = 'myName' | 'mySoleProprietorName' | 'theCompanyIWorkFor' | 'aTrust';
6
6
  export interface AccountHolderSchema {
7
7
  accountHolder?: AccountHolderOption;
8
8
  }
@@ -7,5 +7,5 @@ export declare const entityTypeToCorrespondingAccountHolderOption: Record<LegalE
7
7
  ** Account holder option is not stored in backend as it does not effect any check evaluations.
8
8
  ** The value is computed in the front end based on the associations and current flow of the legalEntity
9
9
  * */
10
- export declare const getDefaultAccountHolderType: (legalEntityResponse: LegalEntity | undefined, isTypeChanging?: boolean) => AccountHolderOption | undefined;
10
+ export declare const getDefaultAccountHolderType: (legalEntityResponse: LegalEntity | undefined, isTypeChanging?: boolean, accountHolder?: AccountHolderOption) => AccountHolderOption | undefined;
11
11
  export declare const allowIndividualWithoutSoleProp: (capabilities: CapabilityName[]) => boolean;
@@ -1,6 +1,7 @@
1
1
  import type { BankDocumentSchema } from '../../components/BankDocument/types';
2
2
  import type { CompanySchema } from '../../components/Company/types';
3
3
  import type { IndividualSchema } from '../../components/Individual/types';
4
+ import type { AccountHolderOption } from '../../components/internal/AccountHolder/types';
4
5
  import type { PayoutDetailsSchema } from '../../components/PayoutDetails/types';
5
6
  import type { PersonalDetailsSchema } from '../../components/PersonalDetails/types';
6
7
  import type { SolePropSchema } from '../../components/SoleProp/types';
@@ -29,7 +30,7 @@ export declare const mapPayoutAccountToTransferInstrument: ({ data, legalEntity
29
30
  }) => TransferInstrument;
30
31
  export declare const mapLegalEntityToIndividual: (legalEntity: ExistingLegalEntity | undefined, isChangingType?: boolean) => IndividualSchema;
31
32
  export declare const mapIndividualToLegalEntity: (data: IndividualSchema) => LegalEntity;
32
- export declare const mapLegalEntityToCompany: (legalEntity: LegalEntity, isChangingType: boolean) => CompanySchema;
33
+ export declare const mapLegalEntityToCompany: (legalEntity: LegalEntity, isChangingType: boolean, accountHolder?: AccountHolderOption) => CompanySchema;
33
34
  export declare const mapCompanyToLegalEntity: (data: CompanySchema) => LegalEntity;
34
35
  export declare const mapLegalEntityToTrust: (legalEntity: LegalEntity) => TrustSchema;
35
36
  export declare const mapTrustToLegalEntity: (data: TrustSchema) => LegalEntity;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "2.41.0",
3
+ "version": "2.41.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.31.0",
74
73
  "classnames": "^2.3.2",
75
74
  "isomorphic-dompurify": "^0.13.0",
76
75
  "lodash": "^4.17.21",
@@ -89,7 +88,6 @@
89
88
  "@storybook/core-server": "^8.0.4",
90
89
  "@storybook/preact": "^8.0.4",
91
90
  "@storybook/preact-vite": "^8.0.4",
92
- "@tanstack/eslint-plugin-query": "^4.38.0",
93
91
  "@testing-library/jest-dom": "^5.17.0",
94
92
  "@testing-library/preact": "^3.2.3",
95
93
  "@testing-library/user-event": "^14.4.3",
@@ -143,9 +141,7 @@
143
141
  },
144
142
  "@storybook/preact-vite": {
145
143
  "vite": "^4 || ^5"
146
- },
147
- "react": "npm:@preact/compat",
148
- "react-dom": "npm:@preact/compat"
144
+ }
149
145
  },
150
146
  "engines": {
151
147
  "node": ">=20"
@@ -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;