@truedat/core 4.43.3 → 4.43.4
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 +6 -0
- package/package.json +3 -3
- package/src/components/AlertExporter.js +5 -1
- package/src/components/CatalogMenu.js +2 -0
- package/src/components/__tests__/__snapshots__/CatalogMenu.spec.js.snap +6 -0
- package/src/messages/en.js +1 -0
- package/src/messages/es.js +1 -0
- package/src/routes.js +2 -0
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/core",
|
|
3
|
-
"version": "4.43.
|
|
3
|
+
"version": "4.43.4",
|
|
4
4
|
"description": "Truedat Web Core",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"jsnext:main": "src/index.js",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@babel/plugin-transform-modules-commonjs": "^7.15.0",
|
|
33
33
|
"@babel/preset-env": "^7.15.0",
|
|
34
34
|
"@babel/preset-react": "^7.14.5",
|
|
35
|
-
"@truedat/test": "4.43.
|
|
35
|
+
"@truedat/test": "4.43.4",
|
|
36
36
|
"babel-jest": "^27.0.6",
|
|
37
37
|
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
38
38
|
"babel-plugin-lodash": "^3.3.4",
|
|
@@ -106,5 +106,5 @@
|
|
|
106
106
|
"react-dom": ">= 16.8.6 < 17",
|
|
107
107
|
"semantic-ui-react": ">= 0.88.2 < 2.1"
|
|
108
108
|
},
|
|
109
|
-
"gitHead": "
|
|
109
|
+
"gitHead": "7f0463a65a0b8137f1598487bf26fefa52e5fa59"
|
|
110
110
|
}
|
|
@@ -6,7 +6,7 @@ import PropTypes from "prop-types";
|
|
|
6
6
|
import { useIntl } from "react-intl";
|
|
7
7
|
import { CSVLink } from "react-csv";
|
|
8
8
|
|
|
9
|
-
export const AlertExporter = ({ list, messages }) => {
|
|
9
|
+
export const AlertExporter = ({ list, messages, onClick, className }) => {
|
|
10
10
|
const fullTranslations = joinTranslations({ list, messages });
|
|
11
11
|
const { formatMessage } = useIntl();
|
|
12
12
|
return (
|
|
@@ -16,6 +16,8 @@ export const AlertExporter = ({ list, messages }) => {
|
|
|
16
16
|
data={fullTranslations}
|
|
17
17
|
filename="errors.csv"
|
|
18
18
|
target="_blank"
|
|
19
|
+
onClick={onClick}
|
|
20
|
+
className={className}
|
|
19
21
|
>
|
|
20
22
|
{formatMessage({ id: "alert.export.csv" })}
|
|
21
23
|
</CSVLink>
|
|
@@ -25,6 +27,8 @@ export const AlertExporter = ({ list, messages }) => {
|
|
|
25
27
|
AlertExporter.propTypes = {
|
|
26
28
|
list: PropTypes.array,
|
|
27
29
|
messages: PropTypes.array,
|
|
30
|
+
onClick: PropTypes.func,
|
|
31
|
+
className: PropTypes.string,
|
|
28
32
|
};
|
|
29
33
|
|
|
30
34
|
const joinTranslations = ({ list, messages }) => {
|
|
@@ -2,6 +2,7 @@ import _ from "lodash/fp";
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { useAuthorized } from "../hooks";
|
|
4
4
|
import {
|
|
5
|
+
STRUCTURES_UPLOAD_EVENTS,
|
|
5
6
|
PENDING_STRUCTURE_NOTES,
|
|
6
7
|
STRUCTURE_TAGS,
|
|
7
8
|
STRUCTURE_TYPES,
|
|
@@ -19,6 +20,7 @@ const adminItems = [
|
|
|
19
20
|
|
|
20
21
|
const structureNoteItems = [
|
|
21
22
|
{ name: "pending_structure_notes", routes: [PENDING_STRUCTURE_NOTES] },
|
|
23
|
+
{ name: "structures_upload_events", routes: [STRUCTURES_UPLOAD_EVENTS] },
|
|
22
24
|
];
|
|
23
25
|
|
|
24
26
|
export const CatalogMenu = () => {
|
package/src/messages/en.js
CHANGED
|
@@ -95,6 +95,7 @@ export default {
|
|
|
95
95
|
"sidemenu.structure_tags": "Structure Tags",
|
|
96
96
|
"sidemenu.structure_types": "Structure Types",
|
|
97
97
|
"sidemenu.structures": "Structures",
|
|
98
|
+
"sidemenu.structures_upload_events": "My loads",
|
|
98
99
|
"sidemenu.subscriptions": "Subscriptions",
|
|
99
100
|
"sidemenu.tags": "Relations",
|
|
100
101
|
"sidemenu.taxonomy": "Taxonomy",
|
package/src/messages/es.js
CHANGED
|
@@ -98,6 +98,7 @@ export default {
|
|
|
98
98
|
"sidemenu.structure_tags": "Etiquetas de estructura",
|
|
99
99
|
"sidemenu.structure_types": "Tipos de estructura",
|
|
100
100
|
"sidemenu.structures": "Estructuras",
|
|
101
|
+
"sidemenu.structures_upload_events": "Mis cargas",
|
|
101
102
|
"sidemenu.subscriptions": "Suscripciones",
|
|
102
103
|
"sidemenu.tags": "Relaciones",
|
|
103
104
|
"sidemenu.taxonomy": "Dominios",
|
package/src/routes.js
CHANGED
|
@@ -166,6 +166,7 @@ export const STRUCTURE_VERSION = "/structures/:id/versions/:version";
|
|
|
166
166
|
export const STRUCTURE_VERSIONS = "/structures/:id/versions";
|
|
167
167
|
export const STRUCTURE_VERSION_VERSIONS =
|
|
168
168
|
"/structures/:id/versions/:version/versions";
|
|
169
|
+
export const STRUCTURES_UPLOAD_EVENTS = "/bulk_update_template_content_events";
|
|
169
170
|
export const SUBSCRIPTION = "/subscriptions/:id";
|
|
170
171
|
export const SUBSCRIPTIONS = "/subscriptions";
|
|
171
172
|
export const SUBSCRIPTION_NEW = "/subscriptions/new";
|
|
@@ -319,6 +320,7 @@ const routes = {
|
|
|
319
320
|
STRUCTURE,
|
|
320
321
|
STRUCTURES_BULK_UPDATE,
|
|
321
322
|
STRUCTURES,
|
|
323
|
+
STRUCTURES_UPLOAD_EVENTS,
|
|
322
324
|
SUBSCRIPTION_EDIT,
|
|
323
325
|
SUBSCRIPTION_NEW,
|
|
324
326
|
SUBSCRIPTION,
|