shadcn 4.16.0 → 4.16.2

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.ts CHANGED
@@ -7,7 +7,16 @@ type RegistryApiOptions = {
7
7
  config?: Partial<Config>;
8
8
  useCache?: boolean;
9
9
  };
10
- declare function getRegistry(name: string, options?: RegistryApiOptions): Promise<{
10
+ type RegistrySearchParams = {
11
+ query?: string;
12
+ types?: string[];
13
+ limit?: number;
14
+ offset?: number;
15
+ };
16
+ type GetRegistryOptions = RegistryApiOptions & {
17
+ searchParams?: RegistrySearchParams;
18
+ };
19
+ declare function getRegistry(name: string, options?: GetRegistryOptions): Promise<{
11
20
  name: string;
12
21
  homepage: string;
13
22
  items: ({
@@ -169,6 +178,12 @@ declare function getRegistry(name: string, options?: RegistryApiOptions): Promis
169
178
  })[];
170
179
  $schema?: string | undefined;
171
180
  include?: string[] | undefined;
181
+ pagination?: {
182
+ total: number;
183
+ offset: number;
184
+ limit: number;
185
+ hasMore: boolean;
186
+ } | undefined;
172
187
  } | {
173
188
  items: ({
174
189
  files: ({
@@ -325,6 +340,12 @@ declare function getRegistry(name: string, options?: RegistryApiOptions): Promis
325
340
  homepage: string;
326
341
  $schema?: string | undefined;
327
342
  include?: string[] | undefined;
343
+ pagination?: {
344
+ total: number;
345
+ offset: number;
346
+ limit: number;
347
+ hasMore: boolean;
348
+ } | undefined;
328
349
  }>;
329
350
  declare function getRegistryItems(items: string[], options?: RegistryApiOptions): Promise<({
330
351
  type: "registry:base";