@musecat/functionkit 1.2.2 → 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.
Files changed (2) hide show
  1. package/README.md +22 -4
  2. package/package.json +5 -2
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
- <View column gap={24}>
25
- <Input onChange={(e) => handleSearch(e.target.value)} />
26
- <Text type="Caption1">{now}</Text>
27
- </View>
40
+ <div>
41
+ <input onChange={(e) => handleSearch(e.target.value)} />
42
+ <span>{now}</span>
43
+ </div>
28
44
  );
29
45
  }
30
46
  ```
@@ -37,6 +53,8 @@ This package includes `.agents/references/` directory with detailed documentatio
37
53
 
38
54
  - [toss/react-simplikit](https://github.com/toss/react-simplikit/)
39
55
 
56
+ Published as raw TypeScript source and built with [TypeScript](https://www.typescriptlang.org/).
57
+
40
58
  ## License
41
59
 
42
60
  [MIT License](./LICENSE) © Musecat Team.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@musecat/functionkit",
3
- "version": "1.2.2",
3
+ "version": "1.3.1",
4
4
  "description": "React 19 + TypeScript frontend utility library — hooks, components, datetime, cookie, and utils",
5
5
  "keywords": [
6
6
  "react",
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "files": [
19
19
  "index.ts",
20
- "packages/",
20
+ "packages",
21
21
  ".agents/",
22
22
  "AGENTS.md",
23
23
  "CLAUDE.md",
@@ -63,5 +63,8 @@
63
63
  "jsdom": "^26.0.0",
64
64
  "prettier": "^3.9.5",
65
65
  "vitest": "^4.1.10"
66
+ },
67
+ "allowScripts": {
68
+ "esbuild@0.27.7": true
66
69
  }
67
70
  }