@qualtrics/plugin-ui-react 1.4.0-alpha.0 → 1.4.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/.dockerignore +1 -3
  2. package/.eslintignore +3 -0
  3. package/CHANGELOG.md +20 -0
  4. package/Dockerfile +5 -8
  5. package/Makefile +9 -17
  6. package/dist/common/capture-event/capture-event.d.ts +10 -6
  7. package/dist/common/field-mapper/field-mapper-key/field-mapper-key.d.ts +3 -3
  8. package/dist/common/field-mapper/field-mapper-row/field-mapper-row.d.ts +3 -2
  9. package/dist/common/field-mapper/field-mapper.d.ts +1 -1
  10. package/dist/common/piped-text-select/piped-text-menu/embedded-data-menu/embedded-data-input/embedded-data-input.d.ts +10 -0
  11. package/dist/common/piped-text-select/piped-text-menu/embedded-data-menu/embedded-data-menu.d.ts +15 -2
  12. package/dist/common/piped-text-select/piped-text-menu/piped-text-menu-item/piped-text-menu-item.d.ts +10 -7
  13. package/dist/common/piped-text-select/piped-text-menu/piped-text-menu-item-service.d.ts +7 -0
  14. package/dist/common/piped-text-select/piped-text-menu/piped-text-menu-keyboard-ctrl.d.ts +27 -0
  15. package/dist/common/piped-text-select/piped-text-menu/piped-text-menu-list/piped-text-menu-list.d.ts +24 -0
  16. package/dist/common/piped-text-select/piped-text-menu/piped-text-menu-list/piped-text-menu-load-error/piped-text-menu-load-error.d.ts +7 -0
  17. package/dist/common/piped-text-select/piped-text-menu/piped-text-menu-list/piped-text-search-input/piped-text-search-input.d.ts +10 -0
  18. package/dist/common/piped-text-select/piped-text-menu/piped-text-menu.d.ts +26 -4
  19. package/dist/common/piped-text-select/piped-text-menu/piped-text-submenu-item/piped-text-submenu-item.d.ts +7 -4
  20. package/dist/common/popover/popover-options.d.ts +3 -0
  21. package/dist/lib/merge-refs.d.ts +2 -0
  22. package/dist/main.es.js +1074 -640
  23. package/dist/main.js +1072 -638
  24. package/jenkins.groovy +13 -7
  25. package/jenkinsPipelineUtils/pipelineControls.groovy +8 -0
  26. package/package.json +2 -1
package/jenkins.groovy CHANGED
@@ -4,8 +4,6 @@ JOB_PARAMETER_RELEASE_STEP_PC_TICKETS = 'pc tickets'
4
4
 
5
5
  JOB_PARAMETER_PROJECT_PLUGIN_UI_REACT = 'plugin-ui-react'
6
6
 
7
- PUBLIC_REGISTRY = 'https://registry.npmjs.org'
8
-
9
7
  // Project Contstants
10
8
  SLACK_DEPLOY_CHANNEL = '#app-sdk-deploys'
11
9
  SLACK_MR_VALIDATION_CHANNEL = '#app-sdk-mr-validation'
@@ -30,7 +28,7 @@ JIRA_LABELS = ['DPEE']
30
28
  TEAM_RUNBOOK = 'https://odo.corp.qualtrics.com/wiki/index.php/AppSDK_Team_Runbook'
31
29
  TEAM_ROLLBACK = 'https://odo.corp.qualtrics.com/wiki/index.php/AppSDK_Team_Runbook#Task_Rollback'
32
30
 
33
- MAKE_PUBLISH_EXTERNAL = 'make publish-external'
31
+ MAKE_PUBLISH = 'make publish'
34
32
  MAKE_BUILD = 'make build'
35
33
  MAKE_TEST = 'make test'
36
34
  MAKE_CLEAN = 'make clean'
@@ -203,13 +201,12 @@ def createPCReleaseTicket(project) {
203
201
 
204
202
  def publishToNpm(project) {
205
203
  def nameVersion = getProjectNameAndVersion(project.name, project.directory)
206
- echo "publishing ${nameVersion}"
207
204
 
208
205
  if (hasVersionBeenPublished(project)) {
209
206
  def alreadyPublishedMessage = "${nameVersion} has already been published."
210
207
  if (isManualDeployJob()) {
211
208
  notifications.sendSlackFailedToPublishMessage(nameVersion, SLACK_DEPLOY_CHANNEL)
212
- erorr alreadyPublishedMessage
209
+ error alreadyPublishedMessage
213
210
  }
214
211
  echo "${alreadyPublishedMessage} Skipping..."
215
212
  return
@@ -217,6 +214,8 @@ def publishToNpm(project) {
217
214
 
218
215
  def packageJsonPath = getPackageJsonPath(project.directory)
219
216
  def tag = pipelineControls.isAlphaVersion(packageJsonPath) ? 'alpha' : 'latest'
217
+
218
+ echo "publishing ${nameVersion}"
220
219
  def publishStatus = publishToPublicRegistry(project.directory, tag)
221
220
 
222
221
  if (publishStatus == 0) {
@@ -242,7 +241,7 @@ def publishToPublicRegistry(directory, tag) {
242
241
  ]],
243
242
  ]
244
243
  withVault([configuration: configuration, vaultSecrets: secrets]) {
245
- publishStatus = sh(returnStatus: true, script: 'INT_NPM_TOKEN=$INT_NPM_TOKEN ' + "DIRECTORY=${directory} TAG=${tag} ${MAKE_PUBLISH_EXTERNAL}")
244
+ publishStatus = sh(returnStatus: true, script: 'INT_NPM_TOKEN=$INT_NPM_TOKEN ' + "DIRECTORY=${directory} TAG=${tag} ${MAKE_PUBLISH}")
246
245
  }
247
246
  return publishStatus
248
247
  }
@@ -263,6 +262,11 @@ def isDeploymentJob(jobParameterProject, directory) {
263
262
  return pipelineControls.isAlphaRelease(packageJsonPath, MAIN_BRANCH)
264
263
  }
265
264
 
265
+ def getNpmrcPath(directory) {
266
+ def rootDir = pwd()
267
+ return "${rootDir}/${directory}/.npmrc"
268
+ }
269
+
266
270
  def getPackageJsonPath(directory) {
267
271
  def rootDir = pwd()
268
272
  return "${rootDir}/${directory}/package.json"
@@ -280,5 +284,7 @@ def getPackageVersion(directory) {
280
284
 
281
285
  def hasVersionBeenPublished(project) {
282
286
  def version = getPackageVersion(project.directory)
283
- return pipelineControls.hasPackageBeenPreviouslyPublished(project.name, version, PUBLIC_REGISTRY)
287
+ def npmrcPath = getNpmrcPath(project.directory)
288
+ def registryUrl = pipelineControls.parseRegistryUrl(npmrcPath)
289
+ return pipelineControls.hasPackageBeenPreviouslyPublished(project.name, version, registryUrl)
284
290
  }
@@ -12,6 +12,14 @@ def getJobDisplayName(currentBuildNumber, projectName, mainBranch) {
12
12
  }
13
13
  }
14
14
 
15
+ def parseRegistryUrl(npmrcPath) {
16
+ def npmrcContents = readFile(npmrcPath)
17
+ def npmrcLines = npmrcContents.split('\n')
18
+ def registryLine = npmrcLines.find({line -> line.startsWith('registry=')})
19
+ def registryUrl = registryLine.minus('registry=')
20
+ return registryUrl
21
+ }
22
+
15
23
  def parseVersionNumber(packageJsonPath) {
16
24
  def versionNumberPattern = /(\d+).(\d+).(\d+(-alpha.(\d)+)?)/
17
25
  def manifest = readFile(packageJsonPath)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qualtrics/plugin-ui-react",
3
- "version": "1.4.0-alpha.0",
3
+ "version": "1.4.0-alpha.2",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "module": "dist/main.es.js",
@@ -39,6 +39,7 @@
39
39
  "@testing-library/dom": "^7.30.3",
40
40
  "@testing-library/jest-dom": "^5.11.5",
41
41
  "@testing-library/react": "^11.1.0",
42
+ "@types/lodash.clonedeep": "^4.5.7",
42
43
  "@types/lodash.get": "^4.4.6",
43
44
  "@types/react": "^17.0.11",
44
45
  "@types/react-dom": "^17.0.8",