Skip to content

Commit

Permalink
Bumped version because of new release
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsboogaard-luminis committed Apr 23, 2020
1 parent 5a1262f commit e54538c
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion dist/filepond-plugin-get-file.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* FilePondPluginmediaPreview 1.0.2
* FilePondPluginmediaPreview 1.0.3
* Licensed under MIT, https://opensource.org/licenses/MIT/
* Please visit undefined for details.
*/
Expand Down
14 changes: 7 additions & 7 deletions dist/filepond-plugin-get-file.esm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* FilePondPluginGetFile 1.0.2
* FilePondPluginGetFile 1.0.3
* Licensed under MIT, https://opensource.org/licenses/MIT/
* Please visit undefined for details.
*/
Expand Down Expand Up @@ -27,7 +27,7 @@ const registerDownloadComponent = (
/**
* Generates the download icon
*/
const getDownloadIcon = labelButtonDownload => {
const getDownloadIcon = (labelButtonDownload) => {
let icon = document.createElement('span');
icon.className = 'filepond--download-icon';
icon.title = labelButtonDownload;
Expand Down Expand Up @@ -59,12 +59,12 @@ const downloadFile = (item, allowDownloadByUrl) => {
/**
* Download Plugin
*/
const plugin = fpAPI => {
const plugin = (fpAPI) => {
const { addFilter, utils } = fpAPI;
const { Type, createRoute } = utils;

// called for each view that is created right after the 'create' method
addFilter('CREATE_VIEW', viewAPI => {
addFilter('CREATE_VIEW', (viewAPI) => {
// get reference to created view
const { is, view, query } = viewAPI;

Expand Down Expand Up @@ -98,7 +98,7 @@ const plugin = fpAPI => {
view.registerWriter(
createRoute(
{
DID_LOAD_ITEM: didLoadItem
DID_LOAD_ITEM: didLoadItem,
},
({ root, props }) => {
const { id } = props;
Expand All @@ -115,8 +115,8 @@ const plugin = fpAPI => {
return {
options: {
labelButtonDownloadItem: ['Download file', Type.STRING],
allowDownloadByUrl: [false, Type.BOOLEAN]
}
allowDownloadByUrl: [false, Type.BOOLEAN],
},
};
};

Expand Down
2 changes: 1 addition & 1 deletion dist/filepond-plugin-get-file.esm.min.js

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

20 changes: 10 additions & 10 deletions dist/filepond-plugin-get-file.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
/*!
* FilePondPluginGetFile 1.0.2
* FilePondPluginGetFile 1.0.3
* Licensed under MIT, https://opensource.org/licenses/MIT/
* Please visit undefined for details.
*/

/* eslint-disable */

(function(global, factory) {
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
? (module.exports = factory())
: typeof define === 'function' && define.amd
? define(factory)
: ((global = global || self), (global.FilePondPluginGetFile = factory()));
})(this, function() {
})(this, function () {
'use strict';

/**
Expand All @@ -35,7 +35,7 @@
* Generates the download icon
*/

const getDownloadIcon = labelButtonDownload => {
const getDownloadIcon = (labelButtonDownload) => {
let icon = document.createElement('span');
icon.className = 'filepond--download-icon';
icon.title = labelButtonDownload;
Expand Down Expand Up @@ -67,11 +67,11 @@
* Download Plugin
*/

const plugin = fpAPI => {
const plugin = (fpAPI) => {
const { addFilter, utils } = fpAPI;
const { Type, createRoute } = utils; // called for each view that is created right after the 'create' method

addFilter('CREATE_VIEW', viewAPI => {
addFilter('CREATE_VIEW', (viewAPI) => {
// get reference to created view
const { is, view, query } = viewAPI; // only hook up to item view

Expand Down Expand Up @@ -102,7 +102,7 @@
view.registerWriter(
createRoute(
{
DID_LOAD_ITEM: didLoadItem
DID_LOAD_ITEM: didLoadItem,
},
({ root, props }) => {
const { id } = props;
Expand All @@ -117,8 +117,8 @@
return {
options: {
labelButtonDownloadItem: ['Download file', Type.STRING],
allowDownloadByUrl: [false, Type.BOOLEAN]
}
allowDownloadByUrl: [false, Type.BOOLEAN],
},
};
}; // fire pluginloaded event if running in browser, this allows registering the plugin when using async script tags

Expand All @@ -128,7 +128,7 @@
if (isBrowser) {
document.dispatchEvent(
new CustomEvent('FilePond:pluginloaded', {
detail: plugin
detail: plugin,
})
);
}
Expand Down
4 changes: 2 additions & 2 deletions dist/filepond-plugin-get-file.min.css

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

2 changes: 1 addition & 1 deletion dist/filepond-plugin-get-file.min.js

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

0 comments on commit e54538c

Please sign in to comment.