gitalk-react 1.0.0-beta.7 → 1.0.0
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/README-zh-CN.md +11 -8
- package/README.md +12 -8
- package/dist/gitalk-dark.css +1 -1
- package/dist/gitalk-light.css +1 -1
- package/dist/gitalk.d.ts +174 -6
- package/dist/gitalk.js +15055 -12610
- package/dist/gitalk.umd.cjs +31 -28
- package/lib/components/action.tsx +6 -6
- package/lib/components/avatar.tsx +6 -6
- package/lib/components/button.tsx +6 -6
- package/lib/components/comment-textarea.tsx +8 -6
- package/lib/components/comment.tsx +28 -9
- package/lib/components/comments-list.tsx +12 -6
- package/lib/components/meta.tsx +12 -8
- package/lib/components/svg.tsx +6 -6
- package/lib/constants/index.ts +23 -9
- package/lib/gitalk.tsx +12 -2
- package/lib/i18n/ar.json +20 -0
- package/lib/i18n/bn.json +20 -0
- package/lib/i18n/hi.json +20 -0
- package/lib/i18n/index.ts +36 -23
- package/lib/i18n/pt.json +20 -0
- package/lib/i18n/ur.json +20 -0
- package/lib/interfaces/index.ts +10 -8
- package/lib/themes/base.scss +9 -7
- package/package.json +30 -27
- /package/lib/i18n/{es-ES.json → es.json} +0 -0
package/lib/themes/base.scss
CHANGED
|
@@ -46,9 +46,9 @@ $gt-breakpoint-mobile: 480px;
|
|
|
46
46
|
font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
|
|
47
47
|
font-size: $gt-size-base;
|
|
48
48
|
font-weight: 400;
|
|
49
|
+
font-synthesis: none;
|
|
49
50
|
line-height: 1.5;
|
|
50
51
|
color: var(--gt-color-text);
|
|
51
|
-
font-synthesis: none;
|
|
52
52
|
text-rendering: optimizelegibility;
|
|
53
53
|
-webkit-font-smoothing: antialiased;
|
|
54
54
|
-moz-osx-font-smoothing: grayscale;
|
|
@@ -388,7 +388,7 @@ $gt-breakpoint-mobile: 480px;
|
|
|
388
388
|
padding: em(12px);
|
|
389
389
|
font-size: em(14px);
|
|
390
390
|
color: inherit;
|
|
391
|
-
|
|
391
|
+
overflow-wrap: break-word;
|
|
392
392
|
resize: none;
|
|
393
393
|
outline: none;
|
|
394
394
|
background-color: var(--gt-color-input-bg);
|
|
@@ -592,12 +592,14 @@ $gt-breakpoint-mobile: 480px;
|
|
|
592
592
|
}
|
|
593
593
|
|
|
594
594
|
&-admin {
|
|
595
|
-
|
|
596
|
-
|
|
595
|
+
&--highlight {
|
|
596
|
+
.gt-comment-content {
|
|
597
|
+
box-shadow: 0 em(2px) em(12px) 0 var(--gt-color-comment-shadow);
|
|
597
598
|
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
599
|
+
&:hover {
|
|
600
|
+
box-shadow: 0 em(2px) em(24px) 0
|
|
601
|
+
var(--gt-color-comment-shadow-admin);
|
|
602
|
+
}
|
|
601
603
|
}
|
|
602
604
|
}
|
|
603
605
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gitalk-react",
|
|
3
|
-
"version": "1.0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "LolipopJ",
|
|
@@ -49,9 +49,10 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"ahooks": "^3.0.0",
|
|
52
|
+
"classnames": "^2.0.0",
|
|
52
53
|
"date-fns": "^4.0.0",
|
|
53
54
|
"node-polyglot": "^2.0.0",
|
|
54
|
-
"octokit": "^
|
|
55
|
+
"octokit": "^5.0.0",
|
|
55
56
|
"react-flip-move": "^3.0.0"
|
|
56
57
|
},
|
|
57
58
|
"peerDependencies": {
|
|
@@ -59,33 +60,35 @@
|
|
|
59
60
|
"react-dom": ">=16.8.0"
|
|
60
61
|
},
|
|
61
62
|
"devDependencies": {
|
|
62
|
-
"@eslint/js": "^9.
|
|
63
|
-
"@octokit/types": "^
|
|
64
|
-
"@types/node": "^
|
|
63
|
+
"@eslint/js": "^9.39.4",
|
|
64
|
+
"@octokit/types": "^16.0.0",
|
|
65
|
+
"@types/node": "^24.0.0",
|
|
65
66
|
"@types/node-polyglot": "^2.5.0",
|
|
66
|
-
"@types/react": "^16.
|
|
67
|
-
"@types/react-dom": "^16.
|
|
68
|
-
"@vitejs/plugin-react": "^
|
|
69
|
-
"eslint": "^9.
|
|
70
|
-
"eslint-config-prettier": "^10.1.
|
|
71
|
-
"eslint-plugin-prettier": "^5.
|
|
67
|
+
"@types/react": "^16.14.69",
|
|
68
|
+
"@types/react-dom": "^16.9.25",
|
|
69
|
+
"@vitejs/plugin-react": "^6.0.1",
|
|
70
|
+
"eslint": "^9.39.4",
|
|
71
|
+
"eslint-config-prettier": "^10.1.8",
|
|
72
|
+
"eslint-plugin-prettier": "^5.5.5",
|
|
72
73
|
"eslint-plugin-react": "^7.37.5",
|
|
73
|
-
"eslint-plugin-react-hooks": "^
|
|
74
|
-
"eslint-plugin-react-refresh": "^0.
|
|
74
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
75
|
+
"eslint-plugin-react-refresh": "^0.5.2",
|
|
75
76
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
76
|
-
"github-markdown-css": "^5.
|
|
77
|
-
"globals": "^
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"react
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"stylelint
|
|
85
|
-
"stylelint-config-
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
77
|
+
"github-markdown-css": "^5.9.0",
|
|
78
|
+
"globals": "^17.4.0",
|
|
79
|
+
"postcss": "^8.5.8",
|
|
80
|
+
"prettier": "^3.8.1",
|
|
81
|
+
"react": "^16.14.0",
|
|
82
|
+
"react-dom": "^16.14.0",
|
|
83
|
+
"rollup-plugin-visualizer": "^7.0.1",
|
|
84
|
+
"sass-embedded": "^1.98.0",
|
|
85
|
+
"stylelint": "^17.5.0",
|
|
86
|
+
"stylelint-config-recess-order": "^7.7.0",
|
|
87
|
+
"stylelint-config-standard-scss": "^17.0.0",
|
|
88
|
+
"stylelint-order": "^8.1.1",
|
|
89
|
+
"typescript": "~5.9.3",
|
|
90
|
+
"typescript-eslint": "^8.57.1",
|
|
91
|
+
"vite": "^8.0.1",
|
|
92
|
+
"vite-plugin-dts": "^4.5.4"
|
|
90
93
|
}
|
|
91
94
|
}
|
|
File without changes
|