@stackframe/stack 2.2.2 → 2.2.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/dist/components/{email-verification.d.ts → EmailVerification.d.ts} +2 -1
- package/dist/components/EmailVerification.d.ts.map +1 -0
- package/dist/components/{email-verification.js → EmailVerification.js} +2 -2
- package/dist/components/ForgotPassword.d.ts +4 -0
- package/dist/components/ForgotPassword.d.ts.map +1 -0
- package/dist/components/ForgotPassword.js +22 -0
- package/dist/components/{oauth-callback.d.ts → OAuthCallback.d.ts} +1 -1
- package/dist/components/OAuthCallback.d.ts.map +1 -0
- package/dist/components/{oauth-callback.js → OAuthCallback.js} +4 -1
- package/dist/components/{password-reset.d.ts → PasswordReset.d.ts} +2 -2
- package/dist/components/PasswordReset.d.ts.map +1 -0
- package/dist/components/{password-reset.js → PasswordReset.js} +5 -6
- package/dist/components/SignIn.d.ts +5 -0
- package/dist/components/SignIn.d.ts.map +1 -0
- package/dist/components/SignIn.js +20 -0
- package/dist/components/SignOut.d.ts +4 -0
- package/dist/components/SignOut.d.ts.map +1 -0
- package/dist/components/{sign-out.js → SignOut.js} +4 -5
- package/dist/components/SignUp.d.ts +5 -0
- package/dist/components/SignUp.d.ts.map +1 -0
- package/dist/components/SignUp.js +19 -0
- package/dist/components/{stack-handler.d.ts → StackHandler.d.ts} +1 -1
- package/dist/components/StackHandler.d.ts.map +1 -0
- package/dist/components/{stack-handler.js → StackHandler.js} +11 -11
- package/dist/components/card-frame.js +2 -2
- package/dist/components/user-button.d.ts.map +1 -1
- package/dist/components/user-button.js +3 -1
- package/dist/components-page/account-settings.js +3 -3
- package/dist/elements/Button.d.ts +11 -0
- package/dist/elements/Button.d.ts.map +1 -0
- package/dist/elements/Button.js +18 -0
- package/dist/elements/CardFrame.d.ts +6 -0
- package/dist/elements/CardFrame.d.ts.map +1 -0
- package/dist/elements/CardFrame.js +10 -0
- package/dist/{components/card-header.d.ts → elements/CardHeader.d.ts} +1 -1
- package/dist/elements/CardHeader.d.ts.map +1 -0
- package/dist/elements/CardHeader.js +4 -0
- package/dist/elements/CredentialSignIn.d.ts +4 -0
- package/dist/elements/CredentialSignIn.d.ts.map +1 -0
- package/dist/elements/CredentialSignIn.js +57 -0
- package/dist/elements/CredentialSignUp.d.ts +4 -0
- package/dist/elements/CredentialSignUp.d.ts.map +1 -0
- package/dist/elements/CredentialSignUp.js +73 -0
- package/dist/elements/{divider-with-text.d.ts → DividerWithText.d.ts} +1 -1
- package/dist/elements/DividerWithText.d.ts.map +1 -0
- package/dist/elements/DividerWithText.js +5 -0
- package/dist/elements/{forgot-password.d.ts → ForgotPassword.d.ts} +1 -1
- package/dist/elements/ForgotPassword.d.ts.map +1 -0
- package/dist/elements/ForgotPassword.js +32 -0
- package/dist/elements/{form-warning.d.ts → FormWarning.d.ts} +1 -1
- package/dist/elements/FormWarning.d.ts.map +1 -0
- package/dist/elements/{form-warning.js → FormWarning.js} +1 -2
- package/dist/elements/{message-card.d.ts → MessageCard.d.ts} +1 -1
- package/dist/elements/MessageCard.d.ts.map +1 -0
- package/dist/elements/MessageCard.js +5 -0
- package/dist/elements/OAuthButton.d.ts +6 -0
- package/dist/elements/OAuthButton.d.ts.map +1 -0
- package/dist/elements/{oauth-button.js → OAuthButton.js} +10 -8
- package/dist/elements/OAuthGroup.d.ts +5 -0
- package/dist/elements/OAuthGroup.d.ts.map +1 -0
- package/dist/elements/OAuthGroup.js +8 -0
- package/dist/elements/{password-field.d.ts → PasswordField.d.ts} +1 -1
- package/dist/elements/PasswordField.d.ts.map +1 -0
- package/dist/elements/PasswordField.js +27 -0
- package/dist/elements/{password-reset-inner.d.ts → PasswordResetInner.d.ts} +1 -1
- package/dist/elements/PasswordResetInner.d.ts.map +1 -0
- package/dist/elements/{password-reset-inner.js → PasswordResetInner.js} +16 -18
- package/dist/elements/{redirect-message-card.d.ts → RedirectMessageCard.d.ts} +1 -1
- package/dist/elements/RedirectMessageCard.d.ts.map +1 -0
- package/dist/elements/{redirect-message-card.js → RedirectMessageCard.js} +5 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/lib/hooks.d.ts +13 -5
- package/dist/lib/hooks.d.ts.map +1 -1
- package/dist/lib/hooks.js +11 -2
- package/dist/lib/stack-app.d.ts +16 -9
- package/dist/lib/stack-app.d.ts.map +1 -1
- package/dist/lib/stack-app.js +57 -14
- package/dist/providers/StackProvider.d.ts +7 -0
- package/dist/providers/StackProvider.d.ts.map +1 -0
- package/dist/providers/StackProvider.js +6 -0
- package/dist/providers/StackProviderClient.d.ts +10 -0
- package/dist/providers/StackProviderClient.d.ts.map +1 -0
- package/dist/providers/StackProviderClient.js +14 -0
- package/dist/utils/react.d.ts.map +1 -1
- package/dist/utils/results.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/components/avatar.d.ts +0 -1
- package/dist/components/avatar.d.ts.map +0 -1
- package/dist/components/avatar.js +0 -1
- package/dist/components/card-header.d.ts.map +0 -1
- package/dist/components/card-header.js +0 -5
- package/dist/components/centered-card-header.d.ts +0 -6
- package/dist/components/centered-card-header.d.ts.map +0 -1
- package/dist/components/centered-card-header.js +0 -5
- package/dist/components/dashboard-frame.d.ts +0 -23
- package/dist/components/dashboard-frame.d.ts.map +0 -1
- package/dist/components/dashboard-frame.js +0 -20
- package/dist/components/divider-with-text.d.ts +0 -4
- package/dist/components/divider-with-text.d.ts.map +0 -1
- package/dist/components/divider-with-text.js +0 -6
- package/dist/components/email-verification.d.ts.map +0 -1
- package/dist/components/logo.d.ts +0 -7
- package/dist/components/logo.d.ts.map +0 -1
- package/dist/components/logo.js +0 -7
- package/dist/components/oauth-callback.d.ts.map +0 -1
- package/dist/components/password-reset.d.ts.map +0 -1
- package/dist/components/sign-in.d.ts +0 -4
- package/dist/components/sign-in.d.ts.map +0 -1
- package/dist/components/sign-in.js +0 -20
- package/dist/components/sign-out.d.ts +0 -2
- package/dist/components/sign-out.d.ts.map +0 -1
- package/dist/components/sign-up.d.ts +0 -4
- package/dist/components/sign-up.d.ts.map +0 -1
- package/dist/components/sign-up.js +0 -20
- package/dist/components/stack-handler.d.ts.map +0 -1
- package/dist/components-core/collapsble.d.ts +0 -5
- package/dist/components-core/collapsble.d.ts.map +0 -1
- package/dist/components-core/collapsble.js +0 -6
- package/dist/components-core/divider.d.ts +0 -5
- package/dist/components-core/divider.d.ts.map +0 -1
- package/dist/components-core/divider.js +0 -20
- package/dist/components-core-joy/card.d.ts +0 -3
- package/dist/components-core-joy/card.d.ts.map +0 -1
- package/dist/components-core-joy/card.js +0 -7
- package/dist/components-core-joy/divider.d.ts +0 -3
- package/dist/components-core-joy/divider.d.ts.map +0 -1
- package/dist/components-core-joy/divider.js +0 -7
- package/dist/elements/card-frame.d.ts +0 -7
- package/dist/elements/card-frame.d.ts.map +0 -1
- package/dist/elements/card-frame.js +0 -24
- package/dist/elements/card-header.d.ts +0 -6
- package/dist/elements/card-header.d.ts.map +0 -1
- package/dist/elements/card-header.js +0 -5
- package/dist/elements/credential-sign-in.d.ts +0 -2
- package/dist/elements/credential-sign-in.d.ts.map +0 -1
- package/dist/elements/credential-sign-in.js +0 -56
- package/dist/elements/credential-sign-up.d.ts +0 -2
- package/dist/elements/credential-sign-up.d.ts.map +0 -1
- package/dist/elements/credential-sign-up.js +0 -73
- package/dist/elements/divider-with-text.d.ts.map +0 -1
- package/dist/elements/divider-with-text.js +0 -6
- package/dist/elements/forgot-password.d.ts.map +0 -1
- package/dist/elements/forgot-password.js +0 -32
- package/dist/elements/form-warning.d.ts.map +0 -1
- package/dist/elements/message-card.d.ts.map +0 -1
- package/dist/elements/message-card.js +0 -7
- package/dist/elements/oauth-button.d.ts +0 -5
- package/dist/elements/oauth-button.d.ts.map +0 -1
- package/dist/elements/oauth-group.d.ts +0 -4
- package/dist/elements/oauth-group.d.ts.map +0 -1
- package/dist/elements/oauth-group.js +0 -8
- package/dist/elements/password-field.d.ts.map +0 -1
- package/dist/elements/password-field.js +0 -38
- package/dist/elements/password-reset-inner.d.ts.map +0 -1
- package/dist/elements/redirect-message-card.d.ts.map +0 -1
- package/dist/icons/logo.d.ts +0 -3
- package/dist/icons/logo.d.ts.map +0 -1
- package/dist/icons/logo.js +0 -7
- package/dist/providers/ui-provider.d.ts +0 -10
- package/dist/providers/ui-provider.js +0 -20
package/dist/lib/stack-app.js
CHANGED
|
@@ -249,7 +249,7 @@ class _StackClientAppImpl {
|
|
|
249
249
|
if (json === null)
|
|
250
250
|
return null;
|
|
251
251
|
const app = this;
|
|
252
|
-
const
|
|
252
|
+
const currentUser = {
|
|
253
253
|
...this._userFromJson(json),
|
|
254
254
|
tokenStore,
|
|
255
255
|
update(update) {
|
|
@@ -263,10 +263,31 @@ class _StackClientAppImpl {
|
|
|
263
263
|
},
|
|
264
264
|
updatePassword(options) {
|
|
265
265
|
return app._updatePassword(options, tokenStore);
|
|
266
|
-
}
|
|
266
|
+
},
|
|
267
267
|
};
|
|
268
|
-
|
|
269
|
-
|
|
268
|
+
if (this.isInternalProject()) {
|
|
269
|
+
const internalUser = {
|
|
270
|
+
...currentUser,
|
|
271
|
+
createProject(newProject) {
|
|
272
|
+
return app._createProject(newProject);
|
|
273
|
+
},
|
|
274
|
+
listOwnedProjects() {
|
|
275
|
+
return app._listOwnedProjects();
|
|
276
|
+
},
|
|
277
|
+
useOwnedProjects() {
|
|
278
|
+
return app._useOwnedProjects();
|
|
279
|
+
},
|
|
280
|
+
onOwnedProjectsChange(callback) {
|
|
281
|
+
return app._onOwnedProjectsChange(callback);
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
Object.freeze(internalUser);
|
|
285
|
+
return internalUser;
|
|
286
|
+
}
|
|
287
|
+
else {
|
|
288
|
+
Object.freeze(currentUser);
|
|
289
|
+
return currentUser;
|
|
290
|
+
}
|
|
270
291
|
}
|
|
271
292
|
_userToJson(user) {
|
|
272
293
|
return {
|
|
@@ -394,8 +415,9 @@ class _StackClientAppImpl {
|
|
|
394
415
|
case 'throw': {
|
|
395
416
|
throw new Error("User is not signed in but useUser was called with { or: 'throw' }");
|
|
396
417
|
}
|
|
397
|
-
|
|
398
|
-
|
|
418
|
+
case undefined:
|
|
419
|
+
case "return-null": {
|
|
420
|
+
// do nothing
|
|
399
421
|
}
|
|
400
422
|
}
|
|
401
423
|
}
|
|
@@ -476,26 +498,26 @@ class _StackClientAppImpl {
|
|
|
476
498
|
onProjectChange(callback) {
|
|
477
499
|
return this._currentProjectCache.onChange([], callback);
|
|
478
500
|
}
|
|
479
|
-
async
|
|
501
|
+
async _listOwnedProjects() {
|
|
480
502
|
this._ensureInternalProject();
|
|
481
503
|
const tokenStore = getTokenStore(this._tokenStoreOptions);
|
|
482
504
|
const json = await this._ownedProjectsCache.getOrWait([tokenStore], "write-only");
|
|
483
505
|
return json.map((j) => this._projectAdminFromJson(j, this._createAdminInterface(j.id, tokenStore), () => this._refreshOwnedProjects(tokenStore)));
|
|
484
506
|
}
|
|
485
|
-
|
|
507
|
+
_useOwnedProjects() {
|
|
486
508
|
this._ensureInternalProject();
|
|
487
509
|
const tokenStore = getTokenStore(this._tokenStoreOptions);
|
|
488
510
|
const json = useCache(this._ownedProjectsCache, [tokenStore], "useOwnedProjects()");
|
|
489
511
|
return useMemo(() => json.map((j) => this._projectAdminFromJson(j, this._createAdminInterface(j.id, tokenStore), () => this._refreshOwnedProjects(tokenStore))), [json]);
|
|
490
512
|
}
|
|
491
|
-
|
|
513
|
+
_onOwnedProjectsChange(callback) {
|
|
492
514
|
this._ensureInternalProject();
|
|
493
515
|
const tokenStore = getTokenStore(this._tokenStoreOptions);
|
|
494
516
|
return this._ownedProjectsCache.onChange([tokenStore], (projects) => {
|
|
495
517
|
callback(projects.map((j) => this._projectAdminFromJson(j, this._createAdminInterface(j.id, tokenStore), () => this._refreshOwnedProjects(tokenStore))));
|
|
496
518
|
});
|
|
497
519
|
}
|
|
498
|
-
async
|
|
520
|
+
async _createProject(newProject) {
|
|
499
521
|
this._ensureInternalProject();
|
|
500
522
|
const tokenStore = getTokenStore(this._tokenStoreOptions);
|
|
501
523
|
const json = await this._interface.createProject(newProject, tokenStore);
|
|
@@ -620,7 +642,7 @@ class _StackServerAppImpl extends _StackClientAppImpl {
|
|
|
620
642
|
return null;
|
|
621
643
|
const app = this;
|
|
622
644
|
const nonCurrentServerUser = this._serverUserFromJson(json);
|
|
623
|
-
const
|
|
645
|
+
const currentUser = {
|
|
624
646
|
...nonCurrentServerUser,
|
|
625
647
|
tokenStore,
|
|
626
648
|
async delete() {
|
|
@@ -644,10 +666,31 @@ class _StackServerAppImpl extends _StackClientAppImpl {
|
|
|
644
666
|
},
|
|
645
667
|
updatePassword(options) {
|
|
646
668
|
return app._updatePassword(options, tokenStore);
|
|
647
|
-
}
|
|
669
|
+
},
|
|
648
670
|
};
|
|
649
|
-
|
|
650
|
-
|
|
671
|
+
if (this.isInternalProject()) {
|
|
672
|
+
const internalUser = {
|
|
673
|
+
...currentUser,
|
|
674
|
+
createProject(newProject) {
|
|
675
|
+
return app._createProject(newProject);
|
|
676
|
+
},
|
|
677
|
+
listOwnedProjects() {
|
|
678
|
+
return app._listOwnedProjects();
|
|
679
|
+
},
|
|
680
|
+
useOwnedProjects() {
|
|
681
|
+
return app._useOwnedProjects();
|
|
682
|
+
},
|
|
683
|
+
onOwnedProjectsChange(callback) {
|
|
684
|
+
return app._onOwnedProjectsChange(callback);
|
|
685
|
+
}
|
|
686
|
+
};
|
|
687
|
+
Object.freeze(internalUser);
|
|
688
|
+
return internalUser;
|
|
689
|
+
}
|
|
690
|
+
else {
|
|
691
|
+
Object.freeze(currentUser);
|
|
692
|
+
return currentUser;
|
|
693
|
+
}
|
|
651
694
|
}
|
|
652
695
|
_serverUserToJson(user) {
|
|
653
696
|
return {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { StackClientApp } from '../lib/stack-app';
|
|
3
|
+
export default function StackProvider({ children, app, }: {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
app: StackClientApp<true>;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=StackProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StackProvider.d.ts","sourceRoot":"","sources":["../../src/providers/StackProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,cAAc,EAA2B,MAAM,kBAAkB,CAAC;AAI3E,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,QAAQ,EACR,GAAG,GACJ,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,GAAG,EAAE,cAAc,CAAC,IAAI,CAAC,CAAC;CAC3B,2CAMA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { stackAppInternalsSymbol } from '../lib/stack-app';
|
|
3
|
+
import { StackProviderClient } from './StackProviderClient';
|
|
4
|
+
export default function StackProvider({ children, app, }) {
|
|
5
|
+
return (_jsx(StackProviderClient, { appJsonPromise: app[stackAppInternalsSymbol].toClientJson(), children: children }));
|
|
6
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { StackClientApp, StackClientAppJson } from "../lib/stack-app";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export declare const StackContext: React.Context<{
|
|
4
|
+
app: StackClientApp<true>;
|
|
5
|
+
} | null>;
|
|
6
|
+
export declare function StackProviderClient(props: {
|
|
7
|
+
appJsonPromise: Promise<StackClientAppJson<true, string>>;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=StackProviderClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StackProviderClient.d.ts","sourceRoot":"","sources":["../../src/providers/StackProviderClient.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAA2B,MAAM,kBAAkB,CAAC;AAC/F,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,eAAO,MAAM,YAAY;SAClB,eAAe,IAAI,CAAC;SACnB,CAAC;AAET,wBAAgB,mBAAmB,CAAC,KAAK,EAAE;IACzC,cAAc,EAAE,OAAO,CAAC,kBAAkB,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC;IAC1D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,2CAaA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { use } from "react";
|
|
4
|
+
import { StackClientApp, stackAppInternalsSymbol } from "../lib/stack-app";
|
|
5
|
+
import React from "react";
|
|
6
|
+
export const StackContext = React.createContext(null);
|
|
7
|
+
export function StackProviderClient(props) {
|
|
8
|
+
const appJson = use(props.appJsonPromise);
|
|
9
|
+
const app = StackClientApp[stackAppInternalsSymbol].fromClientJson(appJson);
|
|
10
|
+
if (process.env.NODE_ENV === "development") {
|
|
11
|
+
globalThis.stackApp = app;
|
|
12
|
+
}
|
|
13
|
+
return (_jsx(StackContext.Provider, { value: { app }, children: props.children }));
|
|
14
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../src/utils/react.
|
|
1
|
+
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../src/utils/react.ts"],"names":[],"mappings":"AAGA,wBAAgB,OAAO,IAAI,KAAK,CAG/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"results.d.ts","sourceRoot":"","sources":["../../src/utils/results.
|
|
1
|
+
{"version":3,"file":"results.d.ts","sourceRoot":"","sources":["../../src/utils/results.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,CAAC,CAAC,EAAE,CAAC,GAAG,OAAO,IAC7B;IACA,MAAM,EAAE,IAAI,CAAC;IACb,IAAI,EAAE,CAAC,CAAC;CACT,GACC;IACA,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,CAAC,CAAC;CACV,CAAC;AAEJ,MAAM,MAAM,WAAW,CAAC,CAAC,EAAE,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,IAAI,IAC5C,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,GACV;IACF,MAAM,EAAE,SAAS,CAAC;CACnB,GACC,CAAC,CAAC,SAAS,IAAI,GAAG,EAAE,GAAG;IAAE,QAAQ,EAAE,CAAC,CAAA;CAAE,CAAC,CAAC;AAE5C,eAAO,MAAM,MAAM;;;;;;;CAsBlB,CAAC;AAEF,iBAAS,eAAe,CAAC,CAAC,EAAE,CAAC,GAAG,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAQnF;AAED,iBAAS,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAC3G,iBAAS,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stackframe/stack",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"server-only": "^0.0.1",
|
|
31
31
|
"styled-components": "^6.1.8",
|
|
32
32
|
"tailwindcss-scoped-preflight": "^2.1.0",
|
|
33
|
-
"@stackframe/stack-sc": "1.3.
|
|
34
|
-
"@stackframe/stack-shared": "2.2.
|
|
33
|
+
"@stackframe/stack-sc": "1.3.2",
|
|
34
|
+
"@stackframe/stack-shared": "2.2.2"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@mui/joy": "^5.0.0-beta.30",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=avatar.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../src/components/avatar.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"card-header.d.ts","sourceRoot":"","sources":["../../src/components/card-header.tsx"],"names":[],"mappings":";AAEA,MAAM,CAAC,OAAO,UAAU,UAAU,CAChC,EAAE,QAAQ,EAAE,KAAK,EAAE,EACnB;IAAE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,2CAQ9C"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Text } from "../components-core";
|
|
3
|
-
export default function CardHeader({ children, title }) {
|
|
4
|
-
return (_jsxs("div", { style: { textAlign: 'center', marginBottom: '24px' }, children: [_jsx(Text, { size: "xl", as: 'h2', style: { marginBottom: '5px' }, children: title }), children] }));
|
|
5
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"centered-card-header.d.ts","sourceRoot":"","sources":["../../src/components/centered-card-header.tsx"],"names":[],"mappings":";AAEA,MAAM,CAAC,OAAO,UAAU,kBAAkB,CACxC,EAAE,QAAQ,EAAE,KAAK,EAAE,EACnB;IAAE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,2CAQ9C"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { CardHeader, Text } from "../components-core";
|
|
3
|
-
export default function CenteredCardHeader({ children, title }) {
|
|
4
|
-
return (_jsxs(CardHeader, { style: { textAlign: 'center' }, children: [_jsx(Text, { size: "xl", as: 'h2', style: { marginBottom: '5px' }, children: title }), children] }));
|
|
5
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
type SidebarItem = {
|
|
3
|
-
type: 'label' | 'link' | 'divider' | undefined;
|
|
4
|
-
} & ({
|
|
5
|
-
type: 'label';
|
|
6
|
-
text: string;
|
|
7
|
-
} | {
|
|
8
|
-
type: 'link';
|
|
9
|
-
text: string;
|
|
10
|
-
href: string;
|
|
11
|
-
} | {
|
|
12
|
-
type: 'divider';
|
|
13
|
-
});
|
|
14
|
-
export default function DashboardFrame(props: {
|
|
15
|
-
logoUrl?: string | {
|
|
16
|
-
dark: string;
|
|
17
|
-
light: string;
|
|
18
|
-
};
|
|
19
|
-
sidebarContent: SidebarItem[];
|
|
20
|
-
children?: React.ReactNode;
|
|
21
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
export {};
|
|
23
|
-
//# sourceMappingURL=dashboard-frame.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard-frame.d.ts","sourceRoot":"","sources":["../../src/components/dashboard-frame.tsx"],"names":[],"mappings":";AAOA,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;CAChD,GAAG,CACF;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC/B;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC5C;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CACpB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,EAAE;IAC5C,OAAO,CAAC,EAAE,MAAM,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IACnD,cAAc,EAAE,WAAW,EAAE,CAAC;IAC9B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,2CAmCA"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useMemo } from "react";
|
|
4
|
-
import { useDesign } from "../providers/design-provider";
|
|
5
|
-
import { LogoBright, LogoDark } from "./logo";
|
|
6
|
-
export default function DashboardFrame(props) {
|
|
7
|
-
const { colors, colorMode } = useDesign();
|
|
8
|
-
const logoSrc = useMemo(() => {
|
|
9
|
-
if (!props.logoUrl) {
|
|
10
|
-
return colorMode === 'dark' ? _jsx(LogoDark, {}) : _jsx(LogoBright, {});
|
|
11
|
-
}
|
|
12
|
-
else if (typeof props.logoUrl === 'string') {
|
|
13
|
-
return props.logoUrl;
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
return colorMode === 'dark' ? props.logoUrl?.dark : props.logoUrl?.light;
|
|
17
|
-
}
|
|
18
|
-
}, [props.logoUrl, colorMode]);
|
|
19
|
-
return (_jsxs("div", { style: { position: 'absolute', top: 0, left: 0, width: '100%', height: '100vh', display: 'flex', flexDirection: 'row' }, children: [_jsx("nav", { style: { width: '280px', height: '100%', borderRight: 1, borderRightStyle: 'solid', borderRightColor: colors.neutralColor }, children: _jsx("div", { style: { height: '50px', borderBottom: 1, borderBottomStyle: 'solid', borderBottomColor: colors.neutralColor, display: 'flex', alignItems: 'center', padding: '0 15px' }, children: _jsx(LogoBright, { height: 28 }) }) }), _jsxs("div", { style: { display: 'flex', flexDirection: 'column', width: '100%' }, children: [_jsx("nav", { style: { height: '50px', borderBottom: 1, borderBottomStyle: 'solid', borderBottomColor: colors.neutralColor } }), _jsx("div", { style: { height: 'calc(100% - 50px)', overflowY: 'auto' }, children: props.children })] })] }));
|
|
20
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"divider-with-text.d.ts","sourceRoot":"","sources":["../../src/components/divider-with-text.tsx"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,2CAYnE"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { Separator, Text } from "../components-core";
|
|
4
|
-
export default function SeparatorWithText({ text }) {
|
|
5
|
-
return (_jsxs("div", { style: { display: 'flex', alignItems: 'center', justifyContent: 'center', marginTop: '1.5rem', marginBottom: '1.5rem' }, children: [_jsx("div", { style: { flex: 1 }, children: _jsx(Separator, {}) }), _jsx(Text, { style: { padding: '0 16px' }, variant: "secondary", size: 'sm', children: text }), _jsx("div", { style: { flex: 1 }, children: _jsx(Separator, {}) })] }));
|
|
6
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"email-verification.d.ts","sourceRoot":"","sources":["../../src/components/email-verification.tsx"],"names":[],"mappings":"AAQA,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EACxC,YAAY,EAAE,EACZ,IAAS,GACL,EACN,QAAgB,GACjB,EAAE;IACD,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,kDAkCA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logo.d.ts","sourceRoot":"","sources":["../../src/components/logo.tsx"],"names":[],"mappings":"AACA,wBAAgB,UAAU,CAAC,KAAK,EAAE;IAChC,MAAM,EAAE,MAAM,CAAC;CAChB,2CAOA;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE;IAC9B,MAAM,EAAE,MAAM,CAAC;CAChB,2CAOA"}
|
package/dist/components/logo.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
export function LogoBright(props) {
|
|
3
|
-
return (_jsxs("svg", { width: props.height * 851 / 242, height: props.height, viewBox: "0 0 851 242", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { d: "M282.965 156.631V151.631C282.965 148.131 284.715 146.381 288.215 146.381H309.465C312.965 146.381 314.715 148.131 314.715 151.631V153.631C314.715 159.965 315.965 164.298 318.465 166.631C320.965 168.965 325.548 170.131 332.215 170.131H343.965C350.465 170.131 354.965 168.881 357.465 166.381C360.132 163.881 361.465 159.215 361.465 152.381V149.381C361.465 144.548 359.465 140.881 355.465 138.381C351.632 135.715 346.798 134.131 340.965 133.631C335.132 133.131 328.798 132.215 321.965 130.881C315.298 129.381 309.048 127.548 303.215 125.381C297.382 123.048 292.465 118.631 288.465 112.131C284.632 105.465 282.715 96.9647 282.715 86.6313V77.8813C282.715 64.8813 286.382 54.798 293.715 47.6313C301.048 40.4647 311.215 36.8813 324.215 36.8813H349.215C362.382 36.8813 372.632 40.4647 379.965 47.6313C387.298 54.798 390.965 64.8813 390.965 77.8813V82.6313C390.965 86.1313 389.215 87.8813 385.715 87.8813H364.465C360.965 87.8813 359.215 86.1313 359.215 82.6313V81.1313C359.215 74.6313 357.965 70.2147 355.465 67.8813C352.965 65.548 348.382 64.3813 341.715 64.3813H331.965C325.132 64.3813 320.465 65.7147 317.965 68.3813C315.632 70.8813 314.465 75.8813 314.465 83.3813V88.1313C314.465 95.9647 321.298 100.465 334.965 101.631C349.132 102.798 361.715 105.631 372.715 110.131C378.548 112.631 383.382 117.131 387.215 123.631C391.215 129.965 393.215 138.131 393.215 148.131V156.631C393.215 169.631 389.548 179.715 382.215 186.881C374.882 194.048 364.715 197.631 351.715 197.631H324.465C311.465 197.631 301.298 194.048 293.965 186.881C286.632 179.715 282.965 169.631 282.965 156.631ZM421.98 97.6313H411.98C409.98 97.6313 408.564 97.298 407.73 96.6313C407.064 95.9647 406.73 94.6313 406.73 92.6313V75.3813C406.73 71.8813 408.48 70.1313 411.98 70.1313H421.98C423.814 70.1313 424.73 69.2147 424.73 67.3813V43.6313C424.73 40.1313 426.564 38.3813 430.23 38.3813H451.23C454.73 38.3813 456.48 40.1313 456.48 43.6313V67.3813C456.48 69.2147 457.48 70.1313 459.48 70.1313H478.98C482.48 70.1313 484.23 71.8813 484.23 75.3813V92.6313C484.23 94.4647 483.814 95.798 482.98 96.6313C482.314 97.298 480.98 97.6313 478.98 97.6313H459.48C457.48 97.6313 456.48 98.548 456.48 100.381V155.631C456.48 160.798 457.647 164.548 459.98 166.881C462.314 169.048 466.147 170.131 471.48 170.131H481.48C484.98 170.131 486.73 171.881 486.73 175.381V192.631C486.73 194.465 486.314 195.798 485.48 196.631C484.814 197.298 483.48 197.631 481.48 197.631H466.23C453.064 197.631 442.814 194.131 435.48 187.131C428.314 180.131 424.73 170.131 424.73 157.131V100.381C424.73 98.548 423.814 97.6313 421.98 97.6313ZM552.115 197.631H546.115C532.949 197.631 522.782 194.131 515.615 187.131C508.449 180.131 504.865 170.048 504.865 156.881V110.881C504.865 97.7147 508.449 87.6313 515.615 80.6313C522.782 73.6313 532.949 70.1313 546.115 70.1313H603.865C607.532 70.1313 609.365 71.8813 609.365 75.3813V192.381C609.365 195.881 607.532 197.631 603.865 197.631H582.865C579.365 197.631 577.615 195.881 577.615 192.381V184.131H576.615C574.782 188.631 571.532 192.048 566.865 194.381C562.199 196.548 557.282 197.631 552.115 197.631ZM577.615 151.131V100.381C577.615 98.548 576.615 97.6313 574.615 97.6313H551.115C545.782 97.6313 542.032 98.798 539.865 101.131C537.699 103.298 536.615 107.048 536.615 112.381V155.381C536.615 160.715 537.699 164.548 539.865 166.881C542.032 169.048 545.782 170.131 551.115 170.131H560.365C571.865 170.131 577.615 163.798 577.615 151.131ZM718.01 175.381V192.631C718.01 194.465 717.593 195.798 716.76 196.631C716.093 197.298 714.76 197.631 712.76 197.631H675.51C662.343 197.631 652.176 194.131 645.01 187.131C637.843 180.131 634.26 170.048 634.26 156.881V110.881C634.26 97.7147 637.843 87.6313 645.01 80.6313C652.176 73.6313 662.343 70.1313 675.51 70.1313H712.76C716.26 70.1313 718.01 71.8813 718.01 75.3813V92.6313C718.01 94.4647 717.593 95.798 716.76 96.6313C716.093 97.298 714.76 97.6313 712.76 97.6313H680.51C675.343 97.6313 671.593 98.798 669.26 101.131C667.093 103.298 666.01 107.048 666.01 112.381V155.381C666.01 160.715 667.093 164.548 669.26 166.881C671.593 169.048 675.343 170.131 680.51 170.131H712.76C716.26 170.131 718.01 171.881 718.01 175.381ZM812.543 70.1313H836.793C838.793 70.1313 840.126 70.7147 840.793 71.8813C841.46 73.048 841.21 74.548 840.043 76.3813L806.793 131.131V132.131L841.543 191.381C842.543 193.048 842.626 194.548 841.793 195.881C840.96 197.048 839.46 197.631 837.293 197.631H815.793C812.96 197.631 810.876 197.298 809.543 196.631C808.376 195.965 807.126 194.548 805.793 192.381L774.043 136.631C772.543 133.965 772.543 131.215 774.043 128.381L804.043 75.1313C805.876 71.798 808.71 70.1313 812.543 70.1313ZM766.043 197.631H744.793C741.293 197.631 739.543 195.881 739.543 192.381V27.1313C739.543 23.6313 741.293 21.8813 744.793 21.8813H766.043C769.543 21.8813 771.293 23.6313 771.293 27.1313V192.381C771.293 195.881 769.543 197.631 766.043 197.631Z", fill: "#D9D9D9" }), _jsx("path", { d: "M103.504 1.81227C101.251 0.68679 98.6002 0.687576 96.3483 1.81439L4.4201 47.8136C1.71103 49.1692 0 51.9387 0 54.968V130.55C0 133.581 1.7123 136.351 4.42292 137.706L96.4204 183.695C98.6725 184.82 101.323 184.82 103.575 183.694L168.422 151.271C173.742 148.611 180 152.479 180 158.426V168.879C180 171.91 178.288 174.68 175.578 176.035L103.577 212.036C101.325 213.162 98.6745 213.162 96.4224 212.036L11.5771 169.623C6.25791 166.964 0 170.832 0 176.779V187.073C0 190.107 1.71689 192.881 4.43309 194.234L96.5051 240.096C98.7529 241.216 101.396 241.215 103.643 240.094L195.571 194.235C198.285 192.881 200 190.109 200 187.076V119.512C200 113.565 193.741 109.697 188.422 112.356L131.578 140.778C126.258 143.438 120 139.57 120 133.623V123.17C120 120.14 121.712 117.37 124.422 116.014L195.578 80.4368C198.288 79.0817 200 76.3116 200 73.2814V54.9713C200 51.9402 198.287 49.1695 195.576 47.8148L103.504 1.81227Z", fill: "#D9D9D9" })] }));
|
|
4
|
-
}
|
|
5
|
-
export function LogoDark(props) {
|
|
6
|
-
return (_jsxs("svg", { width: props.height * 851 / 242, height: props.height, viewBox: "0 0 830 242", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { d: "M262.25 156.631V151.631C262.25 148.131 264 146.381 267.5 146.381H288.75C292.25 146.381 294 148.131 294 151.631V153.631C294 159.965 295.25 164.298 297.75 166.631C300.25 168.965 304.833 170.131 311.5 170.131H323.25C329.75 170.131 334.25 168.881 336.75 166.381C339.417 163.881 340.75 159.215 340.75 152.381V149.381C340.75 144.548 338.75 140.881 334.75 138.381C330.917 135.715 326.083 134.131 320.25 133.631C314.417 133.131 308.083 132.215 301.25 130.881C294.583 129.381 288.333 127.548 282.5 125.381C276.667 123.048 271.75 118.631 267.75 112.131C263.917 105.465 262 96.9647 262 86.6313V77.8813C262 64.8813 265.667 54.798 273 47.6313C280.333 40.4647 290.5 36.8813 303.5 36.8813H328.5C341.667 36.8813 351.917 40.4647 359.25 47.6313C366.583 54.798 370.25 64.8813 370.25 77.8813V82.6313C370.25 86.1313 368.5 87.8813 365 87.8813H343.75C340.25 87.8813 338.5 86.1313 338.5 82.6313V81.1313C338.5 74.6313 337.25 70.2147 334.75 67.8813C332.25 65.548 327.667 64.3813 321 64.3813H311.25C304.417 64.3813 299.75 65.7147 297.25 68.3813C294.917 70.8813 293.75 75.8813 293.75 83.3813V88.1313C293.75 95.9647 300.583 100.465 314.25 101.631C328.417 102.798 341 105.631 352 110.131C357.833 112.631 362.667 117.131 366.5 123.631C370.5 129.965 372.5 138.131 372.5 148.131V156.631C372.5 169.631 368.833 179.715 361.5 186.881C354.167 194.048 344 197.631 331 197.631H303.75C290.75 197.631 280.583 194.048 273.25 186.881C265.917 179.715 262.25 169.631 262.25 156.631ZM401.266 97.6313H391.266C389.266 97.6313 387.849 97.298 387.016 96.6313C386.349 95.9647 386.016 94.6313 386.016 92.6313V75.3813C386.016 71.8813 387.766 70.1313 391.266 70.1313H401.266C403.099 70.1313 404.016 69.2147 404.016 67.3813V43.6313C404.016 40.1313 405.849 38.3813 409.516 38.3813H430.516C434.016 38.3813 435.766 40.1313 435.766 43.6313V67.3813C435.766 69.2147 436.766 70.1313 438.766 70.1313H458.266C461.766 70.1313 463.516 71.8813 463.516 75.3813V92.6313C463.516 94.4647 463.099 95.798 462.266 96.6313C461.599 97.298 460.266 97.6313 458.266 97.6313H438.766C436.766 97.6313 435.766 98.548 435.766 100.381V155.631C435.766 160.798 436.932 164.548 439.266 166.881C441.599 169.048 445.432 170.131 450.766 170.131H460.766C464.266 170.131 466.016 171.881 466.016 175.381V192.631C466.016 194.465 465.599 195.798 464.766 196.631C464.099 197.298 462.766 197.631 460.766 197.631H445.516C432.349 197.631 422.099 194.131 414.766 187.131C407.599 180.131 404.016 170.131 404.016 157.131V100.381C404.016 98.548 403.099 97.6313 401.266 97.6313ZM531.4 197.631H525.4C512.234 197.631 502.067 194.131 494.9 187.131C487.734 180.131 484.15 170.048 484.15 156.881V110.881C484.15 97.7147 487.734 87.6313 494.9 80.6313C502.067 73.6313 512.234 70.1313 525.4 70.1313H583.15C586.817 70.1313 588.65 71.8813 588.65 75.3813V192.381C588.65 195.881 586.817 197.631 583.15 197.631H562.15C558.65 197.631 556.9 195.881 556.9 192.381V184.131H555.9C554.067 188.631 550.817 192.048 546.15 194.381C541.484 196.548 536.567 197.631 531.4 197.631ZM556.9 151.131V100.381C556.9 98.548 555.9 97.6313 553.9 97.6313H530.4C525.067 97.6313 521.317 98.798 519.15 101.131C516.984 103.298 515.9 107.048 515.9 112.381V155.381C515.9 160.715 516.984 164.548 519.15 166.881C521.317 169.048 525.067 170.131 530.4 170.131H539.65C551.15 170.131 556.9 163.798 556.9 151.131ZM697.295 175.381V192.631C697.295 194.465 696.878 195.798 696.045 196.631C695.378 197.298 694.045 197.631 692.045 197.631H654.795C641.628 197.631 631.462 194.131 624.295 187.131C617.128 180.131 613.545 170.048 613.545 156.881V110.881C613.545 97.7147 617.128 87.6313 624.295 80.6313C631.462 73.6313 641.628 70.1313 654.795 70.1313H692.045C695.545 70.1313 697.295 71.8813 697.295 75.3813V92.6313C697.295 94.4647 696.878 95.798 696.045 96.6313C695.378 97.298 694.045 97.6313 692.045 97.6313H659.795C654.628 97.6313 650.878 98.798 648.545 101.131C646.378 103.298 645.295 107.048 645.295 112.381V155.381C645.295 160.715 646.378 164.548 648.545 166.881C650.878 169.048 654.628 170.131 659.795 170.131H692.045C695.545 170.131 697.295 171.881 697.295 175.381ZM791.828 70.1313H816.078C818.078 70.1313 819.411 70.7147 820.078 71.8813C820.745 73.048 820.495 74.548 819.328 76.3813L786.078 131.131V132.131L820.828 191.381C821.828 193.048 821.911 194.548 821.078 195.881C820.245 197.048 818.745 197.631 816.578 197.631H795.078C792.245 197.631 790.161 197.298 788.828 196.631C787.661 195.965 786.411 194.548 785.078 192.381L753.328 136.631C751.828 133.965 751.828 131.215 753.328 128.381L783.328 75.1313C785.161 71.798 787.995 70.1313 791.828 70.1313ZM745.328 197.631H724.078C720.578 197.631 718.828 195.881 718.828 192.381V27.1313C718.828 23.6313 720.578 21.8813 724.078 21.8813H745.328C748.828 21.8813 750.578 23.6313 750.578 27.1313V192.381C750.578 195.881 748.828 197.631 745.328 197.631Z", fill: "#D9D9D9" }), _jsx("path", { d: "M103.504 1.81227C101.251 0.68679 98.6002 0.687576 96.3483 1.81439L4.4201 47.8136C1.71103 49.1692 0 51.9387 0 54.968V130.55C0 133.581 1.7123 136.351 4.42292 137.706L96.4204 183.695C98.6725 184.82 101.323 184.82 103.575 183.694L168.422 151.271C173.742 148.611 180 152.479 180 158.426V168.879C180 171.91 178.288 174.68 175.578 176.035L103.577 212.036C101.325 213.162 98.6745 213.162 96.4224 212.036L11.5771 169.623C6.25791 166.964 0 170.832 0 176.779V187.073C0 190.107 1.71689 192.881 4.43309 194.234L96.5051 240.096C98.7529 241.216 101.396 241.215 103.643 240.094L195.571 194.235C198.285 192.881 200 190.109 200 187.076V119.512C200 113.565 193.741 109.697 188.422 112.356L131.578 140.778C126.258 143.438 120 139.57 120 133.623V123.17C120 120.14 121.712 117.37 124.422 116.014L195.578 80.4368C198.288 79.0817 200 76.3116 200 73.2814V54.9713C200 51.9402 198.287 49.1695 195.576 47.8148L103.504 1.81227Z", fill: "#D9D9D9" })] }));
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"oauth-callback.d.ts","sourceRoot":"","sources":["../../src/components/oauth-callback.tsx"],"names":[],"mappings":"AAMA,MAAM,CAAC,OAAO,UAAU,aAAa,4CAWpC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"password-reset.d.ts","sourceRoot":"","sources":["../../src/components/password-reset.tsx"],"names":[],"mappings":"AAcA,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,YAAY,EACZ,QAAgB,GACjB,EAAE;IACD,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,2CA0CA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sign-in.d.ts","sourceRoot":"","sources":["../../src/components/sign-in.tsx"],"names":[],"mappings":"AAWA,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAAE,QAAc,EAAE,EAAE;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,2CA0BxE"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import CredentialSignIn from '../elements/credential-sign-in';
|
|
4
|
-
import DividerWithText from '../elements/divider-with-text';
|
|
5
|
-
import OAuthGroup from '../elements/oauth-group';
|
|
6
|
-
import CardFrame from '../elements/card-frame';
|
|
7
|
-
import CardHeader from '../elements/card-header';
|
|
8
|
-
import { useUser, useStackApp } from '..';
|
|
9
|
-
import RedirectMessageCard from '../elements/redirect-message-card';
|
|
10
|
-
import { Link, Text } from '@stackframe/stack-ui';
|
|
11
|
-
export default function SignIn({ fullPage = false }) {
|
|
12
|
-
const stackApp = useStackApp();
|
|
13
|
-
const user = useUser();
|
|
14
|
-
const project = stackApp.useProject();
|
|
15
|
-
if (user) {
|
|
16
|
-
return _jsx(RedirectMessageCard, { type: 'signedIn', fullPage: fullPage });
|
|
17
|
-
}
|
|
18
|
-
const enableDivider = project.credentialEnabled && project.oauthProviders.filter(p => p.enabled).length > 0;
|
|
19
|
-
return (_jsxs(CardFrame, { fullPage: fullPage, children: [_jsx(CardHeader, { title: "Sign In to Your Account", children: _jsxs(Text, { children: ["Don't have an account? ", _jsx(Link, { href: stackApp.urls['signUp'], children: "Sign up" })] }) }), _jsx(OAuthGroup, { type: 'signin' }), enableDivider && _jsx(DividerWithText, { text: 'OR' }), project.credentialEnabled && _jsx(CredentialSignIn, {})] }));
|
|
20
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sign-out.d.ts","sourceRoot":"","sources":["../../src/components/sign-out.tsx"],"names":[],"mappings":"AAMA,MAAM,CAAC,OAAO,UAAU,OAAO,4CAS9B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sign-up.d.ts","sourceRoot":"","sources":["../../src/components/sign-up.tsx"],"names":[],"mappings":"AAWA,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAAE,QAAc,EAAE,EAAE;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,2CA0BxE"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import DividerWithText from '../elements/divider-with-text';
|
|
4
|
-
import OAuthGroup from '../elements/oauth-group';
|
|
5
|
-
import CardFrame from '../elements/card-frame';
|
|
6
|
-
import CredentialSignUp from '../elements/credential-sign-up';
|
|
7
|
-
import CardHeader from '../elements/card-header';
|
|
8
|
-
import { useUser, useStackApp } from '..';
|
|
9
|
-
import RedirectMessageCard from '../elements/redirect-message-card';
|
|
10
|
-
import { Link, Text } from '@stackframe/stack-ui';
|
|
11
|
-
export default function SignUp({ fullPage = false }) {
|
|
12
|
-
const stackApp = useStackApp();
|
|
13
|
-
const user = useUser();
|
|
14
|
-
const project = stackApp.useProject();
|
|
15
|
-
if (user) {
|
|
16
|
-
return _jsx(RedirectMessageCard, { type: 'signedIn', fullPage: fullPage });
|
|
17
|
-
}
|
|
18
|
-
const enableDivider = project.credentialEnabled && project.oauthProviders.filter(p => p.enabled).length > 0;
|
|
19
|
-
return (_jsxs(CardFrame, { fullPage: fullPage, children: [_jsx(CardHeader, { title: "Create a New Account", children: _jsxs(Text, { children: ["Already have an account? ", _jsx(Link, { href: stackApp.urls['signIn'], children: "Sign in" })] }) }), _jsx(OAuthGroup, { type: 'signup' }), enableDivider && _jsx(DividerWithText, { text: 'OR' }), project.credentialEnabled && _jsx(CredentialSignUp, {})] }));
|
|
20
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stack-handler.d.ts","sourceRoot":"","sources":["../../src/components/stack-handler.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAiB,cAAc,EAAE,MAAM,IAAI,CAAC;AAOnD,wBAA8B,YAAY,CAAC,aAAa,SAAS,OAAO,EAAE,EACxE,GAAG,EACH,MAAM,EAAE,EAAE,KAAK,EAAO,EACtB,YAAiB,GAClB,EAAE;IACD,GAAG,EAAE,cAAc,CAAC,aAAa,CAAC,CAAC;IACnC,MAAM,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACvC,oDAuDA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"collapsble.d.ts","sourceRoot":"","sources":["../../src/components-core/collapsble.tsx"],"names":[],"mappings":"AAIA,QAAA,MAAM,WAAW,KAA4B,CAAC;AAE9C,QAAA,MAAM,kBAAkB,KAA0C,CAAC;AAEnE,QAAA,MAAM,kBAAkB,KAA0C,CAAC;AAEnE,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
|
|
3
|
-
const Collapsible = CollapsiblePrimitive.Root;
|
|
4
|
-
const CollapsibleTrigger = CollapsiblePrimitive.CollapsibleTrigger;
|
|
5
|
-
const CollapsibleContent = CollapsiblePrimitive.CollapsibleContent;
|
|
6
|
-
export { Collapsible, CollapsibleTrigger, CollapsibleContent };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
3
|
-
declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
-
export { Separator };
|
|
5
|
-
//# sourceMappingURL=divider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"divider.d.ts","sourceRoot":"","sources":["../../src/components-core/divider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAiBhE,QAAA,MAAM,SAAS,6JAab,CAAC;AAIH,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
5
|
-
import styled from 'styled-components';
|
|
6
|
-
import { useDesign } from '..';
|
|
7
|
-
const StyledSeparator = styled(SeparatorPrimitive.Root) `
|
|
8
|
-
flex-shrink: 0;
|
|
9
|
-
background-color: ${props => props.$color};
|
|
10
|
-
|
|
11
|
-
${(props) => props.$orientation === 'horizontal'
|
|
12
|
-
? 'height: 1px; width: 100%;'
|
|
13
|
-
: 'height: 100%; width: 1px;'}
|
|
14
|
-
`;
|
|
15
|
-
const Separator = React.forwardRef(({ orientation = 'horizontal', decorative = true, ...props }, ref) => {
|
|
16
|
-
const { colors } = useDesign();
|
|
17
|
-
return _jsx(StyledSeparator, { ref: ref, decorative: decorative, "$orientation": orientation, "$color": colors.neutralColor, ...props });
|
|
18
|
-
});
|
|
19
|
-
Separator.displayName = 'Separator';
|
|
20
|
-
export { Separator };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../src/components-core-joy/card.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAG/C,wBAAgB,IAAI,CAAC,KAAK,EAAG,SAAS,2CAOrC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { Card as JoyCard, CardContent as JoyCardContent } from '@mui/joy';
|
|
4
|
-
export function Card(props) {
|
|
5
|
-
const { color, size, ref, ...validProps } = props;
|
|
6
|
-
return _jsx(JoyCard, { ...validProps, children: _jsx(JoyCardContent, { children: props.children }) });
|
|
7
|
-
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export declare const Separator: React.ForwardRefExoticComponent<Omit<Omit<Omit<import("@radix-ui/react-separator").SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLHRElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3
|
-
//# sourceMappingURL=divider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"divider.d.ts","sourceRoot":"","sources":["../../src/components-core-joy/divider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,SAAS,mRASpB,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import React from "react";
|
|
4
|
-
import { Separator as JoySeparator } from '@mui/joy';
|
|
5
|
-
export const Separator = React.forwardRef(({ orientation, ref: _, ...validProps }, ref) => {
|
|
6
|
-
return _jsx(JoySeparator, { ...validProps, orientation: orientation });
|
|
7
|
-
});
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react/experimental" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
export default function CardFrame({ children, fullPage }: {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
fullPage?: boolean;
|
|
6
|
-
}): string | number | boolean | Iterable<React.ReactNode> | Promise<React.AwaitedReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
7
|
-
//# sourceMappingURL=card-frame.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"card-frame.d.ts","sourceRoot":"","sources":["../../src/elements/card-frame.tsx"],"names":[],"mappings":";AAGA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAChC,QAAQ,EACR,QAAa,EACd,EAAE;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,wJA4BA"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { Container } from "@stackframe/stack-ui";
|
|
4
|
-
import { useEffect, useState } from "react";
|
|
5
|
-
export default function CardFrame({ children, fullPage = true }) {
|
|
6
|
-
const [hasNoParent, setHasNoParent] = useState(false);
|
|
7
|
-
useEffect(() => {
|
|
8
|
-
const component = document.getElementById('stack-card-frame');
|
|
9
|
-
setHasNoParent(!component?.parentElement ||
|
|
10
|
-
component?.parentElement === document.body ||
|
|
11
|
-
component?.parentElement === document.documentElement);
|
|
12
|
-
}, []);
|
|
13
|
-
if (fullPage) {
|
|
14
|
-
return (_jsx("div", { id: 'stack-card-frame', style: {
|
|
15
|
-
height: hasNoParent ? '100vh' : '100%',
|
|
16
|
-
display: 'flex',
|
|
17
|
-
alignItems: 'center',
|
|
18
|
-
justifyContent: 'center'
|
|
19
|
-
}, children: _jsx(Container, { size: 360, children: children }) }));
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
return children;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"card-header.d.ts","sourceRoot":"","sources":["../../src/elements/card-header.tsx"],"names":[],"mappings":";AAEA,MAAM,CAAC,OAAO,UAAU,UAAU,CAChC,EAAE,QAAQ,EAAE,KAAK,EAAE,EACnB;IAAE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,2CAQ9C"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Text } from "@stackframe/stack-ui";
|
|
3
|
-
export default function CardHeader({ children, title }) {
|
|
4
|
-
return (_jsxs("div", { style: { textAlign: 'center', marginBottom: '24px' }, children: [_jsx(Text, { size: "xl", as: 'h2', style: { marginBottom: '5px' }, children: title }), children] }));
|
|
5
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"credential-sign-in.d.ts","sourceRoot":"","sources":["../../src/elements/credential-sign-in.tsx"],"names":[],"mappings":"AAUA,MAAM,CAAC,OAAO,UAAU,gBAAgB,4CAkFvC"}
|