@sakaniui/react 0.11.2 → 0.12.0
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/AGENTS.md +13 -3
- package/CHANGELOG.md +33 -0
- package/dist/{TopBar-O_56x94F.js → TopBar-DRGud3JP.js} +223 -223
- package/dist/{TopBar-7GwvQXGS.cjs → TopBar-Dd_xHXBv.cjs} +1 -1
- package/dist/blocks.cjs +2 -2
- package/dist/blocks.mjs +81 -81
- package/dist/components/ChainOfThought/ChainOfThought.d.ts +72 -0
- package/dist/components/ChainOfThought/SourceLogo.d.ts +13 -0
- package/dist/components/ChainOfThought/index.d.ts +6 -0
- package/dist/components/ChainOfThought/logoData.d.ts +93 -0
- package/dist/components/ChainOfThought/logoIcons.d.ts +11 -0
- package/dist/emoji-index.json +1 -1
- package/dist/file-text-B2rmiOJD.cjs +1 -0
- package/dist/{file-text-DSD625_l.js → file-text-CuRYymVv.js} +34 -34
- package/dist/{help-circle-B0koiJUs.js → help-circle-BufsknPE.js} +9 -9
- package/dist/help-circle-C1LENUMu.cjs +1 -0
- package/dist/icon-index.json +1 -1
- package/dist/icons.cjs +1 -1
- package/dist/icons.mjs +3932 -3938
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +1796 -1317
- package/dist/{logout-BW8ksDGk.js → logout-Mc5-u8cG.js} +10 -4
- package/dist/logout-g8G9uxDa.cjs +1 -0
- package/dist/manifest.json +390 -12
- package/dist/style.css +1 -1
- package/package.json +2 -1
- package/dist/file-text-DEGE-_aO.cjs +0 -1
- package/dist/help-circle-0qi1skw5.cjs +0 -1
- package/dist/logout-DkdFsC2P.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z as e } from "./help-circle-BufsknPE.js";
|
|
2
2
|
//#region src/icons/outline/copy.ts
|
|
3
3
|
var t = /*#__PURE__*/ e("copy", ["M7 9.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667l0 -8.666", "M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1"]), n = /*#__PURE__*/ e("info-circle", [
|
|
4
4
|
"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",
|
|
@@ -21,17 +21,23 @@ var t = /*#__PURE__*/ e("copy", ["M7 9.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a
|
|
|
21
21
|
"M5 12l14 0",
|
|
22
22
|
"M13 18l6 -6",
|
|
23
23
|
"M13 6l6 6"
|
|
24
|
-
]), s = /*#__PURE__*/ e("
|
|
24
|
+
]), s = /*#__PURE__*/ e("world", [
|
|
25
|
+
"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",
|
|
26
|
+
"M3.6 9h16.8",
|
|
27
|
+
"M3.6 15h16.8",
|
|
28
|
+
"M11.5 3a17 17 0 0 0 0 18",
|
|
29
|
+
"M12.5 3a17 17 0 0 1 0 18"
|
|
30
|
+
]), c = /*#__PURE__*/ e("current-location", [
|
|
25
31
|
"M9 12a3 3 0 1 0 6 0a3 3 0 1 0 -6 0",
|
|
26
32
|
"M4 12a8 8 0 1 0 16 0a8 8 0 1 0 -16 0",
|
|
27
33
|
"M12 2l0 2",
|
|
28
34
|
"M12 20l0 2",
|
|
29
35
|
"M20 12l2 0",
|
|
30
36
|
"M2 12l2 0"
|
|
31
|
-
]),
|
|
37
|
+
]), l = /*#__PURE__*/ e("logout", [
|
|
32
38
|
"M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2",
|
|
33
39
|
"M9 12h12l-3 -3",
|
|
34
40
|
"M18 15l3 -3"
|
|
35
41
|
]);
|
|
36
42
|
//#endregion
|
|
37
|
-
export {
|
|
43
|
+
export { a, n as c, o as i, t as l, c as n, i as o, s as r, r as s, l as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./help-circle-C1LENUMu.cjs");var t=e.z(`copy`,[`M7 9.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667l0 -8.666`,`M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1`]),n=e.z(`info-circle`,[`M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0`,`M12 9h.01`,`M11 12h1v4h1`]),r=e.z(`chart-column`,[`M4 20h3`,`M17 20h3`,`M10.5 20h3`,`M4 16h3`,`M17 16h3`,`M10.5 16h3`,`M4 12h3`,`M17 12h3`,`M10.5 12h3`,`M4 8h3`,`M17 8h3`,`M4 4h3`]),i=e.z(`receipt`,[`M5 21v-16a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v16l-3 -2l-2 2l-2 -2l-2 2l-2 -2l-3 2m4 -14h6m-6 4h6m-2 4h2`]),a=e.z(`player-play`,[`M7 4v16l13 -8l-13 -8`]),o=e.z(`arrow-right`,[`M5 12l14 0`,`M13 18l6 -6`,`M13 6l6 6`]),s=e.z(`world`,[`M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0`,`M3.6 9h16.8`,`M3.6 15h16.8`,`M11.5 3a17 17 0 0 0 0 18`,`M12.5 3a17 17 0 0 1 0 18`]),c=e.z(`current-location`,[`M9 12a3 3 0 1 0 6 0a3 3 0 1 0 -6 0`,`M4 12a8 8 0 1 0 16 0a8 8 0 1 0 -16 0`,`M12 2l0 2`,`M12 20l0 2`,`M20 12l2 0`,`M2 12l2 0`]),l=e.z(`logout`,[`M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2`,`M9 12h12l-3 -3`,`M18 15l3 -3`]);Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return l}});
|
package/dist/manifest.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 6,
|
|
3
3
|
"name": "@sakaniui/react",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.12.0",
|
|
5
5
|
"description": "Machine-readable contract of the SakaniUI React library, generated from its TypeScript source.",
|
|
6
6
|
"docs": "https://www.sakaniui.com",
|
|
7
7
|
"guide": "https://www.sakaniui.com/llms-full.txt",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@sakaniui/react/emoji": "Fluent Emoji (full colour): EmojiName, one module each (1594 emoji, 311 with skin tones)."
|
|
25
25
|
},
|
|
26
26
|
"conventions": {
|
|
27
|
-
"version": "This manifest describes @sakaniui/react@0.
|
|
27
|
+
"version": "This manifest describes @sakaniui/react@0.12.0. Each component has `since`, the first release that contained it; a prop added later has its own `since`, and a value added later is listed in the prop's `valuesSince`. If the project has an older version installed, anything newer than that does not exist there.",
|
|
28
28
|
"acceptsNativeProps": "Components forward native HTML attributes (className, style, aria-*, event handlers) to their root element unless a prop says otherwise; only the props that are specific to SakaniUI are listed here.",
|
|
29
29
|
"accessibleName": "When `contract.requiresAccessibleName` is true, a required prop (aria-label, aria-labelledby or an alt text) is the only thing that names the control or image. Do not omit it.",
|
|
30
30
|
"tokens": "Use only the token names listed under `tokens`. Colour tokens follow the theme (the `.dark` class flips them); do not hard-code colours.",
|
|
@@ -459,9 +459,9 @@
|
|
|
459
459
|
}
|
|
460
460
|
},
|
|
461
461
|
"counts": {
|
|
462
|
-
"components":
|
|
462
|
+
"components": 139,
|
|
463
463
|
"blocks": 42,
|
|
464
|
-
"utilities":
|
|
464
|
+
"utilities": 10
|
|
465
465
|
},
|
|
466
466
|
"components": [
|
|
467
467
|
{
|
|
@@ -2174,6 +2174,200 @@
|
|
|
2174
2174
|
"since": "0.3.0",
|
|
2175
2175
|
"example": "import { CartItem } from '@sakaniui/react';\n\n<CartItem image=\"/images/example.jpg\" name=\"Name\" price={49} quantity={1} />"
|
|
2176
2176
|
},
|
|
2177
|
+
{
|
|
2178
|
+
"name": "ChainOfThought",
|
|
2179
|
+
"kind": "component",
|
|
2180
|
+
"category": "Composite",
|
|
2181
|
+
"import": "@sakaniui/react",
|
|
2182
|
+
"summary": "An AI agent's visible work: a header, steps joined by a rail (ChainOfThoughtStep), and a live Working line. `open` / `defaultOpen` toggles it; `status` and `elapsed` or `startedAt` drive the working line.",
|
|
2183
|
+
"props": [
|
|
2184
|
+
{
|
|
2185
|
+
"name": "title",
|
|
2186
|
+
"type": "ReactNode",
|
|
2187
|
+
"required": true,
|
|
2188
|
+
"description": "The header text, e.g. \"Ran 3 searches\" or \"Thinking\"."
|
|
2189
|
+
},
|
|
2190
|
+
{
|
|
2191
|
+
"name": "icon",
|
|
2192
|
+
"type": "IconComponent",
|
|
2193
|
+
"required": false,
|
|
2194
|
+
"description": "The header icon, drawn at 16px. Defaults to a magnifier."
|
|
2195
|
+
},
|
|
2196
|
+
{
|
|
2197
|
+
"name": "open",
|
|
2198
|
+
"type": "boolean",
|
|
2199
|
+
"required": false,
|
|
2200
|
+
"description": "Controlled open state. Omit it to let the component keep its own (see defaultOpen)."
|
|
2201
|
+
},
|
|
2202
|
+
{
|
|
2203
|
+
"name": "defaultOpen",
|
|
2204
|
+
"type": "boolean",
|
|
2205
|
+
"required": false,
|
|
2206
|
+
"default": true,
|
|
2207
|
+
"description": "Initial open state when uncontrolled. Defaults to true."
|
|
2208
|
+
},
|
|
2209
|
+
{
|
|
2210
|
+
"name": "onOpenChange",
|
|
2211
|
+
"type": "((open: boolean) => void)",
|
|
2212
|
+
"required": false,
|
|
2213
|
+
"description": "Called with the new state when the header is clicked."
|
|
2214
|
+
},
|
|
2215
|
+
{
|
|
2216
|
+
"name": "status",
|
|
2217
|
+
"type": "\"done\" | \"working\"",
|
|
2218
|
+
"required": false,
|
|
2219
|
+
"values": [
|
|
2220
|
+
"done",
|
|
2221
|
+
"working"
|
|
2222
|
+
],
|
|
2223
|
+
"default": "done",
|
|
2224
|
+
"description": "Adds the working line under the steps: \"working\" (sparkle, shimmer) or \"done\" (\"Worked for 11.2s\")."
|
|
2225
|
+
},
|
|
2226
|
+
{
|
|
2227
|
+
"name": "elapsed",
|
|
2228
|
+
"type": "number",
|
|
2229
|
+
"required": false,
|
|
2230
|
+
"description": "Elapsed seconds for the working line."
|
|
2231
|
+
},
|
|
2232
|
+
{
|
|
2233
|
+
"name": "startedAt",
|
|
2234
|
+
"type": "number",
|
|
2235
|
+
"required": false,
|
|
2236
|
+
"description": "Epoch ms when the work started; the working line then counts up on its own."
|
|
2237
|
+
},
|
|
2238
|
+
{
|
|
2239
|
+
"name": "children",
|
|
2240
|
+
"type": "ReactNode",
|
|
2241
|
+
"required": false,
|
|
2242
|
+
"description": "ChainOfThoughtStep elements."
|
|
2243
|
+
},
|
|
2244
|
+
{
|
|
2245
|
+
"name": "className",
|
|
2246
|
+
"type": "string",
|
|
2247
|
+
"required": false
|
|
2248
|
+
}
|
|
2249
|
+
],
|
|
2250
|
+
"contract": {
|
|
2251
|
+
"requiredProps": [
|
|
2252
|
+
"title"
|
|
2253
|
+
],
|
|
2254
|
+
"requiresAccessibleName": false
|
|
2255
|
+
},
|
|
2256
|
+
"since": "0.12.0",
|
|
2257
|
+
"example": "import { ChainOfThought } from '@sakaniui/react';\n\n<ChainOfThought title=\"Title\" />",
|
|
2258
|
+
"recipes": [
|
|
2259
|
+
{
|
|
2260
|
+
"title": "Stream an agent run: steps arrive, the timer ticks, then it finishes",
|
|
2261
|
+
"description": "ChainOfThought is presentational. Keep the steps in state, append one as your agent starts it, mark the previous one `done`, and pass `status=\"working\"` with `startedAt` so the time counts up on its own. When the run ends switch to `status=\"done\"` with the final `elapsed` (seconds) and change the title. The rail stops at the last step by itself.",
|
|
2262
|
+
"code": "import React from 'react';\nimport { ChainOfThought, ChainOfThoughtStep, SourceStack } from '@sakaniui/react';\nimport { IconBrandReddit } from '@sakaniui/react/icons';\n\ntype Step = { id: string; label: string; query?: string; count?: string };\n\nexport const Example = ({ steps, finished, startedAt, elapsed }: { steps: Step[]; finished: boolean; startedAt: number; elapsed?: number }) => (\n <ChainOfThought\n title={finished ? `Ran ${steps.length} searches` : 'Researching'}\n status={finished ? 'done' : 'working'}\n startedAt={startedAt}\n elapsed={elapsed}\n >\n {steps.map((s, i) => (\n <ChainOfThoughtStep\n key={s.id}\n status={!finished && i === steps.length - 1 ? 'active' : 'done'}\n icon={IconBrandReddit}\n label={s.label}\n query={s.query}\n count={s.count}\n sources={<SourceStack sources={[{ label: 'Reddit', icon: IconBrandReddit }]} />}\n />\n ))}\n </ChainOfThought>\n);"
|
|
2263
|
+
}
|
|
2264
|
+
],
|
|
2265
|
+
"aliases": [
|
|
2266
|
+
"thought chain",
|
|
2267
|
+
"reasoning steps",
|
|
2268
|
+
"reasoning trace",
|
|
2269
|
+
"agent steps",
|
|
2270
|
+
"agent activity",
|
|
2271
|
+
"agent trace",
|
|
2272
|
+
"thinking steps",
|
|
2273
|
+
"tool calls",
|
|
2274
|
+
"tool call log",
|
|
2275
|
+
"activity trace",
|
|
2276
|
+
"ai steps",
|
|
2277
|
+
"research steps"
|
|
2278
|
+
]
|
|
2279
|
+
},
|
|
2280
|
+
{
|
|
2281
|
+
"name": "ChainOfThoughtStep",
|
|
2282
|
+
"kind": "component",
|
|
2283
|
+
"category": "Composite",
|
|
2284
|
+
"import": "@sakaniui/react",
|
|
2285
|
+
"summary": "One step of an agent run: an icon, a label, an optional monospace `query`, a `count` and a `sources` row. `status` is pending, active (read in full) or done (muted).",
|
|
2286
|
+
"props": [
|
|
2287
|
+
{
|
|
2288
|
+
"name": "status",
|
|
2289
|
+
"type": "\"active\" | \"done\" | \"pending\"",
|
|
2290
|
+
"required": false,
|
|
2291
|
+
"values": [
|
|
2292
|
+
"active",
|
|
2293
|
+
"done",
|
|
2294
|
+
"pending"
|
|
2295
|
+
],
|
|
2296
|
+
"default": "done",
|
|
2297
|
+
"description": "pending (not started), active (in progress, read in full) or done (muted). Defaults to \"done\"."
|
|
2298
|
+
},
|
|
2299
|
+
{
|
|
2300
|
+
"name": "icon",
|
|
2301
|
+
"type": "IconComponent",
|
|
2302
|
+
"required": false,
|
|
2303
|
+
"description": "The step's icon, drawn at 16px. Defaults to a magnifier."
|
|
2304
|
+
},
|
|
2305
|
+
{
|
|
2306
|
+
"name": "label",
|
|
2307
|
+
"type": "ReactNode",
|
|
2308
|
+
"required": true,
|
|
2309
|
+
"description": "What happened, e.g. \"Searched X for\"."
|
|
2310
|
+
},
|
|
2311
|
+
{
|
|
2312
|
+
"name": "query",
|
|
2313
|
+
"type": "string",
|
|
2314
|
+
"required": false,
|
|
2315
|
+
"description": "The query or argument, shown in monospace after the label."
|
|
2316
|
+
},
|
|
2317
|
+
{
|
|
2318
|
+
"name": "count",
|
|
2319
|
+
"type": "ReactNode",
|
|
2320
|
+
"required": false,
|
|
2321
|
+
"description": "A result count on the right, e.g. \"7 posts\"."
|
|
2322
|
+
},
|
|
2323
|
+
{
|
|
2324
|
+
"name": "accent",
|
|
2325
|
+
"type": "string",
|
|
2326
|
+
"required": false,
|
|
2327
|
+
"description": "Colour of the spark that runs into the step while it is active. Defaults to the icon's brand colour when it is a logo from `sourceLogo()`."
|
|
2328
|
+
},
|
|
2329
|
+
{
|
|
2330
|
+
"name": "sources",
|
|
2331
|
+
"type": "ReactNode",
|
|
2332
|
+
"required": false,
|
|
2333
|
+
"description": "A row under the step, usually a <SourceStack>."
|
|
2334
|
+
},
|
|
2335
|
+
{
|
|
2336
|
+
"name": "sourcesLabel",
|
|
2337
|
+
"type": "string",
|
|
2338
|
+
"required": false,
|
|
2339
|
+
"default": "Sources",
|
|
2340
|
+
"description": "Text before the sources. Defaults to \"Sources\"."
|
|
2341
|
+
},
|
|
2342
|
+
{
|
|
2343
|
+
"name": "onSourcesClick",
|
|
2344
|
+
"type": "(() => void)",
|
|
2345
|
+
"required": false,
|
|
2346
|
+
"description": "Makes the sources row a button with a chevron, so the sources can be opened."
|
|
2347
|
+
},
|
|
2348
|
+
{
|
|
2349
|
+
"name": "className",
|
|
2350
|
+
"type": "string",
|
|
2351
|
+
"required": false
|
|
2352
|
+
}
|
|
2353
|
+
],
|
|
2354
|
+
"contract": {
|
|
2355
|
+
"requiredProps": [
|
|
2356
|
+
"label"
|
|
2357
|
+
],
|
|
2358
|
+
"requiresAccessibleName": false
|
|
2359
|
+
},
|
|
2360
|
+
"since": "0.12.0",
|
|
2361
|
+
"example": "import { ChainOfThoughtStep } from '@sakaniui/react';\n\n<ChainOfThoughtStep label=\"Label\" />",
|
|
2362
|
+
"aliases": [
|
|
2363
|
+
"reasoning step",
|
|
2364
|
+
"thought step",
|
|
2365
|
+
"agent step",
|
|
2366
|
+
"tool call",
|
|
2367
|
+
"search step",
|
|
2368
|
+
"task step"
|
|
2369
|
+
]
|
|
2370
|
+
},
|
|
2177
2371
|
{
|
|
2178
2372
|
"name": "ChatComposer",
|
|
2179
2373
|
"kind": "component",
|
|
@@ -4240,13 +4434,13 @@
|
|
|
4240
4434
|
"description": "Returns the item located at the specified index."
|
|
4241
4435
|
},
|
|
4242
4436
|
{
|
|
4243
|
-
"name": "__@iterator@
|
|
4437
|
+
"name": "__@iterator@15310",
|
|
4244
4438
|
"type": "() => ArrayIterator<number>",
|
|
4245
4439
|
"required": true,
|
|
4246
4440
|
"description": "Iterator"
|
|
4247
4441
|
},
|
|
4248
4442
|
{
|
|
4249
|
-
"name": "__@unscopables@
|
|
4443
|
+
"name": "__@unscopables@15340",
|
|
4250
4444
|
"type": "{ [x: number]: boolean | undefined; length?: boolean | undefined; toString?: boolean | undefined; toLocaleString?: boolean | undefined; pop?: boolean | undefined; push?: boolean | undefined; concat?: boolean | undefined; join?: boolean | undefined; reverse?: boolean | undefined; shift?: boolean | undefined; slice?: boolean | undefined; sort?: boolean | undefined; splice?: boolean | undefined; unshift?: boolean | undefined; indexOf?: boolean | undefined; lastIndexOf?: boolean | undefined; every?: boolean | undefined; some?: boolean | undefined; forEach?: boolean | undefined; map?: boolean | undefined; filter?: boolean | undefined; reduce?: boolean | undefined; reduceRight?: boolean | undefined; find?: boolean | undefined; findIndex?: boolean | undefined; fill?: boolean | undefined; copyWithin?: boolean | undefined; entries?: boolean | undefined; keys?: boolean | undefined; values?: boolean | undefined; includes?: boolean | undefined; flatMap?: boolean | undefined; flat?: boolean | undefined; at?: boolean | undefined; [Symbol.iterator]?: boolean | undefined; readonly [Symbol.unscopables]?: boolean | undefined; }",
|
|
4251
4445
|
"required": true,
|
|
4252
4446
|
"description": "Is an object whose properties have the value 'true' when they will be absent when used in a 'with' statement."
|
|
@@ -4822,13 +5016,13 @@
|
|
|
4822
5016
|
"description": "Returns the item located at the specified index."
|
|
4823
5017
|
},
|
|
4824
5018
|
{
|
|
4825
|
-
"name": "__@iterator@
|
|
5019
|
+
"name": "__@iterator@15310",
|
|
4826
5020
|
"type": "() => ArrayIterator<number>",
|
|
4827
5021
|
"required": true,
|
|
4828
5022
|
"description": "Iterator"
|
|
4829
5023
|
},
|
|
4830
5024
|
{
|
|
4831
|
-
"name": "__@unscopables@
|
|
5025
|
+
"name": "__@unscopables@15340",
|
|
4832
5026
|
"type": "{ [x: number]: boolean | undefined; length?: boolean | undefined; toString?: boolean | undefined; toLocaleString?: boolean | undefined; pop?: boolean | undefined; push?: boolean | undefined; concat?: boolean | undefined; join?: boolean | undefined; reverse?: boolean | undefined; shift?: boolean | undefined; slice?: boolean | undefined; sort?: boolean | undefined; splice?: boolean | undefined; unshift?: boolean | undefined; indexOf?: boolean | undefined; lastIndexOf?: boolean | undefined; every?: boolean | undefined; some?: boolean | undefined; forEach?: boolean | undefined; map?: boolean | undefined; filter?: boolean | undefined; reduce?: boolean | undefined; reduceRight?: boolean | undefined; find?: boolean | undefined; findIndex?: boolean | undefined; fill?: boolean | undefined; copyWithin?: boolean | undefined; entries?: boolean | undefined; keys?: boolean | undefined; values?: boolean | undefined; includes?: boolean | undefined; flatMap?: boolean | undefined; flat?: boolean | undefined; at?: boolean | undefined; [Symbol.iterator]?: boolean | undefined; readonly [Symbol.unscopables]?: boolean | undefined; }",
|
|
4833
5027
|
"required": true,
|
|
4834
5028
|
"description": "Is an object whose properties have the value 'true' when they will be absent when used in a 'with' statement."
|
|
@@ -5212,13 +5406,13 @@
|
|
|
5212
5406
|
"description": "Returns the item located at the specified index."
|
|
5213
5407
|
},
|
|
5214
5408
|
{
|
|
5215
|
-
"name": "__@iterator@
|
|
5409
|
+
"name": "__@iterator@15310",
|
|
5216
5410
|
"type": "() => ArrayIterator<number>",
|
|
5217
5411
|
"required": true,
|
|
5218
5412
|
"description": "Iterator"
|
|
5219
5413
|
},
|
|
5220
5414
|
{
|
|
5221
|
-
"name": "__@unscopables@
|
|
5415
|
+
"name": "__@unscopables@15340",
|
|
5222
5416
|
"type": "{ [x: number]: boolean | undefined; length?: boolean | undefined; toString?: boolean | undefined; toLocaleString?: boolean | undefined; pop?: boolean | undefined; push?: boolean | undefined; concat?: boolean | undefined; join?: boolean | undefined; reverse?: boolean | undefined; shift?: boolean | undefined; slice?: boolean | undefined; sort?: boolean | undefined; splice?: boolean | undefined; unshift?: boolean | undefined; indexOf?: boolean | undefined; lastIndexOf?: boolean | undefined; every?: boolean | undefined; some?: boolean | undefined; forEach?: boolean | undefined; map?: boolean | undefined; filter?: boolean | undefined; reduce?: boolean | undefined; reduceRight?: boolean | undefined; find?: boolean | undefined; findIndex?: boolean | undefined; fill?: boolean | undefined; copyWithin?: boolean | undefined; entries?: boolean | undefined; keys?: boolean | undefined; values?: boolean | undefined; includes?: boolean | undefined; flatMap?: boolean | undefined; flat?: boolean | undefined; at?: boolean | undefined; [Symbol.iterator]?: boolean | undefined; readonly [Symbol.unscopables]?: boolean | undefined; }",
|
|
5223
5417
|
"required": true,
|
|
5224
5418
|
"description": "Is an object whose properties have the value 'true' when they will be absent when used in a 'with' statement."
|
|
@@ -5519,13 +5713,13 @@
|
|
|
5519
5713
|
"description": "Returns the item located at the specified index."
|
|
5520
5714
|
},
|
|
5521
5715
|
{
|
|
5522
|
-
"name": "__@iterator@
|
|
5716
|
+
"name": "__@iterator@15310",
|
|
5523
5717
|
"type": "() => ArrayIterator<number>",
|
|
5524
5718
|
"required": true,
|
|
5525
5719
|
"description": "Iterator"
|
|
5526
5720
|
},
|
|
5527
5721
|
{
|
|
5528
|
-
"name": "__@unscopables@
|
|
5722
|
+
"name": "__@unscopables@15340",
|
|
5529
5723
|
"type": "{ [x: number]: boolean | undefined; length?: boolean | undefined; toString?: boolean | undefined; toLocaleString?: boolean | undefined; pop?: boolean | undefined; push?: boolean | undefined; concat?: boolean | undefined; join?: boolean | undefined; reverse?: boolean | undefined; shift?: boolean | undefined; slice?: boolean | undefined; sort?: boolean | undefined; splice?: boolean | undefined; unshift?: boolean | undefined; indexOf?: boolean | undefined; lastIndexOf?: boolean | undefined; every?: boolean | undefined; some?: boolean | undefined; forEach?: boolean | undefined; map?: boolean | undefined; filter?: boolean | undefined; reduce?: boolean | undefined; reduceRight?: boolean | undefined; find?: boolean | undefined; findIndex?: boolean | undefined; fill?: boolean | undefined; copyWithin?: boolean | undefined; entries?: boolean | undefined; keys?: boolean | undefined; values?: boolean | undefined; includes?: boolean | undefined; flatMap?: boolean | undefined; flat?: boolean | undefined; at?: boolean | undefined; [Symbol.iterator]?: boolean | undefined; readonly [Symbol.unscopables]?: boolean | undefined; }",
|
|
5530
5724
|
"required": true,
|
|
5531
5725
|
"description": "Is an object whose properties have the value 'true' when they will be absent when used in a 'with' statement."
|
|
@@ -8047,6 +8241,123 @@
|
|
|
8047
8241
|
"range input"
|
|
8048
8242
|
]
|
|
8049
8243
|
},
|
|
8244
|
+
{
|
|
8245
|
+
"name": "SourceLogo",
|
|
8246
|
+
"kind": "component",
|
|
8247
|
+
"category": "Composite",
|
|
8248
|
+
"import": "@sakaniui/react",
|
|
8249
|
+
"summary": "The real logo of a site an agent searched or read, in its brand colour: `<SourceLogo name=\"reddit\" />`, or `sourceLogo('reddit')` for any `icon` prop (a step's, a SourceStack chip's). Black brands draw in the text colour so they stay visible in dark mode.",
|
|
8250
|
+
"props": [
|
|
8251
|
+
{
|
|
8252
|
+
"name": "name",
|
|
8253
|
+
"type": "\"x\" | \"google\" | \"reddit\" | \"github\" | \"linkedin\" | \"youtube\" | \"hackernews\" | \"wikipedia\" | \"stackoverflow\" | \"producthunt\" | \"medium\" | \"notion\" | \"substack\" | \"arxiv\" | \"bluesky\" | \"perplexity\" | \"duckduckgo\"",
|
|
8254
|
+
"required": true,
|
|
8255
|
+
"values": [
|
|
8256
|
+
"x",
|
|
8257
|
+
"google",
|
|
8258
|
+
"reddit",
|
|
8259
|
+
"github",
|
|
8260
|
+
"linkedin",
|
|
8261
|
+
"youtube",
|
|
8262
|
+
"hackernews",
|
|
8263
|
+
"wikipedia",
|
|
8264
|
+
"stackoverflow",
|
|
8265
|
+
"producthunt",
|
|
8266
|
+
"medium",
|
|
8267
|
+
"notion",
|
|
8268
|
+
"substack",
|
|
8269
|
+
"arxiv",
|
|
8270
|
+
"bluesky",
|
|
8271
|
+
"perplexity",
|
|
8272
|
+
"duckduckgo"
|
|
8273
|
+
],
|
|
8274
|
+
"description": "Which site: \"google\", \"x\", \"reddit\", \"github\", \"linkedin\", \"youtube\", \"hackernews\", \"wikipedia\", \"stackoverflow\", \"producthunt\", \"medium\", \"notion\", \"substack\", \"arxiv\", \"bluesky\", \"perplexity\" or \"duckduckgo\"."
|
|
8275
|
+
},
|
|
8276
|
+
{
|
|
8277
|
+
"name": "size",
|
|
8278
|
+
"type": "string | number",
|
|
8279
|
+
"required": false,
|
|
8280
|
+
"default": 16,
|
|
8281
|
+
"description": "Rendered size: px, or any CSS length. Default 16."
|
|
8282
|
+
},
|
|
8283
|
+
{
|
|
8284
|
+
"name": "title",
|
|
8285
|
+
"type": "string",
|
|
8286
|
+
"required": false,
|
|
8287
|
+
"description": "Accessible name. Without it the logo is decorative (aria-hidden), which is right next to a text label."
|
|
8288
|
+
}
|
|
8289
|
+
],
|
|
8290
|
+
"contract": {
|
|
8291
|
+
"requiredProps": [
|
|
8292
|
+
"name"
|
|
8293
|
+
],
|
|
8294
|
+
"requiresAccessibleName": false
|
|
8295
|
+
},
|
|
8296
|
+
"since": "0.12.0",
|
|
8297
|
+
"example": "import { SourceLogo } from '@sakaniui/react';\n\n<SourceLogo name=\"x\" />",
|
|
8298
|
+
"aliases": [
|
|
8299
|
+
"brand logo",
|
|
8300
|
+
"site logo",
|
|
8301
|
+
"favicon",
|
|
8302
|
+
"website logo",
|
|
8303
|
+
"social logo",
|
|
8304
|
+
"colour logo"
|
|
8305
|
+
]
|
|
8306
|
+
},
|
|
8307
|
+
{
|
|
8308
|
+
"name": "SourceStack",
|
|
8309
|
+
"kind": "component",
|
|
8310
|
+
"category": "Composite",
|
|
8311
|
+
"import": "@sakaniui/react",
|
|
8312
|
+
"summary": "Overlapping site-icon chips for a step's sources: pass `sources` as { label, icon } (three to five read best).",
|
|
8313
|
+
"props": [
|
|
8314
|
+
{
|
|
8315
|
+
"name": "sources",
|
|
8316
|
+
"type": "SourceStackSource[]",
|
|
8317
|
+
"required": true,
|
|
8318
|
+
"description": "The sources, in order. Three to five read best.",
|
|
8319
|
+
"shape": {
|
|
8320
|
+
"type": "SourceStackSource",
|
|
8321
|
+
"collection": "array",
|
|
8322
|
+
"fields": [
|
|
8323
|
+
{
|
|
8324
|
+
"name": "label",
|
|
8325
|
+
"type": "string",
|
|
8326
|
+
"required": true,
|
|
8327
|
+
"description": "The site's name, e.g. \"Reddit\". Read out and shown as a tooltip."
|
|
8328
|
+
},
|
|
8329
|
+
{
|
|
8330
|
+
"name": "icon",
|
|
8331
|
+
"type": "IconComponent",
|
|
8332
|
+
"required": false,
|
|
8333
|
+
"description": "A brand or generic icon, drawn at 10px. Defaults to a globe."
|
|
8334
|
+
}
|
|
8335
|
+
]
|
|
8336
|
+
}
|
|
8337
|
+
},
|
|
8338
|
+
{
|
|
8339
|
+
"name": "className",
|
|
8340
|
+
"type": "string",
|
|
8341
|
+
"required": false
|
|
8342
|
+
}
|
|
8343
|
+
],
|
|
8344
|
+
"contract": {
|
|
8345
|
+
"requiredProps": [
|
|
8346
|
+
"sources"
|
|
8347
|
+
],
|
|
8348
|
+
"requiresAccessibleName": false
|
|
8349
|
+
},
|
|
8350
|
+
"since": "0.12.0",
|
|
8351
|
+
"example": "import { SourceStack } from '@sakaniui/react';\n\n<SourceStack sources={[{ label: \"Label\" }]} />",
|
|
8352
|
+
"aliases": [
|
|
8353
|
+
"sources",
|
|
8354
|
+
"favicon stack",
|
|
8355
|
+
"source chips",
|
|
8356
|
+
"citations",
|
|
8357
|
+
"citation chips",
|
|
8358
|
+
"site icons"
|
|
8359
|
+
]
|
|
8360
|
+
},
|
|
8050
8361
|
{
|
|
8051
8362
|
"name": "SpendingBalance",
|
|
8052
8363
|
"kind": "component",
|
|
@@ -9708,6 +10019,63 @@
|
|
|
9708
10019
|
"since": "0.3.0",
|
|
9709
10020
|
"example": "import { WishlistButton } from '@sakaniui/react';\n\n<WishlistButton />"
|
|
9710
10021
|
},
|
|
10022
|
+
{
|
|
10023
|
+
"name": "WorkingIndicator",
|
|
10024
|
+
"kind": "component",
|
|
10025
|
+
"category": "Composite",
|
|
10026
|
+
"import": "@sakaniui/react",
|
|
10027
|
+
"summary": "The live status line under an agent's steps: a sparkle, \"Working\" and the elapsed time (`startedAt` ticks on its own), or a check and \"Worked for 11s\" when done.",
|
|
10028
|
+
"props": [
|
|
10029
|
+
{
|
|
10030
|
+
"name": "status",
|
|
10031
|
+
"type": "\"done\" | \"working\"",
|
|
10032
|
+
"required": false,
|
|
10033
|
+
"values": [
|
|
10034
|
+
"done",
|
|
10035
|
+
"working"
|
|
10036
|
+
],
|
|
10037
|
+
"default": "done",
|
|
10038
|
+
"description": "\"working\" shows a sparkle and a shimmering label; \"done\" shows a check. Defaults to \"working\"."
|
|
10039
|
+
},
|
|
10040
|
+
{
|
|
10041
|
+
"name": "label",
|
|
10042
|
+
"type": "string",
|
|
10043
|
+
"required": false,
|
|
10044
|
+
"description": "Replaces the default label (\"Working\" / \"Worked for\")."
|
|
10045
|
+
},
|
|
10046
|
+
{
|
|
10047
|
+
"name": "elapsed",
|
|
10048
|
+
"type": "number",
|
|
10049
|
+
"required": false,
|
|
10050
|
+
"description": "Elapsed seconds. Takes precedence over startedAt."
|
|
10051
|
+
},
|
|
10052
|
+
{
|
|
10053
|
+
"name": "startedAt",
|
|
10054
|
+
"type": "number",
|
|
10055
|
+
"required": false,
|
|
10056
|
+
"description": "Epoch ms when the work started; while \"working\" the time ticks on its own."
|
|
10057
|
+
},
|
|
10058
|
+
{
|
|
10059
|
+
"name": "className",
|
|
10060
|
+
"type": "string",
|
|
10061
|
+
"required": false
|
|
10062
|
+
}
|
|
10063
|
+
],
|
|
10064
|
+
"contract": {
|
|
10065
|
+
"requiredProps": [],
|
|
10066
|
+
"requiresAccessibleName": false
|
|
10067
|
+
},
|
|
10068
|
+
"since": "0.12.0",
|
|
10069
|
+
"example": "import { WorkingIndicator } from '@sakaniui/react';\n\n<WorkingIndicator />",
|
|
10070
|
+
"aliases": [
|
|
10071
|
+
"thinking indicator",
|
|
10072
|
+
"working status",
|
|
10073
|
+
"agent status",
|
|
10074
|
+
"typing status",
|
|
10075
|
+
"elapsed timer",
|
|
10076
|
+
"shimmer label"
|
|
10077
|
+
]
|
|
10078
|
+
},
|
|
9711
10079
|
{
|
|
9712
10080
|
"name": "XIcon",
|
|
9713
10081
|
"kind": "component",
|
|
@@ -12785,6 +13153,16 @@
|
|
|
12785
13153
|
"import": "@sakaniui/react",
|
|
12786
13154
|
"since": "0.3.0"
|
|
12787
13155
|
},
|
|
13156
|
+
{
|
|
13157
|
+
"name": "sourceLogo",
|
|
13158
|
+
"kind": "helper",
|
|
13159
|
+
"import": "@sakaniui/react"
|
|
13160
|
+
},
|
|
13161
|
+
{
|
|
13162
|
+
"name": "sourceLogoNames",
|
|
13163
|
+
"kind": "helper",
|
|
13164
|
+
"import": "@sakaniui/react"
|
|
13165
|
+
},
|
|
12788
13166
|
{
|
|
12789
13167
|
"name": "syncLiquidBackdrop",
|
|
12790
13168
|
"kind": "helper",
|