@adyen/adyen-platform-experience-web 1.0.0 → 1.0.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/LICENSE +21 -0
- package/README.md +69 -0
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/es/components/external/BaseElement.js +12 -3
- package/dist/es/components/external/PayoutDetails/PayoutDetails.js +18 -14
- package/dist/es/components/external/PayoutDetails/components/PayoutData.js +200 -85
- package/dist/es/components/external/PayoutDetails/components/constants.js +8 -7
- package/dist/es/components/external/PayoutsOverview/PayoutsOverviewElement.js +14 -20
- package/dist/es/components/external/PayoutsOverview/components/PayoutsOverview/PayoutsOverview.js +137 -116
- package/dist/es/components/external/PayoutsOverview/components/PayoutsOverviewContainer/PayoutsOverviewContainer.js +22 -14
- package/dist/es/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.js +92 -56
- package/dist/es/components/external/TransactionDetails/TransactionDetails.js +16 -12
- package/dist/es/components/external/TransactionDetails/components/TransactionData.js +81 -57
- package/dist/es/components/external/TransactionDetails/components/TransactionDataSkeleton.js +12 -9
- package/dist/es/components/external/TransactionsOverview/TransactionsOverviewElement.js +17 -23
- package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.js +16 -4
- package/dist/es/components/external/TransactionsOverview/components/BalanceItem/BalanceItem.js +35 -34
- package/dist/es/components/external/TransactionsOverview/components/Balances/Balances.js +52 -26
- package/dist/es/components/external/TransactionsOverview/components/Category/Category.js +17 -4
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.js +20 -25
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/constants.js +1 -13
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.js +12 -7
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/utils.js +4 -1
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.js +47 -20
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.js +22 -13
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.js +23 -28
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.js +30 -30
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.js +72 -41
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.js +215 -186
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewContainer/TransactionsOverviewContainer.js +22 -14
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/PaymentMethodCell.js +21 -14
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.js +116 -83
- package/dist/es/components/external/TransactionsOverview/hooks/useMaxWidths.js +4 -6
- package/dist/es/components/external/UIElement/UIElement.js +39 -24
- package/dist/es/components/hooks/useBalanceAccountSelection.js +20 -11
- package/dist/es/components/hooks/useBalanceAccounts.js +22 -19
- package/dist/es/components/hooks/useDefaultOverviewFilterParams.js +28 -16
- package/dist/es/components/hooks/useTimezoneAwareDateFormatting.js +31 -0
- package/dist/es/components/internal/Accordion/Accordion.js +58 -0
- package/dist/es/components/internal/Accordion/Accordion.scss.js +4 -0
- package/dist/es/components/internal/Accordion/constants.js +8 -0
- package/dist/es/components/internal/BaseButton/BaseButton.js +26 -12
- package/dist/es/components/internal/BaseList/BaseList.js +8 -3
- package/dist/es/components/internal/Button/Button.js +31 -18
- package/dist/es/components/internal/Button/ButtonActions/ButtonActions.js +19 -13
- package/dist/es/components/internal/Button/ButtonActions/types.js +4 -1
- package/dist/es/components/internal/Button/hooks/useButton.js +7 -10
- package/dist/es/components/internal/Calendar/Calendar.js +16 -15
- package/dist/es/components/internal/Calendar/calendar/facade/Calendar.js +161 -162
- package/dist/es/components/internal/Calendar/calendar/facade/index.js +40 -13
- package/dist/es/components/internal/Calendar/calendar/timeframe/common/flags.js +17 -18
- package/dist/es/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.js +42 -26
- package/dist/es/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.js +32 -24
- package/dist/es/components/internal/Calendar/calendar/timerange/factory.js +14 -9
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastNDays.js +13 -10
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetMonth.js +10 -2
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetWeek.js +22 -15
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/yearToDate.js +5 -1
- package/dist/es/components/internal/Calendar/calendar/timerange/utils.js +3 -1
- package/dist/es/components/internal/Calendar/calendar/timeslice/index.js +15 -5
- package/dist/es/components/internal/Calendar/components/CalendarControls/CalendarControls.js +11 -3
- package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGrid.js +46 -19
- package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDate.js +57 -39
- package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDayOfWeek.js +44 -26
- package/dist/es/components/internal/Calendar/components/CalendarGrid/utils.js +26 -12
- package/dist/es/components/internal/Calendar/hooks/useCalendar.js +53 -45
- package/dist/es/components/internal/Calendar/hooks/useCalendarControlsRendering.js +33 -38
- package/dist/es/components/internal/Calendar/hooks/useTimezone.js +24 -8
- package/dist/es/components/internal/Card/Card.js +28 -17
- package/dist/es/components/internal/CopyText/CopyText.js +15 -11
- package/dist/es/components/internal/DataGrid/DataGrid.js +104 -68
- package/dist/es/components/internal/DataGrid/DataGridCell.js +24 -23
- package/dist/es/components/internal/DataGrid/components/InteractiveBody.js +20 -12
- package/dist/es/components/internal/DataGrid/components/SkeletonBody.js +24 -14
- package/dist/es/components/internal/DataGrid/components/TableBody.js +14 -9
- package/dist/es/components/internal/DataGrid/components/TableCells.js +31 -10
- package/dist/es/components/internal/DataGrid/components/TableHeaderCell.js +23 -16
- package/dist/es/components/internal/DataGrid/hooks/useInteractiveDataGrid.js +75 -68
- package/dist/es/components/internal/DataGrid/utils/DataGridProvider.js +23 -18
- package/dist/es/components/internal/DataOverviewContainer/DataOverviewContainer.js +15 -15
- package/dist/es/components/internal/DataOverviewDetails/DataOverviewDetails.js +80 -39
- package/dist/es/components/internal/DataOverviewDisplay/DataDetailsModal.js +19 -18
- package/dist/es/components/internal/DataOverviewDisplay/constants.js +20 -1
- package/dist/es/components/internal/DataOverviewError/DataOverviewError.js +13 -16
- package/dist/es/components/internal/DatePicker/DatePicker.js +43 -25
- package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.js +24 -15
- package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.js +25 -29
- package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.js +48 -27
- package/dist/es/components/internal/ExpandableCard/ExpandableCard.js +59 -34
- package/dist/es/components/internal/FilterBar/FilterBar.js +29 -28
- package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.js +26 -5
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.js +52 -47
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/RangeSelection.js +54 -47
- package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.js +83 -90
- package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilter.js +40 -44
- package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilterCore.js +117 -102
- package/dist/es/components/internal/FormFields/InputBase.js +63 -54
- package/dist/es/components/internal/FormFields/InputText.js +11 -5
- package/dist/es/components/internal/FormFields/Select/BalanceAccountSelector/BalanceAccountSelector.js +30 -33
- package/dist/es/components/internal/FormFields/Select/Select.js +142 -149
- package/dist/es/components/internal/FormFields/Select/components/SelectButton.js +81 -61
- package/dist/es/components/internal/FormFields/Select/components/SelectList.js +59 -54
- package/dist/es/components/internal/FormFields/Select/components/SelectListItem.js +51 -31
- package/dist/es/components/internal/FormFields/Select/hooks/useSelect.js +27 -28
- package/dist/es/components/internal/Image/Image.js +21 -8
- package/dist/es/components/internal/Img/Img.js +25 -9
- package/dist/es/components/internal/Modal/Modal.js +61 -81
- package/dist/es/components/internal/Modal/ModalContent/ModalContent.js +23 -4
- package/dist/es/components/internal/Pagination/Pagination.js +58 -51
- package/dist/es/components/internal/Pagination/hooks/useCursorPagination.js +11 -4
- package/dist/es/components/internal/Pagination/hooks/useOffsetPagination.js +12 -5
- package/dist/es/components/internal/Pagination/hooks/usePageLimit.js +30 -27
- package/dist/es/components/internal/Pagination/hooks/usePaginatedRecords.js +104 -67
- package/dist/es/components/internal/Pagination/hooks/usePaginatedRecordsFilters.js +7 -1
- package/dist/es/components/internal/Pagination/hooks/usePagination.js +34 -13
- package/dist/es/components/internal/Popover/Popover.js +118 -128
- package/dist/es/components/internal/Popover/PopoverDismissButton/PopoverDismissButton.js +27 -20
- package/dist/es/components/internal/Popover/PopoverTitle/PopoverTitle.js +13 -6
- package/dist/es/components/internal/Popover/utils/popoverUtil.js +15 -7
- package/dist/es/components/internal/Popover/utils/utils.js +9 -8
- package/dist/es/components/internal/SVGIcons/CheckedBox.js +18 -10
- package/dist/es/components/internal/SVGIcons/Checkmark.js +20 -12
- package/dist/es/components/internal/SVGIcons/ChevronDown.js +20 -12
- package/dist/es/components/internal/SVGIcons/ChevronLeft.js +18 -10
- package/dist/es/components/internal/SVGIcons/ChevronRight.js +18 -10
- package/dist/es/components/internal/SVGIcons/ChevronUp.js +20 -12
- package/dist/es/components/internal/SVGIcons/Close.js +11 -5
- package/dist/es/components/internal/SVGIcons/Copy.js +13 -1
- package/dist/es/components/internal/SVGIcons/Filter.js +12 -5
- package/dist/es/components/internal/SVGIcons/UncheckedBox.js +18 -4
- package/dist/es/components/internal/Spinner/Spinner.js +14 -0
- package/dist/es/components/internal/Spinner/Spinner.scss.js +4 -0
- package/dist/es/components/internal/StructuredList/StructuredList.js +24 -19
- package/dist/es/components/internal/StructuredList/useStructuredListItem.js +14 -15
- package/dist/es/components/internal/Tag/Tag.js +16 -16
- package/dist/es/components/internal/Tooltip/Tooltip.js +35 -18
- package/dist/es/components/internal/Tooltip/useTooltipListeners.js +7 -10
- package/dist/es/components/internal/Typography/Typography.js +38 -28
- package/dist/es/components/utils/getCommonErrorCode.js +4 -1
- package/dist/es/components/utils/getErrorMessage.js +7 -5
- package/dist/es/core/Auth/context.js +14 -8
- package/dist/es/core/Auth/session/AuthSession.js +53 -73
- package/dist/es/core/Auth/session/AuthSessionSpecification.js +54 -39
- package/dist/es/core/Auth/session/AuthSetupContext.js +67 -43
- package/dist/es/core/Auth/session/constants.js +8 -11
- package/dist/es/core/Context/CoreProvider.js +21 -11
- package/dist/es/core/Http/http.js +43 -33
- package/dist/es/core/Http/utils.js +18 -12
- package/dist/es/core/Localization/Localization.js +98 -82
- package/dist/es/core/Localization/constants/localization.js +5 -1
- package/dist/es/core/Localization/datetime/restamper/constants.js +12 -2
- package/dist/es/core/Localization/datetime/restamper/restamper.js +18 -5
- package/dist/es/core/Localization/datetime/restamper/utils.js +4 -1
- package/dist/es/core/Localization/localization-utils.js +30 -18
- package/dist/es/core/Localization/utils.js +6 -1
- package/dist/es/core/core.js +26 -17
- package/dist/es/hooks/element/useClickOutside.js +29 -35
- package/dist/es/hooks/element/useDetachedRender.js +7 -10
- package/dist/es/hooks/element/useFocusCursor.js +10 -18
- package/dist/es/hooks/element/useFocusTrap.js +3 -6
- package/dist/es/hooks/element/usePopoverPositioner.js +43 -65
- package/dist/es/hooks/element/useUniqueIdentifier.js +3 -9
- package/dist/es/hooks/useCommitAction/useCommitAction.js +25 -19
- package/dist/es/hooks/useFetch/useFetch.js +29 -7
- package/dist/es/hooks/useImageUrl/useImageUrl.js +12 -10
- package/dist/es/hooks/useModalDetails/useModalDetails.js +15 -15
- package/dist/es/hooks/useReactiveState/useReactiveState.js +21 -9
- package/dist/es/index.js +1 -1
- package/dist/es/primitives/async/abortable/main.js +19 -16
- package/dist/es/primitives/async/promisor/main.js +13 -12
- package/dist/es/primitives/auxiliary/indexed/main.js +18 -22
- package/dist/es/primitives/context/session/SessionContext.js +41 -129
- package/dist/es/primitives/context/session/constants.js +9 -6
- package/dist/es/primitives/context/session/internal/autofresher.js +34 -0
- package/dist/es/primitives/context/session/internal/constants.js +7 -0
- package/dist/es/primitives/context/session/internal/deadline.js +62 -0
- package/dist/es/primitives/context/session/internal/refresher.js +66 -0
- package/dist/es/primitives/dom/tabbableRoot/tabbable.js +3 -1
- package/dist/es/primitives/reactive/eventEmitter/main.js +11 -19
- package/dist/es/primitives/reactive/reflex/main.js +33 -19
- package/dist/es/primitives/reactive/reflex/register.js +9 -3
- package/dist/es/primitives/reactive/watchlist/helpers.js +12 -8
- package/dist/es/primitives/reactive/watchlist/main.js +4 -5
- package/dist/es/primitives/time/clock/main.js +6 -1
- package/dist/es/primitives/time/interval/main.js +1 -1
- package/dist/es/primitives/time/today/main.js +9 -2
- package/dist/es/translations/da-DK.json.js +48 -42
- package/dist/es/translations/de-DE.json.js +100 -94
- package/dist/es/translations/es-ES.json.js +48 -42
- package/dist/es/translations/fr-FR.json.js +35 -29
- package/dist/es/translations/index.js +21 -1
- package/dist/es/translations/it-IT.json.js +27 -21
- package/dist/es/translations/nl-NL.json.js +35 -29
- package/dist/es/translations/no-NO.json.js +58 -52
- package/dist/es/translations/pt-BR.json.js +27 -21
- package/dist/es/translations/sv-SE.json.js +53 -47
- package/dist/es/utils/abort/constants.js +5 -0
- package/dist/es/utils/abort/internals.js +29 -0
- package/dist/es/utils/abort/main.js +51 -0
- package/dist/es/utils/preact/memoComparator/main.js +3 -1
- package/dist/es/utils/struct/main.js +5 -1
- package/dist/style.css +1 -1
- package/dist/types/components/external/PayoutDetails/PayoutDetails.d.ts.map +1 -1
- package/dist/types/components/external/PayoutDetails/components/PayoutData.d.ts +40 -3
- package/dist/types/components/external/PayoutDetails/components/PayoutData.d.ts.map +1 -1
- package/dist/types/components/external/PayoutDetails/components/constants.d.ts +1 -0
- package/dist/types/components/external/PayoutDetails/components/constants.d.ts.map +1 -1
- package/dist/types/components/external/PayoutsOverview/PayoutsOverviewElement.d.ts.map +1 -1
- package/dist/types/components/external/PayoutsOverview/components/PayoutsOverview/PayoutsOverview.d.ts +1 -1
- package/dist/types/components/external/PayoutsOverview/components/PayoutsOverview/PayoutsOverview.d.ts.map +1 -1
- package/dist/types/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.d.ts +1 -2
- package/dist/types/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/TransactionDetails.d.ts +2 -2
- 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/components/TransactionDataSkeleton.d.ts +2 -2
- package/dist/types/components/external/TransactionDetails/components/TransactionDataSkeleton.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/index.d.ts +1 -1
- package/dist/types/components/external/TransactionDetails/index.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/types.d.ts +2 -5
- package/dist/types/components/external/TransactionDetails/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/TransactionsOverviewElement.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.d.ts +5 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/utils.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/PaymentMethodCell.d.ts.map +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 +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/hooks/useMaxWidths.d.ts.map +1 -1
- package/dist/types/components/external/UIElement/UIElement.d.ts.map +1 -1
- package/dist/types/components/hooks/useBalanceAccounts.d.ts +1 -1
- package/dist/types/components/hooks/useBalanceAccounts.d.ts.map +1 -1
- package/dist/types/components/hooks/useDefaultOverviewFilterParams.d.ts +2 -1
- package/dist/types/components/hooks/useDefaultOverviewFilterParams.d.ts.map +1 -1
- package/dist/types/components/hooks/useTimezoneAwareDateFormatting.d.ts +6 -0
- package/dist/types/components/hooks/useTimezoneAwareDateFormatting.d.ts.map +1 -0
- package/dist/types/components/internal/Accordion/Accordion.d.ts +6 -0
- package/dist/types/components/internal/Accordion/Accordion.d.ts.map +1 -0
- package/dist/types/components/internal/Accordion/constants.d.ts +6 -0
- package/dist/types/components/internal/Accordion/constants.d.ts.map +1 -0
- package/dist/types/components/internal/Accordion/types.d.ts +7 -0
- package/dist/types/components/internal/Accordion/types.d.ts.map +1 -0
- package/dist/types/components/internal/Calendar/calendar/facade/Calendar.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timeframe/common/utils.d.ts +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/CopyText/CopyText.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/components/InteractiveBody.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/components/SkeletonBody.d.ts +1 -1
- package/dist/types/components/internal/DataGrid/components/SkeletonBody.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 +1 -1
- package/dist/types/components/internal/DataGrid/components/TableCells.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/components/TableHeaderCell.d.ts +1 -1
- package/dist/types/components/internal/DataGrid/components/TableHeaderCell.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/hooks/useInteractiveDataGrid.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/utils/DataGridProvider.d.ts.map +1 -1
- package/dist/types/components/internal/DataOverviewDetails/DataOverviewDetails.d.ts.map +1 -1
- package/dist/types/components/internal/DataOverviewDetails/types.d.ts +3 -6
- package/dist/types/components/internal/DataOverviewDetails/types.d.ts.map +1 -1
- package/dist/types/components/internal/DataOverviewDisplay/constants.d.ts +4 -1
- package/dist/types/components/internal/DataOverviewDisplay/constants.d.ts.map +1 -1
- package/dist/types/components/internal/DataOverviewError/DataOverviewError.d.ts +1 -1
- package/dist/types/components/internal/DataOverviewError/DataOverviewError.d.ts.map +1 -1
- package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.d.ts +1 -1
- package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.d.ts.map +1 -1
- package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.d.ts +2 -2
- package/dist/types/components/internal/FilterBar/filters/DateFilter/DateFilter.d.ts +7 -1
- package/dist/types/components/internal/FilterBar/filters/DateFilter/DateFilter.d.ts.map +1 -1
- package/dist/types/components/internal/FilterBar/filters/DateFilter/DateFilterCore.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/Select.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/components/SelectButton.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/components/SelectListItem.d.ts +12 -3
- package/dist/types/components/internal/FormFields/Select/components/SelectListItem.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/hooks/useSelect.d.ts +1 -1
- package/dist/types/components/internal/FormFields/Select/hooks/useSelect.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/index.d.ts.map +1 -1
- package/dist/types/components/internal/Modal/Modal.d.ts +1 -1
- package/dist/types/components/internal/Modal/Modal.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/types.d.ts +0 -1
- package/dist/types/components/internal/Pagination/hooks/types.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/useCursorPaginatedRecords.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/useOffsetPaginatedRecords.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/useOffsetPagination.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/usePaginatedRecords.d.ts +1 -1
- package/dist/types/components/internal/Pagination/hooks/usePaginatedRecords.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/usePaginatedRecordsFilters.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/usePagination.d.ts +1 -1
- package/dist/types/components/internal/Pagination/hooks/usePagination.d.ts.map +1 -1
- package/dist/types/components/internal/Popover/Popover.d.ts.map +1 -1
- package/dist/types/components/internal/Spinner/Spinner.d.ts +18 -0
- package/dist/types/components/internal/Spinner/Spinner.d.ts.map +1 -0
- package/dist/types/components/internal/Spinner/index.d.ts +2 -0
- package/dist/types/components/internal/Spinner/index.d.ts.map +1 -0
- package/dist/types/components/internal/StructuredList/types.d.ts +3 -2
- package/dist/types/components/internal/StructuredList/types.d.ts.map +1 -1
- package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts +9 -133
- package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts.map +1 -1
- package/dist/types/components/internal/Tooltip/useTooltipListeners.d.ts.map +1 -1
- package/dist/types/components/types.d.ts +7 -15
- package/dist/types/components/types.d.ts.map +1 -1
- package/dist/types/components/utils/getLabel.d.ts +1 -1
- package/dist/types/core/Auth/context.d.ts +56 -42
- package/dist/types/core/Auth/context.d.ts.map +1 -1
- package/dist/types/core/Auth/session/AuthSession.d.ts +62 -53
- package/dist/types/core/Auth/session/AuthSession.d.ts.map +1 -1
- package/dist/types/core/Auth/session/AuthSessionSpecification.d.ts +7 -4
- package/dist/types/core/Auth/session/AuthSessionSpecification.d.ts.map +1 -1
- package/dist/types/core/Auth/session/AuthSetupContext.d.ts +58 -43
- package/dist/types/core/Auth/session/AuthSetupContext.d.ts.map +1 -1
- package/dist/types/core/Auth/session/constants.d.ts +0 -3
- package/dist/types/core/Auth/session/constants.d.ts.map +1 -1
- package/dist/types/core/Auth/types.d.ts +6 -6
- package/dist/types/core/Auth/types.d.ts.map +1 -1
- package/dist/types/core/Context/CoreProvider.d.ts +1 -1
- package/dist/types/core/Context/CoreProvider.d.ts.map +1 -1
- package/dist/types/core/Context/types.d.ts +2 -0
- package/dist/types/core/Context/types.d.ts.map +1 -1
- package/dist/types/core/Http/http.d.ts.map +1 -1
- package/dist/types/core/Http/utils.d.ts.map +1 -1
- package/dist/types/core/Localization/Localization.d.ts.map +1 -1
- package/dist/types/core/Localization/datetime/restamper/utils.d.ts.map +1 -1
- package/dist/types/core/Localization/localization-utils.d.ts.map +1 -1
- package/dist/types/core/Localization/utils.d.ts +4 -4
- package/dist/types/core/Localization/utils.d.ts.map +1 -1
- package/dist/types/core/core.d.ts +3 -2
- package/dist/types/core/core.d.ts.map +1 -1
- package/dist/types/core/types.d.ts +4 -6
- package/dist/types/core/types.d.ts.map +1 -1
- package/dist/types/hooks/element/useClickOutside.d.ts +2 -1
- package/dist/types/hooks/element/useClickOutside.d.ts.map +1 -1
- package/dist/types/hooks/element/useDetachedRender.d.ts.map +1 -1
- package/dist/types/hooks/element/useFocusTrap.d.ts.map +1 -1
- package/dist/types/hooks/useImageUrl/useImageUrl.d.ts.map +1 -1
- package/dist/types/hooks/useMediaQuery/useMediaQuery.d.ts.map +1 -1
- package/dist/types/hooks/useModalDetails/useModalDetails.d.ts.map +1 -1
- package/dist/types/hooks/useMounted/useMounted.d.ts +1 -1
- package/dist/types/hooks/useMounted/useMounted.d.ts.map +1 -1
- package/dist/types/hooks/useReactiveState/useReactiveState.d.ts.map +1 -1
- package/dist/types/hooks/useReflex/useReflex.d.ts.map +1 -1
- package/dist/types/primitives/async/abortable/main.d.ts +1 -1
- package/dist/types/primitives/async/abortable/main.d.ts.map +1 -1
- package/dist/types/primitives/async/promisor/main.d.ts.map +1 -1
- package/dist/types/primitives/auxiliary/indexed/helpers.d.ts.map +1 -1
- package/dist/types/primitives/auxiliary/indexed/main.d.ts.map +1 -1
- package/dist/types/primitives/context/session/SessionContext.d.ts +6 -27
- package/dist/types/primitives/context/session/SessionContext.d.ts.map +1 -1
- package/dist/types/primitives/context/session/constants.d.ts +6 -3
- package/dist/types/primitives/context/session/constants.d.ts.map +1 -1
- package/dist/types/primitives/context/session/internal/autofresher.d.ts +7 -0
- package/dist/types/primitives/context/session/internal/autofresher.d.ts.map +1 -0
- package/dist/types/primitives/context/session/internal/constants.d.ts +5 -0
- package/dist/types/primitives/context/session/internal/constants.d.ts.map +1 -0
- package/dist/types/primitives/context/session/internal/deadline.d.ts +6 -0
- package/dist/types/primitives/context/session/internal/deadline.d.ts.map +1 -0
- package/dist/types/primitives/context/session/internal/refresher.d.ts +6 -0
- package/dist/types/primitives/context/session/internal/refresher.d.ts.map +1 -0
- package/dist/types/primitives/context/session/internal/types.d.ts +27 -0
- package/dist/types/primitives/context/session/internal/types.d.ts.map +1 -0
- package/dist/types/primitives/context/session/types.d.ts +8 -4
- package/dist/types/primitives/context/session/types.d.ts.map +1 -1
- package/dist/types/primitives/reactive/effectStack/main.d.ts.map +1 -1
- package/dist/types/primitives/reactive/reflex/helpers.d.ts.map +1 -1
- package/dist/types/primitives/reactive/reflex/main.d.ts.map +1 -1
- package/dist/types/primitives/reactive/watchlist/helpers.d.ts.map +1 -1
- package/dist/types/primitives/reactive/watchlist/main.d.ts +1 -1
- package/dist/types/primitives/reactive/watchlist/main.d.ts.map +1 -1
- package/dist/types/primitives/time/interval/main.d.ts.map +1 -1
- package/dist/types/translations/index.d.ts +108 -0
- package/dist/types/translations/index.d.ts.map +1 -1
- package/dist/types/types/api/endpoints.d.ts +18 -2
- package/dist/types/types/api/endpoints.d.ts.map +1 -1
- package/dist/types/types/api/models/index.d.ts +1 -0
- package/dist/types/types/api/models/index.d.ts.map +1 -1
- package/dist/types/types/api/models/reports.d.ts +4 -0
- package/dist/types/types/api/models/reports.d.ts.map +1 -0
- package/dist/types/types/api/resources/BalanceAccountsResource.d.ts +8 -8
- package/dist/types/types/api/resources/BalanceAccountsResource.d.ts.map +1 -1
- package/dist/types/types/api/resources/PayoutsResource.d.ts +19 -19
- package/dist/types/types/api/resources/PayoutsResource.d.ts.map +1 -1
- package/dist/types/types/api/resources/ReportsResource.d.ts +92 -0
- package/dist/types/types/api/resources/ReportsResource.d.ts.map +1 -0
- package/dist/types/types/api/resources/SetupResource.d.ts +1 -1
- package/dist/types/types/api/resources/SetupResource.d.ts.map +1 -1
- package/dist/types/types/api/resources/TransactionsResource.d.ts +25 -25
- package/dist/types/types/api/resources/TransactionsResource.d.ts.map +1 -1
- package/dist/types/utils/abort/constants.d.ts +5 -0
- package/dist/types/utils/abort/constants.d.ts.map +1 -0
- package/dist/types/utils/abort/internals.d.ts +4 -0
- package/dist/types/utils/abort/internals.d.ts.map +1 -0
- package/dist/types/utils/abort/main.d.ts +9 -0
- package/dist/types/utils/abort/main.d.ts.map +1 -0
- package/dist/types/utils/async/main.d.ts.map +1 -1
- package/dist/types/utils/collection/main.d.ts +1 -1
- package/dist/types/utils/collection/main.d.ts.map +1 -1
- package/dist/types/utils/common.d.ts +2 -2
- package/dist/types/utils/common.d.ts.map +1 -1
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/index.d.ts.map +1 -1
- package/dist/types/utils/preact/fixedForwardRef.d.ts +3 -3
- package/dist/types/utils/preact/fixedForwardRef.d.ts.map +1 -1
- package/dist/types/utils/struct/main.d.ts +1 -1
- package/dist/types/utils/struct/main.d.ts.map +1 -1
- package/dist/types/utils/struct/property.d.ts.map +1 -1
- package/dist/types/utils/value/is.d.ts +2 -2
- package/dist/types/utils/value/is.d.ts.map +1 -1
- package/dist/types/utils/value/number.d.ts.map +1 -1
- package/package.json +158 -106
- package/dist/es/primitives/auxiliary/abortSink/main.js +0 -42
- package/dist/types/core/Analytics/types.d.ts +0 -28
- package/dist/types/core/Analytics/types.d.ts.map +0 -1
- package/dist/types/primitives/auxiliary/abortSink/index.d.ts +0 -3
- package/dist/types/primitives/auxiliary/abortSink/index.d.ts.map +0 -1
- package/dist/types/primitives/auxiliary/abortSink/main.d.ts +0 -5
- package/dist/types/primitives/auxiliary/abortSink/main.d.ts.map +0 -1
- package/dist/types/primitives/auxiliary/abortSink/types.d.ts +0 -7
- package/dist/types/primitives/auxiliary/abortSink/types.d.ts.map +0 -1
- package/dist/types/types/api/resources/PaymentInstrumentsResource.d.ts +0 -70
- package/dist/types/types/api/resources/PaymentInstrumentsResource.d.ts.map +0 -1
|
@@ -3,6 +3,6 @@ import { CoreProviderProps } from './types';
|
|
|
3
3
|
* CoreProvider Component
|
|
4
4
|
* Wraps a component delaying the render until after the i18n module is fully loaded
|
|
5
5
|
*/
|
|
6
|
-
declare const CoreProvider: ({ i18n, children, commonProps: _commonProps, loadingContext: _loadingContext, updateCore, }: CoreProviderProps) => import("preact").JSX.Element | null;
|
|
6
|
+
declare const CoreProvider: ({ i18n, children, commonProps: _commonProps, loadingContext: _loadingContext, updateCore, externalErrorHandler, }: CoreProviderProps) => import("preact").JSX.Element | null;
|
|
7
7
|
export default CoreProvider;
|
|
8
8
|
//# sourceMappingURL=CoreProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoreProvider.d.ts","sourceRoot":"","sources":["../../../../src/core/Context/CoreProvider.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAI5C;;;GAGG;AACH,QAAA,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"CoreProvider.d.ts","sourceRoot":"","sources":["../../../../src/core/Context/CoreProvider.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAI5C;;;GAGG;AACH,QAAA,MAAM,YAAY,sHAOf,iBAAiB,wCAmBnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import Localization from '../Localization';
|
|
2
|
+
import { onErrorHandler } from '../types';
|
|
2
3
|
export interface CommonPropsTypes {
|
|
3
4
|
isCollatingErrors?: boolean;
|
|
4
5
|
}
|
|
@@ -8,5 +9,6 @@ export interface CoreProviderProps {
|
|
|
8
9
|
i18n?: Localization['i18n'];
|
|
9
10
|
loadingContext?: string;
|
|
10
11
|
updateCore?: () => void;
|
|
12
|
+
externalErrorHandler?: onErrorHandler | null;
|
|
11
13
|
}
|
|
12
14
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/core/Context/types.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/core/Context/types.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,WAAW,gBAAgB;IAC7B,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,MAAM,WAAW,iBAAiB;IAC9B,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,IAAI,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,oBAAoB,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;CAChD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../../src/core/Http/http.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../../src/core/Http/http.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAYtC,wBAAsB,IAAI,CAAC,CAAC,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,CAAC,CAAC,CAuF1E;AAED,wBAAgB,OAAO,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAE3E;AAED,wBAAgB,QAAQ,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,EAAE,IAAI,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,CAAC,CAAC,CAExF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/core/Http/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAGtE,0BAAkB,UAAU;IACxB,qBAAqB;IACrB,aAAa,kBAAkB;IAE/B,gDAAgD;IAChD,MAAM,WAAW;IAEjB,wFAAwF;IACxF,oBAAoB,yBAAyB;IAE7C,qBAAqB;IACrB,KAAK,UAAU;IAEf,oBAAoB;IACpB,aAAa,kBAAkB;CAClC;AAED,eAAO,MAAM,YAAY,cAAe,MAAM,KAAG,UAOhD,CAAC;AAEF,eAAO,MAAM,gBAAgB,YAAa,WAAW,SAAS,GAAG,KAAG,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/core/Http/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAGtE,0BAAkB,UAAU;IACxB,qBAAqB;IACrB,aAAa,kBAAkB;IAE/B,gDAAgD;IAChD,MAAM,WAAW;IAEjB,wFAAwF;IACxF,oBAAoB,yBAAyB;IAE7C,qBAAqB;IACrB,KAAK,UAAU;IAEf,oBAAoB;IACpB,aAAa,kBAAkB;CAClC;AAED,eAAO,MAAM,YAAY,cAAe,MAAM,KAAG,UAOhD,CAAC;AAEF,eAAO,MAAM,gBAAgB,YAAa,WAAW,SAAS,GAAG,KAAG,WAoBnE,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,EAC7B,OAAO,EACP,KAAK,EACL,SAAS,EACT,IAA+B,EAC/B,SAAS,GACZ,EAAE;IACC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,UAAU,GAAG,SAAS,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,QAaA;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,IAAI,kBAAkB,CAE1E;AAED,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,UAAU,EAAE,CAAC,mBAgB7E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Localization.d.ts","sourceRoot":"","sources":["../../../../src/core/Localization/Localization.ts"],"names":[],"mappings":"AAEA,OAAO,EAA4C,aAAa,EAAE,MA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AC,kCACP,aAAa,CAAC,QAAQ,CAAC,KACxD,MAAwF,CAAC;AAE5F,eAAO,MAAM,wCAAwC,UAAW,MAAM,KAAG,MAGxE,CAAC;AAEF,eAAO,MAAM,6BAA6B,cAAe,MAAM,sBAAqB,cAAc,CAAC,WAAW,CAAC,WAI9G,CAAC;AAQF,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/core/Localization/datetime/restamper/utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAKxE,eAAO,MAAM,8BAA8B,iCAAkC,SAAS;IAAC,MAAM;IAAE,MAAM;CAAC,WACzB,CAAC;AAE9E,eAAO,MAAM,iCAAiC,4BAA6B,MAAM,8BAIlE,CAAC;AAEhB,eAAO,MAAM,mBAAmB,WAAY,MAAM,GAAG,MAAM,WAAwC,CAAC;AAEpG;;;GAGG;AACH,eAAO,MAAM,6BAA6B,mBAAoB,aAAa,CAAC,QAAQ,CAAC,KAAG,MAIvF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,6CAA6C,mBACtC,aAAa,CAAC,QAAQ,CAAC,kCACP,aAAa,CAAC,QAAQ,CAAC,KACxD,MAAwF,CAAC;AAE5F,eAAO,MAAM,wCAAwC,UAAW,MAAM,KAAG,MAGxE,CAAC;AAEF,eAAO,MAAM,6BAA6B,cAAe,MAAM,sBAAqB,cAAc,CAAC,WAAW,CAAC,WAI9G,CAAC;AAQF,eAAO,MAAM,gBAAgB,mFAAyG,CAAC;AACvI,eAAO,MAAM,gBAAgB,mFAA0G,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localization-utils.d.ts","sourceRoot":"","sources":["../../../../src/core/Localization/localization-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC9D,OAAO,EAAgB,gBAAgB,EAAe,MAAM,SAAS,CAAC;AAItE,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAE1C,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,YAAY;
|
|
1
|
+
{"version":3,"file":"localization-utils.d.ts","sourceRoot":"","sources":["../../../../src/core/Localization/localization-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC9D,OAAO,EAAgB,gBAAgB,EAAe,MAAM,SAAS,CAAC;AAItE,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAE1C,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,YAAY;gCAEvB,kBAAkB,KAAK,WAAW,uBAAuB,CAAC;YAC9E,eAAe,GAAG,MAAM;sBACd,CAAC,eAAe,GAAG,MAAM,CAAC,EAAE;EAwBrD;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,YAAY;;;;;;;;;;;;;EAmBjE"}
|
|
@@ -54,8 +54,9 @@ export declare const getTranslation: (translations: Record<string, string>, key:
|
|
|
54
54
|
*/
|
|
55
55
|
export declare const loadTranslations: (locale: string, translations?: {
|
|
56
56
|
[locale: string]: Translations;
|
|
57
|
-
}, customTranslations?: CustomTranslations) => Promise<{
|
|
57
|
+
} | undefined, customTranslations?: CustomTranslations) => Promise<{
|
|
58
58
|
value: string;
|
|
59
|
+
description: string;
|
|
59
60
|
apply: string;
|
|
60
61
|
type: string;
|
|
61
62
|
default: string;
|
|
@@ -86,7 +87,6 @@ export declare const loadTranslations: (locale: string, translations?: {
|
|
|
86
87
|
currency: string;
|
|
87
88
|
date: string;
|
|
88
89
|
dateRange: string;
|
|
89
|
-
description: string;
|
|
90
90
|
dismiss: string;
|
|
91
91
|
email: string;
|
|
92
92
|
entityWasNotFound: string;
|
|
@@ -188,6 +188,7 @@ export declare const loadTranslations: (locale: string, translations?: {
|
|
|
188
188
|
weCouldNotLoadYourTransactions: string;
|
|
189
189
|
} | {
|
|
190
190
|
value: string;
|
|
191
|
+
description: string;
|
|
191
192
|
apply: string;
|
|
192
193
|
type: string;
|
|
193
194
|
default: string;
|
|
@@ -218,7 +219,6 @@ export declare const loadTranslations: (locale: string, translations?: {
|
|
|
218
219
|
currency: string;
|
|
219
220
|
date: string;
|
|
220
221
|
dateRange: string;
|
|
221
|
-
description: string;
|
|
222
222
|
dismiss: string;
|
|
223
223
|
email: string;
|
|
224
224
|
entityWasNotFound: string;
|
|
@@ -325,5 +325,5 @@ export declare const loadTranslations: (locale: string, translations?: {
|
|
|
325
325
|
* @param translation - Translation string
|
|
326
326
|
* @param renderFunctions - An array function that renders JSX elements
|
|
327
327
|
*/
|
|
328
|
-
export declare const interpolateElement: (translation: string, renderFunctions:
|
|
328
|
+
export declare const interpolateElement: (translation: string, renderFunctions: ((translation: string) => JSX.Element)[]) => (string | JSX.Element | undefined)[];
|
|
329
329
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/core/Localization/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAG7B,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAMhG;;GAEG;AACH,eAAO,MAAM,eAAe,WAAY,MAAM,WAAyC,CAAC;AAExF;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,eAAe,EAAE,GAAG,MAAM,EAAE,GAAG,eAAe,GAAG,IAAI,CAIlH;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,eAAe,GAAG,IAAI,CAgBnE;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,QAAQ,C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AkB,CAUpB;AAMD;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,iBAAkB,OAAO,MAAM,EAAE,MAAM,CAAC,OAAO,MAAM,mCAA0C,MAAM,GAAG,IAsBlI,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,WACjB,MAAM;;oCAEM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYzC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,gBAAiB,MAAM,kCAAuC,MAAM,KAAK,WAAW,4CAUlH,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CoreOptions } from './types';
|
|
1
|
+
import type { CoreOptions, onErrorHandler } from './types';
|
|
2
2
|
import type { LangFile } from './Localization/types';
|
|
3
3
|
import { AuthSession } from './Auth/session/AuthSession';
|
|
4
4
|
import BaseElement from '../components/external/BaseElement';
|
|
@@ -10,6 +10,7 @@ declare class Core<AvailableTranslations extends LangFile[] = [], CustomTranslat
|
|
|
10
10
|
localization: Localization;
|
|
11
11
|
loadingContext: string;
|
|
12
12
|
session: AuthSession;
|
|
13
|
+
onError?: onErrorHandler;
|
|
13
14
|
constructor(options: CoreOptions<AvailableTranslations, CustomTranslations>);
|
|
14
15
|
initialize(): Promise<this>;
|
|
15
16
|
/**
|
|
@@ -17,7 +18,7 @@ declare class Core<AvailableTranslations extends LangFile[] = [], CustomTranslat
|
|
|
17
18
|
* @param options - props to update
|
|
18
19
|
* @returns this - the element instance
|
|
19
20
|
*/
|
|
20
|
-
update: (options?: Partial<
|
|
21
|
+
update: (options?: Partial<CoreOptions<AvailableTranslations, CustomTranslations>>) => Promise<this>;
|
|
21
22
|
/**
|
|
22
23
|
* Remove the reference of a component
|
|
23
24
|
* @param component - reference to the component to be removed
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../src/core/core.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../src/core/core.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAErD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,WAAW,MAAM,oCAAoC,CAAC;AAC7D,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAG1C,cAAM,IAAI,CAAC,qBAAqB,SAAS,QAAQ,EAAE,GAAG,EAAE,EAAE,kBAAkB,SAAS,EAAE,GAAG,EAAE;IACxF,gBAAuB,OAAO,SAA6B;IAEpD,UAAU,EAAE,WAAW,CAAC,GAAG,CAAC,EAAE,CAAM;IACpC,OAAO,EAAE,WAAW,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAAC;IAEhE,YAAY,EAAE,YAAY,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,cAAqB;IAC5B,OAAO,CAAC,EAAE,cAAc,CAAC;gBAIpB,OAAO,EAAE,WAAW,CAAC,qBAAqB,EAAE,kBAAkB,CAAC;IAQrE,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAIjC;;;;OAIG;IACI,MAAM,iFAAiE,QAAQ,IAAI,CAAC,CAYzF;IAEF;;;;OAIG;IACI,MAAM,cAAe,YAAY,GAAG,CAAC,KAAG,IAAI,CAIjD;IAEF;;;OAGG;IACI,iBAAiB,cAAe,YAAY,GAAG,CAAC,UAIrD;IAEF;;;;;;OAMG;IACH,OAAO,CAAC,UAAU,CAUhB;IAEF;;;;OAIG;IACH,OAAO,CAAC,oBAAoB;CAG/B;AAED,eAAe,IAAI,CAAC"}
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import type { SessionRequest } from './Auth';
|
|
2
|
-
import type { AnalyticsOptions } from './Analytics/types';
|
|
3
2
|
import type { CustomTranslations as Translations, LangFile } from './Localization/types';
|
|
4
3
|
import type { KeyOfRecord, WithReplacedUnderscoreOrDash } from '../utils/types';
|
|
5
4
|
type CreateLocalesUnionFromAvailableTranslations<T extends LangFile[]> = T extends T ? Extract<WithReplacedUnderscoreOrDash<KeyOfRecord<T[number]>, '_', '-'>, string> | 'en-US' : never;
|
|
6
5
|
type CreateLocalesUnionFromCustomTranslations<T extends Translations> = Extract<KeyOfRecord<T extends Translations ? T : {}>, string>;
|
|
7
6
|
interface _CoreOptions<AvailableTranslations extends LangFile[] = [], CustomTranslations extends Translations = {}> {
|
|
7
|
+
availableTranslations?: AvailableTranslations;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Core-level balance account config
|
|
10
10
|
*/
|
|
11
|
-
analytics?: AnalyticsOptions;
|
|
12
|
-
availableTranslations?: AvailableTranslations;
|
|
13
|
-
balanceAccountId?: string;
|
|
14
11
|
/**
|
|
15
12
|
* Use test. When you're ready to accept live payments, change the value to one of our {@link https://docs.adyen.com/checkout/drop-in-web#testing-your-integration | live environments}.
|
|
16
13
|
*/
|
|
@@ -22,7 +19,7 @@ interface _CoreOptions<AvailableTranslations extends LangFile[] = [], CustomTran
|
|
|
22
19
|
* @defaultValue 'en-US'
|
|
23
20
|
*/
|
|
24
21
|
locale?: (AvailableTranslations extends AvailableTranslations ? CreateLocalesUnionFromAvailableTranslations<AvailableTranslations> : never) | (CustomTranslations extends CustomTranslations ? CreateLocalesUnionFromCustomTranslations<CustomTranslations> : never);
|
|
25
|
-
onError?:
|
|
22
|
+
onError?: onErrorHandler;
|
|
26
23
|
onSessionCreate: SessionRequest;
|
|
27
24
|
/**
|
|
28
25
|
* Custom translations and localizations
|
|
@@ -33,5 +30,6 @@ interface _CoreOptions<AvailableTranslations extends LangFile[] = [], CustomTran
|
|
|
33
30
|
export interface CoreOptions<AvailableTranslations extends LangFile[] = [], CustomTranslations extends {} = {}> extends _CoreOptions<AvailableTranslations, CustomTranslations extends Translations ? CustomTranslations : unknown> {
|
|
34
31
|
}
|
|
35
32
|
export type DevEnvironment = 'test' | 'live' | 'beta';
|
|
33
|
+
export type onErrorHandler = (error: Error) => any;
|
|
36
34
|
export {};
|
|
37
35
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/core/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/core/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,KAAK,EAAE,kBAAkB,IAAI,YAAY,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACzF,OAAO,KAAK,EAAE,WAAW,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAC;AAEhF,KAAK,2CAA2C,CAAC,CAAC,SAAS,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,GAC9E,OAAO,CAAC,4BAA4B,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,GAAG,OAAO,GACzF,KAAK,CAAC;AAEZ,KAAK,wCAAwC,CAAC,CAAC,SAAS,YAAY,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC,SAAS,YAAY,GAAG,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC;AAEtI,UAAU,YAAY,CAAC,qBAAqB,SAAS,QAAQ,EAAE,GAAG,EAAE,EAAE,kBAAkB,SAAS,YAAY,GAAG,EAAE;IAC9G,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;IAE9C;;OAEG;IAIH;;OAEG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC;IAE7B;;;;;OAKG;IACH,MAAM,CAAC,EACD,CAAC,qBAAqB,SAAS,qBAAqB,GAAG,2CAA2C,CAAC,qBAAqB,CAAC,GAAG,KAAK,CAAC,GAClI,CAAC,kBAAkB,SAAS,kBAAkB,GAAG,wCAAwC,CAAC,kBAAkB,CAAC,GAAG,KAAK,CAAC,CAAC;IAE7H,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,eAAe,EAAE,cAAc,CAAC;IAEhC;;;OAGG;IACH,YAAY,CAAC,EAAE,kBAAkB,SAAS,YAAY,GAAG,kBAAkB,GAAG,YAAY,CAAC;CAC9F;AAED,MAAM,WAAW,WAAW,CAAC,qBAAqB,SAAS,QAAQ,EAAE,GAAG,EAAE,EAAE,kBAAkB,SAAS,EAAE,GAAG,EAAE,CAC1G,SAAQ,YAAY,CAAC,qBAAqB,EAAE,kBAAkB,SAAS,YAAY,GAAG,kBAAkB,GAAG,OAAO,CAAC;CAAG;AAE1H,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAEtD,MAAM,MAAM,cAAc,GAAG,CAAC,KAAK,EAAE,KAAK,KAAK,GAAG,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { Reflexable } from '../../primitives/reactive/reflex';
|
|
2
2
|
import type { Nullable } from '../../utils/types';
|
|
3
|
+
export declare const CONTROL_ELEMENT_PROPERTY: unique symbol;
|
|
3
4
|
export declare const enum ClickOutsideVariant {
|
|
4
5
|
POPOVER = "POPOVER",
|
|
5
6
|
DEFAULT = "DEFAULT"
|
|
6
7
|
}
|
|
7
|
-
export declare const useClickOutside: <T extends Element = Element>(rootElementRef?: Nullable<Reflexable<T>>, callback?: (interactionKeyPressed: boolean) => void, disableClickOutside?: boolean, variant?: ClickOutsideVariant) => import("../../primitives/reactive/reflex").Reflex<T>;
|
|
8
|
+
export declare const useClickOutside: <T extends Element = Element>(rootElementRef?: Nullable<Reflexable<T>>, callback?: ((interactionKeyPressed: boolean) => void) | undefined, disableClickOutside?: boolean, variant?: ClickOutsideVariant) => import("../../primitives/reactive/reflex").Reflex<T>;
|
|
8
9
|
//# sourceMappingURL=useClickOutside.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useClickOutside.d.ts","sourceRoot":"","sources":["../../../../src/hooks/element/useClickOutside.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGlD,0BAAkB,mBAAmB;IACjC,OAAO,YAAY;IACnB,OAAO,YAAY;CACtB;AAID,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"useClickOutside.d.ts","sourceRoot":"","sources":["../../../../src/hooks/element/useClickOutside.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGlD,eAAO,MAAM,wBAAwB,EAAE,OAAO,MAAkC,CAAC;AAEjF,0BAAkB,mBAAmB;IACjC,OAAO,YAAY;IACnB,OAAO,YAAY;CACtB;AAID,eAAO,MAAM,eAAe,8GAEW,OAAO,KAAK,IAAI,qCAC7B,OAAO,YACnB,mBAAmB,yDA8EhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDetachedRender.d.ts","sourceRoot":"","sources":["../../../../src/hooks/element/useDetachedRender.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAG/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGlD,QAAA,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"useDetachedRender.d.ts","sourceRoot":"","sources":["../../../../src/hooks/element/useDetachedRender.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAG/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGlD,QAAA,MAAM,iBAAiB,6BAA8B,OAAO,WAAW,GAAG,EAAE,KAAK,KAAK,GAAG,IAAI,cAAc,SAAS,WAAW,OAAO,CAAC,CAAC,0BACrF,GAAG,EAAE,KAAK,KAAK,GAAG,IAAI,0EAmBxE,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFocusTrap.d.ts","sourceRoot":"","sources":["../../../../src/hooks/element/useFocusTrap.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGlD,QAAA,MAAM,YAAY,mBAAoB,SAAS,WAAW,OAAO,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"useFocusTrap.d.ts","sourceRoot":"","sources":["../../../../src/hooks/element/useFocusTrap.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGlD,QAAA,MAAM,YAAY,mBAAoB,SAAS,WAAW,OAAO,CAAC,CAAC,oCAAoC,OAAO,KAAK,GAAG,+DAoGrH,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useImageUrl.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useImageUrl/useImageUrl.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,YAAY;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAeD,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"useImageUrl.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useImageUrl/useImageUrl.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,YAAY;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAeD,eAAO,MAAM,WAAW;aAAiD,QAAQ,YAAY,CAAC;UAAQ,MAAM;YAe3G,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMediaQuery.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useMediaQuery/useMediaQuery.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"useMediaQuery.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useMediaQuery/useMediaQuery.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,yCAezB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useModalDetails.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useModalDetails/useModalDetails.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAsC,mBAAmB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAErI;;;;;;;;GAQG;AAEH,iBAAS,eAAe,CAAC,OAAO,SAAS,mBAAmB,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,OAAO
|
|
1
|
+
{"version":3,"file":"useModalDetails.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useModalDetails/useModalDetails.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAsC,mBAAmB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAErI;;;;;;;;GAQG;AAEH,iBAAS,eAAe,CAAC,OAAO,SAAS,mBAAmB,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,OAAO;;;;;EAyClF;AAED,eAAe,eAAe,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare const useMounted: <U extends (...args: any[]) => any>(beforeUnmount?: U) => import("preact/hooks").MutableRef<boolean>;
|
|
1
|
+
declare const useMounted: <U extends (...args: any[]) => any>(beforeUnmount?: U | undefined) => import("preact/hooks").MutableRef<boolean>;
|
|
2
2
|
export default useMounted;
|
|
3
3
|
//# sourceMappingURL=useMounted.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMounted.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useMounted/useMounted.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"useMounted.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useMounted/useMounted.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,UAAU,uBAAwB,GAAG,EAAE,KAAK,GAAG,8EAcpD,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,
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useReflex.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useReflex/useReflex.ts"],"names":[],"mappings":"AACA,OAAO,EAAyB,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAC3G,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,QAAA,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"useReflex.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useReflex/useReflex.ts"],"names":[],"mappings":"AACA,OAAO,EAAyB,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAC3G,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,QAAA,MAAM,SAAS,uFASd,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Abortable } from './types';
|
|
2
|
-
export declare const createAbortable: <T>(abortReason?: T) => Abortable<T>;
|
|
2
|
+
export declare const createAbortable: <T>(abortReason?: T | undefined) => Abortable<T>;
|
|
3
3
|
export default createAbortable;
|
|
4
4
|
//# sourceMappingURL=main.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../../src/primitives/async/abortable/main.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../../src/primitives/async/abortable/main.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,eAAO,MAAM,eAAe,kDAsD3B,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../../src/primitives/async/promisor/main.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../../src/primitives/async/promisor/main.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,eAAO,MAAM,cAAc,iEACP,GAAG,UAAU,WAAW,yDAgC3C,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/primitives/auxiliary/indexed/helpers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAElE,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/primitives/auxiliary/indexed/helpers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAElE,eAAO,MAAM,mBAAmB,sBACR,MAAM,0CACK,MAAM,GAAG,MAAM,YAAY,GAAG,QAQ5D,CAAC;AAEN,eAAO,MAAM,kBAAkB,EAAE,yBAIhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../../src/primitives/auxiliary/indexed/main.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAA8B,MAAM,SAAS,CAAC;AAsBnE,eAAO,MAAM,aAAa,gFACa,qBAAqB,GAAG,CAAC,MAAM,MAAM,CAAC,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../../src/primitives/auxiliary/indexed/main.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAA8B,MAAM,SAAS,CAAC;AAsBnE,eAAO,MAAM,aAAa,gFACa,qBAAqB,GAAG,CAAC,MAAM,MAAM,CAAC,GAAG,MAAM,+BACrD,MAAM,yBAwBtC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1,40 +1,19 @@
|
|
|
1
1
|
import type { SessionSpecification } from './types';
|
|
2
2
|
export declare class SessionContext<T, HttpParams extends any[] = any[]> {
|
|
3
3
|
private readonly _specification;
|
|
4
|
-
private _expired;
|
|
5
|
-
private _refreshing;
|
|
6
|
-
private _refreshCount;
|
|
7
|
-
private _refreshEventPending;
|
|
8
|
-
private _refreshingPromise;
|
|
9
|
-
private _refreshPending;
|
|
10
4
|
private _session;
|
|
11
|
-
private
|
|
12
|
-
private
|
|
13
|
-
private
|
|
5
|
+
private readonly _autofresh;
|
|
6
|
+
private readonly _deadline;
|
|
7
|
+
private readonly _refresher;
|
|
14
8
|
private readonly _eventEmitter;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
on: (typeof this._eventEmitter)['on'];
|
|
19
|
-
refresh: typeof this._refreshSession;
|
|
9
|
+
readonly http: typeof this._sessionHttp;
|
|
10
|
+
readonly on: (typeof this._eventEmitter)['on'];
|
|
11
|
+
readonly refresh: (typeof this._refresher)['refresh'];
|
|
20
12
|
constructor(_specification: SessionSpecification<T, HttpParams>);
|
|
21
13
|
get isExpired(): boolean | undefined;
|
|
22
14
|
get refreshing(): boolean;
|
|
23
|
-
get timestamp(): number | undefined;
|
|
24
|
-
private _assertRefreshNotInterruptedByAbort;
|
|
25
|
-
private _assertSession;
|
|
26
|
-
private _assertSessionFactory;
|
|
27
15
|
private _assertSessionHttp;
|
|
28
|
-
private _canFulfillPendingSessionRefresh;
|
|
29
|
-
private _fulfillPendingSessionRefresh;
|
|
30
|
-
private _getNextSession;
|
|
31
|
-
private _onSessionExpired;
|
|
32
|
-
private _refreshInterruptedByAbort;
|
|
33
|
-
private _refreshSession;
|
|
34
16
|
private _sessionHttp;
|
|
35
|
-
private _sessionIsExpired;
|
|
36
|
-
private _setupSessionClock;
|
|
37
|
-
private _verifyPassedSessionDeadline;
|
|
38
17
|
}
|
|
39
18
|
export default SessionContext;
|
|
40
19
|
//# sourceMappingURL=SessionContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionContext.d.ts","sourceRoot":"","sources":["../../../../../src/primitives/context/session/SessionContext.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SessionContext.d.ts","sourceRoot":"","sources":["../../../../../src/primitives/context/session/SessionContext.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAoB,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEtE,qBAAa,cAAc,CAAC,CAAC,EAAE,UAAU,SAAS,GAAG,EAAE,GAAG,GAAG,EAAE;IAa/C,OAAO,CAAC,QAAQ,CAAC,cAAc;IAZ3C,OAAO,CAAC,QAAQ,CAAgB;IAEhC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC;IAC5B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC;IAE5B,OAAO,CAAC,QAAQ,CAAC,aAAa,CAA0C;IAExE,SAAwB,IAAI,EAAE,OAAO,IAAI,CAAC,YAAY,CAAC;IACvD,SAAwB,EAAE,EAAE,CAAC,OAAO,IAAI,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,CAAC;IAC9D,SAAwB,OAAO,EAAE,CAAC,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC;gBAExC,cAAc,EAAE,oBAAoB,CAAC,CAAC,EAAE,UAAU,CAAC;IAoBhF,IAAI,SAAS,wBAEZ;IAED,IAAI,UAAU,YAEb;IAED,OAAO,CAAC,kBAAkB;YAIZ,YAAY;CAwB7B;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
export declare const ERR_SESSION_EXPIRED: unique symbol;
|
|
2
2
|
export declare const ERR_SESSION_FACTORY_UNAVAILABLE: unique symbol;
|
|
3
3
|
export declare const ERR_SESSION_HTTP_UNAVAILABLE: unique symbol;
|
|
4
|
-
export declare const ERR_SESSION_REFRESH_ABORTED: unique symbol;
|
|
5
4
|
export declare const ERR_SESSION_INVALID: unique symbol;
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
5
|
+
export declare const ERR_SESSION_REFRESH_ABORTED: unique symbol;
|
|
6
|
+
export declare const EVT_SESSION_EXPIRED = "_sessionExpired";
|
|
7
|
+
export declare const EVT_SESSION_READY = "_sessionReady";
|
|
8
|
+
export declare const EVT_SESSION_REFRESHED = "_sessionRefreshed";
|
|
9
|
+
export declare const EVT_SESSION_REFRESHING_END = "_sessionRefreshingEnd";
|
|
10
|
+
export declare const EVT_SESSION_REFRESHING_START = "_sessionRefreshingStart";
|
|
8
11
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/primitives/context/session/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,EAAE,OAAO,MAAyC,CAAC;AACnF,eAAO,MAAM,+BAA+B,EAAE,OAAO,MAAqD,CAAC;AAC3G,eAAO,MAAM,4BAA4B,EAAE,OAAO,MAAkD,CAAC;AACrG,eAAO,MAAM,2BAA2B,EAAE,OAAO,MAAiD,CAAC;AACnG,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/primitives/context/session/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,EAAE,OAAO,MAAyC,CAAC;AACnF,eAAO,MAAM,+BAA+B,EAAE,OAAO,MAAqD,CAAC;AAC3G,eAAO,MAAM,4BAA4B,EAAE,OAAO,MAAkD,CAAC;AACrG,eAAO,MAAM,mBAAmB,EAAE,OAAO,MAAyC,CAAC;AACnF,eAAO,MAAM,2BAA2B,EAAE,OAAO,MAAiD,CAAC;AACnG,eAAO,MAAM,mBAAmB,oBAAoB,CAAC;AACrD,eAAO,MAAM,iBAAiB,kBAAkB,CAAC;AACjD,eAAO,MAAM,qBAAqB,sBAAsB,CAAC;AACzD,eAAO,MAAM,0BAA0B,0BAA0B,CAAC;AAClE,eAAO,MAAM,4BAA4B,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { SessionRefresher } from './types';
|
|
2
|
+
export declare const _canAutofresh: <T extends unknown>(refresher: SessionRefresher<T>) => Promise<boolean>;
|
|
3
|
+
export declare const createSessionAutofresher: <T extends unknown>(refresher: SessionRefresher<T>) => ((skipCanAutofreshCheck?: boolean) => void) & {
|
|
4
|
+
readonly destruct: () => void;
|
|
5
|
+
};
|
|
6
|
+
export default createSessionAutofresher;
|
|
7
|
+
//# sourceMappingURL=autofresher.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autofresher.d.ts","sourceRoot":"","sources":["../../../../../../src/primitives/context/session/internal/autofresher.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,aAAa,yEASzB,CAAC;AAEF,eAAO,MAAM,wBAAwB;uBAoCmD,MAAM,IAAI;CAGjG,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const INTERNAL_EVT_SESSION_DEADLINE = "_session.deadline";
|
|
2
|
+
export declare const INTERNAL_EVT_SESSION_READY = "_session.ready";
|
|
3
|
+
export declare const INTERNAL_EVT_SESSION_REFRESHING_END = "_session.refreshingEnd";
|
|
4
|
+
export declare const INTERNAL_EVT_SESSION_REFRESHING_START = "_session.refreshingStart";
|
|
5
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/primitives/context/session/internal/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,6BAA6B,sBAAsB,CAAC;AACjE,eAAO,MAAM,0BAA0B,mBAAmB,CAAC;AAC3D,eAAO,MAAM,mCAAmC,2BAA2B,CAAC;AAC5E,eAAO,MAAM,qCAAqC,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Emitter } from '../../../reactive/eventEmitter';
|
|
2
|
+
import type { SessionEventType, SessionSpecification } from '../types';
|
|
3
|
+
import type { SessionDeadline } from './types';
|
|
4
|
+
export declare const createSessionDeadline: <T extends unknown>(emitter: Emitter<SessionEventType>, specification: SessionSpecification<T, any[]>) => SessionDeadline<T>;
|
|
5
|
+
export default createSessionDeadline;
|
|
6
|
+
//# sourceMappingURL=deadline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deadline.d.ts","sourceRoot":"","sources":["../../../../../../src/primitives/context/session/internal/deadline.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAsB,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAE7E,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AACvE,OAAO,KAAK,EAAE,eAAe,EAA0B,MAAM,SAAS,CAAC;AAEvE,eAAO,MAAM,qBAAqB,+BAA4B,QAAQ,gBAAgB,CAAC,sEA8EtF,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Emitter } from '../../../reactive/eventEmitter';
|
|
2
|
+
import type { SessionRefresher } from './types';
|
|
3
|
+
import type { SessionEventType, SessionSpecification } from '../types';
|
|
4
|
+
export declare const createSessionRefresher: <T extends unknown>(emitter: Emitter<SessionEventType>, specification: SessionSpecification<T, any[]>) => SessionRefresher<T>;
|
|
5
|
+
export default createSessionRefresher;
|
|
6
|
+
//# sourceMappingURL=refresher.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refresher.d.ts","sourceRoot":"","sources":["../../../../../../src/primitives/context/session/internal/refresher.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAI7E,OAAO,KAAK,EAAE,gBAAgB,EAAoD,MAAM,SAAS,CAAC;AAClG,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEvE,eAAO,MAAM,sBAAsB,+BAA4B,QAAQ,gBAAgB,CAAC,uEAqGvF,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { INTERNAL_EVT_SESSION_DEADLINE, INTERNAL_EVT_SESSION_READY, INTERNAL_EVT_SESSION_REFRESHING_END, INTERNAL_EVT_SESSION_REFRESHING_START } from './constants';
|
|
2
|
+
import type { Emitter } from '../../../reactive/eventEmitter';
|
|
3
|
+
import type { SessionEventType, SessionSpecification } from '../types';
|
|
4
|
+
export type SessionDeadlineEmitter = Emitter<typeof INTERNAL_EVT_SESSION_DEADLINE>;
|
|
5
|
+
export type SessionRefresherEmitter = Emitter<typeof INTERNAL_EVT_SESSION_READY | typeof INTERNAL_EVT_SESSION_REFRESHING_END | typeof INTERNAL_EVT_SESSION_REFRESHING_START>;
|
|
6
|
+
export interface SessionDeadline<T extends any> {
|
|
7
|
+
readonly elapse: () => void;
|
|
8
|
+
get elapsed(): boolean | undefined;
|
|
9
|
+
readonly on: SessionDeadlineEmitter['on'];
|
|
10
|
+
readonly refresh: (session: T | undefined) => Promise<void>;
|
|
11
|
+
get signal(): AbortSignal;
|
|
12
|
+
}
|
|
13
|
+
export interface SessionRefresher<T extends any> {
|
|
14
|
+
readonly context: SessionRefresherContext<T>;
|
|
15
|
+
readonly on: SessionRefresherEmitter['on'];
|
|
16
|
+
get pending(): boolean;
|
|
17
|
+
get promise(): Promise<void>;
|
|
18
|
+
readonly refresh: (signal?: AbortSignal | undefined) => Promise<void>;
|
|
19
|
+
get refreshing(): boolean;
|
|
20
|
+
get session(): T | undefined;
|
|
21
|
+
get signal(): AbortSignal;
|
|
22
|
+
}
|
|
23
|
+
export interface SessionRefresherContext<T extends any> {
|
|
24
|
+
emitter: Emitter<SessionEventType>;
|
|
25
|
+
specification: SessionSpecification<T>;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/primitives/context/session/internal/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,6BAA6B,EAC7B,0BAA0B,EAC1B,mCAAmC,EACnC,qCAAqC,EACxC,MAA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CAAC,SAAS,GAAG;IAClD,OAAO,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;IACnC,aAAa,EAAE,oBAAoB,CAAC,CAAC,CAAC,CAAC;CAC1C"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EVT_SESSION_EXPIRED, EVT_SESSION_READY, EVT_SESSION_REFRESHED, EVT_SESSION_REFRESHING_END, EVT_SESSION_REFRESHING_START } from './constants';
|
|
2
2
|
import type { GetPredicateType, Promised } from '../../../utils/types';
|
|
3
|
-
export type SessionEventType = typeof
|
|
3
|
+
export type SessionEventType = typeof EVT_SESSION_EXPIRED | typeof EVT_SESSION_READY | typeof EVT_SESSION_REFRESHED | typeof EVT_SESSION_REFRESHING_END | typeof EVT_SESSION_REFRESHING_START;
|
|
4
|
+
type _SessionAutoRefresh = boolean | undefined;
|
|
5
|
+
type _SessionDeadline = _SessionDeadlineSingle | _SessionDeadlineSingle[];
|
|
6
|
+
type _SessionDeadlineSingle = AbortSignal | Date | number | string | undefined;
|
|
4
7
|
export interface SessionSpecification<T, HttpParams extends any[] = any[]> {
|
|
5
|
-
autoRefresh?:
|
|
8
|
+
autoRefresh?: _SessionAutoRefresh | ((currentSession: T | undefined) => Promised<_SessionAutoRefresh>);
|
|
6
9
|
assert?: <S>(maybeSession: S) => asserts maybeSession is GetPredicateType<T, S>;
|
|
7
|
-
deadline?: (
|
|
10
|
+
deadline?: _SessionDeadline | ((currentSession: T | undefined, signal: AbortSignal) => Promised<_SessionDeadline>);
|
|
8
11
|
http?: (currentSession: T | undefined, signal: AbortSignal, ...args: HttpParams) => Promised<any>;
|
|
9
12
|
onRefresh: (currentSession: T | undefined, signal: AbortSignal) => Promised<T>;
|
|
10
13
|
}
|
|
14
|
+
export {};
|
|
11
15
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/primitives/context/session/types.ts"],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GAAG,IAAI,EAAE,UAAU,KAAK,QAAQ,CAAC,GAAG,CAAC,CAAC;IAClG,SAAS,EAAE,CAAC,cAAc,EAAE,CAAC,GAAG,SAAS,EAAE,MAAM,EAAE,WAAW,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC;CAClF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../../src/primitives/reactive/effectStack/main.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAI3C,eAAO,MAAM,iBAAiB,4BAA6B,GAAG,EAAE,KAAK,GAAG,
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../../src/primitives/reactive/effectStack/main.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAI3C,eAAO,MAAM,iBAAiB,4BAA6B,GAAG,EAAE,KAAK,GAAG,wCAqBvE,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/primitives/reactive/reflex/helpers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAGrE,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,uBAY3C,CAAC;AAEF,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/primitives/reactive/reflex/helpers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAGrE,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,uBAY3C,CAAC;AAEF,eAAO,MAAM,MAAM,gDAAmH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../../src/primitives/reactive/reflex/main.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAc,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAOjG,eAAO,MAAM,wBAAwB,
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../../src/primitives/reactive/reflex/main.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAc,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAOjG,eAAO,MAAM,wBAAwB,iDA0BpC,CAAC;AAEF,eAAO,MAAM,qBAAqB,uBAAuB,cAAc,uBA4DtE,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/primitives/reactive/watchlist/helpers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,mCAAmC,EAAE,MAAM,SAAS,CAAC;AAErF,eAAO,MAAM,iCAAiC,
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/primitives/reactive/watchlist/helpers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,mCAAmC,EAAE,MAAM,SAAS,CAAC;AAErF,eAAO,MAAM,iCAAiC,8EAiB7C,CAAC;AAEF,eAAO,MAAM,yCAAyC,2CA0BrD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { WatchList, WatchListEntries, WatchListSubscriptionCallback } from './types';
|
|
2
2
|
import { UNSUBSCRIBE_TOKEN } from './constants';
|
|
3
|
-
export declare const isWatchlistUnsubscribeToken: <T extends Record<string, any>>(currentStateSnapshotOrUnsubscribeToken?:
|
|
3
|
+
export declare const isWatchlistUnsubscribeToken: <T extends Record<string, any>>(currentStateSnapshotOrUnsubscribeToken?: typeof UNSUBSCRIBE_TOKEN | Readonly<T> | undefined) => currentStateSnapshotOrUnsubscribeToken is typeof UNSUBSCRIBE_TOKEN;
|
|
4
4
|
export declare const createWatchlist: <T extends Record<string, any>>(entries: WatchListEntries<T>) => WatchList<T>;
|
|
5
5
|
export default createWatchlist;
|
|
6
6
|
//# sourceMappingURL=main.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../../src/primitives/reactive/watchlist/main.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAC1F,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,eAAO,MAAM,2BAA2B,
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../../src/primitives/reactive/watchlist/main.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAC1F,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,eAAO,MAAM,2BAA2B,oMAE6F,CAAC;AAEtI,eAAO,MAAM,eAAe,+EA2F3B,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../../src/primitives/time/interval/main.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../../src/primitives/time/interval/main.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,cAAc,oBAAqB,mBAAmB,KAAK,GAAG,qDAoD1E,CAAC;AAEF,eAAe,cAAc,CAAC"}
|