@truedat/core 5.0.5 → 5.2.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [5.2.0] 2023-02-22
4
+
5
+ ### Added
6
+
7
+ - [TD-5471] Implementations CSV upload publish button
8
+
3
9
  ## [5.0.2] 2023-01-26
4
10
 
5
11
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/core",
3
- "version": "5.0.5",
3
+ "version": "5.2.1",
4
4
  "description": "Truedat Web Core",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -35,7 +35,7 @@
35
35
  "@testing-library/jest-dom": "^5.16.5",
36
36
  "@testing-library/react": "^12.0.0",
37
37
  "@testing-library/user-event": "^13.2.1",
38
- "@truedat/test": "5.0.5",
38
+ "@truedat/test": "5.2.1",
39
39
  "babel-jest": "^28.1.0",
40
40
  "babel-plugin-dynamic-import-node": "^2.3.3",
41
41
  "babel-plugin-lodash": "^3.3.4",
@@ -117,5 +117,5 @@
117
117
  "react-dom": ">= 16.8.6 < 17",
118
118
  "semantic-ui-react": ">= 2.0.3 < 2.2"
119
119
  },
120
- "gitHead": "a90adc0fcf336af276a585669065b661e28a8739"
120
+ "gitHead": "1f9ce2ad2fb29d1d8dc5ccb8940a7f573e7127bc"
121
121
  }
@@ -41,7 +41,7 @@ const actions = (handleSubmit, disabled, extraAction = null) => {
41
41
  {
42
42
  key: "yes",
43
43
  primary: true,
44
- content: <FormattedMessage id="uploadModal.accept" />,
44
+ content: <FormattedMessage id="uploadModal.accept.update" />,
45
45
  onClick: handleSubmit,
46
46
  disabled,
47
47
  },
@@ -82,6 +82,7 @@ export class UploadModal extends React.Component {
82
82
  size: PropTypes.string,
83
83
  accept: PropTypes.string,
84
84
  param: PropTypes.string,
85
+ extraAction: PropTypes.object,
85
86
  };
86
87
 
87
88
  constructor(props) {
@@ -163,6 +164,7 @@ export class UploadModal extends React.Component {
163
164
  ) : (
164
165
  <Modal.Content>
165
166
  <Dropzone
167
+ data-testid="fileDropZone"
166
168
  disableClick
167
169
  accept={accept}
168
170
  style={dropzoneActive ? dropzoneStyleHover : dropzoneStyle}
@@ -88,6 +88,7 @@ export default {
88
88
  "Are you sure that you want to delete permanently the filter {name}?",
89
89
  "selector.no.selection": "No selection",
90
90
  "uploadModal.accept": "Upload file",
91
+ "uploadModal.accept.update": "Upload and update",
91
92
  "uploadModal.accept.publish": "Upload and publish",
92
93
  "uploadModal.actions.upload": "Select file",
93
94
  "uploadModal.actions.upload.confirmation.content":
@@ -91,6 +91,7 @@ export default {
91
91
  "¿Desea eliminar de forma permanente el filtro personalizado {name}?",
92
92
  "selector.no.selection": "- Sin selección -",
93
93
  "uploadModal.accept": "Subir fichero",
94
+ "uploadModal.accept.update": "Subir y actualizar",
94
95
  "uploadModal.accept.publish": "Subir y publicar",
95
96
  "uploadModal.actions.upload": "Seleccionar fichero",
96
97
  "uploadModal.actions.upload.confirmation.content":