@rh-support/manage 2.1.27 → 2.1.28

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.
@@ -1 +1 @@
1
- {"version":3,"file":"RequestCollaborationModal.d.ts","sourceRoot":"","sources":["../../../../src/components/ManagePartnerships/RequestCollaborationModal.tsx"],"names":[],"mappings":"AAuBA,UAAU,MAAM;IACZ,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACrC;AAID,eAAO,MAAM,yBAAyB,UAAW,MAAM,gBAyNtD,CAAC"}
1
+ {"version":3,"file":"RequestCollaborationModal.d.ts","sourceRoot":"","sources":["../../../../src/components/ManagePartnerships/RequestCollaborationModal.tsx"],"names":[],"mappings":"AAuBA,UAAU,MAAM;IACZ,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACrC;AAID,eAAO,MAAM,yBAAyB,UAAW,MAAM,gBAmOtD,CAAC"}
@@ -58,6 +58,7 @@ export const RequestCollaborationModal = (props) => {
58
58
  setShowDone(false);
59
59
  setIsDoneClicked(false);
60
60
  setIsCopyClicked(false);
61
+ setLocalLinkName('');
61
62
  };
62
63
  const onClose = () => {
63
64
  reset();
@@ -65,7 +66,7 @@ export const RequestCollaborationModal = (props) => {
65
66
  };
66
67
  const onDone = () => {
67
68
  setIsDoneClicked(true);
68
- if (isCopyClicked) {
69
+ if (isCopyClicked || isRequestingAgain) {
69
70
  reset();
70
71
  props.onClose();
71
72
  }
@@ -118,7 +119,7 @@ export const RequestCollaborationModal = (props) => {
118
119
  return (React.createElement(Modal, { id: "request-collaboration-modal", className: "pf-modal-overflow-visible", title: isRequestingAgain ? 'Request collaboration again' : 'Request collaboration', isOpen: props.isOpen, onClose: onClose, showClose: true, onEscapePress: onClose, variant: ModalVariant.large, actions: [
119
120
  ...(showDone
120
121
  ? [
121
- React.createElement(Button, { key: "done", variant: ButtonVariant.primary, onClick: onDone, isDisabled: validated === 'error' || (!isCopyClicked && isDoneClicked), "data-tracking-id": "request-collaboration-done-button" },
122
+ React.createElement(Button, { key: "done", variant: ButtonVariant.primary, onClick: onDone, isDisabled: validated === 'error' || (!isRequestingAgain && !isCopyClicked && isDoneClicked), "data-tracking-id": "request-collaboration-done-button" },
122
123
  React.createElement(Trans, null, "Done")),
123
124
  ]
124
125
  : [
@@ -135,8 +136,8 @@ export const RequestCollaborationModal = (props) => {
135
136
  React.createElement(Trans, null, "Please enter a name for your request")), helperTextInvalid: isDuplicateLinkName
136
137
  ? t('Link name already used. Please enter a unique name')
137
138
  : t('Please enter a name for your request'), helperTextInvalidIcon: React.createElement(ExclamationCircleIcon, null), fieldId: partnershipLinkId, validated: validated, isRequired: true },
138
- React.createElement(TextInput, { isRequired: true, validated: validated, value: localLinkName || props.sendReqAgainFriendlyName, id: partnershipLinkId, "aria-describedby": "age-1-helper", onChange: handleLinkNameChange, onKeyDown: handleKeyDown, placeholder: t('e.g. Customer name'), isDisabled: showDone }))))),
139
- showDone && (React.createElement(React.Fragment, null,
139
+ React.createElement(TextInput, { isRequired: true, validated: validated, value: localLinkName || props.sendReqAgainFriendlyName, id: partnershipLinkId, "aria-describedby": "age-1-helper", onChange: handleLinkNameChange, onKeyDown: handleKeyDown, placeholder: t('e.g. Customer name'), isDisabled: showDone || isRequestingAgain }))))),
140
+ showDone && (React.createElement(React.Fragment, null, !isRequestingAgain ? (React.createElement(React.Fragment, null,
140
141
  React.createElement("h4", null,
141
142
  React.createElement("strong", null, "Copy and send")),
142
143
  React.createElement("div", { className: "clipboard-wrapper" },
@@ -149,5 +150,5 @@ export const RequestCollaborationModal = (props) => {
149
150
  ' ',
150
151
  "Please ",
151
152
  React.createElement("strong", null, "copy and send"),
152
- " this unique link to your customer for approval.")))))));
153
+ " this unique link to your customer for approval.")))) : (React.createElement(Trans, null, "Partnership request expiration date is extended.")))))));
153
154
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/manage",
3
- "version": "2.1.27",
3
+ "version": "2.1.28",
4
4
  "description": "Customer Support Manage App",
5
5
  "author": "Jordan Eudy <jeudy100@gmail.com>",
6
6
  "homepage": "",
@@ -46,7 +46,7 @@
46
46
  "prepublishOnly": "npm run build"
47
47
  },
48
48
  "peerDependencies": {
49
- "@cee-eng/hydrajs": "4.16.21",
49
+ "@cee-eng/hydrajs": "4.16.33",
50
50
  "@patternfly/patternfly": "4.196.7",
51
51
  "@patternfly/pfe-accordion": "1.12.3",
52
52
  "@patternfly/pfe-collapse": "1.12.3",
@@ -77,19 +77,19 @@
77
77
  "typescript": "4.3.5"
78
78
  },
79
79
  "dependencies": {
80
- "@cee-eng/hydrajs": "4.16.21",
80
+ "@cee-eng/hydrajs": "4.16.33",
81
81
  "@patternfly/patternfly": "4.196.7",
82
82
  "@patternfly/pfe-accordion": "1.12.3",
83
83
  "@patternfly/pfe-collapse": "1.12.3",
84
84
  "@patternfly/pfe-tabs": "1.12.3",
85
85
  "@patternfly/react-core": "4.264.0",
86
86
  "@patternfly/react-table": "4.111.33",
87
- "@rh-support/components": "2.1.22",
88
- "@rh-support/configs": "2.0.9",
89
- "@rh-support/react-context": "2.1.24",
87
+ "@rh-support/components": "2.1.23",
88
+ "@rh-support/configs": "2.0.10",
89
+ "@rh-support/react-context": "2.1.25",
90
90
  "@rh-support/types": "2.0.2",
91
- "@rh-support/user-permissions": "2.1.16",
92
- "@rh-support/utils": "2.1.10",
91
+ "@rh-support/user-permissions": "2.1.17",
92
+ "@rh-support/utils": "2.1.11",
93
93
  "@types/react-beautiful-dnd": "^13.0.0",
94
94
  "i18next": ">=17.0.1",
95
95
  "lodash": ">=4.17.15",
@@ -103,5 +103,5 @@
103
103
  "defaults and supports es6-module",
104
104
  "maintained node versions"
105
105
  ],
106
- "gitHead": "30819e27405b4d667e866752d5ed11d31f527c11"
106
+ "gitHead": "c082a541ec56ac26470bb50a86a6c5af323f5c17"
107
107
  }