@adyen/adyen-platform-experience-web 1.0.0-beta → 1.0.0-beta.1
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/cjs/{ModalContent-f4990141.js → ModalContent-e142d135.js} +2 -2
- package/dist/cjs/{ModalContent-f4990141.js.map → ModalContent-e142d135.js.map} +1 -1
- package/dist/cjs/{index-8c098f20.js → index-2231054e.js} +15 -10
- package/dist/cjs/index-2231054e.js.map +1 -0
- package/dist/cjs/index.css +3 -5
- package/dist/cjs/index.js +1 -1
- package/dist/es/components/external/TransactionsOverview/TransactionsOverviewElement.js +1 -1
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/constants.js +1 -1
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/utils.js +1 -1
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.js +6 -3
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewDateFilter.js +1 -1
- package/dist/es/components/external/TransactionsOverview/hooks/useDefaultTransactionsOverviewFilterParams.js +4 -3
- package/dist/es/components/external/TransactionsOverview/hooks/useTransactionsOverviewMultiSelectionFilters.js +1 -1
- package/dist/es/components/external/TransactionsOverview/index.js +1 -1
- package/dist/es/components/external/index.js +1 -1
- package/dist/es/components/index.js +1 -1
- package/dist/es/core/core.js +3 -3
- package/dist/es/index.js +1 -1
- package/dist/index.css +3 -5
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.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/types.d.ts +1 -0
- package/dist/types/components/external/TransactionsOverview/types.d.ts.map +1 -1
- package/dist/{types-e4bbd37f.mjs → types-deec0d78.mjs} +1 -0
- package/package.json +1 -1
- package/dist/cjs/index-8c098f20.js.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("./index-
|
|
3
|
+
const index = require("./index-2231054e.js");
|
|
4
4
|
const isTransactionWithoutId = (data) => index.hasOwnProperty(data, "id");
|
|
5
5
|
function ModalContent({ data }) {
|
|
6
6
|
const transactionProps = isTransactionWithoutId(data) ? { transaction: data } : { transactionId: data };
|
|
7
7
|
return /* @__PURE__ */ index.o(index.k, { children: transactionProps && /* @__PURE__ */ index.o(index.TransactionDetails, { ...transactionProps }) });
|
|
8
8
|
}
|
|
9
9
|
exports.default = ModalContent;
|
|
10
|
-
//# sourceMappingURL=ModalContent-
|
|
10
|
+
//# sourceMappingURL=ModalContent-e142d135.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModalContent-
|
|
1
|
+
{"version":3,"file":"ModalContent-e142d135.js","sources":["../../src/components/external/TransactionsOverview/components/ModalContent.tsx"],"sourcesContent":["import { SelectedDetail, TransactionDetailData } from '@src/components';\nimport TransactionDetails from '@src/components/external/TransactionDetails/components/TransactionDetails';\nimport { hasOwnProperty } from '@src/utils/common';\n\nconst isTransactionWithoutId = (data: string | TransactionDetailData): data is TransactionDetailData => hasOwnProperty(data, 'id');\nfunction ModalContent({ data }: SelectedDetail) {\n const transactionProps = isTransactionWithoutId(data) ? { transaction: data } : { transactionId: data };\n\n return <>{transactionProps && <TransactionDetails {...transactionProps} />}</>;\n}\nexport default ModalContent;\n"],"names":["hasOwnProperty","jsx","TransactionDetails"],"mappings":";;;AAIA,MAAM,yBAAyB,CAAC,SAAwEA,MAAA,eAAe,MAAM,IAAI;AACjI,SAAS,aAAa,EAAE,QAAwB;AACtC,QAAA,mBAAmB,uBAAuB,IAAI,IAAI,EAAE,aAAa,SAAS,EAAE,eAAe;AAEjG,4CAAU,UAAoB,oBAAAC,wBAACC,MAAAA,oBAAoB,EAAA,GAAG,iBAAkB,CAAA,EAAG,CAAA;AAC/E;;"}
|
|
@@ -1911,10 +1911,10 @@ class Core {
|
|
|
1911
1911
|
}
|
|
1912
1912
|
}
|
|
1913
1913
|
__publicField(Core, "version", {
|
|
1914
|
-
version: "1.0.0-beta",
|
|
1915
|
-
revision: "
|
|
1914
|
+
version: "1.0.0-beta.1",
|
|
1915
|
+
revision: "3e1cf88",
|
|
1916
1916
|
branch: "main",
|
|
1917
|
-
buildId: "@adyen/adyen-pe-web-
|
|
1917
|
+
buildId: "@adyen/adyen-pe-web-a5461608-ff4c-435c-9010-a9e9241b0b64"
|
|
1918
1918
|
});
|
|
1919
1919
|
const Core$1 = Core;
|
|
1920
1920
|
const shared = "";
|
|
@@ -3261,6 +3261,7 @@ function FilterBar(props) {
|
|
|
3261
3261
|
] });
|
|
3262
3262
|
}
|
|
3263
3263
|
var TransactionFilterParam = /* @__PURE__ */ ((TransactionFilterParam2) => {
|
|
3264
|
+
TransactionFilterParam2["BALANCE_ACCOUNT"] = "balanceAccount";
|
|
3264
3265
|
TransactionFilterParam2["CATEGORIES"] = "categories";
|
|
3265
3266
|
TransactionFilterParam2["CURRENCIES"] = "currencies";
|
|
3266
3267
|
TransactionFilterParam2["STATUSES"] = "statuses";
|
|
@@ -5810,7 +5811,7 @@ const TransactionsTable = ({
|
|
|
5810
5811
|
}
|
|
5811
5812
|
) });
|
|
5812
5813
|
};
|
|
5813
|
-
const ModalContent = M(() => Promise.resolve().then(() => require("./ModalContent-
|
|
5814
|
+
const ModalContent = M(() => Promise.resolve().then(() => require("./ModalContent-e142d135.js")));
|
|
5814
5815
|
const TransactionsDisplay = ({
|
|
5815
5816
|
availableCurrencies,
|
|
5816
5817
|
balanceAccountDescription,
|
|
@@ -9792,7 +9793,7 @@ const MultiSelectionFilter = x(
|
|
|
9792
9793
|
);
|
|
9793
9794
|
const MultiSelectionFilter$1 = MultiSelectionFilter;
|
|
9794
9795
|
const listFrom = (value2) => {
|
|
9795
|
-
const stringedValue = `${value2}`.trim();
|
|
9796
|
+
const stringedValue = `${value2 || ""}`.trim();
|
|
9796
9797
|
return stringedValue ? stringedValue.split(/(?:\s*,\s*)+/).filter(Boolean) : EMPTY_ARRAY;
|
|
9797
9798
|
};
|
|
9798
9799
|
const selectionOptionsFor = (list) => Object.freeze(list.map((id2) => ({ id: id2, name: id2 })));
|
|
@@ -9836,12 +9837,13 @@ const TRANSACTION_CATEGORIES = [
|
|
|
9836
9837
|
"Other"
|
|
9837
9838
|
];
|
|
9838
9839
|
const TRANSACTION_STATUSES = ["Booked", "Pending", "Reversed"];
|
|
9839
|
-
const getDefaultTransactionsFilterParams = () => {
|
|
9840
|
+
const getDefaultTransactionsFilterParams = (balanceAccount2) => {
|
|
9840
9841
|
const timeRangeOptions = getTimeRangeSelectionDefaultPresetOptions();
|
|
9841
9842
|
const defaultTimeRange = "rangePreset.last7Days";
|
|
9842
9843
|
const { from: from2, to: to2 } = timeRangeOptions[defaultTimeRange];
|
|
9843
9844
|
const defaultFilterParams = {
|
|
9844
9845
|
...DEFAULT_TRANSACTIONS_OVERVIEW_MULTI_SELECTION_FILTER_PARAMS,
|
|
9846
|
+
[TransactionFilterParam.BALANCE_ACCOUNT]: balanceAccount2 == null ? void 0 : balanceAccount2.id,
|
|
9845
9847
|
[TransactionFilterParam.CREATED_SINCE]: new Date(from2).toISOString(),
|
|
9846
9848
|
[TransactionFilterParam.CREATED_UNTIL]: new Date(to2).toISOString(),
|
|
9847
9849
|
[TransactionFilterParam.MIN_AMOUNT]: void 0,
|
|
@@ -9851,7 +9853,7 @@ const getDefaultTransactionsFilterParams = () => {
|
|
|
9851
9853
|
};
|
|
9852
9854
|
const useDefaultTransactionsOverviewFilterParams = (balanceAccount2) => {
|
|
9853
9855
|
const [nowTimestamp2, setNowTimestamp] = h(Date.now());
|
|
9854
|
-
const defaultParams = _(getDefaultTransactionsFilterParams());
|
|
9856
|
+
const defaultParams = _(getDefaultTransactionsFilterParams(balanceAccount2));
|
|
9855
9857
|
const refreshNowTimestamp = T$1(() => setNowTimestamp(Date.now()), [setNowTimestamp]);
|
|
9856
9858
|
p(() => {
|
|
9857
9859
|
refreshNowTimestamp();
|
|
@@ -10049,7 +10051,7 @@ const TransactionsOverview = ({
|
|
|
10049
10051
|
const { activeBalanceAccount, balanceAccountSelectionOptions, onBalanceAccountSelection } = useBalanceAccountSelection$1(balanceAccounts);
|
|
10050
10052
|
const { defaultParams, nowTimestamp: nowTimestamp2, refreshNowTimestamp } = useDefaultTransactionsOverviewFilterParams$1(activeBalanceAccount);
|
|
10051
10053
|
const getTransactions = T$1(
|
|
10052
|
-
async (pageRequestParams, signal) => {
|
|
10054
|
+
async ({ balanceAccount: balanceAccount2, ...pageRequestParams }, signal) => {
|
|
10053
10055
|
const requestOptions = { signal, errorLevel: "error" };
|
|
10054
10056
|
return transactionsEndpointCall(requestOptions, {
|
|
10055
10057
|
query: {
|
|
@@ -10097,7 +10099,10 @@ const TransactionsOverview = ({
|
|
|
10097
10099
|
);
|
|
10098
10100
|
p(() => {
|
|
10099
10101
|
setAvailableCurrencies(void 0);
|
|
10100
|
-
updateFilters({
|
|
10102
|
+
updateFilters({
|
|
10103
|
+
[TransactionFilterParam.BALANCE_ACCOUNT]: activeBalanceAccount == null ? void 0 : activeBalanceAccount.id,
|
|
10104
|
+
[TransactionFilterParam.CURRENCIES]: void 0
|
|
10105
|
+
});
|
|
10101
10106
|
}, [updateFilters, activeBalanceAccount == null ? void 0 : activeBalanceAccount.id]);
|
|
10102
10107
|
p(() => {
|
|
10103
10108
|
refreshNowTimestamp();
|
|
@@ -10398,4 +10403,4 @@ exports.sl_SI = sl_SI;
|
|
|
10398
10403
|
exports.sv_SE = sv_SE;
|
|
10399
10404
|
exports.zh_CN = zh_CN;
|
|
10400
10405
|
exports.zh_TW = zh_TW;
|
|
10401
|
-
//# sourceMappingURL=index-
|
|
10406
|
+
//# sourceMappingURL=index-2231054e.js.map
|