@hellocoop/constants
Advanced tools
| import { Auth, AuthResponseMode, AuthResponseType, Scope } from "@hellocoop/types"; | ||
| export declare const PRODUCTION_WALLET: string; | ||
| export declare const DEFAULT_SCOPE: Scope[]; | ||
| export declare const DEFAULT_RESPONSE_TYPE: AuthResponseType; | ||
| export declare const DEFAULT_RESPONSE_MODE: AuthResponseMode; | ||
| export declare const DEFAULT_PATH: string; | ||
| export declare const VALID_IDENTITY_CLAIMS: readonly ["name", "nickname", "preferred_username", "given_name", "family_name", "email", "phone", "picture", "ethereum", "discord", "twitter", "github", "gitlab"]; | ||
| export declare const VALID_SCOPES: readonly ["name", "nickname", "preferred_username", "given_name", "family_name", "email", "phone", "picture", "ethereum", "discord", "twitter", "github", "gitlab", "openid", "profile_update"]; | ||
| export declare const VALID_RESPONSE_TYPE: readonly ["id_token", "code"]; | ||
| export declare const VALID_RESPONSE_MODE: string[]; | ||
| export declare const VALID_PROVIDER_HINT: readonly ["apple", "discord", "facebook", "github", "gitlab", "google", "twitch", "twitter", "tumblr", "mastodon", "microsoft", "line", "wordpress", "yahoo", "phone", "ethereum", "qrcode", "apple--", "microsoft--", "google--", "email--", "passkey--"]; | ||
| export declare namespace Button { | ||
| type Color = "black" | "white"; | ||
| type Theme = "ignore-light" | "ignore-dark" | "aware-invert" | "aware-static"; | ||
| type Hover = "pop" | "glow" | "flare" | "none"; | ||
| type UpdateScope = "email" | "picture" | "twitter" | "discord" | "github" | "gitlab"; | ||
| const STYLES_URL = "https://cdn.hello.coop/css/hello-btn.css"; | ||
| const HOVER_MAPPING: { | ||
| pop: string; | ||
| glow: string; | ||
| flare: string; | ||
| none: string; | ||
| }; | ||
| const CLASS_MAPPING: { | ||
| black: { | ||
| "ignore-light": string; | ||
| "ignore-dark": string; | ||
| "aware-invert": string; | ||
| "aware-static": string; | ||
| }; | ||
| white: { | ||
| "ignore-light": string; | ||
| "ignore-dark": string; | ||
| "aware-invert": string; | ||
| "aware-static": string; | ||
| }; | ||
| }; | ||
| } | ||
| export declare const NotLoggedIn: Auth; | ||
| //# sourceMappingURL=constants.d.ts.map |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.NotLoggedIn = exports.Button = exports.VALID_PROVIDER_HINT = exports.VALID_RESPONSE_MODE = exports.VALID_RESPONSE_TYPE = exports.VALID_SCOPES = exports.VALID_IDENTITY_CLAIMS = exports.DEFAULT_PATH = exports.DEFAULT_RESPONSE_MODE = exports.DEFAULT_RESPONSE_TYPE = exports.DEFAULT_SCOPE = exports.PRODUCTION_WALLET = void 0; | ||
| exports.PRODUCTION_WALLET = 'https://wallet.hello.coop'; | ||
| exports.DEFAULT_SCOPE = ['openid', 'name', 'email', 'picture']; | ||
| exports.DEFAULT_RESPONSE_TYPE = 'code'; | ||
| exports.DEFAULT_RESPONSE_MODE = 'query'; | ||
| exports.DEFAULT_PATH = '/authorize?'; | ||
| exports.VALID_IDENTITY_CLAIMS = [ | ||
| 'name', | ||
| 'nickname', | ||
| 'preferred_username', | ||
| 'given_name', | ||
| 'family_name', | ||
| 'email', | ||
| 'phone', | ||
| 'picture', | ||
| // Hellō extensions -- non-standard claims | ||
| 'ethereum', | ||
| 'discord', | ||
| 'twitter', | ||
| 'github', | ||
| 'gitlab' | ||
| ]; | ||
| exports.VALID_SCOPES = [ | ||
| ...exports.VALID_IDENTITY_CLAIMS, | ||
| 'openid', | ||
| // Hellō extensions -- non-standard scopes | ||
| 'profile_update', | ||
| ]; | ||
| exports.VALID_RESPONSE_TYPE = ['id_token', 'code']; // Default: 'code' | ||
| exports.VALID_RESPONSE_MODE = ['fragment', 'query', 'form_post']; // Default: 'query' | ||
| exports.VALID_PROVIDER_HINT = [ | ||
| // 'google' and 'email' are always in default | ||
| // 'apple' added if on Apple OS | ||
| // 'microsoft' added if on Microsoft OS | ||
| 'apple', | ||
| 'discord', | ||
| 'facebook', | ||
| 'github', | ||
| 'gitlab', | ||
| 'google', | ||
| 'twitch', | ||
| 'twitter', | ||
| 'tumblr', | ||
| 'mastodon', | ||
| 'microsoft', | ||
| 'line', | ||
| 'wordpress', | ||
| 'yahoo', | ||
| 'phone', | ||
| 'ethereum', | ||
| 'qrcode', | ||
| // the following will remove provider from recommended list | ||
| 'apple--', | ||
| 'microsoft--', | ||
| 'google--', | ||
| 'email--', | ||
| 'passkey--', | ||
| ]; | ||
| var Button; | ||
| (function (Button) { | ||
| Button.STYLES_URL = 'https://cdn.hello.coop/css/hello-btn.css'; | ||
| Button.HOVER_MAPPING = { | ||
| "pop": "", | ||
| "glow": "hello-btn-hover-glow", | ||
| "flare": "hello-btn-hover-flare", | ||
| "none": "hello-btn-hover-none" | ||
| }; | ||
| Button.CLASS_MAPPING = { | ||
| black: { | ||
| "ignore-light": "", | ||
| "ignore-dark": "hello-btn-black-on-dark", | ||
| "aware-invert": "hello-btn-black-and-invert", | ||
| "aware-static": "hello-btn-black-and-static" | ||
| }, | ||
| white: { | ||
| "ignore-light": "hello-btn-white-on-light", | ||
| "ignore-dark": "hello-btn-white-on-dark", | ||
| "aware-invert": "hello-btn-white-and-invert", | ||
| "aware-static": "hello-btn-white-and-static" | ||
| }, | ||
| }; | ||
| })(Button || (exports.Button = Button = {})); | ||
| exports.NotLoggedIn = { isLoggedIn: false }; |
+3
-3
| { | ||
| "name": "@hellocoop/constants", | ||
| "version": "1.0.1", | ||
| "version": "1.0.2", | ||
| "description": "Constants for Hellō https://hello.dev", | ||
@@ -15,4 +15,4 @@ "repository": { | ||
| "files": [ | ||
| "constants.d.ts", | ||
| "constants.js" | ||
| "./dist/constants.d.ts", | ||
| "./dist/constants.js" | ||
| ], | ||
@@ -19,0 +19,0 @@ "keywords": [ |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
5825
493.78%4
100%126
Infinity%0
-100%1
Infinity%