@mochabug/adapt-web 1.0.0-rc62 → 1.0.0-rc63
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/esm/index.js +10 -8
- package/dist/types/types.d.ts +3 -1
- package/dist/umd/adapt-web.js +9 -8
- package/dist/umd/adapt-web.min.js +12 -9
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -40,6 +40,7 @@ export function clearPersistedState(automationId, storage = "both") {
|
|
|
40
40
|
*/
|
|
41
41
|
const DEFAULT_STYLES = `
|
|
42
42
|
.mb-adapt {
|
|
43
|
+
position: relative;
|
|
43
44
|
width: 100%;
|
|
44
45
|
min-height: inherit;
|
|
45
46
|
display: flex;
|
|
@@ -566,16 +567,18 @@ cap-widget::part(attribution) {
|
|
|
566
567
|
}
|
|
567
568
|
|
|
568
569
|
.mb-adapt__status-message {
|
|
570
|
+
position: absolute;
|
|
571
|
+
inset: 0;
|
|
569
572
|
display: flex;
|
|
570
573
|
align-items: center;
|
|
571
574
|
justify-content: center;
|
|
572
|
-
|
|
573
|
-
height: 100%;
|
|
574
|
-
min-height: 200px;
|
|
575
|
+
z-index: 1;
|
|
575
576
|
background: transparent;
|
|
577
|
+
pointer-events: none;
|
|
576
578
|
}
|
|
577
579
|
|
|
578
580
|
.mb-adapt__status-card {
|
|
581
|
+
pointer-events: auto;
|
|
579
582
|
display: flex;
|
|
580
583
|
flex-direction: column;
|
|
581
584
|
align-items: center;
|
|
@@ -2174,7 +2177,8 @@ export class AdaptWebClient {
|
|
|
2174
2177
|
this.statusMessageElement.className =
|
|
2175
2178
|
this.options.classNames?.statusMessage ?? "mb-adapt__status-message";
|
|
2176
2179
|
const card = document.createElement("div");
|
|
2177
|
-
card.className =
|
|
2180
|
+
card.className =
|
|
2181
|
+
this.options.classNames?.statusCard ?? "mb-adapt__status-card";
|
|
2178
2182
|
// Icon
|
|
2179
2183
|
const iconWrap = document.createElement("div");
|
|
2180
2184
|
iconWrap.className =
|
|
@@ -2192,10 +2196,8 @@ export class AdaptWebClient {
|
|
|
2192
2196
|
msg.textContent = text;
|
|
2193
2197
|
card.appendChild(msg);
|
|
2194
2198
|
this.statusMessageElement.appendChild(card);
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
parent.classList.remove("mb-adapt__frame--hidden");
|
|
2198
|
-
parent.appendChild(this.statusMessageElement);
|
|
2199
|
+
// Append to root element so it overlays the entire container, centered
|
|
2200
|
+
this.rootElement.appendChild(this.statusMessageElement);
|
|
2199
2201
|
}
|
|
2200
2202
|
removeStatusMessage() {
|
|
2201
2203
|
if (this.statusMessageElement) {
|
package/dist/types/types.d.ts
CHANGED
|
@@ -361,8 +361,10 @@ export interface AdaptWebClientOptions {
|
|
|
361
361
|
dragHandle?: string;
|
|
362
362
|
/** Expand button for collapsed panels. Default: `'mb-adapt__expand-button'` */
|
|
363
363
|
expandButton?: string;
|
|
364
|
-
/** Status message overlay
|
|
364
|
+
/** Status message overlay container. Default: `'mb-adapt__status-message'` */
|
|
365
365
|
statusMessage?: string;
|
|
366
|
+
/** Status card inside the overlay. Default: `'mb-adapt__status-card'` */
|
|
367
|
+
statusCard?: string;
|
|
366
368
|
/** Fork toolbar container. Default: `'mb-adapt__toolbar'` */
|
|
367
369
|
toolbar?: string;
|
|
368
370
|
/** Fork toolbar title text. Default: `'mb-adapt__toolbar-title'` */
|
package/dist/umd/adapt-web.js
CHANGED
|
@@ -7549,7 +7549,7 @@ var MbAdapt = (() => {
|
|
|
7549
7549
|
// src/index.ts
|
|
7550
7550
|
if (typeof window !== "undefined" && true && !window.CAP_CUSTOM_WASM_URL) {
|
|
7551
7551
|
window.CAP_CUSTOM_WASM_URL = new URL(
|
|
7552
|
-
"https://cdn.mochabug.com/adapt/web/1.0.0-
|
|
7552
|
+
"https://cdn.mochabug.com/adapt/web/1.0.0-rc63/cap_wasm.js",
|
|
7553
7553
|
window.location.href
|
|
7554
7554
|
).href;
|
|
7555
7555
|
}
|
|
@@ -7564,6 +7564,7 @@ var MbAdapt = (() => {
|
|
|
7564
7564
|
}
|
|
7565
7565
|
var DEFAULT_STYLES = `
|
|
7566
7566
|
.mb-adapt {
|
|
7567
|
+
position: relative;
|
|
7567
7568
|
width: 100%;
|
|
7568
7569
|
min-height: inherit;
|
|
7569
7570
|
display: flex;
|
|
@@ -8090,16 +8091,18 @@ cap-widget::part(attribution) {
|
|
|
8090
8091
|
}
|
|
8091
8092
|
|
|
8092
8093
|
.mb-adapt__status-message {
|
|
8094
|
+
position: absolute;
|
|
8095
|
+
inset: 0;
|
|
8093
8096
|
display: flex;
|
|
8094
8097
|
align-items: center;
|
|
8095
8098
|
justify-content: center;
|
|
8096
|
-
|
|
8097
|
-
height: 100%;
|
|
8098
|
-
min-height: 200px;
|
|
8099
|
+
z-index: 1;
|
|
8099
8100
|
background: transparent;
|
|
8101
|
+
pointer-events: none;
|
|
8100
8102
|
}
|
|
8101
8103
|
|
|
8102
8104
|
.mb-adapt__status-card {
|
|
8105
|
+
pointer-events: auto;
|
|
8103
8106
|
display: flex;
|
|
8104
8107
|
flex-direction: column;
|
|
8105
8108
|
align-items: center;
|
|
@@ -9423,7 +9426,7 @@ cap-widget::part(attribution) {
|
|
|
9423
9426
|
this.statusMessageElement = document.createElement("div");
|
|
9424
9427
|
this.statusMessageElement.className = this.options.classNames?.statusMessage ?? "mb-adapt__status-message";
|
|
9425
9428
|
const card = document.createElement("div");
|
|
9426
|
-
card.className = "mb-adapt__status-card";
|
|
9429
|
+
card.className = this.options.classNames?.statusCard ?? "mb-adapt__status-card";
|
|
9427
9430
|
const iconWrap = document.createElement("div");
|
|
9428
9431
|
iconWrap.className = kind === "stopped" ? "mb-adapt__status-icon mb-adapt__status-icon--stopped" : "mb-adapt__status-icon";
|
|
9429
9432
|
iconWrap.innerHTML = kind === "stopped" ? `<svg viewBox="0 0 24 24" fill="none" stroke="#6b7280" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="6" y="6" width="12" height="12" rx="2"/></svg>` : `<svg viewBox="0 0 24 24" fill="none" stroke="#ef4444" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg>`;
|
|
@@ -9433,9 +9436,7 @@ cap-widget::part(attribution) {
|
|
|
9433
9436
|
msg.textContent = text;
|
|
9434
9437
|
card.appendChild(msg);
|
|
9435
9438
|
this.statusMessageElement.appendChild(card);
|
|
9436
|
-
|
|
9437
|
-
parent.classList.remove("mb-adapt__frame--hidden");
|
|
9438
|
-
parent.appendChild(this.statusMessageElement);
|
|
9439
|
+
this.rootElement.appendChild(this.statusMessageElement);
|
|
9439
9440
|
}
|
|
9440
9441
|
removeStatusMessage() {
|
|
9441
9442
|
if (this.statusMessageElement) {
|