tailwindcss 0.0.0-insiders.91c0d56 → 0.0.0-insiders.91f5c19

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/plugin.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { P as PluginUtils } from './resolve-config-QUZ9b-Gn.mjs';
2
- import { a as PluginFn, C as Config, b as PluginWithConfig, c as PluginWithOptions } from './types-B254mqw1.mjs';
3
- export { d as PluginAPI, P as PluginsConfig, T as ThemeConfig } from './types-B254mqw1.mjs';
2
+ import { b as PluginFn, C as Config, c as PluginWithConfig, d as PluginWithOptions } from './types-DWdTiksJ.mjs';
3
+ export { a as PluginAPI, P as PluginsConfig, T as ThemeConfig } from './types-DWdTiksJ.mjs';
4
4
  import './colors.mjs';
5
5
 
6
6
  declare function createPlugin(handler: PluginFn, config?: Partial<Config>): PluginWithConfig;
@@ -8,4 +8,4 @@ declare namespace createPlugin {
8
8
  var withOptions: <T>(pluginFunction: (options?: T) => PluginFn, configFunction?: (options?: T) => Partial<Config>) => PluginWithOptions<T>;
9
9
  }
10
10
 
11
- export { Config, PluginFn as PluginCreator, createPlugin as default };
11
+ export { Config, PluginFn as PluginCreator, PluginWithConfig, createPlugin as default };
package/dist/plugin.d.ts CHANGED
@@ -1,5 +1,31 @@
1
- import { N as NamedUtilityValue, P as PluginUtils } from './resolve-config-BIFUA2FY.js';
2
- import './colors-b_6i0Oi7.js';
1
+ import { N as NamedUtilityValue, P as PluginUtils } from './resolve-config-B4yBzhca.js';
2
+ import './colors-C__qRT83.js';
3
+
4
+ /**
5
+ * The source code for one or more nodes in the AST
6
+ *
7
+ * This generally corresponds to a stylesheet
8
+ */
9
+ interface Source {
10
+ /**
11
+ * The path to the file that contains the referenced source code
12
+ *
13
+ * If this references the *output* source code, this is `null`.
14
+ */
15
+ file: string | null;
16
+ /**
17
+ * The referenced source code
18
+ */
19
+ code: string;
20
+ }
21
+ /**
22
+ * The file and offsets within it that this node covers
23
+ *
24
+ * This can represent either:
25
+ * - A location in the original CSS which caused this node to be created
26
+ * - A location in the output CSS where this node resides
27
+ */
28
+ type SourceLocation = [source: Source, start: number, end: number];
3
29
 
4
30
  type Config = UserConfig;
5
31
  type PluginFn = (api: PluginAPI) => void;
@@ -8,6 +34,7 @@ type PluginWithConfig = {
8
34
  config?: UserConfig;
9
35
  /** @internal */
10
36
  reference?: boolean;
37
+ src?: SourceLocation | undefined;
11
38
  };
12
39
  type PluginWithOptions<T> = {
13
40
  (options?: T): PluginWithConfig;
@@ -95,6 +122,9 @@ interface UserConfig {
95
122
  interface UserConfig {
96
123
  future?: 'all' | Record<string, boolean>;
97
124
  }
125
+ interface UserConfig {
126
+ experimental?: 'all' | Record<string, boolean>;
127
+ }
98
128
 
99
129
  declare function createPlugin(handler: PluginFn, config?: Partial<Config>): PluginWithConfig;
100
130
  declare namespace createPlugin {
@@ -1,4 +1,4 @@
1
- import { _ as _default } from './colors-b_6i0Oi7.js';
1
+ import { _ as _default } from './colors-C__qRT83.js';
2
2
 
3
3
  type NamedUtilityValue = {
4
4
  kind: 'named';
@@ -1,5 +1,31 @@
1
1
  import { N as NamedUtilityValue, P as PluginUtils } from './resolve-config-QUZ9b-Gn.mjs';
2
2
 
3
+ /**
4
+ * The source code for one or more nodes in the AST
5
+ *
6
+ * This generally corresponds to a stylesheet
7
+ */
8
+ interface Source {
9
+ /**
10
+ * The path to the file that contains the referenced source code
11
+ *
12
+ * If this references the *output* source code, this is `null`.
13
+ */
14
+ file: string | null;
15
+ /**
16
+ * The referenced source code
17
+ */
18
+ code: string;
19
+ }
20
+ /**
21
+ * The file and offsets within it that this node covers
22
+ *
23
+ * This can represent either:
24
+ * - A location in the original CSS which caused this node to be created
25
+ * - A location in the output CSS where this node resides
26
+ */
27
+ type SourceLocation = [source: Source, start: number, end: number];
28
+
3
29
  type Config = UserConfig;
4
30
  type PluginFn = (api: PluginAPI) => void;
5
31
  type PluginWithConfig = {
@@ -7,6 +33,7 @@ type PluginWithConfig = {
7
33
  config?: UserConfig;
8
34
  /** @internal */
9
35
  reference?: boolean;
36
+ src?: SourceLocation | undefined;
10
37
  };
11
38
  type PluginWithOptions<T> = {
12
39
  (options?: T): PluginWithConfig;
@@ -94,5 +121,8 @@ interface UserConfig {
94
121
  interface UserConfig {
95
122
  future?: 'all' | Record<string, boolean>;
96
123
  }
124
+ interface UserConfig {
125
+ experimental?: 'all' | Record<string, boolean>;
126
+ }
97
127
 
98
- export type { Config as C, Plugin as P, ThemeConfig as T, UserConfig as U, PluginFn as a, PluginWithConfig as b, PluginWithOptions as c, PluginAPI as d };
128
+ export type { Config as C, Plugin as P, SourceLocation as S, ThemeConfig as T, UserConfig as U, PluginAPI as a, PluginFn as b, PluginWithConfig as c, PluginWithOptions as d };