@tryghost/comments-ui 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.env ADDED
@@ -0,0 +1 @@
1
+ REACT_APP_VERSION=$npm_package_version
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2013-2022 Ghost Foundation
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,77 @@
1
+ # Comments Ui
2
+
3
+ # Getting Started with Create React App
4
+
5
+ This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
6
+
7
+ ## Available Scripts
8
+
9
+ In the project directory, you can run:
10
+
11
+ ### `yarn start`
12
+
13
+ Runs the app in the development mode.\
14
+ Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
15
+
16
+ The page will reload when you make changes.\
17
+ You may also see any lint errors in the console.
18
+
19
+ ### `yarn test`
20
+
21
+ Launches the test runner in the interactive watch mode.\
22
+ See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
23
+
24
+ ### `yarn build`
25
+
26
+ Builds the app for production to the `build` folder.\
27
+ It correctly bundles React in production mode and optimizes the build for the best performance.
28
+
29
+ The build is minified and the filenames include the hashes.\
30
+ Your app is ready to be deployed!
31
+
32
+ See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
33
+
34
+ ### `yarn eject`
35
+
36
+ **Note: this is a one-way operation. Once you `eject`, you can't go back!**
37
+
38
+ If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
39
+
40
+ Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.
41
+
42
+ You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.
43
+
44
+ ## Learn More
45
+
46
+ You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
47
+
48
+ To learn React, check out the [React documentation](https://reactjs.org/).
49
+
50
+ ### Code Splitting
51
+
52
+ This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
53
+
54
+ ### Analyzing the Bundle Size
55
+
56
+ This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
57
+
58
+ ### Making a Progressive Web App
59
+
60
+ This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
61
+
62
+ ### Advanced Configuration
63
+
64
+ This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
65
+
66
+ ### Deployment
67
+
68
+ This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
69
+
70
+ ### `yarn build` fails to minify
71
+
72
+ This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
73
+
74
+
75
+ # Copyright & License
76
+
77
+ Copyright (c) 2013-2022 Ghost Foundation - Released under the [MIT license](LICENSE).
package/package.json ADDED
@@ -0,0 +1,97 @@
1
+ {
2
+ "name": "@tryghost/comments-ui",
3
+ "version": "0.1.1",
4
+ "license": "MIT",
5
+ "repository": "git@github.com:TryGhost/comments-ui.git",
6
+ "author": "Ghost Foundation",
7
+ "unpkg": "umd/comments-ui.umd.js",
8
+ "files": [
9
+ "umd/",
10
+ "LICENSE",
11
+ "README.md"
12
+ ],
13
+ "publishConfig": {
14
+ "access": "public",
15
+ "registry": "https://registry.npmjs.org/"
16
+ },
17
+ "dependencies": {
18
+ "@sentry/react": "^7.5.0",
19
+ "@testing-library/jest-dom": "5.16.2",
20
+ "@testing-library/react": "12.1.2",
21
+ "@testing-library/user-event": "14.0.0",
22
+ "@tiptap/core": "^2.0.0-beta.182",
23
+ "@tiptap/extension-blockquote": "^2.0.0-beta.29",
24
+ "@tiptap/extension-document": "^2.0.0-beta.17",
25
+ "@tiptap/extension-link": "^2.0.0-beta.43",
26
+ "@tiptap/extension-paragraph": "^2.0.0-beta.26",
27
+ "@tiptap/extension-placeholder": "^2.0.0-beta.53",
28
+ "@tiptap/extension-text": "^2.0.0-beta.17",
29
+ "@tiptap/react": "^2.0.0-beta.114",
30
+ "react": "17.0.2",
31
+ "react-dom": "17.0.2",
32
+ "react-scripts": "4.0.3",
33
+ "react-shadow": "^19.0.3"
34
+ },
35
+ "scripts": {
36
+ "start": "BROWSER=none react-scripts start",
37
+ "start:combined": "BROWSER=none node ./scripts/start-combined.js",
38
+ "start:dev": "PORT=4000 node ./scripts/start-mode.js",
39
+ "dev": "node ./scripts/dev-mode.js",
40
+ "build": "npm run build:combined",
41
+ "build:original": "react-scripts build",
42
+ "build:combined": "node ./scripts/build-combined.js",
43
+ "build:bundle": "webpack --config webpack.config.js",
44
+ "test:ui": "react-scripts test",
45
+ "test": "yarn test:ui --watchAll=false --coverage",
46
+ "eject": "react-scripts eject",
47
+ "lint": "eslint src --ext .js --cache",
48
+ "preship": "yarn lint",
49
+ "ship": "STATUS=$(git status --porcelain); echo $STATUS; if [ -z \"$STATUS\" ]; then yarn publish && git push ${GHOST_UPSTREAM:-upstream} main --follow-tags; fi",
50
+ "posttest": "yarn lint",
51
+ "analyze": "source-map-explorer 'umd/*.js'",
52
+ "prepublishOnly": "yarn build",
53
+ "tailwind": "npx tailwindcss -i ./src/index.css -o ./public/main.css --watch --minify"
54
+ },
55
+ "eslintConfig": {
56
+ "extends": [
57
+ "react-app",
58
+ "react-app/jest",
59
+ "plugin:ghost/browser"
60
+ ],
61
+ "plugins": [
62
+ "ghost"
63
+ ]
64
+ },
65
+ "browserslist": {
66
+ "production": [
67
+ ">0.2%",
68
+ "not dead",
69
+ "not op_mini all"
70
+ ],
71
+ "development": [
72
+ "last 1 chrome version",
73
+ "last 1 firefox version",
74
+ "last 1 safari version"
75
+ ]
76
+ },
77
+ "devDependencies": {
78
+ "@headlessui/react": "1.6.5",
79
+ "autoprefixer": "^10.4.7",
80
+ "chalk": "4.1.2",
81
+ "chokidar": "3.5.2",
82
+ "copy-webpack-plugin": "6.4.1",
83
+ "eslint-plugin-ghost": "2.12.0",
84
+ "minimist": "1.2.5",
85
+ "ora": "5.4.1",
86
+ "postcss": "^8.4.14",
87
+ "rewire": "6.0.0",
88
+ "serve-handler": "6.1.3",
89
+ "source-map-explorer": "2.5.2",
90
+ "tailwindcss": "^3.1.4",
91
+ "webpack-cli": "3.3.12"
92
+ },
93
+ "resolutions": {
94
+ "//": "See https://github.com/facebook/create-react-app/issues/11773",
95
+ "react-error-overlay": "6.0.9"
96
+ }
97
+ }