@sanmid/flux 0.1.5 → 0.1.7
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 +6 -17
- package/dist/index.cjs +8031 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +240 -0
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -44,26 +44,15 @@ Open your app at `http://localhost:3000` (or your dev URL). Toggle the editor wi
|
|
|
44
44
|
|
|
45
45
|
## Tailwind
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
// tailwind.config.ts
|
|
51
|
-
export default {
|
|
52
|
-
content: [
|
|
53
|
-
"./app/**/*.{ts,tsx}",
|
|
54
|
-
"./components/**/*.{ts,tsx}",
|
|
55
|
-
"./node_modules/@sanmid/flux/dist/index.js",
|
|
56
|
-
],
|
|
57
|
-
};
|
|
58
|
-
```
|
|
47
|
+
Flux **injects its own utility CSS** for light-DOM UI (floating toggle, copy overlay, etc.), so you **do not** need to add Flux to your Tailwind `content` for normal use.
|
|
48
|
+
|
|
49
|
+
If you fork Flux or build from source and change its class names, add your paths (or the published bundle) to `content` so your build picks up those utilities.
|
|
59
50
|
|
|
60
51
|
## Next.js
|
|
61
52
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
};
|
|
66
|
-
```
|
|
53
|
+
**No extra Next config** — the published build ships **ESM and CJS** (`package.json` `exports`) and a **`"use client"`** banner so the App Router can consume `@sanmid/flux` like any other dependency. Mount `DesignEditor` from a client component (as in [Local development](#local-development-localhost)) and you are done.
|
|
54
|
+
|
|
55
|
+
If you ever hit a resolution error on an older Next.js release, try adding `transpilePackages: ["@sanmid/flux"]` to `next.config` as a fallback.
|
|
67
56
|
|
|
68
57
|
## Security
|
|
69
58
|
|