Skip to content

Commit

Permalink
Merge pull request #671 from analogwp/release-v2.1.0
Browse files Browse the repository at this point in the history
Release v2.1.0
  • Loading branch information
lushkant authored Aug 22, 2024
2 parents 6af535d + baf7344 commit dd88cfa
Show file tree
Hide file tree
Showing 17 changed files with 67 additions and 55 deletions.
8 changes: 1 addition & 7 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@
"@babel/preset-react"
],
"plugins": [
"@babel/plugin-proposal-class-properties"/*,
[
"@wordpress/babel-plugin-makepot",
{
"output": "languages/ang-js.pot"
}
]*/
"@babel/plugin-proposal-class-properties"
]
}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10
14
8 changes: 4 additions & 4 deletions analogwp-templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@
* Plugin Name: Style Kits for Elementor
* Plugin URI: https://analogwp.com/
* 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.
* Version: 2.0.9
* Version: 2.1.0
* Author: AnalogWP
* Author URI: https://analogwp.com/
* License: GPL2
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: ang
* Elementor tested up to: 3.21.1
* Elementor Pro tested up to: 3.21.0
* Elementor tested up to: 3.23.4
* Elementor Pro tested up to: 3.23.3
*/

defined( 'ABSPATH' ) || exit;

define( 'ANG_ELEMENTOR_MINIMUM', '3.10.0' );
define( 'ANG_PHP_MINIMUM', '7.0' );
define( 'ANG_WP_MINIMUM', '6.0' );
define( 'ANG_VERSION', '2.0.9' );
define( 'ANG_VERSION', '2.1.0' );
define( 'ANG_PLUGIN_FILE', __FILE__ );
define( 'ANG_PLUGIN_URL', plugin_dir_url( ANG_PLUGIN_FILE ) );
define( 'ANG_PLUGIN_DIR', plugin_dir_path( ANG_PLUGIN_FILE ) );
Expand Down
1 change: 1 addition & 0 deletions client/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import Header from './Header';
import Notifications from './Notifications';
import { getTime, getPageComponents, hasProTemplates } from './utils';
const { apiFetch } = wp;
import 'regenerator-runtime/runtime';

const Analog = styled.div`
margin: 0 0 0 -20px;
Expand Down
1 change: 1 addition & 0 deletions client/api.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* global elementorCommon, analog */
const { apiFetch } = wp;
const { __ } = wp.i18n;
import 'regenerator-runtime/runtime';

export async function markFavorite( id, favorite = true, type = 'template' ) {
return await apiFetch( {
Expand Down
13 changes: 13 additions & 0 deletions inc/Database_Upgrader.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

namespace Analog;

use Analog\API\Remote;

/**
* Class Database_Upgrader
*/
Expand Down Expand Up @@ -38,6 +40,7 @@ public function init() {
'2.0.0' => 'upgrade_2_0',
'2.0.5' => 'upgrade_2_0_5',
'2.0.6' => 'upgrade_2_0_6',
'2.1.0' => 'upgrade_2_1',
);

$version = get_option( self::OPTION, '0.0.0' );
Expand Down Expand Up @@ -182,4 +185,14 @@ protected function upgrade_2_0_6() {
// Regenerate Elementor CSS.
Utils::clear_elementor_cache();
}

/**
* Refresh the templates library.
*
* @return void
*/
protected function upgrade_2_1() {
// Refresh templates library.
Remote::get_instance()->get_templates_info( true );
}
}
2 changes: 1 addition & 1 deletion inc/elementor/Google_Fonts.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function add_fonts_to_elementor( $additional_fonts ) {

if ( $fonts ) {
$fonts = json_decode( $fonts, true );
if ( count( $fonts ) ) {
if ( is_array( $fonts ) && count( $fonts ) ) {
$formatted_fonts = array();

foreach ( $fonts as $font ) {
Expand Down
7 changes: 0 additions & 7 deletions inc/settings/views/html-admin-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,6 @@
<a href="<?php echo esc_url( 'https://analogwp.com/docs/' ); ?>" target="_blank"><?php esc_html_e( 'Visit the online docs', 'ang' ); ?></a>
</p>
</div>
<div class="social-group">
<h3><?php esc_html_e( 'Join our Facebook group', 'ang' ); ?></h3>
<p>
<?php esc_html_e( 'Get insights, tips and updates in our facebook community.', 'ang' ); ?>
<a href="<?php echo esc_url( 'https://www.facebook.com/groups/analogwp/' ); ?>" target="_blank"><?php esc_html_e( 'Join now', 'ang' ); ?></a>
</p>
</div>
<div class="newsletter-list">
<h3><?php esc_html_e( 'Sign up for email updates', 'ang' ); ?></h3>
<p><?php esc_html_e( 'Stay in the loop with Style Kits development by signing up to our newsletter.', 'ang' ); ?></p>
Expand Down
2 changes: 1 addition & 1 deletion languages/ang-analogwp-app.json

Large diffs are not rendered by default.

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

#. Plugin Name of the plugin
#: analogwp-templates.php
#: inc/admin/class-admin.php:44
#: inc/class-tracker.php:131
#: inc/register-settings.php:27
Expand All @@ -23,14 +24,17 @@ msgstr ""

#. Plugin URI of the plugin
#. Author URI of the plugin
#: analogwp-templates.php
msgid "https://analogwp.com/"
msgstr ""

#. Description of the plugin
#: analogwp-templates.php
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."
msgstr ""

#. Author of the plugin
#: analogwp-templates.php
msgid "AnalogWP"
msgstr ""

Expand Down Expand Up @@ -1791,34 +1795,22 @@ msgid "Visit the online docs"
msgstr ""

#: inc/settings/views/html-admin-settings.php:95
msgid "Join our Facebook group"
msgstr ""

#: inc/settings/views/html-admin-settings.php:97
msgid "Get insights, tips and updates in our facebook community."
msgstr ""

#: inc/settings/views/html-admin-settings.php:98
msgid "Join now"
msgstr ""

#: inc/settings/views/html-admin-settings.php:102
msgid "Sign up for email updates"
msgstr ""

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

#: inc/settings/views/html-admin-settings.php:106
#: inc/settings/views/html-admin-settings.php:99
msgid "Sign me up"
msgstr ""

#: inc/settings/views/html-admin-settings.php:108
#: inc/settings/views/html-admin-settings.php:101
msgid "By signing up you agree to our"
msgstr ""

#: inc/settings/views/html-admin-settings.php:108
#: inc/settings/views/html-admin-settings.php:101
msgid "privacy and terms"
msgstr ""

Expand Down Expand Up @@ -1857,17 +1849,17 @@ msgid "Subscribed"
msgstr ""

#: assets/js/app.js:1
#: client/api.js:213
#: client/api.js:214
msgid "Template"
msgstr ""

#: assets/js/app.js:1
#: client/api.js:216
#: client/api.js:217
msgid "Block"
msgstr ""

#: assets/js/app.js:1
#: client/api.js:224
#: client/api.js:225
msgid "Add Style Kits"
msgstr ""

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "analogwp-templates",
"version": "2.0.9",
"version": "2.1.0",
"description": "Handfully crafted Elementor templates packs.",
"main": "/client/index.js",
"private": true,
Expand Down Expand Up @@ -30,6 +30,7 @@
"react-masonry-css": "^1.0.14",
"react-select": "3.0.8",
"react-waypoint": "^9.0.0",
"regenerator-runtime": "^0.14.1",
"styled-components": "^4.1.3"
},
"devDependencies": {
Expand Down
18 changes: 15 additions & 3 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Contributors: analogwp, mauryaratan
Requires at least: 6.0
Requires PHP: 7.0
Tested up to: 6.5.2
Stable tag: 2.0.9
Tested up to: 6.6.1
Stable tag: 2.1.0
Tags: elementor, patterns, global styles, elementor addons, design system
License: GPLv2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -62,7 +62,6 @@ Style Kits for Elementor adds a set of extra UI controls to Theme Styles editor,
- [Visit the AnalogWP Website](https://analogwp.com/?utm_medium=wp.org&utm_source=wordpressorg&utm_campaign=readme&utm_content=analogwp)
- [Follow on Twitter](https://twitter.com/AnalogWP/)
- [Like us on Facebook](https://www.facebook.com/analogwp)
- [Join our Facebook community](https://www.facebook.com/groups/analogwp/)
- [Documentation](https://analogwp.com/docs/)

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

== Changelog ==

= 2.1.0 - August 22, 2024 =
* Fix: Fixed an issue where in some cases the patterns would not load in the library
* Fix: React throwing `regenerator-runtime` issue at pattern library
* Fix: Fixed an issue with google fonts causing a fatal error
* Fix: Fix `count` function throwing an error on null values
* Improvements: Changed the way that pattern thumbnails are served
* Improvements: Includes a migration upgrader to sync library
* Improvements: Compatibility with latest elementor version
* Improvements: Compatibility with WordPress v6.6.1
* Improvements: Compatibility with Elementor v3.23.4 and Elementor Pro v3.23.3
* Improvements: Updated translation files
* Improvements: Other minor code changes

= 2.0.9 - April 19, 2024 =
* New: Deprecate Button Sizes Panel in support of new changes from Elementor v3.20.0
* New: Move Button sizes at Style Kits Panel to legacy section
Expand Down
2 changes: 1 addition & 1 deletion third-party/vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@

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

return ComposerAutoloaderInit54deff4314ded4c31b4ecade25c3a7ab::getLoader();
return ComposerAutoloaderInit5f9a32d71cfe477e9a78354aa89ae8d2::getLoader();
8 changes: 4 additions & 4 deletions third-party/vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// autoload_real.php @generated by Composer

class ComposerAutoloaderInit54deff4314ded4c31b4ecade25c3a7ab
class ComposerAutoloaderInit5f9a32d71cfe477e9a78354aa89ae8d2
{
private static $loader;

Expand All @@ -22,12 +22,12 @@ public static function getLoader()
return self::$loader;
}

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

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

$loader->setClassMapAuthoritative(true);
$loader->register(true);
Expand Down
4 changes: 2 additions & 2 deletions third-party/vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Composer\Autoload;

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

}, null, ClassLoader::class);
}
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const externals = {

// Webpack config
const config = {
entry: './client/index.js',
entry: ['regenerator-runtime/runtime.js', './client/index.js'],
externals,
output: {
filename: 'assets/js/app.js',
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7257,6 +7257,11 @@ regenerator-runtime@^0.13.2:
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.3.tgz#7cf6a77d8f5c6f60eb73c5fc1955b2ceb01e6bf5"
integrity sha512-naKIZz2GQ8JWh///G7L3X6LaQUAMp2lvb1rvwwsURe/VXwD6VMfr+/1NuNw3ag8v2kY1aQ/go5SNn79O9JU7yw==

regenerator-runtime@^0.14.1:
version "0.14.1"
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz#356ade10263f685dda125100cd862c1db895327f"
integrity sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==

regenerator-transform@^0.14.0:
version "0.14.1"
resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.14.1.tgz#3b2fce4e1ab7732c08f665dfdb314749c7ddd2fb"
Expand Down

0 comments on commit dd88cfa

Please sign in to comment.