@quiltt/vue 5.1.2
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/LICENSE.md +9 -0
- package/README.md +212 -0
- package/dist/components/index.cjs +707 -0
- package/dist/components/index.d.ts +278 -0
- package/dist/components/index.js +703 -0
- package/dist/composables/index.cjs +617 -0
- package/dist/composables/index.d.ts +191 -0
- package/dist/composables/index.js +609 -0
- package/dist/index.cjs +75 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +10 -0
- package/dist/plugin/index.cjs +176 -0
- package/dist/plugin/index.d.ts +48 -0
- package/dist/plugin/index.js +171 -0
- package/package.json +81 -0
- package/src/components/QuilttButton.ts +121 -0
- package/src/components/QuilttConnector.ts +215 -0
- package/src/components/QuilttContainer.ts +130 -0
- package/src/components/index.ts +3 -0
- package/src/composables/index.ts +7 -0
- package/src/composables/useQuilttConnector.ts +312 -0
- package/src/composables/useQuilttInstitutions.ts +114 -0
- package/src/composables/useQuilttResolvable.ts +94 -0
- package/src/composables/useQuilttSession.ts +239 -0
- package/src/composables/useQuilttSettings.ts +15 -0
- package/src/composables/useSession.ts +74 -0
- package/src/composables/useStorage.ts +47 -0
- package/src/constants/deprecation-warnings.ts +2 -0
- package/src/index.ts +34 -0
- package/src/plugin/QuilttPlugin.ts +204 -0
- package/src/plugin/index.ts +23 -0
- package/src/plugin/keys.ts +26 -0
- package/src/utils/index.ts +7 -0
- package/src/utils/telemetry.ts +73 -0
- package/src/version.ts +1 -0
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
import { ConnectorSDKCallbackMetadata, ConnectorSDKEventType } from '@quiltt/core';
|
|
4
|
+
|
|
5
|
+
declare const QuilttButton: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
6
|
+
/** Quiltt Connector ID */
|
|
7
|
+
connectorId: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
/** Existing connection ID for reconnection */
|
|
12
|
+
connectionId: {
|
|
13
|
+
type: PropType<string | undefined>;
|
|
14
|
+
default: undefined;
|
|
15
|
+
};
|
|
16
|
+
/** Pre-select a specific institution */
|
|
17
|
+
institution: {
|
|
18
|
+
type: PropType<string | undefined>;
|
|
19
|
+
default: undefined;
|
|
20
|
+
};
|
|
21
|
+
/** Deep link URL for OAuth callbacks (mobile apps) */
|
|
22
|
+
appLauncherUrl: {
|
|
23
|
+
type: PropType<string | undefined>;
|
|
24
|
+
default: undefined;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated Use `appLauncherUrl` instead. This property will be removed in a future version.
|
|
28
|
+
* The OAuth redirect URL for mobile or embedded webview flows.
|
|
29
|
+
*/
|
|
30
|
+
oauthRedirectUrl: {
|
|
31
|
+
type: PropType<string | undefined>;
|
|
32
|
+
default: undefined;
|
|
33
|
+
};
|
|
34
|
+
/** Render as a different element */
|
|
35
|
+
as: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
40
|
+
[key: string]: any;
|
|
41
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
42
|
+
/** Connector loaded */
|
|
43
|
+
load: (_metadata: ConnectorSDKCallbackMetadata) => true;
|
|
44
|
+
/** Connector opened */
|
|
45
|
+
open: (_metadata: ConnectorSDKCallbackMetadata) => true;
|
|
46
|
+
/** Connection successful */
|
|
47
|
+
'exit-success': (_metadata: ConnectorSDKCallbackMetadata) => true;
|
|
48
|
+
/** User cancelled */
|
|
49
|
+
'exit-abort': (_metadata: ConnectorSDKCallbackMetadata) => true;
|
|
50
|
+
/** Error occurred */
|
|
51
|
+
'exit-error': (_metadata: ConnectorSDKCallbackMetadata) => true;
|
|
52
|
+
/** Connector exited (any reason) */
|
|
53
|
+
exit: (_type: ConnectorSDKEventType, _metadata: ConnectorSDKCallbackMetadata) => true;
|
|
54
|
+
/** Any connector event */
|
|
55
|
+
event: (_type: ConnectorSDKEventType, _metadata: ConnectorSDKCallbackMetadata) => true;
|
|
56
|
+
}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
57
|
+
/** Quiltt Connector ID */
|
|
58
|
+
connectorId: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
required: true;
|
|
61
|
+
};
|
|
62
|
+
/** Existing connection ID for reconnection */
|
|
63
|
+
connectionId: {
|
|
64
|
+
type: PropType<string | undefined>;
|
|
65
|
+
default: undefined;
|
|
66
|
+
};
|
|
67
|
+
/** Pre-select a specific institution */
|
|
68
|
+
institution: {
|
|
69
|
+
type: PropType<string | undefined>;
|
|
70
|
+
default: undefined;
|
|
71
|
+
};
|
|
72
|
+
/** Deep link URL for OAuth callbacks (mobile apps) */
|
|
73
|
+
appLauncherUrl: {
|
|
74
|
+
type: PropType<string | undefined>;
|
|
75
|
+
default: undefined;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* @deprecated Use `appLauncherUrl` instead. This property will be removed in a future version.
|
|
79
|
+
* The OAuth redirect URL for mobile or embedded webview flows.
|
|
80
|
+
*/
|
|
81
|
+
oauthRedirectUrl: {
|
|
82
|
+
type: PropType<string | undefined>;
|
|
83
|
+
default: undefined;
|
|
84
|
+
};
|
|
85
|
+
/** Render as a different element */
|
|
86
|
+
as: {
|
|
87
|
+
type: StringConstructor;
|
|
88
|
+
default: string;
|
|
89
|
+
};
|
|
90
|
+
}>> & Readonly<{
|
|
91
|
+
onLoad?: ((_metadata: ConnectorSDKCallbackMetadata) => any) | undefined;
|
|
92
|
+
onOpen?: ((_metadata: ConnectorSDKCallbackMetadata) => any) | undefined;
|
|
93
|
+
"onExit-success"?: ((_metadata: ConnectorSDKCallbackMetadata) => any) | undefined;
|
|
94
|
+
"onExit-abort"?: ((_metadata: ConnectorSDKCallbackMetadata) => any) | undefined;
|
|
95
|
+
"onExit-error"?: ((_metadata: ConnectorSDKCallbackMetadata) => any) | undefined;
|
|
96
|
+
onExit?: ((_type: ConnectorSDKEventType, _metadata: ConnectorSDKCallbackMetadata) => any) | undefined;
|
|
97
|
+
onEvent?: ((_type: ConnectorSDKEventType, _metadata: ConnectorSDKCallbackMetadata) => any) | undefined;
|
|
98
|
+
}>, {
|
|
99
|
+
connectionId: string | undefined;
|
|
100
|
+
institution: string | undefined;
|
|
101
|
+
appLauncherUrl: string | undefined;
|
|
102
|
+
oauthRedirectUrl: string | undefined;
|
|
103
|
+
as: string;
|
|
104
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
105
|
+
|
|
106
|
+
interface QuilttConnectorHandle {
|
|
107
|
+
handleOAuthCallback: (url: string) => void;
|
|
108
|
+
}
|
|
109
|
+
declare const QuilttConnector: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
110
|
+
/** Quiltt Connector ID */
|
|
111
|
+
connectorId: {
|
|
112
|
+
type: StringConstructor;
|
|
113
|
+
required: true;
|
|
114
|
+
};
|
|
115
|
+
/** Existing connection ID for reconnection */
|
|
116
|
+
connectionId: {
|
|
117
|
+
type: PropType<string | undefined>;
|
|
118
|
+
default: undefined;
|
|
119
|
+
};
|
|
120
|
+
/** Pre-select a specific institution */
|
|
121
|
+
institution: {
|
|
122
|
+
type: PropType<string | undefined>;
|
|
123
|
+
default: undefined;
|
|
124
|
+
};
|
|
125
|
+
/** Deep link URL for OAuth callbacks (mobile apps) */
|
|
126
|
+
appLauncherUrl: {
|
|
127
|
+
type: PropType<string | undefined>;
|
|
128
|
+
default: undefined;
|
|
129
|
+
};
|
|
130
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
131
|
+
[key: string]: any;
|
|
132
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
133
|
+
/** Connector loaded */
|
|
134
|
+
load: (_metadata: ConnectorSDKCallbackMetadata) => true;
|
|
135
|
+
/** Connection successful */
|
|
136
|
+
'exit-success': (_metadata: ConnectorSDKCallbackMetadata) => true;
|
|
137
|
+
/** User cancelled */
|
|
138
|
+
'exit-abort': (_metadata: ConnectorSDKCallbackMetadata) => true;
|
|
139
|
+
/** Error occurred */
|
|
140
|
+
'exit-error': (_metadata: ConnectorSDKCallbackMetadata) => true;
|
|
141
|
+
/** Any connector event */
|
|
142
|
+
event: (_type: ConnectorSDKEventType, _metadata: ConnectorSDKCallbackMetadata) => true;
|
|
143
|
+
/** OAuth URL requested (for native handling) */
|
|
144
|
+
navigate: (_url: string) => true;
|
|
145
|
+
}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
146
|
+
/** Quiltt Connector ID */
|
|
147
|
+
connectorId: {
|
|
148
|
+
type: StringConstructor;
|
|
149
|
+
required: true;
|
|
150
|
+
};
|
|
151
|
+
/** Existing connection ID for reconnection */
|
|
152
|
+
connectionId: {
|
|
153
|
+
type: PropType<string | undefined>;
|
|
154
|
+
default: undefined;
|
|
155
|
+
};
|
|
156
|
+
/** Pre-select a specific institution */
|
|
157
|
+
institution: {
|
|
158
|
+
type: PropType<string | undefined>;
|
|
159
|
+
default: undefined;
|
|
160
|
+
};
|
|
161
|
+
/** Deep link URL for OAuth callbacks (mobile apps) */
|
|
162
|
+
appLauncherUrl: {
|
|
163
|
+
type: PropType<string | undefined>;
|
|
164
|
+
default: undefined;
|
|
165
|
+
};
|
|
166
|
+
}>> & Readonly<{
|
|
167
|
+
onLoad?: ((_metadata: ConnectorSDKCallbackMetadata) => any) | undefined;
|
|
168
|
+
"onExit-success"?: ((_metadata: ConnectorSDKCallbackMetadata) => any) | undefined;
|
|
169
|
+
"onExit-abort"?: ((_metadata: ConnectorSDKCallbackMetadata) => any) | undefined;
|
|
170
|
+
"onExit-error"?: ((_metadata: ConnectorSDKCallbackMetadata) => any) | undefined;
|
|
171
|
+
onEvent?: ((_type: ConnectorSDKEventType, _metadata: ConnectorSDKCallbackMetadata) => any) | undefined;
|
|
172
|
+
onNavigate?: ((_url: string) => any) | undefined;
|
|
173
|
+
}>, {
|
|
174
|
+
connectionId: string | undefined;
|
|
175
|
+
institution: string | undefined;
|
|
176
|
+
appLauncherUrl: string | undefined;
|
|
177
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
178
|
+
|
|
179
|
+
declare const QuilttContainer: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
180
|
+
/** Quiltt Connector ID */
|
|
181
|
+
connectorId: {
|
|
182
|
+
type: StringConstructor;
|
|
183
|
+
required: true;
|
|
184
|
+
};
|
|
185
|
+
/** Existing connection ID for reconnection */
|
|
186
|
+
connectionId: {
|
|
187
|
+
type: PropType<string | undefined>;
|
|
188
|
+
default: undefined;
|
|
189
|
+
};
|
|
190
|
+
/** Pre-select a specific institution */
|
|
191
|
+
institution: {
|
|
192
|
+
type: PropType<string | undefined>;
|
|
193
|
+
default: undefined;
|
|
194
|
+
};
|
|
195
|
+
/** Deep link URL for OAuth callbacks (mobile apps) */
|
|
196
|
+
appLauncherUrl: {
|
|
197
|
+
type: PropType<string | undefined>;
|
|
198
|
+
default: undefined;
|
|
199
|
+
};
|
|
200
|
+
/**
|
|
201
|
+
* @deprecated Use `appLauncherUrl` instead. This property will be removed in a future version.
|
|
202
|
+
* The OAuth redirect URL for mobile or embedded webview flows.
|
|
203
|
+
*/
|
|
204
|
+
oauthRedirectUrl: {
|
|
205
|
+
type: PropType<string | undefined>;
|
|
206
|
+
default: undefined;
|
|
207
|
+
};
|
|
208
|
+
/** Render as a different element */
|
|
209
|
+
as: {
|
|
210
|
+
type: StringConstructor;
|
|
211
|
+
default: string;
|
|
212
|
+
};
|
|
213
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
214
|
+
[key: string]: any;
|
|
215
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
216
|
+
/** Connector loaded */
|
|
217
|
+
load: (_metadata: ConnectorSDKCallbackMetadata) => true;
|
|
218
|
+
/** Connection successful */
|
|
219
|
+
'exit-success': (_metadata: ConnectorSDKCallbackMetadata) => true;
|
|
220
|
+
/** User cancelled */
|
|
221
|
+
'exit-abort': (_metadata: ConnectorSDKCallbackMetadata) => true;
|
|
222
|
+
/** Error occurred */
|
|
223
|
+
'exit-error': (_metadata: ConnectorSDKCallbackMetadata) => true;
|
|
224
|
+
/** Connector exited (any reason) */
|
|
225
|
+
exit: (_type: ConnectorSDKEventType, _metadata: ConnectorSDKCallbackMetadata) => true;
|
|
226
|
+
/** Any connector event */
|
|
227
|
+
event: (_type: ConnectorSDKEventType, _metadata: ConnectorSDKCallbackMetadata) => true;
|
|
228
|
+
}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
229
|
+
/** Quiltt Connector ID */
|
|
230
|
+
connectorId: {
|
|
231
|
+
type: StringConstructor;
|
|
232
|
+
required: true;
|
|
233
|
+
};
|
|
234
|
+
/** Existing connection ID for reconnection */
|
|
235
|
+
connectionId: {
|
|
236
|
+
type: PropType<string | undefined>;
|
|
237
|
+
default: undefined;
|
|
238
|
+
};
|
|
239
|
+
/** Pre-select a specific institution */
|
|
240
|
+
institution: {
|
|
241
|
+
type: PropType<string | undefined>;
|
|
242
|
+
default: undefined;
|
|
243
|
+
};
|
|
244
|
+
/** Deep link URL for OAuth callbacks (mobile apps) */
|
|
245
|
+
appLauncherUrl: {
|
|
246
|
+
type: PropType<string | undefined>;
|
|
247
|
+
default: undefined;
|
|
248
|
+
};
|
|
249
|
+
/**
|
|
250
|
+
* @deprecated Use `appLauncherUrl` instead. This property will be removed in a future version.
|
|
251
|
+
* The OAuth redirect URL for mobile or embedded webview flows.
|
|
252
|
+
*/
|
|
253
|
+
oauthRedirectUrl: {
|
|
254
|
+
type: PropType<string | undefined>;
|
|
255
|
+
default: undefined;
|
|
256
|
+
};
|
|
257
|
+
/** Render as a different element */
|
|
258
|
+
as: {
|
|
259
|
+
type: StringConstructor;
|
|
260
|
+
default: string;
|
|
261
|
+
};
|
|
262
|
+
}>> & Readonly<{
|
|
263
|
+
onLoad?: ((_metadata: ConnectorSDKCallbackMetadata) => any) | undefined;
|
|
264
|
+
"onExit-success"?: ((_metadata: ConnectorSDKCallbackMetadata) => any) | undefined;
|
|
265
|
+
"onExit-abort"?: ((_metadata: ConnectorSDKCallbackMetadata) => any) | undefined;
|
|
266
|
+
"onExit-error"?: ((_metadata: ConnectorSDKCallbackMetadata) => any) | undefined;
|
|
267
|
+
onExit?: ((_type: ConnectorSDKEventType, _metadata: ConnectorSDKCallbackMetadata) => any) | undefined;
|
|
268
|
+
onEvent?: ((_type: ConnectorSDKEventType, _metadata: ConnectorSDKCallbackMetadata) => any) | undefined;
|
|
269
|
+
}>, {
|
|
270
|
+
connectionId: string | undefined;
|
|
271
|
+
institution: string | undefined;
|
|
272
|
+
appLauncherUrl: string | undefined;
|
|
273
|
+
oauthRedirectUrl: string | undefined;
|
|
274
|
+
as: string;
|
|
275
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
276
|
+
|
|
277
|
+
export { QuilttButton, QuilttConnector, QuilttContainer };
|
|
278
|
+
export type { QuilttConnectorHandle };
|