@gostudent/shared-ui-library-mcp 4.6.0-DT-17227.7 → 4.6.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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "libraryVersion": "4.5.0",
2
+ "libraryVersion": "4.6.0",
3
3
  "components": [
4
4
  {
5
5
  "name": "Avatar",
@@ -1402,7 +1402,7 @@
1402
1402
  },
1403
1403
  {
1404
1404
  "name": "OtpInput",
1405
- "description": "Numeric one-time-code input rendered as one boxed cell per digit.\n\nDigits only (anything else is ignored), auto-advance on type, Backspace on an empty cell\nmoves to and clears the previous cell, pasting splits the code across cells, and\n`autoComplete=\"one-time-code\"` enables email/SMS autofill. Switch the GS / SK theme in the toolbar.\n\n```tsx\nconst [code, setCode] = useState(\"\");\n<OtpInput value={code} onChange={setCode} error={wrong} />\n```",
1405
+ "description": "Numeric one-time-code input rendered as one boxed cell per digit.\n\nDigits only (anything else is ignored), auto-advance on type, Backspace on an empty cell\nmoves to and clears the previous cell, pasting splits the code across cells, and\n`autoComplete=\"one-time-code\"` enables email/SMS autofill. Switch the GS / SK theme in the toolbar.\n\n```tsx\nconst [code, setCode] = useState(\"\");\n<OtpInput value={code} onChange={setCode} error={wrong} />\n```\n\n`onComplete(code)` fires after `onChange` when a user edit leaves every cell filled (last digit\ntyped, paste, autofill) — use it to auto-submit. A `ref` exposes `focus(index?)` to return focus\nto a cell, e.g. after a rejected code or a resend (`autoFocus` only applies on mount).\n\n```tsx\nconst otp = useRef<OtpInputHandle>(null);\n<OtpInput ref={otp} value={code} onChange={setCode} onComplete={verify} />\n// after a failed attempt: setCode(\"\"); otp.current?.focus();\n```",
1406
1406
  "storybookUrl": "https://62835ff8873d45004a627ad4-snugmmtvrg.chromatic.com/?path=/docs/components-inputs-otpinput",
1407
1407
  "props": [
1408
1408
  {
@@ -1420,6 +1420,11 @@
1420
1420
  "description": "",
1421
1421
  "options": []
1422
1422
  },
1423
+ {
1424
+ "name": "onComplete",
1425
+ "description": "",
1426
+ "options": []
1427
+ },
1423
1428
  {
1424
1429
  "name": "error",
1425
1430
  "description": "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gostudent/shared-ui-library-mcp",
3
- "version": "4.6.0-DT-17227.7",
3
+ "version": "4.6.0",
4
4
  "description": "MCP server for @gostudent/shared-ui-library — exposes components, icons, and tokens to Claude",
5
5
  "type": "module",
6
6
  "bin": {