@sub-zero/cocoa 0.1.0 → 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/README.md +3 -3
- package/dist/cocoa.js +11 -4
- package/dist/index.cjs +11 -4
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +11 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Cocoa
|
|
2
2
|
|
|
3
|
-
A
|
|
3
|
+
A circular Cocoa portrait button that opens support chat at the bottom right of any web application. Cocoa connects visitors
|
|
4
4
|
to your SubZero chatbot and puts conversations in **Agents → Chatbots**, where your
|
|
5
5
|
team can view, reply, approve agent drafts, and take over.
|
|
6
6
|
|
|
@@ -135,10 +135,10 @@ redirects rejected. An allowed website origin controls embedding; it does not
|
|
|
135
135
|
verify the visitor's identity. Do not provide account-specific private data
|
|
136
136
|
based only on a name typed into chat.
|
|
137
137
|
|
|
138
|
-
For Content Security Policy, allow the API under `connect-src`, the script source
|
|
138
|
+
For Content Security Policy, allow `data:` under `img-src` for the bundled Cocoa portrait, the API under `connect-src`, the script source
|
|
139
139
|
under `script-src`, and supply a valid nonce through the `nonce` option (or script
|
|
140
140
|
nonce attribute) for the widget stylesheet. The widget uses DOM APIs and is
|
|
141
|
-
compatible with Trusted Types enforcement. No remote fonts, images,
|
|
141
|
+
compatible with Trusted Types enforcement. The supplied Cocoa portrait is bundled in the widget, so it needs no external image host. No remote fonts, images,
|
|
142
142
|
iframes, analytics, model SDKs, or third-party styles are loaded.
|
|
143
143
|
|
|
144
144
|
Existing SubZero chat webhooks and human approval policies apply unchanged. RDK
|