Skip to content

Commit

Permalink
v5.18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alanuecker committed Jul 3, 2023
1 parent ee95b81 commit 58fb453
Show file tree
Hide file tree
Showing 21 changed files with 6,196 additions and 5,422 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,21 @@

### Fixed

## 5.18.0

### Changed

### Added

- Added an `identifier` value to each slider component for easier access in a custom component
- Added the `displayDiscardChangesWarning` option to the config for disabling the discard changes warning

### Fixed

- Fixed the missing unsaved changes dialog if the editor was closed in the transform tool
- Fixed a text overflow issue in Transform input fields
- Fixed an issue where large stickers were not rendered correctly

## 5.17.5

### Changed
Expand Down
1,132 changes: 640 additions & 492 deletions cjs/index.js

Large diffs are not rendered by default.

2,048 changes: 1,098 additions & 950 deletions cjs/no-polyfills.js

Large diffs are not rendered by default.

91 changes: 91 additions & 0 deletions esm/basic-2GQZUPAW.js

Large diffs are not rendered by default.

49 changes: 0 additions & 49 deletions esm/basic-YYGMLRI5.js

This file was deleted.

14 changes: 7 additions & 7 deletions esm/chunk-2FC7YEBB.js → esm/chunk-26X3PXJM.js

Large diffs are not rendered by default.

311 changes: 0 additions & 311 deletions esm/chunk-GRNSA3Q2.js

This file was deleted.

2,270 changes: 2,270 additions & 0 deletions esm/chunk-TY26UOQT.js

Large diffs are not rendered by default.

311 changes: 311 additions & 0 deletions esm/chunk-YOZB2B36.js

Large diffs are not rendered by default.

2,164 changes: 0 additions & 2,164 deletions esm/chunk-YXQOHBFD.js

This file was deleted.

2 changes: 1 addition & 1 deletion esm/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion esm/no-polyfills.js

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 legacy/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "photoeditorsdk",
"version": "5.17.5",
"version": "5.18.0",
"description": "The most comprehensive photo editor SDK for HTML5",
"main": "index.js",
"module": "index.esm.js",
Expand Down
11 changes: 11 additions & 0 deletions types/components/base/slider/identifier.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export declare enum SliderIdentifier {
BrushSize = "brush-size",
BrushHardness = "brush-hardness",
FilterIntensity = "filter-intensity",
TextLineSpacing = "text-line-spacing",
StickerOpacity = "sticker-opacity",
OverlayOpacity = "overlay-opacity",
FrameSize = "frame-size",
FrameOpacity = "frame-opacity",
FocusIntensity = "focus-intensity"
}
4 changes: 3 additions & 1 deletion types/components/base/slider/slider.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
/// <reference types="react" />
import { Tool } from '../../../common/tool';
import { AdjustmentIdentifier } from '../../../tools/adjustment/identifier';
import { SliderIdentifier } from './identifier';
export interface CustomSliderProps {
tool: Tool;
identifier?: string;
identifier: SliderIdentifier | AdjustmentIdentifier | string;
label: string;
value?: number;
min?: number;
Expand Down
7 changes: 6 additions & 1 deletion types/configuration/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,13 @@ export declare class Configuration {
mainCanvasActions?: Array<CanvasAction.UNDO | CanvasAction.REDO | CanvasAction.CLOSE | CanvasAction.EXPORT | undefined>;
/** Should a message be displayed when the image has been scaled down for performance reasons */
displayResizeWarning?: boolean;
/** Should a message be displayed when when Photoeditor SDK is exited with close event */
/** Should a message be displayed when Photoeditor SDK is exited with close event */
displayCloseWarning?: boolean;
/** Should a message be displayed when a new image is loaded and changes where made to the image.
* If this is set to false changes will not be discarded and instead applied to the new image.
* The `reset` function can be used to discard changes after loading a new image.
*/
displayDiscardChangesWarning?: boolean;
/** Should a message be displayed if the unsupported canvas renderer is used */
displayCanvasRendererWarning?: boolean;
/** Should the toolcontrolbartitle be displayed (advancedui only) */
Expand Down
1 change: 1 addition & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ export * from './components/base/dropdown/dropdown';
export * from './components/base/windowContainer';
export * from './components/base/slider/slider';
export * from './components/base/slider/sliderComponents';
export * from './components/base/slider/identifier';
export * from './components/base/checkbox/checkbox';
export * from './components/base/checkbox/checkboxComponents';
export * from './components/base/label';
Expand Down
1,132 changes: 640 additions & 492 deletions umd/index.js

Large diffs are not rendered by default.

2,048 changes: 1,098 additions & 950 deletions umd/no-polyfills.js

Large diffs are not rendered by default.

0 comments on commit 58fb453

Please sign in to comment.