@robylon/web-react-sdk 1.1.46 → 1.1.48-staging.6
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 +29 -0
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/ChatbotFloatingButton.d.ts +1 -0
- package/dist/cjs/types/components/RobylonChatbot.d.ts +1 -0
- package/dist/cjs/types/utils/textDirection.d.ts +7 -0
- package/dist/cjs/types/vanilla/components/ChatbotFloatingButton.d.ts +1 -0
- package/dist/cjs/types/vanilla/index.d.ts +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/ChatbotFloatingButton.d.ts +1 -0
- package/dist/esm/types/components/RobylonChatbot.d.ts +1 -0
- package/dist/esm/types/utils/textDirection.d.ts +7 -0
- package/dist/esm/types/vanilla/components/ChatbotFloatingButton.d.ts +1 -0
- package/dist/esm/types/vanilla/index.d.ts +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/umd/robylon-chatbot.js +1 -1
- package/dist/umd/robylon-chatbot.js.map +1 -1
- package/dist/umd/types/components/ChatbotFloatingButton.d.ts +1 -0
- package/dist/umd/types/components/RobylonChatbot.d.ts +1 -0
- package/dist/umd/types/utils/textDirection.d.ts +7 -0
- package/dist/umd/types/vanilla/components/ChatbotFloatingButton.d.ts +1 -0
- package/dist/umd/types/vanilla/index.d.ts +1 -0
- package/package.json +2 -2
|
@@ -13,6 +13,7 @@ interface ChatbotFloatingButtonProps {
|
|
|
13
13
|
launcher_type?: "TEXT" | "IMAGE" | "TEXTUAL_IMAGE";
|
|
14
14
|
launcher_properties_text?: string;
|
|
15
15
|
shouldFadeIn?: boolean;
|
|
16
|
+
launcher_size?: number;
|
|
16
17
|
}
|
|
17
18
|
declare const _default: React.NamedExoticComponent<ChatbotFloatingButtonProps>;
|
|
18
19
|
export default _default;
|
|
@@ -22,6 +22,7 @@ interface ChatbotProps {
|
|
|
22
22
|
launcher_type?: "TEXT" | "IMAGE" | "TEXTUAL_IMAGE";
|
|
23
23
|
launcher_properties_text?: string;
|
|
24
24
|
overrides?: Overrides;
|
|
25
|
+
launcher_size?: number;
|
|
25
26
|
}
|
|
26
27
|
declare const MemoizedRobylonChatbot: React.MemoExoticComponent<React.ForwardRefExoticComponent<ChatbotProps & React.RefAttributes<ChatbotRef>>>;
|
|
27
28
|
export { MemoizedRobylonChatbot as Chatbot };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Detects if text contains RTL (Right-to-Left) characters
|
|
3
|
+
* Supports Arabic, Hebrew, Persian/Farsi, Urdu, Yiddish, and other RTL scripts
|
|
4
|
+
* @param text - The text to analyze
|
|
5
|
+
* @returns "rtl" if RTL characters are dominant, "ltr" otherwise
|
|
6
|
+
*/
|
|
7
|
+
export declare function detectTextDirection(text?: string): 'rtl' | 'ltr';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robylon/web-react-sdk",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.48-staging.6",
|
|
4
4
|
"description": "React SDK for Robylon AI Chatbot",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"build:production:cloudfront": "npm run clean && cross-env NODE_ENV=production PUBLISH_TYPE=production TARGET=cloudfront rollup -c",
|
|
48
48
|
"dev:watch": "cross-env NODE_ENV=development TARGET=npm rollup -c -w",
|
|
49
49
|
"dev:watch:vanilla": "cross-env NODE_ENV=development TARGET=unpkg rollup -c -w",
|
|
50
|
-
"dev:serve": "npx serve
|
|
50
|
+
"dev:serve": "npx serve . -l 3002"
|
|
51
51
|
},
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"access": "public"
|