tailwindcss-patch 3.1.0-alpha.0 → 3.1.0-alpha.1
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 +8 -9
- package/dist/index.d.mts +8 -9
- package/dist/index.d.ts +8 -9
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -85,6 +85,13 @@ interface TailwindcssRuntimeContext {
|
|
|
85
85
|
type DeepRequired<T> = {
|
|
86
86
|
[K in keyof T]: Required<DeepRequired<T[K]>>;
|
|
87
87
|
};
|
|
88
|
+
interface ILengthUnitsPatchOptions {
|
|
89
|
+
units: string[];
|
|
90
|
+
lengthUnitsFilePath?: string;
|
|
91
|
+
variableName?: string;
|
|
92
|
+
overwrite?: boolean;
|
|
93
|
+
destPath?: string;
|
|
94
|
+
}
|
|
88
95
|
|
|
89
96
|
declare function getCacheOptions(options?: CacheOptions | boolean): InternalCacheOptions;
|
|
90
97
|
declare class CacheManager {
|
|
@@ -135,14 +142,6 @@ declare function monkeyPatchForExposingContextV2(twDir: string, opt: InternalPat
|
|
|
135
142
|
plugin?: string;
|
|
136
143
|
} & Record<string, any>;
|
|
137
144
|
|
|
138
|
-
interface ILengthUnitsPatchOptions {
|
|
139
|
-
units: string[];
|
|
140
|
-
lengthUnitsFilePath?: string;
|
|
141
|
-
variableName?: string;
|
|
142
|
-
overwrite?: boolean;
|
|
143
|
-
destPath?: string;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
145
|
declare function monkeyPatchForSupportingCustomUnit(rootDir: string, options?: Partial<ILengthUnitsPatchOptions>): string | undefined;
|
|
147
146
|
|
|
148
147
|
declare function internalPatch(pkgJsonPath: string | undefined, options: InternalPatchOptions): any | undefined;
|
|
@@ -160,4 +159,4 @@ declare function isObject(val: any): boolean;
|
|
|
160
159
|
|
|
161
160
|
declare const logger: consola.ConsolaInstance;
|
|
162
161
|
|
|
163
|
-
export { CacheManager, type CacheOptions, type CacheStrategy, type DeepRequired, type InternalCacheOptions, type InternalPatchOptions, type PackageInfo, type PatchOptions, type TailwindcssClassCache, TailwindcssPatcher, type TailwindcssPatcherOptions, type TailwindcssRuntimeContext, ensureFileContent, getCacheOptions, getPackageInfoSync, internalPatch, isObject, logger, monkeyPatchForExposingContextV2, monkeyPatchForExposingContextV3, monkeyPatchForSupportingCustomUnit, requireResolve };
|
|
162
|
+
export { CacheManager, type CacheOptions, type CacheStrategy, type DeepRequired, type ILengthUnitsPatchOptions, type InternalCacheOptions, type InternalPatchOptions, type PackageInfo, type PatchOptions, type TailwindcssClassCache, TailwindcssPatcher, type TailwindcssPatcherOptions, type TailwindcssRuntimeContext, ensureFileContent, getCacheOptions, getPackageInfoSync, internalPatch, isObject, logger, monkeyPatchForExposingContextV2, monkeyPatchForExposingContextV3, monkeyPatchForSupportingCustomUnit, requireResolve };
|
package/dist/index.d.mts
CHANGED
|
@@ -85,6 +85,13 @@ interface TailwindcssRuntimeContext {
|
|
|
85
85
|
type DeepRequired<T> = {
|
|
86
86
|
[K in keyof T]: Required<DeepRequired<T[K]>>;
|
|
87
87
|
};
|
|
88
|
+
interface ILengthUnitsPatchOptions {
|
|
89
|
+
units: string[];
|
|
90
|
+
lengthUnitsFilePath?: string;
|
|
91
|
+
variableName?: string;
|
|
92
|
+
overwrite?: boolean;
|
|
93
|
+
destPath?: string;
|
|
94
|
+
}
|
|
88
95
|
|
|
89
96
|
declare function getCacheOptions(options?: CacheOptions | boolean): InternalCacheOptions;
|
|
90
97
|
declare class CacheManager {
|
|
@@ -135,14 +142,6 @@ declare function monkeyPatchForExposingContextV2(twDir: string, opt: InternalPat
|
|
|
135
142
|
plugin?: string;
|
|
136
143
|
} & Record<string, any>;
|
|
137
144
|
|
|
138
|
-
interface ILengthUnitsPatchOptions {
|
|
139
|
-
units: string[];
|
|
140
|
-
lengthUnitsFilePath?: string;
|
|
141
|
-
variableName?: string;
|
|
142
|
-
overwrite?: boolean;
|
|
143
|
-
destPath?: string;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
145
|
declare function monkeyPatchForSupportingCustomUnit(rootDir: string, options?: Partial<ILengthUnitsPatchOptions>): string | undefined;
|
|
147
146
|
|
|
148
147
|
declare function internalPatch(pkgJsonPath: string | undefined, options: InternalPatchOptions): any | undefined;
|
|
@@ -160,4 +159,4 @@ declare function isObject(val: any): boolean;
|
|
|
160
159
|
|
|
161
160
|
declare const logger: consola.ConsolaInstance;
|
|
162
161
|
|
|
163
|
-
export { CacheManager, type CacheOptions, type CacheStrategy, type DeepRequired, type InternalCacheOptions, type InternalPatchOptions, type PackageInfo, type PatchOptions, type TailwindcssClassCache, TailwindcssPatcher, type TailwindcssPatcherOptions, type TailwindcssRuntimeContext, ensureFileContent, getCacheOptions, getPackageInfoSync, internalPatch, isObject, logger, monkeyPatchForExposingContextV2, monkeyPatchForExposingContextV3, monkeyPatchForSupportingCustomUnit, requireResolve };
|
|
162
|
+
export { CacheManager, type CacheOptions, type CacheStrategy, type DeepRequired, type ILengthUnitsPatchOptions, type InternalCacheOptions, type InternalPatchOptions, type PackageInfo, type PatchOptions, type TailwindcssClassCache, TailwindcssPatcher, type TailwindcssPatcherOptions, type TailwindcssRuntimeContext, ensureFileContent, getCacheOptions, getPackageInfoSync, internalPatch, isObject, logger, monkeyPatchForExposingContextV2, monkeyPatchForExposingContextV3, monkeyPatchForSupportingCustomUnit, requireResolve };
|
package/dist/index.d.ts
CHANGED
|
@@ -85,6 +85,13 @@ interface TailwindcssRuntimeContext {
|
|
|
85
85
|
type DeepRequired<T> = {
|
|
86
86
|
[K in keyof T]: Required<DeepRequired<T[K]>>;
|
|
87
87
|
};
|
|
88
|
+
interface ILengthUnitsPatchOptions {
|
|
89
|
+
units: string[];
|
|
90
|
+
lengthUnitsFilePath?: string;
|
|
91
|
+
variableName?: string;
|
|
92
|
+
overwrite?: boolean;
|
|
93
|
+
destPath?: string;
|
|
94
|
+
}
|
|
88
95
|
|
|
89
96
|
declare function getCacheOptions(options?: CacheOptions | boolean): InternalCacheOptions;
|
|
90
97
|
declare class CacheManager {
|
|
@@ -135,14 +142,6 @@ declare function monkeyPatchForExposingContextV2(twDir: string, opt: InternalPat
|
|
|
135
142
|
plugin?: string;
|
|
136
143
|
} & Record<string, any>;
|
|
137
144
|
|
|
138
|
-
interface ILengthUnitsPatchOptions {
|
|
139
|
-
units: string[];
|
|
140
|
-
lengthUnitsFilePath?: string;
|
|
141
|
-
variableName?: string;
|
|
142
|
-
overwrite?: boolean;
|
|
143
|
-
destPath?: string;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
145
|
declare function monkeyPatchForSupportingCustomUnit(rootDir: string, options?: Partial<ILengthUnitsPatchOptions>): string | undefined;
|
|
147
146
|
|
|
148
147
|
declare function internalPatch(pkgJsonPath: string | undefined, options: InternalPatchOptions): any | undefined;
|
|
@@ -160,4 +159,4 @@ declare function isObject(val: any): boolean;
|
|
|
160
159
|
|
|
161
160
|
declare const logger: consola.ConsolaInstance;
|
|
162
161
|
|
|
163
|
-
export { CacheManager, type CacheOptions, type CacheStrategy, type DeepRequired, type InternalCacheOptions, type InternalPatchOptions, type PackageInfo, type PatchOptions, type TailwindcssClassCache, TailwindcssPatcher, type TailwindcssPatcherOptions, type TailwindcssRuntimeContext, ensureFileContent, getCacheOptions, getPackageInfoSync, internalPatch, isObject, logger, monkeyPatchForExposingContextV2, monkeyPatchForExposingContextV3, monkeyPatchForSupportingCustomUnit, requireResolve };
|
|
162
|
+
export { CacheManager, type CacheOptions, type CacheStrategy, type DeepRequired, type ILengthUnitsPatchOptions, type InternalCacheOptions, type InternalPatchOptions, type PackageInfo, type PatchOptions, type TailwindcssClassCache, TailwindcssPatcher, type TailwindcssPatcherOptions, type TailwindcssRuntimeContext, ensureFileContent, getCacheOptions, getPackageInfoSync, internalPatch, isObject, logger, monkeyPatchForExposingContextV2, monkeyPatchForExposingContextV3, monkeyPatchForSupportingCustomUnit, requireResolve };
|
package/package.json
CHANGED