@mochabug/adapt-vue 1.0.0-rc25 → 1.0.0-rc26
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 +5 -1
- package/dist/types/index.d.ts +2 -0
- package/package.json +2 -2
package/dist/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AdaptAutomationElement, } from "@mochabug/adapt-web";
|
|
2
|
-
import { defineComponent, h, ref, watchEffect
|
|
2
|
+
import { defineComponent, h, ref, watchEffect } from "vue";
|
|
3
3
|
// Re-export everything from web
|
|
4
4
|
export * from "@mochabug/adapt-web";
|
|
5
5
|
// Export standalone Cap widget component
|
|
@@ -86,6 +86,7 @@ export const Adapt = defineComponent({
|
|
|
86
86
|
emits: {
|
|
87
87
|
session: (_status, _fork) => true,
|
|
88
88
|
output: (_output) => true,
|
|
89
|
+
forkActive: (_active) => true,
|
|
89
90
|
},
|
|
90
91
|
setup(props, { emit, attrs }) {
|
|
91
92
|
const elementRef = ref(null);
|
|
@@ -105,6 +106,9 @@ export const Adapt = defineComponent({
|
|
|
105
106
|
el.onOutputCallback = (output) => {
|
|
106
107
|
emit("output", output);
|
|
107
108
|
};
|
|
109
|
+
el.onForkActiveCallback = (active) => {
|
|
110
|
+
emit("forkActive", active);
|
|
111
|
+
};
|
|
108
112
|
};
|
|
109
113
|
watchEffect(() => {
|
|
110
114
|
syncProperties();
|
package/dist/types/index.d.ts
CHANGED
|
@@ -86,6 +86,7 @@ export declare const Adapt: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
86
86
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
87
87
|
session: (_status: StatusJson, _fork?: string) => true;
|
|
88
88
|
output: (_output: Output) => true;
|
|
89
|
+
forkActive: (_active: boolean) => true;
|
|
89
90
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
90
91
|
id: {
|
|
91
92
|
type: StringConstructor;
|
|
@@ -164,6 +165,7 @@ export declare const Adapt: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
164
165
|
}>> & Readonly<{
|
|
165
166
|
onOutput?: ((_output: Output) => any) | undefined;
|
|
166
167
|
onSession?: ((_status: StatusJson, _fork?: string | undefined) => any) | undefined;
|
|
168
|
+
onForkActive?: ((_active: boolean) => any) | undefined;
|
|
167
169
|
}>, {
|
|
168
170
|
darkMode: boolean;
|
|
169
171
|
classNames: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mochabug/adapt-vue",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-rc26",
|
|
4
4
|
"description": "Vue component for Adapt automation platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/esm/index.js",
|
|
@@ -36,6 +36,6 @@
|
|
|
36
36
|
"vue": "^3.5.29"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@mochabug/adapt-web": "^1.0.0-
|
|
39
|
+
"@mochabug/adapt-web": "^1.0.0-rc49"
|
|
40
40
|
}
|
|
41
41
|
}
|