ninchat-embed 2.7.0 → 2.8.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 +30 -1
- package/dist/embed3.js +1 -1
- package/dist/embed3.js.LICENSE.txt +2 -2
- package/dist/embed3.js.map +1 -1
- package/dist/src/api/event/queueUpdated.d.ts.map +1 -1
- package/dist/src/api/types/properties.d.ts +2 -0
- package/dist/src/api/types/properties.d.ts.map +1 -1
- package/dist/src/components/Embed/EmbedQuestionnaire.d.ts +2 -2
- package/dist/src/components/Embed/EmbedQuestionnaire.d.ts.map +1 -1
- package/dist/src/components/Embed/Questionnaire/QuestionnaireAttachment/styles/index.d.ts +3 -0
- package/dist/src/components/Embed/Questionnaire/QuestionnaireAttachment/styles/index.d.ts.map +1 -1
- package/dist/src/components/Embed/Questionnaire/QuestionnaireInput/QuestionnaireInput.d.ts.map +1 -1
- package/dist/src/components/Embed/Questionnaire/QuestionnaireNavigation/QuestionnaireNavigation.d.ts +2 -2
- package/dist/src/components/Embed/Questionnaire/QuestionnaireNavigation/QuestionnaireNavigation.d.ts.map +1 -1
- package/dist/src/components/Embed/Questionnaire/QuestionnaireNavigation/styles/index.d.ts +21 -15
- package/dist/src/components/Embed/Questionnaire/QuestionnaireNavigation/styles/index.d.ts.map +1 -1
- package/dist/src/components/Embed/Questionnaire/QuestionnaireTextarea/QuestionnaireTextarea.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 +52 -26
- package/dist/src/components/Embed/components/EmbedHero/styles/index.d.ts.map +1 -1
- package/dist/src/components/Embed/styles/questionnaire.d.ts +8 -2
- package/dist/src/components/Embed/styles/questionnaire.d.ts.map +1 -1
- package/dist/src/components/EmbedContext.d.ts +21 -4
- package/dist/src/components/EmbedContext.d.ts.map +1 -1
- package/dist/src/components/PrescriptionRenewalSurveyResults/types/index.d.ts +21 -0
- package/dist/src/components/PrescriptionRenewalSurveyResults/types/index.d.ts.map +1 -0
- package/dist/src/embed/components/embedWrapper.d.ts +1 -1
- package/dist/src/embed/components/embedWrapper.d.ts.map +1 -1
- package/dist/src/embed/listeners/channel.d.ts.map +1 -1
- package/dist/src/embed/listeners/index.d.ts.map +1 -1
- package/dist/src/embed/listeners/members.d.ts +11 -0
- package/dist/src/embed/listeners/members.d.ts.map +1 -0
- package/dist/src/embed/schemas/index.d.ts +136 -34
- package/dist/src/embed/schemas/index.d.ts.map +1 -1
- package/dist/src/embed/styles/index.d.ts.map +1 -1
- package/dist/src/embed/types/events.d.ts +12 -1
- package/dist/src/embed/types/events.d.ts.map +1 -1
- package/dist/src/embed/utils/config/index.d.ts +20 -4
- package/dist/src/embed/utils/config/index.d.ts.map +1 -1
- package/dist/src/stitches/config.d.ts +10 -0
- package/dist/src/stitches/config.d.ts.map +1 -1
- package/dist/src/stitches/config.defaults.d.ts +2 -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/themes.d.ts +1 -0
- package/dist/src/stitches/themes.d.ts.map +1 -1
- package/dist/src/types/members.d.ts +11 -0
- package/dist/src/types/members.d.ts.map +1 -0
- package/dist/src/utils/cache.service/index.d.ts +7 -0
- package/dist/src/utils/cache.service/index.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -110,6 +110,7 @@ install using `npm i ninchat-embed` or link main directly from ninchat.com:
|
|
|
110
110
|
| `chatThumbnailsSize.maxWidth` | `string` | Chat thumbnail maxWidth (150px default) |
|
|
111
111
|
| `askUserName` | `boolean` | Force ask userName modal before entering first chat message |
|
|
112
112
|
| `inQueueText` | `string` | Text shown when user is in queue |
|
|
113
|
+
| `conversationEndedButtonText`| `string` | Text displayed at the end of closed/ended conversation |
|
|
113
114
|
| `showCloseConfirmation` | `boolean` | Show confirmation dialog on close |
|
|
114
115
|
| `closeConfirmText` | `string` | Close confirmation message text |
|
|
115
116
|
| `closeConfirmTitle` | `string` | Close confirmation title |
|
|
@@ -205,6 +206,9 @@ install using `npm i ninchat-embed` or link main directly from ninchat.com:
|
|
|
205
206
|
| `floatingOptions.ballOptions.offset` | `object` | Ball position offset |
|
|
206
207
|
| `floatingOptions.ballOptions.offset.x` | `number` | Horizontal offset in pixels |
|
|
207
208
|
| `floatingOptions.ballOptions.offset.y` | `number` | Vertical offset in pixels |
|
|
209
|
+
| `floatingOptions.ballOptions.stateIcon` | `object` | Ball state icon config |
|
|
210
|
+
| `floatingOptions.ballOptions.stateIcon.width` | `number` | Ball state icon width |
|
|
211
|
+
| `floatingOptions.ballOptions.stateIcon.height` | `number` | Ball state icon height|
|
|
208
212
|
| `floatingOptions.headerOptions` | `object` | Floating header configuration |
|
|
209
213
|
| `floatingOptions.headerOptions.height` | `number` | Header height in pixels |
|
|
210
214
|
| `floatingOptions.headerOptions.title` | `object` | Title text per state |
|
|
@@ -632,6 +636,9 @@ install using `npm i ninchat-embed` or link main directly from ninchat.com:
|
|
|
632
636
|
| `colors.floatingEmbedHeaderButtonHoverBackground` | `string` | Floating embed header button background (hover) |
|
|
633
637
|
| `colors.floatingEmbedHeaderButtonFocusBackground` | `string` | Floating embed header button background (focus) |
|
|
634
638
|
| `colors.floatingEmbedHeaderButtonActiveOutline` | `string` | Floating embed header button outline (active) |
|
|
639
|
+
| `colors.floatingEmbedHeaderAvatar` | `string` | Floating embed header avatar text color |
|
|
640
|
+
| `colors.floatingEmbedHeaderAvatarBackground` | `string` | Floating embed header avatar background color |
|
|
641
|
+
| `colors.floatingEmbedHeaderAvatarBorder` | `string` | Floating embed header avatar border color |
|
|
635
642
|
| `colors.floatingEmbedBall` | `string` | Floating embed ball background color |
|
|
636
643
|
| `colors.floatingEmbedBallHover` | `string` | Floating embed ball background color (hover) |
|
|
637
644
|
| `colors.floatingEmbedBallActive` | `string` | Floating embed ball background color (active) |
|
|
@@ -667,7 +674,8 @@ install using `npm i ninchat-embed` or link main directly from ninchat.com:
|
|
|
667
674
|
| `colors.embedHero` | `string` | Embed hero text color |
|
|
668
675
|
| `colors.embedHeroBorder` | `string` | Embed hero border color |
|
|
669
676
|
| `colors.embedHeroBackground` | `string` | Embed hero background color |
|
|
670
|
-
| `colors.embedHeroAvatar` | `string` | Embed hero avatar
|
|
677
|
+
| `colors.embedHeroAvatar` | `string` | Embed hero avatar text color |
|
|
678
|
+
| `colors.embedHeroAvatarBackground` | `string` | Embed hero avatar background color |
|
|
671
679
|
| `colors.embedHeroAvatarBorder` | `string` | Embed hero avatar border color |
|
|
672
680
|
| `colors.embedHeroTitle` | `string` | Embed hero title color |
|
|
673
681
|
| `colors.embedHeroTitleInQueue` | `string` | Embed hero title in queue color |
|
|
@@ -680,6 +688,7 @@ install using `npm i ninchat-embed` or link main directly from ninchat.com:
|
|
|
680
688
|
| `colors.embedModalHeader` | `string` | Embed modal header color |
|
|
681
689
|
| `colors.questionnaireErrorTitle` | `string` | Embed error title color |
|
|
682
690
|
| `colors.questionnaireNavigation` | `string` | Questionnaire navigation color |
|
|
691
|
+
| `colors.questionnaireNavigationBorder` | `string` | Questionnaire navigation bordercolor |
|
|
683
692
|
| `colors.questionnaireEmojiGood` | `string` | Questionnaire good emoji color |
|
|
684
693
|
| `colors.questionnaireEmojiAverageGood` | `string` | Questionnaire above average emoji color |
|
|
685
694
|
| `colors.questionnaireEmojiAverage` | `string` | Questionnaire average emoji color |
|
|
@@ -706,6 +715,7 @@ install using `npm i ninchat-embed` or link main directly from ninchat.com:
|
|
|
706
715
|
| `colors.messageInfo` | `string` | Message info background color |
|
|
707
716
|
| `colors.messageInfoBorder` | `string` | Message info border color |
|
|
708
717
|
| `colors.messageInfoText` | `string` | Message info text color |
|
|
718
|
+
| `colors.messageInfoIconSuccess` | `string` | Message info icon success color |
|
|
709
719
|
| `colors.messageInfoTimestamp` | `string` | Message info timestamp color |
|
|
710
720
|
| `colors.messageInfoIcon` | `string` | Message info icon color |
|
|
711
721
|
| `colors.messageInfoLink` | `string` | Message info link color |
|
|
@@ -749,6 +759,7 @@ install using `npm i ninchat-embed` or link main directly from ninchat.com:
|
|
|
749
759
|
| `borderStyles.messageSpeechBubbleOther` | `string` | Other user speech bubble border style |
|
|
750
760
|
| `borderStyles.questionnaireLightBotBubble` | `string` | Questionnaire light bot bubble border style |
|
|
751
761
|
| `borderStyles.questionnaireLightBotAnswerBubble` | `string` | Questionnaire light bot answer bubble border style |
|
|
762
|
+
| `borderStyles.questionnaireNavigation` | `string` | Questionnaire navigation border style |
|
|
752
763
|
| `borderWidths.embedHero` | `string` | Embed hero border width |
|
|
753
764
|
| `borderWidths.floatingEmbedHeaderBorder` | `string` | Floating embed header border width |
|
|
754
765
|
| `borderWidths.containerEmbedHeaderBorder` | `string` | Container embed header border width |
|
|
@@ -770,6 +781,7 @@ install using `npm i ninchat-embed` or link main directly from ninchat.com:
|
|
|
770
781
|
| `borderWidths.messageSpeechBubbleOther` | `string` | Other user speech bubble border width |
|
|
771
782
|
| `borderWidths.questionnaireLightBotBubble` | `string` | Questionnaire light bot bubble border width |
|
|
772
783
|
| `borderWidths.questionnaireLightBotAnswerBubble` | `string` | Questionnaire light bot answer bubble border width |
|
|
784
|
+
| `borderWidths.questionnaireNavigation` | `string` | Questionnaire navigation border width |
|
|
773
785
|
| `fonts.floatingEmbedBall` | `string` | Floating embed ball font family |
|
|
774
786
|
| `fonts.floatingEmbedHeaderTitle` | `string` | Floating embed header title font family |
|
|
775
787
|
| `fonts.floatingEmbedHeaderSubtitle` | `string` | Floating embed header subtitle font family |
|
|
@@ -811,6 +823,7 @@ install using `npm i ninchat-embed` or link main directly from ninchat.com:
|
|
|
811
823
|
| `fonts.questionnaireLightBotBubble` | `string` | Questionnaire light bot bubble font family |
|
|
812
824
|
| `fonts.questionnaireLightBotAnswerBubble` | `string` | Questionnaire light bot answer bubble font family |
|
|
813
825
|
| `fontSizes.floatingEmbedBall` | `string` | Floating embed ball font size |
|
|
826
|
+
| `fontSizes.floatingEmbedBallState` | `string` | Floating embed ball state font size |
|
|
814
827
|
| `fontSizes.floatingEmbedHeaderTitle` | `string` | Floating embed header title font size |
|
|
815
828
|
| `fontSizes.floatingEmbedHeaderSubtitle` | `string` | Floating embed header subtitle font size |
|
|
816
829
|
| `fontSizes.floatingEmbedHeaderButton` | `string` | Floating embed header button font size |
|
|
@@ -967,12 +980,17 @@ install using `npm i ninchat-embed` or link main directly from ninchat.com:
|
|
|
967
980
|
| `fontWeights.questionnaireLightBotBubble` | `string` | Questionnaire light bot bubble font weight |
|
|
968
981
|
| `fontWeights.questionnaireLightBotAnswerBubble` | `string` | Questionnaire light bot answer bubble font weight |
|
|
969
982
|
| `maxWidths.questionnaire` | `string` | Questionnaire maximum width |
|
|
983
|
+
| `maxWidths.questionnaireNavigation` | `string` | Questionnaire navigation maximum width |
|
|
970
984
|
| `sizes.embedQueueSpinner` | `string` | In Queue Spinner size |
|
|
985
|
+
| `sizes.floatingEmbedBallInQueueLoader` | `string` | Floating emebed ball in queue loader size |
|
|
986
|
+
| `sizes.floatingEmbedBallVideoIcon` | `string` | Floating embed ball in video icon size |
|
|
987
|
+
| `sizes.floatingEmbedBallNewMessageIcon` | `string` | Floating embed ball new message icon size |
|
|
971
988
|
| `sizes.floatingEmbedHeaderInQueueLoader` | `string` | Floating emebed header in queue loader size |
|
|
972
989
|
| `sizes.floatingEmbedHeaderVideoIcon` | `string` | Floating embed header in video icon size |
|
|
973
990
|
| `sizes.floatingEmbedHeaderNewMessageIcon` | `string` | Floating embed header new message icon size |
|
|
974
991
|
| `sizes.floatingEmbedHeaderAvatar` | `string` | Floating embed header avatar size |
|
|
975
992
|
| `sizes.containerEmbedHeaderAvatar` | `string` | Container embed header avatar size |
|
|
993
|
+
' `sizes.chatTextareaMaxHeight` | `string` | Chat textarea max height |
|
|
976
994
|
| `space.embedHeroTitle` | `string` | Embed hero title margin |
|
|
977
995
|
| `space.embedHeroTitleInQueue` | `string` | Embed hero title in queue margin |
|
|
978
996
|
| `space.embedHeroSubtitle` | `string` | Embed hero subtitle margin |
|
|
@@ -987,11 +1005,15 @@ install using `npm i ninchat-embed` or link main directly from ninchat.com:
|
|
|
987
1005
|
| `space.buttonCommandBarMargin` | `string` | Command bar buttons margin |
|
|
988
1006
|
| `space.buttonVideo` | `string` | Video button spacing |
|
|
989
1007
|
| `space.inQueueText` | `string` | inQueueText text spacing |
|
|
1008
|
+
| `space.input` | `string` | Questionnaire input padding |
|
|
1009
|
+
| `space.inputModal` | `string` | Embed input modal padding |
|
|
990
1010
|
| `space.floatingEmbedHeaderButton` | `string` | Floating Embed header button padding |
|
|
991
1011
|
| `space.containerEmbedHeaderButton` | `string` | Container Embed header button padding |
|
|
992
1012
|
| `space.floatingEmbedHeader` | `string` | Floating Embed header padding (fixed width and height still will be in use) |
|
|
993
1013
|
| `space.containerEmbedHeader` | `string` | Container Embed headerpadding (fixed width and height still will be in use) |
|
|
994
1014
|
| `space.floatingEmbedBall` | `string` | Floating embed ball padding |
|
|
1015
|
+
| `space.messageSpeechBubbleOther` | `string` | Other user speech bubble padding |
|
|
1016
|
+
| `space.messageSpeechBubbleOperatorModerator` | `string` | Operator/moderator speech bubble padding |
|
|
995
1017
|
| `zIndices.floatingEmbed` | `number` | Floating embed z-index |
|
|
996
1018
|
| `zIndices.floatingEmbedBall` | `number` | Floating embed ball z-index |
|
|
997
1019
|
| `zIndices.containerHeader` | `number` | Container header z-index |
|
|
@@ -1429,6 +1451,7 @@ Ninchat.route(Route)
|
|
|
1429
1451
|
| 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
1452
|
| 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 |
|
|
1431
1453
|
| 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 |
|
|
1454
|
+
| MembersUpdated | members_updated | `channel_id`: string, `members`: [{`id`: string, `presence`: `'online'`\|`'idle'`\|`'offline'`, `name?`: string}] | Emitted when a channel member's presence (online/idle/offline) changes. Only fires for audience channels. Members list excludes the current user. |
|
|
1432
1455
|
| ContainerInitialized | container_initialized | - | Emitted when the embed container is initialized |
|
|
1433
1456
|
|
|
1434
1457
|
#### Events for 'app' version
|
|
@@ -1622,6 +1645,12 @@ Ninchat.route(route)
|
|
|
1622
1645
|
|
|
1623
1646
|
## Release history
|
|
1624
1647
|
|
|
1648
|
+
### v2.8.0
|
|
1649
|
+
|
|
1650
|
+
- expose MembersUpdated event to indicate if other channel members go offline / idle
|
|
1651
|
+
- big set of new `queue` embed customizations - all new properties documented under `Init options` section
|
|
1652
|
+
- bugfixing and spec adjusting
|
|
1653
|
+
|
|
1625
1654
|
### v2.7.0
|
|
1626
1655
|
|
|
1627
1656
|
- expose unassigned_registered parameter to sessionCreated and QueueUpdated events
|