@commercetools-frontend-extensions/unpublish-products-modal 0.0.0-canary-20241210111154
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/LICENSE +29 -0
- package/README.md +72 -0
- package/dist/active-drag-drop-area-159b7b45.cjs.dev.js +54 -0
- package/dist/active-drag-drop-area-3813ec56.cjs.prod.js +54 -0
- package/dist/active-drag-drop-area-ecb8196a.esm.js +52 -0
- package/dist/commercetools-frontend-extensions-unpublish-products-modal.cjs.d.ts +3 -0
- package/dist/commercetools-frontend-extensions-unpublish-products-modal.cjs.dev.js +52 -0
- package/dist/commercetools-frontend-extensions-unpublish-products-modal.cjs.js +7 -0
- package/dist/commercetools-frontend-extensions-unpublish-products-modal.cjs.prod.js +52 -0
- package/dist/commercetools-frontend-extensions-unpublish-products-modal.esm.js +44 -0
- package/dist/de-a34c5dd4.cjs.dev.js +6 -0
- package/dist/de-cd6c45d3.esm.js +4 -0
- package/dist/de-d954fe3d.cjs.prod.js +6 -0
- package/dist/declarations/src/@types/file-upload.d.ts +42 -0
- package/dist/declarations/src/@types/import-container.d.ts +11 -0
- package/dist/declarations/src/@types/index.d.ts +3 -0
- package/dist/declarations/src/@types/unpublish-products-modal-props.d.ts +4 -0
- package/dist/declarations/src/index.d.ts +2 -0
- package/dist/declarations/src/unpublish-products-modal.d.ts +6 -0
- package/dist/en-3a9aa2d4.esm.js +4 -0
- package/dist/en-6b3694f6.cjs.dev.js +6 -0
- package/dist/en-c7757448.cjs.prod.js +6 -0
- package/dist/enabled-drop-area-282605e6.cjs.dev.js +115 -0
- package/dist/enabled-drop-area-426ce6fe.cjs.prod.js +115 -0
- package/dist/enabled-drop-area-e5384caa.esm.js +102 -0
- package/dist/es-042343bd.cjs.prod.js +6 -0
- package/dist/es-8b3ecab1.cjs.dev.js +6 -0
- package/dist/es-e544023d.esm.js +4 -0
- package/dist/file-dropped-area-a96c742b.cjs.prod.js +74 -0
- package/dist/file-dropped-area-baab573d.cjs.dev.js +74 -0
- package/dist/file-dropped-area-c9113fe3.esm.js +72 -0
- package/dist/fr-FR-9d9081ee.esm.js +4 -0
- package/dist/fr-FR-e7126fcc.cjs.dev.js +6 -0
- package/dist/fr-FR-fce1ca96.cjs.prod.js +6 -0
- package/dist/index-341c3ecb.cjs.dev.js +1539 -0
- package/dist/index-3d4403b0.esm.js +1509 -0
- package/dist/index-5bc57587.cjs.prod.js +1527 -0
- package/dist/ja-37632763.cjs.prod.js +6 -0
- package/dist/ja-73c088a7.esm.js +4 -0
- package/dist/ja-9bd5f452.cjs.dev.js +6 -0
- package/dist/pt-BR-b37d730b.esm.js +4 -0
- package/dist/pt-BR-ea6b3251.cjs.dev.js +6 -0
- package/dist/pt-BR-ec2a1a11.cjs.prod.js +6 -0
- package/package.json +92 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
BSD 3-Clause License
|
|
2
|
+
|
|
3
|
+
Copyright (c) commercetools GmbH
|
|
4
|
+
All rights reserved.
|
|
5
|
+
|
|
6
|
+
Redistribution and use in source and binary forms, with or without
|
|
7
|
+
modification, are permitted provided that the following conditions are met:
|
|
8
|
+
|
|
9
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
10
|
+
list of conditions and the following disclaimer.
|
|
11
|
+
|
|
12
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
13
|
+
this list of conditions and the following disclaimer in the documentation
|
|
14
|
+
and/or other materials provided with the distribution.
|
|
15
|
+
|
|
16
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
17
|
+
contributors may be used to endorse or promote products derived from
|
|
18
|
+
this software without specific prior written permission.
|
|
19
|
+
|
|
20
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
21
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
22
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
23
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
24
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
25
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
26
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
27
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
28
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
29
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
package/README.md
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# @commercetools-frontend-extensions/unpublish-products-modal
|
|
2
|
+
|
|
3
|
+
A package for unpublishing products in the Merchant Center.
|
|
4
|
+
|
|
5
|
+
> This library takes into account that you are building a Merchant Center Applications which documentation you can find [here](https://docs.commercetools.com/custom-applications/).
|
|
6
|
+
> The components follow the same principles of the [UIKit](https://github.com/commercetools/ui-kit) components.
|
|
7
|
+
|
|
8
|
+
## Getting started
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
$ npm install --save @commercetools-frontend-extensions/unpublish-products-modal
|
|
12
|
+
|
|
13
|
+
// or
|
|
14
|
+
|
|
15
|
+
$ yarn add @commercetools-frontend-extensions/unpublish-products-modal
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Description
|
|
19
|
+
|
|
20
|
+
Unpublish products modal is an internal component used to unpublish products from CSV files. It uses [Importer services](https://github.com/commercetools/commercetools-importer) to create async import jobs.
|
|
21
|
+
|
|
22
|
+
## Usage
|
|
23
|
+
|
|
24
|
+
```JSX
|
|
25
|
+
import UnpublishProductsModal from '@commercetools-frontend-extensions/unpublish-products-modal';
|
|
26
|
+
|
|
27
|
+
<UnpublishProductsModal
|
|
28
|
+
isOpen={true}
|
|
29
|
+
onClose={() => {}}
|
|
30
|
+
/>
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Properties
|
|
34
|
+
|
|
35
|
+
| Props | Type | Required | Default | Description |
|
|
36
|
+
| -------------------------------------------- | ------------------------------------------------------- | :--------------------------------------------------: | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
37
|
+
| `isOpen` | `boolean` | ✅ | | Controls whether the unpublish products modal is open or closed |
|
|
38
|
+
| `onClose` | `function` | | | A callback function triggered when the modal is requested to close (either by clicking on the overlay, clicking the close button or pressing `ESC`). | |
|
|
39
|
+
|
|
40
|
+
## Releasing
|
|
41
|
+
|
|
42
|
+
This package uses [`changesets`](https://github.com/atlassian/changesets) in order to do releases to NPM.
|
|
43
|
+
|
|
44
|
+
In case you want to publish a new version with the latest changes you need to:
|
|
45
|
+
|
|
46
|
+
1. Add a changeset with `pnpm changeset` and select `@commercetools-frontend-extensions/unpublish-products-modal` as the modified package.
|
|
47
|
+
2. Some options would be appear in order to do the release:
|
|
48
|
+
- `patch`: use this release for fixes or small changes
|
|
49
|
+
- `minor`: use this release for depenency upgrades or medium changes
|
|
50
|
+
- `major`: use this release for breaking changes
|
|
51
|
+
3. After selecting the option you will need to add a comment for the release notes. We recommend to use the same format as for the commits.
|
|
52
|
+
- e.g: `feat(utils): add utils for dates`
|
|
53
|
+
4. Push the `changeset` to your branch and GitHub actions will detect that the PR contains changes that affect the published library.
|
|
54
|
+
5. After the PR gets merged, another PR will be created called `Version Packages` which is the one that will be detected, again by GitHub Actions, to do a release to NPM.
|
|
55
|
+
6. Make sure that everything is correct and then merge `Version Packages` PR.
|
|
56
|
+
7. Wait until the new version is available in NPM and then deploy the custom in CircleCI.
|
|
57
|
+
|
|
58
|
+
### Canary releases
|
|
59
|
+
|
|
60
|
+
Canary releases are automatically published to the distribution channel via CI following a successful build and merge to the **main** branch.
|
|
61
|
+
|
|
62
|
+
## i18n
|
|
63
|
+
|
|
64
|
+
The repo is configured with an integration with Transifex. The process for i18n is the same as the Merchant Center uses.
|
|
65
|
+
|
|
66
|
+
`pnpm i18n:build` for adding the new keys to transifex.
|
|
67
|
+
|
|
68
|
+
Once the PR gets merged to `main` transifex will receive a notification with new keys that need to be translated (that's why is important that `description` and `defaultMessage` are descriptive enough).
|
|
69
|
+
|
|
70
|
+
Whenever the translators finish translations and mark them as done, the repo will receive a PR (per language) for adding translated messages.
|
|
71
|
+
|
|
72
|
+
Once we review that translated keys are correct and add a `changeset` we can merge the PR. (Don't forget to deploy the custom app)
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-341c3ecb.cjs.dev.js');
|
|
4
|
+
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
5
|
+
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
6
|
+
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
7
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
8
|
+
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor');
|
|
9
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
|
|
10
|
+
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors');
|
|
11
|
+
require('@babel/runtime-corejs3/core-js-stable/object/define-properties');
|
|
12
|
+
require('@babel/runtime-corejs3/core-js-stable/object/define-property');
|
|
13
|
+
require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
14
|
+
require('react-intl');
|
|
15
|
+
require('@commercetools-frontend/application-shell-connectors');
|
|
16
|
+
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
17
|
+
require('react');
|
|
18
|
+
require('@commercetools-frontend/sdk');
|
|
19
|
+
require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
20
|
+
require('@commercetools-frontend/constants');
|
|
21
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/every');
|
|
22
|
+
require('@babel/runtime-corejs3/core-js-stable/promise');
|
|
23
|
+
require('@babel/runtime-corejs3/core-js-stable/array/is-array');
|
|
24
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
25
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
26
|
+
require('papaparse');
|
|
27
|
+
require('@commercetools-frontend/application-components');
|
|
28
|
+
require('@commercetools-frontend/fullstory');
|
|
29
|
+
require('@commercetools-frontend/ui-kit');
|
|
30
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/some');
|
|
31
|
+
require('react-dropzone');
|
|
32
|
+
require('@commercetools-frontend/actions-global');
|
|
33
|
+
require('@emotion/styled/base');
|
|
34
|
+
require('@emotion/react');
|
|
35
|
+
require('@babel/runtime-corejs3/core-js-stable/reflect/construct');
|
|
36
|
+
require('@babel/runtime-corejs3/helpers/createClass');
|
|
37
|
+
require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
38
|
+
require('@babel/runtime-corejs3/helpers/possibleConstructorReturn');
|
|
39
|
+
require('@babel/runtime-corejs3/helpers/getPrototypeOf');
|
|
40
|
+
require('@babel/runtime-corejs3/helpers/inherits');
|
|
41
|
+
require('@babel/runtime-corejs3/helpers/wrapNativeSuper');
|
|
42
|
+
require('@commercetools-frontend/sentry');
|
|
43
|
+
require('@commercetools-frontend/application-shell');
|
|
44
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/slice');
|
|
45
|
+
require('@commercetools-uikit/data-table');
|
|
46
|
+
require('@commercetools-frontend/i18n');
|
|
47
|
+
|
|
48
|
+
function ActiveDragDropArea(_ref) {
|
|
49
|
+
let isFileDropped = _ref.isFileDropped;
|
|
50
|
+
if (isFileDropped) return jsxRuntime.jsx(dist_commercetoolsFrontendExtensionsUnpublishProductsModal.FileDropped, {});
|
|
51
|
+
return jsxRuntime.jsx(dist_commercetoolsFrontendExtensionsUnpublishProductsModal.EnabledDropArea, {});
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
exports["default"] = ActiveDragDropArea;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-5bc57587.cjs.prod.js');
|
|
4
|
+
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
5
|
+
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
6
|
+
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
7
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
8
|
+
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor');
|
|
9
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
|
|
10
|
+
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors');
|
|
11
|
+
require('@babel/runtime-corejs3/core-js-stable/object/define-properties');
|
|
12
|
+
require('@babel/runtime-corejs3/core-js-stable/object/define-property');
|
|
13
|
+
require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
14
|
+
require('react-intl');
|
|
15
|
+
require('@commercetools-frontend/application-shell-connectors');
|
|
16
|
+
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
17
|
+
require('react');
|
|
18
|
+
require('@commercetools-frontend/sdk');
|
|
19
|
+
require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
20
|
+
require('@commercetools-frontend/constants');
|
|
21
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/every');
|
|
22
|
+
require('@babel/runtime-corejs3/core-js-stable/promise');
|
|
23
|
+
require('@babel/runtime-corejs3/core-js-stable/array/is-array');
|
|
24
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
25
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
26
|
+
require('papaparse');
|
|
27
|
+
require('@commercetools-frontend/application-components');
|
|
28
|
+
require('@commercetools-frontend/fullstory');
|
|
29
|
+
require('@commercetools-frontend/ui-kit');
|
|
30
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/some');
|
|
31
|
+
require('react-dropzone');
|
|
32
|
+
require('@commercetools-frontend/actions-global');
|
|
33
|
+
require('@emotion/styled/base');
|
|
34
|
+
require('@emotion/react');
|
|
35
|
+
require('@babel/runtime-corejs3/core-js-stable/reflect/construct');
|
|
36
|
+
require('@babel/runtime-corejs3/helpers/createClass');
|
|
37
|
+
require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
38
|
+
require('@babel/runtime-corejs3/helpers/possibleConstructorReturn');
|
|
39
|
+
require('@babel/runtime-corejs3/helpers/getPrototypeOf');
|
|
40
|
+
require('@babel/runtime-corejs3/helpers/inherits');
|
|
41
|
+
require('@babel/runtime-corejs3/helpers/wrapNativeSuper');
|
|
42
|
+
require('@commercetools-frontend/sentry');
|
|
43
|
+
require('@commercetools-frontend/application-shell');
|
|
44
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/slice');
|
|
45
|
+
require('@commercetools-uikit/data-table');
|
|
46
|
+
require('@commercetools-frontend/i18n');
|
|
47
|
+
|
|
48
|
+
function ActiveDragDropArea(_ref) {
|
|
49
|
+
let isFileDropped = _ref.isFileDropped;
|
|
50
|
+
if (isFileDropped) return jsxRuntime.jsx(dist_commercetoolsFrontendExtensionsUnpublishProductsModal.FileDropped, {});
|
|
51
|
+
return jsxRuntime.jsx(dist_commercetoolsFrontendExtensionsUnpublishProductsModal.EnabledDropArea, {});
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
exports["default"] = ActiveDragDropArea;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { F as FileDropped, E as EnabledDropArea } from './index-3d4403b0.esm.js';
|
|
2
|
+
import { jsx } from '@emotion/react/jsx-runtime';
|
|
3
|
+
import '@babel/runtime-corejs3/core-js-stable/object/keys';
|
|
4
|
+
import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
|
|
5
|
+
import '@babel/runtime-corejs3/core-js-stable/instance/filter';
|
|
6
|
+
import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor';
|
|
7
|
+
import '@babel/runtime-corejs3/core-js-stable/instance/for-each';
|
|
8
|
+
import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors';
|
|
9
|
+
import '@babel/runtime-corejs3/core-js-stable/object/define-properties';
|
|
10
|
+
import '@babel/runtime-corejs3/core-js-stable/object/define-property';
|
|
11
|
+
import '@babel/runtime-corejs3/helpers/defineProperty';
|
|
12
|
+
import 'react-intl';
|
|
13
|
+
import '@commercetools-frontend/application-shell-connectors';
|
|
14
|
+
import '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
15
|
+
import 'react';
|
|
16
|
+
import '@commercetools-frontend/sdk';
|
|
17
|
+
import '@babel/runtime-corejs3/core-js-stable/json/stringify';
|
|
18
|
+
import '@commercetools-frontend/constants';
|
|
19
|
+
import '@babel/runtime-corejs3/core-js-stable/instance/every';
|
|
20
|
+
import '@babel/runtime-corejs3/core-js-stable/promise';
|
|
21
|
+
import '@babel/runtime-corejs3/core-js-stable/array/is-array';
|
|
22
|
+
import '@babel/runtime-corejs3/core-js-stable/instance/find';
|
|
23
|
+
import '@babel/runtime-corejs3/core-js-stable/instance/map';
|
|
24
|
+
import 'papaparse';
|
|
25
|
+
import '@commercetools-frontend/application-components';
|
|
26
|
+
import '@commercetools-frontend/fullstory';
|
|
27
|
+
import '@commercetools-frontend/ui-kit';
|
|
28
|
+
import '@babel/runtime-corejs3/core-js-stable/instance/some';
|
|
29
|
+
import 'react-dropzone';
|
|
30
|
+
import '@commercetools-frontend/actions-global';
|
|
31
|
+
import '@emotion/styled/base';
|
|
32
|
+
import '@emotion/react';
|
|
33
|
+
import '@babel/runtime-corejs3/core-js-stable/reflect/construct';
|
|
34
|
+
import '@babel/runtime-corejs3/helpers/createClass';
|
|
35
|
+
import '@babel/runtime-corejs3/helpers/classCallCheck';
|
|
36
|
+
import '@babel/runtime-corejs3/helpers/possibleConstructorReturn';
|
|
37
|
+
import '@babel/runtime-corejs3/helpers/getPrototypeOf';
|
|
38
|
+
import '@babel/runtime-corejs3/helpers/inherits';
|
|
39
|
+
import '@babel/runtime-corejs3/helpers/wrapNativeSuper';
|
|
40
|
+
import '@commercetools-frontend/sentry';
|
|
41
|
+
import '@commercetools-frontend/application-shell';
|
|
42
|
+
import '@babel/runtime-corejs3/core-js-stable/instance/slice';
|
|
43
|
+
import '@commercetools-uikit/data-table';
|
|
44
|
+
import '@commercetools-frontend/i18n';
|
|
45
|
+
|
|
46
|
+
function ActiveDragDropArea(_ref) {
|
|
47
|
+
let isFileDropped = _ref.isFileDropped;
|
|
48
|
+
if (isFileDropped) return jsx(FileDropped, {});
|
|
49
|
+
return jsx(EnabledDropArea, {});
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export { ActiveDragDropArea as default };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * from "./declarations/src/index.js";
|
|
2
|
+
export { default } from "./declarations/src/index.js";
|
|
3
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWVyY2V0b29scy1mcm9udGVuZC1leHRlbnNpb25zLXVucHVibGlzaC1wcm9kdWN0cy1tb2RhbC5janMuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4vZGVjbGFyYXRpb25zL3NyYy9pbmRleC5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBIn0=
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-341c3ecb.cjs.dev.js');
|
|
6
|
+
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
7
|
+
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
8
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
9
|
+
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor');
|
|
10
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
|
|
11
|
+
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors');
|
|
12
|
+
require('@babel/runtime-corejs3/core-js-stable/object/define-properties');
|
|
13
|
+
require('@babel/runtime-corejs3/core-js-stable/object/define-property');
|
|
14
|
+
require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
15
|
+
require('react-intl');
|
|
16
|
+
require('@commercetools-frontend/application-shell-connectors');
|
|
17
|
+
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
18
|
+
require('react');
|
|
19
|
+
require('@commercetools-frontend/sdk');
|
|
20
|
+
require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
21
|
+
require('@commercetools-frontend/constants');
|
|
22
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/every');
|
|
23
|
+
require('@babel/runtime-corejs3/core-js-stable/promise');
|
|
24
|
+
require('@babel/runtime-corejs3/core-js-stable/array/is-array');
|
|
25
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
26
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
27
|
+
require('papaparse');
|
|
28
|
+
require('@emotion/react/jsx-runtime');
|
|
29
|
+
require('@commercetools-frontend/application-components');
|
|
30
|
+
require('@commercetools-frontend/fullstory');
|
|
31
|
+
require('@commercetools-frontend/ui-kit');
|
|
32
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/some');
|
|
33
|
+
require('react-dropzone');
|
|
34
|
+
require('@commercetools-frontend/actions-global');
|
|
35
|
+
require('@emotion/styled/base');
|
|
36
|
+
require('@emotion/react');
|
|
37
|
+
require('@babel/runtime-corejs3/core-js-stable/reflect/construct');
|
|
38
|
+
require('@babel/runtime-corejs3/helpers/createClass');
|
|
39
|
+
require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
40
|
+
require('@babel/runtime-corejs3/helpers/possibleConstructorReturn');
|
|
41
|
+
require('@babel/runtime-corejs3/helpers/getPrototypeOf');
|
|
42
|
+
require('@babel/runtime-corejs3/helpers/inherits');
|
|
43
|
+
require('@babel/runtime-corejs3/helpers/wrapNativeSuper');
|
|
44
|
+
require('@commercetools-frontend/sentry');
|
|
45
|
+
require('@commercetools-frontend/application-shell');
|
|
46
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/slice');
|
|
47
|
+
require('@commercetools-uikit/data-table');
|
|
48
|
+
require('@commercetools-frontend/i18n');
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
exports["default"] = dist_commercetoolsFrontendExtensionsUnpublishProductsModal.UnpublishProductsModal;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
if (process.env.NODE_ENV === "production") {
|
|
4
|
+
module.exports = require("./commercetools-frontend-extensions-unpublish-products-modal.cjs.prod.js");
|
|
5
|
+
} else {
|
|
6
|
+
module.exports = require("./commercetools-frontend-extensions-unpublish-products-modal.cjs.dev.js");
|
|
7
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-5bc57587.cjs.prod.js');
|
|
6
|
+
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
7
|
+
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
8
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
9
|
+
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor');
|
|
10
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
|
|
11
|
+
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors');
|
|
12
|
+
require('@babel/runtime-corejs3/core-js-stable/object/define-properties');
|
|
13
|
+
require('@babel/runtime-corejs3/core-js-stable/object/define-property');
|
|
14
|
+
require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
15
|
+
require('react-intl');
|
|
16
|
+
require('@commercetools-frontend/application-shell-connectors');
|
|
17
|
+
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
18
|
+
require('react');
|
|
19
|
+
require('@commercetools-frontend/sdk');
|
|
20
|
+
require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
21
|
+
require('@commercetools-frontend/constants');
|
|
22
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/every');
|
|
23
|
+
require('@babel/runtime-corejs3/core-js-stable/promise');
|
|
24
|
+
require('@babel/runtime-corejs3/core-js-stable/array/is-array');
|
|
25
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
26
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
27
|
+
require('papaparse');
|
|
28
|
+
require('@emotion/react/jsx-runtime');
|
|
29
|
+
require('@commercetools-frontend/application-components');
|
|
30
|
+
require('@commercetools-frontend/fullstory');
|
|
31
|
+
require('@commercetools-frontend/ui-kit');
|
|
32
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/some');
|
|
33
|
+
require('react-dropzone');
|
|
34
|
+
require('@commercetools-frontend/actions-global');
|
|
35
|
+
require('@emotion/styled/base');
|
|
36
|
+
require('@emotion/react');
|
|
37
|
+
require('@babel/runtime-corejs3/core-js-stable/reflect/construct');
|
|
38
|
+
require('@babel/runtime-corejs3/helpers/createClass');
|
|
39
|
+
require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
40
|
+
require('@babel/runtime-corejs3/helpers/possibleConstructorReturn');
|
|
41
|
+
require('@babel/runtime-corejs3/helpers/getPrototypeOf');
|
|
42
|
+
require('@babel/runtime-corejs3/helpers/inherits');
|
|
43
|
+
require('@babel/runtime-corejs3/helpers/wrapNativeSuper');
|
|
44
|
+
require('@commercetools-frontend/sentry');
|
|
45
|
+
require('@commercetools-frontend/application-shell');
|
|
46
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/slice');
|
|
47
|
+
require('@commercetools-uikit/data-table');
|
|
48
|
+
require('@commercetools-frontend/i18n');
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
exports["default"] = dist_commercetoolsFrontendExtensionsUnpublishProductsModal.UnpublishProductsModal;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export { U as default } from './index-3d4403b0.esm.js';
|
|
2
|
+
import '@babel/runtime-corejs3/core-js-stable/object/keys';
|
|
3
|
+
import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
|
|
4
|
+
import '@babel/runtime-corejs3/core-js-stable/instance/filter';
|
|
5
|
+
import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor';
|
|
6
|
+
import '@babel/runtime-corejs3/core-js-stable/instance/for-each';
|
|
7
|
+
import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors';
|
|
8
|
+
import '@babel/runtime-corejs3/core-js-stable/object/define-properties';
|
|
9
|
+
import '@babel/runtime-corejs3/core-js-stable/object/define-property';
|
|
10
|
+
import '@babel/runtime-corejs3/helpers/defineProperty';
|
|
11
|
+
import 'react-intl';
|
|
12
|
+
import '@commercetools-frontend/application-shell-connectors';
|
|
13
|
+
import '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
14
|
+
import 'react';
|
|
15
|
+
import '@commercetools-frontend/sdk';
|
|
16
|
+
import '@babel/runtime-corejs3/core-js-stable/json/stringify';
|
|
17
|
+
import '@commercetools-frontend/constants';
|
|
18
|
+
import '@babel/runtime-corejs3/core-js-stable/instance/every';
|
|
19
|
+
import '@babel/runtime-corejs3/core-js-stable/promise';
|
|
20
|
+
import '@babel/runtime-corejs3/core-js-stable/array/is-array';
|
|
21
|
+
import '@babel/runtime-corejs3/core-js-stable/instance/find';
|
|
22
|
+
import '@babel/runtime-corejs3/core-js-stable/instance/map';
|
|
23
|
+
import 'papaparse';
|
|
24
|
+
import '@emotion/react/jsx-runtime';
|
|
25
|
+
import '@commercetools-frontend/application-components';
|
|
26
|
+
import '@commercetools-frontend/fullstory';
|
|
27
|
+
import '@commercetools-frontend/ui-kit';
|
|
28
|
+
import '@babel/runtime-corejs3/core-js-stable/instance/some';
|
|
29
|
+
import 'react-dropzone';
|
|
30
|
+
import '@commercetools-frontend/actions-global';
|
|
31
|
+
import '@emotion/styled/base';
|
|
32
|
+
import '@emotion/react';
|
|
33
|
+
import '@babel/runtime-corejs3/core-js-stable/reflect/construct';
|
|
34
|
+
import '@babel/runtime-corejs3/helpers/createClass';
|
|
35
|
+
import '@babel/runtime-corejs3/helpers/classCallCheck';
|
|
36
|
+
import '@babel/runtime-corejs3/helpers/possibleConstructorReturn';
|
|
37
|
+
import '@babel/runtime-corejs3/helpers/getPrototypeOf';
|
|
38
|
+
import '@babel/runtime-corejs3/helpers/inherits';
|
|
39
|
+
import '@babel/runtime-corejs3/helpers/wrapNativeSuper';
|
|
40
|
+
import '@commercetools-frontend/sentry';
|
|
41
|
+
import '@commercetools-frontend/application-shell';
|
|
42
|
+
import '@babel/runtime-corejs3/core-js-stable/instance/slice';
|
|
43
|
+
import '@commercetools-uikit/data-table';
|
|
44
|
+
import '@commercetools-frontend/i18n';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { TSdkAction } from '@commercetools-frontend/sdk';
|
|
2
|
+
export type DropAreaState = 'active-drag' | 'ready-for-drop' | 'file-dropped';
|
|
3
|
+
export type FileUploadError = {
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
};
|
|
7
|
+
export type RowError = {
|
|
8
|
+
code: string;
|
|
9
|
+
message: string;
|
|
10
|
+
field: string;
|
|
11
|
+
};
|
|
12
|
+
export type RowErrorsResponse = {
|
|
13
|
+
row?: number;
|
|
14
|
+
errors: Array<RowError>;
|
|
15
|
+
};
|
|
16
|
+
export interface FileUploadResponse {
|
|
17
|
+
results: Array<RowErrorsResponse>;
|
|
18
|
+
invalid: number;
|
|
19
|
+
valid: number;
|
|
20
|
+
fileName: string;
|
|
21
|
+
rowsCount: number;
|
|
22
|
+
columnsCount: number;
|
|
23
|
+
columns: Array<string>;
|
|
24
|
+
ignoredColumns: Array<string>;
|
|
25
|
+
}
|
|
26
|
+
export interface FileUploadRequestParameters {
|
|
27
|
+
projectKey: string;
|
|
28
|
+
containerKey: string;
|
|
29
|
+
file: File;
|
|
30
|
+
abortSignal?: AbortSignal;
|
|
31
|
+
onSuccess: (data: FileUploadResponse) => void;
|
|
32
|
+
onProgress: (progress: number) => void;
|
|
33
|
+
onError: (error: Error) => void;
|
|
34
|
+
}
|
|
35
|
+
export interface ProcessUploadedFileRequestParameters {
|
|
36
|
+
projectKey: string;
|
|
37
|
+
containerKey: string;
|
|
38
|
+
asyncDispatch: (action: TSdkAction) => Promise<unknown>;
|
|
39
|
+
}
|
|
40
|
+
export type ProcessFileResponse = {
|
|
41
|
+
message: string;
|
|
42
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ImportContainerDraft, ResourceTypeId } from '@commercetools/importapi-sdk';
|
|
2
|
+
export interface ExtendedImportContainerDraft extends ImportContainerDraft {
|
|
3
|
+
settings?: {
|
|
4
|
+
resourceType: ResourceTypeId;
|
|
5
|
+
format: string;
|
|
6
|
+
options: {
|
|
7
|
+
unpublishAllChanges?: boolean;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
tags?: string[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { UnpublishProductsModalProps } from "./@types/index.js";
|
|
2
|
+
declare const UnpublishProductsModal: {
|
|
3
|
+
(props: UnpublishProductsModalProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element | null;
|
|
4
|
+
displayName: string;
|
|
5
|
+
};
|
|
6
|
+
export default UnpublishProductsModal;
|