@pega/cosmos-react-work 4.0.0-dev.2.0 → 4.0.0-dev.20.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.
Files changed (174) hide show
  1. package/lib/components/AppAnnouncement/AppAnnouncement.d.ts +7 -21
  2. package/lib/components/AppAnnouncement/AppAnnouncement.d.ts.map +1 -1
  3. package/lib/components/AppAnnouncement/AppAnnouncement.js +2 -1
  4. package/lib/components/AppAnnouncement/AppAnnouncement.js.map +1 -1
  5. package/lib/components/Assignments/Assignments.d.ts +21 -0
  6. package/lib/components/Assignments/Assignments.d.ts.map +1 -0
  7. package/lib/components/Assignments/Assignments.js +20 -0
  8. package/lib/components/Assignments/Assignments.js.map +1 -0
  9. package/lib/components/Assignments/Assignments.styles.d.ts +8 -0
  10. package/lib/components/Assignments/Assignments.styles.d.ts.map +1 -0
  11. package/lib/components/Assignments/Assignments.styles.js +41 -0
  12. package/lib/components/Assignments/Assignments.styles.js.map +1 -0
  13. package/lib/components/Assignments/index.d.ts +2 -0
  14. package/lib/components/Assignments/index.d.ts.map +1 -0
  15. package/lib/components/Assignments/index.js +2 -0
  16. package/lib/components/Assignments/index.js.map +1 -0
  17. package/lib/components/CasePreview/CasePreview.d.ts +9 -4
  18. package/lib/components/CasePreview/CasePreview.d.ts.map +1 -1
  19. package/lib/components/CasePreview/CasePreview.js +6 -9
  20. package/lib/components/CasePreview/CasePreview.js.map +1 -1
  21. package/lib/components/CasePreview/CasePreview.test-ids.d.ts +2 -0
  22. package/lib/components/CasePreview/CasePreview.test-ids.d.ts.map +1 -0
  23. package/lib/components/CasePreview/CasePreview.test-ids.js +3 -0
  24. package/lib/components/CasePreview/CasePreview.test-ids.js.map +1 -0
  25. package/lib/components/CaseView/CaseHeader/CaseHeader.d.ts.map +1 -0
  26. package/lib/components/CaseView/CaseHeader/CaseHeader.js +119 -0
  27. package/lib/components/CaseView/CaseHeader/CaseHeader.js.map +1 -0
  28. package/lib/components/CaseView/CaseHeader/Summary.d.ts +6 -0
  29. package/lib/components/CaseView/CaseHeader/Summary.d.ts.map +1 -0
  30. package/lib/components/CaseView/CaseHeader/Summary.js +182 -0
  31. package/lib/components/CaseView/CaseHeader/Summary.js.map +1 -0
  32. package/lib/components/CaseView/CaseSummary.d.ts.map +1 -1
  33. package/lib/components/CaseView/CaseSummary.js +9 -4
  34. package/lib/components/CaseView/CaseSummary.js.map +1 -1
  35. package/lib/components/CaseView/CaseSummaryFields.d.ts.map +1 -1
  36. package/lib/components/CaseView/CaseSummaryFields.js +14 -4
  37. package/lib/components/CaseView/CaseSummaryFields.js.map +1 -1
  38. package/lib/components/CaseView/CaseView.d.ts +4 -2
  39. package/lib/components/CaseView/CaseView.d.ts.map +1 -1
  40. package/lib/components/CaseView/CaseView.js +183 -68
  41. package/lib/components/CaseView/CaseView.js.map +1 -1
  42. package/lib/components/CaseView/CaseView.styles.d.ts +45 -19
  43. package/lib/components/CaseView/CaseView.styles.d.ts.map +1 -1
  44. package/lib/components/CaseView/CaseView.styles.js +324 -66
  45. package/lib/components/CaseView/CaseView.styles.js.map +1 -1
  46. package/lib/components/CaseView/CaseView.test-ids.d.ts +2 -0
  47. package/lib/components/CaseView/CaseView.test-ids.d.ts.map +1 -0
  48. package/lib/components/CaseView/CaseView.test-ids.js +17 -0
  49. package/lib/components/CaseView/CaseView.test-ids.js.map +1 -0
  50. package/lib/components/CaseView/CaseView.types.d.ts +27 -34
  51. package/lib/components/CaseView/CaseView.types.d.ts.map +1 -1
  52. package/lib/components/CaseView/CaseView.types.js.map +1 -1
  53. package/lib/components/CaseView/UtilitiesSummary.d.ts +0 -1
  54. package/lib/components/CaseView/UtilitiesSummary.d.ts.map +1 -1
  55. package/lib/components/CaseView/UtilitiesSummary.js +4 -8
  56. package/lib/components/CaseView/UtilitiesSummary.js.map +1 -1
  57. package/lib/components/CaseView/index.d.ts +0 -5
  58. package/lib/components/CaseView/index.d.ts.map +1 -1
  59. package/lib/components/CaseView/index.js +0 -4
  60. package/lib/components/CaseView/index.js.map +1 -1
  61. package/lib/components/ConfigurableLayout/ConfigurableLayout.types.d.ts +1 -3
  62. package/lib/components/ConfigurableLayout/ConfigurableLayout.types.d.ts.map +1 -1
  63. package/lib/components/ConfigurableLayout/ConfigurableLayout.types.js.map +1 -1
  64. package/lib/components/Confirmation/Confirmation.d.ts +1 -1
  65. package/lib/components/Confirmation/Confirmation.d.ts.map +1 -1
  66. package/lib/components/Confirmation/Confirmation.js +2 -2
  67. package/lib/components/Confirmation/Confirmation.js.map +1 -1
  68. package/lib/components/Details/Details.d.ts.map +1 -1
  69. package/lib/components/Details/Details.js +25 -16
  70. package/lib/components/Details/Details.js.map +1 -1
  71. package/lib/components/Details/Details.styles.d.ts +6 -4
  72. package/lib/components/Details/Details.styles.d.ts.map +1 -1
  73. package/lib/components/Details/Details.styles.js +38 -101
  74. package/lib/components/Details/Details.styles.js.map +1 -1
  75. package/lib/components/Glimpse/Glimpse.d.ts +10 -10
  76. package/lib/components/Glimpse/Glimpse.d.ts.map +1 -1
  77. package/lib/components/Glimpse/Glimpse.js +7 -17
  78. package/lib/components/Glimpse/Glimpse.js.map +1 -1
  79. package/lib/components/Glimpse/index.d.ts +1 -1
  80. package/lib/components/Glimpse/index.d.ts.map +1 -1
  81. package/lib/components/Glimpse/index.js +0 -1
  82. package/lib/components/Glimpse/index.js.map +1 -1
  83. package/lib/components/IntelligentGuidance/IntelligentGuidance.d.ts.map +1 -1
  84. package/lib/components/IntelligentGuidance/IntelligentGuidance.js +39 -43
  85. package/lib/components/IntelligentGuidance/IntelligentGuidance.js.map +1 -1
  86. package/lib/components/IntelligentGuidance/IntelligentGuidance.styles.d.ts +3 -2
  87. package/lib/components/IntelligentGuidance/IntelligentGuidance.styles.d.ts.map +1 -1
  88. package/lib/components/IntelligentGuidance/IntelligentGuidance.styles.js +137 -81
  89. package/lib/components/IntelligentGuidance/IntelligentGuidance.styles.js.map +1 -1
  90. package/lib/components/IntelligentGuidance/IntelligentGuidance.types.d.ts +13 -9
  91. package/lib/components/IntelligentGuidance/IntelligentGuidance.types.d.ts.map +1 -1
  92. package/lib/components/IntelligentGuidance/IntelligentGuidance.types.js.map +1 -1
  93. package/lib/components/Predictions/Predictions.d.ts +6 -0
  94. package/lib/components/Predictions/Predictions.d.ts.map +1 -0
  95. package/lib/components/Predictions/Predictions.js +60 -0
  96. package/lib/components/Predictions/Predictions.js.map +1 -0
  97. package/lib/components/Predictions/Predictions.types.d.ts +23 -0
  98. package/lib/components/Predictions/Predictions.types.d.ts.map +1 -0
  99. package/lib/components/Predictions/Predictions.types.js +2 -0
  100. package/lib/components/Predictions/Predictions.types.js.map +1 -0
  101. package/lib/components/Predictions/index.d.ts +3 -0
  102. package/lib/components/Predictions/index.d.ts.map +1 -0
  103. package/lib/components/Predictions/index.js +2 -0
  104. package/lib/components/Predictions/index.js.map +1 -0
  105. package/lib/components/SearchResults/SearchResults.types.d.ts +5 -5
  106. package/lib/components/SearchResults/SearchResults.types.d.ts.map +1 -1
  107. package/lib/components/SearchResults/SearchResults.types.js.map +1 -1
  108. package/lib/components/Stages/StageGlimpse.d.ts +0 -2
  109. package/lib/components/Stages/StageGlimpse.d.ts.map +1 -1
  110. package/lib/components/Stages/StageGlimpse.js +4 -4
  111. package/lib/components/Stages/StageGlimpse.js.map +1 -1
  112. package/lib/components/Stages/Stages.d.ts.map +1 -1
  113. package/lib/components/Stages/Stages.js +39 -58
  114. package/lib/components/Stages/Stages.js.map +1 -1
  115. package/lib/components/Stages/Stages.styles.d.ts +0 -2
  116. package/lib/components/Stages/Stages.styles.d.ts.map +1 -1
  117. package/lib/components/Stages/Stages.styles.js +10 -18
  118. package/lib/components/Stages/Stages.styles.js.map +1 -1
  119. package/lib/components/Stakeholders/Stakeholders.d.ts.map +1 -1
  120. package/lib/components/Stakeholders/Stakeholders.js +2 -2
  121. package/lib/components/Stakeholders/Stakeholders.js.map +1 -1
  122. package/lib/components/Stakeholders/Stakeholders.types.d.ts +5 -13
  123. package/lib/components/Stakeholders/Stakeholders.types.d.ts.map +1 -1
  124. package/lib/components/Stakeholders/Stakeholders.types.js.map +1 -1
  125. package/lib/components/Tags/Tags.d.ts +1 -1
  126. package/lib/components/Tags/Tags.d.ts.map +1 -1
  127. package/lib/components/Tags/Tags.js +5 -20
  128. package/lib/components/Tags/Tags.js.map +1 -1
  129. package/lib/components/Tasks/TaskList.d.ts +18 -7
  130. package/lib/components/Tasks/TaskList.d.ts.map +1 -1
  131. package/lib/components/Tasks/TaskList.js +48 -10
  132. package/lib/components/Tasks/TaskList.js.map +1 -1
  133. package/lib/components/Tasks/Tasks.d.ts +21 -15
  134. package/lib/components/Tasks/Tasks.d.ts.map +1 -1
  135. package/lib/components/Tasks/Tasks.js +9 -9
  136. package/lib/components/Tasks/Tasks.js.map +1 -1
  137. package/lib/components/Tasks/Tasks.test-ids.d.ts +4 -0
  138. package/lib/components/Tasks/Tasks.test-ids.d.ts.map +1 -0
  139. package/lib/components/Tasks/Tasks.test-ids.js +5 -0
  140. package/lib/components/Tasks/Tasks.test-ids.js.map +1 -0
  141. package/lib/components/Tasks/index.d.ts +3 -5
  142. package/lib/components/Tasks/index.d.ts.map +1 -1
  143. package/lib/components/Tasks/index.js +1 -0
  144. package/lib/components/Tasks/index.js.map +1 -1
  145. package/lib/components/Timeline/Timeline.d.ts.map +1 -1
  146. package/lib/components/Timeline/Timeline.js +14 -12
  147. package/lib/components/Timeline/Timeline.js.map +1 -1
  148. package/lib/components/Timeline/Timeline.styles.d.ts +4 -5
  149. package/lib/components/Timeline/Timeline.styles.d.ts.map +1 -1
  150. package/lib/components/Timeline/Timeline.styles.js +34 -55
  151. package/lib/components/Timeline/Timeline.styles.js.map +1 -1
  152. package/lib/components/Timeline/Timeline.types.d.ts +8 -8
  153. package/lib/components/Timeline/Timeline.types.d.ts.map +1 -1
  154. package/lib/components/Timeline/Timeline.types.js.map +1 -1
  155. package/lib/components/Timeline/TimelineItem.d.ts.map +1 -1
  156. package/lib/components/Timeline/TimelineItem.js +19 -7
  157. package/lib/components/Timeline/TimelineItem.js.map +1 -1
  158. package/lib/components/Timeline/utils.d.ts +1 -0
  159. package/lib/components/Timeline/utils.d.ts.map +1 -1
  160. package/lib/components/Timeline/utils.js +12 -0
  161. package/lib/components/Timeline/utils.js.map +1 -1
  162. package/lib/index.d.ts +4 -0
  163. package/lib/index.d.ts.map +1 -1
  164. package/lib/index.js +4 -0
  165. package/lib/index.js.map +1 -1
  166. package/package.json +8 -6
  167. package/lib/components/CaseView/CaseHeader.d.ts.map +0 -1
  168. package/lib/components/CaseView/CaseHeader.js +0 -49
  169. package/lib/components/CaseView/CaseHeader.js.map +0 -1
  170. package/lib/components/CaseView/MobileCaseView.d.ts +0 -13
  171. package/lib/components/CaseView/MobileCaseView.d.ts.map +0 -1
  172. package/lib/components/CaseView/MobileCaseView.js +0 -25
  173. package/lib/components/CaseView/MobileCaseView.js.map +0 -1
  174. /package/lib/components/CaseView/{CaseHeader.d.ts → CaseHeader/CaseHeader.d.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC1E,cAAc,8BAA8B,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAChF,cAAc,iCAAiC,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACpE,cAAc,2BAA2B,CAAC;AAC1C,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,cA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AChF,cAAc,iCAAiC,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACpE,cAAc,2BAA2B,CAAC;AAC1C,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAClF,cAAc,kCAAkC,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACtE,cAAc,4BAA4B,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACpE,cAAc,2BAA2B,CAAC;AAC1C,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACpD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,cAAc,uBAAuB,CAAC"}
package/lib/index.js CHANGED
@@ -1,6 +1,8 @@
1
1
  // This file is autogenerated. Any changes will be overwritten.
2
2
  export { default as AppAnnouncement } from './components/AppAnnouncement';
3
3
  export * from './components/AppAnnouncement';
4
+ export { default as Assignments } from './components/Assignments';
5
+ export * from './components/Assignments';
4
6
  export { default as CasePreview } from './components/CasePreview';
5
7
  export * from './components/CasePreview';
6
8
  export { default as CaseView } from './components/CaseView';
@@ -15,6 +17,8 @@ export { default as Glimpse } from './components/Glimpse';
15
17
  export * from './components/Glimpse';
16
18
  export { default as IntelligentGuidance } from './components/IntelligentGuidance';
17
19
  export * from './components/IntelligentGuidance';
20
+ export { default as Predictions } from './components/Predictions';
21
+ export * from './components/Predictions';
18
22
  export { default as SearchResults } from './components/SearchResults';
19
23
  export * from './components/SearchResults';
20
24
  export { default as Stages } from './components/Stages';
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC1E,cAAc,8BAA8B,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAChF,cAAc,iCAAiC,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACpE,cAAc,2BAA2B,CAAC;AAC1C,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAClF,cAAc,kCAAkC,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACtE,cAAc,4BAA4B,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACpE,cAAc,2BAA2B,CAAC;AAC1C,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACpD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,cAAc,uBAAuB,CAAC","sourcesContent":["// This file is autogenerated. Any changes will be overwritten.\nexport { default as AppAnnouncement } from './components/AppAnnouncement';\nexport * from './components/AppAnnouncement';\nexport { default as CasePreview } from './components/CasePreview';\nexport * from './components/CasePreview';\nexport { default as CaseView } from './components/CaseView';\nexport * from './components/CaseView';\nexport { default as ConfigurableLayout } from './components/ConfigurableLayout';\nexport * from './components/ConfigurableLayout';\nexport { default as Confirmation } from './components/Confirmation';\nexport * from './components/Confirmation';\nexport { default as Details } from './components/Details';\nexport * from './components/Details';\nexport { default as Glimpse } from './components/Glimpse';\nexport * from './components/Glimpse';\nexport { default as IntelligentGuidance } from './components/IntelligentGuidance';\nexport * from './components/IntelligentGuidance';\nexport { default as SearchResults } from './components/SearchResults';\nexport * from './components/SearchResults';\nexport { default as Stages } from './components/Stages';\nexport * from './components/Stages';\nexport { default as Stakeholders } from './components/Stakeholders';\nexport * from './components/Stakeholders';\nexport { default as Tags } from './components/Tags';\nexport * from './components/Tags';\nexport { default as Tasks } from './components/Tasks';\nexport * from './components/Tasks';\nexport { default as Timeline } from './components/Timeline';\nexport * from './components/Timeline';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,OAAO,EAAE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BAAmB,CAAC;AAClC,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,cAAc,uBAAuB,CAAC","sourcesContent":["// This file is autogenerated. Any changes will be overwritten.\nexport { default as AppAnnouncement } from './components/AppAnnouncement';\nexport * from './components/AppAnnouncement';\nexport { default as Assignments } from './components/Assignments';\nexport * from './components/Assignments';\nexport { default as CasePreview } from './components/CasePreview';\nexport * from './components/CasePreview';\nexport { default as CaseView } from './components/CaseView';\nexport * from './components/CaseView';\nexport { default as ConfigurableLayout } from './components/ConfigurableLayout';\nexport * from './components/ConfigurableLayout';\nexport { default as Confirmation } from './components/Confirmation';\nexport * from './components/Confirmation';\nexport { default as Details } from './components/Details';\nexport * from './components/Details';\nexport { default as Glimpse } from './components/Glimpse';\nexport * from './components/Glimpse';\nexport { default as IntelligentGuidance } from './components/IntelligentGuidance';\nexport * from './components/IntelligentGuidance';\nexport { default as Predictions } from './components/Predictions';\nexport * from './components/Predictions';\nexport { default as SearchResults } from './components/SearchResults';\nexport * from './components/SearchResults';\nexport { default as Stages } from './components/Stages';\nexport * from './components/Stages';\nexport { default as Stakeholders } from './components/Stakeholders';\nexport * from './components/Stakeholders';\nexport { default as Tags } from './components/Tags';\nexport * from './components/Tags';\nexport { default as Tasks } from './components/Tasks';\nexport * from './components/Tasks';\nexport { default as Timeline } from './components/Timeline';\nexport * from './components/Timeline';\n"]}
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@pega/cosmos-react-work",
3
- "version": "4.0.0-dev.2.0",
4
- "author": "Pegasystems",
5
- "license": "SEE LICENSE IN LICENSE",
3
+ "version": "4.0.0-dev.20.0",
6
4
  "repository": {
7
5
  "type": "git",
8
6
  "url": "https://github.com/pegasystems/cosmos-react.git",
9
7
  "directory": "packages/cosmos-work"
10
8
  },
9
+ "license": "SEE LICENSE IN LICENSE",
10
+ "author": "Pegasystems",
11
+ "sideEffects": false,
11
12
  "main": "lib/index.js",
12
13
  "types": "lib/index.d.ts",
13
14
  "files": [
@@ -15,12 +16,11 @@
15
16
  "README.md",
16
17
  "lib"
17
18
  ],
18
- "sideEffects": false,
19
19
  "scripts": {
20
20
  "build": "tsc -b"
21
21
  },
22
22
  "dependencies": {
23
- "@pega/cosmos-react-core": "4.0.0-dev.2.0",
23
+ "@pega/cosmos-react-core": "4.0.0-dev.20.0",
24
24
  "@types/react": "^16.14.24 || ^17.0.38",
25
25
  "@types/react-dom": "^16.9.14 || ^17.0.11",
26
26
  "@types/styled-components": "^5.1.26",
@@ -40,6 +40,8 @@
40
40
  "@storybook/theming": "^6.4.19",
41
41
  "@testing-library/react": "^12.1.3",
42
42
  "@testing-library/user-event": "^13.5.0",
43
- "typescript": "~4.7.2"
43
+ "@types/dompurify": "^2.3.4",
44
+ "dompurify": "^2.4.0",
45
+ "typescript": "~5.0.2"
44
46
  }
45
47
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"CaseHeader.d.ts","sourceRoot":"","sources":["../../../src/components/CaseView/CaseHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAsB,MAAM,OAAO,CAAC;AA8B/C,QAAA,MAAM,UAAU,EAAE,EAuIjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1,49 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useRef } from 'react';
3
- import { Breadcrumbs, Flex, Icon, registerIcon, Text, Link, Button, MenuButton, useI18n, useAfterInitialEffect } from '@pega/cosmos-react-core';
4
- import * as pencilIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/pencil.icon';
5
- import * as moreIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/more.icon';
6
- import { StyledCaseHeader, StyledCaseIconWrap, StyledCaseHeaderText, StyledPromotedActions, StyledExpandCollapseButton, StyledSubheading } from './CaseView.styles';
7
- import { useCaseViewContext } from './CaseView.context';
8
- registerIcon(pencilIcon, moreIcon);
9
- const CaseHeader = () => {
10
- const t = useI18n();
11
- const { caseId, icon, heading, subheading, actions, caseLink, parentCases, onEdit, followed, onFollowedChange, promotedActions, summaryId, summaryExpanded, onToggleSummary, isPreview, aboveMD, persistentUtility } = useCaseViewContext();
12
- const caseActions = actions
13
- ? actions.map(action => {
14
- return {
15
- ...action,
16
- primary: action.text,
17
- visual: action.icon ? _jsx(Icon, { name: action.icon }) : null
18
- };
19
- })
20
- : undefined;
21
- const toggleButtonRef = useRef(null);
22
- // FIXME: This is a hack to get the Tooltip to reset its position when the summary changes layout.
23
- useAfterInitialEffect(() => {
24
- if (toggleButtonRef.current && toggleButtonRef.current === document.activeElement) {
25
- toggleButtonRef.current.blur();
26
- setTimeout(() => {
27
- toggleButtonRef.current?.focus();
28
- }, 0);
29
- }
30
- }, [summaryExpanded]);
31
- return (_jsxs("div", { children: [_jsxs(Flex, { as: StyledCaseHeader, container: { gap: 2, alignItems: 'start' }, children: [!isPreview && aboveMD && onToggleSummary && !persistentUtility && (_jsx(StyledExpandCollapseButton, { ref: toggleButtonRef, onClick: onToggleSummary, label: t(summaryExpanded ? 'collapse' : 'expand'), "aria-label": t(summaryExpanded ? 'collapse_summary_panel' : 'expand_summary_panel'), icon: true, compact: true, "aria-expanded": summaryExpanded ? 'true' : 'false', "aria-controls": summaryId, children: _jsx(Icon, { name: 'arrow-micro-left' }) })), icon && (_jsx(Flex, { container: true, item: { shrink: 0 }, as: StyledCaseIconWrap, children: icon })), _jsxs(Flex, { as: StyledCaseHeaderText, container: { direction: 'column' }, item: { grow: 1, shrink: 0, basis: '0' }, children: [_jsx(Text, { variant: 'h1', children: caseLink ? _jsx(Link, { ...caseLink, children: heading }) : heading }), subheading && (!parentCases || subheading !== caseId) && (_jsx(StyledSubheading, { children: subheading })), parentCases && (_jsx(Breadcrumbs, { forwardedAs: 'p', path: [
32
- ...parentCases,
33
- { ...caseLink, id: caseId, primary: caseId, href: caseLink?.href }
34
- ] }))] }), _jsxs("div", { children: [onEdit && (_jsx(Button, { icon: true, variant: 'simple', onClick: onEdit, label: t('edit'), children: _jsx(Icon, { name: 'pencil' }) })), caseActions && (_jsx(MenuButton, { icon: 'more', iconOnly: true, variant: 'simple', text: t('actions'), menu: {
35
- items: followed !== undefined
36
- ? [
37
- {
38
- id: 'follow',
39
- primary: followed ? t('unfollow') : t('follow'),
40
- onClick: () => onFollowedChange?.(!followed)
41
- },
42
- ...caseActions
43
- ]
44
- : caseActions,
45
- scrollAt: 20
46
- } }))] })] }), promotedActions && promotedActions.length > 0 ? (_jsx(Flex, { as: StyledPromotedActions, container: { wrap: 'wrap', gap: 1, pad: [1, 2] }, children: promotedActions.map(promotedAction => (_jsx(Button, { variant: 'secondary', onClick: (e) => promotedAction.onClick?.(promotedAction.id, e), children: promotedAction.text }))) })) : null] }));
47
- };
48
- export default CaseHeader;
49
- //# sourceMappingURL=CaseHeader.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CaseHeader.js","sourceRoot":"","sources":["../../../src/components/CaseView/CaseHeader.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAkB,MAAM,EAAE,MAAM,OAAO,CAAC;AAE/C,OAAO,EACL,WAAW,EACX,IAAI,EACJ,IAAI,EACJ,YAAY,EACZ,IAAI,EACJ,IAAI,EAEJ,MAAM,EACN,UAAU,EACV,OAAO,EACP,qBAAqB,EACtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,UAAU,MAAM,+DAA+D,CAAC;AAC5F,OAAO,KAAK,QAAQ,MAAM,6DAA6D,CAAC;AAExF,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,0BAA0B,EAC1B,gBAAgB,EACjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAExD,YAAY,CAAC,UAAU,EAAE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AC,EAAE,EAAE,CAAC,CAAC,YAG/C,cAAc,CAAC,IAAI,GACb,CACV,CAAC,GACG,CACR,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC","sourcesContent":["import { FC, MouseEvent, useRef } from 'react';\n\nimport {\n Breadcrumbs,\n Flex,\n Icon,\n registerIcon,\n Text,\n Link,\n MenuItemProps,\n Button,\n MenuButton,\n useI18n,\n useAfterInitialEffect\n} from '@pega/cosmos-react-core';\nimport * as pencilIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/pencil.icon';\nimport * as moreIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/more.icon';\n\nimport {\n StyledCaseHeader,\n StyledCaseIconWrap,\n StyledCaseHeaderText,\n StyledPromotedActions,\n StyledExpandCollapseButton,\n StyledSubheading\n} from './CaseView.styles';\nimport { useCaseViewContext } from './CaseView.context';\n\nregisterIcon(pencilIcon, moreIcon);\n\nconst CaseHeader: FC = () => {\n const t = useI18n();\n\n const {\n caseId,\n icon,\n heading,\n subheading,\n actions,\n caseLink,\n parentCases,\n onEdit,\n followed,\n onFollowedChange,\n promotedActions,\n summaryId,\n summaryExpanded,\n onToggleSummary,\n isPreview,\n aboveMD,\n persistentUtility\n } = useCaseViewContext();\n\n const caseActions: MenuItemProps[] | undefined = actions\n ? actions.map(action => {\n return {\n ...action,\n primary: action.text,\n visual: action.icon ? <Icon name={action.icon} /> : null\n };\n })\n : undefined;\n\n const toggleButtonRef = useRef<HTMLButtonElement>(null);\n\n // FIXME: This is a hack to get the Tooltip to reset its position when the summary changes layout.\n useAfterInitialEffect(() => {\n if (toggleButtonRef.current && toggleButtonRef.current === document.activeElement) {\n toggleButtonRef.current.blur();\n setTimeout(() => {\n toggleButtonRef.current?.focus();\n }, 0);\n }\n }, [summaryExpanded]);\n\n return (\n <div>\n <Flex as={StyledCaseHeader} container={{ gap: 2, alignItems: 'start' }}>\n {!isPreview && aboveMD && onToggleSummary && !persistentUtility && (\n <StyledExpandCollapseButton\n ref={toggleButtonRef}\n onClick={onToggleSummary}\n label={t(summaryExpanded ? 'collapse' : 'expand')}\n aria-label={t(summaryExpanded ? 'collapse_summary_panel' : 'expand_summary_panel')}\n icon\n compact\n aria-expanded={summaryExpanded ? 'true' : 'false'}\n aria-controls={summaryId}\n >\n <Icon name='arrow-micro-left' />\n </StyledExpandCollapseButton>\n )}\n\n {icon && (\n <Flex container item={{ shrink: 0 }} as={StyledCaseIconWrap}>\n {icon}\n </Flex>\n )}\n <Flex\n as={StyledCaseHeaderText}\n container={{ direction: 'column' }}\n item={{ grow: 1, shrink: 0, basis: '0' }}\n >\n <Text variant='h1'>{caseLink ? <Link {...caseLink}>{heading}</Link> : heading}</Text>\n {subheading && (!parentCases || subheading !== caseId) && (\n <StyledSubheading>{subheading}</StyledSubheading>\n )}\n {parentCases && (\n <Breadcrumbs\n forwardedAs='p'\n path={[\n ...parentCases,\n { ...caseLink, id: caseId, primary: caseId, href: caseLink?.href }\n ]}\n />\n )}\n </Flex>\n <div>\n {onEdit && (\n <Button icon variant='simple' onClick={onEdit} label={t('edit')}>\n <Icon name='pencil' />\n </Button>\n )}\n\n {caseActions && (\n <MenuButton\n icon='more'\n iconOnly\n variant='simple'\n text={t('actions')}\n menu={{\n items:\n followed !== undefined\n ? [\n {\n id: 'follow',\n primary: followed ? t('unfollow') : t('follow'),\n onClick: () => onFollowedChange?.(!followed)\n },\n ...caseActions\n ]\n : caseActions,\n scrollAt: 20\n }}\n />\n )}\n </div>\n </Flex>\n\n {promotedActions && promotedActions.length > 0 ? (\n <Flex as={StyledPromotedActions} container={{ wrap: 'wrap', gap: 1, pad: [1, 2] }}>\n {promotedActions.map(promotedAction => (\n <Button\n variant='secondary'\n onClick={(e: MouseEvent<HTMLButtonElement>) =>\n promotedAction.onClick?.(promotedAction.id, e)\n }\n >\n {promotedAction.text}\n </Button>\n ))}\n </Flex>\n ) : null}\n </div>\n );\n};\n\nexport default CaseHeader;\n"]}
@@ -1,13 +0,0 @@
1
- import { FC, ReactNode } from 'react';
2
- import { TabsProps, ForwardProps } from '@pega/cosmos-react-core';
3
- export interface MobileCaseViewProps {
4
- title: string;
5
- tabs: TabsProps;
6
- tabContent: ReactNode;
7
- }
8
- export declare const StyledMobileCaseView: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
9
- export declare const StyledMobileCaseViewHeader: import("styled-components").StyledComponent<"header", import("styled-components").DefaultTheme, {}, never>;
10
- /** @deprecated */
11
- declare const MobileCaseView: FC<ForwardProps & MobileCaseViewProps>;
12
- export default MobileCaseView;
13
- //# sourceMappingURL=MobileCaseView.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MobileCaseView.d.ts","sourceRoot":"","sources":["../../../src/components/CaseView/MobileCaseView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGtC,OAAO,EAGL,SAAS,EAGT,YAAY,EACb,MAAM,yBAAyB,CAAC;AAGjC,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,SAAS,CAAC;IAChB,UAAU,EAAE,SAAS,CAAC;CACvB;AAED,eAAO,MAAM,oBAAoB,yGAGhC,CAAC;AAEF,eAAO,MAAM,0BAA0B,4GAOtC,CAAC;AAKF,kBAAkB;AAClB,QAAA,MAAM,cAAc,EAAE,EAAE,CAAC,YAAY,GAAG,mBAAmB,CAgB1D,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1,25 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import styled from 'styled-components';
3
- import { Flex, Tabs, Text, defaultThemeProp } from '@pega/cosmos-react-core';
4
- import { StyledText } from '@pega/cosmos-react-core/lib/components/Text/Text';
5
- export const StyledMobileCaseView = styled.div `
6
- min-height: 100vh;
7
- background-color: #e9eef3;
8
- `;
9
- export const StyledMobileCaseViewHeader = styled.header `
10
- color: ${props => props.theme.base.palette.light};
11
- background-color: ${props => props.theme.base.palette.interactive};
12
-
13
- ${StyledText} {
14
- padding: ${props => props.theme.base.spacing};
15
- }
16
- `;
17
- StyledMobileCaseView.defaultProps = defaultThemeProp;
18
- StyledMobileCaseViewHeader.defaultProps = defaultThemeProp;
19
- /** @deprecated */
20
- const MobileCaseView = (props) => {
21
- const { tabs, tabContent, title, ...restProps } = props;
22
- return (_jsxs(Flex, { container: { direction: 'column' }, as: StyledMobileCaseView, ...restProps, children: [_jsxs(Flex, { container: { direction: 'column' }, item: { shrink: 0 }, as: StyledMobileCaseViewHeader, children: [_jsx(Text, { as: 'h1', children: title }), _jsx(Tabs, { ...tabs, type: 'horizontal', inverted: true })] }), tabContent] }));
23
- };
24
- export default MobileCaseView;
25
- //# sourceMappingURL=MobileCaseView.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MobileCaseView.js","sourceRoot":"","sources":["../../../src/components/CaseView/MobileCaseView.tsx"],"names":[],"mappings":";AACA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EACL,IAAI,EACJ,IAAI,EAEJ,IAAI,EACJ,gBAAgB,EAEjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,kDAAkD,CAAC;AAQ9E,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC,GAAG,CAAA;;;CAG7C,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,MAAM,CAAC,MAAM,CAAA;WAC5C,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK;sBAC5B,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW;;IAE/D,UAAU;eACC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO;;CAE/C,CAAC;AAEF,oBAAoB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AACrD,0BAA0B,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAE3D,kBAAkB;AAClB,MAAM,cAAc,GAA2C,CAAC,KAA0B,EAAE,EAAE;IAC5F,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;IAExD,OAAO,CACL,MAAC,IAAI,IAAC,SAAS,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,oBAAoB,KAAM,SAAS,aAC/E,MAAC,IAAI,IACH,SAAS,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,EAClC,IAAI,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,EACnB,EAAE,EAAE,0BAA0B,aAE9B,KAAC,IAAI,IAAC,EAAE,EAAC,IAAI,YAAE,KAAK,GAAQ,EAC5B,KAAC,IAAI,OAAK,IAAI,EAAE,IAAI,EAAC,YAAY,EAAC,QAAQ,SAAG,IACxC,EACN,UAAU,IACN,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["import { FC, ReactNode } from 'react';\nimport styled from 'styled-components';\n\nimport {\n Flex,\n Tabs,\n TabsProps,\n Text,\n defaultThemeProp,\n ForwardProps\n} from '@pega/cosmos-react-core';\nimport { StyledText } from '@pega/cosmos-react-core/lib/components/Text/Text';\n\nexport interface MobileCaseViewProps {\n title: string;\n tabs: TabsProps;\n tabContent: ReactNode;\n}\n\nexport const StyledMobileCaseView = styled.div`\n min-height: 100vh;\n background-color: #e9eef3;\n`;\n\nexport const StyledMobileCaseViewHeader = styled.header`\n color: ${props => props.theme.base.palette.light};\n background-color: ${props => props.theme.base.palette.interactive};\n\n ${StyledText} {\n padding: ${props => props.theme.base.spacing};\n }\n`;\n\nStyledMobileCaseView.defaultProps = defaultThemeProp;\nStyledMobileCaseViewHeader.defaultProps = defaultThemeProp;\n\n/** @deprecated */\nconst MobileCaseView: FC<ForwardProps & MobileCaseViewProps> = (props: MobileCaseViewProps) => {\n const { tabs, tabContent, title, ...restProps } = props;\n\n return (\n <Flex container={{ direction: 'column' }} as={StyledMobileCaseView} {...restProps}>\n <Flex\n container={{ direction: 'column' }}\n item={{ shrink: 0 }}\n as={StyledMobileCaseViewHeader}\n >\n <Text as='h1'>{title}</Text>\n <Tabs {...tabs} type='horizontal' inverted />\n </Flex>\n {tabContent}\n </Flex>\n );\n};\n\nexport default MobileCaseView;\n"]}