@nextsparkjs/core 0.1.0-beta.180 → 0.1.0-beta.182
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/dist/components/devtools/api-explorer/ApiEndpointsSidebar.d.ts.map +1 -1
- package/dist/components/devtools/api-explorer/ApiEndpointsSidebar.js +4 -1
- package/dist/components/devtools/api-explorer/ApiExplorer.d.ts.map +1 -1
- package/dist/components/devtools/api-explorer/ApiExplorer.js +92 -48
- package/dist/components/devtools/api-explorer/ApiRequestPanel.d.ts.map +1 -1
- package/dist/components/devtools/api-explorer/ApiRequestPanel.js +36 -6
- package/dist/components/devtools/api-explorer/JsonViewer.d.ts.map +1 -1
- package/dist/components/devtools/api-explorer/JsonViewer.js +13 -8
- package/dist/components/devtools/api-explorer/PanelDivider.d.ts +26 -0
- package/dist/components/devtools/api-explorer/PanelDivider.d.ts.map +1 -0
- package/dist/components/devtools/api-explorer/PanelDivider.js +102 -0
- package/dist/components/devtools/api-explorer/PresetsTab.d.ts.map +1 -1
- package/dist/components/devtools/api-explorer/PresetsTab.js +35 -2
- package/dist/components/devtools/api-explorer/preset-placeholders.d.ts +52 -0
- package/dist/components/devtools/api-explorer/preset-placeholders.d.ts.map +1 -0
- package/dist/components/devtools/api-explorer/preset-placeholders.js +62 -0
- package/dist/lib/auth-email-callbacks.d.ts +26 -0
- package/dist/lib/auth-email-callbacks.d.ts.map +1 -0
- package/dist/lib/auth-email-callbacks.js +47 -0
- package/dist/lib/auth.d.ts +5 -0
- package/dist/lib/auth.d.ts.map +1 -1
- package/dist/lib/auth.js +3 -45
- package/dist/lib/selectors/core-selectors.d.ts +3 -0
- package/dist/lib/selectors/core-selectors.d.ts.map +1 -1
- package/dist/lib/selectors/domains/devtools.selectors.d.ts +3 -0
- package/dist/lib/selectors/domains/devtools.selectors.d.ts.map +1 -1
- package/dist/lib/selectors/domains/devtools.selectors.js +5 -2
- package/dist/lib/selectors/selectors.d.ts +6 -0
- package/dist/lib/selectors/selectors.d.ts.map +1 -1
- package/dist/styles/classes.json +10 -5
- package/dist/styles/ui.css +1 -1
- package/dist/types/api-presets.d.ts +19 -1
- package/dist/types/api-presets.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
const PRESET_RUN_TOKEN_KEY = "devtools.presetRunToken";
|
|
2
|
+
const PLACEHOLDER_PATTERN = /\{\{([A-Z_]+)\}\}/g;
|
|
3
|
+
function mintToken() {
|
|
4
|
+
const random = Math.floor(Math.random() * 36 ** 4).toString(36).padStart(4, "0");
|
|
5
|
+
return `${Date.now().toString(36)}${random}`;
|
|
6
|
+
}
|
|
7
|
+
function readPresetRunToken() {
|
|
8
|
+
if (typeof window === "undefined") return "run";
|
|
9
|
+
const stored = window.localStorage.getItem(PRESET_RUN_TOKEN_KEY);
|
|
10
|
+
if (stored) return stored;
|
|
11
|
+
const minted = mintToken();
|
|
12
|
+
window.localStorage.setItem(PRESET_RUN_TOKEN_KEY, minted);
|
|
13
|
+
return minted;
|
|
14
|
+
}
|
|
15
|
+
function regeneratePresetRunToken() {
|
|
16
|
+
const minted = mintToken();
|
|
17
|
+
if (typeof window !== "undefined") {
|
|
18
|
+
window.localStorage.setItem(PRESET_RUN_TOKEN_KEY, minted);
|
|
19
|
+
}
|
|
20
|
+
return minted;
|
|
21
|
+
}
|
|
22
|
+
function readFirstTeamId() {
|
|
23
|
+
if (typeof window === "undefined") return "";
|
|
24
|
+
return window.localStorage.getItem("firstTeamId") || window.localStorage.getItem("activeTeamId") || "";
|
|
25
|
+
}
|
|
26
|
+
function createPresetPlaceholderValues() {
|
|
27
|
+
return {
|
|
28
|
+
// Minted here, so every apply gets its own — that is the whole point of this one.
|
|
29
|
+
UNIQUE: mintToken(),
|
|
30
|
+
RUN: readPresetRunToken(),
|
|
31
|
+
TIMESTAMP: String(Date.now()),
|
|
32
|
+
UUID: typeof crypto !== "undefined" && crypto.randomUUID ? crypto.randomUUID() : mintToken(),
|
|
33
|
+
FIRST_TEAM_ID: readFirstTeamId()
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
function resolvePresetPlaceholders(value, values = createPresetPlaceholderValues()) {
|
|
37
|
+
if (typeof value === "string") {
|
|
38
|
+
return value.replace(
|
|
39
|
+
PLACEHOLDER_PATTERN,
|
|
40
|
+
(whole, token) => token in values ? values[token] : whole
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
if (Array.isArray(value)) {
|
|
44
|
+
return value.map((item) => resolvePresetPlaceholders(item, values));
|
|
45
|
+
}
|
|
46
|
+
if (value && typeof value === "object") {
|
|
47
|
+
return Object.fromEntries(
|
|
48
|
+
Object.entries(value).map(([key, item]) => [
|
|
49
|
+
key,
|
|
50
|
+
resolvePresetPlaceholders(item, values)
|
|
51
|
+
])
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
export {
|
|
57
|
+
PRESET_RUN_TOKEN_KEY,
|
|
58
|
+
createPresetPlaceholderValues,
|
|
59
|
+
readPresetRunToken,
|
|
60
|
+
regeneratePresetRunToken,
|
|
61
|
+
resolvePresetPlaceholders
|
|
62
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { EmailProvider } from './email';
|
|
2
|
+
import type { UserWithEmail } from './auth';
|
|
3
|
+
interface EmailCallbackParams {
|
|
4
|
+
user: UserWithEmail;
|
|
5
|
+
url: string;
|
|
6
|
+
token: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* better-auth's own `/request-password-reset` route already builds `url` as
|
|
10
|
+
* `${baseURL}/reset-password/${verificationToken}?callbackURL=${encodeURIComponent(redirectTo)}`
|
|
11
|
+
* — the token lives in the path, `callbackURL` is already correctly encoded.
|
|
12
|
+
* Use it as-is: appending a second `?token=` here (the previous behavior)
|
|
13
|
+
* produces a value with two `?` characters whenever `redirectTo` itself
|
|
14
|
+
* already carries a query string, which better-auth's own callback-URL
|
|
15
|
+
* validation on the follow-up GET request rejects.
|
|
16
|
+
*/
|
|
17
|
+
export declare function sendResetPasswordCallback({ user, url, token: _token }: EmailCallbackParams, emailService: EmailProvider): Promise<void>;
|
|
18
|
+
/**
|
|
19
|
+
* better-auth's own `/send-verification-email` route already builds `url` as
|
|
20
|
+
* `${baseURL}/verify-email?token=${token}&callbackURL=${callbackURL}` — both
|
|
21
|
+
* params correctly `&`-joined. Use it as-is instead of rebuilding a
|
|
22
|
+
* token-only URL, which silently dropped any `callbackURL` a caller supplied.
|
|
23
|
+
*/
|
|
24
|
+
export declare function sendVerificationEmailCallback({ user, url, token: _token }: EmailCallbackParams, emailService: EmailProvider): Promise<void>;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=auth-email-callbacks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-email-callbacks.d.ts","sourceRoot":"","sources":["../../src/lib/auth-email-callbacks.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAE5C,UAAU,mBAAmB;IAC3B,IAAI,EAAE,aAAa,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;GAQG;AACH,wBAAsB,yBAAyB,CAC7C,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,mBAAmB,EACjD,YAAY,EAAE,aAAa,GAC1B,OAAO,CAAC,IAAI,CAAC,CAsBf;AAED;;;;;GAKG;AACH,wBAAsB,6BAA6B,CACjD,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,mBAAmB,EACjD,YAAY,EAAE,aAAa,GAC1B,OAAO,CAAC,IAAI,CAAC,CAqBf"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { sendResetPasswordEmail, sendVerifyEmail } from "./email/send.js";
|
|
2
|
+
import { I18N_CONFIG } from "./config/index.js";
|
|
3
|
+
async function sendResetPasswordCallback({ user, url, token: _token }, emailService) {
|
|
4
|
+
try {
|
|
5
|
+
const template = await sendResetPasswordEmail({
|
|
6
|
+
userName: user.firstName || "",
|
|
7
|
+
resetUrl: url,
|
|
8
|
+
appName: process.env.NEXT_PUBLIC_APP_NAME || "Your App",
|
|
9
|
+
expiresIn: "1 hour"
|
|
10
|
+
}, I18N_CONFIG.defaultLocale);
|
|
11
|
+
const response = await emailService.send({
|
|
12
|
+
to: user.email,
|
|
13
|
+
...template
|
|
14
|
+
});
|
|
15
|
+
if (!response.success) {
|
|
16
|
+
console.error("Failed to send reset password email:", response.error);
|
|
17
|
+
throw new Error("Failed to send reset password email");
|
|
18
|
+
}
|
|
19
|
+
} catch (error) {
|
|
20
|
+
console.error("Error sending reset password email:", error);
|
|
21
|
+
throw error;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
async function sendVerificationEmailCallback({ user, url, token: _token }, emailService) {
|
|
25
|
+
try {
|
|
26
|
+
const template = await sendVerifyEmail({
|
|
27
|
+
userName: user.firstName || "",
|
|
28
|
+
verificationUrl: url,
|
|
29
|
+
appName: process.env.NEXT_PUBLIC_APP_NAME || "Your App"
|
|
30
|
+
}, I18N_CONFIG.defaultLocale);
|
|
31
|
+
const response = await emailService.send({
|
|
32
|
+
to: user.email,
|
|
33
|
+
...template
|
|
34
|
+
});
|
|
35
|
+
if (!response.success) {
|
|
36
|
+
console.error("Failed to send verification email:", response.error);
|
|
37
|
+
throw new Error("Failed to send verification email");
|
|
38
|
+
}
|
|
39
|
+
} catch (error) {
|
|
40
|
+
console.error("Error sending verification email:", error);
|
|
41
|
+
throw error;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
export {
|
|
45
|
+
sendResetPasswordCallback,
|
|
46
|
+
sendVerificationEmailCallback
|
|
47
|
+
};
|
package/dist/lib/auth.d.ts
CHANGED
|
@@ -25,6 +25,11 @@ export declare function hasPendingInvitationForEmail(email: string): Promise<boo
|
|
|
25
25
|
* already known to be invite-flow never pays for the extra query.
|
|
26
26
|
*/
|
|
27
27
|
export declare function shouldSkipTeamCreationForUser(email: string): Promise<boolean>;
|
|
28
|
+
export interface UserWithEmail {
|
|
29
|
+
email: string;
|
|
30
|
+
id?: string;
|
|
31
|
+
firstName?: string;
|
|
32
|
+
}
|
|
28
33
|
export declare const auth: {
|
|
29
34
|
handler: (request: Request) => Promise<Response>;
|
|
30
35
|
api: import("better-auth").InferAPI<{
|
package/dist/lib/auth.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/lib/auth.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/lib/auth.ts"],"names":[],"mappings":"AAUA,OAAO,EAAgF,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AAavH;;;;;;;;;;;;;GAaG;AACH,wBAAsB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAQlF;AAED;;;;;;;;;GASG;AACH,wBAAsB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAEnF;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA0GD,eAAO,MAAM,IAAI;;;;kGAmXoo9f,CAAC;oBAAyB,CAAC;;sBAAqD,CAAC;;qBAA4D,CAAC;;sBAA2E,CAAC;;uBAAgE,CAAC;;uBAAoD,CAAC;;0BAA2D,CAAC;6BAAwC,CAAC;mBAA8B,CAAC;oBAAgD,CAAC;;0BAAsD,CAAC;6BAAuD,CAAC;;;;;;;;;;;;;;;;;;;;;;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A0Z,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAjD7w0pB,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;AACjD,MAAM,MAAM,WAAW,GAAG,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,GAAG;IAC1D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,kBAAkB,EAAE,QAAQ,EAAE,CAAC;CAC/C,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAC5B,IAAI,EAAE,WAAW,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,eAAe,CACnC,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,CAO9B"}
|
package/dist/lib/auth.js
CHANGED
|
@@ -5,10 +5,9 @@ import { emailOTP } from "better-auth/plugins";
|
|
|
5
5
|
import { parseSSLConfig, stripSSLParams, queryOne } from "./db.js";
|
|
6
6
|
import { EmailFactory } from "./email/index.js";
|
|
7
7
|
import {
|
|
8
|
-
sendVerifyEmail,
|
|
9
|
-
sendResetPasswordEmail,
|
|
10
8
|
sendOtpVerificationEmail
|
|
11
9
|
} from "./email/send.js";
|
|
10
|
+
import { sendResetPasswordCallback, sendVerificationEmailCallback } from "./auth-email-callbacks.js";
|
|
12
11
|
import { I18N_CONFIG, USER_ROLES_CONFIG, TEAMS_CONFIG, AUTH_CONFIG, APP_CONFIG_MERGED } from "./config/index.js";
|
|
13
12
|
import { getUserFlags } from "./services/user-flags.service.js";
|
|
14
13
|
import { TeamService } from "./services/team.service.js";
|
|
@@ -135,28 +134,7 @@ const auth = betterAuth({
|
|
|
135
134
|
maxPasswordLength: 128,
|
|
136
135
|
resetPasswordTokenExpiresIn: 60 * 60,
|
|
137
136
|
// 1 hour
|
|
138
|
-
sendResetPassword:
|
|
139
|
-
try {
|
|
140
|
-
const resetUrl = `${url}?token=${token}`;
|
|
141
|
-
const template = await sendResetPasswordEmail({
|
|
142
|
-
userName: user.firstName || "",
|
|
143
|
-
resetUrl,
|
|
144
|
-
appName: process.env.NEXT_PUBLIC_APP_NAME || "Your App",
|
|
145
|
-
expiresIn: "1 hour"
|
|
146
|
-
}, I18N_CONFIG.defaultLocale);
|
|
147
|
-
const response = await emailService.send({
|
|
148
|
-
to: user.email,
|
|
149
|
-
...template
|
|
150
|
-
});
|
|
151
|
-
if (!response.success) {
|
|
152
|
-
console.error("Failed to send reset password email:", response.error);
|
|
153
|
-
throw new Error("Failed to send reset password email");
|
|
154
|
-
}
|
|
155
|
-
} catch (error) {
|
|
156
|
-
console.error("Error sending reset password email:", error);
|
|
157
|
-
throw error;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
137
|
+
sendResetPassword: (params) => sendResetPasswordCallback(params, emailService)
|
|
160
138
|
},
|
|
161
139
|
emailVerification: {
|
|
162
140
|
// Controlled by AUTH_CONFIG.sendVerificationEmailOnSignup (default: true).
|
|
@@ -164,27 +142,7 @@ const auth = betterAuth({
|
|
|
164
142
|
// in their app.config.ts when they verify email ownership through other
|
|
165
143
|
// means (OTP, invitation token, claim-account flow, etc.).
|
|
166
144
|
sendOnSignUp: AUTH_CONFIG.sendVerificationEmailOnSignup ?? true,
|
|
167
|
-
sendVerificationEmail:
|
|
168
|
-
try {
|
|
169
|
-
const verifyUrl = `${baseUrl}/api/auth/verify-email?token=${token}`;
|
|
170
|
-
const template = await sendVerifyEmail({
|
|
171
|
-
userName: user.firstName || "",
|
|
172
|
-
verificationUrl: verifyUrl,
|
|
173
|
-
appName: process.env.NEXT_PUBLIC_APP_NAME || "Your App"
|
|
174
|
-
}, I18N_CONFIG.defaultLocale);
|
|
175
|
-
const response = await emailService.send({
|
|
176
|
-
to: user.email,
|
|
177
|
-
...template
|
|
178
|
-
});
|
|
179
|
-
if (!response.success) {
|
|
180
|
-
console.error("Failed to send verification email:", response.error);
|
|
181
|
-
throw new Error("Failed to send verification email");
|
|
182
|
-
}
|
|
183
|
-
} catch (error) {
|
|
184
|
-
console.error("Error sending verification email:", error);
|
|
185
|
-
throw error;
|
|
186
|
-
}
|
|
187
|
-
},
|
|
145
|
+
sendVerificationEmail: (params) => sendVerificationEmailCallback(params, emailService),
|
|
188
146
|
verifyTokenExpiresIn: 60 * 60 * 24
|
|
189
147
|
// 24 hours
|
|
190
148
|
},
|
|
@@ -1340,6 +1340,7 @@ export declare const CORE_SELECTORS: {
|
|
|
1340
1340
|
readonly container: "devtools-api-explorer";
|
|
1341
1341
|
readonly mobileToggle: "devtools-api-explorer-mobile-toggle";
|
|
1342
1342
|
readonly docsBtn: "devtools-api-explorer-docs-btn";
|
|
1343
|
+
readonly panelDivider: "devtools-api-explorer-panel-divider";
|
|
1343
1344
|
readonly sidebar: {
|
|
1344
1345
|
readonly container: "devtools-api-sidebar";
|
|
1345
1346
|
readonly collapsed: "devtools-api-sidebar-collapsed";
|
|
@@ -1377,6 +1378,7 @@ export declare const CORE_SELECTORS: {
|
|
|
1377
1378
|
readonly tabHeaders: "devtools-api-request-tab-headers";
|
|
1378
1379
|
readonly tabBody: "devtools-api-request-tab-body";
|
|
1379
1380
|
readonly tabPresets: "devtools-api-request-tab-presets";
|
|
1381
|
+
readonly toggleSession: "devtools-api-request-toggle-session";
|
|
1380
1382
|
};
|
|
1381
1383
|
readonly response: {
|
|
1382
1384
|
readonly panel: "devtools-api-response-panel";
|
|
@@ -1396,6 +1398,7 @@ export declare const CORE_SELECTORS: {
|
|
|
1396
1398
|
readonly card: "devtools-api-presets-card-{id}";
|
|
1397
1399
|
readonly viewBtn: "devtools-api-presets-view-{id}";
|
|
1398
1400
|
readonly applyBtn: "devtools-api-presets-apply-{id}";
|
|
1401
|
+
readonly regenerateRunToken: "devtools-api-presets-regenerate-run-token";
|
|
1399
1402
|
};
|
|
1400
1403
|
};
|
|
1401
1404
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-selectors.d.ts","sourceRoot":"","sources":["../../../src/lib/selectors/core-selectors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAiBH;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"core-selectors.d.ts","sourceRoot":"","sources":["../../../src/lib/selectors/core-selectors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAiBH;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAejB,CAAA;AAEV;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,cAAc,CAAA;AAGrD,cAAc,WAAW,CAAA"}
|
|
@@ -184,6 +184,7 @@ export declare const DEVTOOLS_SELECTORS: {
|
|
|
184
184
|
readonly container: "devtools-api-explorer";
|
|
185
185
|
readonly mobileToggle: "devtools-api-explorer-mobile-toggle";
|
|
186
186
|
readonly docsBtn: "devtools-api-explorer-docs-btn";
|
|
187
|
+
readonly panelDivider: "devtools-api-explorer-panel-divider";
|
|
187
188
|
readonly sidebar: {
|
|
188
189
|
readonly container: "devtools-api-sidebar";
|
|
189
190
|
readonly collapsed: "devtools-api-sidebar-collapsed";
|
|
@@ -221,6 +222,7 @@ export declare const DEVTOOLS_SELECTORS: {
|
|
|
221
222
|
readonly tabHeaders: "devtools-api-request-tab-headers";
|
|
222
223
|
readonly tabBody: "devtools-api-request-tab-body";
|
|
223
224
|
readonly tabPresets: "devtools-api-request-tab-presets";
|
|
225
|
+
readonly toggleSession: "devtools-api-request-toggle-session";
|
|
224
226
|
};
|
|
225
227
|
readonly response: {
|
|
226
228
|
readonly panel: "devtools-api-response-panel";
|
|
@@ -240,6 +242,7 @@ export declare const DEVTOOLS_SELECTORS: {
|
|
|
240
242
|
readonly card: "devtools-api-presets-card-{id}";
|
|
241
243
|
readonly viewBtn: "devtools-api-presets-view-{id}";
|
|
242
244
|
readonly applyBtn: "devtools-api-presets-apply-{id}";
|
|
245
|
+
readonly regenerateRunToken: "devtools-api-presets-regenerate-run-token";
|
|
243
246
|
};
|
|
244
247
|
};
|
|
245
248
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devtools.selectors.d.ts","sourceRoot":"","sources":["../../../../src/lib/selectors/domains/devtools.selectors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAmJ7B;;;;;;;;;;;;;;;;;;;;;;OAsBG
|
|
1
|
+
{"version":3,"file":"devtools.selectors.d.ts","sourceRoot":"","sources":["../../../../src/lib/selectors/domains/devtools.selectors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAmJ7B;;;;;;;;;;;;;;;;;;;;;;OAsBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwEK,CAAA;AAEV,MAAM,MAAM,qBAAqB,GAAG,OAAO,kBAAkB,CAAA"}
|
|
@@ -172,6 +172,7 @@ const DEVTOOLS_SELECTORS = {
|
|
|
172
172
|
container: "devtools-api-explorer",
|
|
173
173
|
mobileToggle: "devtools-api-explorer-mobile-toggle",
|
|
174
174
|
docsBtn: "devtools-api-explorer-docs-btn",
|
|
175
|
+
panelDivider: "devtools-api-explorer-panel-divider",
|
|
175
176
|
// Sidebar - endpoint navigation
|
|
176
177
|
sidebar: {
|
|
177
178
|
container: "devtools-api-sidebar",
|
|
@@ -212,7 +213,8 @@ const DEVTOOLS_SELECTORS = {
|
|
|
212
213
|
tabParams: "devtools-api-request-tab-params",
|
|
213
214
|
tabHeaders: "devtools-api-request-tab-headers",
|
|
214
215
|
tabBody: "devtools-api-request-tab-body",
|
|
215
|
-
tabPresets: "devtools-api-request-tab-presets"
|
|
216
|
+
tabPresets: "devtools-api-request-tab-presets",
|
|
217
|
+
toggleSession: "devtools-api-request-toggle-session"
|
|
216
218
|
},
|
|
217
219
|
// Response panel
|
|
218
220
|
response: {
|
|
@@ -233,7 +235,8 @@ const DEVTOOLS_SELECTORS = {
|
|
|
233
235
|
empty: "devtools-api-presets-empty",
|
|
234
236
|
card: "devtools-api-presets-card-{id}",
|
|
235
237
|
viewBtn: "devtools-api-presets-view-{id}",
|
|
236
|
-
applyBtn: "devtools-api-presets-apply-{id}"
|
|
238
|
+
applyBtn: "devtools-api-presets-apply-{id}",
|
|
239
|
+
regenerateRunToken: "devtools-api-presets-regenerate-run-token"
|
|
237
240
|
}
|
|
238
241
|
}
|
|
239
242
|
};
|
|
@@ -1339,6 +1339,7 @@ export declare const SELECTORS: {
|
|
|
1339
1339
|
readonly container: "devtools-api-explorer";
|
|
1340
1340
|
readonly mobileToggle: "devtools-api-explorer-mobile-toggle";
|
|
1341
1341
|
readonly docsBtn: "devtools-api-explorer-docs-btn";
|
|
1342
|
+
readonly panelDivider: "devtools-api-explorer-panel-divider";
|
|
1342
1343
|
readonly sidebar: {
|
|
1343
1344
|
readonly container: "devtools-api-sidebar";
|
|
1344
1345
|
readonly collapsed: "devtools-api-sidebar-collapsed";
|
|
@@ -1376,6 +1377,7 @@ export declare const SELECTORS: {
|
|
|
1376
1377
|
readonly tabHeaders: "devtools-api-request-tab-headers";
|
|
1377
1378
|
readonly tabBody: "devtools-api-request-tab-body";
|
|
1378
1379
|
readonly tabPresets: "devtools-api-request-tab-presets";
|
|
1380
|
+
readonly toggleSession: "devtools-api-request-toggle-session";
|
|
1379
1381
|
};
|
|
1380
1382
|
readonly response: {
|
|
1381
1383
|
readonly panel: "devtools-api-response-panel";
|
|
@@ -1395,6 +1397,7 @@ export declare const SELECTORS: {
|
|
|
1395
1397
|
readonly card: "devtools-api-presets-card-{id}";
|
|
1396
1398
|
readonly viewBtn: "devtools-api-presets-view-{id}";
|
|
1397
1399
|
readonly applyBtn: "devtools-api-presets-apply-{id}";
|
|
1400
|
+
readonly regenerateRunToken: "devtools-api-presets-regenerate-run-token";
|
|
1398
1401
|
};
|
|
1399
1402
|
};
|
|
1400
1403
|
};
|
|
@@ -2920,6 +2923,7 @@ declare const _default: {
|
|
|
2920
2923
|
readonly container: "devtools-api-explorer";
|
|
2921
2924
|
readonly mobileToggle: "devtools-api-explorer-mobile-toggle";
|
|
2922
2925
|
readonly docsBtn: "devtools-api-explorer-docs-btn";
|
|
2926
|
+
readonly panelDivider: "devtools-api-explorer-panel-divider";
|
|
2923
2927
|
readonly sidebar: {
|
|
2924
2928
|
readonly container: "devtools-api-sidebar";
|
|
2925
2929
|
readonly collapsed: "devtools-api-sidebar-collapsed";
|
|
@@ -2957,6 +2961,7 @@ declare const _default: {
|
|
|
2957
2961
|
readonly tabHeaders: "devtools-api-request-tab-headers";
|
|
2958
2962
|
readonly tabBody: "devtools-api-request-tab-body";
|
|
2959
2963
|
readonly tabPresets: "devtools-api-request-tab-presets";
|
|
2964
|
+
readonly toggleSession: "devtools-api-request-toggle-session";
|
|
2960
2965
|
};
|
|
2961
2966
|
readonly response: {
|
|
2962
2967
|
readonly panel: "devtools-api-response-panel";
|
|
@@ -2976,6 +2981,7 @@ declare const _default: {
|
|
|
2976
2981
|
readonly card: "devtools-api-presets-card-{id}";
|
|
2977
2982
|
readonly viewBtn: "devtools-api-presets-view-{id}";
|
|
2978
2983
|
readonly applyBtn: "devtools-api-presets-apply-{id}";
|
|
2984
|
+
readonly regenerateRunToken: "devtools-api-presets-regenerate-run-token";
|
|
2979
2985
|
};
|
|
2980
2986
|
};
|
|
2981
2987
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../../src/lib/selectors/selectors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAGH,OAAO,EA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAM9C,wBAOC"}
|
package/dist/styles/classes.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"generated": "2026-07-
|
|
3
|
-
"totalClasses":
|
|
2
|
+
"generated": "2026-07-29T17:12:34.014Z",
|
|
3
|
+
"totalClasses": 1087,
|
|
4
4
|
"classes": [
|
|
5
5
|
"!text-2xl",
|
|
6
6
|
"''",
|
|
@@ -137,6 +137,7 @@
|
|
|
137
137
|
"bg-black/80",
|
|
138
138
|
"bg-blue-50",
|
|
139
139
|
"bg-border",
|
|
140
|
+
"bg-border/40",
|
|
140
141
|
"bg-card",
|
|
141
142
|
"bg-destructive",
|
|
142
143
|
"bg-destructive/10",
|
|
@@ -144,6 +145,7 @@
|
|
|
144
145
|
"bg-emerald-100",
|
|
145
146
|
"bg-emerald-50",
|
|
146
147
|
"bg-foreground",
|
|
148
|
+
"bg-foreground/25",
|
|
147
149
|
"bg-gradient-to-b",
|
|
148
150
|
"bg-gradient-to-br",
|
|
149
151
|
"bg-gray-100",
|
|
@@ -154,6 +156,7 @@
|
|
|
154
156
|
"bg-muted/10",
|
|
155
157
|
"bg-muted/20",
|
|
156
158
|
"bg-muted/30",
|
|
159
|
+
"bg-muted/40",
|
|
157
160
|
"bg-muted/50",
|
|
158
161
|
"bg-neutral-950",
|
|
159
162
|
"bg-popover",
|
|
@@ -228,6 +231,7 @@
|
|
|
228
231
|
"column",
|
|
229
232
|
"columns",
|
|
230
233
|
"container",
|
|
234
|
+
"cursor-col-resize",
|
|
231
235
|
"cursor-default",
|
|
232
236
|
"cursor-grab",
|
|
233
237
|
"cursor-help",
|
|
@@ -362,6 +366,7 @@
|
|
|
362
366
|
"flex-row",
|
|
363
367
|
"flex-shrink-0",
|
|
364
368
|
"flex-wrap",
|
|
369
|
+
"focus-visible:bg-primary/60",
|
|
365
370
|
"focus-visible:outline-none",
|
|
366
371
|
"focus-visible:ring-0",
|
|
367
372
|
"focus-visible:ring-1",
|
|
@@ -451,7 +456,6 @@
|
|
|
451
456
|
"h-[90vh]",
|
|
452
457
|
"h-[calc(100%-5rem)]",
|
|
453
458
|
"h-[calc(100vh-12rem)]",
|
|
454
|
-
"h-[calc(100vh-4rem)]",
|
|
455
459
|
"h-auto",
|
|
456
460
|
"h-full",
|
|
457
461
|
"h-px",
|
|
@@ -481,6 +485,7 @@
|
|
|
481
485
|
"hover:bg-primary",
|
|
482
486
|
"hover:bg-primary-foreground/20",
|
|
483
487
|
"hover:bg-primary/20",
|
|
488
|
+
"hover:bg-primary/60",
|
|
484
489
|
"hover:bg-purple-50",
|
|
485
490
|
"hover:bg-purple-700",
|
|
486
491
|
"hover:bg-red-50",
|
|
@@ -539,13 +544,11 @@
|
|
|
539
544
|
"left-[50%]",
|
|
540
545
|
"lg:block",
|
|
541
546
|
"lg:border-b-0",
|
|
542
|
-
"lg:border-r",
|
|
543
547
|
"lg:col-span-2",
|
|
544
548
|
"lg:col-span-3",
|
|
545
549
|
"lg:col-span-9",
|
|
546
550
|
"lg:flex",
|
|
547
551
|
"lg:flex-1",
|
|
548
|
-
"lg:flex-[1.2]",
|
|
549
552
|
"lg:flex-row",
|
|
550
553
|
"lg:grid-cols-12",
|
|
551
554
|
"lg:grid-cols-2",
|
|
@@ -1014,6 +1017,8 @@
|
|
|
1014
1017
|
"uppercase",
|
|
1015
1018
|
"variant:",
|
|
1016
1019
|
"visible",
|
|
1020
|
+
"w-0.5",
|
|
1021
|
+
"w-1.5",
|
|
1017
1022
|
"w-1/2",
|
|
1018
1023
|
"w-1/3",
|
|
1019
1024
|
"w-1/4",
|