@bindu-dashing/dam-solution-v2 5.9.260 → 5.9.261

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.
@@ -95,6 +95,6 @@ export default function CreateOrEditAssetTemplate() {
95
95
  }
96
96
  });
97
97
  return (_jsx("div", { className: "md-lib-h-auto", style: {
98
- backgroundColor: (styles === null || styles === void 0 ? void 0 : styles.secondaryColor) || (variables === null || variables === void 0 ? void 0 : variables.secondaryColor),
98
+ backgroundColor: (styles === null || styles === void 0 ? void 0 : styles.colorSecondary) || (variables === null || variables === void 0 ? void 0 : variables.secondaryColor),
99
99
  }, children: (state === null || state === void 0 ? void 0 : state.inputTypesLoading) || (state === null || state === void 0 ? void 0 : state.templatesDataLoading) ? (_jsx(Loader, {})) : (_jsx(EditAssetTemplate, { assetTemplate: get(state, "templateData", {}), inputTypes: get(state, "inputTypesData", []) })) }));
100
100
  }
@@ -45,11 +45,12 @@ export default function OptionsField({ field, supportedTypes, currentInputType,
45
45
  message: "At least one option is required",
46
46
  },
47
47
  ], children: _jsx(Form.List, { name: "options", children: (fields, { add, remove }) => (_jsxs(_Fragment, { children: [fields.map((_a) => {
48
+ var _b;
48
49
  var { key, name } = _a, restField = __rest(_a, ["key", "name"]);
49
50
  return (_jsxs(Row, { gutter: 8, className: "md-lib-items-center", children: [_jsx(Col, { span: 10, children: _jsx(Form.Item, Object.assign({}, restField, { name: [name, "label"], label: "Label", rules: [
50
51
  { required: true, message: "Label is required" },
51
52
  ], children: _jsx(Input, { placeholder: "Enter Label", className: "md-lib-h-12" }) })) }), _jsx(Col, { span: 10, children: _jsx(Form.Item, Object.assign({}, restField, { name: [name, "value"], label: "Value", rules: [
52
53
  { required: true, message: "Value is required" },
53
- ], children: _jsx(Input, { placeholder: "Enter Value", className: "md-lib-h-12" }) })) }), _jsx(Col, { span: 4, className: "md-lib-flex md-lib-items-end", children: _jsx(TiDeleteOutlineIcon, { size: ICON_SIZE, className: "md-lib-cursor-pointer", color: theme === null || theme === void 0 ? void 0 : theme.primaryColor, onClick: () => remove(name) }) })] }, key));
54
+ ], children: _jsx(Input, { placeholder: "Enter Value", className: "md-lib-h-12" }) })) }), _jsx(Col, { span: 4, className: "md-lib-flex md-lib-items-end", children: _jsx(TiDeleteOutlineIcon, { size: ICON_SIZE, className: "md-lib-cursor-pointer", color: (_b = theme === null || theme === void 0 ? void 0 : theme.variables) === null || _b === void 0 ? void 0 : _b.primaryColor, onClick: () => remove(name) }) })] }, key));
54
55
  }), _jsx(Form.Item, { children: _jsx(Button, { icon: _jsx(FaPlusIcon, {}), onClick: () => add(), children: "Add Option" }) })] })) }) })] }))] }));
55
56
  }
@@ -316,7 +316,7 @@ const BulkUploadModal = ({ toggleUpload, userEmail, folderId, thumbnailsOnly, })
316
316
  },
317
317
  ], children: _jsx(Input, { placeholder: "Email", disabled: !assetTypeId }) })), !thumbnailsOnly && (_jsx(Form.Item, { name: "reject_invalid_meta_file", valuePropName: "checked", children: _jsxs(Checkbox, { name: "reject_invalid_meta_file", children: ["Reject invalid meta file", _jsx(Popover, { content: _jsxs("span", { style: { color: "grey", padding: "5px" }, children: ["When this option is selected the uploaded metadata", _jsx("br", {}), " file will be rejected if it contains invalid values"] }), children: _jsx(QuestionCircleOutlined, { style: { marginLeft: "5px", color: "silver" } }) })] }) })), _jsx(Form.Item, { children: _jsx(Button, { block: true, type: "primary", htmlType: "submit", style: {
318
318
  marginBottom: "10px",
319
- backgroundColor: styles === null || styles === void 0 ? void 0 : styles.primaryColor,
319
+ backgroundColor: styles === null || styles === void 0 ? void 0 : styles.colorPrimary,
320
320
  }, loading: loading, disabled: isSubmitDisabled, children: "Submit" }) })] }) }));
321
321
  };
322
322
  export default BulkUploadModal;
@@ -1,14 +1,4 @@
1
1
  import React from "react";
2
- /**
3
- * <img> wrapper that bypasses the browser HTTP cache when `version` changes.
4
- *
5
- * Why: S3 presigned URLs don't change after a file is overwritten in place
6
- * (same key → same signed URL). The browser's HTTP cache then serves the
7
- * old binary even when react-query refetches the file list. Appending
8
- * query params would break the S3 signature, so instead we re-fetch the URL
9
- * with `cache: 'reload'` and display the result via an object URL — the
10
- * blob URL is unique so the browser must paint the fresh bytes.
11
- */
12
2
  type Props = Omit<React.ImgHTMLAttributes<HTMLImageElement>, "src"> & {
13
3
  src: string;
14
4
  version?: string | number | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bindu-dashing/dam-solution-v2",
3
- "version": "5.9.260",
3
+ "version": "5.9.261",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.0.1",
6
6
  "@emoji-mart/data": "^1.2.1",