@redzone/taunt-logins-ui-react 0.0.12 → 0.0.14
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/cjs/cc-D-353NYd.cjs +63 -0
- package/dist/cjs/index.cjs +655 -0
- package/dist/cjs/index.d.cts +114 -0
- package/dist/es/cc-D6TRVNtd.js +61 -0
- package/dist/es/index.d.ts +114 -0
- package/dist/es/index.js +644 -0
- package/package.json +39 -29
- package/README.md +0 -73
- package/dist/LoadingView.d.ts +0 -1
- package/dist/LoginUIComplete.d.ts +0 -7
- package/dist/LoginView.d.ts +0 -41
- package/dist/ModalView.d.ts +0 -7
- package/dist/assets/fonts/DrukTextWide-Bold-Trial.otf +0 -0
- package/dist/coinbase.d.ts +0 -5
- package/dist/index.d.ts +0 -11
- package/dist/magic.d.ts +0 -4
- package/dist/meta.d.ts +0 -5
- package/dist/metamask.d.ts +0 -5
- package/dist/taunt-logins-ui-react.css +0 -1
- package/dist/taunt-logins-ui-react.d.ts +0 -2
- package/dist/taunt-logins-ui-react.js +0 -3639
- package/dist/taunt-logins-ui-react.js.map +0 -1
- package/dist/taunt-logins-ui-react.umd.cjs +0 -12
- package/dist/taunt-logins-ui-react.umd.cjs.map +0 -1
- package/dist/tauntContext.d.ts +0 -18
- package/dist/tauntProvider.d.ts +0 -5
- package/dist/telegram.d.ts +0 -5
package/package.json
CHANGED
|
@@ -1,54 +1,64 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redzone/taunt-logins-ui-react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14",
|
|
4
4
|
"type": "module",
|
|
5
|
+
"main": "./dist/es/index.js",
|
|
6
|
+
"module": "./dist/es/index.js",
|
|
7
|
+
"types": "./dist/es/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": {
|
|
11
|
+
"types": "./dist/es/index.d.ts",
|
|
12
|
+
"default": "./dist/es/index.js"
|
|
13
|
+
},
|
|
14
|
+
"require": {
|
|
15
|
+
"types": "./dist/cjs/index.d.cts",
|
|
16
|
+
"default": "./dist/cjs/index.cjs"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"./dist/styling.css": {
|
|
20
|
+
"import": "./dist/styling.css",
|
|
21
|
+
"require": "./dist/styling.css"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
5
24
|
"scripts": {
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"copy:css": "cp src/lib/styling.css dist/styling.css",
|
|
25
|
+
"build": "bunchee",
|
|
26
|
+
"dev": "bunchee --watch",
|
|
27
|
+
"copy:styles": "cp src/lib/styling.css dist/styling.css",
|
|
10
28
|
"pack": "npm pack",
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"prebuild:web": "npm run clean",
|
|
14
|
-
"clean": "rm -rf dist webbuild",
|
|
29
|
+
"postbuild": "npm run copy:styles",
|
|
30
|
+
"clean": "rm -rf dist",
|
|
15
31
|
"lint": "eslint .",
|
|
16
|
-
"preview": "vite preview",
|
|
17
32
|
"prenpm:publish": "npm run build",
|
|
18
33
|
"npm:publish": "npm publish --access public",
|
|
19
34
|
"fb:deploy": "firebase deploy --only hosting:dev"
|
|
20
35
|
},
|
|
21
|
-
"main": "./dist/taunt-logins-ui-react.umd.js",
|
|
22
|
-
"module": "./dist/taunt-logins-ui-react.js",
|
|
23
|
-
"types": "./dist/taunt-logins-ui-react.d.ts",
|
|
24
36
|
"peerDependencies": {
|
|
25
|
-
"react": "
|
|
26
|
-
|
|
27
|
-
|
|
37
|
+
"react": "*"
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@redzone/taunt-logins": "*"
|
|
28
41
|
},
|
|
29
42
|
"devDependencies": {
|
|
43
|
+
"@repo/eslint-config": "*",
|
|
44
|
+
"@repo/typescript-config": "*",
|
|
30
45
|
"@eslint/js": "^9.36.0",
|
|
31
46
|
"@ianvs/prettier-plugin-sort-imports": "^4.7.0",
|
|
32
47
|
"@types/chrome": "^0.1.21",
|
|
33
48
|
"@types/node": "^24.6.0",
|
|
34
|
-
"@types/react": "
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
49
|
+
"@types/react": "*",
|
|
50
|
+
"bunchee": "latest",
|
|
51
|
+
"react": "latest",
|
|
52
|
+
"eslint": "latest",
|
|
53
|
+
"prettier": "latest",
|
|
54
|
+
"prettier-config-custom": "*",
|
|
39
55
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
40
56
|
"eslint-plugin-react-refresh": "^0.4.22",
|
|
41
57
|
"globals": "^16.4.0",
|
|
42
58
|
"typescript": "~5.9.3",
|
|
43
|
-
"typescript-eslint": "^8.45.0"
|
|
44
|
-
"vite": "^7.1.9",
|
|
45
|
-
"vite-plugin-dts": "^4.5.4",
|
|
46
|
-
"vite-plugin-ts": "^1.3.2-1"
|
|
59
|
+
"typescript-eslint": "^8.45.0"
|
|
47
60
|
},
|
|
48
61
|
"files": [
|
|
49
62
|
"dist"
|
|
50
|
-
]
|
|
51
|
-
"dependencies": {
|
|
52
|
-
"@redzone/taunt-logins": "^0.0.4"
|
|
53
|
-
}
|
|
63
|
+
]
|
|
54
64
|
}
|
package/README.md
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
# React + TypeScript + Vite
|
|
2
|
-
|
|
3
|
-
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
|
|
4
|
-
|
|
5
|
-
Currently, two official plugins are available:
|
|
6
|
-
|
|
7
|
-
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh
|
|
8
|
-
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
|
|
9
|
-
|
|
10
|
-
## React Compiler
|
|
11
|
-
|
|
12
|
-
The React Compiler is currently not compatible with SWC. See [this issue](https://github.com/vitejs/vite-plugin-react/issues/428) for tracking the progress.
|
|
13
|
-
|
|
14
|
-
## Expanding the ESLint configuration
|
|
15
|
-
|
|
16
|
-
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
|
|
17
|
-
|
|
18
|
-
```js
|
|
19
|
-
export default defineConfig([
|
|
20
|
-
globalIgnores(['dist']),
|
|
21
|
-
{
|
|
22
|
-
files: ['**/*.{ts,tsx}'],
|
|
23
|
-
extends: [
|
|
24
|
-
// Other configs...
|
|
25
|
-
|
|
26
|
-
// Remove tseslint.configs.recommended and replace with this
|
|
27
|
-
tseslint.configs.recommendedTypeChecked,
|
|
28
|
-
// Alternatively, use this for stricter rules
|
|
29
|
-
tseslint.configs.strictTypeChecked,
|
|
30
|
-
// Optionally, add this for stylistic rules
|
|
31
|
-
tseslint.configs.stylisticTypeChecked,
|
|
32
|
-
|
|
33
|
-
// Other configs...
|
|
34
|
-
],
|
|
35
|
-
languageOptions: {
|
|
36
|
-
parserOptions: {
|
|
37
|
-
project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
|
38
|
-
tsconfigRootDir: import.meta.dirname,
|
|
39
|
-
},
|
|
40
|
-
// other options...
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
])
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
|
|
47
|
-
|
|
48
|
-
```js
|
|
49
|
-
// eslint.config.js
|
|
50
|
-
import reactX from 'eslint-plugin-react-x'
|
|
51
|
-
import reactDom from 'eslint-plugin-react-dom'
|
|
52
|
-
|
|
53
|
-
export default defineConfig([
|
|
54
|
-
globalIgnores(['dist']),
|
|
55
|
-
{
|
|
56
|
-
files: ['**/*.{ts,tsx}'],
|
|
57
|
-
extends: [
|
|
58
|
-
// Other configs...
|
|
59
|
-
// Enable lint rules for React
|
|
60
|
-
reactX.configs['recommended-typescript'],
|
|
61
|
-
// Enable lint rules for React DOM
|
|
62
|
-
reactDom.configs.recommended,
|
|
63
|
-
],
|
|
64
|
-
languageOptions: {
|
|
65
|
-
parserOptions: {
|
|
66
|
-
project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
|
67
|
-
tsconfigRootDir: import.meta.dirname,
|
|
68
|
-
},
|
|
69
|
-
// other options...
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
])
|
|
73
|
-
```
|
package/dist/LoadingView.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function LoadingView(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { LoginComponentProps } from '.';
|
|
2
|
-
type LoginUICompleteProps = LoginComponentProps & {
|
|
3
|
-
className?: string;
|
|
4
|
-
extLoading?: boolean;
|
|
5
|
-
};
|
|
6
|
-
export declare const LoginUIComplete: ({ className, extLoading, ...loginProps }: LoginUICompleteProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
package/dist/LoginView.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { CoinbaseButtonProps } from './coinbase';
|
|
2
|
-
import { MagicEmailProps } from './magic';
|
|
3
|
-
import { MetaButtonProps } from './meta';
|
|
4
|
-
import { MetaMaskButtonProps } from './metamask';
|
|
5
|
-
import { TelegramButtonProps } from './telegram';
|
|
6
|
-
export type LoginProvider = "email" | "metamask" | "telegram" | "meta" | "coinbase";
|
|
7
|
-
export interface LoginComponentProps {
|
|
8
|
-
/** Array of login providers to display. If not provided, shows all providers */
|
|
9
|
-
providers?: LoginProvider[];
|
|
10
|
-
/** Whether to show the email/magic link login */
|
|
11
|
-
showEmail?: boolean;
|
|
12
|
-
/** If true, show all providers but disable unsupported ones. If false, hide unsupported providers */
|
|
13
|
-
showDisabled?: boolean;
|
|
14
|
-
/** Custom text for the divider between email and social logins */
|
|
15
|
-
dividerText?: string;
|
|
16
|
-
/** Gap between provider buttons in pixels */
|
|
17
|
-
providerGap?: number;
|
|
18
|
-
/** Whether to show terms and privacy links (default: false) */
|
|
19
|
-
showTerms?: boolean;
|
|
20
|
-
/** Terms of Service text content (if provided, will show in built-in modal) */
|
|
21
|
-
termsContent?: string;
|
|
22
|
-
/** Privacy Policy text content (if provided, will show in built-in modal) */
|
|
23
|
-
privacyContent?: string;
|
|
24
|
-
/** Custom terms of service click handler (use if you want custom modal handling) */
|
|
25
|
-
onTermsClick?: () => void;
|
|
26
|
-
/** Custom privacy policy click handler (use if you want custom modal handling) */
|
|
27
|
-
onPrivacyClick?: () => void;
|
|
28
|
-
/** Custom modal component to use for displaying terms/privacy (optional) */
|
|
29
|
-
ModalComponent?: React.ComponentType<{
|
|
30
|
-
title: string;
|
|
31
|
-
content: string;
|
|
32
|
-
onClose: () => void;
|
|
33
|
-
}>;
|
|
34
|
-
/** Callback when email is entered (for custom handling) */
|
|
35
|
-
magicEmailProps?: MagicEmailProps;
|
|
36
|
-
coinbaseProps?: CoinbaseButtonProps;
|
|
37
|
-
metamaskProps?: MetaMaskButtonProps;
|
|
38
|
-
metaProps?: MetaButtonProps;
|
|
39
|
-
telegramProps?: TelegramButtonProps;
|
|
40
|
-
}
|
|
41
|
-
export declare const LoginView: ({ providers, showEmail, showDisabled, dividerText, providerGap, showTerms, termsContent, privacyContent, onTermsClick, onPrivacyClick, ModalComponent, magicEmailProps, coinbaseProps, metamaskProps, metaProps, telegramProps }: LoginComponentProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/ModalView.d.ts
DELETED
|
Binary file
|
package/dist/coinbase.d.ts
DELETED
package/dist/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export * from './coinbase';
|
|
2
|
-
export * from './LoadingView';
|
|
3
|
-
export * from './LoginUIComplete';
|
|
4
|
-
export * from './LoginView';
|
|
5
|
-
export * from './magic';
|
|
6
|
-
export * from './meta';
|
|
7
|
-
export * from './metamask';
|
|
8
|
-
export * from './ModalView';
|
|
9
|
-
export * from './tauntContext';
|
|
10
|
-
export * from './tauntProvider';
|
|
11
|
-
export * from './telegram';
|
package/dist/magic.d.ts
DELETED
package/dist/meta.d.ts
DELETED
package/dist/metamask.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.rzd-loginui-complete{background:radial-gradient(50% 50% at 50% 50%,#132c50,#0b101b);border-radius:37px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:20px;padding:40px;max-width:620px;min-height:455px;min-width:500px}.rzd-loginview{box-sizing:border-box;color:#fff}.rzd-loginview .header-login{font-family:DRUNKWIDE,sans-serif;font-size:36px;font-weight:700;color:#fff;text-transform:uppercase;margin:20px 0}.rzd-loginview .logo{height:6em;padding:1.5em;will-change:filter;transition:filter .3s}.rzd-loginview .logo:hover{filter:drop-shadow(0 0 2em #646cffaa)}.rzd-loginview .logo.react:hover{filter:drop-shadow(0 0 2em #61dafbaa)}.rzd-loginview .card{padding:2em}.rzd-loginview .read-the-docs{color:#888}.rdz-input{font-family:Futura PT,sans-serif!important;line-height:1.5;font-weight:400!important;color:#fff;border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1.2em;font-weight:400;font-family:inherit;background-color:transparent;cursor:pointer;transition:border-color .25s}.rdz-input:hover{border-color:#646cff}.rdz-input:focus,.rdz-input:focus-visible{outline:4px auto -webkit-focus-ring-color}input.rdz-input{box-sizing:border-box;position:relative;width:100%;max-width:480px;height:58px;border:2px solid #009df3;box-shadow:0 0 16.9px 1px #0e79f3;border-radius:11px}input.rdz-input::placeholder{color:#fff;opacity:1;font-family:Futura PT,sans-serif;font-size:1em}.rdz-magic-email-container{display:flex;flex-direction:column;align-items:center;gap:12px;width:100%}.rdz-magic-email-error{color:red}.rdz-sign-up-text{font-family:Futura PT,sans-serif;font-size:1.2em;font-weight:400}.rdz-icon-button{width:55px;height:55px;border-radius:50%;border:none;background-color:transparent;cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center;transition:transform .2s ease,filter .2s ease}.rdz-icon-button img{width:100%;height:100%;object-fit:contain}.rdz-icon-button:hover{transform:scale(1.1);filter:brightness(1.1)}.rdz-icon-button:active{transform:scale(.95)}.rdz-icon-button-disabled,.rdz-icon-button:disabled{opacity:.4;cursor:not-allowed;filter:grayscale(100%);pointer-events:none}.rdz-icon-button-disabled:hover,.rdz-icon-button:disabled:hover{transform:none;filter:grayscale(100%)}.rdz-magic-email-button{background-size:100% 100%;background-position:center;background-repeat:no-repeat;font-family:DRUNKWIDE,sans-serif;border:none;color:#fff;padding:16px 32px;cursor:pointer;min-height:135px;margin-bottom:-20px;width:100%;max-width:410px;font-size:22px;font-weight:700;text-transform:uppercase;letter-spacing:1px;background-color:transparent;transition:transform .2s ease,filter .2s ease}.rdz-magic-email-button:hover{transform:scale(1.05);filter:brightness(1.1)}.rdz-magic-email-button:active{transform:scale(.98)}.rdz-logout-button{margin-left:8px;padding:12px 24px;background-color:#3b82f6;color:#fff;border-radius:6px;border:none;cursor:pointer;font-family:Futura PT,sans-serif;font-size:16px;font-weight:500;transition:transform .2s ease,filter .2s ease}.rdz-logout-button:hover{transform:scale(1.05);filter:brightness(1.1)}.rdz-logout-button:active{transform:scale(.98)}
|