@qredex/vue 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/LICENSE +21 -0
- package/README.md +156 -0
- package/dist/index.d.ts +40 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +84 -0
- package/dist/index.js.map +1 -0
- package/package.json +46 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Qredex, LTD.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
▄▄▄▄
|
|
3
|
+
▄█▀▀███▄▄ █▄
|
|
4
|
+
██ ██ ▄ ██
|
|
5
|
+
██ ██ ████▄▄█▀█▄ ▄████ ▄█▀█▄▀██ ██▀
|
|
6
|
+
██ ▄ ██ ██ ██▄█▀ ██ ██ ██▄█▀ ███
|
|
7
|
+
▀█████▄▄█▀ ▄▀█▄▄▄▄█▀███▄▀█▄▄▄▄██ ██▄
|
|
8
|
+
▀█
|
|
9
|
+
|
|
10
|
+
Copyright (C) 2026 — 2026, Qredex, LTD. All Rights Reserved.
|
|
11
|
+
|
|
12
|
+
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
13
|
+
|
|
14
|
+
This file is part of the Qredex Agent SDK and is licensed under the MIT License. See LICENSE.
|
|
15
|
+
Redistribution and use are permitted under that license.
|
|
16
|
+
|
|
17
|
+
If you need additional information or have any questions, please email: copyright@qredex.com
|
|
18
|
+
-->
|
|
19
|
+
|
|
20
|
+
# @qredex/vue
|
|
21
|
+
|
|
22
|
+
Thin Vue bindings for `@qredex/agent`.
|
|
23
|
+
|
|
24
|
+
[](https://github.com/Qredex/qredex-agent/actions/workflows/ci.yml)
|
|
25
|
+
[](https://github.com/Qredex/qredex-agent/actions/workflows/release.yml)
|
|
26
|
+
[](https://www.npmjs.com/package/@qredex/vue)
|
|
27
|
+
[](LICENSE)
|
|
28
|
+
|
|
29
|
+
## Install
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
npm install @qredex/vue
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Attribution Flow
|
|
36
|
+
|
|
37
|
+
```mermaid
|
|
38
|
+
sequenceDiagram
|
|
39
|
+
participant User
|
|
40
|
+
participant Storefront as Your cart UI
|
|
41
|
+
participant Wrapper as useQredexAgent()
|
|
42
|
+
participant Agent as QredexAgent
|
|
43
|
+
|
|
44
|
+
User->>Storefront: Land with ?qdx_intent=iit_xxx
|
|
45
|
+
Storefront->>Wrapper: useQredexAgent()
|
|
46
|
+
Note right of Agent: Captures IIT automatically<br/>No function call needed
|
|
47
|
+
|
|
48
|
+
User->>Storefront: Cart item count changes
|
|
49
|
+
Storefront->>Agent: agent.handleCartChange({ itemCount, previousCount })
|
|
50
|
+
Note right of Agent: Locks IIT to PIT internally when lockable
|
|
51
|
+
|
|
52
|
+
User->>Storefront: Checkout
|
|
53
|
+
Storefront->>Agent: agent.getPurchaseIntentToken()
|
|
54
|
+
Note right of Storefront: Send PIT with the order to your backend
|
|
55
|
+
|
|
56
|
+
User->>Storefront: Cart is cleared
|
|
57
|
+
Storefront->>Agent: agent.handleCartEmpty()
|
|
58
|
+
|
|
59
|
+
opt No cart-empty step after checkout
|
|
60
|
+
Storefront->>Agent: agent.handlePaymentSuccess()
|
|
61
|
+
end
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Call `useQredexAgent()`, then forward merchant cart state with `agent.handleCartChange(...)`, read the PIT with `agent.getPurchaseIntentToken()`, and clear attribution with `agent.handleCartEmpty()`. Only call `agent.handlePaymentSuccess()` if your platform has no cart-empty step after checkout.
|
|
65
|
+
|
|
66
|
+
## Recommended Integration
|
|
67
|
+
|
|
68
|
+
Register the plugin once, then use `useQredexAgent()` inside the cart surface you already control.
|
|
69
|
+
|
|
70
|
+
```ts
|
|
71
|
+
// main.ts
|
|
72
|
+
import { createApp } from 'vue';
|
|
73
|
+
import App from './App.vue';
|
|
74
|
+
import { createQredexPlugin } from '@qredex/vue';
|
|
75
|
+
|
|
76
|
+
const app = createApp(App);
|
|
77
|
+
app.use(createQredexPlugin());
|
|
78
|
+
app.mount('#app');
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
```vue
|
|
82
|
+
<script setup lang="ts">
|
|
83
|
+
import { ref, watch } from 'vue';
|
|
84
|
+
import { useQredexAgent } from '@qredex/vue';
|
|
85
|
+
|
|
86
|
+
const { agent, state } = useQredexAgent();
|
|
87
|
+
const itemCount = ref(0);
|
|
88
|
+
const previousCount = ref(0);
|
|
89
|
+
|
|
90
|
+
watch(itemCount, (nextCount) => {
|
|
91
|
+
agent.handleCartChange({
|
|
92
|
+
itemCount: nextCount,
|
|
93
|
+
previousCount: previousCount.value,
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
previousCount.value = nextCount;
|
|
97
|
+
}, { immediate: true });
|
|
98
|
+
|
|
99
|
+
async function clearCart() {
|
|
100
|
+
await fetch('/api/cart/clear', {
|
|
101
|
+
method: 'POST',
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
agent.handleCartEmpty();
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
async function submitOrder() {
|
|
108
|
+
const pit = state.value.pit ?? agent.getPurchaseIntentToken();
|
|
109
|
+
|
|
110
|
+
await fetch('/api/orders', {
|
|
111
|
+
method: 'POST',
|
|
112
|
+
headers: {
|
|
113
|
+
'Content-Type': 'application/json',
|
|
114
|
+
},
|
|
115
|
+
body: JSON.stringify({
|
|
116
|
+
orderId: 'order-123',
|
|
117
|
+
qredex_pit: pit,
|
|
118
|
+
}),
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
await clearCart();
|
|
122
|
+
}
|
|
123
|
+
</script>
|
|
124
|
+
|
|
125
|
+
<template>
|
|
126
|
+
<div>
|
|
127
|
+
<span>Qredex status: {{ state.locked ? 'locked' : 'waiting' }}</span>
|
|
128
|
+
<button @click="clearCart">Clear cart</button>
|
|
129
|
+
<button :disabled="!state.hasPIT" @click="submitOrder">
|
|
130
|
+
Send PIT to backend
|
|
131
|
+
</button>
|
|
132
|
+
</div>
|
|
133
|
+
</template>
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
## What To Call When
|
|
137
|
+
|
|
138
|
+
| Merchant event | Call | Why |
|
|
139
|
+
|---|---|---|
|
|
140
|
+
| Cart becomes non-empty | `agent.handleCartChange({ itemCount, previousCount })` | Gives Qredex the live cart state so IIT can lock to PIT |
|
|
141
|
+
| Cart changes while still non-empty | `agent.handleCartChange(...)` | Safe retry path on the next merchant-reported non-empty cart event if a previous lock failed |
|
|
142
|
+
| Clear cart action | `clearCart() -> agent.handleCartEmpty()` | Clears IIT/PIT from the live session |
|
|
143
|
+
| Need PIT for order submission | `state.value.pit` or `agent.getPurchaseIntentToken()` | Attach PIT to the checkout payload |
|
|
144
|
+
| Checkout completes without a cart-empty step | `agent.handlePaymentSuccess()` | Optional explicit cleanup path |
|
|
145
|
+
|
|
146
|
+
## API Surface
|
|
147
|
+
|
|
148
|
+
| Export | Use |
|
|
149
|
+
|---|---|
|
|
150
|
+
| `createQredexPlugin()` | Registers the core agent in the Vue app |
|
|
151
|
+
| `useQredexAgent()` | Primary Vue composable. Returns `{ agent, state }` |
|
|
152
|
+
| `useQredex()` | Deprecated alias for `useQredexAgent()` |
|
|
153
|
+
| `useInjectedQredexAgent()` | Direct access to the injected agent |
|
|
154
|
+
| `getQredexAgent()` | Direct access to the singleton runtime |
|
|
155
|
+
| `initQredex()` | Explicit browser init when needed |
|
|
156
|
+
| `QredexAgent` | Re-export of the core agent |
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ▄▄▄▄
|
|
3
|
+
* ▄█▀▀███▄▄ █▄
|
|
4
|
+
* ██ ██ ▄ ██
|
|
5
|
+
* ██ ██ ████▄▄█▀█▄ ▄████ ▄█▀█▄▀██ ██▀
|
|
6
|
+
* ██ ▄ ██ ██ ██▄█▀ ██ ██ ██▄█▀ ███
|
|
7
|
+
* ▀█████▄▄█▀ ▄▀█▄▄▄▄█▀███▄▀█▄▄▄▄██ ██▄
|
|
8
|
+
* ▀█
|
|
9
|
+
*
|
|
10
|
+
* Copyright (C) 2026 — 2026, Qredex, LTD. All Rights Reserved.
|
|
11
|
+
*
|
|
12
|
+
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
13
|
+
*
|
|
14
|
+
* This file is part of the Qredex Agent SDK and is licensed under the MIT License. See LICENSE.
|
|
15
|
+
* Redistribution and use are permitted under that license.
|
|
16
|
+
*
|
|
17
|
+
* If you need additional information or have any questions, please email: copyright@qredex.com
|
|
18
|
+
*/
|
|
19
|
+
import { type App, type InjectionKey, type ShallowRef } from 'vue';
|
|
20
|
+
import CoreQredexAgent, { type AgentConfig } from '@qredex/agent';
|
|
21
|
+
export type QredexState = ReturnType<typeof CoreQredexAgent.getState>;
|
|
22
|
+
export interface QredexComposable {
|
|
23
|
+
agent: typeof CoreQredexAgent;
|
|
24
|
+
state: Readonly<ShallowRef<QredexState>>;
|
|
25
|
+
}
|
|
26
|
+
export declare const QredexAgentKey: InjectionKey<typeof CoreQredexAgent>;
|
|
27
|
+
export declare function getQredexAgent(): typeof CoreQredexAgent;
|
|
28
|
+
export declare function initQredex(config?: AgentConfig): typeof CoreQredexAgent;
|
|
29
|
+
export declare function createQredexPlugin(config?: AgentConfig): {
|
|
30
|
+
install(app: App): void;
|
|
31
|
+
};
|
|
32
|
+
export declare function useInjectedQredexAgent(): typeof CoreQredexAgent;
|
|
33
|
+
export declare function useQredexAgent(config?: AgentConfig): QredexComposable;
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated Use useQredexAgent() instead.
|
|
36
|
+
*/
|
|
37
|
+
export declare function useQredex(config?: AgentConfig): QredexComposable;
|
|
38
|
+
export { CoreQredexAgent as QredexAgent };
|
|
39
|
+
export * from '@qredex/agent';
|
|
40
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAML,KAAK,GAAG,EACR,KAAK,YAAY,EACjB,KAAK,UAAU,EAChB,MAAM,KAAK,CAAC;AACb,OAAO,eAAe,EAAE,EAAE,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAElE,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,QAAQ,CAAC,CAAC;AACtE,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,OAAO,eAAe,CAAC;IAC9B,KAAK,EAAE,QAAQ,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC;CAC1C;AAYD,eAAO,MAAM,cAAc,EAAE,YAAY,CAAC,OAAO,eAAe,CAAyB,CAAC;AAM1F,wBAAgB,cAAc,IAAI,OAAO,eAAe,CAEvD;AAED,wBAAgB,UAAU,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,eAAe,CAMvE;AAED,wBAAgB,kBAAkB,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG;IAAE,OAAO,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI,CAAA;CAAE,CAOpF;AAED,wBAAgB,sBAAsB,IAAI,OAAO,eAAe,CAE/D;AAED,wBAAgB,cAAc,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,gBAAgB,CA0BrE;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,gBAAgB,CAEhE;AAED,OAAO,EAAE,eAAe,IAAI,WAAW,EAAE,CAAC;AAC1C,cAAc,eAAe,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ▄▄▄▄
|
|
3
|
+
* ▄█▀▀███▄▄ █▄
|
|
4
|
+
* ██ ██ ▄ ██
|
|
5
|
+
* ██ ██ ████▄▄█▀█▄ ▄████ ▄█▀█▄▀██ ██▀
|
|
6
|
+
* ██ ▄ ██ ██ ██▄█▀ ██ ██ ██▄█▀ ███
|
|
7
|
+
* ▀█████▄▄█▀ ▄▀█▄▄▄▄█▀███▄▀█▄▄▄▄██ ██▄
|
|
8
|
+
* ▀█
|
|
9
|
+
*
|
|
10
|
+
* Copyright (C) 2026 — 2026, Qredex, LTD. All Rights Reserved.
|
|
11
|
+
*
|
|
12
|
+
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
13
|
+
*
|
|
14
|
+
* This file is part of the Qredex Agent SDK and is licensed under the MIT License. See LICENSE.
|
|
15
|
+
* Redistribution and use are permitted under that license.
|
|
16
|
+
*
|
|
17
|
+
* If you need additional information or have any questions, please email: copyright@qredex.com
|
|
18
|
+
*/
|
|
19
|
+
import { inject, onMounted, onUnmounted, readonly, shallowRef, } from 'vue';
|
|
20
|
+
import CoreQredexAgent from '@qredex/agent';
|
|
21
|
+
const SERVER_STATE = {
|
|
22
|
+
hasIIT: false,
|
|
23
|
+
hasPIT: false,
|
|
24
|
+
iit: null,
|
|
25
|
+
pit: null,
|
|
26
|
+
cartState: 'unknown',
|
|
27
|
+
locked: false,
|
|
28
|
+
timestamp: 0,
|
|
29
|
+
};
|
|
30
|
+
export const QredexAgentKey = Symbol('QredexAgent');
|
|
31
|
+
function canUseBrowser() {
|
|
32
|
+
return typeof window !== 'undefined';
|
|
33
|
+
}
|
|
34
|
+
export function getQredexAgent() {
|
|
35
|
+
return CoreQredexAgent;
|
|
36
|
+
}
|
|
37
|
+
export function initQredex(config) {
|
|
38
|
+
if (canUseBrowser() && (config !== undefined || !CoreQredexAgent.isInitialized())) {
|
|
39
|
+
CoreQredexAgent.init(config);
|
|
40
|
+
}
|
|
41
|
+
return CoreQredexAgent;
|
|
42
|
+
}
|
|
43
|
+
export function createQredexPlugin(config) {
|
|
44
|
+
return {
|
|
45
|
+
install(app) {
|
|
46
|
+
initQredex(config);
|
|
47
|
+
app.provide(QredexAgentKey, CoreQredexAgent);
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export function useInjectedQredexAgent() {
|
|
52
|
+
return inject(QredexAgentKey, CoreQredexAgent);
|
|
53
|
+
}
|
|
54
|
+
export function useQredexAgent(config) {
|
|
55
|
+
const state = shallowRef(SERVER_STATE);
|
|
56
|
+
let unsubscribe = () => undefined;
|
|
57
|
+
onMounted(() => {
|
|
58
|
+
initQredex(config);
|
|
59
|
+
state.value = CoreQredexAgent.getState();
|
|
60
|
+
const handler = () => {
|
|
61
|
+
state.value = CoreQredexAgent.getState();
|
|
62
|
+
};
|
|
63
|
+
CoreQredexAgent.onStateChanged(handler);
|
|
64
|
+
unsubscribe = () => {
|
|
65
|
+
CoreQredexAgent.offStateChanged(handler);
|
|
66
|
+
};
|
|
67
|
+
});
|
|
68
|
+
onUnmounted(() => {
|
|
69
|
+
unsubscribe();
|
|
70
|
+
});
|
|
71
|
+
return {
|
|
72
|
+
agent: CoreQredexAgent,
|
|
73
|
+
state: readonly(state),
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* @deprecated Use useQredexAgent() instead.
|
|
78
|
+
*/
|
|
79
|
+
export function useQredex(config) {
|
|
80
|
+
return useQredexAgent(config);
|
|
81
|
+
}
|
|
82
|
+
export { CoreQredexAgent as QredexAgent };
|
|
83
|
+
export * from '@qredex/agent';
|
|
84
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EACL,MAAM,EACN,SAAS,EACT,WAAW,EACX,QAAQ,EACR,UAAU,GAIX,MAAM,KAAK,CAAC;AACb,OAAO,eAAqC,MAAM,eAAe,CAAC;AAQlE,MAAM,YAAY,GAAgB;IAChC,MAAM,EAAE,KAAK;IACb,MAAM,EAAE,KAAK;IACb,GAAG,EAAE,IAAI;IACT,GAAG,EAAE,IAAI;IACT,SAAS,EAAE,SAAS;IACpB,MAAM,EAAE,KAAK;IACb,SAAS,EAAE,CAAC;CACb,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAyC,MAAM,CAAC,aAAa,CAAC,CAAC;AAE1F,SAAS,aAAa;IACpB,OAAO,OAAO,MAAM,KAAK,WAAW,CAAC;AACvC,CAAC;AAED,MAAM,UAAU,cAAc;IAC5B,OAAO,eAAe,CAAC;AACzB,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,MAAoB;IAC7C,IAAI,aAAa,EAAE,IAAI,CAAC,MAAM,KAAK,SAAS,IAAI,CAAC,eAAe,CAAC,aAAa,EAAE,CAAC,EAAE,CAAC;QAClF,eAAe,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC/B,CAAC;IAED,OAAO,eAAe,CAAC;AACzB,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,MAAoB;IACrD,OAAO;QACL,OAAO,CAAC,GAAQ;YACd,UAAU,CAAC,MAAM,CAAC,CAAC;YACnB,GAAG,CAAC,OAAO,CAAC,cAAc,EAAE,eAAe,CAAC,CAAC;QAC/C,CAAC;KACF,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,sBAAsB;IACpC,OAAO,MAAM,CAAC,cAAc,EAAE,eAAe,CAAC,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,MAAoB;IACjD,MAAM,KAAK,GAAG,UAAU,CAAc,YAAY,CAAC,CAAC;IACpD,IAAI,WAAW,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC;IAElC,SAAS,CAAC,GAAG,EAAE;QACb,UAAU,CAAC,MAAM,CAAC,CAAC;QACnB,KAAK,CAAC,KAAK,GAAG,eAAe,CAAC,QAAQ,EAAE,CAAC;QAEzC,MAAM,OAAO,GAAG,GAAG,EAAE;YACnB,KAAK,CAAC,KAAK,GAAG,eAAe,CAAC,QAAQ,EAAE,CAAC;QAC3C,CAAC,CAAC;QAEF,eAAe,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;QACxC,WAAW,GAAG,GAAG,EAAE;YACjB,eAAe,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;QAC3C,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,WAAW,CAAC,GAAG,EAAE;QACf,WAAW,EAAE,CAAC;IAChB,CAAC,CAAC,CAAC;IAEH,OAAO;QACL,KAAK,EAAE,eAAe;QACtB,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC;KACvB,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,SAAS,CAAC,MAAoB;IAC5C,OAAO,cAAc,CAAC,MAAM,CAAC,CAAC;AAChC,CAAC;AAED,OAAO,EAAE,eAAe,IAAI,WAAW,EAAE,CAAC;AAC1C,cAAc,eAAe,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@qredex/vue",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Vue wrapper for Qredex Agent",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"module": "./dist/index.js",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/index.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist",
|
|
18
|
+
"README.md",
|
|
19
|
+
"LICENSE"
|
|
20
|
+
],
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "tsc -p tsconfig.json"
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@qredex/agent": "^1.0.0"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@qredex/agent": "file:../.."
|
|
29
|
+
},
|
|
30
|
+
"peerDependencies": {
|
|
31
|
+
"vue": "^3.4.0"
|
|
32
|
+
},
|
|
33
|
+
"license": "MIT",
|
|
34
|
+
"publishConfig": {
|
|
35
|
+
"access": "public"
|
|
36
|
+
},
|
|
37
|
+
"repository": {
|
|
38
|
+
"type": "git",
|
|
39
|
+
"url": "git+https://github.com/Qredex/qredex-agent.git",
|
|
40
|
+
"directory": "packages/vue"
|
|
41
|
+
},
|
|
42
|
+
"homepage": "https://github.com/Qredex/qredex-agent/tree/main/packages/vue#readme",
|
|
43
|
+
"bugs": {
|
|
44
|
+
"url": "https://github.com/Qredex/qredex-agent/issues"
|
|
45
|
+
}
|
|
46
|
+
}
|