@csszyx/unplugin 0.7.0 → 0.9.0

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/dist/index.d.cts CHANGED
@@ -1,5 +1,8 @@
1
+ import _default from './shared/unplugin.DUbr5w-N.cjs';
1
2
  export { CSSManglerOptions, CSSManglerResult, MangleMap, createPostCSSPlugin, escapeCSSClassName, mangleCSS, mangleCSSSync, unescapeTailwindClass } from './css-mangler.cjs';
2
- export { u as default, e as esbuildPlugin, m as mangleCodeClassesSync, r as rollupPlugin, u as unplugin, v as vitePlugin, w as webpackPlugin } from './unplugin-DUbr5w-N.cjs';
3
+ // @ts-ignore
4
+ export = _default;
5
+ export { e as esbuildPlugin, m as mangleCodeClassesSync, r as rollupPlugin, u as unplugin, v as vitePlugin, w as webpackPlugin } from './shared/unplugin.DUbr5w-N.cjs';
3
6
  import 'postcss';
4
7
  import '@csszyx/types';
5
8
  import 'esbuild';
@@ -78,6 +81,15 @@ declare function findRSCBoundaryViolation(code: string, id: string): RSCBoundary
78
81
  * @returns graph metadata for the module
79
82
  */
80
83
  declare function createRSCModuleRecord(code: string, id: string): RSCModuleRecord;
84
+ /**
85
+ * Removes a module record after the bundler watcher reports that the file was
86
+ * deleted.
87
+ *
88
+ * @param records module graph records keyed by normalized module ID
89
+ * @param id module ID/path from the watcher event
90
+ * @returns true when a stale record was removed
91
+ */
92
+ declare function deleteRSCModuleRecord(records: Map<string, RSCModuleRecord>, id: string): boolean;
81
93
  /**
82
94
  * Finds forbidden runtime helper imports reachable from an RSC server module.
83
95
  * Traversal stops at `'use client'` modules because they define a separate
@@ -150,4 +162,5 @@ declare function mergeThemes(themes: ParsedTheme[]): ParsedTheme;
150
162
  */
151
163
  declare function hasTokens(theme: ParsedTheme): boolean;
152
164
 
153
- export { type ParsedTheme, type RSCBoundaryViolation, type RSCModuleRecord, assertNoRSCBoundaryViolation, assertNoRSCGraphViolation, createRSCModuleRecord, findRSCBoundaryViolation, findRSCGraphViolation, hasTokens, hasUseClientDirective, hasUseServerDirective, isRSCServerModule, mergeThemes, parseThemeBlocks };
165
+ export { assertNoRSCBoundaryViolation, assertNoRSCGraphViolation, createRSCModuleRecord, deleteRSCModuleRecord, findRSCBoundaryViolation, findRSCGraphViolation, hasTokens, hasUseClientDirective, hasUseServerDirective, isRSCServerModule, mergeThemes, parseThemeBlocks };
166
+ export type { ParsedTheme, RSCBoundaryViolation, RSCModuleRecord };
@@ -1,5 +1,5 @@
1
- export { CSSManglerOptions, CSSManglerResult, MangleMap, createPostCSSPlugin, escapeCSSClassName, mangleCSS, mangleCSSSync, unescapeTailwindClass } from './css-mangler.js';
2
- export { u as default, e as esbuildPlugin, m as mangleCodeClassesSync, r as rollupPlugin, u as unplugin, v as vitePlugin, w as webpackPlugin } from './unplugin-DUbr5w-N.js';
1
+ export { CSSManglerOptions, CSSManglerResult, MangleMap, createPostCSSPlugin, escapeCSSClassName, mangleCSS, mangleCSSSync, unescapeTailwindClass } from './css-mangler.mjs';
2
+ export { u as default, e as esbuildPlugin, m as mangleCodeClassesSync, r as rollupPlugin, u as unplugin, v as vitePlugin, w as webpackPlugin } from './shared/unplugin.DUbr5w-N.mjs';
3
3
  import 'postcss';
4
4
  import '@csszyx/types';
5
5
  import 'esbuild';
@@ -78,6 +78,15 @@ declare function findRSCBoundaryViolation(code: string, id: string): RSCBoundary
78
78
  * @returns graph metadata for the module
79
79
  */
80
80
  declare function createRSCModuleRecord(code: string, id: string): RSCModuleRecord;
81
+ /**
82
+ * Removes a module record after the bundler watcher reports that the file was
83
+ * deleted.
84
+ *
85
+ * @param records module graph records keyed by normalized module ID
86
+ * @param id module ID/path from the watcher event
87
+ * @returns true when a stale record was removed
88
+ */
89
+ declare function deleteRSCModuleRecord(records: Map<string, RSCModuleRecord>, id: string): boolean;
81
90
  /**
82
91
  * Finds forbidden runtime helper imports reachable from an RSC server module.
83
92
  * Traversal stops at `'use client'` modules because they define a separate
@@ -150,4 +159,5 @@ declare function mergeThemes(themes: ParsedTheme[]): ParsedTheme;
150
159
  */
151
160
  declare function hasTokens(theme: ParsedTheme): boolean;
152
161
 
153
- export { type ParsedTheme, type RSCBoundaryViolation, type RSCModuleRecord, assertNoRSCBoundaryViolation, assertNoRSCGraphViolation, createRSCModuleRecord, findRSCBoundaryViolation, findRSCGraphViolation, hasTokens, hasUseClientDirective, hasUseServerDirective, isRSCServerModule, mergeThemes, parseThemeBlocks };
162
+ export { assertNoRSCBoundaryViolation, assertNoRSCGraphViolation, createRSCModuleRecord, deleteRSCModuleRecord, findRSCBoundaryViolation, findRSCGraphViolation, hasTokens, hasUseClientDirective, hasUseServerDirective, isRSCServerModule, mergeThemes, parseThemeBlocks };
163
+ export type { ParsedTheme, RSCBoundaryViolation, RSCModuleRecord };
package/dist/index.mjs ADDED
@@ -0,0 +1,16 @@
1
+ export { createPostCSSPlugin, escapeCSSClassName, mangleCSS, mangleCSSSync, unescapeTailwindClass } from './css-mangler.mjs';
2
+ export { a as assertNoRSCBoundaryViolation, b as assertNoRSCGraphViolation, c as createRSCModuleRecord, u as default, d as deleteRSCModuleRecord, e as esbuildPlugin, f as findRSCBoundaryViolation, g as findRSCGraphViolation, h as hasTokens, i as hasUseClientDirective, j as hasUseServerDirective, k as isRSCServerModule, m as mangleCodeClassesSync, l as mergeThemes, p as parseThemeBlocks, r as rollupPlugin, u as unplugin, v as vitePlugin, w as webpackPlugin } from './shared/unplugin.BEOG6ePC.mjs';
3
+ import 'postcss';
4
+ import 'postcss-selector-parser';
5
+ import 'node:fs';
6
+ import 'node:module';
7
+ import 'node:path';
8
+ import 'node:perf_hooks';
9
+ import 'node:url';
10
+ import '@csszyx/compiler';
11
+ import '@csszyx/core';
12
+ import '@csszyx/svelte-adapter';
13
+ import '@csszyx/types';
14
+ import '@csszyx/vue-adapter';
15
+ import 'unplugin';
16
+ import 'node:crypto';