@adyen/adyen-platform-experience-web 1.0.0-beta.2 → 1.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.
Files changed (202) hide show
  1. package/dist/ModalContent-387502da.js +2 -0
  2. package/dist/{ModalContent-88fdb6f4.js.map → ModalContent-387502da.js.map} +1 -1
  3. package/dist/cjs/index.js +1 -1
  4. package/dist/es/components/external/TransactionDetails/TransactionDetails.js +6 -6
  5. package/dist/es/components/external/TransactionDetails/components/TransactionData.js +3 -3
  6. package/dist/es/components/external/TransactionDetails/components/TransactionDetails.js +6 -6
  7. package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.js +2 -2
  8. package/dist/es/components/external/TransactionsOverview/components/BalanceAccountSelector/useBalanceAccountSelection.js +7 -7
  9. package/dist/es/components/external/TransactionsOverview/components/Balances/Balances.js +9 -9
  10. package/dist/es/components/external/TransactionsOverview/components/ModalContent.js +4 -4
  11. package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.js +6 -6
  12. package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.js +7 -7
  13. package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.js +15 -15
  14. package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.js +3 -3
  15. package/dist/es/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.js +6 -6
  16. package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.js +7 -7
  17. package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.js +31 -31
  18. package/dist/es/components/external/TransactionsOverview/components/TransactionsDisplay/TransactionsDisplay.js +15 -15
  19. package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.js +6 -6
  20. package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewContainer/TransactionsOverviewContainer.js +21 -21
  21. package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewDateFilter.js +21 -21
  22. package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.js +30 -30
  23. package/dist/es/components/external/TransactionsOverview/components/utils.js +1 -1
  24. package/dist/es/components/external/TransactionsOverview/hooks/useMaxWidths.js +4 -4
  25. package/dist/es/components/external/UIElement.js +4 -4
  26. package/dist/es/components/internal/BaseButton/BaseButton.js +11 -11
  27. package/dist/es/components/internal/BaseList/BaseList.js +2 -2
  28. package/dist/es/components/internal/Button/Button.js +9 -9
  29. package/dist/es/components/internal/Button/hooks/useButton.js +2 -2
  30. package/dist/es/components/internal/Calendar/components/CalendarControls/CalendarControls.js +2 -2
  31. package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDayOfWeek.js +4 -4
  32. package/dist/es/components/internal/Calendar/hooks/useCalendar.js +13 -13
  33. package/dist/es/components/internal/Calendar/hooks/useTimezone.js +2 -2
  34. package/dist/es/components/internal/DataGrid/DataGrid.js +6 -6
  35. package/dist/es/components/internal/DataGrid/components/InteractiveBody.js +8 -8
  36. package/dist/es/components/internal/DataGrid/components/TableBody.js +5 -5
  37. package/dist/es/components/internal/DataGrid/components/TableCells.js +2 -2
  38. package/dist/es/components/internal/DataGrid/hooks/useInteractiveDataGrid.js +2 -2
  39. package/dist/es/components/internal/DatePicker/DatePicker.js +9 -9
  40. package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.js +9 -9
  41. package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.js +29 -29
  42. package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.js +10 -10
  43. package/dist/es/components/internal/ExpandableCard/ExpandableCard.js +14 -14
  44. package/dist/es/components/internal/FilterBar/FilterBar.js +12 -12
  45. package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.js +8 -8
  46. package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.js +26 -26
  47. package/dist/es/components/internal/FilterBar/filters/AmountFilter/RangeSelection.js +3 -3
  48. package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.js +27 -27
  49. package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilter.js +17 -17
  50. package/dist/es/components/internal/FormFields/InputBase.js +16 -16
  51. package/dist/es/components/internal/FormFields/InputText.js +2 -2
  52. package/dist/es/components/internal/FormFields/Select/Select.js +27 -27
  53. package/dist/es/components/internal/FormFields/Select/components/SelectButton.js +16 -16
  54. package/dist/es/components/internal/FormFields/Select/components/SelectList.js +21 -21
  55. package/dist/es/components/internal/FormFields/Select/components/SelectListItem.js +9 -9
  56. package/dist/es/components/internal/FormFields/Select/hooks/useSelect.js +7 -7
  57. package/dist/es/components/internal/Image/Image.js +2 -2
  58. package/dist/es/components/internal/Img/Img.js +4 -4
  59. package/dist/es/components/internal/Modal/Modal.js +16 -16
  60. package/dist/es/components/internal/Pagination/Pagination.js +4 -4
  61. package/dist/es/components/internal/Pagination/hooks/usePageLimit.js +2 -2
  62. package/dist/es/components/internal/Pagination/hooks/usePaginatedRecords.js +42 -44
  63. package/dist/es/components/internal/Pagination/hooks/usePagination.js +15 -15
  64. package/dist/es/components/internal/Popover/Popover.js +31 -31
  65. package/dist/es/components/internal/Popover/PopoverTitle/PopoverTitle.js +2 -2
  66. package/dist/es/components/internal/SVGIcons/ChevronLeft.js +3 -3
  67. package/dist/es/components/internal/SVGIcons/ChevronRight.js +3 -3
  68. package/dist/es/components/internal/SVGIcons/ChevronUp.js +2 -2
  69. package/dist/es/components/internal/SVGIcons/Filter.js +2 -2
  70. package/dist/es/components/internal/Tag/Tag.js +3 -3
  71. package/dist/es/components/internal/Tooltip/Tooltip.js +3 -3
  72. package/dist/es/components/internal/Typography/Typography.js +2 -2
  73. package/dist/es/core/Auth/AuthProvider.js +6 -6
  74. package/dist/es/core/Context/CoreProvider.js +4 -4
  75. package/dist/es/core/Localization/utils.js +30 -30
  76. package/dist/es/core/Session/Session.js +1 -1
  77. package/dist/es/core/core.js +9 -9
  78. package/dist/es/external/preact/compat/dist/compat.module.js +86 -86
  79. package/dist/es/external/preact/dist/preact.module.js +241 -234
  80. package/dist/es/external/preact/hooks/dist/hooks.module.js +86 -84
  81. package/dist/es/external/preact/jsx-runtime/dist/jsxRuntime.module.js +5 -5
  82. package/dist/es/hooks/element/useClickOutside.js +2 -2
  83. package/dist/es/hooks/element/useDetachedRender.js +2 -2
  84. package/dist/es/hooks/element/useFocusCursor.js +2 -2
  85. package/dist/es/hooks/element/useFocusTrap.js +2 -2
  86. package/dist/es/hooks/element/usePopoverPositioner.js +27 -27
  87. package/dist/es/hooks/useCommitAction/useCommitAction.js +2 -2
  88. package/dist/es/hooks/useFetch/useFetch.js +1 -1
  89. package/dist/es/hooks/useModalDetails/useModalDetails.js +4 -4
  90. package/dist/es/hooks/useReactiveState/useReactiveState.js +10 -10
  91. package/dist/es/hooks/useSetupEndpoint/useSetupEndpoint.js +4 -4
  92. package/dist/es/utils/SessionStorage.js +31 -0
  93. package/dist/index-8daceaea.js +12 -0
  94. package/dist/index-8daceaea.js.map +1 -0
  95. package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts +2 -2
  96. package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts.map +1 -1
  97. package/dist/types/components/external/TransactionDetails/components/TransactionDataSkeleton.d.ts +2 -2
  98. package/dist/types/components/external/TransactionDetails/components/TransactionDataSkeleton.d.ts.map +1 -1
  99. package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.d.ts +1 -5
  100. package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.d.ts.map +1 -1
  101. package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.d.ts +1 -1
  102. package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.d.ts.map +1 -1
  103. package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/utils.d.ts.map +1 -1
  104. package/dist/types/components/external/TransactionsOverview/components/TransactionListError/TransactionListError.d.ts +1 -1
  105. package/dist/types/components/external/TransactionsOverview/components/TransactionListError/TransactionListError.d.ts.map +1 -1
  106. package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts.map +1 -1
  107. package/dist/types/components/external/TransactionsOverview/components/utils.d.ts +1 -1
  108. package/dist/types/components/external/TransactionsOverview/hooks/useMaxWidths.d.ts.map +1 -1
  109. package/dist/types/components/external/TransactionsOverview/hooks/useTransactionsOverviewMultiSelectionFilters.d.ts +2 -2
  110. package/dist/types/components/internal/Button/constants.d.ts +7 -7
  111. package/dist/types/components/internal/Button/constants.d.ts.map +1 -1
  112. package/dist/types/components/internal/Calendar/calendar/shared/indexed/index.d.ts.map +1 -1
  113. package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts +1 -1
  114. package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts.map +1 -1
  115. package/dist/types/components/internal/Calendar/components/CalendarGrid/utils.d.ts +2 -2
  116. package/dist/types/components/internal/Calendar/components/CalendarGrid/utils.d.ts.map +1 -1
  117. package/dist/types/components/internal/CopyText/CopyText.d.ts.map +1 -1
  118. package/dist/types/components/internal/DataGrid/components/InteractiveBody.d.ts.map +1 -1
  119. package/dist/types/components/internal/DataGrid/components/SkeletonBody.d.ts +1 -1
  120. package/dist/types/components/internal/DataGrid/components/SkeletonBody.d.ts.map +1 -1
  121. package/dist/types/components/internal/DataGrid/components/TableBody.d.ts +1 -1
  122. package/dist/types/components/internal/DataGrid/components/TableBody.d.ts.map +1 -1
  123. package/dist/types/components/internal/DataGrid/components/TableCells.d.ts +1 -1
  124. package/dist/types/components/internal/DataGrid/components/TableCells.d.ts.map +1 -1
  125. package/dist/types/components/internal/DataGrid/hooks/useInteractiveDataGrid.d.ts.map +1 -1
  126. package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.d.ts +1 -1
  127. package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.d.ts.map +1 -1
  128. package/dist/types/components/internal/FormFields/Select/Select.d.ts.map +1 -1
  129. package/dist/types/components/internal/FormFields/Select/components/SelectButton.d.ts.map +1 -1
  130. package/dist/types/components/internal/FormFields/Select/components/SelectListItem.d.ts +1 -3
  131. package/dist/types/components/internal/FormFields/Select/components/SelectListItem.d.ts.map +1 -1
  132. package/dist/types/components/internal/FormFields/Select/constants.d.ts +21 -21
  133. package/dist/types/components/internal/FormFields/Select/constants.d.ts.map +1 -1
  134. package/dist/types/components/internal/FormFields/Select/hooks/useSelect.d.ts +1 -1
  135. package/dist/types/components/internal/FormFields/Select/hooks/useSelect.d.ts.map +1 -1
  136. package/dist/types/components/internal/FormFields/index.d.ts +1 -1
  137. package/dist/types/components/internal/FormFields/index.d.ts.map +1 -1
  138. package/dist/types/components/internal/Pagination/hooks/useCursorPaginatedRecords.d.ts.map +1 -1
  139. package/dist/types/components/internal/Pagination/hooks/useOffsetPaginatedRecords.d.ts.map +1 -1
  140. package/dist/types/components/internal/Pagination/hooks/usePaginatedRecords.d.ts.map +1 -1
  141. package/dist/types/components/internal/Pagination/hooks/usePaginatedRecordsFilters.d.ts.map +1 -1
  142. package/dist/types/components/internal/Pagination/hooks/usePagination.d.ts +1 -1
  143. package/dist/types/components/internal/Pagination/hooks/usePagination.d.ts.map +1 -1
  144. package/dist/types/components/internal/Pagination/types.d.ts +5 -1
  145. package/dist/types/components/internal/Pagination/types.d.ts.map +1 -1
  146. package/dist/types/components/internal/Popover/constants.d.ts +6 -6
  147. package/dist/types/components/internal/Popover/constants.d.ts.map +1 -1
  148. package/dist/types/components/internal/Tooltip/useTooltipListeners.d.ts.map +1 -1
  149. package/dist/types/components/types.d.ts +2 -0
  150. package/dist/types/components/types.d.ts.map +1 -1
  151. package/dist/types/core/Localization/amount/amount-util.d.ts +28 -0
  152. package/dist/types/core/Localization/amount/amount-util.d.ts.map +1 -1
  153. package/dist/types/core/Localization/datetime/restamper/utils.d.ts.map +1 -1
  154. package/dist/types/core/Localization/localization-utils.d.ts.map +1 -1
  155. package/dist/types/core/Localization/utils.d.ts +468 -3
  156. package/dist/types/core/Localization/utils.d.ts.map +1 -1
  157. package/dist/types/core/core.d.ts +19 -0
  158. package/dist/types/core/core.d.ts.map +1 -1
  159. package/dist/types/core/types.d.ts +5 -0
  160. package/dist/types/core/types.d.ts.map +1 -1
  161. package/dist/types/hooks/element/useClickOutside.d.ts +1 -1
  162. package/dist/types/hooks/element/useClickOutside.d.ts.map +1 -1
  163. package/dist/types/hooks/element/useDetachedRender.d.ts.map +1 -1
  164. package/dist/types/hooks/element/useFocusTrap.d.ts.map +1 -1
  165. package/dist/types/hooks/useImageUrl/useImageUrl.d.ts.map +1 -1
  166. package/dist/types/hooks/useModalDetails/useModalDetails.d.ts.map +1 -1
  167. package/dist/types/hooks/useMounted/useMounted.d.ts +1 -1
  168. package/dist/types/hooks/useMounted/useMounted.d.ts.map +1 -1
  169. package/dist/types/hooks/useReactiveState/useReactiveState.d.ts.map +1 -1
  170. package/dist/types/hooks/useReflex/core/reflex.d.ts.map +1 -1
  171. package/dist/types/hooks/useReflex/core/utils.d.ts.map +1 -1
  172. package/dist/types/hooks/useReflex/hooks/useReflex.d.ts.map +1 -1
  173. package/dist/types/hooks/useSessionAwareRequest/useSessionAwareRequest.d.ts.map +1 -1
  174. package/dist/types/hooks/useSetupEndpoint/useSetupEndpoint.d.ts +1 -1
  175. package/dist/types/hooks/useSetupEndpoint/useSetupEndpoint.d.ts.map +1 -1
  176. package/dist/types/types/models/openapi/BalanceAccountsResource.d.ts +104 -0
  177. package/dist/types/types/models/openapi/BalanceAccountsResource.d.ts.map +1 -0
  178. package/dist/types/types/models/openapi/SetupResource.d.ts +59 -0
  179. package/dist/types/types/models/openapi/SetupResource.d.ts.map +1 -0
  180. package/dist/types/types/models/openapi/TransactionsResource.d.ts +198 -0
  181. package/dist/types/types/models/openapi/TransactionsResource.d.ts.map +1 -0
  182. package/dist/types/types/models/openapi/endpoints.d.ts +11 -0
  183. package/dist/types/types/models/openapi/endpoints.d.ts.map +1 -0
  184. package/dist/types/utils/SessionStorage.d.ts +11 -0
  185. package/dist/types/utils/SessionStorage.d.ts.map +1 -0
  186. package/dist/types/utils/common/index.d.ts +2 -2
  187. package/dist/types/utils/common/index.d.ts.map +1 -1
  188. package/dist/types/utils/fixedForwardRef.d.ts +3 -3
  189. package/dist/types/utils/fixedForwardRef.d.ts.map +1 -1
  190. package/dist/types/utils/watchable/core/Watchable.d.ts +5 -3
  191. package/dist/types/utils/watchable/core/Watchable.d.ts.map +1 -1
  192. package/dist/types/utils/watchable/core/helpers.d.ts +4 -2
  193. package/dist/types/utils/watchable/core/helpers.d.ts.map +1 -1
  194. package/dist/types/utils/watchable/core/syncEffect.d.ts +1 -1
  195. package/dist/types/utils/watchable/core/syncEffect.d.ts.map +1 -1
  196. package/package.json +5 -5
  197. package/dist/ModalContent-88fdb6f4.js +0 -2
  198. package/dist/es/utils/Storage.js +0 -31
  199. package/dist/index-7e2df524.js +0 -12
  200. package/dist/index-7e2df524.js.map +0 -1
  201. package/dist/types/utils/Storage.d.ts +0 -11
  202. package/dist/types/utils/Storage.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"useMounted.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useMounted/useMounted.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,UAAU,uBAAyB,GAAG,EAAE,KAAK,GAAG,8EAcrD,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"useMounted.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useMounted/useMounted.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,UAAU,uBAAyB,GAAG,EAAE,KAAK,GAAG,kBAAmB,CAAC,+CAczE,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useReactiveState.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useReactiveState/useReactiveState.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAmE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEvI,QAAA,MAAM,gBAAgB,wJAyErB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"useReactiveState.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useReactiveState/useReactiveState.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAmE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEvI,QAAA,MAAM,gBAAgB,yCACV,oBAAoB,KAAK,EAAE,KAAK,CAAC,0CAE1C,uBAAuB,KAAK,EAAE,KAAK,CAsErC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"reflex.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useReflex/core/reflex.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAA6B,MAAM,EAAc,YAAY,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAI7G,eAAO,MAAM,wBAAwB,iDA0BpC,CAAC;AAEF,eAAO,MAAM,qBAAqB,mCA4DjC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
1
+ {"version":3,"file":"reflex.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useReflex/core/reflex.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAA6B,MAAM,EAAc,YAAY,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAI7G,eAAO,MAAM,wBAAwB,oBAAqB,aAAa,CAAC,CAAC,KAAG,OAAO,CAAC,CA0BnF,CAAC;AAEF,eAAO,MAAM,qBAAqB,iBAAgB,gBAAgB,CAAC,CA4DlE,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useReflex/core/utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGtE,wBAAgB,kBAAkB,CAAC,CAAC,GAAG,GAAG,EAAE,KAAK,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,KAAK,IAAI,YAAY,CAAC,CAAC,CAAC,CAEzF;AAED,eAAO,MAAM,QAAQ,mBAAoB,GAAG,uBAa3C,CAAC;AAEF,eAAO,MAAM,MAAM,gDAAmH,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useReflex/core/utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGtE,wBAAgB,kBAAkB,CAAC,CAAC,GAAG,GAAG,EAAE,KAAK,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,KAAK,IAAI,YAAY,CAAC,CAAC,CAAC,CAEzF;AAED,eAAO,MAAM,QAAQ,mBAAoB,GAAG,uBAa3C,CAAC;AAEF,eAAO,MAAM,MAAM,wBAAyB,WAAW,CAAC,CAAC,KAAG,IAAI,CAAC,CAAqE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useReflex.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useReflex/hooks/useReflex.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE3E,QAAA,MAAM,SAAS,uFASd,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"useReflex.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useReflex/hooks/useReflex.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE3E,QAAA,MAAM,SAAS,oBAAqB,aAAa,CAAC,CAAC,eAAe,SAAS,WAAW,CAAC,CAAC,CAAC,cASxF,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useSessionAwareRequest.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useSessionAwareRequest/useSessionAwareRequest.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAkB7E,iBAAS,sBAAsB;wCAgBG,KAAK,WAAW,EAAE,QAAQ,CAAC,UAAU,UAAU,SAAS,GAAG;EAc5F;AAED,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"useSessionAwareRequest.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useSessionAwareRequest/useSessionAwareRequest.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAkB7E,iBAAS,sBAAsB;wCAgBG,KAAK,WAAW,EAAE,QAAQ,CAAC,UAAU,UAAU,SAAS,GAAG,KAAG,QAAQ,CAAC,CAAC;EAczG;AAED,eAAe,sBAAsB,CAAC"}
@@ -7,6 +7,6 @@ type FunctionParams<Endpoint extends EndpointName, Operation extends EndpointsOp
7
7
  type HasParameter<Parameter extends keyof any, T> = Parameter extends keyof T ? true : false;
8
8
  type RequiresParameter<T> = HasParameter<'parameters', T>;
9
9
  export type SuccessResponse<Operation extends Record<any, any>> = Operation['responses'][200]['content']['application/json'];
10
- export declare const useSetupEndpoint: <Endpoint extends "getTransactions" | "getTransaction" | "getTransactionTotals" | "getBalances" | "getBalanceAccounts", Operation extends EndpointsOperations[Endpoint]>(endpoint: Endpoint) => (...args: FunctionParams<Endpoint, Operation>) => Promise<SuccessResponse<Operation>>;
10
+ export declare const useSetupEndpoint: <Endpoint extends EndpointName, Operation extends EndpointsOperations[Endpoint]>(endpoint: Endpoint) => (...args: FunctionParams<Endpoint, Operation>) => Promise<SuccessResponse<Operation>>;
11
11
  export {};
12
12
  //# sourceMappingURL=useSetupEndpoint.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSetupEndpoint.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useSetupEndpoint/useSetupEndpoint.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAIzF,OAAO,EAAc,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAG7E,KAAK,MAAM,CAAC,CAAC,SAAS,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC,YAAY,CAAC,CAAC;AAE1D,KAAK,mBAAmB,GAAG,gBAAgB,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE3E,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,WAAW,EAAE,mBAAmB,CAAC,CAAC;AAEtE,KAAK,cAAc,CAAC,QAAQ,SAAS,YAAY,EAAE,SAAS,SAAS,mBAAmB,CAAC,QAAQ,CAAC,IAAI,iBAAiB,CAAC,SAAS,CAAC,SAAS,IAAI,GACzI,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,SAAS,IAAI,GAAG,MAAM,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,GAC1G,CAAC,OAAO,EAAE,gBAAgB,CAAC,CAAC;AAElC,KAAK,YAAY,CAAC,SAAS,SAAS,MAAM,GAAG,EAAE,CAAC,IAAI,SAAS,SAAS,MAAM,CAAC,GAAG,IAAI,GAAG,KAAK,CAAC;AAE7F,KAAK,iBAAiB,CAAC,CAAC,IAAI,YAAY,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC;AAE1D,MAAM,MAAM,eAAe,CAAC,SAAS,SAAS,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,SAAS,CAAC,WAAW,CAAC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C,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAE7H,eAAO,MAAM,gBAAgB,6FAA8F,QAAQ,eAM3G,eAAe,QAAQ,EAAE,SAAS,CAAC,KAAG,QAAQ,gBAAgB,SAAS,CAAC,CAqB/F,CAAC"}
@@ -0,0 +1,104 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+ export interface paths {
6
+ "/v1/balanceAccounts": {
7
+ /**
8
+ * Get all balance accounts of an account holder
9
+ * @description Provides list of balance accounts to select
10
+ */
11
+ get: operations["getBalanceAccounts"];
12
+ };
13
+ "/v1/balanceAccounts/{balanceAccountId}/balances": {
14
+ /**
15
+ * Get all balances of a balance account
16
+ * @description Provides balances of a balance account in different currencies
17
+ */
18
+ get: operations["getBalances"];
19
+ };
20
+ }
21
+ export type webhooks = Record<string, never>;
22
+ export interface components {
23
+ schemas: {
24
+ /** @description List of balance accounts */
25
+ BalanceAccountBase: {
26
+ /**
27
+ * @description The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account.
28
+ * The default value is **EUR**.
29
+ * > After a balance account is created, you cannot change its default currency.
30
+ */
31
+ defaultCurrencyCode: string;
32
+ /** @description A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. */
33
+ description?: string;
34
+ /** @description The unique identifier of the balance account. */
35
+ id: string;
36
+ /**
37
+ * @description The time zone of the balance account. For example, **Europe/Amsterdam**.
38
+ * Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
39
+ */
40
+ timeZone: string;
41
+ };
42
+ BalanceAccountsResponse: {
43
+ /** @description List of balance accounts */
44
+ data: components["schemas"]["BalanceAccountBase"][];
45
+ };
46
+ /** @description Collection of balances per balance account */
47
+ Balance: {
48
+ /** @description ISO currency code */
49
+ currency: string;
50
+ /**
51
+ * Format: int64
52
+ * @description Balance amount value in a given currency
53
+ */
54
+ value: number;
55
+ };
56
+ BalancesResponse: {
57
+ /** @description Collection of balances per balance account */
58
+ data: components["schemas"]["Balance"][];
59
+ };
60
+ };
61
+ responses: never;
62
+ parameters: never;
63
+ requestBodies: never;
64
+ headers: never;
65
+ pathItems: never;
66
+ }
67
+ export type $defs = Record<string, never>;
68
+ export type external = Record<string, never>;
69
+ export interface operations {
70
+ /**
71
+ * Get all balance accounts of an account holder
72
+ * @description Provides list of balance accounts to select
73
+ */
74
+ getBalanceAccounts: {
75
+ responses: {
76
+ /** @description OK - the request has succeeded. */
77
+ 200: {
78
+ content: {
79
+ "application/json": components["schemas"]["BalanceAccountsResponse"];
80
+ };
81
+ };
82
+ };
83
+ };
84
+ /**
85
+ * Get all balances of a balance account
86
+ * @description Provides balances of a balance account in different currencies
87
+ */
88
+ getBalances: {
89
+ parameters: {
90
+ path: {
91
+ balanceAccountId: string;
92
+ };
93
+ };
94
+ responses: {
95
+ /** @description OK - the request has succeeded. */
96
+ 200: {
97
+ content: {
98
+ "application/json": components["schemas"]["BalancesResponse"];
99
+ };
100
+ };
101
+ };
102
+ };
103
+ }
104
+ //# sourceMappingURL=BalanceAccountsResource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BalanceAccountsResource.d.ts","sourceRoot":"","sources":["../../../../../src/types/models/openapi/BalanceAccountsResource.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,MAAM,WAAW,KAAK;IACpB,qBAAqB,EAAE;QACrB;;;WAGG;QACH,GAAG,EAAE,UAAU,CAAC,oBAAoB,CAAC,CAAC;KACvC,CAAC;IACF,iDAAiD,EAAE;QACjD;;;WAGG;QACH,GAAG,EAAE,UAAU,CAAC,aAAa,CAAC,CAAC;KAChC,CAAC;CACH;AAED,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAE7C,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE;QACP,4C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,EAAE,MAAM,CAAC;aAC1B,CAAC;SACH,CAAC;QACF,SAAS,EAAE;YACT,mDAAmD;YACnD,GAAG,EAAE;gBACH,OAAO,EAAE;oBACP,kBAAkB,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;iBAC/D,CAAC;aACH,CAAC;SACH,CAAC;KACH,CAAC;CACH"}
@@ -0,0 +1,59 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+ export interface paths {
6
+ "/v1/setup": {
7
+ /**
8
+ * Get allowed endpoints
9
+ * @description Provides the allowed endpoints for a given session
10
+ */
11
+ post: operations["setup"];
12
+ };
13
+ }
14
+ export type webhooks = Record<string, never>;
15
+ export interface components {
16
+ schemas: {
17
+ /**
18
+ * @description Always null. This field is only used to expose endpoint names in OpenApi schema. Front-end components generate types from it.
19
+ * @enum {string}
20
+ */
21
+ EndpointName: "getTransactions" | "getTransaction" | "getTransactionTotals" | "getBalances" | "getBalanceAccounts" | "getPayouts" | "getPayout" | "getNetworkTokenActivationData" | "createNetworkTokenActivationData";
22
+ /** @description Allowed endpoints for a given session */
23
+ SetupEndpointResponse: {
24
+ method?: string;
25
+ url?: string;
26
+ };
27
+ SetupResponse: {
28
+ endpointTypesExposure?: components["schemas"]["EndpointName"];
29
+ /** @description Allowed endpoints for a given session */
30
+ endpoints: {
31
+ [key: string]: components["schemas"]["SetupEndpointResponse"];
32
+ };
33
+ };
34
+ };
35
+ responses: never;
36
+ parameters: never;
37
+ requestBodies: never;
38
+ headers: never;
39
+ pathItems: never;
40
+ }
41
+ export type $defs = Record<string, never>;
42
+ export type external = Record<string, never>;
43
+ export interface operations {
44
+ /**
45
+ * Get allowed endpoints
46
+ * @description Provides the allowed endpoints for a given session
47
+ */
48
+ setup: {
49
+ responses: {
50
+ /** @description OK - the request has succeeded. */
51
+ 200: {
52
+ content: {
53
+ "application/json": components["schemas"]["SetupResponse"];
54
+ };
55
+ };
56
+ };
57
+ };
58
+ }
59
+ //# sourceMappingURL=SetupResource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SetupResource.d.ts","sourceRoot":"","sources":["../../../../../src/types/models/openapi/SetupResource.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,MAAM,WAAW,KAAK;IACpB,WAAW,EAAE;QACX;;;WAGG;QACH,IAAI,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;KAC3B,CAAC;CACH;AAED,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAE7C,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE;QACP;;;WAGG;QACH,YAAY,EAAE,iBAAiB,GAAG,gBAAgB,GAAG,sBAAsB,GAAG,aAAa,GAAG,oBAAoB,GAAG,YAAY,GAAG,WAAW,GAAG,+BAA+B,GAAG,kCAAkC,CAAC;QACvN,yDAAyD;QACzD,qBAAqB,EAAE;YACrB,MAAM,CAAC,EAAE,MAAM,CAAC;YAChB,GAAG,CAAC,EAAE,MAAM,CAAC;SACd,CAAC;QACF,aAAa,EAAE;YACb,qBAAqB,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,cAAc,CAAC,CAAC;YAC9D,yDAAyD;YACzD,SAAS,EAAE;gBACT,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,uBAAuB,CAAC,CAAC;aAC/D,CAAC;SACH,CAAC;KACH,CAAC;IACF,SAAS,EAAE,KAAK,CAAC;IACjB,UAAU,EAAE,KAAK,CAAC;IAClB,aAAa,EAAE,KAAK,CAAC;IACrB,OAAO,EAAE,KAAK,CAAC;IACf,SAAS,EAAE,KAAK,CAAC;CAClB;AAED,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAE1C,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAE7C,MAAM,WAAW,UAAU;IAEzB;;;OAGG;IACH,KAAK,EAAE;QACL,SAAS,EAAE;YACT,mDAAmD;YACnD,GAAG,EAAE;gBACH,OAAO,EAAE;oBACP,kBAAkB,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,eAAe,CAAC,CAAC;iBAC5D,CAAC;aACH,CAAC;SACH,CAAC;KACH,CAAC;CACH"}
@@ -0,0 +1,198 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+ export interface paths {
6
+ "/v1/transactions/{transactionId}": {
7
+ /**
8
+ * Get transaction details
9
+ * @description Given a transaction ID, it retrieves its details
10
+ */
11
+ get: operations["getTransaction"];
12
+ };
13
+ "/v1/transactions/totals": {
14
+ /**
15
+ * Get transaction totals
16
+ * @description Given filters, provides total of incomings and expenses for all transactions matching the criteria
17
+ */
18
+ get: operations["getTransactionTotals"];
19
+ };
20
+ "/v1/transactions": {
21
+ /**
22
+ * Get transactions
23
+ * @description Given filters, provides list of transactions for a balance account
24
+ */
25
+ get: operations["getTransactions"];
26
+ };
27
+ }
28
+ export type webhooks = Record<string, never>;
29
+ export interface components {
30
+ schemas: {
31
+ /** @description Amount */
32
+ Amount: {
33
+ /** @description The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */
34
+ currency: string;
35
+ /**
36
+ * Format: int64
37
+ * @description The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes).
38
+ */
39
+ value: number;
40
+ };
41
+ /** @description Information about the bank account */
42
+ BankAccount: {
43
+ /** @description Last four digits of the account number or IBAN. */
44
+ accountNumberLastFourDigits: string;
45
+ };
46
+ /**
47
+ * @description Category
48
+ * @enum {string}
49
+ */
50
+ Category: "ATM" | "Capital" | "Correction" | "Fee" | "Payment" | "Refund" | "Chargeback" | "Transfer" | "Other";
51
+ /** @description Payment method or payment instrument */
52
+ PaymentMethod: {
53
+ /** @description Last four digits of the card */
54
+ lastFourDigits?: string;
55
+ /** @description Payment method type code of the transaction f.e. klarna, visa, mc */
56
+ type: string;
57
+ };
58
+ /** @description Transactions made within the filters provided for given balanceAccountId */
59
+ SingleTransaction: {
60
+ amount: components["schemas"]["Amount"];
61
+ /** @description BalanceAccount ID */
62
+ balanceAccountId: string;
63
+ bankAccount?: components["schemas"]["BankAccount"];
64
+ category: components["schemas"]["Category"];
65
+ /**
66
+ * Format: date-time
67
+ * @description Date created
68
+ */
69
+ createdAt: string;
70
+ /** @description ID */
71
+ id: string;
72
+ paymentMethod?: components["schemas"]["PaymentMethod"];
73
+ status: components["schemas"]["Status"];
74
+ };
75
+ /** @enum {string} */
76
+ Status: "Pending" | "Booked" | "Reversed";
77
+ /** @description Collection of transaction totals per currency */
78
+ TransactionTotal: {
79
+ /** @description ISO currency code */
80
+ currency: string;
81
+ /**
82
+ * Format: int64
83
+ * @description Sum of expenses of transactions (negative transaction amount values)
84
+ */
85
+ expenses: number;
86
+ /**
87
+ * Format: int64
88
+ * @description Sum of incomings of transactions (positive transaction amount values)
89
+ */
90
+ incomings: number;
91
+ };
92
+ TransactionTotalsResponse: {
93
+ /** @description Collection of transaction totals per currency */
94
+ data: components["schemas"]["TransactionTotal"][];
95
+ };
96
+ /** @description Link to a different page */
97
+ Link: {
98
+ /** @description Cursor for a different page */
99
+ cursor: string;
100
+ };
101
+ /** @description Links */
102
+ Links: {
103
+ next: components["schemas"]["Link"];
104
+ prev: components["schemas"]["Link"];
105
+ };
106
+ TransactionsResponse: {
107
+ _links: components["schemas"]["Links"];
108
+ /** @description Transactions made within the filters provided for given balanceAccountId */
109
+ data: components["schemas"]["SingleTransaction"][];
110
+ };
111
+ /** @enum {string} */
112
+ SortDirection: "asc" | "desc";
113
+ };
114
+ responses: never;
115
+ parameters: never;
116
+ requestBodies: never;
117
+ headers: never;
118
+ pathItems: never;
119
+ }
120
+ export type $defs = Record<string, never>;
121
+ export type external = Record<string, never>;
122
+ export interface operations {
123
+ /**
124
+ * Get transaction details
125
+ * @description Given a transaction ID, it retrieves its details
126
+ */
127
+ getTransaction: {
128
+ parameters: {
129
+ path: {
130
+ transactionId: string;
131
+ };
132
+ };
133
+ responses: {
134
+ /** @description OK - the request has succeeded. */
135
+ 200: {
136
+ content: {
137
+ "application/json": components["schemas"]["SingleTransaction"];
138
+ };
139
+ };
140
+ };
141
+ };
142
+ /**
143
+ * Get transaction totals
144
+ * @description Given filters, provides total of incomings and expenses for all transactions matching the criteria
145
+ */
146
+ getTransactionTotals: {
147
+ parameters: {
148
+ query: {
149
+ balanceAccountId: string;
150
+ createdSince?: string;
151
+ createdUntil?: string;
152
+ categories?: string[];
153
+ statuses?: components["schemas"]["Status"][];
154
+ currencies?: string[];
155
+ minAmount?: number;
156
+ maxAmount?: number;
157
+ };
158
+ };
159
+ responses: {
160
+ /** @description OK - the request has succeeded. */
161
+ 200: {
162
+ content: {
163
+ "application/json": components["schemas"]["TransactionTotalsResponse"];
164
+ };
165
+ };
166
+ };
167
+ };
168
+ /**
169
+ * Get transactions
170
+ * @description Given filters, provides list of transactions for a balance account
171
+ */
172
+ getTransactions: {
173
+ parameters: {
174
+ query: {
175
+ balanceAccountId: string;
176
+ createdSince?: string;
177
+ createdUntil?: string;
178
+ categories?: string[];
179
+ statuses?: components["schemas"]["Status"][];
180
+ currencies?: string[];
181
+ minAmount?: number;
182
+ maxAmount?: number;
183
+ cursor?: string;
184
+ sortDirection?: components["schemas"]["SortDirection"];
185
+ limit?: number;
186
+ };
187
+ };
188
+ responses: {
189
+ /** @description OK - the request has succeeded. */
190
+ 200: {
191
+ content: {
192
+ "application/json": components["schemas"]["TransactionsResponse"];
193
+ };
194
+ };
195
+ };
196
+ };
197
+ }
198
+ //# sourceMappingURL=TransactionsResource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransactionsResource.d.ts","sourceRoot":"","sources":["../../../../../src/types/models/openapi/TransactionsResource.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,MAAM,WAAW,KAAK;IACpB,kCAAkC,E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BACtB,YAAY,CAAC,EAAE,MAAM,CAAC;gBACtB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;gBACtB,QAAQ,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC;gBAC7C,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;gBACtB,SAAS,CAAC,EAAE,MAAM,CAAC;gBACnB,SAAS,CAAC,EAAE,MAAM,CAAC;gBACnB,MAAM,CAAC,EAAE,MAAM,CAAC;gBAChB,aAAa,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,eAAe,CAAC,CAAC;gBACvD,KAAK,CAAC,EAAE,MAAM,CAAC;aAChB,CAAC;SACH,CAAC;QACF,SAAS,EAAE;YACT,mDAAmD;YACnD,GAAG,EAAE;gBACH,OAAO,EAAE;oBACP,kBAAkB,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,sBAAsB,CAAC,CAAC;iBACnE,CAAC;aACH,CAAC;SACH,CAAC;KACH,CAAC;CACH"}
@@ -0,0 +1,11 @@
1
+ import { operations as BalanceAccountOps } from './BalanceAccountsResource';
2
+ import { operations as TransactionsOps } from './TransactionsResource';
3
+ import { components as SetupResource } from './SetupResource';
4
+ export type EndpointsOperations = BalanceAccountOps & TransactionsOps;
5
+ export type EndpointName = Extract<keyof EndpointsOperations, SetupResource['schemas']['EndpointName']>;
6
+ export type SetupEndpointResponse = SetupResource['schemas']['SetupEndpointResponse'];
7
+ export type SetupEndpoint = Record<EndpointName, SetupEndpointResponse>;
8
+ export type OperationParameters<Operation extends keyof EndpointsOperations> = EndpointsOperations[Operation] extends {
9
+ parameters: infer P;
10
+ } ? P : never;
11
+ //# sourceMappingURL=endpoints.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../../../../src/types/models/openapi/endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC5E,OAAO,EAAE,UAAU,IAAI,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,EAAE,UAAU,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAE9D,MAAM,MAAM,mBAAmB,GAAG,iBAAiB,GAAG,eAAe,CAAC;AAEtE,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,MAAM,mBAAmB,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC;AAExG,MAAM,MAAM,qBAAqB,GAAG,aAAa,CAAC,SAAS,CAAC,CAAC,uBAAuB,CAAC,CAAC;AAEtF,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,YAAY,EAAE,qBAAqB,CAAC,CAAC;AAExE,MAAM,MAAM,mBAAmB,CAAC,SAAS,SAAS,MAAM,mBAAmB,IAAI,mBAAmB,CAAC,SAAS,CAAC,SAAS;IAAE,UAAU,EAAE,MAAM,CAAC,CAAA;CAAE,GACvI,CAAC,GACD,KAAK,CAAC"}
@@ -0,0 +1,11 @@
1
+ declare class SessionStorage<T> {
2
+ private readonly prefix;
3
+ private readonly key;
4
+ private storage;
5
+ constructor(key: string, storage?: Storage);
6
+ get(): T | null;
7
+ set(value: T): void;
8
+ remove(): void;
9
+ }
10
+ export default SessionStorage;
11
+ //# sourceMappingURL=SessionStorage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SessionStorage.d.ts","sourceRoot":"","sources":["../../../src/utils/SessionStorage.ts"],"names":[],"mappings":"AAAA,cAAM,cAAc,CAAC,CAAC;IAClB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAe;IACtC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAS;IAC7B,OAAO,CAAC,OAAO,CAAU;gBAEb,GAAG,EAAE,MAAM,EAAE,OAAO,UAAsB;IAK/C,GAAG,IAAI,CAAC,GAAG,IAAI;IAYf,GAAG,CAAC,KAAK,EAAE,CAAC;IAIZ,MAAM;CAGhB;AAED,eAAe,cAAc,CAAC"}
@@ -8,7 +8,7 @@ export declare const hasOwnProperty: any;
8
8
  export declare const noop: () => void;
9
9
  export declare const asyncNoop: () => Promise<void>;
10
10
  export declare const enumerable: <T extends unknown = any>(value: T, writable?: boolean) => TypedPropertyDescriptor<T>;
11
- export declare const identity: <T = any>(value?: T | undefined) => T | undefined;
11
+ export declare const identity: <T = any>(value?: T) => T | undefined;
12
12
  export declare const boolify: (value?: any, fallbackBoolean?: boolean) => boolean;
13
13
  export declare const clamp: <T extends number = number>(min: T, value: T, max: T) => number;
14
14
  export declare const mid: (low: number, high: number) => number;
@@ -22,6 +22,6 @@ export declare const isBitSafeInteger: (value: any) => value is number;
22
22
  * The comparison is very similar to strict equality comparison but also returns `true` if both values are `NaN`.
23
23
  */
24
24
  export declare const sameValue: (a: any, b: any) => boolean;
25
- export declare const pickFromCollection: <C extends readonly any[]>(collection: C, option?: C[number] | undefined, defaultOption?: C[number] | undefined) => any;
25
+ export declare const pickFromCollection: <C extends readonly any[]>(collection: C, option?: C[number], defaultOption?: C[number]) => any;
26
26
  export declare const parseBoolean: (value: boolean | JSXInternal.SignalLike<boolean | undefined> | undefined) => boolean;
27
27
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,eAAO,MAAM,IAAI,2CAAwD,CAAC;AAC1E,eAAO,MAAM,MAAM,KAAoC,CAAC;AACxD,eAAO,MAAM,UAAU,KAA8B,CAAC;AACtD,eAAO,MAAM,QAAQ,KAAkC,CAAC;AACxD,eAAO,MAAM,cAAc,KAAwC,CAAC;AAEpE,eAAO,MAAM,IAAI,YAA8C,CAAC;AAChE,eAAO,MAAM,SAAS,qBAAiB,CAAC;AAExC,eAAO,MAAM,UAAU,iDAA6C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,wBAAwB,CAAC,CAKhG,CAAC;AAEhB,eAAO,MAAM,QAAQ,oBAAqB,CAAC,kBAAU,CAAC;AACtD,eAAO,MAAM,OAAO,WAAY,GAAG,oBAAoB,OAAO,YAA6D,CAAC;AAC5H,eAAO,MAAM,KAAK,mCAAoC,CAAC,SAAS,CAAC,OAAO,CAAC,WAAsE,CAAC;AAChJ,eAAO,MAAM,GAAG,QAAS,MAAM,QAAQ,MAAM,WAAuC,CAAC;AACrF,eAAO,MAAM,GAAG,UAAW,MAAM,UAAU,MAAM,WAAyC,CAAC;AAC3F,eAAO,MAAM,UAAU,UAAW,GAAG,wBAAsB,GAAG,EAAE,KAAK,GAAkC,CAAC;AACxG,eAAO,MAAM,QAAQ,UAAW,GAAG,oBAA+C,CAAC;AACnF,eAAO,MAAM,UAAU,UAAW,GAAG,oBAAwD,CAAC;AAC9F,eAAO,MAAM,gBAAgB,UAAW,GAAG,oBAA0D,CAAC;AAEtG;;;GAGG;AACH,eAAO,MAAM,SAAS,MAAO,GAAG,KAAK,GAAG,YAAqC,CAAC;AAE9E,eAAO,MAAM,kBAAkB,yCAA0C,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,MAAM,CAAC,QAIxH,CAAC;AACF,eAAO,MAAM,YAAY,UAAW,OAAO,GAAG,YAAY,UAAU,CAAC,OAAO,GAAG,SAAS,CAAC,GAAG,SAAS,KAAG,OACtB,CAAC"}
@@ -4,8 +4,8 @@ type _RenderResult = VNode | null;
4
4
  * Alternative to using `forwardRef` but with fixed type inference.
5
5
  * @see [How To Use forwardRef With Generic Components]{@link https://www.totaltypescript.com/forwardref-with-generic-components}
6
6
  */
7
- declare const fixedForwardRef: <P, T>(render: (props: P, ref: Ref<T>) => _RenderResult) => (props: P & {
8
- ref?: Ref<T> | undefined;
9
- }) => _RenderResult;
7
+ declare const fixedForwardRef: <P, T>(render: (props: P, ref: Ref<T>) => _RenderResult) => ((props: P & {
8
+ ref?: Ref<T>;
9
+ }) => _RenderResult);
10
10
  export default fixedForwardRef;
11
11
  //# sourceMappingURL=fixedForwardRef.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fixedForwardRef.d.ts","sourceRoot":"","sources":["../../../src/utils/fixedForwardRef.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAGpC,KAAK,aAAa,GAAG,KAAK,GAAG,IAAI,CAAC;AAElC;;;GAGG;AACH,QAAA,MAAM,eAAe,4CAA6C,aAAa;;MAAqC,aAC9F,CAAC;AAEvB,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"fixedForwardRef.d.ts","sourceRoot":"","sources":["../../../src/utils/fixedForwardRef.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAGpC,KAAK,aAAa,GAAG,KAAK,GAAG,IAAI,CAAC;AAElC;;;GAGG;AACH,QAAA,MAAM,eAAe,iBAAkB,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,KAAK,aAAa,KAAG,CAAC,CAAC,KAAK,EAAE,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;CAAE,KAAK,aAAa,CAC3G,CAAC;AAEvB,eAAe,eAAe,CAAC"}
@@ -5,11 +5,13 @@ export default class __Watchable__<T extends Record<string, any>> {
5
5
  constructor(watchableAtoms?: WatchAtoms<T>);
6
6
  get idle(): boolean;
7
7
  get idleCallbacks(): {
8
- idle: WatchCallable<any, any>;
9
- resume: WatchCallable<any, any>;
8
+ get idle(): WatchCallable<any, any>;
9
+ set idle(callback: WatchCallable<any, any> | undefined);
10
+ get resume(): WatchCallable<any, any>;
11
+ set resume(callback: WatchCallable<any, any> | undefined);
10
12
  };
11
13
  get snapshot(): Readonly<T>;
12
14
  notifyWatchers(signal?: typeof UNWATCH_SIGNAL): boolean | undefined;
13
- watch(watchCallback?: WatchCallback<T>): WatchCallable<void, any>;
15
+ watch(watchCallback?: WatchCallback<T>): WatchCallable<void>;
14
16
  }
15
17
  //# sourceMappingURL=Watchable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Watchable.d.ts","sourceRoot":"","sources":["../../../../../src/utils/watchable/core/Watchable.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,UAAU,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAG9C,MAAM,CAAC,OAAO,OAAO,aAAa,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;;gBAQhD,cAAc,gBAAsB;IAOhD,IAAI,IAAI,YAEP;IAED,IAAI,aAAa;;;MAEhB;IAED,IAAI,QAAQ,gBAEX;IAED,cAAc,CAAC,MAAM,CAAC,EAAE,OAAO,cAAc;IAoB7C,KAAK,CAAC,aAAa,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC;CAuCzC"}
1
+ {"version":3,"file":"Watchable.d.ts","sourceRoot":"","sources":["../../../../../src/utils/watchable/core/Watchable.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,UAAU,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAG9C,MAAM,CAAC,OAAO,OAAO,aAAa,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;;gBAQhD,cAAc,gBAAsB;IAOhD,IAAI,IAAI,YAEP;IAED,IAAI,aAAa;;;;;MAEhB;IAED,IAAI,QAAQ,gBAEX;IAED,cAAc,CAAC,MAAM,CAAC,EAAE,OAAO,cAAc;IAoB7C,KAAK,CAAC,aAAa,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC;CAuCzC"}
@@ -1,7 +1,9 @@
1
1
  import { WatchAtoms, WatchCallable } from '../types';
2
2
  export declare const createLiveWatchableState: <T extends Record<string, any>>(watchableAtoms?: WatchAtoms<T>) => T;
3
3
  export declare const createWatchableIdleCallbacks: <T extends Record<string, any>>() => {
4
- idle: WatchCallable<any, any>;
5
- resume: WatchCallable<any, any>;
4
+ get idle(): WatchCallable<any, any>;
5
+ set idle(callback: WatchCallable<any, any> | undefined);
6
+ get resume(): WatchCallable<any, any>;
7
+ set resume(callback: WatchCallable<any, any> | undefined);
6
8
  };
7
9
  //# sourceMappingURL=helpers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/utils/watchable/core/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGhE,eAAO,MAAM,wBAAwB,sEAqBpC,CAAC;AAEF,eAAO,MAAM,4BAA4B;;;CAkBxC,CAAC"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/utils/watchable/core/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGhE,eAAO,MAAM,wBAAwB,sEAqBpC,CAAC;AAEF,eAAO,MAAM,4BAA4B;;;;;CAkBxC,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { WatchCallable } from '../types';
2
- declare const createSyncEffectChain: (effect?: WatchCallable<any>) => <T extends WatchCallable<any, any> = WatchCallable<any, any>>(fn: T) => T;
2
+ declare const createSyncEffectChain: (effect?: WatchCallable<any>) => <T extends WatchCallable<any> = WatchCallable<any>>(fn: T) => T;
3
3
  export default createSyncEffectChain;
4
4
  //# sourceMappingURL=syncEffect.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"syncEffect.d.ts","sourceRoot":"","sources":["../../../../../src/utils/watchable/core/syncEffect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGzC,QAAA,MAAM,qBAAqB,YAIN,cAAc,GAAG,CAAC,8EAmBnC,CAAC;AAEL,eAAe,qBAAqB,CAAC"}
1
+ {"version":3,"file":"syncEffect.d.ts","sourceRoot":"","sources":["../../../../../src/utils/watchable/core/syncEffect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGzC,QAAA,MAAM,qBAAqB,YAIN,cAAc,GAAG,CAAC,6DAHkC,CAAC,KAAG,CAsBzE,CAAC;AAEL,eAAe,qBAAqB,CAAC"}
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "components",
11
11
  "adyen-platform-experience"
12
12
  ],
13
- "version": "1.0.0-beta.2",
13
+ "version": "1.0.0-beta.3",
14
14
  "apiVersion": "v1",
15
15
  "license": "MIT",
16
16
  "repository": "github:Adyen/adyen-platform-experience-web",
@@ -91,16 +91,16 @@
91
91
  "stylelint-config-sass-guidelines": "^9.0.1",
92
92
  "stylelint-scss": "^4.2.0",
93
93
  "ts-loader": "^9.2.6",
94
- "typescript": "^4.9.4",
94
+ "typescript": "^5.4.5",
95
95
  "vite": "^4.2.1",
96
96
  "vite-node": "^0.30.1",
97
97
  "vitest": "^0.30.1"
98
98
  },
99
99
  "dependencies": {
100
- "classnames": "^2.3.1",
101
- "core-js": "^3.20.2"
100
+ "classnames": "^2.5.1",
101
+ "core-js": "^3.36.0"
102
102
  },
103
103
  "peerDependencies": {
104
- "preact": "^10.13.2"
104
+ "preact": "^10.20.2"
105
105
  }
106
106
  }
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-7e2df524.js");require("classnames");const r=t=>n.hasOwnProperty(t,"id");function e({data:t}){const o=r(t)?{transaction:t}:{transactionId:t};return n.o(n.k,{children:o&&n.o(n.TransactionDetails,{...o})})}exports.default=e;
2
- //# sourceMappingURL=ModalContent-88fdb6f4.js.map
@@ -1,31 +0,0 @@
1
- var o = Object.defineProperty;
2
- var a = (r, t, e) => t in r ? o(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
3
- var s = (r, t, e) => (a(r, typeof t != "symbol" ? t + "" : t, e), e);
4
- class i {
5
- constructor(t, e = window.localStorage) {
6
- s(this, "prefix", "adyen-pe-");
7
- s(this, "key");
8
- s(this, "storage");
9
- this.storage = e, this.key = this.prefix + t;
10
- }
11
- get() {
12
- const t = this.storage.getItem(this.key);
13
- if (t)
14
- try {
15
- return JSON.parse(t);
16
- } catch {
17
- return null;
18
- }
19
- return null;
20
- }
21
- set(t) {
22
- this.storage.setItem(this.key, JSON.stringify(t));
23
- }
24
- remove() {
25
- this.storage.removeItem(this.key);
26
- }
27
- }
28
- const n = i;
29
- export {
30
- n as default
31
- };