@molecule/app-auth-modal-react 4.0.4 → 4.0.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/README.md +3 -3
- package/dist/AuthModal.d.ts +1 -1
- package/dist/AuthModal.d.ts.map +1 -1
- package/dist/AuthModal.js +3 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
|
|
|
3
3
|
Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
|
|
4
4
|
Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
|
|
5
5
|
To change this document, edit the module-level JSDoc in src/index.ts.
|
|
6
|
-
Generated: 2026-11-
|
|
6
|
+
Generated: 2026-11-24T08:56:53.985Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/app-auth-modal-react
|
|
@@ -171,7 +171,7 @@ function AuthModal({
|
|
|
171
171
|
oauthConfig,
|
|
172
172
|
onBeforeAuth,
|
|
173
173
|
onAuthenticated,
|
|
174
|
-
captchaSlot,
|
|
174
|
+
captchaSlot: captchaSlotProp,
|
|
175
175
|
captchaSolved = true,
|
|
176
176
|
}: AuthModalProps): JSX.Element
|
|
177
177
|
```
|
|
@@ -267,7 +267,7 @@ Peer dependencies:
|
|
|
267
267
|
- `@molecule/app-auth-shell-react` ^4.0.0
|
|
268
268
|
- `@molecule/app-i18n` ^1.0.1
|
|
269
269
|
- `@molecule/app-oauth-buttons-react` ^4.0.0
|
|
270
|
-
- `@molecule/app-react` ^4.
|
|
270
|
+
- `@molecule/app-react` ^4.13.0
|
|
271
271
|
- `@molecule/app-ui` ^1.0.1
|
|
272
272
|
- `@molecule/app-ui-react` ^4.0.0
|
|
273
273
|
- `react` ^18.0.0 || ^19.0.0
|
package/dist/AuthModal.d.ts
CHANGED
|
@@ -72,7 +72,7 @@ export interface AuthModalProps {
|
|
|
72
72
|
* @param props - {@link AuthModalProps}.
|
|
73
73
|
* @returns The modal element (renders nothing when closed).
|
|
74
74
|
*/
|
|
75
|
-
export declare function AuthModal({ open, onClose, initialMode, oauthConfig, onBeforeAuth, onAuthenticated, captchaSlot, captchaSolved, }: AuthModalProps): JSX.Element;
|
|
75
|
+
export declare function AuthModal({ open, onClose, initialMode, oauthConfig, onBeforeAuth, onAuthenticated, captchaSlot: captchaSlotProp, captchaSolved, }: AuthModalProps): JSX.Element;
|
|
76
76
|
export declare namespace AuthModal {
|
|
77
77
|
var displayName: string;
|
|
78
78
|
}
|
package/dist/AuthModal.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthModal.d.ts","sourceRoot":"","sources":["../src/AuthModal.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,KAAK,GAAG,EAAE,KAAK,SAAS,EAAqD,MAAM,OAAO,CAAA;AAYnG,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"AuthModal.d.ts","sourceRoot":"","sources":["../src/AuthModal.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,KAAK,GAAG,EAAE,KAAK,SAAS,EAAqD,MAAM,OAAO,CAAA;AAYnG,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAK9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAqEvD,mCAAmC;AACnC,MAAM,WAAW,cAAc;IAC7B,iCAAiC;IACjC,IAAI,EAAE,OAAO,CAAA;IACb,4DAA4D;IAC5D,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,qDAAqD;IACrD,WAAW,CAAC,EAAE,aAAa,CAAA;IAC3B;;;OAGG;IACH,WAAW,EAAE,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAA;IAC3C;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,IAAI,CAAA;IACzB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAC5C;;;;;;;;;;;;;;OAcG;IACH,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,EACxB,IAAI,EACJ,OAAO,EACP,WAAsB,EACtB,WAAW,EACX,YAAY,EACZ,eAAe,EACf,WAAW,EAAE,eAAe,EAC5B,aAAoB,GACrB,EAAE,cAAc,GAAG,GAAG,CAAC,OAAO,CAmR9B;yBA5Re,SAAS"}
|
package/dist/AuthModal.js
CHANGED
|
@@ -22,6 +22,7 @@ import { useAuthFormState } from '@molecule/app-auth-shell-react';
|
|
|
22
22
|
import { OAuthButtons, OAuthDivider } from '@molecule/app-oauth-buttons-react';
|
|
23
23
|
import { useAuth, useAuthClient, useI18nError, useLogin, useSignup, useTranslation, } from '@molecule/app-react';
|
|
24
24
|
import { useOAuth } from '@molecule/app-react';
|
|
25
|
+
import { slot } from '@molecule/app-react/render';
|
|
25
26
|
import { getClassMap } from '@molecule/app-ui';
|
|
26
27
|
import { Button, Icon, Modal } from '@molecule/app-ui-react';
|
|
27
28
|
/**
|
|
@@ -86,7 +87,8 @@ function useTouchFirstViewport() {
|
|
|
86
87
|
* @param props - {@link AuthModalProps}.
|
|
87
88
|
* @returns The modal element (renders nothing when closed).
|
|
88
89
|
*/
|
|
89
|
-
export function AuthModal({ open, onClose, initialMode = 'signup', oauthConfig, onBeforeAuth, onAuthenticated, captchaSlot, captchaSolved = true, }) {
|
|
90
|
+
export function AuthModal({ open, onClose, initialMode = 'signup', oauthConfig, onBeforeAuth, onAuthenticated, captchaSlot: captchaSlotProp, captchaSolved = true, }) {
|
|
91
|
+
const captchaSlot = slot(captchaSlotProp);
|
|
90
92
|
const { t } = useTranslation();
|
|
91
93
|
const cm = getClassMap();
|
|
92
94
|
const isTouchFirst = useTouchFirstViewport();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/app-auth-modal-react",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.5",
|
|
4
4
|
"description": "In-app login / signup modal + click-interceptor + popup OAuth — authenticate and upgrade without ever navigating away or losing work",
|
|
5
5
|
"homepage": "https://www.molecule.dev/packages/app-auth-modal-react",
|
|
6
6
|
"type": "module",
|
|
@@ -40,18 +40,18 @@
|
|
|
40
40
|
"@molecule/app-auth-shell-react": "^4.0.0",
|
|
41
41
|
"@molecule/app-i18n": "^1.0.1",
|
|
42
42
|
"@molecule/app-oauth-buttons-react": "^4.0.0",
|
|
43
|
-
"@molecule/app-react": "^4.
|
|
43
|
+
"@molecule/app-react": "^4.13.0",
|
|
44
44
|
"@molecule/app-ui": "^1.0.1",
|
|
45
45
|
"@molecule/app-ui-react": "^4.0.0",
|
|
46
46
|
"react": "^18.0.0 || ^19.0.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@molecule/app-auth-shell-react": "4.1.
|
|
49
|
+
"@molecule/app-auth-shell-react": "4.1.1",
|
|
50
50
|
"@molecule/app-i18n": "1.2.2",
|
|
51
51
|
"@molecule/app-oauth-buttons-react": "4.1.0",
|
|
52
|
-
"@molecule/app-react": "4.
|
|
52
|
+
"@molecule/app-react": "4.13.0",
|
|
53
53
|
"@molecule/app-ui": "1.5.0",
|
|
54
|
-
"@molecule/app-ui-react": "4.3.
|
|
54
|
+
"@molecule/app-ui-react": "4.3.2",
|
|
55
55
|
"@testing-library/react": "16.3.3",
|
|
56
56
|
"@types/node": "26.6.5",
|
|
57
57
|
"@types/react": "19.3.0",
|