oolib 2.112.0 → 2.112.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.
@@ -72,7 +72,8 @@ function AudioInput(_a) {
72
72
  },
73
73
  handleUploadProgess: handleUploadProgess,
74
74
  })) || (0, useFakeUploadImpression_1.useFakeUploadImpression)({ handleUploadProgess: handleUploadProgess, fileType: "audio" }), upload = _c.mutate, isLoading = _c.isLoading;
75
- var handleUpload = function (files) {
75
+ var handleUpload = function (_a) {
76
+ var files = _a.files;
76
77
  if (!files)
77
78
  return;
78
79
  if (!upload)
@@ -89,7 +90,7 @@ function AudioInput(_a) {
89
90
  };
90
91
  (0, react_1.useEffect)(function () {
91
92
  if (files) {
92
- handleUpload(files);
93
+ handleUpload({ files: files });
93
94
  }
94
95
  }, []);
95
96
  return (react_1.default.createElement(react_1.Fragment, null,
@@ -99,7 +100,7 @@ function AudioInput(_a) {
99
100
  react_1.default.createElement(AudioPlayer_1.AudioPlayer, { audioData: audioData }),
100
101
  react_1.default.createElement(AudioAction_1.AudioAction, { id: id, isInRTE: isInRTE, inputRef: inputRef, parentOnChange: parentOnChange })))),
101
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.
102
- , accept: "audio/*", ref: inputRef, style: { display: "none" }, id: "AudioField", onChange: function (v) { return handleUpload(v.target.files); } })));
103
+ , accept: "audio/*", ref: inputRef, style: { display: "none" }, id: "AudioField", onChange: function (v) { return handleUpload({ files: v.target.files }); } })));
103
104
  }
104
105
  ;
105
106
  exports.default = AudioInput;
@@ -151,7 +151,7 @@ function ImageEditor(_a) {
151
151
  react_1.default.createElement("div", { style: {
152
152
  borderRadius: "0.2rem",
153
153
  padding: readOnly ? "1rem" : "2rem",
154
- backgroundColor: readOnly ? "initial" : invert ? themes_1.colors.greyColor90 : themes_1.colors.greyColor5,
154
+ backgroundColor: invert ? themes_1.colors.greyColor90 : themes_1.colors.greyColor5,
155
155
  } }, !LexicalTextEditor
156
156
  ? (0, renderRTEPlaceholderForOolibPreview_1.renderRTEPlaceholderForOolibPreview)({
157
157
  width: '100%',
@@ -63,8 +63,9 @@ function VideoInput(_a) {
63
63
  handleUploadProgess: handleUploadProgess,
64
64
  })) ||
65
65
  (0, useFakeUploadImpression_1.useFakeUploadImpression)({ handleUploadProgess: handleUploadProgess, fileType: "video" }), upload = _e.mutate, isLoading = _e.isLoading;
66
- var handleUpload = function (files) {
66
+ var handleUpload = function (_a) {
67
67
  // onChange(id, undefined) //so that the prev video is cleared and loader shows up
68
+ var files = _a.files;
68
69
  if (!files)
69
70
  return;
70
71
  if (!upload)
@@ -82,7 +83,7 @@ function VideoInput(_a) {
82
83
  };
83
84
  (0, react_1.useEffect)(function () {
84
85
  if (files) {
85
- handleUpload(files);
86
+ handleUpload({ files: files });
86
87
  }
87
88
  }, []);
88
89
  var createVideoPreview = function (_a) {
@@ -121,6 +122,6 @@ function VideoInput(_a) {
121
122
  react_1.default.createElement(Buttons_1.ButtonSecondary, { onClick: function () { return inputRef.current.click(); }, value: "Upload A Video", icon: "UploadSimple", invert: invert, id: "videoField" }))))),
122
123
  showEmbedLinkModal && (react_1.default.createElement(EmbedLinkModal_1.EmbedLinkModal, { setShowEmbedLinkModal: setShowEmbedLinkModal, value: value, createVideoPreview: createVideoPreview, canPlay: canPlay, onChange: onChange, id: id, invert: invert })),
123
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.
124
- , accept: "video/*", ref: inputRef, style: { display: "none" }, id: "videoField", onChange: function (v) { return handleUpload(v.target.files); } })));
125
+ , accept: "video/*", ref: inputRef, style: { display: "none" }, id: "videoField", onChange: function (v) { return handleUpload({ files: v.target.files }); } })));
125
126
  }
126
127
  exports.default = VideoInput;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oolib",
3
- "version": "2.112.0",
3
+ "version": "2.112.1",
4
4
  "description": " OKE Component Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",