@bindu-dashing/dam-solution-v2 5.9.235 → 5.9.236

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.
@@ -240,8 +240,8 @@ const CreateClientForm = ({ teamsApi, username, password, toggleShow, onSuccess,
240
240
  payload.adminTeams = adminTeamsAsStrings;
241
241
  if (((_a = data.showFilePreview) !== null && _a !== void 0 ? _a : false) !== get(clientData, "showFilePreview", false))
242
242
  payload.showFilePreview = (_b = data.showFilePreview) !== null && _b !== void 0 ? _b : false;
243
- if (((_c = data.showImagePicker) !== null && _c !== void 0 ? _c : false) !== get(clientData, "showImagePicker", false))
244
- payload.showImagePicker = (_d = data.showImagePicker) !== null && _d !== void 0 ? _d : false;
243
+ if (((_c = data.showEditImagePicker) !== null && _c !== void 0 ? _c : false) !== get(clientData, "showEditImagePicker", false))
244
+ payload.showEditImagePicker = (_d = data.showEditImagePicker) !== null && _d !== void 0 ? _d : false;
245
245
  if (teamsApiDetailsChanged)
246
246
  payload.teamsApiDetails = {
247
247
  teamsApi: newTeamsApiDetails.teamsApi || "",
@@ -287,7 +287,7 @@ const CreateClientForm = ({ teamsApi, username, password, toggleShow, onSuccess,
287
287
  locationType: "INTERNAL",
288
288
  rootPath: formDamLocation === null || formDamLocation === void 0 ? void 0 : formDamLocation.rootPath,
289
289
  };
290
- const values = Object.assign(Object.assign({}, data), { adminTeams: adminTeamsAsStrings, showFilePreview: (_e = data.showFilePreview) !== null && _e !== void 0 ? _e : false, showImagePicker: (_f = data.showImagePicker) !== null && _f !== void 0 ? _f : false, accessKey: appType == "reactJs"
290
+ const values = Object.assign(Object.assign({}, data), { adminTeams: adminTeamsAsStrings, showFilePreview: (_e = data.showFilePreview) !== null && _e !== void 0 ? _e : false, showEditImagePicker: (_f = data.showEditImagePicker) !== null && _f !== void 0 ? _f : false, accessKey: appType == "reactJs"
291
291
  ? process.env.REACT_APP_MIXDRIVE_CLIENT_PARENT_ACCESS_KEY
292
292
  : process.env.NEXT_PUBLIC_MIXDRIVE_CLIENT_PARENT_ACCESS_KEY, secretKey: appType == "reactJs"
293
293
  ? process.env.REACT_APP_MIXDRIVE_CLIENT_PARENT_SECRET_KEY
@@ -346,7 +346,7 @@ const CreateClientForm = ({ teamsApi, username, password, toggleShow, onSuccess,
346
346
  accessTypes: get(clientData, "accessTypes", []),
347
347
  adminTeams: adminTeamsFormatted,
348
348
  showFilePreview: get(clientData, "showFilePreview", false),
349
- showImagePicker: get(clientData, "showImagePicker", false),
349
+ showEditImagePicker: get(clientData, "showEditImagePicker", false),
350
350
  teamsApiDetails: {
351
351
  teamsApi: get(teamsApiDetails, "teamsApi", ""),
352
352
  username: get(teamsApiDetails, "username", ""),
@@ -457,7 +457,7 @@ const CreateClientForm = ({ teamsApi, username, password, toggleShow, onSuccess,
457
457
  required: true,
458
458
  message: "Subdomain is required",
459
459
  },
460
- ], children: _jsx(Input, { placeholder: "Subdomain", disabled: isEditMode }) }), _jsx(Form.Item, { name: "showFilePreview", valuePropName: "checked", initialValue: false, children: _jsx(Checkbox, { children: "Show File Preview Editor" }) }), _jsx(Form.Item, { name: "showImagePicker", valuePropName: "checked", initialValue: false, children: _jsx(Checkbox, { children: "Show Image Picker" }) }), _jsx(Form.Item, { shouldUpdate: true, style: { marginBottom: 0 }, children: () => {
460
+ ], children: _jsx(Input, { placeholder: "Subdomain", disabled: isEditMode }) }), _jsx(Form.Item, { name: "showFilePreview", valuePropName: "checked", initialValue: false, children: _jsx(Checkbox, { children: "Show File Preview Editor" }) }), _jsx(Form.Item, { name: "showEditImagePicker", valuePropName: "checked", initialValue: false, children: _jsx(Checkbox, { children: "Show Edit Image Picker" }) }), _jsx(Form.Item, { shouldUpdate: true, style: { marginBottom: 0 }, children: () => {
461
461
  var _a, _b, _c, _d, _e, _f, _g, _h;
462
462
  const values = form.getFieldsValue(true);
463
463
  const hasName = !!((_a = values === null || values === void 0 ? void 0 : values.name) === null || _a === void 0 ? void 0 : _a.trim());
@@ -26,7 +26,7 @@ const FilesGridView = ({ files, handleClick, selectedFileIds, isImagePicker, sel
26
26
  const { type } = useAppParams();
27
27
  const damConfig = useDamConfig();
28
28
  const brand = get(damConfig, "brand", {});
29
- const showImagePickerEdit = get(brand, "showImagePicker", false);
29
+ const showImagePickerEdit = get(brand, "showEditImagePicker", false);
30
30
  const [editState, setEditState] = useState({ editFile: null, showEditModal: false });
31
31
  const { editFile, showEditModal } = editState;
32
32
  const openEditor = (file) => {
@@ -106,7 +106,7 @@ const FolderListView = ({ folders, foldersFetching, hasNextPage, fetchNextPage,
106
106
  const damConfig = useDamConfig();
107
107
  const teams = get(damConfig, "teams", []);
108
108
  const brand = get(damConfig, "brand", {});
109
- const showImagePickerEdit = get(brand, "showImagePicker", false);
109
+ const showImagePickerEdit = get(brand, "showEditImagePicker", false);
110
110
  const [state, setState] = useState({
111
111
  selectedFile: {},
112
112
  showPreviewModal: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bindu-dashing/dam-solution-v2",
3
- "version": "5.9.235",
3
+ "version": "5.9.236",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.0.1",
6
6
  "@emoji-mart/data": "^1.2.1",