Changeset 3492893
- Timestamp:
- 03/27/2026 06:09:24 PM (7 days ago)
- Location:
- ask-my-content
- Files:
-
- 5 edited
- 24 copied
-
tags/1.2.1 (copied) (copied from ask-my-content/trunk)
-
tags/1.2.1/ask-my-content.php (copied) (copied from ask-my-content/trunk/ask-my-content.php) (3 diffs)
-
tags/1.2.1/assets/css/ask-my-content.css (copied) (copied from ask-my-content/trunk/assets/css/ask-my-content.css) (1 diff)
-
tags/1.2.1/assets/js/amc-admin-init.js (copied) (copied from ask-my-content/trunk/assets/js/amc-admin-init.js)
-
tags/1.2.1/assets/js/amc-chat-core.js (copied) (copied from ask-my-content/trunk/assets/js/amc-chat-core.js)
-
tags/1.2.1/assets/js/amc-floating.js (copied) (copied from ask-my-content/trunk/assets/js/amc-floating.js) (3 diffs)
-
tags/1.2.1/assets/js/amc-payments.js (copied) (copied from ask-my-content/trunk/assets/js/amc-payments.js)
-
tags/1.2.1/assets/js/askmyco-settings.js (copied) (copied from ask-my-content/trunk/assets/js/askmyco-settings.js)
-
tags/1.2.1/build/ask-my-content/block.json (copied) (copied from ask-my-content/trunk/build/ask-my-content/block.json)
-
tags/1.2.1/build/blocks-manifest.php (copied) (copied from ask-my-content/trunk/build/blocks-manifest.php)
-
tags/1.2.1/includes/api.php (copied) (copied from ask-my-content/trunk/includes/api.php)
-
tags/1.2.1/includes/cli.php (copied) (copied from ask-my-content/trunk/includes/cli.php)
-
tags/1.2.1/includes/content.php (copied) (copied from ask-my-content/trunk/includes/content.php)
-
tags/1.2.1/includes/deactivate.php (copied) (copied from ask-my-content/trunk/includes/deactivate.php)
-
tags/1.2.1/includes/indexing.php (copied) (copied from ask-my-content/trunk/includes/indexing.php)
-
tags/1.2.1/includes/settings.php (copied) (copied from ask-my-content/trunk/includes/settings.php)
-
tags/1.2.1/includes/settings_embed.php (copied) (copied from ask-my-content/trunk/includes/settings_embed.php)
-
tags/1.2.1/includes/settings_options.php (copied) (copied from ask-my-content/trunk/includes/settings_options.php)
-
tags/1.2.1/includes/settings_payments.php (copied) (copied from ask-my-content/trunk/includes/settings_payments.php)
-
tags/1.2.1/includes/settings_shared.php (copied) (copied from ask-my-content/trunk/includes/settings_shared.php)
-
tags/1.2.1/includes/sync.php (copied) (copied from ask-my-content/trunk/includes/sync.php)
-
tags/1.2.1/includes/utils.php (copied) (copied from ask-my-content/trunk/includes/utils.php)
-
tags/1.2.1/readme.txt (copied) (copied from ask-my-content/trunk/readme.txt) (2 diffs)
-
tags/1.2.1/src/ask-my-content/block.json (copied) (copied from ask-my-content/trunk/src/ask-my-content/block.json) (1 diff)
-
trunk/ask-my-content.php (modified) (3 diffs)
-
trunk/assets/css/ask-my-content.css (modified) (1 diff)
-
trunk/assets/js/amc-floating.js (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/src/ask-my-content/block.json (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ask-my-content/tags/1.2.1/ask-my-content.php
r3491287 r3492893 4 4 * Plugin Name: Ask My Content - AI Q&A Chatbot 5 5 * 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. 06 * Version: 1.2.1 7 7 * Requires at least: 5.8 8 8 * Requires PHP: 7.4 … … 93 93 $settings_path = $base_dir . 'assets/js/askmyco-settings.js'; 94 94 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'; 100 100 101 101 $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'; 103 103 104 104 if (! wp_script_is($core_handle, 'registered')) { … … 262 262 263 263 $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'; 265 265 266 266 wp_enqueue_script( -
ask-my-content/tags/1.2.1/assets/css/ask-my-content.css
r3464679 r3492893 53 53 .amc-float-panel .amc-chat { 54 54 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; 55 85 } 56 86 -
ask-my-content/tags/1.2.1/assets/js/amc-floating.js
r3465382 r3492893 3 3 const panel = document.getElementById('amc-float-panel'); 4 4 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 } 5 24 6 25 function isTransparentColor(value) { … … 76 95 77 96 applyThemeFallbackColors(); 97 ensureCloseButton(); 78 98 79 99 function setOpen(open) { … … 86 106 } else { 87 107 panel.classList.remove('is-open'); 108 launcher.focus(); 88 109 } 89 110 } -
ask-my-content/tags/1.2.1/readme.txt
r3491287 r3492893 5 5 Requires PHP: 7.4 6 6 Tested up to: 6.9 7 Stable tag: 1.2. 07 Stable tag: 1.2.1 8 8 License: GPL-2.0-or-later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 196 196 == Changelog == 197 197 198 = 1.2.1 = 199 Added `X` button to close the floating chat dialog (also can be closed by the `Esc` key) 200 198 201 = 1.2.0 = 199 202 Improved 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 3 3 "apiVersion": 3, 4 4 "name": "amc/ask-my-content", 5 "version": "1.2. 0",5 "version": "1.2.1", 6 6 "title": "Ask My Content", 7 7 "category": "widgets", -
ask-my-content/trunk/ask-my-content.php
r3491287 r3492893 4 4 * Plugin Name: Ask My Content - AI Q&A Chatbot 5 5 * 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. 06 * Version: 1.2.1 7 7 * Requires at least: 5.8 8 8 * Requires PHP: 7.4 … … 93 93 $settings_path = $base_dir . 'assets/js/askmyco-settings.js'; 94 94 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'; 100 100 101 101 $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'; 103 103 104 104 if (! wp_script_is($core_handle, 'registered')) { … … 262 262 263 263 $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'; 265 265 266 266 wp_enqueue_script( -
ask-my-content/trunk/assets/css/ask-my-content.css
r3464679 r3492893 53 53 .amc-float-panel .amc-chat { 54 54 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; 55 85 } 56 86 -
ask-my-content/trunk/assets/js/amc-floating.js
r3465382 r3492893 3 3 const panel = document.getElementById('amc-float-panel'); 4 4 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 } 5 24 6 25 function isTransparentColor(value) { … … 76 95 77 96 applyThemeFallbackColors(); 97 ensureCloseButton(); 78 98 79 99 function setOpen(open) { … … 86 106 } else { 87 107 panel.classList.remove('is-open'); 108 launcher.focus(); 88 109 } 89 110 } -
ask-my-content/trunk/readme.txt
r3491287 r3492893 5 5 Requires PHP: 7.4 6 6 Tested up to: 6.9 7 Stable tag: 1.2. 07 Stable tag: 1.2.1 8 8 License: GPL-2.0-or-later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 196 196 == Changelog == 197 197 198 = 1.2.1 = 199 Added `X` button to close the floating chat dialog (also can be closed by the `Esc` key) 200 198 201 = 1.2.0 = 199 202 Improved content indexing support for Gutenberg, Elementor, Avada, WooCommerce, and other post types. -
ask-my-content/trunk/src/ask-my-content/block.json
r3491287 r3492893 3 3 "apiVersion": 3, 4 4 "name": "amc/ask-my-content", 5 "version": "1.2. 0",5 "version": "1.2.1", 6 6 "title": "Ask My Content", 7 7 "category": "widgets",
Note: See TracChangeset
for help on using the changeset viewer.