iglooform 2.5.28 → 2.5.29
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/es/media/media.js +1 -1
- package/es/media/preview.js +1 -1
- package/es/upload-photo/media.js +1 -1
- package/es/upload-preview/media.js +1 -1
- package/lib/media/media.js +3 -3
- package/lib/media/preview.js +5 -5
- package/lib/upload-photo/media.js +3 -3
- package/lib/upload-preview/media.js +3 -3
- package/package.json +1 -1
package/es/media/media.js
CHANGED
|
@@ -15,7 +15,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
15
15
|
|
|
16
16
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
17
|
import { useRef, useState, useContext } from 'react';
|
|
18
|
-
import { Document, Page } from 'react-pdf';
|
|
18
|
+
import { Document, Page } from 'react-pdf/dist/esm/entry.webpack';
|
|
19
19
|
import { LocaleContext } from '../locale';
|
|
20
20
|
|
|
21
21
|
var MediaItem = function MediaItem(_ref) {
|
package/es/media/preview.js
CHANGED
|
@@ -23,7 +23,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
23
23
|
|
|
24
24
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
25
25
|
import { useState, useRef, useContext, useReducer } from 'react';
|
|
26
|
-
import { Document, Page } from 'react-pdf';
|
|
26
|
+
import { Document, Page } from 'react-pdf/dist/esm/entry.webpack';
|
|
27
27
|
import classnames from 'classnames';
|
|
28
28
|
import { ArrowLeftOutlined, ArrowRightOutlined } from 'iglooicon';
|
|
29
29
|
import Modal from '../modal';
|
package/es/upload-photo/media.js
CHANGED
|
@@ -12,7 +12,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
12
12
|
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
import { useState, useContext } from 'react';
|
|
15
|
-
import { Document, Page } from 'react-pdf';
|
|
15
|
+
import { Document, Page } from 'react-pdf/dist/esm/entry.webpack';
|
|
16
16
|
import { LocaleContext } from '../locale';
|
|
17
17
|
|
|
18
18
|
var MediaItem = function MediaItem(_ref) {
|
|
@@ -18,7 +18,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
18
18
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
19
|
import { useState, useContext, useReducer, useRef } from 'react';
|
|
20
20
|
import Typography from '../typography';
|
|
21
|
-
import { Document, Page } from 'react-pdf';
|
|
21
|
+
import { Document, Page } from 'react-pdf/dist/esm/entry.webpack';
|
|
22
22
|
import { ErrorFilled } from 'iglooicon';
|
|
23
23
|
import LocaleContext from '../locale/locale-context';
|
|
24
24
|
import Modal from '../modal';
|
package/lib/media/media.js
CHANGED
|
@@ -13,7 +13,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
13
13
|
|
|
14
14
|
var _react = require("react");
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _entry = require("react-pdf/dist/esm/entry.webpack");
|
|
17
17
|
|
|
18
18
|
var _locale = require("../locale");
|
|
19
19
|
|
|
@@ -79,7 +79,7 @@ var MediaItem = function MediaItem(_ref) {
|
|
|
79
79
|
maxHeight: 80,
|
|
80
80
|
position: 'absolute'
|
|
81
81
|
},
|
|
82
|
-
children: (0, _jsxRuntime.jsx)(
|
|
82
|
+
children: (0, _jsxRuntime.jsx)(_entry.Document, {
|
|
83
83
|
ref: documentRef,
|
|
84
84
|
file: src,
|
|
85
85
|
onPassword: needPassword,
|
|
@@ -89,7 +89,7 @@ var MediaItem = function MediaItem(_ref) {
|
|
|
89
89
|
},
|
|
90
90
|
children: errorText
|
|
91
91
|
}),
|
|
92
|
-
children: (0, _jsxRuntime.jsx)(
|
|
92
|
+
children: (0, _jsxRuntime.jsx)(_entry.Page, {
|
|
93
93
|
pageNumber: 1,
|
|
94
94
|
scale: 0.1
|
|
95
95
|
})
|
package/lib/media/preview.js
CHANGED
|
@@ -17,7 +17,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
17
17
|
|
|
18
18
|
var _react = require("react");
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _entry = require("react-pdf/dist/esm/entry.webpack");
|
|
21
21
|
|
|
22
22
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
23
23
|
|
|
@@ -184,7 +184,7 @@ var PdfViewer = function PdfViewer(_ref) {
|
|
|
184
184
|
position: 'absolute',
|
|
185
185
|
overflow: 'auto'
|
|
186
186
|
},
|
|
187
|
-
children: (0, _jsxRuntime.jsx)(
|
|
187
|
+
children: (0, _jsxRuntime.jsx)(_entry.Document, {
|
|
188
188
|
file: src,
|
|
189
189
|
onLoadSuccess: handlePageInit,
|
|
190
190
|
ref: documentRef,
|
|
@@ -192,7 +192,7 @@ var PdfViewer = function PdfViewer(_ref) {
|
|
|
192
192
|
children: Array.from({
|
|
193
193
|
length: pageSize
|
|
194
194
|
}).map(function (_, index) {
|
|
195
|
-
return (0, _jsxRuntime.jsx)(
|
|
195
|
+
return (0, _jsxRuntime.jsx)(_entry.Page, {
|
|
196
196
|
pageNumber: index + 1,
|
|
197
197
|
scale: scale
|
|
198
198
|
}, index);
|
|
@@ -210,12 +210,12 @@ var PdfViewer = function PdfViewer(_ref) {
|
|
|
210
210
|
position: 'absolute',
|
|
211
211
|
overflow: 'auto'
|
|
212
212
|
},
|
|
213
|
-
children: (0, _jsxRuntime.jsx)(
|
|
213
|
+
children: (0, _jsxRuntime.jsx)(_entry.Document, {
|
|
214
214
|
file: src,
|
|
215
215
|
onLoadSuccess: handlePageInit,
|
|
216
216
|
ref: documentRef,
|
|
217
217
|
onPassword: onPassword,
|
|
218
|
-
children: (0, _jsxRuntime.jsx)(
|
|
218
|
+
children: (0, _jsxRuntime.jsx)(_entry.Page, {
|
|
219
219
|
pageNumber: page,
|
|
220
220
|
scale: scale
|
|
221
221
|
})
|
|
@@ -9,7 +9,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
9
9
|
|
|
10
10
|
var _react = require("react");
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _entry = require("react-pdf/dist/esm/entry.webpack");
|
|
13
13
|
|
|
14
14
|
var _locale = require("../locale");
|
|
15
15
|
|
|
@@ -55,12 +55,12 @@ var MediaItem = function MediaItem(_ref) {
|
|
|
55
55
|
className: className,
|
|
56
56
|
children: needPassword ? formatMessage({
|
|
57
57
|
id: 'Encrypted PDF'
|
|
58
|
-
}) : (0, _jsxRuntime.jsx)(
|
|
58
|
+
}) : (0, _jsxRuntime.jsx)(_entry.Document, {
|
|
59
59
|
file: src,
|
|
60
60
|
onPassword: function onPassword() {
|
|
61
61
|
setNeedPassword(true);
|
|
62
62
|
},
|
|
63
|
-
children: (0, _jsxRuntime.jsx)(
|
|
63
|
+
children: (0, _jsxRuntime.jsx)(_entry.Page, {
|
|
64
64
|
pageNumber: 1,
|
|
65
65
|
height: 96
|
|
66
66
|
})
|
|
@@ -19,7 +19,7 @@ var _react = require("react");
|
|
|
19
19
|
|
|
20
20
|
var _typography = _interopRequireDefault(require("../typography"));
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _entry = require("react-pdf/dist/esm/entry.webpack");
|
|
23
23
|
|
|
24
24
|
var _iglooicon = require("iglooicon");
|
|
25
25
|
|
|
@@ -157,14 +157,14 @@ var PDF = function PDF(_ref) {
|
|
|
157
157
|
|
|
158
158
|
return (0, _jsxRuntime.jsx)("div", {
|
|
159
159
|
className: "igloo-upload-preview-pdf",
|
|
160
|
-
children: (0, _jsxRuntime.jsx)(
|
|
160
|
+
children: (0, _jsxRuntime.jsx)(_entry.Document, {
|
|
161
161
|
file: src,
|
|
162
162
|
onLoadSuccess: handlePageInit,
|
|
163
163
|
onPassword: onPassword,
|
|
164
164
|
children: Array.from({
|
|
165
165
|
length: pageSize
|
|
166
166
|
}).map(function (_, index) {
|
|
167
|
-
return (0, _jsxRuntime.jsx)(
|
|
167
|
+
return (0, _jsxRuntime.jsx)(_entry.Page, {
|
|
168
168
|
pageNumber: index + 1,
|
|
169
169
|
scale: md ? 1 : 0.5
|
|
170
170
|
}, index);
|