@plasmicapp/react-web 0.2.298 → 0.2.300

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.
@@ -2670,7 +2670,7 @@ var isRegExp = function (a) {
2670
2670
  return Object.prototype.toString.call(a) === "[object RegExp]";
2671
2671
  };
2672
2672
  /**
2673
- * Forked from https://github.com/jamesfoster/DeepEqual
2673
+ * Forked from https://github.com/epoberezkin/fast-deep-equal/blob/master/src/index.jst
2674
2674
  * Changes: removed the comparison between constructors and instanceof objects
2675
2675
  * because they are dependent on the window object
2676
2676
  */
@@ -2747,10 +2747,10 @@ function deepEqual(a, b) {
2747
2747
  // if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
2748
2748
  if (isRegExp(a) && isRegExp(b))
2749
2749
  return a.source === b.source && a.flags === b.flags;
2750
- if (a.valueOf !== Object.prototype.valueOf)
2751
- return a.valueOf() === b.valueOf();
2752
- if (a.toString !== Object.prototype.toString)
2753
- return a.toString() === b.toString();
2750
+ // if (a.valueOf !== Object.prototype.valueOf)
2751
+ // return a.valueOf() === b.valueOf();
2752
+ // if (a.toString !== Object.prototype.toString)
2753
+ // return a.toString() === b.toString();
2754
2754
  keys = Object.keys(a);
2755
2755
  length = keys.length;
2756
2756
  if (length !== Object.keys(b).length)
@@ -3853,6 +3853,10 @@ function useTextInput(plasmicClass, props, config, ref) {
3853
3853
  getInput: function () {
3854
3854
  return inputRef.current;
3855
3855
  },
3856
+ getBoundingClientRect: function () {
3857
+ var _a;
3858
+ return (_a = rootRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
3859
+ },
3856
3860
  }); }, [rootRef, inputRef]);
3857
3861
  var variants = __assign(__assign({}, pick.apply(void 0, __spreadArray([props], __read(plasmicClass.internalVariantProps), false))), mergeVariantToggles({ def: config.showStartIconVariant, active: showStartIcon }, { def: config.showEndIconVariant, active: showEndIcon }, { def: config.isDisabledVariant, active: isDisabled }));
3858
3862
  var args = __assign(__assign(__assign({}, pick.apply(void 0, __spreadArray([props], __read(plasmicClass.internalArgProps), false))), (config.startIconSlot && (_a = {}, _a[config.startIconSlot] = startIcon, _a))), (config.endIconSlot && (_b = {}, _b[config.endIconSlot] = endIcon, _b)));