@mochabug/adapt-vue 2.0.0-beta.2 → 2.0.0-beta.4

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
@@ -509,6 +509,7 @@ Internal stacking order from low to high: separators (1), resize handles (10), m
509
509
  | `session` | `(status, fork?)` |
510
510
  | `output` | `(output)` |
511
511
  | `fork-active` | `(active)` |
512
+ | `content-active` | `(active: boolean)` — any main/fork URL remains open, including retained or minimized content |
512
513
 
513
514
  ## License
514
515
 
@@ -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.2",
3
+ "version": "2.0.0-beta.4",
4
4
  "description": "Vue component for Adapt automation platform",
5
5
  "type": "module",
6
6
  "types": "./dist/types/index.d.ts",
@@ -24,8 +24,11 @@
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",
29
+ "build:samples": "npm run build --prefix sample",
28
30
  "sample": "npm run build && cd sample && npm install && npm run dev",
31
+ "precheck": "npm run build",
29
32
  "check": "tsc --project tsconfig.json --noEmit"
30
33
  },
31
34
  "keywords": [
@@ -49,7 +52,7 @@
49
52
  "vue": "^3.5.43"
50
53
  },
51
54
  "dependencies": {
52
- "@mochabug/adapt-web": "2.0.0-beta.2",
53
- "@mochabug/adapt-core": "2.0.0-beta.2"
55
+ "@mochabug/adapt-web": "2.0.0-beta.4",
56
+ "@mochabug/adapt-core": "2.0.0-beta.4"
54
57
  }
55
58
  }