@musecat/functionkit 1.3.0 → 1.3.1
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/README.md +21 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,6 +8,22 @@ A React 19 + TypeScript UI F.E. utility library.
|
|
|
8
8
|
npm install @musecat/functionkit
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
+
This package ships **raw TypeScript source** (no prebuilt bundle), so your app must transpile it.
|
|
12
|
+
|
|
13
|
+
### Next.js setup
|
|
14
|
+
|
|
15
|
+
Add the package to `transpilePackages` in `next.config.ts`:
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
import type { NextConfig } from "next";
|
|
19
|
+
|
|
20
|
+
const nextConfig: NextConfig = {
|
|
21
|
+
transpilePackages: ["@musecat/functionkit"],
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export default nextConfig;
|
|
25
|
+
```
|
|
26
|
+
|
|
11
27
|
## Usage
|
|
12
28
|
|
|
13
29
|
```tsx
|
|
@@ -21,10 +37,10 @@ export default function Example() {
|
|
|
21
37
|
});
|
|
22
38
|
|
|
23
39
|
return (
|
|
24
|
-
<
|
|
25
|
-
<
|
|
26
|
-
<
|
|
27
|
-
</
|
|
40
|
+
<div>
|
|
41
|
+
<input onChange={(e) => handleSearch(e.target.value)} />
|
|
42
|
+
<span>{now}</span>
|
|
43
|
+
</div>
|
|
28
44
|
);
|
|
29
45
|
}
|
|
30
46
|
```
|
|
@@ -37,7 +53,7 @@ This package includes `.agents/references/` directory with detailed documentatio
|
|
|
37
53
|
|
|
38
54
|
- [toss/react-simplikit](https://github.com/toss/react-simplikit/)
|
|
39
55
|
|
|
40
|
-
|
|
56
|
+
Published as raw TypeScript source and built with [TypeScript](https://www.typescriptlang.org/).
|
|
41
57
|
|
|
42
58
|
## License
|
|
43
59
|
|