@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
@@ -39,7 +39,7 @@ To publish the library to npm:
39
39
 
40
40
  ```bash
41
41
  npm run build
42
- npm publish
42
+ npm publish --access public
43
43
 
44
44
  ```
45
45
 
@@ -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: "md-lib-h-auto 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));
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.NEXT_PUBLIC_API_URL;
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
- ? "https://yjeregc921.execute-api.ap-south-1.amazonaws.com/staging/v1"
21
- : "https://yjeregc921.execute-api.ap-south-1.amazonaws.com/staging/v1",
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;
@@ -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.REACT_APP_API_URL || "https://yjeregc921.execute-api.ap-south-1.amazonaws.com/staging/v1";
98
+ return process.env.REACT_APP_MIXDRIVE_API_URL || "";
99
99
  case "nextJs":
100
- return process.env.NEXT_PUBLIC_API_URL || "https://yjeregc921.execute-api.ap-south-1.amazonaws.com/staging/v1";
100
+ return process.env.NEXT_PUBLIC_MIXDRIVE_API_URL || "";
101
101
  default:
102
- return "https://yjeregc921.execute-api.ap-south-1.amazonaws.com/staging/v1";
102
+ return process.env.REACT_APP_MIXDRIVE_API_URL || "";
103
103
  }
104
104
  };
105
105
  export const getRelativeTime = (timestamp) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bindu-dashing/dam-solution-v2",
3
- "version": "5.8.46",
3
+ "version": "5.8.48",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.0.1",
6
6
  "@emoji-mart/data": "^1.2.1",