@mxenabled/connect-widget 0.17.1 → 0.17.2

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.es.js CHANGED
@@ -14606,7 +14606,7 @@ var isPropValid = /* @__PURE__ */ memoize$2(
14606
14606
  /* Z+1 */
14607
14607
  );
14608
14608
 
14609
- var isDevelopment$2 = false;
14609
+ var isDevelopment$3 = false;
14610
14610
  function sheetForTag(tag) {
14611
14611
  if (tag.sheet) {
14612
14612
  return tag.sheet;
@@ -14647,7 +14647,7 @@ var StyleSheet = /* @__PURE__ */ function() {
14647
14647
  _this.container.insertBefore(tag, before);
14648
14648
  _this.tags.push(tag);
14649
14649
  };
14650
- this.isSpeedy = options.speedy === void 0 ? !isDevelopment$2 : options.speedy;
14650
+ this.isSpeedy = options.speedy === void 0 ? !isDevelopment$3 : options.speedy;
14651
14651
  this.tags = [];
14652
14652
  this.ctr = 0;
14653
14653
  this.nonce = options.nonce;
@@ -15085,7 +15085,8 @@ var compat = function compat2(element) {
15085
15085
  element.length < 1) {
15086
15086
  return;
15087
15087
  }
15088
- var value = element.value, parent = element.parent;
15088
+ var value = element.value;
15089
+ var parent = element.parent;
15089
15090
  var isImplicitRule = element.column === parent.column && element.line === parent.line;
15090
15091
  while (parent.type !== "rule") {
15091
15092
  parent = parent.parent;
@@ -15756,7 +15757,7 @@ var unitlessKeys = {
15756
15757
  strokeWidth: 1
15757
15758
  };
15758
15759
 
15759
- var isDevelopment$1 = false;
15760
+ var isDevelopment$2 = false;
15760
15761
  var hyphenateRegex = /[A-Z]|^ms/g;
15761
15762
  var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
15762
15763
  var isCustomProperty = function isCustomProperty2(property) {
@@ -15864,7 +15865,7 @@ function createStringFromObject(mergedProps, registered, obj) {
15864
15865
  string += processStyleName(key) + ":" + processStyleValue(key, asString) + ";";
15865
15866
  }
15866
15867
  } else {
15867
- if (key === "NO_COMPONENT_SELECTOR" && isDevelopment$1) {
15868
+ if (key === "NO_COMPONENT_SELECTOR" && isDevelopment$2) {
15868
15869
  throw new Error(noComponentSelectorMessage);
15869
15870
  }
15870
15871
  if (Array.isArray(value) && typeof value[0] === "string" && (registered == null || registered[value[0]] === void 0)) {
@@ -15936,6 +15937,7 @@ var useInsertionEffect = React$2["useInsertionEffect"] ? React$2["useInsertionEf
15936
15937
  var useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect || syncFallback;
15937
15938
  var useInsertionEffectWithLayoutFallback = useInsertionEffect || React$2.useLayoutEffect;
15938
15939
 
15940
+ var isDevelopment$1 = false;
15939
15941
  var EmotionCacheContext = /* @__PURE__ */ React$2.createContext(
15940
15942
  // we're doing this to avoid preconstruct's dead code elimination in this one case
15941
15943
  // because this module is primarily intended for the browser and node
@@ -15955,6 +15957,58 @@ var withEmotionCache = function withEmotionCache2(func) {
15955
15957
  });
15956
15958
  };
15957
15959
  var ThemeContext$1 = /* @__PURE__ */ React$2.createContext({});
15960
+ var hasOwn = {}.hasOwnProperty;
15961
+ var typePropName = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__";
15962
+ var createEmotionProps = function createEmotionProps2(type, props) {
15963
+ var newProps = {};
15964
+ for (var _key in props) {
15965
+ if (hasOwn.call(props, _key)) {
15966
+ newProps[_key] = props[_key];
15967
+ }
15968
+ }
15969
+ newProps[typePropName] = type;
15970
+ return newProps;
15971
+ };
15972
+ var Insertion$1 = function Insertion2(_ref) {
15973
+ var cache = _ref.cache, serialized = _ref.serialized, isStringTag = _ref.isStringTag;
15974
+ registerStyles(cache, serialized, isStringTag);
15975
+ useInsertionEffectAlwaysWithSyncFallback(function() {
15976
+ return insertStyles(cache, serialized, isStringTag);
15977
+ });
15978
+ return null;
15979
+ };
15980
+ var Emotion = /* @__PURE__ */ withEmotionCache(function(props, cache, ref) {
15981
+ var cssProp = props.css;
15982
+ if (typeof cssProp === "string" && cache.registered[cssProp] !== void 0) {
15983
+ cssProp = cache.registered[cssProp];
15984
+ }
15985
+ var WrappedComponent = props[typePropName];
15986
+ var registeredStyles = [cssProp];
15987
+ var className = "";
15988
+ if (typeof props.className === "string") {
15989
+ className = getRegisteredStyles(cache.registered, registeredStyles, props.className);
15990
+ } else if (props.className != null) {
15991
+ className = props.className + " ";
15992
+ }
15993
+ var serialized = serializeStyles(registeredStyles, void 0, React$2.useContext(ThemeContext$1));
15994
+ className += cache.key + "-" + serialized.name;
15995
+ var newProps = {};
15996
+ for (var _key2 in props) {
15997
+ if (hasOwn.call(props, _key2) && _key2 !== "css" && _key2 !== typePropName && !isDevelopment$1) {
15998
+ newProps[_key2] = props[_key2];
15999
+ }
16000
+ }
16001
+ newProps.className = className;
16002
+ if (ref) {
16003
+ newProps.ref = ref;
16004
+ }
16005
+ return /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, /* @__PURE__ */ React$2.createElement(Insertion$1, {
16006
+ cache,
16007
+ serialized,
16008
+ isStringTag: typeof WrappedComponent === "string"
16009
+ }), /* @__PURE__ */ React$2.createElement(WrappedComponent, newProps));
16010
+ });
16011
+ var Emotion$1 = Emotion;
15958
16012
 
15959
16013
  var _extends = {exports: {}};
15960
16014
 
@@ -15980,6 +16034,25 @@ function require_extends () {
15980
16034
 
15981
16035
  require_extends();
15982
16036
 
16037
+ var jsx = function jsx2(type, props) {
16038
+ var args = arguments;
16039
+ if (props == null || !hasOwn.call(props, "css")) {
16040
+ return React$2.createElement.apply(void 0, args);
16041
+ }
16042
+ var argsLength = args.length;
16043
+ var createElementArgArray = new Array(argsLength);
16044
+ createElementArgArray[0] = Emotion$1;
16045
+ createElementArgArray[1] = createEmotionProps(type, props);
16046
+ for (var i = 2; i < argsLength; i++) {
16047
+ createElementArgArray[i] = args[i];
16048
+ }
16049
+ return React$2.createElement.apply(null, createElementArgArray);
16050
+ };
16051
+ (function(_jsx) {
16052
+ var JSX;
16053
+ /* @__PURE__ */ (function(_JSX) {
16054
+ })(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
16055
+ })(jsx || (jsx = {}));
15983
16056
  var Global = /* @__PURE__ */ withEmotionCache(function(props, cache) {
15984
16057
  var styles = props.styles;
15985
16058
  var serialized = serializeStyles([styles], void 0, React$2.useContext(ThemeContext$1));
@@ -16032,7 +16105,7 @@ function css() {
16032
16105
  }
16033
16106
  return serializeStyles(args);
16034
16107
  }
16035
- var keyframes = function keyframes2() {
16108
+ function keyframes() {
16036
16109
  var insertable = css.apply(void 0, arguments);
16037
16110
  var name = "animation-" + insertable.name;
16038
16111
  return {
@@ -16043,7 +16116,7 @@ var keyframes = function keyframes2() {
16043
16116
  return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
16044
16117
  }
16045
16118
  };
16046
- };
16119
+ }
16047
16120
 
16048
16121
  var testOmitPropsOnStringTag = isPropValid;
16049
16122
  var testOmitPropsOnComponent = function testOmitPropsOnComponent2(key) {