@redzone/taunt-logins-ui-react 0.0.5 → 0.0.6
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/App.d.ts +2 -0
- package/dist/lib/index.d.ts +4 -0
- package/dist/lib/magic.d.ts +3 -0
- package/dist/lib/metamask.d.ts +3 -0
- package/dist/lib/tauntContext.d.ts +12 -0
- package/dist/lib/tauntProvider.d.ts +5 -0
- package/dist/main.d.ts +1 -0
- package/dist/taunt-logins-ui-react.d.ts +2 -0
- package/dist/taunt-logins-ui-react.js +3089 -0
- package/dist/taunt-logins-ui-react.js.map +1 -0
- package/dist/taunt-logins-ui-react.umd.cjs +7 -0
- package/dist/taunt-logins-ui-react.umd.cjs.map +1 -0
- package/package.json +5 -2
- package/.history/babel.config_20251002171845.json +0 -0
- package/.history/babel.config_20251002171847.json +0 -3
- package/.history/babel.config_20251002172145.json +0 -3
- package/.history/babel.config_20251002172313.json +0 -3
- package/.history/babel.config_20251002172415.json +0 -8
- package/.history/index_20251002141038.html +0 -13
- package/.history/index_20251002141344.html +0 -13
- package/.history/package_20251002154235.json +0 -32
- package/.history/package_20251002160110.json +0 -33
- package/.history/package_20251002161109.json +0 -33
- package/.history/package_20251002161124.json +0 -32
- package/.history/package_20251002161826.json +0 -32
- package/.history/package_20251002162139.json +0 -32
- package/.history/package_20251002162605.json +0 -35
- package/.history/package_20251002162619.json +0 -35
- package/.history/package_20251002162631.json +0 -35
- package/.history/package_20251002162639.json +0 -35
- package/.history/package_20251002162659.json +0 -35
- package/.history/package_20251002162811.json +0 -39
- package/.history/package_20251002162820.json +0 -39
- package/.history/package_20251002171613.json +0 -40
- package/.history/package_20251002171644.json +0 -40
- package/.history/package_20251002171740.json +0 -43
- package/.history/package_20251002172017.json +0 -43
- package/.history/package_20251002172634.json +0 -53
- package/.history/package_20251002182812.json +0 -52
- package/.history/package_20251002183227.json +0 -34
- package/.history/package_20251002183258.json +0 -42
- package/.history/package_20251002202514.json +0 -46
- package/.history/package_20251002202542.json +0 -46
- package/.history/package_20251002202550.json +0 -45
- package/.history/package_20251002203503.json +0 -46
- package/.history/package_20251002204314.json +0 -45
- package/.history/package_20251002213111.json +0 -45
- package/.history/package_20251002222438.json +0 -47
- package/.history/package_20251002222511.json +0 -45
- package/.history/package_20251002222541.json +0 -45
- package/.history/src/App_20251002141038.tsx +0 -35
- package/.history/src/App_20251002142848.tsx +0 -15
- package/.history/src/App_20251002152540.tsx +0 -15
- package/.history/src/App_20251002152831.tsx +0 -17
- package/.history/src/App_20251002153145.tsx +0 -18
- package/.history/src/App_20251002153323.tsx +0 -25
- package/.history/src/App_20251002153420.tsx +0 -32
- package/.history/src/App_20251002153429.tsx +0 -33
- package/.history/src/App_20251002153457.tsx +0 -39
- package/.history/src/App_20251002153516.tsx +0 -39
- package/.history/src/App_20251002153520.tsx +0 -39
- package/.history/src/App_20251002153546.tsx +0 -41
- package/.history/src/App_20251002154625.tsx +0 -41
- package/.history/src/App_20251002154740.tsx +0 -47
- package/.history/src/App_20251002154812.tsx +0 -47
- package/.history/src/App_20251002154841.tsx +0 -47
- package/.history/src/App_20251002154915.tsx +0 -54
- package/.history/src/App_20251002160347.tsx +0 -54
- package/.history/src/App_20251002205122.tsx +0 -54
- package/.history/src/lib/exports_20251002160004.ts +0 -0
- package/.history/src/lib/exports_20251002160045.ts +0 -3
- package/.history/src/lib/index_20251002162704.ts +0 -0
- package/.history/src/lib/index_20251002162712.ts +0 -1
- package/.history/src/lib/index_20251002182429.ts +0 -4
- package/.history/src/lib/magic_20251002142829.tsx +0 -0
- package/.history/src/lib/magic_20251002142848.tsx +0 -44
- package/.history/src/lib/magic_20251002152540.tsx +0 -28
- package/.history/src/lib/magic_20251002152543.tsx +0 -28
- package/.history/src/lib/magic_20251002152546.tsx +0 -28
- package/.history/src/lib/magic_20251002152802.tsx +0 -47
- package/.history/src/lib/magic_20251002154740.tsx +0 -47
- package/.history/src/lib/magic_20251002155035.tsx +0 -47
- package/.history/src/lib/magic_20251002160411.tsx +0 -49
- package/.history/src/lib/magic_20251002160428.tsx +0 -49
- package/.history/src/lib/magic_20251002161028.tsx +0 -50
- package/.history/src/lib/magic_20251002162134.tsx +0 -50
- package/.history/src/lib/magic_20251002171038.tsx +0 -50
- package/.history/src/lib/metamask_20251002141612.tsx +0 -0
- package/.history/src/lib/metamask_20251002142622.tsx +0 -38
- package/.history/src/lib/metamask_20251002142654.tsx +0 -41
- package/.history/src/lib/metamask_20251002142726.tsx +0 -44
- package/.history/src/lib/metamask_20251002142848.tsx +0 -0
- package/.history/src/lib/metamask_20251002152802.tsx +0 -28
- package/.history/src/lib/metamask_20251002153516.tsx +0 -27
- package/.history/src/lib/metamask_20251002154228.tsx +0 -27
- package/.history/src/lib/metamask_20251002154523.tsx +0 -27
- package/.history/src/lib/metamask_20251002162122.tsx +0 -27
- package/.history/src/lib/metamask_20251002171636.tsx +0 -27
- package/.history/src/lib/styling_20251002154448.css +0 -0
- package/.history/src/lib/styling_20251002154523.css +0 -19
- package/.history/src/lib/styling_20251002154531.css +0 -19
- package/.history/src/lib/styling_20251002154544.css +0 -20
- package/.history/src/lib/styling_20251002154548.css +0 -19
- package/.history/src/lib/styling_20251002160446.css +0 -20
- package/.history/src/lib/styling_20251002160511.css +0 -23
- package/.history/src/lib/styling_20251002160515.css +0 -24
- package/.history/src/lib/styling_20251002160815.css +0 -24
- package/.history/src/lib/styling_20251002160910.css +0 -24
- package/.history/src/lib/styling_20251002160915.css +0 -24
- package/.history/src/lib/styling_20251002160952.css +0 -24
- package/.history/src/lib/styling_20251002161001.css +0 -24
- package/.history/src/lib/styling_20251002161011.css +0 -24
- package/.history/src/lib/styling_20251002161016.css +0 -24
- package/.history/src/lib/styling_20251002161036.css +0 -25
- package/.history/src/lib/tauntContext_20251002142359.ts +0 -0
- package/.history/src/lib/tauntContext_20251002142622.ts +0 -17
- package/.history/src/lib/tauntContext_20251002152540.ts +0 -22
- package/.history/src/lib/tauntContext_20251002152802.ts +0 -22
- package/.history/src/lib/tauntProvider_20251002142503.tsx +0 -0
- package/.history/src/lib/tauntProvider_20251002142622.tsx +0 -15
- package/.history/src/lib/tauntProvider_20251002143158.tsx +0 -19
- package/.history/src/lib/tauntProvider_20251002144018.tsx +0 -19
- package/.history/src/lib/tauntProvider_20251002152234.tsx +0 -40
- package/.history/src/lib/tauntProvider_20251002152802.tsx +0 -40
- package/.history/src/lib/tauntProvider_20251002153101.tsx +0 -49
- package/.history/src/lib/taunt_20251002160026.ts +0 -0
- package/.history/src/lib/taunt_20251002160045.ts +0 -2
- package/.history/src/main_20251002141038.tsx +0 -10
- package/.history/src/main_20251002141444.tsx +0 -12
- package/.history/src/main_20251002160347.tsx +0 -12
- package/.history/tsconfig.app_20251002141038.json +0 -28
- package/.history/tsconfig.app_20251002172720.json +0 -28
- package/.history/vite.config_20251002141038.ts +0 -7
- package/.history/vite.config_20251002141323.ts +0 -10
- package/.history/vite.config_20251002182237.ts +0 -19
- package/.history/vite.config_20251002182326.ts +0 -19
- package/.history/vite.config_20251002182358.ts +0 -19
- package/.history/vite.config_20251002182434.ts +0 -19
- package/.history/vite.config_20251002182749.ts +0 -26
- package/.history/vite.config_20251002182810.ts +0 -26
- package/.history/vite.config_20251002184535.ts +0 -36
- package/.history/vite.config_20251002184720.ts +0 -41
- package/.history/vite.config_20251002184748.ts +0 -37
- package/.history/vite.config_20251002184844.ts +0 -37
- package/.history/vite.config_20251002201901.ts +0 -45
- package/.history/vite.config_20251002202019.ts +0 -47
- package/.history/vite.config_20251002202043.ts +0 -47
- package/.history/vite.config_20251002202502.ts +0 -47
- package/.history/vite.config_20251002203503.ts +0 -43
- package/.prettierrc.mjs +0 -22
- package/asdf/tsconfig.app.json +0 -28
- package/asdf/tsconfig.json +0 -7
- package/asdf/tsconfig.node.json +0 -26
- package/eslint.config.js +0 -23
- package/index.html +0 -13
- package/src/App.css +0 -42
- package/src/App.tsx +0 -54
- package/src/index.css +0 -68
- package/src/lib/index.ts +0 -4
- package/src/lib/magic.tsx +0 -50
- package/src/lib/metamask.tsx +0 -27
- package/src/lib/styling.css +0 -25
- package/src/lib/tauntContext.ts +0 -22
- package/src/lib/tauntProvider.tsx +0 -49
- package/src/main.tsx +0 -12
- package/tsconfig.json +0 -25
- package/tsconfig.node.json +0 -10
- package/vite.config.ts +0 -43
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { TauntContext } from "./tauntContext"
|
|
2
|
-
|
|
3
|
-
export const TauntProvider = ({
|
|
4
|
-
children,
|
|
5
|
-
tauntServiceEndpoint
|
|
6
|
-
}: {
|
|
7
|
-
children: React.ReactNode
|
|
8
|
-
tauntServiceEndpoint?: string
|
|
9
|
-
}) => {
|
|
10
|
-
if (!tauntServiceEndpoint) {
|
|
11
|
-
return <div>tauntServiceEndpoint is required</div>
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
return (
|
|
15
|
-
<TauntContext.Provider value={{ tauntServiceEndpoint }}>
|
|
16
|
-
{children}
|
|
17
|
-
</TauntContext.Provider>
|
|
18
|
-
)
|
|
19
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { tauntMagicDidLogin, tauntMetamaskLogin } from "@redzone/taunt-logins"
|
|
2
|
-
import { useCallback, useState } from "react"
|
|
3
|
-
|
|
4
|
-
import { TauntContext } from "./tauntContext"
|
|
5
|
-
|
|
6
|
-
export const TauntProvider = ({
|
|
7
|
-
children,
|
|
8
|
-
tauntServiceEndpoint
|
|
9
|
-
}: {
|
|
10
|
-
children: React.ReactNode
|
|
11
|
-
tauntServiceEndpoint?: string
|
|
12
|
-
}) => {
|
|
13
|
-
const [deets, setDeets] = useState<{
|
|
14
|
-
accessToken: string
|
|
15
|
-
refreshToken: string
|
|
16
|
-
}>()
|
|
17
|
-
|
|
18
|
-
const otpLogin = useCallback(
|
|
19
|
-
(email: string) => {
|
|
20
|
-
tauntMagicDidLogin(tauntServiceEndpoint!, email!).then(setDeets)
|
|
21
|
-
},
|
|
22
|
-
[tauntServiceEndpoint]
|
|
23
|
-
)
|
|
24
|
-
|
|
25
|
-
const metamaskLogin = useCallback(
|
|
26
|
-
() => tauntMetamaskLogin(tauntServiceEndpoint!).then(setDeets),
|
|
27
|
-
[tauntServiceEndpoint]
|
|
28
|
-
)
|
|
29
|
-
|
|
30
|
-
if (!tauntServiceEndpoint) {
|
|
31
|
-
return <div>tauntServiceEndpoint is required</div>
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
return (
|
|
35
|
-
<TauntContext.Provider
|
|
36
|
-
value={{ tauntServiceEndpoint, deets, otpLogin, metamaskLogin }}>
|
|
37
|
-
{children}
|
|
38
|
-
</TauntContext.Provider>
|
|
39
|
-
)
|
|
40
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { tauntMagicDidLogin, tauntMetamaskLogin } from "@redzone/taunt-logins"
|
|
2
|
-
import { useCallback, useState } from "react"
|
|
3
|
-
|
|
4
|
-
import { TauntContext } from "./tauntContext"
|
|
5
|
-
|
|
6
|
-
export const TauntProvider = ({
|
|
7
|
-
children,
|
|
8
|
-
tauntServiceEndpoint
|
|
9
|
-
}: {
|
|
10
|
-
children: React.ReactNode
|
|
11
|
-
tauntServiceEndpoint?: string
|
|
12
|
-
}) => {
|
|
13
|
-
const [deets, setDeets] = useState<{
|
|
14
|
-
accessToken: string
|
|
15
|
-
refreshToken: string
|
|
16
|
-
}>()
|
|
17
|
-
|
|
18
|
-
const otpMagicLogin = useCallback(
|
|
19
|
-
(email: string) => {
|
|
20
|
-
tauntMagicDidLogin(tauntServiceEndpoint!, email!).then(setDeets)
|
|
21
|
-
},
|
|
22
|
-
[tauntServiceEndpoint]
|
|
23
|
-
)
|
|
24
|
-
|
|
25
|
-
const metamaskLogin = useCallback(
|
|
26
|
-
() => tauntMetamaskLogin(tauntServiceEndpoint!).then(setDeets),
|
|
27
|
-
[tauntServiceEndpoint]
|
|
28
|
-
)
|
|
29
|
-
|
|
30
|
-
if (!tauntServiceEndpoint) {
|
|
31
|
-
return <div>tauntServiceEndpoint is required</div>
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
return (
|
|
35
|
-
<TauntContext.Provider
|
|
36
|
-
value={{ tauntServiceEndpoint, deets, otpMagicLogin, metamaskLogin }}>
|
|
37
|
-
{children}
|
|
38
|
-
</TauntContext.Provider>
|
|
39
|
-
)
|
|
40
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
tauntMagicEmailOTPLogin,
|
|
3
|
-
tauntMetamaskLogin
|
|
4
|
-
} from "@redzone/taunt-logins"
|
|
5
|
-
import { useCallback, useState } from "react"
|
|
6
|
-
|
|
7
|
-
import { TauntContext } from "./tauntContext"
|
|
8
|
-
|
|
9
|
-
export const TauntProvider = ({
|
|
10
|
-
children,
|
|
11
|
-
tauntServiceEndpoint,
|
|
12
|
-
magicKey
|
|
13
|
-
}: {
|
|
14
|
-
children: React.ReactNode
|
|
15
|
-
tauntServiceEndpoint?: string
|
|
16
|
-
magicKey?: string
|
|
17
|
-
}) => {
|
|
18
|
-
const [deets, setDeets] = useState<{
|
|
19
|
-
accessToken: string
|
|
20
|
-
refreshToken: string
|
|
21
|
-
}>()
|
|
22
|
-
|
|
23
|
-
const otpMagicLogin = useCallback(
|
|
24
|
-
(email: string) => {
|
|
25
|
-
if (!magicKey) throw new Error("magicKey is required for OTP login")
|
|
26
|
-
|
|
27
|
-
tauntMagicEmailOTPLogin(tauntServiceEndpoint!, magicKey, email!).then(
|
|
28
|
-
setDeets
|
|
29
|
-
)
|
|
30
|
-
},
|
|
31
|
-
[tauntServiceEndpoint]
|
|
32
|
-
)
|
|
33
|
-
|
|
34
|
-
const metamaskLogin = useCallback(
|
|
35
|
-
() => tauntMetamaskLogin(tauntServiceEndpoint!).then(setDeets),
|
|
36
|
-
[tauntServiceEndpoint]
|
|
37
|
-
)
|
|
38
|
-
|
|
39
|
-
if (!tauntServiceEndpoint) {
|
|
40
|
-
return <div>tauntServiceEndpoint is required</div>
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
return (
|
|
44
|
-
<TauntContext.Provider
|
|
45
|
-
value={{ tauntServiceEndpoint, deets, otpMagicLogin, metamaskLogin }}>
|
|
46
|
-
{children}
|
|
47
|
-
</TauntContext.Provider>
|
|
48
|
-
)
|
|
49
|
-
}
|
|
File without changes
|
|
@@ -1,28 +0,0 @@
|
|
|
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": true,
|
|
24
|
-
"noFallthroughCasesInSwitch": true,
|
|
25
|
-
"noUncheckedSideEffectImports": true
|
|
26
|
-
},
|
|
27
|
-
"include": ["src"]
|
|
28
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
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(__dirname, "src/index.tsx"),
|
|
11
|
-
// name,
|
|
12
|
-
formats: ["es", "umd"],
|
|
13
|
-
fileName: (format) => `your-component.${format}.js`
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
server: {
|
|
17
|
-
open: true
|
|
18
|
-
}
|
|
19
|
-
})
|
|
@@ -1,19 +0,0 @@
|
|
|
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(__dirname, "src/index.tsx"),
|
|
11
|
-
name,
|
|
12
|
-
formats: ["es", "umd"],
|
|
13
|
-
fileName: (format) => `your-component.${format}.js`
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
server: {
|
|
17
|
-
open: true
|
|
18
|
-
}
|
|
19
|
-
})
|
|
@@ -1,19 +0,0 @@
|
|
|
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(__dirname, "src/index.tsx"),
|
|
11
|
-
name: "@redzone/taunt-logins-ui-react",
|
|
12
|
-
formats: ["es", "umd"],
|
|
13
|
-
fileName: (format) => `your-component.${format}.js`
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
server: {
|
|
17
|
-
open: true
|
|
18
|
-
}
|
|
19
|
-
})
|
|
@@ -1,19 +0,0 @@
|
|
|
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(__dirname, "src/lib/index.ts"),
|
|
11
|
-
name: "@redzone/taunt-logins-ui-react",
|
|
12
|
-
formats: ["es", "umd"],
|
|
13
|
-
fileName: (format) => `your-component.${format}.js`
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
server: {
|
|
17
|
-
open: true
|
|
18
|
-
}
|
|
19
|
-
})
|
|
@@ -1,26 +0,0 @@
|
|
|
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
|
-
})
|
|
@@ -1,26 +0,0 @@
|
|
|
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
|
-
})
|
|
@@ -1,36 +0,0 @@
|
|
|
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
|
-
})
|
|
@@ -1,41 +0,0 @@
|
|
|
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
|
-
})
|
|
@@ -1,37 +0,0 @@
|
|
|
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
|
-
})
|
|
@@ -1,37 +0,0 @@
|
|
|
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
|
-
})
|
|
@@ -1,45 +0,0 @@
|
|
|
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
|
-
})
|
|
@@ -1,47 +0,0 @@
|
|
|
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
|
-
})
|