@waline/client 2.9.0 → 2.10.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/dist/component.mjs +1 -1
- package/dist/component.mjs.map +1 -1
- package/dist/legacy.umd.d.ts +4 -0
- package/dist/legacy.umd.js +1 -1
- package/dist/legacy.umd.js.map +1 -1
- package/dist/pageview.cjs +1 -1
- package/dist/pageview.cjs.map +1 -1
- package/dist/pageview.js +1 -1
- package/dist/pageview.js.map +1 -1
- package/dist/pageview.mjs +1 -1
- package/dist/pageview.mjs.map +1 -1
- package/dist/shim.cjs +1 -1
- package/dist/shim.cjs.map +1 -1
- package/dist/shim.d.cts +8 -0
- package/dist/shim.d.mts +8 -0
- package/dist/shim.mjs +1 -1
- package/dist/shim.mjs.map +1 -1
- package/dist/waline.cjs +1 -1
- package/dist/waline.cjs.map +1 -1
- package/dist/waline.d.cts +8 -0
- package/dist/waline.d.mts +8 -0
- package/dist/waline.d.ts +8 -0
- package/dist/waline.js +1 -1
- package/dist/waline.js.map +1 -1
- package/dist/waline.mjs +1 -1
- package/dist/waline.mjs.map +1 -1
- package/package.json +19 -17
- package/src/components/CommentBox.vue +13 -1
- package/src/components/CommentCard.vue +0 -7
- package/src/components/RecaptchaV3/IReCaptchaOptions.ts +6 -0
- package/src/components/RecaptchaV3/README.md +3 -0
- package/src/components/RecaptchaV3/RecaptchaVuePlugin.ts +86 -0
- package/src/init.ts +11 -0
- package/src/typings/comment.ts +4 -0
- package/src/typings/waline.ts +5 -0
- package/src/utils/config.ts +1 -1
- package/LICENSE +0 -339
package/dist/waline.d.cts
CHANGED
|
@@ -117,6 +117,10 @@ interface WalineCommentData {
|
|
|
117
117
|
* Comment link
|
|
118
118
|
*/
|
|
119
119
|
url: string;
|
|
120
|
+
/**
|
|
121
|
+
* Recaptcha Token
|
|
122
|
+
*/
|
|
123
|
+
recaptchaV3?: string;
|
|
120
124
|
}
|
|
121
125
|
declare type WalineCommentStatus = 'approved' | 'waiting' | 'spam';
|
|
122
126
|
interface WalineComment extends Exclude<WalineCommentData, 'ua'> {
|
|
@@ -384,6 +388,10 @@ interface WalineProps {
|
|
|
384
388
|
* @default true
|
|
385
389
|
*/
|
|
386
390
|
copyright?: boolean;
|
|
391
|
+
/**
|
|
392
|
+
* recaptcha v3 client key
|
|
393
|
+
*/
|
|
394
|
+
recaptchaV3Key?: string;
|
|
387
395
|
}
|
|
388
396
|
|
|
389
397
|
interface WalineInitOptions extends Omit<WalineProps, 'path'> {
|
package/dist/waline.d.mts
CHANGED
|
@@ -117,6 +117,10 @@ interface WalineCommentData {
|
|
|
117
117
|
* Comment link
|
|
118
118
|
*/
|
|
119
119
|
url: string;
|
|
120
|
+
/**
|
|
121
|
+
* Recaptcha Token
|
|
122
|
+
*/
|
|
123
|
+
recaptchaV3?: string;
|
|
120
124
|
}
|
|
121
125
|
declare type WalineCommentStatus = 'approved' | 'waiting' | 'spam';
|
|
122
126
|
interface WalineComment extends Exclude<WalineCommentData, 'ua'> {
|
|
@@ -384,6 +388,10 @@ interface WalineProps {
|
|
|
384
388
|
* @default true
|
|
385
389
|
*/
|
|
386
390
|
copyright?: boolean;
|
|
391
|
+
/**
|
|
392
|
+
* recaptcha v3 client key
|
|
393
|
+
*/
|
|
394
|
+
recaptchaV3Key?: string;
|
|
387
395
|
}
|
|
388
396
|
|
|
389
397
|
interface WalineInitOptions extends Omit<WalineProps, 'path'> {
|
package/dist/waline.d.ts
CHANGED
|
@@ -117,6 +117,10 @@ interface WalineCommentData {
|
|
|
117
117
|
* Comment link
|
|
118
118
|
*/
|
|
119
119
|
url: string;
|
|
120
|
+
/**
|
|
121
|
+
* Recaptcha Token
|
|
122
|
+
*/
|
|
123
|
+
recaptchaV3?: string;
|
|
120
124
|
}
|
|
121
125
|
declare type WalineCommentStatus = 'approved' | 'waiting' | 'spam';
|
|
122
126
|
interface WalineComment extends Exclude<WalineCommentData, 'ua'> {
|
|
@@ -384,6 +388,10 @@ interface WalineProps {
|
|
|
384
388
|
* @default true
|
|
385
389
|
*/
|
|
386
390
|
copyright?: boolean;
|
|
391
|
+
/**
|
|
392
|
+
* recaptcha v3 client key
|
|
393
|
+
*/
|
|
394
|
+
recaptchaV3Key?: string;
|
|
387
395
|
}
|
|
388
396
|
|
|
389
397
|
interface WalineInitOptions extends Omit<WalineProps, 'path'> {
|