@rh-support/components 1.1.16 → 1.1.20
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.
- package/lib/cjs/InlineEdit/InlineEdit.d.ts.map +1 -1
- package/lib/cjs/InlineEdit/InlineEdit.js +5 -2
- package/lib/cjs/SupportFeedbackForm/SupportFeedbackModal.d.ts.map +1 -1
- package/lib/cjs/SupportFeedbackForm/SupportFeedbackModal.js +2 -2
- package/lib/esm/InlineEdit/InlineEdit.d.ts.map +1 -1
- package/lib/esm/InlineEdit/InlineEdit.js +5 -2
- package/lib/esm/SupportFeedbackForm/SupportFeedbackModal.d.ts.map +1 -1
- package/lib/esm/SupportFeedbackForm/SupportFeedbackModal.js +2 -2
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InlineEdit.d.ts","sourceRoot":"","sources":["../../../src/InlineEdit/InlineEdit.tsx"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAG1B,OAAc,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"InlineEdit.d.ts","sourceRoot":"","sources":["../../../src/InlineEdit/InlineEdit.tsx"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAG1B,OAAc,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AAGnD,UAAU,MAAM;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;IACtC,UAAU,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;IACxC,YAAY,EAAE,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;IAC1C,aAAa,CAAC,EAAE,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;IAC5C,gBAAgB,EAAE,GAAG,CAAC,OAAO,GAAG,MAAM,CAAC;IACvC,OAAO,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC;IAC/B,eAAe,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,cAAc,EAAE,OAAO,CAAC;IACxB,WAAW,EAAE,GAAG,CAAC,OAAO,GAAG,MAAM,CAAC;IAClC,SAAS,EAAE,GAAG,CAAC,OAAO,GAAG,MAAM,CAAC;IAChC,MAAM,EAAE,GAAG,CAAC;IACZ,QAAQ,EAAE,GAAG,CAAC;IACd,cAAc,CAAC,EAAE,OAAO,CAAC;IAGzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAqBD,iBAAS,UAAU,CAAC,KAAK,EAAE,MAAM,eA+JhC;kBA/JQ,UAAU;;;AAkKnB,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -89,6 +89,7 @@ exports.InlineEdit = void 0;
|
|
|
89
89
|
require("./inlineEdit.css");
|
|
90
90
|
var pencil_alt_icon_1 = __importDefault(require("@patternfly/react-icons/dist/js/icons/pencil-alt-icon"));
|
|
91
91
|
var react_1 = __importStar(require("react"));
|
|
92
|
+
var react_i18next_1 = require("react-i18next");
|
|
92
93
|
var defaultProps = {
|
|
93
94
|
allowInlineEdit: false,
|
|
94
95
|
formClassName: '',
|
|
@@ -198,8 +199,10 @@ function InlineEdit(props) {
|
|
|
198
199
|
props.allowInlineEdit &&
|
|
199
200
|
isEditing && (react_1.default.createElement("span", { className: "edit-actions" },
|
|
200
201
|
props.loadingIndicator && react_1.default.createElement("span", null, props.loadingIndicator),
|
|
201
|
-
react_1.default.createElement("button", { "data-tracking-id": props.dataTrackingId ? props.dataTrackingId + "-inline-edit-save" : null, className: "btn btn-app btn-link", type: "button", onClick: onSaveClicked, disabled: props.saveDisabled },
|
|
202
|
-
|
|
202
|
+
react_1.default.createElement("button", { "data-tracking-id": props.dataTrackingId ? props.dataTrackingId + "-inline-edit-save" : null, className: "btn btn-app btn-link", type: "button", onClick: onSaveClicked, disabled: props.saveDisabled },
|
|
203
|
+
react_1.default.createElement(react_i18next_1.Trans, null, props.saveLabel)),
|
|
204
|
+
react_1.default.createElement("button", { type: "button", "data-tracking-id": props.dataTrackingId ? props.dataTrackingId + "-inline-edit-cancel" : null, className: "btn btn-app btn-link", onClick: onCancelClicked },
|
|
205
|
+
react_1.default.createElement(react_i18next_1.Trans, null, props.cancelLabel))));
|
|
203
206
|
};
|
|
204
207
|
var canShowContent = !isEditing && props.allowInlineEdit && props.content;
|
|
205
208
|
return (react_1.default.createElement("div", { className: "form-group edit-question " + props.formClassName, id: props.formId },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SupportFeedbackModal.d.ts","sourceRoot":"","sources":["../../../src/SupportFeedbackForm/SupportFeedbackModal.tsx"],"names":[],"mappings":";AAuBA,UAAU,MAAM;IACZ,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAMD,iBAAS,oBAAoB,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"SupportFeedbackModal.d.ts","sourceRoot":"","sources":["../../../src/SupportFeedbackForm/SupportFeedbackModal.tsx"],"names":[],"mappings":";AAuBA,UAAU,MAAM;IACZ,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAMD,iBAAS,oBAAoB,CAAC,KAAK,EAAE,MAAM,eAuM1C;kBAvMQ,oBAAoB;;;AA0M7B,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -214,7 +214,7 @@ function SupportFeedbackModal(props) {
|
|
|
214
214
|
react_1.default.createElement("div", { className: "form-group" },
|
|
215
215
|
react_1.default.createElement("label", { htmlFor: "moreFeedback" },
|
|
216
216
|
react_1.default.createElement(react_i18next_1.Trans, null, "How can we improve?")),
|
|
217
|
-
react_1.default.createElement(TextAreaAutosize_1.TextAreaAutosize, { name: "moreInfo", id: "moreFeedback", placeholder:
|
|
217
|
+
react_1.default.createElement(TextAreaAutosize_1.TextAreaAutosize, { name: "moreInfo", id: "moreFeedback", placeholder: t('i18nDescribeSuggestionDetail', 'Describe your suggestion in detail'), disabled: isFetching, value: values.moreInfo, className: "form-control", onChange: handleFeedbackTextChange, rowsMin: 3 })),
|
|
218
218
|
react_1.default.createElement("p", null,
|
|
219
219
|
react_1.default.createElement(react_i18next_1.Trans, null, "Feedback is sent to the web team working on this application, not the support associate working on your case.")))));
|
|
220
220
|
}
|
|
@@ -227,7 +227,7 @@ function SupportFeedbackModal(props) {
|
|
|
227
227
|
];
|
|
228
228
|
}
|
|
229
229
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
230
|
-
react_1.default.createElement(react_core_1.Modal, { id: "feedback-modal", title: t('Send us your feedback\n'), description:
|
|
230
|
+
react_1.default.createElement(react_core_1.Modal, { id: "feedback-modal", title: t('i18nSendUsFeedback', 'Send us your feedback\n'), description: t('i18nFeedbackFormFoundBug', 'Let us know if you found a bug or if you have a suggestion to improve the web experience.'), "aria-describedby": "Feedback Form", isOpen: props.isModalOpen, variant: react_core_1.ModalVariant.large, onClose: handleModalToggle, actions: returnModalAction() }, renderModalBody())));
|
|
231
231
|
}
|
|
232
232
|
exports.SupportFeedbackModal = SupportFeedbackModal;
|
|
233
233
|
SupportFeedbackModal.defaultProps = defaultProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InlineEdit.d.ts","sourceRoot":"","sources":["../../../src/InlineEdit/InlineEdit.tsx"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vB,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAqBD,iBAAS,UAAU,CAAC,KAAK,EAAE,MAAM,eA+JhC;kBA/JQ,UAAU;;;AAkKnB,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -10,6 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
import './inlineEdit.css';
|
|
11
11
|
import PencilAltIcon from '@patternfly/react-icons/dist/js/icons/pencil-alt-icon';
|
|
12
12
|
import React, { useState } from 'react';
|
|
13
|
+
import { Trans } from 'react-i18next';
|
|
13
14
|
const defaultProps = {
|
|
14
15
|
allowInlineEdit: false,
|
|
15
16
|
formClassName: '',
|
|
@@ -88,8 +89,10 @@ function InlineEdit(props) {
|
|
|
88
89
|
props.allowInlineEdit &&
|
|
89
90
|
isEditing && (React.createElement("span", { className: "edit-actions" },
|
|
90
91
|
props.loadingIndicator && React.createElement("span", null, props.loadingIndicator),
|
|
91
|
-
React.createElement("button", { "data-tracking-id": props.dataTrackingId ? `${props.dataTrackingId}-inline-edit-save` : null, className: "btn btn-app btn-link", type: "button", onClick: onSaveClicked, disabled: props.saveDisabled },
|
|
92
|
-
|
|
92
|
+
React.createElement("button", { "data-tracking-id": props.dataTrackingId ? `${props.dataTrackingId}-inline-edit-save` : null, className: "btn btn-app btn-link", type: "button", onClick: onSaveClicked, disabled: props.saveDisabled },
|
|
93
|
+
React.createElement(Trans, null, props.saveLabel)),
|
|
94
|
+
React.createElement("button", { type: "button", "data-tracking-id": props.dataTrackingId ? `${props.dataTrackingId}-inline-edit-cancel` : null, className: "btn btn-app btn-link", onClick: onCancelClicked },
|
|
95
|
+
React.createElement(Trans, null, props.cancelLabel))));
|
|
93
96
|
const canShowContent = !isEditing && props.allowInlineEdit && props.content;
|
|
94
97
|
return (React.createElement("div", { className: `form-group edit-question ${props.formClassName}`, id: props.formId },
|
|
95
98
|
!props.hideLabel && (React.createElement(React.Fragment, null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SupportFeedbackModal.d.ts","sourceRoot":"","sources":["../../../src/SupportFeedbackForm/SupportFeedbackModal.tsx"],"names":[],"mappings":";AAuBA,UAAU,MAAM;IACZ,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAMD,iBAAS,oBAAoB,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"SupportFeedbackModal.d.ts","sourceRoot":"","sources":["../../../src/SupportFeedbackForm/SupportFeedbackModal.tsx"],"names":[],"mappings":";AAuBA,UAAU,MAAM;IACZ,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAMD,iBAAS,oBAAoB,CAAC,KAAK,EAAE,MAAM,eAuM1C;kBAvMQ,oBAAoB;;;AA0M7B,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -120,7 +120,7 @@ function SupportFeedbackModal(props) {
|
|
|
120
120
|
React.createElement("div", { className: "form-group" },
|
|
121
121
|
React.createElement("label", { htmlFor: "moreFeedback" },
|
|
122
122
|
React.createElement(Trans, null, "How can we improve?")),
|
|
123
|
-
React.createElement(TextAreaAutosize, { name: "moreInfo", id: "moreFeedback", placeholder:
|
|
123
|
+
React.createElement(TextAreaAutosize, { name: "moreInfo", id: "moreFeedback", placeholder: t('i18nDescribeSuggestionDetail', 'Describe your suggestion in detail'), disabled: isFetching, value: values.moreInfo, className: "form-control", onChange: handleFeedbackTextChange, rowsMin: 3 })),
|
|
124
124
|
React.createElement("p", null,
|
|
125
125
|
React.createElement(Trans, null, "Feedback is sent to the web team working on this application, not the support associate working on your case.")))));
|
|
126
126
|
}
|
|
@@ -133,7 +133,7 @@ function SupportFeedbackModal(props) {
|
|
|
133
133
|
];
|
|
134
134
|
}
|
|
135
135
|
return (React.createElement(React.Fragment, null,
|
|
136
|
-
React.createElement(Modal, { id: "feedback-modal", title: t('Send us your feedback\n'), description:
|
|
136
|
+
React.createElement(Modal, { id: "feedback-modal", title: t('i18nSendUsFeedback', 'Send us your feedback\n'), description: t('i18nFeedbackFormFoundBug', 'Let us know if you found a bug or if you have a suggestion to improve the web experience.'), "aria-describedby": "Feedback Form", isOpen: props.isModalOpen, variant: ModalVariant.large, onClose: handleModalToggle, actions: returnModalAction() }, renderModalBody())));
|
|
137
137
|
}
|
|
138
138
|
SupportFeedbackModal.defaultProps = defaultProps;
|
|
139
139
|
export { SupportFeedbackModal };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/components",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.20",
|
|
4
4
|
"description": "Contains all reusabel components for support app",
|
|
5
5
|
"author": "Vikas Rathee <vrathee@redhat.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@patternfly/patternfly": "4.102.2",
|
|
58
58
|
"@patternfly/react-core": "4.128.2",
|
|
59
59
|
"@patternfly/react-table": "4.26.7",
|
|
60
|
-
"@rh-support/api": "0.
|
|
60
|
+
"@rh-support/api": "0.3.9",
|
|
61
61
|
"@rh-support/types": "0.1.21",
|
|
62
62
|
"@rh-support/user-permissions": "0.1.46",
|
|
63
63
|
"@rh-support/utils": "0.1.45",
|
|
@@ -87,8 +87,8 @@
|
|
|
87
87
|
"@patternfly/react-table": "4.26.7",
|
|
88
88
|
"@rh-support/api": "0.3.9",
|
|
89
89
|
"@rh-support/types": "0.2.0",
|
|
90
|
-
"@rh-support/user-permissions": "0.2.
|
|
91
|
-
"@rh-support/utils": "0.2.
|
|
90
|
+
"@rh-support/user-permissions": "0.2.15",
|
|
91
|
+
"@rh-support/utils": "0.2.13",
|
|
92
92
|
"@storybook/addon-a11y": "^5.3.19",
|
|
93
93
|
"@storybook/addon-actions": "^5.3.19",
|
|
94
94
|
"@storybook/addon-docs": "^5.3.19",
|
|
@@ -128,5 +128,5 @@
|
|
|
128
128
|
"not ie <= 11",
|
|
129
129
|
"not op_mini all"
|
|
130
130
|
],
|
|
131
|
-
"gitHead": "
|
|
131
|
+
"gitHead": "643158040e5b85d50275aa7f4318180c1defc696"
|
|
132
132
|
}
|