@ibti-tech/chatbot 0.9.3 → 0.9.5
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 +5 -0
- package/dist/ibti-chatbot-embed.js +25 -7
- package/dist/ibti-chatbot-embed.js.map +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +25 -6
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -128,7 +128,7 @@ declare module '@ibti-tech/chatbot/components/ChatbotBar/styles' {
|
|
|
128
128
|
//# sourceMappingURL=styles.d.ts.map
|
|
129
129
|
}
|
|
130
130
|
declare module '@ibti-tech/chatbot/components/ChatbotBar/styles.d.ts' {
|
|
131
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/components/ChatbotBar/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAW,MAAM,eAAe,CAAA;AAIpD,eAAO,MAAM,YAAY;;oBAEgB,kBAAmB;;yBADrC,MAAM,GAAG,OAAO;gCACT,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM;aACvD,OAAO;uBACG,KAAK,GAAG,QAAQ;uBAChB,OAAO;iMA4E3B,CAAA;AAED,2GAA2G;AAC3G,eAAO,MAAM,WAAW;iBAA6B,MAAM;gBAAc,MAAM;YAS9E,CAAA;AAED,eAAO,MAAM,OAAO;uBACC,KAAK,GAAG,QAAQ;yBACd,MAAM,GAAG,OAAO;aAC5B,OAAO;cACN,MAAM;iBACH,MAAM,GAAG,MAAM;mBACb,OAAO;uBACH,OAAO;gCACE,MAAM;
|
|
131
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/components/ChatbotBar/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAW,MAAM,eAAe,CAAA;AAIpD,eAAO,MAAM,YAAY;;oBAEgB,kBAAmB;;yBADrC,MAAM,GAAG,OAAO;gCACT,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM;aACvD,OAAO;uBACG,KAAK,GAAG,QAAQ;uBAChB,OAAO;iMA4E3B,CAAA;AAED,2GAA2G;AAC3G,eAAO,MAAM,WAAW;iBAA6B,MAAM;gBAAc,MAAM;YAS9E,CAAA;AAED,eAAO,MAAM,OAAO;uBACC,KAAK,GAAG,QAAQ;yBACd,MAAM,GAAG,OAAO;aAC5B,OAAO;cACN,MAAM;iBACH,MAAM,GAAG,MAAM;mBACb,OAAO;uBACH,OAAO;gCACE,MAAM;YAwInC,CAAA"}
|
|
132
132
|
}
|
|
133
133
|
declare module '@ibti-tech/chatbot/components/ChatbotBody/index' {
|
|
134
134
|
import React from 'react';
|
|
@@ -182,7 +182,7 @@ declare module '@ibti-tech/chatbot/components/ChatbotDevice/styles' {
|
|
|
182
182
|
//# sourceMappingURL=styles.d.ts.map
|
|
183
183
|
}
|
|
184
184
|
declare module '@ibti-tech/chatbot/components/ChatbotDevice/styles.d.ts' {
|
|
185
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/components/ChatbotDevice/styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO;aACT,OAAO;uBACG,KAAK,GAAG,QAAQ;uBAChB,OAAO;0BACJ,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM;gCAC9B,MAAM;
|
|
185
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/components/ChatbotDevice/styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO;aACT,OAAO;uBACG,KAAK,GAAG,QAAQ;uBAChB,OAAO;0BACJ,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM;gCAC9B,MAAM;YAgQnC,CAAA"}
|
|
186
186
|
}
|
|
187
187
|
declare module '@ibti-tech/chatbot/components/ChatbotFooter/index' {
|
|
188
188
|
import React from 'react';
|
|
@@ -458,7 +458,7 @@ declare module '@ibti-tech/chatbot/contexts/Chatbot/provider' {
|
|
|
458
458
|
//# sourceMappingURL=provider.d.ts.map
|
|
459
459
|
}
|
|
460
460
|
declare module '@ibti-tech/chatbot/contexts/Chatbot/provider.d.ts' {
|
|
461
|
-
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/contexts/Chatbot/provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAwC,MAAM,OAAO,CAAA;AAC9E,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AASpC;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,8BAA8B;IAC9B,MAAM,EAAE,YAAY,CAAC,MAAM,CAAA;IAC3B,kEAAkE;IAClE,MAAM,EAAE,MAAM,CAAA;IACd,uFAAuF;IACvF,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,kCAAkC;IAClC,KAAK,EAAE,YAAY,CAAC,KAAK,CAAA;IACzB,4DAA4D;IAC5D,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,kFAAkF;IAClF,KAAK,CAAC,EAAE,YAAY,CAAC,KAAK,CAAA;IAC1B,8DAA8D;IAC9D,0BAA0B,CAAC,EAAE,MAAM,EAAE,CAAA;IACrC,gGAAgG;IAChG,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,oFAAoF;IACpF,MAAM,CAAC,EAAE,YAAY,CAAC,YAAY,CAAA;IAClC,oFAAoF;IACpF,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAED,eAAO,MAAM,eAAe,GAAI,sJAY7B,oBAAoB,
|
|
461
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/contexts/Chatbot/provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAwC,MAAM,OAAO,CAAA;AAC9E,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AASpC;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,8BAA8B;IAC9B,MAAM,EAAE,YAAY,CAAC,MAAM,CAAA;IAC3B,kEAAkE;IAClE,MAAM,EAAE,MAAM,CAAA;IACd,uFAAuF;IACvF,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,kCAAkC;IAClC,KAAK,EAAE,YAAY,CAAC,KAAK,CAAA;IACzB,4DAA4D;IAC5D,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,kFAAkF;IAClF,KAAK,CAAC,EAAE,YAAY,CAAC,KAAK,CAAA;IAC1B,8DAA8D;IAC9D,0BAA0B,CAAC,EAAE,MAAM,EAAE,CAAA;IACrC,gGAAgG;IAChG,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,oFAAoF;IACpF,MAAM,CAAC,EAAE,YAAY,CAAC,YAAY,CAAA;IAClC,oFAAoF;IACpF,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAED,eAAO,MAAM,eAAe,GAAI,sJAY7B,oBAAoB,sBAiLtB,CAAA"}
|
|
462
462
|
}
|
|
463
463
|
declare module '@ibti-tech/chatbot/contexts/Chatbot/useChatFeedbackBox' {
|
|
464
464
|
/** Parameters for sendUserRating from useChatFeedbackBox. */
|
package/dist/index.mjs
CHANGED
|
@@ -887,7 +887,8 @@ var ChatbotProvider = /* @__PURE__ */ __name(({
|
|
|
887
887
|
} = useChatbotMessages_default({
|
|
888
888
|
apiURL,
|
|
889
889
|
locale,
|
|
890
|
-
publicHash
|
|
890
|
+
// Pass publicHash always so init() can call welcome/completion with hash once visitorId is ready
|
|
891
|
+
publicHash,
|
|
891
892
|
visitorId: isReady ? visitorId : void 0
|
|
892
893
|
});
|
|
893
894
|
const [opened, setOpened] = useState3(isOpen);
|
|
@@ -1050,9 +1051,14 @@ var Wrapper = styled.div`
|
|
|
1050
1051
|
|
|
1051
1052
|
/* Mobile styles */
|
|
1052
1053
|
@media screen and (max-width: ${breakpoints.tablet}px) {
|
|
1054
|
+
/* Top + opened: use svh so panel fits visible viewport (browser URL bar); padding keeps close button above home indicator */
|
|
1053
1055
|
${(props) => props.$opened && props.$verticalPosition === "top" && css`
|
|
1054
1056
|
max-height: 100vh !important;
|
|
1057
|
+
max-height: 100svh !important;
|
|
1055
1058
|
height: 100vh !important;
|
|
1059
|
+
height: 100svh !important;
|
|
1060
|
+
padding-bottom: env(safe-area-inset-bottom, 0px);
|
|
1061
|
+
box-sizing: border-box;
|
|
1056
1062
|
`}
|
|
1057
1063
|
|
|
1058
1064
|
${(props) => props.$opened && props.$verticalPosition === "bottom" ? css`
|
|
@@ -1216,9 +1222,14 @@ var Wrapper = styled.div`
|
|
|
1216
1222
|
|
|
1217
1223
|
@media screen and (max-width: ${breakpoints.tablet}px) {
|
|
1218
1224
|
height: 100vh !important;
|
|
1225
|
+
height: 100svh !important;
|
|
1219
1226
|
max-height: 100vh !important;
|
|
1227
|
+
max-height: 100svh !important;
|
|
1220
1228
|
min-height: 100vh !important;
|
|
1229
|
+
min-height: 100svh !important;
|
|
1230
|
+
padding-bottom: env(safe-area-inset-bottom, 0px);
|
|
1221
1231
|
overflow: hidden !important;
|
|
1232
|
+
box-sizing: border-box;
|
|
1222
1233
|
}
|
|
1223
1234
|
`}
|
|
1224
1235
|
`;
|
|
@@ -2788,7 +2799,7 @@ var Wrapper9 = styled10.div`
|
|
|
2788
2799
|
// package.json
|
|
2789
2800
|
var package_default = {
|
|
2790
2801
|
name: "@ibti-tech/chatbot",
|
|
2791
|
-
version: "0.9.
|
|
2802
|
+
version: "0.9.5",
|
|
2792
2803
|
description: "Chatbot system developed to be embedded in any website",
|
|
2793
2804
|
packageManager: "yarn@3.6.4",
|
|
2794
2805
|
main: "./dist/index.mjs",
|
|
@@ -3102,8 +3113,10 @@ var Wrapper10 = styled11.div`
|
|
|
3102
3113
|
}
|
|
3103
3114
|
@media screen and (max-width: ${breakpoints3.tablet}px) {
|
|
3104
3115
|
padding-top: 0 !important;
|
|
3105
|
-
|
|
3116
|
+
/* Account for safe area (notch/status bar) and browser chrome on mobile */
|
|
3117
|
+
top: max(${topVal}, env(safe-area-inset-top, 0px)) !important;
|
|
3106
3118
|
height: 100vh;
|
|
3119
|
+
height: 100svh; /* small viewport: fits visible area with browser URL bar visible */
|
|
3107
3120
|
}
|
|
3108
3121
|
`;
|
|
3109
3122
|
}
|
|
@@ -3130,7 +3143,8 @@ var Wrapper10 = styled11.div`
|
|
|
3130
3143
|
@media screen and (max-width: ${breakpoints3.tablet}px) {
|
|
3131
3144
|
height: ${barH}px !important;
|
|
3132
3145
|
min-height: ${barH}px !important;
|
|
3133
|
-
|
|
3146
|
+
/* Keep bar/toggle visible below browser UI and safe area on mobile */
|
|
3147
|
+
top: ${props.$topOffset !== void 0 ? topVal : "max(0px, env(safe-area-inset-top, 0px))"} !important;
|
|
3134
3148
|
}
|
|
3135
3149
|
`;
|
|
3136
3150
|
}
|
|
@@ -3147,9 +3161,14 @@ var Wrapper10 = styled11.div`
|
|
|
3147
3161
|
@media screen and (max-width: ${breakpoints3.tablet}px) {
|
|
3148
3162
|
${props.$opened ? css6`
|
|
3149
3163
|
padding-top: 0 !important;
|
|
3150
|
-
|
|
3164
|
+
/* Safe area + browser chrome: keep close button visible on mobile */
|
|
3165
|
+
top: env(safe-area-inset-top, 0px) !important;
|
|
3151
3166
|
height: 100vh;
|
|
3152
|
-
|
|
3167
|
+
height: 100svh;
|
|
3168
|
+
` : css6`
|
|
3169
|
+
/* Bar closed: ensure toggle visible below browser UI */
|
|
3170
|
+
top: env(safe-area-inset-top, 0px) !important;
|
|
3171
|
+
`}
|
|
3153
3172
|
}
|
|
3154
3173
|
` : css6`
|
|
3155
3174
|
bottom: 0;
|