iglooform 3.7.9 → 3.8.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.
Files changed (68) hide show
  1. package/.dumi/tmp/core/defineApp.ts +1 -1
  2. package/.dumi/tmp/core/helmet.ts +1 -1
  3. package/.dumi/tmp/core/history.ts +1 -1
  4. package/.dumi/tmp/core/historyIntelli.ts +1 -1
  5. package/.dumi/tmp/core/plugin.ts +2 -2
  6. package/.dumi/tmp/core/polyfill.ts +197 -197
  7. package/.dumi/tmp/core/route.tsx +33 -33
  8. package/.dumi/tmp/dumi/exports.ts +1 -1
  9. package/.dumi/tmp/dumi/locales/runtime.tsx +2 -2
  10. package/.dumi/tmp/dumi/meta/index.ts +33 -33
  11. package/.dumi/tmp/dumi/meta/runtime.ts +1 -1
  12. package/.dumi/tmp/dumi/theme/ContextWrapper.tsx +2 -2
  13. package/.dumi/tmp/dumi/theme/builtins/API.ts +1 -1
  14. package/.dumi/tmp/dumi/theme/builtins/Badge.ts +1 -1
  15. package/.dumi/tmp/dumi/theme/builtins/Container.ts +1 -1
  16. package/.dumi/tmp/dumi/theme/builtins/Previewer.ts +1 -1
  17. package/.dumi/tmp/dumi/theme/builtins/SourceCode.ts +1 -1
  18. package/.dumi/tmp/dumi/theme/builtins/Table.ts +1 -1
  19. package/.dumi/tmp/dumi/theme/builtins/Tree.ts +1 -1
  20. package/.dumi/tmp/dumi/theme/layouts/DocLayout.ts +1 -1
  21. package/.dumi/tmp/dumi/theme/loading.tsx +1 -1
  22. package/.dumi/tmp/dumi/theme/slots/ColorSwitch.ts +1 -1
  23. package/.dumi/tmp/dumi/theme/slots/Content.ts +1 -1
  24. package/.dumi/tmp/dumi/theme/slots/ContentFooter.ts +1 -1
  25. package/.dumi/tmp/dumi/theme/slots/ContentTabs.ts +1 -1
  26. package/.dumi/tmp/dumi/theme/slots/Features.ts +1 -1
  27. package/.dumi/tmp/dumi/theme/slots/Footer.ts +1 -1
  28. package/.dumi/tmp/dumi/theme/slots/Header.ts +1 -1
  29. package/.dumi/tmp/dumi/theme/slots/HeaderExtra.ts +1 -1
  30. package/.dumi/tmp/dumi/theme/slots/Hero.ts +1 -1
  31. package/.dumi/tmp/dumi/theme/slots/HeroTitle.ts +1 -1
  32. package/.dumi/tmp/dumi/theme/slots/LangSwitch.ts +1 -1
  33. package/.dumi/tmp/dumi/theme/slots/Logo.ts +1 -1
  34. package/.dumi/tmp/dumi/theme/slots/Navbar.ts +1 -1
  35. package/.dumi/tmp/dumi/theme/slots/NavbarExtra.ts +1 -1
  36. package/.dumi/tmp/dumi/theme/slots/NotFound.ts +1 -1
  37. package/.dumi/tmp/dumi/theme/slots/PreviewerActions.ts +1 -1
  38. package/.dumi/tmp/dumi/theme/slots/PreviewerActionsExtra.ts +1 -1
  39. package/.dumi/tmp/dumi/theme/slots/RtlSwitch.ts +1 -1
  40. package/.dumi/tmp/dumi/theme/slots/SearchBar.ts +2 -2
  41. package/.dumi/tmp/dumi/theme/slots/SearchResult.ts +1 -1
  42. package/.dumi/tmp/dumi/theme/slots/Sidebar.ts +1 -1
  43. package/.dumi/tmp/dumi/theme/slots/SocialIcon.ts +1 -1
  44. package/.dumi/tmp/dumi/theme/slots/Toc.ts +1 -1
  45. package/.dumi/tmp/exports.ts +5 -5
  46. package/.dumi/tmp/testBrowser.tsx +3 -3
  47. package/.dumi/tmp/umi.ts +4 -4
  48. package/es/media/index.js +62 -30
  49. package/es/media/preview.d.ts +1 -0
  50. package/es/media/preview.js +118 -35
  51. package/es/media/style/index.less +6 -11
  52. package/lib/media/index.js +61 -29
  53. package/lib/media/preview.d.ts +1 -0
  54. package/lib/media/preview.js +117 -34
  55. package/lib/media/style/index.less +6 -11
  56. package/package.json +1 -1
  57. package/.idea/codeStyles/Project.xml +0 -80
  58. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  59. package/.idea/iglooformv3.iml +0 -12
  60. package/.idea/modules.xml +0 -8
  61. package/.idea/prettier.xml +0 -6
  62. package/.idea/vcs.xml +0 -6
  63. package/es/currency-context/index.d.ts +0 -8
  64. package/es/media/index.d.ts +0 -30
  65. package/es/media/media.d.ts +0 -14
  66. package/lib/currency-context/index.d.ts +0 -8
  67. package/lib/media/index.d.ts +0 -30
  68. package/lib/media/media.d.ts +0 -14
@@ -213,10 +213,30 @@ var PdfViewer = function PdfViewer(_ref) {
213
213
  })]
214
214
  });
215
215
  };
216
+ var getImageLayoutSize = function getImageLayoutSize(imageSize, containerSize, rotation) {
217
+ var imageWidth = imageSize.width,
218
+ imageHeight = imageSize.height;
219
+ var containerWidth = containerSize.width,
220
+ containerHeight = containerSize.height;
221
+ if (!imageWidth || !imageHeight || !containerWidth || !containerHeight) {
222
+ return undefined;
223
+ }
224
+ var isQuarterTurn = Math.abs(rotation % 180) === 90;
225
+ var ratio = isQuarterTurn ? Math.min(containerWidth / imageHeight, containerHeight / imageWidth) : Math.min(containerWidth / imageWidth, containerHeight / imageHeight);
226
+ if (!isFinite(ratio) || ratio <= 0) {
227
+ return undefined;
228
+ }
229
+ return {
230
+ width: imageWidth * ratio,
231
+ height: imageHeight * ratio
232
+ };
233
+ };
216
234
  var MediaItem = function MediaItem(_ref3) {
217
235
  var type = _ref3.type,
218
236
  src = _ref3.src,
219
237
  scale = _ref3.scale,
238
+ rotation = _ref3.rotation,
239
+ containerSize = _ref3.containerSize,
220
240
  offset = _ref3.offset,
221
241
  isCurrent = _ref3.isCurrent,
222
242
  showAllPages = _ref3.showAllPages;
@@ -224,6 +244,14 @@ var MediaItem = function MediaItem(_ref3) {
224
244
  left = offset.left;
225
245
  var _useContext2 = (0, _react.useContext)(_locale.LocaleContext),
226
246
  formatMessage = _useContext2.formatMessage;
247
+ var _useState7 = (0, _react.useState)({
248
+ width: 0,
249
+ height: 0
250
+ }),
251
+ _useState8 = _slicedToArray(_useState7, 2),
252
+ imageSize = _useState8[0],
253
+ setImageSize = _useState8[1];
254
+ var imageLayoutSize = getImageLayoutSize(imageSize, containerSize, rotation);
227
255
  switch (type) {
228
256
  case 'video':
229
257
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("video", {
@@ -244,14 +272,32 @@ var MediaItem = function MediaItem(_ref3) {
244
272
  showAllPages: showAllPages
245
273
  });
246
274
  case 'image':
247
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
248
- src: src,
275
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
249
276
  style: {
250
- maxWidth: '100%',
251
- maxHeight: '100%',
252
- transform: "scale(".concat(scale, ") translate(").concat(left, "px, ").concat(top, "px)"),
253
- position: 'absolute'
254
- }
277
+ position: 'absolute',
278
+ inset: 0,
279
+ display: 'flex',
280
+ justifyContent: 'center',
281
+ alignItems: 'center',
282
+ transform: "translate(".concat(left, "px, ").concat(top, "px)")
283
+ },
284
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
285
+ src: src,
286
+ onLoad: function onLoad(_ref4) {
287
+ var currentTarget = _ref4.currentTarget;
288
+ return setImageSize({
289
+ width: currentTarget.naturalWidth,
290
+ height: currentTarget.naturalHeight
291
+ });
292
+ },
293
+ style: _objectSpread(_objectSpread({}, imageLayoutSize ? imageLayoutSize : {
294
+ maxWidth: '100%',
295
+ maxHeight: '100%'
296
+ }), {}, {
297
+ display: 'block',
298
+ transform: "scale(".concat(scale, ") rotate(").concat(rotation, "deg)")
299
+ })
300
+ })
255
301
  });
256
302
  default:
257
303
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
@@ -268,42 +314,76 @@ var MediaItem = function MediaItem(_ref3) {
268
314
  });
269
315
  }
270
316
  };
271
- var Media = function Media(_ref4) {
272
- var src = _ref4.src,
273
- className = _ref4.className,
274
- style = _ref4.style,
275
- _ref4$scale = _ref4.scale,
276
- scale = _ref4$scale === void 0 ? 1 : _ref4$scale,
277
- type = _ref4.type,
278
- _ref4$isCurrent = _ref4.isCurrent,
279
- isCurrent = _ref4$isCurrent === void 0 ? false : _ref4$isCurrent,
280
- _ref4$showAllPages = _ref4.showAllPages,
281
- showAllPages = _ref4$showAllPages === void 0 ? true : _ref4$showAllPages;
282
- var _useState7 = (0, _react.useState)(false),
283
- _useState8 = _slicedToArray(_useState7, 2),
284
- isDrag = _useState8[0],
285
- setIsDrag = _useState8[1];
286
- var _useState9 = (0, _react.useState)({
287
- startX: 0,
288
- startY: 0
289
- }),
317
+ var Media = function Media(_ref5) {
318
+ var src = _ref5.src,
319
+ className = _ref5.className,
320
+ style = _ref5.style,
321
+ _ref5$scale = _ref5.scale,
322
+ scale = _ref5$scale === void 0 ? 1 : _ref5$scale,
323
+ _ref5$rotation = _ref5.rotation,
324
+ rotation = _ref5$rotation === void 0 ? 0 : _ref5$rotation,
325
+ type = _ref5.type,
326
+ _ref5$isCurrent = _ref5.isCurrent,
327
+ isCurrent = _ref5$isCurrent === void 0 ? false : _ref5$isCurrent,
328
+ _ref5$showAllPages = _ref5.showAllPages,
329
+ showAllPages = _ref5$showAllPages === void 0 ? true : _ref5$showAllPages;
330
+ var _useState9 = (0, _react.useState)(false),
290
331
  _useState10 = _slicedToArray(_useState9, 2),
291
- startPos = _useState10[0],
292
- setStartPos = _useState10[1];
332
+ isDrag = _useState10[0],
333
+ setIsDrag = _useState10[1];
293
334
  var _useState11 = (0, _react.useState)({
294
- top: 0,
295
- left: 0
335
+ startX: 0,
336
+ startY: 0
296
337
  }),
297
338
  _useState12 = _slicedToArray(_useState11, 2),
298
- offset = _useState12[0],
299
- setOffset = _useState12[1];
339
+ startPos = _useState12[0],
340
+ setStartPos = _useState12[1];
300
341
  var _useState13 = (0, _react.useState)({
301
342
  top: 0,
302
343
  left: 0
303
344
  }),
304
345
  _useState14 = _slicedToArray(_useState13, 2),
305
- lastOffset = _useState14[0],
306
- setLastOffset = _useState14[1];
346
+ offset = _useState14[0],
347
+ setOffset = _useState14[1];
348
+ var _useState15 = (0, _react.useState)({
349
+ top: 0,
350
+ left: 0
351
+ }),
352
+ _useState16 = _slicedToArray(_useState15, 2),
353
+ lastOffset = _useState16[0],
354
+ setLastOffset = _useState16[1];
355
+ var containerRef = (0, _react.useRef)(null);
356
+ var _useState17 = (0, _react.useState)({
357
+ width: 0,
358
+ height: 0
359
+ }),
360
+ _useState18 = _slicedToArray(_useState17, 2),
361
+ containerSize = _useState18[0],
362
+ setContainerSize = _useState18[1];
363
+ (0, _react.useEffect)(function () {
364
+ var current = containerRef.current;
365
+ if (!current) {
366
+ return;
367
+ }
368
+ var updateContainerSize = function updateContainerSize() {
369
+ setContainerSize({
370
+ width: current.clientWidth,
371
+ height: current.clientHeight
372
+ });
373
+ };
374
+ updateContainerSize();
375
+ if (typeof ResizeObserver === 'undefined') {
376
+ window.addEventListener('resize', updateContainerSize);
377
+ return function () {
378
+ return window.removeEventListener('resize', updateContainerSize);
379
+ };
380
+ }
381
+ var observer = new ResizeObserver(updateContainerSize);
382
+ observer.observe(current);
383
+ return function () {
384
+ return observer.disconnect();
385
+ };
386
+ }, []);
307
387
  var handleMouseUp = function handleMouseUp(e) {
308
388
  e.preventDefault();
309
389
  var button = e.button;
@@ -346,6 +426,7 @@ var Media = function Media(_ref4) {
346
426
  });
347
427
  };
348
428
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
429
+ ref: containerRef,
349
430
  style: {
350
431
  position: 'relative',
351
432
  width: '100%',
@@ -362,6 +443,8 @@ var Media = function Media(_ref4) {
362
443
  type: type,
363
444
  src: src,
364
445
  scale: scale,
446
+ rotation: rotation,
447
+ containerSize: containerSize,
365
448
  offset: offset,
366
449
  isCurrent: isCurrent,
367
450
  showAllPages: showAllPages
@@ -108,21 +108,16 @@
108
108
  margin-top: 16px;
109
109
  }
110
110
 
111
- .igloo-preview-zoom-in {
111
+ .igloo-preview-actions {
112
+ position: fixed;
112
113
  right: 24px;
113
- }
114
-
115
- .igloo-preview-zoom-out {
116
- right: 80px;
117
- }
118
-
119
- .igloo-preview-download-btn {
120
- right: 136px;
114
+ bottom: 24px;
115
+ display: flex;
116
+ flex-direction: row-reverse;
117
+ gap: 16px;
121
118
  }
122
119
 
123
120
  .igloo-preview-action-btn {
124
- position: fixed;
125
- bottom: 24px;
126
121
  display: flex;
127
122
  justify-content: center;
128
123
  align-items: center;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iglooform",
3
- "version": "3.7.9",
3
+ "version": "3.8.0",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "build-dev": "dumi build",
@@ -1,80 +0,0 @@
1
- <component name="ProjectCodeStyleConfiguration">
2
- <code_scheme name="Project" version="173">
3
- <HTMLCodeStyleSettings>
4
- <option name="HTML_SPACE_INSIDE_EMPTY_TAG" value="true" />
5
- </HTMLCodeStyleSettings>
6
- <JSCodeStyleSettings version="0">
7
- <option name="FORCE_SEMICOLON_STYLE" value="true" />
8
- <option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
9
- <option name="USE_DOUBLE_QUOTES" value="false" />
10
- <option name="FORCE_QUOTE_STYlE" value="true" />
11
- <option name="ENFORCE_TRAILING_COMMA" value="WhenMultiline" />
12
- <option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
13
- <option name="SPACES_WITHIN_IMPORTS" value="true" />
14
- </JSCodeStyleSettings>
15
- <JetCodeStyleSettings>
16
- <option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" />
17
- </JetCodeStyleSettings>
18
- <TypeScriptCodeStyleSettings version="0">
19
- <option name="FORCE_SEMICOLON_STYLE" value="true" />
20
- <option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
21
- <option name="USE_DOUBLE_QUOTES" value="false" />
22
- <option name="FORCE_QUOTE_STYlE" value="true" />
23
- <option name="ENFORCE_TRAILING_COMMA" value="WhenMultiline" />
24
- <option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
25
- <option name="SPACES_WITHIN_IMPORTS" value="true" />
26
- </TypeScriptCodeStyleSettings>
27
- <VueCodeStyleSettings>
28
- <option name="INTERPOLATION_NEW_LINE_AFTER_START_DELIMITER" value="false" />
29
- <option name="INTERPOLATION_NEW_LINE_BEFORE_END_DELIMITER" value="false" />
30
- </VueCodeStyleSettings>
31
- <codeStyleSettings language="HTML">
32
- <option name="SOFT_MARGINS" value="80" />
33
- <indentOptions>
34
- <option name="INDENT_SIZE" value="2" />
35
- <option name="CONTINUATION_INDENT_SIZE" value="2" />
36
- <option name="TAB_SIZE" value="2" />
37
- </indentOptions>
38
- </codeStyleSettings>
39
- <codeStyleSettings language="JAVA">
40
- <indentOptions>
41
- <option name="INDENT_SIZE" value="2" />
42
- <option name="CONTINUATION_INDENT_SIZE" value="2" />
43
- <option name="TAB_SIZE" value="2" />
44
- </indentOptions>
45
- </codeStyleSettings>
46
- <codeStyleSettings language="JavaScript">
47
- <option name="SPACE_BEFORE_METHOD_PARENTHESES" value="true" />
48
- <option name="SOFT_MARGINS" value="80" />
49
- <indentOptions>
50
- <option name="INDENT_SIZE" value="2" />
51
- <option name="CONTINUATION_INDENT_SIZE" value="2" />
52
- <option name="TAB_SIZE" value="2" />
53
- </indentOptions>
54
- </codeStyleSettings>
55
- <codeStyleSettings language="TypeScript">
56
- <option name="SOFT_MARGINS" value="80" />
57
- <indentOptions>
58
- <option name="INDENT_SIZE" value="2" />
59
- <option name="CONTINUATION_INDENT_SIZE" value="2" />
60
- <option name="TAB_SIZE" value="2" />
61
- </indentOptions>
62
- </codeStyleSettings>
63
- <codeStyleSettings language="Vue">
64
- <option name="SOFT_MARGINS" value="80" />
65
- <indentOptions>
66
- <option name="CONTINUATION_INDENT_SIZE" value="2" />
67
- </indentOptions>
68
- </codeStyleSettings>
69
- <codeStyleSettings language="XML">
70
- <indentOptions>
71
- <option name="INDENT_SIZE" value="2" />
72
- <option name="CONTINUATION_INDENT_SIZE" value="2" />
73
- <option name="TAB_SIZE" value="2" />
74
- </indentOptions>
75
- </codeStyleSettings>
76
- <codeStyleSettings language="kotlin">
77
- <option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" />
78
- </codeStyleSettings>
79
- </code_scheme>
80
- </component>
@@ -1,5 +0,0 @@
1
- <component name="ProjectCodeStyleConfiguration">
2
- <state>
3
- <option name="USE_PER_PROJECT_SETTINGS" value="true" />
4
- </state>
5
- </component>
@@ -1,12 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="WEB_MODULE" version="4">
3
- <component name="NewModuleRootManager">
4
- <content url="file://$MODULE_DIR$">
5
- <excludeFolder url="file://$MODULE_DIR$/.tmp" />
6
- <excludeFolder url="file://$MODULE_DIR$/temp" />
7
- <excludeFolder url="file://$MODULE_DIR$/tmp" />
8
- </content>
9
- <orderEntry type="inheritedJdk" />
10
- <orderEntry type="sourceFolder" forTests="false" />
11
- </component>
12
- </module>
package/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/iglooformv3.iml" filepath="$PROJECT_DIR$/.idea/iglooformv3.iml" />
6
- </modules>
7
- </component>
8
- </project>
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="PrettierConfiguration">
4
- <option name="myConfigurationMode" value="AUTOMATIC" />
5
- </component>
6
- </project>
package/.idea/vcs.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="" vcs="Git" />
5
- </component>
6
- </project>
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- export interface CurrencyMethod {
3
- exchange: (value: any) => any;
4
- exchangeBack: (value: any) => any;
5
- currentCurrency: string;
6
- }
7
- declare const _default: import("react").Context<CurrencyMethod>;
8
- export default _default;
@@ -1,30 +0,0 @@
1
- import { FC, CSSProperties } from 'react';
2
- import './style';
3
- type Download = false | {
4
- actionType?: 'downloadBlob' | 'openUrl';
5
- };
6
- type GetNonCORSUrl = (originUrl: string) => Promise<string> | string;
7
- interface Props {
8
- src: string | {
9
- origin: string;
10
- nonCORS: string;
11
- };
12
- name?: string;
13
- type?: string;
14
- index?: number;
15
- list?: Array<{
16
- type: string;
17
- src: string;
18
- nonCORSSrc?: string;
19
- }>;
20
- docNames?: string[];
21
- className?: any;
22
- style?: CSSProperties;
23
- showAllPages?: boolean;
24
- destroyOnClose?: boolean;
25
- download?: Download;
26
- getNonCORSUrl?: GetNonCORSUrl;
27
- loading?: boolean;
28
- }
29
- declare const MediaWithPreview: FC<Props>;
30
- export default MediaWithPreview;
@@ -1,14 +0,0 @@
1
- import { FC, CSSProperties } from 'react';
2
- declare const Loading: () => import("react/jsx-runtime").JSX.Element;
3
- interface MediaProps {
4
- src: string;
5
- type: string;
6
- onClick: any;
7
- className?: any;
8
- style?: CSSProperties;
9
- name?: string;
10
- }
11
- declare const Media: FC<MediaProps> & {
12
- Loading: typeof Loading;
13
- };
14
- export default Media;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- export interface CurrencyMethod {
3
- exchange: (value: any) => any;
4
- exchangeBack: (value: any) => any;
5
- currentCurrency: string;
6
- }
7
- declare const _default: import("react").Context<CurrencyMethod>;
8
- export default _default;
@@ -1,30 +0,0 @@
1
- import { FC, CSSProperties } from 'react';
2
- import './style';
3
- type Download = false | {
4
- actionType?: 'downloadBlob' | 'openUrl';
5
- };
6
- type GetNonCORSUrl = (originUrl: string) => Promise<string> | string;
7
- interface Props {
8
- src: string | {
9
- origin: string;
10
- nonCORS: string;
11
- };
12
- name?: string;
13
- type?: string;
14
- index?: number;
15
- list?: Array<{
16
- type: string;
17
- src: string;
18
- nonCORSSrc?: string;
19
- }>;
20
- docNames?: string[];
21
- className?: any;
22
- style?: CSSProperties;
23
- showAllPages?: boolean;
24
- destroyOnClose?: boolean;
25
- download?: Download;
26
- getNonCORSUrl?: GetNonCORSUrl;
27
- loading?: boolean;
28
- }
29
- declare const MediaWithPreview: FC<Props>;
30
- export default MediaWithPreview;
@@ -1,14 +0,0 @@
1
- import { FC, CSSProperties } from 'react';
2
- declare const Loading: () => import("react/jsx-runtime").JSX.Element;
3
- interface MediaProps {
4
- src: string;
5
- type: string;
6
- onClick: any;
7
- className?: any;
8
- style?: CSSProperties;
9
- name?: string;
10
- }
11
- declare const Media: FC<MediaProps> & {
12
- Loading: typeof Loading;
13
- };
14
- export default Media;