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.
Files changed (2) hide show
  1. package/README.md +14 -4
  2. 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
- Loads:
62
- - jQuery: `https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js`
63
-
64
- If user already has another jQuery then no need to import this one, it works properly.
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:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "siarashield_workspace",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "Angular wrapper for CyberSiara SiaraShield captcha embed.",
5
5
  "keywords": [
6
6
  "cybersiara",