siarashield_workspace 0.0.8 → 0.0.9
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.md +14 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -58,14 +58,24 @@ Add `CaptchaSubmit` class in your submit button:
|
|
|
58
58
|
|
|
59
59
|
## jQuery loading behavior
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
The package checks if jQuery already exists in the user project (`window.jQuery`, `window.$`, or existing jquery script tag).
|
|
62
|
+
If jQuery is already available, package will not load it again.
|
|
63
|
+
If jQuery is missing, package will load:
|
|
64
|
+
- `https://embedcdn.mycybersiara.com/capcha-temple/js/jquery.min.js`
|
|
65
65
|
|
|
66
66
|
Also loads:
|
|
67
67
|
- `https://embedcdn.mycybersiara.com/CaptchaFormate/CaptchaResources.js`
|
|
68
68
|
|
|
69
|
+
## Submit only when captcha is valid
|
|
70
|
+
|
|
71
|
+
Put submit logic inside `if (result.ok)`.
|
|
72
|
+
For best UX, use async check (`checkSiaraShieldCaptchaAsync`) to avoid first-click timing delay.
|
|
73
|
+
|
|
74
|
+
## CSP (strict policy) support
|
|
75
|
+
|
|
76
|
+
Keep CSP allowlist for required hosts:
|
|
77
|
+
- `https://embedcdn.mycybersiara.com`
|
|
78
|
+
|
|
69
79
|
## Build and pack
|
|
70
80
|
|
|
71
81
|
From workspace root:
|