@onefootprint/footprint-js
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -1,51 +0,5 @@ | ||
declare type Footprint = { | ||
init(options?: { | ||
publicKey?: string; | ||
}): void; | ||
show(callback?: { | ||
onAuthenticated?: (vtok: string) => void; | ||
onCompleted?: (validationToken: string) => void; | ||
onUserCanceled?: () => void; | ||
}): Promise<void>; | ||
createButton(container: HTMLElement): HTMLButtonElement; | ||
declare const footprint: { | ||
show: ({ publicKey, onCompleted, onCanceled }: import("./footprint-types").ShowFootprint) => Promise<void>; | ||
}; | ||
declare enum FootprintEvents { | ||
authenticated = "authenticated", | ||
closed = "closed", | ||
completed = "completed", | ||
userCanceled = "userCanceled" | ||
} | ||
declare type FootprintEvent = FootprintEvents; | ||
declare type OpenOptions = { | ||
url: string; | ||
}; | ||
declare type UIManager = { | ||
createButton(container: HTMLElement): HTMLButtonElement; | ||
on(eventName: FootprintEvent, callback: (data?: any) => void): void; | ||
show(option?: OpenOptions): Promise<void>; | ||
hide(option?: OpenOptions): void; | ||
}; | ||
declare class export_default implements Footprint { | ||
private url; | ||
private uiManager; | ||
private publicKey; | ||
private flow; | ||
constructor(url: string, uiManager: UIManager); | ||
init(options?: { | ||
publicKey?: string; | ||
}): void; | ||
private onAuthenticated; | ||
private onCompleted; | ||
private onUserCanceled; | ||
show(callback?: { | ||
onAuthenticated?: (vtok: string) => void; | ||
onCompleted?: (validationToken: string) => void; | ||
onUserCanceled?: () => void; | ||
}): Promise<void>; | ||
createButton(container: HTMLElement): HTMLButtonElement; | ||
} | ||
declare const footprint: export_default; | ||
export { footprint as default }; | ||
export default footprint; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "@onefootprint/footprint-js", | ||
"private": false, | ||
"version": "0.0.3", | ||
"main": "./dist/index.js", | ||
"module": "./dist/index.mjs", | ||
"types": "./dist/index.d.ts", | ||
"type": "module", | ||
"version": "0.0.4", | ||
"main": "./dist/footprint-js.umd.cjs", | ||
"module": "./dist/footprint-js.js", | ||
"types": "./dist/footprint-js.d.ts", | ||
"exports": { | ||
".": { | ||
"import": "./dist/footprint-js.js", | ||
"require": "./dist/footprint-js.umd.cjs", | ||
"types": "./dist/footprint-js.d.ts" | ||
}, | ||
"./dist/style.css": { | ||
"import": "./dist/style.css", | ||
"require": "./dist/style.css" | ||
} | ||
}, | ||
"sideEffects": false, | ||
"license": "MIT", | ||
"files": [ | ||
"dist/**" | ||
"dist" | ||
], | ||
"scripts": { | ||
"build": "tsup src/index.ts --format esm,cjs --dts --minify", | ||
"dev": "tsup src/index.ts --format esm,cjs --watch --dts", | ||
"dev": "vite", | ||
"build": "yarn typecheck && vite build", | ||
"lint": "eslint src --fix", | ||
@@ -21,10 +33,11 @@ "typecheck": "yarn tsc --noEmit", | ||
"devDependencies": { | ||
"@onefootprint/jest-presets": "*", | ||
"@onefootprint/types": "*", | ||
"@types/postmate": "^1.5.2", | ||
"eslint-config-footprint": "*", | ||
"jest-presets": "*", | ||
"postmate": "^1.5.2", | ||
"tsconfig": "*", | ||
"tsup": "^6.2.2", | ||
"types": "*", | ||
"typescript": "^4.7.4" | ||
"typescript": "4.8.4", | ||
"vite": "^3.1.7", | ||
"vite-plugin-dts": "^1.6.5" | ||
}, | ||
@@ -35,4 +48,4 @@ "publishConfig": { | ||
"jest": { | ||
"preset": "jest-presets/jest/web" | ||
"preset": "@onefootprint/jest-presets/jest/web" | ||
} | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28963
18
406
Yes
9
1