@boldare/askdare 0.1.0-rc.4 → 0.2.0-rc.0

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/store.d.ts CHANGED
@@ -24,6 +24,12 @@ declare const EN: {
24
24
  readonly "status.tool": "Using {name}…";
25
25
  readonly "status.typing": "The assistant is typing";
26
26
  readonly "message.sources": "Sources";
27
+ readonly "feedback.label": "Rate this answer";
28
+ readonly "feedback.up": "Helpful";
29
+ readonly "feedback.down": "Not helpful";
30
+ readonly "feedback.comment": "What went wrong?";
31
+ readonly "feedback.send": "Send feedback";
32
+ readonly "feedback.skip": "Skip";
27
33
  readonly "message.attachments.one": "{count} attachment";
28
34
  readonly "message.attachments.other": "{count} attachments";
29
35
  readonly "attachment.list": "Attachments";
@@ -310,6 +316,11 @@ interface WidgetConfig {
310
316
  readonly css?: string;
311
317
  /** Suggested questions on the welcome screen; a click sends one. Up to 4. */
312
318
  readonly starters?: readonly string[];
319
+ /**
320
+ * 👍/👎 under each answer, with an optional comment after 👎. They show only when
321
+ * `createChatHandler` has `onFeedback`; `false` hides them for this bot. Default `true`.
322
+ */
323
+ readonly feedback?: boolean;
313
324
  /** The assistant's picture: a path on your app such as `/avatar.png`, or a small data: image. */
314
325
  readonly avatar?: string;
315
326
  /** Text on the pill launcher; shortcut for `texts['launcher.label']`. */
@@ -329,6 +340,8 @@ interface BotWidget {
329
340
  /** The configured BCP 47 tag, or `auto`. */
330
341
  readonly locale: string;
331
342
  readonly starters: readonly string[];
343
+ /** Whether this bot lets visitors rate answers, when the handler has `onFeedback`. */
344
+ readonly feedback: boolean;
332
345
  readonly avatar: string | undefined;
333
346
  readonly launcherLabel: string;
334
347
  /** Text overrides, including the title, greeting, placeholder and launcher label shortcuts. */