From 3aa473e5cd57e832b14dd7769cfe5daa1272cb9b Mon Sep 17 00:00:00 2001 From: Mathieu Acthernoene Date: Tue, 12 Nov 2024 15:03:49 +0100 Subject: [PATCH] Update cells usage (#1002) --- .prettierignore | 6 +- clients/banking/package.json | 4 +- .../src/components/AccountStatementCustom.tsx | 53 ++++++-------- .../components/AccountStatementMonthly.tsx | 47 +++++------- .../src/components/BeneficiaryList.tsx | 36 +++------ clients/banking/src/components/CardList.tsx | 8 +- .../banking/src/components/CardListCells.tsx | 10 +-- .../banking/src/components/MembershipList.tsx | 10 +-- .../src/components/MembershipListCells.tsx | 21 ++---- .../banking/src/components/MerchantList.tsx | 45 +++++------- .../MerchantProfilePaymentLinksList.tsx | 52 ++++++------- .../src/components/RecurringTransferList.tsx | 55 +++++++------- .../components/RightPanelTransactionList.tsx | 8 +- .../src/components/TransactionList.tsx | 30 ++++---- .../src/components/TransferBulkReview.tsx | 20 ++--- clients/banking/src/locales/de.json | 2 +- clients/banking/src/locales/en.json | 2 +- clients/banking/src/locales/es.json | 2 +- clients/banking/src/locales/fi.json | 2 +- clients/banking/src/locales/fr.json | 2 +- clients/banking/src/locales/it.json | 2 +- clients/banking/src/locales/nl.json | 2 +- clients/banking/src/locales/pt.json | 2 +- .../src/pages/AccountDetailsBillingPage.tsx | 73 ++++++++----------- .../pages/AccountDetailsVirtualIbansPage.tsx | 28 +++---- clients/onboarding/package.json | 4 +- clients/onboarding/src/locales/de.json | 2 +- clients/onboarding/src/locales/en.json | 2 +- clients/onboarding/src/locales/es.json | 2 +- clients/onboarding/src/locales/fi.json | 2 +- clients/onboarding/src/locales/fr.json | 2 +- clients/onboarding/src/locales/it.json | 2 +- clients/onboarding/src/locales/nl.json | 2 +- clients/onboarding/src/locales/pt.json | 2 +- clients/payment/package.json | 4 +- pnpm-lock.yaml | 40 +++++----- 36 files changed, 261 insertions(+), 325 deletions(-) diff --git a/.prettierignore b/.prettierignore index 0b763fa32..4049692a5 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,7 +1,9 @@ *.min.js +LICENSE_REPORT.md coverage/ dist/ -pnpm-lock.yaml +docs/.docusaurus/ +docs/build/ node_modules/ -LICENSE_REPORT.md +pnpm-lock.yaml diff --git a/clients/banking/package.json b/clients/banking/package.json index 5d82e38e0..8ab4b0727 100644 --- a/clients/banking/package.json +++ b/clients/banking/package.json @@ -18,9 +18,9 @@ "@swan-io/boxed": "3.1.1", "@swan-io/chicane": "2.1.0", "@swan-io/graphql-client": "0.3.1", - "@swan-io/lake": "11.1.3", + "@swan-io/lake": "11.1.4", "@swan-io/request": "1.0.6", - "@swan-io/shared-business": "11.1.3", + "@swan-io/shared-business": "11.1.4", "@swan-io/use-form": "3.1.0", "core-js": "3.38.1", "dayjs": "1.11.13", diff --git a/clients/banking/src/components/AccountStatementCustom.tsx b/clients/banking/src/components/AccountStatementCustom.tsx index 1c34e6988..8192618b1 100644 --- a/clients/banking/src/components/AccountStatementCustom.tsx +++ b/clients/banking/src/components/AccountStatementCustom.tsx @@ -3,14 +3,7 @@ import { Link } from "@swan-io/chicane"; import { useMutation, useQuery } from "@swan-io/graphql-client"; import { BorderedIcon } from "@swan-io/lake/src/components/BorderedIcon"; import { Box } from "@swan-io/lake/src/components/Box"; -import { - CellAction, - CenteredCell, - EndAlignedCell, - SimpleHeaderCell, - SimpleRegularTextCell, - SimpleTitleCell, -} from "@swan-io/lake/src/components/Cells"; +import { ActionCell, Cell, HeaderCell, TextCell } from "@swan-io/lake/src/components/Cells"; import { EmptyView } from "@swan-io/lake/src/components/EmptyView"; import { Icon } from "@swan-io/lake/src/components/Icon"; import { LakeButton, LakeButtonGroup } from "@swan-io/lake/src/components/LakeButton"; @@ -117,22 +110,24 @@ const columns: ColumnConfig[] = [ title: t("accountStatements.period"), width: "grow", id: "period", - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item: { openingDate, closingDate } }) => { const openingDateStatement = dayjs.utc(openingDate).add(1, "hour").format("MMM, DD YYYY"); const closingDateStatement = dayjs.utc(closingDate).add(1, "hour").format("MMM, DD YYYY"); - return ; + return ( + + ); }, }, { title: t("accountStatements.generated"), width: 150, id: "generated", - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item: { createdAt, status } }) => { return status === "Available" ? ( - @@ -146,11 +141,7 @@ const columns: ColumnConfig[] = [ renderTitle: () => null, renderCell: ({ item: { status } }) => { return status === "Available" ? null : ( - + ); }, }, @@ -158,12 +149,12 @@ const columns: ColumnConfig[] = [ title: t("accountStatements.action"), width: 70, id: "action", - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item: { status } }) => { return status === "Available" ? ( - + - + ) : null; }, }, @@ -178,7 +169,9 @@ const smallColumns: ColumnConfig[] = [ renderCell: ({ item: { openingDate, closingDate } }) => { const openingDateStatement = dayjs.utc(openingDate).add(1, "hour").format("MMM, DD YYYY"); const closingDateStatement = dayjs.utc(closingDate).add(1, "hour").format("MMM, DD YYYY"); - return ; + return ( + + ); }, }, @@ -189,14 +182,14 @@ const smallColumns: ColumnConfig[] = [ renderTitle: () => null, renderCell: ({ item: { status } }) => { return status === "Available" ? ( - - + + - - + + ) : ( - - + + [] = [ color="warning" borderRadius={4} /> - - + + ); }, }, diff --git a/clients/banking/src/components/AccountStatementMonthly.tsx b/clients/banking/src/components/AccountStatementMonthly.tsx index dde48b9d4..fcfb27e63 100644 --- a/clients/banking/src/components/AccountStatementMonthly.tsx +++ b/clients/banking/src/components/AccountStatementMonthly.tsx @@ -2,14 +2,7 @@ import { Array, Option } from "@swan-io/boxed"; import { Link } from "@swan-io/chicane"; import { useQuery } from "@swan-io/graphql-client"; import { BorderedIcon } from "@swan-io/lake/src/components/BorderedIcon"; -import { - CellAction, - CenteredCell, - EndAlignedCell, - SimpleHeaderCell, - SimpleRegularTextCell, - SimpleTitleCell, -} from "@swan-io/lake/src/components/Cells"; +import { ActionCell, Cell, HeaderCell, TextCell } from "@swan-io/lake/src/components/Cells"; import { EmptyView } from "@swan-io/lake/src/components/EmptyView"; import { Icon } from "@swan-io/lake/src/components/Icon"; import { @@ -59,20 +52,20 @@ const columns: ColumnConfig[] = [ title: t("accountStatements.period"), width: 150, id: "period", - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item: { openingDate } }) => ( - + ), }, { title: t("accountStatements.generated"), width: "grow", id: "generated", - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item: { createdAt, status } }) => { return status === "Available" ? ( - @@ -86,9 +79,9 @@ const columns: ColumnConfig[] = [ renderTitle: () => null, renderCell: ({ item: { status } }) => { return status === "Available" ? null : ( - @@ -99,12 +92,12 @@ const columns: ColumnConfig[] = [ title: t("accountStatements.action"), width: 70, id: "action", - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item: { status } }) => { return status === "Available" ? ( - + - + ) : null; }, }, @@ -117,7 +110,7 @@ const smallColumns: ColumnConfig[] = [ id: "period", renderTitle: () => null, renderCell: ({ item: { openingDate } }) => ( - + ), }, { @@ -127,14 +120,14 @@ const smallColumns: ColumnConfig[] = [ renderTitle: () => null, renderCell: ({ item: { status } }) => { return status === "Available" ? ( - - + + - - + + ) : ( - - + + [] = [ color="warning" borderRadius={4} /> - - + + ); }, }, diff --git a/clients/banking/src/components/BeneficiaryList.tsx b/clients/banking/src/components/BeneficiaryList.tsx index 694a40c3c..118800762 100644 --- a/clients/banking/src/components/BeneficiaryList.tsx +++ b/clients/banking/src/components/BeneficiaryList.tsx @@ -1,8 +1,8 @@ import { AsyncData, Dict, Option, Result } from "@swan-io/boxed"; import { Link } from "@swan-io/chicane"; import { useForwardPagination, useQuery } from "@swan-io/graphql-client"; -import { Box, BoxProps } from "@swan-io/lake/src/components/Box"; -import { CellAction, EndAlignedCell, SimpleHeaderCell } from "@swan-io/lake/src/components/Cells"; +import { Box } from "@swan-io/lake/src/components/Box"; +import { ActionCell, Cell, HeaderCell } from "@swan-io/lake/src/components/Cells"; import { EmptyView } from "@swan-io/lake/src/components/EmptyView"; import { Fill } from "@swan-io/lake/src/components/Fill"; import { FilterChooser } from "@swan-io/lake/src/components/FilterChooser"; @@ -66,9 +66,6 @@ const styles = StyleSheet.create({ headerLarge: { paddingHorizontal: spacings[40], }, - cell: { - paddingHorizontal: spacings[16], - }, }); type Account = NonNullable; @@ -76,17 +73,6 @@ type Beneficiaries = NonNullable; type Beneficiary = GetNode; type RouteParams = GetRouteParams<"AccountPaymentsBeneficiariesList">; -const Cell = (props: BoxProps) => ( - -); - export const getBeneficiaryIdentifier = (beneficiary: Beneficiary) => match(beneficiary) .returnType>() @@ -143,7 +129,7 @@ const smallColumns: ColumnConfig[] = [ id: "name", title: t("beneficiaries.label.title"), width: "grow", - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item }) => { const identifier = getBeneficiaryIdentifier(item); @@ -183,7 +169,7 @@ const columns: ColumnConfig[] = [ id: "name", title: t("beneficiaries.label.title"), width: "grow", - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item }) => ( [] = [ id: "identifier", title: t("beneficiaries.details.title"), width: "grow", - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item }) => { const identifier = getBeneficiaryIdentifier(item); @@ -237,7 +223,7 @@ const columns: ColumnConfig[] = [ id: "currency", title: t("beneficiaries.currency.title"), width: 200, - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item }) => { const currency = match(item) .with({ __typename: "TrustedInternationalBeneficiary" }, ({ currency }) => currency) @@ -272,7 +258,7 @@ const columns: ColumnConfig[] = [ id: "type", title: t("beneficiaries.type.title"), width: 200, - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item }) => ( @@ -291,15 +277,15 @@ const columns: ColumnConfig[] = [ title: "", renderTitle: () => null, renderCell: ({ isHovered }) => ( - - + + - - + + ), }, ]; diff --git a/clients/banking/src/components/CardList.tsx b/clients/banking/src/components/CardList.tsx index 9190474e6..90cb8c1cc 100644 --- a/clients/banking/src/components/CardList.tsx +++ b/clients/banking/src/components/CardList.tsx @@ -1,5 +1,5 @@ import { Option } from "@swan-io/boxed"; -import { SimpleHeaderCell } from "@swan-io/lake/src/components/Cells"; +import { HeaderCell } from "@swan-io/lake/src/components/Cells"; import { ColumnConfig, PlainListView } from "@swan-io/lake/src/components/PlainListView"; import { LinkConfig } from "@swan-io/lake/src/components/VirtualizedList"; import { ReactElement, ReactNode, useState } from "react"; @@ -38,21 +38,21 @@ const columns: ColumnConfig[] = [ id: "type", width: "grow", title: t("cardList.fullNameAndCardType"), - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item }) => , }, { id: "name", width: 150, title: t("cardList.cardName"), - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item }) => , }, { id: "spendingLimit", width: 200, title: t("cardList.spendingLimit"), - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item }) => , }, { diff --git a/clients/banking/src/components/CardListCells.tsx b/clients/banking/src/components/CardListCells.tsx index 2bee06cb6..ade32b948 100644 --- a/clients/banking/src/components/CardListCells.tsx +++ b/clients/banking/src/components/CardListCells.tsx @@ -1,5 +1,5 @@ import { Box } from "@swan-io/lake/src/components/Box"; -import { CellAction, EndAlignedCell } from "@swan-io/lake/src/components/Cells"; +import { ActionCell, Cell } from "@swan-io/lake/src/components/Cells"; import { Icon } from "@swan-io/lake/src/components/Icon"; import { LakeHeading } from "@swan-io/lake/src/components/LakeHeading"; import { LakeText } from "@swan-io/lake/src/components/LakeText"; @@ -412,8 +412,8 @@ export const CardActionsCell = ({ onPressCancel: ({ cardId }: { cardId: string }) => void; }) => { return ( - - + + {match(card.statusInfo) .with( @@ -454,7 +454,7 @@ export const CardActionsCell = ({ size={16} /> - - + + ); }; diff --git a/clients/banking/src/components/MembershipList.tsx b/clients/banking/src/components/MembershipList.tsx index ceec37899..380cce6e0 100644 --- a/clients/banking/src/components/MembershipList.tsx +++ b/clients/banking/src/components/MembershipList.tsx @@ -1,5 +1,5 @@ import { Option } from "@swan-io/boxed"; -import { SimpleHeaderCell } from "@swan-io/lake/src/components/Cells"; +import { HeaderCell } from "@swan-io/lake/src/components/Cells"; import { EmptyView } from "@swan-io/lake/src/components/EmptyView"; import { ColumnConfig, PlainListView } from "@swan-io/lake/src/components/PlainListView"; import { LinkConfig } from "@swan-io/lake/src/components/VirtualizedList"; @@ -26,28 +26,28 @@ const columns: ColumnConfig[] = [ id: "name", width: "grow", title: t("membershipList.fullName"), - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item }) => , }, { id: "rights", width: 220, title: t("membershipList.rights"), - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item }) => , }, { id: "email", width: 220, title: t("membershipList.email"), - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item }) => , }, { id: "phone", width: 180, title: t("membershipList.phoneNumber"), - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item }) => , }, { diff --git a/clients/banking/src/components/MembershipListCells.tsx b/clients/banking/src/components/MembershipListCells.tsx index ea7531ffe..02176d9e9 100644 --- a/clients/banking/src/components/MembershipListCells.tsx +++ b/clients/banking/src/components/MembershipListCells.tsx @@ -1,10 +1,5 @@ import { Box } from "@swan-io/lake/src/components/Box"; -import { - CellAction, - CopyableRegularTextCell, - EndAlignedCell, - SimpleRegularTextCell, -} from "@swan-io/lake/src/components/Cells"; +import { ActionCell, Cell, CopyableTextCell, TextCell } from "@swan-io/lake/src/components/Cells"; import { Fill } from "@swan-io/lake/src/components/Fill"; import { Icon, IconName } from "@swan-io/lake/src/components/Icon"; import { LakeHeading } from "@swan-io/lake/src/components/LakeHeading"; @@ -352,7 +347,7 @@ export const RightsCell = ({ accountMembership }: { accountMembership: AccountMe export const EmailCell = ({ accountMembership }: { accountMembership: AccountMembership }) => { return ( - accountMembership.user?.mobilePhoneNumber); if (mobilePhoneNumber == null) { - return ; + return ; } return ( - void; }) => { return ( - - + + {match({ accountMembership, @@ -461,7 +456,7 @@ export const MembershipActionsCell = ({ size={16} /> - - + + ); }; diff --git a/clients/banking/src/components/MerchantList.tsx b/clients/banking/src/components/MerchantList.tsx index 9004e9458..72562e107 100644 --- a/clients/banking/src/components/MerchantList.tsx +++ b/clients/banking/src/components/MerchantList.tsx @@ -2,12 +2,7 @@ import { AsyncData, Result } from "@swan-io/boxed"; import { Link } from "@swan-io/chicane"; import { useQuery } from "@swan-io/graphql-client"; import { Box } from "@swan-io/lake/src/components/Box"; -import { - CellAction, - EndAlignedCell, - SimpleHeaderCell, - StartAlignedCell, -} from "@swan-io/lake/src/components/Cells"; +import { ActionCell, Cell, HeaderCell } from "@swan-io/lake/src/components/Cells"; import { EmptyView } from "@swan-io/lake/src/components/EmptyView"; import { Fill } from "@swan-io/lake/src/components/Fill"; import { Icon } from "@swan-io/lake/src/components/Icon"; @@ -67,20 +62,20 @@ const columns: ColumnConfig[] = [ id: "name", width: "grow", title: t("merchantProfile.list.name"), - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item }) => ( - + {item.merchantName} - + ), }, { id: "paymentMethods", width: 200, title: t("merchantProfile.list.paymentMethods"), - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item }) => { const paymentMethods = item.merchantPaymentMethods ?? []; const activePaymentMethods = paymentMethods.filter( @@ -88,9 +83,9 @@ const columns: ColumnConfig[] = [ ); return ( - + {activePaymentMethods.length} - + ); }, }, @@ -100,7 +95,7 @@ const columns: ColumnConfig[] = [ title: "", renderTitle: () => null, renderCell: ({ item }) => ( - + {match(item.statusInfo.status) .with("Disabled", () => {t("merchantProfile.status.disabled")}) .with("Enabled", () => {t("merchantProfile.status.enabled")}) @@ -114,7 +109,7 @@ const columns: ColumnConfig[] = [ {t("merchantProfile.status.suspended")} )) .otherwise(() => null)} - + ), }, { @@ -123,8 +118,8 @@ const columns: ColumnConfig[] = [ title: "", renderTitle: () => null, renderCell: ({ isHovered }) => ( - - + + [] = [ size={16} /> - - + + ), }, ]; @@ -143,7 +138,7 @@ const smallColumns: ColumnConfig[] = [ id: "name", width: "grow", title: t("merchantProfile.list.name"), - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item }) => ( {item.merchantName} @@ -156,7 +151,7 @@ const smallColumns: ColumnConfig[] = [ title: "", renderTitle: () => null, renderCell: ({ item }) => ( - + {match(item.statusInfo.status) .with("Disabled", () => {t("merchantProfile.status.disabled")}) .with("Enabled", () => {t("merchantProfile.status.enabled")}) @@ -170,7 +165,7 @@ const smallColumns: ColumnConfig[] = [ {t("merchantProfile.status.suspended")} )) .otherwise(() => null)} - + ), }, { @@ -179,8 +174,8 @@ const smallColumns: ColumnConfig[] = [ title: "", renderTitle: () => null, renderCell: ({ isHovered }) => ( - - + + [] = [ size={16} /> - - + + ), }, ]; diff --git a/clients/banking/src/components/MerchantProfilePaymentLinksList.tsx b/clients/banking/src/components/MerchantProfilePaymentLinksList.tsx index 2eb80c907..f08d72840 100644 --- a/clients/banking/src/components/MerchantProfilePaymentLinksList.tsx +++ b/clients/banking/src/components/MerchantProfilePaymentLinksList.tsx @@ -1,10 +1,4 @@ -import { - CellAction, - CopyableRegularTextCell, - EndAlignedCell, - SimpleHeaderCell, - StartAlignedCell, -} from "@swan-io/lake/src/components/Cells"; +import { ActionCell, Cell, CopyableTextCell, HeaderCell } from "@swan-io/lake/src/components/Cells"; import { EmptyView } from "@swan-io/lake/src/components/EmptyView"; import { Icon } from "@swan-io/lake/src/components/Icon"; import { LakeText } from "@swan-io/lake/src/components/LakeText"; @@ -71,9 +65,9 @@ const columns: ColumnConfig[] = [ id: "label", width: 300, title: t("merchantProfile.paymentLink.list.label"), - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item }) => ( - + {isNullishOrEmpty(item.label) ? ( {"-"} @@ -83,16 +77,16 @@ const columns: ColumnConfig[] = [ {item.label} )} - + ), }, { id: "link", width: "grow", title: t("merchantProfile.paymentLink.list.link"), - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item }) => ( - [] = [ id: "status", width: 150, title: t("merchantProfile.paymentLink.list.status"), - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item }) => ( - + {match(item.statusInfo.status) .with("Active", () => ( {t("merchantProfile.paymentLink.status.active")} @@ -118,20 +112,20 @@ const columns: ColumnConfig[] = [ {t("merchantProfile.paymentLink.status.expired")} )) .exhaustive()} - + ), }, { id: "amount", width: 200, title: t("transactions.amount"), - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item }) => ( - + {formatCurrency(Number(item.amount.value), item.amount.currency)} - + ), }, { @@ -140,15 +134,15 @@ const columns: ColumnConfig[] = [ title: "", renderTitle: () => null, renderCell: ({ isHovered }) => ( - - + + - - + + ), }, ]; @@ -165,9 +159,9 @@ const smallColumns: ColumnConfig[] = [ id: "status", width: 120, title: t("merchantProfile.paymentLink.list.status"), - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item }) => ( - + {match(item.statusInfo.status) .with("Active", () => ( {t("merchantProfile.paymentLink.status.active")} @@ -179,7 +173,7 @@ const smallColumns: ColumnConfig[] = [ {t("merchantProfile.paymentLink.status.expired")} )) .exhaustive()} - + ), }, { @@ -188,15 +182,15 @@ const smallColumns: ColumnConfig[] = [ title: "", renderTitle: () => null, renderCell: ({ isHovered }) => ( - - + + - - + + ), }, ]; diff --git a/clients/banking/src/components/RecurringTransferList.tsx b/clients/banking/src/components/RecurringTransferList.tsx index c099eece1..0d651642f 100644 --- a/clients/banking/src/components/RecurringTransferList.tsx +++ b/clients/banking/src/components/RecurringTransferList.tsx @@ -2,12 +2,7 @@ import { AsyncData, Result } from "@swan-io/boxed"; import { useMutation, useQuery } from "@swan-io/graphql-client"; import { BorderedIcon } from "@swan-io/lake/src/components/BorderedIcon"; import { Box } from "@swan-io/lake/src/components/Box"; -import { - EndAlignedCell, - SimpleHeaderCell, - SimpleRegularTextCell, - StartAlignedCell, -} from "@swan-io/lake/src/components/Cells"; +import { Cell, HeaderCell, TextCell } from "@swan-io/lake/src/components/Cells"; import { EmptyView } from "@swan-io/lake/src/components/EmptyView"; import { Fill } from "@swan-io/lake/src/components/Fill"; import { Icon } from "@swan-io/lake/src/components/Icon"; @@ -438,7 +433,7 @@ const columns: ColumnConfig[] = [ id: "recipient", title: t("recurringTransfer.table.recipient"), width: "grow", - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item: { sepaBeneficiary } }) => ( @@ -454,16 +449,16 @@ const columns: ColumnConfig[] = [ id: "label", title: t("recurringTransfer.table.explanation"), width: "grow", - renderTitle: ({ title }) => , - renderCell: ({ item: { label } }) => , + renderTitle: ({ title }) => , + renderCell: ({ item: { label } }) => , }, { id: "period", title: t("recurringTransfer.table.period"), width: 150, - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item: { period } }) => ( - t("payments.new.standingOrder.details.daily")) .with("Weekly", () => t("payments.new.standingOrder.details.weekly")) @@ -476,17 +471,17 @@ const columns: ColumnConfig[] = [ id: "nextExecutionDate", title: t("recurringTransfer.table.nextExecution"), width: 250, - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item: { nextExecutionDate, statusInfo } }) => match(statusInfo) .with({ status: "Canceled" }, () => ( - + {t("recurringTransfer.filters.status.canceled")} - + )) .with({ status: P.union("Enabled", "ConsentPending") }, () => ( - )) @@ -496,9 +491,9 @@ const columns: ColumnConfig[] = [ id: "amount", title: t("recurringTransfer.table.amount"), width: 150, - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item: { amount } }) => ( - [] = [ id: "actions", title: t("recurringTransfer.table.actions"), width: 100, - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item, extraInfo: { onCancel } }) => ( - + {item.statusInfo.status === "Enabled" && ( onCancel(item.id)}> {({ hovered }) => ( @@ -529,7 +524,7 @@ const columns: ColumnConfig[] = [ - + ), }, ]; @@ -539,9 +534,9 @@ const smallColumns: ColumnConfig[] = [ id: "recipient", title: t("recurringTransfer.table.recipient"), width: "grow", - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item: { sepaBeneficiary, amount, statusInfo } }) => ( - + [] = [ : t("recurringTransfer.table.fullBalanceTransfer")} - + ), }, { id: "nextExecutionDate", title: t("recurringTransfer.table.nextExecution"), width: 36, - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item: { statusInfo } }) => match(statusInfo) .with({ status: "Canceled" }, () => ( - + - + )) .otherwise(() => null), }, @@ -583,11 +578,11 @@ const smallColumns: ColumnConfig[] = [ id: "actions", title: t("recurringTransfer.table.actions"), width: 36, - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: () => ( - + - + ), }, ]; diff --git a/clients/banking/src/components/RightPanelTransactionList.tsx b/clients/banking/src/components/RightPanelTransactionList.tsx index 434fd60be..5785cffd5 100644 --- a/clients/banking/src/components/RightPanelTransactionList.tsx +++ b/clients/banking/src/components/RightPanelTransactionList.tsx @@ -1,4 +1,4 @@ -import { SimpleHeaderCell } from "@swan-io/lake/src/components/Cells"; +import { HeaderCell } from "@swan-io/lake/src/components/Cells"; import { ColumnConfig, PlainListView } from "@swan-io/lake/src/components/PlainListView"; import { breakpoints } from "@swan-io/lake/src/constants/design"; import { ReactNode } from "react"; @@ -37,14 +37,14 @@ const columns: ColumnConfig[] = [ id: "date", width: 200, title: t("transactions.date"), - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item }) => , }, { id: "amount", width: 160, title: t("transactions.amount"), - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item }) => , }, ]; @@ -54,7 +54,7 @@ const smallColumns: ColumnConfig[] = [ id: "label", width: "grow", title: "label", - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item }) => , }, ]; diff --git a/clients/banking/src/components/TransactionList.tsx b/clients/banking/src/components/TransactionList.tsx index 671616eeb..b87748aea 100644 --- a/clients/banking/src/components/TransactionList.tsx +++ b/clients/banking/src/components/TransactionList.tsx @@ -1,4 +1,4 @@ -import { CellAction, EndAlignedCell, SimpleHeaderCell } from "@swan-io/lake/src/components/Cells"; +import { ActionCell, Cell, HeaderCell } from "@swan-io/lake/src/components/Cells"; import { Icon } from "@swan-io/lake/src/components/Icon"; import { ColumnConfig, PlainListView } from "@swan-io/lake/src/components/PlainListView"; import { ResponsiveContainer } from "@swan-io/lake/src/components/ResponsiveContainer"; @@ -43,7 +43,7 @@ const columns: ColumnConfig[] = [ id: "type", width: 48, title: t("transactions.transaction"), - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item }) => , }, { @@ -57,21 +57,21 @@ const columns: ColumnConfig[] = [ id: "method", width: 180, title: t("transactions.method"), - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item }) => , }, { id: "date", width: 200, title: t("transactions.date"), - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item }) => , }, { id: "amount", width: 160, title: t("transactions.amount"), - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item }) => , }, { @@ -80,15 +80,15 @@ const columns: ColumnConfig[] = [ title: "", renderTitle: () => null, renderCell: ({ isHovered }) => ( - - + + - - + + ), }, ]; @@ -98,14 +98,14 @@ const smallColumns: ColumnConfig[] = [ id: "type", width: 48, title: t("transactions.transaction"), - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item }) => , }, { id: "label", width: "grow", title: "label", - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item }) => , }, { @@ -114,15 +114,15 @@ const smallColumns: ColumnConfig[] = [ title: "", renderTitle: () => null, renderCell: ({ isHovered }) => ( - - + + - - + + ), }, ]; diff --git a/clients/banking/src/components/TransferBulkReview.tsx b/clients/banking/src/components/TransferBulkReview.tsx index a1d909b62..c6a69f525 100644 --- a/clients/banking/src/components/TransferBulkReview.tsx +++ b/clients/banking/src/components/TransferBulkReview.tsx @@ -1,9 +1,5 @@ import { Box } from "@swan-io/lake/src/components/Box"; -import { - CopyableRegularTextCell, - EndAlignedCell, - SimpleHeaderCell, -} from "@swan-io/lake/src/components/Cells"; +import { Cell, CopyableTextCell, HeaderCell } from "@swan-io/lake/src/components/Cells"; import { EmptyView } from "@swan-io/lake/src/components/EmptyView"; import { LakeButton, LakeButtonGroup } from "@swan-io/lake/src/components/LakeButton"; import { LakeCheckbox } from "@swan-io/lake/src/components/LakeCheckbox"; @@ -121,7 +117,7 @@ const columns: ColumnConfig[] = [ id: "label", title: t("transfer.bulk.label"), width: 150, - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item }) => { const label = item.label; return ( @@ -137,14 +133,14 @@ const columns: ColumnConfig[] = [ id: "iban", title: t("transfer.bulk.iban"), width: 340, - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item }) => { const iban = item.sepaBeneficiary?.iban; if (iban == null) { return null; } return ( - [] = [ id: "reference", title: t("transfer.bulk.reference"), width: 150, - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item }) => { const reference = item.reference; return ( @@ -177,15 +173,15 @@ const stickedToEndColumn: ColumnConfig[] = [ id: "amount", title: t("transfer.bulk.amount"), width: 150, - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item }) => { const amount = item.amount; return ( - + {formatCurrency(Number(amount.value), amount.currency)} - + ); }, }, diff --git a/clients/banking/src/locales/de.json b/clients/banking/src/locales/de.json index 29bd0fe11..684916b9a 100644 --- a/clients/banking/src/locales/de.json +++ b/clients/banking/src/locales/de.json @@ -1379,4 +1379,4 @@ "transfer.transfer": "Überweisung", "upcomingTransansactionList.noResults": "Keine bevorstehenden Transaktionen", "upcomingTransansactionList.noResultsDescription": "Es sind keine eingehenden oder ausgehenden Transaktionen im Gange." -} \ No newline at end of file +} diff --git a/clients/banking/src/locales/en.json b/clients/banking/src/locales/en.json index 6fb4a1a00..a78f6a052 100644 --- a/clients/banking/src/locales/en.json +++ b/clients/banking/src/locales/en.json @@ -1379,4 +1379,4 @@ "transfer.transfer": "Transfer", "upcomingTransansactionList.noResults": "No upcoming transactions", "upcomingTransansactionList.noResultsDescription": "There aren't any incoming or outgoing transactions underway." -} \ No newline at end of file +} diff --git a/clients/banking/src/locales/es.json b/clients/banking/src/locales/es.json index 3412ed286..04bbd3f01 100644 --- a/clients/banking/src/locales/es.json +++ b/clients/banking/src/locales/es.json @@ -1379,4 +1379,4 @@ "transfer.transfer": "Transferencia", "upcomingTransansactionList.noResults": "No hay operaciones próximas", "upcomingTransansactionList.noResultsDescription": "No hay operaciones entrantes ni salientes en curso." -} \ No newline at end of file +} diff --git a/clients/banking/src/locales/fi.json b/clients/banking/src/locales/fi.json index 05991d7bb..46a0393a8 100644 --- a/clients/banking/src/locales/fi.json +++ b/clients/banking/src/locales/fi.json @@ -1379,4 +1379,4 @@ "transfer.transfer": "Siirto", "upcomingTransansactionList.noResults": "Ei tulevia tapahtumia", "upcomingTransansactionList.noResultsDescription": "Ei ole käynnissä olevia meneviä tai tulevia tapahtumia." -} \ No newline at end of file +} diff --git a/clients/banking/src/locales/fr.json b/clients/banking/src/locales/fr.json index 480f9f8ad..82bf6c3f9 100644 --- a/clients/banking/src/locales/fr.json +++ b/clients/banking/src/locales/fr.json @@ -1379,4 +1379,4 @@ "transfer.transfer": "Virement", "upcomingTransansactionList.noResults": "Aucune transaction à venir", "upcomingTransansactionList.noResultsDescription": "Il n’y a pas de transactions entrantes ou sortantes en cours." -} \ No newline at end of file +} diff --git a/clients/banking/src/locales/it.json b/clients/banking/src/locales/it.json index ac45ffa70..47b519d35 100644 --- a/clients/banking/src/locales/it.json +++ b/clients/banking/src/locales/it.json @@ -1379,4 +1379,4 @@ "transfer.transfer": "Bonifico", "upcomingTransansactionList.noResults": "Nessuna transazione in corso", "upcomingTransansactionList.noResultsDescription": "Non ci sono transazioni in entrata o in uscita." -} \ No newline at end of file +} diff --git a/clients/banking/src/locales/nl.json b/clients/banking/src/locales/nl.json index 24646df76..da66d5df4 100644 --- a/clients/banking/src/locales/nl.json +++ b/clients/banking/src/locales/nl.json @@ -1379,4 +1379,4 @@ "transfer.transfer": "Overschrijving", "upcomingTransansactionList.noResults": "Geen aanstaande transacties", "upcomingTransansactionList.noResultsDescription": "Er zijn geen inkomende of uitgaande transacties in behandeling." -} \ No newline at end of file +} diff --git a/clients/banking/src/locales/pt.json b/clients/banking/src/locales/pt.json index b20c16cf0..ad509662c 100644 --- a/clients/banking/src/locales/pt.json +++ b/clients/banking/src/locales/pt.json @@ -1379,4 +1379,4 @@ "transfer.transfer": "Transferência", "upcomingTransansactionList.noResults": "Nenhuma transação futura", "upcomingTransansactionList.noResultsDescription": "Não há nenhuma transação de entrada ou saída em curso." -} \ No newline at end of file +} diff --git a/clients/banking/src/pages/AccountDetailsBillingPage.tsx b/clients/banking/src/pages/AccountDetailsBillingPage.tsx index d5d752705..ead6d434c 100644 --- a/clients/banking/src/pages/AccountDetailsBillingPage.tsx +++ b/clients/banking/src/pages/AccountDetailsBillingPage.tsx @@ -1,13 +1,7 @@ import { Link } from "@swan-io/chicane"; import { useQuery } from "@swan-io/graphql-client"; import { Box } from "@swan-io/lake/src/components/Box"; -import { - CellAction, - EndAlignedCell, - SimpleHeaderCell, - SimpleRegularTextCell, - StartAlignedCell, -} from "@swan-io/lake/src/components/Cells"; +import { ActionCell, Cell, HeaderCell, TextCell } from "@swan-io/lake/src/components/Cells"; import { EmptyView } from "@swan-io/lake/src/components/EmptyView"; import { Icon } from "@swan-io/lake/src/components/Icon"; import { LakeText } from "@swan-io/lake/src/components/LakeText"; @@ -58,9 +52,9 @@ const columns: ColumnConfig[] = [ title: t("accountDetails.billing.name"), width: "grow", id: "name", - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item: { name, type } }) => ( - + {name} @@ -77,37 +71,34 @@ const columns: ColumnConfig[] = [ )) .otherwise(() => null)} - + ), }, { title: t("accountDetails.billing.date"), width: 200, id: "date", - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item: { createdAt } }) => ( - + ), }, { title: t("accountDetails.billing.amount"), width: 200, id: "invoice", - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item: { amount } }) => ( - + ), }, { width: 120, id: "status", title: t("accountDetails.billing.status"), - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item: { status } }) => ( - + {match(status) .with("Failed", value => {value}) .with("NotPaid", value => {value}) @@ -116,26 +107,26 @@ const columns: ColumnConfig[] = [ .with("Pending", value => {value}) .with("Voided", value => {value}) .exhaustive()} - + ), }, { width: 120, id: "download", title: t("accountDetails.billing.actions"), - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item: { url, status } }) => { return ( - + {isNotNullish(url) && (status === "Paid" || status === "NotPaid" || status === "PaymentDue") ? ( - + - + ) : ( - + [] = [ tabIndex={0} /> - + )} - + ); }, }, @@ -162,9 +153,9 @@ const smallColumns: ColumnConfig[] = [ title: t("accountDetails.billing.name"), width: "grow", id: "name", - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item: { name, type } }) => ( - + {name} @@ -181,7 +172,7 @@ const smallColumns: ColumnConfig[] = [ )) .otherwise(() => null)} - + ), }, @@ -189,18 +180,18 @@ const smallColumns: ColumnConfig[] = [ title: t("accountDetails.billing.amount"), width: 150, id: "invoice", - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item: { amount } }) => ( - + ), }, { width: 120, id: "status", title: t("accountDetails.billing.status"), - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item: { status } }) => ( - + {match(status) .with("Failed", value => {value}) //pas montré .with("NotPaid", value => {value}) @@ -209,7 +200,7 @@ const smallColumns: ColumnConfig[] = [ .with("Pending", value => {value}) //pas montré .with("Voided", value => {value}) .exhaustive()} - + ), }, { @@ -219,16 +210,16 @@ const smallColumns: ColumnConfig[] = [ renderTitle: () => null, renderCell: ({ item: { url, status } }) => { return ( - + {isNotNullish(url) && (status === "Paid" || status === "NotPaid" || status === "PaymentDue") ? ( - + - + ) : ( - + [] = [ tabIndex={0} /> - + )} - + ); }, }, diff --git a/clients/banking/src/pages/AccountDetailsVirtualIbansPage.tsx b/clients/banking/src/pages/AccountDetailsVirtualIbansPage.tsx index 05e4740b5..93abdc688 100644 --- a/clients/banking/src/pages/AccountDetailsVirtualIbansPage.tsx +++ b/clients/banking/src/pages/AccountDetailsVirtualIbansPage.tsx @@ -1,10 +1,6 @@ import { Option } from "@swan-io/boxed"; import { useMutation, useQuery } from "@swan-io/graphql-client"; -import { - CopyableRegularTextCell, - EndAlignedCell, - SimpleHeaderCell, -} from "@swan-io/lake/src/components/Cells"; +import { Cell, CopyableTextCell, HeaderCell } from "@swan-io/lake/src/components/Cells"; import { EmptyView } from "@swan-io/lake/src/components/EmptyView"; import { LakeButton, LakeButtonGroup } from "@swan-io/lake/src/components/LakeButton"; import { LakeText } from "@swan-io/lake/src/components/LakeText"; @@ -60,7 +56,7 @@ const IbanCell = ({ IBAN }: { IBAN: string }) => { const formattedIban = useMemo(() => printIbanFormat(IBAN), [IBAN]); return ( - [] = [ width: "grow", id: "id", title: t("accountDetails.virtualIbans.iban"), - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item: { node } }) => , }, { width: 200, id: "bic", title: t("accountDetails.virtualIbans.bic"), - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item: { node } }) => ( - [] = [ width: 180, id: "status", title: t("accountDetails.virtualIbans.status"), - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item: { node } }) => ( - + {match(node.status) .with("Enabled", () => ( {t("accountDetails.virtualIbans.status.enabled")} @@ -107,7 +103,7 @@ const columns: ColumnConfig[] = [ {t("accountDetails.virtualIbans.status.suspended")} )) .exhaustive()} - + ), }, { @@ -125,16 +121,16 @@ const smallColumns: ColumnConfig[] = [ width: "grow", id: "id", title: t("accountDetails.virtualIbans.iban"), - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item: { node } }) => , }, { width: 180, id: "status", title: t("accountDetails.virtualIbans.status"), - renderTitle: ({ title }) => , + renderTitle: ({ title }) => , renderCell: ({ item: { node } }) => ( - + {match(node.status) .with("Enabled", () => ( [] = [ /> )) .exhaustive()} - + ), }, { diff --git a/clients/onboarding/package.json b/clients/onboarding/package.json index b69d9cb85..06116b367 100644 --- a/clients/onboarding/package.json +++ b/clients/onboarding/package.json @@ -18,9 +18,9 @@ "@swan-io/boxed": "3.1.1", "@swan-io/chicane": "2.1.0", "@swan-io/graphql-client": "0.3.1", - "@swan-io/lake": "11.1.3", + "@swan-io/lake": "11.1.4", "@swan-io/request": "1.0.6", - "@swan-io/shared-business": "11.1.3", + "@swan-io/shared-business": "11.1.4", "@swan-io/use-form": "3.1.0", "core-js": "3.38.1", "dayjs": "1.11.13", diff --git a/clients/onboarding/src/locales/de.json b/clients/onboarding/src/locales/de.json index 56caef700..fd4ab4774 100644 --- a/clients/onboarding/src/locales/de.json +++ b/clients/onboarding/src/locales/de.json @@ -227,4 +227,4 @@ "wizard.back": "Zurück", "wizard.finalize": "Abschließen", "wizard.next": "Weiter" -} \ No newline at end of file +} diff --git a/clients/onboarding/src/locales/en.json b/clients/onboarding/src/locales/en.json index 3f1581cab..b7f20e026 100644 --- a/clients/onboarding/src/locales/en.json +++ b/clients/onboarding/src/locales/en.json @@ -227,4 +227,4 @@ "wizard.back": "Previous", "wizard.finalize": "Finalize", "wizard.next": "Next" -} \ No newline at end of file +} diff --git a/clients/onboarding/src/locales/es.json b/clients/onboarding/src/locales/es.json index 8ff20d561..16c08ca07 100644 --- a/clients/onboarding/src/locales/es.json +++ b/clients/onboarding/src/locales/es.json @@ -227,4 +227,4 @@ "wizard.back": "Anterior", "wizard.finalize": "Finalizar", "wizard.next": "Siguiente" -} \ No newline at end of file +} diff --git a/clients/onboarding/src/locales/fi.json b/clients/onboarding/src/locales/fi.json index 1fd2a642b..caf5f7f92 100644 --- a/clients/onboarding/src/locales/fi.json +++ b/clients/onboarding/src/locales/fi.json @@ -227,4 +227,4 @@ "wizard.back": "Edellinen", "wizard.finalize": "Viimeistele", "wizard.next": "Seuraava" -} \ No newline at end of file +} diff --git a/clients/onboarding/src/locales/fr.json b/clients/onboarding/src/locales/fr.json index 80e76fac3..fd58f1536 100644 --- a/clients/onboarding/src/locales/fr.json +++ b/clients/onboarding/src/locales/fr.json @@ -227,4 +227,4 @@ "wizard.back": "Précédent", "wizard.finalize": "Finaliser", "wizard.next": "Suivant" -} \ No newline at end of file +} diff --git a/clients/onboarding/src/locales/it.json b/clients/onboarding/src/locales/it.json index a392b05f8..d6be99aaa 100644 --- a/clients/onboarding/src/locales/it.json +++ b/clients/onboarding/src/locales/it.json @@ -227,4 +227,4 @@ "wizard.back": "Indietro", "wizard.finalize": "Finalizza", "wizard.next": "Avanti" -} \ No newline at end of file +} diff --git a/clients/onboarding/src/locales/nl.json b/clients/onboarding/src/locales/nl.json index f76540927..9ee58c86f 100644 --- a/clients/onboarding/src/locales/nl.json +++ b/clients/onboarding/src/locales/nl.json @@ -227,4 +227,4 @@ "wizard.back": "Vorige", "wizard.finalize": "Afronden", "wizard.next": "Volgende" -} \ No newline at end of file +} diff --git a/clients/onboarding/src/locales/pt.json b/clients/onboarding/src/locales/pt.json index 6b6088d4e..f25fde5ce 100644 --- a/clients/onboarding/src/locales/pt.json +++ b/clients/onboarding/src/locales/pt.json @@ -227,4 +227,4 @@ "wizard.back": "Anterior", "wizard.finalize": "Finalizar", "wizard.next": "Próximo" -} \ No newline at end of file +} diff --git a/clients/payment/package.json b/clients/payment/package.json index 0195f748b..ee203de7c 100644 --- a/clients/payment/package.json +++ b/clients/payment/package.json @@ -18,8 +18,8 @@ "@swan-io/boxed": "3.1.1", "@swan-io/chicane": "2.1.0", "@swan-io/graphql-client": "0.3.1", - "@swan-io/lake": "11.1.3", - "@swan-io/shared-business": "11.1.3", + "@swan-io/lake": "11.1.4", + "@swan-io/shared-business": "11.1.4", "@swan-io/use-form": "3.1.0", "core-js": "3.38.1", "dayjs": "1.11.13", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 82c244288..42199f8ca 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -171,14 +171,14 @@ importers: specifier: 0.3.1 version: 0.3.1(graphql@16.9.0)(react@18.3.1)(typescript@5.6.3) '@swan-io/lake': - specifier: 11.1.3 - version: 11.1.3(@types/react@18.3.12)(@types/three@0.163.0)(typescript@5.6.3) + specifier: 11.1.4 + version: 11.1.4(@types/react@18.3.12)(@types/three@0.163.0)(typescript@5.6.3) '@swan-io/request': specifier: 1.0.6 version: 1.0.6(@swan-io/boxed@3.1.1(typescript@5.6.3)) '@swan-io/shared-business': - specifier: 11.1.3 - version: 11.1.3(@swan-io/lake@11.1.3(@types/react@18.3.12)(@types/three@0.163.0)(typescript@5.6.3))(typescript@5.6.3) + specifier: 11.1.4 + version: 11.1.4(@swan-io/lake@11.1.4(@types/react@18.3.12)(@types/three@0.163.0)(typescript@5.6.3))(typescript@5.6.3) '@swan-io/use-form': specifier: 3.1.0 version: 3.1.0(react@18.3.1)(typescript@5.6.3) @@ -268,14 +268,14 @@ importers: specifier: 0.3.1 version: 0.3.1(graphql@16.9.0)(react@18.3.1)(typescript@5.6.3) '@swan-io/lake': - specifier: 11.1.3 - version: 11.1.3(@types/react@18.3.12)(@types/three@0.163.0)(typescript@5.6.3) + specifier: 11.1.4 + version: 11.1.4(@types/react@18.3.12)(@types/three@0.163.0)(typescript@5.6.3) '@swan-io/request': specifier: 1.0.6 version: 1.0.6(@swan-io/boxed@3.1.1(typescript@5.6.3)) '@swan-io/shared-business': - specifier: 11.1.3 - version: 11.1.3(@swan-io/lake@11.1.3(@types/react@18.3.12)(@types/three@0.163.0)(typescript@5.6.3))(typescript@5.6.3) + specifier: 11.1.4 + version: 11.1.4(@swan-io/lake@11.1.4(@types/react@18.3.12)(@types/three@0.163.0)(typescript@5.6.3))(typescript@5.6.3) '@swan-io/use-form': specifier: 3.1.0 version: 3.1.0(react@18.3.1)(typescript@5.6.3) @@ -359,11 +359,11 @@ importers: specifier: 0.3.1 version: 0.3.1(graphql@16.9.0)(react@18.3.1)(typescript@5.6.3) '@swan-io/lake': - specifier: 11.1.3 - version: 11.1.3(@types/react@18.3.12)(@types/three@0.163.0)(typescript@5.6.3) + specifier: 11.1.4 + version: 11.1.4(@types/react@18.3.12)(@types/three@0.163.0)(typescript@5.6.3) '@swan-io/shared-business': - specifier: 11.1.3 - version: 11.1.3(@swan-io/lake@11.1.3(@types/react@18.3.12)(@types/three@0.163.0)(typescript@5.6.3))(typescript@5.6.3) + specifier: 11.1.4 + version: 11.1.4(@swan-io/lake@11.1.4(@types/react@18.3.12)(@types/three@0.163.0)(typescript@5.6.3))(typescript@5.6.3) '@swan-io/use-form': specifier: 3.1.0 version: 3.1.0(react@18.3.1)(typescript@5.6.3) @@ -1964,8 +1964,8 @@ packages: peerDependencies: react: ^18.2.0 - '@swan-io/lake@11.1.3': - resolution: {integrity: sha512-kKtkYb4pEYsqk8hF5lJYz0A+jwP5UOrEcOMerHhn9rITrl/mRfjIiLMiV9KjD0K+e1PLmo0bFQs44C/dHjw0Nw==, tarball: https://registry.npmjs.org/@swan-io/lake/-/lake-11.1.3.tgz} + '@swan-io/lake@11.1.4': + resolution: {integrity: sha512-iIC+qtWnfsTftj64thL59rsr/Ls+sFC6SOvwuHLeK1S/DXdClHeSK3zOEJUu1nCCrQ2c3FrXWWL1MKvbsocFEw==, tarball: https://registry.npmjs.org/@swan-io/lake/-/lake-11.1.4.tgz} engines: {node: '>=20.9.0', pnpm: 9.9.0} '@swan-io/request@1.0.6': @@ -1973,11 +1973,11 @@ packages: peerDependencies: '@swan-io/boxed': '>=2.2.1' - '@swan-io/shared-business@11.1.3': - resolution: {integrity: sha512-n66Nd/v00NVYNL9rO8I4VQ55of9pOAaHn76ZZxOJqYBo35EHLLBGtxX1nv4/NVNLdntcrxXs135EryDPurvoIQ==, tarball: https://registry.npmjs.org/@swan-io/shared-business/-/shared-business-11.1.3.tgz} + '@swan-io/shared-business@11.1.4': + resolution: {integrity: sha512-+m0AcbhTdfcwPktc2HQn+fWZJetg9EyZyFbsvxk8STZ9/OpsbA4bLsW5w4Uy3Esc9IdH7UYVcnsLoaxHxq9Hag==, tarball: https://registry.npmjs.org/@swan-io/shared-business/-/shared-business-11.1.4.tgz} engines: {node: '>=20.9.0', pnpm: 9.9.0} peerDependencies: - '@swan-io/lake': 11.1.3 + '@swan-io/lake': 11.1.4 '@swan-io/use-form@3.1.0': resolution: {integrity: sha512-X6NpZ7LCeo7eS9RVCZrtpX+3GXZFUfUZpIwtVa2GNmqTLgyDbLhN8N6zBv+dmHL9KAQ+Zng2fTCCQpCZvmDu5A==, tarball: https://registry.npmjs.org/@swan-io/use-form/-/use-form-3.1.0.tgz} @@ -7057,7 +7057,7 @@ snapshots: - graphql - typescript - '@swan-io/lake@11.1.3(@types/react@18.3.12)(@types/three@0.163.0)(typescript@5.6.3)': + '@swan-io/lake@11.1.4(@types/react@18.3.12)(@types/three@0.163.0)(typescript@5.6.3)': dependencies: '@react-three/drei': 9.115.0(@react-three/fiber@8.17.10(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(three@0.169.0))(@types/react@18.3.12)(@types/three@0.163.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(three@0.169.0) '@react-three/fiber': 8.17.10(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(three@0.169.0) @@ -7091,12 +7091,12 @@ snapshots: dependencies: '@swan-io/boxed': 3.1.1(typescript@5.6.3) - '@swan-io/shared-business@11.1.3(@swan-io/lake@11.1.3(@types/react@18.3.12)(@types/three@0.163.0)(typescript@5.6.3))(typescript@5.6.3)': + '@swan-io/shared-business@11.1.4(@swan-io/lake@11.1.4(@types/react@18.3.12)(@types/three@0.163.0)(typescript@5.6.3))(typescript@5.6.3)': dependencies: '@formatjs/intl': 2.10.9(typescript@5.6.3) '@placekit/client-js': 2.3.0 '@swan-io/boxed': 3.1.1(typescript@5.6.3) - '@swan-io/lake': 11.1.3(@types/react@18.3.12)(@types/three@0.163.0)(typescript@5.6.3) + '@swan-io/lake': 11.1.4(@types/react@18.3.12)(@types/three@0.163.0)(typescript@5.6.3) '@swan-io/request': 1.0.6(@swan-io/boxed@3.1.1(typescript@5.6.3)) '@swan-io/use-form': 3.1.0(react@18.3.1)(typescript@5.6.3) dayjs: 1.11.13