@syntrologie/runtime-sdk 2.4.0-canary.24 → 2.4.0-canary.26
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/dist/actions/schema.js +2 -2
- package/dist/{chunk-LD22WJ44.js → chunk-E26VPJAS.js} +138 -59
- package/dist/chunk-E26VPJAS.js.map +7 -0
- package/dist/{chunk-NM5Y27GX.js → chunk-R5DNAIRI.js} +2 -2
- package/dist/{chunk-WILWIL6L.js → chunk-XDYJ64IN.js} +18 -4
- package/dist/chunk-XDYJ64IN.js.map +7 -0
- package/dist/config/schema.d.ts +3127 -6
- package/dist/config/schema.js +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +2 -2
- package/dist/react.js +3 -3
- package/dist/smart-canvas.esm.js +35 -35
- package/dist/smart-canvas.esm.js.map +3 -3
- package/dist/smart-canvas.js +135 -48
- package/dist/smart-canvas.js.map +2 -2
- package/dist/smart-canvas.min.js +35 -35
- package/dist/smart-canvas.min.js.map +3 -3
- package/dist/version.d.ts +1 -1
- package/package.json +7 -7
- package/schema/canvas-config.schema.json +331 -5
- package/scripts/validate-config.mjs +102 -0
- package/dist/chunk-LD22WJ44.js.map +0 -7
- package/dist/chunk-WILWIL6L.js.map +0 -7
- /package/dist/{chunk-NM5Y27GX.js.map → chunk-R5DNAIRI.js.map} +0 -0
package/dist/config/schema.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -100,7 +100,7 @@ import {
|
|
|
100
100
|
validateAction,
|
|
101
101
|
validateActions,
|
|
102
102
|
widgetRegistry
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-E26VPJAS.js";
|
|
104
104
|
import {
|
|
105
105
|
AddClassZ,
|
|
106
106
|
AnchorIdZ,
|
|
@@ -134,8 +134,8 @@ import {
|
|
|
134
134
|
WaitZ,
|
|
135
135
|
WidgetConfigZ,
|
|
136
136
|
coreActionStepSchemas
|
|
137
|
-
} from "./chunk-
|
|
138
|
-
import "./chunk-
|
|
137
|
+
} from "./chunk-R5DNAIRI.js";
|
|
138
|
+
import "./chunk-XDYJ64IN.js";
|
|
139
139
|
import {
|
|
140
140
|
ActivationConfigZ,
|
|
141
141
|
AnchorVisibleConditionZ,
|
|
@@ -1073,7 +1073,7 @@ function FAQWidget({ config, runtime: runtime7, instanceId }) {
|
|
|
1073
1073
|
};
|
|
1074
1074
|
const renderItems = (items) => items.map((q, index) => _jsx2(FAQItem, { item: q, isExpanded: expandedIds.has(q.config.id), isHighlighted: highlightId === q.config.id, isLast: index === items.length - 1, onToggle: () => handleToggle(q.config.id), theme: resolvedTheme, feedbackConfig, feedbackValue: feedbackState.get(q.config.id), onFeedback: handleFeedback }, q.config.id));
|
|
1075
1075
|
if (visibleQuestions.length === 0) {
|
|
1076
|
-
return _jsx2("div", { style: containerStyle, "data-adaptive-id": instanceId, "data-adaptive-type": "adaptive-faq", children: _jsx2("div", { style: emptyStateStyle, children: "
|
|
1076
|
+
return _jsx2("div", { style: containerStyle, "data-adaptive-id": instanceId, "data-adaptive-type": "adaptive-faq", children: _jsx2("div", { style: emptyStateStyle, children: "You're all set for now! We'll surface answers here when they're relevant to what you're doing." }) });
|
|
1077
1077
|
}
|
|
1078
1078
|
return _jsxs2("div", { style: containerStyle, "data-adaptive-id": instanceId, "data-adaptive-type": "adaptive-faq", children: [config.searchable && _jsxs2("div", { style: baseStyles.searchWrapper, children: [_jsx2("style", { children: `[data-adaptive-id="${instanceId}"] input::placeholder { color: var(--sc-content-search-color, inherit); opacity: 0.7; }` }), _jsx2("input", { type: "text", placeholder: "Search questions...", value: searchQuery, onChange: (e) => setSearchQuery(e.target.value), style: searchInputStyle })] }), _jsx2("div", { style: baseStyles.accordion, children: hasCategories ? Array.from(categoryGroups.entries()).map(([category, items]) => _jsxs2(React2.Fragment, { children: [category && _jsx2("div", { style: categoryHeaderStyle, "data-category-header": category, children: category }), renderItems(items)] }, category != null ? category : "__ungrouped")) : renderItems(filteredQuestions) }), config.searchable && filteredQuestions.length === 0 && searchQuery && _jsxs2("div", { style: { ...baseStyles.noResults, ...themeStyles[resolvedTheme].emptyState }, children: ['No questions found matching "', searchQuery, '"'] })] });
|
|
1079
1079
|
}
|
|
@@ -1506,7 +1506,7 @@ function NavWidget({ config, runtime: runtime7, instanceId }) {
|
|
|
1506
1506
|
};
|
|
1507
1507
|
const renderItems = (items) => items.map((tip, index) => _jsx3(NavTipItem, { item: tip, isExpanded: expandedIds.has(tip.config.id), isLast: index === items.length - 1, onToggle: () => handleToggle(tip.config.id), onNavigate: handleNavigate, theme: resolvedTheme }, tip.config.id));
|
|
1508
1508
|
if (visibleTips.length === 0) {
|
|
1509
|
-
return _jsx3("div", { style: containerStyle, "data-adaptive-id": instanceId, "data-adaptive-type": "adaptive-nav", children: _jsx3("div", { style: emptyStateStyle, children: "
|
|
1509
|
+
return _jsx3("div", { style: containerStyle, "data-adaptive-id": instanceId, "data-adaptive-type": "adaptive-nav", children: _jsx3("div", { style: emptyStateStyle, children: "You're all set for now! We'll share helpful tips here when they're relevant to what you're doing." }) });
|
|
1510
1510
|
}
|
|
1511
1511
|
return _jsx3("div", { style: containerStyle, "data-adaptive-id": instanceId, "data-adaptive-type": "adaptive-nav", children: _jsx3("div", { style: baseStyles2.accordion, children: hasCategories ? Array.from(categoryGroups.entries()).map(([category, items]) => _jsxs3(React3.Fragment, { children: [category && _jsx3("div", { style: categoryHeaderStyle, "data-category-header": category, children: category }), renderItems(items)] }, category != null ? category : "__ungrouped")) : renderItems(visibleTips) }) });
|
|
1512
1512
|
}
|