@pega/custom-dx-components 0.242.20 → 0.242.21

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 (181) hide show
  1. package/package.json +1 -1
  2. package/src/tasks/build-lib/index.js +82 -32
  3. package/src/tasks/create/index.js +2 -6
  4. package/src/tasks/create-all/index.js +2 -5
  5. package/src/tasks/init/template/package.json.mustache +2 -1
  6. package/src/tasks/list-lib/index.js +21 -7
  7. package/src/tasks/publish-lib/index.js +2 -1
  8. package/src/tasks/rename-lib/index.js +75 -91
  9. package/src/util.js +16 -0
  10. package/tests/assets/library/components/create/Pega_DXIL_MyTestText/config.json +2 -2
  11. package/tests/assets/library/components/create/Pega_DXIL_MyTestText/index.tsx +1 -0
  12. package/tests/assets/library/components/create/shared/create-nonce.ts +6 -0
  13. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyBoolean/config.json +2 -2
  14. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyBoolean/index.tsx +1 -0
  15. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/config.json +3 -3
  16. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/demo.stories.tsx +23 -24
  17. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/index.tsx +1 -0
  18. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCurrency/config.json +2 -2
  19. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCurrency/index.tsx +1 -0
  20. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDate/config.json +2 -2
  21. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDate/index.tsx +1 -0
  22. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDateTime/config.json +2 -2
  23. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDateTime/index.tsx +1 -0
  24. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDecimal/config.json +2 -2
  25. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDecimal/index.tsx +1 -0
  26. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/config.json +2 -2
  27. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.tsx +3 -5
  28. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/index.tsx +2 -0
  29. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyEmail/config.json +2 -2
  30. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyEmail/index.tsx +1 -0
  31. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyForm/config.json +2 -2
  32. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyForm/index.tsx +1 -0
  33. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/config.json +2 -2
  34. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/demo.stories.tsx +15 -15
  35. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/index.tsx +1 -0
  36. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyInteger/config.json +2 -2
  37. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyInteger/index.tsx +1 -0
  38. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPage/config.json +2 -2
  39. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPage/index.tsx +1 -0
  40. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/config.json +2 -2
  41. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/config.json +2 -2
  42. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/demo.stories.tsx +15 -17
  43. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/index.tsx +1 -0
  44. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyParagraph/config.json +2 -2
  45. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyParagraph/index.tsx +1 -0
  46. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPercentage/config.json +2 -2
  47. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPercentage/index.tsx +1 -0
  48. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPhone/config.json +2 -2
  49. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPhone/index.tsx +1 -0
  50. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPicklist/config.json +2 -2
  51. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPicklist/index.tsx +1 -0
  52. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/config.json +2 -2
  53. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/index.tsx +1 -0
  54. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/config.json +2 -2
  55. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/index.tsx +1 -0
  56. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyText/config.json +2 -2
  57. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyText/index.tsx +1 -0
  58. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTextInput/config.json +2 -2
  59. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTextInput/index.tsx +1 -0
  60. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/config.json +2 -2
  61. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/index.tsx +1 -0
  62. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/config.json +2 -2
  63. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/index.tsx +1 -0
  64. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/config.json +2 -2
  65. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/index.tsx +1 -0
  66. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyURL/config.json +2 -2
  67. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyURL/index.tsx +1 -0
  68. package/tests/assets/library/components/createAll/Constellation/shared/create-nonce.ts +6 -0
  69. package/tests/assets/original/components/create/Pega_DXIL_MyTestText/create-nonce.ts +6 -0
  70. package/tests/assets/original/components/create/Pega_DXIL_MyTestText/index.tsx +1 -0
  71. package/tests/assets/original/components/create/shared/create-nonce.ts +6 -0
  72. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyBoolean/create-nonce.ts +6 -0
  73. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyBoolean/index.tsx +1 -0
  74. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/create-nonce.ts +6 -0
  75. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/demo.stories.tsx +23 -24
  76. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/index.tsx +1 -0
  77. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCurrency/create-nonce.ts +6 -0
  78. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCurrency/index.tsx +1 -0
  79. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDate/create-nonce.ts +6 -0
  80. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDate/index.tsx +1 -0
  81. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDateTime/create-nonce.ts +6 -0
  82. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDateTime/index.tsx +1 -0
  83. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDecimal/create-nonce.ts +6 -0
  84. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDecimal/index.tsx +1 -0
  85. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/create-nonce.ts +6 -0
  86. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.tsx +3 -5
  87. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/index.tsx +2 -0
  88. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyEmail/create-nonce.ts +6 -0
  89. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyEmail/index.tsx +1 -0
  90. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyForm/create-nonce.ts +6 -0
  91. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyForm/index.tsx +1 -0
  92. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/create-nonce.ts +6 -0
  93. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/demo.stories.tsx +15 -15
  94. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/index.tsx +1 -0
  95. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyInteger/create-nonce.ts +6 -0
  96. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyInteger/index.tsx +1 -0
  97. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPage/create-nonce.ts +6 -0
  98. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPage/index.tsx +1 -0
  99. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/create-nonce.ts +6 -0
  100. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/create-nonce.ts +6 -0
  101. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/demo.stories.tsx +15 -17
  102. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/index.tsx +1 -0
  103. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyParagraph/create-nonce.ts +6 -0
  104. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyParagraph/index.tsx +1 -0
  105. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPercentage/create-nonce.ts +6 -0
  106. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPercentage/index.tsx +1 -0
  107. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPhone/create-nonce.ts +6 -0
  108. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPhone/index.tsx +1 -0
  109. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPicklist/create-nonce.ts +6 -0
  110. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPicklist/index.tsx +1 -0
  111. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/create-nonce.ts +6 -0
  112. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/index.tsx +1 -0
  113. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/create-nonce.ts +6 -0
  114. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/index.tsx +1 -0
  115. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyText/create-nonce.ts +6 -0
  116. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyText/index.tsx +1 -0
  117. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTextInput/create-nonce.ts +6 -0
  118. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTextInput/index.tsx +1 -0
  119. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/create-nonce.ts +6 -0
  120. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/index.tsx +1 -0
  121. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/create-nonce.ts +6 -0
  122. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/index.tsx +1 -0
  123. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/create-nonce.ts +6 -0
  124. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/index.tsx +1 -0
  125. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyURL/create-nonce.ts +6 -0
  126. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyURL/index.tsx +1 -0
  127. package/tests/assets/original/components/createAll/Constellation/shared/create-nonce.ts +6 -0
  128. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyBoolean/create-nonce.ts +6 -0
  129. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyBoolean/index.tsx +1 -0
  130. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/create-nonce.ts +6 -0
  131. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/index.tsx +1 -0
  132. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCurrency/create-nonce.ts +6 -0
  133. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCurrency/index.tsx +1 -0
  134. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/create-nonce.ts +6 -0
  135. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/index.tsx +1 -0
  136. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDateTime/create-nonce.ts +6 -0
  137. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDateTime/index.tsx +1 -0
  138. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDecimal/create-nonce.ts +6 -0
  139. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDecimal/index.tsx +1 -0
  140. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/create-nonce.ts +6 -0
  141. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/demo.stories.tsx +3 -5
  142. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/index.tsx +2 -0
  143. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyEmail/create-nonce.ts +6 -0
  144. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyEmail/index.tsx +1 -0
  145. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyForm/create-nonce.ts +6 -0
  146. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyForm/index.tsx +1 -0
  147. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/create-nonce.ts +6 -0
  148. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/index.tsx +1 -0
  149. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyInteger/create-nonce.ts +6 -0
  150. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyInteger/index.tsx +1 -0
  151. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPage/create-nonce.ts +6 -0
  152. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPage/index.tsx +1 -0
  153. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/create-nonce.ts +6 -0
  154. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/index.tsx +1 -0
  155. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/create-nonce.ts +6 -0
  156. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/index.tsx +1 -0
  157. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyParagraph/create-nonce.ts +6 -0
  158. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyParagraph/index.tsx +1 -0
  159. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPercentage/create-nonce.ts +6 -0
  160. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPercentage/index.tsx +1 -0
  161. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPhone/create-nonce.ts +6 -0
  162. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPhone/index.tsx +1 -0
  163. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPicklist/create-nonce.ts +6 -0
  164. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPicklist/index.tsx +1 -0
  165. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons/create-nonce.ts +6 -0
  166. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons/index.tsx +1 -0
  167. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/create-nonce.ts +6 -0
  168. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/index.tsx +1 -0
  169. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyText/create-nonce.ts +6 -0
  170. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyText/index.tsx +1 -0
  171. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTextInput/create-nonce.ts +6 -0
  172. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTextInput/index.tsx +1 -0
  173. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/create-nonce.ts +6 -0
  174. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/index.tsx +1 -0
  175. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/create-nonce.ts +6 -0
  176. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/index.tsx +1 -0
  177. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/create-nonce.ts +6 -0
  178. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/index.tsx +1 -0
  179. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyURL/create-nonce.ts +6 -0
  180. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyURL/index.tsx +1 -0
  181. package/tests/assets/original/components/createAll/Launchpad/shared/create-nonce.ts +6 -0
@@ -0,0 +1,6 @@
1
+ /* eslint-disable camelcase */
2
+ // @ts-ignore
3
+ if (window?.__webpack_nonce__) {
4
+ // @ts-ignore
5
+ __webpack_nonce__ = window.__webpack_nonce__;
6
+ }
@@ -1,6 +1,7 @@
1
1
  import { useState, useEffect, useRef} from "react";
2
2
  import { Input, FieldValueList, Text, withConfiguration } from "@pega/cosmos-react-core";
3
3
  import type { PConnFieldProps } from './PConnProps';
4
+ import './create-nonce';
4
5
 
5
6
  // includes in bundle
6
7
  import {formatExists,textFormatter, urlFormatter} from "./text-url";
@@ -0,0 +1,6 @@
1
+ /* eslint-disable camelcase */
2
+ // @ts-ignore
3
+ if (window?.__webpack_nonce__) {
4
+ // @ts-ignore
5
+ __webpack_nonce__ = window.__webpack_nonce__;
6
+ }