oolib 2.101.4 → 2.101.6
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.
|
@@ -46,7 +46,7 @@ var FileUploadShell_1 = require("../../../../../FileUploadWrapper/comps/FileUplo
|
|
|
46
46
|
var Plus = icons_1.icons.Plus;
|
|
47
47
|
var GalleryThumbnails = function (_a) {
|
|
48
48
|
var activeIdx = _a.activeIdx, setActiveIdx = _a.setActiveIdx;
|
|
49
|
-
var _b = (0, ImageInputContext_1.useImageInputContext)(), value = _b.value, isLoading = _b.isLoading, noOfImagesUploading = _b.noOfImagesUploading, readOnly = _b.readOnly, invert = _b.invert, aspectRatio = _b.aspectRatio;
|
|
49
|
+
var _b = (0, ImageInputContext_1.useImageInputContext)(), value = _b.value, isLoading = _b.isLoading, noOfImagesUploading = _b.noOfImagesUploading, readOnly = _b.readOnly, invert = _b.invert, aspectRatio = _b.aspectRatio, handleUpload = _b.handleUpload, onChange = _b.onChange, id = _b.id;
|
|
50
50
|
var _c = (0, react_1.useState)(0), placeholderThumbsToRender = _c[0], setPlaceholderThumbsToRender = _c[1];
|
|
51
51
|
var totThumbsSpaceRef = (0, react_1.useRef)(null);
|
|
52
52
|
var addMoreThumbnailRef = (0, react_1.useRef)(null);
|
|
@@ -69,7 +69,7 @@ var GalleryThumbnails = function (_a) {
|
|
|
69
69
|
var imageThumbnailsData = __spreadArray(__spreadArray([], ((0, makeArrayFromLength_1.makeArrayFromLength)(noOfImagesUploading).map(function (d) { return undefined; })), true), (value || []), true);
|
|
70
70
|
return (react_1.default.createElement("div", { ref: totThumbsSpaceRef, style: { display: 'flex', gap: '1rem' } },
|
|
71
71
|
!readOnly && (react_1.default.createElement(styled_1.StyledAddMoreThumbnail, { ref: addMoreThumbnailRef, disabled: isLoading, noBorder: true, invert: invert },
|
|
72
|
-
react_1.default.createElement(FileUploadShell_1.FileUploadShell, { disabled: isLoading, multiple: true },
|
|
72
|
+
react_1.default.createElement(FileUploadShell_1.FileUploadShell, { disabled: isLoading, multiple: true, handleUpload: handleUpload, onChange: onChange, value: value, id: id },
|
|
73
73
|
react_1.default.createElement("div", { style: {
|
|
74
74
|
display: "grid",
|
|
75
75
|
placeItems: "center",
|
|
@@ -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
|
},
|