chaincss 2.1.5 → 2.1.6

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.
@@ -3347,7 +3347,10 @@ function chaincssPlugin(options = {}) {
3347
3347
  return `
3348
3348
  // ChainCSS Runtime Bootstrap (No CSS Injection)
3349
3349
  import manifest from "virtual:chaincss-manifest";
3350
- import { setManifest } from "chaincss/runtime";
3350
+ // Inline setManifest to avoid pulling in optional framework deps
3351
+ const setManifest = (manifest) => {
3352
+ window.__CHAINCSS_MANIFEST__ = manifest?.atomicMap || manifest?.atomicClasses || manifest || {};
3353
+ };
3351
3354
 
3352
3355
  try {
3353
3356
  setManifest(manifest);
@@ -3361,7 +3364,10 @@ function chaincssPlugin(options = {}) {
3361
3364
  return `
3362
3365
  // ChainCSS Runtime Bootstrap
3363
3366
  import manifest from "virtual:chaincss-manifest";
3364
- import { setManifest } from "chaincss/runtime";
3367
+ // Inline setManifest to avoid pulling in optional framework deps
3368
+ const setManifest = (manifest) => {
3369
+ window.__CHAINCSS_MANIFEST__ = manifest?.atomicMap || manifest?.atomicClasses || manifest || {};
3370
+ };
3365
3371
 
3366
3372
  // Initialize ChainCSS
3367
3373
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chaincss",
3
- "version": "2.1.5",
3
+ "version": "2.1.6",
4
4
  "description": "ChainCSS v3.0 - The first CSS-in-JS library with true auto-detection mixed mode. Zero runtime by default, dynamic when you need it.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -155,7 +155,10 @@ export default function chaincssPlugin(options: ChainCSSPluginOptions = {}): Plu
155
155
  return `
156
156
  // ChainCSS Runtime Bootstrap (No CSS Injection)
157
157
  import manifest from "virtual:chaincss-manifest";
158
- import { setManifest } from "chaincss/runtime";
158
+ // Inline setManifest to avoid pulling in optional framework deps
159
+ const setManifest = (manifest) => {
160
+ window.__CHAINCSS_MANIFEST__ = manifest?.atomicMap || manifest?.atomicClasses || manifest || {};
161
+ };
159
162
 
160
163
  try {
161
164
  setManifest(manifest);
@@ -175,7 +178,10 @@ export default function chaincssPlugin(options: ChainCSSPluginOptions = {}): Plu
175
178
  return `
176
179
  // ChainCSS Runtime Bootstrap
177
180
  import manifest from "virtual:chaincss-manifest";
178
- import { setManifest } from "chaincss/runtime";
181
+ // Inline setManifest to avoid pulling in optional framework deps
182
+ const setManifest = (manifest) => {
183
+ window.__CHAINCSS_MANIFEST__ = manifest?.atomicMap || manifest?.atomicClasses || manifest || {};
184
+ };
179
185
 
180
186
  // Initialize ChainCSS
181
187
  try {