@termix-it/vue-tool 1.0.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.
- package/README.md +650 -0
- package/dist/adapters/EthersV5Adapter.d.ts +20 -0
- package/dist/adapters/EthersV5Adapter.d.ts.map +1 -0
- package/dist/adapters/EthersV6Adapter.d.ts +20 -0
- package/dist/adapters/EthersV6Adapter.d.ts.map +1 -0
- package/dist/components/AP2PaymentFlow.vue.d.ts +44 -0
- package/dist/components/AP2PaymentFlow.vue.d.ts.map +1 -0
- package/dist/components/ChatInterface.vue.d.ts +67 -0
- package/dist/components/ChatInterface.vue.d.ts.map +1 -0
- package/dist/components/ChatWidget.vue.d.ts +80 -0
- package/dist/components/ChatWidget.vue.d.ts.map +1 -0
- package/dist/components/FunctionCallDisplay.vue.d.ts +38 -0
- package/dist/components/FunctionCallDisplay.vue.d.ts.map +1 -0
- package/dist/components/PaymentApprovalModal.vue.d.ts +46 -0
- package/dist/components/PaymentApprovalModal.vue.d.ts.map +1 -0
- package/dist/components/SourcesBadge.vue.d.ts +20 -0
- package/dist/components/SourcesBadge.vue.d.ts.map +1 -0
- package/dist/components/WalletConnect.vue.d.ts +24 -0
- package/dist/components/WalletConnect.vue.d.ts.map +1 -0
- package/dist/components/WalletIndicator.vue.d.ts +33 -0
- package/dist/components/WalletIndicator.vue.d.ts.map +1 -0
- package/dist/components/index.d.ts +14 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/composables/index.d.ts +10 -0
- package/dist/composables/index.d.ts.map +1 -0
- package/dist/composables/useAP2Payment.d.ts +96 -0
- package/dist/composables/useAP2Payment.d.ts.map +1 -0
- package/dist/composables/useDI.d.ts +75 -0
- package/dist/composables/useDI.d.ts.map +1 -0
- package/dist/composables/useInternalDI.d.ts +23 -0
- package/dist/composables/useInternalDI.d.ts.map +1 -0
- package/dist/composables/useToast.d.ts +14 -0
- package/dist/composables/useToast.d.ts.map +1 -0
- package/dist/core/container.d.ts +99 -0
- package/dist/core/container.d.ts.map +1 -0
- package/dist/core/index.d.ts +4 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/internal-container.d.ts +26 -0
- package/dist/core/internal-container.d.ts.map +1 -0
- package/dist/core/tokens.d.ts +44 -0
- package/dist/core/tokens.d.ts.map +1 -0
- package/dist/core/types.d.ts +104 -0
- package/dist/core/types.d.ts.map +1 -0
- package/dist/executors/AP2Executor.d.ts +20 -0
- package/dist/executors/AP2Executor.d.ts.map +1 -0
- package/dist/executors/APIExecutor.d.ts +35 -0
- package/dist/executors/APIExecutor.d.ts.map +1 -0
- package/dist/executors/ContractExecutor.d.ts +41 -0
- package/dist/executors/ContractExecutor.d.ts.map +1 -0
- package/dist/executors/ExecutorRegistry.d.ts +99 -0
- package/dist/executors/ExecutorRegistry.d.ts.map +1 -0
- package/dist/executors/FiatExecutor.d.ts +31 -0
- package/dist/executors/FiatExecutor.d.ts.map +1 -0
- package/dist/executors/base/BaseExecutor.d.ts +87 -0
- package/dist/executors/base/BaseExecutor.d.ts.map +1 -0
- package/dist/executors/base/index.d.ts +2 -0
- package/dist/executors/base/index.d.ts.map +1 -0
- package/dist/executors/index.d.ts +7 -0
- package/dist/executors/index.d.ts.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +17473 -0
- package/dist/index.js.map +1 -0
- package/dist/interfaces/IAPIClient.d.ts +179 -0
- package/dist/interfaces/IAPIClient.d.ts.map +1 -0
- package/dist/interfaces/IEthersAdapter.d.ts +116 -0
- package/dist/interfaces/IEthersAdapter.d.ts.map +1 -0
- package/dist/interfaces/IExecutor.d.ts +64 -0
- package/dist/interfaces/IExecutor.d.ts.map +1 -0
- package/dist/interfaces/IRenderer.d.ts +117 -0
- package/dist/interfaces/IRenderer.d.ts.map +1 -0
- package/dist/interfaces/index.d.ts +5 -0
- package/dist/interfaces/index.d.ts.map +1 -0
- package/dist/lib/markdown.d.ts +21 -0
- package/dist/lib/markdown.d.ts.map +1 -0
- package/dist/lib/utils.d.ts +72 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/renderers/AP2Renderer.d.ts +12 -0
- package/dist/renderers/AP2Renderer.d.ts.map +1 -0
- package/dist/renderers/APIRenderer.d.ts +12 -0
- package/dist/renderers/APIRenderer.d.ts.map +1 -0
- package/dist/renderers/BaseRenderer.d.ts +16 -0
- package/dist/renderers/BaseRenderer.d.ts.map +1 -0
- package/dist/renderers/ContractRenderer.d.ts +14 -0
- package/dist/renderers/ContractRenderer.d.ts.map +1 -0
- package/dist/renderers/FiatRenderer.d.ts +12 -0
- package/dist/renderers/FiatRenderer.d.ts.map +1 -0
- package/dist/renderers/RendererRegistry.d.ts +78 -0
- package/dist/renderers/RendererRegistry.d.ts.map +1 -0
- package/dist/renderers/index.d.ts +12 -0
- package/dist/renderers/index.d.ts.map +1 -0
- package/dist/services/api.d.ts +55 -0
- package/dist/services/api.d.ts.map +1 -0
- package/dist/services/functionCallExecutor.d.ts +32 -0
- package/dist/services/functionCallExecutor.d.ts.map +1 -0
- package/dist/services/moonpayService.d.ts +82 -0
- package/dist/services/moonpayService.d.ts.map +1 -0
- package/dist/services/toolCallProcessor.d.ts +12 -0
- package/dist/services/toolCallProcessor.d.ts.map +1 -0
- package/dist/services/walletService.d.ts +250 -0
- package/dist/services/walletService.d.ts.map +1 -0
- package/dist/style.css +1 -0
- package/dist/types/index.d.ts +109 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/moonpay.d.ts +31 -0
- package/dist/types/moonpay.d.ts.map +1 -0
- package/package.json +87 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { IWalletService } from '../services/walletService';
|
|
2
|
+
|
|
3
|
+
interface NetworkConfig {
|
|
4
|
+
id: string;
|
|
5
|
+
chainId: number;
|
|
6
|
+
label: string;
|
|
7
|
+
shortLabel: string;
|
|
8
|
+
currency: string;
|
|
9
|
+
currencySymbol: string;
|
|
10
|
+
explorerUrl: string;
|
|
11
|
+
isTestnet: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
14
|
+
walletService: IWalletService;
|
|
15
|
+
cartMandate?: any;
|
|
16
|
+
paymentMandate?: any;
|
|
17
|
+
merchantAddress?: string;
|
|
18
|
+
totalAmount?: string;
|
|
19
|
+
sessionId?: string;
|
|
20
|
+
network?: NetworkConfig;
|
|
21
|
+
onPaymentComplete?: (txHash: string) => void;
|
|
22
|
+
onPaymentError?: (error: string) => void;
|
|
23
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
24
|
+
walletService: IWalletService;
|
|
25
|
+
cartMandate?: any;
|
|
26
|
+
paymentMandate?: any;
|
|
27
|
+
merchantAddress?: string;
|
|
28
|
+
totalAmount?: string;
|
|
29
|
+
sessionId?: string;
|
|
30
|
+
network?: NetworkConfig;
|
|
31
|
+
onPaymentComplete?: (txHash: string) => void;
|
|
32
|
+
onPaymentError?: (error: string) => void;
|
|
33
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
34
|
+
export default _default;
|
|
35
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
36
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
37
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
38
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
39
|
+
} : {
|
|
40
|
+
type: import('vue').PropType<T[K]>;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=AP2PaymentFlow.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AP2PaymentFlow.vue.d.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KAAE;CAAE,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { Message, ChatInterfaceProps, FunctionCall, ExecutionResult } from '../types';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ChatInterfaceProps>, {
|
|
4
|
+
placeholder: string;
|
|
5
|
+
enableStreamingMode: boolean;
|
|
6
|
+
showHeader: boolean;
|
|
7
|
+
showUsageInfo: boolean;
|
|
8
|
+
showTimestamp: boolean;
|
|
9
|
+
maxKnowledgeResults: number;
|
|
10
|
+
className: string;
|
|
11
|
+
messagesClassName: string;
|
|
12
|
+
inputClassName: string;
|
|
13
|
+
proxyMode: boolean;
|
|
14
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
+
messageSent: (message: Message) => void;
|
|
16
|
+
responseReceived: (message: Message) => void;
|
|
17
|
+
functionExecuted: (functionCall: FunctionCall, result: ExecutionResult) => void;
|
|
18
|
+
error: (error: any) => void;
|
|
19
|
+
messagesChange: (messages: Message[]) => void;
|
|
20
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ChatInterfaceProps>, {
|
|
21
|
+
placeholder: string;
|
|
22
|
+
enableStreamingMode: boolean;
|
|
23
|
+
showHeader: boolean;
|
|
24
|
+
showUsageInfo: boolean;
|
|
25
|
+
showTimestamp: boolean;
|
|
26
|
+
maxKnowledgeResults: number;
|
|
27
|
+
className: string;
|
|
28
|
+
messagesClassName: string;
|
|
29
|
+
inputClassName: string;
|
|
30
|
+
proxyMode: boolean;
|
|
31
|
+
}>>> & Readonly<{
|
|
32
|
+
onError?: ((error: any) => any) | undefined;
|
|
33
|
+
onMessageSent?: ((message: Message) => any) | undefined;
|
|
34
|
+
onResponseReceived?: ((message: Message) => any) | undefined;
|
|
35
|
+
onFunctionExecuted?: ((functionCall: FunctionCall, result: ExecutionResult) => any) | undefined;
|
|
36
|
+
onMessagesChange?: ((messages: Message[]) => any) | undefined;
|
|
37
|
+
}>, {
|
|
38
|
+
placeholder: string;
|
|
39
|
+
proxyMode: boolean;
|
|
40
|
+
enableStreamingMode: boolean;
|
|
41
|
+
showHeader: boolean;
|
|
42
|
+
showUsageInfo: boolean;
|
|
43
|
+
showTimestamp: boolean;
|
|
44
|
+
maxKnowledgeResults: number;
|
|
45
|
+
className: string;
|
|
46
|
+
messagesClassName: string;
|
|
47
|
+
inputClassName: string;
|
|
48
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
49
|
+
export default _default;
|
|
50
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
51
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
52
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
53
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
54
|
+
} : {
|
|
55
|
+
type: import('vue').PropType<T[K]>;
|
|
56
|
+
required: true;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
type __VLS_WithDefaults<P, D> = {
|
|
60
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
61
|
+
default: D[K];
|
|
62
|
+
}> : P[K];
|
|
63
|
+
};
|
|
64
|
+
type __VLS_Prettify<T> = {
|
|
65
|
+
[K in keyof T]: T[K];
|
|
66
|
+
} & {};
|
|
67
|
+
//# sourceMappingURL=ChatInterface.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatInterface.vue.d.ts","sourceRoot":"","sources":["../../src/components/ChatInterface.vue"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EACV,OAAO,EAEP,kBAAkB,EAClB,YAAY,EACZ,eAAe,EAGhB,MAAM,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAm/ClB,wBAOG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
default?(_: {}): any;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
/** Custom button icon URL */
|
|
6
|
+
buttonIcon?: string;
|
|
7
|
+
/** Dialog title */
|
|
8
|
+
title?: string;
|
|
9
|
+
/** Custom CSS class */
|
|
10
|
+
class?: string;
|
|
11
|
+
/** Custom inline styles */
|
|
12
|
+
style?: Record<string, string>;
|
|
13
|
+
/** Button custom class */
|
|
14
|
+
buttonClassName?: string;
|
|
15
|
+
/** Button custom styles */
|
|
16
|
+
buttonStyle?: Record<string, string>;
|
|
17
|
+
/** Dialog custom class */
|
|
18
|
+
dialogClassName?: string;
|
|
19
|
+
/** Dialog custom styles */
|
|
20
|
+
dialogStyle?: Record<string, string>;
|
|
21
|
+
/** Default open state */
|
|
22
|
+
defaultOpen?: boolean;
|
|
23
|
+
}>, {
|
|
24
|
+
title: string;
|
|
25
|
+
defaultOpen: boolean;
|
|
26
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
27
|
+
openChange: (open: boolean) => void;
|
|
28
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
29
|
+
/** Custom button icon URL */
|
|
30
|
+
buttonIcon?: string;
|
|
31
|
+
/** Dialog title */
|
|
32
|
+
title?: string;
|
|
33
|
+
/** Custom CSS class */
|
|
34
|
+
class?: string;
|
|
35
|
+
/** Custom inline styles */
|
|
36
|
+
style?: Record<string, string>;
|
|
37
|
+
/** Button custom class */
|
|
38
|
+
buttonClassName?: string;
|
|
39
|
+
/** Button custom styles */
|
|
40
|
+
buttonStyle?: Record<string, string>;
|
|
41
|
+
/** Dialog custom class */
|
|
42
|
+
dialogClassName?: string;
|
|
43
|
+
/** Dialog custom styles */
|
|
44
|
+
dialogStyle?: Record<string, string>;
|
|
45
|
+
/** Default open state */
|
|
46
|
+
defaultOpen?: boolean;
|
|
47
|
+
}>, {
|
|
48
|
+
title: string;
|
|
49
|
+
defaultOpen: boolean;
|
|
50
|
+
}>>> & Readonly<{
|
|
51
|
+
onOpenChange?: ((open: boolean) => any) | undefined;
|
|
52
|
+
}>, {
|
|
53
|
+
title: string;
|
|
54
|
+
defaultOpen: boolean;
|
|
55
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
56
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
57
|
+
export default _default;
|
|
58
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
59
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
60
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
61
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
62
|
+
} : {
|
|
63
|
+
type: import('vue').PropType<T[K]>;
|
|
64
|
+
required: true;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
type __VLS_WithDefaults<P, D> = {
|
|
68
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
69
|
+
default: D[K];
|
|
70
|
+
}> : P[K];
|
|
71
|
+
};
|
|
72
|
+
type __VLS_Prettify<T> = {
|
|
73
|
+
[K in keyof T]: T[K];
|
|
74
|
+
} & {};
|
|
75
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
76
|
+
new (): {
|
|
77
|
+
$slots: S;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
//# sourceMappingURL=ChatWidget.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatWidget.vue.d.ts","sourceRoot":"","sources":["../../src/components/ChatWidget.vue"],"names":[],"mappings":"AAyFA,iBAAS,cAAc;qBAmSQ,GAAG;EAGjC;AAkCD,QAAA,MAAM,eAAe;IAMnB,6BAA6B;iBAChB,MAAM;IACnB,mBAAmB;YACX,MAAM;IACd,uBAAuB;YACf,MAAM;IACd,2BAA2B;YACnB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAC9B,0BAA0B;sBACR,MAAM;IACxB,2BAA2B;kB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C,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AACxD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { IFunctionCallExecutor } from '../services/functionCallExecutor';
|
|
2
|
+
import { FunctionCall, ExecutionResult, DomainHeaderConfig } from '../types';
|
|
3
|
+
import { IWalletService } from '../services/walletService';
|
|
4
|
+
|
|
5
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
6
|
+
functionCall: FunctionCall;
|
|
7
|
+
walletService: IWalletService;
|
|
8
|
+
functionCallExecutor: IFunctionCallExecutor;
|
|
9
|
+
onExecute?: (functionCall: FunctionCall, result: ExecutionResult) => void;
|
|
10
|
+
class?: string;
|
|
11
|
+
domainHeaders?: DomainHeaderConfig[];
|
|
12
|
+
authorization?: string;
|
|
13
|
+
sessionAllowedTools?: Set<string>;
|
|
14
|
+
allowToolForSession?: (toolName: string) => void;
|
|
15
|
+
beforeCallApiFunc?: (request: any) => Promise<any>;
|
|
16
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
17
|
+
functionCall: FunctionCall;
|
|
18
|
+
walletService: IWalletService;
|
|
19
|
+
functionCallExecutor: IFunctionCallExecutor;
|
|
20
|
+
onExecute?: (functionCall: FunctionCall, result: ExecutionResult) => void;
|
|
21
|
+
class?: string;
|
|
22
|
+
domainHeaders?: DomainHeaderConfig[];
|
|
23
|
+
authorization?: string;
|
|
24
|
+
sessionAllowedTools?: Set<string>;
|
|
25
|
+
allowToolForSession?: (toolName: string) => void;
|
|
26
|
+
beforeCallApiFunc?: (request: any) => Promise<any>;
|
|
27
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
30
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
31
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
32
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
33
|
+
} : {
|
|
34
|
+
type: import('vue').PropType<T[K]>;
|
|
35
|
+
required: true;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=FunctionCallDisplay.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FunctionCallDisplay.vue.d.ts","sourceRoot":"","sources":["../../src/components/FunctionCallDisplay.vue"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAClF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;;kBAoyChD,YAAY;mBACX,cAAc;0BACP,qBAAqB;gBAC/B,CAAC,YAAY,EAAE,YAAY,EAAE,MAAM,EAAE,eAAe,KAAK,IAAI;YACjE,MAAM;oBACE,kBAAkB,EAAE;oBACpB,MAAM;0BACA,GAAG,CAAC,MAAM,CAAC;0BACX,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI;wBAC5B,CAAC,OAAO,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC;;kBATpC,YAAY;mBACX,cAAc;0BACP,qBAAqB;gBAC/B,CAAC,YAAY,EAAE,YAAY,EAAE,MAAM,EAAE,eAAe,KAAK,IAAI;YACjE,MAAM;oBACE,kBAAkB,EAAE;oBACpB,MAAM;0BACA,GAAG,CAAC,MAAM,CAAC;0BACX,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI;wBAC5B,CAAC,OAAO,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC;;AAfpD,wBAiBG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { IWalletService } from '../services/walletService';
|
|
2
|
+
|
|
3
|
+
interface MandateData {
|
|
4
|
+
mandateId: string;
|
|
5
|
+
cartHash: string;
|
|
6
|
+
amount: string;
|
|
7
|
+
amountDisplay?: string;
|
|
8
|
+
amountWei?: string;
|
|
9
|
+
currency?: string;
|
|
10
|
+
paymentDetailsId?: string;
|
|
11
|
+
paymentTimestamp?: string;
|
|
12
|
+
walletAddress?: string;
|
|
13
|
+
typedData?: any;
|
|
14
|
+
merchant: string;
|
|
15
|
+
items?: Array<{
|
|
16
|
+
name: string;
|
|
17
|
+
price: number;
|
|
18
|
+
quantity: number;
|
|
19
|
+
}>;
|
|
20
|
+
}
|
|
21
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
22
|
+
walletService: IWalletService;
|
|
23
|
+
open: boolean;
|
|
24
|
+
mandateData: MandateData;
|
|
25
|
+
onClose: () => void;
|
|
26
|
+
onApprove: (signature: string, txHash?: string) => void;
|
|
27
|
+
onReject: () => void;
|
|
28
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
29
|
+
walletService: IWalletService;
|
|
30
|
+
open: boolean;
|
|
31
|
+
mandateData: MandateData;
|
|
32
|
+
onClose: () => void;
|
|
33
|
+
onApprove: (signature: string, txHash?: string) => void;
|
|
34
|
+
onReject: () => void;
|
|
35
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
36
|
+
export default _default;
|
|
37
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
38
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
39
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
40
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
41
|
+
} : {
|
|
42
|
+
type: import('vue').PropType<T[K]>;
|
|
43
|
+
required: true;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=PaymentApprovalModal.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaymentApprovalModal.vue.d.ts","sourceRoot":"","sources":["../../src/components/PaymentApprovalModal.vue"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,2BAA2B,CAAC;AAC7E,OAAO,kDAAkD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AO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { KnowledgeContext } from '../types';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
sources: KnowledgeContext[];
|
|
5
|
+
class?: string;
|
|
6
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
7
|
+
sources: KnowledgeContext[];
|
|
8
|
+
class?: string;
|
|
9
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
12
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
13
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
14
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
15
|
+
} : {
|
|
16
|
+
type: import('vue').PropType<T[K]>;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=SourcesBadge.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SourcesBadge.vue.d.ts","sourceRoot":"","sources":["../../src/components/SourcesBadge.vue"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;;aAgRtC,gBAAgB,EAAE;YACnB,MAAM;;aADL,gBAAgB,EAAE;YACnB,MAAM;;AAPhB,wBASG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IWalletService } from '../services/walletService';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
walletService: IWalletService;
|
|
5
|
+
onConnect?: (address: string) => void;
|
|
6
|
+
onDisconnect?: () => void;
|
|
7
|
+
showInChat?: boolean;
|
|
8
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
+
walletService: IWalletService;
|
|
10
|
+
onConnect?: (address: string) => void;
|
|
11
|
+
onDisconnect?: () => void;
|
|
12
|
+
showInChat?: boolean;
|
|
13
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
16
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
17
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
18
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
19
|
+
} : {
|
|
20
|
+
type: import('vue').PropType<T[K]>;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=WalletConnect.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WalletConnect.vue.d.ts","sourceRoot":"","sources":["../../src/components/WalletConnect.vue"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,2BAA2B,CAAC;AAC7E,OAAO,0CAA0C,CAAC;;mBAuYjC,cAAc;gBACjB,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI;mBACtB,MAAM,IAAI;iBACZ,OAAO;;mBAHL,cAAc;gBACjB,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI;mBACtB,MAAM,IAAI;iBACZ,OAAO;;AATtB,wBAWG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { IWalletService } from '../services/walletService';
|
|
2
|
+
import { IFunctionCallExecutor } from '../services/functionCallExecutor';
|
|
3
|
+
|
|
4
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
walletService: IWalletService;
|
|
6
|
+
functionCallExecutor?: IFunctionCallExecutor;
|
|
7
|
+
sessionId?: string;
|
|
8
|
+
projectId?: string;
|
|
9
|
+
class?: string;
|
|
10
|
+
onConnect?: (address: string) => void;
|
|
11
|
+
onDisconnect?: () => void;
|
|
12
|
+
compact?: boolean;
|
|
13
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
14
|
+
walletService: IWalletService;
|
|
15
|
+
functionCallExecutor?: IFunctionCallExecutor;
|
|
16
|
+
sessionId?: string;
|
|
17
|
+
projectId?: string;
|
|
18
|
+
class?: string;
|
|
19
|
+
onConnect?: (address: string) => void;
|
|
20
|
+
onDisconnect?: () => void;
|
|
21
|
+
compact?: boolean;
|
|
22
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
25
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
26
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
27
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
28
|
+
} : {
|
|
29
|
+
type: import('vue').PropType<T[K]>;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=WalletIndicator.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WalletIndicator.vue.d.ts","sourceRoot":"","sources":["../../src/components/WalletIndicator.vue"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,2BAA2B,CAAC;AAC7E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;;mBA0iB7D,cAAc;2BACN,qBAAqB;gBAChC,MAAM;gBACN,MAAM;YACV,MAAM;gBACF,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI;mBACtB,MAAM,IAAI;cACf,OAAO;;mBAPF,cAAc;2BACN,qBAAqB;gBAChC,MAAM;gBACN,MAAM;YACV,MAAM;gBACF,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI;mBACtB,MAAM,IAAI;cACf,OAAO;;AAbnB,wBAeG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Components
|
|
3
|
+
*
|
|
4
|
+
* Central export point for all Vue components.
|
|
5
|
+
*/
|
|
6
|
+
export { default as ChatInterface } from './ChatInterface.vue';
|
|
7
|
+
export { default as ChatWidget } from './ChatWidget.vue';
|
|
8
|
+
export { default as FunctionCallDisplay } from './FunctionCallDisplay.vue';
|
|
9
|
+
export { default as WalletConnect } from './WalletConnect.vue';
|
|
10
|
+
export { default as WalletIndicator } from './WalletIndicator.vue';
|
|
11
|
+
export { default as PaymentApprovalModal } from './PaymentApprovalModal.vue';
|
|
12
|
+
export { default as AP2PaymentFlow } from './AP2PaymentFlow.vue';
|
|
13
|
+
export { default as SourcesBadge } from './SourcesBadge.vue';
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/composables/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AP2 Payment Composable
|
|
3
|
+
*
|
|
4
|
+
* Handles AP2 payment flow with mandate signing
|
|
5
|
+
*/
|
|
6
|
+
export interface FunctionCall {
|
|
7
|
+
name: string;
|
|
8
|
+
parameters: any;
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}
|
|
11
|
+
export interface PaymentMandate {
|
|
12
|
+
sessionId: string;
|
|
13
|
+
mandateId: string;
|
|
14
|
+
cartHash: string;
|
|
15
|
+
amount: string;
|
|
16
|
+
amountDisplay?: string;
|
|
17
|
+
amountWei?: string;
|
|
18
|
+
currency?: string;
|
|
19
|
+
paymentDetailsId?: string;
|
|
20
|
+
paymentTimestamp?: string;
|
|
21
|
+
walletAddress?: string;
|
|
22
|
+
merchant: string;
|
|
23
|
+
typedData?: any;
|
|
24
|
+
functionCall?: FunctionCall;
|
|
25
|
+
items?: Array<{
|
|
26
|
+
name: string;
|
|
27
|
+
price: number;
|
|
28
|
+
quantity: number;
|
|
29
|
+
}>;
|
|
30
|
+
}
|
|
31
|
+
export interface UseAP2PaymentReturn {
|
|
32
|
+
pendingPayment: typeof pendingPayment;
|
|
33
|
+
isPaymentModalOpen: typeof isPaymentModalOpen;
|
|
34
|
+
paymentStatus: typeof paymentStatus;
|
|
35
|
+
requestPayment: (mandate: PaymentMandate) => void;
|
|
36
|
+
approvePayment: (signature: string, txHash?: string) => Promise<void>;
|
|
37
|
+
rejectPayment: () => void;
|
|
38
|
+
clearPayment: () => void;
|
|
39
|
+
}
|
|
40
|
+
export interface UseAP2PaymentOptions {
|
|
41
|
+
projectId: string;
|
|
42
|
+
authorization?: string;
|
|
43
|
+
customHeaders?: Record<string, string>;
|
|
44
|
+
}
|
|
45
|
+
declare const pendingPayment: import('vue').Ref<{
|
|
46
|
+
sessionId: string;
|
|
47
|
+
mandateId: string;
|
|
48
|
+
cartHash: string;
|
|
49
|
+
amount: string;
|
|
50
|
+
amountDisplay?: string | undefined;
|
|
51
|
+
amountWei?: string | undefined;
|
|
52
|
+
currency?: string | undefined;
|
|
53
|
+
paymentDetailsId?: string | undefined;
|
|
54
|
+
paymentTimestamp?: string | undefined;
|
|
55
|
+
walletAddress?: string | undefined;
|
|
56
|
+
merchant: string;
|
|
57
|
+
typedData?: any;
|
|
58
|
+
functionCall?: {
|
|
59
|
+
[x: string]: any;
|
|
60
|
+
name: string;
|
|
61
|
+
parameters: any;
|
|
62
|
+
} | undefined;
|
|
63
|
+
items?: {
|
|
64
|
+
name: string;
|
|
65
|
+
price: number;
|
|
66
|
+
quantity: number;
|
|
67
|
+
}[] | undefined;
|
|
68
|
+
} | null, PaymentMandate | {
|
|
69
|
+
sessionId: string;
|
|
70
|
+
mandateId: string;
|
|
71
|
+
cartHash: string;
|
|
72
|
+
amount: string;
|
|
73
|
+
amountDisplay?: string | undefined;
|
|
74
|
+
amountWei?: string | undefined;
|
|
75
|
+
currency?: string | undefined;
|
|
76
|
+
paymentDetailsId?: string | undefined;
|
|
77
|
+
paymentTimestamp?: string | undefined;
|
|
78
|
+
walletAddress?: string | undefined;
|
|
79
|
+
merchant: string;
|
|
80
|
+
typedData?: any;
|
|
81
|
+
functionCall?: {
|
|
82
|
+
[x: string]: any;
|
|
83
|
+
name: string;
|
|
84
|
+
parameters: any;
|
|
85
|
+
} | undefined;
|
|
86
|
+
items?: {
|
|
87
|
+
name: string;
|
|
88
|
+
price: number;
|
|
89
|
+
quantity: number;
|
|
90
|
+
}[] | undefined;
|
|
91
|
+
} | null>;
|
|
92
|
+
declare const isPaymentModalOpen: import('vue').Ref<boolean, boolean>;
|
|
93
|
+
declare const paymentStatus: import('vue').Ref<"completed" | "idle" | "pending" | "signing" | "failed", "completed" | "idle" | "pending" | "signing" | "failed">;
|
|
94
|
+
export declare function useAP2Payment(projectIdOrOptions: string | UseAP2PaymentOptions): UseAP2PaymentReturn;
|
|
95
|
+
export {};
|
|
96
|
+
//# sourceMappingURL=useAP2Payment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAP2Payment.d.ts","sourceRoot":"","sources":["../../src/composables/useAP2Payment.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,GAAG,CAAC;IAChB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,QAA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AM;gBACJ,GAAG;;;cAjBT,MAAM;oBACA,GAAG;;;cAmBP,MAAM;eACL,MAAM;kBACH,MAAM;;;eAhBP,MAAM;eACN,MAAM;cACP,MAAM;YACR,MAAM;oBACE,MAAM;gBACV,MAAM;eACP,MAAM;uBACE,MAAM;uBACN,MAAM;oBACT,MAAM;cACZ,MAAM;gBACJ,GAAG;;;cAjBT,MAAM;oBACA,GAAG;;;cAmBP,MAAM;eACL,MAAM;kBACH,MAAM;;SAwBmC,CAAC;AACxD,QAAA,MAAM,kBAAkB,qCAAa,CAAC;AACtC,QAAA,MAAM,aAAa,qIAAuE,CAAC;AAE3F,wBAAgB,aAAa,CAC3B,kBAAkB,EAAE,MAAM,GAAG,oBAAoB,GAChD,mBAAmB,CA8JrB"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { InjectionKey } from 'vue';
|
|
2
|
+
import { Container } from 'inversify';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Injection key for the DI container
|
|
6
|
+
*/
|
|
7
|
+
export declare const DIContainerKey: InjectionKey<Container>;
|
|
8
|
+
/**
|
|
9
|
+
* Provide the DI container to child components
|
|
10
|
+
*
|
|
11
|
+
* @param container - The DI container instance
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```vue
|
|
15
|
+
* <script setup>
|
|
16
|
+
* import { provideDIContainer } from './composables/useDI';
|
|
17
|
+
* import { initializeContainer } from './core/container';
|
|
18
|
+
*
|
|
19
|
+
* const container = initializeContainer(config);
|
|
20
|
+
* provideDIContainer(container);
|
|
21
|
+
* </script>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export declare function provideDIContainer(container: Container): void;
|
|
25
|
+
/**
|
|
26
|
+
* Composable to access the DI container
|
|
27
|
+
*
|
|
28
|
+
* @returns The DI container instance
|
|
29
|
+
* @throws Error if used outside of a component that has provided the container
|
|
30
|
+
*/
|
|
31
|
+
export declare function useContainer(): Container;
|
|
32
|
+
/**
|
|
33
|
+
* Composable to get a service from the DI container
|
|
34
|
+
*
|
|
35
|
+
* Type-safe service resolution with automatic dependency injection.
|
|
36
|
+
*
|
|
37
|
+
* @param token - Service token (symbol from TOKENS)
|
|
38
|
+
* @returns The resolved service instance
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```vue
|
|
42
|
+
* <script setup>
|
|
43
|
+
* import { useService } from './composables/useDI';
|
|
44
|
+
* import { TOKENS } from './core/tokens';
|
|
45
|
+
* import type { ExecutorRegistry } from './executors/ExecutorRegistry';
|
|
46
|
+
*
|
|
47
|
+
* const executorRegistry = useService<ExecutorRegistry>(TOKENS.ExecutorRegistry);
|
|
48
|
+
* </script>
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
export declare function useService<T>(token: symbol): T;
|
|
52
|
+
/**
|
|
53
|
+
* Composable to get multiple services of the same type
|
|
54
|
+
*
|
|
55
|
+
* Useful for registries that collect multiple implementations.
|
|
56
|
+
*
|
|
57
|
+
* @param token - Service token (symbol from TOKENS)
|
|
58
|
+
* @returns Array of resolved service instances
|
|
59
|
+
*/
|
|
60
|
+
export declare function useServices<T>(token: symbol): T[];
|
|
61
|
+
/**
|
|
62
|
+
* Composable to check if a service is available
|
|
63
|
+
*
|
|
64
|
+
* @param token - Service token (symbol from TOKENS)
|
|
65
|
+
* @returns True if the service is bound in the container
|
|
66
|
+
*/
|
|
67
|
+
export declare function useHasService(token: symbol): boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Composable to get an optional service (returns null if not available)
|
|
70
|
+
*
|
|
71
|
+
* @param token - Service token (symbol from TOKENS)
|
|
72
|
+
* @returns The resolved service instance or null
|
|
73
|
+
*/
|
|
74
|
+
export declare function useOptionalService<T>(token: symbol): T | null;
|
|
75
|
+
//# sourceMappingURL=useDI.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDI.d.ts","sourceRoot":"","sources":["../../src/composables/useDI.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAA6B,YAAY,EAAE,MAAM,KAAK,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,YAAY,CAAC,SAAS,CAAyB,CAAC;AAE7E;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAE7D;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,IAAI,SAAS,CAWxC;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC,CAS9C;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC,EAAE,CASjD;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAGpD;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI,CAiB7D"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Container } from 'inversify';
|
|
2
|
+
import { ContainerConfig } from '../core/internal-container';
|
|
3
|
+
|
|
4
|
+
export interface UseInternalDIConfig extends ContainerConfig {
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Internal DI composable for components.
|
|
8
|
+
*
|
|
9
|
+
* Usage inside components:
|
|
10
|
+
* ```vue
|
|
11
|
+
* <script setup>
|
|
12
|
+
* const resolve = useInternalDI({ projectId, authorization, apiBaseUrl });
|
|
13
|
+
* const apiClient = resolve<IAPIClient>(TOKENS.APIClient);
|
|
14
|
+
* </script>
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare function useInternalDI(config: UseInternalDIConfig): <T>(serviceIdentifier: symbol | string | (new (...args: any[]) => T)) => T;
|
|
18
|
+
/**
|
|
19
|
+
* Composable for getting the current container instance.
|
|
20
|
+
* Useful when you need direct access to the container.
|
|
21
|
+
*/
|
|
22
|
+
export declare function useInternalContainer(config: UseInternalDIConfig): Container;
|
|
23
|
+
//# sourceMappingURL=useInternalDI.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useInternalDI.d.ts","sourceRoot":"","sources":["../../src/composables/useInternalDI.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAwB,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAEnF,MAAM,WAAW,mBAAoB,SAAQ,eAAe;CAE3D;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,mBAAmB,IAKtC,CAAC,qBAAqB,MAAM,GAAG,MAAM,GAAG,CAAC,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC,KAAG,CAAC,CAKzF;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,mBAAmB,GAAG,SAAS,CAE3E"}
|