@field-studio/sdk 0.1.0 → 0.1.2

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 CHANGED
@@ -129,4 +129,4 @@ Memoize the client for the current authenticated host. `usePlatform()` returns t
129
129
 
130
130
  Place `AssistantProvider` inside `PlatformProvider`. `AssistantPageBinding` accepts the host's `taskInput` and `pageContext`. The assistant supports conversations, delegation, files, questions, and host-rendered result actions, findings, and proposals.
131
131
 
132
- The host supplies the catalog callbacks and the authentication endpoints `/api/auth/*` and `/api/admin/users*`. `AuthShell` attaches CSRF credentials to writes. The component entry points load their styles when imported.
132
+ The host supplies the catalog callbacks and a browser `GET /auth/login` route that starts OIDC sign-in with Hydra. After the callback establishes the application session, `AuthShell` reads it from `GET /api/auth/me` and sends sign-out to `POST /api/auth/logout`. It attaches CSRF credentials to writes. User management uses the host's `/api/admin/users` and `/api/admin/roles` routes to update existing accounts and roles. Provision identities in Kratos and grant access in Field Studio. The component entry points load their styles when imported.
@@ -8,12 +8,10 @@ export interface RoleDefinition {
8
8
  }
9
9
  export interface PublicUser {
10
10
  id: string;
11
- username: string;
12
- display_name: string;
11
+ email: string;
13
12
  role: string;
14
13
  status: string;
15
14
  workspace_id: string;
16
- must_change_password: number;
17
15
  created_at: number;
18
16
  permissions?: string[];
19
17
  app_scopes?: Record<string, AppScope>;
@@ -26,10 +24,6 @@ export interface UserPage {
26
24
  total: number;
27
25
  }
28
26
  export interface IdentityOperations {
29
- create_user: {
30
- args: [username: string, displayName: string, password: string, role?: string, actor?: string | null];
31
- result: PublicUser;
32
- };
33
27
  get_user: {
34
28
  args: [userId: string];
35
29
  result: PublicUser;
@@ -54,10 +48,6 @@ export interface IdentityOperations {
54
48
  args: [id: string, actor: string];
55
49
  result: null;
56
50
  };
57
- login: {
58
- args: [username: string, password: string, source: string];
59
- result: [sessionToken: string, csrfToken: string, user: PublicUser];
60
- };
61
51
  session: {
62
52
  args: [token: string | null];
63
53
  result: [user: PublicUser, csrfToken: string];
@@ -67,21 +57,9 @@ export interface IdentityOperations {
67
57
  result: null;
68
58
  };
69
59
  update_user: {
70
- args: [userId: string, changes: Record<string, string>, actor: string];
60
+ args: [userId: string, changes: Partial<Pick<PublicUser, "role" | "status">>, actor: string];
71
61
  result: PublicUser;
72
62
  };
73
- change_password: {
74
- args: [userId: string, oldPassword: string, newPassword: string];
75
- result: null;
76
- };
77
- reset_token: {
78
- args: [userId: string, actor: string];
79
- result: string;
80
- };
81
- reset_password: {
82
- args: [token: string, password: string];
83
- result: null;
84
- };
85
63
  check_health: {
86
64
  args: [];
87
65
  result: null;
@@ -3,13 +3,11 @@ import './auth.css';
3
3
  import { type RoleDataScopeConfig } from './RoleManager.js';
4
4
  export type User = {
5
5
  id: string;
6
- username: string;
7
- display_name: string;
6
+ email: string;
8
7
  role: string;
9
8
  role_name?: string;
10
9
  permissions?: string[];
11
10
  status: 'active' | 'disabled';
12
- must_change_password: boolean;
13
11
  };
14
12
  export type Session = {
15
13
  user: User;
@@ -20,7 +18,6 @@ export type AuthHandle = {
20
18
  fetch: typeof fetch;
21
19
  error: string;
22
20
  openUserManagement: () => void;
23
- openPasswordChange: () => void;
24
21
  logout: () => Promise<void>;
25
22
  };
26
23
  export declare const AuthContext: import("react").Context<AuthHandle | null>;
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { createContext, useContext, useEffect, useCallback, useRef, useState, } from 'react';
3
3
  import './auth.css';
4
- import { Dialog, Select } from '../ui/index.js';
4
+ import { Select } from '../ui/index.js';
5
5
  import RoleManager from './RoleManager.js';
6
6
  export const AuthContext = createContext(null);
7
7
  /** Account session and actions for host-app chrome; null outside an authenticated AuthShell. */
@@ -105,10 +105,7 @@ export default function AuthShell({ children, brand = 'Field Studio', tagline =
105
105
  if (loading)
106
106
  return (_jsx("main", { className: "auth-loading", role: "status", children: "Checking sign-in\u2026" }));
107
107
  if (!session)
108
- return (_jsx(Login, { brand: brand, tagline: tagline, description: loginDescription, error: error, onRetry: load, onLogin: async (username, password) => establish(await request('/api/auth/login', 'POST', { username, password }), true), onReset: async (token, password) => {
109
- await request('/api/auth/reset-password', 'POST', { token, password });
110
- } }));
111
- const mustChange = session.user.must_change_password;
108
+ return (_jsx(Login, { brand: brand, tagline: tagline, description: loginDescription, error: error, onRetry: load }));
112
109
  const logout = async () => {
113
110
  try {
114
111
  await request('/api/auth/logout', 'POST');
@@ -123,76 +120,12 @@ export default function AuthShell({ children, brand = 'Field Studio', tagline =
123
120
  fetch: authenticatedFetch,
124
121
  error,
125
122
  openUserManagement: () => setView('users'),
126
- openPasswordChange: () => setView('password'),
127
123
  logout,
128
124
  };
129
- return (_jsxs("div", { className: "authenticated-shell", children: [(mustChange || view !== 'app') && (_jsxs("header", { className: "account-bar", children: [_jsx("span", { children: _jsx("strong", { children: session.user.display_name || session.user.username }) }), !mustChange && view !== 'app' && (_jsx("nav", { "aria-label": "Account actions", children: _jsx("button", { className: "button small", onClick: () => setView('app'), children: "Back to workspace" }) }))] })), error && (_jsx("p", { className: "auth-error", role: "alert", children: error })), mustChange || view === 'password' ? (_jsx(PasswordForm, { required: mustChange, onSave: async (old_password, new_password) => {
130
- await request('/api/auth/password', 'POST', { old_password, new_password });
131
- establish(null, true);
132
- } })) : view === 'users' ? (_jsx(UserManager, { currentUserId: session.user.id, request: request, roleDataScope: roleDataScope })) : (_jsx(AuthContext.Provider, { value: handle, children: _jsx("div", { className: "private-application", children: children }, epoch) }))] }));
125
+ return (_jsxs("div", { className: "authenticated-shell", children: [view === 'users' && (_jsxs("header", { className: "account-bar", children: [_jsx("span", { children: _jsx("strong", { children: session.user.email }) }), _jsx("nav", { "aria-label": "Account actions", children: _jsx("button", { className: "button small", onClick: () => setView('app'), children: "Back to workspace" }) })] })), error && (_jsx("p", { className: "auth-error", role: "alert", children: error })), view === 'users' ? (_jsx(UserManager, { currentUserId: session.user.id, request: request, roleDataScope: roleDataScope })) : (_jsx(AuthContext.Provider, { value: handle, children: _jsx("div", { className: "private-application", children: children }, epoch) }))] }));
133
126
  }
134
- function Login({ brand, tagline, description, error, onRetry, onLogin, onReset, }) {
135
- const [username, setUsername] = useState('');
136
- const [password, setPassword] = useState('');
137
- const [token, setToken] = useState('');
138
- const [reset, setReset] = useState(false);
139
- const [busy, setBusy] = useState(false);
140
- const [issue, setIssue] = useState('');
141
- const [notice, setNotice] = useState('');
142
- return (_jsx("main", { className: "auth-page", children: _jsxs("section", { className: "auth-panel", children: [_jsxs("a", { className: "auth-brand", href: "/", children: [brand, " ", _jsx("span", { children: tagline })] }), _jsx("h1", { children: reset ? 'Reset password' : 'Sign in to the workspace' }), _jsx("p", { className: "auth-description", children: reset
143
- ? 'Enter the one-time token from your administrator to set a new password.'
144
- : description }), (issue || error) && (_jsx("p", { className: "auth-error", role: "alert", children: issue || error })), notice && _jsx("p", { role: "status", children: notice }), _jsxs("form", { onSubmit: async (e) => {
145
- e.preventDefault();
146
- setBusy(true);
147
- setIssue('');
148
- try {
149
- if (reset) {
150
- await onReset(token, password);
151
- setReset(false);
152
- setPassword('');
153
- setToken('');
154
- setNotice('Password updated. Sign in.');
155
- }
156
- else
157
- await onLogin(username, password);
158
- }
159
- catch (e) {
160
- setIssue(e instanceof Error ? e.message : 'Sign-in failed');
161
- }
162
- finally {
163
- setBusy(false);
164
- }
165
- }, children: [reset ? (_jsxs("label", { children: ["Reset token", _jsx("input", { required: true, autoComplete: "off", value: token, onChange: (e) => setToken(e.target.value) })] })) : (_jsxs("label", { children: ["Username", _jsx("input", { required: true, autoComplete: "username", value: username, onChange: (e) => setUsername(e.target.value) })] })), _jsxs("label", { children: [reset ? 'New password' : 'Password', _jsx("input", { type: "password", required: true, minLength: reset ? 12 : undefined, maxLength: 128, autoComplete: reset ? 'new-password' : 'current-password', value: password, onChange: (e) => setPassword(e.target.value) })] }), _jsx("button", { className: "button primary auth-submit", disabled: busy, children: busy ? 'Submitting…' : reset ? 'Set new password' : 'Sign in' })] }), _jsxs("div", { className: "auth-links", children: [_jsx("button", { type: "button", onClick: () => {
166
- setReset(!reset);
167
- setIssue('');
168
- setPassword('');
169
- setNotice('');
170
- }, children: reset ? 'Back to sign-in' : 'Use a reset token' }), error && _jsx("button", { onClick: () => void onRetry(), children: "Reconnect" })] }), _jsx("p", { className: "auth-help", children: "Administrators create accounts. Contact an administrator for an account or reset token." })] }) }));
171
- }
172
- function PasswordForm({ required, onSave, }) {
173
- const [old, setOld] = useState('');
174
- const [next, setNext] = useState('');
175
- const [confirm, setConfirm] = useState('');
176
- const [busy, setBusy] = useState(false);
177
- const [error, setError] = useState('');
178
- return (_jsxs("main", { className: "auth-settings", children: [_jsx("h1", { children: required ? 'Change your password first' : 'Change password' }), _jsx("p", { children: "Changing your password ends all sessions. Sign in again afterward." }), _jsxs("form", { className: "auth-panel", onSubmit: async (e) => {
179
- e.preventDefault();
180
- if (next !== confirm) {
181
- setError('The new passwords do not match');
182
- return;
183
- }
184
- setBusy(true);
185
- setError('');
186
- try {
187
- await onSave(old, next);
188
- }
189
- catch (e) {
190
- setError(e instanceof Error ? e.message : 'Update failed');
191
- }
192
- finally {
193
- setBusy(false);
194
- }
195
- }, children: [_jsxs("label", { children: ["Current password", _jsx("input", { required: true, type: "password", autoComplete: "current-password", value: old, onChange: (e) => setOld(e.target.value) })] }), _jsxs("label", { children: ["New password", _jsx("input", { required: true, minLength: 12, maxLength: 128, type: "password", autoComplete: "new-password", value: next, onChange: (e) => setNext(e.target.value) })] }), _jsxs("label", { children: ["Confirm new password", _jsx("input", { required: true, minLength: 12, maxLength: 128, type: "password", autoComplete: "new-password", value: confirm, onChange: (e) => setConfirm(e.target.value) })] }), error && (_jsx("p", { className: "auth-error", role: "alert", children: error })), _jsx("button", { className: "button primary", disabled: busy, children: "Save new password" })] })] }));
127
+ function Login({ brand, tagline, description, error, onRetry, }) {
128
+ return (_jsx("main", { className: "auth-page", children: _jsxs("section", { className: "auth-panel", children: [_jsxs("a", { className: "auth-brand", href: "/", children: [brand, " ", _jsx("span", { children: tagline })] }), _jsx("h1", { children: "Sign in to the workspace" }), _jsx("p", { className: "auth-description", children: description }), error && _jsx("p", { className: "auth-error", role: "alert", children: error }), _jsx("a", { className: "button primary auth-submit", href: "/auth/login", children: "Sign in with SSO" }), error && (_jsx("div", { className: "auth-links", children: _jsx("button", { type: "button", onClick: () => void onRetry(), children: "Reconnect" }) }))] }) }));
196
129
  }
197
130
  const defaultRoles = [
198
131
  { id: 'member', name: 'Member' },
@@ -206,12 +139,6 @@ function UserManager({ currentUserId, request, roleDataScope, }) {
206
139
  const [loading, setLoading] = useState(true);
207
140
  const [page, setPage] = useState(0);
208
141
  const [total, setTotal] = useState(0);
209
- const [creating, setCreating] = useState(false);
210
- const [username, setUsername] = useState('');
211
- const [name, setName] = useState('');
212
- const [password, setPassword] = useState('');
213
- const [role, setRole] = useState('member');
214
- const [reset, setReset] = useState(null);
215
142
  async function reloadRoles() {
216
143
  const result = await request('/api/admin/roles');
217
144
  if (Array.isArray(result))
@@ -259,29 +186,10 @@ function UserManager({ currentUserId, request, roleDataScope, }) {
259
186
  setBusy(false);
260
187
  }
261
188
  }
262
- return (_jsxs("main", { className: "auth-settings user-management", children: [_jsx("h1", { children: "User management" }), _jsx("p", { children: "Manage platform accounts. Each user has separate agents, tasks, and files." }), error && (_jsx("p", { className: "auth-error", role: "alert", children: error })), reset && (_jsxs("aside", { className: "reset-receipt", role: "status", children: [_jsxs("strong", { children: [reset.username, "'s one-time reset token"] }), _jsx("code", { children: reset.token }), _jsx("p", { children: "Send this token through a secure channel. It is only shown on this page." }), _jsx("button", { className: "button small", onClick: () => setReset(null), children: "Close reset token" })] })), _jsxs("section", { className: "auth-user-section", children: [_jsxs("div", { className: "user-list-header", children: [_jsxs("h2", { children: ["Accounts", ' ', _jsxs("span", { className: "account-scope", children: [total.toLocaleString(), " users"] })] }), _jsx("button", { className: "button", disabled: busy, onClick: () => setCreating(true), children: "Add user" })] }), loading ? (_jsx("p", { role: "status", children: "Loading users\u2026" })) : !users.length ? (_jsx("p", { children: "No users yet" })) : (_jsx("div", { className: "auth-table-scroll", children: _jsxs("table", { children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { children: "Username" }), _jsx("th", { children: "Name" }), _jsx("th", { children: "Role" }), _jsx("th", { children: "Status" }), _jsx("th", { children: "Actions" })] }) }), _jsx("tbody", { children: users.map((user) => (_jsx(UserRow, { user: user, self: currentUserId === user.id, busy: busy, roles: roles ?? defaultRoles, onEdit: (changes) => action(async () => {
189
+ return (_jsxs("main", { className: "auth-settings user-management", children: [_jsx("h1", { children: "User management" }), _jsx("p", { children: "Manage roles and access for provisioned accounts." }), error && (_jsx("p", { className: "auth-error", role: "alert", children: error })), _jsxs("section", { className: "auth-user-section", children: [_jsx("div", { className: "user-list-header", children: _jsxs("h2", { children: ["Accounts", ' ', _jsxs("span", { className: "account-scope", children: [total.toLocaleString(), " users"] })] }) }), loading ? (_jsx("p", { role: "status", children: "Loading users\u2026" })) : !users.length ? (_jsx("p", { children: "No users yet" })) : (_jsx("div", { className: "auth-table-scroll", children: _jsxs("table", { children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { children: "Email" }), _jsx("th", { children: "Role" }), _jsx("th", { children: "Status" }), _jsx("th", { children: "Actions" })] }) }), _jsx("tbody", { children: users.map((user) => (_jsx(UserRow, { user: user, self: currentUserId === user.id, busy: busy, roles: roles ?? defaultRoles, onEdit: (changes) => action(async () => {
263
190
  await request(`/api/admin/users/${user.id}`, 'PATCH', changes);
264
- }), onReset: () => action(async () => {
265
- const result = await request(`/api/admin/users/${user.id}/reset-password`, 'POST');
266
- setReset({ username: user.username, token: result.token });
267
- }) }, user.id))) })] }) })), _jsxs("div", { className: "user-pagination", children: [_jsx("button", { className: "button small", disabled: !page || busy, onClick: () => setPage((p) => p - 1), children: "Previous page" }), _jsxs("span", { children: ["Page ", page + 1] }), _jsx("button", { className: "button small", disabled: (page + 1) * 50 >= total || busy, onClick: () => setPage((p) => p + 1), children: "Next page" })] })] }), roles && _jsx(RoleManager, { roles: roles, reload: reloadRoles, request: request, dataScope: roleDataScope }), creating && (_jsx(Dialog, { title: "Create user", onClose: () => setCreating(false), children: _jsxs("form", { onSubmit: (e) => {
268
- e.preventDefault();
269
- void action(async () => {
270
- await request('/api/admin/users', 'POST', {
271
- username,
272
- display_name: name,
273
- password,
274
- role,
275
- });
276
- setCreating(false);
277
- setUsername('');
278
- setName('');
279
- setPassword('');
280
- });
281
- }, children: [_jsxs("div", { className: "dialog-body", children: [_jsxs("label", { children: ["New username", _jsx("input", { required: true, autoComplete: "off", value: username, onChange: (e) => setUsername(e.target.value) })] }), _jsxs("label", { children: ["New user name", _jsx("input", { required: true, value: name, onChange: (e) => setName(e.target.value) })] }), _jsxs("label", { children: ["Initial password", _jsx("input", { required: true, type: "password", minLength: 12, maxLength: 128, autoComplete: "new-password", value: password, onChange: (e) => setPassword(e.target.value) })] }), _jsxs("label", { children: ["New user role", _jsx(Select, { "aria-label": "New user role", value: role, onChange: (e) => setRole(e.target.value), children: (roles ?? defaultRoles).map((role) => _jsx("option", { value: role.id, children: role.name }, role.id)) })] }), error && (_jsx("p", { className: "auth-error", role: "alert", children: error }))] }), _jsxs("div", { className: "dialog-footer", children: [_jsx("button", { type: "button", className: "button", disabled: busy, onClick: () => setCreating(false), children: "Cancel" }), _jsx("button", { className: "button primary", disabled: busy, children: "Create user" })] })] }) }))] }));
191
+ }) }, user.id))) })] }) })), _jsxs("div", { className: "user-pagination", children: [_jsx("button", { className: "button small", disabled: !page || busy, onClick: () => setPage((p) => p - 1), children: "Previous page" }), _jsxs("span", { children: ["Page ", page + 1] }), _jsx("button", { className: "button small", disabled: (page + 1) * 50 >= total || busy, onClick: () => setPage((p) => p + 1), children: "Next page" })] })] }), roles && _jsx(RoleManager, { roles: roles, reload: reloadRoles, request: request, dataScope: roleDataScope })] }));
282
192
  }
283
- function UserRow({ user, self, busy, roles, onEdit, onReset, }) {
284
- const [name, setName] = useState(user.display_name);
285
- useEffect(() => setName(user.display_name), [user.display_name]);
286
- return (_jsxs("tr", { children: [_jsxs("td", { children: [user.username, self && ' (you)'] }), _jsx("td", { children: _jsxs("div", { className: "user-name-editor", children: [_jsx("input", { "aria-label": `${user.username}'s name`, value: name, onChange: (e) => setName(e.target.value) }), _jsx("button", { className: "button small", disabled: busy || !name.trim() || name === user.display_name, onClick: () => void onEdit({ display_name: name }), children: "Save name" })] }) }), _jsx("td", { children: _jsx(Select, { "aria-label": `${user.username}'s role`, disabled: busy || (user.role === 'admin' && !self), value: user.role, onChange: (e) => void onEdit({ role: e.target.value }), children: roles.map((role) => _jsx("option", { value: role.id, children: role.name }, role.id)) }) }), _jsx("td", { children: user.status === 'active' ? 'Enabled' : 'Disabled' }), _jsx("td", { children: _jsxs("div", { className: "action-row user-actions", children: [_jsx("button", { className: "button small", disabled: busy, onClick: () => void onEdit({ status: user.status === 'active' ? 'disabled' : 'active' }), children: user.status === 'active' ? 'Disable' : 'Enable' }), _jsx("button", { className: "button small", disabled: busy || self, "aria-label": `Reset ${user.username}'s password`, onClick: () => void onReset(), children: "Reset password" })] }) })] }));
193
+ function UserRow({ user, self, busy, roles, onEdit, }) {
194
+ return (_jsxs("tr", { children: [_jsxs("td", { children: [user.email, self && ' (you)'] }), _jsx("td", { children: _jsx(Select, { "aria-label": `${user.email}'s role`, disabled: busy || (user.role === 'admin' && !self), value: user.role, onChange: (e) => void onEdit({ role: e.target.value }), children: roles.map((role) => _jsx("option", { value: role.id, children: role.name }, role.id)) }) }), _jsx("td", { children: user.status === 'active' ? 'Enabled' : 'Disabled' }), _jsx("td", { children: _jsx("div", { className: "action-row user-actions", children: _jsx("button", { className: "button small", disabled: busy, onClick: () => void onEdit({ status: user.status === 'active' ? 'disabled' : 'active' }), children: user.status === 'active' ? 'Disable' : 'Enable' }) }) })] }));
287
195
  }
@@ -9,14 +9,12 @@
9
9
  .auth-brand { font-size: 22px; font-weight: 700; color: #204f83; text-decoration: none; }
10
10
  .auth-brand span { font-size: 14px; font-weight: 500; margin-left: 10px; }
11
11
  .auth-panel h1 { font-size: 23px; margin: 30px 0 10px; }
12
- .auth-description, .auth-help, .auth-settings > p { font-size: 13px; line-height: 1.7; color: #657488; }
13
- .auth-panel form, .auth-settings form.auth-panel { display: flex; flex-direction: column; gap: 18px; }
14
- .auth-panel label, .auth-settings label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
15
- .auth-panel input, .auth-settings input, .auth-settings select { border: 1px solid #cdd7e3; border-radius: 5px; padding: 9px 11px; min-height: 38px; color: #25384c; background: #fff; width: 100%; }
16
- .auth-submit { justify-content: center; margin-top: 4px; }
12
+ .auth-description, .auth-settings > p { font-size: 13px; line-height: 1.7; color: #657488; }
13
+ .auth-settings label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
14
+ .auth-settings input, .auth-settings select { border: 1px solid #cdd7e3; border-radius: 5px; padding: 9px 11px; min-height: 38px; color: #25384c; background: #fff; width: 100%; }
15
+ .auth-submit { display: inline-flex; justify-content: center; margin-top: 8px; text-decoration: none; }
17
16
  .auth-links { display: flex; justify-content: space-between; margin-top: 18px; gap: 12px; }
18
17
  .auth-links button { background: none; padding: 0; color: #235a94; font-size: 12px; }
19
- .auth-help { margin: 24px 0 0; font-size: 12px; }
20
18
  .auth-error { padding: 10px 14px; border: 1px solid #f1cccc; background: #fff5f5; color: #a82d2d; font-size: 13px; overflow-wrap: anywhere; }
21
19
  .auth-settings { padding: 28px; overflow: auto; flex: 1; }
22
20
  .auth-settings h1 { font-size: 24px; margin: 0 0 8px; }
@@ -30,10 +28,7 @@
30
28
  .auth-settings th { color: #657488; font-weight: 500; }
31
29
  .auth-settings td input { max-width: 160px; margin-right: 8px; }
32
30
  .user-actions { white-space: nowrap; }
33
- .user-actions button + button { margin-left: 8px; }
34
31
  .user-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 18px; font-size: 12px; }
35
- .reset-receipt { border: 1px solid #c3d5e9; background: #f1f6fc; padding: 18px; margin: 18px 0; font-size: 13px; }
36
- .reset-receipt code { display: block; padding: 12px 0; user-select: all; overflow-wrap: anywhere; }
37
32
  @media (max-width: 640px) { .account-bar { padding: 8px 12px; align-items: flex-start; } .account-scope { display: block; margin-left: 0; } .auth-panel { padding: 24px; } .auth-settings { padding: 18px; } .account-bar nav { justify-content: flex-end; gap: 5px; } }
38
33
  .private-application { overflow: auto; }
39
34
  .private-application .app-shell { min-height: 100%; height: auto; }
@@ -41,11 +36,7 @@
41
36
  sidebar spans the full viewport instead of reserving a 46px bar. */
42
37
  .private-application .sidebar { position: sticky; top: 0; height: 100dvh; grid-row: 1; }
43
38
 
44
- .user-name-editor { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
45
- .user-name-editor input { flex: 1 1 130px; }
46
- .auth-settings .user-name-editor input { margin: 0; }
47
39
  .user-actions { min-width: 168px; white-space: normal; }
48
- .user-actions button + button { margin-left: 0; }
49
40
  .auth-settings .ui-select { width: 100%; min-width: 120px; }
50
41
  .auth-settings .ui-select-trigger { min-height: 38px; }
51
42
  .account-bar > span { min-width: 0; overflow-wrap: anywhere; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@field-studio/sdk",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Field Studio clients for browsers and Node.js, with React integration and components",
5
5
  "license": "MIT",
6
6
  "repository": {