ninchat-embed 2.6.2 → 2.7.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/README.md +231 -28
- package/dist/embed3.js +1 -1
- package/dist/embed3.js.LICENSE.txt +2 -2
- package/dist/embed3.js.map +1 -1
- package/dist/src/antics/types/index.d.ts +24 -0
- package/dist/src/antics/types/index.d.ts.map +1 -1
- package/dist/src/api/NinchatClient.d.ts +2 -0
- package/dist/src/api/NinchatClient.d.ts.map +1 -1
- package/dist/src/api/action/createComment.d.ts +1 -1
- package/dist/src/api/action/createIdentity.d.ts +1 -1
- package/dist/src/api/action/createIdentityWithAuthResetAccess.d.ts +1 -1
- package/dist/src/api/action/createTag.d.ts +1 -1
- package/dist/src/api/action/deleteIdentity.d.ts +1 -1
- package/dist/src/api/action/deleteMessage.d.ts +1 -1
- package/dist/src/api/action/deleteTag.d.ts +1 -1
- package/dist/src/api/action/describeIdentity.d.ts +1 -1
- package/dist/src/api/action/describeQueue.d.ts +1 -1
- package/dist/src/api/action/describeTag.d.ts +1 -1
- package/dist/src/api/action/describeTags.d.ts +1 -1
- package/dist/src/api/action/endAudience.d.ts +1 -1
- package/dist/src/api/action/getAudienceRangeComments.d.ts +1 -1
- package/dist/src/api/action/getQueueActivity.d.ts +1 -1
- package/dist/src/api/action/getQueueStats.d.ts +1 -1
- package/dist/src/api/action/registerAudience.d.ts +1 -1
- package/dist/src/api/action/removeUnlinkedFile.d.ts +13 -0
- package/dist/src/api/action/removeUnlinkedFile.d.ts.map +1 -0
- package/dist/src/api/action/requestAudience.d.ts +1 -1
- package/dist/src/api/action/requestIdentityVerifyAccess.d.ts +1 -1
- package/dist/src/api/action/sendUnlinkedFiles.d.ts +21 -0
- package/dist/src/api/action/sendUnlinkedFiles.d.ts.map +1 -0
- package/dist/src/api/action/updateChannel.d.ts +1 -1
- package/dist/src/api/action/updateDialogue.d.ts +1 -1
- package/dist/src/api/action/updateIdentity.d.ts +1 -1
- package/dist/src/api/action/updateIdentityAuth.d.ts +1 -1
- package/dist/src/api/action/updateMessage.d.ts +1 -1
- package/dist/src/api/action/updateQueue.d.ts +1 -1
- package/dist/src/api/action/updateRealm.d.ts +1 -1
- package/dist/src/api/action/updateTag.d.ts +1 -1
- package/dist/src/api/action/updateUser.d.ts +1 -1
- package/dist/src/api/action/updateUserMessages.d.ts +1 -1
- package/dist/src/api/action/verifyIdentity.d.ts +1 -1
- package/dist/src/api/types/actions.d.ts +13 -1
- package/dist/src/api/types/actions.d.ts.map +1 -1
- package/dist/src/api/types/events.d.ts +6 -1
- package/dist/src/api/types/events.d.ts.map +1 -1
- package/dist/src/api/types/properties.d.ts +4 -1
- package/dist/src/api/types/properties.d.ts.map +1 -1
- package/dist/src/api/types/settings.d.ts +4 -0
- package/dist/src/api/types/settings.d.ts.map +1 -1
- package/dist/src/components/Embed/EmbedQuestionnaire.d.ts +6 -2
- package/dist/src/components/Embed/EmbedQuestionnaire.d.ts.map +1 -1
- package/dist/src/components/Embed/Questionnaire/QuestionnaireAttachment/QuestionnaireAttachment.d.ts +5 -0
- package/dist/src/components/Embed/Questionnaire/QuestionnaireAttachment/QuestionnaireAttachment.d.ts.map +1 -0
- package/dist/src/components/Embed/Questionnaire/QuestionnaireAttachment/QuestionnaireAttachmentView.d.ts +5 -0
- package/dist/src/components/Embed/Questionnaire/QuestionnaireAttachment/QuestionnaireAttachmentView.d.ts.map +1 -0
- package/dist/src/components/Embed/Questionnaire/QuestionnaireAttachment/index.d.ts +4 -0
- package/dist/src/components/Embed/Questionnaire/QuestionnaireAttachment/index.d.ts.map +1 -0
- package/dist/src/components/Embed/Questionnaire/QuestionnaireAttachment/styles/index.d.ts +145 -0
- package/dist/src/components/Embed/Questionnaire/QuestionnaireAttachment/styles/index.d.ts.map +1 -0
- package/dist/src/components/Embed/Questionnaire/QuestionnaireAttachment/types/index.d.ts +32 -0
- package/dist/src/components/Embed/Questionnaire/QuestionnaireAttachment/types/index.d.ts.map +1 -0
- package/dist/src/components/Embed/Questionnaire/QuestionnaireButton/QuestionnaireButton.d.ts +2 -0
- package/dist/src/components/Embed/Questionnaire/QuestionnaireButton/QuestionnaireButton.d.ts.map +1 -1
- package/dist/src/components/Embed/Questionnaire/QuestionnaireButton/styles/index.d.ts +44 -2
- package/dist/src/components/Embed/Questionnaire/QuestionnaireButton/styles/index.d.ts.map +1 -1
- package/dist/src/components/Embed/Questionnaire/QuestionnaireQueueButton/styles/index.d.ts +1 -0
- package/dist/src/components/Embed/Questionnaire/QuestionnaireQueueButton/styles/index.d.ts.map +1 -1
- package/dist/src/components/Embed/Questionnaire/QuestionnaireRadio/styles/index.d.ts +10 -0
- package/dist/src/components/Embed/Questionnaire/QuestionnaireRadio/styles/index.d.ts.map +1 -1
- package/dist/src/components/Embed/Questionnaire/QuestionnaireRating/QuestionnaireRating.d.ts +6 -6
- package/dist/src/components/Embed/Questionnaire/QuestionnaireRating/QuestionnaireRating.d.ts.map +1 -1
- package/dist/src/components/Embed/components/EmbedHero/EmbedHero.d.ts +1 -1
- package/dist/src/components/Embed/components/EmbedHero/EmbedHero.d.ts.map +1 -1
- package/dist/src/components/Embed/components/EmbedHero/styles/index.d.ts +73 -4
- package/dist/src/components/Embed/components/EmbedHero/styles/index.d.ts.map +1 -1
- package/dist/src/components/Embed/styles/questionnaire.d.ts +1 -0
- package/dist/src/components/Embed/styles/questionnaire.d.ts.map +1 -1
- package/dist/src/components/EmbedContext.d.ts +370 -23
- package/dist/src/components/EmbedContext.d.ts.map +1 -1
- package/dist/src/components/Icon/Icon.d.ts +18 -0
- package/dist/src/components/Icon/Icon.d.ts.map +1 -1
- package/dist/src/components/Jitsi/utils/connectivity.d.ts +12 -0
- package/dist/src/components/Jitsi/utils/connectivity.d.ts.map +1 -0
- package/dist/src/components/Progress/ProgressView.d.ts +7 -0
- package/dist/src/components/Progress/ProgressView.d.ts.map +1 -0
- package/dist/src/components/Progress/index.d.ts +3 -0
- package/dist/src/components/Progress/index.d.ts.map +1 -0
- package/dist/src/components/Queue/types/index.d.ts +1 -0
- package/dist/src/components/Queue/types/index.d.ts.map +1 -1
- package/dist/src/embed/components/embedWrapper.d.ts.map +1 -1
- package/dist/src/embed/listeners/queue.d.ts +4 -1
- package/dist/src/embed/listeners/queue.d.ts.map +1 -1
- package/dist/src/embed/listeners/session.d.ts +13 -1
- package/dist/src/embed/listeners/session.d.ts.map +1 -1
- package/dist/src/embed/schemas/index.d.ts +3723 -302
- package/dist/src/embed/schemas/index.d.ts.map +1 -1
- package/dist/src/embed/styles/global.d.ts.map +1 -1
- package/dist/src/embed/styles/index.d.ts.map +1 -1
- package/dist/src/embed/types/events.d.ts +2 -0
- package/dist/src/embed/types/events.d.ts.map +1 -1
- package/dist/src/embed/utils/config/index.d.ts +369 -22
- package/dist/src/embed/utils/config/index.d.ts.map +1 -1
- package/dist/src/hooks/queueTime/ticketDurationData.d.ts +25 -0
- package/dist/src/hooks/queueTime/ticketDurationData.d.ts.map +1 -0
- package/dist/src/hooks/queueTime/ticketState.d.ts +20 -0
- package/dist/src/hooks/queueTime/ticketState.d.ts.map +1 -0
- package/dist/src/hooks/queueTime/useQueueTimeContext.d.ts +11 -0
- package/dist/src/hooks/queueTime/useQueueTimeContext.d.ts.map +1 -0
- package/dist/src/hooks/queueTime/useTicketDuration.d.ts +27 -0
- package/dist/src/hooks/queueTime/useTicketDuration.d.ts.map +1 -0
- package/dist/src/middlewares/ninchat/sessionless.d.ts.map +1 -1
- package/dist/src/middlewares/ui.d.ts.map +1 -1
- package/dist/src/navigation/types.d.ts +1 -0
- package/dist/src/navigation/types.d.ts.map +1 -1
- package/dist/src/selectors/ninchat/groups.d.ts +21 -0
- package/dist/src/selectors/ninchat/groups.d.ts.map +1 -0
- package/dist/src/state/ui.d.ts +3 -0
- package/dist/src/state/ui.d.ts.map +1 -1
- package/dist/src/stitches/config.d.ts +120 -0
- package/dist/src/stitches/config.d.ts.map +1 -1
- package/dist/src/stitches/config.defaults.d.ts +34 -0
- package/dist/src/stitches/config.defaults.d.ts.map +1 -1
- package/dist/src/stitches/config.embed.d.ts.map +1 -1
- package/dist/src/stitches/overrideEmbedTheme.d.ts.map +1 -1
- package/dist/src/stitches/themes.d.ts +12 -0
- package/dist/src/stitches/themes.d.ts.map +1 -1
- package/dist/src/store/types/ui.d.ts +1 -0
- package/dist/src/store/types/ui.d.ts.map +1 -1
- package/dist/src/types/ui.d.ts +1 -0
- package/dist/src/types/ui.d.ts.map +1 -1
- package/dist/src/utils/download/index.d.ts +2 -0
- package/dist/src/utils/download/index.d.ts.map +1 -0
- package/dist/src/utils/file/index.d.ts +34 -0
- package/dist/src/utils/file/index.d.ts.map +1 -0
- package/dist/src/utils/index.d.ts +3 -0
- package/dist/src/utils/index.d.ts.map +1 -0
- package/dist/src/utils/queueSettings/index.d.ts +34 -0
- package/dist/src/utils/queueSettings/index.d.ts.map +1 -0
- package/dist/src/utils/regexp/index.d.ts +6 -0
- package/dist/src/utils/regexp/index.d.ts.map +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -91,17 +91,23 @@ install using `npm i ninchat-embed` or link main directly from ninchat.com:
|
|
|
91
91
|
| `initialRoute` | `Route` | Initial route on application load (for app version only) (app variant) |
|
|
92
92
|
| `colorScheme` | `'light' \| 'dark'` | Color scheme preference (app variant) |
|
|
93
93
|
| `hideSidebar` | `boolean` | Hide application sidebar |
|
|
94
|
+
| `hideMenubar` | `boolean` | Hide application menubar/navbar |
|
|
95
|
+
|
|
94
96
|
|
|
95
97
|
### Config 'Queue' and 'Channel' variants properties
|
|
96
98
|
|
|
97
99
|
| Key | Type | Description |
|
|
98
100
|
|-----|------|-------------|
|
|
101
|
+
| `reverseEmbedHeroContentOrdering` | `boolean`| Reverse order of elements in hero, rotating spinner will be the last |
|
|
99
102
|
| `scheduleAccessKey` | `string` | Access key for scheduled appointments |
|
|
100
103
|
| `channelId` | `string` | Channel id for variant "channel" |
|
|
101
104
|
| `audienceRealmId` | `string` | Realm identifier for audience (required) |
|
|
102
105
|
| `audienceAutoQueue` | `string` | Automatic queue for audience |
|
|
103
106
|
| `language` | `'fi' \| 'en' \| 'sv'` | Default language |
|
|
104
107
|
| `translations` | `object {"string": "string"}` | Custom translation overrides (key-value pairs) |
|
|
108
|
+
| `chatThumbnailsSize` | `object` | Configuration for chat thumbnails |
|
|
109
|
+
| `chatThumbnailsSize.maxHeight` | `number` | Chat thumbnail maxHeight (150px defailt) |
|
|
110
|
+
| `chatThumbnailsSize.maxWidth` | `string` | Chat thumbnail maxWidth (150px default) |
|
|
105
111
|
| `askUserName` | `boolean` | Force ask userName modal before entering first chat message |
|
|
106
112
|
| `inQueueText` | `string` | Text shown when user is in queue |
|
|
107
113
|
| `showCloseConfirmation` | `boolean` | Show confirmation dialog on close |
|
|
@@ -151,15 +157,30 @@ install using `npm i ninchat-embed` or link main directly from ninchat.com:
|
|
|
151
157
|
| `containerOptions.headerOptions.image.height` | `number` | Image height |
|
|
152
158
|
| `containerOptions.headerOptions.actions` | `object` | Header action buttons |
|
|
153
159
|
| `containerOptions.headerOptions.actions.close` | `object` | Close button configuration |
|
|
154
|
-
| `containerOptions.headerOptions.actions.close.icon` | `boolean` |
|
|
160
|
+
| `containerOptions.headerOptions.actions.close.icon` | `object/boolean` | Close icon configuration - show/hide default icon |
|
|
161
|
+
| `containerOptions.headerOptions.actions.close.icon.src` | `string` | Image source URL |
|
|
162
|
+
| `containerOptions.headerOptions.actions.close.icon.alt` | `string` | Image alt text |
|
|
163
|
+
| `containerOptions.headerOptions.actions.close.icon.svg` | `string` | Inline SVG |
|
|
164
|
+
| `containerOptions.headerOptions.actions.close.icon.width` | `number` | Image width |
|
|
165
|
+
| `containerOptions.headerOptions.actions.close.icon.height` | `number` | Image height |
|
|
155
166
|
| `containerOptions.headerOptions.actions.close.buttonTitle` | `string` | Close button title |
|
|
156
167
|
| `containerOptions.headerOptions.actions.close.text` | `string` | Close button text |
|
|
157
168
|
| `containerOptions.headerOptions.actions.dropdown` | `object` | Dropdown button configuration |
|
|
158
|
-
| `containerOptions.headerOptions.actions.dropdown.icon` | `boolean` |
|
|
169
|
+
| `containerOptions.headerOptions.actions.dropdown.icon` | `object/boolean` | Dropdown icon configuration - show/hide default icon |
|
|
170
|
+
| `containerOptions.headerOptions.actions.dropdown.icon.src` | `string` | Image source URL |
|
|
171
|
+
| `containerOptions.headerOptions.actions.dropdown.icon.alt` | `string` | Image alt text |
|
|
172
|
+
| `containerOptions.headerOptions.actions.dropdown.icon.svg` | `string` | Inline SVG |
|
|
173
|
+
| `containerOptions.headerOptions.actions.dropdown.icon.width` | `number` | Image width |
|
|
174
|
+
| `containerOptions.headerOptions.actions.dropdown.icon.height` | `number` | Image height |
|
|
159
175
|
| `containerOptions.headerOptions.actions.dropdown.buttonTitle` | `string` | Dropdown button title |
|
|
160
176
|
| `containerOptions.headerOptions.actions.dropdown.text` | `string` | Dropdown button text |
|
|
161
177
|
| `containerOptions.headerOptions.actions.chatList` | `object` | Chat list button configuration |
|
|
162
|
-
| `containerOptions.headerOptions.actions.chatList.icon` | `boolean` |
|
|
178
|
+
| `containerOptions.headerOptions.actions.chatList.icon` | `object/boolean` | ChatList icon configuration - show/hide default icon |
|
|
179
|
+
| `containerOptions.headerOptions.actions.chatList.icon.src` | `string` | Image source URL |
|
|
180
|
+
| `containerOptions.headerOptions.actions.chatList.icon.alt` | `string` | Image alt text |
|
|
181
|
+
| `containerOptions.headerOptions.actions.chatList.icon.svg` | `string` | Inline SVG |
|
|
182
|
+
| `containerOptions.headerOptions.actions.chatList.icon.width` | `number` | Image width |
|
|
183
|
+
| `containerOptions.headerOptions.actions.chatList.icon.height` | `number` | Image height |
|
|
163
184
|
| `containerOptions.headerOptions.actions.chatList.buttonTitle` | `string` | Chat list button title |
|
|
164
185
|
| `containerOptions.headerOptions.actions.chatList.text` | `string` | Chat list button text |
|
|
165
186
|
|
|
@@ -184,9 +205,6 @@ install using `npm i ninchat-embed` or link main directly from ninchat.com:
|
|
|
184
205
|
| `floatingOptions.ballOptions.offset` | `object` | Ball position offset |
|
|
185
206
|
| `floatingOptions.ballOptions.offset.x` | `number` | Horizontal offset in pixels |
|
|
186
207
|
| `floatingOptions.ballOptions.offset.y` | `number` | Vertical offset in pixels |
|
|
187
|
-
| `floatingOptions.ballOptions.padding` | `object` | Ball padding |
|
|
188
|
-
| `floatingOptions.ballOptions.padding.horizontal` | `number` | Horizontal padding in pixels |
|
|
189
|
-
| `floatingOptions.ballOptions.padding.vertical` | `number` | Vertical padding in pixels |
|
|
190
208
|
| `floatingOptions.headerOptions` | `object` | Floating header configuration |
|
|
191
209
|
| `floatingOptions.headerOptions.height` | `number` | Header height in pixels |
|
|
192
210
|
| `floatingOptions.headerOptions.title` | `object` | Title text per state |
|
|
@@ -202,65 +220,140 @@ install using `npm i ninchat-embed` or link main directly from ninchat.com:
|
|
|
202
220
|
| `floatingOptions.headerOptions.actions` | `object` | Action buttons configuration |
|
|
203
221
|
| `floatingOptions.headerOptions.actions.minimized` | `object` | Actions for minimized state |
|
|
204
222
|
| `floatingOptions.headerOptions.actions.minimized.minimize` | `object` | Minimize button config |
|
|
205
|
-
| `floatingOptions.headerOptions.actions.minimized.minimize.icon` | `boolean` |
|
|
223
|
+
| `floatingOptions.headerOptions.actions.minimized.minimize.icon` | `object/boolean` | Minimize icon configuration - show/hide default |
|
|
224
|
+
| `floatingOptions.headerOptions.actions.minimized.minimize.icon.src` | `string` | Image source URL |
|
|
225
|
+
| `floatingOptions.headerOptions.actions.minimized.minimize.icon.alt` | `string` | Image alt text |
|
|
226
|
+
| `floatingOptions.headerOptions.actions.minimized.minimize.icon.svg` | `string` | Inline SVG |
|
|
227
|
+
| `floatingOptions.headerOptions.actions.minimized.minimize.icon.width` | `number` | Image width |
|
|
228
|
+
| `floatingOptions.headerOptions.actions.minimized.minimize.icon.height` | `number` | Image height |
|
|
206
229
|
| `floatingOptions.headerOptions.actions.minimized.minimize.buttonTitle` | `string` | Minimize button title |
|
|
207
230
|
| `floatingOptions.headerOptions.actions.minimized.minimize.text` | `string` | Minimize button text |
|
|
208
231
|
| `floatingOptions.headerOptions.actions.minimized.expand` | `object` | Expand button config |
|
|
209
|
-
| `floatingOptions.headerOptions.actions.minimized.expand.icon`
|
|
232
|
+
| `floatingOptions.headerOptions.actions.minimized.expand.icon` |`object/boolean` | Expand icon configuration - show/hide default |
|
|
233
|
+
| `floatingOptions.headerOptions.actions.minimized.expand.icon.src` | `string` | Image source URL |
|
|
234
|
+
| `floatingOptions.headerOptions.actions.minimized.expand.icon.alt` | `string` | Image alt text |
|
|
235
|
+
| `floatingOptions.headerOptions.actions.minimized.expand.icon.svg` | `string` | Inline SVG |
|
|
236
|
+
| `floatingOptions.headerOptions.actions.minimized.expand.icon.width` | `number` | Image width |
|
|
237
|
+
| `floatingOptions.headerOptions.actions.minimized.expand.icon.height` | `number` | Image height |
|
|
210
238
|
| `floatingOptions.headerOptions.actions.minimized.expand.buttonTitle` | `string` | Expand button title |
|
|
211
239
|
| `floatingOptions.headerOptions.actions.minimized.expand.text` | `string` | Expand button text |
|
|
212
240
|
| `floatingOptions.headerOptions.actions.minimized.close` | `object` | Close button config |
|
|
213
|
-
| `floatingOptions.headerOptions.actions.minimized.close.icon`
|
|
241
|
+
| `floatingOptions.headerOptions.actions.minimized.close.icon` |`object/boolean` | Close icon configuration - show/hide default |
|
|
242
|
+
| `floatingOptions.headerOptions.actions.minimized.close.icon.src` | `string` | Image source URL |
|
|
243
|
+
| `floatingOptions.headerOptions.actions.minimized.close.icon.alt` | `string` | Image alt text |
|
|
244
|
+
| `floatingOptions.headerOptions.actions.minimized.close.icon.svg` | `string` | Inline SVG |
|
|
245
|
+
| `floatingOptions.headerOptions.actions.minimized.close.icon.width` | `number` | Image width |
|
|
246
|
+
| `floatingOptions.headerOptions.actions.minimized.close.icon.height` | `number` | Image height |
|
|
214
247
|
| `floatingOptions.headerOptions.actions.minimized.close.buttonTitle` | `string` | Close button title |
|
|
215
248
|
| `floatingOptions.headerOptions.actions.minimized.close.text` | `string` | Close button text |
|
|
216
249
|
| `floatingOptions.headerOptions.actions.minimized.dropdown` | `object` | Dropdown button config |
|
|
217
|
-
| `floatingOptions.headerOptions.actions.minimized.dropdown.icon`
|
|
250
|
+
| `floatingOptions.headerOptions.actions.minimized.dropdown.icon` |`object/boolean` | Dropdown icon configuration - show/hide default |
|
|
251
|
+
| `floatingOptions.headerOptions.actions.minimized.dropdown.icon.src` | `string` | Image source URL |
|
|
252
|
+
| `floatingOptions.headerOptions.actions.minimized.dropdown.icon.alt` | `string` | Image alt text |
|
|
253
|
+
| `floatingOptions.headerOptions.actions.minimized.dropdowd.icon.svg` | `string` | Inline SVG |
|
|
254
|
+
| `floatingOptions.headerOptions.actions.minimized.dropdown.icon.width` | `number` | Image width |
|
|
255
|
+
| `floatingOptions.headerOptions.actions.minimized.dropdown.icon.height` | `number` | Image height |
|
|
218
256
|
| `floatingOptions.headerOptions.actions.minimized.dropdown.buttonTitle` | `string` | Dropdown button title |
|
|
219
257
|
| `floatingOptions.headerOptions.actions.minimized.dropdown.text` | `string` | Dropdown button text |
|
|
220
258
|
| `floatingOptions.headerOptions.actions.minimized.chatList` | `object` | Chat list button config |
|
|
221
|
-
| `floatingOptions.headerOptions.actions.minimized.chatList.icon`
|
|
259
|
+
| `floatingOptions.headerOptions.actions.minimized.chatList.icon` |`object/boolean` | Chat list icon configuration - show/hide default |
|
|
260
|
+
| `floatingOptions.headerOptions.actions.minimized.chatList.icon.src` | `string` | Image source URL |
|
|
261
|
+
| `floatingOptions.headerOptions.actions.minimized.chatList.icon.alt` | `string` | Image alt text |
|
|
262
|
+
| `floatingOptions.headerOptions.actions.minimized.chatList.icon.svg` | `string` | Inline SVG |
|
|
263
|
+
| `floatingOptions.headerOptions.actions.minimized.chatList.icon.width` | `number` | Image width |
|
|
264
|
+
| `floatingOptions.headerOptions.actions.minimized.chatList.icon.height` | `number` | Image height |
|
|
222
265
|
| `floatingOptions.headerOptions.actions.minimized.chatList.buttonTitle` | `string` | Chat list button title |
|
|
223
266
|
| `floatingOptions.headerOptions.actions.minimized.chatList.text` | `string` | Chat list button text |
|
|
224
267
|
| `floatingOptions.headerOptions.actions.open` | `object` | Actions for open state |
|
|
225
268
|
| `floatingOptions.headerOptions.actions.open.minimize` | `object` | Minimize button config |
|
|
226
|
-
| `floatingOptions.headerOptions.actions.open.minimize.icon` | `boolean` |
|
|
269
|
+
| `floatingOptions.headerOptions.actions.open.minimize.icon` | `object/boolean` | Minimize icon configuration - show/hide default |
|
|
270
|
+
| `floatingOptions.headerOptions.actions.open.minimize.icon.src` | `string` | Image source URL |
|
|
271
|
+
| `floatingOptions.headerOptions.actions.open.minimize.icon.alt` | `string` | Image alt text |
|
|
272
|
+
| `floatingOptions.headerOptions.actions.open.minimize.icon.svg` | `string` | Inline SVG |
|
|
273
|
+
| `floatingOptions.headerOptions.actions.open.minimize.icon.width` | `number` | Image width |
|
|
274
|
+
| `floatingOptions.headerOptions.actions.open.minimize.icon.height` | `number` | Image height |
|
|
227
275
|
| `floatingOptions.headerOptions.actions.open.minimize.buttonTitle` | `string` | Minimize button title |
|
|
228
276
|
| `floatingOptions.headerOptions.actions.open.minimize.text` | `string` | Minimize button text |
|
|
229
277
|
| `floatingOptions.headerOptions.actions.open.expand` | `object` | Expand button config |
|
|
230
|
-
| `floatingOptions.headerOptions.actions.open.expand.icon`
|
|
278
|
+
| `floatingOptions.headerOptions.actions.open.expand.icon` |`object/boolean` | Expand icon configuration - show/hide default |
|
|
279
|
+
| `floatingOptions.headerOptions.actions.open.expand.icon.src` | `string` | Image source URL |
|
|
280
|
+
| `floatingOptions.headerOptions.actions.open.expand.icon.alt` | `string` | Image alt text |
|
|
281
|
+
| `floatingOptions.headerOptions.actions.open.expand.icon.svg` | `string` | Inline SVG |
|
|
282
|
+
| `floatingOptions.headerOptions.actions.open.expand.icon.width` | `number` | Image width |
|
|
283
|
+
| `floatingOptions.headerOptions.actions.open.expand.icon.height` | `number` | Image height |
|
|
231
284
|
| `floatingOptions.headerOptions.actions.open.expand.buttonTitle` | `string` | Expand button title |
|
|
232
285
|
| `floatingOptions.headerOptions.actions.open.expand.text` | `string` | Expand button text |
|
|
233
286
|
| `floatingOptions.headerOptions.actions.open.close` | `object` | Close button config |
|
|
234
|
-
| `floatingOptions.headerOptions.actions.open.close.icon`
|
|
287
|
+
| `floatingOptions.headerOptions.actions.open.close.icon` |`object/boolean` | Close icon configuration - show/hide default |
|
|
288
|
+
| `floatingOptions.headerOptions.actions.open.close.icon.src` | `string` | Image source URL |
|
|
289
|
+
| `floatingOptions.headerOptions.actions.open.close.icon.alt` | `string` | Image alt text |
|
|
290
|
+
| `floatingOptions.headerOptions.actions.open.close.icon.svg` | `string` | Inline SVG |
|
|
291
|
+
| `floatingOptions.headerOptions.actions.open.close.icon.width` | `number` | Image width |
|
|
292
|
+
| `floatingOptions.headerOptions.actions.open.close.icon.height` | `number` | Image height |
|
|
235
293
|
| `floatingOptions.headerOptions.actions.open.close.buttonTitle` | `string` | Close button title |
|
|
236
294
|
| `floatingOptions.headerOptions.actions.open.close.text` | `string` | Close button text |
|
|
237
295
|
| `floatingOptions.headerOptions.actions.open.dropdown` | `object` | Dropdown button config |
|
|
238
|
-
| `floatingOptions.headerOptions.actions.open.dropdown.icon`
|
|
296
|
+
| `floatingOptions.headerOptions.actions.open.dropdown.icon` |`object/boolean` | Dropdown icon configuration - show/hide default |
|
|
297
|
+
| `floatingOptions.headerOptions.actions.open.dropdown.icon.src` | `string` | Image source URL |
|
|
298
|
+
| `floatingOptions.headerOptions.actions.open.dropdown.icon.alt` | `string` | Image alt text |
|
|
299
|
+
| `floatingOptions.headerOptions.actions.open.dropdowd.icon.svg` | `string` | Inline SVG |
|
|
300
|
+
| `floatingOptions.headerOptions.actions.open.dropdown.icon.width` | `number` | Image width |
|
|
301
|
+
| `floatingOptions.headerOptions.actions.open.dropdown.icon.height` | `number` | Image height |
|
|
239
302
|
| `floatingOptions.headerOptions.actions.open.dropdown.buttonTitle` | `string` | Dropdown button title |
|
|
240
303
|
| `floatingOptions.headerOptions.actions.open.dropdown.text` | `string` | Dropdown button text |
|
|
241
304
|
| `floatingOptions.headerOptions.actions.open.chatList` | `object` | Chat list button config |
|
|
242
|
-
| `floatingOptions.headerOptions.actions.open.chatList.icon`
|
|
305
|
+
| `floatingOptions.headerOptions.actions.open.chatList.icon` |`object/boolean` | Chat list icon configuration - show/hide default |
|
|
306
|
+
| `floatingOptions.headerOptions.actions.open.chatList.icon.src` | `string` | Image source URL |
|
|
307
|
+
| `floatingOptions.headerOptions.actions.open.chatList.icon.alt` | `string` | Image alt text |
|
|
308
|
+
| `floatingOptions.headerOptions.actions.open.chatList.icon.svg` | `string` | Inline SVG |
|
|
309
|
+
| `floatingOptions.headerOptions.actions.open.chatList.icon.width` | `number` | Image width |
|
|
310
|
+
| `floatingOptions.headerOptions.actions.open.chatList.icon.height` | `number` | Image height |
|
|
243
311
|
| `floatingOptions.headerOptions.actions.open.chatList.buttonTitle` | `string` | Chat list button title |
|
|
244
312
|
| `floatingOptions.headerOptions.actions.open.chatList.text` | `string` | Chat list button text |
|
|
245
313
|
| `floatingOptions.headerOptions.actions.full` | `object` | Actions for expanded/full state |
|
|
246
314
|
| `floatingOptions.headerOptions.actions.full.minimize` | `object` | Minimize button config |
|
|
247
|
-
| `floatingOptions.headerOptions.actions.full.minimize.icon` | `boolean` |
|
|
315
|
+
| `floatingOptions.headerOptions.actions.full.minimize.icon` | `object/boolean` | Minimize icon configuration - show/hide default |
|
|
316
|
+
| `floatingOptions.headerOptions.actions.full.minimize.icon.src` | `string` | Image source URL |
|
|
317
|
+
| `floatingOptions.headerOptions.actions.full.minimize.icon.alt` | `string` | Image alt text |
|
|
318
|
+
| `floatingOptions.headerOptions.actions.full.minimize.icon.svg` | `string` | Inline SVG |
|
|
319
|
+
| `floatingOptions.headerOptions.actions.full.minimize.icon.width` | `number` | Image width |
|
|
320
|
+
| `floatingOptions.headerOptions.actions.full.minimize.icon.height` | `number` | Image height |
|
|
248
321
|
| `floatingOptions.headerOptions.actions.full.minimize.buttonTitle` | `string` | Minimize button title |
|
|
249
322
|
| `floatingOptions.headerOptions.actions.full.minimize.text` | `string` | Minimize button text |
|
|
250
323
|
| `floatingOptions.headerOptions.actions.full.expand` | `object` | Expand button config |
|
|
251
|
-
| `floatingOptions.headerOptions.actions.full.expand.icon`
|
|
324
|
+
| `floatingOptions.headerOptions.actions.full.expand.icon` |`object/boolean` | Expand icon configuration - show/hide default |
|
|
325
|
+
| `floatingOptions.headerOptions.actions.full.expand.icon.src` | `string` | Image source URL |
|
|
326
|
+
| `floatingOptions.headerOptions.actions.full.expand.icon.alt` | `string` | Image alt text |
|
|
327
|
+
| `floatingOptions.headerOptions.actions.full.expand.icon.svg` | `string` | Inline SVG |
|
|
328
|
+
| `floatingOptions.headerOptions.actions.full.expand.icon.width` | `number` | Image width |
|
|
329
|
+
| `floatingOptions.headerOptions.actions.full.expand.icon.height` | `number` | Image height |
|
|
252
330
|
| `floatingOptions.headerOptions.actions.full.expand.buttonTitle` | `string` | Expand button title |
|
|
253
331
|
| `floatingOptions.headerOptions.actions.full.expand.text` | `string` | Expand button text |
|
|
254
332
|
| `floatingOptions.headerOptions.actions.full.close` | `object` | Close button config |
|
|
255
|
-
| `floatingOptions.headerOptions.actions.full.close.icon`
|
|
333
|
+
| `floatingOptions.headerOptions.actions.full.close.icon` |`object/boolean` | Close icon configuration - show/hide default |
|
|
334
|
+
| `floatingOptions.headerOptions.actions.full.close.icon.src` | `string` | Image source URL |
|
|
335
|
+
| `floatingOptions.headerOptions.actions.full.close.icon.alt` | `string` | Image alt text |
|
|
336
|
+
| `floatingOptions.headerOptions.actions.full.close.icon.svg` | `string` | Inline SVG |
|
|
337
|
+
| `floatingOptions.headerOptions.actions.full.close.icon.width` | `number` | Image width |
|
|
338
|
+
| `floatingOptions.headerOptions.actions.full.close.icon.height` | `number` | Image height |
|
|
256
339
|
| `floatingOptions.headerOptions.actions.full.close.buttonTitle` | `string` | Close button title |
|
|
257
340
|
| `floatingOptions.headerOptions.actions.full.close.text` | `string` | Close button text |
|
|
258
341
|
| `floatingOptions.headerOptions.actions.full.dropdown` | `object` | Dropdown button config |
|
|
259
|
-
| `floatingOptions.headerOptions.actions.full.dropdown.icon`
|
|
342
|
+
| `floatingOptions.headerOptions.actions.full.dropdown.icon` |`object/boolean` | Dropdown icon configuration - show/hide default |
|
|
343
|
+
| `floatingOptions.headerOptions.actions.full.dropdown.icon.src` | `string` | Image source URL |
|
|
344
|
+
| `floatingOptions.headerOptions.actions.full.dropdown.icon.alt` | `string` | Image alt text |
|
|
345
|
+
| `floatingOptions.headerOptions.actions.full.dropdowd.icon.svg` | `string` | Inline SVG |
|
|
346
|
+
| `floatingOptions.headerOptions.actions.full.dropdown.icon.width` | `number` | Image width |
|
|
347
|
+
| `floatingOptions.headerOptions.actions.full.dropdown.icon.height` | `number` | Image height |
|
|
260
348
|
| `floatingOptions.headerOptions.actions.full.dropdown.buttonTitle` | `string` | Dropdown button title |
|
|
261
349
|
| `floatingOptions.headerOptions.actions.full.dropdown.text` | `string` | Dropdown button text |
|
|
262
350
|
| `floatingOptions.headerOptions.actions.full.chatList` | `object` | Chat list button config |
|
|
263
|
-
| `floatingOptions.headerOptions.actions.full.chatList.icon`
|
|
351
|
+
| `floatingOptions.headerOptions.actions.full.chatList.icon` |`object/boolean` | Chat list icon configuration - show/hide default |
|
|
352
|
+
| `floatingOptions.headerOptions.actions.full.chatList.icon.src` | `string` | Image source URL |
|
|
353
|
+
| `floatingOptions.headerOptions.actions.full.chatList.icon.alt` | `string` | Image alt text |
|
|
354
|
+
| `floatingOptions.headerOptions.actions.full.chatList.icon.svg` | `string` | Inline SVG |
|
|
355
|
+
| `floatingOptions.headerOptions.actions.full.chatList.icon.width` | `number` | Image width |
|
|
356
|
+
| `floatingOptions.headerOptions.actions.full.chatList.icon.height` | `number` | Image height |
|
|
264
357
|
| `floatingOptions.headerOptions.actions.full.chatList.buttonTitle` | `string` | Chat list button title |
|
|
265
358
|
| `floatingOptions.headerOptions.actions.full.chatList.text` | `string` | Chat list button text |
|
|
266
359
|
| `floatingOptions.promoBubble` | `object` | Promotional bubble configuration |
|
|
@@ -296,6 +389,9 @@ install using `npm i ninchat-embed` or link main directly from ninchat.com:
|
|
|
296
389
|
| `customFonts[].weight` | `string \| number` | Font weight |
|
|
297
390
|
| `customFonts[].style` | `'normal' \| 'italic' \| 'bold'` | Font style |
|
|
298
391
|
| `customFonts[].src` | `string` | Font file URL (required) |
|
|
392
|
+
| `customFonts[].ascentOverride` | `string` | `@font-face` ascent-override descriptor (e.g. `'90%'`). Normalizes the font's intrinsic ascent metric to keep line-box height consistent across browsers (notably Firefox) |
|
|
393
|
+
| `customFonts[].descentOverride` | `string` | `@font-face` descent-override descriptor (e.g. `'22%'`). Normalizes the font's intrinsic descent metric to keep line-box height consistent across browsers |
|
|
394
|
+
| `customFonts[].lineGapOverride` | `string` | `@font-face` line-gap-override descriptor (e.g. `'0%'`). Normalizes the font's intrinsic line gap to keep line-box height consistent across browsers |
|
|
299
395
|
| `colors.buttonFilledBackground` | `string` | Button filled background color |
|
|
300
396
|
| `colors.buttonFilledBackgroundActive` | `string` | Button filled background color (active) |
|
|
301
397
|
| `colors.buttonFilledBackgroundDisabled` | `string` | Button filled background color (disabled) |
|
|
@@ -329,7 +425,7 @@ install using `npm i ninchat-embed` or link main directly from ninchat.com:
|
|
|
329
425
|
| `colors.buttonBorderHover` | `string` | Button border color (hover) |
|
|
330
426
|
| `colors.buttonText` | `string` | Button text color |
|
|
331
427
|
| `colors.buttonTextActive` | `string` | Button text color (active) |
|
|
332
|
-
| `colors.
|
|
428
|
+
| `colors.buttonTextDisabled` | `string` | Button text color (disabled) |
|
|
333
429
|
| `colors.buttonTextFocus` | `string` | Button text color (focus) |
|
|
334
430
|
| `colors.buttonTextHover` | `string` | Button text color (hover) |
|
|
335
431
|
| `colors.buttonIcon` | `string` | Button icon color |
|
|
@@ -380,6 +476,11 @@ install using `npm i ninchat-embed` or link main directly from ninchat.com:
|
|
|
380
476
|
| `colors.buttonSendIconFocus` | `string` | Send button icon color (focus) |
|
|
381
477
|
| `colors.buttonSendIconHover` | `string` | Send button icon color (hover) |
|
|
382
478
|
| `colors.buttonSendOutlineFocus` | `string` | Send button focus outline color |
|
|
479
|
+
| `colors.buttonCommandBarBorder` | `string` | Command bar button border color |
|
|
480
|
+
| `colors.buttonCommandBarBorderActive` | `string` | Command bar button border color (active) |
|
|
481
|
+
| `colors.buttonCommandBarBorderDisabled` | `string` | Command bar button border color (disabled) |
|
|
482
|
+
| `colors.buttonCommandBarBorderFocus` | `string` | Command bar button border color (focus) |
|
|
483
|
+
| `colors.buttonCommandBarBorderHover` | `string` | Command bar button border color (hover) |
|
|
383
484
|
| `colors.buttonVideoBackground` | `string` | Video button background color |
|
|
384
485
|
| `colors.buttonVideoBackgroundActive` | `string` | Video button background color (active) |
|
|
385
486
|
| `colors.buttonVideoBackgroundDisabled` | `string` | Video button background color (disabled) |
|
|
@@ -403,10 +504,13 @@ install using `npm i ninchat-embed` or link main directly from ninchat.com:
|
|
|
403
504
|
| `colors.buttonVideoOutlineFocus` | `string` | Video button focus outline color |
|
|
404
505
|
| `colors.questionnaireRadioBackground` | `string` | Radio button background color |
|
|
405
506
|
| `colors.questionnaireRadioBackgroundSelected` | `string` | Radio button background color (selected) |
|
|
507
|
+
| `colors.questionnaireRadioBackgroundHover` | `string` | Radio button background hover |
|
|
406
508
|
| `colors.questionnaireRadioBorder` | `string` | Radio button border color |
|
|
407
509
|
| `colors.questionnaireRadioBorderSelected` | `string` | Radio button border color (selected) |
|
|
510
|
+
| `colors.questionnaireRadioBorderHover` | `string`| Radio button border hover color |
|
|
408
511
|
| `colors.questionnaireRadioText` | `string` | Radio button text color |
|
|
409
512
|
| `colors.questionnaireRadioTextSelected` | `string` | Radio button text color (selected) |
|
|
513
|
+
| `colors.questionnaireRadioTextHover` | `string`| Radio button text hover color |
|
|
410
514
|
| `colors.questionnaireRadioFocusOutline` | `string` | Radio button focus outline color |
|
|
411
515
|
| `colors.modalBackground` | `string` | Modal background color |
|
|
412
516
|
| `colors.modalHeaderBackground` | `string` | Modal header background color |
|
|
@@ -521,6 +625,8 @@ install using `npm i ninchat-embed` or link main directly from ninchat.com:
|
|
|
521
625
|
| `colors.floatingEmbedHeaderSubtitle` | `string` | Floating embed header subtitle color |
|
|
522
626
|
| `colors.floatingEmbedHeaderButton` | `string` | Floating embed header button color |
|
|
523
627
|
| `colors.floatingEmbedHeaderButtonIcon` | `string` | Floating embed header button icon color |
|
|
628
|
+
| `colors.floatingEmbedHeaderButtonHover` | `string` | Floating embed header button hover color |
|
|
629
|
+
| `colors.floatingEmbedHeaderButtonIconHiver` | `string` | Floating embed header button icon hover color |
|
|
524
630
|
| `colors.floatingEmbedHeaderButtonBackground` | `string` | Floating embed header button background color |
|
|
525
631
|
| `colors.floatingEmbedHeaderButtonBorder` | `string` | Floating embed header button border color |
|
|
526
632
|
| `colors.floatingEmbedHeaderButtonHoverBackground` | `string` | Floating embed header button background (hover) |
|
|
@@ -540,6 +646,8 @@ install using `npm i ninchat-embed` or link main directly from ninchat.com:
|
|
|
540
646
|
| `colors.containerEmbedHeaderSubtitle` | `string` | Container embed header subtitle color |
|
|
541
647
|
| `colors.containerEmbedHeaderButton` | `string` | Container embed header button color |
|
|
542
648
|
| `colors.containerEmbedHeaderButtonIcon` | `string` | Container embed header button icon color |
|
|
649
|
+
| `colors.containerEmbedHeaderButtonHover` | `string` | Container embed header button hover color |
|
|
650
|
+
| `colors.containerEmbedHeaderButtonIconHover` | `string` | Container embed header button icon hover color |
|
|
543
651
|
| `colors.containerEmbedHeaderButtonBackground` | `string` | Container embed header button background color |
|
|
544
652
|
| `colors.containerEmbedHeaderButtonBorder` | `string` | Container embed header button border color |
|
|
545
653
|
| `colors.containerEmbedHeaderButtonHoverBackground` | `string` | Container embed header button background (hover) |
|
|
@@ -555,19 +663,27 @@ install using `npm i ninchat-embed` or link main directly from ninchat.com:
|
|
|
555
663
|
| `colors.embedBodyBold` | `string` | Embed body bold text color |
|
|
556
664
|
| `colors.embedBodyBackground` | `string` | Embed body background color |
|
|
557
665
|
| `colors.embedErrorTitle` | `string` | Embed error title color |
|
|
666
|
+
| `colors.embedHeadingHighlighted` | `string` | Embed body heading highlighted color |
|
|
558
667
|
| `colors.embedHero` | `string` | Embed hero text color |
|
|
559
668
|
| `colors.embedHeroBorder` | `string` | Embed hero border color |
|
|
560
669
|
| `colors.embedHeroBackground` | `string` | Embed hero background color |
|
|
561
670
|
| `colors.embedHeroAvatar` | `string` | Embed hero avatar background color |
|
|
562
671
|
| `colors.embedHeroAvatarBorder` | `string` | Embed hero avatar border color |
|
|
672
|
+
| `colors.embedHeroTitle` | `string` | Embed hero title color |
|
|
673
|
+
| `colors.embedHeroTitleInQueue` | `string` | Embed hero title in queue color |
|
|
563
674
|
| `colors.embedHeroSubtitle` | `string` | Embed hero subtitle color |
|
|
675
|
+
| `colors.embedHeroSubtitleInQueue` | `string` | Embed hero subtitle in queue color |
|
|
676
|
+
| `colors.embedHeroErrorTitle` | `string` | Embed hero error title color |
|
|
677
|
+
| `colors.embedHeroErrorMessage` | `string` | Embed hero error message color |
|
|
564
678
|
| `colors.embedQueuePosition` | `string` | Embed queue position text color |
|
|
565
679
|
| `colors.embedQueueSpinner` | `string` | Embed queue spinner color |
|
|
680
|
+
| `colors.embedModalHeader` | `string` | Embed modal header color |
|
|
681
|
+
| `colors.questionnaireErrorTitle` | `string` | Embed error title color |
|
|
566
682
|
| `colors.questionnaireNavigation` | `string` | Questionnaire navigation color |
|
|
567
683
|
| `colors.questionnaireEmojiGood` | `string` | Questionnaire good emoji color |
|
|
568
|
-
| `colors.
|
|
569
|
-
| `colors.
|
|
570
|
-
| `colors.
|
|
684
|
+
| `colors.questionnaireEmojiAverageGood` | `string` | Questionnaire above average emoji color |
|
|
685
|
+
| `colors.questionnaireEmojiAverage` | `string` | Questionnaire average emoji color |
|
|
686
|
+
| `colors.questionnaireEmojiAverageBad` | `string` | Questionnaire below average emoji color |
|
|
571
687
|
| `colors.questionnaireEmojiBad` | `string` | Questionnaire bad emoji color |
|
|
572
688
|
| `colors.questionnaireLink` | `string` | Questionnaire link color |
|
|
573
689
|
| `colors.questionnaireLinkHover` | `string` | Questionnaire link color (hover) |
|
|
@@ -619,6 +735,7 @@ install using `npm i ninchat-embed` or link main directly from ninchat.com:
|
|
|
619
735
|
| `borderStyles.button` | `string` | Button border style |
|
|
620
736
|
| `borderStyles.buttonText` | `string` | Text button border style |
|
|
621
737
|
| `borderStyles.buttonSend` | `string` | Send button border style |
|
|
738
|
+
| `borderStyles.buttonCommandBar` | `string` | Command bar buttons border style |
|
|
622
739
|
| `borderStyles.buttonVideo` | `string` | Video button border style |
|
|
623
740
|
| `borderStyles.modal` | `string` | Modal border style |
|
|
624
741
|
| `borderStyles.input` | `string` | Input border style |
|
|
@@ -639,6 +756,7 @@ install using `npm i ninchat-embed` or link main directly from ninchat.com:
|
|
|
639
756
|
| `borderWidths.button` | `string` | Button border width |
|
|
640
757
|
| `borderWidths.buttonText` | `string` | Text button border width |
|
|
641
758
|
| `borderWidths.buttonSend` | `string` | Send button border width |
|
|
759
|
+
| `borderWidths.buttonCommandBar` | `string` | Command bar buttons border width |
|
|
642
760
|
| `borderWidths.buttonVideo` | `string` | Video button border width |
|
|
643
761
|
| `borderWidths.modal` | `string` | Modal border width |
|
|
644
762
|
| `borderWidths.input` | `string` | Input border width |
|
|
@@ -668,7 +786,14 @@ install using `npm i ninchat-embed` or link main directly from ninchat.com:
|
|
|
668
786
|
| `fonts.embedBodyHeading5` | `string` | Embed body heading 5 font family |
|
|
669
787
|
| `fonts.embedBodyHeading6` | `string` | Embed body heading 6 font family |
|
|
670
788
|
| `fonts.embedHero` | `string` | Embed hero font family |
|
|
789
|
+
| `fonts.embedHeroTitle` | `string` | Embed hero title font family |
|
|
790
|
+
| `fonts.embedHeroAvatar` | `string` | Embed hero avatar font family |
|
|
791
|
+
| `fonts.embedHeroTitleInQueue` | `string` | Embed hero title in queue font family |
|
|
671
792
|
| `fonts.embedHeroSubtitle` | `string` | Embed hero subtitle font family |
|
|
793
|
+
| `fonts.embedHeroSubtitleInQueue` | `string` | Embed hero subtitle in queue font family |
|
|
794
|
+
| `fonts.embedHeroErrorTitle` | `string` | Embed hero error title font family |
|
|
795
|
+
| `fonts.embedHeroErrorMessage` | `string` | Embed hero error message font family |
|
|
796
|
+
| `fonts.embedModalHeader` | `string` | Embed Modal heater font family |
|
|
672
797
|
| `fonts.questionnaireLink` | `string` | Questionnaire link font family |
|
|
673
798
|
| `fonts.buttonFilled` | `string` | Filled button font family |
|
|
674
799
|
| `fonts.button` | `string` | Button font family |
|
|
@@ -693,6 +818,7 @@ install using `npm i ninchat-embed` or link main directly from ninchat.com:
|
|
|
693
818
|
| `fontSizes.containerEmbedHeaderTitle` | `string` | Container embed header title font size |
|
|
694
819
|
| `fontSizes.containerEmbedHeaderSubtitle` | `string` | Container embed header subtitle font size |
|
|
695
820
|
| `fontSizes.containerEmbedHeaderButton` | `string` | Container embed header button font size |
|
|
821
|
+
| `fontSizes.containerEmbedHeaderAvatar` | `string` | Container embed header avatar font size |
|
|
696
822
|
| `fontSizes.embedBody` | `string` | Embed body font size |
|
|
697
823
|
| `fontSizes.embedBodyHeading1` | `string` | Embed body heading 1 font size |
|
|
698
824
|
| `fontSizes.embedBodyHeading2` | `string` | Embed body heading 2 font size |
|
|
@@ -701,7 +827,15 @@ install using `npm i ninchat-embed` or link main directly from ninchat.com:
|
|
|
701
827
|
| `fontSizes.embedBodyHeading5` | `string` | Embed body heading 5 font size |
|
|
702
828
|
| `fontSizes.embedBodyHeading6` | `string` | Embed body heading 6 font size |
|
|
703
829
|
| `fontSizes.embedHero` | `string` | Embed hero font size |
|
|
830
|
+
| `fontSizes.embedHeroTitle` | `string` | Embed hero title font size |
|
|
831
|
+
| `fontSizes.embedHeroAvatar` | `string` | Embed hero avatar font size |
|
|
832
|
+
| `fontSizes.embedHeroTitleInQueue` | `string` | Embed hero title in queue font size |
|
|
704
833
|
| `fontSizes.embedHeroSubtitle` | `string` | Embed hero subtitle font size |
|
|
834
|
+
| `fontSizes.embedHeroSubtitleInQueue` | `string` | Embed hero subtitle in queue font size |
|
|
835
|
+
| `fontSizes.embedHeroErrorTitle` | `string` | Embed hero error title font size |
|
|
836
|
+
| `fontSizes.embedHeroErrorMessage` | `string` | Embed hero error message font size |
|
|
837
|
+
| `fontSizes.embedQueuePosition` | `string` | Embed queue spinner position text size |
|
|
838
|
+
| `fontSizes.embedModalHeader` | `string` | Embed modal header text size |
|
|
705
839
|
| `fontSizes.questionnaireLink` | `string` | Questionnaire link font size |
|
|
706
840
|
| `fontSizes.questionnaireLabel` | `string` | Questionnaire label font size |
|
|
707
841
|
| `fontSizes.questionnaireLabelDescription` | `string` | Questionnaire label description font size |
|
|
@@ -721,6 +855,8 @@ install using `npm i ninchat-embed` or link main directly from ninchat.com:
|
|
|
721
855
|
| `fontSizes.questionnaireLightBotUsername` | `string` | Questionnaire light bot avatar name font size |
|
|
722
856
|
| `fontSizes.questionnaireLightBotBubble` | `string` | Questionnaire light bot bubble font size |
|
|
723
857
|
| `fontSizes.questionnaireLightBotAnswerBubble` | `string` | Questionnaire light bot answer bubble font size|
|
|
858
|
+
| `fontSizes.floatingEmbedHeaderInQueueLoader` | `string` | Floating Embed Header in queue loader position font size |
|
|
859
|
+
| `fontSizez.floatingEmbedHeaderAvatar` | `string` | Floating Embed header Avatar font size |
|
|
724
860
|
| `fontStyle.embedBody` | `string` | Embed body font style |
|
|
725
861
|
| `fontStyle.embedBodyHeading1` | `string` | Embed body heading 1 font style |
|
|
726
862
|
| `fontStyle.embedBodyHeading2` | `string` | Embed body heading 2 font style |
|
|
@@ -729,7 +865,14 @@ install using `npm i ninchat-embed` or link main directly from ninchat.com:
|
|
|
729
865
|
| `fontStyle.embedBodyHeading5` | `string` | Embed body heading 5 font style |
|
|
730
866
|
| `fontStyle.embedBodyHeading6` | `string` | Embed body heading 6 font style |
|
|
731
867
|
| `fontStyle.embedHero` | `string` | Embed hero font style |
|
|
868
|
+
| `fontStyle.embedHeroTitle` | `string` | Embed hero title font style |
|
|
869
|
+
| `fontStyle.embedHeroAvatar` | `string` | Embed hero avatar font style |
|
|
870
|
+
| `fontStyle.embedHeroTitleInQueue` | `string` | Embed hero title in queue font style |
|
|
732
871
|
| `fontStyle.embedHeroSubtitle` | `string` | Embed hero subtitle font style |
|
|
872
|
+
| `fontStyle.embedHeroSubtitleInQueue` | `string` | Embed hero subtitle in queue font style |
|
|
873
|
+
| `fontStyle.embedHeroErrorTitle` | `string` | Embed hero error title font style |
|
|
874
|
+
| `fontStyle.embedHeroErrorMessage` | `string` | Embed hero error message font style |
|
|
875
|
+
| `fontStyle.embedModalHeader` | `string` | Embed modal header font style |
|
|
733
876
|
| `fontStyle.questionnaireLink` | `string` | Questionnaire link font style |
|
|
734
877
|
| `fontStyle.questionnaireLabel` | `string` | Questionnaire label font style |
|
|
735
878
|
| `fontStyle.questionnaireLabelDescription` | `string` | Questionnaire label description font style |
|
|
@@ -756,7 +899,14 @@ install using `npm i ninchat-embed` or link main directly from ninchat.com:
|
|
|
756
899
|
| `fontVariant.embedBodyHeading5` | `string` | Embed body heading 5 font variant |
|
|
757
900
|
| `fontVariant.embedBodyHeading6` | `string` | Embed body heading 6 font variant |
|
|
758
901
|
| `fontVariant.embedHero` | `string` | Embed hero font variant |
|
|
902
|
+
| `fontVariant.embedHeroTitle` | `string` | Embed hero title font variant |
|
|
903
|
+
| `fontVariant.embedHeroAvatar` | `string` | Embed hero avatar font variant |
|
|
904
|
+
| `fontVariant.embedHeroTitleInQueue` | `string` | Embed hero title in queue font variant |
|
|
759
905
|
| `fontVariant.embedHeroSubtitle` | `string` | Embed hero subtitle font variant |
|
|
906
|
+
| `fontVariant.embedHeroSubtitleInQueue` | `string` | Embed hero subtitle in queue font variant |
|
|
907
|
+
| `fontVariant.embedHeroErrorTitle` | `string` | Embed hero error title font variant |
|
|
908
|
+
| `fontVariant.embedHeroErrorMessage` | `string` | Embed hero error message font variant |
|
|
909
|
+
| `fontVariant.embedModalHeader` | `string` | Embed modal header font variant |
|
|
760
910
|
| `fontVariant.questionnaireLink` | `string` | Questionnaire link font variant |
|
|
761
911
|
| `fontVariant.questionnaireLabel` | `string` | Questionnaire label font variant |
|
|
762
912
|
| `fontVariant.questionnaireLabelDescription` | `string` | Questionnaire label description font variant |
|
|
@@ -790,7 +940,14 @@ install using `npm i ninchat-embed` or link main directly from ninchat.com:
|
|
|
790
940
|
| `fontWeights.embedBodyHeading5` | `string` | Embed body heading 5 font weight |
|
|
791
941
|
| `fontWeights.embedBodyHeading6` | `string` | Embed body heading 6 font weight |
|
|
792
942
|
| `fontWeights.embedHero` | `string` | Embed hero font weight |
|
|
943
|
+
| `fontWeights.embedHeroTitle` | `string` | Embed hero title font weight |
|
|
944
|
+
| `fontWeights.embedHeroAvatar` | `string` | Embed hero avatar font weight |
|
|
945
|
+
| `fontWeights.embedHeroTitleInQueue` | `string` | Embed hero title in queue font weight |
|
|
793
946
|
| `fontWeights.embedHeroSubtitle` | `string` | Embed hero subtitle font weight |
|
|
947
|
+
| `fontWeights.embedHeroSubtitleInQueue` | `string` | Embed hero subtitle in queue font weight |
|
|
948
|
+
| `fontWeights.embedHeroErrorTitle` | `string` | Embed hero error title font weight |
|
|
949
|
+
| `fontWeights.embedHeroErrorMessage` | `string` | Embed hero error message font weight |
|
|
950
|
+
| `fontWeights.embedModalHeader` | `string` | Embed modal header font weight |
|
|
794
951
|
| `fontWeights.questionnaireLink` | `string` | Questionnaire link font weight |
|
|
795
952
|
| `fontWeights.questionnaireLabel` | `string` | Questionnaire label font weight |
|
|
796
953
|
| `fontWeights.questionnaireLabelDescription` | `string` | Questionnaire label description font weight |
|
|
@@ -810,20 +967,45 @@ install using `npm i ninchat-embed` or link main directly from ninchat.com:
|
|
|
810
967
|
| `fontWeights.questionnaireLightBotBubble` | `string` | Questionnaire light bot bubble font weight |
|
|
811
968
|
| `fontWeights.questionnaireLightBotAnswerBubble` | `string` | Questionnaire light bot answer bubble font weight |
|
|
812
969
|
| `maxWidths.questionnaire` | `string` | Questionnaire maximum width |
|
|
970
|
+
| `sizes.embedQueueSpinner` | `string` | In Queue Spinner size |
|
|
971
|
+
| `sizes.floatingEmbedHeaderInQueueLoader` | `string` | Floating emebed header in queue loader size |
|
|
972
|
+
| `sizes.floatingEmbedHeaderVideoIcon` | `string` | Floating embed header in video icon size |
|
|
973
|
+
| `sizes.floatingEmbedHeaderNewMessageIcon` | `string` | Floating embed header new message icon size |
|
|
974
|
+
| `sizes.floatingEmbedHeaderAvatar` | `string` | Floating embed header avatar size |
|
|
975
|
+
| `sizes.containerEmbedHeaderAvatar` | `string` | Container embed header avatar size |
|
|
976
|
+
| `space.embedHeroTitle` | `string` | Embed hero title margin |
|
|
977
|
+
| `space.embedHeroTitleInQueue` | `string` | Embed hero title in queue margin |
|
|
978
|
+
| `space.embedHeroSubtitle` | `string` | Embed hero subtitle margin |
|
|
979
|
+
| `space.embedHeroSubtitleInQueue` | `string` | Embed hero subtitle in queue margin |
|
|
980
|
+
| `space.embedHeroErrorTitle` | `string` | Embed hero error title margin |
|
|
981
|
+
| `space.embedHeroErrorMessage` | `string` | Embed hero error message margin |
|
|
813
982
|
| `space.embedHero` | `string` | Embed hero spacing |
|
|
814
|
-
| `space.
|
|
983
|
+
| `space.button` | `string` | Default padding for all questionnaire and modal buttons (send and video have separate configs) |
|
|
984
|
+
| `space.buttonSend` | `string` | Send button padding |
|
|
985
|
+
| `space.buttonSendMargin` | `string` | Send button margin |
|
|
986
|
+
| `space.buttonCommandBar` | `string` | Command bar buttons padding |
|
|
987
|
+
| `space.buttonCommandBarMargin` | `string` | Command bar buttons margin |
|
|
815
988
|
| `space.buttonVideo` | `string` | Video button spacing |
|
|
989
|
+
| `space.inQueueText` | `string` | inQueueText text spacing |
|
|
990
|
+
| `space.floatingEmbedHeaderButton` | `string` | Floating Embed header button padding |
|
|
991
|
+
| `space.containerEmbedHeaderButton` | `string` | Container Embed header button padding |
|
|
992
|
+
| `space.floatingEmbedHeader` | `string` | Floating Embed header padding (fixed width and height still will be in use) |
|
|
993
|
+
| `space.containerEmbedHeader` | `string` | Container Embed headerpadding (fixed width and height still will be in use) |
|
|
994
|
+
| `space.floatingEmbedBall` | `string` | Floating embed ball padding |
|
|
816
995
|
| `zIndices.floatingEmbed` | `number` | Floating embed z-index |
|
|
817
996
|
| `zIndices.floatingEmbedBall` | `number` | Floating embed ball z-index |
|
|
818
997
|
| `zIndices.containerHeader` | `number` | Container header z-index |
|
|
819
998
|
| `radii.floatingEmbed` | `string` | Floating embed border radius |
|
|
820
999
|
| `radii.floatingEmbedBall` | `string` | Floating embed ball border radius |
|
|
821
1000
|
| `radii.floatingEmbedPromoBubble` | `string` | Floating embed promo bubble border radius |
|
|
1001
|
+
| `radii.floatingEmbedHeaderButton` | `string` | Floating embed header button border radius |
|
|
1002
|
+
| `radii.containerEmbedHeaderButton` | `string` | Container embed header button border radius |
|
|
822
1003
|
| `radii.embedHero` | `string` | Embed hero border radius |
|
|
823
1004
|
| `radii.buttonFilled` | `string` | Filled button border radius |
|
|
824
1005
|
| `radii.button` | `string` | Button border radius |
|
|
825
1006
|
| `radii.buttonText` | `string` | Text button border radius |
|
|
826
1007
|
| `radii.buttonSend` | `string` | Send button border radius |
|
|
1008
|
+
| `radii.buttonCommandBar` | `string` | Command bar buttons border radius |
|
|
827
1009
|
| `radii.buttonVideo` | `string` | Video button border radius |
|
|
828
1010
|
| `radii.modal` | `string` | Modal border radius |
|
|
829
1011
|
| `radii.input` | `string` | Input border radius |
|
|
@@ -848,7 +1030,14 @@ install using `npm i ninchat-embed` or link main directly from ninchat.com:
|
|
|
848
1030
|
| `lineHeights.embedBodyHeading5` | `string` | Embed body heading 5 line height |
|
|
849
1031
|
| `lineHeights.embedBodyHeading6` | `string` | Embed body heading 6 line height |
|
|
850
1032
|
| `lineHeights.embedHero` | `string` | Embed hero line height |
|
|
1033
|
+
| `lineHeights.embedHeroTitle` | `string` | Embed hero title line height |
|
|
1034
|
+
| `lineHeights.embedHeroAvatar` | `string` | Embed hero avatar line height |
|
|
1035
|
+
| `lineHeights.embedHeroTitleInQueue` | `string` | Embed hero title in queue line height |
|
|
851
1036
|
| `lineHeights.embedHeroSubtitle` | `string` | Embed hero subtitle line height |
|
|
1037
|
+
| `lineHeights.embedHeroSubtitleInQueue` | `string` | Embed hero subtitle in queue line height |
|
|
1038
|
+
| `lineHeights.embedHeroErrorTitle` | `string` | Embed hero error title line height |
|
|
1039
|
+
| `lineHeights.embedHeroErrorMessage` | `string` | Embed hero error message line height |
|
|
1040
|
+
| `lineHeights.embedModalHeader` | `string` | Embed modal header line height |
|
|
852
1041
|
| `lineHeights.buttonFilled` | `string` | Filled button line height |
|
|
853
1042
|
| `lineHeights.button` | `string` | Button line height |
|
|
854
1043
|
| `lineHeights.buttonText` | `string` | Text button line height |
|
|
@@ -923,6 +1112,7 @@ install using `npm i ninchat-embed` or link main directly from ninchat.com:
|
|
|
923
1112
|
| `color` | `string` | Text color |
|
|
924
1113
|
| `padding` | `string` | Padding around text |
|
|
925
1114
|
| `margin` | `string` | Margin around element |
|
|
1115
|
+
' `fontSize`| `string` | Text component default font size |
|
|
926
1116
|
| `hide` | `boolean` | Whether element is hidden by default |
|
|
927
1117
|
| `logic` | `object` | Conditional logic for element |
|
|
928
1118
|
| `logic.conditions` | `array` | Array of condition objects (same as Logic Item conditions) |
|
|
@@ -945,6 +1135,7 @@ install using `npm i ninchat-embed` or link main directly from ninchat.com:
|
|
|
945
1135
|
| `variant` | `'primary'` | Button variant style |
|
|
946
1136
|
| `target` | `string` | Target view ID |
|
|
947
1137
|
| `align` | `'center' \| 'right' \| 'left'` | Button alignment |
|
|
1138
|
+
| `clearAfter` | `boolean` | Clear float after current element |
|
|
948
1139
|
| `textAlign` | `'center'` | Text alignment within button |
|
|
949
1140
|
| `inline` | `boolean` | Whether button is displayed inline |
|
|
950
1141
|
| `iconLeft` | `object` | Left icon configuration |
|
|
@@ -1235,8 +1426,8 @@ Ninchat.route(Route)
|
|
|
1235
1426
|
| ActivityCount | activity_count | `activity`: number, `highlights`: number | Typical use case for `ActivityCount` is to display activity as a number in host sites favicon. `activity` property contains the total activity including `highlights`. `highlights` are activity which has importance based on users settings or their role. Eg. highlight can be a name mention or a visitor requesting an audience. |
|
|
1236
1427
|
| AudienceEnded | audience_eneded | `audience_id`: string | Emitted when an audience session ends |
|
|
1237
1428
|
| AudienceClosed | audience_closed | `audience_id`: string | Emitted when the chat is closed |
|
|
1238
|
-
| SessionCreated | session_created | `user_queues?`: {[queue_id]: {`delivery_time`, `queue_time`, `realm_id`, `queue_attrs`: {`name`, `length`, `group_id`, `is_group`, `unassigned_registered`}}}, `user_channels?`: {[channel_id]: {`channel_attrs`, `channel_status?`, `realm_id?`}} | Emitted when a user session is created with queue and channel information |
|
|
1239
|
-
| QueueUpdated | queue_updated | `queue_id`: string, `queue_attrs`: {`name`, `length`, `group_id`, `is_group`, `unassigned_registered`}, `queue_time?`: number, `realm_id?`: string | Emitted when queue information is updated |
|
|
1429
|
+
| SessionCreated | session_created | `user_queues?`: {[queue_id]: {`delivery_time`, `queue_time`, `unassigned_registered_time`, `realm_id`, `queue_attrs`: {`name`, `length`, `group_id`, `is_group`, `unassigned_registered`}}}, `user_channels?`: {[channel_id]: {`channel_attrs`, `channel_status?`, `realm_id?`}} | Emitted when a user session is created with queue and channel information |
|
|
1430
|
+
| QueueUpdated | queue_updated | `queue_id`: string, `queue_attrs`: {`name`, `length`, `group_id`, `is_group`, `unassigned_registered`}, `queue_time?`: number, `unassigned_registered_time?`: number, `realm_id?`: string | Emitted when queue information is updated |
|
|
1240
1431
|
| ChannelUpdated | channel_updated | `channel_id`: string, `channel_attrs`: {`audience_id`, `queue_id`, `name`, `closed`}, `channel_status?`: string, `realm_id?`: string | Emitted when channel information is updated |
|
|
1241
1432
|
| ContainerInitialized | container_initialized | - | Emitted when the embed container is initialized |
|
|
1242
1433
|
|
|
@@ -1431,10 +1622,22 @@ Ninchat.route(route)
|
|
|
1431
1622
|
|
|
1432
1623
|
## Release history
|
|
1433
1624
|
|
|
1625
|
+
### v2.7.0
|
|
1626
|
+
|
|
1627
|
+
- expose unassigned_registered parameter to sessionCreated and QueueUpdated events
|
|
1628
|
+
- add hideMenubar property for 'app' embed version
|
|
1629
|
+
- support for questionnaire attachments
|
|
1630
|
+
- configUrls merging improvements
|
|
1631
|
+
- variety od new embed customizations and bugfixes
|
|
1632
|
+
|
|
1434
1633
|
### v2.6.2
|
|
1435
1634
|
|
|
1436
1635
|
- fix RegisteredAudience route metadata composition and audience metadata sharing
|
|
1437
1636
|
|
|
1637
|
+
### v2.6.1
|
|
1638
|
+
|
|
1639
|
+
- fix RegisteredAudience route metadata composition from transcript data
|
|
1640
|
+
|
|
1438
1641
|
### v2.6.0
|
|
1439
1642
|
|
|
1440
1643
|
- extend QueueUpdated event to include information about unassigned_registered
|