@proteinjs/user-ui 1.1.4 → 1.1.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/generated/index.d.ts +1 -0
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +2 -1
- package/dist/generated/index.js.map +1 -1
- package/dist/src/pages/Login.d.ts.map +1 -1
- package/dist/src/pages/Login.js +6 -2
- package/dist/src/pages/Login.js.map +1 -1
- package/dist/src/pages/Signup.d.ts.map +1 -1
- package/dist/src/pages/Signup.js +23 -19
- package/dist/src/pages/Signup.js.map +1 -1
- package/generated/index.ts +12 -8
- package/package.json +12 -11
- package/src/pages/Login.tsx +15 -9
- package/src/pages/Signup.tsx +44 -38
- package/LICENSE +0 -21
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../generated/index.ts"],"names":[],"mappings":"AAAA,oCAAoC;AAEpC,OAAO,qBAAqB,CAAC;AAC7B,OAAO,eAAe,CAAC;AACvB,OAAO,uBAAuB,CAAC;AAC/B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,eAAe,CAAC;AACvB,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,QAAQ,CAAC;AAChB,OAAO,OAAO,CAAC;AACf,OAAO,WAAW,CAAC;AA+
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../generated/index.ts"],"names":[],"mappings":"AAAA,oCAAoC;AAEpC,OAAO,qBAAqB,CAAC;AAC7B,OAAO,eAAe,CAAC;AACvB,OAAO,uBAAuB,CAAC;AAC/B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,eAAe,CAAC;AACvB,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,QAAQ,CAAC;AAChB,OAAO,OAAO,CAAC;AACf,OAAO,WAAW,CAAC;AACnB,OAAO,cAAc,CAAC;AA+BtB,cAAc,UAAU,CAAC"}
|
package/dist/generated/index.js
CHANGED
|
@@ -25,8 +25,9 @@ require("@proteinjs/util");
|
|
|
25
25
|
require("moment");
|
|
26
26
|
require("react");
|
|
27
27
|
require("react-dom");
|
|
28
|
+
require("react-helmet");
|
|
28
29
|
/** Generate Source Graph */
|
|
29
|
-
var sourceGraph = "{\"options\":{\"directed\":true,\"multigraph\":false,\"compound\":false},\"nodes\":[{\"v\":\"/Omit\"},{\"v\":\"@proteinjs/user-ui/forgotPasswordPage\",\"value\":{\"packageName\":\"@proteinjs/user-ui\",\"name\":\"forgotPasswordPage\",\"filePath\":\"/
|
|
30
|
+
var sourceGraph = "{\"options\":{\"directed\":true,\"multigraph\":false,\"compound\":false},\"nodes\":[{\"v\":\"/Omit\"},{\"v\":\"@proteinjs/user-ui/forgotPasswordPage\",\"value\":{\"packageName\":\"@proteinjs/user-ui\",\"name\":\"forgotPasswordPage\",\"filePath\":\"/Users/veronica/Repositories/n3xa-meta-repo/packages/proteinjs/packages/user/packages/ui/src/pages/ForgotPassword.tsx\",\"qualifiedName\":\"@proteinjs/user-ui/forgotPasswordPage\",\"type\":{\"packageName\":\"@proteinjs/ui\",\"name\":\"Page\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/ui/Page\",\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/ui\",\"name\":\"Page\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/ui/Page\",\"typeParameters\":[],\"directParents\":null}]},\"isExported\":true,\"isConst\":true,\"sourceType\":0}},{\"v\":\"@proteinjs/ui/Page\"},{\"v\":\"@proteinjs/user-ui/loginPage\",\"value\":{\"packageName\":\"@proteinjs/user-ui\",\"name\":\"loginPage\",\"filePath\":\"/Users/veronica/Repositories/n3xa-meta-repo/packages/proteinjs/packages/user/packages/ui/src/pages/Login.tsx\",\"qualifiedName\":\"@proteinjs/user-ui/loginPage\",\"type\":{\"packageName\":\"@proteinjs/ui\",\"name\":\"Page\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/ui/Page\",\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/ui\",\"name\":\"Page\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/ui/Page\",\"typeParameters\":[],\"directParents\":null}]},\"isExported\":true,\"isConst\":true,\"sourceType\":0}},{\"v\":\"@proteinjs/user-ui/passwordResetPage\",\"value\":{\"packageName\":\"@proteinjs/user-ui\",\"name\":\"passwordResetPage\",\"filePath\":\"/Users/veronica/Repositories/n3xa-meta-repo/packages/proteinjs/packages/user/packages/ui/src/pages/PasswordReset.tsx\",\"qualifiedName\":\"@proteinjs/user-ui/passwordResetPage\",\"type\":{\"packageName\":\"@proteinjs/ui\",\"name\":\"Page\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/ui/Page\",\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/ui\",\"name\":\"Page\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/ui/Page\",\"typeParameters\":[],\"directParents\":null}]},\"isExported\":true,\"isConst\":true,\"sourceType\":0}},{\"v\":\"@proteinjs/user-ui/invitePage\",\"value\":{\"packageName\":\"@proteinjs/user-ui\",\"name\":\"invitePage\",\"filePath\":\"/Users/veronica/Repositories/n3xa-meta-repo/packages/proteinjs/packages/user/packages/ui/src/pages/SendInvite.tsx\",\"qualifiedName\":\"@proteinjs/user-ui/invitePage\",\"type\":{\"packageName\":\"@proteinjs/ui\",\"name\":\"Page\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/ui/Page\",\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/ui\",\"name\":\"Page\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/ui/Page\",\"typeParameters\":[],\"directParents\":null}]},\"isExported\":true,\"isConst\":true,\"sourceType\":0}},{\"v\":\"@proteinjs/user-ui/signupPage\",\"value\":{\"packageName\":\"@proteinjs/user-ui\",\"name\":\"signupPage\",\"filePath\":\"/Users/veronica/Repositories/n3xa-meta-repo/packages/proteinjs/packages/user/packages/ui/src/pages/Signup.tsx\",\"qualifiedName\":\"@proteinjs/user-ui/signupPage\",\"type\":{\"packageName\":\"@proteinjs/ui\",\"name\":\"Page\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/ui/Page\",\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/ui\",\"name\":\"Page\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/ui/Page\",\"typeParameters\":[],\"directParents\":null}]},\"isExported\":true,\"isConst\":true,\"sourceType\":0}}],\"edges\":[{\"v\":\"@proteinjs/user-ui/forgotPasswordPage\",\"w\":\"@proteinjs/ui/Page\",\"value\":\"has type\"},{\"v\":\"@proteinjs/user-ui/loginPage\",\"w\":\"@proteinjs/ui/Page\",\"value\":\"has type\"},{\"v\":\"@proteinjs/user-ui/passwordResetPage\",\"w\":\"@proteinjs/ui/Page\",\"value\":\"has type\"},{\"v\":\"@proteinjs/user-ui/invitePage\",\"w\":\"@proteinjs/ui/Page\",\"value\":\"has type\"},{\"v\":\"@proteinjs/user-ui/signupPage\",\"w\":\"@proteinjs/ui/Page\",\"value\":\"has type\"}]}";
|
|
30
31
|
/** Generate Source Links */
|
|
31
32
|
var ForgotPassword_1 = require("../src/pages/ForgotPassword");
|
|
32
33
|
var Login_1 = require("../src/pages/Login");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../generated/index.ts"],"names":[],"mappings":";AAAA,oCAAoC;;;;;;;;;;;;;;;;AAEpC,+BAA6B;AAC7B,yBAAuB;AACvB,iCAA+B;AAC/B,iCAA+B;AAC/B,yBAAuB;AACvB,2BAAyB;AACzB,2BAAyB;AACzB,kBAAgB;AAChB,iBAAe;AACf,qBAAmB;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../generated/index.ts"],"names":[],"mappings":";AAAA,oCAAoC;;;;;;;;;;;;;;;;AAEpC,+BAA6B;AAC7B,yBAAuB;AACvB,iCAA+B;AAC/B,iCAA+B;AAC/B,yBAAuB;AACvB,2BAAyB;AACzB,2BAAyB;AACzB,kBAAgB;AAChB,iBAAe;AACf,qBAAmB;AACnB,wBAAsB;AAGtB,4BAA4B;AAE5B,IAAM,WAAW,GAAG,o9HAAo9H,CAAC;AAGz+H,4BAA4B;AAE5B,8DAAiE;AACjE,4CAA+C;AAC/C,4DAA+D;AAC/D,sDAAqD;AACrD,8CAAiD;AAEjD,IAAM,WAAW,GAAG;IACnB,uCAAuC,EAAE,mCAAkB;IAC3D,8BAA8B,EAAE,iBAAS;IACzC,sCAAsC,EAAE,iCAAiB;IACzD,+BAA+B,EAAE,uBAAU;IAC3C,+BAA+B,EAAE,mBAAU;CAC3C,CAAC;AAGF,kCAAkC;AAElC,oDAAyD;AACzD,6BAAgB,CAAC,KAAK,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;AAGjD,2CAAyB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Login.d.ts","sourceRoot":"","sources":["../../../src/pages/Login.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAA+D,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"Login.d.ts","sourceRoot":"","sources":["../../../src/pages/Login.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAA+D,MAAM,eAAe,CAAC;AAIlG,eAAO,MAAM,SAAS,EAAE,IAsBvB,CAAC"}
|
package/dist/src/pages/Login.js
CHANGED
|
@@ -58,14 +58,18 @@ exports.loginPage = void 0;
|
|
|
58
58
|
var react_1 = __importDefault(require("react"));
|
|
59
59
|
var ui_1 = require("@proteinjs/ui");
|
|
60
60
|
var user_1 = require("@proteinjs/user");
|
|
61
|
+
var react_helmet_1 = require("react-helmet");
|
|
61
62
|
exports.loginPage = {
|
|
62
63
|
name: 'Login',
|
|
63
64
|
path: user_1.uiRoutes.auth.login,
|
|
64
65
|
auth: {
|
|
65
66
|
public: true,
|
|
66
67
|
},
|
|
67
|
-
component: function () { return (react_1.default.createElement(
|
|
68
|
-
react_1.default.createElement(
|
|
68
|
+
component: function () { return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
69
|
+
react_1.default.createElement(react_helmet_1.Helmet, null,
|
|
70
|
+
react_1.default.createElement("title", null, "Login")),
|
|
71
|
+
react_1.default.createElement(ui_1.FormPage, null,
|
|
72
|
+
react_1.default.createElement(ui_1.Form, { name: 'Login', createFields: function () { return new LoginFields(); }, fieldLayout: ['email', 'password'], buttons: buttons, maxWidth: 'xs' })))); },
|
|
69
73
|
};
|
|
70
74
|
var LoginFields = /** @class */ (function (_super) {
|
|
71
75
|
__extends(LoginFields, _super);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Login.js","sourceRoot":"","sources":["../../../src/pages/Login.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAA0B;AAC1B,oCAAkG;AAClG,wCAAmD;
|
|
1
|
+
{"version":3,"file":"Login.js","sourceRoot":"","sources":["../../../src/pages/Login.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAA0B;AAC1B,oCAAkG;AAClG,wCAAmD;AACnD,6CAAsC;AAEzB,QAAA,SAAS,GAAS;IAC7B,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,eAAQ,CAAC,IAAI,CAAC,KAAK;IACzB,IAAI,EAAE;QACJ,MAAM,EAAE,IAAI;KACb;IACD,SAAS,EAAE,cAAM,OAAA,CACf;QACE,8BAAC,qBAAM;YACL,qDAAoB,CACb;QACT,8BAAC,aAAQ;YACP,8BAAC,SAAI,IACH,IAAI,EAAC,OAAO,EACZ,YAAY,EAAE,cAAM,OAAA,IAAI,WAAW,EAAE,EAAjB,CAAiB,EACrC,WAAW,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,EAClC,OAAO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AO,EAAE;gCACP,cAAc,EAAE,kBAAkB;6BACnC;yBACF,CAAC,EAAA;;wBAXI,QAAQ,GAAG,SAWf;wBACF,IAAI,QAAQ,CAAC,MAAM,IAAI,GAAG,EAAE;4BAC1B,MAAM,IAAI,KAAK,CAAC,kCAA2B,QAAQ,CAAC,UAAU,CAAE,CAAC,CAAC;yBACnE;wBAEY,qBAAM,QAAQ,CAAC,IAAI,EAAE,EAAA;;wBAA5B,IAAI,GAAG,SAAqB;wBAClC,IAAI,IAAI,CAAC,KAAK,EAAE;4BACd,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;yBAC7B;wBAED,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,GAAG,CAAC;;;;aAC5B;KACF;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Signup.d.ts","sourceRoot":"","sources":["../../../src/pages/Signup.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAA+D,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"Signup.d.ts","sourceRoot":"","sources":["../../../src/pages/Signup.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAA+D,MAAM,eAAe,CAAC;AAoIlG,eAAO,MAAM,UAAU,EAAE,IAOxB,CAAC"}
|
package/dist/src/pages/Signup.js
CHANGED
|
@@ -80,6 +80,7 @@ var ui_1 = require("@proteinjs/ui");
|
|
|
80
80
|
var user_1 = require("@proteinjs/user");
|
|
81
81
|
var material_1 = require("@mui/material");
|
|
82
82
|
var util_1 = require("@proteinjs/util");
|
|
83
|
+
var react_helmet_1 = require("react-helmet");
|
|
83
84
|
var SignupComponent = function () {
|
|
84
85
|
var _a = (0, react_1.useState)(''), token = _a[0], setToken = _a[1];
|
|
85
86
|
var _b = (0, react_1.useState)(false), isInviteOnly = _b[0], setIsInviteOnly = _b[1];
|
|
@@ -170,25 +171,28 @@ var SignupComponent = function () {
|
|
|
170
171
|
}
|
|
171
172
|
});
|
|
172
173
|
}); };
|
|
173
|
-
return (react_1.default.createElement(
|
|
174
|
-
react_1.default.createElement(
|
|
175
|
-
|
|
176
|
-
react_1.default.createElement(material_1.
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
react_1.default.createElement(material_1.Skeleton, { variant: 'text', width: '
|
|
180
|
-
react_1.default.createElement(material_1.Skeleton, { variant: 'text', width: '
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
174
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
175
|
+
react_1.default.createElement(react_helmet_1.Helmet, null,
|
|
176
|
+
react_1.default.createElement("title", null, "Sign up")),
|
|
177
|
+
react_1.default.createElement(ui_1.FormPage, null, isInitializing ? (react_1.default.createElement(material_1.Stack, { direction: 'column', spacing: 2, sx: { px: 2, py: 1 } },
|
|
178
|
+
react_1.default.createElement(material_1.Skeleton, { variant: 'text', width: '500px', height: '60px' }),
|
|
179
|
+
react_1.default.createElement(material_1.Skeleton, { variant: 'text', width: '500px', height: '60px' }),
|
|
180
|
+
react_1.default.createElement(material_1.Skeleton, { variant: 'text', width: '500px', height: '60px' }),
|
|
181
|
+
react_1.default.createElement(material_1.Skeleton, { variant: 'text', width: '500px', height: '60px' }),
|
|
182
|
+
react_1.default.createElement(material_1.Stack, { direction: 'row', spacing: 2, justifyContent: 'flex-end' },
|
|
183
|
+
react_1.default.createElement(material_1.Skeleton, { variant: 'text', width: '100px', height: '60px' }),
|
|
184
|
+
react_1.default.createElement(material_1.Skeleton, { variant: 'text', width: '100px', height: '60px' })))) : initializationError ? (react_1.default.createElement(material_1.Stack, { alignItems: 'center', spacing: 3, sx: { p: 4 } },
|
|
185
|
+
react_1.default.createElement(material_1.Typography, { variant: 'h1', gutterBottom: true }, "Sign up is not available"),
|
|
186
|
+
react_1.default.createElement(material_1.Typography, { variant: 'body1', gutterBottom: true }, initializationError),
|
|
187
|
+
react_1.default.createElement(material_1.Button, { variant: 'contained', color: 'primary', href: "/".concat(user_1.uiRoutes.auth.login) }, "Go to login page"))) : (react_1.default.createElement(ui_1.Form, { name: 'Sign Up', createFields: function () { return new SignupFields(); }, fieldLayout: ['name', 'email', 'password', 'confirmPassword'], buttons: buttons, onLoad: function (fields) { return __awaiter(void 0, void 0, void 0, function () {
|
|
188
|
+
return __generator(this, function (_a) {
|
|
189
|
+
fields.token.field.value = token;
|
|
190
|
+
if (token) {
|
|
191
|
+
fields.email.field.accessibility = { hidden: true };
|
|
192
|
+
}
|
|
193
|
+
return [2 /*return*/];
|
|
194
|
+
});
|
|
195
|
+
}); } })))));
|
|
192
196
|
};
|
|
193
197
|
exports.signupPage = {
|
|
194
198
|
name: 'Sign Up',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Signup.js","sourceRoot":"","sources":["../../../src/pages/Signup.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAmD;AACnD,oCAAkG;AAClG,wCAA6D;AAC7D,0CAAoE;AACpE,wCAA6C;
|
|
1
|
+
{"version":3,"file":"Signup.js","sourceRoot":"","sources":["../../../src/pages/Signup.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAmD;AACnD,oCAAkG;AAClG,wCAA6D;AAC7D,0CAAoE;AACpE,wCAA6C;AAC7C,6CAAsC;AAEtC,IAAM,eAAe,GAAa;IAC1B,IAAA,KAAoB,IAAA,gBAAQ,EAAC,EAAE,CAAC,EAA/B,KAAK,QAAA,EAAE,QAAQ,QAAgB,CAAC;IACjC,IAAA,KAAkC,IAAA,gBAAQ,EAAU,KAAK,CAAC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AA2B,WAAM,GA2BhC"}
|
package/generated/index.ts
CHANGED
|
@@ -10,11 +10,13 @@ import '@proteinjs/util';
|
|
|
10
10
|
import 'moment';
|
|
11
11
|
import 'react';
|
|
12
12
|
import 'react-dom';
|
|
13
|
+
import 'react-helmet';
|
|
14
|
+
|
|
13
15
|
|
|
14
16
|
/** Generate Source Graph */
|
|
15
17
|
|
|
16
|
-
const sourceGraph =
|
|
17
|
-
|
|
18
|
+
const sourceGraph = "{\"options\":{\"directed\":true,\"multigraph\":false,\"compound\":false},\"nodes\":[{\"v\":\"/Omit\"},{\"v\":\"@proteinjs/user-ui/forgotPasswordPage\",\"value\":{\"packageName\":\"@proteinjs/user-ui\",\"name\":\"forgotPasswordPage\",\"filePath\":\"/Users/veronica/Repositories/n3xa-meta-repo/packages/proteinjs/packages/user/packages/ui/src/pages/ForgotPassword.tsx\",\"qualifiedName\":\"@proteinjs/user-ui/forgotPasswordPage\",\"type\":{\"packageName\":\"@proteinjs/ui\",\"name\":\"Page\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/ui/Page\",\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/ui\",\"name\":\"Page\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/ui/Page\",\"typeParameters\":[],\"directParents\":null}]},\"isExported\":true,\"isConst\":true,\"sourceType\":0}},{\"v\":\"@proteinjs/ui/Page\"},{\"v\":\"@proteinjs/user-ui/loginPage\",\"value\":{\"packageName\":\"@proteinjs/user-ui\",\"name\":\"loginPage\",\"filePath\":\"/Users/veronica/Repositories/n3xa-meta-repo/packages/proteinjs/packages/user/packages/ui/src/pages/Login.tsx\",\"qualifiedName\":\"@proteinjs/user-ui/loginPage\",\"type\":{\"packageName\":\"@proteinjs/ui\",\"name\":\"Page\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/ui/Page\",\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/ui\",\"name\":\"Page\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/ui/Page\",\"typeParameters\":[],\"directParents\":null}]},\"isExported\":true,\"isConst\":true,\"sourceType\":0}},{\"v\":\"@proteinjs/user-ui/passwordResetPage\",\"value\":{\"packageName\":\"@proteinjs/user-ui\",\"name\":\"passwordResetPage\",\"filePath\":\"/Users/veronica/Repositories/n3xa-meta-repo/packages/proteinjs/packages/user/packages/ui/src/pages/PasswordReset.tsx\",\"qualifiedName\":\"@proteinjs/user-ui/passwordResetPage\",\"type\":{\"packageName\":\"@proteinjs/ui\",\"name\":\"Page\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/ui/Page\",\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/ui\",\"name\":\"Page\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/ui/Page\",\"typeParameters\":[],\"directParents\":null}]},\"isExported\":true,\"isConst\":true,\"sourceType\":0}},{\"v\":\"@proteinjs/user-ui/invitePage\",\"value\":{\"packageName\":\"@proteinjs/user-ui\",\"name\":\"invitePage\",\"filePath\":\"/Users/veronica/Repositories/n3xa-meta-repo/packages/proteinjs/packages/user/packages/ui/src/pages/SendInvite.tsx\",\"qualifiedName\":\"@proteinjs/user-ui/invitePage\",\"type\":{\"packageName\":\"@proteinjs/ui\",\"name\":\"Page\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/ui/Page\",\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/ui\",\"name\":\"Page\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/ui/Page\",\"typeParameters\":[],\"directParents\":null}]},\"isExported\":true,\"isConst\":true,\"sourceType\":0}},{\"v\":\"@proteinjs/user-ui/signupPage\",\"value\":{\"packageName\":\"@proteinjs/user-ui\",\"name\":\"signupPage\",\"filePath\":\"/Users/veronica/Repositories/n3xa-meta-repo/packages/proteinjs/packages/user/packages/ui/src/pages/Signup.tsx\",\"qualifiedName\":\"@proteinjs/user-ui/signupPage\",\"type\":{\"packageName\":\"@proteinjs/ui\",\"name\":\"Page\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/ui/Page\",\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/ui\",\"name\":\"Page\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/ui/Page\",\"typeParameters\":[],\"directParents\":null}]},\"isExported\":true,\"isConst\":true,\"sourceType\":0}}],\"edges\":[{\"v\":\"@proteinjs/user-ui/forgotPasswordPage\",\"w\":\"@proteinjs/ui/Page\",\"value\":\"has type\"},{\"v\":\"@proteinjs/user-ui/loginPage\",\"w\":\"@proteinjs/ui/Page\",\"value\":\"has type\"},{\"v\":\"@proteinjs/user-ui/passwordResetPage\",\"w\":\"@proteinjs/ui/Page\",\"value\":\"has type\"},{\"v\":\"@proteinjs/user-ui/invitePage\",\"w\":\"@proteinjs/ui/Page\",\"value\":\"has type\"},{\"v\":\"@proteinjs/user-ui/signupPage\",\"w\":\"@proteinjs/ui/Page\",\"value\":\"has type\"}]}";
|
|
19
|
+
|
|
18
20
|
|
|
19
21
|
/** Generate Source Links */
|
|
20
22
|
|
|
@@ -25,16 +27,18 @@ import { invitePage } from '../src/pages/SendInvite';
|
|
|
25
27
|
import { signupPage } from '../src/pages/Signup';
|
|
26
28
|
|
|
27
29
|
const sourceLinks = {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
'@proteinjs/user-ui/forgotPasswordPage': forgotPasswordPage,
|
|
31
|
+
'@proteinjs/user-ui/loginPage': loginPage,
|
|
32
|
+
'@proteinjs/user-ui/passwordResetPage': passwordResetPage,
|
|
33
|
+
'@proteinjs/user-ui/invitePage': invitePage,
|
|
34
|
+
'@proteinjs/user-ui/signupPage': signupPage,
|
|
33
35
|
};
|
|
34
36
|
|
|
37
|
+
|
|
35
38
|
/** Load Source Graph and Links */
|
|
36
39
|
|
|
37
40
|
import { SourceRepository } from '@proteinjs/reflection';
|
|
38
41
|
SourceRepository.merge(sourceGraph, sourceLinks);
|
|
39
42
|
|
|
40
|
-
|
|
43
|
+
|
|
44
|
+
export * from '../index';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@proteinjs/user-ui",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
4
4
|
"description": "User ui components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -23,20 +23,22 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@mui/icons-material": "5.14.11",
|
|
25
25
|
"@mui/material": "5.14.11",
|
|
26
|
-
"@proteinjs/reflection": "1.1.
|
|
27
|
-
"@proteinjs/server-api": "1.
|
|
28
|
-
"@proteinjs/ui": "3.0.
|
|
29
|
-
"@proteinjs/user": "^1.1.
|
|
30
|
-
"@proteinjs/util": "1.4.
|
|
26
|
+
"@proteinjs/reflection": "1.1.9",
|
|
27
|
+
"@proteinjs/server-api": "1.5.0",
|
|
28
|
+
"@proteinjs/ui": "3.0.1",
|
|
29
|
+
"@proteinjs/user": "^1.1.6",
|
|
30
|
+
"@proteinjs/util": "1.4.1",
|
|
31
31
|
"moment": "2.29.4",
|
|
32
32
|
"react": "18.2.0",
|
|
33
|
-
"react-dom": "18.2.0"
|
|
33
|
+
"react-dom": "18.2.0",
|
|
34
|
+
"react-helmet": "6.1.0"
|
|
34
35
|
},
|
|
35
36
|
"devDependencies": {
|
|
36
|
-
"@proteinjs/reflection-build": "1.0.
|
|
37
|
+
"@proteinjs/reflection-build": "1.0.24",
|
|
37
38
|
"@types/node": "14.0.13",
|
|
38
39
|
"@types/react": "18.2.23",
|
|
39
40
|
"@types/react-dom": "18.2.8",
|
|
41
|
+
"@types/react-helmet": "6.1.11",
|
|
40
42
|
"@typescript-eslint/eslint-plugin": "7.8.0",
|
|
41
43
|
"@typescript-eslint/parser": "7.8.0",
|
|
42
44
|
"eslint": "8.57.0",
|
|
@@ -45,6 +47,5 @@
|
|
|
45
47
|
"typescript": "5.2.2"
|
|
46
48
|
},
|
|
47
49
|
"main": "./dist/generated/index.js",
|
|
48
|
-
"types": "./dist/generated/index.d.ts"
|
|
49
|
-
|
|
50
|
-
}
|
|
50
|
+
"types": "./dist/generated/index.d.ts"
|
|
51
|
+
}
|
package/src/pages/Login.tsx
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Page, Form, Fields, textField, FormButtons, clearButton, FormPage } from '@proteinjs/ui';
|
|
3
3
|
import { routes, uiRoutes } from '@proteinjs/user';
|
|
4
|
+
import { Helmet } from 'react-helmet';
|
|
4
5
|
|
|
5
6
|
export const loginPage: Page = {
|
|
6
7
|
name: 'Login',
|
|
@@ -9,15 +10,20 @@ export const loginPage: Page = {
|
|
|
9
10
|
public: true,
|
|
10
11
|
},
|
|
11
12
|
component: () => (
|
|
12
|
-
|
|
13
|
-
<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
buttons
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
<>
|
|
14
|
+
<Helmet>
|
|
15
|
+
<title>Login</title>
|
|
16
|
+
</Helmet>
|
|
17
|
+
<FormPage>
|
|
18
|
+
<Form<LoginFields, typeof buttons>
|
|
19
|
+
name='Login'
|
|
20
|
+
createFields={() => new LoginFields()}
|
|
21
|
+
fieldLayout={['email', 'password']}
|
|
22
|
+
buttons={buttons}
|
|
23
|
+
maxWidth={'xs'}
|
|
24
|
+
/>
|
|
25
|
+
</FormPage>
|
|
26
|
+
</>
|
|
21
27
|
),
|
|
22
28
|
};
|
|
23
29
|
|
package/src/pages/Signup.tsx
CHANGED
|
@@ -3,6 +3,7 @@ import { Page, Form, Fields, textField, FormButtons, clearButton, FormPage } fro
|
|
|
3
3
|
import { getSignupService, uiRoutes } from '@proteinjs/user';
|
|
4
4
|
import { Button, Skeleton, Stack, Typography } from '@mui/material';
|
|
5
5
|
import { emailRegex } from '@proteinjs/util';
|
|
6
|
+
import { Helmet } from 'react-helmet';
|
|
6
7
|
|
|
7
8
|
const SignupComponent: React.FC = () => {
|
|
8
9
|
const [token, setToken] = useState('');
|
|
@@ -83,45 +84,50 @@ const SignupComponent: React.FC = () => {
|
|
|
83
84
|
};
|
|
84
85
|
|
|
85
86
|
return (
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
<
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
<
|
|
93
|
-
|
|
94
|
-
<Skeleton variant='text' width='
|
|
95
|
-
<Skeleton variant='text' width='
|
|
87
|
+
<>
|
|
88
|
+
<Helmet>
|
|
89
|
+
<title>Sign up</title>
|
|
90
|
+
</Helmet>
|
|
91
|
+
<FormPage>
|
|
92
|
+
{isInitializing ? (
|
|
93
|
+
<Stack direction='column' spacing={2} sx={{ px: 2, py: 1 }}>
|
|
94
|
+
<Skeleton variant='text' width='500px' height='60px' />
|
|
95
|
+
<Skeleton variant='text' width='500px' height='60px' />
|
|
96
|
+
<Skeleton variant='text' width='500px' height='60px' />
|
|
97
|
+
<Skeleton variant='text' width='500px' height='60px' />
|
|
98
|
+
<Stack direction='row' spacing={2} justifyContent='flex-end'>
|
|
99
|
+
<Skeleton variant='text' width='100px' height='60px' />
|
|
100
|
+
<Skeleton variant='text' width='100px' height='60px' />
|
|
101
|
+
</Stack>
|
|
96
102
|
</Stack>
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
</
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
103
|
+
) : initializationError ? (
|
|
104
|
+
<Stack alignItems='center' spacing={3} sx={{ p: 4 }}>
|
|
105
|
+
<Typography variant='h1' gutterBottom>
|
|
106
|
+
Sign up is not available
|
|
107
|
+
</Typography>
|
|
108
|
+
<Typography variant='body1' gutterBottom>
|
|
109
|
+
{initializationError}
|
|
110
|
+
</Typography>
|
|
111
|
+
<Button variant='contained' color='primary' href={`/${uiRoutes.auth.login}`}>
|
|
112
|
+
Go to login page
|
|
113
|
+
</Button>
|
|
114
|
+
</Stack>
|
|
115
|
+
) : (
|
|
116
|
+
<Form<SignupFields, typeof buttons>
|
|
117
|
+
name='Sign Up'
|
|
118
|
+
createFields={() => new SignupFields()}
|
|
119
|
+
fieldLayout={['name', 'email', 'password', 'confirmPassword']}
|
|
120
|
+
buttons={buttons}
|
|
121
|
+
onLoad={async (fields) => {
|
|
122
|
+
fields.token.field.value = token;
|
|
123
|
+
if (token) {
|
|
124
|
+
fields.email.field.accessibility = { hidden: true };
|
|
125
|
+
}
|
|
126
|
+
}}
|
|
127
|
+
/>
|
|
128
|
+
)}
|
|
129
|
+
</FormPage>
|
|
130
|
+
</>
|
|
125
131
|
);
|
|
126
132
|
};
|
|
127
133
|
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2023 Brent Bahry
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|