@clikvn/agent-widget-embedded 0.0.54-dev → 0.0.55-dev

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.
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ interface PropTypes {
3
+ content?: string;
4
+ }
5
+ export declare const HtmlContent: FC<PropTypes>;
6
+ export {};
7
+ //# sourceMappingURL=HtmlContent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HtmlContent.d.ts","sourceRoot":"","sources":["../../../src/components/Chat/HtmlContent.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAA+B,MAAM,OAAO,CAAC;AAGxD,UAAU,SAAS;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,SAAS,CAgDrC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../src/components/Chat/Message.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAsB,MAAM,OAAO,CAAC;AAE/C,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EACL,eAAe,EAGhB,MAAM,0BAA0B,CAAC;AAUlC,KAAK,SAAS,GAAG;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,eAAe,CAAC;IACzB,SAAS,EAAE,OAAO,CAAC;IACnB,GAAG,EAAE,OAAO,GAAG,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAUF,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,SAAS,CAyNxC,CAAC;AAEF,eAAO,MAAM,eAAe,YAAa;IAAE,GAAG,EAAE,OAAO,GAAG,IAAI,CAAA;CAAE,4CAyC/D,CAAC"}
1
+ {"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../src/components/Chat/Message.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAsB,MAAM,OAAO,CAAC;AAE/C,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EACL,eAAe,EAGhB,MAAM,0BAA0B,CAAC;AAalC,KAAK,SAAS,GAAG;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,eAAe,CAAC;IACzB,SAAS,EAAE,OAAO,CAAC;IACnB,GAAG,EAAE,OAAO,GAAG,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAUF,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,SAAS,CA0PxC,CAAC;AAEF,eAAO,MAAM,eAAe,YAAa;IAAE,GAAG,EAAE,OAAO,GAAG,IAAI,CAAA;CAAE,4CAyC/D,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { FC } from 'react';
2
+ interface ProductType {
3
+ code: string;
4
+ name: string;
5
+ url: string;
6
+ price: number;
7
+ rating: number;
8
+ description: string;
9
+ icon: {
10
+ url: string;
11
+ };
12
+ virtualTourUrl: string;
13
+ }
14
+ interface PropTypes {
15
+ content?: ProductType | string;
16
+ }
17
+ export declare const ProductDetail: FC<PropTypes>;
18
+ export {};
19
+ //# sourceMappingURL=ProductDetail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProductDetail.d.ts","sourceRoot":"","sources":["../../../src/components/Chat/ProductDetail.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAA+B,MAAM,OAAO,CAAC;AAQxD,UAAU,WAAW;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE;QACJ,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;IACF,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,UAAU,SAAS;IACjB,OAAO,CAAC,EAAE,WAAW,GAAG,MAAM,CAAC;CAChC;AAED,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,SAAS,CA+GvC,CAAC"}
@@ -1,6 +1,22 @@
1
1
  import { FC } from 'react';
2
+ interface ProductDataResultType {
3
+ products: ProductType[];
4
+ scenarioUrl: string;
5
+ }
6
+ interface ProductType {
7
+ code: string;
8
+ name: string;
9
+ url: string;
10
+ price: number;
11
+ rating: number;
12
+ description: string;
13
+ icon: {
14
+ url: string;
15
+ };
16
+ virtualTourUrl: string;
17
+ }
2
18
  interface PropTypes {
3
- content: any;
19
+ content?: ProductDataResultType | string;
4
20
  }
5
21
  export declare const ProductList: FC<PropTypes>;
6
22
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"ProductList.d.ts","sourceRoot":"","sources":["../../../src/components/Chat/ProductList.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAqB,MAAM,OAAO,CAAC;AAG9C,UAAU,SAAS;IACjB,OAAO,EAAE,GAAG,CAAC;CACd;AAED,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,SAAS,CAgDrC,CAAC"}
1
+ {"version":3,"file":"ProductList.d.ts","sourceRoot":"","sources":["../../../src/components/Chat/ProductList.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAA+B,MAAM,OAAO,CAAC;AAQxD,UAAU,qBAAqB;IAC7B,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,UAAU,WAAW;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE;QACJ,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;IACF,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,UAAU,SAAS;IACjB,OAAO,CAAC,EAAE,qBAAqB,GAAG,MAAM,CAAC;CAC1C;AAED,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,SAAS,CAsMrC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { FC } from 'react';
2
+ interface ScenarioType {
3
+ code: string;
4
+ name: string;
5
+ description: string;
6
+ }
7
+ interface PropTypes {
8
+ content?: ScenarioType[];
9
+ }
10
+ export declare const ScenariosList: FC<PropTypes>;
11
+ export {};
12
+ //# sourceMappingURL=ScenariosList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScenariosList.d.ts","sourceRoot":"","sources":["../../../src/components/Chat/ScenariosList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAuB,MAAM,OAAO,CAAC;AAGhD,UAAU,YAAY;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,UAAU,SAAS;IACjB,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;CAC1B;AAED,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,SAAS,CAqFvC,CAAC"}
package/dist/index.html CHANGED
@@ -6,10 +6,16 @@
6
6
  <script type="module">
7
7
  import Agent from 'http://localhost:3000/web.js'; // Change to from './web.js' to 'https://localhost:5678/web.js'
8
8
  Agent.initWidget({
9
- apiHost: 'https://ci-api.clik.vn/chatbot',
10
- agentId: '6d02b23f-465f-44ec-8766-27a82890a9b8',
9
+ apiHost: 'https://api.clik.vn/chatbot',
10
+ agentId: 'fd37fbd0-b9f0-42ad-8f15-aec320e0b28e',
11
11
  overrideConfig: {
12
- chatId: ''
12
+ chatId: '',
13
+ vars: {
14
+ TOUR_CODE: 'TOUR_K9EK76KTX7K4',
15
+ LANGUAGE: 'VN',
16
+ CLIK_GRAPHQL_API: 'https://api.clik.vn/graphql',
17
+ CLIK_VIRTUALTOUR_API: 'https://api.clik.vn/vt360',
18
+ }
13
19
  }
14
20
  });
15
21
  </script>