@commercetools-frontend-extensions/export-resources-modal 5.1.0 → 5.1.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.
- package/dist/{active-drag-drop-area-7fd53916.cjs.prod.js → active-drag-drop-area-8bd2a4fa.cjs.prod.js} +1 -1
- package/dist/{active-drag-drop-area-56db6919.cjs.dev.js → active-drag-drop-area-9c4e4c80.cjs.dev.js} +1 -1
- package/dist/{active-drag-drop-area-69b691d5.esm.js → active-drag-drop-area-f1aefe17.esm.js} +1 -1
- package/dist/commercetools-frontend-extensions-export-resources-modal.cjs.dev.js +3 -3
- package/dist/commercetools-frontend-extensions-export-resources-modal.cjs.prod.js +3 -3
- package/dist/commercetools-frontend-extensions-export-resources-modal.esm.js +3 -3
- package/dist/declarations/src/@hooks/use-validate-export-operation.d.ts +4 -4
- package/dist/{enabled-drop-area-a5fe741d.cjs.dev.js → enabled-drop-area-1f7b5758.cjs.dev.js} +1 -1
- package/dist/{enabled-drop-area-4c8d613f.cjs.prod.js → enabled-drop-area-72091b2d.cjs.prod.js} +1 -1
- package/dist/{enabled-drop-area-48a953a6.esm.js → enabled-drop-area-9477e747.esm.js} +1 -1
- package/dist/{file-dropped-area-c8a5f539.esm.js → file-dropped-area-35bc207d.esm.js} +7 -7
- package/dist/{file-dropped-area-b685a683.cjs.prod.js → file-dropped-area-60034b84.cjs.prod.js} +7 -7
- package/dist/{file-dropped-area-5979698c.cjs.dev.js → file-dropped-area-92b92498.cjs.dev.js} +7 -7
- package/dist/{index-32b358db.cjs.dev.js → index-1c23b26d.cjs.dev.js} +34 -27
- package/dist/{index-bcefd2cf.cjs.prod.js → index-42a26922.cjs.prod.js} +34 -27
- package/dist/{index-f7e098bb.esm.js → index-6d925660.esm.js} +35 -28
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var dist_commercetoolsFrontendExtensionsExportResourcesModal = require('./index-
|
|
3
|
+
var dist_commercetoolsFrontendExtensionsExportResourcesModal = require('./index-42a26922.cjs.prod.js');
|
|
4
4
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
5
5
|
require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
6
6
|
require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
|
package/dist/{active-drag-drop-area-56db6919.cjs.dev.js → active-drag-drop-area-9c4e4c80.cjs.dev.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var dist_commercetoolsFrontendExtensionsExportResourcesModal = require('./index-
|
|
3
|
+
var dist_commercetoolsFrontendExtensionsExportResourcesModal = require('./index-1c23b26d.cjs.dev.js');
|
|
4
4
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
5
5
|
require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
6
6
|
require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
|
package/dist/{active-drag-drop-area-69b691d5.esm.js → active-drag-drop-area-f1aefe17.esm.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FileDropped, E as EnabledDropArea } from './index-
|
|
1
|
+
import { F as FileDropped, E as EnabledDropArea } from './index-6d925660.esm.js';
|
|
2
2
|
import { jsx } from '@emotion/react/jsx-runtime';
|
|
3
3
|
import '@babel/runtime-corejs3/helpers/defineProperty';
|
|
4
4
|
import '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var dist_commercetoolsFrontendExtensionsExportResourcesModal = require('./index-
|
|
5
|
+
var dist_commercetoolsFrontendExtensionsExportResourcesModal = require('./index-1c23b26d.cjs.dev.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('@commercetools-frontend/ui-kit');
|
|
8
8
|
require('@emotion/react/jsx-runtime');
|
|
@@ -46,12 +46,12 @@ require('@babel/runtime-corejs3/core-js-stable/object/values');
|
|
|
46
46
|
require('@commercetools-frontend/application-shell-connectors');
|
|
47
47
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
48
48
|
require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
|
|
49
|
-
require('@commercetools-frontend/actions-global');
|
|
50
|
-
require('@commercetools-frontend/constants');
|
|
51
49
|
require('formik');
|
|
52
50
|
require('@commercetools-uikit/icons');
|
|
53
51
|
require('react-dropzone');
|
|
54
52
|
require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
53
|
+
require('@commercetools-frontend/actions-global');
|
|
54
|
+
require('@commercetools-frontend/constants');
|
|
55
55
|
require('@commercetools-frontend/sdk');
|
|
56
56
|
require('@babel/runtime-corejs3/core-js-stable/object/entries');
|
|
57
57
|
require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var dist_commercetoolsFrontendExtensionsExportResourcesModal = require('./index-
|
|
5
|
+
var dist_commercetoolsFrontendExtensionsExportResourcesModal = require('./index-42a26922.cjs.prod.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('@commercetools-frontend/ui-kit');
|
|
8
8
|
require('@emotion/react/jsx-runtime');
|
|
@@ -50,12 +50,12 @@ require('lodash/debounce');
|
|
|
50
50
|
require('@emotion/react');
|
|
51
51
|
require('lodash/get');
|
|
52
52
|
require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
|
|
53
|
-
require('@commercetools-frontend/actions-global');
|
|
54
|
-
require('@commercetools-frontend/constants');
|
|
55
53
|
require('formik');
|
|
56
54
|
require('@commercetools-uikit/icons');
|
|
57
55
|
require('react-dropzone');
|
|
58
56
|
require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
57
|
+
require('@commercetools-frontend/actions-global');
|
|
58
|
+
require('@commercetools-frontend/constants');
|
|
59
59
|
require('@commercetools-frontend/sdk');
|
|
60
60
|
require('@babel/runtime-corejs3/core-js-stable/object/entries');
|
|
61
61
|
require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as EXPORTABLE_RESOURCES, b as EXPORT_TYPES, L as LocaleOption, S as Step, a as default, d as useConvertFieldDefinitionsForExport } from './index-
|
|
1
|
+
export { c as EXPORTABLE_RESOURCES, b as EXPORT_TYPES, L as LocaleOption, S as Step, a as default, d as useConvertFieldDefinitionsForExport } from './index-6d925660.esm.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '@commercetools-frontend/ui-kit';
|
|
4
4
|
import '@emotion/react/jsx-runtime';
|
|
@@ -42,12 +42,12 @@ import '@babel/runtime-corejs3/core-js-stable/object/values';
|
|
|
42
42
|
import '@commercetools-frontend/application-shell-connectors';
|
|
43
43
|
import '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
44
44
|
import '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
45
|
-
import '@commercetools-frontend/actions-global';
|
|
46
|
-
import '@commercetools-frontend/constants';
|
|
47
45
|
import 'formik';
|
|
48
46
|
import '@commercetools-uikit/icons';
|
|
49
47
|
import 'react-dropzone';
|
|
50
48
|
import '@babel/runtime-corejs3/core-js-stable/json/stringify';
|
|
49
|
+
import '@commercetools-frontend/actions-global';
|
|
50
|
+
import '@commercetools-frontend/constants';
|
|
51
51
|
import '@commercetools-frontend/sdk';
|
|
52
52
|
import '@babel/runtime-corejs3/core-js-stable/object/entries';
|
|
53
53
|
import '@babel/runtime-corejs3/core-js-stable/instance/starts-with';
|
|
@@ -12,22 +12,22 @@ export declare const useValidateExportOperation: () => {
|
|
|
12
12
|
code: string;
|
|
13
13
|
field: string;
|
|
14
14
|
}[];
|
|
15
|
-
|
|
15
|
+
noResourcesToExportForQueryPredicate?: undefined;
|
|
16
16
|
invalidQueryPredicate?: undefined;
|
|
17
17
|
} | {
|
|
18
18
|
success: boolean;
|
|
19
|
-
|
|
19
|
+
noResourcesToExportForQueryPredicate: boolean;
|
|
20
20
|
validationErrors?: undefined;
|
|
21
21
|
invalidQueryPredicate?: undefined;
|
|
22
22
|
} | {
|
|
23
23
|
success: boolean;
|
|
24
24
|
validationErrors?: undefined;
|
|
25
|
-
|
|
25
|
+
noResourcesToExportForQueryPredicate?: undefined;
|
|
26
26
|
invalidQueryPredicate?: undefined;
|
|
27
27
|
} | {
|
|
28
28
|
success: boolean;
|
|
29
29
|
invalidQueryPredicate: boolean;
|
|
30
30
|
validationErrors?: undefined;
|
|
31
|
-
|
|
31
|
+
noResourcesToExportForQueryPredicate?: undefined;
|
|
32
32
|
} | undefined>;
|
|
33
33
|
};
|
package/dist/{enabled-drop-area-a5fe741d.cjs.dev.js → enabled-drop-area-1f7b5758.cjs.dev.js}
RENAMED
|
@@ -12,7 +12,7 @@ var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/obje
|
|
|
12
12
|
var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
13
13
|
require('react');
|
|
14
14
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
15
|
-
var dist_commercetoolsFrontendExtensionsExportResourcesModal = require('./index-
|
|
15
|
+
var dist_commercetoolsFrontendExtensionsExportResourcesModal = require('./index-1c23b26d.cjs.dev.js');
|
|
16
16
|
require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
|
|
17
17
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
18
18
|
require('@babel/runtime-corejs3/core-js-stable/object/entries');
|
package/dist/{enabled-drop-area-4c8d613f.cjs.prod.js → enabled-drop-area-72091b2d.cjs.prod.js}
RENAMED
|
@@ -12,7 +12,7 @@ var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/obje
|
|
|
12
12
|
var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
13
13
|
require('react');
|
|
14
14
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
15
|
-
var dist_commercetoolsFrontendExtensionsExportResourcesModal = require('./index-
|
|
15
|
+
var dist_commercetoolsFrontendExtensionsExportResourcesModal = require('./index-42a26922.cjs.prod.js');
|
|
16
16
|
require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
|
|
17
17
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
18
18
|
require('@babel/runtime-corejs3/core-js-stable/object/entries');
|
|
@@ -10,7 +10,7 @@ import _Object$defineProperty from '@babel/runtime-corejs3/core-js-stable/object
|
|
|
10
10
|
import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
|
|
11
11
|
import 'react';
|
|
12
12
|
import { jsxs, jsx } from '@emotion/react/jsx-runtime';
|
|
13
|
-
import { m as messages } from './index-
|
|
13
|
+
import { m as messages } from './index-6d925660.esm.js';
|
|
14
14
|
import '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
15
15
|
import '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
16
16
|
import '@babel/runtime-corejs3/core-js-stable/object/entries';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _valuesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/values';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
3
|
import { Spacings, PaperclipIcon, Constraints, Text, SecondaryButton } from '@commercetools-frontend/ui-kit';
|
|
4
|
-
import { u as useExportResourcesModalContext, m as messages } from './index-
|
|
4
|
+
import { u as useExportResourcesModalContext, m as messages } from './index-6d925660.esm.js';
|
|
5
5
|
import '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
6
6
|
import '@babel/runtime-corejs3/core-js-stable/instance/reduce';
|
|
7
7
|
import 'react';
|
|
@@ -35,7 +35,6 @@ import '@babel/runtime-corejs3/helpers/possibleConstructorReturn';
|
|
|
35
35
|
import '@babel/runtime-corejs3/helpers/getPrototypeOf';
|
|
36
36
|
import '@babel/runtime-corejs3/helpers/inherits';
|
|
37
37
|
import '@babel/runtime-corejs3/helpers/wrapNativeSuper';
|
|
38
|
-
import { jsxs, jsx } from '@emotion/react/jsx-runtime';
|
|
39
38
|
import '@babel/runtime-corejs3/core-js-stable/promise';
|
|
40
39
|
import '@babel/runtime-corejs3/core-js-stable/instance/slice';
|
|
41
40
|
import '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
@@ -44,19 +43,20 @@ import '@commercetools-frontend/actions-global';
|
|
|
44
43
|
import '@commercetools-frontend/constants';
|
|
45
44
|
import '@commercetools-frontend/sdk';
|
|
46
45
|
import '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
46
|
+
import { jsxs, jsx } from '@emotion/react/jsx-runtime';
|
|
47
|
+
import '@commercetools-frontend/application-components';
|
|
48
|
+
import '@commercetools-frontend/fullstory';
|
|
49
|
+
import 'formik';
|
|
50
|
+
import '@commercetools-uikit/icons';
|
|
51
|
+
import 'react-dropzone';
|
|
47
52
|
import '@commercetools-frontend/l10n';
|
|
48
53
|
import 'lodash/sortBy';
|
|
49
54
|
import '@babel/runtime-corejs3/core-js-stable/object/entries';
|
|
50
55
|
import '@babel/runtime-corejs3/core-js-stable/instance/starts-with';
|
|
51
56
|
import '@babel/runtime-corejs3/core-js-stable/instance/ends-with';
|
|
52
|
-
import '@commercetools-frontend/application-components';
|
|
53
|
-
import '@commercetools-frontend/fullstory';
|
|
54
57
|
import '@emotion/styled/base';
|
|
55
58
|
import 'lodash/debounce';
|
|
56
|
-
import 'formik';
|
|
57
|
-
import '@commercetools-uikit/icons';
|
|
58
59
|
import '@emotion/react';
|
|
59
|
-
import 'react-dropzone';
|
|
60
60
|
import 'lodash/get';
|
|
61
61
|
import '@commercetools-frontend/i18n';
|
|
62
62
|
import '@commercetools-frontend/sentry';
|
package/dist/{file-dropped-area-b685a683.cjs.prod.js → file-dropped-area-60034b84.cjs.prod.js}
RENAMED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _valuesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/values');
|
|
4
4
|
var reactIntl = require('react-intl');
|
|
5
5
|
var uiKit = require('@commercetools-frontend/ui-kit');
|
|
6
|
-
var dist_commercetoolsFrontendExtensionsExportResourcesModal = require('./index-
|
|
6
|
+
var dist_commercetoolsFrontendExtensionsExportResourcesModal = require('./index-42a26922.cjs.prod.js');
|
|
7
7
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
8
8
|
require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
|
|
9
9
|
require('react');
|
|
@@ -37,7 +37,6 @@ require('@babel/runtime-corejs3/helpers/possibleConstructorReturn');
|
|
|
37
37
|
require('@babel/runtime-corejs3/helpers/getPrototypeOf');
|
|
38
38
|
require('@babel/runtime-corejs3/helpers/inherits');
|
|
39
39
|
require('@babel/runtime-corejs3/helpers/wrapNativeSuper');
|
|
40
|
-
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
41
40
|
require('@babel/runtime-corejs3/core-js-stable/promise');
|
|
42
41
|
require('@babel/runtime-corejs3/core-js-stable/instance/slice');
|
|
43
42
|
require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
|
@@ -46,11 +45,7 @@ require('@commercetools-frontend/actions-global');
|
|
|
46
45
|
require('@commercetools-frontend/constants');
|
|
47
46
|
require('@commercetools-frontend/sdk');
|
|
48
47
|
require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
|
|
49
|
-
require('@
|
|
50
|
-
require('lodash/sortBy');
|
|
51
|
-
require('@babel/runtime-corejs3/core-js-stable/object/entries');
|
|
52
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
|
|
53
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/ends-with');
|
|
48
|
+
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
54
49
|
require('@commercetools-frontend/application-components');
|
|
55
50
|
require('@commercetools-frontend/fullstory');
|
|
56
51
|
require('@emotion/styled/base');
|
|
@@ -60,6 +55,11 @@ require('lodash/get');
|
|
|
60
55
|
require('formik');
|
|
61
56
|
require('@commercetools-uikit/icons');
|
|
62
57
|
require('react-dropzone');
|
|
58
|
+
require('@commercetools-frontend/l10n');
|
|
59
|
+
require('lodash/sortBy');
|
|
60
|
+
require('@babel/runtime-corejs3/core-js-stable/object/entries');
|
|
61
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
|
|
62
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/ends-with');
|
|
63
63
|
require('@commercetools-frontend/i18n');
|
|
64
64
|
require('@commercetools-frontend/sentry');
|
|
65
65
|
|
package/dist/{file-dropped-area-5979698c.cjs.dev.js → file-dropped-area-92b92498.cjs.dev.js}
RENAMED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _valuesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/values');
|
|
4
4
|
var reactIntl = require('react-intl');
|
|
5
5
|
var uiKit = require('@commercetools-frontend/ui-kit');
|
|
6
|
-
var dist_commercetoolsFrontendExtensionsExportResourcesModal = require('./index-
|
|
6
|
+
var dist_commercetoolsFrontendExtensionsExportResourcesModal = require('./index-1c23b26d.cjs.dev.js');
|
|
7
7
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
8
8
|
require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
|
|
9
9
|
require('react');
|
|
@@ -37,7 +37,6 @@ require('@babel/runtime-corejs3/helpers/possibleConstructorReturn');
|
|
|
37
37
|
require('@babel/runtime-corejs3/helpers/getPrototypeOf');
|
|
38
38
|
require('@babel/runtime-corejs3/helpers/inherits');
|
|
39
39
|
require('@babel/runtime-corejs3/helpers/wrapNativeSuper');
|
|
40
|
-
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
41
40
|
require('@babel/runtime-corejs3/core-js-stable/promise');
|
|
42
41
|
require('@babel/runtime-corejs3/core-js-stable/instance/slice');
|
|
43
42
|
require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
|
@@ -46,19 +45,20 @@ require('@commercetools-frontend/actions-global');
|
|
|
46
45
|
require('@commercetools-frontend/constants');
|
|
47
46
|
require('@commercetools-frontend/sdk');
|
|
48
47
|
require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
|
|
48
|
+
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
49
|
+
require('@commercetools-frontend/application-components');
|
|
50
|
+
require('@commercetools-frontend/fullstory');
|
|
51
|
+
require('formik');
|
|
52
|
+
require('@commercetools-uikit/icons');
|
|
53
|
+
require('react-dropzone');
|
|
49
54
|
require('@commercetools-frontend/l10n');
|
|
50
55
|
require('lodash/sortBy');
|
|
51
56
|
require('@babel/runtime-corejs3/core-js-stable/object/entries');
|
|
52
57
|
require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
|
|
53
58
|
require('@babel/runtime-corejs3/core-js-stable/instance/ends-with');
|
|
54
|
-
require('@commercetools-frontend/application-components');
|
|
55
|
-
require('@commercetools-frontend/fullstory');
|
|
56
59
|
require('@emotion/styled/base');
|
|
57
60
|
require('lodash/debounce');
|
|
58
|
-
require('formik');
|
|
59
|
-
require('@commercetools-uikit/icons');
|
|
60
61
|
require('@emotion/react');
|
|
61
|
-
require('react-dropzone');
|
|
62
62
|
require('lodash/get');
|
|
63
63
|
require('@commercetools-frontend/i18n');
|
|
64
64
|
require('@commercetools-frontend/sentry');
|
|
@@ -638,9 +638,9 @@ var messages = reactIntl.defineMessages({
|
|
|
638
638
|
description: 'Error when query predicate field is missing',
|
|
639
639
|
defaultMessage: 'Please enter a query predicate'
|
|
640
640
|
},
|
|
641
|
-
|
|
642
|
-
id: 'ExportResourcesModal.
|
|
643
|
-
description: 'Error message when there are no resources to export',
|
|
641
|
+
noResourcesToExportForQueryPredicate: {
|
|
642
|
+
id: 'ExportResourcesModal.noResourcesToExportForQueryPredicate',
|
|
643
|
+
description: 'Error message when there are no resources to export for given query predicate',
|
|
644
644
|
defaultMessage: 'No resources match your query predicate. Please check your query predicate and try again.'
|
|
645
645
|
}
|
|
646
646
|
});
|
|
@@ -671,6 +671,8 @@ const renderQueryPredicateError = key => {
|
|
|
671
671
|
return jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$h({}, messages.missingQueryPredicateError));
|
|
672
672
|
case 'invalidInput':
|
|
673
673
|
return jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$h({}, messages.invalidQueryPredicate));
|
|
674
|
+
case 'noResourcesToExportForQueryPredicate':
|
|
675
|
+
return jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$h({}, messages.noResourcesToExportForQueryPredicate));
|
|
674
676
|
default:
|
|
675
677
|
return null;
|
|
676
678
|
}
|
|
@@ -946,12 +948,6 @@ function appendCsvOrJsonExtensionIfAbsent(fileName, fileFormat) {
|
|
|
946
948
|
if (!extensionRegex.test(fileName)) return `${fileName}.${fileFormat}`;
|
|
947
949
|
return fileName;
|
|
948
950
|
}
|
|
949
|
-
function getExportLogsLink(projectKey, msg) {
|
|
950
|
-
return jsxRuntime.jsx(uiKit.Link, {
|
|
951
|
-
to: `/${projectKey}/operations/export/logs`,
|
|
952
|
-
children: msg
|
|
953
|
-
}, "link");
|
|
954
|
-
}
|
|
955
951
|
const extractFieldNamesAndAdditionalFieldExtensions = fields => {
|
|
956
952
|
const result = _reduceInstanceProperty__default["default"](fields).call(fields, (acc, field) => {
|
|
957
953
|
if (field.extendedFieldNames) {
|
|
@@ -1596,7 +1592,12 @@ const useStartExportOperation = props => {
|
|
|
1596
1592
|
// @ts-ignore
|
|
1597
1593
|
text: intl.formatMessage(messages.exportOperationSuccessMessage, {
|
|
1598
1594
|
newline: getNewLine,
|
|
1599
|
-
logsLink: msg =>
|
|
1595
|
+
logsLink: msg => jsxRuntime.jsx(ExportLogsLink, {
|
|
1596
|
+
projectKey: projectKey
|
|
1597
|
+
// @ts-ignore the `msg` parameter type is not compatible with the `string` type
|
|
1598
|
+
,
|
|
1599
|
+
msg: msg
|
|
1600
|
+
}, "export-logs-link"),
|
|
1600
1601
|
b: getBold
|
|
1601
1602
|
})
|
|
1602
1603
|
}, {
|
|
@@ -1760,7 +1761,7 @@ const useValidateExportOperation = () => {
|
|
|
1760
1761
|
if (isExportApiSuccessResponse(response) && response.resourceCount === 0) {
|
|
1761
1762
|
return {
|
|
1762
1763
|
success: false,
|
|
1763
|
-
|
|
1764
|
+
noResourcesToExportForQueryPredicate: true
|
|
1764
1765
|
};
|
|
1765
1766
|
}
|
|
1766
1767
|
return {
|
|
@@ -1981,7 +1982,9 @@ const ExportFileSettingsStep = () => {
|
|
|
1981
1982
|
onBlur: formik.handleBlur,
|
|
1982
1983
|
value: _valuesInstanceProperty__default["default"](formik).outputFormat,
|
|
1983
1984
|
title: intl.formatMessage(messages.outputFormat),
|
|
1984
|
-
options: OUTPUT_FORMAT_OPTIONS
|
|
1985
|
+
options: OUTPUT_FORMAT_OPTIONS,
|
|
1986
|
+
menuPortalTarget: document.body,
|
|
1987
|
+
menuPortalZIndex: Z_INDEX_DROPDOWN
|
|
1985
1988
|
}), jsxRuntime.jsx(fullstory.Masking.Mask, {
|
|
1986
1989
|
children: jsxRuntime.jsx(uiKit.TextField, {
|
|
1987
1990
|
name: "fileName",
|
|
@@ -2763,8 +2766,6 @@ const _excluded$1 = ["children"];
|
|
|
2763
2766
|
const ExportResourcesProvider = _ref => {
|
|
2764
2767
|
let children = _ref.children,
|
|
2765
2768
|
props = _objectWithoutProperties(_ref, _excluded$1);
|
|
2766
|
-
const intl = reactIntl.useIntl();
|
|
2767
|
-
const showNotification = actionsGlobal.useShowNotification();
|
|
2768
2769
|
const initialValues = useInitialValues(props);
|
|
2769
2770
|
const _React$useState = React__default["default"].useState(Step.FileSettings),
|
|
2770
2771
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -2821,12 +2822,8 @@ const ExportResourcesProvider = _ref => {
|
|
|
2821
2822
|
formik$1.setFieldError('queryPredicate', 'invalidInput');
|
|
2822
2823
|
return;
|
|
2823
2824
|
}
|
|
2824
|
-
if (validationResult?.
|
|
2825
|
-
|
|
2826
|
-
text: intl.formatMessage(messages.noResourcesToExport),
|
|
2827
|
-
kind: 'error',
|
|
2828
|
-
domain: constants.DOMAINS.PAGE
|
|
2829
|
-
});
|
|
2825
|
+
if (validationResult?.noResourcesToExportForQueryPredicate) {
|
|
2826
|
+
formik$1.setFieldError('queryPredicate', 'noResourcesToExportForQueryPredicate');
|
|
2830
2827
|
return;
|
|
2831
2828
|
}
|
|
2832
2829
|
}
|
|
@@ -2886,6 +2883,14 @@ const ExportResourcesProvider = _ref => {
|
|
|
2886
2883
|
});
|
|
2887
2884
|
};
|
|
2888
2885
|
|
|
2886
|
+
const ExportLogsLink = props => {
|
|
2887
|
+
return jsxRuntime.jsx(uiKit.Link, {
|
|
2888
|
+
to: `/${props.projectKey}/operations/export/logs`,
|
|
2889
|
+
tone: props.tone,
|
|
2890
|
+
children: props.msg
|
|
2891
|
+
}, "link");
|
|
2892
|
+
};
|
|
2893
|
+
|
|
2889
2894
|
const DEFAULT_MAX_VISIBLE_FIELDS = 10;
|
|
2890
2895
|
const FieldsPreview = _ref => {
|
|
2891
2896
|
let previewGroupLabel = _ref.previewGroupLabel,
|
|
@@ -2996,10 +3001,12 @@ const ExportConfirmationStep = () => {
|
|
|
2996
3001
|
}), jsxRuntime.jsx(uiKit.Text.Body, {
|
|
2997
3002
|
intlMessage: _objectSpread$4(_objectSpread$4({}, messages.exportProcessMayTakeAWhile), {}, {
|
|
2998
3003
|
values: {
|
|
2999
|
-
exportLogsLink: msg => jsxRuntime.jsx(
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3004
|
+
exportLogsLink: msg => jsxRuntime.jsx(ExportLogsLink, {
|
|
3005
|
+
projectKey: projectKey,
|
|
3006
|
+
tone: "secondary"
|
|
3007
|
+
// @ts-ignore the `msg` parameter type is not compatible with the `string` type
|
|
3008
|
+
,
|
|
3009
|
+
msg: msg
|
|
3003
3010
|
}, "export-logs-link"),
|
|
3004
3011
|
operationsIcon: () => jsxRuntime.jsx(icons.OperationsIcon, {
|
|
3005
3012
|
size: "40"
|
|
@@ -3222,11 +3229,11 @@ function getDefaultDropWrapperStyles(_dropAreaState) {
|
|
|
3222
3229
|
return /*#__PURE__*/react.css(process.env.NODE_ENV === "production" ? "" : ";label:getDefaultDropWrapperStyles;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImRyb3AtYXJlYS13cmFwcGVyLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF5QlkiLCJmaWxlIjoiZHJvcC1hcmVhLXdyYXBwZXIudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgdHlwZSBEcm9wem9uZVJvb3RQcm9wcyB9IGZyb20gJ3JlYWN0LWRyb3B6b25lJ1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcbmltcG9ydCB7IHN0eWxlcyB9IGZyb20gJy4vc3R5bGVzJ1xuaW1wb3J0IHsgdHlwZSBEcm9wQXJlYVN0YXRlIH0gZnJvbSAnLi4vLi4vLi4vQHR5cGVzJ1xuXG5pbnRlcmZhY2UgRHJvcFdyYXBwZXJQcm9wcyBleHRlbmRzIERyb3B6b25lUm9vdFByb3BzIHtcbiAgZHJvcEFyZWFTdGF0ZTogRHJvcEFyZWFTdGF0ZVxufVxuZXhwb3J0IGNvbnN0IERyb3BXcmFwcGVyID0gc3R5bGVkLmRpdjxEcm9wV3JhcHBlclByb3BzPmBcbiAgJHtzdHlsZXMuYmFzZX1cbiAgJHsocHJvcHMpID0+IHtcbiAgICBpZiAocHJvcHMuZHJvcEFyZWFTdGF0ZSA9PT0gJ2RlZmF1bHQnKSB7XG4gICAgICByZXR1cm4gc3R5bGVzLnJlYWR5Rm9yRHJvcFxuICAgIH1cbiAgICBpZiAocHJvcHMuZHJvcEFyZWFTdGF0ZSA9PT0gJ2FjdGl2ZS1kcmFnJykge1xuICAgICAgcmV0dXJuIHN0eWxlcy5hY3RpdmVEcmFnXG4gICAgfVxuICAgIGlmIChwcm9wcy5kcm9wQXJlYVN0YXRlID09PSAnZmlsZS1kcm9wcGVkJykge1xuICAgICAgcmV0dXJuIHN0eWxlcy5maWxlRHJvcHBlZFxuICAgIH1cbiAgICByZXR1cm4gZ2V0RGVmYXVsdERyb3BXcmFwcGVyU3R5bGVzKHByb3BzLmRyb3BBcmVhU3RhdGUpXG4gIH19XG5gXG5mdW5jdGlvbiBnZXREZWZhdWx0RHJvcFdyYXBwZXJTdHlsZXMoX2Ryb3BBcmVhU3RhdGU6IG5ldmVyKSB7XG4gIHJldHVybiBjc3NgYFxufVxuIl19 */");
|
|
3223
3230
|
}
|
|
3224
3231
|
|
|
3225
|
-
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-
|
|
3232
|
+
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-9c4e4c80.cjs.dev.js' /* webpackChunkName: "active-drag-drop-area" */); }));
|
|
3226
3233
|
|
|
3227
|
-
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-
|
|
3234
|
+
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-1f7b5758.cjs.dev.js' /* webpackChunkName: "enabled-drop-area" */); }));
|
|
3228
3235
|
|
|
3229
|
-
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-
|
|
3236
|
+
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-92b92498.cjs.dev.js' /* webpackChunkName: "filed-dropped-area" */); }));
|
|
3230
3237
|
|
|
3231
3238
|
function getDropArea(_ref) {
|
|
3232
3239
|
let dropAreaState = _ref.dropAreaState,
|
|
@@ -638,9 +638,9 @@ var messages = reactIntl.defineMessages({
|
|
|
638
638
|
description: 'Error when query predicate field is missing',
|
|
639
639
|
defaultMessage: 'Please enter a query predicate'
|
|
640
640
|
},
|
|
641
|
-
|
|
642
|
-
id: 'ExportResourcesModal.
|
|
643
|
-
description: 'Error message when there are no resources to export',
|
|
641
|
+
noResourcesToExportForQueryPredicate: {
|
|
642
|
+
id: 'ExportResourcesModal.noResourcesToExportForQueryPredicate',
|
|
643
|
+
description: 'Error message when there are no resources to export for given query predicate',
|
|
644
644
|
defaultMessage: 'No resources match your query predicate. Please check your query predicate and try again.'
|
|
645
645
|
}
|
|
646
646
|
});
|
|
@@ -671,6 +671,8 @@ const renderQueryPredicateError = key => {
|
|
|
671
671
|
return jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$h({}, messages.missingQueryPredicateError));
|
|
672
672
|
case 'invalidInput':
|
|
673
673
|
return jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$h({}, messages.invalidQueryPredicate));
|
|
674
|
+
case 'noResourcesToExportForQueryPredicate':
|
|
675
|
+
return jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$h({}, messages.noResourcesToExportForQueryPredicate));
|
|
674
676
|
default:
|
|
675
677
|
return null;
|
|
676
678
|
}
|
|
@@ -946,12 +948,6 @@ function appendCsvOrJsonExtensionIfAbsent(fileName, fileFormat) {
|
|
|
946
948
|
if (!extensionRegex.test(fileName)) return `${fileName}.${fileFormat}`;
|
|
947
949
|
return fileName;
|
|
948
950
|
}
|
|
949
|
-
function getExportLogsLink(projectKey, msg) {
|
|
950
|
-
return jsxRuntime.jsx(uiKit.Link, {
|
|
951
|
-
to: `/${projectKey}/operations/export/logs`,
|
|
952
|
-
children: msg
|
|
953
|
-
}, "link");
|
|
954
|
-
}
|
|
955
951
|
const extractFieldNamesAndAdditionalFieldExtensions = fields => {
|
|
956
952
|
const result = _reduceInstanceProperty__default["default"](fields).call(fields, (acc, field) => {
|
|
957
953
|
if (field.extendedFieldNames) {
|
|
@@ -1596,7 +1592,12 @@ const useStartExportOperation = props => {
|
|
|
1596
1592
|
// @ts-ignore
|
|
1597
1593
|
text: intl.formatMessage(messages.exportOperationSuccessMessage, {
|
|
1598
1594
|
newline: getNewLine,
|
|
1599
|
-
logsLink: msg =>
|
|
1595
|
+
logsLink: msg => jsxRuntime.jsx(ExportLogsLink, {
|
|
1596
|
+
projectKey: projectKey
|
|
1597
|
+
// @ts-ignore the `msg` parameter type is not compatible with the `string` type
|
|
1598
|
+
,
|
|
1599
|
+
msg: msg
|
|
1600
|
+
}, "export-logs-link"),
|
|
1600
1601
|
b: getBold
|
|
1601
1602
|
})
|
|
1602
1603
|
}, {
|
|
@@ -1760,7 +1761,7 @@ const useValidateExportOperation = () => {
|
|
|
1760
1761
|
if (isExportApiSuccessResponse(response) && response.resourceCount === 0) {
|
|
1761
1762
|
return {
|
|
1762
1763
|
success: false,
|
|
1763
|
-
|
|
1764
|
+
noResourcesToExportForQueryPredicate: true
|
|
1764
1765
|
};
|
|
1765
1766
|
}
|
|
1766
1767
|
return {
|
|
@@ -1981,7 +1982,9 @@ const ExportFileSettingsStep = () => {
|
|
|
1981
1982
|
onBlur: formik.handleBlur,
|
|
1982
1983
|
value: _valuesInstanceProperty__default["default"](formik).outputFormat,
|
|
1983
1984
|
title: intl.formatMessage(messages.outputFormat),
|
|
1984
|
-
options: OUTPUT_FORMAT_OPTIONS
|
|
1985
|
+
options: OUTPUT_FORMAT_OPTIONS,
|
|
1986
|
+
menuPortalTarget: document.body,
|
|
1987
|
+
menuPortalZIndex: Z_INDEX_DROPDOWN
|
|
1985
1988
|
}), jsxRuntime.jsx(fullstory.Masking.Mask, {
|
|
1986
1989
|
children: jsxRuntime.jsx(uiKit.TextField, {
|
|
1987
1990
|
name: "fileName",
|
|
@@ -2730,8 +2733,6 @@ const _excluded$1 = ["children"];
|
|
|
2730
2733
|
const ExportResourcesProvider = _ref => {
|
|
2731
2734
|
let children = _ref.children,
|
|
2732
2735
|
props = _objectWithoutProperties(_ref, _excluded$1);
|
|
2733
|
-
const intl = reactIntl.useIntl();
|
|
2734
|
-
const showNotification = actionsGlobal.useShowNotification();
|
|
2735
2736
|
const initialValues = useInitialValues(props);
|
|
2736
2737
|
const _React$useState = React__default["default"].useState(Step.FileSettings),
|
|
2737
2738
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -2788,12 +2789,8 @@ const ExportResourcesProvider = _ref => {
|
|
|
2788
2789
|
formik$1.setFieldError('queryPredicate', 'invalidInput');
|
|
2789
2790
|
return;
|
|
2790
2791
|
}
|
|
2791
|
-
if (validationResult?.
|
|
2792
|
-
|
|
2793
|
-
text: intl.formatMessage(messages.noResourcesToExport),
|
|
2794
|
-
kind: 'error',
|
|
2795
|
-
domain: constants.DOMAINS.PAGE
|
|
2796
|
-
});
|
|
2792
|
+
if (validationResult?.noResourcesToExportForQueryPredicate) {
|
|
2793
|
+
formik$1.setFieldError('queryPredicate', 'noResourcesToExportForQueryPredicate');
|
|
2797
2794
|
return;
|
|
2798
2795
|
}
|
|
2799
2796
|
}
|
|
@@ -2853,6 +2850,14 @@ const ExportResourcesProvider = _ref => {
|
|
|
2853
2850
|
});
|
|
2854
2851
|
};
|
|
2855
2852
|
|
|
2853
|
+
const ExportLogsLink = props => {
|
|
2854
|
+
return jsxRuntime.jsx(uiKit.Link, {
|
|
2855
|
+
to: `/${props.projectKey}/operations/export/logs`,
|
|
2856
|
+
tone: props.tone,
|
|
2857
|
+
children: props.msg
|
|
2858
|
+
}, "link");
|
|
2859
|
+
};
|
|
2860
|
+
|
|
2856
2861
|
const DEFAULT_MAX_VISIBLE_FIELDS = 10;
|
|
2857
2862
|
const FieldsPreview = _ref => {
|
|
2858
2863
|
let previewGroupLabel = _ref.previewGroupLabel,
|
|
@@ -2963,10 +2968,12 @@ const ExportConfirmationStep = () => {
|
|
|
2963
2968
|
}), jsxRuntime.jsx(uiKit.Text.Body, {
|
|
2964
2969
|
intlMessage: _objectSpread$4(_objectSpread$4({}, messages.exportProcessMayTakeAWhile), {}, {
|
|
2965
2970
|
values: {
|
|
2966
|
-
exportLogsLink: msg => jsxRuntime.jsx(
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2971
|
+
exportLogsLink: msg => jsxRuntime.jsx(ExportLogsLink, {
|
|
2972
|
+
projectKey: projectKey,
|
|
2973
|
+
tone: "secondary"
|
|
2974
|
+
// @ts-ignore the `msg` parameter type is not compatible with the `string` type
|
|
2975
|
+
,
|
|
2976
|
+
msg: msg
|
|
2970
2977
|
}, "export-logs-link"),
|
|
2971
2978
|
operationsIcon: () => jsxRuntime.jsx(icons.OperationsIcon, {
|
|
2972
2979
|
size: "40"
|
|
@@ -3186,11 +3193,11 @@ function getDefaultDropWrapperStyles(_dropAreaState) {
|
|
|
3186
3193
|
return /*#__PURE__*/react.css("" , "" );
|
|
3187
3194
|
}
|
|
3188
3195
|
|
|
3189
|
-
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-
|
|
3196
|
+
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-8bd2a4fa.cjs.prod.js' /* webpackChunkName: "active-drag-drop-area" */); }));
|
|
3190
3197
|
|
|
3191
|
-
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-
|
|
3198
|
+
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-72091b2d.cjs.prod.js' /* webpackChunkName: "enabled-drop-area" */); }));
|
|
3192
3199
|
|
|
3193
|
-
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-
|
|
3200
|
+
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-60034b84.cjs.prod.js' /* webpackChunkName: "filed-dropped-area" */); }));
|
|
3194
3201
|
|
|
3195
3202
|
function getDropArea(_ref) {
|
|
3196
3203
|
let dropAreaState = _ref.dropAreaState,
|
|
@@ -15,7 +15,7 @@ import _Object$defineProperties from '@babel/runtime-corejs3/core-js-stable/obje
|
|
|
15
15
|
import _Object$defineProperty from '@babel/runtime-corejs3/core-js-stable/object/define-property';
|
|
16
16
|
import { defineMessages, FormattedMessage, useIntl, IntlProvider } from 'react-intl';
|
|
17
17
|
import { useApplicationContext } from '@commercetools-frontend/application-shell-connectors';
|
|
18
|
-
import { Text,
|
|
18
|
+
import { Text, TextInput, CheckboxInput, RadioInput, TextField, AngleRightIcon, Spacings, Grid, designTokens, SelectField, FieldLabel, Constraints, Tooltip, SupportIcon, Link, Stamp, IconButton, AngleDownIcon, CollapsibleMotion, Card, SearchTextInput, TagList, FlatButton, AngleUpIcon, CheckBoldIcon, DataTable } from '@commercetools-frontend/ui-kit';
|
|
19
19
|
import { jsx, Fragment, jsxs } from '@emotion/react/jsx-runtime';
|
|
20
20
|
import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
21
21
|
import _valuesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/values';
|
|
@@ -597,9 +597,9 @@ var messages = defineMessages({
|
|
|
597
597
|
description: 'Error when query predicate field is missing',
|
|
598
598
|
defaultMessage: 'Please enter a query predicate'
|
|
599
599
|
},
|
|
600
|
-
|
|
601
|
-
id: 'ExportResourcesModal.
|
|
602
|
-
description: 'Error message when there are no resources to export',
|
|
600
|
+
noResourcesToExportForQueryPredicate: {
|
|
601
|
+
id: 'ExportResourcesModal.noResourcesToExportForQueryPredicate',
|
|
602
|
+
description: 'Error message when there are no resources to export for given query predicate',
|
|
603
603
|
defaultMessage: 'No resources match your query predicate. Please check your query predicate and try again.'
|
|
604
604
|
}
|
|
605
605
|
});
|
|
@@ -630,6 +630,8 @@ const renderQueryPredicateError = key => {
|
|
|
630
630
|
return jsx(FormattedMessage, _objectSpread$h({}, messages.missingQueryPredicateError));
|
|
631
631
|
case 'invalidInput':
|
|
632
632
|
return jsx(FormattedMessage, _objectSpread$h({}, messages.invalidQueryPredicate));
|
|
633
|
+
case 'noResourcesToExportForQueryPredicate':
|
|
634
|
+
return jsx(FormattedMessage, _objectSpread$h({}, messages.noResourcesToExportForQueryPredicate));
|
|
633
635
|
default:
|
|
634
636
|
return null;
|
|
635
637
|
}
|
|
@@ -905,12 +907,6 @@ function appendCsvOrJsonExtensionIfAbsent(fileName, fileFormat) {
|
|
|
905
907
|
if (!extensionRegex.test(fileName)) return `${fileName}.${fileFormat}`;
|
|
906
908
|
return fileName;
|
|
907
909
|
}
|
|
908
|
-
function getExportLogsLink(projectKey, msg) {
|
|
909
|
-
return jsx(Link, {
|
|
910
|
-
to: `/${projectKey}/operations/export/logs`,
|
|
911
|
-
children: msg
|
|
912
|
-
}, "link");
|
|
913
|
-
}
|
|
914
910
|
const extractFieldNamesAndAdditionalFieldExtensions = fields => {
|
|
915
911
|
const result = _reduceInstanceProperty(fields).call(fields, (acc, field) => {
|
|
916
912
|
if (field.extendedFieldNames) {
|
|
@@ -1555,7 +1551,12 @@ const useStartExportOperation = props => {
|
|
|
1555
1551
|
// @ts-ignore
|
|
1556
1552
|
text: intl.formatMessage(messages.exportOperationSuccessMessage, {
|
|
1557
1553
|
newline: getNewLine,
|
|
1558
|
-
logsLink: msg =>
|
|
1554
|
+
logsLink: msg => jsx(ExportLogsLink, {
|
|
1555
|
+
projectKey: projectKey
|
|
1556
|
+
// @ts-ignore the `msg` parameter type is not compatible with the `string` type
|
|
1557
|
+
,
|
|
1558
|
+
msg: msg
|
|
1559
|
+
}, "export-logs-link"),
|
|
1559
1560
|
b: getBold
|
|
1560
1561
|
})
|
|
1561
1562
|
}, {
|
|
@@ -1719,7 +1720,7 @@ const useValidateExportOperation = () => {
|
|
|
1719
1720
|
if (isExportApiSuccessResponse(response) && response.resourceCount === 0) {
|
|
1720
1721
|
return {
|
|
1721
1722
|
success: false,
|
|
1722
|
-
|
|
1723
|
+
noResourcesToExportForQueryPredicate: true
|
|
1723
1724
|
};
|
|
1724
1725
|
}
|
|
1725
1726
|
return {
|
|
@@ -1940,7 +1941,9 @@ const ExportFileSettingsStep = () => {
|
|
|
1940
1941
|
onBlur: formik.handleBlur,
|
|
1941
1942
|
value: _valuesInstanceProperty(formik).outputFormat,
|
|
1942
1943
|
title: intl.formatMessage(messages.outputFormat),
|
|
1943
|
-
options: OUTPUT_FORMAT_OPTIONS
|
|
1944
|
+
options: OUTPUT_FORMAT_OPTIONS,
|
|
1945
|
+
menuPortalTarget: document.body,
|
|
1946
|
+
menuPortalZIndex: Z_INDEX_DROPDOWN
|
|
1944
1947
|
}), jsx(Masking.Mask, {
|
|
1945
1948
|
children: jsx(TextField, {
|
|
1946
1949
|
name: "fileName",
|
|
@@ -2722,8 +2725,6 @@ const _excluded$1 = ["children"];
|
|
|
2722
2725
|
const ExportResourcesProvider = _ref => {
|
|
2723
2726
|
let children = _ref.children,
|
|
2724
2727
|
props = _objectWithoutProperties(_ref, _excluded$1);
|
|
2725
|
-
const intl = useIntl();
|
|
2726
|
-
const showNotification = useShowNotification();
|
|
2727
2728
|
const initialValues = useInitialValues(props);
|
|
2728
2729
|
const _React$useState = React.useState(Step.FileSettings),
|
|
2729
2730
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -2780,12 +2781,8 @@ const ExportResourcesProvider = _ref => {
|
|
|
2780
2781
|
formik.setFieldError('queryPredicate', 'invalidInput');
|
|
2781
2782
|
return;
|
|
2782
2783
|
}
|
|
2783
|
-
if (validationResult?.
|
|
2784
|
-
|
|
2785
|
-
text: intl.formatMessage(messages.noResourcesToExport),
|
|
2786
|
-
kind: 'error',
|
|
2787
|
-
domain: DOMAINS.PAGE
|
|
2788
|
-
});
|
|
2784
|
+
if (validationResult?.noResourcesToExportForQueryPredicate) {
|
|
2785
|
+
formik.setFieldError('queryPredicate', 'noResourcesToExportForQueryPredicate');
|
|
2789
2786
|
return;
|
|
2790
2787
|
}
|
|
2791
2788
|
}
|
|
@@ -2845,6 +2842,14 @@ const ExportResourcesProvider = _ref => {
|
|
|
2845
2842
|
});
|
|
2846
2843
|
};
|
|
2847
2844
|
|
|
2845
|
+
const ExportLogsLink = props => {
|
|
2846
|
+
return jsx(Link, {
|
|
2847
|
+
to: `/${props.projectKey}/operations/export/logs`,
|
|
2848
|
+
tone: props.tone,
|
|
2849
|
+
children: props.msg
|
|
2850
|
+
}, "link");
|
|
2851
|
+
};
|
|
2852
|
+
|
|
2848
2853
|
const DEFAULT_MAX_VISIBLE_FIELDS = 10;
|
|
2849
2854
|
const FieldsPreview = _ref => {
|
|
2850
2855
|
let previewGroupLabel = _ref.previewGroupLabel,
|
|
@@ -2955,10 +2960,12 @@ const ExportConfirmationStep = () => {
|
|
|
2955
2960
|
}), jsx(Text.Body, {
|
|
2956
2961
|
intlMessage: _objectSpread$4(_objectSpread$4({}, messages.exportProcessMayTakeAWhile), {}, {
|
|
2957
2962
|
values: {
|
|
2958
|
-
exportLogsLink: msg => jsx(
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2963
|
+
exportLogsLink: msg => jsx(ExportLogsLink, {
|
|
2964
|
+
projectKey: projectKey,
|
|
2965
|
+
tone: "secondary"
|
|
2966
|
+
// @ts-ignore the `msg` parameter type is not compatible with the `string` type
|
|
2967
|
+
,
|
|
2968
|
+
msg: msg
|
|
2962
2969
|
}, "export-logs-link"),
|
|
2963
2970
|
operationsIcon: () => jsx(OperationsIcon, {
|
|
2964
2971
|
size: "40"
|
|
@@ -3181,11 +3188,11 @@ function getDefaultDropWrapperStyles(_dropAreaState) {
|
|
|
3181
3188
|
return /*#__PURE__*/css(process.env.NODE_ENV === "production" ? "" : ";label:getDefaultDropWrapperStyles;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImRyb3AtYXJlYS13cmFwcGVyLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF5QlkiLCJmaWxlIjoiZHJvcC1hcmVhLXdyYXBwZXIudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgdHlwZSBEcm9wem9uZVJvb3RQcm9wcyB9IGZyb20gJ3JlYWN0LWRyb3B6b25lJ1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcbmltcG9ydCB7IHN0eWxlcyB9IGZyb20gJy4vc3R5bGVzJ1xuaW1wb3J0IHsgdHlwZSBEcm9wQXJlYVN0YXRlIH0gZnJvbSAnLi4vLi4vLi4vQHR5cGVzJ1xuXG5pbnRlcmZhY2UgRHJvcFdyYXBwZXJQcm9wcyBleHRlbmRzIERyb3B6b25lUm9vdFByb3BzIHtcbiAgZHJvcEFyZWFTdGF0ZTogRHJvcEFyZWFTdGF0ZVxufVxuZXhwb3J0IGNvbnN0IERyb3BXcmFwcGVyID0gc3R5bGVkLmRpdjxEcm9wV3JhcHBlclByb3BzPmBcbiAgJHtzdHlsZXMuYmFzZX1cbiAgJHsocHJvcHMpID0+IHtcbiAgICBpZiAocHJvcHMuZHJvcEFyZWFTdGF0ZSA9PT0gJ2RlZmF1bHQnKSB7XG4gICAgICByZXR1cm4gc3R5bGVzLnJlYWR5Rm9yRHJvcFxuICAgIH1cbiAgICBpZiAocHJvcHMuZHJvcEFyZWFTdGF0ZSA9PT0gJ2FjdGl2ZS1kcmFnJykge1xuICAgICAgcmV0dXJuIHN0eWxlcy5hY3RpdmVEcmFnXG4gICAgfVxuICAgIGlmIChwcm9wcy5kcm9wQXJlYVN0YXRlID09PSAnZmlsZS1kcm9wcGVkJykge1xuICAgICAgcmV0dXJuIHN0eWxlcy5maWxlRHJvcHBlZFxuICAgIH1cbiAgICByZXR1cm4gZ2V0RGVmYXVsdERyb3BXcmFwcGVyU3R5bGVzKHByb3BzLmRyb3BBcmVhU3RhdGUpXG4gIH19XG5gXG5mdW5jdGlvbiBnZXREZWZhdWx0RHJvcFdyYXBwZXJTdHlsZXMoX2Ryb3BBcmVhU3RhdGU6IG5ldmVyKSB7XG4gIHJldHVybiBjc3NgYFxufVxuIl19 */");
|
|
3182
3189
|
}
|
|
3183
3190
|
|
|
3184
|
-
var ActiveDragDropArea = /*#__PURE__*/lazy(() => import('./active-drag-drop-area-
|
|
3191
|
+
var ActiveDragDropArea = /*#__PURE__*/lazy(() => import('./active-drag-drop-area-f1aefe17.esm.js' /* webpackChunkName: "active-drag-drop-area" */));
|
|
3185
3192
|
|
|
3186
|
-
var EnabledDropArea = /*#__PURE__*/lazy(() => import('./enabled-drop-area-
|
|
3193
|
+
var EnabledDropArea = /*#__PURE__*/lazy(() => import('./enabled-drop-area-9477e747.esm.js' /* webpackChunkName: "enabled-drop-area" */));
|
|
3187
3194
|
|
|
3188
|
-
var FileDropped = /*#__PURE__*/lazy(() => import('./file-dropped-area-
|
|
3195
|
+
var FileDropped = /*#__PURE__*/lazy(() => import('./file-dropped-area-35bc207d.esm.js' /* webpackChunkName: "filed-dropped-area" */));
|
|
3189
3196
|
|
|
3190
3197
|
function getDropArea(_ref) {
|
|
3191
3198
|
let dropAreaState = _ref.dropAreaState,
|
package/package.json
CHANGED