@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 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. Supports mounting a full FAQ widget, scrolling to specific items, toggling item state, and dynamically updating the item list at runtime.
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`.