@haus-storefront-react/vendure-plugin-configs 0.0.15 → 0.0.17
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/CHANGELOG.md +16 -0
- package/badge.js +8 -8
- package/badge.mjs +357 -366
- package/lib/components/product-badges.d.ts +7 -11
- package/package.json +4 -4
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Product, Badge as IBadge, SearchResult, AsChildProps, ChildrenProps } from '@haus-storefront-react/shared-types';
|
|
2
|
-
import {
|
|
3
|
-
import { Scope } from '@haus-storefront-react/common-utils';
|
|
2
|
+
import { WebDivProps, WebImageProps, Scope } from '@haus-storefront-react/common-utils';
|
|
4
3
|
type ScopedProps<P> = P & {
|
|
5
4
|
__scopeProductBadge?: Scope;
|
|
6
5
|
};
|
|
@@ -10,22 +9,19 @@ export interface ProductBadgeContextValue {
|
|
|
10
9
|
positions: string[];
|
|
11
10
|
badgesRef: React.RefObject<HTMLDivElement | null>;
|
|
12
11
|
}
|
|
13
|
-
interface RootProps {
|
|
14
|
-
children?: ReactNode | ((props: ProductBadgeContextValue) => ReactNode);
|
|
12
|
+
interface RootProps extends Omit<WebDivProps, 'children'>, AsChildProps<ChildrenProps<ProductBadgeContextValue>> {
|
|
15
13
|
product: Product | SearchResult;
|
|
16
|
-
asChild?: boolean;
|
|
17
|
-
style?: React.CSSProperties;
|
|
18
14
|
}
|
|
19
|
-
|
|
15
|
+
interface GroupProps extends Omit<WebDivProps, 'children'>, AsChildProps<ChildrenProps<{
|
|
20
16
|
badges: IBadge[];
|
|
21
17
|
position: string;
|
|
22
|
-
}>>
|
|
18
|
+
}>> {
|
|
23
19
|
position: string;
|
|
24
|
-
}
|
|
25
|
-
interface ItemProps extends AsChildProps {
|
|
20
|
+
}
|
|
21
|
+
interface ItemProps extends Omit<WebDivProps, 'children'>, AsChildProps {
|
|
26
22
|
badge?: IBadge;
|
|
27
23
|
}
|
|
28
|
-
interface ImageProps extends AsChildProps {
|
|
24
|
+
interface ImageProps extends Omit<WebImageProps, 'children'>, AsChildProps {
|
|
29
25
|
badge: IBadge;
|
|
30
26
|
}
|
|
31
27
|
export declare const ProductBadge: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haus-storefront-react/vendure-plugin-configs",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
4
|
"main": "./index.js",
|
|
5
5
|
"types": "./index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@haus-storefront-react/common-utils": "0.0.
|
|
45
|
-
"@haus-storefront-react/core": "0.0.
|
|
46
|
-
"@haus-storefront-react/shared-types": "0.0.
|
|
44
|
+
"@haus-storefront-react/common-utils": "0.0.17",
|
|
45
|
+
"@haus-storefront-react/core": "0.0.17",
|
|
46
|
+
"@haus-storefront-react/shared-types": "0.0.17"
|
|
47
47
|
}
|
|
48
48
|
}
|