@redzone/taunt-logins-ui-react 0.0.4 → 0.0.5

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.
Files changed (55) hide show
  1. package/.history/babel.config_20251002171845.json +0 -0
  2. package/.history/babel.config_20251002171847.json +3 -0
  3. package/.history/babel.config_20251002172145.json +3 -0
  4. package/.history/babel.config_20251002172313.json +3 -0
  5. package/.history/babel.config_20251002172415.json +8 -0
  6. package/.history/package_20251002171613.json +40 -0
  7. package/.history/package_20251002171644.json +40 -0
  8. package/.history/package_20251002171740.json +43 -0
  9. package/.history/package_20251002172017.json +43 -0
  10. package/.history/package_20251002172634.json +53 -0
  11. package/.history/package_20251002182812.json +52 -0
  12. package/.history/package_20251002183227.json +34 -0
  13. package/.history/package_20251002183258.json +42 -0
  14. package/.history/package_20251002202514.json +46 -0
  15. package/.history/package_20251002202542.json +46 -0
  16. package/.history/package_20251002202550.json +45 -0
  17. package/.history/package_20251002203503.json +46 -0
  18. package/.history/package_20251002204314.json +45 -0
  19. package/.history/package_20251002213111.json +45 -0
  20. package/.history/package_20251002222438.json +47 -0
  21. package/.history/package_20251002222511.json +45 -0
  22. package/.history/package_20251002222541.json +45 -0
  23. package/.history/src/App_20251002205122.tsx +54 -0
  24. package/.history/src/lib/index_20251002182429.ts +4 -0
  25. package/.history/src/lib/magic_20251002171038.tsx +50 -0
  26. package/.history/src/lib/metamask_20251002171636.tsx +27 -0
  27. package/.history/tsconfig.app_20251002172720.json +28 -0
  28. package/.history/vite.config_20251002182237.ts +19 -0
  29. package/.history/vite.config_20251002182326.ts +19 -0
  30. package/.history/vite.config_20251002182358.ts +19 -0
  31. package/.history/vite.config_20251002182434.ts +19 -0
  32. package/.history/vite.config_20251002182749.ts +26 -0
  33. package/.history/vite.config_20251002182810.ts +26 -0
  34. package/.history/vite.config_20251002184535.ts +36 -0
  35. package/.history/vite.config_20251002184720.ts +41 -0
  36. package/.history/vite.config_20251002184748.ts +37 -0
  37. package/.history/vite.config_20251002184844.ts +37 -0
  38. package/.history/vite.config_20251002201901.ts +45 -0
  39. package/.history/vite.config_20251002202019.ts +47 -0
  40. package/.history/vite.config_20251002202043.ts +47 -0
  41. package/.history/vite.config_20251002202502.ts +47 -0
  42. package/.history/vite.config_20251002203503.ts +43 -0
  43. package/asdf/tsconfig.app.json +28 -0
  44. package/asdf/tsconfig.json +7 -0
  45. package/asdf/tsconfig.node.json +26 -0
  46. package/package.json +21 -15
  47. package/src/App.tsx +2 -2
  48. package/src/lib/index.ts +4 -0
  49. package/src/lib/magic.tsx +2 -2
  50. package/src/lib/metamask.tsx +1 -1
  51. package/tsconfig.json +23 -5
  52. package/tsconfig.node.json +3 -19
  53. package/vite.config.ts +40 -7
  54. package/public/vite.svg +0 -1
  55. /package/{tsconfig.app.json → .history/tsconfig.app_20251002141038.json} +0 -0
@@ -0,0 +1,47 @@
1
+ import path from "path"
2
+ // import react from "@vitejs/plugin-react-swc"
3
+ import react from "@vitejs/plugin-react"
4
+ import { defineConfig } from "vite"
5
+ import cssInjectedByJsPlugin from "vite-plugin-css-injected-by-js"
6
+ import dts from "vite-plugin-dts"
7
+
8
+ // https://vite.dev/config/
9
+ export default defineConfig({
10
+ build: {
11
+ lib: {
12
+ entry: path.resolve("src", "lib/index.tsx"),
13
+ name: "@redzone/taunt-logins-ui-react",
14
+ // fileName: (format) => `index.${format}.js`
15
+ // the proper extensions will be added
16
+ fileName: "taunt-logins-ui-react"
17
+ },
18
+ rollupOptions: {
19
+ external: ["react", "react-dom", "react/jsx-runtime"],
20
+ output: {
21
+ globals: {
22
+ react: "React",
23
+ "react-dom": "ReactDOM",
24
+ "react/jsx-runtime": "react/jsx-runtime"
25
+ }
26
+ }
27
+ },
28
+ //Generates sourcemaps for the built files,
29
+ //aiding in debugging.
30
+ sourcemap: true,
31
+ //Clears the output directory before building.
32
+ emptyOutDir: true
33
+ },
34
+ //react() enables React support.
35
+ //dts() generates TypeScript declaration files (*.d.ts)
36
+ //during the build.
37
+ plugins: [
38
+ cssInjectedByJsPlugin(),
39
+ react(),
40
+ dts({
41
+ insertTypesEntry: true
42
+ })
43
+ ],
44
+ server: {
45
+ open: true
46
+ }
47
+ })
@@ -0,0 +1,47 @@
1
+ import path from "path"
2
+ // import react from "@vitejs/plugin-react-swc"
3
+ import react from "@vitejs/plugin-react"
4
+ import { defineConfig } from "vite"
5
+ import cssInjectedByJsPlugin from "vite-plugin-css-injected-by-js"
6
+ import dts from "vite-plugin-dts"
7
+
8
+ // https://vite.dev/config/
9
+ export default defineConfig({
10
+ build: {
11
+ lib: {
12
+ entry: path.resolve("src", "lib/index.ts"),
13
+ name: "@redzone/taunt-logins-ui-react",
14
+ // fileName: (format) => `index.${format}.js`
15
+ // the proper extensions will be added
16
+ fileName: "taunt-logins-ui-react"
17
+ },
18
+ rollupOptions: {
19
+ external: ["react", "react-dom", "react/jsx-runtime"],
20
+ output: {
21
+ globals: {
22
+ react: "React",
23
+ "react-dom": "ReactDOM",
24
+ "react/jsx-runtime": "react/jsx-runtime"
25
+ }
26
+ }
27
+ },
28
+ //Generates sourcemaps for the built files,
29
+ //aiding in debugging.
30
+ sourcemap: true,
31
+ //Clears the output directory before building.
32
+ emptyOutDir: true
33
+ },
34
+ //react() enables React support.
35
+ //dts() generates TypeScript declaration files (*.d.ts)
36
+ //during the build.
37
+ plugins: [
38
+ cssInjectedByJsPlugin(),
39
+ react(),
40
+ dts({
41
+ insertTypesEntry: true
42
+ })
43
+ ],
44
+ server: {
45
+ open: true
46
+ }
47
+ })
@@ -0,0 +1,47 @@
1
+ import { resolve } from "path"
2
+ // import react from "@vitejs/plugin-react-swc"
3
+ import react from "@vitejs/plugin-react"
4
+ import { defineConfig } from "vite"
5
+ import cssInjectedByJsPlugin from "vite-plugin-css-injected-by-js"
6
+ import dts from "vite-plugin-dts"
7
+
8
+ // https://vite.dev/config/
9
+ export default defineConfig({
10
+ //react() enables React support.
11
+ //dts() generates TypeScript declaration files (*.d.ts)
12
+ //during the build.
13
+ plugins: [
14
+ cssInjectedByJsPlugin(),
15
+ react(),
16
+ dts({
17
+ insertTypesEntry: true
18
+ })
19
+ ],
20
+ build: {
21
+ lib: {
22
+ entry: resolve(__dirname, "src/lib/index.ts"),
23
+ name: "@redzone/taunt-logins-ui-react",
24
+ // fileName: (format) => `index.${format}.js`
25
+ // the proper extensions will be added
26
+ fileName: "taunt-logins-ui-react"
27
+ },
28
+ rollupOptions: {
29
+ external: ["react", "react-dom", "react/jsx-runtime"],
30
+ output: {
31
+ globals: {
32
+ react: "React",
33
+ "react-dom": "ReactDOM",
34
+ "react/jsx-runtime": "react/jsx-runtime"
35
+ }
36
+ }
37
+ },
38
+ //Generates sourcemaps for the built files,
39
+ //aiding in debugging.
40
+ sourcemap: true,
41
+ //Clears the output directory before building.
42
+ emptyOutDir: true
43
+ },
44
+ server: {
45
+ open: true
46
+ }
47
+ })
@@ -0,0 +1,43 @@
1
+ import { resolve } from "path"
2
+ // import react from "@vitejs/plugin-react-swc"
3
+ import react from "@vitejs/plugin-react"
4
+ import { defineConfig } from "vite"
5
+ import cssInjectedByJsPlugin from "vite-plugin-css-injected-by-js"
6
+ import dts from "vite-plugin-dts"
7
+
8
+ export default defineConfig({
9
+ plugins: [
10
+ cssInjectedByJsPlugin(),
11
+ react(),
12
+ dts({
13
+ insertTypesEntry: true
14
+ })
15
+ ],
16
+ build: {
17
+ lib: {
18
+ entry: resolve(__dirname, "src/lib/index.ts"),
19
+ name: "@redzone/taunt-logins-ui-react",
20
+ // fileName: (format) => `index.${format}.js`
21
+ // the proper extensions will be added
22
+ fileName: "taunt-logins-ui-react"
23
+ },
24
+ rollupOptions: {
25
+ external: ["react", "react-dom", "react/jsx-runtime"],
26
+ output: {
27
+ globals: {
28
+ react: "React",
29
+ "react-dom": "ReactDOM",
30
+ "react/jsx-runtime": "react/jsx-runtime"
31
+ }
32
+ }
33
+ },
34
+ //Generates sourcemaps for the built files,
35
+ //aiding in debugging.
36
+ sourcemap: true,
37
+ //Clears the output directory before building.
38
+ emptyOutDir: true
39
+ },
40
+ server: {
41
+ open: true
42
+ }
43
+ })
@@ -0,0 +1,28 @@
1
+ {
2
+ "compilerOptions": {
3
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
4
+ "target": "ES2022",
5
+ "useDefineForClassFields": true,
6
+ "lib": ["ES2022", "DOM", "DOM.Iterable"],
7
+ "module": "ESNext",
8
+ "types": ["vite/client"],
9
+ "skipLibCheck": true,
10
+
11
+ /* Bundler mode */
12
+ "moduleResolution": "bundler",
13
+ "allowImportingTsExtensions": true,
14
+ "verbatimModuleSyntax": true,
15
+ "moduleDetection": "force",
16
+ "noEmit": true,
17
+ "jsx": "react-jsx",
18
+
19
+ /* Linting */
20
+ "strict": true,
21
+ "noUnusedLocals": true,
22
+ "noUnusedParameters": true,
23
+ "erasableSyntaxOnly": false,
24
+ "noFallthroughCasesInSwitch": true,
25
+ "noUncheckedSideEffectImports": true
26
+ },
27
+ "include": ["src"]
28
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "files": [],
3
+ "references": [
4
+ { "path": "./tsconfig.app.json" },
5
+ { "path": "./tsconfig.node.json" }
6
+ ]
7
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "compilerOptions": {
3
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
4
+ "target": "ES2023",
5
+ "lib": ["ES2023"],
6
+ "module": "ESNext",
7
+ "types": ["node"],
8
+ "skipLibCheck": true,
9
+
10
+ /* Bundler mode */
11
+ "moduleResolution": "bundler",
12
+ "allowImportingTsExtensions": true,
13
+ "verbatimModuleSyntax": true,
14
+ "moduleDetection": "force",
15
+ "noEmit": true,
16
+
17
+ /* Linting */
18
+ "strict": true,
19
+ "noUnusedLocals": true,
20
+ "noUnusedParameters": true,
21
+ "erasableSyntaxOnly": true,
22
+ "noFallthroughCasesInSwitch": true,
23
+ "noUncheckedSideEffectImports": true
24
+ },
25
+ "include": ["vite.config.ts"]
26
+ }
package/package.json CHANGED
@@ -1,32 +1,36 @@
1
1
  {
2
2
  "name": "@redzone/taunt-logins-ui-react",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",
7
- "build": "tsc -b && vite build",
7
+ "build": "tsc && vite build",
8
+ "prebuild": "npm run clean",
9
+ "clean": "rm -rf dist",
8
10
  "lint": "eslint .",
9
- "preview": "vite preview",
10
- "publish:npm": "rm -rf dist && mkdir dist && babel src/lib -d dist --copy-files"
11
+ "preview": "vite preview"
11
12
  },
12
- "babel": {
13
- "presets": [
14
- "@babel/preset-react"
15
- ]
13
+ "main": "./dist/taunt-logins-ui-react.umd.js",
14
+ "module": "./dist/taunt-logins-ui-react.js",
15
+ "types": "./dist/taunt-logins-ui-react.d.ts",
16
+ "exports": {
17
+ ".": {
18
+ "import": "./dist/taunt-logins-ui-react.js",
19
+ "require": "./dist/taunt-logins-ui-react.umd.js"
20
+ }
16
21
  },
17
- "dependencies": {
18
- "@redzone/taunt-logins": "^0.0.3",
19
- "react": "^19.1.1",
20
- "react-dom": "^19.1.1"
22
+ "peerDependencies": {
23
+ "react": "^18.2.0",
24
+ "react-dom": "^18.2.0",
25
+ "@redzone/taunt-logins": "^0.0.3"
21
26
  },
22
27
  "devDependencies": {
23
- "@babel/cli": "^7.28.3",
24
- "@babel/preset-react": "^7.27.1",
25
28
  "@eslint/js": "^9.36.0",
26
29
  "@ianvs/prettier-plugin-sort-imports": "^4.7.0",
27
30
  "@types/node": "^24.6.0",
28
31
  "@types/react": "^19.1.16",
29
32
  "@types/react-dom": "^19.1.9",
33
+ "@vitejs/plugin-react": "^5.0.4",
30
34
  "@vitejs/plugin-react-swc": "^4.1.0",
31
35
  "eslint": "^9.36.0",
32
36
  "eslint-plugin-react-hooks": "^5.2.0",
@@ -34,6 +38,8 @@
34
38
  "globals": "^16.4.0",
35
39
  "typescript": "~5.9.3",
36
40
  "typescript-eslint": "^8.45.0",
37
- "vite": "^7.1.7"
41
+ "vite": "^7.1.7",
42
+ "vite-plugin-css-injected-by-js": "^3.5.2",
43
+ "vite-plugin-dts": "^4.5.4"
38
44
  }
39
45
  }
package/src/App.tsx CHANGED
@@ -8,8 +8,8 @@ import { TauntProvider } from "./lib/tauntProvider"
8
8
  function App() {
9
9
  return (
10
10
  <TauntProvider
11
- tauntServiceEndpoint={import.meta.env.VITE_TAUNT_SERVICE_ENDPOINT}
12
- magicKey={import.meta.env.VITE_MAGIC_KEY}>
11
+ tauntServiceEndpoint={process.env.VITE_TAUNT_SERVICE_ENDPOINT}
12
+ magicKey={process.env.VITE_MAGIC_KEY}>
13
13
  <div
14
14
  style={{
15
15
  display: "flex",
@@ -0,0 +1,4 @@
1
+ export * from "./magic"
2
+ export * from "./metamask"
3
+ export * from "./tauntContext"
4
+ export * from "./tauntProvider"
package/src/lib/magic.tsx CHANGED
@@ -36,13 +36,13 @@ export const MagicEmailInput = ({
36
36
  <div style={{ color: "red" }}>Please enter a valid email</div>
37
37
  )}
38
38
  <input
39
- class="rdz-input"
39
+ className="rdz-input"
40
40
  onChange={(e) => setEmail(e.target.value ? e.target.value : undefined)}
41
41
  placeholder="Enter your email"
42
42
  type="email"
43
43
  value={email}
44
44
  />
45
- <button class="rdz-button" onClick={runMagic} type="button">
45
+ <button className="rdz-button" onClick={runMagic} type="button">
46
46
  Send Magic Link
47
47
  </button>
48
48
  </div>
@@ -20,7 +20,7 @@ export const MetaMaskButton = ({
20
20
  }, [metamaskLogin, openMetamask])
21
21
 
22
22
  return (
23
- <button class="rdz-button" onClick={runMetamask}>
23
+ <button className="rdz-button" onClick={runMetamask}>
24
24
  Login with Metamask
25
25
  </button>
26
26
  )
package/tsconfig.json CHANGED
@@ -1,7 +1,25 @@
1
1
  {
2
- "files": [],
3
- "references": [
4
- { "path": "./tsconfig.app.json" },
5
- { "path": "./tsconfig.node.json" }
6
- ]
2
+ "compilerOptions": {
3
+ "target": "ES2020",
4
+ "useDefineForClassFields": true,
5
+ "lib": ["ES2020", "DOM", "DOM.Iterable"],
6
+ "module": "ESNext",
7
+ "skipLibCheck": true,
8
+
9
+ /* Bundler mode */
10
+ "moduleResolution": "bundler",
11
+ "allowImportingTsExtensions": true,
12
+ "resolveJsonModule": true,
13
+ "isolatedModules": true,
14
+ "noEmit": true,
15
+ "jsx": "react-jsx",
16
+
17
+ /* Linting */
18
+ "strict": true,
19
+ "noUnusedLocals": true,
20
+ "noUnusedParameters": true,
21
+ "noFallthroughCasesInSwitch": true
22
+ },
23
+ "include": ["src"],
24
+ "references": [{ "path": "./tsconfig.node.json" }]
7
25
  }
@@ -1,26 +1,10 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
4
- "target": "ES2023",
5
- "lib": ["ES2023"],
6
- "module": "ESNext",
7
- "types": ["node"],
3
+ "composite": true,
8
4
  "skipLibCheck": true,
9
-
10
- /* Bundler mode */
5
+ "module": "ESNext",
11
6
  "moduleResolution": "bundler",
12
- "allowImportingTsExtensions": true,
13
- "verbatimModuleSyntax": true,
14
- "moduleDetection": "force",
15
- "noEmit": true,
16
-
17
- /* Linting */
18
- "strict": true,
19
- "noUnusedLocals": true,
20
- "noUnusedParameters": true,
21
- "erasableSyntaxOnly": true,
22
- "noFallthroughCasesInSwitch": true,
23
- "noUncheckedSideEffectImports": true
7
+ "allowSyntheticDefaultImports": true
24
8
  },
25
9
  "include": ["vite.config.ts"]
26
10
  }
package/vite.config.ts CHANGED
@@ -1,10 +1,43 @@
1
- import react from "@vitejs/plugin-react-swc";
2
- import { defineConfig } from "vite";
1
+ import { resolve } from "path"
2
+ // import react from "@vitejs/plugin-react-swc"
3
+ import react from "@vitejs/plugin-react"
4
+ import { defineConfig } from "vite"
5
+ import cssInjectedByJsPlugin from "vite-plugin-css-injected-by-js"
6
+ import dts from "vite-plugin-dts"
3
7
 
4
- // https://vite.dev/config/
5
8
  export default defineConfig({
6
- plugins: [react()],
7
- server: {
8
- open: true,
9
+ plugins: [
10
+ cssInjectedByJsPlugin(),
11
+ react(),
12
+ dts({
13
+ insertTypesEntry: true
14
+ })
15
+ ],
16
+ build: {
17
+ lib: {
18
+ entry: resolve(__dirname, "src/lib/index.ts"),
19
+ name: "@redzone/taunt-logins-ui-react",
20
+ // fileName: (format) => `index.${format}.js`
21
+ // the proper extensions will be added
22
+ fileName: "taunt-logins-ui-react"
23
+ },
24
+ rollupOptions: {
25
+ external: ["react", "react-dom", "react/jsx-runtime"],
26
+ output: {
27
+ globals: {
28
+ react: "React",
29
+ "react-dom": "ReactDOM",
30
+ "react/jsx-runtime": "react/jsx-runtime"
31
+ }
32
+ }
33
+ },
34
+ //Generates sourcemaps for the built files,
35
+ //aiding in debugging.
36
+ sourcemap: true,
37
+ //Clears the output directory before building.
38
+ emptyOutDir: true
9
39
  },
10
- });
40
+ server: {
41
+ open: true
42
+ }
43
+ })
package/public/vite.svg DELETED
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>