Skip to content

Commit d9bea9e

Browse files
author
Smart Cloud Solutions Inc.
committed
fix(docsearch): correct numeric prop rendering in shortcode and Elementor widget
1 parent 8e1deae commit d9bea9e

8 files changed

Lines changed: 15 additions & 9 deletions

File tree

ai-kit-blocks/dist/doc-search/block.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://schemas.wp.org/trunk/block.json",
33
"apiVersion": 3,
44
"name": "smartcloud-ai-kit/doc-search",
5-
"version": "1.3.8",
5+
"version": "1.3.9",
66
"title": "AI-Kit Doc Search (PRO)",
77
"category": "smartcloud-ai-kit",
88
"description": "AI-Kit Doc Search - knowledge base search summary with sources",

ai-kit-blocks/dist/index.asset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('jquery', 'react', 'react-dom', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => 'c25814abdc5c72910a4a');
1+
<?php return array('dependencies' => array('jquery', 'react', 'react-dom', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => 'bf55d1b2693fd2a3efea');

ai-kit-blocks/dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ai-kit-blocks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@smart-cloud/ai-kit-blocks",
33
"private": true,
4-
"version": "1.3.10",
4+
"version": "1.3.11",
55
"type": "module",
66
"license": "ISC",
77
"scripts": {

ai-kit-blocks/src/doc-search/block.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://schemas.wp.org/trunk/block.json",
33
"apiVersion": 3,
44
"name": "smartcloud-ai-kit/doc-search",
5-
"version": "1.3.8",
5+
"version": "1.3.9",
66
"title": "AI-Kit Doc Search (PRO)",
77
"category": "smartcloud-ai-kit",
88
"description": "AI-Kit Doc Search - knowledge base search summary with sources",

ai-kit-blocks/src/doc-search/view.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ try {
7373
}
7474

7575
// Number fields
76-
const numberFields = ["limit", "hitsPerPage"];
76+
const numberFields = ["topK", "snippetMaxChars"];
7777
for (const field of numberFields) {
7878
if (field in config && typeof config[field] === "string") {
7979
const num = parseInt(config[field], 10);

readme.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: ai, chrome, seo, language, tools
44
Requires at least: 6.2
55
Tested up to: 6.9
66
Requires PHP: 8.1
7-
Stable tag: 1.2.4
7+
Stable tag: 1.2.5
88
License: MIT
99
License URI: https://mit-license.org/
1010
Text Domain: smartcloud-ai-kit
@@ -191,6 +191,9 @@ AI-Kit Pro includes additional functionality (such as the AI-Kit Chatbot, backen
191191

192192
== Changelog ==
193193

194+
= 1.2.5 =
195+
* Fixed rendering of numeric DocSearch properties in the shortcode and Elementor widget integrations.
196+
194197
= 1.2.4 =
195198
* Added and updated language files.
196199
* Extended quota-aware chunked processing from summarizer mode to write and rewrite modes.
@@ -285,6 +288,9 @@ Fixed the pre-run language detection/translation flow for AiFeature blocks so it
285288

286289
== Upgrade Notice ==
287290

291+
= 1.2.5 =
292+
This release fixes how numeric DocSearch properties are rendered when the component is embedded via shortcode or Elementor widget.
293+
288294
= 1.2.4 =
289295
This release updates language files and extends the chunked processing approach used by the summarizer to write and rewrite modes for better handling of larger inputs.
290296

smartcloud-ai-kit.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Requires at least: 6.2
77
* Tested up to: 6.9
88
* Requires PHP: 8.1
9-
* Version: 1.2.4
9+
* Version: 1.2.5
1010
* Author: Smart Cloud Solutions Inc.
1111
* Author URI: https://smart-cloud-solutions.com
1212
* License: MIT
@@ -18,7 +18,7 @@
1818

1919
namespace SmartCloud\WPSuite\AiKit;
2020

21-
const VERSION = '1.2.4';
21+
const VERSION = '1.2.5';
2222
const DB_VERSION = '1.3.1';
2323

2424
if (!defined('ABSPATH')) {

0 commit comments

Comments
 (0)