@syntrologie/adapt-feedback 2.8.0-canary.239
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/FeedbackWidget.d.ts +47 -0
- package/dist/FeedbackWidget.d.ts.map +1 -0
- package/dist/FeedbackWidget.js +9 -0
- package/dist/FeedbackWidget.js.map +7 -0
- package/dist/cdn.d.ts +43 -0
- package/dist/cdn.d.ts.map +1 -0
- package/dist/chunk-3TUS6XVJ.js +880 -0
- package/dist/chunk-3TUS6XVJ.js.map +7 -0
- package/dist/editor-lit.d.ts +31 -0
- package/dist/editor-lit.d.ts.map +1 -0
- package/dist/editor-lit.js +249 -0
- package/dist/editor-lit.js.map +7 -0
- package/dist/engine/FlowEngine.d.ts +25 -0
- package/dist/engine/FlowEngine.d.ts.map +1 -0
- package/dist/rendering/ChoiceInput.d.ts +17 -0
- package/dist/rendering/ChoiceInput.d.ts.map +1 -0
- package/dist/rendering/EndScreen.d.ts +12 -0
- package/dist/rendering/EndScreen.d.ts.map +1 -0
- package/dist/rendering/NpsInput.d.ts +21 -0
- package/dist/rendering/NpsInput.d.ts.map +1 -0
- package/dist/rendering/RatingInput.d.ts +17 -0
- package/dist/rendering/RatingInput.d.ts.map +1 -0
- package/dist/rendering/TextInput.d.ts +24 -0
- package/dist/rendering/TextInput.d.ts.map +1 -0
- package/dist/rendering/ThumbsInput.d.ts +13 -0
- package/dist/rendering/ThumbsInput.d.ts.map +1 -0
- package/dist/runtime.d.ts +20 -0
- package/dist/runtime.d.ts.map +1 -0
- package/dist/runtime.js +29 -0
- package/dist/runtime.js.map +7 -0
- package/dist/schema.d.ts +319 -0
- package/dist/schema.d.ts.map +1 -0
- package/dist/schema.js +100 -0
- package/dist/schema.js.map +7 -0
- package/dist/types.d.ts +33 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +76 -0
package/dist/runtime.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FeedbackWidgetLitMountable
|
|
3
|
+
} from "./chunk-3TUS6XVJ.js";
|
|
4
|
+
|
|
5
|
+
// src/runtime.ts
|
|
6
|
+
var runtime = {
|
|
7
|
+
id: "adaptive-feedback",
|
|
8
|
+
version: "1.0.0",
|
|
9
|
+
name: "Feedback Survey",
|
|
10
|
+
description: "Multi-step survey widget with branching logic and PostHog events",
|
|
11
|
+
executors: [],
|
|
12
|
+
widgets: [
|
|
13
|
+
{
|
|
14
|
+
id: "adaptive-feedback:survey",
|
|
15
|
+
component: FeedbackWidgetLitMountable,
|
|
16
|
+
metadata: {
|
|
17
|
+
name: "Feedback Survey",
|
|
18
|
+
description: "Multi-step survey with branching, NPS, ratings, and free text",
|
|
19
|
+
icon: "\u{1F4CB}"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
};
|
|
24
|
+
var runtime_default = runtime;
|
|
25
|
+
export {
|
|
26
|
+
runtime_default as default,
|
|
27
|
+
runtime
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=runtime.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/runtime.ts"],
|
|
4
|
+
"sourcesContent": ["import { FeedbackWidgetLitMountable } from './FeedbackWidget.js';\n\nexport const runtime = {\n id: 'adaptive-feedback',\n version: '1.0.0',\n name: 'Feedback Survey',\n description: 'Multi-step survey widget with branching logic and PostHog events',\n\n executors: [],\n\n widgets: [\n {\n id: 'adaptive-feedback:survey',\n component: FeedbackWidgetLitMountable,\n metadata: {\n name: 'Feedback Survey',\n description: 'Multi-step survey with branching, NPS, ratings, and free text',\n icon: '\\u{1F4CB}',\n },\n },\n ],\n};\n\nexport default runtime;\n"],
|
|
5
|
+
"mappings": ";;;;;AAEO,IAAM,UAAU;AAAA,EACrB,IAAI;AAAA,EACJ,SAAS;AAAA,EACT,MAAM;AAAA,EACN,aAAa;AAAA,EAEb,WAAW,CAAC;AAAA,EAEZ,SAAS;AAAA,IACP;AAAA,MACE,IAAI;AAAA,MACJ,WAAW;AAAA,MACX,UAAU;AAAA,QACR,MAAM;AAAA,QACN,aAAa;AAAA,QACb,MAAM;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACF;AAEA,IAAO,kBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/dist/schema.d.ts
ADDED
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const configSchema: z.ZodObject<{
|
|
3
|
+
title: z.ZodOptional<z.ZodString>;
|
|
4
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
type: z.ZodEnum<["thumbs", "rating", "nps", "choice", "text", "end"]>;
|
|
7
|
+
prompt: z.ZodString;
|
|
8
|
+
description: z.ZodOptional<z.ZodString>;
|
|
9
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
10
|
+
ratingMax: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<3>, z.ZodLiteral<5>, z.ZodLiteral<10>]>>;
|
|
11
|
+
npsLowLabel: z.ZodOptional<z.ZodString>;
|
|
12
|
+
npsHighLabel: z.ZodOptional<z.ZodString>;
|
|
13
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
14
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
+
next: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
|
|
16
|
+
goto: z.ZodString;
|
|
17
|
+
if: z.ZodObject<{
|
|
18
|
+
op: z.ZodEnum<["eq", "neq", "lt", "lte", "gt", "gte", "in"]>;
|
|
19
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString, "many">]>;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
op: "eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in";
|
|
22
|
+
value: string | number | string[];
|
|
23
|
+
}, {
|
|
24
|
+
op: "eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in";
|
|
25
|
+
value: string | number | string[];
|
|
26
|
+
}>;
|
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
goto: string;
|
|
29
|
+
if: {
|
|
30
|
+
op: "eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in";
|
|
31
|
+
value: string | number | string[];
|
|
32
|
+
};
|
|
33
|
+
}, {
|
|
34
|
+
goto: string;
|
|
35
|
+
if: {
|
|
36
|
+
op: "eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in";
|
|
37
|
+
value: string | number | string[];
|
|
38
|
+
};
|
|
39
|
+
}>, "many">]>>;
|
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
id: string;
|
|
42
|
+
type: "thumbs" | "rating" | "nps" | "choice" | "text" | "end";
|
|
43
|
+
prompt: string;
|
|
44
|
+
options?: string[] | undefined;
|
|
45
|
+
placeholder?: string | undefined;
|
|
46
|
+
required?: boolean | undefined;
|
|
47
|
+
description?: string | undefined;
|
|
48
|
+
ratingMax?: 3 | 5 | 10 | undefined;
|
|
49
|
+
npsLowLabel?: string | undefined;
|
|
50
|
+
npsHighLabel?: string | undefined;
|
|
51
|
+
next?: string | {
|
|
52
|
+
goto: string;
|
|
53
|
+
if: {
|
|
54
|
+
op: "eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in";
|
|
55
|
+
value: string | number | string[];
|
|
56
|
+
};
|
|
57
|
+
}[] | undefined;
|
|
58
|
+
}, {
|
|
59
|
+
id: string;
|
|
60
|
+
type: "thumbs" | "rating" | "nps" | "choice" | "text" | "end";
|
|
61
|
+
prompt: string;
|
|
62
|
+
options?: string[] | undefined;
|
|
63
|
+
placeholder?: string | undefined;
|
|
64
|
+
required?: boolean | undefined;
|
|
65
|
+
description?: string | undefined;
|
|
66
|
+
ratingMax?: 3 | 5 | 10 | undefined;
|
|
67
|
+
npsLowLabel?: string | undefined;
|
|
68
|
+
npsHighLabel?: string | undefined;
|
|
69
|
+
next?: string | {
|
|
70
|
+
goto: string;
|
|
71
|
+
if: {
|
|
72
|
+
op: "eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in";
|
|
73
|
+
value: string | number | string[];
|
|
74
|
+
};
|
|
75
|
+
}[] | undefined;
|
|
76
|
+
}>, "many">;
|
|
77
|
+
showProgress: z.ZodOptional<z.ZodBoolean>;
|
|
78
|
+
allowBack: z.ZodOptional<z.ZodBoolean>;
|
|
79
|
+
}, "strip", z.ZodTypeAny, {
|
|
80
|
+
steps: {
|
|
81
|
+
id: string;
|
|
82
|
+
type: "thumbs" | "rating" | "nps" | "choice" | "text" | "end";
|
|
83
|
+
prompt: string;
|
|
84
|
+
options?: string[] | undefined;
|
|
85
|
+
placeholder?: string | undefined;
|
|
86
|
+
required?: boolean | undefined;
|
|
87
|
+
description?: string | undefined;
|
|
88
|
+
ratingMax?: 3 | 5 | 10 | undefined;
|
|
89
|
+
npsLowLabel?: string | undefined;
|
|
90
|
+
npsHighLabel?: string | undefined;
|
|
91
|
+
next?: string | {
|
|
92
|
+
goto: string;
|
|
93
|
+
if: {
|
|
94
|
+
op: "eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in";
|
|
95
|
+
value: string | number | string[];
|
|
96
|
+
};
|
|
97
|
+
}[] | undefined;
|
|
98
|
+
}[];
|
|
99
|
+
title?: string | undefined;
|
|
100
|
+
showProgress?: boolean | undefined;
|
|
101
|
+
allowBack?: boolean | undefined;
|
|
102
|
+
}, {
|
|
103
|
+
steps: {
|
|
104
|
+
id: string;
|
|
105
|
+
type: "thumbs" | "rating" | "nps" | "choice" | "text" | "end";
|
|
106
|
+
prompt: string;
|
|
107
|
+
options?: string[] | undefined;
|
|
108
|
+
placeholder?: string | undefined;
|
|
109
|
+
required?: boolean | undefined;
|
|
110
|
+
description?: string | undefined;
|
|
111
|
+
ratingMax?: 3 | 5 | 10 | undefined;
|
|
112
|
+
npsLowLabel?: string | undefined;
|
|
113
|
+
npsHighLabel?: string | undefined;
|
|
114
|
+
next?: string | {
|
|
115
|
+
goto: string;
|
|
116
|
+
if: {
|
|
117
|
+
op: "eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in";
|
|
118
|
+
value: string | number | string[];
|
|
119
|
+
};
|
|
120
|
+
}[] | undefined;
|
|
121
|
+
}[];
|
|
122
|
+
title?: string | undefined;
|
|
123
|
+
showProgress?: boolean | undefined;
|
|
124
|
+
allowBack?: boolean | undefined;
|
|
125
|
+
}>;
|
|
126
|
+
export type FeedbackConfigSchema = z.infer<typeof configSchema>;
|
|
127
|
+
export declare function validateFeedbackConfig(data: unknown): z.SafeParseReturnType<{
|
|
128
|
+
steps: {
|
|
129
|
+
id: string;
|
|
130
|
+
type: "thumbs" | "rating" | "nps" | "choice" | "text" | "end";
|
|
131
|
+
prompt: string;
|
|
132
|
+
options?: string[] | undefined;
|
|
133
|
+
placeholder?: string | undefined;
|
|
134
|
+
required?: boolean | undefined;
|
|
135
|
+
description?: string | undefined;
|
|
136
|
+
ratingMax?: 3 | 5 | 10 | undefined;
|
|
137
|
+
npsLowLabel?: string | undefined;
|
|
138
|
+
npsHighLabel?: string | undefined;
|
|
139
|
+
next?: string | {
|
|
140
|
+
goto: string;
|
|
141
|
+
if: {
|
|
142
|
+
op: "eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in";
|
|
143
|
+
value: string | number | string[];
|
|
144
|
+
};
|
|
145
|
+
}[] | undefined;
|
|
146
|
+
}[];
|
|
147
|
+
title?: string | undefined;
|
|
148
|
+
showProgress?: boolean | undefined;
|
|
149
|
+
allowBack?: boolean | undefined;
|
|
150
|
+
}, {
|
|
151
|
+
steps: {
|
|
152
|
+
id: string;
|
|
153
|
+
type: "thumbs" | "rating" | "nps" | "choice" | "text" | "end";
|
|
154
|
+
prompt: string;
|
|
155
|
+
options?: string[] | undefined;
|
|
156
|
+
placeholder?: string | undefined;
|
|
157
|
+
required?: boolean | undefined;
|
|
158
|
+
description?: string | undefined;
|
|
159
|
+
ratingMax?: 3 | 5 | 10 | undefined;
|
|
160
|
+
npsLowLabel?: string | undefined;
|
|
161
|
+
npsHighLabel?: string | undefined;
|
|
162
|
+
next?: string | {
|
|
163
|
+
goto: string;
|
|
164
|
+
if: {
|
|
165
|
+
op: "eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in";
|
|
166
|
+
value: string | number | string[];
|
|
167
|
+
};
|
|
168
|
+
}[] | undefined;
|
|
169
|
+
}[];
|
|
170
|
+
title?: string | undefined;
|
|
171
|
+
showProgress?: boolean | undefined;
|
|
172
|
+
allowBack?: boolean | undefined;
|
|
173
|
+
}>;
|
|
174
|
+
export declare const tileWidgets: {
|
|
175
|
+
widget: string;
|
|
176
|
+
defName: string;
|
|
177
|
+
propsSchema: z.ZodObject<{
|
|
178
|
+
title: z.ZodOptional<z.ZodString>;
|
|
179
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
180
|
+
id: z.ZodString;
|
|
181
|
+
type: z.ZodEnum<["thumbs", "rating", "nps", "choice", "text", "end"]>;
|
|
182
|
+
prompt: z.ZodString;
|
|
183
|
+
description: z.ZodOptional<z.ZodString>;
|
|
184
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
185
|
+
ratingMax: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<3>, z.ZodLiteral<5>, z.ZodLiteral<10>]>>;
|
|
186
|
+
npsLowLabel: z.ZodOptional<z.ZodString>;
|
|
187
|
+
npsHighLabel: z.ZodOptional<z.ZodString>;
|
|
188
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
189
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
190
|
+
next: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
|
|
191
|
+
goto: z.ZodString;
|
|
192
|
+
if: z.ZodObject<{
|
|
193
|
+
op: z.ZodEnum<["eq", "neq", "lt", "lte", "gt", "gte", "in"]>;
|
|
194
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString, "many">]>;
|
|
195
|
+
}, "strip", z.ZodTypeAny, {
|
|
196
|
+
op: "eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in";
|
|
197
|
+
value: string | number | string[];
|
|
198
|
+
}, {
|
|
199
|
+
op: "eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in";
|
|
200
|
+
value: string | number | string[];
|
|
201
|
+
}>;
|
|
202
|
+
}, "strip", z.ZodTypeAny, {
|
|
203
|
+
goto: string;
|
|
204
|
+
if: {
|
|
205
|
+
op: "eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in";
|
|
206
|
+
value: string | number | string[];
|
|
207
|
+
};
|
|
208
|
+
}, {
|
|
209
|
+
goto: string;
|
|
210
|
+
if: {
|
|
211
|
+
op: "eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in";
|
|
212
|
+
value: string | number | string[];
|
|
213
|
+
};
|
|
214
|
+
}>, "many">]>>;
|
|
215
|
+
}, "strip", z.ZodTypeAny, {
|
|
216
|
+
id: string;
|
|
217
|
+
type: "thumbs" | "rating" | "nps" | "choice" | "text" | "end";
|
|
218
|
+
prompt: string;
|
|
219
|
+
options?: string[] | undefined;
|
|
220
|
+
placeholder?: string | undefined;
|
|
221
|
+
required?: boolean | undefined;
|
|
222
|
+
description?: string | undefined;
|
|
223
|
+
ratingMax?: 3 | 5 | 10 | undefined;
|
|
224
|
+
npsLowLabel?: string | undefined;
|
|
225
|
+
npsHighLabel?: string | undefined;
|
|
226
|
+
next?: string | {
|
|
227
|
+
goto: string;
|
|
228
|
+
if: {
|
|
229
|
+
op: "eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in";
|
|
230
|
+
value: string | number | string[];
|
|
231
|
+
};
|
|
232
|
+
}[] | undefined;
|
|
233
|
+
}, {
|
|
234
|
+
id: string;
|
|
235
|
+
type: "thumbs" | "rating" | "nps" | "choice" | "text" | "end";
|
|
236
|
+
prompt: string;
|
|
237
|
+
options?: string[] | undefined;
|
|
238
|
+
placeholder?: string | undefined;
|
|
239
|
+
required?: boolean | undefined;
|
|
240
|
+
description?: string | undefined;
|
|
241
|
+
ratingMax?: 3 | 5 | 10 | undefined;
|
|
242
|
+
npsLowLabel?: string | undefined;
|
|
243
|
+
npsHighLabel?: string | undefined;
|
|
244
|
+
next?: string | {
|
|
245
|
+
goto: string;
|
|
246
|
+
if: {
|
|
247
|
+
op: "eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in";
|
|
248
|
+
value: string | number | string[];
|
|
249
|
+
};
|
|
250
|
+
}[] | undefined;
|
|
251
|
+
}>, "many">;
|
|
252
|
+
showProgress: z.ZodOptional<z.ZodBoolean>;
|
|
253
|
+
allowBack: z.ZodOptional<z.ZodBoolean>;
|
|
254
|
+
}, "strip", z.ZodTypeAny, {
|
|
255
|
+
steps: {
|
|
256
|
+
id: string;
|
|
257
|
+
type: "thumbs" | "rating" | "nps" | "choice" | "text" | "end";
|
|
258
|
+
prompt: string;
|
|
259
|
+
options?: string[] | undefined;
|
|
260
|
+
placeholder?: string | undefined;
|
|
261
|
+
required?: boolean | undefined;
|
|
262
|
+
description?: string | undefined;
|
|
263
|
+
ratingMax?: 3 | 5 | 10 | undefined;
|
|
264
|
+
npsLowLabel?: string | undefined;
|
|
265
|
+
npsHighLabel?: string | undefined;
|
|
266
|
+
next?: string | {
|
|
267
|
+
goto: string;
|
|
268
|
+
if: {
|
|
269
|
+
op: "eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in";
|
|
270
|
+
value: string | number | string[];
|
|
271
|
+
};
|
|
272
|
+
}[] | undefined;
|
|
273
|
+
}[];
|
|
274
|
+
title?: string | undefined;
|
|
275
|
+
showProgress?: boolean | undefined;
|
|
276
|
+
allowBack?: boolean | undefined;
|
|
277
|
+
}, {
|
|
278
|
+
steps: {
|
|
279
|
+
id: string;
|
|
280
|
+
type: "thumbs" | "rating" | "nps" | "choice" | "text" | "end";
|
|
281
|
+
prompt: string;
|
|
282
|
+
options?: string[] | undefined;
|
|
283
|
+
placeholder?: string | undefined;
|
|
284
|
+
required?: boolean | undefined;
|
|
285
|
+
description?: string | undefined;
|
|
286
|
+
ratingMax?: 3 | 5 | 10 | undefined;
|
|
287
|
+
npsLowLabel?: string | undefined;
|
|
288
|
+
npsHighLabel?: string | undefined;
|
|
289
|
+
next?: string | {
|
|
290
|
+
goto: string;
|
|
291
|
+
if: {
|
|
292
|
+
op: "eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in";
|
|
293
|
+
value: string | number | string[];
|
|
294
|
+
};
|
|
295
|
+
}[] | undefined;
|
|
296
|
+
}[];
|
|
297
|
+
title?: string | undefined;
|
|
298
|
+
showProgress?: boolean | undefined;
|
|
299
|
+
allowBack?: boolean | undefined;
|
|
300
|
+
}>;
|
|
301
|
+
}[];
|
|
302
|
+
export declare const CAPABILITIES_DOCUMENTATION: {
|
|
303
|
+
packageId: string;
|
|
304
|
+
description: string;
|
|
305
|
+
whenToUse: {
|
|
306
|
+
goal: string;
|
|
307
|
+
action: string;
|
|
308
|
+
}[];
|
|
309
|
+
conventions: {
|
|
310
|
+
name: string;
|
|
311
|
+
description: string;
|
|
312
|
+
}[];
|
|
313
|
+
events: {
|
|
314
|
+
name: string;
|
|
315
|
+
when: string;
|
|
316
|
+
props: string;
|
|
317
|
+
}[];
|
|
318
|
+
};
|
|
319
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmDxB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBtB,CAAC;AAEJ,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAEhE,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAEnD;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAMvB,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;CAqDtC,CAAC"}
|
package/dist/schema.js
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
// src/schema.ts
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
var BranchRuleZ = z.object({
|
|
4
|
+
goto: z.string().describe("Step ID to jump to when this rule matches."),
|
|
5
|
+
if: z.object({
|
|
6
|
+
op: z.enum(["eq", "neq", "lt", "lte", "gt", "gte", "in"]).describe("Comparison operator applied to the answer value."),
|
|
7
|
+
value: z.union([z.string(), z.number(), z.array(z.string())]).describe('Value to compare against. Use an array of strings for the "in" operator.')
|
|
8
|
+
})
|
|
9
|
+
});
|
|
10
|
+
var SurveyStepZ = z.object({
|
|
11
|
+
id: z.string().min(1).describe("Unique step identifier used for routing."),
|
|
12
|
+
type: z.enum(["thumbs", "rating", "nps", "choice", "text", "end"]).describe(
|
|
13
|
+
'Question type. "thumbs" = up/down, "rating" = 1\u2013N scale, "nps" = 0\u201310, "choice" = radio list, "text" = free text, "end" = thank-you screen.'
|
|
14
|
+
),
|
|
15
|
+
prompt: z.string().min(1).describe('Question text (or thank-you message for "end" steps).'),
|
|
16
|
+
description: z.string().optional().describe("Optional secondary text shown below the prompt."),
|
|
17
|
+
options: z.array(z.string()).optional().describe('List of options for "choice" type steps.'),
|
|
18
|
+
ratingMax: z.union([z.literal(3), z.literal(5), z.literal(10)]).optional().describe('Scale size for "rating" type (default 5).'),
|
|
19
|
+
npsLowLabel: z.string().optional().describe('Left anchor label for "nps" type (default "Not likely").'),
|
|
20
|
+
npsHighLabel: z.string().optional().describe('Right anchor label for "nps" type (default "Very likely").'),
|
|
21
|
+
placeholder: z.string().optional().describe('Placeholder text for "text" type input.'),
|
|
22
|
+
required: z.boolean().optional().describe('Whether an answer is required to proceed (default true, except for "end").'),
|
|
23
|
+
next: z.union([z.string(), z.array(BranchRuleZ)]).optional().describe(
|
|
24
|
+
"Routing after this step. Omit for array-order advancement, set a string for unconditional jump, or provide branch rules evaluated in order (first match wins, else fall through)."
|
|
25
|
+
)
|
|
26
|
+
}).describe("A single step in the survey flow.");
|
|
27
|
+
var configSchema = z.object({
|
|
28
|
+
title: z.string().optional().describe('Header text shown above the survey (e.g. "Quick Feedback").'),
|
|
29
|
+
steps: z.array(SurveyStepZ).min(1).describe('Ordered list of survey steps. Must include at least one "end" step.'),
|
|
30
|
+
showProgress: z.boolean().optional().describe("Show a progress indicator (default true)."),
|
|
31
|
+
allowBack: z.boolean().optional().describe("Allow users to revisit previous steps (default false).")
|
|
32
|
+
}).describe(
|
|
33
|
+
"Props for the adaptive-feedback:survey tile widget. Configures a multi-step survey with branching logic and PostHog event publishing."
|
|
34
|
+
);
|
|
35
|
+
function validateFeedbackConfig(data) {
|
|
36
|
+
return configSchema.safeParse(data);
|
|
37
|
+
}
|
|
38
|
+
var tileWidgets = [
|
|
39
|
+
{
|
|
40
|
+
widget: "adaptive-feedback:survey",
|
|
41
|
+
defName: "feedbackSurveyProps",
|
|
42
|
+
propsSchema: configSchema
|
|
43
|
+
}
|
|
44
|
+
];
|
|
45
|
+
var CAPABILITIES_DOCUMENTATION = {
|
|
46
|
+
packageId: "adaptive-feedback",
|
|
47
|
+
description: "Multi-step survey widget with branching logic. Collects user feedback via thumbs, ratings, NPS, choice, and free-text questions. All answers publish PostHog events immediately.",
|
|
48
|
+
whenToUse: [
|
|
49
|
+
{
|
|
50
|
+
goal: "Add a feedback survey to the canvas drawer",
|
|
51
|
+
action: 'Add a tile with widget: "adaptive-feedback:survey"'
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
goal: "Collect NPS scores from users",
|
|
55
|
+
action: 'Create a survey with an "nps" step. Branch on the score to ask follow-up questions.'
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
goal: "Probe users who dropped off at a specific page",
|
|
59
|
+
action: "Create a survey with activation routes scoped to the drop-off page. Use thumbs or choice steps to understand why."
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
conventions: [
|
|
63
|
+
{
|
|
64
|
+
name: "Step routing",
|
|
65
|
+
description: "Each step can route to the next step via: (1) omit next \u2192 advance in array order, (2) string next \u2192 unconditional jump, (3) BranchRule[] next \u2192 first-match-wins conditional routing with array-order fallback."
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: "End steps",
|
|
69
|
+
description: 'Every survey must have at least one step with type "end". End steps render a thank-you message and emit a feedback:completed event.'
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: "PostHog events",
|
|
73
|
+
description: "feedback:response fires on each answer with surveyId, stepId, stepType, value, stepIndex. feedback:completed fires when user reaches an end step. feedback:abandoned fires on tile unmount if survey was not completed."
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
events: [
|
|
77
|
+
{
|
|
78
|
+
name: "feedback:response",
|
|
79
|
+
when: "User answers a survey step",
|
|
80
|
+
props: "{ surveyId, stepId, stepType, value, stepIndex }"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: "feedback:completed",
|
|
84
|
+
when: "User reaches an end step",
|
|
85
|
+
props: "{ surveyId, stepsCompleted, abandoned: false }"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: "feedback:abandoned",
|
|
89
|
+
when: "Tile unmounts before user reaches an end step",
|
|
90
|
+
props: "{ surveyId, lastStepId, stepsCompleted, abandoned: true }"
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
};
|
|
94
|
+
export {
|
|
95
|
+
CAPABILITIES_DOCUMENTATION,
|
|
96
|
+
configSchema,
|
|
97
|
+
tileWidgets,
|
|
98
|
+
validateFeedbackConfig
|
|
99
|
+
};
|
|
100
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/schema.ts"],
|
|
4
|
+
"sourcesContent": ["import { z } from 'zod';\n\nconst BranchRuleZ = z.object({\n goto: z.string().describe('Step ID to jump to when this rule matches.'),\n if: z.object({\n op: z\n .enum(['eq', 'neq', 'lt', 'lte', 'gt', 'gte', 'in'])\n .describe('Comparison operator applied to the answer value.'),\n value: z\n .union([z.string(), z.number(), z.array(z.string())])\n .describe('Value to compare against. Use an array of strings for the \"in\" operator.'),\n }),\n});\n\nconst SurveyStepZ = z\n .object({\n id: z.string().min(1).describe('Unique step identifier used for routing.'),\n type: z\n .enum(['thumbs', 'rating', 'nps', 'choice', 'text', 'end'])\n .describe(\n 'Question type. \"thumbs\" = up/down, \"rating\" = 1\u2013N scale, \"nps\" = 0\u201310, \"choice\" = radio list, \"text\" = free text, \"end\" = thank-you screen.'\n ),\n prompt: z.string().min(1).describe('Question text (or thank-you message for \"end\" steps).'),\n description: z.string().optional().describe('Optional secondary text shown below the prompt.'),\n options: z.array(z.string()).optional().describe('List of options for \"choice\" type steps.'),\n ratingMax: z\n .union([z.literal(3), z.literal(5), z.literal(10)])\n .optional()\n .describe('Scale size for \"rating\" type (default 5).'),\n npsLowLabel: z\n .string()\n .optional()\n .describe('Left anchor label for \"nps\" type (default \"Not likely\").'),\n npsHighLabel: z\n .string()\n .optional()\n .describe('Right anchor label for \"nps\" type (default \"Very likely\").'),\n placeholder: z.string().optional().describe('Placeholder text for \"text\" type input.'),\n required: z\n .boolean()\n .optional()\n .describe('Whether an answer is required to proceed (default true, except for \"end\").'),\n next: z\n .union([z.string(), z.array(BranchRuleZ)])\n .optional()\n .describe(\n 'Routing after this step. Omit for array-order advancement, set a string for unconditional jump, or provide branch rules evaluated in order (first match wins, else fall through).'\n ),\n })\n .describe('A single step in the survey flow.');\n\nexport const configSchema = z\n .object({\n title: z\n .string()\n .optional()\n .describe('Header text shown above the survey (e.g. \"Quick Feedback\").'),\n steps: z\n .array(SurveyStepZ)\n .min(1)\n .describe('Ordered list of survey steps. Must include at least one \"end\" step.'),\n showProgress: z.boolean().optional().describe('Show a progress indicator (default true).'),\n allowBack: z\n .boolean()\n .optional()\n .describe('Allow users to revisit previous steps (default false).'),\n })\n .describe(\n 'Props for the adaptive-feedback:survey tile widget. Configures a multi-step survey with branching logic and PostHog event publishing.'\n );\n\nexport type FeedbackConfigSchema = z.infer<typeof configSchema>;\n\nexport function validateFeedbackConfig(data: unknown) {\n return configSchema.safeParse(data);\n}\n\nexport const tileWidgets = [\n {\n widget: 'adaptive-feedback:survey',\n defName: 'feedbackSurveyProps',\n propsSchema: configSchema,\n },\n];\n\nexport const CAPABILITIES_DOCUMENTATION = {\n packageId: 'adaptive-feedback',\n description:\n 'Multi-step survey widget with branching logic. Collects user feedback via thumbs, ratings, NPS, choice, and free-text questions. All answers publish PostHog events immediately.',\n whenToUse: [\n {\n goal: 'Add a feedback survey to the canvas drawer',\n action: 'Add a tile with widget: \"adaptive-feedback:survey\"',\n },\n {\n goal: 'Collect NPS scores from users',\n action: 'Create a survey with an \"nps\" step. Branch on the score to ask follow-up questions.',\n },\n {\n goal: 'Probe users who dropped off at a specific page',\n action:\n 'Create a survey with activation routes scoped to the drop-off page. Use thumbs or choice steps to understand why.',\n },\n ],\n conventions: [\n {\n name: 'Step routing',\n description:\n 'Each step can route to the next step via: (1) omit next \u2192 advance in array order, (2) string next \u2192 unconditional jump, (3) BranchRule[] next \u2192 first-match-wins conditional routing with array-order fallback.',\n },\n {\n name: 'End steps',\n description:\n 'Every survey must have at least one step with type \"end\". End steps render a thank-you message and emit a feedback:completed event.',\n },\n {\n name: 'PostHog events',\n description:\n 'feedback:response fires on each answer with surveyId, stepId, stepType, value, stepIndex. feedback:completed fires when user reaches an end step. feedback:abandoned fires on tile unmount if survey was not completed.',\n },\n ],\n events: [\n {\n name: 'feedback:response',\n when: 'User answers a survey step',\n props: '{ surveyId, stepId, stepType, value, stepIndex }',\n },\n {\n name: 'feedback:completed',\n when: 'User reaches an end step',\n props: '{ surveyId, stepsCompleted, abandoned: false }',\n },\n {\n name: 'feedback:abandoned',\n when: 'Tile unmounts before user reaches an end step',\n props: '{ surveyId, lastStepId, stepsCompleted, abandoned: true }',\n },\n ],\n};\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export type StepType = 'thumbs' | 'rating' | 'nps' | 'choice' | 'text' | 'end';
|
|
2
|
+
export interface BranchRule {
|
|
3
|
+
goto: string;
|
|
4
|
+
if: {
|
|
5
|
+
op: 'eq' | 'neq' | 'lt' | 'lte' | 'gt' | 'gte' | 'in';
|
|
6
|
+
value: string | number | string[];
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export interface SurveyStep {
|
|
10
|
+
id: string;
|
|
11
|
+
type: StepType;
|
|
12
|
+
prompt: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
options?: string[];
|
|
15
|
+
ratingMax?: 3 | 5 | 10;
|
|
16
|
+
npsLowLabel?: string;
|
|
17
|
+
npsHighLabel?: string;
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
required?: boolean;
|
|
20
|
+
next?: string | BranchRule[];
|
|
21
|
+
}
|
|
22
|
+
export interface FeedbackConfig {
|
|
23
|
+
title?: string;
|
|
24
|
+
steps: SurveyStep[];
|
|
25
|
+
showProgress?: boolean;
|
|
26
|
+
allowBack?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export interface FeedbackWidgetRuntime {
|
|
29
|
+
events: {
|
|
30
|
+
publish: (name: string, props?: Record<string, unknown>) => void;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,KAAK,CAAC;AAE/E,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE;QACF,EAAE,EAAE,IAAI,GAAG,KAAK,GAAG,IAAI,GAAG,KAAK,GAAG,IAAI,GAAG,KAAK,GAAG,IAAI,CAAC;QACtD,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,CAAC;KACnC,CAAC;CACH;AAED,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,SAAS,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,EAAE,CAAC;CAC9B;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE;QACN,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;KAClE,CAAC;CACH"}
|
package/package.json
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@syntrologie/adapt-feedback",
|
|
3
|
+
"version": "2.8.0-canary.239",
|
|
4
|
+
"description": "Adaptive Feedback - Multi-step survey widget with branching logic and PostHog events",
|
|
5
|
+
"license": "Proprietary",
|
|
6
|
+
"private": false,
|
|
7
|
+
"author": "Syntrologie <eng@syntrologie.com>",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/SyntropyForge/amazing-demos.git",
|
|
11
|
+
"directory": "packages/adaptives/adaptive-feedback"
|
|
12
|
+
},
|
|
13
|
+
"publishConfig": {
|
|
14
|
+
"access": "public"
|
|
15
|
+
},
|
|
16
|
+
"syntrologie": {
|
|
17
|
+
"bundlingMode": "cdn-only"
|
|
18
|
+
},
|
|
19
|
+
"type": "module",
|
|
20
|
+
"exports": {
|
|
21
|
+
".": {
|
|
22
|
+
"types": "./dist/FeedbackWidget.d.ts",
|
|
23
|
+
"import": "./dist/FeedbackWidget.js"
|
|
24
|
+
},
|
|
25
|
+
"./runtime": {
|
|
26
|
+
"types": "./dist/runtime.d.ts",
|
|
27
|
+
"import": "./dist/runtime.js"
|
|
28
|
+
},
|
|
29
|
+
"./schema": {
|
|
30
|
+
"types": "./dist/schema.d.ts",
|
|
31
|
+
"import": "./dist/schema.js"
|
|
32
|
+
},
|
|
33
|
+
"./editor": {
|
|
34
|
+
"types": "./dist/editor-lit.d.ts",
|
|
35
|
+
"import": "./dist/editor-lit.js"
|
|
36
|
+
},
|
|
37
|
+
"./editor-lit": {
|
|
38
|
+
"types": "./src/editor-lit.ts",
|
|
39
|
+
"import": "./src/editor-lit.ts"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"files": [
|
|
43
|
+
"dist"
|
|
44
|
+
],
|
|
45
|
+
"bundledDependencies": [
|
|
46
|
+
"@syntro/design-system",
|
|
47
|
+
"@syntrologie/shared-editor-ui"
|
|
48
|
+
],
|
|
49
|
+
"scripts": {
|
|
50
|
+
"prepack": "node ../../../scripts/prepare-bundled-deps.mjs",
|
|
51
|
+
"build": "tsc --emitDeclarationOnly && node ../scripts/build-lib.mjs",
|
|
52
|
+
"typecheck": "tsc --noEmit",
|
|
53
|
+
"clean": "rm -rf dist",
|
|
54
|
+
"test": "vitest run",
|
|
55
|
+
"test:watch": "vitest"
|
|
56
|
+
},
|
|
57
|
+
"peerDependencies": {
|
|
58
|
+
"lit": "^3.0.0",
|
|
59
|
+
"zod": "^3.0.0"
|
|
60
|
+
},
|
|
61
|
+
"devDependencies": {
|
|
62
|
+
"@open-wc/testing": "4.0.0",
|
|
63
|
+
"@open-wc/testing-helpers": "3.0.1",
|
|
64
|
+
"@syntro/design-system": "1.0.0",
|
|
65
|
+
"@syntrologie/shared-editor-ui": "*",
|
|
66
|
+
"jsdom": "26.1.0",
|
|
67
|
+
"lit": "3.3.2",
|
|
68
|
+
"typescript": "5.9.3",
|
|
69
|
+
"vitest": "4.0.18",
|
|
70
|
+
"zod": "3.25.76"
|
|
71
|
+
},
|
|
72
|
+
"bundleDependencies": [
|
|
73
|
+
"@syntro/design-system",
|
|
74
|
+
"@syntrologie/shared-editor-ui"
|
|
75
|
+
]
|
|
76
|
+
}
|