@syntrologie/runtime-sdk 2.7.0 → 2.8.0-canary.10
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/CAPABILITIES.md +23 -1
- package/dist/{chunk-UUFNSBJN.js → chunk-UH5R7GWH.js} +262 -140
- package/dist/chunk-UH5R7GWH.js.map +7 -0
- package/dist/components/TileIcon.d.ts +2 -2
- package/dist/components/emojiToIcon.d.ts +24 -0
- package/dist/index.js +2271 -54
- package/dist/index.js.map +4 -4
- package/dist/react.js +1 -1
- package/dist/smart-canvas.esm.js +113 -47
- package/dist/smart-canvas.esm.js.map +4 -4
- package/dist/smart-canvas.js +3395 -939
- package/dist/smart-canvas.js.map +4 -4
- package/dist/smart-canvas.min.js +113 -47
- package/dist/smart-canvas.min.js.map +4 -4
- package/dist/version.d.ts +1 -1
- package/package.json +7 -7
- package/schema/canvas-config.schema.json +100 -2
- package/dist/chunk-UUFNSBJN.js.map +0 -7
package/CAPABILITIES.md
CHANGED
|
@@ -292,7 +292,7 @@ Removes a CSS class from an element.
|
|
|
292
292
|
|
|
293
293
|
# @syntrologie/adapt-faq
|
|
294
294
|
|
|
295
|
-
Collapsible Q&A accordion with actions, rich content, feedback, and personalization.
|
|
295
|
+
Collapsible Q&A accordion with actions, rich content, feedback, and personalization.
|
|
296
296
|
|
|
297
297
|
## Actions
|
|
298
298
|
|
|
@@ -1284,3 +1284,25 @@ Control when adaptives activate using `DecisionStrategy`:
|
|
|
1284
1284
|
- Listen for `action.failed` to handle errors
|
|
1285
1285
|
- Track `action.applied` for analytics
|
|
1286
1286
|
- Use EventBus for cross-adaptive coordination
|
|
1287
|
+
|
|
1288
|
+
### 6. JavaScript API (window.SynOS)
|
|
1289
|
+
|
|
1290
|
+
When generating `content:insertHtml` with interactive elements (buttons, links) that need to control the SDK canvas panel, use the `window.SynOS.handle` API:
|
|
1291
|
+
|
|
1292
|
+
| Method | Description |
|
|
1293
|
+
|--------|-------------|
|
|
1294
|
+
| `window.SynOS.handle.open()` | Open the canvas panel |
|
|
1295
|
+
| `window.SynOS.handle.close()` | Close the canvas panel |
|
|
1296
|
+
|
|
1297
|
+
Example — button that opens the canvas:
|
|
1298
|
+
|
|
1299
|
+
```json
|
|
1300
|
+
{
|
|
1301
|
+
"kind": "insert_html",
|
|
1302
|
+
"anchorId": ".pricing-heading",
|
|
1303
|
+
"html": "<button onclick='window.SynOS?.handle?.open()'>Help Me Choose</button>",
|
|
1304
|
+
"position": "after"
|
|
1305
|
+
}
|
|
1306
|
+
```
|
|
1307
|
+
|
|
1308
|
+
**WARNING:** There is NO `window.SynOS.canvas` property. Always use `window.SynOS.handle`.
|