@depict-ai/react-ui 0.0.40 → 0.0.41

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.
@@ -215,4 +217,4 @@ interface TextPlaceholderProps {
215
217
  }
216
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.41";
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.41";
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.41";
340
340
 
341
341
 
342
342
 
@@ -1,4 +1,4 @@
1
- export const version = "0.0.40";
1
+ export const version = "0.0.41";
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.41";
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.41";
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.41",
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.19",
87
+ "@depict-ai/utilishared": "^0.0.17",
88
88
  "solid-js": "^1.6.2"
89
89
  },
90
90
  "peerDependencies": {