@pega/custom-dx-components 23.1.13 → 23.1.15

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 (169) hide show
  1. package/package.json +1 -1
  2. package/src/tasks/build-all/helper.js +1 -1
  3. package/src/tasks/build-comp/helper.js +4 -2
  4. package/src/tasks/build-comp/index.js +8 -2
  5. package/src/tasks/create/templates/Constellation/Field/Boolean/create-nonce.ts.mustache +6 -0
  6. package/src/tasks/create/templates/Constellation/Field/Boolean/index.tsx.mustache +2 -0
  7. package/src/tasks/create/templates/Constellation/Field/Date/create-nonce.ts.mustache +6 -0
  8. package/src/tasks/create/templates/Constellation/Field/Date/index.tsx.mustache +1 -0
  9. package/src/tasks/create/templates/Constellation/Field/DateTime/create-nonce.ts.mustache +6 -0
  10. package/src/tasks/create/templates/Constellation/Field/DateTime/index.tsx.mustache +1 -0
  11. package/src/tasks/create/templates/Constellation/Field/Decimal/create-nonce.ts.mustache +6 -0
  12. package/src/tasks/create/templates/Constellation/Field/Decimal/index.tsx.mustache +1 -0
  13. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/create-nonce.ts.mustache +6 -0
  14. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/index.tsx.mustache +1 -0
  15. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/create-nonce.ts.mustache +6 -0
  16. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/index.tsx.mustache +1 -0
  17. package/src/tasks/create/templates/Constellation/Field/Integer/create-nonce.ts.mustache +6 -0
  18. package/src/tasks/create/templates/Constellation/Field/Integer/index.tsx.mustache +1 -0
  19. package/src/tasks/create/templates/Constellation/Field/Picklist/create-nonce.ts.mustache +6 -0
  20. package/src/tasks/create/templates/Constellation/Field/Picklist/index.tsx.mustache +1 -0
  21. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/create-nonce.ts.mustache +6 -0
  22. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/index.tsx.mustache +1 -0
  23. package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/create-nonce.ts.mustache +6 -0
  24. package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/index.tsx.mustache +1 -0
  25. package/src/tasks/create/templates/Constellation/Field/Text/create-nonce.ts.mustache +6 -0
  26. package/src/tasks/create/templates/Constellation/Field/Text/index.tsx.mustache +1 -0
  27. package/src/tasks/create/templates/Constellation/Field/Text-Email/create-nonce.ts.mustache +6 -0
  28. package/src/tasks/create/templates/Constellation/Field/Text-Email/index.tsx.mustache +1 -0
  29. package/src/tasks/create/templates/Constellation/Field/Text-Input/create-nonce.ts.mustache +6 -0
  30. package/src/tasks/create/templates/Constellation/Field/Text-Input/index.tsx.mustache +1 -0
  31. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/create-nonce.ts.mustache +6 -0
  32. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/index.tsx.mustache +1 -0
  33. package/src/tasks/create/templates/Constellation/Field/Text-Phone/create-nonce.ts.mustache +6 -0
  34. package/src/tasks/create/templates/Constellation/Field/Text-Phone/index.tsx.mustache +1 -0
  35. package/src/tasks/create/templates/Constellation/Field/Text-URL/create-nonce.ts.mustache +6 -0
  36. package/src/tasks/create/templates/Constellation/Field/Text-URL/index.tsx.mustache +1 -0
  37. package/src/tasks/create/templates/Constellation/Field/TimeofDay/create-nonce.ts.mustache +6 -0
  38. package/src/tasks/create/templates/Constellation/Field/TimeofDay/index.tsx.mustache +1 -0
  39. package/src/tasks/create/templates/Constellation/Template/DETAILS/create-nonce.ts.mustache +6 -0
  40. package/src/tasks/create/templates/Constellation/Template/DETAILS/index.tsx.mustache +1 -0
  41. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/create-nonce.ts.mustache +6 -0
  42. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/index.tsx.mustache +1 -0
  43. package/src/tasks/create/templates/Constellation/Template/FORM/create-nonce.ts.mustache +6 -0
  44. package/src/tasks/create/templates/Constellation/Template/FORM/index.tsx.mustache +1 -1
  45. package/src/tasks/create/templates/Constellation/Template/FORM-region/create-nonce.ts.mustache +6 -0
  46. package/src/tasks/create/templates/Constellation/Template/FORM-region/index.tsx.mustache +1 -0
  47. package/src/tasks/create/templates/Constellation/Template/PAGE/create-nonce.ts.mustache +6 -0
  48. package/src/tasks/create/templates/Constellation/Template/PAGE/index.tsx.mustache +1 -1
  49. package/src/tasks/create/templates/Constellation/Widget/CASE/create-nonce.ts.mustache +6 -0
  50. package/src/tasks/create/templates/Constellation/Widget/CASE/index.tsx.mustache +1 -0
  51. package/src/tasks/create/templates/Constellation/Widget/PAGE/create-nonce.ts.mustache +6 -0
  52. package/src/tasks/create/templates/Constellation/Widget/PAGE/index.tsx.mustache +1 -0
  53. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/create-nonce.ts.mustache +6 -0
  54. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/index.tsx.mustache +1 -0
  55. package/src/tasks/create/templates/Launchpad/Widget/CASE/create-nonce.ts.mustache +6 -0
  56. package/src/tasks/create/templates/Launchpad/Widget/CASE/index.tsx.mustache +1 -0
  57. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/create-nonce.ts.mustache +6 -0
  58. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/index.tsx.mustache +1 -0
  59. package/src/tasks/delete/helper.js +75 -50
  60. package/src/tasks/init/helper.js +5 -5
  61. package/src/tasks/init/template/package.json.mustache +4 -4
  62. package/src/tasks/list/helper.js +5 -2
  63. package/src/tasks/publish/helper.js +47 -45
  64. package/src/tasks/publish/index.js +8 -2
  65. package/src/tasks/rename/index.js +9 -2
  66. package/src/tasks/revert-webpack/index.js +8 -26
  67. package/src/util.js +6 -6
  68. package/tests/assets/components/create/Pega_DXIL_MyTestText/create-nonce.ts +6 -0
  69. package/tests/assets/components/create/Pega_DXIL_MyTestText/index.tsx +1 -0
  70. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/create-nonce.ts +6 -0
  71. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/index.tsx +2 -0
  72. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/create-nonce.ts +6 -0
  73. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/index.tsx +1 -0
  74. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/create-nonce.ts +6 -0
  75. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/index.tsx +1 -0
  76. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/create-nonce.ts +6 -0
  77. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/index.tsx +1 -0
  78. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/create-nonce.ts +6 -0
  79. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/index.tsx +1 -0
  80. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/create-nonce.ts +6 -0
  81. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/index.tsx +1 -0
  82. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/create-nonce.ts +6 -0
  83. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/index.tsx +1 -0
  84. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/create-nonce.ts +6 -0
  85. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/index.tsx +1 -0
  86. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/create-nonce.ts +6 -0
  87. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/index.tsx +1 -1
  88. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/create-nonce.ts +6 -0
  89. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/index.tsx +1 -0
  90. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/create-nonce.ts +6 -0
  91. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/index.tsx +1 -1
  92. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/create-nonce.ts +6 -0
  93. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/index.tsx +1 -0
  94. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/create-nonce.ts +6 -0
  95. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/index.tsx +1 -0
  96. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/create-nonce.ts +6 -0
  97. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/index.tsx +1 -0
  98. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/create-nonce.ts +6 -0
  99. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/index.tsx +1 -0
  100. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/create-nonce.ts +6 -0
  101. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/index.tsx +1 -0
  102. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/create-nonce.ts +6 -0
  103. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/index.tsx +1 -0
  104. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/create-nonce.ts +6 -0
  105. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/index.tsx +1 -0
  106. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MySearchbox/create-nonce.ts +6 -0
  107. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MySearchbox/index.tsx +1 -0
  108. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/create-nonce.ts +6 -0
  109. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/index.tsx +1 -0
  110. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/create-nonce.ts +6 -0
  111. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/index.tsx +1 -0
  112. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/create-nonce.ts +6 -0
  113. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/index.tsx +1 -0
  114. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/create-nonce.ts +6 -0
  115. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/index.tsx +1 -0
  116. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/create-nonce.ts +6 -0
  117. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/index.tsx +1 -0
  118. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/create-nonce.ts +6 -0
  119. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/index.tsx +1 -0
  120. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/create-nonce.ts +6 -0
  121. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/index.tsx +2 -0
  122. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/create-nonce.ts +6 -0
  123. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/index.tsx +1 -0
  124. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/create-nonce.ts +6 -0
  125. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/index.tsx +1 -0
  126. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/create-nonce.ts +6 -0
  127. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/index.tsx +1 -0
  128. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/create-nonce.ts +6 -0
  129. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/index.tsx +1 -0
  130. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/create-nonce.ts +6 -0
  131. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/index.tsx +1 -0
  132. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/create-nonce.ts +6 -0
  133. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/index.tsx +1 -0
  134. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/create-nonce.ts +6 -0
  135. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/index.tsx +1 -0
  136. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/create-nonce.ts +6 -0
  137. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/index.tsx +1 -1
  138. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/create-nonce.ts +6 -0
  139. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/index.tsx +1 -0
  140. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/create-nonce.ts +6 -0
  141. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/index.tsx +1 -1
  142. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/create-nonce.ts +6 -0
  143. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/index.tsx +1 -0
  144. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/create-nonce.ts +6 -0
  145. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/index.tsx +1 -0
  146. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/create-nonce.ts +6 -0
  147. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/index.tsx +1 -0
  148. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/create-nonce.ts +6 -0
  149. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/index.tsx +1 -0
  150. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/create-nonce.ts +6 -0
  151. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/index.tsx +1 -0
  152. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/create-nonce.ts +6 -0
  153. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/index.tsx +1 -0
  154. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/create-nonce.ts +6 -0
  155. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/index.tsx +1 -0
  156. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/create-nonce.ts +6 -0
  157. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/index.tsx +1 -0
  158. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/create-nonce.ts +6 -0
  159. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/index.tsx +1 -0
  160. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/create-nonce.ts +6 -0
  161. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/index.tsx +1 -0
  162. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/create-nonce.ts +6 -0
  163. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/index.tsx +1 -0
  164. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/create-nonce.ts +6 -0
  165. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/index.tsx +1 -0
  166. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/create-nonce.ts +6 -0
  167. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/index.tsx +1 -0
  168. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/create-nonce.ts +6 -0
  169. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/index.tsx +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/custom-dx-components",
3
- "version": "23.1.13",
3
+ "version": "23.1.15",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": "./bin/index.js",
6
6
  "scripts": {
@@ -37,7 +37,7 @@ export const getBuildComponentQuestions = async () => {
37
37
 
38
38
  if (components.length == 0) {
39
39
  console.log(chalk.redBright("No components to build"));
40
- process.exit(1);
40
+ process.exit();
41
41
  }
42
42
 
43
43
  return [
@@ -8,7 +8,7 @@ import chalk from 'chalk';
8
8
  import { constructCompleteUrl, getComponentDirectoryPath, getComponents, getPegaServerConfig, getHttpsAgent } from '../../util.js';
9
9
  import { PUBLISH_COMPONENT_SERVICE_REST_ENDPOINT, TOKEN_PATH } from '../../constants.js';
10
10
 
11
- export const getPublishComponentQuestions = async () => {
11
+ export const getPublishComponentQuestions = async (componentKey) => {
12
12
  const components = await getComponents();
13
13
 
14
14
  if (components.length === 0) {
@@ -23,7 +23,9 @@ export const getPublishComponentQuestions = async () => {
23
23
  name: 'componentKey',
24
24
  type: 'rawlist',
25
25
  message: 'Select component to build',
26
- choices: components
26
+ choices: components,
27
+ default: componentKey,
28
+ when: () => !componentKey
27
29
  },
28
30
  {
29
31
  name: 'sourceMap',
@@ -29,9 +29,15 @@ export default async options => {
29
29
  content = { componentKey, sourceMap, devBuild};
30
30
  }
31
31
  else {
32
- const questions = await getPublishComponentQuestions();
32
+ // VS Code pluggin would send in the component
33
+ let paramComponentKey;
34
+ if (options.params.length == 4) {
35
+ paramComponentKey = options.params[3];
36
+ }
37
+
38
+ const questions = await getPublishComponentQuestions(paramComponentKey);
33
39
  const answers = await inquirer.prompt(questions);
34
- ({ componentKey, sourceMap, devBuild } = answers);
40
+ ({ componentKey = paramComponentKey, sourceMap, devBuild } = answers);
35
41
 
36
42
  content = {
37
43
  ...answers
@@ -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
+ }
@@ -7,6 +7,8 @@ import {
7
7
  } from "@pega/cosmos-react-core";
8
8
 
9
9
  import type { PConnFieldProps } from './PConnProps';
10
+ import './create-nonce';
11
+
10
12
 
11
13
  // includes in bundle
12
14
  import handleEvent from "./event-utils";
@@ -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
+ }
@@ -3,6 +3,7 @@ import { DateInput, FieldValueList, DateTimeDisplay, Text, withConfiguration } f
3
3
  import FormattedText from "./FormattedText";
4
4
 
5
5
  import type { PConnFieldProps } from './PConnProps';
6
+ import './create-nonce';
6
7
 
7
8
  import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
8
9
 
@@ -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 { useEffect, useState } from 'react';
2
2
  import { DateTimeInput, FieldValueList, DateTimeDisplay, 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 DateTimeFormatter from "./date-time";
@@ -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
+ }
@@ -2,6 +2,7 @@ import { useState, useEffect, useRef } from 'react';
2
2
  import { NumberInput, NumberDisplay, CurrencyDisplay, FieldValueList, Text, withConfiguration } from '@pega/cosmos-react-core';
3
3
 
4
4
  import type { PConnFieldProps } from './PConnProps';
5
+ import './create-nonce';
5
6
 
6
7
  // includes in bundle
7
8
  import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
@@ -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
+ }
@@ -12,6 +12,7 @@ import {
12
12
 
13
13
 
14
14
  import type { PConnFieldProps } from './PConnProps';
15
+ import './create-nonce';
15
16
 
16
17
  // includes in bundle
17
18
  import handleEvent from './event-utils';
@@ -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
+ }
@@ -10,6 +10,7 @@ import {
10
10
 
11
11
 
12
12
  import type { PConnFieldProps } from './PConnProps';
13
+ import './create-nonce';
13
14
 
14
15
  // includes in bundle
15
16
  import handleEvent from './event-utils';
@@ -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
+ }
@@ -3,6 +3,7 @@ import { NumberInput, NumberDisplay, Slider, FieldValueList, CurrencyDisplay, Te
3
3
 
4
4
 
5
5
  import type { PConnFieldProps } from './PConnProps';
6
+ import './create-nonce';
6
7
 
7
8
  // includes in bundle
8
9
  import handleEvent from "./event-utils";
@@ -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
+ }
@@ -4,6 +4,7 @@ import { useState, useEffect, useRef } from 'react';
4
4
  import { Select, Option, FieldValueList, Text, withConfiguration } from '@pega/cosmos-react-core';
5
5
 
6
6
  import type { PConnFieldProps } from './PConnProps';
7
+ import './create-nonce';
7
8
 
8
9
  // includes in bundle
9
10
  import handleEvent from "./event-utils";
@@ -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
+ }
@@ -4,6 +4,7 @@ import { useEffect, useRef, useState, useMemo, type MutableRefObject, type SetSt
4
4
  import { ComboBox, menuHelpers, debounce, throttle, Button, Icon, withConfiguration, type MenuGroupProps, type MenuItemProps } from '@pega/cosmos-react-core';
5
5
  import get from 'lodash.get';
6
6
  import type { PConnFieldProps } from './PConnProps';
7
+ import './create-nonce';
7
8
 
8
9
  // includes in bundle
9
10
  import handleEvent from "./event-utils";
@@ -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
+ }
@@ -2,6 +2,7 @@
2
2
  import { useMemo } from 'react';
3
3
  import { RadioButton, RadioButtonGroup, withConfiguration } from '@pega/cosmos-react-core';
4
4
  import type { PConnFieldProps } from './PConnProps';
5
+ import './create-nonce';
5
6
 
6
7
  // includes in bundle
7
8
  import { formatExists, textFormatter } from './textformat-utils';
@@ -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 { Input, withConfiguration } from '@pega/cosmos-react-core';
2
2
 
3
3
  import type { PConnFieldProps } from './PConnProps';
4
+ import './create-nonce';
4
5
 
5
6
  import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
6
7
 
@@ -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, EmailDisplay, FieldValueList, Text, URLDisplay, PhoneDisplay, 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 { suggestionsHandler } from './suggestions-handler';
@@ -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 { useEffect, useState, useRef } from 'react';
2
2
  import { Input, FieldValueList, Text, EmailDisplay, PhoneDisplay, URLDisplay, withConfiguration } from '@pega/cosmos-react-core';
3
3
  import type { PConnFieldProps } from './PConnProps';
4
+ import './create-nonce';
4
5
 
5
6
  // include in bundle
6
7
  import handleEvent from "./event-utils";
@@ -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
+ }
@@ -2,6 +2,7 @@ import { useState, useEffect, useRef } from 'react';
2
2
  import { TextArea as CosmosTextArea, FieldValueList, ParagraphDisplay, Text, EmailDisplay, PhoneDisplay, URLDisplay, withConfiguration } from '@pega/cosmos-react-core';
3
3
 
4
4
  import type { PConnFieldProps } from './PConnProps';
5
+ import './create-nonce';
5
6
 
6
7
  // includes in bundle
7
8
  import { suggestionsHandler } from './suggestions-handler';
@@ -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
+ }
@@ -10,6 +10,7 @@ import {
10
10
  withConfiguration
11
11
  } from '@pega/cosmos-react-core';
12
12
  import type { PConnFieldProps } from './PConnProps';
13
+ import './create-nonce';
13
14
 
14
15
  // includes in bundle
15
16
  import handleEvent from "./event-utils";
@@ -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
+ }
@@ -2,6 +2,7 @@ import { useEffect, useState } from 'react';
2
2
  import { TimeInput, FieldValueList, DateTimeDisplay, Text, withConfiguration } from '@pega/cosmos-react-core';
3
3
 
4
4
  import type { PConnFieldProps } from './PConnProps';
5
+ import './create-nonce';
5
6
 
6
7
 
7
8
  // includes in bundle
@@ -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 { Fragment } from 'react';
2
2
  import { Grid, Flex, FieldGroup, withConfiguration } from '@pega/cosmos-react-core';
3
3
  import type { PConnFieldProps } from './PConnProps';
4
+ import './create-nonce';
4
5
 
5
6
  import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
6
7
 
@@ -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 { Fragment } from 'react';
2
2
  import { Grid, Flex, FieldGroup, withConfiguration } from '@pega/cosmos-react-core';
3
3
  import type { PConnFieldProps } from './PConnProps';
4
+ import './create-nonce';
4
5
 
5
6
  import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
6
7
 
@@ -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,7 +1,7 @@
1
1
  import { Grid, FieldGroup, withConfiguration } from '@pega/cosmos-react-core';
2
2
 
3
-
4
3
  import type { PConnFieldProps } from './PConnProps';
4
+ import './create-nonce';
5
5
 
6
6
  import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
7
7
 
@@ -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 { Grid, Flex, FieldGroup, withConfiguration } from '@pega/cosmos-react-core';
2
2
 
3
3
  import type { PConnFieldProps } from './PConnProps';
4
+ import './create-nonce';
4
5
 
5
6
  import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
6
7
 
@@ -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
+ }
@@ -3,7 +3,7 @@ import { OneColumnPage as OneColumn, withConfiguration } from '@pega/cosmos-reac
3
3
  import { ConfigurableLayout } from '@pega/cosmos-react-work'
4
4
  // import { registerIcon } from '@pega/cosmos-react-core';
5
5
  import type { PConnFieldProps } from './PConnProps';
6
-
6
+ import './create-nonce';
7
7
 
8
8
 
9
9
  // temp
@@ -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 } from 'react';
2
2
  import { Table, Text, withConfiguration } from '@pega/cosmos-react-core';
3
3
  import type { PConnFieldProps } from './PConnProps';
4
+ import './create-nonce';
4
5
 
5
6
  import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
6
7
 
@@ -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 { withConfiguration } from '@pega/cosmos-react-core';
2
2
  import { AppAnnouncement as PegaAppAnnouncement } from '@pega/cosmos-react-work';
3
3
  import type { PConnFieldProps } from './PConnProps';
4
+ import './create-nonce';
4
5
 
5
6
  import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
6
7
 
@@ -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
+ }
@@ -4,6 +4,7 @@ import { Fragment } from 'react';
4
4
  import { DateTimeDisplay, Card, CardHeader, CardContent, Flex, withConfiguration } from '@pega/cosmos-react-core';
5
5
 
6
6
  import type { PConnFieldProps } from './PConnProps';
7
+ import './create-nonce';
7
8
 
8
9
  // includes in bundle
9
10
  import Operator from './Operator';
@@ -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 } from 'react';
2
2
  import { Table, Text, withConfiguration } from '@pega/cosmos-react-core';
3
3
  import type { PConnFieldProps } from './PConnProps';
4
+ import './create-nonce';
4
5
 
5
6
  import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
6
7
 
@@ -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 { Fragment } from 'react';
2
2
  import { DateTimeDisplay, Card, CardHeader, CardContent, Flex, 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 Operator from './Operator';