Skip to content

Commit

Permalink
Chore: Release a new version 3.12.9🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmeeedMostafa committed Dec 23, 2020
1 parent d9981f2 commit 821265d
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 18 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ Types of changes:
- ...

-------------
## 3.12.9 - 2020-12-23
### Fixed
- Watermark's text font selection is now updated with the chosen text font.

### Added
- support custom theme's colors for more elements.

## 3.12.8 - 2020-12-17
### Fixed
- showing the appropriate styles for the plugin while being showing inside page not as modal.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
> Repository includes React version and Vanilla JS adapter for standalone usage
[![Release](https://img.shields.io/badge/release-v3.12.8-blue.svg)](https://github.com/scaleflex/filerobot-image-editor/releases)
[![Release](https://img.shields.io/badge/release-v3.12.9-blue.svg)](https://github.com/scaleflex/filerobot-image-editor/releases)
[![Contributions welcome](https://img.shields.io/badge/contributions-welcome-orange.svg)](#contributing)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![Scaleflex team](https://img.shields.io/badge/%3C%2F%3E%20with%20%E2%99%A5%20by-the%20Scaleflex%20team-6986fa.svg)](https://www.scaleflex.it/en/home)
Expand Down Expand Up @@ -140,7 +140,7 @@ or use your custom color scheme
Use the latest CDNized plugin version:

```html
<script src="https://cdn.scaleflex.it/plugins/filerobot-image-editor/3.12.8/filerobot-image-editor.min.js"></script>
<script src="https://cdn.scaleflex.it/plugins/filerobot-image-editor/3.12.9/filerobot-image-editor.min.js"></script>
```

### <a name="quick_start"></a>Quick start
Expand Down

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions build/3/filerobot-image-editor.min.js

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions examples/js/src/filerobot-init-example.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ let ImageEditorDownload, ImageEditorUpload, ImageEditorModify;

// Image Editor to download images

const customColorScheme = {
const customThemeColors = {
primaryBg: '#ffffff',
primaryBgHover: '#f2f2f2',
secondaryBg: '#F8FAFB',
Expand All @@ -38,7 +38,7 @@ const customColorScheme = {
ImageEditorDownload = new FilerobotImageEditor({
elementId: 'image-editor-download',
isLowQualityPreview: true,
colorScheme: customColorScheme, // 'light', 'dark' or object like above customColorScheme variable
colorScheme: 'dark',
reduceBeforeEdit: {
mode: 'manual',
widthLimit: 2000,
Expand Down Expand Up @@ -71,6 +71,7 @@ ImageEditorDownload = new FilerobotImageEditor({
defaultText: 'Filerobot.....'
},
theme: {
// colors: customThemeColors,
fonts: [
{ label: 'Arial', value: 'Arial' },
{ label: 'Tahoma', value: 'Tahoma' },
Expand Down
2 changes: 1 addition & 1 deletion examples/js/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ <h2>Ready to get started?</h2>
Include the following script into your project
</p>
<figure class="highlight">
<pre><code class="javascript">&lt;script src="https://cdn.scaleflex.it/plugins/filerobot-image-editor/3.12.8/filerobot-image-editor.min.js"/&gt;&lt;/script&gt;</code></pre>
<pre><code class="javascript">&lt;script src="https://cdn.scaleflex.it/plugins/filerobot-image-editor/3.12.9/filerobot-image-editor.min.js"/&gt;&lt;/script&gt;</code></pre>
</figure>
</div>

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "filerobot-image-editor",
"version": "3.12.8",
"version": "3.12.9",
"main": "dist/index.js",
"description": "Edit, resize, and filter any image!",
"author": "scaleflex",
Expand Down
2 changes: 1 addition & 1 deletion projects/react/components/CustomizedCanvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default class CustomizedCanvas extends Component {
this._context = this._canvas.getContext('2d');

const border = `1px solid ${
this.props.colorScheme?.text || (this.props.colorScheme === 'light' ? '#000' : '#fff')
this.props.theme?.colors?.text || (this.props.colorScheme === 'light' ? '#000' : '#fff')
}`;
const availableShapes = [
{
Expand Down
3 changes: 2 additions & 1 deletion projects/react/components/Preview/Preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default class extends Component {
render() {
const {
activeTab, isHideCanvas, watermark = {}, focusPoint, original, updateState, src, shapes,
selectedShape, config: { colorScheme, elementId: editorWrapperId, processWithCloudimage }, roundCrop,
selectedShape, config: { colorScheme, elementId: editorWrapperId, processWithCloudimage, theme }, roundCrop,
latestCanvasSize
} = this.props;

Expand All @@ -35,6 +35,7 @@ export default class extends Component {
round={roundCrop}
latestCanvasSize={latestCanvasSize}
colorScheme={colorScheme}
theme={theme}
wrapperId={editorWrapperId}
processWithCloudimage={processWithCloudimage}
/>}
Expand Down
1 change: 1 addition & 0 deletions projects/react/components/Shared/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ const getItemStyles = size => {
const ItemName = styled.span`
display: inline-block;
vertical-align: middle;
white-space: break-spaces;
`;

const ItemIcon = styled.span`
Expand Down
7 changes: 5 additions & 2 deletions projects/react/styledComponents/Crop.ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const FieldInput = styled.input.attrs(props => ({
font-size: 12px;
line-height: 30px;
color: ${p => p.theme.colors.text};
background: ${props => props.dark ? props.theme.colors.primaryBg : props.theme.colors.secondaryBg};
background: ${props => props.theme.colors.primaryBg};
border-radius: 2px;
transition: border-color 0.15s ease-in-out;
vertical-align: middle;
Expand Down Expand Up @@ -86,13 +86,16 @@ const FileInput = styled('input').attrs(props => ({
font-size: 12px;
line-height: 1;
color: ${p => p.theme.colors.text};
background: ${props => props.dark ? props.theme.colors.primaryBg : props.theme.colors.secondaryBg};
background: ${props => props.theme.colors.primaryBg};
border-radius: 2px;
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
vertical-align: middle;
border: 0px solid transparent;
font-family: Roboto, sans-serif;
border: 1px solid ${props => props.theme.colors.border};
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
&:hover {
outline: none;
Expand Down

0 comments on commit 821265d

Please sign in to comment.