Skip to content

Commit 2ae28d5

Browse files
committed
[REF]: Update changelog and package.json due to evolution to files-ui
1 parent 60b753b commit 2ae28d5

File tree

2 files changed

+68
-15
lines changed

2 files changed

+68
-15
lines changed

CHANGELOG.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,50 @@
99

1010
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
1111

12+
## [Dropzone-ui(7.0.0) = Files-ui(1.0.0)](https://github.com/files-ui/files-ui-react/releases/tag/v1.0.0) (2023-03-28)
13+
14+
## 🧪 New features and 🐛🔨 Improvements
15+
16+
- [\<FileMosaic/\>](https://www.files-ui.com/components/filemosaic): This new component replaces the old "FileItem" component.
17+
18+
- Darkmode: Now component can be adpted to a dark mode pages with the respective prop.
19+
- New icons: Icons for delete were changed.
20+
- For uploading, the loader can support to display the current progress.
21+
22+
- [\<FileCard/\>](https://www.files-ui.com/components/filecard): This new component is an alternative version of FileMosaic. It displays the file info in a card. Receives the same props as FileMosaic plus `elevation`.
23+
24+
- [\<FileInputButton/\>](https://www.files-ui.com/components/dropzone): This component replaces the old "InputButton" component. The features are the same as the dropzone except the header and footer related features. That means that this component now can trigger the upload progress.
25+
Validation is optional, so non valid files can be uploaded.
26+
27+
- [\<Avatar/\>](https://www.files-ui.com/components/avatar): This new component is designed tohandle the selection of images for changing the avatar. Can recieve as source an string url or even a File.
28+
29+
- [\<FullScreen/\>](https://www.files-ui.com/api/fullscreen): The old components "FullScreenImage" and "FullScreenVideo" have been separated into FUllScreen, ImagePreview and VideoPreview.
30+
31+
- FullScreen: component for display in a fullscreen backdrop other components.
32+
- [ImagePreview](https://www.files-ui.com/api/imagepreview): component is an \<img/\> tag enhanced to allow as `src` a string url or a ile object.
33+
- [VideoPreview](https://www.files-ui.com/api/videopreview): component is an \<video/\> tag enhanced to allow as `src` a string url or a ile object.
34+
35+
- [\<Dropzone/\>](https://www.files-ui.com/components/dropzone): This component has been refactored to improve the design, colors and internal components such us headeror footer.
36+
37+
- Header and footer can be handled through 2 new props: `headerConfig` and `footerConfig`
38+
- Action buttons: these are external buttons thta can trigger the default operations in dropzone.
39+
- Uploading: The upload operation now is completele handled using pure javascript without external libraries wich means `axios` is no longer a dependency.
40+
41+
- `smartImgFit`: This is a special prop for FileMosaic, FileCard and Avatar components that makes someway "smart" the components to fit the images depeding on their orientation ("landscape" or protrait). Square images are hardly afected.
42+
43+
- How it works?
44+
45+
- If false, image width will be set to 100%.
46+
If present, image will be analized and displayed according to its heigh and width. Image with height greater than its width has a "portrait" orientation. Otherwise it has a "landscape" orientation. .
47+
48+
- If value is "orientation", image will be displayed complete by giving 100% to width prop if the orientation is "landscape". When orientation is "portrait", height prop will be set to 100%. Some images will show an empty space.
49+
50+
- If value is "center", image will be centered and will not be displayed complete. This the empty space is avoided. This is achived by giving 100% to width prop if the orientation is "portrait". When orientation is "landscape", height prop will be set to 100%.
51+
52+
## 📚 Improved documentation.
53+
54+
- The complete documentation can be found in files-ui [web page](https://www.files-ui.com).
55+
1256
<a name="6.4.0"></a>
1357

1458
## [6.4.0](https://github.com/dropzone-ui/react-dropzone/releases/tag/v6.4.0) (2021-12-12)

README.md

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@
1515
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
1616
[![GitHub Repo stars](https://img.shields.io/github/stars/dropzone-ui/react?label=Star%20me%20please%20:D&style=social)](https://github.com/dropzone-ui/react)
1717

18-
19-
2018
Thank you so much for using dropzone-ui/react ❤️ !
21-
Dropzone UI has grown very fast and has exceeded its original scope. That's why we find reasonable to rebrand it and create a new package taking the best of this one and adding more features and new components. This new package is here and its name is Files UI ⚡
19+
20+
Dropzone UI has grown very fast and has exceeded its original scope. That's why we find reasonable to rebrand it and create a new package taking the best of this one and adding more features and new components. This new package is here and its name is Files UI ⚡.
2221
In an very near future we'll stop giving support to dropzone-ui, so we enforce you to upgrade to this new package. In the meanwhile this package will become a wrapper for files-ui.
2322

2423
:zap: Live demos and full documentation : [files-ui.com](https://files-ui.vercel.app)
@@ -33,11 +32,12 @@ In an very near future we'll stop giving support to dropzone-ui, so we enforce y
3332

3433
## Important
3534

36-
From now on [@files-ui/react](https://www.npmjs.com/package/@files-ui/react) is the only dependency. Check out the changelog file to know what's new.
35+
From now on [@files-ui/react](https://www.npmjs.com/package/@files-ui/react) is the only dependency. Check out the changelog file to know what's new.
3736

3837
## Sample result:
3938

4039
This is a small part of what you can find on files-ui :eyes:
40+
4141
<p align="center">
4242
<a href="https://www.files-ui.com">
4343
<img src="https://user-images.githubusercontent.com/43678736/228052494-99d970c0-1eb7-42c6-b22c-8c2295b8dc4a.gif" width="80%" alt="fui-logo"/>
@@ -46,7 +46,6 @@ This is a small part of what you can find on files-ui :eyes:
4646

4747
- More previews [here](#more-previews).
4848

49-
5049
## Requirement
5150

5251
`@dropzone-ui/react` is based on [React Hooks](https://reactjs.org/docs/hooks-intro.html). It requires `react v16.8+`.
@@ -66,7 +65,13 @@ yarn add @dropzone-ui/react
6665
```
6766

6867
## API documentation
69-
The complete documentation of every component has been moved to files-ui.com [API page](https://www.files-ui.com/api/dropzone). However if you are still using dropzone-ui version 6 or less you can find the documentation [here](https://www.npmjs.com/package/@dropzone-ui/react/v/6.7.20#dropzone-ui-react-components-api).
68+
69+
The complete documentation of every component has been moved to files-ui.com [API page](https://www.files-ui.com/api/dropzone).
70+
71+
However if you are still using dropzone-ui version 6.7.0 or lower, you can find the documentation and demos here:
72+
73+
-[Samples](https://www.npmjs.com/package/@dropzone-ui/react/v/6.7.20?activeTab=readme#Usage-and-examples)
74+
- 📚 [Docs](https://www.npmjs.com/package/@dropzone-ui/react/v/6.7.20#dropzone-ui-react-components-api).
7075

7176
## Supporters
7277

@@ -82,24 +87,28 @@ Special thanks to these amazing people :star: :
8287

8388
## More Previews
8489

85-
### Image full screen preview
86-
87-
<p align="center"><img src="https://user-images.githubusercontent.com/43678736/228066199-fb7a5bd3-9c7e-4f72-b0ef-7f11d236d38e.png" alt="Image full screen preview" width="100%"/></p>
88-
89-
### Video full screen preview
90+
<details>
91+
<summary>Image full screen preview 🖼️ </summary>
92+
<p align="center"><img src="https://user-images.githubusercontent.com/43678736/228066199-fb7a5bd3-9c7e-4f72-b0ef-7f11d236d38e.png" alt="Image full screen preview" width="100%"/></p>
9093

94+
</details>
95+
<details>
96+
<summary>Video full screen preview 🎞️ </summary>
9197
<p align="center"><img src="https://user-images.githubusercontent.com/43678736/228066195-62063300-21e0-48fd-80d8-31b566562fde.png" alt="Video full screen preview" width="100%"/></p>
98+
</details>
9299

93-
### File Mosaic, FileInputButotn and Avatar preview
94-
100+
<details>
101+
<summary>FileCard, FileInputButton and Avatar preview 🎴 </summary>
95102
<p align="center"><img src="https://user-images.githubusercontent.com/43678736/228063876-5b6d00fe-f0ba-453f-a7ce-c44ba7444417.png" alt="Video full screen preview" width="100%"/></p>
96103

97-
### DarkMode
104+
</details>
98105

106+
<details>
107+
<summary>DarkMode 🌙 🌞 </summary>
99108
<p align="center"><img src="https://user-images.githubusercontent.com/43678736/228063883-569ca6f1-6959-45bc-9882-2c447162a00f.png" alt="darkmode 1 preview" width="100%"/></p>
100109

101110
<p align="center"><img src="https://user-images.githubusercontent.com/43678736/228066720-e0bb96ac-3c00-4aa6-80b9-e0b4d0c5f947.png" alt="darkmode 2 preview" width="100%"/></p>
102-
111+
</details>
103112

104113
## License
105114

0 commit comments

Comments
 (0)