Skip to content

Commit 5d67e0d

Browse files
authored
Feature/preload client (#54)
* feat: Implement preload of client and picker
1 parent 85f406f commit 5d67e0d

File tree

9 files changed

+164
-77
lines changed

9 files changed

+164
-77
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## 2.0.1 (February 25, 2019)
2+
3+
### updates
4+
- Updated most of the dependencies to the newest version including filestack-js lib.
5+
6+
### others
7+
- Update readme, add new demo
8+
9+
110
## 2.0.0 (June 6, 2018)
211

312
Updated to support filestack-js 1.0 and React 16.0 as peer dependencies.

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ You should register on the [Filestack](https://www.filestack.com) website and ge
4747
buttonClass="classname"
4848
options={options}
4949
onSuccess={this.yourCallbackFunction}
50+
preload={true}
5051
/>
5152
```
5253

@@ -57,6 +58,7 @@ You should register on the [Filestack](https://www.filestack.com) website and ge
5758
options={options}
5859
onSuccess={onSuccess}
5960
onError={onError}
61+
preload={true}
6062
render={({ onPick }) => (
6163
<div>
6264
<strong>Find an avatar</strong>
@@ -73,6 +75,7 @@ You should register on the [Filestack](https://www.filestack.com) website and ge
7375
mode="upload"
7476
options={options}
7577
onSuccess={onSuccess}
78+
preload={true}
7679
/>
7780
```
7881

@@ -144,6 +147,9 @@ Please also see the [Official JavaScript API reference](https://filestack.github
144147
> ### mode
145148
> **optional**, string. **default** 'pick'. Can be one of pick, upload, transform, retrieve, metadata, remove.
146149
150+
> ### preload
151+
> **optional**, boolean. default false. If set on true the component will prepare all necessary assets like scripts and styles when a constructor will be called. Otherwise all assets are downloaded during onClick event.
152+
147153
> ### file
148154
> **optional** object. use it to insert a file object in upload mode.
149155

dist/filestack-react.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)