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.

use @react-email/markdown, refactor to RichTextArea

Steven Teyc2f7b605fd4c
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/partners/invite-partner-sheet.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/partners/invite-partner-sheet.tsx
index cd40607ef1..75fb0c512e 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/partners/invite-partner-sheet.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/partners/invite-partner-sheet.tsx
@@ -9,17 +9,16 @@ import {
BlurImage,
Button,
InfoTooltip,
- MarkdownIcon,
+ RichTextArea,
+ RichTextProvider,
+ RichTextToolbar,
Sheet,
- useEnterSubmit,
useMediaQuery,
} from "@dub/ui";
import { cn } from "@dub/utils";
import { useAction } from "next-safe-action/hooks";
-import { Dispatch, SetStateAction, useMemo, useState } from "react";
+import { Dispatch, SetStateAction, useMemo, useRef, useState } from "react";
import { useForm } from "react-hook-form";
-import ReactMarkdown from "react-markdown";
-import remarkGfm from "remark-gfm";
import { toast } from "sonner";
import { z } from "zod";
@@ -290,7 +289,7 @@ function EmailPreview({
}) {
const { program } = useProgram();
const { isMobile } = useMediaQuery();
- const { handleKeyDown } = useEnterSubmit();
+ const richTextRef = useRef<{ setContent: (content: any) => void }>(null);
const displayContent = isEditingEmail ? draftEmailContent : emailContent;
@@ -388,33 +387,46 @@ function EmailPreview({
Content
</label>
<div className="mt-1.5">
- <textarea
- id="email-body"
- rows={8}
- maxLength={3000}
- onKeyDown={handleKeyDown}
- value={draftEmailContent.body}
- onChange={(e) =>
+ <RichTextProvider
+ key={`edit-${draftEmailContent.body}`}
+ ref={richTextRef}
+ features={["bold", "italic", "links"]}
+ markdown
+ placeholder="Start typing..."
+ initialValue={draftEmailContent.body}
+ editorClassName="block max-h-48 overflow-auto scrollbar-hide w-full resize-none border-none p-3 text-base sm:text-sm"
+ onChange={(editor) => {
+ const markdown = (editor as any).getMarkdown() || null;
setDraftEmailContent({
...draftEmailContent,
- body: e.target.value,
- })
- }
- placeholder="Start typing..."
- className={cn(
- "block max-h-64 min-h-16 w-full rounded-md border-neutral-300 text-sm text-neutral-900 placeholder-neutral-400 focus:border-neutral-500 focus:outline-none focus:ring-neutral-500",
- )}
- />
+ body: markdown || "",
+ });
+ }}
+ editorProps={{
+ handleDOMEvents: {
+ keydown: (_, e) => {
+ if (e.key === "Enter" && (e.metaKey || e.ctrlKey)) {
+ e.preventDefault();
+ e.stopPropagation();
+ onSave();
+ return false;
+ }
+ },
+ },
+ }}
+ >
+ <div
+ className={cn(
+ "overflow-hidden rounded-md border border-neutral-300 focus-within:border-neutral-500 focus-within:ring-1 focus-within:ring-neutral-500",
+ )}
+ >
+ <div className="flex flex-col">
+ <RichTextArea />
+ <RichTextToolbar className="px-1 pb-1" />
+ </div>
+ </div>
+ </RichTextProvider>
</div>
- <a
- href="https://www.markdownguide.org/basic-syntax/"
- target="_blank"
- rel="noopener noreferrer"
- className="text-content-subtle mt-1 flex items-center gap-1 text-xs"
- >
- <MarkdownIcon role="presentation" className="h-3 w-auto" />
- <span className="sr-only">MarkdownIcon</span> supported
- </a>
</div>
</div>
</div>
@@ -443,58 +455,19 @@ function EmailPreview({
<h3 className="font-medium text-neutral-900">
{displayContent.title}
</h3>
- <ReactMarkdown
- className="prose prose-sm prose-neutral max-w-none text-neutral-500"
- remarkPlugins={[remarkGfm]}
- components={{
- a: ({ node, className, ...props }) => (
- <a
- {...props}
- target="_blank"
- rel="noopener noreferrer"
- className={cn(
- "font-semibold text-neutral-800 underline underline-offset-2",
- className,
- )}
- />
- ),
- p: ({ node, className, ...props }) => (
- <p
- {...props}
- className={cn(
- "text-sm leading-6 text-neutral-500",
- className,
- )}
- />
- ),
- ul: ({ node, className, ...props }) => (
- <ul
- {...props}
- className={cn(
- "list-disc pl-4 text-sm leading-6 text-neutral-500",
- className,
- )}
- />
- ),
- ol: ({ node, className, ...props }) => (
- <ol
- {...props}
- className={cn(
- "list-decimal pl-4 text-sm leading-6 text-neutral-500",
- className,
- )}
- />
- ),
- li: ({ node, className, ...props }) => (
- <li
- {...props}
- className={cn("marker:text-neutral-400", className)}
- />
- ),
- }}
- >
- {displayContent.body}
- </ReactMarkdown>
+ <div className="prose prose-sm prose-neutral max-w-none text-neutral-500">
+ <RichTextProvider
+ key={`preview-${displayContent.body}`}
+ features={["bold", "italic", "links"]}
+ style="condensed"
+ markdown
+ editable={false}
+ initialValue={displayContent.body}
+ editorClassName="text-sm leading-6 text-neutral-500 [&_a]:font-semibold [&_a]:text-neutral-800 [&_a]:underline [&_a]:underline-offset-2 [&_ul]:list-disc [&_ul]:pl-4 [&_ol]:list-decimal [&_ol]:pl-4 [&_li]:marker:text-neutral-400"
+ >
+ <RichTextArea />
+ </RichTextProvider>
+ </div>
<Button
type="button"
text="Accept invite"
diff --git a/packages/email/package.json b/packages/email/package.json
index cac3c42ec3..3080f26ac9 100644
--- a/packages/email/package.json
+++ b/packages/email/package.json
@@ -10,12 +10,10 @@
"dependencies": {
"@dub/utils": "workspace:*",
"@react-email/components": "^0.0.22",
+ "@react-email/markdown": "^0.0.17",
"lucide-react": "^0.462.0",
"nodemailer": "^6.9.3",
"react-email": "^2.1.6",
- "react-markdown": "^9.0.3",
- "rehype-sanitize": "^6.0.0",
- "remark-gfm": "^4.0.0",
"resend": "^6.1.2"
},
"devDependencies": {
diff --git a/packages/email/src/templates/program-invite.tsx b/packages/email/src/templates/program-invite.tsx
index 7eb1ed9307..6805f1b147 100644
--- a/packages/email/src/templates/program-invite.tsx
+++ b/packages/email/src/templates/program-invite.tsx
@@ -14,179 +14,89 @@ import {
Tailwind,
Text,
} from "@react-email/components";
-import ReactMarkdown, { type Components } from "react-markdown";
-import rehypeSanitize from "rehype-sanitize";
-import remarkGfm from "remark-gfm";
+import { Markdown } from "@react-email/markdown";
+import type { CSSProperties } from "react";
import { Footer } from "../components/footer";
-const pixelBasedPreset = {
- theme: {
- fontSize: {
- xs: ["12px", { lineHeight: "18px" }],
- sm: ["14px", { lineHeight: "20px" }],
- base: ["16px", { lineHeight: "24px" }],
- lg: ["18px", { lineHeight: "28px" }],
- },
- lineHeight: {
- 6: "24px",
- relaxed: "24px",
- },
- spacing: {
- 0: "0px",
- 1: "4px",
- 2: "8px",
- 3: "12px",
- 4: "16px",
- 5: "20px",
- 6: "24px",
- 8: "32px",
- 10: "40px",
- },
- borderRadius: {
- none: "0px",
- sm: "2px",
- DEFAULT: "4px",
- md: "6px",
- lg: "8px",
- xl: "12px",
- full: "9999px",
- },
+const markdownCustomStyles: Record<string, CSSProperties> = {
+ p: {
+ color: "#525252",
+ fontSize: "14px",
+ lineHeight: "20px",
+ margin: "0 0 16px",
},
-} as const;
-
-const tailwindConfig = {
- presets: [pixelBasedPreset],
-} as const;
-
-const markdownComponents: Components = {
- p({ children }) {
- return (
- <Text className="text-sm leading-6 text-neutral-600">{children}</Text>
- );
+ a: {
+ fontWeight: "600",
+ color: "#000000",
+ textDecoration: "underline",
+ textDecorationStyle: "dotted",
+ textUnderlineOffset: "2px",
},
- a({ children, href }) {
- return (
- <Link
- href={href || ""}
- target="_blank"
- className="font-semibold text-neutral-800 underline underline-offset-2"
- >
- {children}
- </Link>
- );
+ ul: {
+ margin: "0 0 16px",
+ paddingLeft: "20px",
+ listStylePosition: "outside",
+ listStyleType: "disc",
+ color: "#525252",
+ fontSize: "14px",
+ lineHeight: "20px",
},
- ul({ children }) {
- return (
- <ul
- style={{
- margin: "0 0 16px",
- paddingLeft: "20px",
- listStylePosition: "outside",
- listStyleType: "disc",
- color: "#525252",
- fontSize: "14px",
- lineHeight: "20px",
- }}
- >
- {children}
- </ul>
- );
+ ol: {
+ margin: "0 0 16px",
+ paddingLeft: "20px",
+ listStylePosition: "outside",
+ listStyleType: "decimal",
+ color: "#525252",
+ fontSize: "14px",
+ lineHeight: "20px",
},
- ol({ children }) {
- return (
- <ol
- style={{
- margin: "0 0 16px",
- paddingLeft: "20px",
- listStylePosition: "outside",
- listStyleType: "decimal",
- color: "#525252",
- fontSize: "14px",
- lineHeight: "20px",
- }}
- >
- {children}
- </ol>
- );
+ li: {
+ marginBottom: "8px",
},
- li({ children }) {
- return (
- <li
- style={{
- marginBottom: "8px",
- }}
- >
- {children}
- </li>
- );
+ strong: {
+ fontWeight: "600",
+ color: "#1f2937",
},
- strong({ children }) {
- return (
- <strong className="font-semibold text-neutral-800">{children}</strong>
- );
+ em: {
+ fontStyle: "italic",
},
- em({ children }) {
- return <em className="italic">{children}</em>;
+ blockquote: {
+ margin: "16px 0",
+ padding: "0 0 0 16px",
+ borderLeft: "4px solid #e5e7eb",
+ backgroundColor: "#f9fafb",
+ color: "#525252",
+ fontSize: "14px",
+ lineHeight: "20px",
},
- blockquote({ children }) {
- return (
- <blockquote
- style={{
- margin: "16px 0",
- padding: "0 0 0 16px",
- borderLeft: "4px solid #e5e7eb",
- backgroundColor: "#f9fafb",
- color: "#525252",
- fontSize: "14px",
- lineHeight: "20px",
- }}
- >
- {children}
- </blockquote>
- );
+ codeInline: {
+ display: "inline-block",
+ padding: "2px 4px",
+ borderRadius: "4px",
+ backgroundColor: "#f4f4f5",
+ border: "1px solid #e4e4e7",
+ fontFamily:
+ "'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace",
+ fontSize: "12px",
+ lineHeight: "18px",
+ color: "#1f2937",
},
- code({ inline, className, children }) {
- if (inline) {
- return (
- <code
- style={{
- display: "inline-block",
- padding: "2px 4px",
- borderRadius: "4px",
- backgroundColor: "#f4f4f5",
- border: "1px solid #e4e4e7",
- fontFamily:
- "'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace",
- fontSize: "12px",
- lineHeight: "18px",
- color: "#1f2937",
- }}
- >
- {children}
- </code>
- );
- }
-
- return (
- <pre
- style={{
- margin: "16px 0",
- overflowX: "auto",
- borderRadius: "8px",
- backgroundColor: "#111827",
- border: "1px solid #1f2937",
- padding: "12px",
- fontSize: "12px",
- lineHeight: "20px",
- color: "#f9fafb",
- }}
- >
- <code className={className}>{children}</code>
- </pre>
- );
+ code: {
+ margin: "16px 0",
+ overflowX: "auto",
+ borderRadius: "8px",
+ backgroundColor: "#111827",
+ border: "1px solid #1f2937",
+ padding: "12px",
+ fontSize: "12px",
+ lineHeight: "20px",
+ color: "#f9fafb",
},
- hr() {
- return <hr className="my-6 border-neutral-200" />;
+ hr: {
+ margin: "24px 0",
+ borderColor: "#e5e7eb",
+ borderStyle: "solid",
+ borderWidth: "1px 0 0 0",
},
};
@@ -220,7 +130,7 @@ export default function ProgramInvite({
],
subject,
title,
- body,
+ body = "hello world [link](https://dub.co)",
}: {
email: string;
name: string | null;
@@ -243,7 +153,7 @@ export default function ProgramInvite({
<Html>
<Head />
<Preview>{emailSubject}</Preview>
- <Tailwind config={tailwindConfig}>
+ <Tailwind>
<Body className="mx-auto my-auto bg-white font-sans">
<Container className="mx-auto my-8 max-w-[600px] px-8 py-8">
<Section className="mb-8 mt-6">
@@ -259,13 +169,9 @@ export default function ProgramInvite({
</Heading>
{body ? (
- <ReactMarkdown
- remarkPlugins={[remarkGfm]}
- rehypePlugins={[rehypeSanitize]}
- components={markdownComponents}
- >
+ <Markdown markdownCustomStyles={markdownCustomStyles}>
{body}
- </ReactMarkdown>
+ </Markdown>
) : (
<>
<Text className="text-sm leading-6 text-neutral-600">
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 3d06e1ea02..5394ab900c 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -523,6 +523,9 @@ importers:
'@react-email/components':
specifier: ^0.0.22
+ '@react-email/markdown':
+ specifier: ^0.0.17
+ version: 0.0.17([email protected])
lucide-react:
specifier: ^0.462.0
version: 0.462.0([email protected])
@@ -540,7 +543,7 @@ importers:
resend:
specifier: ^6.1.2
devDependencies:
'@types/nodemailer':
specifier: ~6.4.17
@@ -618,7 +621,7 @@ importers:
dependencies:
'@hubspot/cli':
specifier: ^7.6.2
devDependencies:
'@types/node':
specifier: 18.11.9
@@ -4490,6 +4493,12 @@ packages:
peerDependencies:
react: ^18.2.0
+ '@react-email/[email protected]':
+ resolution: {integrity: sha512-6op3AfsBC9BJKkhG+eoMFRFWlr0/f3FYbtQrK+VhGzJocEAY0WINIFN+W8xzXr//3IL0K/aKtnH3FtpIuescQQ==}
+ engines: {node: '>=22.0.0'}
+ peerDependencies:
+ react: ^18.0 || ^19.0 || ^19.0.0-rc
+
'@react-email/[email protected]':
resolution: {integrity: sha512-bRrv8teMMBlF7ttLp1zZUejkPUzrwMQXrigdagtEBOqsB8HxvJU2MR6Yyb3XOqBYldaIDOQJ1z61zyD2wRlKAw==}
engines: {node: '>=18.0.0'}
@@ -4503,6 +4512,13 @@ packages:
react: ^18.2.0
react-dom: ^18.2.0
+ '@react-email/[email protected]':
+ resolution: {integrity: sha512-rdjNj6iVzv8kRKDPFas+47nnoe6B40+nwukuXwY4FCwM7XBg6tmYr+chQryCuavUj2J65MMf6fztk1bxOUiSVA==}
+ engines: {node: '>=22.0.0'}
+ peerDependencies:
+ react: ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^18.0 || ^19.0 || ^19.0.0-rc
+
'@react-email/[email protected]':
resolution: {integrity: sha512-ZDASHVvyKrWBS00o5pSH5khfMf46UtZhrHcSAfPSiC4nj7R8A0bf+3Wmbk8YmsaV+qWXUCUSHWwIAAlMRnJoAA==}
engines: {node: '>=18.0.0'}
@@ -9735,8 +9751,8 @@ packages:
resolution: {integrity: sha512-7rCnleh0z2CkXhH67J8K1Ytz0b2Y+yxTPL+/KOJoa20hfnVQ/3/T6W/KflYI4bRHRagNeXeU2bkNGI3v1oS/lw==}
- resolution: {integrity: sha512-rPogWqAfoYh1Ryqqh2agUpVfbxAhbjuN1SmU86dskQUKouRiggUTCO4+2ym9UPXllc2WAp0J+T5qxn7Um3lCdw==}
+ resolution: {integrity: sha512-9/KXeZUKKJwqCXUdBxFJ3vPh467OCckSBmYDwSK/EtV090K+iMJ7zx2S3HLVDIWFQdqMIsZWbnaGiba18aWhaA==}
engines: {node: '>=14'}
hasBin: true
@@ -10107,6 +10123,11 @@ packages:
resolution: {integrity: sha512-Z1NL3Tb1M9wH4XESsCDEksWoKTdlUafKc4pt0GRwjUyXaCFZ+dc3g2erqB6zm3szA2IUSi7VnPI+o/9jnxh9hw==}
+ resolution: {integrity: sha512-8dD6FusOQSrpv9Z1rdNMdlSgQOIP880DHqnohobOmYLElGEqAL/JvxvuxZO16r4HtjTlfPRDC1hbvxC9dPN2nA==}
+ engines: {node: '>= 18'}
+ hasBin: true
+
resolution: {integrity: sha512-ntROs7RaN3EvWfy3EZi14H4YxmT6A5YvywfhO+0pm+cH/dnSQRmdAmoFIc3B9aiwTehyk7pESH4ofyBY+V5hZg==}
engines: {node: '>= 20'}
@@ -10708,8 +10729,8 @@ packages:
engines: {node: '>=6'}
hasBin: true
- resolution: {integrity: sha512-CVDtwCdhYIvnAzFoJ6NJ6dX3oga9/HyciQDnG1vQDjSLMeKLJ4A93ZqYKDrgYSr1FBY5/hMYC+2VCi24pgpkGA==}
+ resolution: {integrity: sha512-taM24ViiimT/XntxbPyJQzCG+p4EKOpgD3mxFwW38mGjVUrfERQOeY4EDHjdnptttfHuHQXFx+lTP08Q+mLa/w==}
engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}
hasBin: true
@@ -11307,6 +11328,11 @@ packages:
engines: {node: '>=14'}
hasBin: true
+ resolution: {integrity: sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==}
+ engines: {node: '>=14'}
+ hasBin: true
+
resolution: {integrity: sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==}
engines: {node: '>= 10'}
@@ -15669,7 +15695,7 @@ snapshots:
- encoding
- supports-color
dependencies:
'@hubspot/local-dev-lib': 3.19.1
'@hubspot/project-parsing-lib': 0.8.6(@hubspot/[email protected])
@@ -15700,7 +15726,7 @@ snapshots:
yargs: 17.7.2
yargs-parser: 21.1.1
optionalDependencies:
'@modelcontextprotocol/sdk': 1.13.3
transitivePeerDependencies:
- '@babel/core'
@@ -15738,7 +15764,7 @@ snapshots:
react-dom: 18.3.1([email protected])
optional: true
dependencies:
'@babel/code-frame': 7.26.2
'@babel/parser': 7.26.2
@@ -15754,14 +15780,14 @@ snapshots:
'@sentry/node': 6.19.7
- '@storybook/addon-actions': 8.6.14([email protected]([email protected]))
- '@storybook/addon-essentials': 8.6.14(@types/[email protected])([email protected]([email protected]))
- '@storybook/addon-interactions': 8.6.14([email protected]([email protected]))
- '@storybook/addon-links': 8.6.14([email protected])([email protected]([email protected]))
- '@storybook/test': 8.6.14([email protected]([email protected]))
+ '@storybook/addon-actions': 8.6.14([email protected]([email protected]))
+ '@storybook/addon-essentials': 8.6.14(@types/[email protected])([email protected]([email protected]))
+ '@storybook/addon-interactions': 8.6.14([email protected]([email protected]))
+ '@storybook/addon-links': 8.6.14([email protected])([email protected]([email protected]))
+ '@storybook/test': 8.6.14([email protected]([email protected]))
'@vitejs/plugin-react': 4.7.0([email protected](@types/[email protected])([email protected]))
ansi-to-html: 0.7.2
babel-plugin-macros: 3.1.0
@@ -15783,7 +15809,7 @@ snapshots:
react: 18.3.1
react-dom: 18.3.1([email protected])
request: 2.88.2
- storybook: 8.6.14([email protected])
+ storybook: 8.6.14([email protected])
tailwind-merge: 2.6.0
tailwindcss-animate: 1.0.7
@@ -18295,6 +18321,11 @@ snapshots:
md-to-react-email: 5.0.2([email protected])
react: 18.3.1
+ dependencies:
+ marked: 15.0.12
+ react: 18.3.1
+
dependencies:
react: 18.3.1
@@ -18302,11 +18333,19 @@ snapshots:
dependencies:
html-to-text: 9.0.5
- js-beautify: 1.14.11
+ js-beautify: 1.15.4
react: 18.3.1
react-dom: 18.3.1([email protected])
react-promise-suspense: 0.3.4
+ dependencies:
+ html-to-text: 9.0.5
+ prettier: 3.6.2
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+ optional: true
+
dependencies:
react: 18.3.1
@@ -19222,140 +19261,140 @@ snapshots:
'@standard-schema/[email protected]': {}
dependencies:
'@storybook/global': 5.0.0
'@types/uuid': 9.0.8
dequal: 2.0.3
polished: 4.3.1
- storybook: 8.6.14([email protected])
+ storybook: 8.6.14([email protected])
uuid: 9.0.1
optional: true
dependencies:
'@storybook/global': 5.0.0
memoizerific: 1.11.3
- storybook: 8.6.14([email protected])
+ storybook: 8.6.14([email protected])
ts-dedent: 2.2.0
optional: true
dependencies:
'@storybook/global': 5.0.0
dequal: 2.0.3
- storybook: 8.6.14([email protected])
+ storybook: 8.6.14([email protected])
ts-dedent: 2.2.0
optional: true
dependencies:
'@mdx-js/react': 3.1.1(@types/[email protected])([email protected])
- '@storybook/csf-plugin': 8.6.14([email protected]([email protected]))
+ '@storybook/csf-plugin': 8.6.14([email protected]([email protected]))
react: 19.1.1
react-dom: 19.1.1([email protected])
- storybook: 8.6.14([email protected])
+ storybook: 8.6.14([email protected])
ts-dedent: 2.2.0
transitivePeerDependencies:
- '@types/react'
optional: true
dependencies:
- '@storybook/addon-actions': 8.6.14([email protected]([email protected]))
- '@storybook/addon-backgrounds': 8.6.14([email protected]([email protected]))
- '@storybook/addon-controls': 8.6.14([email protected]([email protected]))
- '@storybook/addon-docs': 8.6.14(@types/[email protected])([email protected]([email protected]))
- '@storybook/addon-highlight': 8.6.14([email protected]([email protected]))
- '@storybook/addon-measure': 8.6.14([email protected]([email protected]))
- '@storybook/addon-outline': 8.6.14([email protected]([email protected]))
- '@storybook/addon-toolbars': 8.6.14([email protected]([email protected]))
- '@storybook/addon-viewport': 8.6.14([email protected]([email protected]))
- storybook: 8.6.14([email protected])
+ '@storybook/addon-actions': 8.6.14([email protected]([email protected]))
+ '@storybook/addon-backgrounds': 8.6.14([email protected]([email protected]))
+ '@storybook/addon-controls': 8.6.14([email protected]([email protected]))
+ '@storybook/addon-docs': 8.6.14(@types/[email protected])([email protected]([email protected]))
+ '@storybook/addon-highlight': 8.6.14([email protected]([email protected]))
+ '@storybook/addon-measure': 8.6.14([email protected]([email protected]))
+ '@storybook/addon-outline': 8.6.14([email protected]([email protected]))
+ '@storybook/addon-toolbars': 8.6.14([email protected]([email protected]))
+ '@storybook/addon-viewport': 8.6.14([email protected]([email protected]))
+ storybook: 8.6.14([email protected])
ts-dedent: 2.2.0
transitivePeerDependencies:
- '@types/react'
optional: true
dependencies:
'@storybook/global': 5.0.0
- storybook: 8.6.14([email protected])
+ storybook: 8.6.14([email protected])
optional: true
dependencies:
'@storybook/global': 5.0.0
- '@storybook/instrumenter': 8.6.14([email protected]([email protected]))
- '@storybook/test': 8.6.14([email protected]([email protected]))
+ '@storybook/instrumenter': 8.6.14([email protected]([email protected]))
+ '@storybook/test': 8.6.14([email protected]([email protected]))
polished: 4.3.1
- storybook: 8.6.14([email protected])
+ storybook: 8.6.14([email protected])
ts-dedent: 2.2.0
optional: true
dependencies:
'@storybook/global': 5.0.0
- storybook: 8.6.14([email protected])
+ storybook: 8.6.14([email protected])
ts-dedent: 2.2.0
optionalDependencies:
react: 18.3.1
optional: true
dependencies:
'@storybook/global': 5.0.0
- storybook: 8.6.14([email protected])
+ storybook: 8.6.14([email protected])
tiny-invariant: 1.3.3
optional: true
dependencies:
'@storybook/global': 5.0.0
- storybook: 8.6.14([email protected])
+ storybook: 8.6.14([email protected])
ts-dedent: 2.2.0
optional: true
dependencies:
- storybook: 8.6.14([email protected])
+ storybook: 8.6.14([email protected])
optional: true
dependencies:
memoizerific: 1.11.3
- storybook: 8.6.14([email protected])
+ storybook: 8.6.14([email protected])
optional: true
dependencies:
- storybook: 8.6.14([email protected])
+ storybook: 8.6.14([email protected])
ts-dedent: 2.2.0
optionalDependencies:
react: 19.1.1
react-dom: 19.1.1([email protected])
optional: true
dependencies:
- '@storybook/csf-plugin': 8.6.14([email protected]([email protected]))
+ '@storybook/csf-plugin': 8.6.14([email protected]([email protected]))
browser-assert: 1.2.1
- storybook: 8.6.14([email protected])
+ storybook: 8.6.14([email protected])
ts-dedent: 2.2.0
optional: true
dependencies:
- storybook: 8.6.14([email protected])
+ storybook: 8.6.14([email protected])
optional: true
dependencies:
- '@storybook/theming': 8.6.14([email protected]([email protected]))
+ '@storybook/theming': 8.6.14([email protected]([email protected]))
better-opn: 3.0.2
browser-assert: 1.2.1
esbuild: 0.23.1
@@ -19367,7 +19406,7 @@ snapshots:
util: 0.12.5
ws: 8.18.3
optionalDependencies:
- prettier: 3.3.1
+ prettier: 3.6.2
transitivePeerDependencies:
- bufferutil
- storybook
@@ -19375,9 +19414,9 @@ snapshots:
- utf-8-validate
optional: true
dependencies:
- storybook: 8.6.14([email protected])
+ storybook: 8.6.14([email protected])
unplugin: 1.16.1
optional: true
@@ -19390,91 +19429,91 @@ snapshots:
react-dom: 19.1.1([email protected])
optional: true
dependencies:
'@storybook/global': 5.0.0
'@vitest/utils': 2.1.8
- storybook: 8.6.14([email protected])
+ storybook: 8.6.14([email protected])
optional: true
dependencies:
- storybook: 8.6.14([email protected])
+ storybook: 8.6.14([email protected])
optional: true
dependencies:
- storybook: 8.6.14([email protected])
+ storybook: 8.6.14([email protected])
optional: true
dependencies:
react: 18.3.1
react-dom: 18.3.1([email protected])
- storybook: 8.6.14([email protected])
+ storybook: 8.6.14([email protected])
optional: true
dependencies:
react: 19.1.1
react-dom: 19.1.1([email protected])
- storybook: 8.6.14([email protected])
+ storybook: 8.6.14([email protected])
optional: true
dependencies:
'@joshwooding/vite-plugin-react-docgen-typescript': 0.5.0([email protected])([email protected](@types/[email protected])([email protected]))
'@rollup/pluginutils': 5.3.0([email protected])
find-up: 5.0.0
magic-string: 0.30.17
react: 18.3.1
react-docgen: 7.1.1
react-dom: 18.3.1([email protected])
resolve: 1.22.10
- storybook: 8.6.14([email protected])
+ storybook: 8.6.14([email protected])
tsconfig-paths: 4.2.0
optionalDependencies:
- '@storybook/test': 8.6.14([email protected]([email protected]))
+ '@storybook/test': 8.6.14([email protected]([email protected]))
transitivePeerDependencies:
- rollup
- supports-color
- typescript
optional: true
dependencies:
- '@storybook/components': 8.6.14([email protected]([email protected]))
+ '@storybook/components': 8.6.14([email protected]([email protected]))
'@storybook/global': 5.0.0
- '@storybook/manager-api': 8.6.14([email protected]([email protected]))
- '@storybook/preview-api': 8.6.14([email protected]([email protected]))
- '@storybook/theming': 8.6.14([email protected]([email protected]))
+ '@storybook/manager-api': 8.6.14([email protected]([email protected]))
+ '@storybook/preview-api': 8.6.14([email protected]([email protected]))
+ '@storybook/theming': 8.6.14([email protected]([email protected]))
react: 18.3.1
react-dom: 18.3.1([email protected])
- storybook: 8.6.14([email protected])
+ storybook: 8.6.14([email protected])
optionalDependencies:
- '@storybook/test': 8.6.14([email protected]([email protected]))
+ '@storybook/test': 8.6.14([email protected]([email protected]))
typescript: 4.7.4
optional: true
dependencies:
'@storybook/global': 5.0.0
- '@storybook/instrumenter': 8.6.14([email protected]([email protected]))
+ '@storybook/instrumenter': 8.6.14([email protected]([email protected]))
'@testing-library/dom': 10.4.0
'@testing-library/jest-dom': 6.5.0
'@testing-library/user-event': 14.5.2(@testing-library/[email protected])
'@vitest/expect': 2.0.5
'@vitest/spy': 2.0.5
- storybook: 8.6.14([email protected])
+ storybook: 8.6.14([email protected])
optional: true
dependencies:
- storybook: 8.6.14([email protected])
+ storybook: 8.6.14([email protected])
optional: true
'@stripe/[email protected]': {}
@@ -24008,7 +24047,7 @@ snapshots:
dependencies:
'@tootallnate/once': 1.1.2
agent-base: 6.0.2
- debug: 4.4.0
+ debug: 4.4.3
transitivePeerDependencies:
- supports-color
@@ -24479,7 +24518,7 @@ snapshots:
dependencies:
- debug: 4.4.0
+ debug: 4.4.3
istanbul-lib-coverage: 3.2.2
source-map: 0.6.1
transitivePeerDependencies:
@@ -24942,12 +24981,13 @@ snapshots:
dependencies:
config-chain: 1.1.13
editorconfig: 1.0.4
glob: 10.4.5
- nopt: 7.2.0
+ js-cookie: 3.0.5
+ nopt: 7.2.1
@@ -25400,6 +25440,8 @@ snapshots:
+
@@ -25774,7 +25816,7 @@ snapshots:
dependencies:
'@types/debug': 4.1.9
- debug: 4.4.0
+ debug: 4.4.3
decode-named-character-reference: 1.0.2
devlop: 1.1.0
micromark-core-commonmark: 2.0.1
@@ -26148,7 +26190,7 @@ snapshots:
abbrev: 1.1.1
optional: true
dependencies:
abbrev: 2.0.0
@@ -26763,6 +26805,9 @@ snapshots:
+ optional: true
+
dependencies:
'@jest/types': 26.6.2
@@ -27507,9 +27552,9 @@ snapshots:
optionalDependencies:
- '@react-email/render': 0.0.17([email protected]([email protected]))([email protected])
+ '@react-email/render': 2.0.0([email protected]([email protected]))([email protected])
@@ -28069,7 +28114,7 @@ snapshots:
dependencies:
agent-base: 6.0.2
- debug: 4.4.0
+ debug: 4.4.3
socks: 2.8.4
transitivePeerDependencies:
- supports-color
@@ -28183,11 +28228,11 @@ snapshots:
dependencies:
optionalDependencies:
- prettier: 3.3.1
+ prettier: 3.6.2
transitivePeerDependencies:
- bufferutil
- supports-color