@revova/hydrogen 1.0.2 → 1.1.0
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/README.md +9 -2
- package/dist/index.cjs +1043 -714
- package/dist/index.d.cts +8 -5
- package/dist/index.d.ts +8 -5
- package/dist/index.js +1015 -686
- package/dist/styles.css +629 -0
- package/package.json +4 -3
package/dist/index.d.cts
CHANGED
|
@@ -228,13 +228,15 @@ type UseQnAOptions = ApiProps & {
|
|
|
228
228
|
|
|
229
229
|
type ReviewWidgetProps = ApiProps & {
|
|
230
230
|
productId: string;
|
|
231
|
+
productTitle?: string;
|
|
232
|
+
productImage?: string;
|
|
231
233
|
locale?: string;
|
|
232
234
|
pageSize?: number;
|
|
233
235
|
showForm?: boolean;
|
|
234
236
|
starColor?: string;
|
|
235
237
|
className?: string;
|
|
236
238
|
};
|
|
237
|
-
declare function ReviewWidget({ apiUrl, shop, apiToken, productId, locale, pageSize, showForm, starColor, className, }: ReviewWidgetProps): React.JSX.Element | null;
|
|
239
|
+
declare function ReviewWidget({ apiUrl, shop, apiToken, productId, productTitle, productImage, locale, pageSize, showForm, starColor, className, }: ReviewWidgetProps): React.JSX.Element | null;
|
|
238
240
|
|
|
239
241
|
type ReviewFormProps = ApiProps & {
|
|
240
242
|
productId: string;
|
|
@@ -254,11 +256,12 @@ declare function ReviewCount({ apiUrl, shop, apiToken, starColor, starSize, clas
|
|
|
254
256
|
type StarRatingProps = {
|
|
255
257
|
rating: number;
|
|
256
258
|
max?: number;
|
|
257
|
-
size?: number
|
|
258
|
-
color?: string
|
|
259
|
-
|
|
259
|
+
size?: number;
|
|
260
|
+
color?: string;
|
|
261
|
+
emptyColor?: string;
|
|
262
|
+
className?: string;
|
|
260
263
|
};
|
|
261
|
-
declare function StarRating({ rating, max, size, color, className }: StarRatingProps): React.JSX.Element;
|
|
264
|
+
declare function StarRating({ rating, max, size, color, emptyColor, className, }: StarRatingProps): React.JSX.Element;
|
|
262
265
|
|
|
263
266
|
type ReviewCarouselProps = ApiProps & {
|
|
264
267
|
limit?: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -228,13 +228,15 @@ type UseQnAOptions = ApiProps & {
|
|
|
228
228
|
|
|
229
229
|
type ReviewWidgetProps = ApiProps & {
|
|
230
230
|
productId: string;
|
|
231
|
+
productTitle?: string;
|
|
232
|
+
productImage?: string;
|
|
231
233
|
locale?: string;
|
|
232
234
|
pageSize?: number;
|
|
233
235
|
showForm?: boolean;
|
|
234
236
|
starColor?: string;
|
|
235
237
|
className?: string;
|
|
236
238
|
};
|
|
237
|
-
declare function ReviewWidget({ apiUrl, shop, apiToken, productId, locale, pageSize, showForm, starColor, className, }: ReviewWidgetProps): React.JSX.Element | null;
|
|
239
|
+
declare function ReviewWidget({ apiUrl, shop, apiToken, productId, productTitle, productImage, locale, pageSize, showForm, starColor, className, }: ReviewWidgetProps): React.JSX.Element | null;
|
|
238
240
|
|
|
239
241
|
type ReviewFormProps = ApiProps & {
|
|
240
242
|
productId: string;
|
|
@@ -254,11 +256,12 @@ declare function ReviewCount({ apiUrl, shop, apiToken, starColor, starSize, clas
|
|
|
254
256
|
type StarRatingProps = {
|
|
255
257
|
rating: number;
|
|
256
258
|
max?: number;
|
|
257
|
-
size?: number
|
|
258
|
-
color?: string
|
|
259
|
-
|
|
259
|
+
size?: number;
|
|
260
|
+
color?: string;
|
|
261
|
+
emptyColor?: string;
|
|
262
|
+
className?: string;
|
|
260
263
|
};
|
|
261
|
-
declare function StarRating({ rating, max, size, color, className }: StarRatingProps): React.JSX.Element;
|
|
264
|
+
declare function StarRating({ rating, max, size, color, emptyColor, className, }: StarRatingProps): React.JSX.Element;
|
|
262
265
|
|
|
263
266
|
type ReviewCarouselProps = ApiProps & {
|
|
264
267
|
limit?: number;
|