@antscorp/antsomi-ui 1.3.5-resize-thumbnail.2 → 1.3.5-resize-thumbnail.3

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.
@@ -469,7 +469,7 @@ export const ImageEditor = React.forwardRef((props, ref) => {
469
469
  React.createElement(StageWrapperStyled, { "$width": width, "$height": height, className: className || '' },
470
470
  React.createElement(Stage, { id: "image-editor", width: width, height: height, ref: stageRef, onMouseUp: onStageMouseUp, onMouseDown: onStageMouseDown, onMouseMove: onStageMouseMove },
471
471
  React.createElement(Layer, null,
472
- React.createElement(KonvaRect, { x: 0, y: 0, height: width, width: height, fill: "white", id: "bg", onClick: onBgClick }),
472
+ React.createElement(KonvaRect, { x: 0, y: 0, height: width, width: height, fill: "transparent", id: "bg", onClick: onBgClick }),
473
473
  image && (React.createElement(KonvaImage, Object.assign({ image: image }, imageCoordinate, { name: "shape", onClick: e => onShapeClick(e, imageCoordinate.id, ShapeObject.Image), onTap: e => onShapeClick(e, imageCoordinate.id, ShapeObject.Image), draggable: isDraggable, onDragEnd: ({ target: { attrs } }) => {
474
474
  if (isDraggable)
475
475
  dispatch({
@@ -41,6 +41,12 @@ export const ImageSliderStyled = styled(Flex) `
41
41
  margin-bottom: 40px;
42
42
  }
43
43
 
44
+ .image-resize-wrapper {
45
+ background: ${props => props.$skeleton ? `url(${SkeletonBg}) no-repeat center center` : 'unset'};
46
+
47
+ background-size: contain;
48
+ }
49
+
44
50
  .image-resize-wrapper,
45
51
  .image-upload-zone {
46
52
  border: 1px solid ${(_a = THEME.token) === null || _a === void 0 ? void 0 : _a.blue1_1};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.5-resize-thumbnail.2",
3
+ "version": "1.3.5-resize-thumbnail.3",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",