@pega/cosmos-react-demos 4.0.0-dev.8.4 → 4.0.0-dev.9.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/jsx/build/AppShell/AppShell.mocks.d.ts +16 -14
- package/jsx/build/AppShell/AppShell.mocks.d.ts.map +1 -1
- package/jsx/build/AppShell/AppShell.mocks.jsx +144 -101
- package/jsx/build/AppShell/AppShell.mocks.jsx.map +1 -1
- package/jsx/build/AppShell/AppShell.stories.d.ts +1 -0
- package/jsx/build/AppShell/AppShell.stories.d.ts.map +1 -1
- package/jsx/build/AppShell/AppShell.stories.jsx +7 -3
- package/jsx/build/AppShell/AppShell.stories.jsx.map +1 -1
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts +2 -0
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +1 -1
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js +23 -0
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +1 -1
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +1 -1
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx +4 -4
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx.map +1 -1
- package/jsx/build/PageBanner/PageBanner.stories.d.ts +15 -0
- package/jsx/build/PageBanner/PageBanner.stories.d.ts.map +1 -0
- package/jsx/build/PageBanner/PageBanner.stories.jsx +41 -0
- package/jsx/build/PageBanner/PageBanner.stories.jsx.map +1 -0
- package/jsx/build/PageTemplates/GalleryPage.stories.d.ts +7 -3
- package/jsx/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
- package/jsx/build/PageTemplates/GalleryPage.stories.jsx +29 -19
- package/jsx/build/PageTemplates/GalleryPage.stories.jsx.map +1 -1
- package/jsx/build/PageTemplates/ShowcasePage.stories.d.ts +17 -0
- package/jsx/build/PageTemplates/ShowcasePage.stories.d.ts.map +1 -0
- package/jsx/build/PageTemplates/ShowcasePage.stories.jsx +42 -0
- package/jsx/build/PageTemplates/ShowcasePage.stories.jsx.map +1 -0
- package/jsx/condition-builder/ConditionBuilder/props.mock.js +4 -4
- package/jsx/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
- package/jsx/core/AppShell/AppShell.mocks.jsx +1 -1
- package/jsx/core/AppShell/AppShell.mocks.jsx.map +1 -1
- package/jsx/core/AppShell/AppShell.stories.d.ts +1 -0
- package/jsx/core/AppShell/AppShell.stories.d.ts.map +1 -1
- package/jsx/core/AppShell/AppShell.stories.jsx +21 -6
- package/jsx/core/AppShell/AppShell.stories.jsx.map +1 -1
- package/jsx/core/Banner/Banner.stories.d.ts +1 -0
- package/jsx/core/Banner/Banner.stories.d.ts.map +1 -1
- package/jsx/core/Banner/Banner.stories.jsx +3 -3
- package/jsx/core/Banner/Banner.stories.jsx.map +1 -1
- package/jsx/cs/CSAppShell/CSAppShell.mocks.d.ts +1 -0
- package/jsx/cs/CSAppShell/CSAppShell.mocks.d.ts.map +1 -1
- package/jsx/cs/CSAppShell/CSAppShell.mocks.jsx +46 -1
- package/jsx/cs/CSAppShell/CSAppShell.mocks.jsx.map +1 -1
- package/jsx/cs/CSAppShell/CSAppShell.stories.d.ts.map +1 -1
- package/jsx/cs/CSAppShell/CSAppShell.stories.jsx +2 -2
- package/jsx/cs/CSAppShell/CSAppShell.stories.jsx.map +1 -1
- package/jsx/social/Chat/Chat.mocks.d.ts +2 -1
- package/jsx/social/Chat/Chat.mocks.d.ts.map +1 -1
- package/jsx/social/Chat/Chat.mocks.js +26 -0
- package/jsx/social/Chat/Chat.mocks.js.map +1 -1
- package/jsx/social/Chat/Chat.stories.d.ts +5 -2
- package/jsx/social/Chat/Chat.stories.d.ts.map +1 -1
- package/jsx/social/Chat/Chat.stories.jsx +35 -101
- package/jsx/social/Chat/Chat.stories.jsx.map +1 -1
- package/jsx/social/Email/Email.mocks.d.ts +49 -7
- package/jsx/social/Email/Email.mocks.d.ts.map +1 -1
- package/jsx/social/Email/Email.mocks.jsx +127 -15
- package/jsx/social/Email/Email.mocks.jsx.map +1 -1
- package/jsx/social/Email/Email.stories.d.ts +10 -0
- package/jsx/social/Email/Email.stories.d.ts.map +1 -1
- package/jsx/social/Email/Email.stories.jsx +129 -12
- package/jsx/social/Email/Email.stories.jsx.map +1 -1
- package/jsx/tools/DevTools/DevTools.stories.d.ts.map +1 -1
- package/jsx/tools/DevTools/DevTools.stories.jsx +2 -4
- package/jsx/tools/DevTools/DevTools.stories.jsx.map +1 -1
- package/jsx/tools/PreviewShell/PreviewShell.mocks.d.ts +3 -1
- package/jsx/tools/PreviewShell/PreviewShell.mocks.d.ts.map +1 -1
- package/jsx/tools/PreviewShell/PreviewShell.mocks.jsx +7 -4
- package/jsx/tools/PreviewShell/PreviewShell.mocks.jsx.map +1 -1
- package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts.map +1 -1
- package/jsx/tools/PreviewShell/PreviewShell.stories.jsx +16 -12
- package/jsx/tools/PreviewShell/PreviewShell.stories.jsx.map +1 -1
- package/jsx/work/Stages/Stages.mocks.jsx +6 -6
- package/jsx/work/Stages/Stages.mocks.jsx.map +1 -1
- package/jsx/work/Tasks/Tasks.stories.d.ts.map +1 -1
- package/jsx/work/Tasks/Tasks.stories.jsx +15 -13
- package/jsx/work/Tasks/Tasks.stories.jsx.map +1 -1
- package/lib/build/AppShell/AppShell.mocks.d.ts +16 -14
- package/lib/build/AppShell/AppShell.mocks.d.ts.map +1 -1
- package/lib/build/AppShell/AppShell.mocks.js +144 -101
- package/lib/build/AppShell/AppShell.mocks.js.map +1 -1
- package/lib/build/AppShell/AppShell.stories.d.ts +1 -0
- package/lib/build/AppShell/AppShell.stories.d.ts.map +1 -1
- package/lib/build/AppShell/AppShell.stories.js +7 -3
- package/lib/build/AppShell/AppShell.stories.js.map +1 -1
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts +2 -0
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +1 -1
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js +23 -0
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +1 -1
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +1 -1
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js +4 -4
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js.map +1 -1
- package/lib/build/PageBanner/PageBanner.stories.d.ts +15 -0
- package/lib/build/PageBanner/PageBanner.stories.d.ts.map +1 -0
- package/lib/build/PageBanner/PageBanner.stories.js +42 -0
- package/lib/build/PageBanner/PageBanner.stories.js.map +1 -0
- package/lib/build/PageTemplates/GalleryPage.stories.d.ts +7 -3
- package/lib/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
- package/lib/build/PageTemplates/GalleryPage.stories.js +29 -19
- package/lib/build/PageTemplates/GalleryPage.stories.js.map +1 -1
- package/lib/build/PageTemplates/ShowcasePage.stories.d.ts +17 -0
- package/lib/build/PageTemplates/ShowcasePage.stories.d.ts.map +1 -0
- package/lib/build/PageTemplates/ShowcasePage.stories.js +43 -0
- package/lib/build/PageTemplates/ShowcasePage.stories.js.map +1 -0
- package/lib/condition-builder/ConditionBuilder/props.mock.js +4 -4
- package/lib/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
- package/lib/core/AppShell/AppShell.mocks.js +1 -1
- package/lib/core/AppShell/AppShell.mocks.js.map +1 -1
- package/lib/core/AppShell/AppShell.stories.d.ts +1 -0
- package/lib/core/AppShell/AppShell.stories.d.ts.map +1 -1
- package/lib/core/AppShell/AppShell.stories.js +21 -6
- package/lib/core/AppShell/AppShell.stories.js.map +1 -1
- package/lib/core/Banner/Banner.stories.d.ts +1 -0
- package/lib/core/Banner/Banner.stories.d.ts.map +1 -1
- package/lib/core/Banner/Banner.stories.js +1 -1
- package/lib/core/Banner/Banner.stories.js.map +1 -1
- package/lib/cs/CSAppShell/CSAppShell.mocks.d.ts +1 -0
- package/lib/cs/CSAppShell/CSAppShell.mocks.d.ts.map +1 -1
- package/lib/cs/CSAppShell/CSAppShell.mocks.js +37 -1
- package/lib/cs/CSAppShell/CSAppShell.mocks.js.map +1 -1
- package/lib/cs/CSAppShell/CSAppShell.stories.d.ts.map +1 -1
- package/lib/cs/CSAppShell/CSAppShell.stories.js +2 -2
- package/lib/cs/CSAppShell/CSAppShell.stories.js.map +1 -1
- package/lib/social/Chat/Chat.mocks.d.ts +2 -1
- package/lib/social/Chat/Chat.mocks.d.ts.map +1 -1
- package/lib/social/Chat/Chat.mocks.js +26 -0
- package/lib/social/Chat/Chat.mocks.js.map +1 -1
- package/lib/social/Chat/Chat.stories.d.ts +5 -2
- package/lib/social/Chat/Chat.stories.d.ts.map +1 -1
- package/lib/social/Chat/Chat.stories.js +36 -76
- package/lib/social/Chat/Chat.stories.js.map +1 -1
- package/lib/social/Email/Email.mocks.d.ts +49 -7
- package/lib/social/Email/Email.mocks.d.ts.map +1 -1
- package/lib/social/Email/Email.mocks.js +127 -15
- package/lib/social/Email/Email.mocks.js.map +1 -1
- package/lib/social/Email/Email.stories.d.ts +10 -0
- package/lib/social/Email/Email.stories.d.ts.map +1 -1
- package/lib/social/Email/Email.stories.js +134 -12
- package/lib/social/Email/Email.stories.js.map +1 -1
- package/lib/tools/DevTools/DevTools.stories.d.ts.map +1 -1
- package/lib/tools/DevTools/DevTools.stories.js +2 -4
- package/lib/tools/DevTools/DevTools.stories.js.map +1 -1
- package/lib/tools/PreviewShell/PreviewShell.mocks.d.ts +3 -1
- package/lib/tools/PreviewShell/PreviewShell.mocks.d.ts.map +1 -1
- package/lib/tools/PreviewShell/PreviewShell.mocks.js +5 -4
- package/lib/tools/PreviewShell/PreviewShell.mocks.js.map +1 -1
- package/lib/tools/PreviewShell/PreviewShell.stories.d.ts.map +1 -1
- package/lib/tools/PreviewShell/PreviewShell.stories.js +11 -13
- package/lib/tools/PreviewShell/PreviewShell.stories.js.map +1 -1
- package/lib/work/Stages/Stages.mocks.js +6 -6
- package/lib/work/Stages/Stages.mocks.js.map +1 -1
- package/lib/work/Tasks/Tasks.stories.d.ts.map +1 -1
- package/lib/work/Tasks/Tasks.stories.js +2 -2
- package/lib/work/Tasks/Tasks.stories.js.map +1 -1
- package/package.json +10 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chat.mocks.js","sourceRoot":"","sources":["../../../src/social/Chat/Chat.mocks.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,WAAW,EAAE;QACX;YACE,EAAE,EAAE,gBAAgB;YACpB,KAAK,EAAE,KAAK;YACZ,kBAAkB,EAAE,IAAI;YACxB,IAAI,EAAE;gBACJ;oBACE,EAAE,EAAE,YAAY;oBAChB,IAAI,EAAE,YAAY;oBAClB,SAAS,EAAE,UAAU;oBACrB,OAAO,EAAE,KAAK;oBACd,OAAO,EAAE,uEAAuE;oBAChF,SAAS,EACP,6FAA6F;iBAChG;gBACD;oBACE,EAAE,EAAE,WAAW;oBACf,IAAI,EAAE,YAAY;oBAClB,SAAS,EAAE,UAAU;oBACrB,OAAO,EAAE,MAAM;oBACf,OAAO,EAAE,gBAAgB;oBACzB,UAAU,EAAE;wBACV,IAAI,EAAE,YAAY;qBACnB;oBACD,cAAc,EAAE;wBACd,OAAO,EAAE,cAAc;qBACxB;oBACD,SAAS,EAAE,6DAA6D;iBACzE;gBACD;oBACE,EAAE,EAAE,YAAY;oBAChB,IAAI,EAAE,YAAY;oBAClB,SAAS,EAAE,UAAU;oBACrB,OAAO,EAAE,KAAK;oBACd,OAAO,EAAE,mEAAmE;oBAC5E,SAAS,EACP,oFAAoF;iBACvF;gBACD;oBACE,EAAE,EAAE,WAAW;oBACf,IAAI,EAAE,YAAY;oBAClB,SAAS,EAAE,UAAU;oBACrB,OAAO,EAAE,MAAM;oBACf,OAAO,EAAE,6BAA6B;oBACtC,cAAc,EAAE;wBACd,OAAO,EAAE,cAAc;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AAE;YACV,IAAI,EAAE,YAAY;SACnB;QACD,OAAO,EAAE,eAAe;QACxB,SAAS,EAAE,SAAS;QACpB,aAAa,EAAE;YACb;gBACE,EAAE,EAAE,YAAY;gBAChB,IAAI,EAAE,+BAA+B;gBACrC,KAAK,EAAE,gBAAgB;aACxB;SACF;QACD,SAAS,EAAE,sDAAsD;KAClE;IACD;QACE,EAAE,EAAE,YAAY;QAChB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,QAAQ;QACjB,SAAS,EAAE,KAAK;QAChB,UAAU,EAAE;YACV,IAAI,EAAE,YAAY;SACnB;QACD,OAAO,EAAE,gBAAgB;QACzB,SAAS,EAAE,SAAS;QACpB,aAAa,EAAE;YACb;gBACE,EAAE,EAAE,YAAY;gBAChB,IAAI,EAAE,+BAA+B;gBACrC,KAAK,EAAE,gBAAgB;aACxB;SACF;QACD,SAAS,EAAE,uDAAuD;KACnE;CACF,CAAC","sourcesContent":["import { MenuProps } from '@pega/cosmos-react-core';\n\nexport const ChatMockData = {\n transcripts: [\n {\n id: 'botTranscripts',\n title: 'Bot',\n earlierTranscripts: true,\n data: [\n {\n id: '2499167349',\n type: 'transcript',\n timeStamp: '01:20 PM',\n variant: 'bot',\n message: 'Hello… This is bot. How can I help you? Please select your category. ',\n ariaLabel:\n 'Bot said Hello… This is bot. How can I help you? Please select your category. at 01:20 PM'\n },\n {\n id: '414918079',\n type: 'transcript',\n timeStamp: '01:21 PM',\n variant: 'user',\n message: 'Policy details',\n avatarInfo: {\n name: 'Sara Davis'\n },\n messagePrivacy: {\n privacy: 'PUBLIC TWEET'\n },\n ariaLabel: 'Sara Davis said Policy details at 01:21 PM via Public Tweet'\n },\n {\n id: '4750473261',\n type: 'transcript',\n timeStamp: '01:22 PM',\n variant: 'bot',\n message: 'Please select what would you like to know about your policy. 😃😃',\n ariaLabel:\n 'Bot said Please select what would you like to know about your policy. at 01:22 PM'\n },\n {\n id: '925521127',\n type: 'transcript',\n timeStamp: '01:23 PM',\n variant: 'user',\n message: 'Policy terms and conditions',\n messagePrivacy: {\n privacy: 'PUBLIC TWEET'\n },\n avatarInfo: {\n name: 'Sara Davis'\n },\n ariaLabel: 'Sara Davis said Policy terms and conditions at 01:23 PM'\n }\n ]\n },\n {\n id: 'preChatTranscript',\n title: 'Questionnaire',\n earlierTranscripts: false,\n data: [\n {\n id: '1457969897',\n type: 'transcript',\n timeStamp: '01:23 PM',\n variant: 'question',\n message: 'Could you please enter your query',\n ariaLabel: 'Customer was asked for Could you please enter your query at 01:23 PM'\n },\n {\n id: '4633052071',\n type: 'transcript',\n timeStamp: '01:23 PM',\n variant: 'user',\n message: 'I would like to know my policy terms and conditions',\n avatarInfo: {\n name: 'Sara Davis'\n },\n ariaLabel:\n 'Sara Davis said I would like to know my policy terms and conditions at 01:23 PM'\n },\n {\n id: '3105885518',\n type: 'transcript',\n timeStamp: '01:23 PM',\n variant: 'question',\n message: 'Could you please select the policy',\n ariaLabel: 'Customer was asked for Could you please select the policy at 01:23 PM'\n },\n {\n id: '3008407298',\n type: 'transcript',\n timeStamp: '01:23 PM',\n variant: 'user',\n message: 'Insurance policy - 5545456668555',\n messagePrivacy: {\n privacy: 'PUBLIC TWEET'\n },\n avatarInfo: {\n name: 'Sara Davis'\n },\n ariaLabel:\n 'Sara Davis said Insurance policy - 5545456668555 at 01:23 PM via Public Tweet'\n },\n {\n id: '4700050925',\n type: 'system',\n message: 'Chat escalated to live agent',\n timeStamp: '01:23 PM'\n },\n {\n id: '3608004939',\n type: 'system',\n message: 'Agent Fred joined the chat',\n timeStamp: '01:24 PM'\n }\n ]\n },\n {\n id: 'csrTranscript',\n earlierTranscripts: false,\n title: 'Transcripts: Agent Fred and Jim',\n data: [\n {\n id: '4713954822',\n type: 'transcript',\n timeStamp: '01:24 PM',\n messagePrivacy: {\n privacy: 'PUBLIC TWEET'\n },\n variant: 'user',\n message: 'Hello, Welcome to U-Plus. How can I help you?',\n avatarInfo: {\n name: 'Jim'\n },\n ariaLabel:\n 'Jim said Hello, Welcome to U-Plus. How can I help you? at 01:24 PM via Public Tweet'\n },\n {\n id: '2582654831',\n type: 'transcript',\n timeStamp: '01:25 PM',\n variant: 'user',\n message: 'Hi, I would like to know my policy terms and condition',\n avatarInfo: {\n name: 'Sara Davis'\n },\n ariaLabel:\n 'Sara Davis said Hi, I would like to know my policy terms and condition at 01:25 PM'\n },\n {\n id: '4422603601',\n type: 'transcript',\n timeStamp: '01:26 PM',\n messagePrivacy: {\n privacy: 'PUBLIC TWEET'\n },\n variant: 'user',\n message: 'You can refer this article to know more',\n avatarInfo: {\n name: 'Jim'\n },\n ariaLabel:\n 'Jim said You can refer this article to know more at 01:26 PM via Public Tweet'\n },\n {\n id: '973978246',\n type: 'system',\n message: 'Customer opened knowledge article',\n timeStamp: '01:26 PM'\n },\n {\n id: '44764769',\n type: 'transcript',\n timeStamp: '01:26 PM',\n variant: 'user',\n message: 'Also I would like to know my policy validity',\n avatarInfo: {\n name: 'Sara Davis'\n },\n ariaLabel: 'Sara Davis said Also I would like to know my policy validity at 01:26 PM'\n },\n {\n id: '1052005901',\n type: 'transcript',\n timeStamp: '01:27 PM',\n variant: 'user',\n message: 'Is that fine if I can transfer your chat to serve better? ',\n avatarInfo: {\n name: 'Jim'\n },\n ariaLabel:\n 'Jim said Is that fine if I can transfer your chat to serve better? at 01:27 PM'\n },\n {\n id: '474082342',\n type: 'transcript',\n timeStamp: '01:27 PM',\n variant: 'user',\n message: 'Yeah Sure',\n avatarInfo: {\n name: 'Sara Davis'\n },\n ariaLabel: 'Sara Davis said Yeah Sure at 01:27 PM'\n },\n {\n id: '2128368768',\n type: 'system',\n message: 'Chat has been transferred',\n timeStamp: '01:27 PM'\n }\n ]\n }\n ],\n participants: {\n transcriptUser1: {\n avatarInfo: {\n name: 'Jim'\n }\n },\n transcriptUser2: {\n avatarInfo: {\n name: 'Fred'\n }\n },\n sender: {\n variant: 'sender',\n direction: 'out',\n avatarInfo: {\n name: 'John Brown'\n }\n },\n sender2: {\n variant: 'sender',\n direction: 'out'\n },\n receiver: {\n variant: 'receiver',\n direction: 'in',\n avatarInfo: {\n name: 'Sara Davis'\n }\n },\n other: {\n variant: 'other',\n direction: 'in',\n avatarInfo: {\n name: 'Pegasystems',\n imageSrc: 'https://www.pega.com/sites/default/files/media/images/2018-12/Pega.com-og.png'\n }\n }\n },\n chatMessages: [\n {\n id: '4276065002',\n type: 'system',\n message: 'John brown has joined',\n timeStamp: '01:44 PM'\n },\n {\n id: '88365643',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n avatarInfo: {\n name: 'John Brown'\n },\n message: 'Hi, Welcome to u-plus. How can I help you ?',\n timeStamp: '1:44 PM',\n status: 'sent',\n attachments: [\n {\n id: '2499167340',\n name: 'Location',\n icon: 'document',\n meta: 'PNG 0.1 MB',\n thumbnail:\n 'https://pegasystems.github.io/uplus-wss/health_provider/img/secondary-options.jpg'\n },\n {\n id: '2499167341',\n name: 'FAQ with detailed terms and conditions of the policy',\n icon: 'document-pdf',\n meta: 'PDF 0.7 MB'\n }\n ],\n ariaLabel:\n 'John Brown said Hi, Welcome to u-plus. How can I help you ? at 1:44 PM with 2 attachments'\n },\n {\n id: '3245595973',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n avatarInfo: {\n name: 'John Brown'\n },\n message: 'You may also reach us via',\n timeStamp: '1:45 PM',\n pagePushLinks: [\n {\n id: '2499167349',\n href: 'https://collaborate.pega.com/',\n thumbnail:\n 'https://community.pega.com/sites/default/files/styles/480/public/media/images/2020-02/AskExpert.png?itok=ef2MVbOV',\n title: 'Ask the expert'\n }\n ],\n ariaLabel: 'John Brown said You may also reach us via at 1:45 PM with 1 link'\n },\n {\n id: '3865379335',\n type: 'message',\n variant: 'receiver',\n messagePrivacy: 'PUBLIC TWEET',\n direction: 'in',\n avatarInfo: {\n name: 'Sara Davis'\n },\n message: 'Hi, I would like to know the validity of my policy',\n ariaLabel:\n 'Sara Davis said Hi, I would like to know the validity of my policy via Public Tweet'\n },\n {\n id: '777315059',\n type: 'message',\n variant: 'receiver',\n messagePrivacy: 'PUBLIC TWEET',\n direction: 'in',\n avatarInfo: {\n name: 'Sara Davis'\n },\n message: 'Could you please help',\n timeStamp: '1:45 PM',\n ariaLabel: 'Sara Davis said Could you please help at 1:45 PM via Public Tweet'\n },\n {\n id: '4001121034',\n type: 'system',\n message: 'Pegasystems has joined'\n },\n {\n id: '779591083',\n type: 'message',\n variant: 'other',\n direction: 'in',\n avatarInfo: {\n name: 'Pegasystems',\n imageSrc: 'https://www.pega.com/sites/default/files/media/images/2018-12/Pega.com-og.png'\n },\n message: 'Great, our CSR will help you with that',\n timeStamp: '1:46 PM',\n ariaLabel: 'Pegasystems said Great, our CSR will help you with that at 1:46 PM'\n },\n {\n id: '2683629622',\n type: 'message',\n variant: 'sender',\n messagePrivacy: 'PUBLIC REPLY',\n direction: 'out',\n avatarInfo: {\n name: 'John Brown'\n },\n message: 'Sure',\n timeStamp: '1:48 PM',\n status: 'delivered',\n ariaLabel: 'John Brown said Sure at 1:48 PM via Public Tweet'\n },\n {\n id: '2748689942',\n type: 'message',\n variant: 'other',\n direction: 'in',\n avatarInfo: {\n name: 'Pegasystems',\n imageSrc: 'https://www.pega.com/sites/default/files/media/images/2018-12/Pega.com-og.png'\n },\n message: ' Carry on',\n timeStamp: '1:49 PM',\n attachments: [\n {\n id: '2499167343',\n name: 'Departments mapping',\n icon: 'document-doc',\n meta: 'PDF 0.1 MB'\n }\n ],\n ariaLabel: 'Pegasystems said Carry on at 1:49 PM with 1 attachment'\n },\n {\n id: '4110947991',\n type: 'message',\n variant: 'other',\n direction: 'in',\n messagePrivacy: 'PUBLIC REPLY',\n avatarInfo: {\n name: 'Pegasystems',\n imageSrc: 'https://www.pega.com/sites/default/files/media/images/2018-12/Pega.com-og.png'\n },\n message: ' Refer these documents for more FAQ',\n timeStamp: '1:49 PM',\n attachments: [\n {\n id: '2499167345',\n name: 'FAQ with detailed terms and conditions of the policy',\n icon: 'document-doc',\n meta: 'PDF 0.7 MB'\n },\n {\n id: '2499167346',\n name: 'Privacy policy',\n icon: 'document-doc',\n meta: 'WORD 0.1 MB'\n }\n ],\n ariaLabel:\n 'Pegasystems said Refer these documents for more FAQ at 1:49 PM with 2 attachments via Public Tweet'\n },\n {\n id: '2549273884',\n type: 'system',\n message: 'Pegasystems has left'\n },\n {\n id: '3375453344',\n type: 'message',\n variant: 'sender',\n messagePrivacy: 'PUBLIC REPLY',\n direction: 'out',\n avatarInfo: {\n name: 'John Brown'\n },\n message: 'Could you please help me with your account num',\n timeStamp: '1:50 PM',\n attachments: [\n {\n id: '2499167347',\n name: 'Security policy',\n icon: 'document-pdf',\n meta: 'PDF 6.1 MB'\n }\n ],\n ariaLabel:\n 'John Brown said Could you please help me with your account num at 1:50 PM with 1 attachment via Public Tweet'\n },\n {\n id: '1868448522',\n type: 'message',\n variant: 'receiver',\n direction: 'in',\n avatarInfo: {\n name: 'Sara Davis'\n },\n message: 'Yeah, sure please give me a second',\n ariaLabel: 'Sara Davis said Yeah, sure please give me a second '\n },\n {\n id: '1295058543',\n type: 'message',\n variant: 'receiver',\n direction: 'in',\n avatarInfo: {\n name: 'Sara Davis'\n },\n timeStamp: '1:50 PM',\n attachments: [\n {\n id: '2499167348',\n name: 'Vehicle insurance',\n icon: 'document-doc',\n meta: 'WORD 1.1 MB'\n }\n ],\n ariaLabel: 'Sara Davis said 5588-8899-45-89 at 1:50 PM with 1 attachment'\n },\n {\n id: '2690247642',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n avatarInfo: {\n name: 'John Brown'\n },\n message: 'Let me pick your details',\n status: 'delivered',\n ariaLabel: 'John Brown said Let me pick your details '\n },\n {\n id: '1208949065',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n avatarInfo: {\n name: 'John Brown'\n },\n message: 'Can I please transfer your chat request to concerned department please ?',\n timeStamp: '1:51 PM',\n ariaLabel:\n 'John Brown said Can I please transfer your chat request to concerned department please ? at 1:51 PM'\n },\n {\n id: '4302656892',\n type: 'message',\n variant: 'receiver',\n direction: 'in',\n avatarInfo: {\n name: 'Sara Davis'\n },\n message: 'Sure',\n timeStamp: '1:51 PM',\n ariaLabel: 'Sara Davis said Sure at 1:51 PM'\n },\n {\n id: '658052414',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n avatarInfo: {\n name: 'John Brown'\n },\n message: 'Please give me a moment',\n timeStamp: '1:51 PM',\n ariaLabel: 'John Brown said Please give me a moment at 1:51 PM'\n },\n {\n id: '719933419',\n type: 'system',\n message: 'Mike has joined'\n },\n {\n id: '679831597',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n message:\n 'Hi Sara. This is Mike. John has discussed with me. I will be helping you out with the required details',\n timeStamp: '1:51 PM',\n ariaLabel:\n 'You said Hi Sara. This is Mike. John has discussed with me. I will be helping you out with the required details at 1:51 PM'\n },\n {\n id: '2785439809',\n type: 'system',\n message: 'John brown has left'\n },\n {\n id: '85859690',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n message: 'Ok, your insurance is valid until Dec 21, 2020 11:00 AM',\n timeStamp: '1:52 PM',\n ariaLabel: 'You said Ok, your insurance is valid until Dec 21, 2020 11:00 AM at 1:52 PM'\n },\n {\n id: '2484793043',\n type: 'message',\n variant: 'receiver',\n direction: 'in',\n avatarInfo: {\n name: 'Sara Davis'\n },\n message: 'Thanks',\n timeStamp: '1:52 PM',\n ariaLabel: 'Sara Davis said Thanks at 1:52 PM'\n },\n {\n id: '352967030',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n message: 'Is there anything I can help you with',\n timeStamp: '1:52 PM',\n ariaLabel: 'You said Is there anything I can help you with at 1:52 PM'\n },\n {\n id: '3432757116',\n type: 'message',\n variant: 'receiver',\n direction: 'in',\n avatarInfo: {\n name: 'Sara Davis'\n },\n message: 'I am good.😃',\n timeStamp: '1:53 PM',\n ariaLabel: 'Sara Davis said I am good 😃. at 1:53 PM'\n },\n {\n id: '2432461831',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n message: 'Thanks for contacting us, have a great day',\n timeStamp: '1:53 PM',\n ariaLabel: 'You said Thanks for contacting us, have a great day at 1:53 PM',\n status: 'undelivered'\n },\n {\n id: '2965626280',\n type: 'system',\n message: 'Chat has been ended'\n }\n ],\n defaultAttachments: [\n {\n id: '4455774588',\n name: '03/2020 statement.pdf'\n },\n {\n id: '44557745889',\n name: 'Policy T&C.pdf'\n }\n ],\n suggestedReplies: [\n {\n id: 'suggested_reply_1',\n message: 'Hello, Good morning Sara. How can I help you today',\n confidence: 94\n },\n {\n id: 'suggested_reply_2',\n message:\n 'Sorry to hear that. I will surely help you resolve the issue. Can you please provide the policy id, so that I can get more details',\n confidence: 75\n }\n ]\n};\n\nexport const phrasesDisplayNames: MenuProps['items'] = [\n {\n id: '1',\n primary: 'Account',\n items: [\n {\n id: '1-1',\n primary: 'Account balance'\n }\n ]\n },\n {\n id: '2',\n primary: 'Agreement',\n items: [\n {\n id: '2-1',\n primary: 'End of a case/interaction'\n },\n {\n id: '2-2',\n primary: 'Mid interaction'\n }\n ]\n },\n {\n id: '3',\n primary: 'Apologize',\n items: [\n {\n id: '3-1',\n primary: 'Apologize - ask customer to'\n },\n {\n id: '3-2',\n primary: 'Thanks for patience'\n }\n ]\n },\n {\n id: '4',\n primary: 'Ask for transfer',\n items: [\n {\n id: '4-1',\n primary: 'Agent not available'\n },\n {\n id: '4-2',\n primary: 'Agent not available - call back'\n },\n {\n id: '4-3',\n primary: 'Agent not available - stall'\n }\n ]\n }\n];\n\nexport const phrasesMessages = [\n {\n id: '1-1',\n message: 'Ms. Sara J Connor your account balance is $5226.32'\n },\n {\n id: '2-1',\n message: 'My pleasure! Is there anything else I can do for you today?'\n },\n {\n id: '2-2',\n message: 'You are welcome!'\n },\n {\n id: '3-1',\n message:\n \"Ms.Connor. We do not respond to that kind of language. I'm doing my best to help you. Please be civil.\"\n },\n {\n id: '3-2',\n message: 'Thanks for your patience. I am working on your request. I will be with you shortly.'\n },\n {\n id: '4-1',\n message:\n 'It looks like the agent we were looking to transfer you to will not be available. One moment please while I see whether someone else can assist.'\n },\n {\n id: '4-2',\n message:\n \"The agent I was looking to transfer you to isn't available. Would it be possible for us to call you when a specialist is available?\"\n },\n {\n id: '4-3',\n message:\n 'It looks like the agent we were looking to transfer you to will not be available. One moment please while I see whether someone else can assist.'\n }\n];\n\nexport const pagePushList = [\n {\n id: '3245595454',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n avatarInfo: {\n name: 'John Brown'\n },\n message: 'You may also reach us via',\n timeStamp: '1:45 PM',\n pagePushLinks: [\n {\n id: '2499167349',\n href: 'https://collaborate.pega.com/',\n thumbnail:\n 'https://community.pega.com/sites/default/files/styles/480/public/media/images/2020-02/AskExpert.png?itok=ef2MVbOV',\n title: 'Ask the expert'\n }\n ],\n ariaLabel: 'John Brown said You may also reach us via at 1:45 PM with 1 link'\n },\n {\n id: '3245596782',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n avatarInfo: {\n name: 'John Brown'\n },\n message: 'Online Portal',\n timeStamp: '1:45 PM',\n pagePushLinks: [\n {\n id: '2499167349',\n href: 'https://collaborate.pega.com/',\n title: 'Ask the expert'\n }\n ],\n ariaLabel: 'John Brown said Online portal at 1:45 PM with 1 link'\n },\n {\n id: '3245556754',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n avatarInfo: {\n name: 'John Brown'\n },\n message: 'Contact center',\n timeStamp: '1:45 PM',\n pagePushLinks: [\n {\n id: '2499167349',\n href: 'https://collaborate.pega.com/',\n title: 'Ask the expert'\n }\n ],\n ariaLabel: 'John Brown said Contact center at 1:45 PM with 1 link'\n }\n];\n"]}
|
|
1
|
+
{"version":3,"file":"Chat.mocks.js","sourceRoot":"","sources":["../../../src/social/Chat/Chat.mocks.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,WAAW,EAAE;QACX;YACE,EAAE,EAAE,gBAAgB;YACpB,KAAK,EAAE,KAAK;YACZ,kBAAkB,EAAE,IAAI;YACxB,IAAI,EAA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EAAE,YAAY;gBAChB,IAAI,EAAE,+BAA+B;gBACrC,KAAK,EAAE,gBAAgB;aACxB;SACF;QACD,SAAS,EAAE,uDAAuD;KACnE;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAA8B;IACrD;QACE,EAAE,EAAE,UAAU;QACd,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,cAAc;QACrB,OAAO,EAAE,QAAQ;KAClB;IACD;QACE,EAAE,EAAE,gBAAgB;QACpB,IAAI,EAAE,gBAAgB;QACtB,KAAK,EAAE,oBAAoB;QAC3B,OAAO,EAAE,QAAQ;KAClB;IACD;QACE,EAAE,EAAE,eAAe;QACnB,IAAI,EAAE,eAAe;QACrB,KAAK,EAAE,SAAS;QAChB,OAAO,EAAE,QAAQ;KAClB;IACD;QACE,EAAE,EAAE,wBAAwB;QAC5B,IAAI,EAAE,wBAAwB;QAC9B,KAAK,EAAE,kCAAkC;QACzC,OAAO,EAAE,QAAQ;KAClB;CACF,CAAC","sourcesContent":["import { FieldValueListItemProps, MenuProps } from '@pega/cosmos-react-core';\n\nexport const ChatMockData = {\n transcripts: [\n {\n id: 'botTranscripts',\n title: 'Bot',\n earlierTranscripts: true,\n data: [\n {\n id: '2499167349',\n type: 'transcript',\n timeStamp: '01:20 PM',\n variant: 'bot',\n message: 'Hello… This is bot. How can I help you? Please select your category. ',\n ariaLabel:\n 'Bot said Hello… This is bot. How can I help you? Please select your category. at 01:20 PM'\n },\n {\n id: '414918079',\n type: 'transcript',\n timeStamp: '01:21 PM',\n variant: 'user',\n message: 'Policy details',\n avatarInfo: {\n name: 'Sara Davis'\n },\n messagePrivacy: {\n privacy: 'PUBLIC TWEET'\n },\n ariaLabel: 'Sara Davis said Policy details at 01:21 PM via Public Tweet'\n },\n {\n id: '4750473261',\n type: 'transcript',\n timeStamp: '01:22 PM',\n variant: 'bot',\n message: 'Please select what would you like to know about your policy. 😃😃',\n ariaLabel:\n 'Bot said Please select what would you like to know about your policy. at 01:22 PM'\n },\n {\n id: '925521127',\n type: 'transcript',\n timeStamp: '01:23 PM',\n variant: 'user',\n message: 'Policy terms and conditions',\n messagePrivacy: {\n privacy: 'PUBLIC TWEET'\n },\n avatarInfo: {\n name: 'Sara Davis'\n },\n ariaLabel: 'Sara Davis said Policy terms and conditions at 01:23 PM'\n }\n ]\n },\n {\n id: 'preChatTranscript',\n title: 'Questionnaire',\n earlierTranscripts: false,\n data: [\n {\n id: '1457969897',\n type: 'transcript',\n timeStamp: '01:23 PM',\n variant: 'question',\n message: 'Could you please enter your query',\n ariaLabel: 'Customer was asked for Could you please enter your query at 01:23 PM'\n },\n {\n id: '4633052071',\n type: 'transcript',\n timeStamp: '01:23 PM',\n variant: 'user',\n message: 'I would like to know my policy terms and conditions',\n avatarInfo: {\n name: 'Sara Davis'\n },\n ariaLabel:\n 'Sara Davis said I would like to know my policy terms and conditions at 01:23 PM'\n },\n {\n id: '3105885518',\n type: 'transcript',\n timeStamp: '01:23 PM',\n variant: 'question',\n message: 'Could you please select the policy',\n ariaLabel: 'Customer was asked for Could you please select the policy at 01:23 PM'\n },\n {\n id: '3008407298',\n type: 'transcript',\n timeStamp: '01:23 PM',\n variant: 'user',\n message: 'Insurance policy - 5545456668555',\n messagePrivacy: {\n privacy: 'PUBLIC TWEET'\n },\n avatarInfo: {\n name: 'Sara Davis'\n },\n ariaLabel:\n 'Sara Davis said Insurance policy - 5545456668555 at 01:23 PM via Public Tweet'\n },\n {\n id: '4700050925',\n type: 'system',\n message: 'Chat escalated to live agent',\n timeStamp: '01:23 PM'\n },\n {\n id: '3608004939',\n type: 'system',\n message: 'Agent Fred joined the chat',\n timeStamp: '01:24 PM'\n }\n ]\n },\n {\n id: 'csrTranscript',\n earlierTranscripts: false,\n title: 'Transcripts: Agent Fred and Jim',\n data: [\n {\n id: '4713954822',\n type: 'transcript',\n timeStamp: '01:24 PM',\n messagePrivacy: {\n privacy: 'PUBLIC TWEET'\n },\n variant: 'user',\n message: 'Hello, Welcome to U-Plus. How can I help you?',\n avatarInfo: {\n name: 'Jim'\n },\n ariaLabel:\n 'Jim said Hello, Welcome to U-Plus. How can I help you? at 01:24 PM via Public Tweet'\n },\n {\n id: '2582654831',\n type: 'transcript',\n timeStamp: '01:25 PM',\n variant: 'user',\n message: 'Hi, I would like to know my policy terms and condition',\n avatarInfo: {\n name: 'Sara Davis'\n },\n ariaLabel:\n 'Sara Davis said Hi, I would like to know my policy terms and condition at 01:25 PM'\n },\n {\n id: '4422603601',\n type: 'transcript',\n timeStamp: '01:26 PM',\n messagePrivacy: {\n privacy: 'PUBLIC TWEET'\n },\n variant: 'user',\n message: 'You can refer this article to know more',\n avatarInfo: {\n name: 'Jim'\n },\n ariaLabel:\n 'Jim said You can refer this article to know more at 01:26 PM via Public Tweet'\n },\n {\n id: '973978246',\n type: 'system',\n message: 'Customer opened knowledge article',\n timeStamp: '01:26 PM'\n },\n {\n id: '44764769',\n type: 'transcript',\n timeStamp: '01:26 PM',\n variant: 'user',\n message: 'Also I would like to know my policy validity',\n avatarInfo: {\n name: 'Sara Davis'\n },\n ariaLabel: 'Sara Davis said Also I would like to know my policy validity at 01:26 PM'\n },\n {\n id: '1052005901',\n type: 'transcript',\n timeStamp: '01:27 PM',\n variant: 'user',\n message: 'Is that fine if I can transfer your chat to serve better? ',\n avatarInfo: {\n name: 'Jim'\n },\n ariaLabel:\n 'Jim said Is that fine if I can transfer your chat to serve better? at 01:27 PM'\n },\n {\n id: '474082342',\n type: 'transcript',\n timeStamp: '01:27 PM',\n variant: 'user',\n message: 'Yeah Sure',\n avatarInfo: {\n name: 'Sara Davis'\n },\n ariaLabel: 'Sara Davis said Yeah Sure at 01:27 PM'\n },\n {\n id: '2128368768',\n type: 'system',\n message: 'Chat has been transferred',\n timeStamp: '01:27 PM'\n }\n ]\n }\n ],\n participants: {\n transcriptUser1: {\n avatarInfo: {\n name: 'Jim'\n }\n },\n transcriptUser2: {\n avatarInfo: {\n name: 'Fred'\n }\n },\n sender: {\n variant: 'sender',\n direction: 'out',\n avatarInfo: {\n name: 'John Brown'\n }\n },\n sender2: {\n variant: 'sender',\n direction: 'out'\n },\n receiver: {\n variant: 'receiver',\n direction: 'in',\n avatarInfo: {\n name: 'Sara Davis'\n }\n },\n other: {\n variant: 'other',\n direction: 'in',\n avatarInfo: {\n name: 'Pegasystems',\n imageSrc: 'https://www.pega.com/sites/default/files/media/images/2018-12/Pega.com-og.png'\n }\n }\n },\n chatMessages: [\n {\n id: '4276065002',\n type: 'system',\n message: 'John brown has joined',\n timeStamp: '01:44 PM'\n },\n {\n id: '88365643',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n avatarInfo: {\n name: 'John Brown'\n },\n message: 'Hi, Welcome to u-plus. How can I help you ?',\n timeStamp: '1:44 PM',\n status: 'sent',\n attachments: [\n {\n id: '2499167340',\n name: 'Location',\n icon: 'document',\n meta: 'PNG 0.1 MB',\n thumbnail:\n 'https://pegasystems.github.io/uplus-wss/health_provider/img/secondary-options.jpg'\n },\n {\n id: '2499167341',\n name: 'FAQ with detailed terms and conditions of the policy',\n icon: 'document-pdf',\n meta: 'PDF 0.7 MB'\n }\n ],\n ariaLabel:\n 'John Brown said Hi, Welcome to u-plus. How can I help you ? at 1:44 PM with 2 attachments'\n },\n {\n id: '3245595973',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n avatarInfo: {\n name: 'John Brown'\n },\n message: 'You may also reach us via',\n timeStamp: '1:45 PM',\n pagePushLinks: [\n {\n id: '2499167349',\n href: 'https://collaborate.pega.com/',\n thumbnail:\n 'https://community.pega.com/sites/default/files/styles/480/public/media/images/2020-02/AskExpert.png?itok=ef2MVbOV',\n title: 'Ask the expert'\n }\n ],\n ariaLabel: 'John Brown said You may also reach us via at 1:45 PM with 1 link'\n },\n {\n id: '3865379335',\n type: 'message',\n variant: 'receiver',\n messagePrivacy: 'PUBLIC TWEET',\n direction: 'in',\n avatarInfo: {\n name: 'Sara Davis'\n },\n message: 'Hi, I would like to know the validity of my policy',\n ariaLabel:\n 'Sara Davis said Hi, I would like to know the validity of my policy via Public Tweet'\n },\n {\n id: '777315059',\n type: 'message',\n variant: 'receiver',\n messagePrivacy: 'PUBLIC TWEET',\n direction: 'in',\n avatarInfo: {\n name: 'Sara Davis'\n },\n message: 'Could you please help',\n timeStamp: '1:45 PM',\n ariaLabel: 'Sara Davis said Could you please help at 1:45 PM via Public Tweet'\n },\n {\n id: '4001121034',\n type: 'system',\n message: 'Pegasystems has joined'\n },\n {\n id: '779591083',\n type: 'message',\n variant: 'other',\n direction: 'in',\n avatarInfo: {\n name: 'Pegasystems',\n imageSrc: 'https://www.pega.com/sites/default/files/media/images/2018-12/Pega.com-og.png'\n },\n message: 'Great, our CSR will help you with that',\n timeStamp: '1:46 PM',\n ariaLabel: 'Pegasystems said Great, our CSR will help you with that at 1:46 PM'\n },\n {\n id: '2683629622',\n type: 'message',\n variant: 'sender',\n messagePrivacy: 'PUBLIC REPLY',\n direction: 'out',\n avatarInfo: {\n name: 'John Brown'\n },\n message: 'Sure',\n timeStamp: '1:48 PM',\n status: 'delivered',\n ariaLabel: 'John Brown said Sure at 1:48 PM via Public Tweet'\n },\n {\n id: '2748689942',\n type: 'message',\n variant: 'other',\n direction: 'in',\n avatarInfo: {\n name: 'Pegasystems',\n imageSrc: 'https://www.pega.com/sites/default/files/media/images/2018-12/Pega.com-og.png'\n },\n message: ' Carry on',\n timeStamp: '1:49 PM',\n attachments: [\n {\n id: '2499167343',\n name: 'Departments mapping',\n icon: 'document-doc',\n meta: 'PDF 0.1 MB'\n }\n ],\n ariaLabel: 'Pegasystems said Carry on at 1:49 PM with 1 attachment'\n },\n {\n id: '4110947991',\n type: 'message',\n variant: 'other',\n direction: 'in',\n messagePrivacy: 'PUBLIC REPLY',\n avatarInfo: {\n name: 'Pegasystems',\n imageSrc: 'https://www.pega.com/sites/default/files/media/images/2018-12/Pega.com-og.png'\n },\n message: ' Refer these documents for more FAQ',\n timeStamp: '1:49 PM',\n attachments: [\n {\n id: '2499167345',\n name: 'FAQ with detailed terms and conditions of the policy',\n icon: 'document-doc',\n meta: 'PDF 0.7 MB'\n },\n {\n id: '2499167346',\n name: 'Privacy policy',\n icon: 'document-doc',\n meta: 'WORD 0.1 MB'\n }\n ],\n ariaLabel:\n 'Pegasystems said Refer these documents for more FAQ at 1:49 PM with 2 attachments via Public Tweet'\n },\n {\n id: '2549273884',\n type: 'system',\n message: 'Pegasystems has left'\n },\n {\n id: '3375453344',\n type: 'message',\n variant: 'sender',\n messagePrivacy: 'PUBLIC REPLY',\n direction: 'out',\n avatarInfo: {\n name: 'John Brown'\n },\n message: 'Could you please help me with your account num',\n timeStamp: '1:50 PM',\n attachments: [\n {\n id: '2499167347',\n name: 'Security policy',\n icon: 'document-pdf',\n meta: 'PDF 6.1 MB'\n }\n ],\n ariaLabel:\n 'John Brown said Could you please help me with your account num at 1:50 PM with 1 attachment via Public Tweet'\n },\n {\n id: '1868448522',\n type: 'message',\n variant: 'receiver',\n direction: 'in',\n avatarInfo: {\n name: 'Sara Davis'\n },\n message: 'Yeah, sure please give me a second',\n ariaLabel: 'Sara Davis said Yeah, sure please give me a second '\n },\n {\n id: '1295058543',\n type: 'message',\n variant: 'receiver',\n direction: 'in',\n avatarInfo: {\n name: 'Sara Davis'\n },\n timeStamp: '1:50 PM',\n attachments: [\n {\n id: '2499167348',\n name: 'Vehicle insurance',\n icon: 'document-doc',\n meta: 'WORD 1.1 MB'\n }\n ],\n ariaLabel: 'Sara Davis said 5588-8899-45-89 at 1:50 PM with 1 attachment'\n },\n {\n id: '2690247642',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n avatarInfo: {\n name: 'John Brown'\n },\n message: 'Let me pick your details',\n status: 'delivered',\n ariaLabel: 'John Brown said Let me pick your details '\n },\n {\n id: '1208949065',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n avatarInfo: {\n name: 'John Brown'\n },\n message: 'Can I please transfer your chat request to concerned department please ?',\n timeStamp: '1:51 PM',\n ariaLabel:\n 'John Brown said Can I please transfer your chat request to concerned department please ? at 1:51 PM'\n },\n {\n id: '4302656892',\n type: 'message',\n variant: 'receiver',\n direction: 'in',\n avatarInfo: {\n name: 'Sara Davis'\n },\n message: 'Sure',\n timeStamp: '1:51 PM',\n ariaLabel: 'Sara Davis said Sure at 1:51 PM'\n },\n {\n id: '658052414',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n avatarInfo: {\n name: 'John Brown'\n },\n message: 'Please give me a moment',\n timeStamp: '1:51 PM',\n ariaLabel: 'John Brown said Please give me a moment at 1:51 PM'\n },\n {\n id: '719933419',\n type: 'system',\n message: 'Mike has joined'\n },\n {\n id: '679831597',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n message:\n 'Hi Sara. This is Mike. John has discussed with me. I will be helping you out with the required details',\n timeStamp: '1:51 PM',\n ariaLabel:\n 'You said Hi Sara. This is Mike. John has discussed with me. I will be helping you out with the required details at 1:51 PM'\n },\n {\n id: '2785439809',\n type: 'system',\n message: 'John brown has left'\n },\n {\n id: '85859690',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n message: 'Ok, your insurance is valid until Dec 21, 2020 11:00 AM',\n timeStamp: '1:52 PM',\n ariaLabel: 'You said Ok, your insurance is valid until Dec 21, 2020 11:00 AM at 1:52 PM'\n },\n {\n id: '2484793043',\n type: 'message',\n variant: 'receiver',\n direction: 'in',\n avatarInfo: {\n name: 'Sara Davis'\n },\n message: 'Thanks',\n timeStamp: '1:52 PM',\n ariaLabel: 'Sara Davis said Thanks at 1:52 PM'\n },\n {\n id: '352967030',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n message: 'Is there anything I can help you with',\n timeStamp: '1:52 PM',\n ariaLabel: 'You said Is there anything I can help you with at 1:52 PM'\n },\n {\n id: '3432757116',\n type: 'message',\n variant: 'receiver',\n direction: 'in',\n avatarInfo: {\n name: 'Sara Davis'\n },\n message: 'I am good.😃',\n timeStamp: '1:53 PM',\n ariaLabel: 'Sara Davis said I am good 😃. at 1:53 PM'\n },\n {\n id: '2432461831',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n message: 'Thanks for contacting us, have a great day',\n timeStamp: '1:53 PM',\n ariaLabel: 'You said Thanks for contacting us, have a great day at 1:53 PM',\n status: 'undelivered'\n },\n {\n id: '2965626280',\n type: 'system',\n message: 'Chat has been ended'\n }\n ],\n defaultAttachments: [\n {\n id: '4455774588',\n name: '03/2020 statement.pdf'\n },\n {\n id: '44557745889',\n name: 'Policy T&C.pdf'\n }\n ],\n suggestedReplies: [\n {\n id: 'suggested_reply_1',\n message: 'Hello, Good morning Sara. How can I help you today',\n confidence: 94\n },\n {\n id: 'suggested_reply_2',\n message:\n 'Sorry to hear that. I will surely help you resolve the issue. Can you please provide the policy id, so that I can get more details',\n confidence: 75\n }\n ]\n};\n\nexport const phrasesDisplayNames: MenuProps['items'] = [\n {\n id: '1',\n primary: 'Account',\n items: [\n {\n id: '1-1',\n primary: 'Account balance'\n }\n ]\n },\n {\n id: '2',\n primary: 'Agreement',\n items: [\n {\n id: '2-1',\n primary: 'End of a case/interaction'\n },\n {\n id: '2-2',\n primary: 'Mid interaction'\n }\n ]\n },\n {\n id: '3',\n primary: 'Apologize',\n items: [\n {\n id: '3-1',\n primary: 'Apologize - ask customer to'\n },\n {\n id: '3-2',\n primary: 'Thanks for patience'\n }\n ]\n },\n {\n id: '4',\n primary: 'Ask for transfer',\n items: [\n {\n id: '4-1',\n primary: 'Agent not available'\n },\n {\n id: '4-2',\n primary: 'Agent not available - call back'\n },\n {\n id: '4-3',\n primary: 'Agent not available - stall'\n }\n ]\n }\n];\n\nexport const phrasesMessages = [\n {\n id: '1-1',\n message: 'Ms. Sara J Connor your account balance is $5226.32'\n },\n {\n id: '2-1',\n message: 'My pleasure! Is there anything else I can do for you today?'\n },\n {\n id: '2-2',\n message: 'You are welcome!'\n },\n {\n id: '3-1',\n message:\n \"Ms.Connor. We do not respond to that kind of language. I'm doing my best to help you. Please be civil.\"\n },\n {\n id: '3-2',\n message: 'Thanks for your patience. I am working on your request. I will be with you shortly.'\n },\n {\n id: '4-1',\n message:\n 'It looks like the agent we were looking to transfer you to will not be available. One moment please while I see whether someone else can assist.'\n },\n {\n id: '4-2',\n message:\n \"The agent I was looking to transfer you to isn't available. Would it be possible for us to call you when a specialist is available?\"\n },\n {\n id: '4-3',\n message:\n 'It looks like the agent we were looking to transfer you to will not be available. One moment please while I see whether someone else can assist.'\n }\n];\n\nexport const pagePushList = [\n {\n id: '3245595454',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n avatarInfo: {\n name: 'John Brown'\n },\n message: 'You may also reach us via',\n timeStamp: '1:45 PM',\n pagePushLinks: [\n {\n id: '2499167349',\n href: 'https://collaborate.pega.com/',\n thumbnail:\n 'https://community.pega.com/sites/default/files/styles/480/public/media/images/2020-02/AskExpert.png?itok=ef2MVbOV',\n title: 'Ask the expert'\n }\n ],\n ariaLabel: 'John Brown said You may also reach us via at 1:45 PM with 1 link'\n },\n {\n id: '3245596782',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n avatarInfo: {\n name: 'John Brown'\n },\n message: 'Online Portal',\n timeStamp: '1:45 PM',\n pagePushLinks: [\n {\n id: '2499167349',\n href: 'https://collaborate.pega.com/',\n title: 'Ask the expert'\n }\n ],\n ariaLabel: 'John Brown said Online portal at 1:45 PM with 1 link'\n },\n {\n id: '3245556754',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n avatarInfo: {\n name: 'John Brown'\n },\n message: 'Contact center',\n timeStamp: '1:45 PM',\n pagePushLinks: [\n {\n id: '2499167349',\n href: 'https://collaborate.pega.com/',\n title: 'Ask the expert'\n }\n ],\n ariaLabel: 'John Brown said Contact center at 1:45 PM with 1 link'\n }\n];\n\nexport const contextItems: FieldValueListItemProps[] = [\n {\n id: 'Location',\n name: 'Location',\n value: 'New York, NY',\n variant: 'inline'\n },\n {\n id: 'Initiated from',\n name: 'Initiated from',\n value: 'Uplus.com/Products',\n variant: 'inline'\n },\n {\n id: 'Shopping cart',\n name: 'Shopping cart',\n value: '$155.25',\n variant: 'inline'\n },\n {\n id: 'Items in shopping cart',\n name: 'Items in shopping cart',\n value: 'Product name 01, Product name 02',\n variant: 'inline'\n }\n];\n"]}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/react';
|
|
2
|
-
import {
|
|
2
|
+
import { OmitStrict } from '@pega/cosmos-react-core';
|
|
3
|
+
import { ChatHeaderProps, MessageProps, SystemMessageProps, TranscriptMessageProps, MessageListProps } from '@pega/cosmos-react-social';
|
|
3
4
|
import { TranscriptHeaderProps } from '@pega/cosmos-react-social/lib/components/Chat/TranscriptMessage';
|
|
4
5
|
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
6
|
export default _default;
|
|
6
|
-
|
|
7
|
+
interface ChatHeaderDemoProps extends OmitStrict<ChatHeaderProps, 'actions' | 'sentiment' | 'context'> {
|
|
8
|
+
}
|
|
9
|
+
export declare const ChatHeaderDemo: Story<ChatHeaderDemoProps>;
|
|
7
10
|
export interface MessageListDemoProps {
|
|
8
11
|
onScrollToButtonClick?: MessageListProps['onScrollToButtonClick'];
|
|
9
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chat.stories.d.ts","sourceRoot":"","sources":["../../../src/social/Chat/Chat.stories.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"Chat.stories.d.ts","sourceRoot":"","sources":["../../../src/social/Chat/Chat.stories.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EA8BL,UAAU,EACX,MAAM,yBAAyB,CAAC;AAKjC,OAAO,EAIL,eAAe,EAMf,YAAY,EASZ,kBAAkB,EAElB,sBAAsB,EAEtB,gBAAgB,EACjB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,qBAAqB,EAAE,MAAM,iEAAiE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E,KAAK,CAAC,qBAAqB,CAWzD,CAAC;AAYF,UAAU,iBAAiB;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,iBAAiB,CA0lBjD,CAAC"}
|
|
@@ -1,36 +1,51 @@
|
|
|
1
1
|
import { useState, useRef, useEffect, useCallback, useMemo } from 'react';
|
|
2
2
|
import { action } from '@storybook/addon-actions';
|
|
3
|
-
import { Button, Icon, registerIcon, Text, MenuButton, Flex, Popover, Link, Status, EmojiContext, createUID, useOuterEvent, TextArea, Select, Option, useElement,
|
|
3
|
+
import { Button, Icon, registerIcon, Text, MenuButton, Flex, Popover, Link, Status, EmojiContext, createUID, useOuterEvent, TextArea, Select, Option, useElement, useModalManager, useModalContext, Modal, SummaryItem, useToaster, SearchInput, menuHelpers, VisuallyHiddenText, Menu, useEscape } from '@pega/cosmos-react-core';
|
|
4
4
|
import * as arrowMicroDownIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/arrow-micro-down.icon';
|
|
5
5
|
import * as replyIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/reply.icon';
|
|
6
6
|
import * as replyAllIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/reply-all.icon';
|
|
7
7
|
import * as forwardIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/forward.icon';
|
|
8
8
|
import { Chat, ChatHeader, ChatBody, ChatComposer, ChatTranscript, Message, MessageList, NewMessageSeparatorId, SuggestedReplyPicker, SystemMessage, TranscriptMessage, TypeIndicator } from '@pega/cosmos-react-social';
|
|
9
|
-
import { ChatMockData, phrasesDisplayNames, phrasesMessages, pagePushList } from './Chat.mocks';
|
|
9
|
+
import { ChatMockData, phrasesDisplayNames, phrasesMessages, pagePushList, contextItems as contextItemsMock } from './Chat.mocks';
|
|
10
10
|
registerIcon(forwardIcon, replyIcon, replyAllIcon, arrowMicroDownIcon);
|
|
11
11
|
export default {
|
|
12
12
|
title: 'Social/Chat',
|
|
13
13
|
component: Chat
|
|
14
14
|
};
|
|
15
|
-
export const ChatHeaderDemo = () => {
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
15
|
+
export const ChatHeaderDemo = (args) => {
|
|
16
|
+
const { title, icon, customer, authenticated } = args;
|
|
17
|
+
const [contextItems, setContextItems] = useState([]);
|
|
18
|
+
const [loading, setLoading] = useState(false);
|
|
19
|
+
return (<ChatHeader title={title} icon={icon || 'chat'} actions={[
|
|
20
|
+
{ id: 'action-1', text: 'Transfer' },
|
|
21
|
+
{ id: 'action-2', text: 'End chat' }
|
|
22
|
+
]} sentiment={{
|
|
23
|
+
variant: 'positive',
|
|
24
|
+
'aria-label': 'Sentiment is positive'
|
|
25
|
+
}} customer={customer} authenticated={authenticated} context={{
|
|
26
|
+
items: contextItems,
|
|
27
|
+
onClick: () => {
|
|
28
|
+
setLoading(true);
|
|
29
|
+
setTimeout(() => {
|
|
30
|
+
setContextItems(contextItemsMock);
|
|
31
|
+
setLoading(false);
|
|
32
|
+
}, 1000);
|
|
33
|
+
},
|
|
34
|
+
loading
|
|
32
35
|
}}/>);
|
|
33
36
|
};
|
|
37
|
+
ChatHeaderDemo.args = {
|
|
38
|
+
title: 'Live chat',
|
|
39
|
+
icon: 'chat',
|
|
40
|
+
customer: 'Ginger Ventura',
|
|
41
|
+
authenticated: true
|
|
42
|
+
};
|
|
43
|
+
ChatHeaderDemo.argTypes = {
|
|
44
|
+
title: { control: { type: 'text' } },
|
|
45
|
+
icon: { control: { type: 'text' }, type: { name: 'string', required: false } },
|
|
46
|
+
customer: { control: { type: 'text' } },
|
|
47
|
+
authenticated: { control: { type: 'boolean' }, type: { name: 'string', required: false } }
|
|
48
|
+
};
|
|
34
49
|
export const MessageListDemo = (args) => {
|
|
35
50
|
const messages = ChatMockData.chatMessages;
|
|
36
51
|
const [unReadMessageCount, setUnReadMessagesCount] = useState(1);
|
|
@@ -362,88 +377,7 @@ export const StandardChat = (args) => {
|
|
|
362
377
|
};
|
|
363
378
|
}
|
|
364
379
|
}, [chatMessages, args.simulateConversation]);
|
|
365
|
-
const [
|
|
366
|
-
const [popoverRef, setPopoverRef] = useElement();
|
|
367
|
-
const [buttonRef, setButtonRef] = useElement();
|
|
368
|
-
const additionalInfo = {
|
|
369
|
-
title: 'Additional info',
|
|
370
|
-
options: {
|
|
371
|
-
LiveChat: [
|
|
372
|
-
{
|
|
373
|
-
id: '1',
|
|
374
|
-
name: 'Session status',
|
|
375
|
-
value: <Status variant='urgent'>UNAUTHENTICATED</Status>
|
|
376
|
-
},
|
|
377
|
-
{
|
|
378
|
-
id: '2',
|
|
379
|
-
name: 'Profile name',
|
|
380
|
-
value: 'Sara Davis'
|
|
381
|
-
}
|
|
382
|
-
],
|
|
383
|
-
Twitter: [
|
|
384
|
-
{
|
|
385
|
-
id: '1',
|
|
386
|
-
name: 'Session status',
|
|
387
|
-
value: <Status variant='urgent'>UNAUTHENTICATED</Status>
|
|
388
|
-
},
|
|
389
|
-
{
|
|
390
|
-
id: '2',
|
|
391
|
-
name: 'Twitter handle',
|
|
392
|
-
value: '@Connor'
|
|
393
|
-
},
|
|
394
|
-
{
|
|
395
|
-
id: '3',
|
|
396
|
-
name: 'Followers',
|
|
397
|
-
value: '13,556'
|
|
398
|
-
}
|
|
399
|
-
],
|
|
400
|
-
Facebook: [
|
|
401
|
-
{
|
|
402
|
-
id: '1',
|
|
403
|
-
name: 'Session status',
|
|
404
|
-
value: <Status variant='urgent'>UNAUTHENTICATED</Status>
|
|
405
|
-
},
|
|
406
|
-
{
|
|
407
|
-
id: '2',
|
|
408
|
-
name: 'Profile name',
|
|
409
|
-
value: 'Sara Davis'
|
|
410
|
-
}
|
|
411
|
-
]
|
|
412
|
-
}
|
|
413
|
-
};
|
|
414
|
-
useOuterEvent('mousedown', [popoverRef, buttonRef], () => {
|
|
415
|
-
if (openPopover)
|
|
416
|
-
setOpenPopover(false);
|
|
417
|
-
});
|
|
418
|
-
const header = (<ChatHeader title={Channels.options[args.selectedChannel || 'LiveChat'].title} icon={Channels.options[args.selectedChannel || 'LiveChat'].icon} aria-label='Chat header' sentiment={{
|
|
419
|
-
variant: 'positive',
|
|
420
|
-
'aria-label': 'Sentiment is positive'
|
|
421
|
-
}} actions={<div>
|
|
422
|
-
<Button variant='simple' onClick={() => setShowTranscripts(!showTranscripts)} aria-label='Show transcripts'>
|
|
423
|
-
<Flex container={{
|
|
424
|
-
gap: 1,
|
|
425
|
-
alignItems: 'center'
|
|
426
|
-
}}>
|
|
427
|
-
<Icon name='chats'/>
|
|
428
|
-
<Text>Transcripts</Text>
|
|
429
|
-
</Flex>
|
|
430
|
-
</Button>
|
|
431
|
-
<Button variant='simple' icon aria-label='chat info' ref={setButtonRef} onClick={() => setOpenPopover(current => !current)}>
|
|
432
|
-
<Icon name='information'/>
|
|
433
|
-
</Button>
|
|
434
|
-
<Popover show={openPopover} target={buttonRef} ref={setPopoverRef} arrow placement='bottom-end'>
|
|
435
|
-
<Flex container={{ direction: 'column', gap: 1, pad: 2 }}>
|
|
436
|
-
<Text variant='h4'>{additionalInfo.title}</Text>
|
|
437
|
-
<FieldValueList variant='inline' fields={additionalInfo.options[args.selectedChannel || 'LiveChat']}/>
|
|
438
|
-
</Flex>
|
|
439
|
-
</Popover>
|
|
440
|
-
<MenuButton text='More actions' icon='more' iconOnly variant='simple' portal menu={{
|
|
441
|
-
items: [
|
|
442
|
-
{ primary: 'Transfer', id: 'transcript', onClick: action('Clicked Transfer') },
|
|
443
|
-
{ primary: 'End chat', id: 'endChat', onClick: action('Clicked End chat') }
|
|
444
|
-
]
|
|
445
|
-
}}/>
|
|
446
|
-
</div>}/>);
|
|
380
|
+
const header = (<ChatHeaderDemo title={Channels.options[args.selectedChannel || 'LiveChat'].title} icon={Channels.options[args.selectedChannel || 'LiveChat'].icon} customer='Ginger Ventura' authenticated/>);
|
|
447
381
|
const [showEarlierTranscripts, setShowEarlierTranscripts] = useState(false);
|
|
448
382
|
const transcriptsContainerRef = useRef(null);
|
|
449
383
|
useOuterEvent('mousedown', [transcriptsContainerRef], () => {
|