@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 +12 -10
- 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.
|
|
@@ -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.
|
|
220
|
+
export const version = "0.0.42";
|
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.42";
|
|
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.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.
|
|
87
|
-
"@depict-ai/utilishared": "^0.0.
|
|
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": {
|