@usevyre/ai-context 0.2.2 → 1.0.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/dist/cheat-sheets/index.md +1 -1
- package/dist/cheat-sheets/toast.md +2 -2
- package/dist/claude-context.md +2 -2
- package/dist/copilot-instructions.md +2 -2
- package/dist/cursor-rules.md +1 -1
- package/dist/full-context.md +2 -2
- package/dist/index.js +13 -13
- package/dist/schema.json +2 -2
- package/dist/tokens.json +2 -2
- package/dist/tokens.md +1 -1
- package/dist/version-info.json +1 -1
- package/dist/windsurf-rules.md +2 -2
- package/package.json +1 -1
|
@@ -29,6 +29,6 @@ Quick reference for AI agents — one file per component.
|
|
|
29
29
|
- [Switch](switch.md) — Toggle switch for boolean on/off settings.
|
|
30
30
|
- [Table](table.md) — Data table with optional sorting. Compose with TableHeader, TableRow, TableCell.
|
|
31
31
|
- [Tabs](tabs.md) — Tabbed navigation for switching between content panels.
|
|
32
|
-
- [Toast](toast.md) — Transient notification. Use the useToast hook to trigger toasts imperatively.
|
|
32
|
+
- [Toast](toast.md) — Transient notification. Use the useToast hook to trigger toasts imperatively. React: wrap app in <ToastProvider>. Vue: place <ToastViewport /> once in app root.
|
|
33
33
|
- [Tooltip](tooltip.md) — Short label that appears on hover/focus. For rich content use Popover instead.
|
|
34
34
|
- [Typography](typography.md) — Text rendering components with semantic scale. Includes Text, Heading, Lead, Code, Blockquote.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Toast — AI Cheat Sheet
|
|
2
2
|
> Quick reference for Claude / Cursor / Copilot
|
|
3
3
|
|
|
4
|
-
**Transient notification. Use the useToast hook to trigger toasts imperatively.**
|
|
4
|
+
**Transient notification. Use the useToast hook to trigger toasts imperatively. React: wrap app in <ToastProvider>. Vue: place <ToastViewport /> once in app root.**
|
|
5
5
|
|
|
6
6
|
```ts
|
|
7
|
-
import { useToast, ToastProvider } from "@usevyre/react"
|
|
7
|
+
import { useToast, ToastProvider } from "@usevyre/react" // Vue: import { useToast, ToastViewport } from "@usevyre/vue"
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
## Valid Props
|
package/dist/claude-context.md
CHANGED
|
@@ -815,10 +815,10 @@ import { Tabs, TabList, Tab, TabPanels, TabPanel } from "@usevyre/react"
|
|
|
815
815
|
|
|
816
816
|
### Toast
|
|
817
817
|
|
|
818
|
-
Transient notification. Use the useToast hook to trigger toasts imperatively.
|
|
818
|
+
Transient notification. Use the useToast hook to trigger toasts imperatively. React: wrap app in <ToastProvider>. Vue: place <ToastViewport /> once in app root.
|
|
819
819
|
|
|
820
820
|
```tsx
|
|
821
|
-
import { useToast, ToastProvider } from "@usevyre/react"
|
|
821
|
+
import { useToast, ToastProvider } from "@usevyre/react" // Vue: import { useToast, ToastViewport } from "@usevyre/vue"
|
|
822
822
|
|
|
823
823
|
// Props:
|
|
824
824
|
// variant = "default" | "success" | "warning" | "danger" (default: default)
|
|
@@ -814,10 +814,10 @@ import { Tabs, TabList, Tab, TabPanels, TabPanel } from "@usevyre/react"
|
|
|
814
814
|
|
|
815
815
|
### Toast
|
|
816
816
|
|
|
817
|
-
Transient notification. Use the useToast hook to trigger toasts imperatively.
|
|
817
|
+
Transient notification. Use the useToast hook to trigger toasts imperatively. React: wrap app in <ToastProvider>. Vue: place <ToastViewport /> once in app root.
|
|
818
818
|
|
|
819
819
|
```tsx
|
|
820
|
-
import { useToast, ToastProvider } from "@usevyre/react"
|
|
820
|
+
import { useToast, ToastProvider } from "@usevyre/react" // Vue: import { useToast, ToastViewport } from "@usevyre/vue"
|
|
821
821
|
|
|
822
822
|
// Props:
|
|
823
823
|
// variant = "default" | "success" | "warning" | "danger" (default: default)
|
package/dist/cursor-rules.md
CHANGED
|
@@ -255,7 +255,7 @@ Import: `import { Tabs, TabList, Tab, TabPanels, TabPanel } from "@usevyre/react
|
|
|
255
255
|
Valid props:
|
|
256
256
|
|
|
257
257
|
## Toast
|
|
258
|
-
Transient notification. Use the useToast hook to trigger toasts imperatively.
|
|
258
|
+
Transient notification. Use the useToast hook to trigger toasts imperatively. React: wrap app in <ToastProvider>. Vue: place <ToastViewport /> once in app root.
|
|
259
259
|
Import: `import { useToast, ToastProvider } from "@usevyre/react"`
|
|
260
260
|
|
|
261
261
|
Valid props:
|
package/dist/full-context.md
CHANGED
|
@@ -809,10 +809,10 @@ import { Tabs, TabList, Tab, TabPanels, TabPanel } from "@usevyre/react"
|
|
|
809
809
|
|
|
810
810
|
### Toast
|
|
811
811
|
|
|
812
|
-
Transient notification. Use the useToast hook to trigger toasts imperatively.
|
|
812
|
+
Transient notification. Use the useToast hook to trigger toasts imperatively. React: wrap app in <ToastProvider>. Vue: place <ToastViewport /> once in app root.
|
|
813
813
|
|
|
814
814
|
```tsx
|
|
815
|
-
import { useToast, ToastProvider } from "@usevyre/react"
|
|
815
|
+
import { useToast, ToastProvider } from "@usevyre/react" // Vue: import { useToast, ToastViewport } from "@usevyre/vue"
|
|
816
816
|
|
|
817
817
|
// Props:
|
|
818
818
|
// variant = "default" | "success" | "warning" | "danger" (default: default)
|
package/dist/index.js
CHANGED
|
@@ -814,10 +814,10 @@ import { Tabs, TabList, Tab, TabPanels, TabPanel } from "@usevyre/react"
|
|
|
814
814
|
|
|
815
815
|
### Toast
|
|
816
816
|
|
|
817
|
-
Transient notification. Use the useToast hook to trigger toasts imperatively.
|
|
817
|
+
Transient notification. Use the useToast hook to trigger toasts imperatively. React: wrap app in <ToastProvider>. Vue: place <ToastViewport /> once in app root.
|
|
818
818
|
|
|
819
819
|
\`\`\`tsx
|
|
820
|
-
import { useToast, ToastProvider } from "@usevyre/react"
|
|
820
|
+
import { useToast, ToastProvider } from "@usevyre/react" // Vue: import { useToast, ToastViewport } from "@usevyre/vue"
|
|
821
821
|
|
|
822
822
|
// Props:
|
|
823
823
|
// variant = "default" | "success" | "warning" | "danger" (default: default)
|
|
@@ -1227,7 +1227,7 @@ Import: \`import { Tabs, TabList, Tab, TabPanels, TabPanel } from "@usevyre/reac
|
|
|
1227
1227
|
Valid props:
|
|
1228
1228
|
|
|
1229
1229
|
## Toast
|
|
1230
|
-
Transient notification. Use the useToast hook to trigger toasts imperatively.
|
|
1230
|
+
Transient notification. Use the useToast hook to trigger toasts imperatively. React: wrap app in <ToastProvider>. Vue: place <ToastViewport /> once in app root.
|
|
1231
1231
|
Import: \`import { useToast, ToastProvider } from "@usevyre/react"\`
|
|
1232
1232
|
|
|
1233
1233
|
Valid props:
|
|
@@ -2077,10 +2077,10 @@ import { Tabs, TabList, Tab, TabPanels, TabPanel } from "@usevyre/react"
|
|
|
2077
2077
|
|
|
2078
2078
|
### Toast
|
|
2079
2079
|
|
|
2080
|
-
Transient notification. Use the useToast hook to trigger toasts imperatively.
|
|
2080
|
+
Transient notification. Use the useToast hook to trigger toasts imperatively. React: wrap app in <ToastProvider>. Vue: place <ToastViewport /> once in app root.
|
|
2081
2081
|
|
|
2082
2082
|
\`\`\`tsx
|
|
2083
|
-
import { useToast, ToastProvider } from "@usevyre/react"
|
|
2083
|
+
import { useToast, ToastProvider } from "@usevyre/react" // Vue: import { useToast, ToastViewport } from "@usevyre/vue"
|
|
2084
2084
|
|
|
2085
2085
|
// Props:
|
|
2086
2086
|
// variant = "default" | "success" | "warning" | "danger" (default: default)
|
|
@@ -3047,10 +3047,10 @@ import { Tabs, TabList, Tab, TabPanels, TabPanel } from "@usevyre/react"
|
|
|
3047
3047
|
|
|
3048
3048
|
### Toast
|
|
3049
3049
|
|
|
3050
|
-
Transient notification. Use the useToast hook to trigger toasts imperatively.
|
|
3050
|
+
Transient notification. Use the useToast hook to trigger toasts imperatively. React: wrap app in <ToastProvider>. Vue: place <ToastViewport /> once in app root.
|
|
3051
3051
|
|
|
3052
3052
|
\`\`\`tsx
|
|
3053
|
-
import { useToast, ToastProvider } from "@usevyre/react"
|
|
3053
|
+
import { useToast, ToastProvider } from "@usevyre/react" // Vue: import { useToast, ToastViewport } from "@usevyre/vue"
|
|
3054
3054
|
|
|
3055
3055
|
// Props:
|
|
3056
3056
|
// variant = "default" | "success" | "warning" | "danger" (default: default)
|
|
@@ -4019,10 +4019,10 @@ import { Tabs, TabList, Tab, TabPanels, TabPanel } from "@usevyre/react"
|
|
|
4019
4019
|
|
|
4020
4020
|
### Toast
|
|
4021
4021
|
|
|
4022
|
-
Transient notification. Use the useToast hook to trigger toasts imperatively.
|
|
4022
|
+
Transient notification. Use the useToast hook to trigger toasts imperatively. React: wrap app in <ToastProvider>. Vue: place <ToastViewport /> once in app root.
|
|
4023
4023
|
|
|
4024
4024
|
\`\`\`tsx
|
|
4025
|
-
import { useToast, ToastProvider } from "@usevyre/react"
|
|
4025
|
+
import { useToast, ToastProvider } from "@usevyre/react" // Vue: import { useToast, ToastViewport } from "@usevyre/vue"
|
|
4026
4026
|
|
|
4027
4027
|
// Props:
|
|
4028
4028
|
// variant = "default" | "success" | "warning" | "danger" (default: default)
|
|
@@ -5294,8 +5294,8 @@ export const schema = {
|
|
|
5294
5294
|
]
|
|
5295
5295
|
},
|
|
5296
5296
|
"Toast": {
|
|
5297
|
-
"description": "Transient notification. Use the useToast hook to trigger toasts imperatively.",
|
|
5298
|
-
"import": "import { useToast, ToastProvider } from \"@usevyre/react\"",
|
|
5297
|
+
"description": "Transient notification. Use the useToast hook to trigger toasts imperatively. React: wrap app in <ToastProvider>. Vue: place <ToastViewport /> once in app root.",
|
|
5298
|
+
"import": "import { useToast, ToastProvider } from \"@usevyre/react\" // Vue: import { useToast, ToastViewport } from \"@usevyre/vue\"",
|
|
5299
5299
|
"props": {
|
|
5300
5300
|
"variant": {
|
|
5301
5301
|
"type": "enum",
|
|
@@ -5681,7 +5681,7 @@ export const antiPatterns = {
|
|
|
5681
5681
|
export const versionInfo = {
|
|
5682
5682
|
"version": "0.2.0",
|
|
5683
5683
|
"packageVersion": "0.1.1",
|
|
5684
|
-
"generatedAt": "2026-05-
|
|
5684
|
+
"generatedAt": "2026-05-10T13:15:02.040Z",
|
|
5685
5685
|
"validFor": [
|
|
5686
5686
|
"@usevyre/react@0.1.1+",
|
|
5687
5687
|
"@usevyre/vue@0.1.1+"
|
|
@@ -5940,7 +5940,7 @@ export const cheatSheets = {
|
|
|
5940
5940
|
"Switch": "# Switch — AI Cheat Sheet\n> Quick reference for Claude / Cursor / Copilot\n\n**Toggle switch for boolean on/off settings.**\n\n```ts\nimport { Switch } from \"@usevyre/react\"\n```\n\n## Valid Props\n\n| Prop | Values | Default |\n|------|--------|---------|\n| `size` | `\"sm\"` \\| `\"md\"` | `md` |\n| `checked` | `true` \\| `false` | — |\n| `disabled` | `true` \\| `false` | `false` |\n\n## Examples\n\n**Notifications toggle**\n```tsx\n<label style={{ display: 'flex', alignItems: 'center', gap: 'var(--vyre-spacing-2)' }}>\n <Switch checked={notifications} onChange={setNotifications} />\n Enable notifications\n</label>\n```\n",
|
|
5941
5941
|
"Table": "# Table — AI Cheat Sheet\n> Quick reference for Claude / Cursor / Copilot\n\n**Data table with optional sorting. Compose with TableHeader, TableRow, TableCell.**\n\n```ts\nimport { Table, TableHead, TableBody, TableRow, TableHeader, TableCell } from \"@usevyre/react\"\n```\n\n## Examples\n\n**Basic data table**\n```tsx\n<Table>\n <TableHead>\n <TableRow>\n <TableHeader>Name</TableHeader>\n <TableHeader>Status</TableHeader>\n </TableRow>\n </TableHead>\n <TableBody>\n <TableRow>\n <TableCell>Alice</TableCell>\n <TableCell><Badge variant=\"success\">Active</Badge></TableCell>\n </TableRow>\n </TableBody>\n</Table>\n```\n",
|
|
5942
5942
|
"Tabs": "# Tabs — AI Cheat Sheet\n> Quick reference for Claude / Cursor / Copilot\n\n**Tabbed navigation for switching between content panels.**\n\n```ts\nimport { Tabs, TabList, Tab, TabPanels, TabPanel } from \"@usevyre/react\"\n```\n\n## Examples\n\n**Basic tabs**\n```tsx\n<Tabs defaultIndex={0}>\n <TabList>\n <Tab>Overview</Tab>\n <Tab>Settings</Tab>\n </TabList>\n <TabPanels>\n <TabPanel>Overview content</TabPanel>\n <TabPanel>Settings content</TabPanel>\n </TabPanels>\n</Tabs>\n```\n",
|
|
5943
|
-
"Toast": "# Toast — AI Cheat Sheet\n> Quick reference for Claude / Cursor / Copilot\n\n**Transient notification. Use the useToast hook to trigger toasts imperatively.**\n\n```ts\nimport { useToast, ToastProvider } from \"@usevyre/react\"\n```\n\n## Valid Props\n\n| Prop | Values | Default |\n|------|--------|---------|\n| `variant` | `\"default\"` \\| `\"success\"` \\| `\"warning\"` \\| `\"danger\"` | `default` |\n\n## Common AI Mistakes\n\n- ❌ `Rendering <Toast> directly in JSX`\n → Use: const { toast } = useToast(); then toast({ title, variant })\n- ❌ `variant=\"error\"`\n → Use variant=\"danger\"\n- ❌ `variant=\"info\"`\n → Use variant=\"default\"\n\n## Examples\n\n**Trigger a success toast**\n```tsx\nconst { toast } = useToast();\n\n<Button onClick={() => toast({ title: 'Saved!', variant: 'success', duration: 3000 })}>\n Save\n</Button>\n```\n\n**Setup: wrap app with ToastProvider**\n```tsx\n<ToastProvider>\n <App />\n</ToastProvider>\n```\n",
|
|
5943
|
+
"Toast": "# Toast — AI Cheat Sheet\n> Quick reference for Claude / Cursor / Copilot\n\n**Transient notification. Use the useToast hook to trigger toasts imperatively. React: wrap app in <ToastProvider>. Vue: place <ToastViewport /> once in app root.**\n\n```ts\nimport { useToast, ToastProvider } from \"@usevyre/react\" // Vue: import { useToast, ToastViewport } from \"@usevyre/vue\"\n```\n\n## Valid Props\n\n| Prop | Values | Default |\n|------|--------|---------|\n| `variant` | `\"default\"` \\| `\"success\"` \\| `\"warning\"` \\| `\"danger\"` | `default` |\n\n## Common AI Mistakes\n\n- ❌ `Rendering <Toast> directly in JSX`\n → Use: const { toast } = useToast(); then toast({ title, variant })\n- ❌ `variant=\"error\"`\n → Use variant=\"danger\"\n- ❌ `variant=\"info\"`\n → Use variant=\"default\"\n\n## Examples\n\n**Trigger a success toast**\n```tsx\nconst { toast } = useToast();\n\n<Button onClick={() => toast({ title: 'Saved!', variant: 'success', duration: 3000 })}>\n Save\n</Button>\n```\n\n**Setup: wrap app with ToastProvider**\n```tsx\n<ToastProvider>\n <App />\n</ToastProvider>\n```\n",
|
|
5944
5944
|
"Tooltip": "# Tooltip — AI Cheat Sheet\n> Quick reference for Claude / Cursor / Copilot\n\n**Short label that appears on hover/focus. For rich content use Popover instead.**\n\n```ts\nimport { Tooltip } from \"@usevyre/react\"\n```\n\n## Valid Props\n\n| Prop | Values | Default |\n|------|--------|---------|\n| `placement` | `\"top\"` \\| `\"bottom\"` \\| `\"left\"` \\| `\"right\"` | `top` |\n\n## Common AI Mistakes\n\n- ❌ `Using Tooltip for rich content (forms, buttons, etc.)`\n → Use Popover for rich interactive content\n\n## Examples\n\n**Tooltip on an icon button**\n```tsx\n<Tooltip content=\"Close dialog\" placement=\"bottom\">\n <Button variant=\"ghost\" size=\"icon\" aria-label=\"Close\">\n <X size={16} />\n </Button>\n</Tooltip>\n```\n",
|
|
5945
5945
|
"Typography": "# Typography — AI Cheat Sheet\n> Quick reference for Claude / Cursor / Copilot\n\n**Text rendering components with semantic scale. Includes Text, Heading, Lead, Code, Blockquote.**\n\n```ts\nimport { Text, Heading, Lead, Code, Blockquote } from \"@usevyre/react\"\n```\n\n## Common AI Mistakes\n\n- ❌ `Using raw <h1>, <p> tags instead of Typography components`\n → Use <Heading>, <Text>, <Lead> from @usevyre/react\n\n## Examples\n\n**Page heading and body text**\n```tsx\n<Heading size=\"2xl\" as=\"h1\">Dashboard</Heading>\n<Lead>Welcome back. Here's what's happening today.</Lead>\n<Text size=\"sm\" style={{ color: 'var(--vyre-color-semantic-text-muted)' }}>Last updated 5 minutes ago.</Text>\n```\n"
|
|
5946
5946
|
};
|
package/dist/schema.json
CHANGED
|
@@ -1116,8 +1116,8 @@
|
|
|
1116
1116
|
]
|
|
1117
1117
|
},
|
|
1118
1118
|
"Toast": {
|
|
1119
|
-
"description": "Transient notification. Use the useToast hook to trigger toasts imperatively.",
|
|
1120
|
-
"import": "import { useToast, ToastProvider } from \"@usevyre/react\"",
|
|
1119
|
+
"description": "Transient notification. Use the useToast hook to trigger toasts imperatively. React: wrap app in <ToastProvider>. Vue: place <ToastViewport /> once in app root.",
|
|
1120
|
+
"import": "import { useToast, ToastProvider } from \"@usevyre/react\" // Vue: import { useToast, ToastViewport } from \"@usevyre/vue\"",
|
|
1121
1121
|
"props": {
|
|
1122
1122
|
"variant": {
|
|
1123
1123
|
"type": "enum",
|
package/dist/tokens.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://usevyre.com/schemas/ai-tokens-v1.json",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"generatedAt": "2026-05-
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"generatedAt": "2026-05-10T13:14:24.865Z",
|
|
5
5
|
"description": "useVyre design tokens — machine-readable reference for AI agents. Use semantic color tokens; never use primitive tokens directly in components.",
|
|
6
6
|
"naming": {
|
|
7
7
|
"convention": "--vyre-[category]-[subcategory]-[variant]",
|
package/dist/tokens.md
CHANGED
package/dist/version-info.json
CHANGED
package/dist/windsurf-rules.md
CHANGED
|
@@ -812,10 +812,10 @@ import { Tabs, TabList, Tab, TabPanels, TabPanel } from "@usevyre/react"
|
|
|
812
812
|
|
|
813
813
|
### Toast
|
|
814
814
|
|
|
815
|
-
Transient notification. Use the useToast hook to trigger toasts imperatively.
|
|
815
|
+
Transient notification. Use the useToast hook to trigger toasts imperatively. React: wrap app in <ToastProvider>. Vue: place <ToastViewport /> once in app root.
|
|
816
816
|
|
|
817
817
|
```tsx
|
|
818
|
-
import { useToast, ToastProvider } from "@usevyre/react"
|
|
818
|
+
import { useToast, ToastProvider } from "@usevyre/react" // Vue: import { useToast, ToastViewport } from "@usevyre/vue"
|
|
819
819
|
|
|
820
820
|
// Props:
|
|
821
821
|
// variant = "default" | "success" | "warning" | "danger" (default: default)
|