diff --git a/package-lock.json b/package-lock.json index 14dccb8..fe09fe8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18698,7 +18698,7 @@ }, "package": { "name": "@userfront/toolkit", - "version": "1.0.1", + "version": "1.0.2-alpha.8", "license": "MIT", "dependencies": { "@r2wc/react-to-web-component": "^2.0.2", @@ -19013,6 +19013,33 @@ "node": ">=12" } }, + "site/node_modules/@userfront/toolkit": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@userfront/toolkit/-/toolkit-1.0.1.tgz", + "integrity": "sha512-lns7a/7Y7Pq6gjj5PEb5jgxphAuB14XCg08AxiR76qYtsnSzdAae9nkttBqSuJ3D+fpbSo3muXz1cRCI2Xz0DA==", + "dependencies": { + "@r2wc/react-to-web-component": "^2.0.2", + "@react-hook/resize-observer": "^1.2.6", + "@userfront/core": "^0.6.5-beta.1", + "@xstate/react": "3.0.1", + "lodash": "^4.17.21", + "react": "^18.2.0", + "react-dom": "^18.2.0", + "react-icons": "^4.4.0", + "react-phone-input-2": "^2.15.1", + "urlon": "^3.1.0", + "xstate": "4.33.6" + } + }, + "site/node_modules/@userfront/toolkit/node_modules/xstate": { + "version": "4.33.6", + "resolved": "https://registry.npmjs.org/xstate/-/xstate-4.33.6.tgz", + "integrity": "sha512-A5R4fsVKADWogK2a43ssu8Fz1AF077SfrKP1ZNyDBD8lNa/l4zfR//Luofp5GSWehOQr36Jp0k2z7b+sH2ivyg==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/xstate" + } + }, "site/node_modules/@vitejs/plugin-react": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-2.2.0.tgz", @@ -31262,6 +31289,31 @@ "dev": true, "optional": true }, + "@userfront/toolkit": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@userfront/toolkit/-/toolkit-1.0.1.tgz", + "integrity": "sha512-lns7a/7Y7Pq6gjj5PEb5jgxphAuB14XCg08AxiR76qYtsnSzdAae9nkttBqSuJ3D+fpbSo3muXz1cRCI2Xz0DA==", + "requires": { + "@r2wc/react-to-web-component": "^2.0.2", + "@react-hook/resize-observer": "^1.2.6", + "@userfront/core": "^0.6.5-beta.1", + "@xstate/react": "3.0.1", + "lodash": "^4.17.21", + "react": "^18.2.0", + "react-dom": "^18.2.0", + "react-icons": "^4.4.0", + "react-phone-input-2": "^2.15.1", + "urlon": "^3.1.0", + "xstate": "4.33.6" + }, + "dependencies": { + "xstate": { + "version": "4.33.6", + "resolved": "https://registry.npmjs.org/xstate/-/xstate-4.33.6.tgz", + "integrity": "sha512-A5R4fsVKADWogK2a43ssu8Fz1AF077SfrKP1ZNyDBD8lNa/l4zfR//Luofp5GSWehOQr36Jp0k2z7b+sH2ivyg==" + } + } + }, "@vitejs/plugin-react": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-2.2.0.tgz", diff --git a/package/build/build.cjs b/package/build/build.cjs index 8d8985f..d0c1814 100644 --- a/package/build/build.cjs +++ b/package/build/build.cjs @@ -1,7 +1,6 @@ const path = require("path"); const vite = require("vite"); const react = require("@vitejs/plugin-react"); -const dts = require("vite-plugin-dts"); const cssInjectedByJsPlugin = require("vite-plugin-css-injected-by-js").default; const resolve = path.resolve; @@ -50,9 +49,6 @@ const rollupOptions = { const esmPlugins = [ react(), - dts({ - insertTypesEntry: true, - }), cssInjectedByJsPlugin() ]; @@ -75,8 +71,6 @@ const esmOptions = { /* UMD (CommonJS and bundle) build config */ -// The dts (.d.ts file generation) plugin throws if it's -// run with the UMD build const umdPlugins = [ react(), cssInjectedByJsPlugin() diff --git a/package/package-lock.json b/package/package-lock.json index e43ba9e..cac16e0 100644 --- a/package/package-lock.json +++ b/package/package-lock.json @@ -1,12 +1,12 @@ { "name": "@userfront/react", - "version": "1.0.1", + "version": "1.0.2-alpha.8", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@userfront/react", - "version": "1.0.1", + "version": "1.0.2-alpha.8", "license": "MIT", "dependencies": { "@r2wc/react-to-web-component": "^2.0.2", diff --git a/package/package.json b/package/package.json index 70faae4..70de8d5 100644 --- a/package/package.json +++ b/package/package.json @@ -1,6 +1,6 @@ { "name": "@userfront/toolkit", - "version": "1.0.1", + "version": "1.0.2-alpha.8", "description": "Bindings and components for authentication with Userfront with React, Vue, other frameworks, and plain JS + HTML", "type": "module", "directories": { @@ -10,7 +10,8 @@ "dev-build": "node ./build/watch.cjs", "dev-tsc": "tsc --watch --noEmit", "dev": "npm-run-all --parallel dev-tsc dev-build", - "build": "tsc && node ./build/build.cjs", + "build": "tsc && node ./build/build.cjs && npm run build-types", + "build-types": "tsc src/**/*.{js,jsx} --declaration --allowJs --emitDeclarationOnly --outDir dist; cp types/index.d.ts dist/index.d.ts; cp types/index.d.ts dist/react.d.ts", "test": "vitest run", "watch": "vitest", "coverage": "vitest run --coverage", diff --git a/package/src/components/BackButton.jsx b/package/src/components/BackButton.jsx index 2afb377..bb00fd3 100644 --- a/package/src/components/BackButton.jsx +++ b/package/src/components/BackButton.jsx @@ -4,7 +4,7 @@ * If no children are provided, contains the text "Back". * Additional props are passed through to the underlying