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.
@@ -0,0 +1,303 @@
1
+ # Third-party notices
2
+
3
+ <!-- Generated by `node scripts/third-party-notices.ts`; do not edit. `--check` fails when this file is stale. -->
4
+
5
+ This file covers `dist/codemod` only. The deprecated `modern-cmdk` bin (`dist/codemod/bin.mjs`) bundles the code below, inlined by tsdown from the codemod package and jscodeshift with its parser tree, and it redistributes that code under the licences reproduced here. The bundle leaves `modern-cmdk` in 2.0, and so does this file.
6
+
7
+ The `modern-cmdk-codemod` package bundles nothing: it declares jscodeshift as a dependency, so it needs no notices file.
8
+
9
+ The rest of `modern-cmdk` (`dist/core`, `dist/react`) inlines no third-party code.
10
+
11
+ ## @babel/parser@7.29.12
12
+
13
+ Licence: MIT
14
+
15
+ File: `LICENSE`
16
+
17
+ ```text
18
+ Copyright (C) 2012-2014 by various contributors (see AUTHORS)
19
+
20
+ Permission is hereby granted, free of charge, to any person obtaining a copy
21
+ of this software and associated documentation files (the "Software"), to deal
22
+ in the Software without restriction, including without limitation the rights
23
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
24
+ copies of the Software, and to permit persons to whom the Software is
25
+ furnished to do so, subject to the following conditions:
26
+
27
+ The above copyright notice and this permission notice shall be included in
28
+ all copies or substantial portions of the Software.
29
+
30
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
31
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
32
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
33
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
34
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
35
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
36
+ THE SOFTWARE.
37
+ ```
38
+
39
+ ## ast-types@0.16.3
40
+
41
+ Licence: MIT
42
+
43
+ File: `LICENSE`
44
+
45
+ ```text
46
+ Copyright (c) 2013 Ben Newman <bn@cs.stanford.edu>
47
+
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of this software and associated documentation files (the
50
+ "Software"), to deal in the Software without restriction, including
51
+ without limitation the rights to use, copy, modify, merge, publish,
52
+ distribute, sublicense, and/or sell copies of the Software, and to
53
+ permit persons to whom the Software is furnished to do so, subject to
54
+ the following conditions:
55
+
56
+ The above copyright notice and this permission notice shall be
57
+ included in all copies or substantial portions of the Software.
58
+
59
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
60
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
61
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
62
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
63
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
64
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
65
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
66
+ ```
67
+
68
+ ## esprima@4.0.1
69
+
70
+ Licence: BSD-2-Clause
71
+
72
+ File: `LICENSE.BSD`
73
+
74
+ ```text
75
+ Copyright JS Foundation and other contributors, https://js.foundation/
76
+
77
+ Redistribution and use in source and binary forms, with or without
78
+ modification, are permitted provided that the following conditions are met:
79
+
80
+ * Redistributions of source code must retain the above copyright
81
+ notice, this list of conditions and the following disclaimer.
82
+ * Redistributions in binary form must reproduce the above copyright
83
+ notice, this list of conditions and the following disclaimer in the
84
+ documentation and/or other materials provided with the distribution.
85
+
86
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
87
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
88
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
89
+ ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
90
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
91
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
92
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
93
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
94
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
95
+ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
96
+ ```
97
+
98
+ ## flow-estree@0.337.0
99
+
100
+ Licence: MIT
101
+
102
+ Licence text pinned in this repository, from https://github.com/facebook/flow/blob/741104e69c43057ebd32804dd6bcc1b5e97548ea/LICENSE, fetched 2026-11-05, because the npm tarball ships no licence file; package.json declares MIT and the flow repository.
103
+
104
+ ```text
105
+ MIT License
106
+
107
+ Copyright (c) Meta Platforms, Inc. and affiliates.
108
+
109
+ Permission is hereby granted, free of charge, to any person obtaining a copy
110
+ of this software and associated documentation files (the "Software"), to deal
111
+ in the Software without restriction, including without limitation the rights
112
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
113
+ copies of the Software, and to permit persons to whom the Software is
114
+ furnished to do so, subject to the following conditions:
115
+
116
+ The above copyright notice and this permission notice shall be included in all
117
+ copies or substantial portions of the Software.
118
+
119
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
120
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
121
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
122
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
123
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
124
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
125
+ SOFTWARE.
126
+ ```
127
+
128
+ ## flow-parser@0.337.0
129
+
130
+ Licence: MIT
131
+
132
+ Licence text pinned in this repository, from https://github.com/facebook/flow/blob/741104e69c43057ebd32804dd6bcc1b5e97548ea/LICENSE, fetched 2026-11-05, because the npm tarball ships no licence file; package.json declares MIT and the flow repository.
133
+
134
+ ```text
135
+ MIT License
136
+
137
+ Copyright (c) Meta Platforms, Inc. and affiliates.
138
+
139
+ Permission is hereby granted, free of charge, to any person obtaining a copy
140
+ of this software and associated documentation files (the "Software"), to deal
141
+ in the Software without restriction, including without limitation the rights
142
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
143
+ copies of the Software, and to permit persons to whom the Software is
144
+ furnished to do so, subject to the following conditions:
145
+
146
+ The above copyright notice and this permission notice shall be included in all
147
+ copies or substantial portions of the Software.
148
+
149
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
150
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
151
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
152
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
153
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
154
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
155
+ SOFTWARE.
156
+ ```
157
+
158
+ ## jscodeshift@17.4.0
159
+
160
+ Licence: MIT
161
+
162
+ File: `LICENSE`
163
+
164
+ ```text
165
+ MIT License
166
+
167
+ Copyright (c) Facebook, Inc. and its affiliates.
168
+
169
+ Permission is hereby granted, free of charge, to any person obtaining a copy
170
+ of this software and associated documentation files (the "Software"), to deal
171
+ in the Software without restriction, including without limitation the rights
172
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
173
+ copies of the Software, and to permit persons to whom the Software is
174
+ furnished to do so, subject to the following conditions:
175
+
176
+ The above copyright notice and this permission notice shall be included in all
177
+ copies or substantial portions of the Software.
178
+
179
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
180
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
181
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
182
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
183
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
184
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
185
+ SOFTWARE.
186
+ ```
187
+
188
+ ## recast@0.23.21
189
+
190
+ Licence: MIT
191
+
192
+ File: `LICENSE`
193
+
194
+ ```text
195
+ Copyright (c) 2012 Ben Newman <bn@cs.stanford.edu>
196
+
197
+ Permission is hereby granted, free of charge, to any person obtaining
198
+ a copy of this software and associated documentation files (the
199
+ "Software"), to deal in the Software without restriction, including
200
+ without limitation the rights to use, copy, modify, merge, publish,
201
+ distribute, sublicense, and/or sell copies of the Software, and to
202
+ permit persons to whom the Software is furnished to do so, subject to
203
+ the following conditions:
204
+
205
+ The above copyright notice and this permission notice shall be
206
+ included in all copies or substantial portions of the Software.
207
+
208
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
209
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
210
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
211
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
212
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
213
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
214
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
215
+ ```
216
+
217
+ ## source-map@0.6.1
218
+
219
+ Licence: BSD-3-Clause
220
+
221
+ File: `LICENSE`
222
+
223
+ ```text
224
+
225
+ Copyright (c) 2009-2011, Mozilla Foundation and contributors
226
+ All rights reserved.
227
+
228
+ Redistribution and use in source and binary forms, with or without
229
+ modification, are permitted provided that the following conditions are met:
230
+
231
+ * Redistributions of source code must retain the above copyright notice, this
232
+ list of conditions and the following disclaimer.
233
+
234
+ * Redistributions in binary form must reproduce the above copyright notice,
235
+ this list of conditions and the following disclaimer in the documentation
236
+ and/or other materials provided with the distribution.
237
+
238
+ * Neither the names of the Mozilla Foundation nor the names of project
239
+ contributors may be used to endorse or promote products derived from this
240
+ software without specific prior written permission.
241
+
242
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
243
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
244
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
245
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
246
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
247
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
248
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
249
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
250
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
251
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
252
+ ```
253
+
254
+ ## tiny-invariant@1.3.3
255
+
256
+ Licence: MIT
257
+
258
+ File: `LICENSE`
259
+
260
+ ```text
261
+ MIT License
262
+
263
+ Copyright (c) 2019 Alexander Reardon
264
+
265
+ Permission is hereby granted, free of charge, to any person obtaining a copy
266
+ of this software and associated documentation files (the "Software"), to deal
267
+ in the Software without restriction, including without limitation the rights
268
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
269
+ copies of the Software, and to permit persons to whom the Software is
270
+ furnished to do so, subject to the following conditions:
271
+
272
+ The above copyright notice and this permission notice shall be included in all
273
+ copies or substantial portions of the Software.
274
+
275
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
276
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
277
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
278
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
279
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
280
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
281
+ SOFTWARE.
282
+ ```
283
+
284
+ ## tslib@2.8.1
285
+
286
+ Licence: 0BSD
287
+
288
+ File: `LICENSE.txt`
289
+
290
+ ```text
291
+ Copyright (c) Microsoft Corporation.
292
+
293
+ Permission to use, copy, modify, and/or distribute this software for any
294
+ purpose with or without fee is hereby granted.
295
+
296
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
297
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
298
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
299
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
300
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
301
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
302
+ PERFORMANCE OF THIS SOFTWARE.
303
+ ```
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env node
2
+ // src/codemod/bin.ts
3
+ /** The one line this bin writes to stderr before it runs. */
4
+ const DEPRECATION_WARNING = "warning: the modern-cmdk bin is deprecated and leaves in modern-cmdk 2.0; use npx modern-cmdk-codemod (strict by default). This bin runs the bundled codemod with the 1.x lenient exit codes unless --strict is given.";
5
+ /** The argv handed to the bundled CLI: --lenient is put first unless the caller gave --strict (the two flags exclude each other). */
6
+ function shimArgv(argv) {
7
+ return argv.includes("--strict") ? argv : ["--lenient", ...argv];
8
+ }
9
+ if (import.meta.main) {
10
+ process.stderr.write(`${DEPRECATION_WARNING}\n`);
11
+ const { run } = await import(`${/* @vite-ignore */ new URL(".", import.meta.url).href}cli.mjs`);
12
+ process.exitCode = await run(shimArgv(process.argv.slice(2)), process, { program: "modern-cmdk" });
13
+ }
14
+ export { DEPRECATION_WARNING, shimArgv };