@bindu-dashing/dam-solution-v2 5.8.46 → 5.8.48
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
|
@@ -57,7 +57,10 @@ function BreadCrumbList({ folder, parentFolderId, setParentFolderId, pickerFolde
|
|
|
57
57
|
const treeId = get(item, "_id");
|
|
58
58
|
const name = get(item, "name", "N/A");
|
|
59
59
|
const isLast = treeId === get(last(tree), "_id");
|
|
60
|
+
const isRoot = index === 0 || treeId === rootFolderId;
|
|
60
61
|
const handleClick = () => {
|
|
62
|
+
if (isRoot)
|
|
63
|
+
return; // Root should not be clickable
|
|
61
64
|
if (pickerFolderId && setParentFolderId && !isLast) {
|
|
62
65
|
setParentFolderId(treeId);
|
|
63
66
|
}
|
|
@@ -65,7 +68,7 @@ function BreadCrumbList({ folder, parentFolderId, setParentFolderId, pickerFolde
|
|
|
65
68
|
setSelectedKeys(treeId);
|
|
66
69
|
}
|
|
67
70
|
};
|
|
68
|
-
const currentItemRender = (_jsx(Breadcrumb.Item, { onClick: handleClick, className:
|
|
71
|
+
const currentItemRender = (_jsx(Breadcrumb.Item, { onClick: isRoot ? undefined : handleClick, className: `md-lib-h-auto ${isRoot ? "" : "md-lib-cursor-pointer"}`, children: _jsx(Tooltip, { title: name, children: _jsx("p", { className: "md-lib-max-w-28 md-lib-truncate md-lib-font-semibold md-lib-text-[22px]", children: name }) }) }, treeId));
|
|
69
72
|
if (globalSearch) {
|
|
70
73
|
if (isLast || index == 0) {
|
|
71
74
|
return currentItemRender;
|
|
@@ -35,7 +35,7 @@ export const SIZE_OF_BUSINESS = {
|
|
|
35
35
|
export const ICON_SIZE = 20;
|
|
36
36
|
export const OTP_TIME = 120;
|
|
37
37
|
export const PASSWORD_REGEX = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%^&*]).{8,}$/;
|
|
38
|
-
export const BASE_URL = process.env.
|
|
38
|
+
export const BASE_URL = process.env.NEXT_PUBLIC_MIXDRIVE_API_URL;
|
|
39
39
|
export const SETTINGS_TYPES = {
|
|
40
40
|
GENERAL: "account",
|
|
41
41
|
USERS: "users",
|
|
@@ -17,8 +17,8 @@ export const createApiClient = ({ accessToken, appType, subdomain, damAccessKey,
|
|
|
17
17
|
const api = axios.create({
|
|
18
18
|
timeout: 900000,
|
|
19
19
|
baseURL: appType === "reactJs"
|
|
20
|
-
?
|
|
21
|
-
:
|
|
20
|
+
? process.env.REACT_APP_MIXDRIVE_API_URL
|
|
21
|
+
: process.env.NEXT_PUBLIC_MIXDRIVE_API_URL,
|
|
22
22
|
});
|
|
23
23
|
api.interceptors.request.use((request) => {
|
|
24
24
|
request.headers["subdomain"] = subdomain;
|
package/build/hocs/helpers.js
CHANGED
|
@@ -95,11 +95,11 @@ export const getDateRangeFromKey = (key) => {
|
|
|
95
95
|
export const getBaseUrl = (appType) => {
|
|
96
96
|
switch (appType) {
|
|
97
97
|
case "reactJs":
|
|
98
|
-
return process.env.
|
|
98
|
+
return process.env.REACT_APP_MIXDRIVE_API_URL || "";
|
|
99
99
|
case "nextJs":
|
|
100
|
-
return process.env.
|
|
100
|
+
return process.env.NEXT_PUBLIC_MIXDRIVE_API_URL || "";
|
|
101
101
|
default:
|
|
102
|
-
return
|
|
102
|
+
return process.env.REACT_APP_MIXDRIVE_API_URL || "";
|
|
103
103
|
}
|
|
104
104
|
};
|
|
105
105
|
export const getRelativeTime = (timestamp) => {
|