@sylphx/sdk 0.32.11 → 0.32.17

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.
Files changed (44) hide show
  1. package/README.md +50 -3
  2. package/dist/access.d.ts +12 -2
  3. package/dist/access.js +5 -1
  4. package/dist/access.js.map +1 -1
  5. package/dist/agents.d.ts +5 -1
  6. package/dist/agents.js.map +1 -1
  7. package/dist/artifacts.d.ts +107 -0
  8. package/dist/artifacts.js +111 -0
  9. package/dist/artifacts.js.map +1 -1
  10. package/dist/common.d.ts +1 -1
  11. package/dist/data.d.ts +6 -2
  12. package/dist/data.js +6 -2
  13. package/dist/data.js.map +1 -1
  14. package/dist/ids.d.ts +40 -0
  15. package/dist/ids.js +8 -0
  16. package/dist/ids.js.map +1 -1
  17. package/dist/methods.js +346 -0
  18. package/dist/methods.js.map +1 -1
  19. package/dist/notify.d.ts +1331 -1
  20. package/dist/notify.js +970 -1
  21. package/dist/notify.js.map +1 -1
  22. package/dist/observability.d.ts +1 -1
  23. package/dist/observability.js +1 -1
  24. package/dist/runtime.js +2 -0
  25. package/dist/runtime.js.map +1 -1
  26. package/dist/sandboxes.d.ts +7 -7
  27. package/dist/sandboxes.js +5 -5
  28. package/dist/sign-in/contract.d.ts +46 -0
  29. package/dist/sign-in/contract.js +66 -0
  30. package/dist/sign-in/contract.js.map +1 -0
  31. package/dist/sign-in/form.d.ts +4 -0
  32. package/dist/sign-in/form.js +293 -0
  33. package/dist/sign-in/form.js.map +1 -0
  34. package/dist/sign-in/passkey.d.ts +6 -0
  35. package/dist/sign-in/passkey.js +91 -0
  36. package/dist/sign-in/passkey.js.map +1 -0
  37. package/dist/sign-in/provider-icons.d.ts +44 -0
  38. package/dist/sign-in/provider-icons.js +83 -0
  39. package/dist/sign-in/provider-icons.js.map +1 -0
  40. package/dist/sign-in.css +5 -0
  41. package/dist/sign-in.d.ts +2 -0
  42. package/dist/sign-in.js +4 -0
  43. package/dist/sign-in.js.map +1 -0
  44. package/package.json +23 -4
@@ -0,0 +1,83 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ export function GoogleIcon(props) {
3
+ return (_jsxs("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: [_jsx("path", { d: "M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z", fill: "#4285F4" }), _jsx("path", { d: "M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z", fill: "#34A853" }), _jsx("path", { d: "M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z", fill: "#FBBC05" }), _jsx("path", { d: "M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z", fill: "#EA4335" })] }));
4
+ }
5
+ export function GitHubIcon(props) {
6
+ return (_jsx("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: _jsx("path", { d: "M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z" }) }));
7
+ }
8
+ export function AppleIcon(props) {
9
+ return (_jsx("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: _jsx("path", { d: "M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701" }) }));
10
+ }
11
+ export function DiscordIcon(props) {
12
+ return (_jsx("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: _jsx("path", { d: "M20.317 4.37a19.791 19.791 0 00-4.885-1.515.074.074 0 00-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 00-5.487 0 12.64 12.64 0 00-.617-1.25.077.077 0 00-.079-.037A19.736 19.736 0 003.677 4.37a.07.07 0 00-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 00.031.057 19.9 19.9 0 005.993 3.03.078.078 0 00.084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 00-.041-.106 13.107 13.107 0 01-1.872-.892.077.077 0 01-.008-.128 10.2 10.2 0 00.372-.292.074.074 0 01.077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 01.078.01c.12.098.246.198.373.292a.077.077 0 01-.006.127 12.299 12.299 0 01-1.873.892.077.077 0 00-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 00.084.028 19.839 19.839 0 006.002-3.03.077.077 0 00.032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 00-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z" }) }));
13
+ }
14
+ export function TwitterIcon(props) {
15
+ return (_jsx("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: _jsx("path", { d: "M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z" }) }));
16
+ }
17
+ export const XIcon = TwitterIcon;
18
+ export function LineIcon(props) {
19
+ return (_jsx("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: _jsx("path", { d: "M24 10.304c0-5.369-5.383-9.738-12-9.738-6.616 0-12 4.369-12 9.738 0 4.814 4.269 8.846 10.036 9.608.391.084.922.258 1.057.592.121.303.079.778.039 1.085l-.171 1.027c-.053.303-.242 1.186 1.039.647 1.281-.54 6.911-4.069 9.428-6.967C23.106 14.393 24 12.458 24 10.304z" }) }));
20
+ }
21
+ export function KakaoIcon(props) {
22
+ return (_jsx("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: _jsx("path", { d: "M12 3c-5.799 0-10.5 3.664-10.5 8.185 0 2.857 1.887 5.369 4.748 6.828-.158.572-.572 2.078-.655 2.404-.103.402.148.397.311.288.128-.085 2.037-1.383 2.859-1.944.991.144 2.016.221 3.067.221 5.799 0 10.5-3.664 10.5-8.185S17.799 3 12 3z" }) }));
23
+ }
24
+ export function TelegramIcon(props) {
25
+ return (_jsx("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: _jsx("path", { d: "M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z" }) }));
26
+ }
27
+ export function WeChatIcon(props) {
28
+ return (_jsx("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: _jsx("path", { d: "M8.691 2.188C3.891 2.188 0 5.476 0 9.53c0 2.212 1.17 4.203 3.002 5.55a.59.59 0 0 1 .213.665l-.39 1.48c-.019.07-.048.141-.048.213 0 .163.13.295.29.295a.326.326 0 0 0 .167-.054l1.903-1.114a.864.864 0 0 1 .717-.098 10.16 10.16 0 0 0 2.837.403c.276 0 .543-.027.811-.05-.857-2.578.157-4.972 1.932-6.446 1.703-1.415 3.882-1.98 5.853-1.838-.576-3.583-4.196-6.348-8.596-6.348zM5.785 5.991c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 0 1-1.162 1.178A1.17 1.17 0 0 1 4.623 7.17c0-.651.52-1.18 1.162-1.18zm5.813 0c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 0 1-1.162 1.178 1.17 1.17 0 0 1-1.162-1.178c0-.651.52-1.18 1.162-1.18zm5.34 2.867c-1.797-.052-3.746.512-5.28 1.786-1.72 1.428-2.687 3.72-1.78 6.22.942 2.453 3.666 4.229 6.884 4.229.826 0 1.622-.12 2.361-.336a.722.722 0 0 1 .598.082l1.584.926a.272.272 0 0 0 .14.047c.134 0 .24-.111.24-.247 0-.06-.023-.12-.038-.177l-.327-1.233a.582.582 0 0 1-.023-.156.49.49 0 0 1 .201-.398C23.024 18.48 24 16.82 24 14.98c0-3.21-2.931-5.837-6.656-6.088V8.89c-.135-.01-.27-.027-.407-.032zm-2.53 3.274c.535 0 .969.44.969.982a.976.976 0 0 1-.969.983.976.976 0 0 1-.969-.983c0-.542.434-.982.97-.982zm4.844 0c.535 0 .969.44.969.982a.976.976 0 0 1-.969.983.976.976 0 0 1-.969-.983c0-.542.434-.982.969-.982z" }) }));
29
+ }
30
+ export function MicrosoftIcon(props) {
31
+ return (_jsx("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: _jsx("path", { d: "M0 0h11.377v11.372H0zm12.623 0H24v11.372H12.623zM0 12.623h11.377V24H0zm12.623 0H24V24H12.623" }) }));
32
+ }
33
+ export function FacebookIcon(props) {
34
+ return (_jsx("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: _jsx("path", { d: "M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z" }) }));
35
+ }
36
+ export function LinkedInIcon(props) {
37
+ return (_jsx("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: _jsx("path", { d: "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z" }) }));
38
+ }
39
+ export function TwitchIcon(props) {
40
+ return (_jsx("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: _jsx("path", { d: "M11.571 4.714h1.715v5.143H11.57zm4.715 0H18v5.143h-1.714zM6 0L1.714 4.286v15.428h5.143V24l4.286-4.286h3.428L22.286 12V0zm14.571 11.143l-3.428 3.428h-3.429l-3 3v-3H6.857V1.714h13.714z" }) }));
41
+ }
42
+ export function SpotifyIcon(props) {
43
+ return (_jsx("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: _jsx("path", { d: "M12 0C5.4 0 0 5.4 0 12s5.4 12 12 12 12-5.4 12-12S18.66 0 12 0zm5.521 17.34c-.24.359-.66.48-1.021.24-2.82-1.74-6.36-2.101-10.561-1.141-.418.122-.779-.179-.899-.539-.12-.421.18-.78.54-.9 4.56-1.021 8.52-.6 11.64 1.32.42.18.479.659.301 1.02zm1.44-3.3c-.301.42-.841.6-1.262.3-3.239-1.98-8.159-2.58-11.939-1.38-.479.12-1.02-.12-1.14-.6-.12-.48.12-1.021.6-1.141C9.6 9.9 15 10.561 18.72 12.84c.361.181.54.78.241 1.2zm.12-3.36C15.24 8.4 8.82 8.16 5.16 9.301c-.6.179-1.2-.181-1.38-.721-.18-.601.18-1.2.72-1.381 4.26-1.26 11.28-1.02 15.721 1.621.539.3.719 1.02.419 1.56-.299.421-1.02.599-1.559.3z" }) }));
44
+ }
45
+ export function GenericOAuthProviderIcon(props) {
46
+ return (_jsxs("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "none", ...props, children: [_jsx("rect", { x: "3", y: "3", width: "18", height: "18", rx: "5", fill: "currentColor", opacity: "0.14" }), _jsx("path", { d: "M8.5 12a3.5 3.5 0 017 0 3.5 3.5 0 01-7 0zm-2.25 6.25c.76-2.25 2.87-3.75 5.75-3.75s4.99 1.5 5.75 3.75", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round" })] }));
47
+ }
48
+ export function SlackIcon(props) {
49
+ return _jsx(GenericOAuthProviderIcon, { ...props });
50
+ }
51
+ export function GitLabIcon(props) {
52
+ return _jsx(GenericOAuthProviderIcon, { ...props });
53
+ }
54
+ export function BitbucketIcon(props) {
55
+ return _jsx(GenericOAuthProviderIcon, { ...props });
56
+ }
57
+ export const OAuthIcons = {
58
+ google: GoogleIcon,
59
+ github: GitHubIcon,
60
+ apple: AppleIcon,
61
+ discord: DiscordIcon,
62
+ x: XIcon,
63
+ twitter: TwitterIcon,
64
+ microsoft: MicrosoftIcon,
65
+ facebook: FacebookIcon,
66
+ linkedin: LinkedInIcon,
67
+ line: LineIcon,
68
+ kakao: KakaoIcon,
69
+ telegram: TelegramIcon,
70
+ wechat: WeChatIcon,
71
+ slack: SlackIcon,
72
+ gitlab: GitLabIcon,
73
+ bitbucket: BitbucketIcon,
74
+ twitch: TwitchIcon,
75
+ spotify: SpotifyIcon,
76
+ };
77
+ /** Resolve only known provider IDs; unknown IDs use the neutral provider icon. */
78
+ export function oauthProviderIcon(provider) {
79
+ return Object.hasOwn(OAuthIcons, provider)
80
+ ? OAuthIcons[provider]
81
+ : GenericOAuthProviderIcon;
82
+ }
83
+ //# sourceMappingURL=provider-icons.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider-icons.js","sourceRoot":"","sources":["../../src/sign-in/provider-icons.tsx"],"names":[],"mappings":";AAKA,MAAM,UAAU,UAAU,CAAC,KAAgB;IAC1C,OAAO,CACN,8BAAiB,MAAM,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,cAAc,KAAK,KAAK,aACxE,eACC,CAAC,EAAC,yHAAyH,EAC3H,IAAI,EAAC,SAAS,GACb,EACF,eACC,CAAC,EAAC,uIAAuI,EACzI,IAAI,EAAC,SAAS,GACb,EACF,eACC,CAAC,EAAC,+HAA+H,EACjI,IAAI,EAAC,SAAS,GACb,EACF,eACC,CAAC,EAAC,qIAAqI,EACvI,IAAI,EAAC,SAAS,GACb,IACG,CACN,CAAA;AACF,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,KAAgB;IAC1C,OAAO,CACN,6BAAiB,MAAM,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,cAAc,KAAK,KAAK,YACxE,eAAM,CAAC,EAAC,ypBAAypB,GAAG,GAC/pB,CACN,CAAA;AACF,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,KAAgB;IACzC,OAAO,CACN,6BAAiB,MAAM,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,cAAc,KAAK,KAAK,YACxE,eAAM,CAAC,EAAC,+hBAA+hB,GAAG,GACriB,CACN,CAAA;AACF,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,KAAgB;IAC3C,OAAO,CACN,6BAAiB,MAAM,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,cAAc,KAAK,KAAK,YACxE,eAAM,CAAC,EAAC,6hCAA6hC,GAAG,GACniC,CACN,CAAA;AACF,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,KAAgB;IAC3C,OAAO,CACN,6BAAiB,MAAM,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,cAAc,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C;AAED,MAAM,UAAU,UAAU,CAAC,KAAgB;IAC1C,OAAO,KAAC,wBAAwB,OAAK,KAAK,GAAI,CAAA;AAC/C,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,KAAgB;IAC7C,OAAO,KAAC,wBAAwB,OAAK,KAAK,GAAI,CAAA;AAC/C,CAAC;AAED,MAAM,CAAC,MAAM,UAAU,GAAG;IACzB,MAAM,EAAE,UAAU;IAClB,MAAM,EAAE,UAAU;IAClB,KAAK,EAAE,SAAS;IAChB,OAAO,EAAE,WAAW;IACpB,CAAC,EAAE,KAAK;IACR,OAAO,EAAE,WAAW;IACpB,SAAS,EAAE,aAAa;IACxB,QAAQ,EAAE,YAAY;IACtB,QAAQ,EAAE,YAAY;IACtB,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,SAAS;IAChB,QAAQ,EAAE,YAAY;IACtB,MAAM,EAAE,UAAU;IAClB,KAAK,EAAE,SAAS;IAChB,MAAM,EAAE,UAAU;IAClB,SAAS,EAAE,aAAa;IACxB,MAAM,EAAE,UAAU;IAClB,OAAO,EAAE,WAAW;CACX,CAAA;AAEV,kFAAkF;AAClF,MAAM,UAAU,iBAAiB,CAAC,QAAgB;IACjD,OAAO,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAC;QACzC,CAAC,CAAC,UAAU,CAAC,QAAmC,CAAC;QACjD,CAAC,CAAC,wBAAwB,CAAA;AAC5B,CAAC"}
@@ -0,0 +1,5 @@
1
+ /* @generated by sylphx-gen. Do not edit. */
2
+ /* Shared sign-in form: product themes override these variables, never the flow. */
3
+ .sx-signin{--sx-signin-ink:var(--ink,#162a2c);--sx-signin-muted:var(--muted,#687775);--sx-signin-accent:var(--accent,#176b58);--sx-signin-surface:var(--surface,#fff);color:var(--sx-signin-ink);font-family:inherit;width:100%;max-width:400px;margin:0 auto;text-align:left;box-sizing:border-box}
4
+ .sx-signin *{box-sizing:border-box}.sx-signin h1{font-family:inherit;font-size:clamp(25px,5vw,32px);font-weight:650;letter-spacing:-.035em;line-height:1.2;margin:0 0 12px}.sx-signin__intro{color:var(--sx-signin-muted);font-size:15px;line-height:1.6;margin:0 0 28px}.sx-signin label{display:block;font-size:14px;font-weight:600;margin-bottom:9px}.sx-signin input{font:inherit;color:inherit;border:1px solid #cbd5d1;border-radius:12px;background:var(--sx-signin-surface);padding:14px 16px;width:100%;min-height:52px;outline-offset:3px;font-size:16px;box-shadow:0 1px 2px #162a2c05}.sx-signin input:focus-visible,.sx-signin button:focus-visible,.sx-signin a:focus-visible{outline:2px solid var(--sx-signin-accent);outline-offset:3px}.sx-signin button{font:inherit;cursor:pointer}.sx-signin button:disabled,.sx-signin input:disabled{opacity:.55;cursor:default}.sx-signin__primary{display:block;width:100%;border:0;border-radius:12px;background:var(--sx-signin-accent);color:#fff;font-weight:600;min-height:52px;padding:14px 18px;transition:filter .15s}.sx-signin__primary:hover:not(:disabled){filter:brightness(.92)}.sx-signin__terms{font-size:12px;line-height:1.7;text-align:center;color:var(--sx-signin-muted);margin:14px 8px 0}.sx-signin__terms a{color:var(--sx-signin-ink);text-underline-offset:3px}.sx-signin__providers{display:flex;flex-direction:column;gap:12px}.sx-signin__provider{min-height:52px;display:flex;gap:10px;align-items:center;justify-content:center;border:1px solid #cbd5d1;border-radius:12px;padding:12px 14px;text-decoration:none;color:inherit;background:var(--sx-signin-surface);font-size:14px;font-weight:550}.sx-signin__provider:hover{border-color:var(--sx-signin-accent)}.sx-signin__provider svg{flex-shrink:0}.sx-signin__provider small{font-size:10px;color:var(--sx-signin-muted);border:1px solid #dce3df;border-radius:4px;padding:2px 4px;white-space:nowrap}.sx-signin__divider{display:flex;align-items:center;gap:16px;color:var(--sx-signin-muted);font-size:12px;margin:8px 0 10px}.sx-signin__divider:before,.sx-signin__divider:after{content:"";height:1px;flex:1;background:#dde4df}.sx-signin__link{border:0;background:none;color:var(--sx-signin-ink);text-decoration:underline;text-underline-offset:4px;min-height:44px;font-size:13px;padding:10px 6px}.sx-signin__link:disabled{text-decoration:none}.sx-signin__passkey{display:block;margin:12px auto 0}.sx-signin__error{font-size:13px;color:#a43232;line-height:1.5;margin:10px 0;min-height:0}.sx-signin__error:empty{margin:16px 0 0}.sx-signin__error:not(:empty){padding:10px 12px;background:#fff2ef;border-radius:8px}.sx-signin__code{letter-spacing:.35em;font-size:24px!important;text-align:center;font-variant-numeric:tabular-nums}.sx-signin__alternatives{display:flex;flex-wrap:wrap;justify-content:space-between;gap:0 8px;margin-top:12px}.sx-signin__symbol{font-size:44px;color:var(--sx-signin-accent);margin-bottom:20px}
5
+ @media(prefers-reduced-motion:reduce){.sx-signin *{transition:none!important}}
@@ -0,0 +1,2 @@
1
+ export { ContinueSignInForm } from './sign-in/form.js';
2
+ export type { ContinueSignInOptions } from './sign-in/contract.js';
@@ -0,0 +1,4 @@
1
+ // @generated by sylphx-gen. Do not edit.
2
+ 'use client';
3
+ export { ContinueSignInForm } from './sign-in/form.js';
4
+ //# sourceMappingURL=sign-in.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sign-in.js","sourceRoot":"","sources":["../src/sign-in.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,YAAY,CAAA;AAEZ,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sylphx/sdk",
3
- "version": "0.32.11",
3
+ "version": "0.32.17",
4
4
  "description": "The Sylphx SDK: one API, one key, every Sylphx service. Generated from the Sylphx schema registry.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -27,7 +27,12 @@
27
27
  "./*": {
28
28
  "types": "./dist/*.d.ts",
29
29
  "default": "./dist/*.js"
30
- }
30
+ },
31
+ "./sign-in": {
32
+ "types": "./dist/sign-in.d.ts",
33
+ "default": "./dist/sign-in.js"
34
+ },
35
+ "./sign-in.css": "./dist/sign-in.css"
31
36
  },
32
37
  "main": "./dist/index.js",
33
38
  "types": "./dist/index.d.ts",
@@ -37,19 +42,33 @@
37
42
  "LICENSE"
38
43
  ],
39
44
  "scripts": {
40
- "build": "rm -rf dist && tsc -p tsconfig.build.json",
45
+ "build": "rm -rf dist && tsc -p tsconfig.build.json && cp src/sign-in/sign-in.css dist/sign-in.css",
41
46
  "typecheck": "tsc --noEmit",
42
47
  "lint": "biome check test",
43
48
  "test": "bun test",
44
49
  "prepublishOnly": "bun run build"
45
50
  },
46
51
  "devDependencies": {
52
+ "ajv": "8.20.0",
47
53
  "@types/bun": "1.4.0",
48
- "typescript": "npm:@typescript/typescript6@6.0.2"
54
+ "typescript": "npm:@typescript/typescript6@6.0.2",
55
+ "@types/react": "^19",
56
+ "react": "^19"
49
57
  },
50
58
  "publishConfig": {
51
59
  "access": "public",
52
60
  "tag": "next",
53
61
  "provenance": true
62
+ },
63
+ "sideEffects": [
64
+ "**/*.css"
65
+ ],
66
+ "peerDependencies": {
67
+ "react": ">=18"
68
+ },
69
+ "peerDependenciesMeta": {
70
+ "react": {
71
+ "optional": true
72
+ }
54
73
  }
55
74
  }