@pega/react-sdk-components 23.1.10 → 23.1.11

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 (588) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +17 -0
  3. package/SECURITY.md +10 -0
  4. package/lib/bridge/Context/StoreContext.js +3 -3
  5. package/lib/bridge/Context/StoreContext.js.map +1 -1
  6. package/lib/bridge/helpers/sdk_component_map.d.ts.map +1 -1
  7. package/lib/bridge/helpers/sdk_component_map.js +24 -47
  8. package/lib/bridge/helpers/sdk_component_map.js.map +1 -1
  9. package/lib/bridge/react_pconnect.d.ts.map +1 -1
  10. package/lib/bridge/react_pconnect.js +17 -28
  11. package/lib/bridge/react_pconnect.js.map +1 -1
  12. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.d.ts +1 -1
  13. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.d.ts.map +1 -1
  14. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js +2 -2
  15. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js.map +1 -1
  16. package/lib/components/designSystemExtension/Banner/Banner.d.ts.map +1 -1
  17. package/lib/components/designSystemExtension/Banner/Banner.js +2 -10
  18. package/lib/components/designSystemExtension/Banner/Banner.js.map +1 -1
  19. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.css +0 -1
  20. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts +1 -1
  21. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts.map +1 -1
  22. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js +30 -27
  23. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js.map +1 -1
  24. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts +1 -1
  25. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts.map +1 -1
  26. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js +9 -15
  27. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js.map +1 -1
  28. package/lib/components/designSystemExtension/DetailsFields/index.js.map +1 -1
  29. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts +5 -4
  30. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts.map +1 -1
  31. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js +23 -12
  32. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js.map +1 -1
  33. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.d.ts +1 -1
  34. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.d.ts.map +1 -1
  35. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js +4 -16
  36. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js.map +1 -1
  37. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.d.ts.map +1 -1
  38. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js +4 -10
  39. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js.map +1 -1
  40. package/lib/components/designSystemExtension/Operator/Operator.d.ts +15 -15
  41. package/lib/components/designSystemExtension/Operator/Operator.d.ts.map +1 -1
  42. package/lib/components/designSystemExtension/Operator/Operator.js +49 -62
  43. package/lib/components/designSystemExtension/Operator/Operator.js.map +1 -1
  44. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts +2 -3
  45. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts.map +1 -1
  46. package/lib/components/designSystemExtension/Pulse/Pulse.js +7 -10
  47. package/lib/components/designSystemExtension/Pulse/Pulse.js.map +1 -1
  48. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.d.ts.map +1 -1
  49. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js +7 -9
  50. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js.map +1 -1
  51. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.d.ts +1 -1
  52. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.d.ts.map +1 -1
  53. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js +5 -11
  54. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js.map +1 -1
  55. package/lib/components/field/AutoComplete/AutoComplete.d.ts +2 -2
  56. package/lib/components/field/AutoComplete/AutoComplete.d.ts.map +1 -1
  57. package/lib/components/field/AutoComplete/AutoComplete.js +21 -23
  58. package/lib/components/field/AutoComplete/AutoComplete.js.map +1 -1
  59. package/lib/components/field/CancelAlert/CancelAlert.d.ts +8 -3
  60. package/lib/components/field/CancelAlert/CancelAlert.d.ts.map +1 -1
  61. package/lib/components/field/CancelAlert/CancelAlert.js +76 -68
  62. package/lib/components/field/CancelAlert/CancelAlert.js.map +1 -1
  63. package/lib/components/field/CancelAlert/index.js.map +1 -1
  64. package/lib/components/field/Checkbox/Checkbox.d.ts +9 -1
  65. package/lib/components/field/Checkbox/Checkbox.d.ts.map +1 -1
  66. package/lib/components/field/Checkbox/Checkbox.js +13 -41
  67. package/lib/components/field/Checkbox/Checkbox.js.map +1 -1
  68. package/lib/components/field/Currency/Currency.d.ts +1 -1
  69. package/lib/components/field/Currency/Currency.d.ts.map +1 -1
  70. package/lib/components/field/Currency/Currency.js +13 -34
  71. package/lib/components/field/Currency/Currency.js.map +1 -1
  72. package/lib/components/field/Currency/currency-utils.d.ts.map +1 -1
  73. package/lib/components/field/Currency/currency-utils.js +4 -5
  74. package/lib/components/field/Currency/currency-utils.js.map +1 -1
  75. package/lib/components/field/Date/Date.d.ts +1 -1
  76. package/lib/components/field/Date/Date.d.ts.map +1 -1
  77. package/lib/components/field/Date/Date.js +14 -10
  78. package/lib/components/field/Date/Date.js.map +1 -1
  79. package/lib/components/field/DateTime/DateTime.d.ts +1 -1
  80. package/lib/components/field/DateTime/DateTime.d.ts.map +1 -1
  81. package/lib/components/field/DateTime/DateTime.js +8 -8
  82. package/lib/components/field/DateTime/DateTime.js.map +1 -1
  83. package/lib/components/field/Decimal/Decimal.d.ts +1 -1
  84. package/lib/components/field/Decimal/Decimal.d.ts.map +1 -1
  85. package/lib/components/field/Decimal/Decimal.js +10 -27
  86. package/lib/components/field/Decimal/Decimal.js.map +1 -1
  87. package/lib/components/field/Decimal/index.js.map +1 -1
  88. package/lib/components/field/Dropdown/Dropdown.d.ts +13 -1
  89. package/lib/components/field/Dropdown/Dropdown.d.ts.map +1 -1
  90. package/lib/components/field/Dropdown/Dropdown.js +105 -29
  91. package/lib/components/field/Dropdown/Dropdown.js.map +1 -1
  92. package/lib/components/field/Email/Email.d.ts +1 -1
  93. package/lib/components/field/Email/Email.d.ts.map +1 -1
  94. package/lib/components/field/Email/Email.js +8 -9
  95. package/lib/components/field/Email/Email.js.map +1 -1
  96. package/lib/components/field/Email/index.js.map +1 -1
  97. package/lib/components/field/Group/Group.d.ts +13 -0
  98. package/lib/components/field/Group/Group.d.ts.map +1 -0
  99. package/lib/components/field/Group/Group.js +15 -0
  100. package/lib/components/field/Group/Group.js.map +1 -0
  101. package/lib/components/field/Group/index.d.ts +2 -0
  102. package/lib/components/field/Group/index.d.ts.map +1 -0
  103. package/lib/components/field/Group/index.js +2 -0
  104. package/lib/components/field/Group/index.js.map +1 -0
  105. package/lib/components/field/Integer/Integer.d.ts +1 -1
  106. package/lib/components/field/Integer/Integer.d.ts.map +1 -1
  107. package/lib/components/field/Integer/Integer.js +6 -6
  108. package/lib/components/field/Integer/Integer.js.map +1 -1
  109. package/lib/components/field/Percentage/Percentage.d.ts +2 -1
  110. package/lib/components/field/Percentage/Percentage.d.ts.map +1 -1
  111. package/lib/components/field/Percentage/Percentage.js +25 -28
  112. package/lib/components/field/Percentage/Percentage.js.map +1 -1
  113. package/lib/components/field/Phone/Phone.d.ts +1 -1
  114. package/lib/components/field/Phone/Phone.d.ts.map +1 -1
  115. package/lib/components/field/Phone/Phone.js +9 -10
  116. package/lib/components/field/Phone/Phone.js.map +1 -1
  117. package/lib/components/field/Phone/index.js.map +1 -1
  118. package/lib/components/field/RadioButtons/RadioButtons.d.ts +7 -1
  119. package/lib/components/field/RadioButtons/RadioButtons.d.ts.map +1 -1
  120. package/lib/components/field/RadioButtons/RadioButtons.js +18 -21
  121. package/lib/components/field/RadioButtons/RadioButtons.js.map +1 -1
  122. package/lib/components/field/RichText/RichText.d.ts +1 -1
  123. package/lib/components/field/RichText/RichText.d.ts.map +1 -1
  124. package/lib/components/field/RichText/RichText.js +9 -8
  125. package/lib/components/field/RichText/RichText.js.map +1 -1
  126. package/lib/components/field/ScalarList/ScalarList.d.ts +1 -1
  127. package/lib/components/field/ScalarList/ScalarList.d.ts.map +1 -1
  128. package/lib/components/field/ScalarList/ScalarList.js +7 -9
  129. package/lib/components/field/ScalarList/ScalarList.js.map +1 -1
  130. package/lib/components/field/SemanticLink/SemanticLink.d.ts +1 -1
  131. package/lib/components/field/SemanticLink/SemanticLink.d.ts.map +1 -1
  132. package/lib/components/field/SemanticLink/SemanticLink.js +4 -8
  133. package/lib/components/field/SemanticLink/SemanticLink.js.map +1 -1
  134. package/lib/components/field/SemanticLink/utils.d.ts.map +1 -1
  135. package/lib/components/field/SemanticLink/utils.js +8 -8
  136. package/lib/components/field/SemanticLink/utils.js.map +1 -1
  137. package/lib/components/field/TextArea/TextArea.d.ts +1 -1
  138. package/lib/components/field/TextArea/TextArea.d.ts.map +1 -1
  139. package/lib/components/field/TextArea/TextArea.js +5 -5
  140. package/lib/components/field/TextArea/TextArea.js.map +1 -1
  141. package/lib/components/field/TextContent/TextContent.d.ts +1 -1
  142. package/lib/components/field/TextContent/TextContent.d.ts.map +1 -1
  143. package/lib/components/field/TextContent/TextContent.js +2 -2
  144. package/lib/components/field/TextContent/TextContent.js.map +1 -1
  145. package/lib/components/field/TextInput/TextInput.d.ts +1 -1
  146. package/lib/components/field/TextInput/TextInput.d.ts.map +1 -1
  147. package/lib/components/field/TextInput/TextInput.js +7 -6
  148. package/lib/components/field/TextInput/TextInput.js.map +1 -1
  149. package/lib/components/field/TextInput/index.js.map +1 -1
  150. package/lib/components/field/Time/Time.d.ts +1 -1
  151. package/lib/components/field/Time/Time.d.ts.map +1 -1
  152. package/lib/components/field/Time/Time.js +7 -7
  153. package/lib/components/field/Time/Time.js.map +1 -1
  154. package/lib/components/field/URL/URL.d.ts +1 -1
  155. package/lib/components/field/URL/URL.d.ts.map +1 -1
  156. package/lib/components/field/URL/URL.js +6 -6
  157. package/lib/components/field/URL/URL.js.map +1 -1
  158. package/lib/components/field/URL/index.js.map +1 -1
  159. package/lib/components/field/UserReference/UserReference.d.ts +3 -3
  160. package/lib/components/field/UserReference/UserReference.d.ts.map +1 -1
  161. package/lib/components/field/UserReference/UserReference.js +11 -11
  162. package/lib/components/field/UserReference/UserReference.js.map +1 -1
  163. package/lib/components/field/UserReference/UserReferenceUtils.js +2 -2
  164. package/lib/components/field/UserReference/UserReferenceUtils.js.map +1 -1
  165. package/lib/components/helpers/attachmentHelpers.d.ts.map +1 -1
  166. package/lib/components/helpers/attachmentHelpers.js +6 -6
  167. package/lib/components/helpers/attachmentHelpers.js.map +1 -1
  168. package/lib/components/helpers/case-utils.d.ts.map +1 -1
  169. package/lib/components/helpers/case-utils.js +5 -5
  170. package/lib/components/helpers/case-utils.js.map +1 -1
  171. package/lib/components/helpers/common-utils.d.ts +1 -0
  172. package/lib/components/helpers/common-utils.d.ts.map +1 -1
  173. package/lib/components/helpers/common-utils.js +4 -1
  174. package/lib/components/helpers/common-utils.js.map +1 -1
  175. package/lib/components/helpers/data_page.d.ts.map +1 -1
  176. package/lib/components/helpers/data_page.js +2 -3
  177. package/lib/components/helpers/data_page.js.map +1 -1
  178. package/lib/components/helpers/date-format-utils.js.map +1 -1
  179. package/lib/components/helpers/event-utils.js +3 -3
  180. package/lib/components/helpers/event-utils.js.map +1 -1
  181. package/lib/components/helpers/field-group-utils.js +1 -1
  182. package/lib/components/helpers/field-group-utils.js.map +1 -1
  183. package/lib/components/helpers/formatters/Boolean.d.ts.map +1 -1
  184. package/lib/components/helpers/formatters/Boolean.js +9 -20
  185. package/lib/components/helpers/formatters/Boolean.js.map +1 -1
  186. package/lib/components/helpers/formatters/Currency.d.ts +2 -2
  187. package/lib/components/helpers/formatters/Currency.d.ts.map +1 -1
  188. package/lib/components/helpers/formatters/Currency.js +13 -14
  189. package/lib/components/helpers/formatters/Currency.js.map +1 -1
  190. package/lib/components/helpers/formatters/CurrencyMap.d.ts.map +1 -1
  191. package/lib/components/helpers/formatters/CurrencyMap.js +500 -500
  192. package/lib/components/helpers/formatters/CurrencyMap.js.map +1 -1
  193. package/lib/components/helpers/formatters/Date.d.ts +4 -4
  194. package/lib/components/helpers/formatters/Date.d.ts.map +1 -1
  195. package/lib/components/helpers/formatters/Date.js +20 -20
  196. package/lib/components/helpers/formatters/Date.js.map +1 -1
  197. package/lib/components/helpers/formatters/common.d.ts.map +1 -1
  198. package/lib/components/helpers/formatters/common.js +1 -1
  199. package/lib/components/helpers/formatters/common.js.map +1 -1
  200. package/lib/components/helpers/formatters/index.d.ts +6 -6
  201. package/lib/components/helpers/formatters/index.d.ts.map +1 -1
  202. package/lib/components/helpers/formatters/index.js +25 -19
  203. package/lib/components/helpers/formatters/index.js.map +1 -1
  204. package/lib/components/helpers/reactContextHelpers.d.ts.map +1 -1
  205. package/lib/components/helpers/reactContextHelpers.js +1 -1
  206. package/lib/components/helpers/reactContextHelpers.js.map +1 -1
  207. package/lib/components/helpers/simpleTableHelpers.d.ts.map +1 -1
  208. package/lib/components/helpers/simpleTableHelpers.js +44 -52
  209. package/lib/components/helpers/simpleTableHelpers.js.map +1 -1
  210. package/lib/components/helpers/state-utils.d.ts.map +1 -1
  211. package/lib/components/helpers/state-utils.js +6 -8
  212. package/lib/components/helpers/state-utils.js.map +1 -1
  213. package/lib/components/helpers/template-utils.d.ts +1 -1
  214. package/lib/components/helpers/template-utils.d.ts.map +1 -1
  215. package/lib/components/helpers/template-utils.js +1 -2
  216. package/lib/components/helpers/template-utils.js.map +1 -1
  217. package/lib/components/helpers/utils.d.ts +1 -1
  218. package/lib/components/helpers/utils.d.ts.map +1 -1
  219. package/lib/components/helpers/utils.js +3 -8
  220. package/lib/components/helpers/utils.js.map +1 -1
  221. package/lib/components/helpers/versionHelpers.d.ts.map +1 -1
  222. package/lib/components/helpers/versionHelpers.js +1 -1
  223. package/lib/components/helpers/versionHelpers.js.map +1 -1
  224. package/lib/components/infra/ActionButtons/ActionButtons.d.ts +2 -2
  225. package/lib/components/infra/ActionButtons/ActionButtons.d.ts.map +1 -1
  226. package/lib/components/infra/ActionButtons/ActionButtons.js +10 -14
  227. package/lib/components/infra/ActionButtons/ActionButtons.js.map +1 -1
  228. package/lib/components/infra/ActionButtons/index.js.map +1 -1
  229. package/lib/components/infra/Assignment/Assignment.d.ts +10 -2
  230. package/lib/components/infra/Assignment/Assignment.d.ts.map +1 -1
  231. package/lib/components/infra/Assignment/Assignment.js +68 -71
  232. package/lib/components/infra/Assignment/Assignment.js.map +1 -1
  233. package/lib/components/infra/Assignment/index.js.map +1 -1
  234. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts +3 -5
  235. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts.map +1 -1
  236. package/lib/components/infra/AssignmentCard/AssignmentCard.js +4 -5
  237. package/lib/components/infra/AssignmentCard/AssignmentCard.js.map +1 -1
  238. package/lib/components/infra/AssignmentCard/index.js.map +1 -1
  239. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts +11 -1
  240. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts.map +1 -1
  241. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js +36 -158
  242. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js.map +1 -1
  243. package/lib/components/infra/Containers/FlowContainer/helpers.d.ts.map +1 -1
  244. package/lib/components/infra/Containers/FlowContainer/helpers.js +30 -30
  245. package/lib/components/infra/Containers/FlowContainer/helpers.js.map +1 -1
  246. package/lib/components/infra/Containers/FlowContainer/index.js.map +1 -1
  247. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts +9 -0
  248. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts.map +1 -0
  249. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js +36 -0
  250. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js.map +1 -0
  251. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.d.ts +2 -0
  252. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.d.ts.map +1 -0
  253. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.js +2 -0
  254. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.js.map +1 -0
  255. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts +8 -1
  256. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts.map +1 -1
  257. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js +178 -160
  258. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js.map +1 -1
  259. package/lib/components/infra/Containers/ModalViewContainer/index.js.map +1 -1
  260. package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts +9 -0
  261. package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts.map +1 -0
  262. package/lib/components/infra/Containers/SimpleView/SimpleView.js +29 -0
  263. package/lib/components/infra/Containers/SimpleView/SimpleView.js.map +1 -0
  264. package/lib/components/infra/Containers/SimpleView/helper.d.ts +10 -0
  265. package/lib/components/infra/Containers/SimpleView/helper.d.ts.map +1 -0
  266. package/lib/components/infra/Containers/SimpleView/helper.js +102 -0
  267. package/lib/components/infra/Containers/SimpleView/helper.js.map +1 -0
  268. package/lib/components/infra/Containers/SimpleView/index.d.ts +2 -0
  269. package/lib/components/infra/Containers/SimpleView/index.d.ts.map +1 -0
  270. package/lib/components/infra/Containers/SimpleView/index.js +2 -0
  271. package/lib/components/infra/Containers/SimpleView/index.js.map +1 -0
  272. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts +1 -1
  273. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts.map +1 -1
  274. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js +17 -24
  275. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js.map +1 -1
  276. package/lib/components/infra/Containers/helpers.d.ts +2 -0
  277. package/lib/components/infra/Containers/helpers.d.ts.map +1 -0
  278. package/lib/components/infra/Containers/helpers.js +7 -0
  279. package/lib/components/infra/Containers/helpers.js.map +1 -0
  280. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts +3 -4
  281. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts.map +1 -1
  282. package/lib/components/infra/DashboardFilter/DashboardFilter.js +13 -17
  283. package/lib/components/infra/DashboardFilter/DashboardFilter.js.map +1 -1
  284. package/lib/components/infra/DashboardFilter/filterUtils.d.ts.map +1 -1
  285. package/lib/components/infra/DashboardFilter/filterUtils.js +10 -12
  286. package/lib/components/infra/DashboardFilter/filterUtils.js.map +1 -1
  287. package/lib/components/infra/DeferLoad/DeferLoad.d.ts +9 -1
  288. package/lib/components/infra/DeferLoad/DeferLoad.d.ts.map +1 -1
  289. package/lib/components/infra/DeferLoad/DeferLoad.js +8 -17
  290. package/lib/components/infra/DeferLoad/DeferLoad.js.map +1 -1
  291. package/lib/components/infra/DeferLoad/index.js.map +1 -1
  292. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts +1 -1
  293. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
  294. package/lib/components/infra/ErrorBoundary/ErrorBoundary.js +15 -14
  295. package/lib/components/infra/ErrorBoundary/ErrorBoundary.js.map +1 -1
  296. package/lib/components/infra/MultiStep/MultiStep.css +11 -15
  297. package/lib/components/infra/MultiStep/MultiStep.d.ts +5 -7
  298. package/lib/components/infra/MultiStep/MultiStep.d.ts.map +1 -1
  299. package/lib/components/infra/MultiStep/MultiStep.js +29 -80
  300. package/lib/components/infra/MultiStep/MultiStep.js.map +1 -1
  301. package/lib/components/infra/MultiStep/index.js.map +1 -1
  302. package/lib/components/infra/NavBar/NavBar.css +103 -105
  303. package/lib/components/infra/NavBar/NavBar.d.ts +3 -3
  304. package/lib/components/infra/NavBar/NavBar.d.ts.map +1 -1
  305. package/lib/components/infra/NavBar/NavBar.js +18 -52
  306. package/lib/components/infra/NavBar/NavBar.js.map +1 -1
  307. package/lib/components/infra/Reference/Reference.d.ts +9 -1
  308. package/lib/components/infra/Reference/Reference.d.ts.map +1 -1
  309. package/lib/components/infra/Reference/Reference.js +5 -12
  310. package/lib/components/infra/Reference/Reference.js.map +1 -1
  311. package/lib/components/infra/Region/Region.d.ts +2 -3
  312. package/lib/components/infra/Region/Region.d.ts.map +1 -1
  313. package/lib/components/infra/Region/Region.js +2 -3
  314. package/lib/components/infra/Region/Region.js.map +1 -1
  315. package/lib/components/infra/RootContainer/RootContainer.d.ts +14 -1
  316. package/lib/components/infra/RootContainer/RootContainer.d.ts.map +1 -1
  317. package/lib/components/infra/RootContainer/RootContainer.js +40 -62
  318. package/lib/components/infra/RootContainer/RootContainer.js.map +1 -1
  319. package/lib/components/infra/RootContainer/index.js.map +1 -1
  320. package/lib/components/infra/Stages/Stages.d.ts +2 -2
  321. package/lib/components/infra/Stages/Stages.d.ts.map +1 -1
  322. package/lib/components/infra/Stages/Stages.js +18 -21
  323. package/lib/components/infra/Stages/Stages.js.map +1 -1
  324. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.d.ts.map +1 -1
  325. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.js +6 -8
  326. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.js.map +1 -1
  327. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.d.ts +1 -1
  328. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.d.ts.map +1 -1
  329. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js +10 -9
  330. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js.map +1 -1
  331. package/lib/components/infra/View/View.d.ts +3 -4
  332. package/lib/components/infra/View/View.d.ts.map +1 -1
  333. package/lib/components/infra/View/View.js +6 -11
  334. package/lib/components/infra/View/View.js.map +1 -1
  335. package/lib/components/template/AppShell/AppShell.css +22 -23
  336. package/lib/components/template/AppShell/AppShell.d.ts +6 -7
  337. package/lib/components/template/AppShell/AppShell.d.ts.map +1 -1
  338. package/lib/components/template/AppShell/AppShell.js +23 -29
  339. package/lib/components/template/AppShell/AppShell.js.map +1 -1
  340. package/lib/components/template/BannerPage/BannerPage.d.ts +4 -4
  341. package/lib/components/template/BannerPage/BannerPage.d.ts.map +1 -1
  342. package/lib/components/template/BannerPage/BannerPage.js +3 -3
  343. package/lib/components/template/BannerPage/BannerPage.js.map +1 -1
  344. package/lib/components/template/CaseSummary/CaseSummary.d.ts +3 -4
  345. package/lib/components/template/CaseSummary/CaseSummary.d.ts.map +1 -1
  346. package/lib/components/template/CaseSummary/CaseSummary.js +44 -8
  347. package/lib/components/template/CaseSummary/CaseSummary.js.map +1 -1
  348. package/lib/components/template/CaseView/CaseView.d.ts +3 -4
  349. package/lib/components/template/CaseView/CaseView.d.ts.map +1 -1
  350. package/lib/components/template/CaseView/CaseView.js +18 -41
  351. package/lib/components/template/CaseView/CaseView.js.map +1 -1
  352. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts +3 -3
  353. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts.map +1 -1
  354. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js +37 -7
  355. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js.map +1 -1
  356. package/lib/components/template/Confirmation/Confirmation.d.ts +3 -4
  357. package/lib/components/template/Confirmation/Confirmation.d.ts.map +1 -1
  358. package/lib/components/template/Confirmation/Confirmation.js +7 -14
  359. package/lib/components/template/Confirmation/Confirmation.js.map +1 -1
  360. package/lib/components/template/DataReference/DataReference.d.ts +4 -4
  361. package/lib/components/template/DataReference/DataReference.d.ts.map +1 -1
  362. package/lib/components/template/DataReference/DataReference.js +35 -49
  363. package/lib/components/template/DataReference/DataReference.js.map +1 -1
  364. package/lib/components/template/DefaultForm/DefaultForm.css +7 -3
  365. package/lib/components/template/DefaultForm/DefaultForm.d.ts +8 -2
  366. package/lib/components/template/DefaultForm/DefaultForm.d.ts.map +1 -1
  367. package/lib/components/template/DefaultForm/DefaultForm.js +5 -14
  368. package/lib/components/template/DefaultForm/DefaultForm.js.map +1 -1
  369. package/lib/components/template/Details/Details/Details.d.ts +8 -1
  370. package/lib/components/template/Details/Details/Details.d.ts.map +1 -1
  371. package/lib/components/template/Details/Details/Details.js +5 -13
  372. package/lib/components/template/Details/Details/Details.js.map +1 -1
  373. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts +3 -4
  374. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts.map +1 -1
  375. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js +5 -10
  376. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js.map +1 -1
  377. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts +8 -1
  378. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts.map +1 -1
  379. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js +5 -16
  380. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js.map +1 -1
  381. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts +8 -1
  382. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts.map +1 -1
  383. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js +5 -16
  384. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js.map +1 -1
  385. package/lib/components/template/Details/DetailsTwoColumn/index.js.map +1 -1
  386. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts +7 -1
  387. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts.map +1 -1
  388. package/lib/components/template/Details/DynamicTabs/DynamicTabs.js +6 -17
  389. package/lib/components/template/Details/DynamicTabs/DynamicTabs.js.map +1 -1
  390. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts +2 -2
  391. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts.map +1 -1
  392. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js +8 -9
  393. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js.map +1 -1
  394. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts +3 -4
  395. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts.map +1 -1
  396. package/lib/components/template/InlineDashboard/InlineDashboard.js +3 -9
  397. package/lib/components/template/InlineDashboard/InlineDashboard.js.map +1 -1
  398. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts +3 -4
  399. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts.map +1 -1
  400. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.js +7 -6
  401. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.js.map +1 -1
  402. package/lib/components/template/ListPage/ListPage.d.ts +1 -1
  403. package/lib/components/template/ListPage/ListPage.d.ts.map +1 -1
  404. package/lib/components/template/ListPage/ListPage.js +2 -2
  405. package/lib/components/template/ListPage/ListPage.js.map +1 -1
  406. package/lib/components/template/ListView/DefaultViewMeta.d.ts.map +1 -1
  407. package/lib/components/template/ListView/DefaultViewMeta.js.map +1 -1
  408. package/lib/components/template/ListView/ListView.d.ts +16 -1
  409. package/lib/components/template/ListView/ListView.d.ts.map +1 -1
  410. package/lib/components/template/ListView/ListView.js +103 -178
  411. package/lib/components/template/ListView/ListView.js.map +1 -1
  412. package/lib/components/template/ListView/hooks.d.ts.map +1 -1
  413. package/lib/components/template/ListView/hooks.js +4 -6
  414. package/lib/components/template/ListView/hooks.js.map +1 -1
  415. package/lib/components/template/ListView/utils.d.ts +1 -1
  416. package/lib/components/template/ListView/utils.d.ts.map +1 -1
  417. package/lib/components/template/ListView/utils.js +38 -46
  418. package/lib/components/template/ListView/utils.js.map +1 -1
  419. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts +1 -1
  420. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts.map +1 -1
  421. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js +3 -3
  422. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js.map +1 -1
  423. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.css +0 -2
  424. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts +4 -4
  425. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts.map +1 -1
  426. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.js +2 -10
  427. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.js.map +1 -1
  428. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts +8 -1
  429. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts.map +1 -1
  430. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js +5 -16
  431. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js.map +1 -1
  432. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.css +0 -2
  433. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts +4 -4
  434. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts.map +1 -1
  435. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.js +2 -5
  436. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.js.map +1 -1
  437. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts +4 -4
  438. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts.map +1 -1
  439. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.js +3 -5
  440. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.js.map +1 -1
  441. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts +4 -4
  442. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts.map +1 -1
  443. package/lib/components/template/OneColumn/OneColumn/OneColumn.js +9 -8
  444. package/lib/components/template/OneColumn/OneColumn/OneColumn.js.map +1 -1
  445. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts +2 -2
  446. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts.map +1 -1
  447. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.js +2 -2
  448. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.js.map +1 -1
  449. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts +4 -4
  450. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts.map +1 -1
  451. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.js +2 -2
  452. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.js.map +1 -1
  453. package/lib/components/template/PromotedFilters/PromotedFilters.css +1 -1
  454. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts +10 -1
  455. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts.map +1 -1
  456. package/lib/components/template/PromotedFilters/PromotedFilters.js +12 -29
  457. package/lib/components/template/PromotedFilters/PromotedFilters.js.map +1 -1
  458. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts +19 -1
  459. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts.map +1 -1
  460. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js +17 -20
  461. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js.map +1 -1
  462. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts +12 -7
  463. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts.map +1 -1
  464. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js +122 -132
  465. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js.map +1 -1
  466. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts +14 -1
  467. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts.map +1 -1
  468. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js +9 -21
  469. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js.map +1 -1
  470. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts +1 -1
  471. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts.map +1 -1
  472. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js +5 -5
  473. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js.map +1 -1
  474. package/lib/components/template/SubTabs/SubTabs.d.ts +4 -4
  475. package/lib/components/template/SubTabs/SubTabs.d.ts.map +1 -1
  476. package/lib/components/template/SubTabs/SubTabs.js +6 -9
  477. package/lib/components/template/SubTabs/SubTabs.js.map +1 -1
  478. package/lib/components/template/SubTabs/tabUtils.d.ts.map +1 -1
  479. package/lib/components/template/SubTabs/tabUtils.js +2 -4
  480. package/lib/components/template/SubTabs/tabUtils.js.map +1 -1
  481. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.css +0 -1
  482. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts +4 -4
  483. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts.map +1 -1
  484. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js +14 -12
  485. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js.map +1 -1
  486. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts +2 -2
  487. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts.map +1 -1
  488. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.js +2 -2
  489. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.js.map +1 -1
  490. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts +4 -4
  491. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts.map +1 -1
  492. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js +14 -12
  493. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js.map +1 -1
  494. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.css +0 -2
  495. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts +4 -4
  496. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts.map +1 -1
  497. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.js +2 -10
  498. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.js.map +1 -1
  499. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts +8 -1
  500. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts.map +1 -1
  501. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js +5 -16
  502. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js.map +1 -1
  503. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.css +0 -2
  504. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts +4 -4
  505. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts.map +1 -1
  506. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.js +2 -5
  507. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.js.map +1 -1
  508. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts +4 -4
  509. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts.map +1 -1
  510. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.js +3 -3
  511. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.js.map +1 -1
  512. package/lib/components/template/WideNarrow/WideNarrowPage/index.js.map +1 -1
  513. package/lib/components/template/WssNavBar/WssNavBar.d.ts +3 -2
  514. package/lib/components/template/WssNavBar/WssNavBar.d.ts.map +1 -1
  515. package/lib/components/template/WssNavBar/WssNavBar.js +20 -37
  516. package/lib/components/template/WssNavBar/WssNavBar.js.map +1 -1
  517. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts +2 -1
  518. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts.map +1 -1
  519. package/lib/components/widget/AppAnnouncement/AppAnnouncement.js +10 -19
  520. package/lib/components/widget/AppAnnouncement/AppAnnouncement.js.map +1 -1
  521. package/lib/components/widget/Attachment/Attachment.css +60 -1
  522. package/lib/components/widget/Attachment/Attachment.d.ts +8 -1
  523. package/lib/components/widget/Attachment/Attachment.d.ts.map +1 -1
  524. package/lib/components/widget/Attachment/Attachment.js +279 -353
  525. package/lib/components/widget/Attachment/Attachment.js.map +1 -1
  526. package/lib/components/widget/Attachment/index.js.map +1 -1
  527. package/lib/components/widget/CaseHistory/CaseHistory.d.ts +1 -1
  528. package/lib/components/widget/CaseHistory/CaseHistory.d.ts.map +1 -1
  529. package/lib/components/widget/CaseHistory/CaseHistory.js +37 -31
  530. package/lib/components/widget/CaseHistory/CaseHistory.js.map +1 -1
  531. package/lib/components/widget/CaseHistory/index.js.map +1 -1
  532. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts +4 -3
  533. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts.map +1 -1
  534. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js +2 -4
  535. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js.map +1 -1
  536. package/lib/components/widget/FileUtility/FileUtility/FileUtility.css +2 -2
  537. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts +1 -1
  538. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts.map +1 -1
  539. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js +107 -136
  540. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js.map +1 -1
  541. package/lib/components/widget/Followers/Followers.d.ts +4 -4
  542. package/lib/components/widget/Followers/Followers.d.ts.map +1 -1
  543. package/lib/components/widget/Followers/Followers.js +8 -16
  544. package/lib/components/widget/Followers/Followers.js.map +1 -1
  545. package/lib/components/widget/QuickCreate/QuickCreate.d.ts +8 -1
  546. package/lib/components/widget/QuickCreate/QuickCreate.d.ts.map +1 -1
  547. package/lib/components/widget/QuickCreate/QuickCreate.js +57 -35
  548. package/lib/components/widget/QuickCreate/QuickCreate.js.map +1 -1
  549. package/lib/components/widget/SummaryItem/SummaryItem.css +9 -9
  550. package/lib/components/widget/SummaryItem/SummaryItem.d.ts +3 -2
  551. package/lib/components/widget/SummaryItem/SummaryItem.d.ts.map +1 -1
  552. package/lib/components/widget/SummaryItem/SummaryItem.js +8 -23
  553. package/lib/components/widget/SummaryItem/SummaryItem.js.map +1 -1
  554. package/lib/components/widget/SummaryItem/index.js.map +1 -1
  555. package/lib/components/widget/SummaryList/SummaryList.d.ts +3 -2
  556. package/lib/components/widget/SummaryList/SummaryList.d.ts.map +1 -1
  557. package/lib/components/widget/SummaryList/SummaryList.js +3 -3
  558. package/lib/components/widget/SummaryList/SummaryList.js.map +1 -1
  559. package/lib/components/widget/ToDo/ToDo.css +4 -4
  560. package/lib/components/widget/ToDo/ToDo.d.ts +1 -1
  561. package/lib/components/widget/ToDo/ToDo.d.ts.map +1 -1
  562. package/lib/components/widget/ToDo/ToDo.js +31 -67
  563. package/lib/components/widget/ToDo/ToDo.js.map +1 -1
  564. package/lib/components_map.d.ts +2 -2
  565. package/lib/components_map.d.ts.map +1 -1
  566. package/lib/components_map.js +4 -2
  567. package/lib/components_map.js.map +1 -1
  568. package/lib/doc/KeyReleaseUpdates.md +21 -4
  569. package/lib/hooks/useConsolidatedRef.js +2 -2
  570. package/lib/hooks/useConsolidatedRef.js.map +1 -1
  571. package/lib/sdk-local-component-map.js +2 -2
  572. package/lib/sdk-pega-component-map.d.ts +4 -0
  573. package/lib/sdk-pega-component-map.js +104 -100
  574. package/lib/sdk-pega-component-map.js.map +1 -1
  575. package/lib/types/PConnProps.d.ts +14 -15
  576. package/package.json +5 -2
  577. package/lib/components/helpers/auth.d.ts +0 -18
  578. package/lib/components/helpers/auth.d.ts.map +0 -1
  579. package/lib/components/helpers/auth.js +0 -752
  580. package/lib/components/helpers/auth.js.map +0 -1
  581. package/lib/components/helpers/authManager.d.ts +0 -21
  582. package/lib/components/helpers/authManager.d.ts.map +0 -1
  583. package/lib/components/helpers/authManager.js +0 -864
  584. package/lib/components/helpers/authManager.js.map +0 -1
  585. package/lib/components/helpers/config_access.d.ts +0 -3
  586. package/lib/components/helpers/config_access.d.ts.map +0 -1
  587. package/lib/components/helpers/config_access.js +0 -198
  588. package/lib/components/helpers/config_access.js.map +0 -1
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,17 @@
1
+ # @pega/react-sdk-components
2
+
3
+ This Node package comprises React components that are designed to be utilized by the React SDK.
4
+
5
+ To create a project to use the Constellation React SDK, please use the **React SDK**. You can get started
6
+ with the React SDK using the information (including pointers to online documentation) at
7
+ [**Pega Community**](https://community.pega.com/marketplace/component/react-sdk) and the React SDK code
8
+ on [**GitHub**](https://github.com/pegasystems/react-sdk).
9
+
10
+ ## Additional Resources
11
+
12
+ * [Constellaton React SDK on Pega Community](https://community.pega.com/marketplace/component/react-sdk)
13
+ * [Constellation React SDK code](https://github.com/pegasystems/react-sdk)
14
+ * [Constellation SDKs Documentation](https://docs.pega.com/bundle/constellation-sdk/page/constellation-sdks/sdks/constellation-sdks.html)
15
+ * [Troubleshooting Constellation SDKs](https://docs.pega.com/bundle/constellation-sdk/page/constellation-sdks/sdks/troubleshooting-constellation-sdks.html)
16
+ * [MediaCo sample application](https://docs.pega.com/bundle/constellation-sdk/page/constellation-sdks/sdks/mediaco-sample-application.html)
17
+ * [Material UI](https://v4.mui.com/)
package/SECURITY.md ADDED
@@ -0,0 +1,10 @@
1
+ # Reporting Security Issues
2
+
3
+ Pegasystems takes security seriously. We appreciate your efforts to responsibly disclose your findings, and will make every effort to acknowledge your contributions.
4
+
5
+ To report a security issue, [email us](mailto:opensource@pega.com;security@pega.com) and include the word "SECURITY" in the subject line.
6
+
7
+ The Pega team will send a response indicating the next steps in handling your report. We may ask for additional information or guidance.
8
+
9
+ ## Learning More About Security
10
+ To learn more about securing a Pega application or our security capabilities, please see the [security article](https://community.pega.com/knowledgebase/capabilities/security) on Pega Community and the [Pega Trust Center](https://www.pega.com/products/cloud/pega-trust-center).
@@ -1,8 +1,8 @@
1
- import { createContext, useContext } from "react";
1
+ import { createContext, useContext } from 'react';
2
2
  // Argument was null but that failed TypeScript compilation. Change to empty object
3
3
  const ReactReduxContext = createContext({});
4
- if (process.env.NODE_ENV !== "production") {
5
- ReactReduxContext.displayName = "ReactRedux";
4
+ if (process.env.NODE_ENV !== 'production') {
5
+ ReactReduxContext.displayName = 'ReactRedux';
6
6
  }
7
7
  export const useConstellationContext = () => useContext(ReactReduxContext);
8
8
  export default ReactReduxContext;
@@ -1 +1 @@
1
- {"version":3,"file":"StoreContext.js","sourceRoot":"","sources":["../../../src/bridge/Context/StoreContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAIlD,mFAAmF;AAEnF,MAAM,iBAAiB,GAAG,aAAa,CAAC,EAAE,CAAC,CAAC;AAE5C,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE;IACzC,iBAAiB,CAAC,WAAW,GAAG,YAAY,CAAC;CAC9C;AAED,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC;AAC3E,eAAe,iBAAiB,CAAC","sourcesContent":["import { createContext, useContext } from \"react\";\n\ndeclare const process:any;\n\n// Argument was null but that failed TypeScript compilation. Change to empty object\n\nconst ReactReduxContext = createContext({});\n\nif (process.env.NODE_ENV !== \"production\") {\n ReactReduxContext.displayName = \"ReactRedux\";\n}\n\nexport const useConstellationContext = () => useContext(ReactReduxContext);\nexport default ReactReduxContext;\n"]}
1
+ {"version":3,"file":"StoreContext.js","sourceRoot":"","sources":["../../../src/bridge/Context/StoreContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAIlD,mFAAmF;AAEnF,MAAM,iBAAiB,GAAG,aAAa,CAAC,EAAE,CAAC,CAAC;AAE5C,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE;IACzC,iBAAiB,CAAC,WAAW,GAAG,YAAY,CAAC;CAC9C;AAED,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC;AAC3E,eAAe,iBAAiB,CAAC","sourcesContent":["import { createContext, useContext } from 'react';\n\ndeclare const process: any;\n\n// Argument was null but that failed TypeScript compilation. Change to empty object\n\nconst ReactReduxContext = createContext({});\n\nif (process.env.NODE_ENV !== 'production') {\n ReactReduxContext.displayName = 'ReactRedux';\n}\n\nexport const useConstellationContext = () => useContext(ReactReduxContext);\nexport default ReactReduxContext;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"sdk_component_map.d.ts","sourceRoot":"","sources":["../../../src/bridge/helpers/sdk_component_map.ts"],"names":[],"mappings":"AAWA,eAAO,IAAI,eAAe,KAAA,CAAC;AA6F3B,wBAAgB,mBAAmB,CAAC,eAAe,EAAE,MAAM,GAAG,GAAG,CAmBhE;AAaD,wBAAsB,kBAAkB,CAAC,mBAAmB,KAAK,oBAmChE"}
1
+ {"version":3,"file":"sdk_component_map.d.ts","sourceRoot":"","sources":["../../../src/bridge/helpers/sdk_component_map.ts"],"names":[],"mappings":"AAWA,eAAO,IAAI,eAAe,KAAA,CAAC;AAwF3B,wBAAgB,mBAAmB,CAAC,eAAe,EAAE,MAAM,GAAG,GAAG,CAmBhE;AAYD,wBAAsB,kBAAkB,CAAC,mBAAmB,KAAK,oBAmChE"}
@@ -10,46 +10,14 @@ import pegaSdkComponentMap from '../../sdk-pega-component-map';
10
10
  export let SdkComponentMap;
11
11
  let SdkComponentMapCreateInProgress = false;
12
12
  class ComponentMap {
13
+ sdkComponentMap; // Top level object
14
+ isComponentMapLoaded;
13
15
  constructor() {
14
- Object.defineProperty(this, "sdkComponentMap", {
15
- enumerable: true,
16
- configurable: true,
17
- writable: true,
18
- value: void 0
19
- }); // Top level object
20
- Object.defineProperty(this, "isComponentMapLoaded", {
21
- enumerable: true,
22
- configurable: true,
23
- writable: true,
24
- value: void 0
25
- });
26
- Object.defineProperty(this, "getLocalComponentMap", {
27
- enumerable: true,
28
- configurable: true,
29
- writable: true,
30
- value: () => {
31
- return this.sdkComponentMap.localComponentMap;
32
- }
33
- });
34
- Object.defineProperty(this, "getPegaProvidedComponentMap", {
35
- enumerable: true,
36
- configurable: true,
37
- writable: true,
38
- value: () => {
39
- return this.sdkComponentMap.pegaProvidedComponentMap;
40
- }
41
- });
42
- Object.defineProperty(this, "setPegaProvidedComponentMap", {
43
- enumerable: true,
44
- configurable: true,
45
- writable: true,
46
- value: (inPegaProvidedComponentMap) => {
47
- this.sdkComponentMap.pegaProvidedComponentMap = inPegaProvidedComponentMap;
48
- return this.sdkComponentMap.pegaProvidedComponentMap;
49
- }
50
- });
51
16
  // sdkComponentMap is top-level object
52
- this.sdkComponentMap = { localComponentMap: {}, pegaProvidedComponentMap: {} };
17
+ this.sdkComponentMap = {
18
+ localComponentMap: {},
19
+ pegaProvidedComponentMap: {}
20
+ };
53
21
  // isCoComponentMapLoaded will be updated to true after the async load is complete
54
22
  this.isComponentMapLoaded = false;
55
23
  // pegaSdkComponents.local is the JSON object where we'll store the components that are
@@ -68,9 +36,9 @@ class ComponentMap {
68
36
  if (Object.keys(this.sdkComponentMap.localComponentMap).length === 0 && Object.keys(this.sdkComponentMap.pegaProvidedComponentMap).length === 0) {
69
37
  const theLocalCompPromise = this.readLocalSdkComponentMap(inLocalSdkComponentMap);
70
38
  const thePegaCompPromise = this.readPegaSdkComponentMap(pegaSdkComponentMap);
71
- Promise.all([theLocalCompPromise, thePegaCompPromise]).then(( /* results */) => {
72
- return this.sdkComponentMap;
73
- }).catch((error) => {
39
+ Promise.all([theLocalCompPromise, thePegaCompPromise])
40
+ .then(() => this.sdkComponentMap)
41
+ .catch(error => {
74
42
  // eslint-disable-next-line no-console
75
43
  console.error(`Error in readSdkComponentMap: ${error}`);
76
44
  });
@@ -93,10 +61,20 @@ class ComponentMap {
93
61
  }
94
62
  return Promise.resolve(this);
95
63
  }
64
+ getLocalComponentMap = () => {
65
+ return this.sdkComponentMap.localComponentMap;
66
+ };
96
67
  setLocalComponentMap(inLocalSdkComponentMap) {
97
68
  this.sdkComponentMap.localComponentMap = inLocalSdkComponentMap;
98
69
  return this.sdkComponentMap.localComponentMap;
99
70
  }
71
+ getPegaProvidedComponentMap = () => {
72
+ return this.sdkComponentMap.pegaProvidedComponentMap;
73
+ };
74
+ setPegaProvidedComponentMap = inPegaProvidedComponentMap => {
75
+ this.sdkComponentMap.pegaProvidedComponentMap = inPegaProvidedComponentMap;
76
+ return this.sdkComponentMap.pegaProvidedComponentMap;
77
+ };
100
78
  }
101
79
  export function getComponentFromMap(inComponentName) {
102
80
  let theComponentImplementation = null;
@@ -115,7 +93,7 @@ export function getComponentFromMap(inComponentName) {
115
93
  else {
116
94
  // eslint-disable-next-line no-console
117
95
  console.error(`Requested component has neither Local nor Pega-provided implementation: ${inComponentName}`);
118
- theComponentImplementation = getComponentFromMap("ErrorBoundary");
96
+ theComponentImplementation = getComponentFromMap('ErrorBoundary');
119
97
  }
120
98
  }
121
99
  return theComponentImplementation;
@@ -130,7 +108,7 @@ async function createSdkComponentMap(inLocalComponentMap = {}) {
130
108
  }
131
109
  // Initialize exported SdkComponentMap structure
132
110
  export async function getSdkComponentMap(inLocalComponentMap = {}) {
133
- return new Promise((resolve) => {
111
+ return new Promise(resolve => {
134
112
  let idNextCheck;
135
113
  if (!SdkComponentMap && !SdkComponentMapCreateInProgress) {
136
114
  SdkComponentMapCreateInProgress = true;
@@ -143,7 +121,7 @@ export async function getSdkComponentMap(inLocalComponentMap = {}) {
143
121
  console.log(`getSdkComponentMap: created SdkComponentMap singleton`);
144
122
  // Create and dispatch the SdkConfigAccessReady event
145
123
  // Not used anyplace yet but putting it in place in case we need it.
146
- const event = new CustomEvent("SdkComponentMapReady", {});
124
+ const event = new CustomEvent('SdkComponentMapReady', {});
147
125
  document.dispatchEvent(event);
148
126
  return resolve(SdkComponentMap /* .sdkComponentMap */);
149
127
  });
@@ -159,11 +137,10 @@ export async function getSdkComponentMap(inLocalComponentMap = {}) {
159
137
  idNextCheck = setInterval(fnCheckForConfig, 500);
160
138
  };
161
139
  if (SdkComponentMap) {
140
+ // eslint-disable-next-line no-promise-executor-return
162
141
  return resolve(SdkComponentMap.sdkComponentMap);
163
142
  }
164
- else {
165
- idNextCheck = setInterval(fnCheckForConfig, 500);
166
- }
143
+ idNextCheck = setInterval(fnCheckForConfig, 500);
167
144
  }
168
145
  });
169
146
  }
@@ -1 +1 @@
1
- {"version":3,"file":"sdk_component_map.js","sourceRoot":"","sources":["../../../src/bridge/helpers/sdk_component_map.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,gCAAgC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,eAAe,IAAI,CAAC,+BAA+B,EAAG;YACzD,+BAA+B,GAAG,IAAI,CAAC;YACvC,qBAAqB,CAAC,mBAAmB,CAAC,CAAC,IAAI,CAAE,eAAe,CAAC,EAAE;gBACjE,YAAY;gBACZ,wCAAwC;gBACxC,eAAe,GAAG,eAAe,CAAC;gBAClC,+BAA+B,GAAG,KAAK,CAAC;gBACxC,sCAAsC;gBACtC,OAAO,CAAC,GAAG,CAAC,uDAAuD,CAAC,CAAC;gBACrE,qDAAqD;gBACrD,qEAAqE;gBACrE,MAAM,KAAK,GAAG,IAAI,WAAW,CAAC,sBAAsB,EAAE,EAAG,CAAC,CAAC;gBAC3D,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;gBAC9B,OAAO,OAAO,CAAE,eAAe,CAAC,sBAAsB,CAAE,CAAC;YAC3D,CAAC,CAAC,CAAC;SACJ;aAAM;YACL,MAAM,gBAAgB,GAAG,GAAG,EAAE;gBAC5B,IAAI,eAAe,EAAG;oBACpB,IAAI,WAAW,EAAG;wBAChB,aAAa,CAAC,WAAW,CAAC,CAAC;qBAC5B;oBACD,OAAO,OAAO,CAAE,eAAe,CAAC,eAAe,CAAE,CAAC;iBACnD;gBACD,WAAW,GAAG,WAAW,CAAC,gBAAgB,EAAE,GAAG,CAAC,CAAC;YACnD,CAAC,CAAC;YACF,IAAI,eAAe,EAAG;gBACpB,OAAO,OAAO,CAAE,eAAe,CAAC,eAAe,CAAE,CAAC;aACnD;iBAAM;gBACL,WAAW,GAAG,WAAW,CAAC,gBAAgB,EAAE,GAAG,CAAC,CAAC;aAClD;SACF;IACH,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["// Helper singleton class to assist with loading and\n// accessing the SDK components\n// import localSdkComponentMap from '../../sdk-local-component-map';\nimport pegaSdkComponentMap from '../../sdk-pega-component-map';\n\n// Statically load all \"local\" components\n\n// Create a singleton for this class (with async loading of components map file) and export it\n// Note: Initializing SdkComponentMap to null seems to cause lots of compile issues with references\n// within other components and the value potentially being null (so try to leave it undefined)\n// eslint-disable-next-line import/no-mutable-exports\nexport let SdkComponentMap;\nlet SdkComponentMapCreateInProgress = false;\n\ninterface ISdkComponentMap {\n localComponentMap: Object,\n pegaProvidedComponentMap: Object\n}\n\nclass ComponentMap {\n sdkComponentMap: ISdkComponentMap; // Top level object\n isComponentMapLoaded: boolean;\n\n constructor() {\n // sdkComponentMap is top-level object\n this.sdkComponentMap = { localComponentMap: {}, pegaProvidedComponentMap: {} };\n\n // isCoComponentMapLoaded will be updated to true after the async load is complete\n this.isComponentMapLoaded = false;\n\n // pegaSdkComponents.local is the JSON object where we'll store the components that are\n // found locally or can be found in the Pega-provided repo\n this.sdkComponentMap.localComponentMap = { };\n\n this.sdkComponentMap.pegaProvidedComponentMap = { };\n\n // The \"work\" to load the config file is done (asynchronously) via the initialize\n // (Factory function) below)\n\n }\n\n /**\n * Asynchronous initialization of the config file contents.\n * @returns Promise of config file fetch\n */\n async readSdkComponentMap(inLocalSdkComponentMap = {}) {\n // debugger;\n if( Object.keys(this.sdkComponentMap.localComponentMap).length === 0 && Object.keys(this.sdkComponentMap.pegaProvidedComponentMap).length === 0) {\n\n const theLocalCompPromise = this.readLocalSdkComponentMap(inLocalSdkComponentMap);\n const thePegaCompPromise = this.readPegaSdkComponentMap(pegaSdkComponentMap);\n\n\n Promise.all([theLocalCompPromise, thePegaCompPromise]).then((/* results */) => {\n return this.sdkComponentMap;\n }).catch((error) => {\n // eslint-disable-next-line no-console\n console.error(`Error in readSdkComponentMap: ${error}`);\n })\n\n } else {\n return Promise.resolve(this.sdkComponentMap);\n }\n }\n\n async readLocalSdkComponentMap(inLocalSdkComponentMap = {}) {\n\n // debugger;\n if (Object.entries(this.getLocalComponentMap()).length === 0) {\n this.sdkComponentMap.localComponentMap = inLocalSdkComponentMap;\n }\n return Promise.resolve(this);\n }\n\n async readPegaSdkComponentMap(inPegaSdkComponentMap = {}) {\n\n // debugger;\n if (Object.entries(this.getPegaProvidedComponentMap()).length === 0) {\n this.sdkComponentMap.pegaProvidedComponentMap = inPegaSdkComponentMap;\n }\n return Promise.resolve(this);\n }\n\n\n getLocalComponentMap = () => {\n return this.sdkComponentMap.localComponentMap;\n }\n\n setLocalComponentMap(inLocalSdkComponentMap) {\n this.sdkComponentMap.localComponentMap = inLocalSdkComponentMap;\n return this.sdkComponentMap.localComponentMap;\n }\n\n getPegaProvidedComponentMap = () => {\n return this.sdkComponentMap.pegaProvidedComponentMap;\n }\n\n setPegaProvidedComponentMap = (inPegaProvidedComponentMap) => {\n this.sdkComponentMap.pegaProvidedComponentMap = inPegaProvidedComponentMap\n return this.sdkComponentMap.pegaProvidedComponentMap;\n }\n\n}\n\nexport function getComponentFromMap(inComponentName: string): any {\n let theComponentImplementation = null;\n const theLocalComponent = SdkComponentMap.getLocalComponentMap()[inComponentName];\n if (theLocalComponent !== undefined) {\n // eslint-disable-next-line no-console\n console.log(`Requested component found ${inComponentName}: Local`);\n theComponentImplementation = theLocalComponent;\n } else {\n const thePegaProvidedComponent = SdkComponentMap.getPegaProvidedComponentMap()[inComponentName];\n if (thePegaProvidedComponent !== undefined) {\n // console.log(`Requested component found ${inComponentName}: Pega-provided`);\n theComponentImplementation = thePegaProvidedComponent;\n } else {\n // eslint-disable-next-line no-console\n console.error(`Requested component has neither Local nor Pega-provided implementation: ${inComponentName}`);\n theComponentImplementation = getComponentFromMap(\"ErrorBoundary\");\n }\n }\n return theComponentImplementation;\n}\n\n\n// Implement Factory function to allow async load\n// See https://stackoverflow.com/questions/49905178/asynchronous-operations-in-constructor/49906064#49906064 for inspiration\nasync function createSdkComponentMap(inLocalComponentMap = {}) {\n // Note that our initialize function returns a promise...\n const singleton = new ComponentMap();\n await singleton.readSdkComponentMap(inLocalComponentMap);\n return singleton;\n}\n\n// Initialize exported SdkComponentMap structure\nexport async function getSdkComponentMap(inLocalComponentMap = {}) {\n return new Promise( (resolve) => {\n let idNextCheck;\n if( !SdkComponentMap && !SdkComponentMapCreateInProgress ) {\n SdkComponentMapCreateInProgress = true;\n createSdkComponentMap(inLocalComponentMap).then( theComponentMap => {\n // debugger;\n // Key initialization of SdkComponentMap\n SdkComponentMap = theComponentMap;\n SdkComponentMapCreateInProgress = false;\n // eslint-disable-next-line no-console\n console.log(`getSdkComponentMap: created SdkComponentMap singleton`);\n // Create and dispatch the SdkConfigAccessReady event\n // Not used anyplace yet but putting it in place in case we need it.\n const event = new CustomEvent(\"SdkComponentMapReady\", { });\n document.dispatchEvent(event);\n return resolve( SdkComponentMap /* .sdkComponentMap */ );\n });\n } else {\n const fnCheckForConfig = () => {\n if( SdkComponentMap ) {\n if( idNextCheck ) {\n clearInterval(idNextCheck);\n }\n return resolve( SdkComponentMap.sdkComponentMap );\n }\n idNextCheck = setInterval(fnCheckForConfig, 500);\n };\n if( SdkComponentMap ) {\n return resolve( SdkComponentMap.sdkComponentMap );\n } else {\n idNextCheck = setInterval(fnCheckForConfig, 500);\n }\n }\n });\n}\n"]}
1
+ {"version":3,"file":"sdk_component_map.js","sourceRoot":"","sources":["../../../src/bridge/helpers/sdk_component_map.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,gCAAgC;AAChC,oEAAoE;AACpE,OAAO,mBAAmB,MAAM,8BAA8B,CAAC;AAE/D,yCAAyC;AAEzC,8FAA8F;AAC9F,mGAAmG;AACnG,+FAA+F;AAC/F,qDAAqD;AACrD,MAAM,CAAC,IAAI,eAAe,CAAC;AAC3B,IAAI,+BAA+B,GAAG,KAAK,CAAC;AAO5C,MAAM,YAAY;IAChB,eAAe,CAAmB,CAAC,mBAAmB;IACtD,oBAAoB,CAAU;IAE9B;QACE,sCAAsC;QACtC,IAAI,CAAC,eAAe,GAAG;YACrB,iBAAiB,EAAE,EAAE;YACrB,wBAAwB,EAAE,EAAE;SAC7B,CAAC;QAEF,kFAAkF;QAClF,IAAI,CAAC,oBAAoB,GAAG,KAAK,CAAC;QAElC,uFAAuF;QACvF,0DAA0D;QAC1D,IAAI,CAAC,eAAe,CAAC,iB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EAAE;gBAC5B,IAAI,eAAe,EAAE;oBACnB,IAAI,WAAW,EAAE;wBACf,aAAa,CAAC,WAAW,CAAC,CAAC;qBAC5B;oBACD,OAAO,OAAO,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC;iBACjD;gBACD,WAAW,GAAG,WAAW,CAAC,gBAAgB,EAAE,GAAG,CAAC,CAAC;YACnD,CAAC,CAAC;YACF,IAAI,eAAe,EAAE;gBACnB,sDAAsD;gBACtD,OAAO,OAAO,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC;aACjD;YACD,WAAW,GAAG,WAAW,CAAC,gBAAgB,EAAE,GAAG,CAAC,CAAC;SAClD;IACH,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["// Helper singleton class to assist with loading and\n// accessing the SDK components\n// import localSdkComponentMap from '../../sdk-local-component-map';\nimport pegaSdkComponentMap from '../../sdk-pega-component-map';\n\n// Statically load all \"local\" components\n\n// Create a singleton for this class (with async loading of components map file) and export it\n// Note: Initializing SdkComponentMap to null seems to cause lots of compile issues with references\n// within other components and the value potentially being null (so try to leave it undefined)\n// eslint-disable-next-line import/no-mutable-exports\nexport let SdkComponentMap;\nlet SdkComponentMapCreateInProgress = false;\n\ninterface ISdkComponentMap {\n localComponentMap: Object;\n pegaProvidedComponentMap: Object;\n}\n\nclass ComponentMap {\n sdkComponentMap: ISdkComponentMap; // Top level object\n isComponentMapLoaded: boolean;\n\n constructor() {\n // sdkComponentMap is top-level object\n this.sdkComponentMap = {\n localComponentMap: {},\n pegaProvidedComponentMap: {}\n };\n\n // isCoComponentMapLoaded will be updated to true after the async load is complete\n this.isComponentMapLoaded = false;\n\n // pegaSdkComponents.local is the JSON object where we'll store the components that are\n // found locally or can be found in the Pega-provided repo\n this.sdkComponentMap.localComponentMap = {};\n\n this.sdkComponentMap.pegaProvidedComponentMap = {};\n\n // The \"work\" to load the config file is done (asynchronously) via the initialize\n // (Factory function) below)\n }\n\n /**\n * Asynchronous initialization of the config file contents.\n * @returns Promise of config file fetch\n */\n async readSdkComponentMap(inLocalSdkComponentMap = {}) {\n // debugger;\n if (Object.keys(this.sdkComponentMap.localComponentMap).length === 0 && Object.keys(this.sdkComponentMap.pegaProvidedComponentMap).length === 0) {\n const theLocalCompPromise = this.readLocalSdkComponentMap(inLocalSdkComponentMap);\n const thePegaCompPromise = this.readPegaSdkComponentMap(pegaSdkComponentMap);\n\n Promise.all([theLocalCompPromise, thePegaCompPromise])\n .then(() => this.sdkComponentMap)\n .catch(error => {\n // eslint-disable-next-line no-console\n console.error(`Error in readSdkComponentMap: ${error}`);\n });\n } else {\n return Promise.resolve(this.sdkComponentMap);\n }\n }\n\n async readLocalSdkComponentMap(inLocalSdkComponentMap = {}) {\n // debugger;\n if (Object.entries(this.getLocalComponentMap()).length === 0) {\n this.sdkComponentMap.localComponentMap = inLocalSdkComponentMap;\n }\n return Promise.resolve(this);\n }\n\n async readPegaSdkComponentMap(inPegaSdkComponentMap = {}) {\n // debugger;\n if (Object.entries(this.getPegaProvidedComponentMap()).length === 0) {\n this.sdkComponentMap.pegaProvidedComponentMap = inPegaSdkComponentMap;\n }\n return Promise.resolve(this);\n }\n\n getLocalComponentMap = () => {\n return this.sdkComponentMap.localComponentMap;\n };\n\n setLocalComponentMap(inLocalSdkComponentMap) {\n this.sdkComponentMap.localComponentMap = inLocalSdkComponentMap;\n return this.sdkComponentMap.localComponentMap;\n }\n\n getPegaProvidedComponentMap = () => {\n return this.sdkComponentMap.pegaProvidedComponentMap;\n };\n\n setPegaProvidedComponentMap = inPegaProvidedComponentMap => {\n this.sdkComponentMap.pegaProvidedComponentMap = inPegaProvidedComponentMap;\n return this.sdkComponentMap.pegaProvidedComponentMap;\n };\n}\n\nexport function getComponentFromMap(inComponentName: string): any {\n let theComponentImplementation = null;\n const theLocalComponent = SdkComponentMap.getLocalComponentMap()[inComponentName];\n if (theLocalComponent !== undefined) {\n // eslint-disable-next-line no-console\n console.log(`Requested component found ${inComponentName}: Local`);\n theComponentImplementation = theLocalComponent;\n } else {\n const thePegaProvidedComponent = SdkComponentMap.getPegaProvidedComponentMap()[inComponentName];\n if (thePegaProvidedComponent !== undefined) {\n // console.log(`Requested component found ${inComponentName}: Pega-provided`);\n theComponentImplementation = thePegaProvidedComponent;\n } else {\n // eslint-disable-next-line no-console\n console.error(`Requested component has neither Local nor Pega-provided implementation: ${inComponentName}`);\n theComponentImplementation = getComponentFromMap('ErrorBoundary');\n }\n }\n return theComponentImplementation;\n}\n\n// Implement Factory function to allow async load\n// See https://stackoverflow.com/questions/49905178/asynchronous-operations-in-constructor/49906064#49906064 for inspiration\nasync function createSdkComponentMap(inLocalComponentMap = {}) {\n // Note that our initialize function returns a promise...\n const singleton = new ComponentMap();\n await singleton.readSdkComponentMap(inLocalComponentMap);\n return singleton;\n}\n\n// Initialize exported SdkComponentMap structure\nexport async function getSdkComponentMap(inLocalComponentMap = {}) {\n return new Promise(resolve => {\n let idNextCheck;\n if (!SdkComponentMap && !SdkComponentMapCreateInProgress) {\n SdkComponentMapCreateInProgress = true;\n createSdkComponentMap(inLocalComponentMap).then(theComponentMap => {\n // debugger;\n // Key initialization of SdkComponentMap\n SdkComponentMap = theComponentMap;\n SdkComponentMapCreateInProgress = false;\n // eslint-disable-next-line no-console\n console.log(`getSdkComponentMap: created SdkComponentMap singleton`);\n // Create and dispatch the SdkConfigAccessReady event\n // Not used anyplace yet but putting it in place in case we need it.\n const event = new CustomEvent('SdkComponentMapReady', {});\n document.dispatchEvent(event);\n return resolve(SdkComponentMap /* .sdkComponentMap */);\n });\n } else {\n const fnCheckForConfig = () => {\n if (SdkComponentMap) {\n if (idNextCheck) {\n clearInterval(idNextCheck);\n }\n return resolve(SdkComponentMap.sdkComponentMap);\n }\n idNextCheck = setInterval(fnCheckForConfig, 500);\n };\n if (SdkComponentMap) {\n // eslint-disable-next-line no-promise-executor-return\n return resolve(SdkComponentMap.sdkComponentMap);\n }\n idNextCheck = setInterval(fnCheckForConfig, 500);\n }\n });\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"react_pconnect.d.ts","sourceRoot":"","sources":["../../src/bridge/react_pconnect.jsx"],"names":[],"mappings":"AAmCO,0EASN;;AAkID;;;;;GAKG;AACH,2EA4JC"}
1
+ {"version":3,"file":"react_pconnect.d.ts","sourceRoot":"","sources":["../../src/bridge/react_pconnect.jsx"],"names":[],"mappings":"AA+BO,0EAMN;;AA+HD;;;;;GAKG;AACH,2EA0JC"}
@@ -1,22 +1,21 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
1
2
  /* eslint-disable max-classes-per-file */
2
- import React, { Component, createElement } from 'react';
3
+ import { Component, createElement } from 'react';
3
4
  import PropTypes from 'prop-types';
4
5
  import { connect, shallowEqual } from 'react-redux';
5
6
  import ComponentMap, { LazyMap as LazyComponentMap } from '../components_map'; // was '../../../../../src/components_map';
7
+ import ErrorBoundary from '../components/infra/ErrorBoundary';
6
8
  import StoreContext from './Context/StoreContext';
7
9
  // const pathToComponents = "../../../../../src/components"; /* When bridge was local, it was "../components" */
8
10
  // For now, NOT doing lazy loading - needs some work on the loader to work with TypeScript
9
11
  // As we add components, we'll need to import them here and add to the switch statement
10
12
  // below in getComponent!
11
- import ErrorBoundary from '../components/infra/ErrorBoundary';
12
13
  import { SdkComponentMap } from './helpers/sdk_component_map';
13
14
  const isClassIDCompare = (key, prev) => {
14
15
  return !(key === 'classID' && !prev[key]);
15
16
  };
16
17
  const routingInfoCompare = (next, prev) => {
17
- return ('routingInfo' in next &&
18
- (!shallowEqual(next.routingInfo, prev.routingInfo) ||
19
- !PCore.isDeepEqual(next.routingInfo, prev.routingInfo)));
18
+ return 'routingInfo' in next && (!shallowEqual(next.routingInfo, prev.routingInfo) || !PCore.isDeepEqual(next.routingInfo, prev.routingInfo));
20
19
  };
21
20
  /** Generate unique id for elements */
22
21
  const createUID = () => {
@@ -25,8 +24,7 @@ const createUID = () => {
25
24
  export const setVisibilityForList = (c11nEnv, visibility) => {
26
25
  const { selectionMode, selectionList, renderMode, referenceList } = c11nEnv.getComponentConfig();
27
26
  // usecase:multiselect, fieldgroup, editable table
28
- if ((selectionMode === PCore.getConstants().LIST_SELECTION_MODE.MULTI && selectionList) ||
29
- (renderMode === 'Editable' && referenceList)) {
27
+ if ((selectionMode === PCore.getConstants().LIST_SELECTION_MODE.MULTI && selectionList) || (renderMode === 'Editable' && referenceList)) {
30
28
  c11nEnv.getListActions().setVisibility(visibility);
31
29
  }
32
30
  };
@@ -38,7 +36,7 @@ function withVisibility(WrappedComponent) {
38
36
  if (visibility === false) {
39
37
  return null;
40
38
  }
41
- return React.createElement(WrappedComponent, { ...this.props });
39
+ return _jsx(WrappedComponent, { ...this.props });
42
40
  }
43
41
  };
44
42
  }
@@ -72,7 +70,7 @@ const connectRedux = (component, c11nEnv) => {
72
70
  context: StoreContext,
73
71
  areStatePropsEqual: (next, prev) => {
74
72
  const allStateProps = c11nEnv.getStateProps();
75
- for (const key in allStateProps) {
73
+ for (const key of Object.keys(allStateProps)) {
76
74
  if ((isClassIDCompare(key, prev) && !shallowEqual(next[key], prev[key])) ||
77
75
  (next.routingInfo && !PCore.isDeepEqual(next.routingInfo, prev.routingInfo))) {
78
76
  return false;
@@ -81,7 +79,7 @@ const connectRedux = (component, c11nEnv) => {
81
79
  // For CaseSummary (when status === ".pyStatusWork"), we need to compare changes in
82
80
  // primaryFields and secondary Fields
83
81
  if (allStateProps.status === '.pyStatusWork') {
84
- for (const key in prev) {
82
+ for (const key of Object.keys(prev)) {
85
83
  if (!PCore.isDeepEqual(next[key], prev[key])) {
86
84
  return false;
87
85
  }
@@ -167,6 +165,7 @@ const createPConnectComponent = () => {
167
165
  this.eventHandler = this.eventHandler.bind(this);
168
166
  this.changeHandler = this.changeHandler.bind(this);
169
167
  this.c11nEnv = getPConnect();
168
+ // eslint-disable-next-line react/no-unused-class-component-methods
170
169
  this.Control = getComponent(this.c11nEnv);
171
170
  this.actionsAPI = this.c11nEnv.getActionsApi();
172
171
  this.processActions(this.c11nEnv);
@@ -214,18 +213,17 @@ const createPConnectComponent = () => {
214
213
  createChildren() {
215
214
  const { getPConnect } = this.props;
216
215
  if (getPConnect().hasChildren() && getPConnect().getChildren()) {
217
- return getPConnect()
216
+ return (getPConnect()
218
217
  .getChildren()
219
- .map(childProps => React.createElement(PConnect, { ...childProps }));
218
+ // eslint-disable-next-line react/no-array-index-key
219
+ .map((childProps, index) => _jsx(PConnect, { ...childProps }, `${this.getKey(childProps)}_${index}`)));
220
220
  }
221
221
  return null;
222
222
  }
223
- getKey() {
224
- const { getPConnect } = this.props;
223
+ getKey(props = this.props) {
224
+ const { getPConnect } = props;
225
225
  const viewName = getPConnect().getConfigProps().name || getPConnect().getCurrentView();
226
- let key = !viewName
227
- ? createUID()
228
- : `${viewName}!${getPConnect().getCurrentClassID() || createUID()}`;
226
+ let key = !viewName ? createUID() : `${viewName}!${getPConnect().getCurrentClassID() || createUID()}`;
229
227
  // In the case of pyDetails the key must be unigue for each instance
230
228
  if (viewName && viewName.toUpperCase() === 'PYDETAILS') {
231
229
  key += `!${getPConnect().getCaseInfo().getID()}`;
@@ -238,7 +236,7 @@ const createPConnectComponent = () => {
238
236
  if (hasError) {
239
237
  // You can render any custom fallback UI
240
238
  // console.log(`react_pconnect error: used to return: <ErrorBoundary getPConnect={() => this.c11nEnv} isInternalError />`);
241
- return React.createElement(ErrorBoundary, { getPConnect: () => this.c11nEnv, isInternalError: true });
239
+ return _jsx(ErrorBoundary, { getPConnect: () => this.c11nEnv, isInternalError: true });
242
240
  }
243
241
  const props = this.c11nEnv.getConfigProps();
244
242
  const actions = this.c11nEnv.getActions();
@@ -254,7 +252,7 @@ const createPConnectComponent = () => {
254
252
  finalProps.key = this.getKey();
255
253
  }
256
254
  // console.log(`react_pconnect: used to return: <this.Control {...finalProps} />`);
257
- return React.createElement(this.Control, { ...finalProps }, this.createChildren());
255
+ return _jsx(this.Control, { ...finalProps, children: this.createChildren() });
258
256
  }
259
257
  }
260
258
  // eslint-disable-next-line react/static-property-placement
@@ -319,13 +317,4 @@ document.addEventListener('SdkConstellationReady', () => {
319
317
  });
320
318
  });
321
319
  export default createPConnectComponent;
322
- /* These APIs need to be exposed for authoring bridge
323
- Will be removed when pxbootstrap and constellation_bridge is cleaned up
324
- to use single bootstrap file from constellation */
325
- // window.authoringUtils = {
326
- // createElement,
327
- // render,
328
- // unmountComponentAtNode,
329
- // LazyComponentMap
330
- // };
331
320
  //# sourceMappingURL=react_pconnect.js.map