Skip to content

Commit dd88cfa

Browse files
authored
Merge pull request #671 from analogwp/release-v2.1.0
Release v2.1.0
2 parents 6af535d + baf7344 commit dd88cfa

17 files changed

+67
-55
lines changed

.babelrc

+1-7
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@
44
"@babel/preset-react"
55
],
66
"plugins": [
7-
"@babel/plugin-proposal-class-properties"/*,
8-
[
9-
"@wordpress/babel-plugin-makepot",
10-
{
11-
"output": "languages/ang-js.pot"
12-
}
13-
]*/
7+
"@babel/plugin-proposal-class-properties"
148
]
159
}

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
10
1+
14

analogwp-templates.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,22 @@
1010
* Plugin Name: Style Kits for Elementor
1111
* Plugin URI: https://analogwp.com/
1212
* Description: Style Kits extends the Elementor theme styles editor with more global styling options. Boost your design workflow in Elementor with intuitive global controls and theme style presets.
13-
* Version: 2.0.9
13+
* Version: 2.1.0
1414
* Author: AnalogWP
1515
* Author URI: https://analogwp.com/
1616
* License: GPL2
1717
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
1818
* Text Domain: ang
19-
* Elementor tested up to: 3.21.1
20-
* Elementor Pro tested up to: 3.21.0
19+
* Elementor tested up to: 3.23.4
20+
* Elementor Pro tested up to: 3.23.3
2121
*/
2222

2323
defined( 'ABSPATH' ) || exit;
2424

2525
define( 'ANG_ELEMENTOR_MINIMUM', '3.10.0' );
2626
define( 'ANG_PHP_MINIMUM', '7.0' );
2727
define( 'ANG_WP_MINIMUM', '6.0' );
28-
define( 'ANG_VERSION', '2.0.9' );
28+
define( 'ANG_VERSION', '2.1.0' );
2929
define( 'ANG_PLUGIN_FILE', __FILE__ );
3030
define( 'ANG_PLUGIN_URL', plugin_dir_url( ANG_PLUGIN_FILE ) );
3131
define( 'ANG_PLUGIN_DIR', plugin_dir_path( ANG_PLUGIN_FILE ) );

client/App.js

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import Header from './Header';
66
import Notifications from './Notifications';
77
import { getTime, getPageComponents, hasProTemplates } from './utils';
88
const { apiFetch } = wp;
9+
import 'regenerator-runtime/runtime';
910

1011
const Analog = styled.div`
1112
margin: 0 0 0 -20px;

client/api.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/* global elementorCommon, analog */
22
const { apiFetch } = wp;
33
const { __ } = wp.i18n;
4+
import 'regenerator-runtime/runtime';
45

56
export async function markFavorite( id, favorite = true, type = 'template' ) {
67
return await apiFetch( {

inc/Database_Upgrader.php

+13
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
namespace Analog;
99

10+
use Analog\API\Remote;
11+
1012
/**
1113
* Class Database_Upgrader
1214
*/
@@ -38,6 +40,7 @@ public function init() {
3840
'2.0.0' => 'upgrade_2_0',
3941
'2.0.5' => 'upgrade_2_0_5',
4042
'2.0.6' => 'upgrade_2_0_6',
43+
'2.1.0' => 'upgrade_2_1',
4144
);
4245

4346
$version = get_option( self::OPTION, '0.0.0' );
@@ -182,4 +185,14 @@ protected function upgrade_2_0_6() {
182185
// Regenerate Elementor CSS.
183186
Utils::clear_elementor_cache();
184187
}
188+
189+
/**
190+
* Refresh the templates library.
191+
*
192+
* @return void
193+
*/
194+
protected function upgrade_2_1() {
195+
// Refresh templates library.
196+
Remote::get_instance()->get_templates_info( true );
197+
}
185198
}

inc/elementor/Google_Fonts.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function add_fonts_to_elementor( $additional_fonts ) {
5757

5858
if ( $fonts ) {
5959
$fonts = json_decode( $fonts, true );
60-
if ( count( $fonts ) ) {
60+
if ( is_array( $fonts ) && count( $fonts ) ) {
6161
$formatted_fonts = array();
6262

6363
foreach ( $fonts as $font ) {

inc/settings/views/html-admin-settings.php

-7
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,6 @@
9191
<a href="<?php echo esc_url( 'https://analogwp.com/docs/' ); ?>" target="_blank"><?php esc_html_e( 'Visit the online docs', 'ang' ); ?></a>
9292
</p>
9393
</div>
94-
<div class="social-group">
95-
<h3><?php esc_html_e( 'Join our Facebook group', 'ang' ); ?></h3>
96-
<p>
97-
<?php esc_html_e( 'Get insights, tips and updates in our facebook community.', 'ang' ); ?>
98-
<a href="<?php echo esc_url( 'https://www.facebook.com/groups/analogwp/' ); ?>" target="_blank"><?php esc_html_e( 'Join now', 'ang' ); ?></a>
99-
</p>
100-
</div>
10194
<div class="newsletter-list">
10295
<h3><?php esc_html_e( 'Sign up for email updates', 'ang' ); ?></h3>
10396
<p><?php esc_html_e( 'Stay in the loop with Style Kits development by signing up to our newsletter.', 'ang' ); ?></p>

languages/ang-analogwp-app.json

+1-1
Large diffs are not rendered by default.

languages/ang.pot

+14-22
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,20 @@
22
# This file is distributed under the GPL2.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: Style Kits for Elementor 2.0.9\n"
5+
"Project-Id-Version: Style Kits for Elementor 2.1.0\n"
66
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/analogwp-templates\n"
77
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
88
"Language-Team: LANGUAGE <LL@li.org>\n"
99
"MIME-Version: 1.0\n"
1010
"Content-Type: text/plain; charset=UTF-8\n"
1111
"Content-Transfer-Encoding: 8bit\n"
12-
"POT-Creation-Date: 2024-04-11T06:54:56+00:00\n"
12+
"POT-Creation-Date: 2024-08-22T09:30:19+00:00\n"
1313
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14-
"X-Generator: WP-CLI 2.8.1\n"
14+
"X-Generator: WP-CLI 2.10.0\n"
1515
"X-Domain: ang\n"
1616

1717
#. Plugin Name of the plugin
18+
#: analogwp-templates.php
1819
#: inc/admin/class-admin.php:44
1920
#: inc/class-tracker.php:131
2021
#: inc/register-settings.php:27
@@ -23,14 +24,17 @@ msgstr ""
2324

2425
#. Plugin URI of the plugin
2526
#. Author URI of the plugin
27+
#: analogwp-templates.php
2628
msgid "https://analogwp.com/"
2729
msgstr ""
2830

2931
#. Description of the plugin
32+
#: analogwp-templates.php
3033
msgid "Style Kits extends the Elementor theme styles editor with more global styling options. Boost your design workflow in Elementor with intuitive global controls and theme style presets."
3134
msgstr ""
3235

3336
#. Author of the plugin
37+
#: analogwp-templates.php
3438
msgid "AnalogWP"
3539
msgstr ""
3640

@@ -1791,34 +1795,22 @@ msgid "Visit the online docs"
17911795
msgstr ""
17921796

17931797
#: inc/settings/views/html-admin-settings.php:95
1794-
msgid "Join our Facebook group"
1795-
msgstr ""
1796-
1797-
#: inc/settings/views/html-admin-settings.php:97
1798-
msgid "Get insights, tips and updates in our facebook community."
1799-
msgstr ""
1800-
1801-
#: inc/settings/views/html-admin-settings.php:98
1802-
msgid "Join now"
1803-
msgstr ""
1804-
1805-
#: inc/settings/views/html-admin-settings.php:102
18061798
msgid "Sign up for email updates"
18071799
msgstr ""
18081800

1809-
#: inc/settings/views/html-admin-settings.php:103
1801+
#: inc/settings/views/html-admin-settings.php:96
18101802
msgid "Stay in the loop with Style Kits development by signing up to our newsletter."
18111803
msgstr ""
18121804

1813-
#: inc/settings/views/html-admin-settings.php:106
1805+
#: inc/settings/views/html-admin-settings.php:99
18141806
msgid "Sign me up"
18151807
msgstr ""
18161808

1817-
#: inc/settings/views/html-admin-settings.php:108
1809+
#: inc/settings/views/html-admin-settings.php:101
18181810
msgid "By signing up you agree to our"
18191811
msgstr ""
18201812

1821-
#: inc/settings/views/html-admin-settings.php:108
1813+
#: inc/settings/views/html-admin-settings.php:101
18221814
msgid "privacy and terms"
18231815
msgstr ""
18241816

@@ -1857,17 +1849,17 @@ msgid "Subscribed"
18571849
msgstr ""
18581850

18591851
#: assets/js/app.js:1
1860-
#: client/api.js:213
1852+
#: client/api.js:214
18611853
msgid "Template"
18621854
msgstr ""
18631855

18641856
#: assets/js/app.js:1
1865-
#: client/api.js:216
1857+
#: client/api.js:217
18661858
msgid "Block"
18671859
msgstr ""
18681860

18691861
#: assets/js/app.js:1
1870-
#: client/api.js:224
1862+
#: client/api.js:225
18711863
msgid "Add Style Kits"
18721864
msgstr ""
18731865

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "analogwp-templates",
3-
"version": "2.0.9",
3+
"version": "2.1.0",
44
"description": "Handfully crafted Elementor templates packs.",
55
"main": "/client/index.js",
66
"private": true,
@@ -30,6 +30,7 @@
3030
"react-masonry-css": "^1.0.14",
3131
"react-select": "3.0.8",
3232
"react-waypoint": "^9.0.0",
33+
"regenerator-runtime": "^0.14.1",
3334
"styled-components": "^4.1.3"
3435
},
3536
"devDependencies": {

readme.txt

+15-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
Contributors: analogwp, mauryaratan
33
Requires at least: 6.0
44
Requires PHP: 7.0
5-
Tested up to: 6.5.2
6-
Stable tag: 2.0.9
5+
Tested up to: 6.6.1
6+
Stable tag: 2.1.0
77
Tags: elementor, patterns, global styles, elementor addons, design system
88
License: GPLv2
99
License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -62,7 +62,6 @@ Style Kits for Elementor adds a set of extra UI controls to Theme Styles editor,
6262
- [Visit the AnalogWP Website](https://analogwp.com/?utm_medium=wp.org&utm_source=wordpressorg&utm_campaign=readme&utm_content=analogwp)
6363
- [Follow on Twitter](https://twitter.com/AnalogWP/)
6464
- [Like us on Facebook](https://www.facebook.com/analogwp)
65-
- [Join our Facebook community](https://www.facebook.com/groups/analogwp/)
6665
- [Documentation](https://analogwp.com/docs/)
6766

6867
== Installation ==
@@ -102,6 +101,19 @@ We offer high-level support for all Style Kits users. Reach out to https://analo
102101

103102
== Changelog ==
104103

104+
= 2.1.0 - August 22, 2024 =
105+
* Fix: Fixed an issue where in some cases the patterns would not load in the library
106+
* Fix: React throwing `regenerator-runtime` issue at pattern library
107+
* Fix: Fixed an issue with google fonts causing a fatal error
108+
* Fix: Fix `count` function throwing an error on null values
109+
* Improvements: Changed the way that pattern thumbnails are served
110+
* Improvements: Includes a migration upgrader to sync library
111+
* Improvements: Compatibility with latest elementor version
112+
* Improvements: Compatibility with WordPress v6.6.1
113+
* Improvements: Compatibility with Elementor v3.23.4 and Elementor Pro v3.23.3
114+
* Improvements: Updated translation files
115+
* Improvements: Other minor code changes
116+
105117
= 2.0.9 - April 19, 2024 =
106118
* New: Deprecate Button Sizes Panel in support of new changes from Elementor v3.20.0
107119
* New: Move Button sizes at Style Kits Panel to legacy section

third-party/vendor/autoload.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222

2323
require_once __DIR__ . '/composer/autoload_real.php';
2424

25-
return ComposerAutoloaderInit54deff4314ded4c31b4ecade25c3a7ab::getLoader();
25+
return ComposerAutoloaderInit5f9a32d71cfe477e9a78354aa89ae8d2::getLoader();

third-party/vendor/composer/autoload_real.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// autoload_real.php @generated by Composer
44

5-
class ComposerAutoloaderInit54deff4314ded4c31b4ecade25c3a7ab
5+
class ComposerAutoloaderInit5f9a32d71cfe477e9a78354aa89ae8d2
66
{
77
private static $loader;
88

@@ -22,12 +22,12 @@ public static function getLoader()
2222
return self::$loader;
2323
}
2424

25-
spl_autoload_register(array('ComposerAutoloaderInit54deff4314ded4c31b4ecade25c3a7ab', 'loadClassLoader'), true, true);
25+
spl_autoload_register(array('ComposerAutoloaderInit5f9a32d71cfe477e9a78354aa89ae8d2', 'loadClassLoader'), true, true);
2626
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
27-
spl_autoload_unregister(array('ComposerAutoloaderInit54deff4314ded4c31b4ecade25c3a7ab', 'loadClassLoader'));
27+
spl_autoload_unregister(array('ComposerAutoloaderInit5f9a32d71cfe477e9a78354aa89ae8d2', 'loadClassLoader'));
2828

2929
require __DIR__ . '/autoload_static.php';
30-
call_user_func(\Composer\Autoload\ComposerStaticInit54deff4314ded4c31b4ecade25c3a7ab::getInitializer($loader));
30+
call_user_func(\Composer\Autoload\ComposerStaticInit5f9a32d71cfe477e9a78354aa89ae8d2::getInitializer($loader));
3131

3232
$loader->setClassMapAuthoritative(true);
3333
$loader->register(true);

third-party/vendor/composer/autoload_static.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Composer\Autoload;
66

7-
class ComposerStaticInit54deff4314ded4c31b4ecade25c3a7ab
7+
class ComposerStaticInit5f9a32d71cfe477e9a78354aa89ae8d2
88
{
99
public static $classMap = array (
1010
'Analog\\Dependencies\\enshrined\\svgSanitize\\ElementReference\\Resolver' => __DIR__ . '/..' . '/enshrined/svg-sanitize/src/ElementReference/Resolver.php',
@@ -24,7 +24,7 @@ class ComposerStaticInit54deff4314ded4c31b4ecade25c3a7ab
2424
public static function getInitializer(ClassLoader $loader)
2525
{
2626
return \Closure::bind(function () use ($loader) {
27-
$loader->classMap = ComposerStaticInit54deff4314ded4c31b4ecade25c3a7ab::$classMap;
27+
$loader->classMap = ComposerStaticInit5f9a32d71cfe477e9a78354aa89ae8d2::$classMap;
2828

2929
}, null, ClassLoader::class);
3030
}

webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const externals = {
1717

1818
// Webpack config
1919
const config = {
20-
entry: './client/index.js',
20+
entry: ['regenerator-runtime/runtime.js', './client/index.js'],
2121
externals,
2222
output: {
2323
filename: 'assets/js/app.js',

yarn.lock

+5
Original file line numberDiff line numberDiff line change
@@ -7257,6 +7257,11 @@ regenerator-runtime@^0.13.2:
72577257
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.3.tgz#7cf6a77d8f5c6f60eb73c5fc1955b2ceb01e6bf5"
72587258
integrity sha512-naKIZz2GQ8JWh///G7L3X6LaQUAMp2lvb1rvwwsURe/VXwD6VMfr+/1NuNw3ag8v2kY1aQ/go5SNn79O9JU7yw==
72597259

7260+
regenerator-runtime@^0.14.1:
7261+
version "0.14.1"
7262+
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz#356ade10263f685dda125100cd862c1db895327f"
7263+
integrity sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==
7264+
72607265
regenerator-transform@^0.14.0:
72617266
version "0.14.1"
72627267
resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.14.1.tgz#3b2fce4e1ab7732c08f665dfdb314749c7ddd2fb"

0 commit comments

Comments
 (0)