@depict-ai/react-ui 0.0.40 → 0.0.42

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
@@ -32,12 +32,14 @@ type BaseDepictConfig = {
32
32
  */
33
33
  enableCategorySuggestions?: boolean;
34
34
  };
35
+ /** Custom NavigateFunction so that we can accept other libraries */
36
+ type NavigateFunctionCallback = (href: string) => unknown;
35
37
  /**
36
38
  *
37
39
  If react-router does not exist, useNavigate will fall back to "any".
38
40
  In that case, the ReactRouterUseNavigate type becomes "never" and cannot be used.
39
41
  */
40
- type ReactRouterUseNavigate = any extends typeof useNavigate ? never : typeof useNavigate;
42
+ type NavigationCallback = any extends typeof useNavigate ? never : NavigateFunctionCallback;
41
43
  type OnNavigation = (href: string, shallow?: boolean) => unknown;
42
44
  /**
43
45
  * The config for Depict
@@ -75,7 +77,7 @@ import { useNavigate } from "react-router";
75
77
  * };
76
78
  * ```
77
79
  */
78
- navigateFunction?: ReactRouterUseNavigate;
80
+ navigateFunction?: NavigationCallback;
79
81
  };
80
82
  /**
81
83
  * The DepictProvider is a wrapper component that should be used to wrap any component that uses Depict components.
@@ -192,27 +194,27 @@ interface SearchPageConfig<T extends Display> {
192
194
  */
193
195
  export function DepictSearchPage<T extends Display>(props: SearchPageConfig<T>): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
194
196
  /**
195
- * Props for the ImagePlaceholder component
197
+ * Props for the ImagePlaceholder component.
196
198
  */
197
199
  interface ImagePlaceholderProps {
198
- /** The aspect ratio of the image */
200
+ /** The aspect ratio of the image. */
199
201
  aspectRatio: number;
200
202
  }
201
203
  /**
202
- * A placeholder image that can be used in place of an image that is loading
204
+ * A placeholder image that can be used in place of an image that is loading.
203
205
  * @param props
204
206
  * @returns
205
207
  */
206
208
  export const ImagePlaceholder: React.FC<ImagePlaceholderProps>;
207
209
  /**
208
- * Props for the TextPlaceholder component
210
+ * Props for the TextPlaceholder component.
209
211
  */
210
212
  interface TextPlaceholderProps {
211
- /** The height of the text */
213
+ /** The height of the text. */
212
214
  height: string;
213
- /** The width of the text */
215
+ /** The width of the text. */
214
216
  width: string;
215
217
  }
216
- /** A placeholder text that can be used in place of a text that is loading */
218
+ /** A placeholder text that can be used in place of a text that is loading. */
217
219
  export const TextPlaceholder: React.FC<TextPlaceholderProps>;
218
- export const version = "0.0.40";
220
+ export const version = "0.0.42";
package/dist/main.js CHANGED
@@ -348,7 +348,7 @@ const $afce04c26b0c4208$export$89c6019e4baa40b1 = ({ width: width , height: heig
348
348
  };
349
349
 
350
350
 
351
- const $db7b67857900028b$export$83d89fbfd8236492 = "0.0.40";
351
+ const $db7b67857900028b$export$83d89fbfd8236492 = "0.0.42";
352
352
 
353
353
 
354
354
 
package/dist/module.js CHANGED
@@ -336,7 +336,7 @@ const $8aa3ab31237c8dc9$export$89c6019e4baa40b1 = ({ width: width , height: heig
336
336
  };
337
337
 
338
338
 
339
- const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "0.0.40";
339
+ const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "0.0.42";
340
340
 
341
341
 
342
342
 
@@ -1,4 +1,4 @@
1
- export const version = "0.0.40";
1
+ export const version = "0.0.42";
2
2
  export function DepictProvider(props: any): any;
3
3
  export function DepictSearchField(): any;
4
4
  export function DepictSearchPage(): any;
@@ -15,7 +15,7 @@ $parcel$export(module.exports, "openModal", () => $41e7e5d85b5e0d49$export$a7f6c
15
15
  $parcel$export(module.exports, "version", () => $db7b67857900028b$export$83d89fbfd8236492);
16
16
 
17
17
 
18
- const $db7b67857900028b$export$83d89fbfd8236492 = "0.0.40";
18
+ const $db7b67857900028b$export$83d89fbfd8236492 = "0.0.42";
19
19
 
20
20
 
21
21
  function $41e7e5d85b5e0d49$export$9fac37a9c21c2f3b(props) {
@@ -3,7 +3,7 @@ import {jsx as $1RlIW$jsx} from "react/jsx-runtime";
3
3
 
4
4
 
5
5
 
6
- const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "0.0.40";
6
+ const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "0.0.42";
7
7
 
8
8
 
9
9
  function $2b1fdeb83610500f$export$9fac37a9c21c2f3b(props) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/react-ui",
3
- "version": "0.0.40",
3
+ "version": "0.0.42",
4
4
  "packageManager": "yarn@3.2.2",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/main.js",
@@ -83,8 +83,8 @@
83
83
  "/dist-server"
84
84
  ],
85
85
  "dependencies": {
86
- "@depict-ai/ui": "^0.0.18",
87
- "@depict-ai/utilishared": "^0.0.16",
86
+ "@depict-ai/ui": "^0.0.20",
87
+ "@depict-ai/utilishared": "^0.0.18",
88
88
  "solid-js": "^1.6.2"
89
89
  },
90
90
  "peerDependencies": {