oolib 2.101.3 → 2.101.5

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.
@@ -25,6 +25,7 @@ var PDFActions = function (_a) {
25
25
  id: "".concat(id, "_replacePDF"),
26
26
  display: "Replace PDF",
27
27
  onClick: function () {
28
+ parentOnChange(undefined);
28
29
  inputRef.current.click();
29
30
  },
30
31
  },
@@ -104,7 +104,7 @@ function PDFInput(_a) {
104
104
  return (react_1.default.createElement(react_3.Fragment, null,
105
105
  react_1.default.createElement(BlockLabel_1.BlockLabel, __assign({}, (0, getBlockLabelProps_1.getBlockLabelProps)(props), { invert: invert })),
106
106
  (readOnly && value) ? (value === null || value === void 0 ? void 0 : value.map(function (d, i) { return (react_1.default.createElement(PDFEmbed_1.default, { key: i, filePath: d.publicUrl, fileName: d.originalFilename, fileID: d.generation })); }))
107
- : !value || (value === null || value === void 0 ? void 0 : value.length) === 0 && !isLoading ? (react_1.default.createElement(FileUploadWrapper_1.FileUploadWrapper, { height: "18rem", isLoading: isLoading, mediaType: "pdf", handleUpload: handleUpload, uploadProgress: uploadProgress },
107
+ : !value || (value === null || value === void 0 ? void 0 : value.length) === 0 && !isLoading ? (react_1.default.createElement(FileUploadWrapper_1.FileUploadWrapper, { height: "18rem", isLoading: isLoading, mediaType: "pdf", handleUpload: handleUpload, uploadProgress: uploadProgress, enableClickUpload: false },
108
108
  react_1.default.createElement(Buttons_1.ButtonSecondary, { onClick: function () { return inputRef.current.click(); }, icon: "UploadSimple", value: "Upload Pdf", invert: invert }))) : (value === null || value === void 0 ? void 0 : value.map(function (d, i) { return (react_1.default.createElement("div", { style: { position: 'relative' }, key: i },
109
109
  react_1.default.createElement(PDFEmbed_1.default, { filePath: d.publicUrl, fileName: d.originalFilename, fileID: d.generation }),
110
110
  react_1.default.createElement(StyledActionsButtonWrapper, null,
@@ -28,6 +28,7 @@ var VideoActionMenu = function (_a) {
28
28
  id: "".concat(id, "_uploadNewVideo"),
29
29
  display: "Upload New Video",
30
30
  onClick: function () {
31
+ onChange(undefined);
31
32
  inputRef.current.click(); // Trigger file explorer popup
32
33
  },
33
34
  }
@@ -35,6 +36,7 @@ var VideoActionMenu = function (_a) {
35
36
  id: "".concat(id, "_replaceUrl"),
36
37
  display: "Replace URL",
37
38
  onClick: function (e) {
39
+ onChange(undefined);
38
40
  setShowEmbedLinkModal(true);
39
41
  },
40
42
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oolib",
3
- "version": "2.101.3",
3
+ "version": "2.101.5",
4
4
  "description": " OKE Component Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",