@micromag/element-call-to-action 0.3.103 → 0.3.107

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/es/index.js CHANGED
@@ -212,6 +212,10 @@ function CallToAction(_ref) {
212
212
  setShowWebView(true);
213
213
  setDisabledWebView(false);
214
214
  onClickLink('swipe');
215
+
216
+ if (disableInteraction !== null) {
217
+ disableInteraction();
218
+ }
215
219
  } else if (isIos() && selfTargetLinkRef.current !== null) {
216
220
  selfTargetLinkRef.current.click();
217
221
  setLeaving(true);
package/lib/index.js CHANGED
@@ -226,6 +226,10 @@ function CallToAction(_ref) {
226
226
  setShowWebView(true);
227
227
  setDisabledWebView(false);
228
228
  onClickLink('swipe');
229
+
230
+ if (disableInteraction !== null) {
231
+ disableInteraction();
232
+ }
229
233
  } else if (utils.isIos() && selfTargetLinkRef.current !== null) {
230
234
  selfTargetLinkRef.current.click();
231
235
  setLeaving(true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/element-call-to-action",
3
- "version": "0.3.103",
3
+ "version": "0.3.107",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -40,22 +40,22 @@
40
40
  "prepare": "../../scripts/prepare-package.sh"
41
41
  },
42
42
  "devDependencies": {
43
- "react": "^16.8.0 || ^17.0.0",
44
- "react-dom": "^16.8.0 || ^17.0.0"
43
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
44
+ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
45
45
  },
46
46
  "peerDependencies": {
47
- "react": "^16.8.0 || ^17.0.0",
48
- "react-dom": "^16.8.0 || ^17.0.0"
47
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
48
+ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
49
49
  },
50
50
  "dependencies": {
51
51
  "@babel/runtime": "^7.13.10",
52
52
  "@fortawesome/fontawesome-svg-core": "^1.2.32",
53
53
  "@fortawesome/free-solid-svg-icons": "^5.15.1",
54
54
  "@fortawesome/react-fontawesome": "^0.1.13",
55
- "@micromag/core": "^0.3.91",
56
- "@micromag/element-button": "^0.3.91",
57
- "@micromag/element-text": "^0.3.91",
58
- "@micromag/element-webview": "^0.3.98",
55
+ "@micromag/core": "^0.3.107",
56
+ "@micromag/element-button": "^0.3.107",
57
+ "@micromag/element-text": "^0.3.107",
58
+ "@micromag/element-webview": "^0.3.107",
59
59
  "@react-spring/core": "^9.1.1",
60
60
  "@react-spring/web": "^9.1.1",
61
61
  "@use-gesture/react": "^10.2.4",
@@ -68,5 +68,5 @@
68
68
  "publishConfig": {
69
69
  "access": "public"
70
70
  },
71
- "gitHead": "660b2ada7b03941feb841470abf5cd2cc6e3e68f"
71
+ "gitHead": "952ef450fe62328a0ae3ab6dbb3c3079bb66d17a"
72
72
  }