Skip to content

Commit eab3caf

Browse files
author
Smart Cloud Solutions Inc.
committed
Improve frontend script loading performance
1 parent f0096de commit eab3caf

30 files changed

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

admin/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-components', 'wp-data', 'wp-i18n'), 'version' => '2533e28bc0ce622045ea');
1+
<?php return array('dependencies' => array('jquery', 'react', 'react-dom', 'react-jsx-runtime', 'wp-components', 'wp-data', 'wp-i18n'), 'version' => '81de2bda00bf0494a7b1');

admin/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.

admin/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@smart-cloud/ai-kit-admin",
33
"private": true,
4-
"version": "1.4.0",
4+
"version": "1.4.1",
55
"type": "module",
66
"license": "ISC",
77
"scripts": {
@@ -22,7 +22,7 @@
2222
"@hello-pangea/dnd": "^18.0.1",
2323
"@monaco-editor/react": "^4.7.0",
2424
"@smart-cloud/ai-kit-core": "^1.5.0",
25-
"@smart-cloud/ai-kit-ui": "^1.5.0",
25+
"@smart-cloud/ai-kit-ui": "^1.5.1",
2626
"@smart-cloud/gatey-core": "^2.3.0",
2727
"@tabler/icons-react": "^3.44.0",
2828
"@tanstack/react-query": "^5.100.11",

admin/php/admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function addMenu()
8080
$script_asset = require_once(SMARTCLOUD_AI_KIT_PATH . 'admin/index.asset.php');
8181
}
8282
$script_asset['dependencies'] = array_merge($script_asset['dependencies'], array('smartcloud-wpsuite-webcrypto-vendor', 'smartcloud-wpsuite-mantine-vendor'));
83-
$res = wp_enqueue_script('smartcloud-ai-kit-admin-script', SMARTCLOUD_AI_KIT_URL . 'admin/index.js', $script_asset['dependencies'], SMARTCLOUD_AI_KIT_VERSION, array('strategy' => 'defer'));
83+
$res = wp_enqueue_script('smartcloud-ai-kit-admin-script', SMARTCLOUD_AI_KIT_URL . 'admin/index.js', $script_asset['dependencies'], SMARTCLOUD_AI_KIT_VERSION, array('in_footer' => true, 'strategy' => 'defer'));
8484
// Make the blocks translatable.
8585
if (function_exists('wp_set_script_translations')) {
8686
wp_set_script_translations('smartcloud-ai-kit-admin-script', 'smartcloud-ai-kit', SMARTCLOUD_AI_KIT_PATH . 'languages');

admin/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3800,10 +3800,10 @@
38003800
"@smart-cloud/wpsuite-core" "^2.3.0"
38013801
aws-amplify "^6.17.0"
38023802

3803-
"@smart-cloud/ai-kit-ui@^1.5.0":
3804-
version "1.5.0"
3805-
resolved "https://registry.npmjs.org/@smart-cloud/ai-kit-ui/-/ai-kit-ui-1.5.0.tgz#5ec074d0177544ce2a1fbc9ecbeb3fa0ebd17288"
3806-
integrity sha512-nHCYxCN5f1340wyNzZtdfP9yjyi14T0uSGGzLc0+Bq3SNhemh50YcD25CHoKyovH8jcEHvYsNr5j3CvUsqT7hQ==
3803+
"@smart-cloud/ai-kit-ui@^1.5.1":
3804+
version "1.5.1"
3805+
resolved "https://registry.npmjs.org/@smart-cloud/ai-kit-ui/-/ai-kit-ui-1.5.1.tgz#1ed643fa29fdd989ff37a0eb4d436c1d36a97a48"
3806+
integrity sha512-z9pfDpi/l2jdGBI5QCJDHQKZz+S1JXKmdgDXJF6J44JQ59tX7JrWMKY7AZGzpjJAwtGQruVjYqLVlOMQF3ZxKg==
38073807
dependencies:
38083808
"@emotion/cache" "^11.14.0"
38093809
"@emotion/react" "^11.14.0"

blocks/dist/ai-feature/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/feature",
5-
"version": "1.2.0",
5+
"version": "1.2.1",
66
"title": "AI-Kit Feature (PRO)",
77
"category": "smartcloud-ai-kit",
88
"description": "AI-Kit Feature - add AI-powered features to your site",

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.4.0",
5+
"version": "1.4.1",
66
"title": "AI-Kit Doc Search (PRO)",
77
"category": "smartcloud-ai-kit",
88
"description": "AI-Kit Doc Search - knowledge base search summary with sources",

blocks/dist/editor.asset.php

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

blocks/dist/editor.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.

0 commit comments

Comments
 (0)