Files
sign/apps/web/package.json

77 lines
2.2 KiB
JSON
Raw Permalink Normal View History

2022-11-14 23:12:51 +01:00
{
2023-01-07 15:45:03 +01:00
"name": "@documenso/web",
2024-09-19 13:55:35 +10:00
"version": "1.7.1-rc.3",
2022-11-14 23:12:51 +01:00
"private": true,
2023-06-09 18:21:18 +10:00
"license": "AGPL-3.0",
2022-11-14 23:12:51 +01:00
"scripts": {
2023-08-23 17:56:12 -05:00
"dev": "next dev -p 3000",
2022-11-14 23:12:51 +01:00
"build": "next build",
2023-06-09 18:21:18 +10:00
"start": "next start",
"lint": "next lint",
2023-12-05 03:54:41 +01:00
"e2e:prepare": "next build && next start",
2023-11-14 14:31:45 +05:30
"lint:fix": "next lint --fix",
2023-09-21 21:34:24 +10:00
"clean": "rimraf .next && rimraf node_modules",
feat: initial i18n marketing implementation (#1223) ## Description This PR introduces an initial i18n implementation using [Lingui](https://lingui.dev). We plan to combine it with Crowdin which will provide AI translations when PRs are merged into main. We plan to rollout i18n to only marketing for now, and will review how everything goes before continuing to introduce it into the main application. ## Reasoning Why not use i18n-next or other alternatives? To hopefully provide the best DX we chose Lingui because it allows us to simply wrap text that we want to translate in tags, instead of forcing users to do things such as: - Update the text to `t('some-text')` - Extract it to the file - The text becomes a bit unreadable unless done correctly Yes, plugins such as i18n-ally and Sherlock exist to simplify these chores, but these require the user to be correctly setup in vscode, and it also does not seem to provide the required configurations for our multi app and multi UI package setup. ## Super simple demo ```html // Before <p>Text to update</p> // After <p> <Trans>Text to update</Trans> </p> ``` ## Related Issue Relates to #885 but is only for marketing for now. Another branch is slowly being prepared for the changes required for the web application while we wait to see how this goes for marketing. ## Changes Made Our configuration does not follow the general standard since we have translations that cross: - Web app - Marketing app - Constants package - UI package This means we want to separate translations into: 1. Marketing - Only translations extracted from `apps/marketing` 2. Web - Only translations extracted from `apps/web` 3. Common - Translations from `packages/constants` and `packages/ui` Then we bundle, compile and minify the translations for production as follows: 1. Marketing = Marketing + Common 2. Web = Web + Common This allows us to only load the required translations when running each application. Overall general changes: - Add i18n to marketing - Add core i18n setup to web - Add pre-commit hook and GH action to extract any new <Trans> tags into the translation files <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added Romanian localization for marketing messages to improve accessibility for Romanian-speaking users. - Introduced German and English translation modules and PO files to enhance the application's internationalization capabilities. - Integrated internationalization support in the RootLayout component for dynamic language settings based on server-side configurations. - Enhanced the Enterprise component with translation support to adapt to user language preferences. - Added a `<meta>` tag to prevent Google from translating the page content, supporting internationalization efforts. - **Bug Fixes** - Resolved minor issues related to the structure and accessibility of translation files. - **Chores** - Updated project dependencies to support the new localization features and ensure stability. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Lucas Smith <me@lucasjamessmith.me> Co-authored-by: Crowdin Bot <support+bot@crowdin.com> Co-authored-by: github-actions <github-actions@documenso.com>
2024-07-26 14:56:42 +10:00
"copy:pdfjs": "node ../../scripts/copy-pdfjs.cjs",
"translate:compile": "lingui compile --typescript"
2022-11-14 23:12:51 +01:00
},
"dependencies": {
"@documenso/api": "*",
"@documenso/assets": "*",
2023-08-30 16:36:22 +10:00
"@documenso/ee": "*",
"@documenso/lib": "*",
"@documenso/prisma": "*",
2023-06-09 18:21:18 +10:00
"@documenso/trpc": "*",
2023-02-02 18:24:23 +01:00
"@documenso/ui": "*",
2023-06-09 18:21:18 +10:00
"@hookform/resolvers": "^3.1.0",
2024-09-03 09:48:54 +10:00
"@lingui/macro": "^4.11.3",
"@lingui/react": "^4.11.3",
feat: add passkeys (#989) ## Description Add support to login with passkeys. Passkeys can be added via the user security settings page. Note: Currently left out adding the type of authentication method for the 'user security audit logs' because we're using the `signIn` next-auth event which doesn't appear to provide the context. Will look into it at another time. ## Changes Made - Add passkeys to login - Add passkeys feature flag - Add page to manage passkeys - Add audit logs relating to passkeys - Updated prisma schema to support passkeys & anonymous verification tokens ## Testing Performed To be done. MacOS: - Safari ✅ - Chrome ✅ - Firefox ✅ Windows: - Chrome [Untested] - Firefox [Untested] Linux: - Chrome [Untested] - Firefox [Untested] iOS: - Safari ✅ ## Checklist <!--- Please check the boxes that apply to this pull request. --> <!--- You can add or remove items as needed. --> - [X] I have tested these changes locally and they work as expected. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced Passkey authentication, including creation, sign-in, and management of passkeys. - Added a Passkeys section in Security Settings for managing user passkeys. - Implemented UI updates for Passkey authentication, including a new dialog for creating passkeys and a data table for managing them. - Enhanced security settings with server-side feature flags to conditionally display new security features. - **Bug Fixes** - Improved UI consistency in the Settings Security Activity Page. - Updated button styling in the 2FA Recovery Codes component for better visibility. - **Refactor** - Streamlined authentication options to include WebAuthn credentials provider. - **Chores** - Updated database schema to support passkeys and related functionality. - Added new audit log types for passkey-related activities. - Enhanced server-only authentication utilities for passkey registration and management. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-03-26 21:11:59 +08:00
"@simplewebauthn/browser": "^9.0.1",
"@simplewebauthn/server": "^9.0.3",
2023-06-09 18:21:18 +10:00
"@tanstack/react-query": "^4.29.5",
feat: add passkeys (#989) ## Description Add support to login with passkeys. Passkeys can be added via the user security settings page. Note: Currently left out adding the type of authentication method for the 'user security audit logs' because we're using the `signIn` next-auth event which doesn't appear to provide the context. Will look into it at another time. ## Changes Made - Add passkeys to login - Add passkeys feature flag - Add page to manage passkeys - Add audit logs relating to passkeys - Updated prisma schema to support passkeys & anonymous verification tokens ## Testing Performed To be done. MacOS: - Safari ✅ - Chrome ✅ - Firefox ✅ Windows: - Chrome [Untested] - Firefox [Untested] Linux: - Chrome [Untested] - Firefox [Untested] iOS: - Safari ✅ ## Checklist <!--- Please check the boxes that apply to this pull request. --> <!--- You can add or remove items as needed. --> - [X] I have tested these changes locally and they work as expected. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced Passkey authentication, including creation, sign-in, and management of passkeys. - Added a Passkeys section in Security Settings for managing user passkeys. - Implemented UI updates for Passkey authentication, including a new dialog for creating passkeys and a data table for managing them. - Enhanced security settings with server-side feature flags to conditionally display new security features. - **Bug Fixes** - Improved UI consistency in the Settings Security Activity Page. - Updated button styling in the 2FA Recovery Codes component for better visibility. - **Refactor** - Streamlined authentication options to include WebAuthn credentials provider. - **Chores** - Updated database schema to support passkeys and related functionality. - Added new audit log types for passkey-related activities. - Enhanced server-only authentication utilities for passkey registration and management. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-03-26 21:11:59 +08:00
"cookie-es": "^1.0.0",
2023-06-09 18:21:18 +10:00
"formidable": "^2.1.1",
"framer-motion": "^10.12.8",
"input-otp": "^1.2.4",
"lucide-react": "^0.279.0",
2023-08-07 23:10:27 +10:00
"luxon": "^3.4.0",
2023-06-09 18:21:18 +10:00
"micro": "^10.0.1",
2024-09-03 09:48:54 +10:00
"next": "14.2.6",
2023-12-02 09:38:24 +11:00
"next-auth": "4.24.5",
"next-axiom": "^1.5.1",
2023-08-01 17:34:17 +10:00
"next-plausible": "^3.10.1",
2023-06-11 01:50:19 -04:00
"next-themes": "^0.2.1",
"papaparse": "^5.4.1",
2023-06-09 18:21:18 +10:00
"perfect-freehand": "^1.2.0",
2023-08-18 20:05:14 +10:00
"posthog-js": "^1.75.3",
"posthog-node": "^3.1.1",
2024-09-03 09:48:54 +10:00
"react": "^18",
2024-09-04 23:13:00 +10:00
"react-call": "^1.3.0",
2024-09-03 09:48:54 +10:00
"react-dom": "^18",
2023-06-09 18:21:18 +10:00
"react-dropzone": "^14.2.3",
"react-hook-form": "^7.43.9",
"react-hotkeys-hook": "^4.4.1",
"react-icons": "^4.11.0",
"react-rnd": "^10.4.1",
"recharts": "^2.7.2",
"remeda": "^2.12.1",
2024-06-28 12:12:15 +10:00
"sharp": "0.32.6",
2023-08-17 19:56:18 +10:00
"ts-pattern": "^5.0.5",
2024-01-30 17:31:27 +11:00
"ua-parser-js": "^1.0.37",
"uqr": "^0.1.2",
"zod": "^3.22.4"
2022-11-15 10:53:04 +01:00
},
"devDependencies": {
2024-08-27 20:34:39 +09:00
"@documenso/tailwind-config": "*",
2024-09-03 09:48:54 +10:00
"@lingui/loader": "^4.11.3",
"@lingui/swc-plugin": "4.0.8",
feat: add passkeys (#989) ## Description Add support to login with passkeys. Passkeys can be added via the user security settings page. Note: Currently left out adding the type of authentication method for the 'user security audit logs' because we're using the `signIn` next-auth event which doesn't appear to provide the context. Will look into it at another time. ## Changes Made - Add passkeys to login - Add passkeys feature flag - Add page to manage passkeys - Add audit logs relating to passkeys - Updated prisma schema to support passkeys & anonymous verification tokens ## Testing Performed To be done. MacOS: - Safari ✅ - Chrome ✅ - Firefox ✅ Windows: - Chrome [Untested] - Firefox [Untested] Linux: - Chrome [Untested] - Firefox [Untested] iOS: - Safari ✅ ## Checklist <!--- Please check the boxes that apply to this pull request. --> <!--- You can add or remove items as needed. --> - [X] I have tested these changes locally and they work as expected. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced Passkey authentication, including creation, sign-in, and management of passkeys. - Added a Passkeys section in Security Settings for managing user passkeys. - Implemented UI updates for Passkey authentication, including a new dialog for creating passkeys and a data table for managing them. - Enhanced security settings with server-side feature flags to conditionally display new security features. - **Bug Fixes** - Improved UI consistency in the Settings Security Activity Page. - Updated button styling in the 2FA Recovery Codes component for better visibility. - **Refactor** - Streamlined authentication options to include WebAuthn credentials provider. - **Chores** - Updated database schema to support passkeys and related functionality. - Added new audit log types for passkey-related activities. - Enhanced server-only authentication utilities for passkey registration and management. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-03-26 21:11:59 +08:00
"@simplewebauthn/types": "^9.0.1",
2023-06-09 18:21:18 +10:00
"@types/formidable": "^2.0.6",
2023-08-07 23:10:27 +10:00
"@types/luxon": "^3.3.1",
2023-06-09 18:21:18 +10:00
"@types/node": "20.1.0",
"@types/papaparse": "^5.3.14",
2024-09-03 09:48:54 +10:00
"@types/react": "^18",
"@types/react-dom": "^18",
2024-03-07 02:57:02 +00:00
"@types/ua-parser-js": "^0.7.39",
"typescript": "5.2.2"
2022-11-14 23:12:51 +01:00
}
}