@botonic/react 0.48.1 → 0.48.3

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.
Files changed (51) hide show
  1. package/lib/cjs/constants.d.ts +3 -0
  2. package/lib/cjs/constants.js +4 -1
  3. package/lib/cjs/constants.js.map +1 -1
  4. package/lib/cjs/debug-system-messages.d.ts +147 -0
  5. package/lib/cjs/debug-system-messages.js +167 -0
  6. package/lib/cjs/debug-system-messages.js.map +1 -0
  7. package/lib/cjs/dev-app.d.ts +150 -1
  8. package/lib/cjs/dev-app.js +27 -3
  9. package/lib/cjs/dev-app.js.map +1 -1
  10. package/lib/cjs/index-types.d.ts +5 -0
  11. package/lib/cjs/index-types.js.map +1 -1
  12. package/lib/cjs/index.d.ts +1 -0
  13. package/lib/cjs/index.js +3 -1
  14. package/lib/cjs/index.js.map +1 -1
  15. package/lib/cjs/webchat/theme/default-theme.js +1 -1
  16. package/lib/cjs/webchat/theme/default-theme.js.map +1 -1
  17. package/lib/cjs/webchat/webchat.js +7 -0
  18. package/lib/cjs/webchat/webchat.js.map +1 -1
  19. package/lib/cjs/webchat-app.d.ts +3 -2
  20. package/lib/cjs/webchat-app.js +5 -3
  21. package/lib/cjs/webchat-app.js.map +1 -1
  22. package/lib/esm/constants.d.ts +3 -0
  23. package/lib/esm/constants.js +4 -1
  24. package/lib/esm/constants.js.map +1 -1
  25. package/lib/esm/debug-system-messages.d.ts +147 -0
  26. package/lib/esm/debug-system-messages.js +167 -0
  27. package/lib/esm/debug-system-messages.js.map +1 -0
  28. package/lib/esm/dev-app.d.ts +150 -1
  29. package/lib/esm/dev-app.js +27 -3
  30. package/lib/esm/dev-app.js.map +1 -1
  31. package/lib/esm/index-types.d.ts +5 -0
  32. package/lib/esm/index-types.js.map +1 -1
  33. package/lib/esm/index.d.ts +1 -0
  34. package/lib/esm/index.js +3 -1
  35. package/lib/esm/index.js.map +1 -1
  36. package/lib/esm/webchat/theme/default-theme.js +1 -1
  37. package/lib/esm/webchat/theme/default-theme.js.map +1 -1
  38. package/lib/esm/webchat/webchat.js +7 -0
  39. package/lib/esm/webchat/webchat.js.map +1 -1
  40. package/lib/esm/webchat-app.d.ts +3 -2
  41. package/lib/esm/webchat-app.js +5 -3
  42. package/lib/esm/webchat-app.js.map +1 -1
  43. package/package.json +1 -1
  44. package/src/constants.js +4 -0
  45. package/src/debug-system-messages.ts +200 -0
  46. package/src/dev-app.jsx +29 -0
  47. package/src/index-types.ts +6 -0
  48. package/src/index.ts +1 -0
  49. package/src/webchat/theme/default-theme.ts +2 -2
  50. package/src/webchat/webchat.tsx +18 -1
  51. package/src/webchat-app.tsx +7 -0
@@ -2,7 +2,7 @@ import { type ServerConfig } from '@botonic/core';
2
2
  import type React from 'react';
3
3
  import type { BlockInputOption, WebchatSettingsProps } from './components';
4
4
  import type { CloseWebviewOptions } from './contexts';
5
- import { type ActionRequest, type Event, type EventArgs, type OnStateChangeArgs, type OnUserInputArgs, type PreviewUtils, type WebchatArgs, type WebchatMessage, type WebchatRef } from './index-types';
5
+ import { type ActionRequest, type Event, type EventArgs, type OnStateChangeArgs, type OnUserInputArgs, type PreviewUtils, type WebchatArgs, type WebchatLocaleContents, type WebchatMessage, type WebchatRef } from './index-types';
6
6
  import type { CoverComponentOptions, PersistentMenuOptionsTheme, WebchatTheme } from './webchat/theme/types';
7
7
  export declare class WebchatApp {
8
8
  theme?: Partial<WebchatTheme>;
@@ -25,6 +25,7 @@ export declare class WebchatApp {
25
25
  onMessage?: (app: WebchatApp, message: WebchatMessage) => void;
26
26
  onTrackEvent?: (request: ActionRequest, eventName: string, args?: EventArgs) => Promise<void>;
27
27
  onConnectionChange?: (app: WebchatApp, isOnline: boolean) => void;
28
+ contentsByLocale?: Record<string, WebchatLocaleContents>;
28
29
  appId?: string;
29
30
  visibility?: boolean | (() => boolean) | 'dynamic';
30
31
  server?: ServerConfig;
@@ -33,7 +34,7 @@ export declare class WebchatApp {
33
34
  private reactRoot;
34
35
  private host;
35
36
  private hubtypeService;
36
- constructor({ theme, persistentMenu, coverComponent, blockInputs, enableEmojiPicker, enableAttachments, enableUserInput, enableAnimations, hostId, shadowDOM, defaultDelay, defaultTyping, storage, storageKey, onInit, onOpen, onClose, onMessage, onTrackEvent, onConnectionChange, appId, visibility, server, previewUtils, }: WebchatArgs);
37
+ constructor({ theme, persistentMenu, coverComponent, blockInputs, enableEmojiPicker, enableAttachments, enableUserInput, enableAnimations, hostId, shadowDOM, defaultDelay, defaultTyping, storage, storageKey, onInit, onOpen, onClose, onMessage, onTrackEvent, onConnectionChange, contentsByLocale, appId, visibility, server, previewUtils, }: WebchatArgs);
37
38
  createRootElement(host: HTMLElement | null): void;
38
39
  getReactMountNode(node?: (HTMLElement | null) | ShadowRoot): Element | DocumentFragment;
39
40
  onInitWebchat(...args: [any]): void;
@@ -14,7 +14,7 @@ const dom_1 = require("./util/dom");
14
14
  const default_theme_1 = require("./webchat/theme/default-theme");
15
15
  const webchat_1 = require("./webchat/webchat");
16
16
  class WebchatApp {
17
- constructor({ theme, persistentMenu, coverComponent, blockInputs, enableEmojiPicker, enableAttachments, enableUserInput, enableAnimations, hostId = constants_1.WEBCHAT.DEFAULTS.HOST_ID, shadowDOM = false, defaultDelay, defaultTyping, storage, storageKey, onInit, onOpen, onClose, onMessage, onTrackEvent, onConnectionChange, appId, visibility, server, previewUtils, }) {
17
+ constructor({ theme, persistentMenu, coverComponent, blockInputs, enableEmojiPicker, enableAttachments, enableUserInput, enableAnimations, hostId = constants_1.WEBCHAT.DEFAULTS.HOST_ID, shadowDOM = false, defaultDelay, defaultTyping, storage, storageKey, onInit, onOpen, onClose, onMessage, onTrackEvent, onConnectionChange, contentsByLocale, appId, visibility, server, previewUtils, }) {
18
18
  this.reactRoot = null;
19
19
  this.host = null;
20
20
  this.theme = theme;
@@ -41,6 +41,7 @@ class WebchatApp {
41
41
  this.onMessage = onMessage;
42
42
  this.onTrackEvent = onTrackEvent;
43
43
  this.onConnectionChange = onConnectionChange;
44
+ this.contentsByLocale = contentsByLocale;
44
45
  this.visibility = visibility;
45
46
  this.server = server;
46
47
  this.previewUtils = previewUtils;
@@ -326,7 +327,7 @@ class WebchatApp {
326
327
  return theme.userInput;
327
328
  }
328
329
  getComponent(host, optionsAtRuntime = {}) {
329
- let { theme = {}, defaultDelay, defaultTyping, storage, storageKey, onInit, onOpen, onClose, onMessage, onConnectionChange, onTrackEvent, appId, visibility, server, hostId, previewUtils, ...webchatOptions } = optionsAtRuntime;
330
+ let { theme = {}, defaultDelay, defaultTyping, storage, storageKey, onInit, onOpen, onClose, onMessage, onConnectionChange, contentsByLocale, onTrackEvent, appId, visibility, server, hostId, previewUtils, ...webchatOptions } = optionsAtRuntime;
330
331
  theme = this.createInitialTheme(optionsAtRuntime);
331
332
  defaultDelay = defaultDelay || this.defaultDelay;
332
333
  defaultTyping = defaultTyping || this.defaultTyping;
@@ -339,6 +340,7 @@ class WebchatApp {
339
340
  this.onMessage = onMessage || this.onMessage;
340
341
  this.onTrackEvent = onTrackEvent || this.onTrackEvent;
341
342
  this.onConnectionChange = onConnectionChange || this.onConnectionChange;
343
+ this.contentsByLocale = contentsByLocale || this.contentsByLocale;
342
344
  this.visibility = visibility || this.visibility;
343
345
  this.appId = appId || this.appId;
344
346
  this.hostId = hostId || this.hostId;
@@ -346,7 +348,7 @@ class WebchatApp {
346
348
  this.createRootElement(host);
347
349
  return ((0, jsx_runtime_1.jsx)(webchat_1.Webchat, { ...webchatOptions, ref: this.webchatRef, host: this.host, shadowDOM: this.shadowDOM, theme: theme, storage: this.storage, storageKey: this.storageKey, defaultDelay: defaultDelay, defaultTyping: defaultTyping, previewUtils: this.previewUtils, onInit: (...args) => this.onInitWebchat(...args), onOpen: (...args) => this.onOpenWebchat(...args), onClose: (...args) => this.onCloseWebchat(...args), onUserInput: (...args) => this.onUserInput(...args), onStateChange: (args) => {
348
350
  this.onStateChange(args);
349
- }, onTrackEvent: (request, eventName, args) => this.onTrackEventWebchat(request, eventName, args), server: server }));
351
+ }, onTrackEvent: (request, eventName, args) => this.onTrackEventWebchat(request, eventName, args), server: server, contentsByLocale: this.contentsByLocale }));
350
352
  }
351
353
  async isWebchatVisible(appId) {
352
354
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"webchat-app.js","sourceRoot":"","sources":["../../src/webchat-app.tsx"],"names":[],"mappings":";;;;;AAAA,wCAAwE;AACxE,wEAAgC;AAEhC,iCAAiC;AACjC,6CAAwD;AAGxD,2CAAqC;AAErC,+CAYsB;AACtB,qDAA+C;AAC/C,oCAA8D;AAC9D,iEAA4D;AAM5D,+CAA2C;AAE3C,MAAa,UAAU;IAmCrB,YAAY,EACV,KAAK,EACL,cAAc,EACd,cAAc,EACd,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,MAAM,GAAG,mBAAO,CAAC,QAAQ,CAAC,OAAO,EACjC,SAAS,GAAG,KAAK,EACjB,YAAY,EACZ,aAAa,EACb,OAAO,EACP,UAAU,EACV,MAAM,EACN,MAAM,EACN,OAAO,EACP,SAAS,EACT,YAAY,EACZ,kBAAkB,EAClB,KAAK,EACL,UAAU,EACV,MAAM,EACN,YAAY,GACA;QA7BN,cAAS,GAAgB,IAAI,CAAA;QAC7B,SAAI,GAAsC,IAAI,CAAA;QA6BpD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;QAClB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAA;QACpC,IAAI,CAAC,cAAc,GAAG,cAAc,CAAA;QACpC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAA;QAC9B,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAA;QAC1C,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAA;QAC1C,IAAI,CAAC,eAAe,GAAG,eAAe,CAAA;QACtC,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAA;QAExC,IAAI,CAAC,SAAS,GAAG,OAAO,CACtB,OAAO,SAAS,KAAK,UAAU,CAAC,C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AA;QACb,CAAC;QAED,OAAO,KAAK,CAAA;IACd,CAAC;IAED,OAAO;QACL,IAAI,IAAI,CAAC,cAAc,EAAE,CAAC;YACxB,IAAI,CAAC,cAAc,CAAC,aAAa,EAAE,CAAA;QACrC,CAAC;QACD,IAAI,CAAC,SAAS,EAAE,OAAO,EAAE,CAAA;QACzB,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YACjB,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;QAC1C,CAAC;IACH,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,IAAoB,EAAE,gBAA8B;QAC/D,IAAA,iBAAW,EAAC,KAAK,IAAI,EAAE;YACrB,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,wBAAwB,CAAC,gBAAgB,CAAC,CAAA;YACvE,IAAI,SAAS,EAAE,CAAC;gBACd,MAAM,gBAAgB,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAA;gBAClE,MAAM,SAAS,GAAG,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAA;gBAC9C,IAAI,CAAC,SAAS,GAAG,IAAA,mBAAU,EAAC,SAAS,CAAC,CAAA;gBACtC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAA;YACzC,CAAC;QACH,CAAC,CAAC,CAAA;IACJ,CAAC;CACF;AAjkBD,gCAikBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botonic/react",
3
- "version": "0.48.1",
3
+ "version": "0.48.3",
4
4
  "license": "MIT",
5
5
  "description": "Build Chatbots using React",
6
6
  "main": "./lib/cjs",
package/src/constants.js CHANGED
@@ -184,3 +184,7 @@ export const ROLES = {
184
184
  RAW_MESSAGE: 'raw-message',
185
185
  SYSTEM_DEBUG_TRACE_MESSAGE: 'system-debug-trace-message',
186
186
  }
187
+
188
+ export const WEBCHAT_DEFAULT_CONTENTS = {
189
+ INPUT_PLACEHOLDER: 'Ask me something...',
190
+ }
@@ -0,0 +1,200 @@
1
+ /**
2
+ * Dev-only mock payloads for every SystemDebugTrace event type.
3
+ *
4
+ * Usage from dev-entry.ts:
5
+ * import { DEBUG_SYSTEM_MESSAGES } from '@botonic/react/src/debug-system-messages'
6
+ * app.addDebugSystemMessage(DEBUG_SYSTEM_MESSAGES.keyword)
7
+ *
8
+ * Usage from the browser console (window.Botonic is the DevApp instance):
9
+ * Botonic.addDebugSystemMessage({ action: 'nlu_keyword', nlu_keyword_name: 'hello', ... })
10
+ * // or use the pre-built fixtures exposed on the DevApp:
11
+ * Botonic.addDebugSystemMessage(Botonic.debugSystemMessages.aiAgent)
12
+ */
13
+
14
+ import { EventAction } from '@botonic/core'
15
+
16
+ import type {
17
+ AiAgentDebugEvent,
18
+ BotActionDebugEvent,
19
+ ConditionalChannelDebugEvent,
20
+ ConditionalCountryDebugEvent,
21
+ ConditionalCustomDebugEvent,
22
+ ConditionalQueueStatusDebugEvent,
23
+ FallbackDebugEvent,
24
+ HandoffSuccessDebugEvent,
25
+ KeywordDebugEvent,
26
+ KnowledgeBaseDebugEvent,
27
+ RedirectFlowDebugEvent,
28
+ SmartIntentDebugEvent,
29
+ WebviewActionTriggeredDebugEvent,
30
+ } from './components/system-debug-trace/events'
31
+ import type { ChunkIdsGroupedBySourceData } from './components/system-debug-trace/events/knowledge-bases-types'
32
+ import type { DebugEvent } from './components/system-debug-trace/types'
33
+
34
+ const mockChunksWithSources: ChunkIdsGroupedBySourceData[] = [
35
+ {
36
+ source: {
37
+ id: 'src-mock-001',
38
+ name: 'Help Center',
39
+ type: 'url',
40
+ scrapingCountryCode: null,
41
+ createdAt: '2026-01-01T00:00:00Z',
42
+ createdBy: 'mock',
43
+ lastUpdatedAt: '2026-01-01T00:00:00Z',
44
+ lastUpdatedBy: 'mock',
45
+ activeExtractionJob: null as any,
46
+ lastExtractionJob: null as any,
47
+ },
48
+ chunks: [
49
+ {
50
+ id: 'chunk-mock-001',
51
+ text: 'To reset your password, go to Settings > Security > Reset Password.',
52
+ },
53
+ ],
54
+ },
55
+ ]
56
+
57
+ export const DEBUG_SYSTEM_MESSAGES = {
58
+ keyword: {
59
+ action: EventAction.Keyword,
60
+ flow_id: 'flow-mock-001',
61
+ flow_node_id: 'node-mock-001',
62
+ nlu_keyword_is_regex: false,
63
+ nlu_keyword_name: 'hello',
64
+ } satisfies KeywordDebugEvent,
65
+
66
+ smartIntent: {
67
+ action: EventAction.IntentSmart,
68
+ nlu_intent_smart_title: 'Greeting smart intent',
69
+ } satisfies SmartIntentDebugEvent,
70
+
71
+ fallback: {
72
+ action: EventAction.Fallback,
73
+ user_input: "I don't understand this bot",
74
+ fallback_out: 1,
75
+ fallback_message_id: 'msg-mock-002',
76
+ } satisfies FallbackDebugEvent,
77
+
78
+ handoffSuccess: {
79
+ action: EventAction.HandoffSuccess,
80
+ handoff_queue_name: 'Support Team',
81
+ handoff_is_queue_open: true,
82
+ handoff_has_auto_assign: true,
83
+ handoff_note_id: '',
84
+ } satisfies HandoffSuccessDebugEvent,
85
+
86
+ botAction: {
87
+ action: EventAction.BotAction,
88
+ payload: 'custom-action-result',
89
+ } satisfies BotActionDebugEvent,
90
+
91
+ knowledgeBase: {
92
+ action: EventAction.Knowledgebase,
93
+ flow_id: 'flow-mock-001',
94
+ flow_node_id: 'node-mock-004',
95
+ knowledgebase_inference_id: 'inf-mock-001',
96
+ knowledgebase_fail_reason: '',
97
+ knowledgebase_sources_ids: ['src-mock-001'],
98
+ knowledgebase_chunks_ids: ['chunk-mock-001'],
99
+ user_input: 'How do I reset my password?',
100
+ knowledge_base_chunks_with_sources: mockChunksWithSources,
101
+ } satisfies KnowledgeBaseDebugEvent,
102
+
103
+ knowledgeBaseFailed: {
104
+ action: EventAction.Knowledgebase,
105
+ flow_id: 'flow-mock-001',
106
+ flow_node_id: 'node-mock-004',
107
+ knowledgebase_inference_id: 'inf-mock-002',
108
+ knowledgebase_fail_reason: 'no_relevant_content',
109
+ knowledgebase_sources_ids: [],
110
+ knowledgebase_chunks_ids: [],
111
+ user_input: 'What is the meaning of life?',
112
+ knowledge_base_chunks_with_sources: [],
113
+ } satisfies KnowledgeBaseDebugEvent,
114
+
115
+ conditionalChannel: {
116
+ action: EventAction.ConditionalChannel,
117
+ channel: 'whatsapp',
118
+ } satisfies ConditionalChannelDebugEvent,
119
+
120
+ conditionalCountry: {
121
+ action: EventAction.ConditionalCountry,
122
+ country: 'ES',
123
+ } satisfies ConditionalCountryDebugEvent,
124
+
125
+ conditionalCustom: {
126
+ action: EventAction.ConditionalCustom,
127
+ conditional_variable: 'user_plan',
128
+ variable_format: 'string',
129
+ } satisfies ConditionalCustomDebugEvent,
130
+
131
+ conditionalQueueStatus: {
132
+ action: EventAction.ConditionalQueueStatus,
133
+ queue_id: 'queue-mock-001',
134
+ queue_name: 'Support Team',
135
+ is_queue_open: true,
136
+ is_available_agent: true,
137
+ } satisfies ConditionalQueueStatusDebugEvent,
138
+
139
+ redirectFlow: {
140
+ action: EventAction.RedirectFlow,
141
+ flow_id: 'flow-mock-001',
142
+ flow_name: 'Main Flow',
143
+ flow_target_id: 'flow-mock-002',
144
+ flow_target_name: 'Billing Flow',
145
+ } satisfies RedirectFlowDebugEvent,
146
+
147
+ webviewActionTriggered: {
148
+ action: EventAction.WebviewActionTriggered,
149
+ webview_target_id: 'webview-mock-001',
150
+ webview_name: 'Payment Form',
151
+ } satisfies WebviewActionTriggeredDebugEvent,
152
+
153
+ aiAgent: {
154
+ action: EventAction.AiAgent,
155
+ flow_node_content_id: 'content-mock-001',
156
+ user_input: 'Can you help me with my subscription?',
157
+ tools_executed: [
158
+ {
159
+ tool_name: 'retrieve_knowledge',
160
+ tool_arguments: { query: 'subscription management' },
161
+ tool_results:
162
+ 'Found 3 relevant articles about subscription management.',
163
+ knowledgebase_sources_ids: ['src-mock-001'],
164
+ knowledgebase_chunks_ids: ['chunk-mock-001'],
165
+ },
166
+ {
167
+ tool_name: 'get_user_subscription',
168
+ tool_arguments: { user_id: 'user-mock-001' },
169
+ tool_results: '{"plan": "pro", "renewal_date": "2026-06-01"}',
170
+ },
171
+ ],
172
+ input_guardrails_triggered: [],
173
+ output_guardrails_triggered: [],
174
+ exit: false,
175
+ error: false,
176
+ knowledge_base_chunks_with_sources: mockChunksWithSources,
177
+ } satisfies AiAgentDebugEvent,
178
+
179
+ aiAgentWithGuardrails: {
180
+ action: EventAction.AiAgent,
181
+ flow_node_content_id: 'content-mock-002',
182
+ user_input: 'Tell me something inappropriate',
183
+ tools_executed: [],
184
+ input_guardrails_triggered: ['content_safety', 'topic_restriction'],
185
+ output_guardrails_triggered: [],
186
+ exit: false,
187
+ error: false,
188
+ } satisfies AiAgentDebugEvent,
189
+
190
+ aiAgentError: {
191
+ action: EventAction.AiAgent,
192
+ flow_node_content_id: 'content-mock-003',
193
+ user_input: 'Hello',
194
+ tools_executed: [],
195
+ input_guardrails_triggered: [],
196
+ output_guardrails_triggered: [],
197
+ exit: false,
198
+ error: true,
199
+ } satisfies AiAgentDebugEvent,
200
+ } satisfies Record<string, DebugEvent>
package/src/dev-app.jsx CHANGED
@@ -1,5 +1,7 @@
1
+ import { INPUT } from '@botonic/core'
1
2
  import { createRoot } from 'react-dom/client'
2
3
 
4
+ import { DEBUG_SYSTEM_MESSAGES } from './debug-system-messages'
3
5
  import { SENDERS } from './index-types'
4
6
  import { ReactBot } from './react-bot'
5
7
  import { onDOMLoaded } from './util/dom'
@@ -25,6 +27,7 @@ export class DevApp extends WebchatApp {
25
27
  onClose,
26
28
  onMessage,
27
29
  onTrackEvent,
30
+ contentsByLocale,
28
31
  webviews,
29
32
  ...botOptions
30
33
  }) {
@@ -46,6 +49,7 @@ export class DevApp extends WebchatApp {
46
49
  onClose,
47
50
  onMessage,
48
51
  onTrackEvent,
52
+ contentsByLocale,
49
53
  })
50
54
  this.webviews = webviews
51
55
  this.bot = new ReactBot({
@@ -63,6 +67,7 @@ export class DevApp extends WebchatApp {
63
67
  onClose,
64
68
  onMessage,
65
69
  onTrackEvent,
70
+ contentsByLocale,
66
71
  hostId,
67
72
  ...webchatOptions
68
73
  } = optionsAtRuntime
@@ -74,6 +79,7 @@ export class DevApp extends WebchatApp {
74
79
  this.onClose = onClose || this.onClose
75
80
  this.onMessage = onMessage || this.onMessage
76
81
  this.onTrackEvent = onTrackEvent || this.onTrackEvent
82
+ this.contentsByLocale = contentsByLocale || this.contentsByLocale
77
83
  this.hostId = hostId || this.hostId
78
84
  this.createRootElement(host)
79
85
  return (
@@ -85,6 +91,7 @@ export class DevApp extends WebchatApp {
85
91
  theme={theme}
86
92
  storage={storage}
87
93
  storageKey={storageKey}
94
+ contentsByLocale={this.contentsByLocale}
88
95
  onInit={(...args) => this.onInitWebchat(...args)}
89
96
  onOpen={(...args) => this.onOpenWebchat(...args)}
90
97
  onClose={(...args) => this.onCloseWebchat(...args)}
@@ -104,6 +111,28 @@ export class DevApp extends WebchatApp {
104
111
  })
105
112
  }
106
113
 
114
+ /** Pre-built mock payloads for every debug event type. Handy from the console:
115
+ * Botonic.addDebugSystemMessage(Botonic.debugSystemMessages.aiAgent) */
116
+ get debugSystemMessages() {
117
+ return DEBUG_SYSTEM_MESSAGES
118
+ }
119
+
120
+ /**
121
+ * Inject a mock SystemDebugTrace event into the preview webchat.
122
+ * Accepts any DebugEvent payload (plain object with an `action` field).
123
+ *
124
+ * From code:
125
+ * import { DEBUG_SYSTEM_MESSAGES } from '@botonic/react/src/debug-system-messages'
126
+ * app.addDebugSystemMessage(DEBUG_SYSTEM_MESSAGES.aiAgent)
127
+ *
128
+ * From the browser console:
129
+ * Botonic.addDebugSystemMessage(Botonic.debugSystemMessages.conditionalQueueStatus)
130
+ * Botonic.addDebugSystemMessage({ action: 'nlu_keyword', nlu_keyword_name: 'hi', nlu_keyword_is_regex: false, flow_id: 'f1', flow_node_id: 'n1' })
131
+ */
132
+ addDebugSystemMessage(eventData) {
133
+ this.addSystemMessage({ type: INPUT.SYSTEM_DEBUG_TRACE, data: eventData })
134
+ }
135
+
107
136
  async onUserInput({ input, session, lastRoutePath }) {
108
137
  this.onMessage?.(this, {
109
138
  sentBy: SENDERS.user,
@@ -89,6 +89,10 @@ export interface MinimalHubtypeMessage {
89
89
  text: string
90
90
  }
91
91
 
92
+ export interface WebchatLocaleContents {
93
+ inputPlaceholder: string
94
+ }
95
+
92
96
  export interface PreviewUtils {
93
97
  getChunkIdsGroupedBySource: (
94
98
  chunkIds: string[]
@@ -122,6 +126,7 @@ export interface WebchatArgs {
122
126
  onMessage?: (app: WebchatApp, message: WebchatMessage) => void
123
127
  onTrackEvent?: TrackEventFunction
124
128
  onConnectionChange?: (app: WebchatApp, isOnline: boolean) => void
129
+ contentsByLocale?: Record<string, WebchatLocaleContents>
125
130
  appId?: string
126
131
  visibility?: boolean | (() => boolean) | 'dynamic'
127
132
  server?: ServerConfig
@@ -149,6 +154,7 @@ export interface WebchatProps {
149
154
  server?: ServerConfig
150
155
  localWebviews?: React.ComponentType[]
151
156
  previewUtils?: PreviewUtils
157
+ contentsByLocale?: Record<string, WebchatLocaleContents>
152
158
  }
153
159
 
154
160
  export type EventArgs = { [key: string]: any }
package/src/index.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export { BotonicInputTester, BotonicOutputTester } from './botonic-tester'
2
2
  export * from './components'
3
3
  export * from './contexts'
4
+ export { DEBUG_SYSTEM_MESSAGES } from './debug-system-messages'
4
5
  export { DevApp } from './dev-app'
5
6
  export * from './index-types'
6
7
  export { msgsToBotonic, msgToBotonic } from './msg-to-botonic'
@@ -1,4 +1,4 @@
1
- import { COLORS, WEBCHAT } from '../../constants'
1
+ import { COLORS, WEBCHAT, WEBCHAT_DEFAULT_CONTENTS } from '../../constants'
2
2
  import type { WebchatTheme } from './types'
3
3
 
4
4
  export const defaultTheme: WebchatTheme = {
@@ -81,7 +81,7 @@ export const defaultTheme: WebchatTheme = {
81
81
  userInput: {
82
82
  attachments: { enable: undefined },
83
83
  box: {
84
- placeholder: 'Ask me something...',
84
+ placeholder: WEBCHAT_DEFAULT_CONTENTS.INPUT_PLACEHOLDER,
85
85
  },
86
86
  emojiPicker: { enable: undefined },
87
87
  sendButton: { enable: true },
@@ -21,7 +21,13 @@ import {
21
21
  Video,
22
22
  type WebchatSettingsProps,
23
23
  } from '../components'
24
- import { COLORS, MAX_ALLOWED_SIZE_MB, ROLES, WEBCHAT } from '../constants'
24
+ import {
25
+ COLORS,
26
+ MAX_ALLOWED_SIZE_MB,
27
+ ROLES,
28
+ WEBCHAT,
29
+ WEBCHAT_DEFAULT_CONTENTS,
30
+ } from '../constants'
25
31
  import type { CloseWebviewOptions } from '../contexts'
26
32
  import { SENDERS, type WebchatProps, type WebchatRef } from '../index-types'
27
33
  import {
@@ -109,6 +115,7 @@ const Webchat = forwardRef<WebchatRef | null, WebchatProps>((props, ref) => {
109
115
  scrollableMessagesListRef,
110
116
  } = props.webchatHooks || useWebchat(props.theme)
111
117
 
118
+ const contentsByLocale = props.contentsByLocale
112
119
  const firstUpdate = useRef(true)
113
120
  const isOnline = () => webchatState.online
114
121
  const currentDateString = () => new Date().toISOString()
@@ -485,6 +492,16 @@ const Webchat = forwardRef<WebchatRef | null, WebchatProps>((props, ref) => {
485
492
  */
486
493
 
487
494
  const updateSessionWithUser = (userToUpdate: any) => {
495
+ if (contentsByLocale && userToUpdate.system_locale) {
496
+ const placeholder =
497
+ contentsByLocale[userToUpdate.system_locale]?.inputPlaceholder ??
498
+ WEBCHAT_DEFAULT_CONTENTS.INPUT_PLACEHOLDER
499
+ const themeUpdates = { userInput: { box: { placeholder } } }
500
+ updateTheme(
501
+ merge(props.theme, themeUpdates),
502
+ themeUpdates as WebchatTheme
503
+ )
504
+ }
488
505
  updateSession(merge(webchatState.session, { user: userToUpdate }))
489
506
  }
490
507
 
@@ -17,6 +17,7 @@ import {
17
17
  SENDERS,
18
18
  Typing,
19
19
  type WebchatArgs,
20
+ type WebchatLocaleContents,
20
21
  type WebchatMessage,
21
22
  type WebchatRef,
22
23
  } from './index-types'
@@ -55,6 +56,7 @@ export class WebchatApp {
55
56
  args?: EventArgs
56
57
  ) => Promise<void>
57
58
  public onConnectionChange?: (app: WebchatApp, isOnline: boolean) => void
59
+ public contentsByLocale?: Record<string, WebchatLocaleContents>
58
60
  public appId?: string
59
61
  public visibility?: boolean | (() => boolean) | 'dynamic'
60
62
  public server?: ServerConfig
@@ -86,6 +88,7 @@ export class WebchatApp {
86
88
  onMessage,
87
89
  onTrackEvent,
88
90
  onConnectionChange,
91
+ contentsByLocale,
89
92
  appId,
90
93
  visibility,
91
94
  server,
@@ -119,6 +122,7 @@ export class WebchatApp {
119
122
  this.onMessage = onMessage
120
123
  this.onTrackEvent = onTrackEvent
121
124
  this.onConnectionChange = onConnectionChange
125
+ this.contentsByLocale = contentsByLocale
122
126
  this.visibility = visibility
123
127
  this.server = server
124
128
  this.previewUtils = previewUtils
@@ -482,6 +486,7 @@ export class WebchatApp {
482
486
  onClose,
483
487
  onMessage,
484
488
  onConnectionChange,
489
+ contentsByLocale,
485
490
  onTrackEvent,
486
491
  appId,
487
492
  visibility,
@@ -502,6 +507,7 @@ export class WebchatApp {
502
507
  this.onMessage = onMessage || this.onMessage
503
508
  this.onTrackEvent = onTrackEvent || this.onTrackEvent
504
509
  this.onConnectionChange = onConnectionChange || this.onConnectionChange
510
+ this.contentsByLocale = contentsByLocale || this.contentsByLocale
505
511
  this.visibility = visibility || this.visibility
506
512
  this.appId = appId || this.appId
507
513
  this.hostId = hostId || this.hostId
@@ -533,6 +539,7 @@ export class WebchatApp {
533
539
  args?: EventArgs
534
540
  ) => this.onTrackEventWebchat(request, eventName, args)}
535
541
  server={server}
542
+ contentsByLocale={this.contentsByLocale}
536
543
  />
537
544
  )
538
545
  }