@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 +5 -3
- package/dist/main.js +1 -1
- package/dist/module.js +1 -1
- package/dist-server/index.d.ts +1 -1
- package/dist-server/main.js +1 -1
- package/dist-server/module.js +1 -1
- package/package.json +3 -3
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
|
|
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?:
|
|
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.
|
|
220
|
+
export const version = "0.0.41";
|
package/dist/main.js
CHANGED
package/dist/module.js
CHANGED
package/dist-server/index.d.ts
CHANGED
package/dist-server/main.js
CHANGED
|
@@ -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.
|
|
18
|
+
const $db7b67857900028b$export$83d89fbfd8236492 = "0.0.41";
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
function $41e7e5d85b5e0d49$export$9fac37a9c21c2f3b(props) {
|
package/dist-server/module.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/react-ui",
|
|
3
|
-
"version": "0.0.
|
|
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.
|
|
87
|
-
"@depict-ai/utilishared": "^0.0.
|
|
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": {
|