@stackframe/stack 2.4.25 → 2.4.27
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/CHANGELOG.md +17 -0
- package/dist/components-page/oauth-callback.js +1 -2
- package/dist/components-page/oauth-callback.js.map +1 -1
- package/dist/esm/components-page/oauth-callback.js +1 -2
- package/dist/esm/components-page/oauth-callback.js.map +1 -1
- package/dist/esm/global.d.js +1 -0
- package/dist/esm/global.d.js.map +1 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/auth.js +1 -2
- package/dist/esm/lib/auth.js.map +1 -1
- package/dist/esm/lib/cookie.js +2 -2
- package/dist/esm/lib/cookie.js.map +1 -1
- package/dist/esm/lib/stack-app.js +27 -27
- package/dist/esm/lib/stack-app.js.map +1 -1
- package/dist/esm/providers/styled-components-registry.js +1 -2
- package/dist/esm/providers/styled-components-registry.js.map +1 -1
- package/dist/esm/utils/email.js +1 -2
- package/dist/esm/utils/email.js.map +1 -1
- package/dist/global.d.d.mts +2 -0
- package/dist/global.d.d.ts +2 -0
- package/dist/global.d.js +2 -0
- package/dist/global.d.js.map +1 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/auth.js +1 -2
- package/dist/lib/auth.js.map +1 -1
- package/dist/lib/cookie.js +2 -2
- package/dist/lib/cookie.js.map +1 -1
- package/dist/lib/stack-app.js +25 -25
- package/dist/lib/stack-app.js.map +1 -1
- package/dist/providers/styled-components-registry.js +1 -2
- package/dist/providers/styled-components-registry.js.map +1 -1
- package/dist/utils/email.js +1 -2
- package/dist/utils/email.js.map +1 -1
- package/package.json +7 -5
|
@@ -39,8 +39,7 @@ function StyledComponentsRegistry({
|
|
|
39
39
|
styledComponentsStyleSheet.instance.clearTag();
|
|
40
40
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: styles });
|
|
41
41
|
});
|
|
42
|
-
if ((0, import_env.isBrowserLike)())
|
|
43
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children });
|
|
42
|
+
if ((0, import_env.isBrowserLike)()) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children });
|
|
44
43
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled_components.StyleSheetManager, { sheet: styledComponentsStyleSheet.instance, children });
|
|
45
44
|
}
|
|
46
45
|
//# sourceMappingURL=styled-components-registry.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/providers/styled-components-registry.tsx"],"sourcesContent":["'use client';\n \nimport React, { useState } from 'react';\nimport { useServerInsertedHTML } from 'next/navigation';\nimport { ServerStyleSheet, StyleSheetManager } from 'styled-components';\nimport { isBrowserLike } from '@stackframe/stack-shared/dist/utils/env';\n \nexport default function StyledComponentsRegistry({\n children,\n}: {\n children: React.ReactNode,\n}) {\n // Only create stylesheet once with lazy initial state\n // x-ref: https://reactjs.org/docs/hooks-reference.html#lazy-initial-state\n const [styledComponentsStyleSheet] = useState(() => new ServerStyleSheet());\n \n useServerInsertedHTML(() => {\n const styles = styledComponentsStyleSheet.getStyleElement();\n styledComponentsStyleSheet.instance.clearTag();\n return <>{styles}</>;\n });\n \n if (isBrowserLike()) return <>{children}</>;\n \n return (\n <StyleSheetManager sheet={styledComponentsStyleSheet.instance}>\n {children}\n </StyleSheetManager>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,mBAAgC;AAChC,wBAAsC;AACtC,+BAAoD;AACpD,iBAA8B;AAcnB;AAZI,SAAR,yBAA0C;AAAA,EAC/C;AACF,GAEG;AAGD,QAAM,CAAC,0BAA0B,QAAI,uBAAS,MAAM,IAAI,0CAAiB,CAAC;AAE1E,+CAAsB,MAAM;AAC1B,UAAM,SAAS,2BAA2B,gBAAgB;AAC1D,+BAA2B,SAAS,SAAS;AAC7C,WAAO,2EAAG,kBAAO;AAAA,EACnB,CAAC;AAED,UAAI,0BAAc
|
|
1
|
+
{"version":3,"sources":["../../src/providers/styled-components-registry.tsx"],"sourcesContent":["'use client';\n \nimport React, { useState } from 'react';\nimport { useServerInsertedHTML } from 'next/navigation';\nimport { ServerStyleSheet, StyleSheetManager } from 'styled-components';\nimport { isBrowserLike } from '@stackframe/stack-shared/dist/utils/env';\n \nexport default function StyledComponentsRegistry({\n children,\n}: {\n children: React.ReactNode,\n}) {\n // Only create stylesheet once with lazy initial state\n // x-ref: https://reactjs.org/docs/hooks-reference.html#lazy-initial-state\n const [styledComponentsStyleSheet] = useState(() => new ServerStyleSheet());\n \n useServerInsertedHTML(() => {\n const styles = styledComponentsStyleSheet.getStyleElement();\n styledComponentsStyleSheet.instance.clearTag();\n return <>{styles}</>;\n });\n \n if (isBrowserLike()) return <>{children}</>;\n \n return (\n <StyleSheetManager sheet={styledComponentsStyleSheet.instance}>\n {children}\n </StyleSheetManager>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,mBAAgC;AAChC,wBAAsC;AACtC,+BAAoD;AACpD,iBAA8B;AAcnB;AAZI,SAAR,yBAA0C;AAAA,EAC/C;AACF,GAEG;AAGD,QAAM,CAAC,0BAA0B,QAAI,uBAAS,MAAM,IAAI,0CAAiB,CAAC;AAE1E,+CAAsB,MAAM;AAC1B,UAAM,SAAS,2BAA2B,gBAAgB;AAC1D,+BAA2B,SAAS,SAAS;AAC7C,WAAO,2EAAG,kBAAO;AAAA,EACnB,CAAC;AAED,UAAI,0BAAc,EAAG,QAAO,2EAAG,UAAS;AAExC,SACE,4CAAC,8CAAkB,OAAO,2BAA2B,UAClD,UACH;AAEJ;","names":[]}
|
package/dist/utils/email.js
CHANGED
|
@@ -35,8 +35,7 @@ __export(email_exports, {
|
|
|
35
35
|
module.exports = __toCommonJS(email_exports);
|
|
36
36
|
var yup = __toESM(require("yup"));
|
|
37
37
|
function validateEmail(email) {
|
|
38
|
-
if (typeof email !== "string")
|
|
39
|
-
throw new Error("Email must be a string");
|
|
38
|
+
if (typeof email !== "string") throw new Error("Email must be a string");
|
|
40
39
|
return yup.string().email().isValidSync(email);
|
|
41
40
|
}
|
|
42
41
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/utils/email.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/utils/email.tsx"],"sourcesContent":["import * as yup from \"yup\";\n\nexport function validateEmail(email: string): boolean {\n if (typeof email !== \"string\") throw new Error(\"Email must be a string\");\n return yup.string().email().isValidSync(email);\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,UAAqB;AAEd,SAAS,cAAc,OAAwB;AACpD,MAAI,OAAO,UAAU
|
|
1
|
+
{"version":3,"sources":["../../src/utils/email.tsx"],"sourcesContent":["import * as yup from \"yup\";\n\nexport function validateEmail(email: string): boolean {\n if (typeof email !== \"string\") throw new Error(\"Email must be a string\");\n return yup.string().email().isValidSync(email);\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,UAAqB;AAEd,SAAS,cAAc,OAAwB;AACpD,MAAI,OAAO,UAAU,SAAU,OAAM,IAAI,MAAM,wBAAwB;AACvE,SAAW,WAAO,EAAE,MAAM,EAAE,YAAY,KAAK;AAC/C;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stackframe/stack",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.27",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -49,13 +49,13 @@
|
|
|
49
49
|
"server-only": "^0.0.1",
|
|
50
50
|
"styled-components": "^6.1.8",
|
|
51
51
|
"yup": "^1.4.0",
|
|
52
|
-
"@stackframe/stack-sc": "2.4.
|
|
53
|
-
"@stackframe/stack-shared": "2.4.
|
|
52
|
+
"@stackframe/stack-sc": "2.4.27",
|
|
53
|
+
"@stackframe/stack-shared": "2.4.27"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"@mui/joy": "^5.0.0-beta.30",
|
|
57
57
|
"next": ">=14.1",
|
|
58
|
-
"react": "
|
|
58
|
+
"react": ">=18.2"
|
|
59
59
|
},
|
|
60
60
|
"peerDependenciesMeta": {
|
|
61
61
|
"@mui/joy": {
|
|
@@ -68,7 +68,9 @@
|
|
|
68
68
|
"@types/js-cookie": "^3.0.6",
|
|
69
69
|
"@types/react": "^18.2.66",
|
|
70
70
|
"esbuild": "^0.20.2",
|
|
71
|
-
"tsup": "^8.0.2"
|
|
71
|
+
"tsup": "^8.0.2",
|
|
72
|
+
"next": "^14.1.0",
|
|
73
|
+
"react": "^18.2.0"
|
|
72
74
|
},
|
|
73
75
|
"scripts": {
|
|
74
76
|
"typecheck": "tsc --noEmit",
|