Skip to content

Commit

Permalink
Build and publish v5.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
johndatserakis committed Jul 14, 2022
1 parent 9795efb commit 5df639f
Show file tree
Hide file tree
Showing 22 changed files with 60 additions and 54 deletions.
10 changes: 6 additions & 4 deletions dist/file-upload-with-preview.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -960,14 +960,16 @@ var FileUploadWithPreview = /*#__PURE__*/function () {
this.uploadId = uploadId;
this.cachedFileArray = []; // Base options

var maxFileCount = options.maxFileCount,
var accept = options.accept,
maxFileCount = options.maxFileCount,
multiple = options.multiple,
presetFiles = options.presetFiles,
showDeleteButtonOnImages = options.showDeleteButtonOnImages;
this.options.showDeleteButtonOnImages = showDeleteButtonOnImages !== null && showDeleteButtonOnImages !== void 0 ? showDeleteButtonOnImages : true;
this.options.maxFileCount = maxFileCount !== null && maxFileCount !== void 0 ? maxFileCount : 0;
this.options.presetFiles = presetFiles !== null && presetFiles !== void 0 ? presetFiles : [];
this.options.multiple = multiple !== null && multiple !== void 0 ? multiple : false; // Text options
this.options.multiple = multiple !== null && multiple !== void 0 ? multiple : false;
this.options.accept = accept !== null && accept !== void 0 ? accept : this.options.accept; // Text options

var _ref = options.text || {},
browse = _ref.browse,
Expand Down Expand Up @@ -1227,7 +1229,7 @@ var FileUploadWithPreview = /*#__PURE__*/function () {
if (!_this4.options.multiple) {
var image = _this4.options.images.successFileAltImage;

if (file.type.match('image/png') || file.type.match('image/jpeg') || file.type.match('image/gif')) {
if (file.type.match('image/png') || file.type.match('image/jpeg') || file.type.match('image/webp') || file.type.match('image/gif')) {
image = "url(\"".concat(reader.result, "\")");
} else if (file.type.match('application/pdf')) {
image = "url(\"".concat(_this4.options.images.successPdfImage, "\")");
Expand All @@ -1247,7 +1249,7 @@ var FileUploadWithPreview = /*#__PURE__*/function () {

var backgroundImage = _this4.options.images.successFileAltImage;

if (file.type.match('image/png') || file.type.match('image/jpeg') || file.type.match('image/gif')) {
if (file.type.match('image/png') || file.type.match('image/jpeg') || file.type.match('image/webp') || file.type.match('image/gif')) {
backgroundImage = reader.result;
} else if (file.type.match('application/pdf')) {
backgroundImage = _this4.options.images.successPdfImage;
Expand Down
10 changes: 6 additions & 4 deletions dist/file-upload-with-preview.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -956,14 +956,16 @@ var FileUploadWithPreview = /*#__PURE__*/function () {
this.uploadId = uploadId;
this.cachedFileArray = []; // Base options

var maxFileCount = options.maxFileCount,
var accept = options.accept,
maxFileCount = options.maxFileCount,
multiple = options.multiple,
presetFiles = options.presetFiles,
showDeleteButtonOnImages = options.showDeleteButtonOnImages;
this.options.showDeleteButtonOnImages = showDeleteButtonOnImages !== null && showDeleteButtonOnImages !== void 0 ? showDeleteButtonOnImages : true;
this.options.maxFileCount = maxFileCount !== null && maxFileCount !== void 0 ? maxFileCount : 0;
this.options.presetFiles = presetFiles !== null && presetFiles !== void 0 ? presetFiles : [];
this.options.multiple = multiple !== null && multiple !== void 0 ? multiple : false; // Text options
this.options.multiple = multiple !== null && multiple !== void 0 ? multiple : false;
this.options.accept = accept !== null && accept !== void 0 ? accept : this.options.accept; // Text options

var _ref = options.text || {},
browse = _ref.browse,
Expand Down Expand Up @@ -1223,7 +1225,7 @@ var FileUploadWithPreview = /*#__PURE__*/function () {
if (!_this4.options.multiple) {
var image = _this4.options.images.successFileAltImage;

if (file.type.match('image/png') || file.type.match('image/jpeg') || file.type.match('image/gif')) {
if (file.type.match('image/png') || file.type.match('image/jpeg') || file.type.match('image/webp') || file.type.match('image/gif')) {
image = "url(\"".concat(reader.result, "\")");
} else if (file.type.match('application/pdf')) {
image = "url(\"".concat(_this4.options.images.successPdfImage, "\")");
Expand All @@ -1243,7 +1245,7 @@ var FileUploadWithPreview = /*#__PURE__*/function () {

var backgroundImage = _this4.options.images.successFileAltImage;

if (file.type.match('image/png') || file.type.match('image/jpeg') || file.type.match('image/gif')) {
if (file.type.match('image/png') || file.type.match('image/jpeg') || file.type.match('image/webp') || file.type.match('image/gif')) {
backgroundImage = reader.result;
} else if (file.type.match('application/pdf')) {
backgroundImage = _this4.options.images.successPdfImage;
Expand Down
10 changes: 6 additions & 4 deletions dist/file-upload-with-preview.iife.js
Original file line number Diff line number Diff line change
Expand Up @@ -959,14 +959,16 @@ var FileUploadWithPreview = (function (exports) {
this.uploadId = uploadId;
this.cachedFileArray = []; // Base options

var maxFileCount = options.maxFileCount,
var accept = options.accept,
maxFileCount = options.maxFileCount,
multiple = options.multiple,
presetFiles = options.presetFiles,
showDeleteButtonOnImages = options.showDeleteButtonOnImages;
this.options.showDeleteButtonOnImages = showDeleteButtonOnImages !== null && showDeleteButtonOnImages !== void 0 ? showDeleteButtonOnImages : true;
this.options.maxFileCount = maxFileCount !== null && maxFileCount !== void 0 ? maxFileCount : 0;
this.options.presetFiles = presetFiles !== null && presetFiles !== void 0 ? presetFiles : [];
this.options.multiple = multiple !== null && multiple !== void 0 ? multiple : false; // Text options
this.options.multiple = multiple !== null && multiple !== void 0 ? multiple : false;
this.options.accept = accept !== null && accept !== void 0 ? accept : this.options.accept; // Text options

var _ref = options.text || {},
browse = _ref.browse,
Expand Down Expand Up @@ -1226,7 +1228,7 @@ var FileUploadWithPreview = (function (exports) {
if (!_this4.options.multiple) {
var image = _this4.options.images.successFileAltImage;

if (file.type.match('image/png') || file.type.match('image/jpeg') || file.type.match('image/gif')) {
if (file.type.match('image/png') || file.type.match('image/jpeg') || file.type.match('image/webp') || file.type.match('image/gif')) {
image = "url(\"".concat(reader.result, "\")");
} else if (file.type.match('application/pdf')) {
image = "url(\"".concat(_this4.options.images.successPdfImage, "\")");
Expand All @@ -1246,7 +1248,7 @@ var FileUploadWithPreview = (function (exports) {

var backgroundImage = _this4.options.images.successFileAltImage;

if (file.type.match('image/png') || file.type.match('image/jpeg') || file.type.match('image/gif')) {
if (file.type.match('image/png') || file.type.match('image/jpeg') || file.type.match('image/webp') || file.type.match('image/gif')) {
backgroundImage = reader.result;
} else if (file.type.match('application/pdf')) {
backgroundImage = _this4.options.images.successPdfImage;
Expand Down
2 changes: 1 addition & 1 deletion dist/types/src/file-upload-with-preview.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<link rel="shortcut icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAACa0lEQVRYhcWXv2tUQRDHPx5HkCDHcRxHSCFXpLAIKdMGRNAmh0VsxMJKDpGUIf9BsLpCgohYWImkEDmChVhZWIQgFpJCUkmKI0TUcASRcBY7683b7O7blxfNwBfuePPjuzOzu7NwznKhhG0NqMvv78DP8nTi0gS6wCawD4wc7Mu3ruieaeAeMPQEDWEoNqWIVIAOMFCOjxWRl8BhDpGB+KichsCqBLSBXwHPgftAH3gIXAU2gHsREsfiK1kqYmAd7ALz8q2q9CYwTfgEOIgQsFglMRMdtfJtoBXQqwN7DtGbmEYMZaKTF7zJuOa7keAAU8AXRXYHkxW7W9Y9JAbkNGZPKV/LY4tJ6SymN94IASstTHlcEr2QsybZrdYHLiWQAGgAt9X/i0Abswi3P4YEstD1sH2USEBLHbiBKY0tj4uuVdZduehxtnUKAlVgweNfiy+W93hdKhh8Gnjr8eM7tjNSCyhuRFbhShWzE1KP65o2bkcUVxJJXAGOChBopxIYAcvApBPQ7vk54DLwq0Dwkdj8lVAJLLYwnWszMQl8Vit+DHwqSCBTAvA3ocYecEd0W863I/JvxmgTQvgM1ziQLNQk6A5pXe9i0wbVzdX3sXKkAbzA1P46cIuTvZEi3ljuURzDb+AHcBfTTE8T7UZEjmLIXkapeMf40nmN2TEfgK8B/eBlZLMw8BjlYRt4hilHRTCBuUu0Xu51DNmBpAg+eny1GJ+OSQMJnBzJUvHA8TOPGWrs9+SRzIoeSlMwI3YzmJ7QA22hodSKbyyPYQ1475AuNZZbObeHiY/ImT/Nyj5OG/L7G//hcfpP5A/nOazXYxLs5QAAAABJRU5ErkJggg==" />
<meta name="robots" content="index,follow" />
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700" rel="stylesheet" />
<script type="module" crossorigin src="/file-upload-with-preview/assets/index.10fe3f2e.js"></script>
<script type="module" crossorigin src="/file-upload-with-preview/assets/index.5c7ab953.js"></script>
<link rel="stylesheet" href="/file-upload-with-preview/assets/index.76576745.css">
</head>

Expand Down
Loading

0 comments on commit 5df639f

Please sign in to comment.