@rpldy/upload-preview
Advanced tools
Comparing version 0.2.4 to 0.3.0
@@ -12,2 +12,8 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "PREVIEW_TYPES", { | ||
enumerable: true, | ||
get: function get() { | ||
return _consts.PREVIEW_TYPES; | ||
} | ||
}); | ||
exports["default"] = void 0; | ||
@@ -17,2 +23,4 @@ | ||
var _consts = require("./consts"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
@@ -19,0 +27,0 @@ |
@@ -15,2 +15,3 @@ // @flow | ||
type: PreviewType, | ||
isFallback: boolean, | ||
props: Object, | ||
@@ -17,0 +18,0 @@ }; |
@@ -48,3 +48,5 @@ "use strict"; | ||
var loadPreviewData = function loadPreviewData(item, options, previewComponentProps) { | ||
var data, props; | ||
var data, | ||
props, | ||
isFallback = false; | ||
@@ -57,2 +59,3 @@ if (item.file) { | ||
data = (0, _utils.getFallbackUrl)(options.fallbackUrl, file); | ||
isFallback = true; | ||
} | ||
@@ -73,2 +76,3 @@ } else { | ||
id: item.id, | ||
isFallback: isFallback, | ||
props: props | ||
@@ -75,0 +79,0 @@ }); |
{ | ||
"version": "0.2.4", | ||
"version": "0.3.0", | ||
"name": "@rpldy/upload-preview", | ||
@@ -20,10 +20,11 @@ "description": "preview component to show image or video being uploaded", | ||
"dependencies": { | ||
"@rpldy/shared": "^0.2.4", | ||
"@rpldy/shared-ui": "^0.2.4" | ||
"@rpldy/shared": "^0.3.0", | ||
"@rpldy/shared-ui": "^0.3.0" | ||
}, | ||
"devDependencies": { | ||
"@rpldy/upload-button": "^0.2.4", | ||
"@rpldy/upload-url-input": "^0.2.4", | ||
"@rpldy/upload-button": "^0.3.0", | ||
"@rpldy/upload-url-input": "^0.3.0", | ||
"@storybook/addon-knobs": "^5.3.19", | ||
"flow-bin": "^0.126.1", | ||
"react-image-crop": "^8.6.4", | ||
"styled-components": "^5.1.1" | ||
@@ -38,3 +39,3 @@ }, | ||
}, | ||
"gitHead": "8c954910416ffd3c3522807b2ea5b58d94e7e208" | ||
"gitHead": "be3502009a685d56ab30894d113e5386c8af7da7" | ||
} |
@@ -14,2 +14,3 @@ import * as React from "react"; | ||
type: PreviewType; | ||
isFallback: boolean; | ||
props: Record<string, unknown>; | ||
@@ -16,0 +17,0 @@ }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36092
390
6
+ Added@rpldy/life-events@0.3.2(transitive)
+ Added@rpldy/sender@0.3.2(transitive)
+ Added@rpldy/shared@0.3.2(transitive)
+ Added@rpldy/shared-ui@0.3.2(transitive)
+ Added@rpldy/simple-state@0.3.2(transitive)
+ Added@rpldy/uploader@0.3.2(transitive)
+ Addedis-promise@4.0.0(transitive)
- Removed@rpldy/life-events@0.2.4(transitive)
- Removed@rpldy/sender@0.2.4(transitive)
- Removed@rpldy/shared@0.2.4(transitive)
- Removed@rpldy/shared-ui@0.2.4(transitive)
- Removed@rpldy/uploader@0.2.4(transitive)
- Removedis-promise@2.2.2(transitive)
Updated@rpldy/shared@^0.3.0
Updated@rpldy/shared-ui@^0.3.0