@bindu-dashing/dam-solution-v2 5.8.44 → 5.8.46
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/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @bindu-dashing/dam-solution-v2
|
|
2
2
|
|
|
3
3
|
---
|
|
4
4
|
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
To install the library in your project:
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npm install @
|
|
10
|
+
npm install @bindu-dashing/dam-solution-v2
|
|
11
11
|
# or
|
|
12
|
-
yarn add @
|
|
12
|
+
yarn add @bindu-dashing/dam-solution-v2
|
|
13
13
|
|
|
14
14
|
```
|
|
15
15
|
|
|
@@ -27,7 +27,7 @@ npm link
|
|
|
27
27
|
In test project:
|
|
28
28
|
|
|
29
29
|
```bash
|
|
30
|
-
npm link @
|
|
30
|
+
npm link @bindu-dashing/dam-solution-v2
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
## Publishing
|
|
@@ -25,7 +25,7 @@ import Metadata from "../fileDetails/Metadata";
|
|
|
25
25
|
import { updateFile } from "../../react-query/services/file-services";
|
|
26
26
|
import { DATE_FORMAT, DATE_WITH_TIME_FORMAT } from "../../hocs/appConstants";
|
|
27
27
|
import dayjs from "dayjs";
|
|
28
|
-
import
|
|
28
|
+
import useAppNavigate from "../../utilities/useAppNavigate";
|
|
29
29
|
import { addQueryParams } from "../../hocs/helpers";
|
|
30
30
|
function MapFile({ open, handleCancel, filesList, fromUpload, }) {
|
|
31
31
|
const { folderId, type } = useAppParams();
|
|
@@ -37,7 +37,7 @@ function MapFile({ open, handleCancel, filesList, fromUpload, }) {
|
|
|
37
37
|
const [form] = Form.useForm();
|
|
38
38
|
const api = useMemo(() => createApiClient(damConfig), [damConfig]);
|
|
39
39
|
const file = filesList === null || filesList === void 0 ? void 0 : filesList[0];
|
|
40
|
-
const navigate =
|
|
40
|
+
const navigate = useAppNavigate();
|
|
41
41
|
const [state, setState] = useState({
|
|
42
42
|
loading: false,
|
|
43
43
|
selectedAssetTemplate: null,
|
|
@@ -206,8 +206,9 @@ function MapFile({ open, handleCancel, filesList, fromUpload, }) {
|
|
|
206
206
|
if (handleCancel) {
|
|
207
207
|
handleCancel();
|
|
208
208
|
}
|
|
209
|
-
else {
|
|
210
|
-
navigate
|
|
209
|
+
else if (navigate) {
|
|
210
|
+
// Navigate back if navigate function is available
|
|
211
|
+
window.history.back();
|
|
211
212
|
}
|
|
212
213
|
}, children: "Cancel" }), _jsx(Button, { disabled: !selectedAssetTemplate, type: "primary",
|
|
213
214
|
// onClick={handleSubmit}
|
|
@@ -83,7 +83,7 @@ export declare const USER_LOGIN = "/users/login/keys";
|
|
|
83
83
|
export declare const FETCH_BRAND_USING_SUBDOMAIN = "/brands/subdomain";
|
|
84
84
|
export declare const CREATE_SUB_BRAND = "/brands/sub-brand";
|
|
85
85
|
export declare const FETCH_IMAGEPICKERS_URL = "/image-picker";
|
|
86
|
-
export declare const FETCH_IMAGEPICKER_URL = "/image-picker
|
|
86
|
+
export declare const FETCH_IMAGEPICKER_URL = "/image-picker/:id";
|
|
87
87
|
export declare const FETCH_META_FIELD_OPTIONS_URL = "/image-picker/file-filters/:id";
|
|
88
88
|
export declare const FETCH_META_FIELD_FILES_URL = "/image-picker/files/:id";
|
|
89
89
|
export declare const UPLOAD_IMAGE_PICKER_LOCAL_FILE_URL = "/image-picker/upload";
|
|
@@ -100,7 +100,7 @@ export const FETCH_BRAND_USING_SUBDOMAIN = "/brands/subdomain";
|
|
|
100
100
|
export const CREATE_SUB_BRAND = "/brands/sub-brand";
|
|
101
101
|
//image picker
|
|
102
102
|
export const FETCH_IMAGEPICKERS_URL = "/image-picker";
|
|
103
|
-
export const FETCH_IMAGEPICKER_URL = "/image-picker
|
|
103
|
+
export const FETCH_IMAGEPICKER_URL = "/image-picker/:id";
|
|
104
104
|
export const FETCH_META_FIELD_OPTIONS_URL = "/image-picker/file-filters/:id";
|
|
105
105
|
export const FETCH_META_FIELD_FILES_URL = "/image-picker/files/:id";
|
|
106
106
|
export const UPLOAD_IMAGE_PICKER_LOCAL_FILE_URL = "/image-picker/upload";
|