@antscorp/antsomi-ui 1.3.3-beta.42 → 1.3.3-beta.44

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.
@@ -310,10 +310,10 @@ export const InputDynamic = (props) => {
310
310
  dangerouslySetInnerHTML: {
311
311
  __html: getDangerouslySetInnerHTML(textValue),
312
312
  }, onPaste: onPaste }),
313
- React.createElement(Icon, { type: "icon-ants-search-2", onClick: e => {
313
+ !isViewMode && (React.createElement(Icon, { type: "icon-ants-person-alt", onClick: e => {
314
314
  e.stopPropagation();
315
315
  toggleShortLinkModal();
316
- }, className: "customize-antsomi-profile", style: { width: 24, height: 24 } })),
316
+ }, className: "customize-antsomi-profile", style: { width: 24, height: 24 } }))),
317
317
  React.createElement(TooltipHover, { isShow: tooltipHoverDebounce.x > 0 && tooltipHoverDebounce.y > 0, top: tooltipHoverDebounce.y, left: tooltipHoverDebounce.x }, "Click on the link to convert it to a shortlink"),
318
318
  popoverOpenShortLink && (React.createElement(PopupShortLink, { open: popoverOpenShortLink, disabledOpts: disabledOpts, onOk: handleInsertSortLink, onClose: toggleShortLinkModal, initSelectedProperties: initSelectedProperties, callback: callback }))));
319
319
  };
@@ -281,9 +281,6 @@ export const ResizeGrid = props => {
281
281
  else {
282
282
  // const cellWidth = cellRef.current.offsetWidth;
283
283
  let xDistant = clientX - startClientX;
284
- const gridWidth = containerRef.current ? containerRef.current.offsetWidth : xDistant;
285
- const xPercentDistant = (100 * xDistant) / gridWidth;
286
- const minPercent = (100 * MIN_SIZE) / gridWidth;
287
284
  // console.log('move X', clientX, xDistant);
288
285
  if (Math.abs(xDistant) > THREADHOLD) {
289
286
  startCellRef.current.fallback = true;
@@ -57,7 +57,7 @@ export const Cell = ({ cell, idx, down, downCell, up, setRef, downSelect, upSele
57
57
  unMerge(cell, idx);
58
58
  };
59
59
  const renderCellContent = () => renderCell
60
- ? renderCell(cell, idx)
60
+ ? renderCell(cell, idx, { isPreview })
61
61
  : !!image &&
62
62
  image.imageUrl && (React.createElement("div", { className: "imageWrapper" },
63
63
  React.createElement("img", { src: image.imageUrl, alt: "menu", style: image.imageStyles })));
@@ -73,6 +73,7 @@ export const Cell = ({ cell, idx, down, downCell, up, setRef, downSelect, upSele
73
73
  return (React.createElement(StyledCell, { ref: cellRef, className: "cell",
74
74
  // onClick={handleActiveCell}
75
75
  onMouseOver: handleHoverSelect, onFocus: e => e, onMouseDown: handleDownCell, onMouseUp: handleUpCell, onDoubleClick: handlUnMerge, borderStyle: borderStyle || 'unset', style: Object.assign(Object.assign({ gridArea: buildGridArea(cell), width: cell.sizeX ? `${cell.sizeX}px` : 'unset', height: cell.sizeY ? `${cell.sizeY}px` : 'unset', transform: buildTranform(cell) }, (cell.active &&
76
+ !isPreview &&
76
77
  (activeStyle || {
77
78
  outline: '1px solid #005eb8',
78
79
  }))), style) },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.3-beta.42",
3
+ "version": "1.3.3-beta.44",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",
@@ -77,7 +77,6 @@
77
77
  "html2canvas": "^1.4.1",
78
78
  "i18next": "21.6.16",
79
79
  "i18next-browser-languagedetector": "6.1.2",
80
- "immer": "^10.0.3",
81
80
  "lodash": "^4.17.21",
82
81
  "moment": "2.29.2",
83
82
  "qs": "6.10.3",