Changeset 3412941
- Timestamp:
- 12/06/2025 12:08:42 PM (4 months ago)
- Location:
- bettercx-widget
- Files:
-
- 12 added
- 5 edited
- 12 copied
-
tags/1.0.12 (copied) (copied from bettercx-widget/trunk)
-
tags/1.0.12/assets/bettercx-widget.esm.js (copied) (copied from bettercx-widget/trunk/assets/bettercx-widget.esm.js) (1 diff)
-
tags/1.0.12/assets/index.esm.js (copied) (copied from bettercx-widget/trunk/assets/index.esm.js) (1 diff)
-
tags/1.0.12/assets/p-00a672a6.js (copied) (copied from bettercx-widget/trunk/assets/p-00a672a6.js)
-
tags/1.0.12/assets/p-3ba50f50.js (added)
-
tags/1.0.12/assets/p-53dddee8.entry.js (copied) (copied from bettercx-widget/trunk/assets/p-53dddee8.entry.js)
-
tags/1.0.12/assets/p-6nBrNW2K.system.js (copied) (copied from bettercx-widget/trunk/assets/p-6nBrNW2K.system.js)
-
tags/1.0.12/assets/p-BAn8W8NT.js (added)
-
tags/1.0.12/assets/p-DHFXmR1e.system.js (copied) (copied from bettercx-widget/trunk/assets/p-DHFXmR1e.system.js)
-
tags/1.0.12/assets/p-DP9ZUtAa.js (copied) (copied from bettercx-widget/trunk/assets/p-DP9ZUtAa.js)
-
tags/1.0.12/assets/p-Dv8OCppZ.system.js (added)
-
tags/1.0.12/assets/p-V8up-zPo.system.js (copied) (copied from bettercx-widget/trunk/assets/p-V8up-zPo.system.js) (1 diff)
-
tags/1.0.12/assets/p-a8a1179f.system.entry.js (copied) (copied from bettercx-widget/trunk/assets/p-a8a1179f.system.entry.js)
-
tags/1.0.12/assets/p-fbee627a.entry.js (added)
-
tags/1.0.12/assets/p-fc52ba98.system.entry.js (added)
-
tags/1.0.12/assets/p-uHCEnLBu.system.js (added)
-
tags/1.0.12/bettercx-widget.php (copied) (copied from bettercx-widget/trunk/bettercx-widget.php) (5 diffs)
-
tags/1.0.12/readme.txt (copied) (copied from bettercx-widget/trunk/readme.txt) (7 diffs)
-
trunk/assets/bettercx-widget.esm.js (modified) (1 diff)
-
trunk/assets/index.esm.js (modified) (1 diff)
-
trunk/assets/p-3ba50f50.js (added)
-
trunk/assets/p-BAn8W8NT.js (added)
-
trunk/assets/p-Dv8OCppZ.system.js (added)
-
trunk/assets/p-V8up-zPo.system.js (modified) (1 diff)
-
trunk/assets/p-fbee627a.entry.js (added)
-
trunk/assets/p-fc52ba98.system.entry.js (added)
-
trunk/assets/p-uHCEnLBu.system.js (added)
-
trunk/bettercx-widget.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bettercx-widget/tags/1.0.12/assets/bettercx-widget.esm.js
r3412926 r3412941 1 import{p as e,g as a,b as n}from"./p-BnsX22WT.js";export{s as setNonce}from"./p-BnsX22WT.js";(()=>{const a=import.meta.url,n={};return""!==a&&(n.resourcesUrl=new URL(".",a).href),e(n)})().then((async e=>(await a(),n([["p-72aa52b9",[[257,"bcx-chat-list",{apiService:[16,"api-service"],language:[1],theme:[1],chats:[32],selectedChatId:[32],messages:[32],isLoading:[32],isLoadingMore:[32],hasMore:[32],currentPage:[32],error:[32]},null,{language:["onLanguageChange"]}],[257,"bcx-message-composer",{disabled:[4],loading:[4],placeholder:[1],maxLength:[2,"max-length"],theme:[1],message:[32],images:[32]}],[257,"bcx-product-slider",{products:[16],language:[1],showAfterStreaming:[4,"show-after-streaming"],currentIndex:[32],isVisible:[32]},null,{products:["onProductsChange"],showAfterStreaming:["onShowAfterStreamingChange"]}]]],["p- 53dddee8",[[257,"bettercx-widget",{publicKey:[1,"public-key"],theme:[1],debug:[4],baseUrl:[1,"base-url"],aiServiceUrl:[1,"ai-service-url"],autoInit:[4,"auto-init"],position:[1],language:[1],embedded:[4],embeddedSize:[1,"embedded-size"],embeddedPlacement:[1,"embedded-placement"],state:[32],timeUpdateTrigger:[32],isDropdownOpen:[32],isFullscreen:[32],showChatList:[32],open:[64],close:[64],toggle:[64],sendMessage:[64]},null,{publicKey:["onPublicKeyChange"],theme:["onThemeChange"],language:["onLanguageChange"],"state.messages":["onMessagesChange"],embedded:["onEmbeddedChange"],embeddedSize:["onEmbeddedSizeChange"],embeddedPlacement:["onEmbeddedPlacementChange"]}]]]],e))));1 import{p as e,g as a,b as n}from"./p-BnsX22WT.js";export{s as setNonce}from"./p-BnsX22WT.js";(()=>{const a=import.meta.url,n={};return""!==a&&(n.resourcesUrl=new URL(".",a).href),e(n)})().then((async e=>(await a(),n([["p-72aa52b9",[[257,"bcx-chat-list",{apiService:[16,"api-service"],language:[1],theme:[1],chats:[32],selectedChatId:[32],messages:[32],isLoading:[32],isLoadingMore:[32],hasMore:[32],currentPage:[32],error:[32]},null,{language:["onLanguageChange"]}],[257,"bcx-message-composer",{disabled:[4],loading:[4],placeholder:[1],maxLength:[2,"max-length"],theme:[1],message:[32],images:[32]}],[257,"bcx-product-slider",{products:[16],language:[1],showAfterStreaming:[4,"show-after-streaming"],currentIndex:[32],isVisible:[32]},null,{products:["onProductsChange"],showAfterStreaming:["onShowAfterStreamingChange"]}]]],["p-fbee627a",[[257,"bettercx-widget",{publicKey:[1,"public-key"],theme:[1],debug:[4],baseUrl:[1,"base-url"],aiServiceUrl:[1,"ai-service-url"],autoInit:[4,"auto-init"],position:[1],language:[1],embedded:[4],embeddedSize:[1,"embedded-size"],embeddedPlacement:[1,"embedded-placement"],state:[32],timeUpdateTrigger:[32],isDropdownOpen:[32],isFullscreen:[32],showChatList:[32],open:[64],close:[64],toggle:[64],sendMessage:[64]},null,{publicKey:["onPublicKeyChange"],theme:["onThemeChange"],language:["onLanguageChange"],"state.messages":["onMessagesChange"],embedded:["onEmbeddedChange"],embeddedSize:["onEmbeddedSizeChange"],embeddedPlacement:["onEmbeddedPlacementChange"]}]]]],e)))); -
bettercx-widget/tags/1.0.12/assets/index.esm.js
r3412926 r3412941 1 export{a as ApiService,A as AuthService,B as BetterCXWidget,T as ThemeService}from"./p- DP9ZUtAa.js";import"./p-BnsX22WT.js";import"./p-BU1bGO0l.js";function e(e,r,t){return(e||"")+(r?` ${r}`:"")+(t?` ${t}`:"")}export{e as format}1 export{a as ApiService,A as AuthService,B as BetterCXWidget,T as ThemeService}from"./p-BAn8W8NT.js";import"./p-BnsX22WT.js";import"./p-BU1bGO0l.js";function e(e,r,t){return(e||"")+(r?` ${r}`:"")+(t?` ${t}`:"")}export{e as format} -
bettercx-widget/tags/1.0.12/assets/p-V8up-zPo.system.js
r3412926 r3412941 1 var __awaiter=this&&this.__awaiter||function(e,n,t,r){function a(e){return e instanceof t?e:new t((function(n){n(e)}))}return new(t||(t=Promise))((function(t,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function o(e){try{c(r["throw"](e))}catch(e){i(e)}}function c(e){e.done?t(e.value):a(e.value).then(s,o)}c((r=r.apply(e,n||[])).next())}))};var __generator=this&&this.__generator||function(e,n){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(n){return c([e,n])}}function c(o){if(r)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(t=0)),t)try{if(r=1,a&&(i=o[0]&2?a["return"]:o[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;if(a=0,i)o=[o[0]&2,i.value];switch(o[0]){case 0:case 1:i=o;break;case 4:t.label++;return{value:o[1],done:false};case 5:t.label++;a=o[1];o=[0];continue;case 7:o=t.ops.pop();t.trys.pop();continue;default:if(!(i=t.trys,i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){t.label=o[1];break}if(o[0]===6&&t.label<i[1]){t.label=i[1];i=o;break}if(i&&t.label<i[2]){t.label=i[2];t.ops.push(o);break}if(i[2])t.ops.pop();t.trys.pop();continue}o=n.call(e,t)}catch(e){o=[6,e];a=0}finally{r=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-Cbgoi924.system.js"],(function(e,n){"use strict";var t,r,a;return{setters:[function(n){t=n.p;r=n.g;a=n.b;e("setNonce",n.s)}],execute:function(){var e=this;var i=function(){var e=n.meta.url;var r={};if(e!==""){r.resourcesUrl=new URL(".",e).href}return t(r)};i().then((function(n){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,r()];case 1:e.sent();return[2,a([["p-cf8b0458.system",[[257,"bcx-chat-list",{apiService:[16,"api-service"],language:[1],theme:[1],chats:[32],selectedChatId:[32],messages:[32],isLoading:[32],isLoadingMore:[32],hasMore:[32],currentPage:[32],error:[32]},null,{language:["onLanguageChange"]}],[257,"bcx-message-composer",{disabled:[4],loading:[4],placeholder:[1],maxLength:[2,"max-length"],theme:[1],message:[32],images:[32]}],[257,"bcx-product-slider",{products:[16],language:[1],showAfterStreaming:[4,"show-after-streaming"],currentIndex:[32],isVisible:[32]},null,{products:["onProductsChange"],showAfterStreaming:["onShowAfterStreamingChange"]}]]],["p- a8a1179f.system",[[257,"bettercx-widget",{publicKey:[1,"public-key"],theme:[1],debug:[4],baseUrl:[1,"base-url"],aiServiceUrl:[1,"ai-service-url"],autoInit:[4,"auto-init"],position:[1],language:[1],embedded:[4],embeddedSize:[1,"embedded-size"],embeddedPlacement:[1,"embedded-placement"],state:[32],timeUpdateTrigger:[32],isDropdownOpen:[32],isFullscreen:[32],showChatList:[32],open:[64],close:[64],toggle:[64],sendMessage:[64]},null,{publicKey:["onPublicKeyChange"],theme:["onThemeChange"],language:["onLanguageChange"],"state.messages":["onMessagesChange"],embedded:["onEmbeddedChange"],embeddedSize:["onEmbeddedSizeChange"],embeddedPlacement:["onEmbeddedPlacementChange"]}]]]],n)]}}))}))}))}}}));1 var __awaiter=this&&this.__awaiter||function(e,n,t,r){function a(e){return e instanceof t?e:new t((function(n){n(e)}))}return new(t||(t=Promise))((function(t,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function o(e){try{c(r["throw"](e))}catch(e){i(e)}}function c(e){e.done?t(e.value):a(e.value).then(s,o)}c((r=r.apply(e,n||[])).next())}))};var __generator=this&&this.__generator||function(e,n){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(n){return c([e,n])}}function c(o){if(r)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(t=0)),t)try{if(r=1,a&&(i=o[0]&2?a["return"]:o[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;if(a=0,i)o=[o[0]&2,i.value];switch(o[0]){case 0:case 1:i=o;break;case 4:t.label++;return{value:o[1],done:false};case 5:t.label++;a=o[1];o=[0];continue;case 7:o=t.ops.pop();t.trys.pop();continue;default:if(!(i=t.trys,i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){t.label=o[1];break}if(o[0]===6&&t.label<i[1]){t.label=i[1];i=o;break}if(i&&t.label<i[2]){t.label=i[2];t.ops.push(o);break}if(i[2])t.ops.pop();t.trys.pop();continue}o=n.call(e,t)}catch(e){o=[6,e];a=0}finally{r=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-Cbgoi924.system.js"],(function(e,n){"use strict";var t,r,a;return{setters:[function(n){t=n.p;r=n.g;a=n.b;e("setNonce",n.s)}],execute:function(){var e=this;var i=function(){var e=n.meta.url;var r={};if(e!==""){r.resourcesUrl=new URL(".",e).href}return t(r)};i().then((function(n){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,r()];case 1:e.sent();return[2,a([["p-cf8b0458.system",[[257,"bcx-chat-list",{apiService:[16,"api-service"],language:[1],theme:[1],chats:[32],selectedChatId:[32],messages:[32],isLoading:[32],isLoadingMore:[32],hasMore:[32],currentPage:[32],error:[32]},null,{language:["onLanguageChange"]}],[257,"bcx-message-composer",{disabled:[4],loading:[4],placeholder:[1],maxLength:[2,"max-length"],theme:[1],message:[32],images:[32]}],[257,"bcx-product-slider",{products:[16],language:[1],showAfterStreaming:[4,"show-after-streaming"],currentIndex:[32],isVisible:[32]},null,{products:["onProductsChange"],showAfterStreaming:["onShowAfterStreamingChange"]}]]],["p-fc52ba98.system",[[257,"bettercx-widget",{publicKey:[1,"public-key"],theme:[1],debug:[4],baseUrl:[1,"base-url"],aiServiceUrl:[1,"ai-service-url"],autoInit:[4,"auto-init"],position:[1],language:[1],embedded:[4],embeddedSize:[1,"embedded-size"],embeddedPlacement:[1,"embedded-placement"],state:[32],timeUpdateTrigger:[32],isDropdownOpen:[32],isFullscreen:[32],showChatList:[32],open:[64],close:[64],toggle:[64],sendMessage:[64]},null,{publicKey:["onPublicKeyChange"],theme:["onThemeChange"],language:["onLanguageChange"],"state.messages":["onMessagesChange"],embedded:["onEmbeddedChange"],embeddedSize:["onEmbeddedSizeChange"],embeddedPlacement:["onEmbeddedPlacementChange"]}]]]],n)]}}))}))}))}}})); -
bettercx-widget/tags/1.0.12/bettercx-widget.php
r3412926 r3412941 4 4 * Plugin URI: https://wordpress.org/plugins/bettercx-widget/ 5 5 * Description: Professional AI-powered chat widget for BetterCX platform. Seamlessly integrate intelligent customer support into any website with full WordPress compatibility. Fully functional out of the box with no trial limitations. 6 * Version: 1.0.1 16 * Version: 1.0.12 7 7 * Author: BetterCX 8 8 * Author URI: https://bettercx.ai … … 16 16 * 17 17 * @package BetterCX_Widget 18 * @version 1.0.1 118 * @version 1.0.12 19 19 * @author BetterCX 20 20 * @license GPLv2+ … … 37 37 38 38 // Define plugin constants 39 define('BETTERCX_WIDGET_VERSION', '1.0.1 1');39 define('BETTERCX_WIDGET_VERSION', '1.0.12'); 40 40 define('BETTERCX_WIDGET_PLUGIN_FILE', __FILE__); 41 41 define('BETTERCX_WIDGET_PLUGIN_DIR', plugin_dir_path(__FILE__)); … … 565 565 566 566 if (isset($input['embedded_size'])) { 567 $allowed_sizes = array('full', ' large', 'medium', 'small');567 $allowed_sizes = array('full', 'medium', 'small'); 568 568 $sanitized['embedded_size'] = in_array($input['embedded_size'], $allowed_sizes) ? $input['embedded_size'] : 'full'; 569 569 } … … 1014 1014 $sizes = array( 1015 1015 'full' => esc_html__('Full Screen', 'bettercx-widget'), 1016 'large' => esc_html__('Large (80% width, 4:3 ratio)', 'bettercx-widget'),1017 1016 'medium' => esc_html__('Medium (60% width, 4:3 ratio)', 'bettercx-widget'), 1018 1017 'small' => esc_html__('Small (40% width, 4:3 ratio)', 'bettercx-widget'), -
bettercx-widget/tags/1.0.12/readme.txt
r3412926 r3412941 5 5 Tested up to: 6.8 6 6 Requires PHP: 7.4 7 Stable tag: 1.0.1 17 Stable tag: 1.0.12 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 20 20 * **Real-time Chat**: Instant messaging with your customers 21 21 * **Customizable Appearance**: Match your brand with themes, colors, titles, and positioning options 22 * **Embedded Mode Options**: Flexible sizing (full, large,medium, small) and placement (top, center, bottom) for embedded contexts22 * **Embedded Mode Options**: Flexible sizing (full, medium, small) and placement (top, center, bottom) for embedded contexts 23 23 * **Rich Media Support**: Image upload and sharing capabilities for enhanced communication 24 24 * **Branding Control**: Customizable "Powered by BetterCX" attribution display … … 43 43 * **Automatic Placement**: Global widget placement on all pages 44 44 * **Custom Positioning**: Left or right side positioning 45 * **Embedded Sizing**: Full screen, large (80%),medium (60%), or small (40%) width with 4:3 aspect ratio45 * **Embedded Sizing**: Full screen, medium (60%), or small (40%) width with 4:3 aspect ratio 46 46 * **Embedded Placement**: Top, center, or bottom positioning for embedded widgets 47 47 * **Theme Integration**: Seamless integration with any WordPress theme … … 248 248 == Changelog == 249 249 250 = 1.0.12 = 251 * Removed 'large' size option from embedded mode - now supports only full, medium, and small sizes 252 * Fixed embedded mode behavior on mobile devices to match non-embedded chat experience 253 * Improved mobile viewport handling for embedded widgets with proper keyboard support 254 * Enhanced visual viewport integration for better mobile responsiveness 255 * Fixed safe area padding and animations for embedded mode on mobile 256 250 257 = 1.0.11 = 251 * Added embedded size configuration (full, large,medium, small) with 4:3 aspect ratio258 * Added embedded size configuration (full, medium, small) with 4:3 aspect ratio 252 259 * Added embedded placement options (top, center, bottom) for flexible positioning 253 260 * Enhanced embedded mode with responsive sizing - mobile always uses full screen … … 350 357 == Upgrade Notice == 351 358 359 = 1.0.12 = 360 Update: Removed 'large' size option from embedded mode. Improved embedded widget behavior on mobile devices to match standard chat experience with proper keyboard handling and viewport support. 361 352 362 = 1.0.11 = 353 New feature: Added embedded size and placement options for flexible widget positioning. Configure widget size (full, large,medium, small) and vertical placement (top, center, bottom) in Advanced Settings. Mobile devices always use full screen for optimal UX.363 New feature: Added embedded size and placement options for flexible widget positioning. Configure widget size (full, medium, small) and vertical placement (top, center, bottom) in Advanced Settings. Mobile devices always use full screen for optimal UX. 354 364 355 365 = 1.0.10 = … … 615 625 616 626 = Version = 617 1.0.1 1627 1.0.12 618 628 619 629 = Minimum WordPress Version = … … 630 640 631 641 = Stable Tag = 632 1.0.1 1642 1.0.12 633 643 634 644 = Development Version = 635 1.0.1 1645 1.0.12 636 646 637 647 = Requires at least = -
bettercx-widget/trunk/assets/bettercx-widget.esm.js
r3412926 r3412941 1 import{p as e,g as a,b as n}from"./p-BnsX22WT.js";export{s as setNonce}from"./p-BnsX22WT.js";(()=>{const a=import.meta.url,n={};return""!==a&&(n.resourcesUrl=new URL(".",a).href),e(n)})().then((async e=>(await a(),n([["p-72aa52b9",[[257,"bcx-chat-list",{apiService:[16,"api-service"],language:[1],theme:[1],chats:[32],selectedChatId:[32],messages:[32],isLoading:[32],isLoadingMore:[32],hasMore:[32],currentPage:[32],error:[32]},null,{language:["onLanguageChange"]}],[257,"bcx-message-composer",{disabled:[4],loading:[4],placeholder:[1],maxLength:[2,"max-length"],theme:[1],message:[32],images:[32]}],[257,"bcx-product-slider",{products:[16],language:[1],showAfterStreaming:[4,"show-after-streaming"],currentIndex:[32],isVisible:[32]},null,{products:["onProductsChange"],showAfterStreaming:["onShowAfterStreamingChange"]}]]],["p- 53dddee8",[[257,"bettercx-widget",{publicKey:[1,"public-key"],theme:[1],debug:[4],baseUrl:[1,"base-url"],aiServiceUrl:[1,"ai-service-url"],autoInit:[4,"auto-init"],position:[1],language:[1],embedded:[4],embeddedSize:[1,"embedded-size"],embeddedPlacement:[1,"embedded-placement"],state:[32],timeUpdateTrigger:[32],isDropdownOpen:[32],isFullscreen:[32],showChatList:[32],open:[64],close:[64],toggle:[64],sendMessage:[64]},null,{publicKey:["onPublicKeyChange"],theme:["onThemeChange"],language:["onLanguageChange"],"state.messages":["onMessagesChange"],embedded:["onEmbeddedChange"],embeddedSize:["onEmbeddedSizeChange"],embeddedPlacement:["onEmbeddedPlacementChange"]}]]]],e))));1 import{p as e,g as a,b as n}from"./p-BnsX22WT.js";export{s as setNonce}from"./p-BnsX22WT.js";(()=>{const a=import.meta.url,n={};return""!==a&&(n.resourcesUrl=new URL(".",a).href),e(n)})().then((async e=>(await a(),n([["p-72aa52b9",[[257,"bcx-chat-list",{apiService:[16,"api-service"],language:[1],theme:[1],chats:[32],selectedChatId:[32],messages:[32],isLoading:[32],isLoadingMore:[32],hasMore:[32],currentPage:[32],error:[32]},null,{language:["onLanguageChange"]}],[257,"bcx-message-composer",{disabled:[4],loading:[4],placeholder:[1],maxLength:[2,"max-length"],theme:[1],message:[32],images:[32]}],[257,"bcx-product-slider",{products:[16],language:[1],showAfterStreaming:[4,"show-after-streaming"],currentIndex:[32],isVisible:[32]},null,{products:["onProductsChange"],showAfterStreaming:["onShowAfterStreamingChange"]}]]],["p-fbee627a",[[257,"bettercx-widget",{publicKey:[1,"public-key"],theme:[1],debug:[4],baseUrl:[1,"base-url"],aiServiceUrl:[1,"ai-service-url"],autoInit:[4,"auto-init"],position:[1],language:[1],embedded:[4],embeddedSize:[1,"embedded-size"],embeddedPlacement:[1,"embedded-placement"],state:[32],timeUpdateTrigger:[32],isDropdownOpen:[32],isFullscreen:[32],showChatList:[32],open:[64],close:[64],toggle:[64],sendMessage:[64]},null,{publicKey:["onPublicKeyChange"],theme:["onThemeChange"],language:["onLanguageChange"],"state.messages":["onMessagesChange"],embedded:["onEmbeddedChange"],embeddedSize:["onEmbeddedSizeChange"],embeddedPlacement:["onEmbeddedPlacementChange"]}]]]],e)))); -
bettercx-widget/trunk/assets/index.esm.js
r3412926 r3412941 1 export{a as ApiService,A as AuthService,B as BetterCXWidget,T as ThemeService}from"./p- DP9ZUtAa.js";import"./p-BnsX22WT.js";import"./p-BU1bGO0l.js";function e(e,r,t){return(e||"")+(r?` ${r}`:"")+(t?` ${t}`:"")}export{e as format}1 export{a as ApiService,A as AuthService,B as BetterCXWidget,T as ThemeService}from"./p-BAn8W8NT.js";import"./p-BnsX22WT.js";import"./p-BU1bGO0l.js";function e(e,r,t){return(e||"")+(r?` ${r}`:"")+(t?` ${t}`:"")}export{e as format} -
bettercx-widget/trunk/assets/p-V8up-zPo.system.js
r3412926 r3412941 1 var __awaiter=this&&this.__awaiter||function(e,n,t,r){function a(e){return e instanceof t?e:new t((function(n){n(e)}))}return new(t||(t=Promise))((function(t,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function o(e){try{c(r["throw"](e))}catch(e){i(e)}}function c(e){e.done?t(e.value):a(e.value).then(s,o)}c((r=r.apply(e,n||[])).next())}))};var __generator=this&&this.__generator||function(e,n){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(n){return c([e,n])}}function c(o){if(r)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(t=0)),t)try{if(r=1,a&&(i=o[0]&2?a["return"]:o[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;if(a=0,i)o=[o[0]&2,i.value];switch(o[0]){case 0:case 1:i=o;break;case 4:t.label++;return{value:o[1],done:false};case 5:t.label++;a=o[1];o=[0];continue;case 7:o=t.ops.pop();t.trys.pop();continue;default:if(!(i=t.trys,i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){t.label=o[1];break}if(o[0]===6&&t.label<i[1]){t.label=i[1];i=o;break}if(i&&t.label<i[2]){t.label=i[2];t.ops.push(o);break}if(i[2])t.ops.pop();t.trys.pop();continue}o=n.call(e,t)}catch(e){o=[6,e];a=0}finally{r=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-Cbgoi924.system.js"],(function(e,n){"use strict";var t,r,a;return{setters:[function(n){t=n.p;r=n.g;a=n.b;e("setNonce",n.s)}],execute:function(){var e=this;var i=function(){var e=n.meta.url;var r={};if(e!==""){r.resourcesUrl=new URL(".",e).href}return t(r)};i().then((function(n){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,r()];case 1:e.sent();return[2,a([["p-cf8b0458.system",[[257,"bcx-chat-list",{apiService:[16,"api-service"],language:[1],theme:[1],chats:[32],selectedChatId:[32],messages:[32],isLoading:[32],isLoadingMore:[32],hasMore:[32],currentPage:[32],error:[32]},null,{language:["onLanguageChange"]}],[257,"bcx-message-composer",{disabled:[4],loading:[4],placeholder:[1],maxLength:[2,"max-length"],theme:[1],message:[32],images:[32]}],[257,"bcx-product-slider",{products:[16],language:[1],showAfterStreaming:[4,"show-after-streaming"],currentIndex:[32],isVisible:[32]},null,{products:["onProductsChange"],showAfterStreaming:["onShowAfterStreamingChange"]}]]],["p- a8a1179f.system",[[257,"bettercx-widget",{publicKey:[1,"public-key"],theme:[1],debug:[4],baseUrl:[1,"base-url"],aiServiceUrl:[1,"ai-service-url"],autoInit:[4,"auto-init"],position:[1],language:[1],embedded:[4],embeddedSize:[1,"embedded-size"],embeddedPlacement:[1,"embedded-placement"],state:[32],timeUpdateTrigger:[32],isDropdownOpen:[32],isFullscreen:[32],showChatList:[32],open:[64],close:[64],toggle:[64],sendMessage:[64]},null,{publicKey:["onPublicKeyChange"],theme:["onThemeChange"],language:["onLanguageChange"],"state.messages":["onMessagesChange"],embedded:["onEmbeddedChange"],embeddedSize:["onEmbeddedSizeChange"],embeddedPlacement:["onEmbeddedPlacementChange"]}]]]],n)]}}))}))}))}}}));1 var __awaiter=this&&this.__awaiter||function(e,n,t,r){function a(e){return e instanceof t?e:new t((function(n){n(e)}))}return new(t||(t=Promise))((function(t,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function o(e){try{c(r["throw"](e))}catch(e){i(e)}}function c(e){e.done?t(e.value):a(e.value).then(s,o)}c((r=r.apply(e,n||[])).next())}))};var __generator=this&&this.__generator||function(e,n){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(n){return c([e,n])}}function c(o){if(r)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(t=0)),t)try{if(r=1,a&&(i=o[0]&2?a["return"]:o[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;if(a=0,i)o=[o[0]&2,i.value];switch(o[0]){case 0:case 1:i=o;break;case 4:t.label++;return{value:o[1],done:false};case 5:t.label++;a=o[1];o=[0];continue;case 7:o=t.ops.pop();t.trys.pop();continue;default:if(!(i=t.trys,i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){t.label=o[1];break}if(o[0]===6&&t.label<i[1]){t.label=i[1];i=o;break}if(i&&t.label<i[2]){t.label=i[2];t.ops.push(o);break}if(i[2])t.ops.pop();t.trys.pop();continue}o=n.call(e,t)}catch(e){o=[6,e];a=0}finally{r=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-Cbgoi924.system.js"],(function(e,n){"use strict";var t,r,a;return{setters:[function(n){t=n.p;r=n.g;a=n.b;e("setNonce",n.s)}],execute:function(){var e=this;var i=function(){var e=n.meta.url;var r={};if(e!==""){r.resourcesUrl=new URL(".",e).href}return t(r)};i().then((function(n){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,r()];case 1:e.sent();return[2,a([["p-cf8b0458.system",[[257,"bcx-chat-list",{apiService:[16,"api-service"],language:[1],theme:[1],chats:[32],selectedChatId:[32],messages:[32],isLoading:[32],isLoadingMore:[32],hasMore:[32],currentPage:[32],error:[32]},null,{language:["onLanguageChange"]}],[257,"bcx-message-composer",{disabled:[4],loading:[4],placeholder:[1],maxLength:[2,"max-length"],theme:[1],message:[32],images:[32]}],[257,"bcx-product-slider",{products:[16],language:[1],showAfterStreaming:[4,"show-after-streaming"],currentIndex:[32],isVisible:[32]},null,{products:["onProductsChange"],showAfterStreaming:["onShowAfterStreamingChange"]}]]],["p-fc52ba98.system",[[257,"bettercx-widget",{publicKey:[1,"public-key"],theme:[1],debug:[4],baseUrl:[1,"base-url"],aiServiceUrl:[1,"ai-service-url"],autoInit:[4,"auto-init"],position:[1],language:[1],embedded:[4],embeddedSize:[1,"embedded-size"],embeddedPlacement:[1,"embedded-placement"],state:[32],timeUpdateTrigger:[32],isDropdownOpen:[32],isFullscreen:[32],showChatList:[32],open:[64],close:[64],toggle:[64],sendMessage:[64]},null,{publicKey:["onPublicKeyChange"],theme:["onThemeChange"],language:["onLanguageChange"],"state.messages":["onMessagesChange"],embedded:["onEmbeddedChange"],embeddedSize:["onEmbeddedSizeChange"],embeddedPlacement:["onEmbeddedPlacementChange"]}]]]],n)]}}))}))}))}}})); -
bettercx-widget/trunk/bettercx-widget.php
r3412926 r3412941 4 4 * Plugin URI: https://wordpress.org/plugins/bettercx-widget/ 5 5 * Description: Professional AI-powered chat widget for BetterCX platform. Seamlessly integrate intelligent customer support into any website with full WordPress compatibility. Fully functional out of the box with no trial limitations. 6 * Version: 1.0.1 16 * Version: 1.0.12 7 7 * Author: BetterCX 8 8 * Author URI: https://bettercx.ai … … 16 16 * 17 17 * @package BetterCX_Widget 18 * @version 1.0.1 118 * @version 1.0.12 19 19 * @author BetterCX 20 20 * @license GPLv2+ … … 37 37 38 38 // Define plugin constants 39 define('BETTERCX_WIDGET_VERSION', '1.0.1 1');39 define('BETTERCX_WIDGET_VERSION', '1.0.12'); 40 40 define('BETTERCX_WIDGET_PLUGIN_FILE', __FILE__); 41 41 define('BETTERCX_WIDGET_PLUGIN_DIR', plugin_dir_path(__FILE__)); … … 565 565 566 566 if (isset($input['embedded_size'])) { 567 $allowed_sizes = array('full', ' large', 'medium', 'small');567 $allowed_sizes = array('full', 'medium', 'small'); 568 568 $sanitized['embedded_size'] = in_array($input['embedded_size'], $allowed_sizes) ? $input['embedded_size'] : 'full'; 569 569 } … … 1014 1014 $sizes = array( 1015 1015 'full' => esc_html__('Full Screen', 'bettercx-widget'), 1016 'large' => esc_html__('Large (80% width, 4:3 ratio)', 'bettercx-widget'),1017 1016 'medium' => esc_html__('Medium (60% width, 4:3 ratio)', 'bettercx-widget'), 1018 1017 'small' => esc_html__('Small (40% width, 4:3 ratio)', 'bettercx-widget'), -
bettercx-widget/trunk/readme.txt
r3412926 r3412941 5 5 Tested up to: 6.8 6 6 Requires PHP: 7.4 7 Stable tag: 1.0.1 17 Stable tag: 1.0.12 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 20 20 * **Real-time Chat**: Instant messaging with your customers 21 21 * **Customizable Appearance**: Match your brand with themes, colors, titles, and positioning options 22 * **Embedded Mode Options**: Flexible sizing (full, large,medium, small) and placement (top, center, bottom) for embedded contexts22 * **Embedded Mode Options**: Flexible sizing (full, medium, small) and placement (top, center, bottom) for embedded contexts 23 23 * **Rich Media Support**: Image upload and sharing capabilities for enhanced communication 24 24 * **Branding Control**: Customizable "Powered by BetterCX" attribution display … … 43 43 * **Automatic Placement**: Global widget placement on all pages 44 44 * **Custom Positioning**: Left or right side positioning 45 * **Embedded Sizing**: Full screen, large (80%),medium (60%), or small (40%) width with 4:3 aspect ratio45 * **Embedded Sizing**: Full screen, medium (60%), or small (40%) width with 4:3 aspect ratio 46 46 * **Embedded Placement**: Top, center, or bottom positioning for embedded widgets 47 47 * **Theme Integration**: Seamless integration with any WordPress theme … … 248 248 == Changelog == 249 249 250 = 1.0.12 = 251 * Removed 'large' size option from embedded mode - now supports only full, medium, and small sizes 252 * Fixed embedded mode behavior on mobile devices to match non-embedded chat experience 253 * Improved mobile viewport handling for embedded widgets with proper keyboard support 254 * Enhanced visual viewport integration for better mobile responsiveness 255 * Fixed safe area padding and animations for embedded mode on mobile 256 250 257 = 1.0.11 = 251 * Added embedded size configuration (full, large,medium, small) with 4:3 aspect ratio258 * Added embedded size configuration (full, medium, small) with 4:3 aspect ratio 252 259 * Added embedded placement options (top, center, bottom) for flexible positioning 253 260 * Enhanced embedded mode with responsive sizing - mobile always uses full screen … … 350 357 == Upgrade Notice == 351 358 359 = 1.0.12 = 360 Update: Removed 'large' size option from embedded mode. Improved embedded widget behavior on mobile devices to match standard chat experience with proper keyboard handling and viewport support. 361 352 362 = 1.0.11 = 353 New feature: Added embedded size and placement options for flexible widget positioning. Configure widget size (full, large,medium, small) and vertical placement (top, center, bottom) in Advanced Settings. Mobile devices always use full screen for optimal UX.363 New feature: Added embedded size and placement options for flexible widget positioning. Configure widget size (full, medium, small) and vertical placement (top, center, bottom) in Advanced Settings. Mobile devices always use full screen for optimal UX. 354 364 355 365 = 1.0.10 = … … 615 625 616 626 = Version = 617 1.0.1 1627 1.0.12 618 628 619 629 = Minimum WordPress Version = … … 630 640 631 641 = Stable Tag = 632 1.0.1 1642 1.0.12 633 643 634 644 = Development Version = 635 1.0.1 1645 1.0.12 636 646 637 647 = Requires at least =
Note: See TracChangeset
for help on using the changeset viewer.