@adyen/adyen-platform-experience-web 1.0.0-beta → 1.0.0-beta.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.
- package/dist/ModalContent-88fdb6f4.js +2 -0
- package/dist/ModalContent-88fdb6f4.js.map +1 -0
- package/dist/cjs/index.js +1 -35
- package/dist/cjs/index.js.map +1 -1
- package/dist/es/components/external/BaseElement.js +48 -88
- package/dist/es/components/external/EventEmitter.js +17 -28
- package/dist/es/components/external/TransactionDetails/TransactionDetails.js +15 -20
- package/dist/es/components/external/TransactionDetails/components/TransactionData.js +41 -42
- package/dist/es/components/external/TransactionDetails/components/TransactionDataSkeleton.js +13 -13
- package/dist/es/components/external/TransactionDetails/components/TransactionDetails.js +28 -39
- package/dist/es/components/external/TransactionDetails/components/TransactionDetails.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/TransactionsOverviewElement.js +25 -31
- package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.js +7 -10
- package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/constants.js +4 -6
- package/dist/es/components/external/TransactionsOverview/components/BalanceAccountSelector/BalanceAccountSelector.js +21 -22
- package/dist/es/components/external/TransactionsOverview/components/BalanceAccountSelector/BalanceAccountSelector.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/components/BalanceAccountSelector/useBalanceAccountSelection.js +13 -21
- package/dist/es/components/external/TransactionsOverview/components/BalanceItem/BalanceItem.js +22 -25
- package/dist/es/components/external/TransactionsOverview/components/Balances/Balances.js +36 -47
- package/dist/es/components/external/TransactionsOverview/components/Balances/constants.js +2 -2
- package/dist/es/components/external/TransactionsOverview/components/Category/Category.js +8 -9
- package/dist/es/components/external/TransactionsOverview/components/ModalContent.js +9 -9
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.js +23 -25
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/constants.js +13 -16
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.js +16 -26
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/utils.js +7 -9
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.js +42 -50
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.js +18 -19
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/constants.js +8 -14
- package/dist/es/components/external/TransactionsOverview/components/TransactionListError/TransactionListError.js +16 -16
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.js +37 -42
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.js +36 -39
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.js +48 -60
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/constants.js +3 -4
- package/dist/es/components/external/TransactionsOverview/components/TransactionsDisplay/TransactionsDisplay.js +62 -73
- package/dist/es/components/external/TransactionsOverview/components/TransactionsDisplay/TransactionsDisplay.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/components/TransactionsDisplay/constants.js +3 -4
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.js +133 -152
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/constants.js +4 -6
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewContainer/TransactionsOverviewContainer.js +32 -40
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewContainer/TransactionsOverviewContainer.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewContainer/constants.js +3 -4
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewDateFilter.js +49 -53
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionTable.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.js +75 -84
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/constants.js +6 -10
- package/dist/es/components/external/TransactionsOverview/components/utils.js +6 -12
- package/dist/es/components/external/TransactionsOverview/hooks/useDefaultTransactionsOverviewFilterParams.js +21 -39
- package/dist/es/components/external/TransactionsOverview/hooks/useMaxWidths.js +9 -10
- package/dist/es/components/external/TransactionsOverview/hooks/useMediaQuery.js +23 -28
- package/dist/es/components/external/TransactionsOverview/hooks/useTransactionsOverviewMultiSelectionFilters.js +24 -28
- package/dist/es/components/external/TransactionsOverview/types.js +4 -0
- package/dist/es/components/external/UIElement.js +38 -51
- package/dist/es/components/internal/BaseButton/BaseButton.js +18 -21
- package/dist/es/components/internal/BaseButton/BaseButton.scss.js +4 -0
- package/dist/es/components/internal/BaseButton/constants.js +2 -2
- package/dist/es/components/internal/BaseList/BaseList.js +5 -8
- package/dist/es/components/internal/BaseList/BaseList.scss.js +4 -0
- package/dist/es/components/internal/BaseList/constants.js +2 -2
- package/dist/es/components/internal/Button/Button.js +39 -41
- package/dist/es/components/internal/Button/Button.scss.js +4 -0
- package/dist/es/components/internal/Button/ButtonActions/ButtonActions.js +27 -8
- package/dist/es/components/internal/Button/ButtonActions/ButtonActions.scss.js +4 -0
- package/dist/es/components/internal/Button/ButtonActions/types.js +7 -0
- package/dist/es/components/internal/Button/constants.js +9 -16
- package/dist/es/components/internal/Button/hooks/useButton.js +13 -17
- package/dist/es/components/internal/Button/types.js +4 -0
- package/dist/es/components/internal/Calendar/Calendar.js +20 -21
- package/dist/es/components/internal/Calendar/Calendar.scss.js +4 -0
- package/dist/es/components/internal/Calendar/calendar/constants.js +35 -70
- package/dist/es/components/internal/Calendar/calendar/facade/Calendar.js +322 -552
- package/dist/es/components/internal/Calendar/calendar/facade/index.js +37 -46
- package/dist/es/components/internal/Calendar/calendar/shared/indexed/index.js +34 -46
- package/dist/es/components/internal/Calendar/calendar/timeframe/common/flags.js +31 -5
- package/dist/es/components/internal/Calendar/calendar/timeframe/common/utils.js +14 -16
- package/dist/es/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.js +122 -221
- package/dist/es/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.js +238 -418
- package/dist/es/components/internal/Calendar/calendar/timerange/factory.js +40 -63
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastMonth.js +3 -3
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastNDays.js +16 -27
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastWeek.js +3 -3
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetMonth.js +14 -23
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetWeek.js +21 -29
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisMonth.js +3 -3
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisWeek.js +3 -3
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/yearToDate.js +9 -13
- package/dist/es/components/internal/Calendar/calendar/timerange/utils.js +49 -83
- package/dist/es/components/internal/Calendar/calendar/timeslice/TimeSlice.js +38 -61
- package/dist/es/components/internal/Calendar/calendar/timeslice/index.js +17 -21
- package/dist/es/components/internal/Calendar/calendar/types.js +15 -0
- package/dist/es/components/internal/Calendar/calendar/utils.js +15 -22
- package/dist/es/components/internal/Calendar/clock/clock.js +23 -41
- package/dist/es/components/internal/Calendar/clock/today.js +37 -57
- package/dist/es/components/internal/Calendar/components/CalendarControls/CalendarControls.js +7 -12
- package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGrid.js +26 -28
- package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDate.js +33 -58
- package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDayOfWeek.js +30 -40
- package/dist/es/components/internal/Calendar/components/CalendarGrid/utils.js +44 -49
- package/dist/es/components/internal/Calendar/hooks/useCalendar.js +84 -115
- package/dist/es/components/internal/Calendar/hooks/useCalendarControlsRendering.js +35 -40
- package/dist/es/components/internal/Calendar/hooks/useTimezone.js +24 -46
- package/dist/es/components/internal/Calendar/types.js +4 -0
- package/dist/es/components/internal/CopyText/CopyText.js +26 -31
- package/dist/es/components/internal/CopyText/CopyText.scss.js +4 -0
- package/dist/es/components/internal/DataGrid/DataGrid.js +93 -10
- package/dist/es/components/internal/DataGrid/DataGrid.scss.js +4 -0
- package/dist/es/components/internal/DataGrid/DataGridCell.js +4 -4
- package/dist/es/components/internal/DataGrid/components/InteractiveBody.js +38 -8
- package/dist/es/components/internal/DataGrid/components/SkeletonBody.js +15 -17
- package/dist/es/components/internal/DataGrid/components/TableBody.js +19 -19
- package/dist/es/components/internal/DataGrid/components/TableCells.js +19 -25
- package/dist/es/components/internal/DataGrid/hooks/useInteractiveDataGrid.js +76 -5
- package/dist/es/components/internal/DataGrid/types.js +4 -0
- package/dist/es/components/internal/DatePicker/DatePicker.js +45 -62
- package/dist/es/components/internal/DatePicker/DatePicker.scss.js +4 -0
- package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.js +26 -43
- package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.js +56 -85
- package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.js +45 -53
- package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.scss.js +4 -0
- package/dist/es/components/internal/ExpandableCard/ExpandableCard.js +56 -75
- package/dist/es/components/internal/ExpandableCard/ExpandableCard.scss.js +4 -0
- package/dist/es/components/internal/ExpandableCard/constants.js +11 -20
- package/dist/es/components/internal/FilterBar/FilterBar.js +32 -35
- package/dist/es/components/internal/FilterBar/FilterBar.scss.js +4 -0
- package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.js +15 -17
- package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.scss.js +4 -0
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.js +41 -63
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.scss.js +4 -0
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/RangeSelection.js +53 -68
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/constants.js +2 -2
- package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.js +104 -153
- package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilter.js +118 -10
- package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilter.scss.js +4 -0
- package/dist/es/components/internal/FilterBar/filters/DateFilter/types.js +4 -0
- package/dist/es/components/internal/FormFields/FormFields.scss.js +4 -0
- package/dist/es/components/internal/FormFields/InputBase.js +53 -66
- package/dist/es/components/internal/FormFields/InputText.js +6 -6
- package/dist/es/components/internal/FormFields/Select/Select.js +187 -246
- package/dist/es/components/internal/FormFields/Select/Select.scss.js +4 -0
- package/dist/es/components/internal/FormFields/Select/components/SelectButton.js +68 -72
- package/dist/es/components/internal/FormFields/Select/components/SelectList.js +62 -71
- package/dist/es/components/internal/FormFields/Select/components/SelectListItem.js +37 -41
- package/dist/es/components/internal/FormFields/Select/constants.js +27 -49
- package/dist/es/components/internal/FormFields/Select/hooks/useSelect.js +27 -35
- package/dist/es/components/internal/Image/Image.js +10 -10
- package/dist/es/components/internal/Img/Img.js +18 -32
- package/dist/es/components/internal/Img/Img.scss.js +4 -0
- package/dist/es/components/internal/Modal/Modal.js +58 -77
- package/dist/es/components/internal/Modal/Modal.scss.js +4 -0
- package/dist/es/components/internal/Pagination/Pagination.js +52 -58
- package/dist/es/components/internal/Pagination/Pagination.scss.js +4 -0
- package/dist/es/components/internal/Pagination/constants.js +4 -6
- package/dist/es/components/internal/Pagination/hooks/useCursorPaginatedRecords.js +7 -8
- package/dist/es/components/internal/Pagination/hooks/useCursorPagination.js +18 -30
- package/dist/es/components/internal/Pagination/hooks/useOffsetPagination.js +14 -21
- package/dist/es/components/internal/Pagination/hooks/usePageLimit.js +52 -60
- package/dist/es/components/internal/Pagination/hooks/usePaginatedRecords.js +80 -11
- package/dist/es/components/internal/Pagination/hooks/usePaginatedRecordsFilters.js +12 -13
- package/dist/es/components/internal/Pagination/hooks/usePagination.js +43 -87
- package/dist/es/components/internal/Pagination/types.js +5 -0
- package/dist/es/components/internal/Pagination/utils.js +5 -5
- package/dist/es/components/internal/Popover/Popover.js +106 -139
- package/dist/es/components/internal/Popover/Popover.scss.js +4 -0
- package/dist/es/components/internal/Popover/PopoverDismissButton/PopoverDismissButton.js +18 -22
- package/dist/es/components/internal/Popover/PopoverDismissButton/PopoverDismissButton.scss.js +4 -0
- package/dist/es/components/internal/Popover/PopoverTitle/PopoverTitle.js +8 -10
- package/dist/es/components/internal/Popover/constants.js +9 -16
- package/dist/es/components/internal/Popover/types.js +6 -0
- package/dist/es/components/internal/Popover/utils/popoverUtil.js +27 -45
- package/dist/es/components/internal/Popover/utils/utils.js +23 -29
- package/dist/es/components/internal/SVGIcons/CheckedBox.js +6 -6
- package/dist/es/components/internal/SVGIcons/Checkmark.js +7 -7
- package/dist/es/components/internal/SVGIcons/ChevronDown.js +6 -6
- package/dist/es/components/internal/SVGIcons/ChevronLeft.js +8 -8
- package/dist/es/components/internal/SVGIcons/ChevronRight.js +8 -8
- package/dist/es/components/internal/SVGIcons/ChevronUp.js +7 -7
- package/dist/es/components/internal/SVGIcons/Close.js +4 -4
- package/dist/es/components/internal/SVGIcons/Copy.js +3 -3
- package/dist/es/components/internal/SVGIcons/Filter.js +4 -4
- package/dist/es/components/internal/SVGIcons/UncheckedBox.js +6 -6
- package/dist/es/components/internal/Spinner/Spinner.js +4 -5
- package/dist/es/components/internal/Spinner/Spinner.scss.js +4 -0
- package/dist/es/components/internal/Tag/Tag.js +19 -5
- package/dist/es/components/internal/Tag/Tag.scss.js +4 -0
- package/dist/es/components/internal/Tag/types.js +4 -0
- package/dist/es/components/internal/Tooltip/Tooltip.js +31 -38
- package/dist/es/components/internal/Tooltip/Tooltip.scss.js +4 -0
- package/dist/es/components/internal/Tooltip/useTooltipListeners.js +17 -20
- package/dist/es/components/internal/Typography/Typography.js +33 -7
- package/dist/es/components/internal/Typography/Typography.scss.js +4 -0
- package/dist/es/components/internal/Typography/constants.js +2 -2
- package/dist/es/components/internal/Typography/types.js +6 -0
- package/dist/es/components/shared.scss.js +4 -0
- package/dist/es/components/types.js +4 -0
- package/dist/es/components/utils/transactionResourceErrorCodes.js +14 -15
- package/dist/es/constants.js +2 -2
- package/dist/es/core/Auth/AuthContext.js +7 -7
- package/dist/es/core/Auth/AuthProvider.js +15 -23
- package/dist/es/core/Auth/useAuthContext.js +4 -4
- package/dist/es/core/Context/CoreContext.js +5 -5
- package/dist/es/core/Context/CoreProvider.js +17 -23
- package/dist/es/core/Context/useCoreContext.js +4 -4
- package/dist/es/core/Errors/AdyenPlatformExperienceError.js +12 -17
- package/dist/es/core/Errors/constants.js +2 -4
- package/dist/es/core/Localization/Localization.js +155 -12
- package/dist/es/core/Localization/amount/amount-util.js +19 -42
- package/dist/es/core/Localization/constants/currency-codes.js +3 -3
- package/dist/es/core/Localization/constants/currency-decimals.js +3 -3
- package/dist/es/core/Localization/constants/locale.js +5 -7
- package/dist/es/core/Localization/constants/localization.js +6 -9
- package/dist/es/core/Localization/datetime/restamper/constants.js +20 -29
- package/dist/es/core/Localization/datetime/restamper/restamper.js +32 -44
- package/dist/es/core/Localization/datetime/restamper/utils.js +26 -44
- package/dist/es/core/Localization/localization-utils.js +31 -7
- package/dist/es/core/Localization/translations/ar.json.js +4 -0
- package/dist/es/core/Localization/translations/cs-CZ.json.js +4 -0
- package/dist/es/core/Localization/translations/da-DK.json.js +4 -0
- package/dist/es/core/Localization/translations/de-DE.json.js +4 -0
- package/dist/es/core/Localization/translations/el-GR.json.js +4 -0
- package/dist/es/core/Localization/translations/en-US.json.js +371 -0
- package/dist/es/core/Localization/translations/es-ES.json.js +255 -0
- package/dist/es/core/Localization/translations/fi-FI.json.js +4 -0
- package/dist/es/core/Localization/translations/fr-FR.json.js +4 -0
- package/dist/es/core/Localization/translations/hr-HR.json.js +4 -0
- package/dist/es/core/Localization/translations/hu-HU.json.js +4 -0
- package/dist/es/core/Localization/translations/index.js +79 -356
- package/dist/es/core/Localization/translations/it-IT.json.js +4 -0
- package/dist/es/core/Localization/translations/ja-JP.json.js +4 -0
- package/dist/es/core/Localization/translations/ko-KR.json.js +4 -0
- package/dist/es/core/Localization/translations/nl-NL.json.js +4 -0
- package/dist/es/core/Localization/translations/no-NO.json.js +4 -0
- package/dist/es/core/Localization/translations/pl-PL.json.js +4 -0
- package/dist/es/core/Localization/translations/pt-BR.json.js +4 -0
- package/dist/es/core/Localization/translations/pt-PT.json.js +4 -0
- package/dist/es/core/Localization/translations/ro-RO.json.js +4 -0
- package/dist/es/core/Localization/translations/ru-RU.json.js +4 -0
- package/dist/es/core/Localization/translations/sk-SK.json.js +4 -0
- package/dist/es/core/Localization/translations/sl-SI.json.js +4 -0
- package/dist/es/core/Localization/translations/sv-SE.json.js +4 -0
- package/dist/es/core/Localization/translations/zh-CN.json.js +4 -0
- package/dist/es/core/Localization/translations/zh-TW.json.js +4 -0
- package/dist/es/core/Localization/utils.js +44 -72
- package/dist/es/core/Services/requests/http.js +31 -49
- package/dist/es/core/Services/requests/utils.js +34 -49
- package/dist/es/core/Services/sessions/constants.js +2 -2
- package/dist/es/core/Services/sessions/setup-session.js +9 -9
- package/dist/es/core/Session/Session.js +23 -38
- package/dist/es/core/Session/utils.js +5 -5
- package/dist/es/core/config.js +2 -6
- package/dist/es/core/core.js +44 -85
- package/dist/es/core/utils.js +8 -10
- package/dist/es/external/preact/compat/dist/compat.module.js +253 -0
- package/dist/es/external/preact/dist/preact.module.js +316 -0
- package/dist/es/external/preact/hooks/dist/hooks.module.js +161 -0
- package/dist/es/external/preact/jsx-runtime/dist/jsxRuntime.module.js +19 -0
- package/dist/es/hooks/element/useClickOutside.js +32 -73
- package/dist/es/hooks/element/useDetachedRender.js +15 -17
- package/dist/es/hooks/element/useFocusCursor.js +14 -19
- package/dist/es/hooks/element/useFocusTrap.js +48 -91
- package/dist/es/hooks/element/usePopoverPositioner.js +105 -5
- package/dist/es/hooks/element/useUniqueIdentifier.js +13 -17
- package/dist/es/hooks/useBooleanState/useBooleanState.js +6 -8
- package/dist/es/hooks/useCommitAction/types.js +4 -0
- package/dist/es/hooks/useCommitAction/useCommitAction.js +27 -38
- package/dist/es/hooks/useFetch/useFetch.js +27 -37
- package/dist/es/hooks/useImageUrl/useImageUrl.js +22 -26
- package/dist/es/hooks/useModalDetails/types.js +6 -0
- package/dist/es/hooks/useModalDetails/useModalDetails.js +28 -37
- package/dist/es/hooks/useMounted/useMounted.js +8 -14
- package/dist/es/hooks/useReactiveState/useReactiveState.js +27 -53
- package/dist/es/hooks/useReflex/constants.js +2 -2
- package/dist/es/hooks/useReflex/core/reflex.js +47 -66
- package/dist/es/hooks/useReflex/core/registry.js +46 -68
- package/dist/es/hooks/useReflex/core/utils.js +16 -18
- package/dist/es/hooks/useReflex/errors.js +6 -6
- package/dist/es/hooks/useReflex/hooks/useReflex.js +7 -12
- package/dist/es/hooks/useSessionAwareRequest/useSessionAwareRequest.js +22 -36
- package/dist/es/hooks/useSetupEndpoint/useSetupEndpoint.js +20 -26
- package/dist/es/images/no-data-female.svg.js +4 -0
- package/dist/es/images/no-results.svg.js +4 -0
- package/dist/es/index.js +41 -45
- package/dist/es/style/index.scss.js +4 -0
- package/dist/es/utils/Storage.js +17 -21
- package/dist/es/utils/class-name-utils.js +5 -11
- package/dist/es/utils/common/constants.js +6 -10
- package/dist/es/utils/common/index.js +32 -59
- package/dist/es/utils/fixedForwardRef.js +3 -3
- package/dist/es/utils/get-image.js +11 -12
- package/dist/es/utils/idGenerator.js +3 -6
- package/dist/es/utils/memoComparator/memoComparator.js +17 -26
- package/dist/es/utils/tabbable.js +71 -110
- package/dist/es/utils/uuid.js +5 -5
- package/dist/es/utils/validator-utils.js +3 -44
- package/dist/es/utils/watchable/constants.js +2 -2
- package/dist/es/utils/watchable/core/Watchable.js +45 -83
- package/dist/es/utils/watchable/core/helpers.js +19 -26
- package/dist/es/utils/watchable/core/syncEffect.js +15 -19
- package/dist/es/utils/watchable/index.js +16 -17
- package/dist/index-7e2df524.js +12 -0
- package/dist/index-7e2df524.js.map +1 -0
- package/dist/style.css +1 -0
- package/dist/types/components/external/TransactionDetails/TransactionDetails.d.ts +1 -1
- package/dist/types/components/external/TransactionDetails/TransactionDetails.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts +1 -1
- package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/types.d.ts +3 -3
- package/dist/types/components/external/TransactionDetails/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/BalanceAccountSelector/useBalanceAccountSelection.d.ts +2 -2
- package/dist/types/components/external/TransactionsOverview/components/BalanceAccountSelector/useBalanceAccountSelection.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/BalanceItem/BalanceItem.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/BalanceItem/BalanceItem.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/BalanceItem/types.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/BalanceItem/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/Balances/Balances.d.ts +3 -3
- package/dist/types/components/external/TransactionsOverview/components/Balances/Balances.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/Category/Category.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/Category/Category.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/Category/types.d.ts +2 -2
- package/dist/types/components/external/TransactionsOverview/components/Category/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/ModalContent.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/ModalContent.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.d.ts +2 -2
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/constants.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/constants.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/types.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/utils.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/utils.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/types.d.ts +2 -2
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionListError/TransactionListError.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionListError/TransactionListError.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotalItem/types.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotalItem/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.d.ts +3 -3
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/TransactionsDisplay.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/TransactionsDisplay.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/types.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts +2 -2
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverviewDateFilter.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverviewDateFilter.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/types.d.ts +4 -4
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/hooks/useDefaultTransactionsOverviewFilterParams.d.ts +1 -0
- package/dist/types/components/external/TransactionsOverview/hooks/useDefaultTransactionsOverviewFilterParams.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/hooks/useMediaQuery.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/hooks/useMediaQuery.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/hooks/useTransactionsOverviewMultiSelectionFilters.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/hooks/useTransactionsOverviewMultiSelectionFilters.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/types.d.ts +2 -1
- package/dist/types/components/external/TransactionsOverview/types.d.ts.map +1 -1
- package/dist/types/components/external/UIElement.d.ts +1 -1
- package/dist/types/components/external/UIElement.d.ts.map +1 -1
- package/dist/types/components/internal/BaseList/BaseList.d.ts +1 -1
- package/dist/types/components/internal/BaseList/BaseList.d.ts.map +1 -1
- package/dist/types/components/internal/Button/ButtonActions/ButtonActions.d.ts +1 -1
- package/dist/types/components/internal/Button/ButtonActions/ButtonActions.d.ts.map +1 -1
- package/dist/types/components/internal/Button/ButtonActions/types.d.ts +1 -1
- package/dist/types/components/internal/Button/ButtonActions/types.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/shared/indexed/index.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.d.ts +1 -1
- package/dist/types/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/types.d.ts +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/types.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/types.d.ts +1 -1
- package/dist/types/components/internal/Calendar/calendar/types.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/clock/today.d.ts +1 -1
- package/dist/types/components/internal/Calendar/clock/today.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/clock/types.d.ts +2 -2
- package/dist/types/components/internal/Calendar/clock/types.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/components/CalendarGrid/utils.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/hooks/useCalendar.d.ts +1 -1
- package/dist/types/components/internal/Calendar/hooks/useCalendar.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/hooks/useTimezone.d.ts +1 -1
- package/dist/types/components/internal/Calendar/hooks/useTimezone.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/components/InteractiveBody.d.ts +1 -1
- package/dist/types/components/internal/DataGrid/components/InteractiveBody.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/components/TableBody.d.ts +1 -1
- package/dist/types/components/internal/DataGrid/components/TableBody.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/components/TableCells.d.ts +2 -2
- package/dist/types/components/internal/DataGrid/components/TableCells.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/hooks/useInteractiveDataGrid.d.ts +1 -1
- package/dist/types/components/internal/DataGrid/types.d.ts +2 -2
- package/dist/types/components/internal/DataGrid/types.d.ts.map +1 -1
- package/dist/types/components/internal/DatePicker/DatePicker.d.ts +1 -1
- package/dist/types/components/internal/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.d.ts +3 -3
- package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.d.ts.map +1 -1
- package/dist/types/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.d.ts +1 -1
- package/dist/types/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.d.ts.map +1 -1
- package/dist/types/components/internal/FilterBar/filters/AmountFilter/types.d.ts +2 -2
- package/dist/types/components/internal/FilterBar/filters/AmountFilter/types.d.ts.map +1 -1
- package/dist/types/components/internal/FilterBar/filters/BaseFilter/types.d.ts +2 -2
- package/dist/types/components/internal/FilterBar/filters/BaseFilter/types.d.ts.map +1 -1
- package/dist/types/components/internal/FilterBar/filters/DateFilter/types.d.ts +1 -1
- package/dist/types/components/internal/FilterBar/filters/DateFilter/types.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/types.d.ts +1 -1
- package/dist/types/components/internal/FormFields/Select/types.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/types.d.ts +1 -1
- package/dist/types/components/internal/Pagination/hooks/types.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/usePaginatedRecordsFilters.d.ts +1 -1
- package/dist/types/components/internal/Pagination/hooks/usePaginatedRecordsFilters.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/types.d.ts +1 -1
- package/dist/types/components/internal/Pagination/types.d.ts.map +1 -1
- package/dist/types/components/internal/Popover/Popover.d.ts +1 -1
- package/dist/types/components/internal/Popover/Popover.d.ts.map +1 -1
- package/dist/types/components/internal/Popover/types.d.ts +1 -1
- package/dist/types/components/internal/Popover/types.d.ts.map +1 -1
- package/dist/types/components/internal/Tooltip/types.d.ts +2 -2
- package/dist/types/components/internal/Tooltip/types.d.ts.map +1 -1
- package/dist/types/components/utils/transactionResourceErrorCodes.d.ts +2 -2
- package/dist/types/components/utils/transactionResourceErrorCodes.d.ts.map +1 -1
- package/dist/types/core/Auth/AuthContext.d.ts +1 -1
- package/dist/types/core/Auth/AuthContext.d.ts.map +1 -1
- package/dist/types/core/Auth/AuthProvider.d.ts +1 -1
- package/dist/types/core/Auth/AuthProvider.d.ts.map +1 -1
- package/dist/types/core/Auth/types.d.ts +1 -1
- package/dist/types/core/Auth/types.d.ts.map +1 -1
- package/dist/types/core/Context/CoreContext.d.ts +1 -1
- package/dist/types/core/Context/CoreContext.d.ts.map +1 -1
- package/dist/types/core/Context/types.d.ts +1 -1
- package/dist/types/core/Context/types.d.ts.map +1 -1
- package/dist/types/core/Errors/AdyenPlatformExperienceError.d.ts +1 -1
- package/dist/types/core/Errors/AdyenPlatformExperienceError.d.ts.map +1 -1
- package/dist/types/core/Localization/localization-utils.d.ts.map +1 -1
- package/dist/types/core/Localization/types.d.ts +3 -3
- package/dist/types/core/Localization/types.d.ts.map +1 -1
- package/dist/types/core/Session/types.d.ts +1 -1
- package/dist/types/core/Session/types.d.ts.map +1 -1
- package/dist/types/hooks/element/useClickOutside.d.ts +2 -2
- package/dist/types/hooks/element/useClickOutside.d.ts.map +1 -1
- package/dist/types/hooks/element/usePopoverPositioner.d.ts +1 -1
- package/dist/types/hooks/element/usePopoverPositioner.d.ts.map +1 -1
- package/dist/types/hooks/useCommitAction/types.d.ts +1 -1
- package/dist/types/hooks/useCommitAction/types.d.ts.map +1 -1
- package/dist/types/hooks/useFetch/useFetch.d.ts +1 -1
- package/dist/types/hooks/useFetch/useFetch.d.ts.map +1 -1
- package/dist/types/hooks/useModalDetails/types.d.ts +2 -2
- package/dist/types/hooks/useModalDetails/types.d.ts.map +1 -1
- package/dist/types/hooks/useSessionAwareRequest/useSessionAwareRequest.d.ts +1 -1
- package/dist/types/hooks/useSessionAwareRequest/useSessionAwareRequest.d.ts.map +1 -1
- package/dist/types/hooks/useSetupEndpoint/useSetupEndpoint.d.ts +2 -2
- package/dist/types/hooks/useSetupEndpoint/useSetupEndpoint.d.ts.map +1 -1
- package/dist/types/utils/Validator/types.d.ts +1 -1
- package/dist/types/utils/Validator/types.d.ts.map +1 -1
- package/dist/types/utils/useForm/types.d.ts +1 -1
- package/dist/types/utils/useForm/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/AmountSkeleton.css +0 -23
- package/dist/BalanceAccountSelector.css +0 -4
- package/dist/BaseButton.css +0 -14
- package/dist/BaseList.css +0 -5
- package/dist/Button.css +0 -114
- package/dist/ButtonActions-eb064f69.mjs +0 -46
- package/dist/ButtonActions.css +0 -28
- package/dist/CalendarGrid.css +0 -113
- package/dist/CopyText.css +0 -18
- package/dist/DatePicker.css +0 -64
- package/dist/ErrorMessageDisplay.css +0 -20
- package/dist/ErrorPanel.css +0 -15
- package/dist/ExpandableCard.css +0 -71
- package/dist/FilterBar.css +0 -40
- package/dist/FilterButton.css +0 -48
- package/dist/Img.css +0 -7
- package/dist/InputBase.css +0 -175
- package/dist/Modal.css +0 -110
- package/dist/Pagination.css +0 -25
- package/dist/Popover.css +0 -127
- package/dist/PopoverDismissButton.css +0 -12
- package/dist/RangeSelection.css +0 -26
- package/dist/Select.css +0 -149
- package/dist/SkeletonBody.css +0 -154
- package/dist/Spinner.css +0 -50
- package/dist/SummaryItem.css +0 -37
- package/dist/Tag-6d02fd64.mjs +0 -32
- package/dist/Tag.css +0 -34
- package/dist/Tooltip.css +0 -7
- package/dist/TotalsCard.css +0 -14
- package/dist/TransactionDetails.css +0 -74
- package/dist/TransactionsDisplay.css +0 -4
- package/dist/TransactionsOverview.css +0 -29
- package/dist/TransactionsOverviewContainer.css +0 -3
- package/dist/TransactionsTable.css +0 -18
- package/dist/Typography-11b95870.mjs +0 -68
- package/dist/Typography.css +0 -57
- package/dist/cjs/ModalContent-f4990141.js +0 -10
- package/dist/cjs/ModalContent-f4990141.js.map +0 -1
- package/dist/cjs/index-8c098f20.js +0 -10401
- package/dist/cjs/index-8c098f20.js.map +0 -1
- package/dist/cjs/index.css +0 -1709
- package/dist/compat.module-a4d537ff.mjs +0 -237
- package/dist/en-US-1daadfc1.mjs +0 -371
- package/dist/es/components/external/FormElement.js +0 -78
- package/dist/es/components/external/TransactionDetails/index.js +0 -4
- package/dist/es/components/external/TransactionsOverview/components/BalanceAccountSelector/index.js +0 -6
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/index.js +0 -15
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/index.js +0 -13
- package/dist/es/components/external/TransactionsOverview/index.js +0 -6
- package/dist/es/components/external/index.js +0 -8
- package/dist/es/components/index.js +0 -11
- package/dist/es/components/internal/BaseButton/index.js +0 -4
- package/dist/es/components/internal/Button/index.js +0 -4
- package/dist/es/components/internal/Calendar/calendar/index.js +0 -4
- package/dist/es/components/internal/Calendar/calendar/timeframe/frames/YearFrame.js +0 -197
- package/dist/es/components/internal/Calendar/calendar/timeframe/index.js +0 -8
- package/dist/es/components/internal/Calendar/calendar/timerange/factory.test.js +0 -139
- package/dist/es/components/internal/Calendar/calendar/timerange/index.js +0 -4
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/index.js +0 -14
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastMonth.test.js +0 -69
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastNDays.test.js +0 -69
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastWeek.test.js +0 -108
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/testing/fixtures.js +0 -15
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/testing/helpers.js +0 -19
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisMonth.test.js +0 -46
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisWeek.test.js +0 -85
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/yearToDate.test.js +0 -49
- package/dist/es/components/internal/Calendar/clock/clock.test.js +0 -43
- package/dist/es/components/internal/Calendar/clock/index.js +0 -7
- package/dist/es/components/internal/Calendar/clock/testing/fixtures.js +0 -60
- package/dist/es/components/internal/Calendar/clock/today.test.js +0 -98
- package/dist/es/components/internal/Calendar/components/CalendarControls/index.js +0 -4
- package/dist/es/components/internal/Calendar/components/CalendarGrid/index.js +0 -4
- package/dist/es/components/internal/Calendar/index.js +0 -4
- package/dist/es/components/internal/DataGrid/index.js +0 -4
- package/dist/es/components/internal/DataGrid/tests/DataGrid.test.js +0 -190
- package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/index.js +0 -7
- package/dist/es/components/internal/DatePicker/index.js +0 -4
- package/dist/es/components/internal/ExpandableCard/ExpandableCard.test.js +0 -45
- package/dist/es/components/internal/FilterBar/filters/BaseFilter/index.js +0 -4
- package/dist/es/components/internal/FilterBar/filters/DateFilter/index.js +0 -4
- package/dist/es/components/internal/FilterBar/filters/TextFilter/TextFilter.js +0 -8
- package/dist/es/components/internal/FilterBar/filters/TextFilter/index.js +0 -4
- package/dist/es/components/internal/FilterBar/index.js +0 -4
- package/dist/es/components/internal/FormFields/Select/index.js +0 -4
- package/dist/es/components/internal/FormFields/index.js +0 -18
- package/dist/es/components/internal/FormFields/utils.js +0 -4
- package/dist/es/components/internal/Img/index.js +0 -4
- package/dist/es/components/internal/Modal/index.js +0 -4
- package/dist/es/components/internal/Pagination/components/LimitSelect.js +0 -1
- package/dist/es/components/internal/Pagination/hooks/index.js +0 -6
- package/dist/es/components/internal/Pagination/hooks/useOffsetPaginatedRecords.js +0 -10
- package/dist/es/components/internal/Pagination/index.js +0 -4
- package/dist/es/components/internal/Popover/Popover.test.js +0 -119
- package/dist/es/components/internal/Spinner/index.js +0 -4
- package/dist/es/components/utils/utils.js +0 -34
- package/dist/es/core/Analytics/Analytics.js +0 -63
- package/dist/es/core/Analytics/EventsQueue.js +0 -22
- package/dist/es/core/Analytics/index.js +0 -4
- package/dist/es/core/Errors/ErrorPanel.js +0 -19
- package/dist/es/core/Localization/Localization.test.js +0 -70
- package/dist/es/core/Localization/amount/amount-util.test.js +0 -54
- package/dist/es/core/Localization/datetime/restamper/index.js +0 -9
- package/dist/es/core/Localization/datetime/restamper/restamper.test.js +0 -179
- package/dist/es/core/Localization/datetime/restamper/testing/fixtures.js +0 -21
- package/dist/es/core/Localization/datetime/restamper/testing/helpers.js +0 -27
- package/dist/es/core/Localization/index.js +0 -32
- package/dist/es/core/Localization/utils.test.js +0 -215
- package/dist/es/core/ProcessResponse/index.js +0 -4
- package/dist/es/core/ProcessResponse/process-response.js +0 -40
- package/dist/es/core/Services/analytics/collect-id.js +0 -37
- package/dist/es/core/Services/analytics/log-event.js +0 -14
- package/dist/es/core/Services/analytics/post-telemetry.js +0 -22
- package/dist/es/core/Services/data-set.js +0 -1
- package/dist/es/core/Services/get-dataset.js +0 -13
- package/dist/es/core/Services/requests/endpoints.js +0 -9
- package/dist/es/core/Session/index.js +0 -4
- package/dist/es/core/index.js +0 -36
- package/dist/es/hooks/element/useIdentifierString.js +0 -61
- package/dist/es/hooks/useBooleanState/index.js +0 -4
- package/dist/es/hooks/useCommitAction/index.js +0 -6
- package/dist/es/hooks/useDefinedValue/index.js +0 -4
- package/dist/es/hooks/useDefinedValue/useDefinedValue.js +0 -16
- package/dist/es/hooks/useMounted/index.js +0 -4
- package/dist/es/hooks/useReactiveState/index.js +0 -4
- package/dist/es/hooks/useReflex/core/reflex.test.js +0 -170
- package/dist/es/hooks/useReflex/core/registry.test.js +0 -114
- package/dist/es/hooks/useReflex/core/utils.test.js +0 -59
- package/dist/es/hooks/useReflex/index.js +0 -8
- package/dist/es/utils/Validator/ValidationRuleResult.js +0 -28
- package/dist/es/utils/Validator/Validator.js +0 -67
- package/dist/es/utils/Validator/Validator.test.js +0 -27
- package/dist/es/utils/Validator/defaultRules.js +0 -12
- package/dist/es/utils/Validator/index.js +0 -4
- package/dist/es/utils/get-image.test.js +0 -38
- package/dist/es/utils/memoComparator/index.js +0 -4
- package/dist/es/utils/regex.js +0 -6
- package/dist/es/utils/useForm/index.js +0 -4
- package/dist/es/utils/useForm/reducer.js +0 -153
- package/dist/es/utils/useForm/useForm.js +0 -85
- package/dist/es/utils/useForm/useForm.test.js +0 -107
- package/dist/es/utils/uuid.test.js +0 -13
- package/dist/es/utils/watchable/core/Watchable.test.js +0 -103
- package/dist/es/utils/watchable/core/helpers.test.js +0 -106
- package/dist/es/utils/watchable/core/syncEffect.test.js +0 -103
- package/dist/flags-41c36e13.mjs +0 -83
- package/dist/hooks.module-8565d716.mjs +0 -161
- package/dist/index-2c0f6175.mjs +0 -12069
- package/dist/index-6e47f755.mjs +0 -231
- package/dist/index-944be685.mjs +0 -6609
- package/dist/index-c88cd37e.mjs +0 -243
- package/dist/index-f5bc0382.mjs +0 -155
- package/dist/index.css +0 -65
- package/dist/index2.css +0 -4
- package/dist/jsxRuntime.module-69493d81.mjs +0 -15
- package/dist/magic-string.es-219c273f.mjs +0 -1146
- package/dist/preact.module-38e5a571.mjs +0 -323
- package/dist/types-0027b7c2.mjs +0 -9
- package/dist/types-0aaff3aa.mjs +0 -19
- package/dist/types-7ad6576a.mjs +0 -10
- package/dist/types-e4bbd37f.mjs +0 -13
- package/dist/types-e6a6a3ff.mjs +0 -9
- package/dist/usePaginatedRecords-63a69bf1.mjs +0 -131
- package/dist/usePopoverPositioner-882fea89.mjs +0 -182
- package/dist/vendor-vi.a3ff54b1-5e924357.mjs +0 -22389
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
import { o } from "../../../../../jsxRuntime.module-69493d81.mjs";
|
|
2
|
-
import { g as getQueriesForElement, r as render } from "../../../../../index-2c0f6175.mjs";
|
|
3
|
-
import { u as userEvent } from "../../../../../index-944be685.mjs";
|
|
4
|
-
import { D as DataGrid } from "../../../../../index-6e47f755.mjs";
|
|
5
|
-
import { d as describe, b as beforeEach, t as test, g as globalExpect, v as vi } from "../../../../../vendor-vi.a3ff54b1-5e924357.mjs";
|
|
6
|
-
const TRANSACTION_DETAILS_1 = {
|
|
7
|
-
id: "1WEPGD5VS767881Q",
|
|
8
|
-
amount: { currency: "EUR", value: 12e3 },
|
|
9
|
-
status: "Reversed",
|
|
10
|
-
category: "Payment",
|
|
11
|
-
paymentMethod: { type: "paypal" },
|
|
12
|
-
creationDate: "2022-08-29T14:47:03+02:00"
|
|
13
|
-
};
|
|
14
|
-
const TRANSACTION_DETAILS_2 = {
|
|
15
|
-
id: "3KVM0J5V771942G",
|
|
16
|
-
amount: { currency: "EUR", value: 950200 },
|
|
17
|
-
status: "Reversed",
|
|
18
|
-
category: "Refund",
|
|
19
|
-
bankAccount: {
|
|
20
|
-
accountNumberLastFourDigits: "1100"
|
|
21
|
-
},
|
|
22
|
-
creationDate: "2022-09-29T14:47:03+02:00"
|
|
23
|
-
};
|
|
24
|
-
const TRANSACTION_DETAILS_3 = {
|
|
25
|
-
id: "1WEPGE5W23KIX9U5",
|
|
26
|
-
amount: { currency: "USD", value: -4e3 },
|
|
27
|
-
status: "Booked",
|
|
28
|
-
category: "Fee",
|
|
29
|
-
paymentMethod: { type: "klarna" },
|
|
30
|
-
creationDate: "2022-08-29T14:47:03+02:00"
|
|
31
|
-
};
|
|
32
|
-
const TRANSACTION_DETAILS_4 = {
|
|
33
|
-
id: "1WEPGE5W2I3OPAQ6",
|
|
34
|
-
amount: { currency: "EUR", value: 45e3 },
|
|
35
|
-
status: "Reversed",
|
|
36
|
-
category: "Capital",
|
|
37
|
-
paymentMethod: { lastFourDigits: "2894", type: "visa" },
|
|
38
|
-
creationDate: "2022-08-29T14:47:03+02:00"
|
|
39
|
-
};
|
|
40
|
-
const TRANSACTION_DETAILS_5 = {
|
|
41
|
-
id: "1VVF0E5W838BKHRK",
|
|
42
|
-
amount: { currency: "EUR", value: 690500 },
|
|
43
|
-
status: "Booked",
|
|
44
|
-
category: "Transfer",
|
|
45
|
-
creationDate: "2022-08-29T14:47:03+02:00"
|
|
46
|
-
};
|
|
47
|
-
const TRANSACTION_DETAILS_6 = {
|
|
48
|
-
id: "1WEPGE5W838BO42V",
|
|
49
|
-
amount: { currency: "EUR", value: 85050 },
|
|
50
|
-
status: "Booked",
|
|
51
|
-
category: "Capital",
|
|
52
|
-
paymentMethod: { type: "klarna" },
|
|
53
|
-
creationDate: "2022-08-29T14:47:03+02:00"
|
|
54
|
-
};
|
|
55
|
-
const TRANSACTION_DETAILS_7 = {
|
|
56
|
-
id: "1WEPGE5W838BO47L",
|
|
57
|
-
amount: { currency: "EUR", value: 3e3 },
|
|
58
|
-
status: "Pending",
|
|
59
|
-
category: "Capital",
|
|
60
|
-
paymentMethod: { lastFourDigits: "9471", type: "amex" },
|
|
61
|
-
creationDate: "2022-08-29T14:47:03+02:00"
|
|
62
|
-
};
|
|
63
|
-
const TRANSACTION_DETAILS_8 = {
|
|
64
|
-
id: "1VVF0D5V370945D",
|
|
65
|
-
amount: { currency: "EUR", value: 82e4 },
|
|
66
|
-
status: "Booked",
|
|
67
|
-
category: "Correction",
|
|
68
|
-
bankAccount: {
|
|
69
|
-
accountNumberLastFourDigits: "2975"
|
|
70
|
-
},
|
|
71
|
-
creationDate: "2022-08-29T14:47:03+02:00"
|
|
72
|
-
};
|
|
73
|
-
const TRANSACTION_DETAILS_9 = {
|
|
74
|
-
id: "1WEPGE5W23KIX9T7",
|
|
75
|
-
amount: { currency: "EUR", value: 55e3 },
|
|
76
|
-
status: "Booked",
|
|
77
|
-
category: "Capital",
|
|
78
|
-
paymentMethod: { lastFourDigits: "1011", type: "visa" },
|
|
79
|
-
creationDate: "2022-08-29T14:47:03+02:00"
|
|
80
|
-
};
|
|
81
|
-
const BASIC_TRANSACTIONS_LIST = [
|
|
82
|
-
TRANSACTION_DETAILS_1,
|
|
83
|
-
TRANSACTION_DETAILS_2,
|
|
84
|
-
TRANSACTION_DETAILS_3,
|
|
85
|
-
TRANSACTION_DETAILS_3,
|
|
86
|
-
TRANSACTION_DETAILS_3,
|
|
87
|
-
TRANSACTION_DETAILS_3,
|
|
88
|
-
TRANSACTION_DETAILS_3,
|
|
89
|
-
TRANSACTION_DETAILS_3,
|
|
90
|
-
TRANSACTION_DETAILS_3,
|
|
91
|
-
TRANSACTION_DETAILS_3,
|
|
92
|
-
TRANSACTION_DETAILS_3,
|
|
93
|
-
TRANSACTION_DETAILS_3,
|
|
94
|
-
TRANSACTION_DETAILS_3,
|
|
95
|
-
TRANSACTION_DETAILS_3,
|
|
96
|
-
TRANSACTION_DETAILS_3,
|
|
97
|
-
TRANSACTION_DETAILS_3,
|
|
98
|
-
TRANSACTION_DETAILS_3,
|
|
99
|
-
TRANSACTION_DETAILS_3,
|
|
100
|
-
TRANSACTION_DETAILS_3,
|
|
101
|
-
TRANSACTION_DETAILS_3,
|
|
102
|
-
TRANSACTION_DETAILS_3,
|
|
103
|
-
TRANSACTION_DETAILS_4,
|
|
104
|
-
TRANSACTION_DETAILS_5,
|
|
105
|
-
TRANSACTION_DETAILS_6,
|
|
106
|
-
TRANSACTION_DETAILS_7,
|
|
107
|
-
TRANSACTION_DETAILS_8,
|
|
108
|
-
TRANSACTION_DETAILS_9
|
|
109
|
-
];
|
|
110
|
-
const columns = [
|
|
111
|
-
{
|
|
112
|
-
key: "creationDate",
|
|
113
|
-
label: "Date"
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
key: "status",
|
|
117
|
-
label: "Status"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
key: "paymentMethod",
|
|
121
|
-
label: "Type"
|
|
122
|
-
}
|
|
123
|
-
];
|
|
124
|
-
describe("DataGrid component with clickable rows", () => {
|
|
125
|
-
beforeEach(async (context) => {
|
|
126
|
-
const mockEventHandler = vi.fn();
|
|
127
|
-
const mockHover = vi.fn();
|
|
128
|
-
const screen = render(
|
|
129
|
-
/* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(
|
|
130
|
-
DataGrid,
|
|
131
|
-
{
|
|
132
|
-
data: BASIC_TRANSACTIONS_LIST,
|
|
133
|
-
columns,
|
|
134
|
-
loading: false,
|
|
135
|
-
onRowClick: { callback: mockEventHandler, retrievedField: "id" },
|
|
136
|
-
onRowHover: mockHover,
|
|
137
|
-
customCells: {
|
|
138
|
-
paymentMethod: ({ item }) => {
|
|
139
|
-
var _a;
|
|
140
|
-
return (
|
|
141
|
-
// Add this interactive element to test every possible keyboard interaction (left arrow or tab+shift to get focus back on the row)
|
|
142
|
-
/* @__PURE__ */ o("span", { tabIndex: 0, role: "button", children: (_a = item.paymentMethod) == null ? void 0 : _a.type })
|
|
143
|
-
);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
) })
|
|
148
|
-
);
|
|
149
|
-
const table = screen.getByRole("table");
|
|
150
|
-
const user = userEvent.setup();
|
|
151
|
-
const getRow = (index = 0) => {
|
|
152
|
-
return getQueriesForElement(getQueriesForElement(table).getAllByRole("rowgroup")[1]).getAllByRole("row")[index];
|
|
153
|
-
};
|
|
154
|
-
context.screen = screen;
|
|
155
|
-
context.mockEventHandler = mockEventHandler;
|
|
156
|
-
context.user = user;
|
|
157
|
-
context.getRow = getRow;
|
|
158
|
-
});
|
|
159
|
-
test("The rows are focusable", async ({ getRow, user }) => {
|
|
160
|
-
const firstRow = getRow(0);
|
|
161
|
-
globalExpect(document.body).toHaveFocus();
|
|
162
|
-
await user.tab();
|
|
163
|
-
globalExpect(firstRow).toHaveFocus();
|
|
164
|
-
});
|
|
165
|
-
test("The list is traversed with the keyboard arrows", async ({ getRow, user }) => {
|
|
166
|
-
const secondRow = getRow(1);
|
|
167
|
-
const thirdRow = getRow(2);
|
|
168
|
-
await user.tab();
|
|
169
|
-
await user.keyboard("[ArrowDown]");
|
|
170
|
-
globalExpect(secondRow).toHaveFocus();
|
|
171
|
-
await user.keyboard("[ArrowDown]");
|
|
172
|
-
globalExpect(thirdRow).toHaveFocus();
|
|
173
|
-
await user.keyboard("[ArrowUp]");
|
|
174
|
-
globalExpect(secondRow).toHaveFocus();
|
|
175
|
-
const buttonWithinRow = getQueriesForElement(secondRow).getByRole("button");
|
|
176
|
-
await user.tab();
|
|
177
|
-
globalExpect(buttonWithinRow).toHaveFocus();
|
|
178
|
-
await user.keyboard("[ArrowLeft]");
|
|
179
|
-
globalExpect(secondRow).toHaveFocus();
|
|
180
|
-
await user.tab();
|
|
181
|
-
globalExpect(buttonWithinRow).toHaveFocus();
|
|
182
|
-
await user.tab({ shift: true });
|
|
183
|
-
globalExpect(secondRow).toHaveFocus();
|
|
184
|
-
});
|
|
185
|
-
test("The click event is triggered with the ENTER key", async ({ user, mockEventHandler }) => {
|
|
186
|
-
await user.tab();
|
|
187
|
-
await user.keyboard("[Enter]");
|
|
188
|
-
globalExpect(mockEventHandler).toHaveBeenCalled();
|
|
189
|
-
});
|
|
190
|
-
});
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { default as default2 } from "./TimeRangeSelector.js";
|
|
2
|
-
import { getTimeRangeSelectionDefaultPresetOptions, useTimeRangeSelection } from "./useTimeRangeSelection.js";
|
|
3
|
-
export {
|
|
4
|
-
default2 as default,
|
|
5
|
-
getTimeRangeSelectionDefaultPresetOptions,
|
|
6
|
-
useTimeRangeSelection
|
|
7
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { o } from "../../../../jsxRuntime.module-69493d81.mjs";
|
|
2
|
-
import { w as waitForWrapper, s as screen, r as render } from "../../../../index-2c0f6175.mjs";
|
|
3
|
-
import ExpandableCard from "./ExpandableCard.js";
|
|
4
|
-
import { CONTAINER_HIDDEN_CLASS } from "./constants.js";
|
|
5
|
-
import { d as describe, b as beforeEach, t as test, g as globalExpect } from "../../../../vendor-vi.a3ff54b1-5e924357.mjs";
|
|
6
|
-
describe("ExpandableCard component", () => {
|
|
7
|
-
const testExpandBehaviour = async () => {
|
|
8
|
-
const expandButton = screen.getByTestId("expand-button");
|
|
9
|
-
const collapseButton = screen.getByTestId("collapse-button");
|
|
10
|
-
expandButton.click();
|
|
11
|
-
await waitForWrapper(() => {
|
|
12
|
-
globalExpect(collapseButton).not.toHaveClass(CONTAINER_HIDDEN_CLASS);
|
|
13
|
-
globalExpect(collapseButton).toHaveFocus();
|
|
14
|
-
});
|
|
15
|
-
return { expandButton, collapseButton };
|
|
16
|
-
};
|
|
17
|
-
beforeEach(() => {
|
|
18
|
-
render(
|
|
19
|
-
/* @__PURE__ */ o("div", { children: [
|
|
20
|
-
/* @__PURE__ */ o("button", { "data-testid": "outside-element", children: "Click" }),
|
|
21
|
-
/* @__PURE__ */ o(ExpandableCard, { renderHeader: "Header", children: "Body" })
|
|
22
|
-
] })
|
|
23
|
-
);
|
|
24
|
-
});
|
|
25
|
-
test("should show and focus collapse button when expand button is clicked", async () => {
|
|
26
|
-
await testExpandBehaviour();
|
|
27
|
-
});
|
|
28
|
-
test("should hide collapse button and focus expand button when collapse button is clicked", async () => {
|
|
29
|
-
const { collapseButton, expandButton } = await testExpandBehaviour();
|
|
30
|
-
collapseButton.click();
|
|
31
|
-
await waitForWrapper(() => {
|
|
32
|
-
globalExpect(collapseButton).toHaveClass(CONTAINER_HIDDEN_CLASS);
|
|
33
|
-
globalExpect(expandButton).toHaveFocus();
|
|
34
|
-
});
|
|
35
|
-
});
|
|
36
|
-
test("should hide collapse button and not focus expand button when clicking outside of the collapse button", async () => {
|
|
37
|
-
const outsideElement = screen.getByTestId("outside-element");
|
|
38
|
-
const { collapseButton, expandButton } = await testExpandBehaviour();
|
|
39
|
-
outsideElement.click();
|
|
40
|
-
await waitForWrapper(() => {
|
|
41
|
-
globalExpect(collapseButton).toHaveClass(CONTAINER_HIDDEN_CLASS);
|
|
42
|
-
globalExpect(expandButton).not.toHaveFocus();
|
|
43
|
-
});
|
|
44
|
-
});
|
|
45
|
-
});
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { o } from "../../../../../../jsxRuntime.module-69493d81.mjs";
|
|
2
|
-
import BaseFilter from "../BaseFilter/BaseFilter.js";
|
|
3
|
-
function TextFilter(props) {
|
|
4
|
-
return /* @__PURE__ */ o(BaseFilter, { ...props, type: "text" });
|
|
5
|
-
}
|
|
6
|
-
export {
|
|
7
|
-
TextFilter as default
|
|
8
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { o } from "../../../../jsxRuntime.module-69493d81.mjs";
|
|
2
|
-
import InputText from "./InputText.js";
|
|
3
|
-
import Select from "./Select/Select.js";
|
|
4
|
-
import "./InputBase.js";
|
|
5
|
-
const formFieldTypes = {
|
|
6
|
-
select: Select,
|
|
7
|
-
// All the following use InputBase
|
|
8
|
-
text: InputText,
|
|
9
|
-
default: InputText
|
|
10
|
-
};
|
|
11
|
-
const renderFormField = (type, ...props) => {
|
|
12
|
-
const FormInputElement = formFieldTypes[type] || formFieldTypes.default;
|
|
13
|
-
return /* @__PURE__ */ o(FormInputElement, { ...props[0] });
|
|
14
|
-
};
|
|
15
|
-
export {
|
|
16
|
-
renderFormField as default,
|
|
17
|
-
renderFormField
|
|
18
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { u as usePaginatedRecords, P as PaginationType } from "../../../../../usePaginatedRecords-63a69bf1.mjs";
|
|
2
|
-
const useOffsetPaginatedRecords = (initOptions) => {
|
|
3
|
-
return usePaginatedRecords({
|
|
4
|
-
...initOptions,
|
|
5
|
-
pagination: PaginationType.OFFSET
|
|
6
|
-
});
|
|
7
|
-
};
|
|
8
|
-
export {
|
|
9
|
-
useOffsetPaginatedRecords as default
|
|
10
|
-
};
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { o } from "../../../../jsxRuntime.module-69493d81.mjs";
|
|
2
|
-
import { B as ButtonVariant } from "../../../../types-7ad6576a.mjs";
|
|
3
|
-
import { a as PopoverContainerVariant, b as PopoverContainerPosition } from "../../../../usePopoverPositioner-882fea89.mjs";
|
|
4
|
-
import { s as screen, w as waitForWrapper, r as render } from "../../../../index-2c0f6175.mjs";
|
|
5
|
-
import { u as userEvent } from "../../../../index-944be685.mjs";
|
|
6
|
-
import { _ } from "../../../../preact.module-38e5a571.mjs";
|
|
7
|
-
import Popover from "./Popover.js";
|
|
8
|
-
import { d as describe, b as beforeEach, t as test, g as globalExpect, v as vi } from "../../../../vendor-vi.a3ff54b1-5e924357.mjs";
|
|
9
|
-
describe("Popover component", () => {
|
|
10
|
-
beforeEach((context) => {
|
|
11
|
-
const mockIntersectionObserver = vi.fn();
|
|
12
|
-
mockIntersectionObserver.mockReturnValue({
|
|
13
|
-
observe: () => null,
|
|
14
|
-
unobserve: () => null,
|
|
15
|
-
disconnect: () => null
|
|
16
|
-
});
|
|
17
|
-
context.dismiss = vi.fn();
|
|
18
|
-
context.applyAction = vi.fn();
|
|
19
|
-
window.IntersectionObserver = mockIntersectionObserver;
|
|
20
|
-
const buttonEl = _();
|
|
21
|
-
render(
|
|
22
|
-
/* @__PURE__ */ o("div", { children: [
|
|
23
|
-
/* @__PURE__ */ o("button", { ref: buttonEl, children: "Popover Controller" }),
|
|
24
|
-
buttonEl && /* @__PURE__ */ o(
|
|
25
|
-
Popover,
|
|
26
|
-
{
|
|
27
|
-
targetElement: buttonEl,
|
|
28
|
-
title: "Test Popover",
|
|
29
|
-
"aria-label": "popover-test",
|
|
30
|
-
open: true,
|
|
31
|
-
disableFocusTrap: true,
|
|
32
|
-
dismiss: context.dismiss,
|
|
33
|
-
dismissible: true,
|
|
34
|
-
variant: PopoverContainerVariant.TOOLTIP,
|
|
35
|
-
position: PopoverContainerPosition.BOTTOM,
|
|
36
|
-
actions: [
|
|
37
|
-
{
|
|
38
|
-
title: "apply",
|
|
39
|
-
variant: ButtonVariant.PRIMARY,
|
|
40
|
-
event: context.applyAction,
|
|
41
|
-
disabled: false
|
|
42
|
-
}
|
|
43
|
-
],
|
|
44
|
-
children: /* @__PURE__ */ o("input", { "data-testid": "mock-textbox", type: "text" })
|
|
45
|
-
}
|
|
46
|
-
)
|
|
47
|
-
] })
|
|
48
|
-
);
|
|
49
|
-
});
|
|
50
|
-
test("should automatically focus", async () => {
|
|
51
|
-
const inputEl = screen.getByTestId("mock-textbox");
|
|
52
|
-
await waitForWrapper(() => {
|
|
53
|
-
globalExpect(inputEl).toHaveFocus();
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
|
-
test("should call dismiss on click outside", async ({ dismiss }) => {
|
|
57
|
-
const titleEl = screen.getByText(/Test Popover/i);
|
|
58
|
-
const buttonEl = screen.getByRole("button", { name: "Popover Controller" });
|
|
59
|
-
const inputEl = screen.getByTestId("mock-textbox");
|
|
60
|
-
await waitForWrapper(() => {
|
|
61
|
-
globalExpect(inputEl).toHaveFocus();
|
|
62
|
-
});
|
|
63
|
-
await userEvent.click(inputEl);
|
|
64
|
-
globalExpect(titleEl).toBeInTheDocument();
|
|
65
|
-
globalExpect(dismiss).toBeCalledTimes(0);
|
|
66
|
-
await userEvent.click(buttonEl);
|
|
67
|
-
globalExpect(dismiss).toBeCalledTimes(1);
|
|
68
|
-
});
|
|
69
|
-
test("should call dismiss on esc keyboard action", async ({ dismiss }) => {
|
|
70
|
-
await userEvent.keyboard("[Escape]");
|
|
71
|
-
const buttonEl = screen.getByRole("button", { name: "Popover Controller" });
|
|
72
|
-
const popoverEl = screen.getByTestId("mock-textbox");
|
|
73
|
-
globalExpect(dismiss).toBeCalledTimes(1);
|
|
74
|
-
globalExpect(buttonEl).toHaveFocus();
|
|
75
|
-
globalExpect(popoverEl).not.toHaveFocus();
|
|
76
|
-
});
|
|
77
|
-
test("should have dismiss icon", async ({ dismiss }) => {
|
|
78
|
-
const closeButton = screen.getByLabelText(/close/i);
|
|
79
|
-
globalExpect(closeButton).toBeInTheDocument();
|
|
80
|
-
await userEvent.click(closeButton);
|
|
81
|
-
globalExpect(dismiss).toBeCalledTimes(1);
|
|
82
|
-
});
|
|
83
|
-
test("should have action button and call function on click", async ({ applyAction }) => {
|
|
84
|
-
const applyButton = screen.getByLabelText(/apply/i);
|
|
85
|
-
globalExpect(applyButton).toBeInTheDocument();
|
|
86
|
-
await userEvent.click(applyButton);
|
|
87
|
-
globalExpect(applyAction).toBeCalledTimes(1);
|
|
88
|
-
});
|
|
89
|
-
test.skip("should add tooltip class", async () => {
|
|
90
|
-
await waitForWrapper(
|
|
91
|
-
() => {
|
|
92
|
-
globalExpect(screen.getByRole("dialog")).toHaveClass("adyen-pe-tooltip");
|
|
93
|
-
},
|
|
94
|
-
{ timeout: 5e3 }
|
|
95
|
-
);
|
|
96
|
-
});
|
|
97
|
-
});
|
|
98
|
-
describe("Popover component close", () => {
|
|
99
|
-
beforeEach(() => {
|
|
100
|
-
const mockIntersectionObserver = vi.fn();
|
|
101
|
-
mockIntersectionObserver.mockReturnValue({
|
|
102
|
-
observe: () => null,
|
|
103
|
-
unobserve: () => null,
|
|
104
|
-
disconnect: () => null
|
|
105
|
-
});
|
|
106
|
-
window.IntersectionObserver = mockIntersectionObserver;
|
|
107
|
-
const buttonEl = _();
|
|
108
|
-
render(
|
|
109
|
-
/* @__PURE__ */ o("div", { children: [
|
|
110
|
-
/* @__PURE__ */ o("button", { ref: buttonEl, children: "Popover Controller" }),
|
|
111
|
-
/* @__PURE__ */ o(Popover, { targetElement: buttonEl, "aria-label": "popover-test", children: /* @__PURE__ */ o("input", { "data-testid": "mock-textbox", type: "text" }) })
|
|
112
|
-
] })
|
|
113
|
-
);
|
|
114
|
-
});
|
|
115
|
-
test("should not appear", () => {
|
|
116
|
-
const inputEl = screen.queryByRole("textbox");
|
|
117
|
-
globalExpect(inputEl).not.toBeInTheDocument();
|
|
118
|
-
});
|
|
119
|
-
});
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
const ALLOWED_PROPERTIES = ["action", "resultCode", "sessionData", "order"];
|
|
2
|
-
function getSanitizedResponse(response) {
|
|
3
|
-
const removedProperties = [];
|
|
4
|
-
const sanitizedObject = Object.keys(response).reduce((acc, cur) => {
|
|
5
|
-
if (!ALLOWED_PROPERTIES.includes(cur)) {
|
|
6
|
-
removedProperties.push(cur);
|
|
7
|
-
} else {
|
|
8
|
-
acc[cur] = response[cur];
|
|
9
|
-
}
|
|
10
|
-
return acc;
|
|
11
|
-
}, {});
|
|
12
|
-
if (removedProperties.length)
|
|
13
|
-
console.warn(`The following properties should not be passed to the client: ${removedProperties.join(", ")}`);
|
|
14
|
-
return sanitizedObject;
|
|
15
|
-
}
|
|
16
|
-
function resolveFinalResult(result) {
|
|
17
|
-
switch (result.resultCode) {
|
|
18
|
-
case "Authorised":
|
|
19
|
-
case "Received":
|
|
20
|
-
return ["success"];
|
|
21
|
-
case "Pending":
|
|
22
|
-
return ["success"];
|
|
23
|
-
case "Cancelled":
|
|
24
|
-
case "Error":
|
|
25
|
-
case "Refused":
|
|
26
|
-
return ["error"];
|
|
27
|
-
default:
|
|
28
|
-
return ["error"];
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
export {
|
|
32
|
-
getSanitizedResponse,
|
|
33
|
-
resolveFinalResult
|
|
34
|
-
};
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
-
var __publicField = (obj, key, value) => {
|
|
4
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
-
return value;
|
|
6
|
-
};
|
|
7
|
-
import logEvent from "../Services/analytics/log-event.js";
|
|
8
|
-
import logTelemetry from "../Services/analytics/post-telemetry.js";
|
|
9
|
-
import collectId from "../Services/analytics/collect-id.js";
|
|
10
|
-
import EventsQueue from "./EventsQueue.js";
|
|
11
|
-
const _Analytics = class _Analytics {
|
|
12
|
-
constructor({ loadingContext, locale, analytics }) {
|
|
13
|
-
__publicField(this, "checkoutAttemptId");
|
|
14
|
-
__publicField(this, "props");
|
|
15
|
-
__publicField(this, "logEvent");
|
|
16
|
-
__publicField(this, "logTelemetry");
|
|
17
|
-
__publicField(this, "queue", new EventsQueue());
|
|
18
|
-
__publicField(this, "collectId");
|
|
19
|
-
this.props = { ..._Analytics.defaultProps, ...analytics };
|
|
20
|
-
this.logEvent = logEvent({ loadingContext, locale });
|
|
21
|
-
this.logTelemetry = logTelemetry({ loadingContext, locale });
|
|
22
|
-
this.collectId = collectId({ loadingContext: loadingContext ?? "", experiments: this.props.experiments });
|
|
23
|
-
const { telemetry, enabled } = this.props;
|
|
24
|
-
if (telemetry === true && enabled === true) {
|
|
25
|
-
if (this.props.checkoutAttemptId) {
|
|
26
|
-
this.checkoutAttemptId = this.props.checkoutAttemptId;
|
|
27
|
-
if (this.checkoutAttemptId)
|
|
28
|
-
this.queue.run(this.checkoutAttemptId);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
send(event) {
|
|
33
|
-
const { enabled, payload, telemetry } = this.props;
|
|
34
|
-
if (enabled === true) {
|
|
35
|
-
if (telemetry === true && !this.checkoutAttemptId) {
|
|
36
|
-
this.collectId().then((checkoutAttemptId) => {
|
|
37
|
-
this.checkoutAttemptId = checkoutAttemptId;
|
|
38
|
-
if (this.checkoutAttemptId)
|
|
39
|
-
this.queue.run(this.checkoutAttemptId);
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
if (telemetry === true) {
|
|
43
|
-
const telemetryTask = (checkoutAttemptId) => this.logTelemetry({ ...event, ...payload && { ...payload }, checkoutAttemptId }).catch(() => {
|
|
44
|
-
});
|
|
45
|
-
this.queue.add(telemetryTask);
|
|
46
|
-
if (this.checkoutAttemptId) {
|
|
47
|
-
this.queue.run(this.checkoutAttemptId);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
this.logEvent(event);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
__publicField(_Analytics, "defaultProps", {
|
|
55
|
-
enabled: true,
|
|
56
|
-
telemetry: true,
|
|
57
|
-
checkoutAttemptId: null,
|
|
58
|
-
experiments: []
|
|
59
|
-
});
|
|
60
|
-
let Analytics = _Analytics;
|
|
61
|
-
export {
|
|
62
|
-
Analytics as default
|
|
63
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
-
var __publicField = (obj, key, value) => {
|
|
4
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
-
return value;
|
|
6
|
-
};
|
|
7
|
-
class EventsQueue {
|
|
8
|
-
constructor() {
|
|
9
|
-
__publicField(this, "events", []);
|
|
10
|
-
}
|
|
11
|
-
add(event) {
|
|
12
|
-
this.events.push(event);
|
|
13
|
-
}
|
|
14
|
-
run(checkoutAttemptId) {
|
|
15
|
-
const promises = this.events.map((e) => e(checkoutAttemptId));
|
|
16
|
-
this.events = [];
|
|
17
|
-
return Promise.all(promises);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
export {
|
|
21
|
-
EventsQueue as default
|
|
22
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import '../../../ErrorPanel.css';
|
|
2
|
-
import { o } from "../../../jsxRuntime.module-69493d81.mjs";
|
|
3
|
-
import { p } from "../../../hooks.module-8565d716.mjs";
|
|
4
|
-
const ErrorPanel$1 = "";
|
|
5
|
-
function ErrorPanel({ id = "ariaConsolidatedErrorField", heading = "Errors:", errors, callbackFn, showPanel = false }) {
|
|
6
|
-
if (!errors)
|
|
7
|
-
return null;
|
|
8
|
-
const { errorMessages } = errors;
|
|
9
|
-
p(() => {
|
|
10
|
-
callbackFn == null ? void 0 : callbackFn(errors);
|
|
11
|
-
}, [errors]);
|
|
12
|
-
return /* @__PURE__ */ o("div", { className: showPanel ? "adyen-pe-error-panel" : "adyen-pe-error-panel--sr-only", id, "aria-live": "polite", children: /* @__PURE__ */ o("div", { className: "adyen-pe-error-panel__wrapper", children: [
|
|
13
|
-
/* @__PURE__ */ o("div", { className: "adyen-pe-error-panel__header", children: /* @__PURE__ */ o("span", { className: "adyen-pe-error-panel__title", children: heading }) }),
|
|
14
|
-
errorMessages.map((error) => /* @__PURE__ */ o("div", { className: "adyen-pe-error-panel__error", children: error }, error))
|
|
15
|
-
] }) });
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
ErrorPanel
|
|
19
|
-
};
|