@redzone/taunt-logins-ui-react 0.0.3 → 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.
- package/.history/babel.config_20251002171845.json +0 -0
- package/.history/babel.config_20251002171847.json +3 -0
- package/.history/babel.config_20251002172145.json +3 -0
- package/.history/babel.config_20251002172313.json +3 -0
- package/.history/babel.config_20251002172415.json +8 -0
- package/.history/package_20251002162605.json +35 -0
- package/.history/package_20251002162619.json +35 -0
- package/.history/package_20251002162631.json +35 -0
- package/.history/package_20251002162639.json +35 -0
- package/.history/package_20251002162659.json +35 -0
- package/.history/package_20251002162811.json +39 -0
- package/.history/package_20251002162820.json +39 -0
- package/.history/package_20251002171613.json +40 -0
- package/.history/package_20251002171644.json +40 -0
- package/.history/package_20251002171740.json +43 -0
- package/.history/package_20251002172017.json +43 -0
- package/.history/package_20251002172634.json +53 -0
- package/.history/package_20251002182812.json +52 -0
- package/.history/package_20251002183227.json +34 -0
- package/.history/package_20251002183258.json +42 -0
- package/.history/package_20251002202514.json +46 -0
- package/.history/package_20251002202542.json +46 -0
- package/.history/package_20251002202550.json +45 -0
- package/.history/package_20251002203503.json +46 -0
- package/.history/package_20251002204314.json +45 -0
- package/.history/package_20251002213111.json +45 -0
- package/.history/package_20251002222438.json +47 -0
- package/.history/package_20251002222511.json +45 -0
- package/.history/package_20251002222541.json +45 -0
- package/.history/src/App_20251002205122.tsx +54 -0
- package/.history/src/lib/index_20251002162704.ts +0 -0
- package/.history/src/lib/index_20251002162712.ts +1 -0
- package/{src/lib/taunt.ts → .history/src/lib/index_20251002182429.ts} +2 -0
- package/.history/src/lib/magic_20251002171038.tsx +50 -0
- package/.history/src/lib/metamask_20251002171636.tsx +27 -0
- package/.history/tsconfig.app_20251002172720.json +28 -0
- package/.history/vite.config_20251002182237.ts +19 -0
- package/.history/vite.config_20251002182326.ts +19 -0
- package/.history/vite.config_20251002182358.ts +19 -0
- package/.history/vite.config_20251002182434.ts +19 -0
- package/.history/vite.config_20251002182749.ts +26 -0
- package/.history/vite.config_20251002182810.ts +26 -0
- package/.history/vite.config_20251002184535.ts +36 -0
- package/.history/vite.config_20251002184720.ts +41 -0
- package/.history/vite.config_20251002184748.ts +37 -0
- package/.history/vite.config_20251002184844.ts +37 -0
- package/.history/vite.config_20251002201901.ts +45 -0
- package/.history/vite.config_20251002202019.ts +47 -0
- package/.history/vite.config_20251002202043.ts +47 -0
- package/.history/vite.config_20251002202502.ts +47 -0
- package/.history/vite.config_20251002203503.ts +43 -0
- package/asdf/tsconfig.app.json +28 -0
- package/asdf/tsconfig.json +7 -0
- package/asdf/tsconfig.node.json +26 -0
- package/package.json +21 -8
- package/src/App.tsx +2 -2
- package/src/lib/index.ts +4 -0
- package/src/lib/magic.tsx +2 -2
- package/src/lib/metamask.tsx +1 -1
- package/tsconfig.json +23 -5
- package/tsconfig.node.json +3 -19
- package/vite.config.ts +40 -7
- package/public/vite.svg +0 -1
- package/src/lib/exports.ts +0 -3
- /package/{tsconfig.app.json → .history/tsconfig.app_20251002141038.json} +0 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import path from "path"
|
|
2
|
+
import react from "@vitejs/plugin-react-swc"
|
|
3
|
+
import { defineConfig } from "vite"
|
|
4
|
+
|
|
5
|
+
// https://vite.dev/config/
|
|
6
|
+
export default defineConfig({
|
|
7
|
+
plugins: [react()],
|
|
8
|
+
build: {
|
|
9
|
+
lib: {
|
|
10
|
+
entry: path.resolve("src", "src/lib/index.tsx"),
|
|
11
|
+
name: "@redzone/taunt-logins-ui-react",
|
|
12
|
+
fileName: (format) => `taunt-logins-ui-react.${format}.js`
|
|
13
|
+
},
|
|
14
|
+
rollupOptions: {
|
|
15
|
+
external: ["react", "react-dom"],
|
|
16
|
+
output: {
|
|
17
|
+
globals: {
|
|
18
|
+
react: "React"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
server: {
|
|
24
|
+
open: true
|
|
25
|
+
}
|
|
26
|
+
})
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import path from "path"
|
|
2
|
+
import react from "@vitejs/plugin-react-swc"
|
|
3
|
+
import { defineConfig } from "vite"
|
|
4
|
+
|
|
5
|
+
// https://vite.dev/config/
|
|
6
|
+
export default defineConfig({
|
|
7
|
+
plugins: [react()],
|
|
8
|
+
build: {
|
|
9
|
+
lib: {
|
|
10
|
+
entry: path.resolve("src", "lib/index.tsx"),
|
|
11
|
+
name: "@redzone/taunt-logins-ui-react",
|
|
12
|
+
fileName: (format) => `taunt-logins-ui-react.${format}.js`
|
|
13
|
+
},
|
|
14
|
+
rollupOptions: {
|
|
15
|
+
external: ["react", "react-dom"],
|
|
16
|
+
output: {
|
|
17
|
+
globals: {
|
|
18
|
+
react: "React"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
server: {
|
|
24
|
+
open: true
|
|
25
|
+
}
|
|
26
|
+
})
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import path from "path"
|
|
2
|
+
import react from "@vitejs/plugin-react-swc"
|
|
3
|
+
import { defineConfig } from "vite"
|
|
4
|
+
import dts from "vite-plugin-dts"
|
|
5
|
+
|
|
6
|
+
// https://vite.dev/config/
|
|
7
|
+
export default defineConfig({
|
|
8
|
+
build: {
|
|
9
|
+
lib: {
|
|
10
|
+
entry: path.resolve("src", "lib/index.tsx"),
|
|
11
|
+
name: "@redzone/taunt-logins-ui-react",
|
|
12
|
+
fileName: (format) => `taunt-logins-ui-react.${format}.js`
|
|
13
|
+
},
|
|
14
|
+
rollupOptions: {
|
|
15
|
+
external: ["react", "react-dom"],
|
|
16
|
+
output: {
|
|
17
|
+
globals: {
|
|
18
|
+
react: "React",
|
|
19
|
+
"react-dom": "ReactDOM"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
//Generates sourcemaps for the built files,
|
|
24
|
+
//aiding in debugging.
|
|
25
|
+
sourcemap: true,
|
|
26
|
+
//Clears the output directory before building.
|
|
27
|
+
emptyOutDir: true
|
|
28
|
+
},
|
|
29
|
+
//react() enables React support.
|
|
30
|
+
//dts() generates TypeScript declaration files (*.d.ts)
|
|
31
|
+
//during the build.
|
|
32
|
+
plugins: [react(), dts()],
|
|
33
|
+
server: {
|
|
34
|
+
open: true
|
|
35
|
+
}
|
|
36
|
+
})
|
|
@@ -0,0 +1,41 @@
|
|
|
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 dts from "vite-plugin-dts";
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
// https://vite.dev/config/
|
|
12
|
+
export default defineConfig({
|
|
13
|
+
build: {
|
|
14
|
+
lib: {
|
|
15
|
+
entry: path.resolve("src", "lib/index.tsx"),
|
|
16
|
+
name: "@redzone/taunt-logins-ui-react",
|
|
17
|
+
fileName: (format) => `taunt-logins-ui-react.${format}.js`
|
|
18
|
+
},
|
|
19
|
+
rollupOptions: {
|
|
20
|
+
external: ["react", "react-dom"],
|
|
21
|
+
output: {
|
|
22
|
+
globals: {
|
|
23
|
+
react: "React",
|
|
24
|
+
"react-dom": "ReactDOM"
|
|
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: [react(), dts()],
|
|
38
|
+
server: {
|
|
39
|
+
open: true
|
|
40
|
+
}
|
|
41
|
+
})
|
|
@@ -0,0 +1,37 @@
|
|
|
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 dts from "vite-plugin-dts"
|
|
6
|
+
|
|
7
|
+
// https://vite.dev/config/
|
|
8
|
+
export default defineConfig({
|
|
9
|
+
build: {
|
|
10
|
+
lib: {
|
|
11
|
+
entry: path.resolve("src", "lib/index.tsx"),
|
|
12
|
+
name: "@redzone/taunt-logins-ui-react",
|
|
13
|
+
fileName: (format) => `taunt-logins-ui-react.${format}.js`
|
|
14
|
+
},
|
|
15
|
+
rollupOptions: {
|
|
16
|
+
external: ["react", "react-dom"],
|
|
17
|
+
output: {
|
|
18
|
+
globals: {
|
|
19
|
+
react: "React",
|
|
20
|
+
"react-dom": "ReactDOM"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
//Generates sourcemaps for the built files,
|
|
25
|
+
//aiding in debugging.
|
|
26
|
+
sourcemap: true,
|
|
27
|
+
//Clears the output directory before building.
|
|
28
|
+
emptyOutDir: true
|
|
29
|
+
},
|
|
30
|
+
//react() enables React support.
|
|
31
|
+
//dts() generates TypeScript declaration files (*.d.ts)
|
|
32
|
+
//during the build.
|
|
33
|
+
plugins: [react(), dts()],
|
|
34
|
+
server: {
|
|
35
|
+
open: true
|
|
36
|
+
}
|
|
37
|
+
})
|
|
@@ -0,0 +1,37 @@
|
|
|
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 dts from "vite-plugin-dts"
|
|
6
|
+
|
|
7
|
+
// https://vite.dev/config/
|
|
8
|
+
export default defineConfig({
|
|
9
|
+
build: {
|
|
10
|
+
lib: {
|
|
11
|
+
entry: path.resolve("src", "lib/index.tsx"),
|
|
12
|
+
name: "@redzone/taunt-logins-ui-react",
|
|
13
|
+
fileName: (format) => `index.${format}.js`
|
|
14
|
+
},
|
|
15
|
+
rollupOptions: {
|
|
16
|
+
external: ["react", "react-dom"],
|
|
17
|
+
output: {
|
|
18
|
+
globals: {
|
|
19
|
+
react: "React",
|
|
20
|
+
"react-dom": "ReactDOM"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
//Generates sourcemaps for the built files,
|
|
25
|
+
//aiding in debugging.
|
|
26
|
+
sourcemap: true,
|
|
27
|
+
//Clears the output directory before building.
|
|
28
|
+
emptyOutDir: true
|
|
29
|
+
},
|
|
30
|
+
//react() enables React support.
|
|
31
|
+
//dts() generates TypeScript declaration files (*.d.ts)
|
|
32
|
+
//during the build.
|
|
33
|
+
plugins: [react(), dts()],
|
|
34
|
+
server: {
|
|
35
|
+
open: true
|
|
36
|
+
}
|
|
37
|
+
})
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
},
|
|
16
|
+
rollupOptions: {
|
|
17
|
+
external: ["react", "react-dom", "react/jsx-runtime"],
|
|
18
|
+
output: {
|
|
19
|
+
globals: {
|
|
20
|
+
react: "React",
|
|
21
|
+
"react-dom": "ReactDOM",
|
|
22
|
+
"react/jsx-runtime": "react/jsx-runtime"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
//Generates sourcemaps for the built files,
|
|
27
|
+
//aiding in debugging.
|
|
28
|
+
sourcemap: true,
|
|
29
|
+
//Clears the output directory before building.
|
|
30
|
+
emptyOutDir: true
|
|
31
|
+
},
|
|
32
|
+
//react() enables React support.
|
|
33
|
+
//dts() generates TypeScript declaration files (*.d.ts)
|
|
34
|
+
//during the build.
|
|
35
|
+
plugins: [
|
|
36
|
+
cssInjectedByJsPlugin(),
|
|
37
|
+
react(),
|
|
38
|
+
dts({
|
|
39
|
+
insertTypesEntry: true
|
|
40
|
+
})
|
|
41
|
+
],
|
|
42
|
+
server: {
|
|
43
|
+
open: true
|
|
44
|
+
}
|
|
45
|
+
})
|
|
@@ -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,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,18 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redzone/taunt-logins-ui-react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"main": "src/lib/exports.ts",
|
|
6
5
|
"scripts": {
|
|
7
6
|
"dev": "vite",
|
|
8
|
-
"build": "tsc
|
|
7
|
+
"build": "tsc && vite build",
|
|
8
|
+
"prebuild": "npm run clean",
|
|
9
|
+
"clean": "rm -rf dist",
|
|
9
10
|
"lint": "eslint .",
|
|
10
11
|
"preview": "vite preview"
|
|
11
12
|
},
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
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
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"peerDependencies": {
|
|
23
|
+
"react": "^18.2.0",
|
|
24
|
+
"react-dom": "^18.2.0",
|
|
25
|
+
"@redzone/taunt-logins": "^0.0.3"
|
|
16
26
|
},
|
|
17
27
|
"devDependencies": {
|
|
18
28
|
"@eslint/js": "^9.36.0",
|
|
@@ -20,6 +30,7 @@
|
|
|
20
30
|
"@types/node": "^24.6.0",
|
|
21
31
|
"@types/react": "^19.1.16",
|
|
22
32
|
"@types/react-dom": "^19.1.9",
|
|
33
|
+
"@vitejs/plugin-react": "^5.0.4",
|
|
23
34
|
"@vitejs/plugin-react-swc": "^4.1.0",
|
|
24
35
|
"eslint": "^9.36.0",
|
|
25
36
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
@@ -27,6 +38,8 @@
|
|
|
27
38
|
"globals": "^16.4.0",
|
|
28
39
|
"typescript": "~5.9.3",
|
|
29
40
|
"typescript-eslint": "^8.45.0",
|
|
30
|
-
"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"
|
|
31
44
|
}
|
|
32
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={
|
|
12
|
-
magicKey={
|
|
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",
|
package/src/lib/index.ts
ADDED
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
|
-
|
|
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
|
|
45
|
+
<button className="rdz-button" onClick={runMagic} type="button">
|
|
46
46
|
Send Magic Link
|
|
47
47
|
</button>
|
|
48
48
|
</div>
|
package/src/lib/metamask.tsx
CHANGED
package/tsconfig.json
CHANGED
|
@@ -1,7 +1,25 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
}
|
package/tsconfig.node.json
CHANGED
|
@@ -1,26 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"
|
|
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
|
-
"
|
|
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
|
}
|