@hyperauth/vue 0.1.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/dist/chains.d.ts +5 -0
- package/dist/chains.d.ts.map +1 -0
- package/dist/csp.d.ts +20 -0
- package/dist/csp.d.ts.map +1 -0
- package/dist/env.d.ts +7 -0
- package/dist/env.d.ts.map +1 -0
- package/dist/iframe-bridge.d.ts +20 -0
- package/dist/iframe-bridge.d.ts.map +1 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4248 -0
- package/dist/index.js.map +59 -0
- package/dist/injection-key.d.ts +4 -0
- package/dist/injection-key.d.ts.map +1 -0
- package/dist/policy.d.ts +36 -0
- package/dist/policy.d.ts.map +1 -0
- package/dist/provider.d.ts +29 -0
- package/dist/provider.d.ts.map +1 -0
- package/dist/store.d.ts +8 -0
- package/dist/store.d.ts.map +1 -0
- package/dist/types.d.ts +156 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/ui/button.d.ts +48 -0
- package/dist/ui/button.d.ts.map +1 -0
- package/dist/ui/index.d.ts +7 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/modal.d.ts +46 -0
- package/dist/ui/modal.d.ts.map +1 -0
- package/dist/ui/settlement-progress.d.ts +17 -0
- package/dist/ui/settlement-progress.d.ts.map +1 -0
- package/dist/use-account.d.ts +16 -0
- package/dist/use-account.d.ts.map +1 -0
- package/dist/use-hyperauth.d.ts +8 -0
- package/dist/use-hyperauth.d.ts.map +1 -0
- package/dist/use-login.d.ts +20 -0
- package/dist/use-login.d.ts.map +1 -0
- package/dist/use-policy-mint.d.ts +50 -0
- package/dist/use-policy-mint.d.ts.map +1 -0
- package/dist/use-policy-verify.d.ts +27 -0
- package/dist/use-policy-verify.d.ts.map +1 -0
- package/dist/use-registration.d.ts +14 -0
- package/dist/use-registration.d.ts.map +1 -0
- package/dist/use-session.d.ts +17 -0
- package/dist/use-session.d.ts.map +1 -0
- package/dist/use-settlement.d.ts +17 -0
- package/dist/use-settlement.d.ts.map +1 -0
- package/dist/use-signer.d.ts +19 -0
- package/dist/use-signer.d.ts.map +1 -0
- package/dist/use-store.d.ts +13 -0
- package/dist/use-store.d.ts.map +1 -0
- package/dist/use-transaction.d.ts +18 -0
- package/dist/use-transaction.d.ts.map +1 -0
- package/package.json +48 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-signer.d.ts","sourceRoot":"","sources":["../src/use-signer.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AAC3D,OAAO,EAEL,KAAK,yBAAyB,EAC9B,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAC;AAE3B,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAChC,KAAK,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IACpB,KAAK,EAAE,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC;CAC1B;AAED;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,OAAO,CAAC,EAAE,yBAAyB,GAAG,eAAe,CA+C9E"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
import type { Store, StoreState } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Reactive bridge from the framework-agnostic external store into Vue. Returns
|
|
5
|
+
* a read-only `Ref` whose value is the result of the selector applied to the
|
|
6
|
+
* store. The ref re-emits whenever the store fires a subscription event, and
|
|
7
|
+
* the subscription is cleaned up via `onScopeDispose` when the consuming
|
|
8
|
+
* component/composable scope is torn down.
|
|
9
|
+
*
|
|
10
|
+
* Mirrors React's `useStoreSelector` API (which uses `useSyncExternalStore`).
|
|
11
|
+
*/
|
|
12
|
+
export declare function useStoreSelector<T>(store: Store, selector?: (s: StoreState) => T): Readonly<Ref<T>>;
|
|
13
|
+
//# sourceMappingURL=use-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-store.d.ts","sourceRoot":"","sources":["../src/use-store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwC,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AACrE,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEjD;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAChC,KAAK,EAAE,KAAK,EACZ,QAAQ,GAAE,CAAC,CAAC,EAAE,UAAU,KAAK,CAA4B,GACxD,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAYlB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type ComputedRef } from 'vue';
|
|
2
|
+
import type { UserOp } from '@hyperauth/client';
|
|
3
|
+
import type { TransactionIntent, TransactionPhase, TransactionResult } from './types';
|
|
4
|
+
export interface UseTransactionReturn {
|
|
5
|
+
phase: ComputedRef<TransactionPhase>;
|
|
6
|
+
error: ComputedRef<string | null>;
|
|
7
|
+
result: ComputedRef<TransactionResult | null>;
|
|
8
|
+
userOp: ComputedRef<UserOp | null>;
|
|
9
|
+
signAndSend: (intent: TransactionIntent) => Promise<TransactionResult>;
|
|
10
|
+
buildUserOp: (intent: TransactionIntent) => Promise<UserOp>;
|
|
11
|
+
reset: () => void;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Orchestrates ERC-4337 UserOperation construction, sponsorship, signing,
|
|
15
|
+
* and submission. Sponsorship is gated on the project policy.
|
|
16
|
+
*/
|
|
17
|
+
export declare function useTransaction(): UseTransactionReturn;
|
|
18
|
+
//# sourceMappingURL=use-transaction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-transaction.d.ts","sourceRoot":"","sources":["../src/use-transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,KAAK,CAAC;AAEjD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAIhD,OAAO,KAAK,EAEV,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,SAAS,CAAC;AAUjB,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAC;IACrC,KAAK,EAAE,WAAW,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAClC,MAAM,EAAE,WAAW,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;IAC9C,MAAM,EAAE,WAAW,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACnC,WAAW,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACvE,WAAW,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IAC5D,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED;;;GAGG;AACH,wBAAgB,cAAc,IAAI,oBAAoB,CAyJrD"}
|
package/package.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@hyperauth/vue",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"default": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"files": ["dist"],
|
|
17
|
+
"publishConfig": {
|
|
18
|
+
"access": "public",
|
|
19
|
+
"registry": "https://registry.npmjs.org/",
|
|
20
|
+
"provenance": true
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"typecheck": "tsc --noEmit",
|
|
24
|
+
"build": "bun build ./src/index.ts --outdir ./dist --format esm --target browser --external vue --external @hyperauth/client --external viem --sourcemap=external && tsc --emitDeclarationOnly --declaration --outDir dist",
|
|
25
|
+
"clean": "rm -rf dist",
|
|
26
|
+
"test": "bun test",
|
|
27
|
+
"prepublishOnly": "bun run build && bun run typecheck"
|
|
28
|
+
},
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"vue": "^3.5.0",
|
|
31
|
+
"@hyperauth/client": "^0.1.0",
|
|
32
|
+
"viem": "^2.0.0"
|
|
33
|
+
},
|
|
34
|
+
"peerDependenciesMeta": {
|
|
35
|
+
"viem": {
|
|
36
|
+
"optional": true
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@ipld/dag-cbor": "^9.0.0"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@types/bun": "latest",
|
|
44
|
+
"typescript": "~5.7.0",
|
|
45
|
+
"vue": "^3.5.0",
|
|
46
|
+
"viem": "^2.0.0"
|
|
47
|
+
}
|
|
48
|
+
}
|