@mochabug/adapt-vue 1.0.1-rc.8 → 2.0.0-beta.0

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.
@@ -1,211 +1,2 @@
1
- import { type AdaptWebClientOptions, type ForkDisplay, type Output, type PersistOptions, type SignalValue, type StatusJson, type StatusText } from "@mochabug/adapt-web";
2
- import { type PropType } from "vue";
3
1
  export * from "@mochabug/adapt-web";
4
- export { AdaptCap } from "./AdaptCap.js";
5
- /**
6
- * Vue component for embedding Adapt automations.
7
- * Renders `<adapt-automation>` custom element and syncs non-serializable properties via ref.
8
- */
9
- export declare const Adapt: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
10
- id: {
11
- type: StringConstructor;
12
- required: true;
13
- };
14
- sessionToken: {
15
- type: StringConstructor;
16
- default: undefined;
17
- };
18
- authToken: {
19
- type: StringConstructor;
20
- default: undefined;
21
- };
22
- transmitter: {
23
- type: StringConstructor;
24
- default: undefined;
25
- };
26
- signals: {
27
- type: PropType<{
28
- [key: string]: SignalValue;
29
- }>;
30
- default: undefined;
31
- };
32
- inheritToken: {
33
- type: StringConstructor;
34
- default: undefined;
35
- };
36
- inheritFrom: {
37
- type: PropType<{
38
- hash: string;
39
- } | {
40
- param: string;
41
- }>;
42
- default: undefined;
43
- };
44
- forkDisplay: {
45
- type: PropType<ForkDisplay>;
46
- default: undefined;
47
- };
48
- darkMode: {
49
- type: BooleanConstructor;
50
- default: boolean;
51
- };
52
- autoResizing: {
53
- type: BooleanConstructor;
54
- default: boolean;
55
- };
56
- classNames: {
57
- type: PropType<AdaptWebClientOptions["classNames"]>;
58
- default: undefined;
59
- };
60
- styles: {
61
- type: PropType<Partial<CSSStyleDeclaration>>;
62
- default: undefined;
63
- };
64
- challengeToken: {
65
- type: StringConstructor;
66
- default: undefined;
67
- };
68
- requiresChallenge: {
69
- type: BooleanConstructor;
70
- default: boolean;
71
- };
72
- capWidgetOptions: {
73
- type: PropType<AdaptWebClientOptions["capWidgetOptions"]>;
74
- default: undefined;
75
- };
76
- persist: {
77
- type: PropType<boolean | PersistOptions>;
78
- default: undefined;
79
- };
80
- text: {
81
- type: PropType<StatusText>;
82
- default: undefined;
83
- };
84
- }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
85
- [key: string]: any;
86
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
87
- session: (_status: StatusJson, _fork?: string) => true;
88
- output: (_output: Output) => true;
89
- forkActive: (_active: boolean) => true;
90
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
91
- id: {
92
- type: StringConstructor;
93
- required: true;
94
- };
95
- sessionToken: {
96
- type: StringConstructor;
97
- default: undefined;
98
- };
99
- authToken: {
100
- type: StringConstructor;
101
- default: undefined;
102
- };
103
- transmitter: {
104
- type: StringConstructor;
105
- default: undefined;
106
- };
107
- signals: {
108
- type: PropType<{
109
- [key: string]: SignalValue;
110
- }>;
111
- default: undefined;
112
- };
113
- inheritToken: {
114
- type: StringConstructor;
115
- default: undefined;
116
- };
117
- inheritFrom: {
118
- type: PropType<{
119
- hash: string;
120
- } | {
121
- param: string;
122
- }>;
123
- default: undefined;
124
- };
125
- forkDisplay: {
126
- type: PropType<ForkDisplay>;
127
- default: undefined;
128
- };
129
- darkMode: {
130
- type: BooleanConstructor;
131
- default: boolean;
132
- };
133
- autoResizing: {
134
- type: BooleanConstructor;
135
- default: boolean;
136
- };
137
- classNames: {
138
- type: PropType<AdaptWebClientOptions["classNames"]>;
139
- default: undefined;
140
- };
141
- styles: {
142
- type: PropType<Partial<CSSStyleDeclaration>>;
143
- default: undefined;
144
- };
145
- challengeToken: {
146
- type: StringConstructor;
147
- default: undefined;
148
- };
149
- requiresChallenge: {
150
- type: BooleanConstructor;
151
- default: boolean;
152
- };
153
- capWidgetOptions: {
154
- type: PropType<AdaptWebClientOptions["capWidgetOptions"]>;
155
- default: undefined;
156
- };
157
- persist: {
158
- type: PropType<boolean | PersistOptions>;
159
- default: undefined;
160
- };
161
- text: {
162
- type: PropType<StatusText>;
163
- default: undefined;
164
- };
165
- }>> & Readonly<{
166
- onOutput?: ((_output: Output) => any) | undefined;
167
- onSession?: ((_status: StatusJson, _fork?: string | undefined) => any) | undefined;
168
- onForkActive?: ((_active: boolean) => any) | undefined;
169
- }>, {
170
- darkMode: boolean;
171
- classNames: {
172
- root?: string;
173
- wrapper?: string;
174
- frame?: string;
175
- frameMain?: string;
176
- frameFork?: string;
177
- iframe?: string;
178
- dialogBackdrop?: string;
179
- dialog?: string;
180
- dialogBanner?: string;
181
- dialogClose?: string;
182
- dragHandle?: string;
183
- expandButton?: string;
184
- statusMessage?: string;
185
- statusCard?: string;
186
- toolbar?: string;
187
- toolbarTitle?: string;
188
- toolbarButton?: string;
189
- } | undefined;
190
- capWidgetOptions: import("@mochabug/adapt-web").CapWidgetOptions | undefined;
191
- sessionToken: string;
192
- authToken: string;
193
- transmitter: string;
194
- signals: {
195
- [key: string]: any;
196
- };
197
- inheritToken: string;
198
- inheritFrom: {
199
- hash: string;
200
- } | {
201
- param: string;
202
- };
203
- forkDisplay: ForkDisplay;
204
- autoResizing: boolean;
205
- styles: Partial<CSSStyleDeclaration>;
206
- challengeToken: string;
207
- requiresChallenge: boolean;
208
- persist: boolean | PersistOptions;
209
- text: StatusText;
210
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
211
- export default Adapt;
2
+ export { AdaptAutomation, default } from "./AdaptAutomation.js";
package/package.json CHANGED
@@ -1,14 +1,21 @@
1
1
  {
2
2
  "name": "@mochabug/adapt-vue",
3
- "version": "1.0.1-rc.8",
3
+ "version": "2.0.0-beta.0",
4
4
  "description": "Vue component for Adapt automation platform",
5
5
  "type": "module",
6
- "main": "./dist/esm/index.js",
7
6
  "types": "./dist/types/index.d.ts",
8
7
  "exports": {
9
8
  ".": {
10
9
  "types": "./dist/types/index.d.ts",
11
10
  "import": "./dist/esm/index.js"
11
+ },
12
+ "./core": {
13
+ "types": "./dist/types/core.d.ts",
14
+ "import": "./dist/esm/core.js"
15
+ },
16
+ "./cap": {
17
+ "types": "./dist/types/cap.d.ts",
18
+ "import": "./dist/esm/cap.js"
12
19
  }
13
20
  },
14
21
  "files": [
@@ -18,7 +25,7 @@
18
25
  "build:esm": "tsc --project tsconfig.esm.json",
19
26
  "build:types": "tsc --project tsconfig.types.json",
20
27
  "build": "rm -rf dist && npm run build:esm && npm run build:types",
21
- "sample": "npm run build && cd sample && npm run dev"
28
+ "sample": "npm run build && cd sample && npm install && npm run dev"
22
29
  },
23
30
  "keywords": [
24
31
  "adapt",
@@ -27,15 +34,21 @@
27
34
  "vue"
28
35
  ],
29
36
  "author": "mochabug AB",
37
+ "repository": {
38
+ "type": "git",
39
+ "url": "git+https://github.com/mochabug/adapt-clients.git",
40
+ "directory": "clients/js/vue"
41
+ },
30
42
  "license": "ISC",
31
43
  "peerDependencies": {
32
44
  "vue": "^3.0.0"
33
45
  },
34
46
  "devDependencies": {
35
- "typescript": "^5.9.3",
36
- "vue": "^3.5.30"
47
+ "typescript": "^7.0.2",
48
+ "vue": "^3.5.43"
37
49
  },
38
50
  "dependencies": {
39
- "@mochabug/adapt-web": "^1.0.1-rc.8"
51
+ "@mochabug/adapt-web": "2.0.0-beta.0",
52
+ "@mochabug/adapt-core": "2.0.0-beta.0"
40
53
  }
41
54
  }