mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-04 02:01:58 -05:00
ref https://linear.app/ghost/issue/PLG-230 When clicking "Reply" on a reply we now show an "In reply to" reference on the form and when saved show that reference in the rendered view, making it easier to follow discussions within comment replies. - updated calls to `openCommentForm` action when opening a reply to add the in-reply-to data to the `openForm` instance - updated Form comment to use the `openForm` instance data when rendering the in-reply-to reference - updated Comment component to render the in-reply-to reference from the API-provided data - includes click handler to scroll to the referenced comment - added `getCommentInReplyToSnippet` helper function so strip a comment back to plaintext for display in the reply-to reference on the comment form (snippets on other comments are generated server-side) --------- Co-authored-by: Sanne de Vries <sannedv@protonmail.com>
85 lines
2.7 KiB
JSON
85 lines
2.7 KiB
JSON
{
|
|
"name": "@tryghost/comments-ui",
|
|
"version": "0.21.10",
|
|
"license": "MIT",
|
|
"repository": "git@github.com:TryGhost/comments-ui.git",
|
|
"author": "Ghost Foundation",
|
|
"unpkg": "umd/comments-ui.umd.js",
|
|
"files": [
|
|
"umd/",
|
|
"LICENSE",
|
|
"README.md"
|
|
],
|
|
"publishConfig": {
|
|
"access": "public",
|
|
"registry": "https://registry.npmjs.org/"
|
|
},
|
|
"scripts": {
|
|
"dev": "concurrently \"yarn preview --host -l silent\" \"yarn build:watch\"",
|
|
"dev:test": "vite build && vite preview --port 7175",
|
|
"build": "vite build",
|
|
"build:watch": "vite build --watch",
|
|
"preview": "vite preview",
|
|
"test": "yarn test:unit && yarn test:e2e",
|
|
"test:unit": "vitest run --coverage",
|
|
"test:e2e": "NODE_OPTIONS='--experimental-specifier-resolution=node --no-warnings' VITE_TEST=true playwright test",
|
|
"test:slowmo": "TIMEOUT=100000 PLAYWRIGHT_SLOWMO=1000 yarn test:e2e --headed",
|
|
"test:e2e:full": "ALL_BROWSERS=1 yarn test:e2e",
|
|
"lint": "eslint src --ext .js,.ts,.jsx,.tsx --cache",
|
|
"preship": "yarn lint",
|
|
"ship": "STATUS=$(git status --porcelain); echo $STATUS; if [ -z \"$STATUS\" ]; then yarn version; fi",
|
|
"postship": "git push ${GHOST_UPSTREAM:-origin} --follow-tags && npm publish",
|
|
"prepublishOnly": "yarn build"
|
|
},
|
|
"browserslist": {
|
|
"production": [
|
|
">0.2%",
|
|
"not dead",
|
|
"not op_mini all"
|
|
],
|
|
"development": [
|
|
"last 1 chrome version",
|
|
"last 1 firefox version",
|
|
"last 1 safari version"
|
|
]
|
|
},
|
|
"dependencies": {
|
|
"@headlessui/react": "1.7.19",
|
|
"@tiptap/core": "2.9.0",
|
|
"@tiptap/extension-blockquote": "2.9.0",
|
|
"@tiptap/extension-document": "2.9.0",
|
|
"@tiptap/extension-hard-break": "2.9.0",
|
|
"@tiptap/extension-link": "2.9.0",
|
|
"@tiptap/extension-paragraph": "2.9.0",
|
|
"@tiptap/extension-placeholder": "2.9.0",
|
|
"@tiptap/extension-text": "2.9.0",
|
|
"@tiptap/pm": "2.9.0",
|
|
"@tiptap/react": "2.9.0",
|
|
"react": "17.0.2",
|
|
"react-dom": "17.0.2",
|
|
"react-string-replace": "1.1.1"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "1.46.1",
|
|
"@testing-library/jest-dom": "5.17.0",
|
|
"@testing-library/react": "12.1.5",
|
|
"@testing-library/user-event": "14.5.2",
|
|
"@tryghost/i18n": "0.0.0",
|
|
"@vitejs/plugin-react": "4.2.1",
|
|
"@vitest/coverage-v8": "0.34.3",
|
|
"autoprefixer": "10.4.19",
|
|
"bson-objectid": "2.0.4",
|
|
"concurrently": "8.2.2",
|
|
"eslint-plugin-i18next": "6.0.3",
|
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
"eslint-plugin-react-refresh": "0.4.3",
|
|
"eslint-plugin-tailwindcss": "3.13.0",
|
|
"jsdom": "24.1.3",
|
|
"postcss": "8.4.39",
|
|
"tailwindcss": "3.4.14",
|
|
"vite": "4.5.3",
|
|
"vite-plugin-css-injected-by-js": "3.3.0",
|
|
"vite-plugin-svgr": "3.3.0",
|
|
"vitest": "0.34.3"
|
|
}
|
|
}
|