@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.
package/dist/index.cjs.js CHANGED
@@ -2689,7 +2689,7 @@ var isRegExp = function (a) {
2689
2689
  return Object.prototype.toString.call(a) === "[object RegExp]";
2690
2690
  };
2691
2691
  /**
2692
- * Forked from https://github.com/jamesfoster/DeepEqual
2692
+ * Forked from https://github.com/epoberezkin/fast-deep-equal/blob/master/src/index.jst
2693
2693
  * Changes: removed the comparison between constructors and instanceof objects
2694
2694
  * because they are dependent on the window object
2695
2695
  */
@@ -2766,10 +2766,10 @@ function deepEqual(a, b) {
2766
2766
  // if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
2767
2767
  if (isRegExp(a) && isRegExp(b))
2768
2768
  return a.source === b.source && a.flags === b.flags;
2769
- if (a.valueOf !== Object.prototype.valueOf)
2770
- return a.valueOf() === b.valueOf();
2771
- if (a.toString !== Object.prototype.toString)
2772
- return a.toString() === b.toString();
2769
+ // if (a.valueOf !== Object.prototype.valueOf)
2770
+ // return a.valueOf() === b.valueOf();
2771
+ // if (a.toString !== Object.prototype.toString)
2772
+ // return a.toString() === b.toString();
2773
2773
  keys = Object.keys(a);
2774
2774
  length = keys.length;
2775
2775
  if (length !== Object.keys(b).length)
@@ -3872,6 +3872,10 @@ function useTextInput(plasmicClass, props, config, ref) {
3872
3872
  getInput: function () {
3873
3873
  return inputRef.current;
3874
3874
  },
3875
+ getBoundingClientRect: function () {
3876
+ var _a;
3877
+ return (_a = rootRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
3878
+ },
3875
3879
  }); }, [rootRef, inputRef]);
3876
3880
  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 }));
3877
3881
  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)));