@syntrologie/runtime-sdk 2.8.0-canary.47 → 2.8.0-canary.48
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 +4 -4
- package/dist/{chunk-6GUJBWNR.js → chunk-6U2AHJYW.js} +2 -2
- package/dist/{chunk-6GUJBWNR.js.map → chunk-6U2AHJYW.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/react.js +1 -1
- package/dist/smart-canvas.esm.js +2 -2
- package/dist/smart-canvas.esm.js.map +1 -1
- package/dist/smart-canvas.js +2 -2
- package/dist/smart-canvas.js.map +1 -1
- package/dist/smart-canvas.min.js +2 -2
- package/dist/smart-canvas.min.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/CAPABILITIES.md
CHANGED
|
@@ -368,7 +368,7 @@ Each item in the `items` array:
|
|
|
368
368
|
| `config.category` | string | No | Category for grouping items |
|
|
369
369
|
| `config.priority` | number | No | Priority weight for ordering |
|
|
370
370
|
| `config.answerStrategy` | AnswerStrategy | No | AI-generated answer configuration |
|
|
371
|
-
| `
|
|
371
|
+
| `triggerWhen` | DecisionStrategy \| null | No | Conditional visibility strategy |
|
|
372
372
|
|
|
373
373
|
```json
|
|
374
374
|
{
|
|
@@ -404,7 +404,7 @@ Each item in the `items` array:
|
|
|
404
404
|
"category": "Billing",
|
|
405
405
|
"priority": 5
|
|
406
406
|
},
|
|
407
|
-
"
|
|
407
|
+
"triggerWhen": {
|
|
408
408
|
"type": "rules",
|
|
409
409
|
"rules": [
|
|
410
410
|
{
|
|
@@ -541,12 +541,12 @@ Dynamically adds, removes, reorders, or replaces FAQ items at runtime.
|
|
|
541
541
|
|
|
542
542
|
The FAQ widget uses a **compositional action pattern** where `faq:question` actions serve as configuration data rendered by the widget, rather than being executed by the runtime. This allows:
|
|
543
543
|
|
|
544
|
-
- **Per-item conditional visibility** via `
|
|
544
|
+
- **Per-item conditional visibility** via `triggerWhen` strategies -- items can appear or hide based on page URL, user segment, viewport, or any DecisionStrategy condition
|
|
545
545
|
- **Category grouping** -- items with a `category` field are grouped under collapsible section headers
|
|
546
546
|
- **Dynamic injection** -- `injections` rules can add items when trigger conditions are met, supporting contextual FAQ content
|
|
547
547
|
- **Ordering control** -- the `ordering` strategy determines how items are sorted within categories
|
|
548
548
|
|
|
549
|
-
Items without `
|
|
549
|
+
Items without `triggerWhen` are always visible. Items without `category` appear in an ungrouped section.
|
|
550
550
|
|
|
551
551
|
## Rich Answer Content
|
|
552
552
|
|
|
@@ -3456,7 +3456,7 @@ function getAntiFlickerSnippet(config = {}) {
|
|
|
3456
3456
|
}
|
|
3457
3457
|
|
|
3458
3458
|
// src/version.ts
|
|
3459
|
-
var SDK_VERSION = "2.8.0-canary.
|
|
3459
|
+
var SDK_VERSION = "2.8.0-canary.48";
|
|
3460
3460
|
|
|
3461
3461
|
// src/types.ts
|
|
3462
3462
|
var SDK_SCHEMA_VERSION = "2.0";
|
|
@@ -12243,4 +12243,4 @@ export {
|
|
|
12243
12243
|
encodeToken,
|
|
12244
12244
|
Syntro
|
|
12245
12245
|
};
|
|
12246
|
-
//# sourceMappingURL=chunk-
|
|
12246
|
+
//# sourceMappingURL=chunk-6U2AHJYW.js.map
|