mirror of
https://github.com/formbricks/formbricks.git
synced 2026-05-12 00:41:58 -05:00
chore: update all npm dependencies (#4486)
Co-authored-by: pandeymangg <anshuman.pandey9999@gmail.com> Co-authored-by: Anshuman Pandey <54475686+pandeymangg@users.noreply.github.com>
This commit is contained in:
@@ -13,17 +13,17 @@
|
||||
"dependencies": {
|
||||
"@formbricks/js": "workspace:*",
|
||||
"@formbricks/react-native": "workspace:*",
|
||||
"expo": "51.0.26",
|
||||
"expo-status-bar": "1.12.1",
|
||||
"expo": "52.0.18",
|
||||
"expo-status-bar": "2.0.0",
|
||||
"react": "18.3.1",
|
||||
"react-dom": "18.3.1",
|
||||
"react-native": "0.74.5",
|
||||
"react-native-webview": "13.8.6"
|
||||
"react-native": "0.76.5",
|
||||
"react-native-webview": "13.12.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "7.25.2",
|
||||
"@types/react": "18.3.11",
|
||||
"typescript": "5.3.3"
|
||||
"@babel/core": "7.26.0",
|
||||
"@types/react": "19.0.1",
|
||||
"typescript": "5.7.2"
|
||||
},
|
||||
"private": true
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@formbricks/js": "workspace:*",
|
||||
"lucide-react": "0.452.0",
|
||||
"lucide-react": "0.468.0",
|
||||
"next": "15.1.0",
|
||||
"react": "19.0.0",
|
||||
"react-dom": "19.0.0"
|
||||
|
||||
@@ -110,7 +110,7 @@ export const Search = () => {
|
||||
</kbd>
|
||||
)}
|
||||
</button>
|
||||
{isOpen &&
|
||||
{isOpen ? (
|
||||
createPortal(
|
||||
<DocSearchModal
|
||||
{...docSearchConfig}
|
||||
@@ -124,7 +124,10 @@ export const Search = () => {
|
||||
}}
|
||||
/>,
|
||||
document.body
|
||||
)}
|
||||
)
|
||||
) : (
|
||||
<></>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
+17
-17
@@ -12,39 +12,39 @@
|
||||
},
|
||||
"browserslist": "defaults, not ie <= 11",
|
||||
"dependencies": {
|
||||
"@algolia/autocomplete-core": "1.17.4",
|
||||
"@algolia/autocomplete-core": "1.17.8",
|
||||
"@calcom/embed-react": "1.5.1",
|
||||
"@docsearch/css": "3",
|
||||
"@docsearch/react": "3.6.2",
|
||||
"@docsearch/react": "3.8.0",
|
||||
"@formbricks/lib": "workspace:*",
|
||||
"@formbricks/types": "workspace:*",
|
||||
"@headlessui/react": "2.1.9",
|
||||
"@headlessui/react": "2.2.0",
|
||||
"@headlessui/tailwindcss": "0.2.1",
|
||||
"@mapbox/rehype-prism": "0.9.0",
|
||||
"@mdx-js/loader": "3.0.1",
|
||||
"@mdx-js/react": "3.0.1",
|
||||
"@mdx-js/loader": "3.1.0",
|
||||
"@mdx-js/react": "3.1.0",
|
||||
"@next/mdx": "15.1.0",
|
||||
"@paralleldrive/cuid2": "2.2.2",
|
||||
"@sindresorhus/slugify": "2.2.1",
|
||||
"@tailwindcss/typography": "0.5.15",
|
||||
"acorn": "8.12.1",
|
||||
"acorn": "8.14.0",
|
||||
"autoprefixer": "10.4.20",
|
||||
"clsx": "2.1.1",
|
||||
"fast-glob": "3.3.2",
|
||||
"flexsearch": "0.7.43",
|
||||
"framer-motion": "11.11.4",
|
||||
"framer-motion": "11.15.0",
|
||||
"lottie-web": "5.12.2",
|
||||
"lucide": "0.451.0",
|
||||
"lucide-react": "0.452.0",
|
||||
"lucide": "0.468.0",
|
||||
"lucide-react": "0.468.0",
|
||||
"mdast-util-to-string": "4.0.0",
|
||||
"mdx-annotations": "0.1.4",
|
||||
"next": "15.1.0",
|
||||
"next-plausible": "3.12.2",
|
||||
"next-plausible": "3.12.4",
|
||||
"next-seo": "6.6.0",
|
||||
"next-sitemap": "4.2.3",
|
||||
"next-themes": "0.3.0",
|
||||
"next-themes": "0.4.4",
|
||||
"node-fetch": "3.3.2",
|
||||
"prism-react-renderer": "2.4.0",
|
||||
"prism-react-renderer": "2.4.1",
|
||||
"prismjs": "1.29.0",
|
||||
"react": "19.0.0",
|
||||
"react-dom": "19.0.0",
|
||||
@@ -54,20 +54,20 @@
|
||||
"redoc": "2.2.0",
|
||||
"remark": "15.0.1",
|
||||
"remark-gfm": "4.0.0",
|
||||
"remark-mdx": "3.0.1",
|
||||
"remark-mdx": "3.1.0",
|
||||
"schema-dts": "1.1.2",
|
||||
"sharp": "0.33.5",
|
||||
"shiki": "1.22.0",
|
||||
"shiki": "1.24.2",
|
||||
"simple-functional-loader": "1.2.1",
|
||||
"tailwindcss": "3.4.13",
|
||||
"tailwindcss": "3.4.16",
|
||||
"unist-util-filter": "5.0.1",
|
||||
"unist-util-visit": "5.0.0",
|
||||
"zustand": "4.5.5"
|
||||
"zustand": "5.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@formbricks/config-typescript": "workspace:*",
|
||||
"@formbricks/eslint-config": "workspace:*",
|
||||
"@types/dompurify": "3.0.5",
|
||||
"@types/dompurify": "3.2.0",
|
||||
"@types/react-highlight-words": "0.20.0"
|
||||
}
|
||||
}
|
||||
|
||||
+19
-19
@@ -4,37 +4,37 @@
|
||||
"version": "0.0.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
||||
"lint": "eslint . --config .eslintrc.cjs --ext .ts,.tsx --report-unused-disable-directives --max-warnings 0",
|
||||
"preview": "vite preview",
|
||||
"storybook": "storybook dev -p 6006",
|
||||
"build-storybook": "storybook build",
|
||||
"clean": "rimraf .turbo node_modules dist storybook-static"
|
||||
},
|
||||
"dependencies": {
|
||||
"eslint-plugin-react-refresh": "0.4.12",
|
||||
"eslint-plugin-react-refresh": "0.4.16",
|
||||
"react": "19.0.0",
|
||||
"react-dom": "19.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@chromatic-com/storybook": "2.0.2",
|
||||
"@chromatic-com/storybook": "3.2.2",
|
||||
"@formbricks/config-typescript": "workspace:*",
|
||||
"@storybook/addon-a11y": "8.3.5",
|
||||
"@storybook/addon-essentials": "8.3.5",
|
||||
"@storybook/addon-interactions": "8.3.5",
|
||||
"@storybook/addon-links": "8.3.5",
|
||||
"@storybook/addon-onboarding": "8.3.5",
|
||||
"@storybook/blocks": "8.3.5",
|
||||
"@storybook/react": "8.3.5",
|
||||
"@storybook/react-vite": "8.3.5",
|
||||
"@storybook/test": "8.3.5",
|
||||
"@typescript-eslint/eslint-plugin": "8.8.1",
|
||||
"@typescript-eslint/parser": "8.8.1",
|
||||
"@vitejs/plugin-react": "4.3.2",
|
||||
"@storybook/addon-a11y": "8.4.7",
|
||||
"@storybook/addon-essentials": "8.4.7",
|
||||
"@storybook/addon-interactions": "8.4.7",
|
||||
"@storybook/addon-links": "8.4.7",
|
||||
"@storybook/addon-onboarding": "8.4.7",
|
||||
"@storybook/blocks": "8.4.7",
|
||||
"@storybook/react": "8.4.7",
|
||||
"@storybook/react-vite": "8.4.7",
|
||||
"@storybook/test": "8.4.7",
|
||||
"@typescript-eslint/eslint-plugin": "8.18.0",
|
||||
"@typescript-eslint/parser": "8.18.0",
|
||||
"@vitejs/plugin-react": "4.3.4",
|
||||
"esbuild": "0.24.0",
|
||||
"eslint-plugin-storybook": "0.9.0",
|
||||
"eslint-plugin-storybook": "0.11.1",
|
||||
"prop-types": "15.8.1",
|
||||
"storybook": "8.3.5",
|
||||
"tsup": "8.3.0",
|
||||
"vite": "5.4.8"
|
||||
"storybook": "8.4.7",
|
||||
"tsup": "8.3.5",
|
||||
"vite": "6.0.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,7 +51,9 @@ export const POST = async (request: Request, context: Context): Promise<Response
|
||||
);
|
||||
}
|
||||
|
||||
const agent = UAParser(request.headers.get("user-agent"));
|
||||
const userAgent = request.headers.get("user-agent") || undefined;
|
||||
const agent = new UAParser(userAgent);
|
||||
|
||||
const country =
|
||||
requestHeaders.get("CF-IPCountry") ||
|
||||
requestHeaders.get("X-Vercel-IP-Country") ||
|
||||
@@ -89,9 +91,9 @@ export const POST = async (request: Request, context: Context): Promise<Response
|
||||
source: responseInputData?.meta?.source,
|
||||
url: responseInputData?.meta?.url,
|
||||
userAgent: {
|
||||
browser: agent?.browser.name,
|
||||
device: agent?.device.type || "desktop",
|
||||
os: agent?.os.name,
|
||||
browser: agent.getBrowser().name,
|
||||
device: agent.getDevice().type || "desktop",
|
||||
os: agent.getOS().name,
|
||||
},
|
||||
country: country,
|
||||
action: responseInputData?.meta?.action,
|
||||
|
||||
@@ -11,7 +11,7 @@ type SurveyLinkUsedProps = {
|
||||
singleUseMessage: TSurveySingleUse | null;
|
||||
};
|
||||
|
||||
export const SurveyLinkUsed = async ({ singleUseMessage }: SurveyLinkUsedProps) => {
|
||||
export const SurveyLinkUsed = ({ singleUseMessage }: SurveyLinkUsedProps) => {
|
||||
const t = useTranslations();
|
||||
const defaultHeading = t("s.survey_already_answered_heading");
|
||||
const defaultSubheading = t("s.survey_already_answered_subheading");
|
||||
|
||||
@@ -527,8 +527,11 @@ export const ToolbarPlugin = (props: TextEditorProps & { container: HTMLElement
|
||||
className={isLink ? "bg-subtle active-button" : "inactive-button"}>
|
||||
<Link />
|
||||
</Button>
|
||||
{isLink &&
|
||||
createPortal(<FloatingLinkEditor editor={editor} />, props.container ?? document.body)}{" "}
|
||||
{isLink ? (
|
||||
createPortal(<FloatingLinkEditor editor={editor} />, props.container ?? document.body)
|
||||
) : (
|
||||
<></>
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
</>
|
||||
|
||||
+69
-69
@@ -12,10 +12,10 @@
|
||||
"lint": "next lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ai-sdk/azure": "0.0.52",
|
||||
"@dnd-kit/core": "6.1.0",
|
||||
"@dnd-kit/modifiers": "7.0.0",
|
||||
"@dnd-kit/sortable": "8.0.0",
|
||||
"@ai-sdk/azure": "1.0.10",
|
||||
"@dnd-kit/core": "6.3.1",
|
||||
"@dnd-kit/modifiers": "9.0.0",
|
||||
"@dnd-kit/sortable": "10.0.0",
|
||||
"@dnd-kit/utilities": "3.2.2",
|
||||
"@formbricks/api": "workspace:*",
|
||||
"@formbricks/database": "workspace:*",
|
||||
@@ -24,107 +24,107 @@
|
||||
"@formbricks/lib": "workspace:*",
|
||||
"@formbricks/surveys": "workspace:*",
|
||||
"@formbricks/types": "workspace:*",
|
||||
"@hookform/resolvers": "3.9.0",
|
||||
"@hookform/resolvers": "3.9.1",
|
||||
"@intercom/messenger-js-sdk": "0.0.14",
|
||||
"@json2csv/node": "7.0.6",
|
||||
"@lexical/code": "0.17.0",
|
||||
"@lexical/link": "0.17.0",
|
||||
"@lexical/list": "0.17.0",
|
||||
"@lexical/markdown": "0.17.0",
|
||||
"@lexical/react": "0.17.0",
|
||||
"@lexical/rich-text": "0.17.0",
|
||||
"@lexical/table": "0.17.0",
|
||||
"@opentelemetry/api-logs": "0.53.0",
|
||||
"@opentelemetry/instrumentation": "0.53.0",
|
||||
"@opentelemetry/sdk-logs": "0.53.0",
|
||||
"@lexical/code": "0.21.0",
|
||||
"@lexical/link": "0.21.0",
|
||||
"@lexical/list": "0.21.0",
|
||||
"@lexical/markdown": "0.21.0",
|
||||
"@lexical/react": "0.21.0",
|
||||
"@lexical/rich-text": "0.21.0",
|
||||
"@lexical/table": "0.21.0",
|
||||
"@opentelemetry/api-logs": "0.56.0",
|
||||
"@opentelemetry/instrumentation": "0.56.0",
|
||||
"@opentelemetry/sdk-logs": "0.56.0",
|
||||
"@paralleldrive/cuid2": "2.2.2",
|
||||
"@prisma/client": "5.20.0",
|
||||
"@radix-ui/react-accordion": "1.2.0",
|
||||
"@radix-ui/react-checkbox": "1.1.1",
|
||||
"@radix-ui/react-collapsible": "1.1.1",
|
||||
"@radix-ui/react-dialog": "1.1.1",
|
||||
"@radix-ui/react-dropdown-menu": "2.1.1",
|
||||
"@radix-ui/react-label": "2.1.0",
|
||||
"@radix-ui/react-popover": "1.1.1",
|
||||
"@radix-ui/react-radio-group": "1.2.0",
|
||||
"@radix-ui/react-select": "2.1.1",
|
||||
"@radix-ui/react-separator": "1.1.0",
|
||||
"@radix-ui/react-slider": "1.2.0",
|
||||
"@radix-ui/react-slot": "1.1.0",
|
||||
"@radix-ui/react-switch": "1.1.0",
|
||||
"@radix-ui/react-tabs": "1.1.1",
|
||||
"@radix-ui/react-toggle": "1.1.0",
|
||||
"@radix-ui/react-toggle-group": "1.1.0",
|
||||
"@radix-ui/react-tooltip": "1.1.2",
|
||||
"@react-email/components": "0.0.25",
|
||||
"@sentry/nextjs": "8.34.0",
|
||||
"@prisma/client": "6.0.1",
|
||||
"@radix-ui/react-accordion": "1.2.2",
|
||||
"@radix-ui/react-checkbox": "1.1.3",
|
||||
"@radix-ui/react-collapsible": "1.1.2",
|
||||
"@radix-ui/react-dialog": "1.1.3",
|
||||
"@radix-ui/react-dropdown-menu": "2.1.3",
|
||||
"@radix-ui/react-label": "2.1.1",
|
||||
"@radix-ui/react-popover": "1.1.3",
|
||||
"@radix-ui/react-radio-group": "1.2.2",
|
||||
"@radix-ui/react-select": "2.1.3",
|
||||
"@radix-ui/react-separator": "1.1.1",
|
||||
"@radix-ui/react-slider": "1.2.2",
|
||||
"@radix-ui/react-slot": "1.1.1",
|
||||
"@radix-ui/react-switch": "1.1.2",
|
||||
"@radix-ui/react-tabs": "1.1.2",
|
||||
"@radix-ui/react-toggle": "1.1.1",
|
||||
"@radix-ui/react-toggle-group": "1.1.1",
|
||||
"@radix-ui/react-tooltip": "1.1.5",
|
||||
"@react-email/components": "0.0.31",
|
||||
"@sentry/nextjs": "8.45.1",
|
||||
"@tailwindcss/forms": "0.5.9",
|
||||
"@tailwindcss/typography": "0.5.13",
|
||||
"@tanstack/react-table": "8.20.5",
|
||||
"@vercel/functions": "1.5.0",
|
||||
"@vercel/og": "0.6.3",
|
||||
"@tailwindcss/typography": "0.5.15",
|
||||
"@tanstack/react-table": "8.20.6",
|
||||
"@vercel/functions": "1.5.2",
|
||||
"@vercel/og": "0.6.4",
|
||||
"@vercel/otel": "1.10.0",
|
||||
"@vercel/speed-insights": "1.0.12",
|
||||
"ai": "3.4.33",
|
||||
"@vercel/speed-insights": "1.1.0",
|
||||
"ai": "4.0.18",
|
||||
"autoprefixer": "10.4.20",
|
||||
"bcryptjs": "2.4.3",
|
||||
"boring-avatars": "1.10.2",
|
||||
"class-variance-authority": "0.7.0",
|
||||
"boring-avatars": "1.11.2",
|
||||
"class-variance-authority": "0.7.1",
|
||||
"clsx": "2.1.1",
|
||||
"cmdk": "1.0.0",
|
||||
"csv-parse": "5.5.6",
|
||||
"dotenv": "16.4.5",
|
||||
"cmdk": "1.0.4",
|
||||
"csv-parse": "5.6.0",
|
||||
"dotenv": "16.4.7",
|
||||
"encoding": "0.1.13",
|
||||
"file-loader": "6.2.0",
|
||||
"framer-motion": "11.11.8",
|
||||
"framer-motion": "11.15.0",
|
||||
"googleapis": "144.0.0",
|
||||
"https-proxy-agent": "7.0.5",
|
||||
"jiti": "2.3.3",
|
||||
"https-proxy-agent": "7.0.6",
|
||||
"jiti": "2.4.1",
|
||||
"jsonwebtoken": "9.0.2",
|
||||
"langfuse-vercel": "3.27.0",
|
||||
"lexical": "0.17.0",
|
||||
"langfuse-vercel": "3.31.3",
|
||||
"lexical": "0.21.0",
|
||||
"lodash": "4.17.21",
|
||||
"lru-cache": "11.0.1",
|
||||
"lucide-react": "0.452.0",
|
||||
"lru-cache": "11.0.2",
|
||||
"lucide-react": "0.468.0",
|
||||
"mime": "4.0.4",
|
||||
"next": "15.1.0",
|
||||
"next-auth": "4.24.10",
|
||||
"next-intl": "3.20.0",
|
||||
"next-safe-action": "7.10.1",
|
||||
"next-auth": "4.24.11",
|
||||
"next-intl": "3.26.1",
|
||||
"next-safe-action": "7.10.2",
|
||||
"optional": "0.1.4",
|
||||
"otplib": "12.0.1",
|
||||
"papaparse": "5.4.1",
|
||||
"posthog-js": "1.167.0",
|
||||
"posthog-js": "1.200.2",
|
||||
"prismjs": "1.29.0",
|
||||
"react": "19.0.0",
|
||||
"react-colorful": "5.6.1",
|
||||
"react-confetti": "6.1.0",
|
||||
"react-day-picker": "9.0.8",
|
||||
"react-day-picker": "9.4.4",
|
||||
"react-dom": "19.0.0",
|
||||
"react-hook-form": "7.53.0",
|
||||
"react-hook-form": "7.54.1",
|
||||
"react-hot-toast": "2.4.1",
|
||||
"react-icons": "5.3.0",
|
||||
"react-icons": "5.4.0",
|
||||
"react-radio-group": "3.0.3",
|
||||
"react-use": "17.5.1",
|
||||
"react-use": "17.6.0",
|
||||
"redis": "4.7.0",
|
||||
"sharp": "0.33.5",
|
||||
"stripe": "16.7.0",
|
||||
"tailwind-merge": "2.5.2",
|
||||
"tailwindcss": "3.4.13",
|
||||
"ua-parser-js": "1.0.39",
|
||||
"webpack": "5.95.0",
|
||||
"tailwind-merge": "2.5.5",
|
||||
"tailwindcss": "3.4.16",
|
||||
"ua-parser-js": "2.0.0",
|
||||
"webpack": "5.97.1",
|
||||
"xlsx": "0.18.5",
|
||||
"zod": "3.23.8"
|
||||
"zod": "3.24.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@formbricks/config-typescript": "workspace:*",
|
||||
"@formbricks/eslint-config": "workspace:*",
|
||||
"@neshca/cache-handler": "1.7.4",
|
||||
"@neshca/cache-handler": "1.9.0",
|
||||
"@types/bcryptjs": "2.4.6",
|
||||
"@types/lodash": "4.17.10",
|
||||
"@types/lodash": "4.17.13",
|
||||
"@types/markdown-it": "14.1.2",
|
||||
"@types/nodemailer": "6.4.17",
|
||||
"@types/papaparse": "5.3.14",
|
||||
"@types/papaparse": "5.3.15",
|
||||
"@types/qrcode": "1.5.5",
|
||||
"nodemailer": "6.9.16"
|
||||
}
|
||||
|
||||
+6
-6
@@ -33,12 +33,12 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@formbricks/eslint-config": "workspace:*",
|
||||
"@playwright/test": "1.45.3",
|
||||
"@playwright/test": "1.49.1",
|
||||
"eslint": "8.57.0",
|
||||
"husky": "9.1.4",
|
||||
"lint-staged": "15.2.7",
|
||||
"husky": "9.1.7",
|
||||
"lint-staged": "15.2.11",
|
||||
"rimraf": "6.0.1",
|
||||
"tsx": "4.16.5",
|
||||
"tsx": "4.19.2",
|
||||
"turbo": "2.3.3"
|
||||
},
|
||||
"lint-staged": {
|
||||
@@ -56,7 +56,7 @@
|
||||
"engines": {
|
||||
"node": ">=16.0.0"
|
||||
},
|
||||
"packageManager": "pnpm@9.14.2",
|
||||
"packageManager": "pnpm@9.15.0",
|
||||
"nextBundleAnalysis": {
|
||||
"budget": 358400,
|
||||
"budgetPercentIncreaseRed": 20,
|
||||
@@ -64,6 +64,6 @@
|
||||
"showDetails": true
|
||||
},
|
||||
"dependencies": {
|
||||
"@changesets/cli": "2.27.7"
|
||||
"@changesets/cli": "2.27.10"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,9 +20,9 @@
|
||||
"types": "dist/index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"import": "./dist/index.js",
|
||||
"require": "./dist/index.umd.cjs",
|
||||
"types": "./dist/index.d.ts"
|
||||
"require": "./dist/index.umd.cjs"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
@@ -39,9 +39,9 @@
|
||||
"@formbricks/types": "workspace:*",
|
||||
"@rollup/plugin-inject": "5.0.5",
|
||||
"buffer": "6.0.3",
|
||||
"terser": "5.31.6",
|
||||
"vite": "5.4.8",
|
||||
"vite-plugin-dts": "3.9.1",
|
||||
"terser": "5.37.0",
|
||||
"vite": "6.0.3",
|
||||
"vite-plugin-dts": "4.3.0",
|
||||
"vite-plugin-node-polyfills": "0.22.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,16 +3,16 @@
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"devDependencies": {
|
||||
"@next/eslint-plugin-next": "14.2.5",
|
||||
"@typescript-eslint/eslint-plugin": "8.0.0",
|
||||
"@typescript-eslint/parser": "8.0.0",
|
||||
"@next/eslint-plugin-next": "15.1.0",
|
||||
"@typescript-eslint/eslint-plugin": "8.18.0",
|
||||
"@typescript-eslint/parser": "8.18.0",
|
||||
"@vercel/style-guide": "6.0.0",
|
||||
"eslint-config-next": "14.2.5",
|
||||
"eslint-config-next": "15.1.0",
|
||||
"eslint-config-prettier": "9.1.0",
|
||||
"eslint-config-turbo": "2.0.14",
|
||||
"eslint-config-turbo": "2.3.3",
|
||||
"eslint-plugin-i18n-json": "4.0.0",
|
||||
"eslint-plugin-react": "7.35.0",
|
||||
"eslint-plugin-react-hooks": "4.6.2",
|
||||
"eslint-plugin-react-refresh": "0.4.9"
|
||||
"eslint-plugin-react": "7.37.2",
|
||||
"eslint-plugin-react-hooks": "5.1.0",
|
||||
"eslint-plugin-react-refresh": "0.4.16"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,9 +7,9 @@
|
||||
"clean": "rimraf node_modules .turbo"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@trivago/prettier-plugin-sort-imports": "4.3.0",
|
||||
"prettier": "3.3.3",
|
||||
"prettier-plugin-tailwindcss": "0.6.6",
|
||||
"@trivago/prettier-plugin-sort-imports": "5.2.0",
|
||||
"prettier": "3.4.2",
|
||||
"prettier-plugin-tailwindcss": "0.6.9",
|
||||
"prettier-plugin-sort-json": "4.0.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,9 +7,9 @@
|
||||
"clean": "rimraf node_modules dist turbo"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "22.3.0",
|
||||
"@types/node": "22.10.2",
|
||||
"@types/react": "19.0.1",
|
||||
"@types/react-dom": "19.0.2",
|
||||
"typescript": "5.4.5"
|
||||
"typescript": "5.7.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
/* eslint-disable no-constant-condition -- Required for the while loop */
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unnecessary-condition -- Required for a while loop here */
|
||||
import { createId } from "@paralleldrive/cuid2";
|
||||
import { Prisma } from "@prisma/client";
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-call -- required for any type */
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-assignment -- required for any type */
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-member-access -- required for any type */
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any -- required for any type */
|
||||
import type { MigrationScript } from "../../src/scripts/migration-runner";
|
||||
|
||||
|
||||
@@ -25,19 +25,19 @@
|
||||
"create-migration": "dotenv -e ../../.env -- tsx ./src/scripts/create-migration.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"@prisma/client": "5.20.0",
|
||||
"@prisma/client": "6.0.1",
|
||||
"@prisma/extension-accelerate": "1.2.1",
|
||||
"dotenv-cli": "7.4.2"
|
||||
"dotenv-cli": "7.4.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@formbricks/config-typescript": "workspace:*",
|
||||
"@formbricks/eslint-config": "workspace:*",
|
||||
"@paralleldrive/cuid2": "2.2.2",
|
||||
"prisma": "5.20.0",
|
||||
"prisma": "6.0.1",
|
||||
"prisma-dbml-generator": "0.12.0",
|
||||
"prisma-json-types-generator": "3.1.1",
|
||||
"ts-node": "10.9.2",
|
||||
"zod": "3.23.8",
|
||||
"zod": "3.24.1",
|
||||
"zod-prisma": "0.5.4"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -70,7 +70,9 @@ function promptForMigrationName(): Promise<string> {
|
||||
process.exit(1);
|
||||
}
|
||||
if (/[^a-zA-Z0-9\s]/.test(name)) {
|
||||
console.error("Migration name contains invalid characters. Only letters, numbers, and spaces are allowed.");
|
||||
console.error(
|
||||
"Migration name contains invalid characters. Only letters, numbers, and spaces are allowed."
|
||||
);
|
||||
process.exit(1);
|
||||
}
|
||||
rl.close();
|
||||
|
||||
@@ -20,9 +20,9 @@
|
||||
"dist"
|
||||
],
|
||||
"exports": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"import": "./dist/index.js",
|
||||
"require": "./dist/index.umd.cjs",
|
||||
"types": "./dist/index.d.ts"
|
||||
"require": "./dist/index.umd.cjs"
|
||||
},
|
||||
"typesVersions": {
|
||||
"*": {
|
||||
@@ -46,8 +46,8 @@
|
||||
"@formbricks/config-typescript": "workspace:*",
|
||||
"@formbricks/types": "workspace:*",
|
||||
"@formbricks/eslint-config": "workspace:*",
|
||||
"terser": "5.31.6",
|
||||
"vite": "5.4.8",
|
||||
"vite-plugin-dts": "3.9.1"
|
||||
"terser": "5.37.0",
|
||||
"vite": "6.0.3",
|
||||
"vite-plugin-dts": "4.3.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,9 +19,9 @@
|
||||
],
|
||||
"type": "module",
|
||||
"exports": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"import": "./dist/index.js",
|
||||
"require": "./dist/index.cjs",
|
||||
"types": "./dist/index.d.ts"
|
||||
"require": "./dist/index.cjs"
|
||||
},
|
||||
"typesVersions": {
|
||||
"*": {
|
||||
@@ -44,9 +44,9 @@
|
||||
"@formbricks/config-typescript": "workspace:*",
|
||||
"@formbricks/eslint-config": "workspace:*",
|
||||
"@formbricks/types": "workspace:*",
|
||||
"terser": "5.31.6",
|
||||
"vite": "5.4.8",
|
||||
"vite-plugin-dts": "3.9.1"
|
||||
"terser": "5.37.0",
|
||||
"vite": "6.0.3",
|
||||
"vite-plugin-dts": "4.3.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"zod": "3.x"
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { type TFormbricksApp } from "@formbricks/js-core";
|
||||
import type FormbricksApp from "@formbricks/js-core";
|
||||
import { loadFormbricksToProxy } from "./lib/load-formbricks";
|
||||
|
||||
type TFormbricksApp = typeof FormbricksApp;
|
||||
declare global {
|
||||
interface Window {
|
||||
formbricks: TFormbricksApp | undefined;
|
||||
|
||||
@@ -19,7 +19,7 @@ export const symmetricEncrypt = (text: string, key: string) => {
|
||||
const _key = Buffer.from(key, BUFFER_ENCODING);
|
||||
const iv = crypto.randomBytes(IV_LENGTH);
|
||||
|
||||
// @ts-expect-error -- the package needs to be built
|
||||
// @ts-ignore -- the package needs to be built
|
||||
const cipher = crypto.createCipheriv(ALGORITHM, _key, iv);
|
||||
let ciphered = cipher.update(text, INPUT_ENCODING, OUTPUT_ENCODING);
|
||||
ciphered += cipher.final(OUTPUT_ENCODING);
|
||||
@@ -38,7 +38,7 @@ export const symmetricDecrypt = (text: string, key: string) => {
|
||||
|
||||
const components = text.split(":");
|
||||
const iv_from_ciphertext = Buffer.from(components.shift() || "", OUTPUT_ENCODING);
|
||||
// @ts-expect-error -- the package needs to be built
|
||||
// @ts-ignore -- the package needs to be built
|
||||
const decipher = crypto.createDecipheriv(ALGORITHM, _key, iv_from_ciphertext);
|
||||
let deciphered = decipher.update(components.join(":"), OUTPUT_ENCODING, INPUT_ENCODING);
|
||||
deciphered += decipher.final(INPUT_ENCODING);
|
||||
@@ -50,7 +50,7 @@ export const getHash = (key: string): string => createHash("sha256").update(key)
|
||||
|
||||
// create an aes128 encryption function
|
||||
export const encryptAES128 = (encryptionKey: string, data: string): string => {
|
||||
// @ts-expect-error -- the package needs to be built
|
||||
// @ts-ignore -- the package needs to be built
|
||||
const cipher = createCipheriv("aes-128-ecb", Buffer.from(encryptionKey, "base64"), "");
|
||||
let encrypted = cipher.update(data, "utf-8", "hex");
|
||||
encrypted += cipher.final("hex");
|
||||
@@ -58,7 +58,7 @@ export const encryptAES128 = (encryptionKey: string, data: string): string => {
|
||||
};
|
||||
// create an aes128 decryption function
|
||||
export const decryptAES128 = (encryptionKey: string, data: string): string => {
|
||||
// @ts-expect-error -- the package needs to be built
|
||||
// @ts-ignore -- the package needs to be built
|
||||
const cipher = createDecipheriv("aes-128-ecb", Buffer.from(encryptionKey, "base64"), "");
|
||||
let decrypted = cipher.update(data, "hex", "utf-8");
|
||||
decrypted += cipher.final("utf-8");
|
||||
|
||||
+16
-16
@@ -15,38 +15,38 @@
|
||||
"test": "dotenv -e ../../.env -- vitest run"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ai-sdk/azure": "0.0.52",
|
||||
"@aws-sdk/client-s3": "3.631.0",
|
||||
"@aws-sdk/s3-presigned-post": "3.631.0",
|
||||
"@aws-sdk/s3-request-presigner": "3.631.0",
|
||||
"@ai-sdk/azure": "1.0.10",
|
||||
"@aws-sdk/client-s3": "3.712.0",
|
||||
"@aws-sdk/s3-presigned-post": "3.712.0",
|
||||
"@aws-sdk/s3-request-presigner": "3.712.0",
|
||||
"@formbricks/api": "*",
|
||||
"@formbricks/database": "*",
|
||||
"@formbricks/types": "*",
|
||||
"@paralleldrive/cuid2": "2.2.2",
|
||||
"@t3-oss/env-nextjs": "0.11.0",
|
||||
"@ungap/structured-clone": "1.2.0",
|
||||
"aws-crt": "1.21.3",
|
||||
"date-fns": "3.6.0",
|
||||
"@t3-oss/env-nextjs": "0.11.1",
|
||||
"@ungap/structured-clone": "1.2.1",
|
||||
"aws-crt": "1.24.0",
|
||||
"date-fns": "4.1.0",
|
||||
"jsonwebtoken": "9.0.2",
|
||||
"markdown-it": "14.1.0",
|
||||
"mime-types": "2.1.35",
|
||||
"nanoid": "5.0.9",
|
||||
"next-auth": "4.24.10",
|
||||
"posthog-node": "4.1.0",
|
||||
"next-auth": "4.24.11",
|
||||
"posthog-node": "4.3.2",
|
||||
"qrcode": "1.5.4",
|
||||
"server-only": "0.0.1",
|
||||
"superjson": "2.2.1",
|
||||
"tailwind-merge": "2.5.2"
|
||||
"superjson": "2.2.2",
|
||||
"tailwind-merge": "2.5.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@formbricks/config-typescript": "workspace:*",
|
||||
"@formbricks/eslint-config": "workspace:*",
|
||||
"@types/jsonwebtoken": "9.0.6",
|
||||
"@types/jsonwebtoken": "9.0.7",
|
||||
"@types/mime-types": "2.1.4",
|
||||
"@types/ungap__structured-clone": "1.2.0",
|
||||
"dotenv": "16.4.5",
|
||||
"dotenv": "16.4.7",
|
||||
"ts-node": "10.9.2",
|
||||
"vitest": "2.0.5",
|
||||
"vitest-mock-extended": "2.0.0"
|
||||
"vitest": "2.1.8",
|
||||
"vitest-mock-extended": "2.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,13 +43,13 @@
|
||||
"@formbricks/config-typescript": "workspace:*",
|
||||
"@formbricks/lib": "workspace:*",
|
||||
"@formbricks/types": "workspace:*",
|
||||
"@react-native-async-storage/async-storage": "1.23.1",
|
||||
"@react-native-async-storage/async-storage": "2.1.0",
|
||||
"@types/react": "18.3.11",
|
||||
"react": "18.3.1",
|
||||
"react-native": "0.74.5",
|
||||
"terser": "5.31.3",
|
||||
"vite": "5.4.8",
|
||||
"vite-plugin-dts": "3.9.1"
|
||||
"terser": "5.37.0",
|
||||
"vite": "6.0.3",
|
||||
"vite-plugin-dts": "4.3.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": ">=16.8.0",
|
||||
|
||||
@@ -20,9 +20,9 @@
|
||||
],
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"import": "./dist/index.js",
|
||||
"require": "./dist/index.umd.cjs",
|
||||
"types": "./dist/index.d.ts"
|
||||
"require": "./dist/index.umd.cjs"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
@@ -36,25 +36,25 @@
|
||||
"clean": "rimraf .turbo node_modules dist"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@calcom/embed-snippet": "1.3.0",
|
||||
"@calcom/embed-snippet": "1.3.1",
|
||||
"@formbricks/config-typescript": "workspace:*",
|
||||
"@formbricks/eslint-config": "workspace:*",
|
||||
"@formbricks/lib": "workspace:*",
|
||||
"@formbricks/types": "workspace:*",
|
||||
"@preact/preset-vite": "2.9.0",
|
||||
"@preact/preset-vite": "2.9.3",
|
||||
"@types/react": "19.0.1",
|
||||
"autoprefixer": "10.4.20",
|
||||
"concurrently": "8.2.2",
|
||||
"isomorphic-dompurify": "2.14.0",
|
||||
"postcss": "8.4.41",
|
||||
"preact": "10.23.2",
|
||||
"concurrently": "9.1.0",
|
||||
"isomorphic-dompurify": "2.19.0",
|
||||
"postcss": "8.4.49",
|
||||
"preact": "10.25.2",
|
||||
"react-date-picker": "11.0.0",
|
||||
"serve": "14.2.3",
|
||||
"tailwindcss": "3.4.10",
|
||||
"terser": "5.31.6",
|
||||
"vite": "5.4.8",
|
||||
"vite-plugin-dts": "3.9.1",
|
||||
"vite-tsconfig-paths": "5.0.1"
|
||||
"serve": "14.2.4",
|
||||
"tailwindcss": "3.4.16",
|
||||
"terser": "5.37.0",
|
||||
"vite": "6.0.3",
|
||||
"vite-plugin-dts": "4.3.0",
|
||||
"vite-tsconfig-paths": "5.1.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"@formkit/auto-animate": "0.8.2",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { type JSX } from "preact";
|
||||
import { ButtonHTMLAttributes } from "preact/compat";
|
||||
import { useCallback } from "preact/hooks";
|
||||
|
||||
interface SubmitButtonProps extends JSX.HTMLAttributes<HTMLButtonElement> {
|
||||
interface SubmitButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
||||
buttonLabel: string | undefined;
|
||||
isLastQuestion: boolean;
|
||||
focus?: boolean;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { cn } from "@/lib/utils";
|
||||
import { type HTMLAttributes, forwardRef } from "preact/compat";
|
||||
import { InputHTMLAttributes, forwardRef } from "preact/compat";
|
||||
|
||||
export interface InputProps extends HTMLAttributes<HTMLInputElement> {
|
||||
export interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
|
||||
className?: string;
|
||||
}
|
||||
export const Input = forwardRef<HTMLInputElement, InputProps>(({ className, ...props }, ref) => {
|
||||
|
||||
@@ -7,11 +7,11 @@ interface SubheaderProps {
|
||||
|
||||
export function Subheader({ subheader, questionId }: SubheaderProps) {
|
||||
return (
|
||||
<p
|
||||
<label
|
||||
htmlFor={questionId}
|
||||
className="fb-text-subheading fb-block fb-break-words fb-text-sm fb-font-normal fb-leading-5"
|
||||
dir="auto">
|
||||
{subheader}
|
||||
</p>
|
||||
</label>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -217,7 +217,37 @@ export function DateQuestion({
|
||||
yearPlaceholder="YYYY"
|
||||
format={question.format ?? "M-d-y"}
|
||||
className={`dp-input-root fb-rounded-custom wrapper-hide ${!datePickerOpen ? "" : "fb-h-[46dvh] sm:fb-h-[34dvh]"} ${hideInvalid ? "hide-invalid" : ""} `}
|
||||
calendarClassName="calendar-root !fb-bg-input-bg fb-border fb-border-border fb-rounded-custom fb-p-3 fb-h-[46dvh] sm:fb-h-[33dvh] fb-overflow-auto"
|
||||
calendarProps={{
|
||||
className:
|
||||
"calendar-root !fb-bg-input-bg fb-border fb-border-border fb-rounded-custom fb-p-3 fb-h-[46dvh] sm:fb-h-[33dvh] fb-overflow-auto",
|
||||
tileClassName: ({ date }: { date: Date }) => {
|
||||
const baseClass =
|
||||
"hover:fb-bg-input-bg-selected fb-rounded-custom fb-h-9 fb-p-0 fb-mt-1 fb-font-normal fb-text-heading aria-selected:fb-opacity-100 focus:fb-ring-2 focus:fb-bg-slate-200";
|
||||
// today's date class
|
||||
if (
|
||||
date.getDate() === new Date().getDate() &&
|
||||
date.getMonth() === new Date().getMonth() &&
|
||||
date.getFullYear() === new Date().getFullYear()
|
||||
) {
|
||||
return `${baseClass} !fb-bg-brand !fb-border-border-highlight !fb-text-heading focus:fb-ring-2 focus:fb-bg-slate-200`;
|
||||
}
|
||||
// active date class
|
||||
if (
|
||||
selectedDate &&
|
||||
date.getDate() === selectedDate?.getDate() &&
|
||||
date.getMonth() === selectedDate.getMonth() &&
|
||||
date.getFullYear() === selectedDate.getFullYear()
|
||||
) {
|
||||
return `${baseClass} !fb-bg-brand !fb-border-border-highlight !fb-text-heading`;
|
||||
}
|
||||
|
||||
return baseClass;
|
||||
},
|
||||
formatShortWeekday: (_: any, date: Date) => {
|
||||
return date.toLocaleDateString("en-US", { weekday: "short" }).slice(0, 2);
|
||||
},
|
||||
showNeighboringMonth: false,
|
||||
}}
|
||||
clearIcon={null}
|
||||
onCalendarOpen={() => {
|
||||
setDatePickerOpen(true);
|
||||
@@ -227,35 +257,7 @@ export function DateQuestion({
|
||||
setDatePickerOpen(false);
|
||||
setSelectedDate(selectedDate);
|
||||
}}
|
||||
// @ts-expect-error
|
||||
calendarIcon={<CalendarIcon />}
|
||||
tileClassName={({ date }: { date: Date }) => {
|
||||
const baseClass =
|
||||
"hover:fb-bg-input-bg-selected fb-rounded-custom fb-h-9 fb-p-0 fb-mt-1 fb-font-normal fb-text-heading aria-selected:fb-opacity-100 focus:fb-ring-2 focus:fb-bg-slate-200";
|
||||
// today's date class
|
||||
if (
|
||||
date.getDate() === new Date().getDate() &&
|
||||
date.getMonth() === new Date().getMonth() &&
|
||||
date.getFullYear() === new Date().getFullYear()
|
||||
) {
|
||||
return `${baseClass} !fb-bg-brand !fb-border-border-highlight !fb-text-heading focus:fb-ring-2 focus:fb-bg-slate-200`;
|
||||
}
|
||||
// active date class
|
||||
if (
|
||||
selectedDate &&
|
||||
date.getDate() === selectedDate?.getDate() &&
|
||||
date.getMonth() === selectedDate.getMonth() &&
|
||||
date.getFullYear() === selectedDate.getFullYear()
|
||||
) {
|
||||
return `${baseClass} !fb-bg-brand !fb-border-border-highlight !fb-text-heading`;
|
||||
}
|
||||
|
||||
return baseClass;
|
||||
}}
|
||||
formatShortWeekday={(_: any, date: Date) => {
|
||||
return date.toLocaleDateString("en-US", { weekday: "short" }).slice(0, 2);
|
||||
}}
|
||||
showNeighboringMonth={false}
|
||||
showLeadingZeros={false}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -129,13 +129,11 @@ export function OpenTextQuestion({
|
||||
dir="auto"
|
||||
required={question.required}
|
||||
value={value}
|
||||
type={question.inputType}
|
||||
onInput={(e) => {
|
||||
handleInputChange(e.currentTarget.value);
|
||||
handleInputResize(e);
|
||||
}}
|
||||
className="fb-border-border placeholder:fb-text-placeholder fb-bg-input-bg fb-text-subheading focus:fb-border-brand fb-rounded-custom fb-block fb-w-full fb-border fb-p-2 fb-shadow-sm focus:fb-ring-0 sm:fb-text-sm"
|
||||
pattern={question.inputType === "phone" ? "[+][0-9 ]+" : ".*"}
|
||||
title={question.inputType === "phone" ? "Please enter a valid phone number" : undefined}
|
||||
minlength={question.inputType === "text" ? question.charLimit?.min : undefined}
|
||||
maxlength={question.inputType === "text" ? question.charLimit?.max : undefined}
|
||||
@@ -155,7 +153,7 @@ export function OpenTextQuestion({
|
||||
tabIndex={isCurrent ? 0 : -1}
|
||||
buttonLabel={getLocalizedValue(question.buttonLabel, languageCode)}
|
||||
isLastQuestion={isLastQuestion}
|
||||
onClick={() => {}}
|
||||
onClick={() => { }}
|
||||
/>
|
||||
{!isFirstQuestion && (
|
||||
<BackButton
|
||||
|
||||
@@ -13,6 +13,6 @@
|
||||
"@formbricks/database": "workspace:*"
|
||||
},
|
||||
"dependencies": {
|
||||
"zod": "3.23.8"
|
||||
"zod": "3.24.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,6 +17,6 @@
|
||||
"devDependencies": {
|
||||
"@formbricks/config-typescript": "workspace:*",
|
||||
"@formbricks/eslint-config": "workspace:*",
|
||||
"vite": "5.4.8"
|
||||
"vite": "6.0.3"
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+4882
-5690
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user