@rlx-ui/mcp 0.0.11 → 0.0.12
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/data/registry.json +2 -2
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/data/registry.json
CHANGED
|
@@ -1383,7 +1383,7 @@
|
|
|
1383
1383
|
"demos": [
|
|
1384
1384
|
{
|
|
1385
1385
|
"name": "default",
|
|
1386
|
-
"code": "\"use client\";\n\nimport {\n StreamingText,\n StreamingTextIndicator,\n} from \"@rlx-components/streaming-text\";\nimport { Button } from \"@rlx-widgets/button\";\nimport { useRef } from \"react\";\nimport type { StreamingTextControls } from \"@rlx-components/streaming-text\";\n\nexport const Preview = () => {\n const controlsRef = useRef<StreamingTextControls>(null);\n\n return (\n <div className=\"w-full space-y-4\">\n <div className=\"flex items-center justify-center min-h-[100px]\">\n <StreamingText\n ref={controlsRef}\n text=\"Hello, world! This is a streaming text component that displays text character by character.\"\n autoStart={true}\n indicator={<StreamingTextIndicator />}\n />\n </div>\n <div className=\"flex gap-2 justify-center\">\n <Button onClick={() => controlsRef.current?.start()}>Start</Button>\n <Button onClick={() => controlsRef.current?.pause()}>Pause</Button>\n <Button onClick={() => controlsRef.current?.reset()}>Reset</Button>\n </div>\n </div>\n );\n};\n\n"
|
|
1386
|
+
"code": "\"use client\";\n\nimport {\n StreamingText,\n StreamingTextIndicator,\n} from \"@rlx-components/streaming-text\";\nimport { Button } from \"@rlx-widgets/button\";\nimport { useRef } from \"react\";\nimport type { StreamingTextControls } from \"@rlx-components/streaming-text\";\n\nexport const Preview = () => {\n const controlsRef = useRef<StreamingTextControls>(null);\n\n return (\n <div className=\"w-full space-y-4\">\n <div className=\"flex items-center justify-center min-h-[100px]\">\n <StreamingText\n ref={controlsRef}\n text=\"Hello, world! This is a streaming text component that displays text character by character.\"\n autoStart={true}\n indicator={<StreamingTextIndicator />}\n />\n </div>\n <div className=\"flex gap-2 justify-center\">\n <Button onClick={() => controlsRef.current?.start()}>Start</Button>\n <Button onClick={() => controlsRef.current?.pause()}>Pause</Button>\n <Button onClick={() => controlsRef.current?.finish()}>Finish</Button>\n <Button onClick={() => controlsRef.current?.reset()}>Reset</Button>\n </div>\n </div>\n );\n};\n\n"
|
|
1387
1387
|
}
|
|
1388
1388
|
],
|
|
1389
1389
|
"sourceFiles": {
|
|
@@ -1504,5 +1504,5 @@
|
|
|
1504
1504
|
"sourceCode": "export const isValidDate = (date: Date) => {\n return !Number.isNaN(date.getTime());\n};\n\nexport default isValidDate;\n"
|
|
1505
1505
|
}
|
|
1506
1506
|
],
|
|
1507
|
-
"extractedAt": "2025-11-30T22:
|
|
1507
|
+
"extractedAt": "2025-11-30T22:15:44.476Z"
|
|
1508
1508
|
}
|
package/dist/package.json
CHANGED