@douyinfe/semi-ui 2.50.0-beta.0 → 2.50.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -86,7 +86,7 @@ export default class PreviewInner extends BaseComponent<PreviewInnerProps, Previ
86
86
  handlePreviewClose: () => void;
87
87
  handleAdjustRatio: (type: RatioType) => void;
88
88
  handleRotateImage: (direction: any) => void;
89
- handleZoomImage: (newZoom: number) => void;
89
+ handleZoomImage: (newZoom: number, notify?: boolean) => void;
90
90
  handleMouseUp: (e: any) => void;
91
91
  handleMouseMove: (e: any) => void;
92
92
  handleKeyDown: (e: KeyboardEvent) => void;
@@ -124,7 +124,9 @@ class PreviewInner extends _baseComponent.default {
124
124
  });
125
125
  }
126
126
  constructor(props) {
127
+ var _this;
127
128
  super(props);
129
+ _this = this;
128
130
  this.viewVisibleChange = () => {
129
131
  this.foundation.handleViewVisibleChange();
130
132
  };
@@ -143,8 +145,9 @@ class PreviewInner extends _baseComponent.default {
143
145
  this.handleRotateImage = direction => {
144
146
  this.foundation.handleRotateImage(direction);
145
147
  };
146
- this.handleZoomImage = newZoom => {
147
- this.foundation.handleZoomImage(newZoom);
148
+ this.handleZoomImage = function (newZoom) {
149
+ let notify = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
150
+ _this.foundation.handleZoomImage(newZoom, notify);
148
151
  };
149
152
  this.handleMouseUp = e => {
150
153
  this.foundation.handleMouseUp(e.nativeEvent);
@@ -86,7 +86,7 @@ export default class PreviewInner extends BaseComponent<PreviewInnerProps, Previ
86
86
  handlePreviewClose: () => void;
87
87
  handleAdjustRatio: (type: RatioType) => void;
88
88
  handleRotateImage: (direction: any) => void;
89
- handleZoomImage: (newZoom: number) => void;
89
+ handleZoomImage: (newZoom: number, notify?: boolean) => void;
90
90
  handleMouseUp: (e: any) => void;
91
91
  handleMouseMove: (e: any) => void;
92
92
  handleKeyDown: (e: KeyboardEvent) => void;
@@ -117,7 +117,9 @@ export default class PreviewInner extends BaseComponent {
117
117
  });
118
118
  }
119
119
  constructor(props) {
120
+ var _this;
120
121
  super(props);
122
+ _this = this;
121
123
  this.viewVisibleChange = () => {
122
124
  this.foundation.handleViewVisibleChange();
123
125
  };
@@ -136,8 +138,9 @@ export default class PreviewInner extends BaseComponent {
136
138
  this.handleRotateImage = direction => {
137
139
  this.foundation.handleRotateImage(direction);
138
140
  };
139
- this.handleZoomImage = newZoom => {
140
- this.foundation.handleZoomImage(newZoom);
141
+ this.handleZoomImage = function (newZoom) {
142
+ let notify = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
143
+ _this.foundation.handleZoomImage(newZoom, notify);
141
144
  };
142
145
  this.handleMouseUp = e => {
143
146
  this.foundation.handleMouseUp(e.nativeEvent);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@douyinfe/semi-ui",
3
- "version": "2.50.0-beta.0",
3
+ "version": "2.50.0",
4
4
  "description": "A modern, comprehensive, flexible design system and UI library. Connect DesignOps & DevOps. Quickly build beautiful React apps. Maintained by Douyin-fe team.",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es/index.js",
@@ -20,12 +20,12 @@
20
20
  "@dnd-kit/core": "^6.0.8",
21
21
  "@dnd-kit/sortable": "^7.0.2",
22
22
  "@dnd-kit/utilities": "^3.2.1",
23
- "@douyinfe/semi-animation": "2.50.0-beta.0",
24
- "@douyinfe/semi-animation-react": "2.50.0-beta.0",
25
- "@douyinfe/semi-foundation": "2.50.0-beta.0",
26
- "@douyinfe/semi-icons": "2.50.0-beta.0",
27
- "@douyinfe/semi-illustrations": "2.50.0-beta.0",
28
- "@douyinfe/semi-theme-default": "2.50.0-beta.0",
23
+ "@douyinfe/semi-animation": "2.50.0",
24
+ "@douyinfe/semi-animation-react": "2.50.0",
25
+ "@douyinfe/semi-foundation": "2.50.0",
26
+ "@douyinfe/semi-icons": "2.50.0",
27
+ "@douyinfe/semi-illustrations": "2.50.0",
28
+ "@douyinfe/semi-theme-default": "2.50.0",
29
29
  "async-validator": "^3.5.0",
30
30
  "classnames": "^2.2.6",
31
31
  "copy-text-to-clipboard": "^2.1.1",
@@ -75,7 +75,7 @@
75
75
  ],
76
76
  "author": "",
77
77
  "license": "MIT",
78
- "gitHead": "d40aee69f15db9a5dc64cc6bc04ad39bfffc1621",
78
+ "gitHead": "4f5ca71f4a992aaadf6c637d8a798ba18c0af740",
79
79
  "devDependencies": {
80
80
  "@babel/plugin-proposal-decorators": "^7.15.8",
81
81
  "@babel/plugin-transform-runtime": "^7.15.8",