Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

WIP

Tim Wilson620fe9a79a02
diff --git a/apps/web/lib/api/links/create-link.ts b/apps/web/lib/api/links/create-link.ts
index 485408a343..ea5a90a070 100644
--- a/apps/web/lib/api/links/create-link.ts
+++ b/apps/web/lib/api/links/create-link.ts
@@ -32,6 +32,8 @@ export async function createLink(link: ProcessedLinkProps) {
proxy,
geo,
publicStats,
+ tests,
+ testsCompleteAt,
} = link;
const combinedTagIds = combineTagIds(link);
@@ -64,6 +66,9 @@ export async function createLink(link: ProcessedLinkProps) {
expiresAt: expiresAt ? new Date(expiresAt) : null,
geo: geo || Prisma.JsonNull,
+ testsCompleteAt: testsCompleteAt ? new Date(testsCompleteAt) : null,
+ tests: tests || Prisma.JsonNull,
+
// Associate tags by tagNames
...(tagNames?.length &&
link.projectId && {
diff --git a/apps/web/lib/api/links/process-link.ts b/apps/web/lib/api/links/process-link.ts
index c3d08a72ff..72e3ad78bc 100644
--- a/apps/web/lib/api/links/process-link.ts
+++ b/apps/web/lib/api/links/process-link.ts
@@ -4,6 +4,7 @@ import { getPangeaDomainIntel } from "@/lib/pangea";
import { checkIfUserExists, getRandomKey } from "@/lib/planetscale";
import { isStored } from "@/lib/storage";
import { NewLinkProps, ProcessedLinkProps, WorkspaceProps } from "@/lib/types";
+import { LinkTestsSchema } from "@/lib/zod/schemas/links";
import { prisma } from "@dub/prisma";
import {
DUB_DOMAINS,
@@ -75,9 +76,13 @@ export async function processLink<T extends Record<string, any>>({
partnerId,
programId,
webhookIds,
+ tests,
} = payload;
let expiresAt: string | Date | null | undefined = payload.expiresAt;
+ let testsCompleteAt: string | Date | null | undefined =
+ payload.testsCompleteAt;
+
let defaultProgramFolderId: string | null = null;
const tagIds = combineTagIds(payload);
@@ -530,6 +535,29 @@ export async function processLink<T extends Record<string, any>>({
}
}
+ // A/B testing checks
+ if (tests && testsCompleteAt) {
+ const datetime = parseDateTime(testsCompleteAt);
+ if (!datetime) {
+ return {
+ link: payload,
+ error: "Invalid test completion date.",
+ code: "unprocessable_entity",
+ };
+ }
+ testsCompleteAt = datetime;
+
+ const parsedTests = LinkTestsSchema.safeParse(tests);
+ if (!parsedTests.success) {
+ return {
+ link: payload,
+ error: "Invalid tests.",
+ code: "unprocessable_entity",
+ };
+ }
+ tests = parsedTests.data;
+ }
+
// remove polyfill attributes from payload
delete payload["shortLink"];
delete payload["qrCode"];
@@ -547,6 +575,8 @@ export async function processLink<T extends Record<string, any>>({
url,
expiresAt,
expiredUrl,
+ tests,
+ testsCompleteAt,
// partnerId derived from payload or program enrollment
partnerId: partnerId || null,
// make sure projectId is set to the current workspace
diff --git a/apps/web/lib/zod/schemas/links.ts b/apps/web/lib/zod/schemas/links.ts
index 0582f3fa42..3d0145018c 100644
--- a/apps/web/lib/zod/schemas/links.ts
+++ b/apps/web/lib/zod/schemas/links.ts
@@ -25,15 +25,21 @@ export const getDomainQuerySchema = z.object({
.refine((v) => validDomainRegex.test(v), { message: "Invalid domain" }),
});
+export const MIN_TEST_PERCENTAGE = 10;
+export const MAX_TEST_COUNT = 4;
+
export const LinkTestsSchema = z
.array(
z.object({
url: z.string(),
- percentage: z.number().min(0).max(100),
+ percentage: z
+ .number()
+ .min(MIN_TEST_PERCENTAGE)
+ .max(100 - MIN_TEST_PERCENTAGE),
}),
)
- .min(1)
- .max(4)
+ .min(2)
+ .max(MAX_TEST_COUNT)
.describe("An array of A/B test URLs and their percentages");
const LinksQuerySchema = z.object({
@@ -720,6 +726,7 @@ export const linkEventSchema = LinkSchema.extend({
updatedAt: z.coerce.date(),
lastClicked: z.coerce.date(),
expiresAt: z.coerce.date(),
+ testsCompleteAt: z.coerce.date(),
// userId can be null
userId: z.string().nullable(),
});
diff --git a/apps/web/ui/modals/link-builder/ab-testing-modal.tsx b/apps/web/ui/modals/link-builder/ab-testing-modal.tsx
index 6fda26fd45..32925a9795 100644
--- a/apps/web/ui/modals/link-builder/ab-testing-modal.tsx
+++ b/apps/web/ui/modals/link-builder/ab-testing-modal.tsx
@@ -1,4 +1,8 @@
-import { LinkTestsSchema } from "@/lib/zod/schemas/links";
+import {
+ LinkTestsSchema,
+ MAX_TEST_COUNT,
+ MIN_TEST_PERCENTAGE,
+} from "@/lib/zod/schemas/links";
import { useAvailableDomains } from "@/ui/links/use-available-domains";
import { X } from "@/ui/shared/icons";
import {
@@ -8,7 +12,6 @@ import {
Modal,
SimpleTooltipContent,
Tooltip,
- useKeyboardShortcut,
useMediaQuery,
} from "@dub/ui";
import {
@@ -17,13 +20,14 @@ import {
getDateTimeLocal,
parseDateTime,
} from "@dub/utils";
-import { BeakerIcon } from "lucide-react";
import {
Dispatch,
SetStateAction,
useCallback,
+ useEffect,
useId,
useMemo,
+ useRef,
useState,
} from "react";
import { useForm, useFormContext } from "react-hook-form";
@@ -34,6 +38,20 @@ import { LinkFormData } from ".";
const parseTests = (tests: LinkFormData["tests"]) =>
Array.isArray(tests) ? LinkTestsSchema.parse(tests) : null;
+const fixPercentages = (tests: z.infer<typeof LinkTestsSchema>) => {
+ // Round percentages down to the nearest integer
+ let result = tests.map((test) => ({
+ ...test,
+ percentage: Math.floor(test.percentage),
+ }));
+
+ // Fix the last percentage to ensure the total is 100
+ result[result.length - 1].percentage =
+ 100 - result.slice(0, -1).reduce((sum, test) => sum + test.percentage, 0);
+
+ return result;
+};
+
function ABTestingModal({
showABTestingModal,
setShowABTestingModal,
@@ -59,6 +77,7 @@ function ABTestingModal({
watch,
register,
setValue,
+ getValues,
reset,
formState: { isDirty },
handleSubmit,
@@ -70,7 +89,7 @@ function ABTestingModal({
>({
values: {
tests: parseTests(getValuesParent("tests")) ?? [
- { url: getValuesParent("url") || "", percentage: 50 },
+ { url: getValuesParent("url") || "", percentage: 100 },
],
testsCompleteAt: getValuesParent("testsCompleteAt") as Date | null,
},
@@ -80,22 +99,93 @@ function ABTestingModal({
const testsParent = watchParent("tests");
const addTestUrl = () => {
- if (tests && tests.length >= 4) {
- toast.error("You can only add up to 4 test URLs");
- return;
- }
+ if (!tests.length || tests.length >= MAX_TEST_COUNT) return;
- const newTest = { url: "", percentage: 0 };
+ const allEqual = tests.every(
+ ({ percentage }) => Math.abs(percentage - tests[0].percentage) <= 1,
+ );
+
+ if (allEqual) {
+ // All percentages are equal so let's keep it that way
+ const each = Math.floor(100 / (tests.length + 1));
+ setValue(
+ "tests",
+ [
+ ...tests.map((t) => ({ ...t, percentage: each })),
+ { url: "", percentage: 100 - each * tests.length },
+ ],
+ { shouldDirty: true },
+ );
+ } else {
+ // Not all percentages are equal so let's split the latest one we can
+ const toSplitIndex = tests.findLastIndex(
+ ({ percentage }) => percentage >= MIN_TEST_PERCENTAGE * 2,
+ );
+ const toSplit = tests[toSplitIndex];
+ const toSplitPercentage = Math.floor(toSplit.percentage / 2);
+ const remainingPercentage = toSplit.percentage - toSplitPercentage;
- setValue("tests", [...(tests || []), newTest], {
- shouldDirty: true,
- });
+ setValue(
+ "tests",
+ [
+ ...tests.map((test, idx) => ({
+ ...test,
+ percentage:
+ idx === toSplitIndex ? toSplitPercentage : test.percentage,
+ })),
+ { url: "", percentage: remainingPercentage },
+ ],
+ {
+ shouldDirty: true,
+ },
+ );
+ }
};
const removeTestUrl = (index: number) => {
- setValue("tests", tests?.filter((_, i) => i !== index) ?? null, {
- shouldDirty: true,
- });
+ if (tests.length < 2) return;
+
+ const allEqual = tests.every(
+ ({ percentage }) => Math.abs(percentage - tests[0].percentage) <= 1,
+ );
+
+ if (allEqual) {
+ // All percentages are equal so let's keep it that way
+ const each = Math.floor(100 / (tests.length - 1));
+ const remainder = 100 - each * (tests.length - 2);
+
+ setValue(
+ "tests",
+ tests
+ ?.filter((_, i) => i !== index)
+ .map((test, idx, arr) => ({
+ ...test,
+ percentage: idx === arr.length - 1 ? remainder : each,
+ })) ?? null,
+ {
+ shouldDirty: true,
+ },
+ );
+ } else {
+ // Not all percentages are equal so let's give the last one the remainder
+ const remainder = tests[index].percentage;
+
+ setValue(
+ "tests",
+ tests
+ ?.filter((_, i) => i !== index)
+ .map((test, idx, arr) => ({
+ ...test,
+ percentage:
+ idx === arr.length - 1
+ ? test.percentage + remainder
+ : test.percentage,
+ })) ?? null,
+ {
+ shouldDirty: true,
+ },
+ );
+ }
};
return (
@@ -243,7 +333,7 @@ function ABTestingModal({
variant="primary"
className="mt-2 h-8"
onClick={addTestUrl}
- disabled={tests.length >= 4}
+ disabled={tests.length >= MAX_TEST_COUNT}
text="Add URL"
/>
</div>
@@ -255,36 +345,21 @@ function ABTestingModal({
<label className="block text-sm font-medium text-neutral-700">
Traffic split
</label>
- <InfoTooltip content="Adjust the percentage of traffic to each URL. The minimum is 10%" />
+ <InfoTooltip
+ content={`Adjust the percentage of traffic to each URL. The minimum is ${MIN_TEST_PERCENTAGE}%`}
+ />
</div>
<div className="mt-4">
- <AnimatedSizeContainer
- height
- transition={{ ease: "easeInOut", duration: 0.2 }}
- className="-m-1"
- >
- <div className="flex flex-col gap-2 p-1">
- {tests.map((test, index) => (
- <div key={index} className="flex items-center space-x-2">
- <div className="flex-1 truncate text-sm text-neutral-700">
- {index + 1}
- </div>
- <div className="w-24">
- <input
- type="number"
- min="0"
- max="100"
- placeholder="%"
- className="block w-full rounded-md border-neutral-300 text-neutral-900 placeholder-neutral-400 focus:border-neutral-500 focus:ring-neutral-500 sm:text-sm"
- {...register(`tests.${index}.percentage`, {
- valueAsNumber: true,
- })}
- />
- </div>
- </div>
- ))}
- </div>
- </AnimatedSizeContainer>
+ <TrafficSplitSlider
+ tests={tests}
+ onChange={(percentages) => {
+ percentages.forEach((percentage, index) => {
+ setValue(`tests.${index}.percentage`, percentage, {
+ shouldDirty: true,
+ });
+ });
+ }}
+ />
</div>
</div>
@@ -313,8 +388,8 @@ function ABTestingModal({
type="text"
placeholder='E.g. "in 2 weeks" or "next month"'
defaultValue={
- watch("testsCompleteAt")
- ? formatDateTime(watch("testsCompleteAt"))
+ getValues("testsCompleteAt")
+ ? formatDateTime(getValues("testsCompleteAt") as Date)
: ""
}
onBlur={(e) => {
@@ -335,8 +410,8 @@ function ABTestingModal({
id="testsCompleteAt"
name="testsCompleteAt"
value={
- watch("testsCompleteAt")
- ? getDateTimeLocal(watch("testsCompleteAt"))
+ getValues("testsCompleteAt")
+ ? getDateTimeLocal(getValues("testsCompleteAt") as Date)
: ""
}
onChange={(e) => {
@@ -351,6 +426,7 @@ function ABTestingModal({
</div>
<div className="mt-6 flex items-center justify-between">
+ <div></div>
<div className="flex items-center gap-2">
<Button
type="button"
@@ -380,43 +456,6 @@ function ABTestingModal({
);
}
-export function getABTestingLabel({ tests }: { tests: unknown }) {
- if (!Array.isArray(tests)) return "A/B Testing";
- return tests.length > 0
- ? `${tests.length} Test${tests.length > 1 ? "s" : ""}`
- : "A/B Testing";
-}
-
-function ABTestingButton({
- setShowABTestingModal,
-}: {
- setShowABTestingModal: Dispatch<SetStateAction<boolean>>;
-}) {
- const { watch } = useFormContext<LinkFormData>();
- const tests = watch("tests");
-
- useKeyboardShortcut("x", () => setShowABTestingModal(true), {
- modal: true,
- });
-
- return (
- <Button
- variant="secondary"
- text={getABTestingLabel({ tests })}
- icon={
- <BeakerIcon
- className={cn(
- "size-4",
- Array.isArray(tests) && tests.length > 0 && "text-blue-500",
- )}
- />
- }
- className="h-9 w-fit px-2.5 font-medium text-neutral-700"
- onClick={() => setShowABTestingModal(true)}
- />
- );
-}
-
export function useABTestingModal() {
const [showABTestingModal, setShowABTestingModal] = useState(false);
@@ -429,16 +468,120 @@ export function useABTestingModal() {
);
}, [showABTestingModal, setShowABTestingModal]);
- const ABTestingButtonCallback = useCallback(() => {
- return <ABTestingButton setShowABTestingModal={setShowABTestingModal} />;
- }, [setShowABTestingModal]);
-
return useMemo(
() => ({
setShowABTestingModal,
ABTestingModal: ABTestingModalCallback,
- ABTestingButton: ABTestingButtonCallback,
}),
- [setShowABTestingModal, ABTestingModalCallback, ABTestingButtonCallback],
+ [setShowABTestingModal, ABTestingModalCallback],
+ );
+}
+
+function TrafficSplitSlider({
+ tests,
+ onChange,
+}: {
+ tests: { url: string; percentage: number }[];
+ onChange: (percentages: number[]) => void;
+}) {
+ const [isDragging, setIsDragging] = useState<number | null>(null);
+ const containerRef = useRef<HTMLDivElement>(null);
+
+ const handleMouseDown = (index: number) => (e: React.MouseEvent) => {
+ e.preventDefault();
+ setIsDragging(index);
+ };
+
+ const handleMouseMove = useCallback(
+ (e: MouseEvent) => {
+ if (isDragging === null || !containerRef.current) return;
+
+ const containerRect = containerRef.current.getBoundingClientRect();
+ const containerWidth = containerRect.width;
+ const mouseX = e.clientX - containerRect.x;
+ const mousePercentage = Math.round((mouseX / containerWidth) * 100);
+
+ // Get sum of percentages to the left and right of the two being affected
+ const leftPercentage = tests
+ .slice(0, Math.max(0, isDragging))
+ .reduce((sum, { percentage }) => sum + percentage, 0);
+ const rightPercentage = tests
+ .slice(isDragging + 2)
+ .reduce((sum, { percentage }) => sum + percentage, 0);
+
+ let newPercentages = tests.map(({ percentage }) => percentage);
+
+ newPercentages[isDragging] = mousePercentage - leftPercentage;
+ newPercentages[isDragging + 1] = 100 - rightPercentage - mousePercentage;
+
+ // Ensure minimum 10% for each test
+ if (newPercentages.every((p) => p >= MIN_TEST_PERCENTAGE)) {
+ onChange(newPercentages);
+ }
+ },
+ [isDragging, tests, onChange],
+ );
+
+ const handleMouseUp = useCallback(() => {
+ setIsDragging(null);
+ }, []);
+
+ useEffect(() => {
+ if (isDragging !== null) {
+ window.addEventListener("mousemove", handleMouseMove);
+ window.addEventListener("mouseup", handleMouseUp);
+ return () => {
+ window.removeEventListener("mousemove", handleMouseMove);
+ window.removeEventListener("mouseup", handleMouseUp);
+ };
+ }
+ }, [isDragging, handleMouseMove, handleMouseUp]);
+
+ return (
+ <div
+ ref={containerRef}
+ className={cn(
+ "relative h-10",
+ isDragging !== null && "cursor-col-resize",
+ )}
+ >
+ <div className="absolute inset-0 flex h-full">
+ {tests.map((test, i) => (
+ <div
+ key={i}
+ className="@container pointer-events-none relative flex h-full"
+ style={{ width: `${test.percentage}%` }}
+ >
+ {i > 0 && <div className="w-1.5" />}
+ <div className="flex h-full grow items-center justify-center gap-2 rounded-md border border-neutral-300 text-xs">
+ <span className="text-xs font-semibold text-neutral-900">
+ {i + 1}
+ </span>
+ <span className="@[64px]:block hidden font-medium text-neutral-600">
+ {test.percentage}%
+ </span>
+ </div>
+ {i < tests.length - 1 && (
+ <>
+ <div className="w-1.5" />
+ <div
+ className="group pointer-events-auto absolute -right-1.5 flex h-full w-3 cursor-col-resize items-center px-1"
+ onMouseDown={handleMouseDown(i)}
+ >
+ <div
+ className={cn(
+ "h-2/3 w-1 rounded-full bg-neutral-200",
+ isDragging === i
+ ? "bg-neutral-400"
+ : "group-hover:bg-neutral-300",
+ )}
+ />
+ </div>
+ </>
+ )}
+ </div>
+ ))}
+ </div>
+ </div>
);
}
diff --git a/packages/tailwind-config/package.json b/packages/tailwind-config/package.json
index 3e8e718994..2f9e16a170 100644
--- a/packages/tailwind-config/package.json
+++ b/packages/tailwind-config/package.json
@@ -5,6 +5,7 @@
"main": "index.ts",
"types": "index.ts",
"devDependencies": {
+ "@tailwindcss/container-queries": "^0.1.1",
"tailwindcss": "^3.4.4"
},
"dependencies": {
diff --git a/packages/tailwind-config/tailwind.config.ts b/packages/tailwind-config/tailwind.config.ts
index f13ebd02e5..3627f2b780 100644
--- a/packages/tailwind-config/tailwind.config.ts
+++ b/packages/tailwind-config/tailwind.config.ts
@@ -1,3 +1,4 @@
+import containerQueries from "@tailwindcss/container-queries";
import forms from "@tailwindcss/forms";
import typography from "@tailwindcss/typography";
import scrollbarHide from "tailwind-scrollbar-hide";
@@ -248,7 +249,14 @@ const config: Config = {
},
},
},
- plugins: [forms, typography, scrollbarHide, radix],
+ plugins: [
+ forms,
+ typography,
+ scrollbarHide,
+ radix,
+ // TODO: Remove the container queries plugin when we upgrade to Tailwind v4
+ containerQueries,
+ ],
};
export default config;
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 69c88d698d..8049b6782b 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -41,7 +41,7 @@ importers:
version: 1.0.7([email protected])
'@boxyhq/saml-jackson':
specifier: 1.23.9
'@chronark/zod-bird':
specifier: ^0.3.9
version: 0.3.9
@@ -296,7 +296,7 @@ importers:
react-pdf-tailwind:
specifier: ^2.3.0
react-spring:
specifier: ^9.5.5
@@ -411,7 +411,7 @@ importers:
version: 15.1.0([email protected])
tailwindcss:
specifier: ^3.4.4
tsx:
specifier: ^4.19.2
version: 4.19.2
@@ -493,10 +493,10 @@ importers:
version: 5.0.10
ts-node:
specifier: ^10.9.2
tsup:
specifier: ^6.7.0
type-fest:
specifier: ^4.26.1
version: 4.26.1
@@ -526,7 +526,7 @@ importers:
version: 18.2.0([email protected])
react-email:
specifier: ^2.1.6
resend:
specifier: ^4.0.0
@@ -558,7 +558,7 @@ importers:
version: link:../../tsconfig
tsup:
specifier: ^6.1.3
typescript:
specifier: ^5.1.6
version: 5.6.2
@@ -598,7 +598,7 @@ importers:
version: link:../../tsconfig
tsup:
specifier: ^6.1.3
typescript:
specifier: ^5.1.6
version: 5.6.2
@@ -645,7 +645,7 @@ importers:
devDependencies:
'@stripe/ui-extension-tools':
specifier: ^0.0.1
'@types/react':
specifier: ^19.0.2
version: 19.0.2
@@ -657,10 +657,10 @@ importers:
dependencies:
'@tailwindcss/forms':
specifier: ^0.5.6
'@tailwindcss/typography':
specifier: ^0.5.9
tailwind-scrollbar-hide:
specifier: ^1.1.7
version: 1.1.7
@@ -668,9 +668,12 @@ importers:
specifier: ^2.8.0
version: 2.8.0
devDependencies:
+ '@tailwindcss/container-queries':
+ specifier: ^0.1.1
tailwindcss:
specifier: ^3.4.4
packages/tsconfig: {}
@@ -844,13 +847,13 @@ importers:
version: 18.2.0
tailwindcss:
specifier: ^3.4.4
tsconfig:
specifier: workspace:*
version: link:../tsconfig
tsup:
specifier: ^6.1.3
typescript:
specifier: ^5.1.6
version: 5.1.6
@@ -902,7 +905,7 @@ importers:
version: link:../tsconfig
tsup:
specifier: ^6.1.3
typescript:
specifier: ^5.1.6
version: 5.1.6
@@ -4884,6 +4887,11 @@ packages:
resolution: {integrity: sha512-+PmQX0PiAYPMeVYe237LJAYvOMYW1j2rH5YROyS3b4CTVJum34HfRvKvAzozHAQG0TnHNdUfY9nCeUyRAs//cw==}
engines: {node: '>=14.16'}
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-p18dswChx6WnTSaJCSGx6lTmrGzNNvm2FtXmiO6AuA1V4U5REyoqwmT6kgAsIMdjo07QdAfYXHJ4hnMtfHzWgA==}
+ peerDependencies:
+ tailwindcss: '>=3.2.0'
+
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-Fw+2BJ0tmAwK/w01tEFL5TiaJBX1NLT1/YbWgvm7ws3Qcn11kiXxzNTEQDMs5V3mQemhB56l3u0i9dwdzSQldA==}
peerDependencies:
@@ -11692,10 +11700,10 @@ snapshots:
dependencies:
'@aws-crypto/sha256-browser': 3.0.0
'@aws-crypto/sha256-js': 3.0.0
- '@aws-sdk/client-sso-oidc': 3.569.0
- '@aws-sdk/client-sts': 3.569.0(@aws-sdk/[email protected])
+ '@aws-sdk/client-sso-oidc': 3.569.0(@aws-sdk/[email protected])
+ '@aws-sdk/client-sts': 3.569.0
'@aws-sdk/core': 3.567.0
- '@aws-sdk/credential-provider-node': 3.569.0(@aws-sdk/[email protected])(@aws-sdk/[email protected])
+ '@aws-sdk/credential-provider-node': 3.569.0(@aws-sdk/[email protected](@aws-sdk/[email protected]))(@aws-sdk/[email protected])
'@aws-sdk/middleware-host-header': 3.567.0
'@aws-sdk/middleware-logger': 3.568.0
'@aws-sdk/middleware-recursion-detection': 3.567.0
@@ -11738,10 +11746,10 @@ snapshots:
dependencies:
'@aws-crypto/sha256-browser': 3.0.0
'@aws-crypto/sha256-js': 3.0.0
- '@aws-sdk/client-sso-oidc': 3.569.0
- '@aws-sdk/client-sts': 3.569.0(@aws-sdk/[email protected])
+ '@aws-sdk/client-sso-oidc': 3.569.0(@aws-sdk/[email protected])
+ '@aws-sdk/client-sts': 3.569.0
'@aws-sdk/core': 3.567.0
- '@aws-sdk/credential-provider-node': 3.569.0(@aws-sdk/[email protected])(@aws-sdk/[email protected])
+ '@aws-sdk/credential-provider-node': 3.569.0(@aws-sdk/[email protected](@aws-sdk/[email protected]))(@aws-sdk/[email protected])
'@aws-sdk/middleware-endpoint-discovery': 3.568.0
'@aws-sdk/middleware-host-header': 3.567.0
'@aws-sdk/middleware-logger': 3.568.0
@@ -11783,13 +11791,13 @@ snapshots:
transitivePeerDependencies:
- aws-crt
- '@aws-sdk/[email protected]':
+ '@aws-sdk/[email protected](@aws-sdk/[email protected])':
dependencies:
'@aws-crypto/sha256-browser': 3.0.0
'@aws-crypto/sha256-js': 3.0.0
- '@aws-sdk/client-sts': 3.569.0(@aws-sdk/[email protected])
+ '@aws-sdk/client-sts': 3.569.0
'@aws-sdk/core': 3.567.0
- '@aws-sdk/credential-provider-node': 3.569.0(@aws-sdk/[email protected])(@aws-sdk/[email protected])
+ '@aws-sdk/credential-provider-node': 3.569.0(@aws-sdk/[email protected](@aws-sdk/[email protected]))(@aws-sdk/[email protected])
'@aws-sdk/middleware-host-header': 3.567.0
'@aws-sdk/middleware-logger': 3.568.0
'@aws-sdk/middleware-recursion-detection': 3.567.0
@@ -11826,6 +11834,7 @@ snapshots:
'@smithy/util-utf8': 2.3.0
tslib: 2.6.2
transitivePeerDependencies:
+ - '@aws-sdk/client-sts'
- aws-crt
'@aws-sdk/[email protected]':
@@ -11871,13 +11880,13 @@ snapshots:
transitivePeerDependencies:
- aws-crt
- '@aws-sdk/[email protected](@aws-sdk/[email protected])':
+ '@aws-sdk/[email protected]':
dependencies:
'@aws-crypto/sha256-browser': 3.0.0
'@aws-crypto/sha256-js': 3.0.0
- '@aws-sdk/client-sso-oidc': 3.569.0
+ '@aws-sdk/client-sso-oidc': 3.569.0(@aws-sdk/[email protected])
'@aws-sdk/core': 3.567.0
- '@aws-sdk/credential-provider-node': 3.569.0(@aws-sdk/[email protected])(@aws-sdk/[email protected])
+ '@aws-sdk/credential-provider-node': 3.569.0(@aws-sdk/[email protected](@aws-sdk/[email protected]))(@aws-sdk/[email protected])
'@aws-sdk/middleware-host-header': 3.567.0
'@aws-sdk/middleware-logger': 3.568.0
'@aws-sdk/middleware-recursion-detection': 3.567.0
@@ -11914,7 +11923,6 @@ snapshots:
'@smithy/util-utf8': 2.3.0
tslib: 2.6.2
transitivePeerDependencies:
- - '@aws-sdk/client-sso-oidc'
- aws-crt
'@aws-sdk/[email protected]':
@@ -11956,12 +11964,12 @@ snapshots:
'@smithy/util-stream': 2.2.0
tslib: 2.6.2
- '@aws-sdk/[email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected])':
dependencies:
- '@aws-sdk/client-sts': 3.569.0(@aws-sdk/[email protected])
+ '@aws-sdk/client-sts': 3.569.0
'@aws-sdk/credential-provider-env': 3.568.0
'@aws-sdk/credential-provider-process': 3.568.0
- '@aws-sdk/credential-provider-sso': 3.568.0(@aws-sdk/[email protected])
+ '@aws-sdk/credential-provider-sso': 3.568.0(@aws-sdk/[email protected](@aws-sdk/[email protected]))
'@aws-sdk/credential-provider-web-identity': 3.568.0(@aws-sdk/[email protected])
'@aws-sdk/types': 3.567.0
'@smithy/credential-provider-imds': 2.3.0
@@ -11973,13 +11981,13 @@ snapshots:
- '@aws-sdk/client-sso-oidc'
- aws-crt
- '@aws-sdk/[email protected](@aws-sdk/[email protected])(@aws-sdk/[email protected])':
dependencies:
'@aws-sdk/credential-provider-env': 3.568.0
'@aws-sdk/credential-provider-http': 3.568.0
- '@aws-sdk/credential-provider-ini': 3.568.0(@aws-sdk/[email protected])(@aws-sdk/[email protected])
+ '@aws-sdk/credential-provider-ini': 3.568.0(@aws-sdk/[email protected](@aws-sdk/[email protected]))(@aws-sdk/[email protected])
'@aws-sdk/credential-provider-process': 3.568.0
- '@aws-sdk/credential-provider-sso': 3.568.0(@aws-sdk/[email protected])
+ '@aws-sdk/credential-provider-sso': 3.568.0(@aws-sdk/[email protected](@aws-sdk/[email protected]))
'@aws-sdk/credential-provider-web-identity': 3.568.0(@aws-sdk/[email protected])
'@aws-sdk/types': 3.567.0
'@smithy/credential-provider-imds': 2.3.0
@@ -12000,10 +12008,10 @@ snapshots:
'@smithy/types': 2.12.0
tslib: 2.6.2
- '@aws-sdk/[email protected](@aws-sdk/[email protected])':
+ '@aws-sdk/[email protected](@aws-sdk/[email protected](@aws-sdk/[email protected]))':
dependencies:
'@aws-sdk/client-sso': 3.568.0
- '@aws-sdk/token-providers': 3.568.0(@aws-sdk/[email protected])
+ '@aws-sdk/token-providers': 3.568.0(@aws-sdk/[email protected](@aws-sdk/[email protected]))
'@aws-sdk/types': 3.567.0
'@smithy/property-provider': 2.2.0
'@smithy/shared-ini-file-loader': 2.4.0
@@ -12015,24 +12023,24 @@ snapshots:
'@aws-sdk/[email protected](@aws-sdk/[email protected])':
dependencies:
- '@aws-sdk/client-sts': 3.569.0(@aws-sdk/[email protected])
+ '@aws-sdk/client-sts': 3.569.0
'@aws-sdk/types': 3.567.0
'@smithy/property-provider': 2.2.0
'@smithy/types': 2.12.0
tslib: 2.6.2
- '@aws-sdk/[email protected](@aws-sdk/[email protected])':
+ '@aws-sdk/[email protected](@aws-sdk/[email protected](@aws-sdk/[email protected]))':
dependencies:
'@aws-sdk/client-cognito-identity': 3.569.0
'@aws-sdk/client-sso': 3.568.0
- '@aws-sdk/client-sts': 3.569.0(@aws-sdk/[email protected])
+ '@aws-sdk/client-sts': 3.569.0
'@aws-sdk/credential-provider-cognito-identity': 3.569.0
'@aws-sdk/credential-provider-env': 3.568.0
'@aws-sdk/credential-provider-http': 3.568.0
- '@aws-sdk/credential-provider-ini': 3.568.0(@aws-sdk/[email protected])(@aws-sdk/[email protected])
- '@aws-sdk/credential-provider-node': 3.569.0(@aws-sdk/[email protected])(@aws-sdk/[email protected])
+ '@aws-sdk/credential-provider-ini': 3.568.0(@aws-sdk/[email protected](@aws-sdk/[email protected]))(@aws-sdk/[email protected])
+ '@aws-sdk/credential-provider-node': 3.569.0(@aws-sdk/[email protected](@aws-sdk/[email protected]))(@aws-sdk/[email protected])
'@aws-sdk/credential-provider-process': 3.568.0
- '@aws-sdk/credential-provider-sso': 3.568.0(@aws-sdk/[email protected])
+ '@aws-sdk/credential-provider-sso': 3.568.0(@aws-sdk/[email protected](@aws-sdk/[email protected]))
'@aws-sdk/credential-provider-web-identity': 3.568.0(@aws-sdk/[email protected])
'@aws-sdk/types': 3.567.0
'@smithy/credential-provider-imds': 2.3.0
@@ -12094,9 +12102,9 @@ snapshots:
'@smithy/util-middleware': 2.2.0
tslib: 2.6.2
- '@aws-sdk/[email protected](@aws-sdk/[email protected])':
+ '@aws-sdk/[email protected](@aws-sdk/[email protected](@aws-sdk/[email protected]))':
dependencies:
- '@aws-sdk/client-sso-oidc': 3.569.0
+ '@aws-sdk/client-sso-oidc': 3.569.0(@aws-sdk/[email protected])
'@aws-sdk/types': 3.567.0
'@smithy/property-provider': 2.2.0
'@smithy/shared-ini-file-loader': 2.4.0
@@ -13150,10 +13158,10 @@ snapshots:
'@opentelemetry/sdk-metrics': 1.24.0(@opentelemetry/[email protected])
'@opentelemetry/semantic-conventions': 1.24.0
dependencies:
'@aws-sdk/client-dynamodb': 3.569.0
- '@aws-sdk/credential-providers': 3.569.0(@aws-sdk/[email protected])
+ '@aws-sdk/credential-providers': 3.569.0(@aws-sdk/[email protected](@aws-sdk/[email protected]))
'@aws-sdk/util-dynamodb': 3.569.0(@aws-sdk/[email protected])
'@boxyhq/error-code-mnemonic': 0.1.1
'@boxyhq/metrics': 0.2.7
@@ -13164,7 +13172,7 @@ snapshots:
jose: 5.2.4
lodash: 4.17.21
mixpanel: 0.18.0
- mongodb: 6.6.0(@aws-sdk/[email protected](@aws-sdk/[email protected]))
+ mongodb: 6.6.0(@aws-sdk/[email protected](@aws-sdk/[email protected](@aws-sdk/[email protected])))
mssql: 10.0.2
mysql2: 3.9.7
node-forge: 1.3.1
@@ -13173,7 +13181,7 @@ snapshots:
redis: 4.6.13
reflect-metadata: 0.2.2
ripemd160: 2.0.2
transitivePeerDependencies:
- '@aws-sdk/client-sso-oidc'
- '@google-cloud/spanner'
@@ -13753,7 +13761,7 @@ snapshots:
jest-util: 27.5.1
slash: 3.0.0
dependencies:
'@jest/console': 27.5.1
'@jest/reporters': 27.5.1
@@ -13767,7 +13775,7 @@ snapshots:
exit: 0.1.2
graceful-fs: 4.2.11
jest-changed-files: 27.5.1
+ jest-config: 27.5.1([email protected]([email protected]))
jest-haste-map: 27.5.1
jest-message-util: 27.5.1
jest-regex-util: 27.5.1
@@ -16558,7 +16566,7 @@ snapshots:
react: 17.0.2
stripe: 13.11.0
dependencies:
'@types/jest': 28.1.8
'@typescript-eslint/eslint-plugin': 5.62.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])
@@ -16566,9 +16574,9 @@ snapshots:
eslint: 8.48.0
eslint-plugin-react: 7.34.1([email protected])
eslint-plugin-react-hooks: 4.6.2([email protected])
jest-transform-stub: 2.0.0
typescript: 4.9.5
transitivePeerDependencies:
- '@babel/core'
@@ -16653,18 +16661,22 @@ snapshots:
dependencies:
defer-to-connect: 2.0.1
+ dependencies:
+ tailwindcss: 3.4.4([email protected]([email protected]))
+
dependencies:
mini-svg-data-uri: 1.4.4
+ tailwindcss: 3.4.4([email protected]([email protected]))
dependencies:
lodash.castarray: 4.4.0
lodash.isplainobject: 4.0.6
lodash.merge: 4.6.2
postcss-selector-parser: 6.0.10
+ tailwindcss: 3.4.4([email protected]([email protected]))
dependencies:
@@ -20165,16 +20177,16 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
+ '@jest/core': 27.5.1([email protected]([email protected]))
'@jest/test-result': 27.5.1
'@jest/types': 27.5.1
chalk: 4.1.2
exit: 0.1.2
graceful-fs: 4.2.11
import-local: 3.1.0
+ jest-config: 27.5.1([email protected]([email protected]))
jest-util: 27.5.1
jest-validate: 27.5.1
prompts: 2.4.2
@@ -20186,7 +20198,7 @@ snapshots:
- ts-node
- utf-8-validate
dependencies:
'@babel/core': 7.24.5
'@jest/test-sequencer': 27.5.1
@@ -20213,7 +20225,7 @@ snapshots:
slash: 3.0.0
strip-json-comments: 3.1.1
optionalDependencies:
+ ts-node: 10.9.2([email protected])
transitivePeerDependencies:
- bufferutil
- canvas
@@ -20584,11 +20596,11 @@ snapshots:
merge-stream: 2.0.0
supports-color: 8.1.1
dependencies:
+ '@jest/core': 27.5.1([email protected]([email protected]))
import-local: 3.1.0
transitivePeerDependencies:
- bufferutil
- canvas
@@ -21626,13 +21638,13 @@ snapshots:
'@types/whatwg-url': 11.0.4
whatwg-url: 13.0.0
dependencies:
'@mongodb-js/saslprep': 1.1.6
bson: 6.7.0
mongodb-connection-string-url: 3.0.0
optionalDependencies:
- '@aws-sdk/credential-providers': 3.569.0(@aws-sdk/[email protected])
+ '@aws-sdk/credential-providers': 3.569.0(@aws-sdk/[email protected](@aws-sdk/[email protected]))
@@ -22238,61 +22250,69 @@ snapshots:
camelcase-css: 2.0.1
postcss: 8.4.38
dependencies:
lilconfig: 2.1.0
yaml: 1.10.2
optionalDependencies:
postcss: 8.4.31
dependencies:
lilconfig: 2.1.0
yaml: 1.10.2
optionalDependencies:
postcss: 8.4.31
dependencies:
lilconfig: 2.1.0
yaml: 1.10.2
optionalDependencies:
postcss: 8.4.38
dependencies:
lilconfig: 2.1.0
yaml: 1.10.2
optionalDependencies:
postcss: 8.4.38
+ dependencies:
+ lilconfig: 2.1.0
+ yaml: 1.10.2
+ optionalDependencies:
+ postcss: 8.4.38
+
dependencies:
lilconfig: 2.1.0
yaml: 2.3.4
optionalDependencies:
postcss: 8.4.38
dependencies:
lilconfig: 2.1.0
yaml: 2.3.4
optionalDependencies:
postcss: 8.4.38
+ ts-node: 10.9.2(@types/[email protected])([email protected])
dependencies:
lilconfig: 2.1.0
yaml: 2.3.4
optionalDependencies:
postcss: 8.4.38
dependencies:
@@ -22515,7 +22535,7 @@ snapshots:
react: 19.0.0
scheduler: 0.25.0
dependencies:
'@babel/core': 7.24.5
'@babel/parser': 7.24.5
@@ -22555,7 +22575,7 @@ snapshots:
source-map-js: 1.0.2
stacktrace-parser: 0.1.10
tailwind-merge: 2.2.0
+ tailwindcss: 3.4.0([email protected]([email protected]))
typescript: 5.1.6
transitivePeerDependencies:
- '@opentelemetry/api'
@@ -22666,10 +22686,10 @@ snapshots:
react: 18.2.0
react-dom: 18.2.0([email protected])
dependencies:
'@react-pdf/renderer': 3.4.5([email protected])([email protected])
transitivePeerDependencies:
- encoding
- react
@@ -23723,7 +23743,7 @@ snapshots:
dependencies:
'@alloc/quick-lru': 5.2.0
arg: 5.0.2
@@ -23742,7 +23762,7 @@ snapshots:
postcss: 8.4.38
postcss-import: 15.1.0([email protected])
postcss-js: 4.0.1([email protected])
postcss-nested: 6.0.1([email protected])
postcss-selector-parser: 6.0.13
resolve: 1.22.6
@@ -23750,7 +23770,7 @@ snapshots:
transitivePeerDependencies:
- ts-node
dependencies:
'@alloc/quick-lru': 5.2.0
arg: 5.0.2
@@ -23769,7 +23789,7 @@ snapshots:
postcss: 8.4.38
postcss-import: 15.1.0([email protected])
postcss-js: 4.0.1([email protected])
postcss-nested: 6.0.1([email protected])
postcss-selector-parser: 6.0.13
resolve: 1.22.6
@@ -23777,7 +23797,7 @@ snapshots:
transitivePeerDependencies:
- ts-node
dependencies:
'@alloc/quick-lru': 5.2.0
arg: 5.0.2
@@ -23796,7 +23816,7 @@ snapshots:
postcss: 8.4.38
postcss-import: 15.1.0([email protected])
postcss-js: 4.0.1([email protected])
postcss-nested: 6.0.1([email protected])
postcss-selector-parser: 6.0.13
resolve: 1.22.6
@@ -23804,7 +23824,7 @@ snapshots:
transitivePeerDependencies:
- ts-node
dependencies:
'@alloc/quick-lru': 5.2.0
arg: 5.0.2
@@ -23823,7 +23843,7 @@ snapshots:
postcss: 8.4.38
postcss-import: 15.1.0([email protected])
postcss-js: 4.0.1([email protected])
postcss-nested: 6.0.1([email protected])
postcss-selector-parser: 6.0.13
resolve: 1.22.6
@@ -23861,7 +23881,7 @@ snapshots:
ansi-escapes: 4.3.2
supports-hyperlinks: 2.3.0
dependencies:
'@jridgewell/trace-mapping': 0.3.25
jest-worker: 27.5.1
@@ -23964,11 +23984,11 @@ snapshots:
dependencies:
bs-logger: 0.2.6
fast-json-stable-stringify: 2.1.0
jest-util: 27.5.1
json5: 2.2.3
lodash.memoize: 4.1.2
@@ -23981,7 +24001,7 @@ snapshots:
'@types/jest': 28.1.8
babel-jest: 27.5.1(@babel/[email protected])
dependencies:
'@cspotcode/source-map-support': 0.8.1
'@tsconfig/node10': 1.0.11
@@ -23995,14 +24015,14 @@ snapshots:
create-require: 1.1.1
diff: 4.0.2
make-error: 1.3.6
- typescript: 4.9.5
+ typescript: 5.1.6
v8-compile-cache-lib: 3.0.1
yn: 3.1.1
optionalDependencies:
'@swc/core': 1.3.101(@swc/[email protected])
optional: true
dependencies:
'@cspotcode/source-map-support': 0.8.1
'@tsconfig/node10': 1.0.11
@@ -24016,14 +24036,13 @@ snapshots:
create-require: 1.1.1
diff: 4.0.2
make-error: 1.3.6
- typescript: 5.1.6
+ typescript: 5.6.2
v8-compile-cache-lib: 3.0.1
yn: 3.1.1
optionalDependencies:
'@swc/core': 1.3.101(@swc/[email protected])
- optional: true
dependencies:
'@cspotcode/source-map-support': 0.8.1
'@tsconfig/node10': 1.0.11
@@ -24040,29 +24059,25 @@ snapshots:
typescript: 5.4.4
v8-compile-cache-lib: 3.0.1
yn: 3.1.1
- optionalDependencies:
- '@swc/core': 1.3.101(@swc/[email protected])
optional: true
dependencies:
'@cspotcode/source-map-support': 0.8.1
'@tsconfig/node10': 1.0.11
'@tsconfig/node12': 1.0.11
'@tsconfig/node14': 1.0.3
'@tsconfig/node16': 1.0.4
- '@types/node': 18.11.9
acorn: 8.11.3
acorn-walk: 8.3.2
arg: 4.1.3
create-require: 1.1.1
diff: 4.0.2
make-error: 1.3.6
- typescript: 5.6.2
+ typescript: 4.9.5
v8-compile-cache-lib: 3.0.1
yn: 3.1.1
- optionalDependencies:
- '@swc/core': 1.3.101(@swc/[email protected])
+ optional: true
optionalDependencies:
@@ -24072,7 +24087,7 @@ snapshots:
dependencies:
bundle-require: 3.1.2([email protected])
cac: 6.7.14
@@ -24082,7 +24097,7 @@ snapshots:
execa: 5.1.1
globby: 11.1.0
joycon: 3.1.1
resolve-from: 5.0.0
rollup: 2.79.1
source-map: 0.8.0-beta.0
@@ -24096,7 +24111,7 @@ snapshots:
- supports-color
- ts-node
dependencies:
bundle-require: 3.1.2([email protected])
cac: 6.7.14
@@ -24106,7 +24121,7 @@ snapshots:
execa: 5.1.1
globby: 11.1.0
joycon: 3.1.1
resolve-from: 5.0.0
rollup: 2.79.1
source-map: 0.8.0-beta.0
@@ -24120,7 +24135,7 @@ snapshots:
- supports-color
- ts-node
dependencies:
bundle-require: 4.2.1([email protected])
cac: 6.7.14
@@ -24130,7 +24145,7 @@ snapshots:
execa: 5.1.1
globby: 11.1.0
joycon: 3.1.1
resolve-from: 5.0.0
rollup: 3.29.5
source-map: 0.8.0-beta.0
@@ -24144,7 +24159,31 @@ snapshots:
- supports-color
- ts-node
+ dependencies:
+ bundle-require: 4.2.1([email protected])
+ cac: 6.7.14
+ chokidar: 3.5.3
+ debug: 4.3.4
+ esbuild: 0.17.19
+ execa: 5.1.1
+ globby: 11.1.0
+ joycon: 3.1.1
+ resolve-from: 5.0.0
+ rollup: 3.29.5
+ source-map: 0.8.0-beta.0
+ sucrase: 3.34.0
+ tree-kill: 1.2.2
+ optionalDependencies:
+ '@swc/core': 1.3.101(@swc/[email protected])
+ postcss: 8.4.38
+ typescript: 5.6.2
+ transitivePeerDependencies:
+ - supports-color
+ - ts-node
+
dependencies:
bundle-require: 4.2.1([email protected])
cac: 6.7.14
@@ -24154,7 +24193,7 @@ snapshots:
execa: 5.1.1
globby: 11.1.0
joycon: 3.1.1
resolve-from: 5.0.0
rollup: 3.29.5
source-map: 0.8.0-beta.0
@@ -24320,7 +24359,7 @@ snapshots:
dependencies:
is-typedarray: 1.0.0
dependencies:
'@sqltools/formatter': 1.2.5
app-root-path: 3.1.0
@@ -24338,12 +24377,12 @@ snapshots:
uuid: 9.0.1
yargs: 17.7.2
optionalDependencies:
- mongodb: 6.6.0(@aws-sdk/[email protected](@aws-sdk/[email protected]))
+ mongodb: 6.6.0(@aws-sdk/[email protected](@aws-sdk/[email protected](@aws-sdk/[email protected])))
mssql: 10.0.2
mysql2: 3.9.7
pg: 8.11.5
redis: 4.6.13
+ ts-node: 10.9.2(@types/[email protected])([email protected])
transitivePeerDependencies:
- supports-color
@@ -24750,7 +24789,7 @@ snapshots:
neo-async: 2.6.2
schema-utils: 3.3.0
tapable: 2.2.1
+ terser-webpack-plugin: 5.3.10(@swc/[email protected](@swc/[email protected]))([email protected])([email protected])
watchpack: 2.4.0
webpack-sources: 3.2.3
transitivePeerDependencies: