@okendo/shopify-hydrogen 2.1.1 → 2.1.3
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/LICENSE.txt +3 -3
- package/README.md +635 -556
- package/dist/cjs/types/components/OkendoProvider/OkendoProvider.d.ts +2 -2
- package/dist/cjs/types/components/OkendoReviews/OkendoReviews.d.ts +2 -2
- package/dist/cjs/types/components/OkendoStarRating/OkendoStarRating.d.ts +2 -2
- package/dist/cjs/types/fragments/fragments.d.ts +2 -2
- package/dist/esm/types/components/OkendoProvider/OkendoProvider.d.ts +2 -2
- package/dist/esm/types/components/OkendoReviews/OkendoReviews.d.ts +2 -2
- package/dist/esm/types/components/OkendoStarRating/OkendoStarRating.d.ts +2 -2
- package/dist/esm/types/fragments/fragments.d.ts +2 -2
- package/dist/index.d.ts +8 -8
- package/package.json +47 -47
|
@@ -13,8 +13,8 @@ export declare const getOkendoProviderData: ({ context, subscriberId, apiDomain,
|
|
|
13
13
|
storefront: Storefront;
|
|
14
14
|
};
|
|
15
15
|
subscriberId: string;
|
|
16
|
-
apiDomain?: string
|
|
17
|
-
cdnDomain?: string
|
|
16
|
+
apiDomain?: string;
|
|
17
|
+
cdnDomain?: string;
|
|
18
18
|
}) => Promise<{
|
|
19
19
|
reviewsHeaderConfig: import("@okendo/reviews-common").WidgetPlus.ReviewsHeaderConfig;
|
|
20
20
|
cssVariables: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { type FC } from "react";
|
|
2
2
|
import { type MetafieldValue } from "../../internal/types";
|
|
3
3
|
export interface WithOkendoReviewsSnippet {
|
|
4
|
-
okendoReviewsSnippet
|
|
4
|
+
okendoReviewsSnippet?: MetafieldValue | null;
|
|
5
5
|
}
|
|
6
6
|
interface OkendoReviewsProps {
|
|
7
7
|
productId: string;
|
|
8
|
-
okendoReviewsSnippet?: MetafieldValue;
|
|
8
|
+
okendoReviewsSnippet?: MetafieldValue | null;
|
|
9
9
|
}
|
|
10
10
|
export declare const OkendoReviews: FC<OkendoReviewsProps>;
|
|
11
11
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { type FC } from "react";
|
|
2
2
|
import { type MetafieldValue } from "../../internal/types";
|
|
3
3
|
export interface WithOkendoStarRatingSnippet {
|
|
4
|
-
okendoStarRatingSnippet
|
|
4
|
+
okendoStarRatingSnippet?: MetafieldValue | null;
|
|
5
5
|
}
|
|
6
6
|
interface OkendoStarRatingProps {
|
|
7
7
|
productId: string;
|
|
8
|
-
okendoStarRatingSnippet?: MetafieldValue;
|
|
8
|
+
okendoStarRatingSnippet?: MetafieldValue | null;
|
|
9
9
|
}
|
|
10
10
|
export declare const OkendoStarRating: FC<OkendoStarRatingProps>;
|
|
11
11
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const OKENDO_PRODUCT_STAR_RATING_FRAGMENT
|
|
2
|
-
export declare const OKENDO_PRODUCT_REVIEWS_FRAGMENT
|
|
1
|
+
export declare const OKENDO_PRODUCT_STAR_RATING_FRAGMENT: "#graphql\n\tfragment OkendoStarRatingSnippet on Product {\n\t\tokendoStarRatingSnippet: metafield(\n\t\t\tnamespace: \"okendo\"\n\t\t\tkey: \"StarRatingSnippet\"\n\t\t) {\n\t\t\tvalue\n\t\t}\n\t}\n";
|
|
2
|
+
export declare const OKENDO_PRODUCT_REVIEWS_FRAGMENT: "#graphql\n\tfragment OkendoReviewsSnippet on Product {\n\t\tokendoReviewsSnippet: metafield(\n\t\t\tnamespace: \"okendo\"\n\t\t\tkey: \"ReviewsWidgetSnippet\"\n\t\t) {\n\t\t\tvalue\n\t\t}\n\t}\n";
|
|
@@ -13,8 +13,8 @@ export declare const getOkendoProviderData: ({ context, subscriberId, apiDomain,
|
|
|
13
13
|
storefront: Storefront;
|
|
14
14
|
};
|
|
15
15
|
subscriberId: string;
|
|
16
|
-
apiDomain?: string
|
|
17
|
-
cdnDomain?: string
|
|
16
|
+
apiDomain?: string;
|
|
17
|
+
cdnDomain?: string;
|
|
18
18
|
}) => Promise<{
|
|
19
19
|
reviewsHeaderConfig: import("@okendo/reviews-common").WidgetPlus.ReviewsHeaderConfig;
|
|
20
20
|
cssVariables: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { type FC } from "react";
|
|
2
2
|
import { type MetafieldValue } from "../../internal/types";
|
|
3
3
|
export interface WithOkendoReviewsSnippet {
|
|
4
|
-
okendoReviewsSnippet
|
|
4
|
+
okendoReviewsSnippet?: MetafieldValue | null;
|
|
5
5
|
}
|
|
6
6
|
interface OkendoReviewsProps {
|
|
7
7
|
productId: string;
|
|
8
|
-
okendoReviewsSnippet?: MetafieldValue;
|
|
8
|
+
okendoReviewsSnippet?: MetafieldValue | null;
|
|
9
9
|
}
|
|
10
10
|
export declare const OkendoReviews: FC<OkendoReviewsProps>;
|
|
11
11
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { type FC } from "react";
|
|
2
2
|
import { type MetafieldValue } from "../../internal/types";
|
|
3
3
|
export interface WithOkendoStarRatingSnippet {
|
|
4
|
-
okendoStarRatingSnippet
|
|
4
|
+
okendoStarRatingSnippet?: MetafieldValue | null;
|
|
5
5
|
}
|
|
6
6
|
interface OkendoStarRatingProps {
|
|
7
7
|
productId: string;
|
|
8
|
-
okendoStarRatingSnippet?: MetafieldValue;
|
|
8
|
+
okendoStarRatingSnippet?: MetafieldValue | null;
|
|
9
9
|
}
|
|
10
10
|
export declare const OkendoStarRating: FC<OkendoStarRatingProps>;
|
|
11
11
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const OKENDO_PRODUCT_STAR_RATING_FRAGMENT
|
|
2
|
-
export declare const OKENDO_PRODUCT_REVIEWS_FRAGMENT
|
|
1
|
+
export declare const OKENDO_PRODUCT_STAR_RATING_FRAGMENT: "#graphql\n\tfragment OkendoStarRatingSnippet on Product {\n\t\tokendoStarRatingSnippet: metafield(\n\t\t\tnamespace: \"okendo\"\n\t\t\tkey: \"StarRatingSnippet\"\n\t\t) {\n\t\t\tvalue\n\t\t}\n\t}\n";
|
|
2
|
+
export declare const OKENDO_PRODUCT_REVIEWS_FRAGMENT: "#graphql\n\tfragment OkendoReviewsSnippet on Product {\n\t\tokendoReviewsSnippet: metafield(\n\t\t\tnamespace: \"okendo\"\n\t\t\tkey: \"ReviewsWidgetSnippet\"\n\t\t) {\n\t\t\tvalue\n\t\t}\n\t}\n";
|
package/dist/index.d.ts
CHANGED
|
@@ -15,8 +15,8 @@ declare const getOkendoProviderData: ({ context, subscriberId, apiDomain, cdnDom
|
|
|
15
15
|
storefront: Storefront;
|
|
16
16
|
};
|
|
17
17
|
subscriberId: string;
|
|
18
|
-
apiDomain?: string
|
|
19
|
-
cdnDomain?: string
|
|
18
|
+
apiDomain?: string;
|
|
19
|
+
cdnDomain?: string;
|
|
20
20
|
}) => Promise<{
|
|
21
21
|
reviewsHeaderConfig: _okendo_reviews_common.WidgetPlus.ReviewsHeaderConfig;
|
|
22
22
|
cssVariables: string;
|
|
@@ -48,24 +48,24 @@ interface MetafieldValue {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
interface WithOkendoReviewsSnippet {
|
|
51
|
-
okendoReviewsSnippet
|
|
51
|
+
okendoReviewsSnippet?: MetafieldValue | null;
|
|
52
52
|
}
|
|
53
53
|
interface OkendoReviewsProps {
|
|
54
54
|
productId: string;
|
|
55
|
-
okendoReviewsSnippet?: MetafieldValue;
|
|
55
|
+
okendoReviewsSnippet?: MetafieldValue | null;
|
|
56
56
|
}
|
|
57
57
|
declare const OkendoReviews: FC<OkendoReviewsProps>;
|
|
58
58
|
|
|
59
59
|
interface WithOkendoStarRatingSnippet {
|
|
60
|
-
okendoStarRatingSnippet
|
|
60
|
+
okendoStarRatingSnippet?: MetafieldValue | null;
|
|
61
61
|
}
|
|
62
62
|
interface OkendoStarRatingProps {
|
|
63
63
|
productId: string;
|
|
64
|
-
okendoStarRatingSnippet?: MetafieldValue;
|
|
64
|
+
okendoStarRatingSnippet?: MetafieldValue | null;
|
|
65
65
|
}
|
|
66
66
|
declare const OkendoStarRating: FC<OkendoStarRatingProps>;
|
|
67
67
|
|
|
68
|
-
declare const OKENDO_PRODUCT_STAR_RATING_FRAGMENT
|
|
69
|
-
declare const OKENDO_PRODUCT_REVIEWS_FRAGMENT
|
|
68
|
+
declare const OKENDO_PRODUCT_STAR_RATING_FRAGMENT: "#graphql\n\tfragment OkendoStarRatingSnippet on Product {\n\t\tokendoStarRatingSnippet: metafield(\n\t\t\tnamespace: \"okendo\"\n\t\t\tkey: \"StarRatingSnippet\"\n\t\t) {\n\t\t\tvalue\n\t\t}\n\t}\n";
|
|
69
|
+
declare const OKENDO_PRODUCT_REVIEWS_FRAGMENT: "#graphql\n\tfragment OkendoReviewsSnippet on Product {\n\t\tokendoReviewsSnippet: metafield(\n\t\t\tnamespace: \"okendo\"\n\t\t\tkey: \"ReviewsWidgetSnippet\"\n\t\t) {\n\t\t\tvalue\n\t\t}\n\t}\n";
|
|
70
70
|
|
|
71
71
|
export { OKENDO_PRODUCT_REVIEWS_FRAGMENT, OKENDO_PRODUCT_STAR_RATING_FRAGMENT, OkendoProvider, OkendoReviews, OkendoStarRating, type WithOkendoReviewsSnippet, type WithOkendoStarRatingSnippet, getOkendoProviderData };
|
package/package.json
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@okendo/shopify-hydrogen",
|
|
3
|
-
"version": "2.1.
|
|
4
|
-
"description": "Okendo React components for Shopify Hydrogen 2 (Remix)",
|
|
5
|
-
"author": "Okendo",
|
|
6
|
-
"license": "SEE LICENSE IN LICENSE.txt",
|
|
7
|
-
"engines": {
|
|
8
|
-
"node": ">=16.14"
|
|
9
|
-
},
|
|
10
|
-
"main": "dist/cjs/index.js",
|
|
11
|
-
"module": "dist/esm/index.js",
|
|
12
|
-
"files": [
|
|
13
|
-
"dist"
|
|
14
|
-
],
|
|
15
|
-
"types": "dist/index.d.ts",
|
|
16
|
-
"scripts": {
|
|
17
|
-
"build": "npm run eslint -- --max-warnings=0 && rimraf dist && rollup -c",
|
|
18
|
-
"prepack": "npm run build",
|
|
19
|
-
"eslint": "eslint src"
|
|
20
|
-
},
|
|
21
|
-
"devDependencies": {
|
|
22
|
-
"@okendo/reviews-common": "^5.163.1",
|
|
23
|
-
"@okendo/reviews-widget-plus": "^0.68.3",
|
|
24
|
-
"@okendo/tsconfig": "0.0.2",
|
|
25
|
-
"@rollup/plugin-commonjs": "^25.0.7",
|
|
26
|
-
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
27
|
-
"@rollup/plugin-terser": "^0.4.4",
|
|
28
|
-
"@rollup/plugin-typescript": "^11.1.5",
|
|
29
|
-
"@types/react": "^18.2.45",
|
|
30
|
-
"@types/react-dom": "^18.2.18",
|
|
31
|
-
"@typescript-eslint/eslint-plugin": "^6.15.0",
|
|
32
|
-
"@typescript-eslint/parser": "^6.15.0",
|
|
33
|
-
"eslint": "^8.56.0",
|
|
34
|
-
"eslint-plugin-react": "^7.33.2",
|
|
35
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
36
|
-
"rimraf": "^5.0.5",
|
|
37
|
-
"rollup": "^4.9.1",
|
|
38
|
-
"rollup-plugin-dts": "^6.1.0",
|
|
39
|
-
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
40
|
-
"typescript": "^5.3.3"
|
|
41
|
-
},
|
|
42
|
-
"peerDependencies": {
|
|
43
|
-
"@shopify/hydrogen": "*",
|
|
44
|
-
"@shopify/remix-oxygen": "*",
|
|
45
|
-
"react": "^18.2.0"
|
|
46
|
-
}
|
|
47
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@okendo/shopify-hydrogen",
|
|
3
|
+
"version": "2.1.3",
|
|
4
|
+
"description": "Okendo React components for Shopify Hydrogen 2 (Remix)",
|
|
5
|
+
"author": "Okendo",
|
|
6
|
+
"license": "SEE LICENSE IN LICENSE.txt",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=16.14"
|
|
9
|
+
},
|
|
10
|
+
"main": "dist/cjs/index.js",
|
|
11
|
+
"module": "dist/esm/index.js",
|
|
12
|
+
"files": [
|
|
13
|
+
"dist"
|
|
14
|
+
],
|
|
15
|
+
"types": "dist/index.d.ts",
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "npm run eslint -- --max-warnings=0 && rimraf dist && rollup -c",
|
|
18
|
+
"prepack": "npm run build",
|
|
19
|
+
"eslint": "eslint src"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@okendo/reviews-common": "^5.163.1",
|
|
23
|
+
"@okendo/reviews-widget-plus": "^0.68.3",
|
|
24
|
+
"@okendo/tsconfig": "0.0.2",
|
|
25
|
+
"@rollup/plugin-commonjs": "^25.0.7",
|
|
26
|
+
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
27
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
28
|
+
"@rollup/plugin-typescript": "^11.1.5",
|
|
29
|
+
"@types/react": "^18.2.45",
|
|
30
|
+
"@types/react-dom": "^18.2.18",
|
|
31
|
+
"@typescript-eslint/eslint-plugin": "^6.15.0",
|
|
32
|
+
"@typescript-eslint/parser": "^6.15.0",
|
|
33
|
+
"eslint": "^8.56.0",
|
|
34
|
+
"eslint-plugin-react": "^7.33.2",
|
|
35
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
36
|
+
"rimraf": "^5.0.5",
|
|
37
|
+
"rollup": "^4.9.1",
|
|
38
|
+
"rollup-plugin-dts": "^6.1.0",
|
|
39
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
40
|
+
"typescript": "^5.3.3"
|
|
41
|
+
},
|
|
42
|
+
"peerDependencies": {
|
|
43
|
+
"@shopify/hydrogen": "*",
|
|
44
|
+
"@shopify/remix-oxygen": "*",
|
|
45
|
+
"react": "^18.2.0"
|
|
46
|
+
}
|
|
47
|
+
}
|