@@ -2201,3 +2201,329 @@ function processTailwindFeatures(setupContext) {
2201
2201
}" ,
2202
2202
}
2203
2203
` ;
2204
+
2205
+ exports [` versions-patch > patch tailwindcss3.3.7 1` ] = `
2206
+ {
2207
+ " plugin" : " " use strict " ;
2208
+
2209
+ Object .defineProperty (exports , " __esModule" , {
2210
+ value: true
2211
+ });
2212
+ const _setupTrackingContext = /* #__PURE__*/ _interop_require_default (require (" ./lib/setupTrackingContext" ));
2213
+ const _processTailwindFeatures = /* #__PURE__*/ _interop_require_default (require (" ./processTailwindFeatures" ));
2214
+ const _sharedState = require (" ./lib/sharedState" );
2215
+ const _findAtConfigPath = require (" ./lib/findAtConfigPath" );
2216
+ function _interop_require_default(obj ) {
2217
+ return obj && obj .__esModule ? obj : {
2218
+ default : obj
2219
+ };
2220
+ }
2221
+ const contextRef = {
2222
+ value: []
2223
+ };
2224
+ module .exports = function tailwindcss(configOrPath ) {
2225
+ return {
2226
+ postcssPlugin: " tailwindcss" ,
2227
+ plugins: [_sharedState .env .DEBUG && function (root ) {
2228
+ console .log (" \\ n" );
2229
+ console .time (" JIT TOTAL" );
2230
+ return root ;
2231
+ }, async function (root , result ) {
2232
+ contextRef .value .length = 0 ;
2233
+ var _findAtConfigPath1;
2234
+ // Use the path for the \`@config\` directive if it exists, otherwise use the
2235
+ // path for the file being processed
2236
+ configOrPath = (_findAtConfigPath1 = (0 , _findAtConfigPath .findAtConfigPath )(root , result )) !== null && _findAtConfigPath1 !== void 0 ? _findAtConfigPath1 : configOrPath ;
2237
+ let context = (0 , _setupTrackingContext .default )(configOrPath );
2238
+ if (root .type === " document" ) {
2239
+ let roots = root .nodes .filter (node => node .type === " root" );
2240
+ for (const root of roots ) {
2241
+ if (root .type === " root" ) {
2242
+ contextRef .value .push (await (0 , _processTailwindFeatures .default )(context )(root , result ));
2243
+ }
2244
+ }
2245
+ return ;
2246
+ }
2247
+ contextRef .value .push (await (0 , _processTailwindFeatures .default )(context )(root , result ));
2248
+ }, false && function lightningCssPlugin(_root , result ) {
2249
+ let postcss = require (" postcss" );
2250
+ let lightningcss = require (" lightningcss" );
2251
+ let browserslist = require (" browserslist" );
2252
+ try {
2253
+ let transformed = lightningcss .transform ({
2254
+ filename: result .opts .from ,
2255
+ code: Buffer .from (result .root .toString ()),
2256
+ minify: false ,
2257
+ sourceMap: !! result .map ,
2258
+ inputSourceMap: result .map ? result .map .toString () : undefined ,
2259
+ targets: typeof process !== " undefined" && process .env .JEST_WORKER_ID ? {
2260
+ chrome: 106 << 16
2261
+ } : lightningcss .browserslistToTargets (browserslist (require (" ../package.json" ).browserslist )),
2262
+ drafts: {
2263
+ nesting: true ,
2264
+ customMedia: true
2265
+ }
2266
+ });
2267
+ var _result_map;
2268
+ result .map = Object .assign ((_result_map = result .map ) !== null && _result_map !== void 0 ? _result_map : {}, {
2269
+ toJSON() {
2270
+ return transformed .map .toJSON ();
2271
+ },
2272
+ toString() {
2273
+ return transformed .map .toString ();
2274
+ }
2275
+ });
2276
+ result .root = postcss .parse (transformed .code .toString (" utf8" ));
2277
+ } catch (err ) {
2278
+ if (typeof process !== " undefined" && process .env .JEST_WORKER_ID ) {
2279
+ let lines = err .source .split (" \\ n" );
2280
+ err = new Error ([" Error formatting using Lightning CSS:" , " " , ... [" \`\`\` css" , ... lines .slice (Math .max (err .loc .line - 3 , 0 ), err .loc .line ), " " .repeat (err .loc .column - 1 ) + " ^-- " + err .toString (), ... lines .slice (err .loc .line , err .loc .line + 2 ), " \`\`\` " ]].join (" \\ n" ));
2281
+ }
2282
+ if (Error .captureStackTrace ) {
2283
+ Error .captureStackTrace (err , lightningCssPlugin );
2284
+ }
2285
+ throw err ;
2286
+ }
2287
+ }, _sharedState .env .DEBUG && function (root ) {
2288
+ console .timeEnd (" JIT TOTAL" );
2289
+ console .log (" \\ n" );
2290
+ return root ;
2291
+ }].filter (Boolean )
2292
+ };
2293
+ };
2294
+ module .exports .postcss = true ;
2295
+ module .exports .contextRef = contextRef ;" ,
2296
+ " processTailwindFeatures" : " " use strict " ;
2297
+
2298
+ Object .defineProperty (exports , " __esModule" , {
2299
+ value: true
2300
+ });
2301
+ Object .defineProperty (exports , " default" , {
2302
+ enumerable: true ,
2303
+ get : function () {
2304
+ return processTailwindFeatures ;
2305
+ }
2306
+ });
2307
+ const _normalizeTailwindDirectives = /* #__PURE__*/ _interop_require_default (require (" ./lib/normalizeTailwindDirectives" ));
2308
+ const _expandTailwindAtRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/expandTailwindAtRules" ));
2309
+ const _expandApplyAtRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/expandApplyAtRules" ));
2310
+ const _evaluateTailwindFunctions = /* #__PURE__*/ _interop_require_default (require (" ./lib/evaluateTailwindFunctions" ));
2311
+ const _substituteScreenAtRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/substituteScreenAtRules" ));
2312
+ const _resolveDefaultsAtRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/resolveDefaultsAtRules" ));
2313
+ const _collapseAdjacentRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/collapseAdjacentRules" ));
2314
+ const _collapseDuplicateDeclarations = /* #__PURE__*/ _interop_require_default (require (" ./lib/collapseDuplicateDeclarations" ));
2315
+ const _partitionApplyAtRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/partitionApplyAtRules" ));
2316
+ const _detectNesting = /* #__PURE__*/ _interop_require_default (require (" ./lib/detectNesting" ));
2317
+ const _setupContextUtils = require (" ./lib/setupContextUtils" );
2318
+ const _featureFlags = require (" ./featureFlags" );
2319
+ function _interop_require_default(obj ) {
2320
+ return obj && obj .__esModule ? obj : {
2321
+ default : obj
2322
+ };
2323
+ }
2324
+ function processTailwindFeatures(setupContext ) {
2325
+ return async function (root , result ) {
2326
+ let {
2327
+ tailwindDirectives,
2328
+ applyDirectives
2329
+ } = (0 , _normalizeTailwindDirectives .default )(root );
2330
+ (0 , _detectNesting .default )()(root , result );
2331
+ // Partition apply rules that are found in the css
2332
+ // itself.
2333
+ (0 , _partitionApplyAtRules .default )()(root , result );
2334
+ let context = setupContext ({
2335
+ tailwindDirectives ,
2336
+ applyDirectives ,
2337
+ registerDependency(dependency ) {
2338
+ result .messages .push ({
2339
+ plugin: " tailwindcss" ,
2340
+ parent: result .opts .from ,
2341
+ ... dependency
2342
+ });
2343
+ },
2344
+ createContext(tailwindConfig , changedContent ) {
2345
+ return (0 , _setupContextUtils .createContext )(tailwindConfig , changedContent , root );
2346
+ }
2347
+ })(root , result );
2348
+ if (context .tailwindConfig .separator === " -" ) {
2349
+ throw new Error (" The '-' character cannot be used as a custom separator in JIT mode due to parsing ambiguity. Please use another character like '_' instead." );
2350
+ }
2351
+ (0 , _featureFlags .issueFlagNotices )(context .tailwindConfig );
2352
+ await (0 , _expandTailwindAtRules .default )(context )(root , result );
2353
+ // Partition apply rules that are generated by
2354
+ // addComponents, addUtilities and so on.
2355
+ (0 , _partitionApplyAtRules .default )()(root , result );
2356
+ (0 , _expandApplyAtRules .default )(context )(root , result );
2357
+ (0 , _evaluateTailwindFunctions .default )(context )(root , result );
2358
+ (0 , _substituteScreenAtRules .default )(context )(root , result );
2359
+ (0 , _resolveDefaultsAtRules .default )(context )(root , result );
2360
+ (0 , _collapseAdjacentRules .default )(context )(root , result );
2361
+ (0 , _collapseDuplicateDeclarations .default )(context )(root , result );
2362
+ return context ;
2363
+ };
2364
+ }" ,
2365
+ }
2366
+ ` ;
2367
+
2368
+ exports [` versions-patch > patch tailwindcss3.4.0 1` ] = `
2369
+ {
2370
+ " plugin" : " " use strict " ;
2371
+
2372
+ Object .defineProperty (exports , " __esModule" , {
2373
+ value: true
2374
+ });
2375
+ const _setupTrackingContext = /* #__PURE__*/ _interop_require_default (require (" ./lib/setupTrackingContext" ));
2376
+ const _processTailwindFeatures = /* #__PURE__*/ _interop_require_default (require (" ./processTailwindFeatures" ));
2377
+ const _sharedState = require (" ./lib/sharedState" );
2378
+ const _findAtConfigPath = require (" ./lib/findAtConfigPath" );
2379
+ function _interop_require_default(obj ) {
2380
+ return obj && obj .__esModule ? obj : {
2381
+ default : obj
2382
+ };
2383
+ }
2384
+ const contextRef = {
2385
+ value: []
2386
+ };
2387
+ module .exports = function tailwindcss(configOrPath ) {
2388
+ return {
2389
+ postcssPlugin: " tailwindcss" ,
2390
+ plugins: [_sharedState .env .DEBUG && function (root ) {
2391
+ console .log (" \\ n" );
2392
+ console .time (" JIT TOTAL" );
2393
+ return root ;
2394
+ }, async function (root , result ) {
2395
+ contextRef .value .length = 0 ;
2396
+ var _findAtConfigPath1;
2397
+ // Use the path for the \`@config\` directive if it exists, otherwise use the
2398
+ // path for the file being processed
2399
+ configOrPath = (_findAtConfigPath1 = (0 , _findAtConfigPath .findAtConfigPath )(root , result )) !== null && _findAtConfigPath1 !== void 0 ? _findAtConfigPath1 : configOrPath ;
2400
+ let context = (0 , _setupTrackingContext .default )(configOrPath );
2401
+ if (root .type === " document" ) {
2402
+ let roots = root .nodes .filter (node => node .type === " root" );
2403
+ for (const root of roots ) {
2404
+ if (root .type === " root" ) {
2405
+ contextRef .value .push (await (0 , _processTailwindFeatures .default )(context )(root , result ));
2406
+ }
2407
+ }
2408
+ return ;
2409
+ }
2410
+ contextRef .value .push (await (0 , _processTailwindFeatures .default )(context )(root , result ));
2411
+ }, false && function lightningCssPlugin(_root , result ) {
2412
+ let postcss = require (" postcss" );
2413
+ let lightningcss = require (" lightningcss" );
2414
+ let browserslist = require (" browserslist" );
2415
+ try {
2416
+ let transformed = lightningcss .transform ({
2417
+ filename: result .opts .from ,
2418
+ code: Buffer .from (result .root .toString ()),
2419
+ minify: false ,
2420
+ sourceMap: !! result .map ,
2421
+ inputSourceMap: result .map ? result .map .toString () : undefined ,
2422
+ targets: typeof process !== " undefined" && process .env .JEST_WORKER_ID ? {
2423
+ chrome: 106 << 16
2424
+ } : lightningcss .browserslistToTargets (browserslist (require (" ../package.json" ).browserslist )),
2425
+ drafts: {
2426
+ nesting: true ,
2427
+ customMedia: true
2428
+ }
2429
+ });
2430
+ var _result_map;
2431
+ result .map = Object .assign ((_result_map = result .map ) !== null && _result_map !== void 0 ? _result_map : {}, {
2432
+ toJSON() {
2433
+ return transformed .map .toJSON ();
2434
+ },
2435
+ toString() {
2436
+ return transformed .map .toString ();
2437
+ }
2438
+ });
2439
+ result .root = postcss .parse (transformed .code .toString (" utf8" ));
2440
+ } catch (err ) {
2441
+ if (typeof process !== " undefined" && process .env .JEST_WORKER_ID ) {
2442
+ let lines = err .source .split (" \\ n" );
2443
+ err = new Error ([" Error formatting using Lightning CSS:" , " " , ... [" \`\`\` css" , ... lines .slice (Math .max (err .loc .line - 3 , 0 ), err .loc .line ), " " .repeat (err .loc .column - 1 ) + " ^-- " + err .toString (), ... lines .slice (err .loc .line , err .loc .line + 2 ), " \`\`\` " ]].join (" \\ n" ));
2444
+ }
2445
+ if (Error .captureStackTrace ) {
2446
+ Error .captureStackTrace (err , lightningCssPlugin );
2447
+ }
2448
+ throw err ;
2449
+ }
2450
+ }, _sharedState .env .DEBUG && function (root ) {
2451
+ console .timeEnd (" JIT TOTAL" );
2452
+ console .log (" \\ n" );
2453
+ return root ;
2454
+ }].filter (Boolean )
2455
+ };
2456
+ };
2457
+ module .exports .postcss = true ;
2458
+ module .exports .contextRef = contextRef ;" ,
2459
+ " processTailwindFeatures" : " " use strict " ;
2460
+
2461
+ Object .defineProperty (exports , " __esModule" , {
2462
+ value: true
2463
+ });
2464
+ Object .defineProperty (exports , " default" , {
2465
+ enumerable: true ,
2466
+ get : function () {
2467
+ return processTailwindFeatures ;
2468
+ }
2469
+ });
2470
+ const _normalizeTailwindDirectives = /* #__PURE__*/ _interop_require_default (require (" ./lib/normalizeTailwindDirectives" ));
2471
+ const _expandTailwindAtRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/expandTailwindAtRules" ));
2472
+ const _expandApplyAtRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/expandApplyAtRules" ));
2473
+ const _evaluateTailwindFunctions = /* #__PURE__*/ _interop_require_default (require (" ./lib/evaluateTailwindFunctions" ));
2474
+ const _substituteScreenAtRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/substituteScreenAtRules" ));
2475
+ const _resolveDefaultsAtRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/resolveDefaultsAtRules" ));
2476
+ const _collapseAdjacentRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/collapseAdjacentRules" ));
2477
+ const _collapseDuplicateDeclarations = /* #__PURE__*/ _interop_require_default (require (" ./lib/collapseDuplicateDeclarations" ));
2478
+ const _partitionApplyAtRules = /* #__PURE__*/ _interop_require_default (require (" ./lib/partitionApplyAtRules" ));
2479
+ const _detectNesting = /* #__PURE__*/ _interop_require_default (require (" ./lib/detectNesting" ));
2480
+ const _setupContextUtils = require (" ./lib/setupContextUtils" );
2481
+ const _featureFlags = require (" ./featureFlags" );
2482
+ function _interop_require_default(obj ) {
2483
+ return obj && obj .__esModule ? obj : {
2484
+ default : obj
2485
+ };
2486
+ }
2487
+ function processTailwindFeatures(setupContext ) {
2488
+ return async function (root , result ) {
2489
+ let {
2490
+ tailwindDirectives,
2491
+ applyDirectives
2492
+ } = (0 , _normalizeTailwindDirectives .default )(root );
2493
+ (0 , _detectNesting .default )()(root , result );
2494
+ // Partition apply rules that are found in the css
2495
+ // itself.
2496
+ (0 , _partitionApplyAtRules .default )()(root , result );
2497
+ let context = setupContext ({
2498
+ tailwindDirectives ,
2499
+ applyDirectives ,
2500
+ registerDependency(dependency ) {
2501
+ result .messages .push ({
2502
+ plugin: " tailwindcss" ,
2503
+ parent: result .opts .from ,
2504
+ ... dependency
2505
+ });
2506
+ },
2507
+ createContext(tailwindConfig , changedContent ) {
2508
+ return (0 , _setupContextUtils .createContext )(tailwindConfig , changedContent , root );
2509
+ }
2510
+ })(root , result );
2511
+ if (context .tailwindConfig .separator === " -" ) {
2512
+ throw new Error (" The '-' character cannot be used as a custom separator in JIT mode due to parsing ambiguity. Please use another character like '_' instead." );
2513
+ }
2514
+ (0 , _featureFlags .issueFlagNotices )(context .tailwindConfig );
2515
+ await (0 , _expandTailwindAtRules .default )(context )(root , result );
2516
+ // Partition apply rules that are generated by
2517
+ // addComponents, addUtilities and so on.
2518
+ (0 , _partitionApplyAtRules .default )()(root , result );
2519
+ (0 , _expandApplyAtRules .default )(context )(root , result );
2520
+ (0 , _evaluateTailwindFunctions .default )(context )(root , result );
2521
+ (0 , _substituteScreenAtRules .default )(context )(root , result );
2522
+ (0 , _resolveDefaultsAtRules .default )(context )(root , result );
2523
+ (0 , _collapseAdjacentRules .default )(context )(root , result );
2524
+ (0 , _collapseDuplicateDeclarations .default )(context )(root , result );
2525
+ return context ;
2526
+ };
2527
+ }" ,
2528
+ }
2529
+ ` ;
0 commit comments