@forjio/auth-ui 0.1.0
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/README.md +106 -0
- package/dist/AuthForm.cjs +220 -0
- package/dist/AuthForm.cjs.map +1 -0
- package/dist/AuthForm.d.cts +20 -0
- package/dist/AuthForm.d.ts +20 -0
- package/dist/AuthForm.js +186 -0
- package/dist/AuthForm.js.map +1 -0
- package/dist/ForgotPasswordForm.cjs +123 -0
- package/dist/ForgotPasswordForm.cjs.map +1 -0
- package/dist/ForgotPasswordForm.d.cts +9 -0
- package/dist/ForgotPasswordForm.d.ts +9 -0
- package/dist/ForgotPasswordForm.js +89 -0
- package/dist/ForgotPasswordForm.js.map +1 -0
- package/dist/ResetPasswordForm.cjs +128 -0
- package/dist/ResetPasswordForm.cjs.map +1 -0
- package/dist/ResetPasswordForm.d.cts +9 -0
- package/dist/ResetPasswordForm.d.ts +9 -0
- package/dist/ResetPasswordForm.js +94 -0
- package/dist/ResetPasswordForm.js.map +1 -0
- package/dist/index.cjs +38 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -0
- package/dist/types.cjs +35 -0
- package/dist/types.cjs.map +1 -0
- package/dist/types.d.cts +23 -0
- package/dist/types.d.ts +23 -0
- package/dist/types.js +11 -0
- package/dist/types.js.map +1 -0
- package/package.json +51 -0
package/dist/types.cjs
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var types_exports = {};
|
|
20
|
+
__export(types_exports, {
|
|
21
|
+
defaultEndpoints: () => defaultEndpoints
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(types_exports);
|
|
24
|
+
const defaultEndpoints = {
|
|
25
|
+
login: "/api/v1/auth/login",
|
|
26
|
+
signup: "/api/v1/auth/signup",
|
|
27
|
+
forgotPassword: "/api/v1/auth/password-reset/request",
|
|
28
|
+
resetPassword: "/api/v1/auth/password-reset/complete",
|
|
29
|
+
socialStart: "/api/v1/auth/huudis/start"
|
|
30
|
+
};
|
|
31
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
32
|
+
0 && (module.exports = {
|
|
33
|
+
defaultEndpoints
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=types.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/types.ts"],"sourcesContent":["/** Endpoint paths the auth forms hit on the host product's backend.\n * Defaults match the Forjio family convention (`@forjio/sdk/auth-\n * handlers`); override only for unusual layouts. */\nexport interface AuthEndpoints {\n login: string;\n signup: string;\n forgotPassword: string;\n resetPassword: string;\n /** Social-provider start path. `?provider=<google|apple>` is appended\n * by the form. */\n socialStart: string;\n}\n\nexport const defaultEndpoints: AuthEndpoints = {\n login: '/api/v1/auth/login',\n signup: '/api/v1/auth/signup',\n forgotPassword: '/api/v1/auth/password-reset/request',\n resetPassword: '/api/v1/auth/password-reset/complete',\n socialStart: '/api/v1/auth/huudis/start',\n};\n\n/** Which social-login buttons to render. Default = both, since fail-\n * open matches the host product's expectation (Huudis tells the\n * consumer which providers are off via a separate fetch the host\n * does — pass the result here). */\nexport interface SocialProviders {\n google?: boolean;\n apple?: boolean;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAaO,MAAM,mBAAkC;AAAA,EAC7C,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,aAAa;AACf;","names":[]}
|
package/dist/types.d.cts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** Endpoint paths the auth forms hit on the host product's backend.
|
|
2
|
+
* Defaults match the Forjio family convention (`@forjio/sdk/auth-
|
|
3
|
+
* handlers`); override only for unusual layouts. */
|
|
4
|
+
interface AuthEndpoints {
|
|
5
|
+
login: string;
|
|
6
|
+
signup: string;
|
|
7
|
+
forgotPassword: string;
|
|
8
|
+
resetPassword: string;
|
|
9
|
+
/** Social-provider start path. `?provider=<google|apple>` is appended
|
|
10
|
+
* by the form. */
|
|
11
|
+
socialStart: string;
|
|
12
|
+
}
|
|
13
|
+
declare const defaultEndpoints: AuthEndpoints;
|
|
14
|
+
/** Which social-login buttons to render. Default = both, since fail-
|
|
15
|
+
* open matches the host product's expectation (Huudis tells the
|
|
16
|
+
* consumer which providers are off via a separate fetch the host
|
|
17
|
+
* does — pass the result here). */
|
|
18
|
+
interface SocialProviders {
|
|
19
|
+
google?: boolean;
|
|
20
|
+
apple?: boolean;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { type AuthEndpoints, type SocialProviders, defaultEndpoints };
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** Endpoint paths the auth forms hit on the host product's backend.
|
|
2
|
+
* Defaults match the Forjio family convention (`@forjio/sdk/auth-
|
|
3
|
+
* handlers`); override only for unusual layouts. */
|
|
4
|
+
interface AuthEndpoints {
|
|
5
|
+
login: string;
|
|
6
|
+
signup: string;
|
|
7
|
+
forgotPassword: string;
|
|
8
|
+
resetPassword: string;
|
|
9
|
+
/** Social-provider start path. `?provider=<google|apple>` is appended
|
|
10
|
+
* by the form. */
|
|
11
|
+
socialStart: string;
|
|
12
|
+
}
|
|
13
|
+
declare const defaultEndpoints: AuthEndpoints;
|
|
14
|
+
/** Which social-login buttons to render. Default = both, since fail-
|
|
15
|
+
* open matches the host product's expectation (Huudis tells the
|
|
16
|
+
* consumer which providers are off via a separate fetch the host
|
|
17
|
+
* does — pass the result here). */
|
|
18
|
+
interface SocialProviders {
|
|
19
|
+
google?: boolean;
|
|
20
|
+
apple?: boolean;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { type AuthEndpoints, type SocialProviders, defaultEndpoints };
|
package/dist/types.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const defaultEndpoints = {
|
|
2
|
+
login: "/api/v1/auth/login",
|
|
3
|
+
signup: "/api/v1/auth/signup",
|
|
4
|
+
forgotPassword: "/api/v1/auth/password-reset/request",
|
|
5
|
+
resetPassword: "/api/v1/auth/password-reset/complete",
|
|
6
|
+
socialStart: "/api/v1/auth/huudis/start"
|
|
7
|
+
};
|
|
8
|
+
export {
|
|
9
|
+
defaultEndpoints
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/types.ts"],"sourcesContent":["/** Endpoint paths the auth forms hit on the host product's backend.\n * Defaults match the Forjio family convention (`@forjio/sdk/auth-\n * handlers`); override only for unusual layouts. */\nexport interface AuthEndpoints {\n login: string;\n signup: string;\n forgotPassword: string;\n resetPassword: string;\n /** Social-provider start path. `?provider=<google|apple>` is appended\n * by the form. */\n socialStart: string;\n}\n\nexport const defaultEndpoints: AuthEndpoints = {\n login: '/api/v1/auth/login',\n signup: '/api/v1/auth/signup',\n forgotPassword: '/api/v1/auth/password-reset/request',\n resetPassword: '/api/v1/auth/password-reset/complete',\n socialStart: '/api/v1/auth/huudis/start',\n};\n\n/** Which social-login buttons to render. Default = both, since fail-\n * open matches the host product's expectation (Huudis tells the\n * consumer which providers are off via a separate fetch the host\n * does — pass the result here). */\nexport interface SocialProviders {\n google?: boolean;\n apple?: boolean;\n}\n"],"mappings":"AAaO,MAAM,mBAAkC;AAAA,EAC7C,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,aAAa;AACf;","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@forjio/auth-ui",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Shared auth forms (login, signup, forgot-password, reset-password) for the Forjio family of SaaS products. Sister package to @forjio/website-ui and @forjio/portal-ui.",
|
|
5
|
+
"license": "UNLICENSED",
|
|
6
|
+
"private": false,
|
|
7
|
+
"author": "Forjio <support@forjio.com>",
|
|
8
|
+
"homepage": "https://github.com/hachimi-cat/forjio-auth-ui",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/hachimi-cat/forjio-auth-ui.git"
|
|
12
|
+
},
|
|
13
|
+
"type": "module",
|
|
14
|
+
"main": "./dist/index.cjs",
|
|
15
|
+
"module": "./dist/index.js",
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"import": "./dist/index.js",
|
|
21
|
+
"require": "./dist/index.cjs"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"dist",
|
|
26
|
+
"README.md"
|
|
27
|
+
],
|
|
28
|
+
"scripts": {
|
|
29
|
+
"build": "tsup",
|
|
30
|
+
"typecheck": "tsc --noEmit",
|
|
31
|
+
"prepublishOnly": "npm run build"
|
|
32
|
+
},
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"lucide-react": ">=0.300.0",
|
|
35
|
+
"next": ">=14.0.0",
|
|
36
|
+
"react": ">=18.0.0",
|
|
37
|
+
"react-dom": ">=18.0.0"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@types/node": "^20.0.0",
|
|
41
|
+
"@types/react": "^19.0.0",
|
|
42
|
+
"@types/react-dom": "^19.0.0",
|
|
43
|
+
"lucide-react": "^0.400.0",
|
|
44
|
+
"next": "^15.5.0",
|
|
45
|
+
"react": "^19.0.0",
|
|
46
|
+
"react-dom": "^19.0.0",
|
|
47
|
+
"tsup": "^8.3.0",
|
|
48
|
+
"typescript": "^5.5.0"
|
|
49
|
+
},
|
|
50
|
+
"keywords": ["forjio", "auth", "ui", "login", "signup", "huudis"]
|
|
51
|
+
}
|