@plasmicpkgs/plasmic-yotpo 0.0.92 → 0.0.93

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 CHANGED
@@ -1,7 +1,7 @@
1
- import registerComponent from "@plasmicapp/host/registerComponent";
2
- import registerGlobalContext from "@plasmicapp/host/registerGlobalContext";
3
- export declare function registerAll(loader?: {
4
- registerComponent: typeof registerComponent;
5
- registerGlobalContext: typeof registerGlobalContext;
6
- }): void;
7
- export * from "./yotpo";
1
+ import registerComponent from "@plasmicapp/host/registerComponent";
2
+ import registerGlobalContext from "@plasmicapp/host/registerGlobalContext";
3
+ export declare function registerAll(loader?: {
4
+ registerComponent: typeof registerComponent;
5
+ registerGlobalContext: typeof registerGlobalContext;
6
+ }): void;
7
+ export * from "./yotpo";
package/dist/types.d.ts CHANGED
@@ -1,82 +1,82 @@
1
- export interface ReviewResponse {
2
- status: Status;
3
- response: Response;
4
- }
5
- export interface Response {
6
- review: Review;
7
- }
8
- export interface Review {
9
- account: Account;
10
- id: number;
11
- content: string;
12
- title: string;
13
- score: number;
14
- sentiment: number;
15
- user_type: string;
16
- users: any[];
17
- votes_up: number;
18
- votes_down: number;
19
- user_vote: number;
20
- created_at: Date;
21
- deleted: boolean;
22
- new: boolean;
23
- verified_buyer: boolean;
24
- archived: boolean;
25
- social_pushed: boolean;
26
- facebook_pushed: number;
27
- twitter_pushed: number;
28
- products: ProductElement[];
29
- user: User;
30
- products_apps: ProductsApp[];
31
- }
32
- export interface Account {
33
- id: number;
34
- domain: string;
35
- }
36
- export interface ProductElement {
37
- Location_idx: number[];
38
- Product: Product;
39
- }
40
- export interface Product {
41
- id: number;
42
- name: string;
43
- slug: string;
44
- product_url: string;
45
- shorten_url: string;
46
- images: Image[];
47
- social_network_links: SocialNetworkLinks;
48
- facebook_testemonials_page_product_url: string;
49
- }
50
- export interface Image {
51
- id: number;
52
- image_url: string;
53
- big_image_url: string;
54
- }
55
- export interface SocialNetworkLinks {
56
- linkedin: string;
57
- facebook: string;
58
- twitter: string;
59
- google_oauth2: string;
60
- }
61
- export interface ProductsApp {
62
- id: number;
63
- product_url: string;
64
- domain_key: string;
65
- product: ProductsAppProduct;
66
- }
67
- export interface ProductsAppProduct {
68
- id: number;
69
- name: string;
70
- }
71
- export interface User {
72
- id: number;
73
- display_name: string;
74
- slug: string;
75
- is_social_connected: boolean;
76
- score: number;
77
- badges: any[];
78
- }
79
- export interface Status {
80
- code: number;
81
- message: string;
82
- }
1
+ export interface ReviewResponse {
2
+ status: Status;
3
+ response: Response;
4
+ }
5
+ export interface Response {
6
+ review: Review;
7
+ }
8
+ export interface Review {
9
+ account: Account;
10
+ id: number;
11
+ content: string;
12
+ title: string;
13
+ score: number;
14
+ sentiment: number;
15
+ user_type: string;
16
+ users: any[];
17
+ votes_up: number;
18
+ votes_down: number;
19
+ user_vote: number;
20
+ created_at: Date;
21
+ deleted: boolean;
22
+ new: boolean;
23
+ verified_buyer: boolean;
24
+ archived: boolean;
25
+ social_pushed: boolean;
26
+ facebook_pushed: number;
27
+ twitter_pushed: number;
28
+ products: ProductElement[];
29
+ user: User;
30
+ products_apps: ProductsApp[];
31
+ }
32
+ export interface Account {
33
+ id: number;
34
+ domain: string;
35
+ }
36
+ export interface ProductElement {
37
+ Location_idx: number[];
38
+ Product: Product;
39
+ }
40
+ export interface Product {
41
+ id: number;
42
+ name: string;
43
+ slug: string;
44
+ product_url: string;
45
+ shorten_url: string;
46
+ images: Image[];
47
+ social_network_links: SocialNetworkLinks;
48
+ facebook_testemonials_page_product_url: string;
49
+ }
50
+ export interface Image {
51
+ id: number;
52
+ image_url: string;
53
+ big_image_url: string;
54
+ }
55
+ export interface SocialNetworkLinks {
56
+ linkedin: string;
57
+ facebook: string;
58
+ twitter: string;
59
+ google_oauth2: string;
60
+ }
61
+ export interface ProductsApp {
62
+ id: number;
63
+ product_url: string;
64
+ domain_key: string;
65
+ product: ProductsAppProduct;
66
+ }
67
+ export interface ProductsAppProduct {
68
+ id: number;
69
+ name: string;
70
+ }
71
+ export interface User {
72
+ id: number;
73
+ display_name: string;
74
+ slug: string;
75
+ is_social_connected: boolean;
76
+ score: number;
77
+ badges: any[];
78
+ }
79
+ export interface Status {
80
+ code: number;
81
+ message: string;
82
+ }
package/dist/yotpo.d.ts CHANGED
@@ -1,37 +1,37 @@
1
- import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
2
- import { GlobalContextMeta } from "@plasmicapp/host/registerGlobalContext";
3
- import React from "react";
4
- export declare function ensure<T>(x: T | null | undefined): T;
5
- interface YotpoProps {
6
- appKey: string;
7
- uToken: string;
8
- }
9
- export declare const YotpoCredentialsProviderMeta: GlobalContextMeta<YotpoProps>;
10
- export declare function YotpoCredentialsProvider({ appKey, uToken, children, }: React.PropsWithChildren<YotpoProps>): React.JSX.Element;
11
- interface YotpoReviewsProps {
12
- reviewId?: string;
13
- productPrice?: string;
14
- currency?: string;
15
- setControlContextData?: (data: {
16
- reviews?: {
17
- name: string;
18
- id: number;
19
- }[];
20
- }) => void;
21
- className?: string;
22
- }
23
- export declare const YotpoReviewsMeta: CodeComponentMeta<YotpoReviewsProps>;
24
- export declare function YotpoReviews({ reviewId, setControlContextData, productPrice, currency, className, }: YotpoReviewsProps): React.JSX.Element;
25
- interface YotpoStarRatingProps {
26
- productId: string;
27
- className?: string;
28
- setControlContextData?: (data: {
29
- reviews?: {
30
- name: string;
31
- id: number;
32
- }[];
33
- }) => void;
34
- }
35
- export declare const YotpoStarRatingMeta: CodeComponentMeta<YotpoStarRatingProps>;
36
- export declare function YotpoStarRating({ productId, className, setControlContextData, }: YotpoStarRatingProps): React.JSX.Element;
37
- export {};
1
+ import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
2
+ import { GlobalContextMeta } from "@plasmicapp/host/registerGlobalContext";
3
+ import React from "react";
4
+ export declare function ensure<T>(x: T | null | undefined): T;
5
+ interface YotpoProps {
6
+ appKey: string;
7
+ uToken: string;
8
+ }
9
+ export declare const YotpoCredentialsProviderMeta: GlobalContextMeta<YotpoProps>;
10
+ export declare function YotpoCredentialsProvider({ appKey, uToken, children, }: React.PropsWithChildren<YotpoProps>): React.JSX.Element;
11
+ interface YotpoReviewsProps {
12
+ reviewId?: string;
13
+ productPrice?: string;
14
+ currency?: string;
15
+ setControlContextData?: (data: {
16
+ reviews?: {
17
+ name: string;
18
+ id: number;
19
+ }[];
20
+ }) => void;
21
+ className?: string;
22
+ }
23
+ export declare const YotpoReviewsMeta: CodeComponentMeta<YotpoReviewsProps>;
24
+ export declare function YotpoReviews({ reviewId, setControlContextData, productPrice, currency, className, }: YotpoReviewsProps): React.JSX.Element;
25
+ interface YotpoStarRatingProps {
26
+ productId: string;
27
+ className?: string;
28
+ setControlContextData?: (data: {
29
+ reviews?: {
30
+ name: string;
31
+ id: number;
32
+ }[];
33
+ }) => void;
34
+ }
35
+ export declare const YotpoStarRatingMeta: CodeComponentMeta<YotpoStarRatingProps>;
36
+ export declare function YotpoStarRating({ productId, className, setControlContextData, }: YotpoStarRatingProps): React.JSX.Element;
37
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasmicpkgs/plasmic-yotpo",
3
- "version": "0.0.92",
3
+ "version": "0.0.93",
4
4
  "description": "Plasmic Yotpo components.",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -14,7 +14,7 @@
14
14
  "scripts": {
15
15
  "start": "tsdx watch",
16
16
  "build": "tsdx build",
17
- "test": "TEST_CWD=`pwd` yarn --cwd=../.. test --passWithNoTests",
17
+ "test": "TEST_CWD=`pwd` pnpm -w test --passWithNoTests",
18
18
  "lint": "tsdx lint",
19
19
  "prepublishOnly": "npm run build",
20
20
  "size": "size-limit",
@@ -34,8 +34,8 @@
34
34
  }
35
35
  ],
36
36
  "devDependencies": {
37
- "@plasmicapp/host": "2.0.6",
38
- "@plasmicapp/query": "0.1.84",
37
+ "@plasmicapp/host": "2.0.7",
38
+ "@plasmicapp/query": "0.1.85",
39
39
  "@types/dlv": "^1.1.2",
40
40
  "@types/react": "^18",
41
41
  "@types/react-dom": "^18",
@@ -51,5 +51,5 @@
51
51
  "dlv": "^1.1.3",
52
52
  "lodash": "^4.17.21"
53
53
  },
54
- "gitHead": "baa35758ccd16c32259942faebbcbd62d5f174a4"
54
+ "gitHead": "6087f1621240c66b20d4a8fcf02c8bf889c554aa"
55
55
  }