@mochabug/adapt-astro 1.0.1-rc.25 → 1.0.1-rc.26

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mochabug/adapt-astro",
3
- "version": "1.0.1-rc.25",
3
+ "version": "1.0.1-rc.26",
4
4
  "description": "Astro component for Adapt automation platform",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -41,6 +41,6 @@
41
41
  "astro": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0"
42
42
  },
43
43
  "dependencies": {
44
- "@mochabug/adapt-web": "^1.0.1-rc.23"
44
+ "@mochabug/adapt-web": "^1.0.1-rc.24"
45
45
  }
46
46
  }
@@ -114,10 +114,8 @@ const containerId = `adapt-${Math.random().toString(36).slice(2, 11)}`;
114
114
  </adapt-automation>
115
115
 
116
116
  <script>
117
- import { AdaptAutomationElement } from "@mochabug/adapt-web";
118
-
119
- // Ensure custom element is registered
120
- void AdaptAutomationElement;
117
+ import type { AdaptAutomationElement } from "@mochabug/adapt-web";
118
+ import "@mochabug/adapt-web";
121
119
 
122
120
  function initAll() {
123
121
  document
@@ -106,10 +106,8 @@ const containerId = `adapt-${Math.random().toString(36).slice(2, 11)}`;
106
106
  </adapt-automation>
107
107
 
108
108
  <script>
109
- import { AdaptAutomationElement } from "@mochabug/adapt-web/core";
110
-
111
- // Ensure custom element is registered
112
- void AdaptAutomationElement;
109
+ import type { AdaptAutomationElement } from "@mochabug/adapt-web/core";
110
+ import "@mochabug/adapt-web/core";
113
111
 
114
112
  function initAll() {
115
113
  document
@@ -63,12 +63,10 @@ const containerId = `adapt-cap-${Math.random().toString(36).slice(2, 11)}`;
63
63
  </adapt-cap>
64
64
 
65
65
  <script>
66
- import { AdaptCapElement } from "@mochabug/adapt-web/cap";
66
+ import type { AdaptCapElement } from "@mochabug/adapt-web/cap";
67
+ import "@mochabug/adapt-web/cap";
67
68
  import type { AutomationClient } from "@mochabug/adapt-core";
68
69
 
69
- // Ensure custom element is registered
70
- void AdaptCapElement;
71
-
72
70
  function initAll() {
73
71
  document
74
72
  .querySelectorAll<AdaptCapElement>("adapt-cap")