@pega/cosmos-react-demos 3.0.0-dev.22.0 → 3.0.0-dev.23.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. package/jsx/build/AppHeader/AppHeader.stories.jsx +1 -1
  2. package/jsx/build/AppHeader/AppHeader.stories.jsx.map +1 -1
  3. package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -1
  4. package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx +2 -1
  5. package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx.map +1 -1
  6. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts.map +1 -1
  7. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js +91 -0
  8. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js.map +1 -1
  9. package/jsx/core/AppShell/AppShell.stories.d.ts +1 -0
  10. package/jsx/core/AppShell/AppShell.stories.d.ts.map +1 -1
  11. package/jsx/core/AppShell/AppShell.stories.jsx +1 -1
  12. package/jsx/core/AppShell/AppShell.stories.jsx.map +1 -1
  13. package/jsx/core/Banner/Banner.stories.d.ts +0 -1
  14. package/jsx/core/Banner/Banner.stories.d.ts.map +1 -1
  15. package/jsx/core/Banner/Banner.stories.jsx +0 -8
  16. package/jsx/core/Banner/Banner.stories.jsx.map +1 -1
  17. package/jsx/core/CreditCard/CreditCard.stories.jsx +1 -1
  18. package/jsx/core/CreditCard/CreditCard.stories.jsx.map +1 -1
  19. package/jsx/core/Currency/Currency.stories.d.ts +5 -3
  20. package/jsx/core/Currency/Currency.stories.d.ts.map +1 -1
  21. package/jsx/core/Currency/Currency.stories.jsx +2 -2
  22. package/jsx/core/Currency/Currency.stories.jsx.map +1 -1
  23. package/jsx/core/DateTime/DateTime.stories.d.ts.map +1 -1
  24. package/jsx/core/DateTime/DateTime.stories.jsx +3 -0
  25. package/jsx/core/DateTime/DateTime.stories.jsx.map +1 -1
  26. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  27. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx +4 -0
  28. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx.map +1 -1
  29. package/jsx/core/FieldValueList/FieldValueList.stories.jsx +1 -1
  30. package/jsx/core/FieldValueList/FieldValueList.stories.jsx.map +1 -1
  31. package/jsx/core/FieldValueList/FieldValueList.styles.d.ts +2 -0
  32. package/jsx/core/FieldValueList/FieldValueList.styles.d.ts.map +1 -0
  33. package/{lib/core/FieldValueList/FieldValueList.mocks.js → jsx/core/FieldValueList/FieldValueList.styles.js} +2 -3
  34. package/jsx/core/FieldValueList/FieldValueList.styles.js.map +1 -0
  35. package/jsx/core/Number/Number.stories.d.ts +1 -1
  36. package/jsx/core/Number/Number.stories.d.ts.map +1 -1
  37. package/jsx/core/Number/Number.stories.jsx +4 -4
  38. package/jsx/core/Number/Number.stories.jsx.map +1 -1
  39. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
  40. package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx +12 -1
  41. package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx.map +1 -1
  42. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx +2 -2
  43. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +1 -1
  44. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts +1 -0
  45. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
  46. package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx +6 -6
  47. package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx.map +1 -1
  48. package/jsx/social/Email/Email.stories.d.ts.map +1 -1
  49. package/jsx/social/Email/Email.stories.jsx +19 -0
  50. package/jsx/social/Email/Email.stories.jsx.map +1 -1
  51. package/jsx/social/Feed/Feed.stories.d.ts.map +1 -1
  52. package/jsx/social/Feed/Feed.stories.jsx +6 -2
  53. package/jsx/social/Feed/Feed.stories.jsx.map +1 -1
  54. package/jsx/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
  55. package/jsx/social/Feed/FeedNewPost.stories.jsx +1 -1
  56. package/jsx/social/Feed/FeedNewPost.stories.jsx.map +1 -1
  57. package/jsx/social/Feed/FeedPost.stories.d.ts.map +1 -1
  58. package/jsx/social/Feed/FeedPost.stories.jsx +2 -2
  59. package/jsx/social/Feed/FeedPost.stories.jsx.map +1 -1
  60. package/jsx/social/Feed/FeedReply.stories.d.ts.map +1 -1
  61. package/jsx/social/Feed/FeedReply.stories.jsx +1 -1
  62. package/jsx/social/Feed/FeedReply.stories.jsx.map +1 -1
  63. package/jsx/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
  64. package/jsx/social/Feed/FeedReplyInput.stories.jsx +1 -1
  65. package/jsx/social/Feed/FeedReplyInput.stories.jsx.map +1 -1
  66. package/jsx/work/CaseView/CaseView.mocks.d.ts +74 -2
  67. package/jsx/work/CaseView/CaseView.mocks.d.ts.map +1 -1
  68. package/jsx/work/CaseView/CaseView.mocks.jsx +198 -9
  69. package/jsx/work/CaseView/CaseView.mocks.jsx.map +1 -1
  70. package/jsx/work/CaseView/CaseView.stories.d.ts +3 -22
  71. package/jsx/work/CaseView/CaseView.stories.d.ts.map +1 -1
  72. package/jsx/work/CaseView/CaseView.stories.jsx +49 -238
  73. package/jsx/work/CaseView/CaseView.stories.jsx.map +1 -1
  74. package/jsx/wss/AppShell/AppShell.mocks.d.ts +11 -0
  75. package/jsx/wss/AppShell/AppShell.mocks.d.ts.map +1 -1
  76. package/jsx/wss/AppShell/AppShell.mocks.jsx +11 -0
  77. package/jsx/wss/AppShell/AppShell.mocks.jsx.map +1 -1
  78. package/jsx/wss/AppShell/AppShell.stories.d.ts +11 -9
  79. package/jsx/wss/AppShell/AppShell.stories.d.ts.map +1 -1
  80. package/jsx/wss/AppShell/AppShell.stories.jsx +11 -19
  81. package/jsx/wss/AppShell/AppShell.stories.jsx.map +1 -1
  82. package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts +15 -0
  83. package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts.map +1 -0
  84. package/jsx/wss/PageTemplates/PageTemplates.stories.jsx +48 -0
  85. package/jsx/wss/PageTemplates/PageTemplates.stories.jsx.map +1 -0
  86. package/lib/build/AppHeader/AppHeader.stories.js +1 -1
  87. package/lib/build/AppHeader/AppHeader.stories.js.map +1 -1
  88. package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -1
  89. package/lib/build/ObjectSelect/ObjectSelect.mocks.js +2 -1
  90. package/lib/build/ObjectSelect/ObjectSelect.mocks.js.map +1 -1
  91. package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts.map +1 -1
  92. package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.js +91 -0
  93. package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.js.map +1 -1
  94. package/lib/core/AppShell/AppShell.stories.d.ts +1 -0
  95. package/lib/core/AppShell/AppShell.stories.d.ts.map +1 -1
  96. package/lib/core/AppShell/AppShell.stories.js +1 -1
  97. package/lib/core/AppShell/AppShell.stories.js.map +1 -1
  98. package/lib/core/Banner/Banner.stories.d.ts +0 -1
  99. package/lib/core/Banner/Banner.stories.d.ts.map +1 -1
  100. package/lib/core/Banner/Banner.stories.js +0 -11
  101. package/lib/core/Banner/Banner.stories.js.map +1 -1
  102. package/lib/core/CreditCard/CreditCard.stories.js +1 -1
  103. package/lib/core/CreditCard/CreditCard.stories.js.map +1 -1
  104. package/lib/core/Currency/Currency.stories.d.ts +5 -3
  105. package/lib/core/Currency/Currency.stories.d.ts.map +1 -1
  106. package/lib/core/Currency/Currency.stories.js +2 -2
  107. package/lib/core/Currency/Currency.stories.js.map +1 -1
  108. package/lib/core/DateTime/DateTime.stories.d.ts.map +1 -1
  109. package/lib/core/DateTime/DateTime.stories.js +3 -0
  110. package/lib/core/DateTime/DateTime.stories.js.map +1 -1
  111. package/lib/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  112. package/lib/core/FieldGroup/FieldGroupList.stories.js +4 -0
  113. package/lib/core/FieldGroup/FieldGroupList.stories.js.map +1 -1
  114. package/lib/core/FieldValueList/FieldValueList.stories.js +1 -1
  115. package/lib/core/FieldValueList/FieldValueList.stories.js.map +1 -1
  116. package/lib/core/FieldValueList/FieldValueList.styles.d.ts +2 -0
  117. package/lib/core/FieldValueList/FieldValueList.styles.d.ts.map +1 -0
  118. package/{jsx/core/FieldValueList/FieldValueList.mocks.js → lib/core/FieldValueList/FieldValueList.styles.js} +2 -3
  119. package/lib/core/FieldValueList/FieldValueList.styles.js.map +1 -0
  120. package/lib/core/Number/Number.stories.d.ts +1 -1
  121. package/lib/core/Number/Number.stories.d.ts.map +1 -1
  122. package/lib/core/Number/Number.stories.js +4 -4
  123. package/lib/core/Number/Number.stories.js.map +1 -1
  124. package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
  125. package/lib/cs/CallControlPanel/CallControlPanel.stories.js +12 -1
  126. package/lib/cs/CallControlPanel/CallControlPanel.stories.js.map +1 -1
  127. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js +2 -2
  128. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js.map +1 -1
  129. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts +1 -0
  130. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
  131. package/lib/cs/InteractionNotification/InteractionNotification.stories.js +24 -22
  132. package/lib/cs/InteractionNotification/InteractionNotification.stories.js.map +1 -1
  133. package/lib/social/Email/Email.stories.d.ts.map +1 -1
  134. package/lib/social/Email/Email.stories.js +19 -0
  135. package/lib/social/Email/Email.stories.js.map +1 -1
  136. package/lib/social/Feed/Feed.stories.d.ts.map +1 -1
  137. package/lib/social/Feed/Feed.stories.js +6 -2
  138. package/lib/social/Feed/Feed.stories.js.map +1 -1
  139. package/lib/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
  140. package/lib/social/Feed/FeedNewPost.stories.js +1 -1
  141. package/lib/social/Feed/FeedNewPost.stories.js.map +1 -1
  142. package/lib/social/Feed/FeedPost.stories.d.ts.map +1 -1
  143. package/lib/social/Feed/FeedPost.stories.js +2 -2
  144. package/lib/social/Feed/FeedPost.stories.js.map +1 -1
  145. package/lib/social/Feed/FeedReply.stories.d.ts.map +1 -1
  146. package/lib/social/Feed/FeedReply.stories.js +1 -1
  147. package/lib/social/Feed/FeedReply.stories.js.map +1 -1
  148. package/lib/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
  149. package/lib/social/Feed/FeedReplyInput.stories.js +1 -1
  150. package/lib/social/Feed/FeedReplyInput.stories.js.map +1 -1
  151. package/lib/work/CaseView/CaseView.mocks.d.ts +74 -2
  152. package/lib/work/CaseView/CaseView.mocks.d.ts.map +1 -1
  153. package/lib/work/CaseView/CaseView.mocks.js +188 -9
  154. package/lib/work/CaseView/CaseView.mocks.js.map +1 -1
  155. package/lib/work/CaseView/CaseView.stories.d.ts +3 -22
  156. package/lib/work/CaseView/CaseView.stories.d.ts.map +1 -1
  157. package/lib/work/CaseView/CaseView.stories.js +44 -248
  158. package/lib/work/CaseView/CaseView.stories.js.map +1 -1
  159. package/lib/wss/AppShell/AppShell.mocks.d.ts +11 -0
  160. package/lib/wss/AppShell/AppShell.mocks.d.ts.map +1 -1
  161. package/lib/wss/AppShell/AppShell.mocks.js +11 -0
  162. package/lib/wss/AppShell/AppShell.mocks.js.map +1 -1
  163. package/lib/wss/AppShell/AppShell.stories.d.ts +11 -9
  164. package/lib/wss/AppShell/AppShell.stories.d.ts.map +1 -1
  165. package/lib/wss/AppShell/AppShell.stories.js +12 -19
  166. package/lib/wss/AppShell/AppShell.stories.js.map +1 -1
  167. package/lib/wss/PageTemplates/PageTemplates.stories.d.ts +15 -0
  168. package/lib/wss/PageTemplates/PageTemplates.stories.d.ts.map +1 -0
  169. package/lib/wss/PageTemplates/PageTemplates.stories.js +41 -0
  170. package/lib/wss/PageTemplates/PageTemplates.stories.js.map +1 -0
  171. package/package.json +10 -11
  172. package/jsx/core/FieldValueList/FieldValueList.mocks.d.ts +0 -3
  173. package/jsx/core/FieldValueList/FieldValueList.mocks.d.ts.map +0 -1
  174. package/jsx/core/FieldValueList/FieldValueList.mocks.js.map +0 -1
  175. package/jsx/cs/CSCaseView/CSAppShell.mocks.d.ts +0 -73
  176. package/jsx/cs/CSCaseView/CSAppShell.mocks.d.ts.map +0 -1
  177. package/jsx/cs/CSCaseView/CSAppShell.mocks.jsx +0 -299
  178. package/jsx/cs/CSCaseView/CSAppShell.mocks.jsx.map +0 -1
  179. package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts +0 -13
  180. package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts.map +0 -1
  181. package/jsx/cs/CSCaseView/CSAppShell.stories.jsx +0 -228
  182. package/jsx/cs/CSCaseView/CSAppShell.stories.jsx.map +0 -1
  183. package/lib/core/FieldValueList/FieldValueList.mocks.d.ts +0 -3
  184. package/lib/core/FieldValueList/FieldValueList.mocks.d.ts.map +0 -1
  185. package/lib/core/FieldValueList/FieldValueList.mocks.js.map +0 -1
  186. package/lib/cs/CSCaseView/CSAppShell.mocks.d.ts +0 -73
  187. package/lib/cs/CSCaseView/CSAppShell.mocks.d.ts.map +0 -1
  188. package/lib/cs/CSCaseView/CSAppShell.mocks.js +0 -280
  189. package/lib/cs/CSCaseView/CSAppShell.mocks.js.map +0 -1
  190. package/lib/cs/CSCaseView/CSAppShell.stories.d.ts +0 -13
  191. package/lib/cs/CSCaseView/CSAppShell.stories.d.ts.map +0 -1
  192. package/lib/cs/CSCaseView/CSAppShell.stories.js +0 -210
  193. package/lib/cs/CSCaseView/CSAppShell.stories.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"AppShell.stories.js","sourceRoot":"","sources":["../../../src/wss/AppShell/AppShell.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ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NotificationItem } from '@pega/cosmos-react-wss';\n\nimport { DefaultMainContent, notificationItems } from './AppShell.mocks';\n\nexport default {\n title: 'Web Self Service/AppShell',\n component: AppShell,\n parameters: {\n layout: 'fullscreen'\n }\n} as Meta;\n\ninterface AppShellDemoProps {\n appName: AppShellProps['appInfo']['appName'];\n imageSrc: AppShellProps['appInfo']['imageSrc'];\n numberOfNavLinks: number;\n navAlignment: AppShellProps['navAlignment'];\n navPosition: AppShellProps['navPosition'];\n operatorName: AppShellProps['operator']['avatar']['name'];\n operatorTitle: AppShellProps['operator']['title'];\n notificationsEmpty: boolean;\n notificationsLoading: boolean;\n}\n\nexport const AppShellDemo: Story<AppShellDemoProps> = (args: AppShellDemoProps) => {\n const [mainContent, setMainContent] = useState('Home');\n const [notifications, setNotifications] = useState<NotificationItem[]>(notificationItems);\n const [numNewNotifications, setNumNewNotifications] = useState(\n notifications.filter(x => x.unread).length\n );\n\n const handleNotificationClick = (passedId: string) => {\n setNotifications(cur =>\n cur.map(({ id, unread, ...item }) => ({\n id,\n unread: passedId === id ? false : unread,\n ...item\n }))\n );\n };\n\n return (\n <AppShell\n main={<DefaultMainContent content={mainContent} />}\n appInfo={{\n appName: args.appName,\n imageSrc: args.imageSrc,\n onClick: () => setMainContent('Home')\n }}\n navLinks={Array.from({ length: args.numberOfNavLinks }).map((_, index) => {\n const navName = `Navigation ${index + 1}`;\n\n return {\n id: `nav-${index + 1}`,\n text: navName,\n href: '#',\n onClick: () => setMainContent(navName),\n current: navName === mainContent\n };\n })}\n operator={{\n avatar: { name: args.operatorName },\n title: args.operatorTitle,\n actions: [\n { id: 'profile', primary: 'My profile', href: '#' },\n { id: 'settings', primary: 'Settings', href: '#' },\n { id: 'logOut', primary: 'Log out', href: '#' }\n ]\n }}\n notifications={{\n title: 'Notifications',\n count: numNewNotifications,\n items: args.notificationsEmpty ? [] : notifications,\n onItemClick: handleNotificationClick,\n loading: args.notificationsLoading,\n onNotificationsOpen: () => {\n setNumNewNotifications(0);\n }\n }}\n navAlignment={args.navAlignment}\n navPosition={args.navPosition}\n />\n );\n};\n\nAppShellDemo.args = {\n appName: 'Service Desk',\n imageSrc: 'https://www.pega.com/themes/custom/pegawww_theme/images/pega-logo.svg',\n numberOfNavLinks: 3,\n navAlignment: 'end',\n navPosition: 'inline',\n operatorName: 'Cindy Turner',\n operatorTitle: 'Account',\n notificationsEmpty: false,\n notificationsLoading: false\n};\n\nAppShellDemo.argTypes = {\n imageSrc: { control: { type: 'text' } },\n appName: { control: { type: 'text' } },\n numberOfNavLinks: { control: { type: 'number' } },\n navAlignment: { options: ['start', 'center', 'end'], control: { type: 'select' } },\n navPosition: { options: ['inline', 'below'], control: { type: 'select' } },\n operatorName: { control: { type: 'text' } },\n operatorTitle: { control: { type: 'text' } },\n notificationsEmpty: { control: { type: 'boolean' } },\n notificationsLoading: { control: { type: 'boolean' } }\n};\n"]}
1
+ {"version":3,"file":"AppShell.stories.js","sourceRoot":"","sources":["../../../src/wss/AppShell/AppShell.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAE,QAAQ,EAAmC,MAAM,wBAAwB,CAAC;AAEnF,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE9F,eAAe;IACb,KAAK,EAAE,2BAA2B;IAClC,SAAS,EAAE,QAAQ;IACnB,UAAU,EAAE;QACV,MAAM,EAAE,YAAY;KACrB;CACM,CAAC;AAeV,MAAM,CAAC,MAAM,YAAY,GAA6B,CAAC,IAAuB,EAAE,EAAE;IAChF,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC;IACvD,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAAqB,iBAAiB,CAAC,CAAC;IAC1F,MAAM,CAAC,mBAAmB,EAAE,sBAAsB,CAAC,GAAG,QAAQ,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,EAAE,EAAE;IACjD,YAAY,EAAE,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IAClF,WAAW,EAAE,EAAE,OAAO,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IAC1E,YAAY,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IAC3C,aAAa,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IAC5C,kBAAkB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACpD,oBAAoB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;CACvD,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { ReactNode, useState } from 'react';\n\nimport { AppShell, AppShellProps, NotificationItem } from '@pega/cosmos-react-wss';\n\nimport { DefaultMainContent, notificationItems, defaultAppDemoProps } from './AppShell.mocks';\n\nexport default {\n title: 'Web Self Service/AppShell',\n component: AppShell,\n parameters: {\n layout: 'fullscreen'\n }\n} as Meta;\n\ninterface AppShellDemoProps {\n appName?: AppShellProps['appInfo']['appName'];\n imageSrc?: AppShellProps['appInfo']['imageSrc'];\n numberOfNavLinks?: number;\n navAlignment?: AppShellProps['navAlignment'];\n navPosition?: AppShellProps['navPosition'];\n operatorName?: AppShellProps['operator']['avatar']['name'];\n operatorTitle?: AppShellProps['operator']['title'];\n notificationsEmpty?: boolean;\n notificationsLoading?: boolean;\n mainContent?: ReactNode;\n}\n\nexport const AppShellDemo: Story<AppShellDemoProps> = (args: AppShellDemoProps) => {\n const [mainContent, setMainContent] = useState('Home');\n const [notifications, setNotifications] = useState<NotificationItem[]>(notificationItems);\n const [numNewNotifications, setNumNewNotifications] = useState(\n notifications.filter(x => x.unread).length\n );\n\n const handleNotificationClick = (passedId: string) => {\n setNotifications(cur =>\n cur.map(({ id, unread, ...item }) => ({\n id,\n unread: passedId === id ? false : unread,\n ...item\n }))\n );\n };\n\n return (\n <AppShell\n main={args.mainContent ?? <DefaultMainContent content={mainContent} />}\n appInfo={{\n appName: args.appName ?? defaultAppDemoProps.appName,\n imageSrc: args.imageSrc ?? defaultAppDemoProps.imageSrc,\n onClick: () => setMainContent('Home')\n }}\n navLinks={Array.from({\n length: args.numberOfNavLinks ?? defaultAppDemoProps.numberOfNavLinks\n }).map((_, index) => {\n const navName = `Navigation ${index + 1}`;\n\n return {\n id: `nav-${index + 1}`,\n text: navName,\n href: '#',\n onClick: () => setMainContent(navName),\n current: navName === mainContent\n };\n })}\n operator={{\n avatar: { name: args.operatorName ?? defaultAppDemoProps.operatorName },\n title: args.operatorTitle ?? defaultAppDemoProps.operatorTitle,\n actions: [\n { id: 'profile', primary: 'My profile', href: '#' },\n { id: 'settings', primary: 'Settings', href: '#' },\n { id: 'logOut', primary: 'Log out', href: '#' }\n ]\n }}\n notifications={{\n title: 'Notifications',\n count: numNewNotifications,\n items: args.notificationsEmpty ? [] : notifications,\n onItemClick: handleNotificationClick,\n loading: args.notificationsLoading ?? defaultAppDemoProps.notificationsLoading,\n onNotificationsOpen: () => {\n setNumNewNotifications(0);\n }\n }}\n navAlignment={args.navAlignment}\n navPosition={args.navPosition}\n />\n );\n};\n\nAppShellDemo.args = defaultAppDemoProps;\n\n// eslint-disable-next-line demo-patterns/args-match-types\nAppShellDemo.argTypes = {\n imageSrc: { control: { type: 'text' } },\n appName: { control: { type: 'text' } },\n numberOfNavLinks: { control: { type: 'number' } },\n navAlignment: { options: ['start', 'center', 'end'], control: { type: 'select' } },\n navPosition: { options: ['inline', 'below'], control: { type: 'select' } },\n operatorName: { control: { type: 'text' } },\n operatorTitle: { control: { type: 'text' } },\n notificationsEmpty: { control: { type: 'boolean' } },\n notificationsLoading: { control: { type: 'boolean' } }\n};\n"]}
@@ -0,0 +1,15 @@
1
+ import { Meta, Story } from '@storybook/react';
2
+ declare const _default: Meta<import("@storybook/react").Args>;
3
+ export default _default;
4
+ interface BannerPageStoryProps {
5
+ title: string;
6
+ message: string;
7
+ bannerVariant: 'light' | 'dark';
8
+ backgroundColor?: string;
9
+ backgroundImage?: string;
10
+ tintImage?: boolean;
11
+ oneColumn?: boolean;
12
+ variant?: 'two-column' | 'narrow-wide' | 'wide-narrow';
13
+ }
14
+ export declare const BannerPageDemo: Story<BannerPageStoryProps>;
15
+ //# sourceMappingURL=PageTemplates.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PageTemplates.stories.d.ts","sourceRoot":"","sources":["../../../src/wss/PageTemplates/PageTemplates.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;;AAO/C,wBAKU;AAEV,UAAU,oBAAoB;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,OAAO,GAAG,MAAM,CAAC;IAChC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,YAAY,GAAG,aAAa,GAAG,aAAa,CAAC;CACxD;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,oBAAoB,CAkCtD,CAAC"}
@@ -0,0 +1,41 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { BannerPage } from '@pega/cosmos-react-wss';
3
+ import { Text } from '@pega/cosmos-react-core';
4
+ import { AppShellDemo } from '../AppShell/AppShell.stories';
5
+ export default {
6
+ title: 'Web Self Service/Page Templates',
7
+ parameters: {
8
+ layout: 'fullscreen'
9
+ }
10
+ };
11
+ export const BannerPageDemo = (args) => {
12
+ return (_jsx(AppShellDemo, { mainContent: _jsx(BannerPage, { variant: args.variant ? args.variant : undefined, a: _jsx("div", { children: _jsx(Text, { variant: 'h2', as: 'h2', children: "Section A" }) }), b: !args.oneColumn ? (_jsx("div", { children: _jsx(Text, { variant: 'h2', as: 'h2', children: "Section B" }) })) : undefined, banner: {
13
+ variant: args.bannerVariant,
14
+ backgroundColor: args.backgroundColor,
15
+ title: args.title,
16
+ message: args.message,
17
+ backgroundImage: args.backgroundImage,
18
+ tintImage: args.tintImage
19
+ } }) }));
20
+ };
21
+ BannerPageDemo.args = {
22
+ title: 'Banner page demo',
23
+ message: 'Welcome to the banner page demo, nice to see you. Did you get your haircut?',
24
+ bannerVariant: 'light',
25
+ backgroundColor: '#3eb489',
26
+ backgroundImage: 'https://hips.hearstapps.com/hmg-prod.s3.amazonaws.com/images/moraine-lake-and-the-valley-of-the-ten-peaks-in-the-royalty-free-image-1571062944.jpg',
27
+ tintImage: true,
28
+ oneColumn: false,
29
+ variant: undefined
30
+ };
31
+ BannerPageDemo.argTypes = {
32
+ title: { control: { type: 'text' } },
33
+ message: { control: { type: 'text' } },
34
+ bannerVariant: { options: ['light', 'dark'], control: { type: 'select' } },
35
+ backgroundColor: { control: { type: 'color' } },
36
+ backgroundImage: { control: { type: 'text' } },
37
+ tintImage: { control: { type: 'boolean', defaultValue: true } },
38
+ oneColumn: { control: { type: 'boolean', defaultValue: false } },
39
+ variant: { options: ['two-column', 'narrow-wide', 'wide-narrow'], control: { type: 'select' } }
40
+ };
41
+ //# sourceMappingURL=PageTemplates.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PageTemplates.stories.js","sourceRoot":"","sources":["../../../src/wss/PageTemplates/PageTemplates.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAE/C,OAAO,EAAE,YAAY,EAA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EAAE;IACpC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACtC,aAAa,EAAE,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IAC1E,eAAe,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IAC/C,eAAe,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IAC9C,SAAS,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE,IAAI,EAAE,EAAE;IAC/D,SAAS,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,EAAE;IAChE,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,YAAY,EAAE,aAAa,EAAE,aAAa,CAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;CAChG,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\n\nimport { BannerPage } from '@pega/cosmos-react-wss';\nimport { Text } from '@pega/cosmos-react-core';\n\nimport { AppShellDemo } from '../AppShell/AppShell.stories';\n\nexport default {\n title: 'Web Self Service/Page Templates',\n parameters: {\n layout: 'fullscreen'\n }\n} as Meta;\n\ninterface BannerPageStoryProps {\n title: string;\n message: string;\n bannerVariant: 'light' | 'dark';\n backgroundColor?: string;\n backgroundImage?: string;\n tintImage?: boolean;\n oneColumn?: boolean;\n variant?: 'two-column' | 'narrow-wide' | 'wide-narrow';\n}\n\nexport const BannerPageDemo: Story<BannerPageStoryProps> = (args: BannerPageStoryProps) => {\n return (\n <AppShellDemo\n mainContent={\n <BannerPage\n variant={args.variant ? args.variant : undefined}\n a={\n <div>\n <Text variant='h2' as='h2'>\n Section A\n </Text>\n </div>\n }\n b={\n !args.oneColumn ? (\n <div>\n <Text variant='h2' as='h2'>\n Section B\n </Text>\n </div>\n ) : undefined\n }\n banner={{\n variant: args.bannerVariant,\n backgroundColor: args.backgroundColor,\n title: args.title,\n message: args.message,\n backgroundImage: args.backgroundImage,\n tintImage: args.tintImage\n }}\n />\n }\n />\n );\n};\n\nBannerPageDemo.args = {\n title: 'Banner page demo',\n message: 'Welcome to the banner page demo, nice to see you. Did you get your haircut?',\n bannerVariant: 'light',\n backgroundColor: '#3eb489',\n backgroundImage:\n 'https://hips.hearstapps.com/hmg-prod.s3.amazonaws.com/images/moraine-lake-and-the-valley-of-the-ten-peaks-in-the-royalty-free-image-1571062944.jpg',\n tintImage: true,\n oneColumn: false,\n variant: undefined\n};\n\nBannerPageDemo.argTypes = {\n title: { control: { type: 'text' } },\n message: { control: { type: 'text' } },\n bannerVariant: { options: ['light', 'dark'], control: { type: 'select' } },\n backgroundColor: { control: { type: 'color' } },\n backgroundImage: { control: { type: 'text' } },\n tintImage: { control: { type: 'boolean', defaultValue: true } },\n oneColumn: { control: { type: 'boolean', defaultValue: false } },\n variant: { options: ['two-column', 'narrow-wide', 'wide-narrow'], control: { type: 'select' } }\n};\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/cosmos-react-demos",
3
- "version": "3.0.0-dev.22.0",
3
+ "version": "3.0.0-dev.23.2",
4
4
  "author": "Pegasystems",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {
@@ -20,25 +20,24 @@
20
20
  "build": "tsc -b"
21
21
  },
22
22
  "dependencies": {
23
- "@pega/cosmos-react-build": "3.0.0-dev.22.0",
24
- "@pega/cosmos-react-condition-builder": "3.0.0-dev.22.0",
25
- "@pega/cosmos-react-core": "3.0.0-dev.22.0",
26
- "@pega/cosmos-react-cs": "3.0.0-dev.22.0",
27
- "@pega/cosmos-react-dnd": "3.0.0-dev.22.0",
28
- "@pega/cosmos-react-rte": "3.0.0-dev.22.0",
29
- "@pega/cosmos-react-social": "3.0.0-dev.22.0",
30
- "@pega/cosmos-react-work": "3.0.0-dev.22.0",
23
+ "@pega/cosmos-react-build": "3.0.0-dev.23.2",
24
+ "@pega/cosmos-react-condition-builder": "3.0.0-dev.23.2",
25
+ "@pega/cosmos-react-core": "3.0.0-dev.23.2",
26
+ "@pega/cosmos-react-cs": "3.0.0-dev.23.2",
27
+ "@pega/cosmos-react-dnd": "3.0.0-dev.23.2",
28
+ "@pega/cosmos-react-rte": "3.0.0-dev.23.2",
29
+ "@pega/cosmos-react-social": "3.0.0-dev.23.2",
30
+ "@pega/cosmos-react-work": "3.0.0-dev.23.2",
31
31
  "@types/emoji-mart": "^3.0.4",
32
32
  "@types/react": "^16.14.24 || ^17.0.38",
33
33
  "@types/react-dom": "^16.9.14 || ^17.0.11",
34
34
  "@types/styled-components": "^5.1.7",
35
- "@types/tinymce": "^4.6.4",
36
35
  "emoji-mart": "^3.0.1",
37
36
  "polished": "^4.1.0",
38
37
  "react": "^16.14.0 || ^17.0.0",
39
38
  "react-dom": "^16.14.0 || ^17.0.0",
40
39
  "styled-components": "^5.2.0",
41
- "tinymce": "^5.10.2"
40
+ "tinymce": "^6.0.3"
42
41
  },
43
42
  "devDependencies": {
44
43
  "@storybook/addon-a11y": "^6.4.19",
@@ -1,3 +0,0 @@
1
- declare const StyledDemoContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
- export default StyledDemoContainer;
3
- //# sourceMappingURL=FieldValueList.mocks.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FieldValueList.mocks.d.ts","sourceRoot":"","sources":["../../../src/core/FieldValueList/FieldValueList.mocks.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,mBAAmB,yGAUvB,CAAC;AAEH,eAAe,mBAAmB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"FieldValueList.mocks.js","sourceRoot":"","sources":["../../../src/core/FieldValueList/FieldValueList.mocks.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,mBAAmB,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IACnD,MAAM,EACJ,IAAI,EAAE,EACJ,eAAe,EAAE,EAAE,EAAE,EAAE,EACxB,EACF,GAAG,KAAK,CAAC;IAEV,OAAO,GAAG,CAAA;iBACK,EAAE;GAChB,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,mBAAmB,CAAC","sourcesContent":["import styled, { css } from 'styled-components';\n\nconst StyledDemoContainer = styled.div(({ theme }) => {\n const {\n base: {\n 'content-width': { md }\n }\n } = theme;\n\n return css`\n max-width: ${md};\n `;\n});\n\nexport default StyledDemoContainer;\n"]}
@@ -1,73 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- export declare type LoginError = string;
3
- export interface LoginFormProps {
4
- ctiLinkOptions: {
5
- [key: string]: string;
6
- };
7
- onLogin: (ctiLinkId: keyof LoginFormProps['ctiLinkOptions'], agentId: string, password: string) => Promise<LoginError | undefined>;
8
- onCancel: () => void;
9
- }
10
- export declare const CallLoginForm: FunctionComponent<LoginFormProps>;
11
- export declare const CTIControlPanelContext: import("react").Context<{
12
- type: 'internal' | 'external';
13
- draggable?: boolean | undefined;
14
- applyAppStyling: boolean;
15
- }>;
16
- export declare const CTIControlPanel: FunctionComponent;
17
- export declare const AppShellMockData: {
18
- notifications: {
19
- id: string;
20
- primary: string;
21
- secondary: string;
22
- visual: string;
23
- unread: boolean;
24
- }[];
25
- recents: {
26
- id: string;
27
- primary: string;
28
- secondary: string;
29
- }[];
30
- 'Phone Interaction': {
31
- caseId: string;
32
- heading: string;
33
- primaryFields: {
34
- id: string;
35
- name: string;
36
- value: string;
37
- }[];
38
- secondaryFields: {
39
- id: string;
40
- name: string;
41
- value: string;
42
- }[];
43
- };
44
- 'Chat Interaction': {
45
- caseId: string;
46
- heading: string;
47
- primaryFields: {
48
- id: string;
49
- name: string;
50
- value: string;
51
- }[];
52
- secondaryFields: {
53
- id: string;
54
- name: string;
55
- value: string;
56
- }[];
57
- };
58
- 'Mail Interaction': {
59
- caseId: string;
60
- heading: string;
61
- primaryFields: {
62
- id: string;
63
- name: string;
64
- value: string;
65
- }[];
66
- secondaryFields: {
67
- id: string;
68
- name: string;
69
- value: string;
70
- }[];
71
- };
72
- };
73
- //# sourceMappingURL=CSAppShell.mocks.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CSAppShell.mocks.d.ts","sourceRoot":"","sources":["../../../src/cs/CSCaseView/CSAppShell.mocks.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA8B,iBAAiB,EAAwB,MAAM,OAAO,CAAC;AAoB5F,oBAAY,UAAU,GAAG,MAAM,CAAC;AAEhC,MAAM,WAAW,cAAc;IAC7B,cAAc,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAC1C,OAAO,EAAE,CACP,SAAS,EAAE,MAAM,cAAc,CAAC,gBAAgB,CAAC,EACjD,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,KACb,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAAC;IACrC,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,aAAa,EAAE,iBAAiB,CAAC,cAAc,CAmE3D,CAAC;AAEF,eAAO,MAAM,sBAAsB;UAC3B,UAAU,GAAG,UAAU;;qBAEZ,OAAO;EAKxB,CAAC;AAEH,eAAO,MAAM,eAAe,EAAE,iBAiE7B,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmO5B,CAAC"}
@@ -1,299 +0,0 @@
1
- import { createContext, useContext, useState } from 'react';
2
- import { AppShellDrawerContext, Banner, Button, Flex, Form, Input, Option, Select } from '@pega/cosmos-react-core';
3
- import { CTIPanel } from '@pega/cosmos-react-cs';
4
- import { userStatusOptions } from '../CallControlPanel/CallControlPanel.mocks';
5
- import { CallControlPanelDemo, ExternalCTIDemo } from '../CallControlPanel/CallControlPanel.stories';
6
- export const CallLoginForm = ({ ctiLinkOptions, onLogin, onCancel }) => {
7
- const [agentId, setAgentId] = useState('');
8
- const [password, setPassword] = useState('');
9
- const [extension, setExtension] = useState('');
10
- const [ctiLinkId, setCTILinkId] = useState(Object.keys(ctiLinkOptions)[0]);
11
- const [errorMessage, setErrorMessage] = useState();
12
- const canSubmit = agentId && password && ctiLinkId && extension;
13
- const actions = (<>
14
- <Button key='cancel' name='cancel' variant='secondary' onClick={onCancel}>
15
- Cancel
16
- </Button>
17
- <Button key='submit' name='submit' type='submit' variant='primary' disabled={!canSubmit} onClick={(e) => {
18
- e.preventDefault();
19
- onLogin(ctiLinkId, agentId, password).then(setErrorMessage);
20
- }}>
21
- Login
22
- </Button>
23
- </>);
24
- return (<Form actions={actions} banners={errorMessage ? <Banner id='error' variant='urgent' messages={[errorMessage]}/> : undefined}>
25
- <Select required label='CTI link' onChange={e => setCTILinkId(e.target.value)}>
26
- {Object.entries(ctiLinkOptions).map(([id, label]) => (<Option value={id}>{label}</Option>))}
27
- </Select>
28
- <Input required label='Agent ID' value={agentId} onChange={(e) => setAgentId(e.target.value)}/>
29
- <Input type='password' required label='Password' value={password} onChange={(e) => setPassword(e.target.value)}/>
30
- <Input required label='Extension' value={extension} onChange={(e) => setExtension(e.target.value)}/>
31
- </Form>);
32
- };
33
- export const CTIControlPanelContext = createContext({
34
- type: 'internal',
35
- draggable: true,
36
- applyAppStyling: false
37
- });
38
- export const CTIControlPanel = () => {
39
- const [agentStatus, setAgentStatus] = useState(userStatusOptions[0]);
40
- const [callPanelVisible, setCallPanelVisible] = useState(false);
41
- const { type, draggable, applyAppStyling } = useContext(CTIControlPanelContext);
42
- const { openDrawer, closeDrawer } = useContext(AppShellDrawerContext);
43
- const drawerView = (<Flex container={{ direction: 'column', gap: 2, pad: 2 }} item={{ grow: 1 }}>
44
- <CallLoginForm ctiLinkOptions={{
45
- valid: 'It will be accepted',
46
- invalid: 'This will raise an error'
47
- }} onLogin={ctiLink => {
48
- if (ctiLink === 'invalid')
49
- return Promise.resolve('Login incorrect');
50
- setAgentStatus(userStatusOptions[0]);
51
- setCallPanelVisible(true);
52
- closeDrawer();
53
- return Promise.resolve(undefined);
54
- }} onCancel={closeDrawer}/>
55
- </Flex>);
56
- const drawerHeader = 'Pega Call Log In';
57
- return (<>
58
- <CTIPanel visible={callPanelVisible} status={agentStatus} onClick={() => {
59
- if (agentStatus.status === 'logout')
60
- openDrawer({
61
- drawerHeader,
62
- drawerView,
63
- name: drawerHeader
64
- });
65
- else
66
- setCallPanelVisible(prev => !prev);
67
- }}>
68
- {type === 'internal' ? (<CallControlPanelDemo heading='Agent' status={agentStatus.id} onStatusChange={status => {
69
- setAgentStatus(status);
70
- if (status.status === 'logout')
71
- setCallPanelVisible(false);
72
- }} isDraggable={draggable} visible={callPanelVisible}/>) : (<ExternalCTIDemo heading='External CTI' isDraggable={draggable} visible={callPanelVisible} applyAppStyling={applyAppStyling}/>)}
73
- </CTIPanel>
74
- </>);
75
- };
76
- export const AppShellMockData = {
77
- notifications: [
78
- {
79
- id: '123',
80
- primary: "Dean Thomas mentioned your team in a bug 'Button does not initiate onClick event handler'.",
81
- secondary: 'BUG-12345',
82
- visual: 'Dean Thomas',
83
- unread: true
84
- },
85
- {
86
- id: '456',
87
- primary: "Seth DeAngelo mentioned your team in a bug 'Text variant h1 renders as h3 in DOM'.",
88
- visual: 'Seth DeAngelo',
89
- secondary: 'BUG-12345',
90
- unread: true
91
- },
92
- {
93
- id: '789',
94
- primary: "Janet Moore mentioned your team in a bug 'Tree expanded state does not match the state that was set on the component'.",
95
- secondary: 'BUG-12345',
96
- visual: 'Janet Moore',
97
- unread: true
98
- },
99
- {
100
- id: '000',
101
- primary: 'You have been awarded Employee of the Month! Congratulations!',
102
- secondary: '',
103
- visual: 'Cindy Turner',
104
- unread: true
105
- }
106
- ],
107
- recents: [
108
- {
109
- id: '123',
110
- primary: "BUG-12345: 'Button does not initiate onClick event handler'.",
111
- secondary: 'BUG-12345'
112
- },
113
- {
114
- id: '456',
115
- primary: "BUG-54321: 'Text variant h1 renders as h3 in DOM'.",
116
- secondary: 'BUG-00000'
117
- },
118
- {
119
- id: '789',
120
- primary: "BUG-00000: 'Tree expanded state does not match the state that was set on the component'.",
121
- secondary: 'BUG-00000'
122
- },
123
- {
124
- id: '111',
125
- primary: "BUG-12345: 'Button does not initiate onClick event handler'.",
126
- secondary: 'BUG-12345'
127
- },
128
- {
129
- id: '222',
130
- primary: "BUG-54321: 'Text variant h1 renders as h3 in DOM'.",
131
- secondary: 'BUG-00000'
132
- },
133
- {
134
- id: '333',
135
- primary: "BUG-00000: 'Tree expanded state does not match the state that was set on the component'.",
136
- secondary: 'BUG-00000'
137
- },
138
- {
139
- id: '444',
140
- primary: "BUG-12345: 'Button does not initiate onClick event handler'.",
141
- secondary: 'BUG-12345'
142
- },
143
- {
144
- id: '555',
145
- primary: "BUG-54321: 'Text variant h1 renders as h3 in DOM'.",
146
- secondary: 'BUG-00000'
147
- },
148
- {
149
- id: '666',
150
- primary: "BUG-00000: 'Tree expanded state does not match the state that was set on the component'.",
151
- secondary: 'BUG-00000'
152
- }
153
- ],
154
- 'Phone Interaction': {
155
- caseId: 'Customer',
156
- heading: 'Ginger Ventura',
157
- primaryFields: [
158
- {
159
- id: '0',
160
- name: 'Lifetime value',
161
- value: 'Gold'
162
- },
163
- {
164
- id: '1',
165
- name: 'Interaction type',
166
- value: 'Phone'
167
- },
168
- {
169
- id: '2',
170
- name: 'Churn risk',
171
- value: 'Low'
172
- },
173
- {
174
- id: '3',
175
- name: 'Status',
176
- value: 'Open'
177
- }
178
- ],
179
- secondaryFields: [
180
- {
181
- id: '0',
182
- name: 'Status',
183
- value: 'Verified'
184
- },
185
- {
186
- id: '1',
187
- name: 'Web login',
188
- value: 'Today'
189
- },
190
- {
191
- id: '2',
192
- name: 'Customer since',
193
- value: 'July 2018'
194
- },
195
- {
196
- id: '3',
197
- name: 'Address',
198
- value: '2213b Gormand street'
199
- }
200
- ]
201
- },
202
- 'Chat Interaction': {
203
- caseId: 'Customer',
204
- heading: 'Sara Davis',
205
- primaryFields: [
206
- {
207
- id: '0',
208
- name: 'Lifetime value',
209
- value: 'Silver'
210
- },
211
- {
212
- id: '1',
213
- name: 'Interaction type',
214
- value: 'Chat'
215
- },
216
- {
217
- id: '2',
218
- name: 'Churn risk',
219
- value: 'High'
220
- },
221
- {
222
- id: '3',
223
- name: 'Status',
224
- value: 'Open'
225
- }
226
- ],
227
- secondaryFields: [
228
- {
229
- id: '0',
230
- name: 'Status',
231
- value: 'Verified'
232
- },
233
- {
234
- id: '1',
235
- name: 'Web login',
236
- value: 'Today'
237
- },
238
- {
239
- id: '2',
240
- name: 'Customer since',
241
- value: 'March 2005'
242
- },
243
- {
244
- id: '3',
245
- name: 'Address',
246
- value: '340 River'
247
- }
248
- ]
249
- },
250
- 'Mail Interaction': {
251
- caseId: 'Customer',
252
- heading: 'John Brown',
253
- primaryFields: [
254
- {
255
- id: '0',
256
- name: 'Lifetime value',
257
- value: 'Bronze'
258
- },
259
- {
260
- id: '1',
261
- name: 'Interaction type',
262
- value: 'Mail'
263
- },
264
- {
265
- id: '2',
266
- name: 'Churn risk',
267
- value: 'Medium'
268
- },
269
- {
270
- id: '3',
271
- name: 'Status',
272
- value: 'Open'
273
- }
274
- ],
275
- secondaryFields: [
276
- {
277
- id: '0',
278
- name: 'Status',
279
- value: 'Verified'
280
- },
281
- {
282
- id: '1',
283
- name: 'Web login',
284
- value: 'Today'
285
- },
286
- {
287
- id: '2',
288
- name: 'Customer since',
289
- value: 'March 1995'
290
- },
291
- {
292
- id: '3',
293
- name: 'Address',
294
- value: '340 River'
295
- }
296
- ]
297
- }
298
- };
299
- //# sourceMappingURL=CSAppShell.mocks.jsx.map
@@ -1 +0,0 @@
1
- {"version":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AE,EAAE,GAAG;gBACP,IAAI,EAAE,YAAY;gBAClB,KAAK,EAAE,QAAQ;aAChB;YACD;gBACE,EAAE,EAAE,GAAG;gBACP,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,MAAM;aACd;SACF;QACD,eAAe,EAAE;YACf;gBACE,EAAE,EAAE,GAAG;gBACP,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,UAAU;aAClB;YACD;gBACE,EAAE,EAAE,GAAG;gBACP,IAAI,EAAE,WAAW;gBACjB,KAAK,EAAE,OAAO;aACf;YACD;gBACE,EAAE,EAAE,GAAG;gBACP,IAAI,EAAE,gBAAgB;gBACtB,KAAK,EAAE,YAAY;aACpB;YACD;gBACE,EAAE,EAAE,GAAG;gBACP,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,WAAW;aACnB;SACF;KACF;CACF,CAAC","sourcesContent":["import { ChangeEvent, createContext, FunctionComponent, useContext, useState } from 'react';\n\nimport {\n AppShellDrawerContext,\n Banner,\n Button,\n Flex,\n Form,\n Input,\n Option,\n Select\n} from '@pega/cosmos-react-core';\nimport { type UserAvailabilityStatusOption, CTIPanel } from '@pega/cosmos-react-cs';\n\nimport { userStatusOptions } from '../CallControlPanel/CallControlPanel.mocks';\nimport {\n CallControlPanelDemo,\n ExternalCTIDemo\n} from '../CallControlPanel/CallControlPanel.stories';\n\nexport type LoginError = string;\n\nexport interface LoginFormProps {\n ctiLinkOptions: { [key: string]: string };\n onLogin: (\n ctiLinkId: keyof LoginFormProps['ctiLinkOptions'],\n agentId: string,\n password: string\n ) => Promise<LoginError | undefined>;\n onCancel: () => void;\n}\n\nexport const CallLoginForm: FunctionComponent<LoginFormProps> = ({\n ctiLinkOptions,\n onLogin,\n onCancel\n}: LoginFormProps) => {\n const [agentId, setAgentId] = useState<string>('');\n const [password, setPassword] = useState<string>('');\n const [extension, setExtension] = useState<string>('');\n const [ctiLinkId, setCTILinkId] = useState<string>(Object.keys(ctiLinkOptions)[0]);\n const [errorMessage, setErrorMessage] = useState<string>();\n\n const canSubmit = agentId && password && ctiLinkId && extension;\n\n const actions = (\n <>\n <Button key='cancel' name='cancel' variant='secondary' onClick={onCancel}>\n Cancel\n </Button>\n <Button\n key='submit'\n name='submit'\n type='submit'\n variant='primary'\n disabled={!canSubmit}\n onClick={(e: MouseEvent) => {\n e.preventDefault();\n onLogin(ctiLinkId!, agentId, password).then(setErrorMessage);\n }}\n >\n Login\n </Button>\n </>\n );\n\n return (\n <Form\n actions={actions}\n banners={\n errorMessage ? <Banner id='error' variant='urgent' messages={[errorMessage]} /> : undefined\n }\n >\n <Select required label='CTI link' onChange={e => setCTILinkId(e.target.value)}>\n {Object.entries(ctiLinkOptions).map(([id, label]) => (\n <Option value={id}>{label}</Option>\n ))}\n </Select>\n <Input\n required\n label='Agent ID'\n value={agentId}\n onChange={(e: ChangeEvent<HTMLInputElement>) => setAgentId(e.target.value)}\n />\n <Input\n type='password'\n required\n label='Password'\n value={password}\n onChange={(e: ChangeEvent<HTMLInputElement>) => setPassword(e.target.value)}\n />\n <Input\n required\n label='Extension'\n value={extension}\n onChange={(e: ChangeEvent<HTMLInputElement>) => setExtension(e.target.value)}\n />\n </Form>\n );\n};\n\nexport const CTIControlPanelContext = createContext<{\n type: 'internal' | 'external';\n draggable?: boolean;\n applyAppStyling: boolean;\n}>({\n type: 'internal',\n draggable: true,\n applyAppStyling: false\n});\n\nexport const CTIControlPanel: FunctionComponent = () => {\n const [agentStatus, setAgentStatus] = useState<UserAvailabilityStatusOption>(\n userStatusOptions[0] as UserAvailabilityStatusOption\n );\n const [callPanelVisible, setCallPanelVisible] = useState(false);\n const { type, draggable, applyAppStyling } = useContext(CTIControlPanelContext);\n const { openDrawer, closeDrawer } = useContext(AppShellDrawerContext);\n\n const drawerView = (\n <Flex container={{ direction: 'column', gap: 2, pad: 2 }} item={{ grow: 1 }}>\n <CallLoginForm\n ctiLinkOptions={{\n valid: 'It will be accepted',\n invalid: 'This will raise an error'\n }}\n onLogin={ctiLink => {\n if (ctiLink === 'invalid') return Promise.resolve('Login incorrect');\n setAgentStatus(userStatusOptions[0]);\n setCallPanelVisible(true);\n closeDrawer();\n return Promise.resolve(undefined);\n }}\n onCancel={closeDrawer}\n />\n </Flex>\n );\n const drawerHeader = 'Pega Call Log In';\n\n return (\n <>\n <CTIPanel\n visible={callPanelVisible}\n status={agentStatus}\n onClick={() => {\n if (agentStatus.status === 'logout')\n openDrawer({\n drawerHeader,\n drawerView,\n name: drawerHeader\n });\n else setCallPanelVisible(prev => !prev);\n }}\n >\n {type === 'internal' ? (\n <CallControlPanelDemo\n heading='Agent'\n status={agentStatus.id}\n onStatusChange={status => {\n setAgentStatus(status);\n if (status.status === 'logout') setCallPanelVisible(false);\n }}\n isDraggable={draggable}\n visible={callPanelVisible}\n />\n ) : (\n <ExternalCTIDemo\n heading='External CTI'\n isDraggable={draggable}\n visible={callPanelVisible}\n applyAppStyling={applyAppStyling}\n />\n )}\n </CTIPanel>\n </>\n );\n};\n\nexport const AppShellMockData = {\n notifications: [\n {\n id: '123',\n primary:\n \"Dean Thomas mentioned your team in a bug 'Button does not initiate onClick event handler'.\",\n secondary: 'BUG-12345',\n visual: 'Dean Thomas',\n unread: true\n },\n {\n id: '456',\n primary: \"Seth DeAngelo mentioned your team in a bug 'Text variant h1 renders as h3 in DOM'.\",\n visual: 'Seth DeAngelo',\n secondary: 'BUG-12345',\n unread: true\n },\n {\n id: '789',\n primary:\n \"Janet Moore mentioned your team in a bug 'Tree expanded state does not match the state that was set on the component'.\",\n secondary: 'BUG-12345',\n visual: 'Janet Moore',\n unread: true\n },\n {\n id: '000',\n primary: 'You have been awarded Employee of the Month! Congratulations!',\n secondary: '',\n visual: 'Cindy Turner',\n unread: true\n }\n ],\n recents: [\n {\n id: '123',\n primary: \"BUG-12345: 'Button does not initiate onClick event handler'.\",\n secondary: 'BUG-12345'\n },\n {\n id: '456',\n primary: \"BUG-54321: 'Text variant h1 renders as h3 in DOM'.\",\n secondary: 'BUG-00000'\n },\n {\n id: '789',\n primary:\n \"BUG-00000: 'Tree expanded state does not match the state that was set on the component'.\",\n secondary: 'BUG-00000'\n },\n {\n id: '111',\n primary: \"BUG-12345: 'Button does not initiate onClick event handler'.\",\n secondary: 'BUG-12345'\n },\n {\n id: '222',\n primary: \"BUG-54321: 'Text variant h1 renders as h3 in DOM'.\",\n secondary: 'BUG-00000'\n },\n {\n id: '333',\n primary:\n \"BUG-00000: 'Tree expanded state does not match the state that was set on the component'.\",\n secondary: 'BUG-00000'\n },\n {\n id: '444',\n primary: \"BUG-12345: 'Button does not initiate onClick event handler'.\",\n secondary: 'BUG-12345'\n },\n {\n id: '555',\n primary: \"BUG-54321: 'Text variant h1 renders as h3 in DOM'.\",\n secondary: 'BUG-00000'\n },\n {\n id: '666',\n primary:\n \"BUG-00000: 'Tree expanded state does not match the state that was set on the component'.\",\n secondary: 'BUG-00000'\n }\n ],\n 'Phone Interaction': {\n caseId: 'Customer',\n heading: 'Ginger Ventura',\n primaryFields: [\n {\n id: '0',\n name: 'Lifetime value',\n value: 'Gold'\n },\n {\n id: '1',\n name: 'Interaction type',\n value: 'Phone'\n },\n {\n id: '2',\n name: 'Churn risk',\n value: 'Low'\n },\n {\n id: '3',\n name: 'Status',\n value: 'Open'\n }\n ],\n secondaryFields: [\n {\n id: '0',\n name: 'Status',\n value: 'Verified'\n },\n {\n id: '1',\n name: 'Web login',\n value: 'Today'\n },\n {\n id: '2',\n name: 'Customer since',\n value: 'July 2018'\n },\n {\n id: '3',\n name: 'Address',\n value: '2213b Gormand street'\n }\n ]\n },\n 'Chat Interaction': {\n caseId: 'Customer',\n heading: 'Sara Davis',\n primaryFields: [\n {\n id: '0',\n name: 'Lifetime value',\n value: 'Silver'\n },\n {\n id: '1',\n name: 'Interaction type',\n value: 'Chat'\n },\n {\n id: '2',\n name: 'Churn risk',\n value: 'High'\n },\n {\n id: '3',\n name: 'Status',\n value: 'Open'\n }\n ],\n secondaryFields: [\n {\n id: '0',\n name: 'Status',\n value: 'Verified'\n },\n {\n id: '1',\n name: 'Web login',\n value: 'Today'\n },\n {\n id: '2',\n name: 'Customer since',\n value: 'March 2005'\n },\n {\n id: '3',\n name: 'Address',\n value: '340 River'\n }\n ]\n },\n 'Mail Interaction': {\n caseId: 'Customer',\n heading: 'John Brown',\n primaryFields: [\n {\n id: '0',\n name: 'Lifetime value',\n value: 'Bronze'\n },\n {\n id: '1',\n name: 'Interaction type',\n value: 'Mail'\n },\n {\n id: '2',\n name: 'Churn risk',\n value: 'Medium'\n },\n {\n id: '3',\n name: 'Status',\n value: 'Open'\n }\n ],\n secondaryFields: [\n {\n id: '0',\n name: 'Status',\n value: 'Verified'\n },\n {\n id: '1',\n name: 'Web login',\n value: 'Today'\n },\n {\n id: '2',\n name: 'Customer since',\n value: 'March 1995'\n },\n {\n id: '3',\n name: 'Address',\n value: '340 River'\n }\n ]\n }\n};\n"]}
@@ -1,13 +0,0 @@
1
- import { Meta, Story } from '@storybook/react';
2
- import { InteractionTimerStoryProps } from '../InteractionTimer/InteractionTimer.stories';
3
- declare const _default: Meta<import("@storybook/react").Args>;
4
- export default _default;
5
- interface CSAppShellProps {
6
- isDraggable?: boolean;
7
- hasInteractionNotifications?: InteractionTimerStoryProps['hasNotifications'];
8
- enableSla?: InteractionTimerStoryProps['showTimer'];
9
- ctiPanel: 'internal' | 'external';
10
- applyThemeToExternalCTI: boolean;
11
- }
12
- export declare const CSAppShell: Story<CSAppShellProps>;
13
- //# sourceMappingURL=CSAppShell.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CSAppShell.stories.d.ts","sourceRoot":"","sources":["../../../src/cs/CSCaseView/CSAppShell.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAyB/C,OAAO,EAEL,0BAA0B,EAC3B,MAAM,8CAA8C,CAAC;;AAMtD,wBAmBU;AAEV,UAAU,eAAe;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,2BAA2B,CAAC,EAAE,0BAA0B,CAAC,kBAAkB,CAAC,CAAC;IAC7E,SAAS,CAAC,EAAE,0BAA0B,CAAC,WAAW,CAAC,CAAC;IACpD,QAAQ,EAAE,UAAU,GAAG,UAAU,CAAC;IAClC,uBAAuB,EAAE,OAAO,CAAC;CAClC;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,eAAe,CAmQ7C,CAAC"}