@tscircuit/fake-snippets 0.0.113 → 0.0.114
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.
|
@@ -10,6 +10,7 @@ export default withRouteSpec({
|
|
|
10
10
|
owner_github_username: z.string().optional(),
|
|
11
11
|
is_writable: z.boolean().optional(),
|
|
12
12
|
name: z.string().optional(),
|
|
13
|
+
limit: z.number().int().min(1).optional(),
|
|
13
14
|
}),
|
|
14
15
|
jsonResponse: z.object({
|
|
15
16
|
ok: z.boolean(),
|
|
@@ -25,8 +26,13 @@ export default withRouteSpec({
|
|
|
25
26
|
),
|
|
26
27
|
}),
|
|
27
28
|
})(async (req, ctx) => {
|
|
28
|
-
const {
|
|
29
|
-
|
|
29
|
+
const {
|
|
30
|
+
creator_account_id,
|
|
31
|
+
owner_github_username,
|
|
32
|
+
name,
|
|
33
|
+
is_writable,
|
|
34
|
+
limit,
|
|
35
|
+
} = req.commonParams
|
|
30
36
|
|
|
31
37
|
const auth = "auth" in ctx && ctx.auth ? ctx.auth : null
|
|
32
38
|
|
|
@@ -64,7 +70,9 @@ export default withRouteSpec({
|
|
|
64
70
|
if (name) {
|
|
65
71
|
packages = packages.filter((p) => p.name === name)
|
|
66
72
|
}
|
|
67
|
-
|
|
73
|
+
if (limit) {
|
|
74
|
+
packages = packages.slice(0, limit)
|
|
75
|
+
}
|
|
68
76
|
if (is_writable && auth) {
|
|
69
77
|
packages = packages.filter(canManagePackage)
|
|
70
78
|
}
|
package/package.json
CHANGED
|
@@ -274,7 +274,7 @@ export const CodeEditorHeader: React.FC<CodeEditorHeaderProps> = ({
|
|
|
274
274
|
|
|
275
275
|
return (
|
|
276
276
|
<>
|
|
277
|
-
<div className="flex items-center gap-2 px-2 border-b border-gray-200">
|
|
277
|
+
<div className="flex items-center gap-2 px-2 border-b md:py-2 border-gray-200">
|
|
278
278
|
<button
|
|
279
279
|
className={`text-gray-400 scale-90 p-0 transition-[width,opacity] duration-300 ease-in-out overflow-hidden ${
|
|
280
280
|
sidebarOpen
|