chore: bump version to 2.23.13 and update dependencies (#450)

* chore: bump version to 2.23.13 and update dependencies

- Updated application version from 2.23.12 to 2.23.13 in package.json.
- Upgraded several dependencies including @marsidev/react-turnstile to 1.4.2, @next/bundle-analyzer to 16.1.6, @next/eslint-plugin-next to 16.1.6, and others for improved functionality and security.
- Adjusted package versions in pnpm-lock.yaml and pnpm-workspace.yaml for consistency across the project.
- Removed unused AI translation functionality from translations-comparison component to streamline the codebase.

* refactor: clean up code formatting and update Stripe API version

- Removed unnecessary blank lines in LineItemDetails component for improved readability.
- Enhanced formatting in PricingItem component for better clarity.
- Updated Stripe API version from '2025-12-15.clover' to '2026-01-28.clover' for compatibility with the latest features.
- Adjusted i18n initialization in email templates for consistency.
- Reformatted props in AdminReactivateUserDialog for better structure.
- Cleaned up type imports in ImageUploadInput component.
This commit is contained in:
Giancarlo Buomprisco
2026-02-06 12:55:05 +01:00
committed by GitHub
parent 58f08c5f39
commit 68276fda8a
17 changed files with 1286 additions and 1491 deletions

View File

@@ -183,7 +183,6 @@ export function LineItemDetails(
</If>
</span>
<If condition={!item.tiers?.length}>
<span>-</span>

View File

@@ -162,10 +162,12 @@ function PricingItem(
const i18nKey = `billing:units.${lineItem.unit}`;
const unitLabel = lineItem?.unit
? i18n.exists(i18nKey) ? t(i18nKey, {
count: 1,
defaultValue: lineItem.unit,
}) : lineItem.unit
? i18n.exists(i18nKey)
? t(i18nKey, {
count: 1,
defaultValue: lineItem.unit,
})
: lineItem.unit
: '';
const isDefaultSeatUnit = lineItem?.unit === 'member';

View File

@@ -2,7 +2,7 @@ import 'server-only';
import { StripeServerEnvSchema } from '../schema/stripe-server-env.schema';
const STRIPE_API_VERSION = '2025-12-15.clover';
const STRIPE_API_VERSION = '2026-01-28.clover';
/**
* @description returns a Stripe instance

View File

@@ -1,11 +1,12 @@
import { initializeServerI18n } from '@kit/i18n/server';
import { createI18nSettings } from '@kit/i18n';
import { initializeServerI18n } from '@kit/i18n/server';
export function initializeEmailI18n(params: {
language: string | undefined;
namespace: string;
}) {
const language = params.language ?? process.env.NEXT_PUBLIC_DEFAULT_LOCALE ?? 'en';
const language =
params.language ?? process.env.NEXT_PUBLIC_DEFAULT_LOCALE ?? 'en';
return initializeServerI18n(
createI18nSettings({

View File

@@ -52,7 +52,10 @@ export function AdminReactivateUserDialog(
</AlertDialogDescription>
</AlertDialogHeader>
<ReactivateUserForm userId={props.userId} onSuccess={() => setOpen(false)} />
<ReactivateUserForm
userId={props.userId}
onSuccess={() => setOpen(false)}
/>
</AlertDialogContent>
</AlertDialog>
);

View File

@@ -24,7 +24,7 @@
"devDependencies": {
"@kit/prettier-config": "workspace:*",
"@kit/tsconfig": "workspace:*",
"@modelcontextprotocol/sdk": "1.25.3",
"@modelcontextprotocol/sdk": "1.26.0",
"@types/node": "catalog:",
"postgres": "3.4.8",
"zod": "catalog:"

View File

@@ -16,7 +16,7 @@
"input-otp": "1.4.2",
"lucide-react": "catalog:",
"radix-ui": "1.4.3",
"react-dropzone": "^14.3.8",
"react-dropzone": "^14.4.0",
"react-top-loading-bar": "3.0.2",
"recharts": "2.15.3",
"tailwind-merge": "^3.4.0"

View File

@@ -1,6 +1,6 @@
'use client';
import type { FormEvent, MouseEventHandler } from 'react';
import type { MouseEventHandler } from 'react';
import { useCallback, useEffect, useRef, useState } from 'react';
import Image from 'next/image';
@@ -39,40 +39,41 @@ export const ImageUploadInput: React.FC<Props> =
fileName: '',
});
const onInputChange = useCallback(
(e: FormEvent<HTMLInputElement>) => {
e.preventDefault();
const onInputChange: React.InputEventHandler<HTMLInputElement> =
useCallback(
(e) => {
e.preventDefault();
const files = e.currentTarget.files;
const files = e.currentTarget.files;
if (files?.length) {
const file = files[0];
if (files?.length) {
const file = files[0];
if (!file) {
return;
}
if (!file) {
return;
}
const data = URL.createObjectURL(file);
const data = URL.createObjectURL(file);
setState({
image: data,
fileName: file.name,
});
if (onValueChange) {
onValueChange({
setState({
image: data,
file,
fileName: file.name,
});
}
}
if (onInput) {
onInput(e);
}
},
[onInput, onValueChange],
);
if (onValueChange) {
onValueChange({
image: data,
file,
});
}
}
if (onInput) {
onInput(e);
}
},
[onInput, onValueChange],
);
const onRemove = useCallback(() => {
setState({