@tailwindcss/oxide 4.0.0-alpha.25 → 4.0.0-alpha.27

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.
Files changed (2) hide show
  1. package/index.d.ts +7 -0
  2. package/package.json +11 -11
package/index.d.ts CHANGED
@@ -27,10 +27,17 @@ export interface ScannerOptions {
27
27
  /** Glob sources */
28
28
  sources?: Array<GlobEntry>
29
29
  }
30
+ export interface CandidateWithPosition {
31
+ /** The candidate string */
32
+ candidate: string
33
+ /** The position of the candidate inside the content file */
34
+ position: number
35
+ }
30
36
  export declare class Scanner {
31
37
  constructor(opts: ScannerOptions)
32
38
  scan(): Array<string>
33
39
  scanFiles(input: Array<ChangedContent>): Array<string>
40
+ getCandidatesWithPositions(input: ChangedContent): Array<CandidateWithPosition>
34
41
  get files(): Array<string>
35
42
  get globs(): Array<GlobEntry>
36
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tailwindcss/oxide",
3
- "version": "4.0.0-alpha.25",
3
+ "version": "4.0.0-alpha.27",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/tailwindlabs/tailwindcss.git",
@@ -40,16 +40,16 @@
40
40
  "access": "public"
41
41
  },
42
42
  "optionalDependencies": {
43
- "@tailwindcss/oxide-android-arm64": "4.0.0-alpha.25",
44
- "@tailwindcss/oxide-darwin-arm64": "4.0.0-alpha.25",
45
- "@tailwindcss/oxide-freebsd-x64": "4.0.0-alpha.25",
46
- "@tailwindcss/oxide-linux-arm-gnueabihf": "4.0.0-alpha.25",
47
- "@tailwindcss/oxide-darwin-x64": "4.0.0-alpha.25",
48
- "@tailwindcss/oxide-linux-arm64-gnu": "4.0.0-alpha.25",
49
- "@tailwindcss/oxide-linux-arm64-musl": "4.0.0-alpha.25",
50
- "@tailwindcss/oxide-linux-x64-gnu": "4.0.0-alpha.25",
51
- "@tailwindcss/oxide-linux-x64-musl": "4.0.0-alpha.25",
52
- "@tailwindcss/oxide-win32-x64-msvc": "4.0.0-alpha.25"
43
+ "@tailwindcss/oxide-android-arm64": "4.0.0-alpha.27",
44
+ "@tailwindcss/oxide-darwin-x64": "4.0.0-alpha.27",
45
+ "@tailwindcss/oxide-darwin-arm64": "4.0.0-alpha.27",
46
+ "@tailwindcss/oxide-freebsd-x64": "4.0.0-alpha.27",
47
+ "@tailwindcss/oxide-linux-arm64-gnu": "4.0.0-alpha.27",
48
+ "@tailwindcss/oxide-linux-arm-gnueabihf": "4.0.0-alpha.27",
49
+ "@tailwindcss/oxide-linux-arm64-musl": "4.0.0-alpha.27",
50
+ "@tailwindcss/oxide-linux-x64-musl": "4.0.0-alpha.27",
51
+ "@tailwindcss/oxide-win32-x64-msvc": "4.0.0-alpha.27",
52
+ "@tailwindcss/oxide-linux-x64-gnu": "4.0.0-alpha.27"
53
53
  },
54
54
  "scripts": {
55
55
  "artifacts": "napi artifacts",