Plugin Directory

Changeset 3492893


Ignore:
Timestamp:
03/27/2026 06:09:24 PM (7 days ago)
Author:
ugoltsev
Message:

Release 1.2.1

Location:
ask-my-content
Files:
5 edited
24 copied

Legend:

Unmodified
Added
Removed
  • ask-my-content/tags/1.2.1/ask-my-content.php

    r3491287 r3492893  
    44 * Plugin Name:       Ask My Content - AI Q&A Chatbot
    55 * Description:       AI-powered Q&A chatbot, allowing users to ask questions and receive answers sourced from the site’s own posts and pages.
    6  * Version:           1.2.0
     6 * Version:           1.2.1
    77 * Requires at least: 5.8
    88 * Requires PHP:      7.4
     
    9393    $settings_path = $base_dir . 'assets/js/askmyco-settings.js';
    9494
    95     $core_ver = file_exists($core_path) ? filemtime($core_path) : '1.2.0';
    96     $frontend_ver = file_exists($frontend_path) ? filemtime($frontend_path) : '1.2.0';
    97     $admin_init_ver = file_exists($admin_init_path) ? filemtime($admin_init_path) : '1.2.0';
    98     $style_ver = file_exists($style_path) ? filemtime($style_path) : '1.2.0';
    99     $settings_ver = file_exists($settings_path) ? filemtime($settings_path) : '1.2.0';
     95    $core_ver = file_exists($core_path) ? filemtime($core_path) : '1.2.1';
     96    $frontend_ver = file_exists($frontend_path) ? filemtime($frontend_path) : '1.2.1';
     97    $admin_init_ver = file_exists($admin_init_path) ? filemtime($admin_init_path) : '1.2.1';
     98    $style_ver = file_exists($style_path) ? filemtime($style_path) : '1.2.1';
     99    $settings_ver = file_exists($settings_path) ? filemtime($settings_path) : '1.2.1';
    100100
    101101    $payments_path = $base_dir . 'assets/js/amc-payments.js';
    102     $payments_ver = file_exists($payments_path) ? filemtime($payments_path) : '1.2.0';
     102    $payments_ver = file_exists($payments_path) ? filemtime($payments_path) : '1.2.1';
    103103
    104104    if (! wp_script_is($core_handle, 'registered')) {
     
    262262
    263263    $floating_path = plugin_dir_path(__FILE__) . 'assets/js/amc-floating.js';
    264     $floating_ver = file_exists($floating_path) ? filemtime($floating_path) : '1.2.0';
     264    $floating_ver = file_exists($floating_path) ? filemtime($floating_path) : '1.2.1';
    265265
    266266    wp_enqueue_script(
  • ask-my-content/tags/1.2.1/assets/css/ask-my-content.css

    r3464679 r3492893  
    5353.amc-float-panel .amc-chat {
    5454    max-width: none;
     55}
     56
     57.amc-float-panel .amc-chat-header.amc-float-header {
     58    display: flex;
     59    align-items: center;
     60    justify-content: space-between;
     61    gap: 12px;
     62}
     63
     64.amc-float-close {
     65    appearance: none;
     66    background: transparent;
     67    border: 0;
     68    color: inherit;
     69    cursor: pointer;
     70    font-size: 24px;
     71    font-weight: 400;
     72    line-height: 1;
     73    margin-left: auto;
     74    padding: 0;
     75}
     76
     77.amc-float-close:hover,
     78.amc-float-close:focus {
     79    opacity: 0.85;
     80}
     81
     82.amc-float-close:focus {
     83    outline: 2px solid currentColor;
     84    outline-offset: 2px;
    5585}
    5686
  • ask-my-content/tags/1.2.1/assets/js/amc-floating.js

    r3465382 r3492893  
    33    const panel = document.getElementById('amc-float-panel');
    44    if (!launcher || !panel) return;
     5    const header = panel.querySelector('.amc-chat-header');
     6
     7    function ensureCloseButton() {
     8        if (!header || header.querySelector('.amc-float-close')) return;
     9        header.classList.add('amc-float-header');
     10
     11        const closeButton = document.createElement('button');
     12        closeButton.type = 'button';
     13        closeButton.className = 'amc-float-close';
     14        closeButton.setAttribute('aria-label', 'Close chat');
     15        closeButton.textContent = '\u00d7';
     16        closeButton.addEventListener('click', function (event) {
     17            event.preventDefault();
     18            event.stopPropagation();
     19            setOpen(false);
     20        });
     21
     22        header.appendChild(closeButton);
     23    }
    524
    625    function isTransparentColor(value) {
     
    7695
    7796    applyThemeFallbackColors();
     97    ensureCloseButton();
    7898
    7999    function setOpen(open) {
     
    86106        } else {
    87107            panel.classList.remove('is-open');
     108            launcher.focus();
    88109        }
    89110    }
  • ask-my-content/tags/1.2.1/readme.txt

    r3491287 r3492893  
    55Requires PHP: 7.4
    66Tested up to: 6.9
    7 Stable tag: 1.2.0
     7Stable tag: 1.2.1
    88License: GPL-2.0-or-later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    196196== Changelog ==
    197197
     198= 1.2.1 =
     199Added `X` button to close the floating chat dialog (also can be closed by the `Esc` key)
     200
    198201= 1.2.0 =
    199202Improved content indexing support for Gutenberg, Elementor, Avada, WooCommerce, and other post types.
  • ask-my-content/tags/1.2.1/src/ask-my-content/block.json

    r3491287 r3492893  
    33    "apiVersion": 3,
    44    "name": "amc/ask-my-content",
    5     "version": "1.2.0",
     5    "version": "1.2.1",
    66    "title": "Ask My Content",
    77    "category": "widgets",
  • ask-my-content/trunk/ask-my-content.php

    r3491287 r3492893  
    44 * Plugin Name:       Ask My Content - AI Q&A Chatbot
    55 * Description:       AI-powered Q&A chatbot, allowing users to ask questions and receive answers sourced from the site’s own posts and pages.
    6  * Version:           1.2.0
     6 * Version:           1.2.1
    77 * Requires at least: 5.8
    88 * Requires PHP:      7.4
     
    9393    $settings_path = $base_dir . 'assets/js/askmyco-settings.js';
    9494
    95     $core_ver = file_exists($core_path) ? filemtime($core_path) : '1.2.0';
    96     $frontend_ver = file_exists($frontend_path) ? filemtime($frontend_path) : '1.2.0';
    97     $admin_init_ver = file_exists($admin_init_path) ? filemtime($admin_init_path) : '1.2.0';
    98     $style_ver = file_exists($style_path) ? filemtime($style_path) : '1.2.0';
    99     $settings_ver = file_exists($settings_path) ? filemtime($settings_path) : '1.2.0';
     95    $core_ver = file_exists($core_path) ? filemtime($core_path) : '1.2.1';
     96    $frontend_ver = file_exists($frontend_path) ? filemtime($frontend_path) : '1.2.1';
     97    $admin_init_ver = file_exists($admin_init_path) ? filemtime($admin_init_path) : '1.2.1';
     98    $style_ver = file_exists($style_path) ? filemtime($style_path) : '1.2.1';
     99    $settings_ver = file_exists($settings_path) ? filemtime($settings_path) : '1.2.1';
    100100
    101101    $payments_path = $base_dir . 'assets/js/amc-payments.js';
    102     $payments_ver = file_exists($payments_path) ? filemtime($payments_path) : '1.2.0';
     102    $payments_ver = file_exists($payments_path) ? filemtime($payments_path) : '1.2.1';
    103103
    104104    if (! wp_script_is($core_handle, 'registered')) {
     
    262262
    263263    $floating_path = plugin_dir_path(__FILE__) . 'assets/js/amc-floating.js';
    264     $floating_ver = file_exists($floating_path) ? filemtime($floating_path) : '1.2.0';
     264    $floating_ver = file_exists($floating_path) ? filemtime($floating_path) : '1.2.1';
    265265
    266266    wp_enqueue_script(
  • ask-my-content/trunk/assets/css/ask-my-content.css

    r3464679 r3492893  
    5353.amc-float-panel .amc-chat {
    5454    max-width: none;
     55}
     56
     57.amc-float-panel .amc-chat-header.amc-float-header {
     58    display: flex;
     59    align-items: center;
     60    justify-content: space-between;
     61    gap: 12px;
     62}
     63
     64.amc-float-close {
     65    appearance: none;
     66    background: transparent;
     67    border: 0;
     68    color: inherit;
     69    cursor: pointer;
     70    font-size: 24px;
     71    font-weight: 400;
     72    line-height: 1;
     73    margin-left: auto;
     74    padding: 0;
     75}
     76
     77.amc-float-close:hover,
     78.amc-float-close:focus {
     79    opacity: 0.85;
     80}
     81
     82.amc-float-close:focus {
     83    outline: 2px solid currentColor;
     84    outline-offset: 2px;
    5585}
    5686
  • ask-my-content/trunk/assets/js/amc-floating.js

    r3465382 r3492893  
    33    const panel = document.getElementById('amc-float-panel');
    44    if (!launcher || !panel) return;
     5    const header = panel.querySelector('.amc-chat-header');
     6
     7    function ensureCloseButton() {
     8        if (!header || header.querySelector('.amc-float-close')) return;
     9        header.classList.add('amc-float-header');
     10
     11        const closeButton = document.createElement('button');
     12        closeButton.type = 'button';
     13        closeButton.className = 'amc-float-close';
     14        closeButton.setAttribute('aria-label', 'Close chat');
     15        closeButton.textContent = '\u00d7';
     16        closeButton.addEventListener('click', function (event) {
     17            event.preventDefault();
     18            event.stopPropagation();
     19            setOpen(false);
     20        });
     21
     22        header.appendChild(closeButton);
     23    }
    524
    625    function isTransparentColor(value) {
     
    7695
    7796    applyThemeFallbackColors();
     97    ensureCloseButton();
    7898
    7999    function setOpen(open) {
     
    86106        } else {
    87107            panel.classList.remove('is-open');
     108            launcher.focus();
    88109        }
    89110    }
  • ask-my-content/trunk/readme.txt

    r3491287 r3492893  
    55Requires PHP: 7.4
    66Tested up to: 6.9
    7 Stable tag: 1.2.0
     7Stable tag: 1.2.1
    88License: GPL-2.0-or-later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    196196== Changelog ==
    197197
     198= 1.2.1 =
     199Added `X` button to close the floating chat dialog (also can be closed by the `Esc` key)
     200
    198201= 1.2.0 =
    199202Improved content indexing support for Gutenberg, Elementor, Avada, WooCommerce, and other post types.
  • ask-my-content/trunk/src/ask-my-content/block.json

    r3491287 r3492893  
    33    "apiVersion": 3,
    44    "name": "amc/ask-my-content",
    5     "version": "1.2.0",
     5    "version": "1.2.1",
    66    "title": "Ask My Content",
    77    "category": "widgets",
Note: See TracChangeset for help on using the changeset viewer.