@marinoscar/platform-web 0.1.0-next.8 → 0.1.0-next.9
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 +10 -0
- package/dist/ai/ui/user/AccountSignInProviderCard.d.ts +13 -3
- package/dist/ai/ui/user/AccountSignInProviderCard.d.ts.map +1 -1
- package/dist/ai/ui/user/AccountSignInProviderCard.js +7 -4
- package/dist/ai/ui/user/AccountSignInProviderCard.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @marinoscar/platform-web
|
|
2
2
|
|
|
3
|
+
## 0.1.0-next.9
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 35750d8: `AccountSignInProviderCard` gains a switchless mode (#1006): `onEnabledChange` is now optional, and when a host omits it (because it chooses one provider among several elsewhere) the card renders no enable switch and treats `enabled` as the host's decision. `AccountSignInConsent` gains `onDecline?: () => Promise<void>`, which the consent dialog's **Not now** runs instead of the default `onEnabledChange(false)`, with the same busy and error handling; when neither is given, **Not now** is not rendered. Existing callers that pass `onEnabledChange` see no change.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- @marinoscar/platform-contract@0.1.0-next.9
|
|
12
|
+
|
|
3
13
|
## 0.1.0-next.8
|
|
4
14
|
|
|
5
15
|
### Minor Changes
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
*
|
|
11
11
|
* State machine (accessible names are part of the contract):
|
|
12
12
|
* - disabled: only the title, description and the `Enable {name}` switch.
|
|
13
|
+
* - switchless (no `onEnabledChange`): no switch; the host decides `enabled`.
|
|
13
14
|
* - enabled, consent required and not yet given: a blocking dialog; the
|
|
14
15
|
* sign-in button does not render until the user agrees.
|
|
15
16
|
* - consented, signed out: `Sign in with {name}`; disabled, with the reason
|
|
@@ -52,6 +53,11 @@ export interface AccountSignInConsent {
|
|
|
52
53
|
onAccept: () => Promise<void>;
|
|
53
54
|
/** When given, a signed-in user can withdraw consent. */
|
|
54
55
|
onRevoke?: () => Promise<void>;
|
|
56
|
+
/**
|
|
57
|
+
* What **Not now** does; default `onEnabledChange(false)`. A host without
|
|
58
|
+
* `onEnabledChange` passes it, for example to go back to its previous provider.
|
|
59
|
+
*/
|
|
60
|
+
onDecline?: () => Promise<void>;
|
|
55
61
|
}
|
|
56
62
|
/**
|
|
57
63
|
* Props of {@link AccountSignInProviderCard}.
|
|
@@ -72,8 +78,12 @@ export interface AccountSignInProviderCardProps {
|
|
|
72
78
|
};
|
|
73
79
|
/** The user has switched this provider on. */
|
|
74
80
|
enabled: boolean;
|
|
75
|
-
/**
|
|
76
|
-
|
|
81
|
+
/**
|
|
82
|
+
* Persist the on/off switch. Omit it when the host decides elsewhere whether
|
|
83
|
+
* this provider is used (for example a choice of one provider among several):
|
|
84
|
+
* the card then renders no switch and `enabled` is the host's. Rejects on failure.
|
|
85
|
+
*/
|
|
86
|
+
onEnabledChange?: (enabled: boolean) => Promise<void>;
|
|
77
87
|
/** Consent gate; omit when the provider needs none. */
|
|
78
88
|
consent?: AccountSignInConsent;
|
|
79
89
|
/** The current sign-in state. */
|
|
@@ -119,7 +129,7 @@ export interface AccountSignInProviderCardProps {
|
|
|
119
129
|
}
|
|
120
130
|
/**
|
|
121
131
|
* A settings card for a provider that signs in with the user's own account
|
|
122
|
-
* instead of an API key: enable switch, optional consent, sign-in state,
|
|
132
|
+
* instead of an API key: optional enable switch, optional consent, sign-in state,
|
|
123
133
|
* capabilities and model choice.
|
|
124
134
|
*
|
|
125
135
|
* @stability experimental
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountSignInProviderCard.d.ts","sourceRoot":"","sources":["../../../../src/ai/ui/user/AccountSignInProviderCard.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"AccountSignInProviderCard.d.ts","sourceRoot":"","sources":["../../../../src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,eAAe,EACf,YAAY,EACZ,MAAM,EACN,KAAK,EACL,aAAa,EACb,KAAK,GACN,EAAE,8BAA8B,+BA8QhC"}
|
|
@@ -11,6 +11,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
11
11
|
*
|
|
12
12
|
* State machine (accessible names are part of the contract):
|
|
13
13
|
* - disabled: only the title, description and the `Enable {name}` switch.
|
|
14
|
+
* - switchless (no `onEnabledChange`): no switch; the host decides `enabled`.
|
|
14
15
|
* - enabled, consent required and not yet given: a blocking dialog; the
|
|
15
16
|
* sign-in button does not render until the user agrees.
|
|
16
17
|
* - consented, signed out: `Sign in with {name}`; disabled, with the reason
|
|
@@ -22,7 +23,7 @@ import { Alert, Box, Button, Card, CardContent, Chip, CircularProgress, Dialog,
|
|
|
22
23
|
import { aiErrorText } from './aiErrorText.js';
|
|
23
24
|
/**
|
|
24
25
|
* A settings card for a provider that signs in with the user's own account
|
|
25
|
-
* instead of an API key: enable switch, optional consent, sign-in state,
|
|
26
|
+
* instead of an API key: optional enable switch, optional consent, sign-in state,
|
|
26
27
|
* capabilities and model choice.
|
|
27
28
|
*
|
|
28
29
|
* @stability experimental
|
|
@@ -61,6 +62,8 @@ export function AccountSignInProviderCard({ provider, enabled, onEnabledChange,
|
|
|
61
62
|
}
|
|
62
63
|
};
|
|
63
64
|
const signIn = () => run('signin', onSignIn, 'Sign-in failed');
|
|
65
|
+
// Not now: the host's decline, else switching the provider off; neither hides it.
|
|
66
|
+
const decline = consent?.onDecline ?? (onEnabledChange ? () => onEnabledChange(false) : undefined);
|
|
64
67
|
const retry = () => {
|
|
65
68
|
if (onRefreshStatus) {
|
|
66
69
|
void run('refresh', onRefreshStatus, 'Could not check status');
|
|
@@ -74,14 +77,14 @@ export function AccountSignInProviderCard({ provider, enabled, onEnabledChange,
|
|
|
74
77
|
void signIn();
|
|
75
78
|
}
|
|
76
79
|
};
|
|
77
|
-
return (_jsxs(Card, { component: "section", "aria-label": `${name} sign-in`, children: [_jsx(CardContent, { children: _jsxs(Stack, { spacing: 2, children: [_jsxs(Stack, { direction: "row", spacing: 2, sx: { alignItems: 'flex-start', justifyContent: 'space-between' }, children: [_jsxs(Stack, { direction: "row", spacing: 1.5, sx: { alignItems: 'flex-start', minWidth: 0 }, children: [provider.icon ? _jsx(Box, { sx: { display: 'flex', pt: 0.5 }, children: provider.icon }) : null, _jsxs(Box, { sx: { minWidth: 0 }, children: [_jsx(Typography, { id: titleId, variant: "h6", component: "h2", gutterBottom: true, children: name }), provider.description ? (_jsx(Typography, { variant: "body2", color: "text.secondary", component: "div", children: provider.description })) : null] })] }), _jsx(FormControlLabel, { sx: { mr: 0, flexShrink: 0 }, label: "", control: _jsx(Switch, { checked: enabled, disabled: busy === 'enable', onChange: (e) => {
|
|
80
|
+
return (_jsxs(Card, { component: "section", "aria-label": `${name} sign-in`, children: [_jsx(CardContent, { children: _jsxs(Stack, { spacing: 2, children: [_jsxs(Stack, { direction: "row", spacing: 2, sx: { alignItems: 'flex-start', justifyContent: 'space-between' }, children: [_jsxs(Stack, { direction: "row", spacing: 1.5, sx: { alignItems: 'flex-start', minWidth: 0 }, children: [provider.icon ? _jsx(Box, { sx: { display: 'flex', pt: 0.5 }, children: provider.icon }) : null, _jsxs(Box, { sx: { minWidth: 0 }, children: [_jsx(Typography, { id: titleId, variant: "h6", component: "h2", gutterBottom: true, children: name }), provider.description ? (_jsx(Typography, { variant: "body2", color: "text.secondary", component: "div", children: provider.description })) : null] })] }), onEnabledChange ? (_jsx(FormControlLabel, { sx: { mr: 0, flexShrink: 0 }, label: "", control: _jsx(Switch, { checked: enabled, disabled: busy === 'enable', onChange: (e) => {
|
|
78
81
|
const next = e.target.checked;
|
|
79
82
|
void run('enable', () => onEnabledChange(next), `Could not update ${name}`);
|
|
80
|
-
}, slotProps: { input: { 'aria-label': `Enable ${name}` } } }) })] }), ready ? (_jsxs(_Fragment, { children: [errorText ? (_jsx(Alert, { severity: "error", action: _jsx(Button, { color: "inherit", size: "small", onClick: retry, disabled: busy !== null, children: "Try again" }), children: errorText })) : null, status.checking ? (_jsxs(Stack, { direction: "row", spacing: 1, sx: { alignItems: 'center' }, children: [_jsx(CircularProgress, { size: 16, "aria-hidden": "true" }), _jsx(Typography, { variant: "body2", color: "text.secondary", children: "Checking status\u2026" })] })) : null, status.signedIn ? (_jsxs(_Fragment, { children: [_jsx(Box, { children: _jsx(Chip, { color: "success", size: "small", label: status.login ? `Signed in as ${status.login}` : 'Signed in' }) }), models && models.length > 0 ? (_jsxs(FormControl, { size: "small", fullWidth: true, sx: { maxWidth: 360 }, children: [_jsx(InputLabel, { id: `account-signin-${provider.id}-model-label`, children: "Model" }), _jsx(Select, { labelId: `account-signin-${provider.id}-model-label`, label: "Model", value: model ?? '', disabled: busy === 'model', onChange: (e) => {
|
|
83
|
+
}, slotProps: { input: { 'aria-label': `Enable ${name}` } } }) })) : null] }), ready ? (_jsxs(_Fragment, { children: [errorText ? (_jsx(Alert, { severity: "error", action: _jsx(Button, { color: "inherit", size: "small", onClick: retry, disabled: busy !== null, children: "Try again" }), children: errorText })) : null, status.checking ? (_jsxs(Stack, { direction: "row", spacing: 1, sx: { alignItems: 'center' }, children: [_jsx(CircularProgress, { size: 16, "aria-hidden": "true" }), _jsx(Typography, { variant: "body2", color: "text.secondary", children: "Checking status\u2026" })] })) : null, status.signedIn ? (_jsxs(_Fragment, { children: [_jsx(Box, { children: _jsx(Chip, { color: "success", size: "small", label: status.login ? `Signed in as ${status.login}` : 'Signed in' }) }), models && models.length > 0 ? (_jsxs(FormControl, { size: "small", fullWidth: true, sx: { maxWidth: 360 }, children: [_jsx(InputLabel, { id: `account-signin-${provider.id}-model-label`, children: "Model" }), _jsx(Select, { labelId: `account-signin-${provider.id}-model-label`, label: "Model", value: model ?? '', disabled: busy === 'model', onChange: (e) => {
|
|
81
84
|
const id = String(e.target.value);
|
|
82
85
|
if (onModelChange) {
|
|
83
86
|
void run('model', () => onModelChange(id), 'Could not change the model');
|
|
84
87
|
}
|
|
85
|
-
}, children: models.map((m) => (_jsx(MenuItem, { value: m.id, children: m.label }, m.id))) })] })) : null, capabilities && capabilities.length > 0 ? (_jsx(List, { dense: true, disablePadding: true, "aria-label": `${name} capabilities`, children: capabilities.map((c) => (_jsx(ListItem, { disableGutters: true, secondaryAction: _jsx(Chip, { size: "small", variant: "outlined", color: c.available ? 'success' : 'default', label: c.available ? 'Available' : 'Not available' }), children: _jsx(ListItemText, { primary: c.label, secondary: c.note }) }, c.label))) })) : null, _jsxs(Stack, { direction: "row", spacing: 1, useFlexGap: true, sx: { flexWrap: 'wrap' }, children: [_jsx(Button, { variant: "outlined", disabled: busy !== null, startIcon: busy === 'signout' ? _jsx(CircularProgress, { size: 16 }) : undefined, onClick: () => void run('signout', onSignOut, 'Sign-out failed'), children: busy === 'signout' ? 'Signing out…' : 'Sign out' }), onRefreshStatus ? (_jsx(Button, { disabled: busy !== null || !!status.checking, onClick: () => void run('refresh', onRefreshStatus, 'Could not check status'), children: "Check status" })) : null, consent?.onRevoke ? (_jsx(Button, { disabled: busy !== null, onClick: () => void run('revoke', consent.onRevoke, 'Could not withdraw consent'), children: "Withdraw consent" })) : null] })] })) : (_jsxs(_Fragment, { children: [_jsxs(Stack, { direction: "row", spacing: 1, useFlexGap: true, sx: { flexWrap: 'wrap' }, children: [_jsx(Button, { variant: "contained", disabled: busy !== null || signInBlocked, "aria-describedby": signInBlocked ? signInUnavailableId : undefined, startIcon: busy === 'signin' ? _jsx(CircularProgress, { size: 16, color: "inherit" }) : undefined, onClick: () => void signIn(), children: busy === 'signin' ? 'Signing in…' : `Sign in with ${name}` }), onRefreshStatus ? (_jsx(Button, { disabled: busy !== null || !!status.checking, onClick: () => void run('refresh', onRefreshStatus, 'Could not check status'), children: "Check status" })) : null, consent?.onRevoke && consent.required && consent.acceptedAt ? (_jsx(Button, { disabled: busy !== null, onClick: () => void run('revoke', consent.onRevoke, 'Could not withdraw consent'), children: "Withdraw consent" })) : null] }), signInBlocked ? (_jsx(Typography, { id: signInUnavailableId, variant: "body2", color: "text.secondary", component: "div", children: signInUnavailableReason })) : null] })), slots?.footer ? _jsx(Box, { children: slots.footer }) : null] })) : null] }) }), consentPending && consent ? (_jsxs(Dialog, { open: true, "aria-labelledby": consentTitleId, maxWidth: "sm", fullWidth: true, children: [_jsx(DialogTitle, { id: consentTitleId, children: consent.title }), _jsxs(DialogContent, { children: [_jsx(Typography, { variant: "body2", component: "div", children: consent.body }), errorText ? (_jsx(Alert, { severity: "error", sx: { mt: 2 }, children: errorText })) : null] }), _jsxs(DialogActions, { children: [_jsx(Button, { disabled: busy !== null, onClick: () => void run('enable',
|
|
88
|
+
}, children: models.map((m) => (_jsx(MenuItem, { value: m.id, children: m.label }, m.id))) })] })) : null, capabilities && capabilities.length > 0 ? (_jsx(List, { dense: true, disablePadding: true, "aria-label": `${name} capabilities`, children: capabilities.map((c) => (_jsx(ListItem, { disableGutters: true, secondaryAction: _jsx(Chip, { size: "small", variant: "outlined", color: c.available ? 'success' : 'default', label: c.available ? 'Available' : 'Not available' }), children: _jsx(ListItemText, { primary: c.label, secondary: c.note }) }, c.label))) })) : null, _jsxs(Stack, { direction: "row", spacing: 1, useFlexGap: true, sx: { flexWrap: 'wrap' }, children: [_jsx(Button, { variant: "outlined", disabled: busy !== null, startIcon: busy === 'signout' ? _jsx(CircularProgress, { size: 16 }) : undefined, onClick: () => void run('signout', onSignOut, 'Sign-out failed'), children: busy === 'signout' ? 'Signing out…' : 'Sign out' }), onRefreshStatus ? (_jsx(Button, { disabled: busy !== null || !!status.checking, onClick: () => void run('refresh', onRefreshStatus, 'Could not check status'), children: "Check status" })) : null, consent?.onRevoke ? (_jsx(Button, { disabled: busy !== null, onClick: () => void run('revoke', consent.onRevoke, 'Could not withdraw consent'), children: "Withdraw consent" })) : null] })] })) : (_jsxs(_Fragment, { children: [_jsxs(Stack, { direction: "row", spacing: 1, useFlexGap: true, sx: { flexWrap: 'wrap' }, children: [_jsx(Button, { variant: "contained", disabled: busy !== null || signInBlocked, "aria-describedby": signInBlocked ? signInUnavailableId : undefined, startIcon: busy === 'signin' ? _jsx(CircularProgress, { size: 16, color: "inherit" }) : undefined, onClick: () => void signIn(), children: busy === 'signin' ? 'Signing in…' : `Sign in with ${name}` }), onRefreshStatus ? (_jsx(Button, { disabled: busy !== null || !!status.checking, onClick: () => void run('refresh', onRefreshStatus, 'Could not check status'), children: "Check status" })) : null, consent?.onRevoke && consent.required && consent.acceptedAt ? (_jsx(Button, { disabled: busy !== null, onClick: () => void run('revoke', consent.onRevoke, 'Could not withdraw consent'), children: "Withdraw consent" })) : null] }), signInBlocked ? (_jsx(Typography, { id: signInUnavailableId, variant: "body2", color: "text.secondary", component: "div", children: signInUnavailableReason })) : null] })), slots?.footer ? _jsx(Box, { children: slots.footer }) : null] })) : null] }) }), consentPending && consent ? (_jsxs(Dialog, { open: true, "aria-labelledby": consentTitleId, maxWidth: "sm", fullWidth: true, children: [_jsx(DialogTitle, { id: consentTitleId, children: consent.title }), _jsxs(DialogContent, { children: [_jsx(Typography, { variant: "body2", component: "div", children: consent.body }), errorText ? (_jsx(Alert, { severity: "error", sx: { mt: 2 }, children: errorText })) : null] }), _jsxs(DialogActions, { children: [decline ? (_jsx(Button, { disabled: busy !== null, onClick: () => void run('enable', decline, `Could not update ${name}`), children: "Not now" })) : null, _jsx(Button, { variant: "contained", disabled: busy !== null, onClick: () => void run('accept', consent.onAccept, 'Could not record consent'), children: consent.acceptLabel ?? 'I agree' })] })] })) : null] }));
|
|
86
89
|
}
|
|
87
90
|
//# sourceMappingURL=AccountSignInProviderCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountSignInProviderCard.js","sourceRoot":"","sources":["../../../../src/ai/ui/user/AccountSignInProviderCard.tsx"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"AccountSignInProviderCard.js","sourceRoot":"","sources":["../../../../src/ai/ui/user/AccountSignInProviderCard.tsx"],"names":[],"mappings":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K,IAAC,QAAQ,EAAC,OAAO,EAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,YAClC,SAAS,GACJ,CACT,CAAC,CAAC,CAAC,IAAI,IACM,EAChB,MAAC,aAAa,eACX,OAAO,CAAC,CAAC,CAAC,CACT,KAAC,MAAM,IACL,QAAQ,EAAE,IAAI,KAAK,IAAI,EACvB,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,oBAAoB,IAAI,EAAE,CAAC,wBAG/D,CACV,CAAC,CAAC,CAAC,IAAI,EACR,KAAC,MAAM,IACL,OAAO,EAAC,WAAW,EACnB,QAAQ,EAAE,IAAI,KAAK,IAAI,EACvB,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAAE,0BAA0B,CAAC,YAE9E,OAAO,CAAC,WAAW,IAAI,SAAS,GAC1B,IACK,IACT,CACV,CAAC,CAAC,CAAC,IAAI,IACH,CACR,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marinoscar/platform-web",
|
|
3
|
-
"version": "0.1.0-next.
|
|
3
|
+
"version": "0.1.0-next.9",
|
|
4
4
|
"description": "React pages, components and hooks of the platform (ESM).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -282,7 +282,7 @@
|
|
|
282
282
|
"test:run": "vitest run"
|
|
283
283
|
},
|
|
284
284
|
"dependencies": {
|
|
285
|
-
"@marinoscar/platform-contract": "0.1.0-next.
|
|
285
|
+
"@marinoscar/platform-contract": "0.1.0-next.9"
|
|
286
286
|
},
|
|
287
287
|
"peerDependencies": {
|
|
288
288
|
"@codemirror/lang-sql": "^6.10.0",
|