oolib 2.135.0 → 2.135.1
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.
|
@@ -100,7 +100,10 @@ function AudioInput(_a) {
|
|
|
100
100
|
react_1.default.createElement(AudioPlayer_1.AudioPlayer, { audioData: audioData }),
|
|
101
101
|
react_1.default.createElement(AudioAction_1.AudioAction, { id: id, isInRTE: isInRTE, inputRef: inputRef, parentOnChange: parentOnChange })))),
|
|
102
102
|
react_1.default.createElement("input", { type: "file" // When user clicks on upload new video from action menu inputRef.current.click() this does not work for upload button. this approch deals with that issue.
|
|
103
|
-
, accept: "audio/*", ref: inputRef, style: { display: "none" }, id: "AudioField", onChange: function (v) {
|
|
103
|
+
, accept: "audio/*", ref: inputRef, style: { display: "none" }, id: "AudioField", onChange: function (v) {
|
|
104
|
+
handleUpload({ files: v.target.files });
|
|
105
|
+
v.target.value = null;
|
|
106
|
+
} })));
|
|
104
107
|
}
|
|
105
108
|
;
|
|
106
109
|
exports.default = AudioInput;
|
|
@@ -111,7 +111,10 @@ function PDFInput(_a) {
|
|
|
111
111
|
react_1.default.createElement(StyledActionsButtonWrapper, null,
|
|
112
112
|
react_1.default.createElement(PDFActions_1.PDFActions, { id: id, isInRTE: isInRTE, inputRef: inputRef, parentOnChange: parentOnChange })))); })),
|
|
113
113
|
react_1.default.createElement("input", { type: "file" // When user clicks on upload new video from action menu inputRef.current.click() this does not work for upload button. this approch deals with that issue.
|
|
114
|
-
, accept: "application/pdf", ref: inputRef, style: { display: "none" }, id: "pdfField", onChange: function (v) {
|
|
114
|
+
, accept: "application/pdf", ref: inputRef, style: { display: "none" }, id: "pdfField", onChange: function (v) {
|
|
115
|
+
handleUpload({ files: v.target.files });
|
|
116
|
+
v.target.value = null;
|
|
117
|
+
} })));
|
|
115
118
|
}
|
|
116
119
|
exports.default = PDFInput;
|
|
117
120
|
var templateObject_1;
|
|
@@ -122,6 +122,9 @@ function VideoInput(_a) {
|
|
|
122
122
|
react_1.default.createElement(Buttons_1.ButtonSecondary, { onClick: function () { return inputRef.current.click(); }, value: "Upload A Video", icon: "UploadSimple", invert: invert, id: "videoField" }))))),
|
|
123
123
|
showEmbedLinkModal && (react_1.default.createElement(EmbedLinkModal_1.EmbedLinkModal, { setShowEmbedLinkModal: setShowEmbedLinkModal, value: value, createVideoPreview: createVideoPreview, canPlay: canPlay, onChange: onChange, id: id, invert: invert })),
|
|
124
124
|
react_1.default.createElement("input", { type: "file" // When user clicks on upload new video from action menu inputRef.current.click() this does not work for upload button. this approch deals with that issue.
|
|
125
|
-
, accept: "video/*", ref: inputRef, style: { display: "none" }, id: "videoField", onChange: function (v) {
|
|
125
|
+
, accept: "video/*", ref: inputRef, style: { display: "none" }, id: "videoField", onChange: function (v) {
|
|
126
|
+
handleUpload({ files: v.target.files });
|
|
127
|
+
v.target.value = null;
|
|
128
|
+
} })));
|
|
126
129
|
}
|
|
127
130
|
exports.default = VideoInput;
|