@arbisoft/react-design-tool 1.0.62 → 1.0.64

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.
package/README.md CHANGED
@@ -64,13 +64,13 @@ yarn add @arbisoft/react-design-tool
64
64
  #### ⚠️ Important: Installation Guide for React 18 and Below
65
65
 
66
66
  ```bash
67
- npm install @arbisoft/react-design-tool@1.0.62
67
+ npm install @arbisoft/react-design-tool@1.0.64
68
68
  ```
69
69
 
70
70
  OR
71
71
 
72
72
  ```bash
73
- yarn add @arbisoft/react-design-tool@1.0.62
73
+ yarn add @arbisoft/react-design-tool@1.0.64
74
74
 
75
75
  ```
76
76
 
package/dist/cjs/index.js CHANGED
@@ -285,19 +285,17 @@ function _regeneratorDefine(e, r, n, t) {
285
285
  i = 0;
286
286
  }
287
287
  _regeneratorDefine = function (e, r, n, t) {
288
- if (r) i ? i(e, r, {
288
+ function o(r, n) {
289
+ _regeneratorDefine(e, r, function (e) {
290
+ return this._invoke(r, n, e);
291
+ });
292
+ }
293
+ r ? i ? i(e, r, {
289
294
  value: n,
290
295
  enumerable: !t,
291
296
  configurable: !t,
292
297
  writable: !t
293
- }) : e[r] = n;else {
294
- function o(r, n) {
295
- _regeneratorDefine(e, r, function (e) {
296
- return this._invoke(r, n, e);
297
- });
298
- }
299
- o("next", 0), o("throw", 1), o("return", 2);
300
- }
298
+ }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
301
299
  }, _regeneratorDefine(e, r, n, t);
302
300
  }
303
301
  function _slicedToArray(r, e) {
@@ -3027,7 +3025,7 @@ var exportStageAsImage = /*#__PURE__*/function () {
3027
3025
  var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(resolve, reject) {
3028
3026
  var stage, canvas, dataURL, _t;
3029
3027
  return _regenerator().w(function (_context2) {
3030
- while (1) switch (_context2.n) {
3028
+ while (1) switch (_context2.p = _context2.n) {
3031
3029
  case 0:
3032
3030
  _context2.p = 0;
3033
3031
  stage = stageRef === null || stageRef === void 0 ? void 0 : stageRef.current;
@@ -4435,7 +4433,7 @@ var CanvasImage = function CanvasImage(_ref) {
4435
4433
  _load = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
4436
4434
  var res, blob, img, _t;
4437
4435
  return _regenerator().w(function (_context) {
4438
- while (1) switch (_context.n) {
4436
+ while (1) switch (_context.p = _context.n) {
4439
4437
  case 0:
4440
4438
  _context.p = 0;
4441
4439
  setLoading(true);
@@ -4495,9 +4493,13 @@ var CanvasImage = function CanvasImage(_ref) {
4495
4493
  React.useEffect(function () {
4496
4494
  if (!(imageNodeRef !== null && imageNodeRef !== void 0 && imageNodeRef.current)) return;
4497
4495
  if (hasTint) {
4496
+ var _imageNodeRef$current;
4498
4497
  imageNodeRef.current.cache();
4498
+ (_imageNodeRef$current = imageNodeRef.current.getLayer()) === null || _imageNodeRef$current === void 0 || _imageNodeRef$current.batchDraw();
4499
4499
  } else {
4500
+ var _imageNodeRef$current2;
4500
4501
  imageNodeRef.current.clearCache();
4502
+ (_imageNodeRef$current2 = imageNodeRef.current.getLayer()) === null || _imageNodeRef$current2 === void 0 || _imageNodeRef$current2.batchDraw();
4501
4503
  }
4502
4504
  }, [hasTint, red, green, blue]);
4503
4505
  if (!loaded || !imgEl) return null;
@@ -4622,7 +4624,7 @@ var QrElement = function QrElement(_ref) {
4622
4624
  _loadLogo = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
4623
4625
  var res, blob, img, _t;
4624
4626
  return _regenerator().w(function (_context2) {
4625
- while (1) switch (_context2.n) {
4627
+ while (1) switch (_context2.p = _context2.n) {
4626
4628
  case 0:
4627
4629
  if (element !== null && element !== void 0 && element.qrLogo) {
4628
4630
  _context2.n = 1;
@@ -6603,7 +6605,7 @@ function memoize(fn) {
6603
6605
  }
6604
6606
 
6605
6607
  // eslint-disable-next-line no-undef
6606
- var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
6608
+ var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
6607
6609
 
6608
6610
  var isPropValid = /* #__PURE__ */memoize(function (prop) {
6609
6611
  return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
@@ -7709,7 +7711,7 @@ var Studio = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
7709
7711
  var _ref6 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
7710
7712
  var file, result, imageUrl, reader, _t;
7711
7713
  return _regenerator().w(function (_context2) {
7712
- while (1) switch (_context2.n) {
7714
+ while (1) switch (_context2.p = _context2.n) {
7713
7715
  case 0:
7714
7716
  _context2.n = 1;
7715
7717
  return pickImage();