modern-cmdk 1.3.0 → 1.5.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.
@@ -1,4 +1,4 @@
1
- /* modern-cmdk/react — GPU-composited animations */
1
+ /* modern-cmdk/react — tokens, item and list transitions; the dialog and overlay transitions are declared but inert until DT-19 */
2
2
  /* All animations respect prefers-reduced-motion */
3
3
  /* Spring easing via linear() approximation — perceptually smooth */
4
4
  /* Scroll-driven animations via animation-timeline: scroll() */
@@ -341,7 +341,7 @@
341
341
  }
342
342
 
343
343
  /* ─── Dialog Animations ─── */
344
- /* GPU-composited dialog animation — zero layout thrash */
344
+ /* Dialog transitions: inert until DT-19 */
345
345
  /* Spring easing via linear() approximation */
346
346
 
347
347
  [data-command-dialog][data-state="open"] {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "modern-cmdk",
3
- "version": "1.3.0",
3
+ "version": "1.5.0",
4
4
  "type": "module",
5
5
  "description": "The definitive command palette engine for the modern web",
6
6
  "license": "MIT",
@@ -8,37 +8,37 @@
8
8
  "bugs": {
9
9
  "url": "https://github.com/ABCrimson/modern-cmdk/issues"
10
10
  },
11
- "engines": {
12
- "node": ">=26.4.0"
13
- },
14
11
  "publishConfig": {
15
12
  "access": "public"
16
13
  },
17
14
  "exports": {
18
15
  ".": {
19
16
  "types": "./dist/core/index.d.mts",
20
- "import": "./dist/core/index.mjs",
21
17
  "default": "./dist/core/index.mjs"
22
18
  },
23
19
  "./react": {
24
20
  "types": "./dist/react/index.d.mts",
25
- "import": "./dist/react/index.mjs",
26
21
  "default": "./dist/react/index.mjs"
27
22
  },
28
- "./styles.css": "./dist/react/styles.css"
23
+ "./react/dialog": {
24
+ "types": "./dist/react/dialog.d.mts",
25
+ "default": "./dist/react/dialog.mjs"
26
+ },
27
+ "./styles.css": "./dist/react/styles.css",
28
+ "./package.json": "./package.json"
29
29
  },
30
30
  "main": "./dist/core/index.mjs",
31
31
  "types": "./dist/core/index.d.mts",
32
32
  "bin": {
33
- "modern-cmdk": "./dist/codemod/cli.mjs"
33
+ "modern-cmdk": "./dist/codemod/bin.mjs"
34
34
  },
35
35
  "files": [
36
36
  "dist",
37
- "LICENSE"
37
+ "LICENSE",
38
+ "THIRD-PARTY-NOTICES.md"
38
39
  ],
39
40
  "sideEffects": [
40
- "./dist/react/styles.css",
41
- "./dist/react/index.mjs"
41
+ "./dist/react/styles.css"
42
42
  ],
43
43
  "peerDependencies": {
44
44
  "react": ">=19.0.0 <21.0.0",
@@ -51,19 +51,13 @@
51
51
  },
52
52
  "react-dom": {
53
53
  "optional": true
54
- },
55
- "radix-ui": {
56
- "optional": true
57
54
  }
58
55
  },
59
56
  "dependencies": {
60
57
  "idb-keyval": "6.3.0"
61
58
  },
62
59
  "devDependencies": {
63
- "globby": "16.2.4",
64
- "jscodeshift": "17.4.0",
65
- "radix-ui": "1.8.2-rc.1791984254107",
66
- "@types/jscodeshift": "17.3.0"
60
+ "radix-ui": "1.8.2-rc.1791984254107"
67
61
  },
68
62
  "keywords": [
69
63
  "command-palette",
@@ -1,16 +0,0 @@
1
- import { API, FileInfo } from "jscodeshift";
2
- type TransformFn = (fileInfo: FileInfo, api: API) => string;
3
- /** The two streams the CLI writes to; `process` satisfies this, tests pass collectors. */
4
- export interface CliIo {
5
- readonly stdout: NodeJS.WritableStream;
6
- readonly stderr: NodeJS.WritableStream;
7
- }
8
- /** Test seam: replace how a transform is loaded (the bundled bin imports `./transforms/<name>.mjs`). */
9
- export interface CliDeps {
10
- readonly loadTransform?: (name: string) => Promise<TransformFn>;
11
- }
12
- /**
13
- * Run the codemod CLI. Resolves to the process exit code; writes only to `io`.
14
- */
15
- export declare function run(argv: readonly string[], io: CliIo, deps?: CliDeps): Promise<number>;
16
- export {};
@@ -1,6 +0,0 @@
1
- import { API, FileInfo } from "jscodeshift";
2
- /**
3
- * jscodeshift transform — renames cmdk data attributes in JSX and
4
- * CSS selectors within string/template literals.
5
- */
6
- export default function transform(fileInfo: FileInfo, api: API): string;
@@ -1,6 +0,0 @@
1
- import { API, FileInfo } from "jscodeshift";
2
- /**
3
- * jscodeshift transform — removes forwardRef wrappers and merges the
4
- * ref parameter into the props object as a regular prop.
5
- */
6
- export default function transform(fileInfo: FileInfo, api: API): string;
@@ -1,6 +0,0 @@
1
- import { API, FileInfo } from "jscodeshift";
2
- /**
3
- * jscodeshift transform — rewrites all import/require/re-export paths
4
- * from `cmdk` to `modern-cmdk/react`.
5
- */
6
- export default function transform(fileInfo: FileInfo, api: API): string;
@@ -1,5 +0,0 @@
1
- import { API, FileInfo } from "jscodeshift";
2
- /**
3
- * jscodeshift transform — migrates shouldFilter prop to filter.
4
- */
5
- export default function transform(fileInfo: FileInfo, api: API): string;