@ibti-tech/chatbot 0.8.6 → 0.9.1

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
@@ -30,9 +30,11 @@ declare module '@ibti-tech/chatbot/components/ChatUserFeedbackRating/index' {
30
30
  //# sourceMappingURL=index.d.ts.map
31
31
  }
32
32
  declare module '@ibti-tech/chatbot/components/ChatUserFeedbackRating/index.d.ts' {
33
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/components/ChatUserFeedbackRating/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqC,MAAM,OAAO,CAAA;AAIzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAA;AAGxE,MAAM,MAAM,2BAA2B,GAAG;IACxC,eAAe,EAAE,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAA;CACvD,CAAA;AAED,eAAO,MAAM,sBAAsB,GAAI,sBAEpC,2BAA2B,sBAoD7B,CAAA"}
33
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/components/ChatUserFeedbackRating/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqC,MAAM,OAAO,CAAA;AAIzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAA;AAIxE,MAAM,MAAM,2BAA2B,GAAG;IACxC,eAAe,EAAE,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAA;CACvD,CAAA;AAED,eAAO,MAAM,sBAAsB,GAAI,sBAEpC,2BAA2B,sBAyD7B,CAAA"}
34
34
  }
35
35
  declare module '@ibti-tech/chatbot/components/ChatUserFeedbackRating/styles' {
36
+ export const ActionRow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
37
+ export const VersionLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
36
38
  export const ActionButtons: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
37
39
  export const Form: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, never>> & string;
38
40
  export const Description: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -51,7 +53,7 @@ declare module '@ibti-tech/chatbot/components/ChatUserFeedbackRating/styles' {
51
53
  //# sourceMappingURL=styles.d.ts.map
52
54
  }
53
55
  declare module '@ibti-tech/chatbot/components/ChatUserFeedbackRating/styles.d.ts' {
54
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/components/ChatUserFeedbackRating/styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,6NAWzB,CAAA;AAED,eAAO,MAAM,IAAI,mOAkDhB,CAAA;AAED,eAAO,MAAM,WAAW,6NAKvB,CAAA;AAED,eAAO,MAAM,KAAK,+NAKjB,CAAA;AAED,eAAO,MAAM,GAAG;;;;;;;wRAoBf,CAAA;AAED,eAAO,MAAM,OAAO;aAAyB,OAAO;YA8BnD,CAAA"}
56
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/components/ChatUserFeedbackRating/styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,6NAMrB,CAAA;AAED,eAAO,MAAM,YAAY,+NAIxB,CAAA;AAED,eAAO,MAAM,aAAa,6NAYzB,CAAA;AAED,eAAO,MAAM,IAAI,mOAkDhB,CAAA;AAED,eAAO,MAAM,WAAW,6NAKvB,CAAA;AAED,eAAO,MAAM,KAAK,+NAKjB,CAAA;AAED,eAAO,MAAM,GAAG;;;;;;;wRAoBf,CAAA;AAED,eAAO,MAAM,OAAO;aAAyB,OAAO;YA8BnD,CAAA"}
55
57
  }
56
58
  declare module '@ibti-tech/chatbot/components/ChatbotBar/index' {
57
59
  import React from 'react';
@@ -1366,6 +1368,13 @@ declare module '@ibti-tech/chatbot/utils/visitorId' {
1366
1368
  declare module '@ibti-tech/chatbot/utils/visitorId.d.ts' {
1367
1369
  {"version":3,"file":"visitorId.d.ts","sourceRoot":"","sources":["../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/utils/visitorId.ts"],"names":[],"mappings":"AASA;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAe/E"}
1368
1370
  }
1371
+ declare module '@ibti-tech/chatbot/version' {
1372
+ export const CHATBOT_VERSION: string;
1373
+ //# sourceMappingURL=version.d.ts.map
1374
+ }
1375
+ declare module '@ibti-tech/chatbot/version.d.ts' {
1376
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/version.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,QAA8C,CAAA"}
1377
+ }
1369
1378
  declare module '@ibti-tech/chatbot' {
1370
1379
  import main = require('@ibti-tech/chatbot/src/index');
1371
1380
  export = main;
package/dist/index.mjs CHANGED
@@ -2634,10 +2634,23 @@ import { Button as Button4, RatingStars, TextArea as TextArea2 } from "@ibti-tec
2634
2634
  // src/components/ChatUserFeedbackRating/styles.ts
2635
2635
  import { CardBase } from "@ibti-tech/ui";
2636
2636
  import { css as css5, styled as styled10 } from "styled-components";
2637
+ var ActionRow = styled10.div`
2638
+ display: flex;
2639
+ align-items: center;
2640
+ justify-content: space-between;
2641
+ gap: ${(props) => props.theme.spacing.components.small};
2642
+ width: 100%;
2643
+ `;
2644
+ var VersionLabel = styled10.span`
2645
+ font-size: ${(props) => props.theme.fontSizes.small};
2646
+ color: ${(props) => props.theme.colors.content.detail};
2647
+ font-weight: 500;
2648
+ `;
2637
2649
  var ActionButtons = styled10.div`
2638
2650
  display: flex;
2639
2651
  justify-content: flex-end;
2640
2652
  gap: ${(props) => props.theme.spacing.components.small};
2653
+ margin-left: auto;
2641
2654
 
2642
2655
  /* Remove border from submit button */
2643
2656
  button[type='submit'] {
@@ -2759,6 +2772,85 @@ var Wrapper9 = styled10.div`
2759
2772
  `}
2760
2773
  `;
2761
2774
 
2775
+ // package.json
2776
+ var package_default = {
2777
+ name: "@ibti-tech/chatbot",
2778
+ version: "0.9.1",
2779
+ description: "Chatbot system developed to be embedded in any website",
2780
+ packageManager: "yarn@3.6.4",
2781
+ main: "./dist/index.mjs",
2782
+ types: "./dist/index.d.ts",
2783
+ files: [
2784
+ "dist/**/*"
2785
+ ],
2786
+ publishConfig: {
2787
+ access: "public"
2788
+ },
2789
+ scripts: {
2790
+ dev: "node ./build.config.mjs --watch",
2791
+ build: "node ./build.config.mjs",
2792
+ "build:embed": "node ./build-embed.config.mjs",
2793
+ "build:all": "node ./build.config.mjs && node ./build-embed.config.mjs",
2794
+ test: "vitest"
2795
+ },
2796
+ repository: {
2797
+ type: "git",
2798
+ url: "git+https://github.com/ibti-solutions/ibti-chatbot.git"
2799
+ },
2800
+ keywords: [
2801
+ "chatbot",
2802
+ "openai",
2803
+ "chat-gpt",
2804
+ "ibti"
2805
+ ],
2806
+ author: "IBTI Solu\xE7\xF5es em TI",
2807
+ license: "ISC",
2808
+ bugs: {
2809
+ url: "https://github.com/ibti-solutions/ibti-chatbot/issues"
2810
+ },
2811
+ homepage: "https://github.com/ibti-solutions/ibti-chatbot#readme",
2812
+ dependencies: {
2813
+ "@types/node": "^20.13.0",
2814
+ "date-fns": "^3.6.0",
2815
+ "lucide-react": "^0.263.1",
2816
+ polished: "^4.3.1",
2817
+ "react-markdown": "^9.0.1",
2818
+ uuid: "^9.0.1"
2819
+ },
2820
+ devDependencies: {
2821
+ "@ibti-tech/prettier-config": "^0.1.6",
2822
+ "@ibti-tech/tsconfig": "^0.0.3",
2823
+ "@ibti-tech/ui": "^0.16.4",
2824
+ "@testing-library/react": "^15.0.7",
2825
+ "@types/react": "^18.3.2",
2826
+ "@types/uuid": "^9.0.8",
2827
+ esbuild: "0.21.3",
2828
+ "esbuild-node-externals": "^1.13.1",
2829
+ "esbuild-plugin-clean": "^1.0.1",
2830
+ "esbuild-plugin-external-global": "^1.0.1",
2831
+ jsdom: "^24.0.0",
2832
+ lodash: "^4.17.21",
2833
+ nookies: "^2.5.2",
2834
+ "npm-dts": "^1.3.12",
2835
+ prettier: "3.2.5",
2836
+ react: "18.2.0",
2837
+ "react-dom": "^18.2.0",
2838
+ "styled-components": "^6.1.11",
2839
+ "ts-node": "^10.9.2",
2840
+ typescript: "^5.4.5",
2841
+ vitest: "^1.6.0"
2842
+ },
2843
+ peerDependencies: {
2844
+ lodash: "^4.17.21",
2845
+ nookies: "^2.5.2",
2846
+ react: "18.2.0",
2847
+ "react-dom": "^18.2.0"
2848
+ }
2849
+ };
2850
+
2851
+ // src/version.ts
2852
+ var CHATBOT_VERSION = package_default.version ?? "";
2853
+
2762
2854
  // src/components/ChatUserFeedbackRating/index.tsx
2763
2855
  var ChatUserFeedbackRating = /* @__PURE__ */ __name(({
2764
2856
  chatFeedbackBox
@@ -2791,7 +2883,7 @@ var ChatUserFeedbackRating = /* @__PURE__ */ __name(({
2791
2883
  onChange: (e) => setDescriptionValue(e.target.value),
2792
2884
  className: "feedbackTextarea"
2793
2885
  }
2794
- ), /* @__PURE__ */ React13.createElement(ActionButtons, null, /* @__PURE__ */ React13.createElement(
2886
+ ), /* @__PURE__ */ React13.createElement(ActionRow, null, CHATBOT_VERSION ? /* @__PURE__ */ React13.createElement(VersionLabel, null, "v", CHATBOT_VERSION) : null, /* @__PURE__ */ React13.createElement(ActionButtons, null, /* @__PURE__ */ React13.createElement(
2795
2887
  Button4,
2796
2888
  {
2797
2889
  onClick: chatFeedbackBox.close,
@@ -2807,7 +2899,7 @@ var ChatUserFeedbackRating = /* @__PURE__ */ __name(({
2807
2899
  size: "small",
2808
2900
  loading: chatFeedbackBox.loading
2809
2901
  }
2810
- )))));
2902
+ ))))));
2811
2903
  }, "ChatUserFeedbackRating");
2812
2904
 
2813
2905
  // src/contexts/Chatbot/useChatFeedbackBox.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibti-tech/chatbot",
3
- "version": "0.8.6",
3
+ "version": "0.9.1",
4
4
  "description": "Chatbot system developed to be embedded in any website",
5
5
  "packageManager": "yarn@3.6.4",
6
6
  "main": "./dist/index.mjs",