@mochabug/adapt-vue 2.0.0-beta.0 → 2.0.0-beta.10

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/README.md CHANGED
@@ -6,7 +6,11 @@ Vue component for Adapt.
6
6
  npm install @mochabug/adapt-vue
7
7
  ```
8
8
 
9
- Requires Vue 3 as a peer dependency. All Vue 3 minor versions are supported.
9
+ Framework requirements are declared in [package.json](./package.json).
10
+
11
+ Browser UI requires native Popover API support. Floating windows use the browser top layer and remain fixed in the viewport, including inside transformed, clipped, or scrolling containers. Docked panels and docked Maximize remain inside the embed. Docking, floating, splitting, and restoring preserve the loaded iframe document and its application state.
12
+
13
+ Windows use the viewport of the document containing the client. If that document is itself inside an iframe, its windows remain within that iframe.
10
14
 
11
15
  ## Quickstart
12
16
 
@@ -464,11 +468,11 @@ Apply inline styles to the internal root element (useful for sizing):
464
468
 
465
469
  | Variable | Default | Description |
466
470
  |---|---|---|
467
- | `--mb-adapt-z-base` | `0` | Base z-index offset — added to all internal z-index values |
471
+ | `--mb-adapt-z-base` | `0` | Local z-index offset and floating-window priority |
468
472
 
469
- Set `--mb-adapt-z-base` to shift all internal z-index values. Useful when embedding inside modals or drawers that have their own stacking context. Example: `--mb-adapt-z-base: 10000` lifts all layers by 10000.
473
+ `--mb-adapt-z-base` offsets local stacking and sets the priority of this instance’s floating windows. Higher priorities appear above lower priorities; within the same priority, the most recently activated window appears on top across clients. Theme changes update this priority live.
470
474
 
471
- Internal stacking order from low to high: separators (1), resize handles (10), minimized tabs (100), floating panels (100000+), status/cap (200000), confirm dialog (300000), drop targets (999998), drag ghost (999999). All values are offset by `--mb-adapt-z-base`.
475
+ Floating chrome and iframe content are ordered together in the native top layer. Drop indicators and drag ghosts appear above windows, and close confirmations appear above those. Host-page native dialogs and popovers follow browser top-layer ordering; numeric CSS z-index cannot override that ordering.
472
476
 
473
477
  </details>
474
478
 
@@ -509,6 +513,7 @@ Internal stacking order from low to high: separators (1), resize handles (10), m
509
513
  | `session` | `(status, fork?)` |
510
514
  | `output` | `(output)` |
511
515
  | `fork-active` | `(active)` |
516
+ | `content-active` | `(active: boolean)` — any main/fork URL remains open, including retained or minimized content |
512
517
 
513
518
  ## License
514
519
 
@@ -33,6 +33,10 @@ const props = {
33
33
  type: Object,
34
34
  default: undefined,
35
35
  },
36
+ reserveMain: {
37
+ type: Boolean,
38
+ default: false,
39
+ },
36
40
  darkMode: {
37
41
  type: Boolean,
38
42
  default: false,
@@ -110,6 +114,7 @@ const emits = {
110
114
  session: (_status, _fork) => true,
111
115
  output: (_output) => true,
112
116
  forkActive: (_active) => true,
117
+ contentActive: (_active) => true,
113
118
  error: (_error) => true,
114
119
  };
115
120
  const component = defineComponent({
@@ -142,6 +147,9 @@ const component = defineComponent({
142
147
  el.onForkActiveCallback = (active) => {
143
148
  emit("forkActive", active);
144
149
  };
150
+ el.onContentActiveCallback = (active) => {
151
+ emit("contentActive", active);
152
+ };
145
153
  el.onErrorCallback = (error) => {
146
154
  emit("error", error);
147
155
  };
@@ -160,6 +168,7 @@ const component = defineComponent({
160
168
  "requires-challenge": props.requiresChallenge ? "" : undefined,
161
169
  "inherit-token": props.inheritToken,
162
170
  "fork-display-mode": props.forkDisplay?.mode,
171
+ "reserve-main": props.reserveMain ? "" : undefined,
163
172
  "side-by-side-split": props.forkDisplay?.mode === "side-by-side" &&
164
173
  props.forkDisplay.split !== undefined
165
174
  ? String(props.forkDisplay.split)
@@ -40,6 +40,10 @@ declare const props: {
40
40
  readonly type: PropType<ForkDisplay>;
41
41
  readonly default: undefined;
42
42
  };
43
+ readonly reserveMain: {
44
+ readonly type: BooleanConstructor;
45
+ readonly default: false;
46
+ };
43
47
  readonly darkMode: {
44
48
  readonly type: BooleanConstructor;
45
49
  readonly default: false;
@@ -117,6 +121,7 @@ declare const emits: {
117
121
  session: (_status: StatusJson, _fork?: string) => boolean;
118
122
  output: (_output: Output) => boolean;
119
123
  forkActive: (_active: boolean) => boolean;
124
+ contentActive: (_active: boolean) => boolean;
120
125
  error: (_error: AdaptError) => boolean;
121
126
  };
122
127
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mochabug/adapt-vue",
3
- "version": "2.0.0-beta.0",
3
+ "version": "2.0.0-beta.10",
4
4
  "description": "Vue component for Adapt automation platform",
5
5
  "type": "module",
6
6
  "types": "./dist/types/index.d.ts",
@@ -24,8 +24,12 @@
24
24
  "scripts": {
25
25
  "build:esm": "tsc --project tsconfig.esm.json",
26
26
  "build:types": "tsc --project tsconfig.types.json",
27
+ "prebuild": "npm install --prefix .. && cd .. && npm run build -w core -w web --ignore-scripts",
27
28
  "build": "rm -rf dist && npm run build:esm && npm run build:types",
28
- "sample": "npm run build && cd sample && npm install && npm run dev"
29
+ "build:samples": "npm run build --prefix sample",
30
+ "sample": "npm run build && cd sample && npm install && npm run dev",
31
+ "precheck": "npm run build",
32
+ "check": "tsc --project tsconfig.json --noEmit"
29
33
  },
30
34
  "keywords": [
31
35
  "adapt",
@@ -41,14 +45,14 @@
41
45
  },
42
46
  "license": "ISC",
43
47
  "peerDependencies": {
44
- "vue": "^3.0.0"
48
+ "vue": "^3.5.43"
45
49
  },
46
50
  "devDependencies": {
47
51
  "typescript": "^7.0.2",
48
- "vue": "^3.5.43"
52
+ "vue": "^3.5.44"
49
53
  },
50
54
  "dependencies": {
51
- "@mochabug/adapt-web": "2.0.0-beta.0",
52
- "@mochabug/adapt-core": "2.0.0-beta.0"
55
+ "@mochabug/adapt-web": "2.0.0-beta.10",
56
+ "@mochabug/adapt-core": "2.0.0-beta.9"
53
57
  }
54
58
  }