cozy-ui 111.10.0 → 111.11.0
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.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [111.11.0](https://github.com/cozy/cozy-ui/compare/v111.10.0...v111.11.0) (2024-09-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* Expose `fileToArrayBuffer` from ActionsMenu actions helpers ([72b6e21](https://github.com/cozy/cozy-ui/commit/72b6e21))
|
|
7
|
+
|
|
1
8
|
# [111.10.0](https://github.com/cozy/cozy-ui/compare/v111.9.0...v111.10.0) (2024-09-16)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -177,7 +177,7 @@ const addImageToPdf = async (pdfDoc, file) => {
|
|
|
177
177
|
* @param {File} file
|
|
178
178
|
* @returns {Promise<ArrayBuffer>}
|
|
179
179
|
*/
|
|
180
|
-
const fileToArrayBuffer = async file => {
|
|
180
|
+
export const fileToArrayBuffer = async file => {
|
|
181
181
|
if ('arrayBuffer' in file) return await file.arrayBuffer()
|
|
182
182
|
|
|
183
183
|
return new Promise((resolve, reject) => {
|
|
@@ -256,7 +256,7 @@ var addImageToPdf = /*#__PURE__*/function () {
|
|
|
256
256
|
*/
|
|
257
257
|
|
|
258
258
|
|
|
259
|
-
var fileToArrayBuffer = /*#__PURE__*/function () {
|
|
259
|
+
export var fileToArrayBuffer = /*#__PURE__*/function () {
|
|
260
260
|
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5(file) {
|
|
261
261
|
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
262
262
|
while (1) {
|
|
@@ -303,7 +303,6 @@ var fileToArrayBuffer = /*#__PURE__*/function () {
|
|
|
303
303
|
* @returns {Promise<void>}
|
|
304
304
|
*/
|
|
305
305
|
|
|
306
|
-
|
|
307
306
|
var addPdfToPdf = /*#__PURE__*/function () {
|
|
308
307
|
var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6(pdfDoc, file) {
|
|
309
308
|
var pdfToAdd, document, copiedPages;
|