Plugin Directory

Changeset 3400911


Ignore:
Timestamp:
11/22/2025 11:52:21 AM (4 months ago)
Author:
linkflow
Message:

Fix UI

Location:
linkflow-chat/trunk
Files:
2 added
2 deleted
10 edited

Legend:

Unmodified
Added
Removed
  • linkflow-chat/trunk/assets/dist/.vite/manifest.json

    r3400760 r3400911  
    11{
    22  "src/main.tsx": {
    3     "file": "js/main-C1uJ7QTD.js",
     3    "file": "js/main-OUKf2Y1W.js",
    44    "name": "main",
    55    "src": "src/main.tsx",
    66    "isEntry": true,
    77    "css": [
    8       "css/main-iF-OlW1F.css"
     8      "css/main-BrSDWKrj.css"
    99    ]
    1010  }
  • linkflow-chat/trunk/frontend/src/components/BlockWidget.tsx

    r3400583 r3400911  
    154154
    155155  return (
    156     <div className="linkflow-block-widget">
     156    <div className="linkflow-block-widget" id="linkflow-chat-tw-scope">
    157157      <div ref={buttonRef} style={{ textAlign: align }}>
    158158        {renderTrigger()}
  • linkflow-chat/trunk/frontend/src/components/ChatWidget.tsx

    r3375551 r3400911  
    243243
    244244  return (
    245     <div className="chat-widget">
     245    <div className="chat-widget" id="linkflow-chat-tw-scope">
    246246      {/* Chat Button */}
    247247      {!(buttonConfig.showOnMobile === false && buttonConfig.showOnDesktop === false) && (
  • linkflow-chat/trunk/frontend/src/index.css

    r3400583 r3400911  
    1 @tailwind base;
     1/* Scope Tailwind base styles to prevent affecting host page */
     2#linkflow-chat-tw-scope {
     3  @tailwind base;
     4}
     5
    26@tailwind components;
    37@tailwind utilities;
  • linkflow-chat/trunk/frontend/src/main.tsx

    r3400583 r3400911  
    232232;(window as any).linkflowOpenChat = function(options?: { serviceId?: string | number, autoOpen?: boolean, position?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left' | 'center' }) {
    233233  try {
     234    // Get backend configuration
     235    const serviceConfig = (window as any).linkflowChat?.serviceConfig
     236    type ServiceConfigWithGlobal = ServiceConfig & { globalDisplay?: { enabled: boolean; mobileEnabled: boolean; zIndex: number } }
     237    const data = serviceConfig?.data as ServiceConfigWithGlobal | undefined
     238    const appearance = data?.appearance
     239
     240    // Build config with backend theme colors
     241    const chatConfig = {
     242      position: (options?.position || 'center') as any,
     243      primaryColor: appearance?.primaryColor || '#007cba',
     244      secondaryColor: appearance?.secondaryColor || '#ffffff',
     245      buttonSize: (appearance?.buttonSize || 'medium') as 'small' | 'medium' | 'large',
     246      buttonImage: appearance?.buttonImage || '',
     247      showOnDesktop: false,
     248      showOnMobile: false,
     249      zIndex: 9999,
     250      showName: data?.service?.showName,
     251      avatarUrl: data?.service?.avatarUrl
     252    }
     253
    234254    // Try to find existing global widget container; otherwise create a temporary centered widget
    235255    const existing = document.getElementById('linkflow-chat-global-widget')
     
    243263          <ChatWidget
    244264            serviceId={serviceId}
    245             config={{ position: (options?.position || 'bottom-right') as any }}
     265            config={chatConfig}
    246266            autoOpen={true}
    247267          />
     
    265285        <ChatWidget
    266286          serviceId={finalServiceId}
    267           config={{ position: (options?.position || 'center') as any, showOnDesktop: false, showOnMobile: false, zIndex: 9999 }}
     287          config={chatConfig}
    268288          autoOpen={true}
    269289        />
  • linkflow-chat/trunk/frontend/tailwind.config.js

    r3400583 r3400911  
    99export default {
    1010  prefix: 'lfc-',
     11  important: '#linkflow-chat-tw-scope',
    1112  content: [
    1213    "./index.html",
  • linkflow-chat/trunk/linkflow-chat.php

    r3400760 r3400911  
    55 * Plugin URI: https://linkflow.chat
    66 * Description: LinkFlow Chat integrates advanced AI like ChatGPT into WordPress for smart conversations. It seamlessly hands off to WhatsApp and social platforms when needed, not only boosting satisfaction but also helping you grow your follower count and community.
    7  * Version: 1.0.6
     7 * Version: 1.0.7
    88 * Author: LinkFlow.chat
    99 * License: GPL v2 or later
     
    4949do_action( 'linkflowChat_fs_loaded' );
    5050// Define plugin constants
    51 define( 'LINKFLOW_CHAT_VERSION', '1.0.6' );
     51define( 'LINKFLOW_CHAT_VERSION', '1.0.7' );
    5252define( 'LINKFLOW_CHAT_PLUGIN_FILE', __FILE__ );
    5353define( 'LINKFLOW_CHAT_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
  • linkflow-chat/trunk/plugin-info.json

    r3400760 r3400911  
    22    "name": "LinkFlow Chat – AI Chatbot With 20+ Social Media Buttons & Human Support",
    33    "slug": "linkflow-chat",
    4     "version": "1.0.6",
     4    "version": "1.0.7",
    55    "requires": "5.9",
    66    "tested": "6.8",
    77    "requires_php": "7.0",
    8     "last_updated": "2025-11-22 02:45:56",
     8    "last_updated": "2025-11-22 11:46:07",
    99    "sections": {
    1010    "description": "LinkFlow Chat integrates advanced AI like ChatGPT into WordPress for smart conversations. It seamlessly hands off to WhatsApp and social platforms when needed, not only boosting satisfaction but also helping you grow your follower count and community.",
  • linkflow-chat/trunk/readme.txt

    r3400760 r3400911  
    66Tested up to: 6.8
    77Requires PHP: 7.0
    8 Stable tag: 1.0.6
     8Stable tag: 1.0.7
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    5454
    5555== Changelog ==
     56= 1.0.7 =
     57* Fix known issues
    5658= 1.0.6 =
    5759* Fix known issues
  • linkflow-chat/trunk/version.json

    r3400760 r3400911  
    11{
    2     "version": "1.0.6",
    3     "build_date": "2025-11-22T02:45:56Z",
    4     "build_hash": "e536598da47e6a32ca34df4c5a2c0253f97ce7dd",
     2    "version": "1.0.7",
     3    "build_date": "2025-11-22T11:46:07Z",
     4    "build_hash": "afaa53c50a7ac1cc32ddec01d9fbf28bb6cb241f",
    55        "php_version_required": "7.0",
    66        "wordpress_version_required": "5.9",
Note: See TracChangeset for help on using the changeset viewer.