Skip to content

Commit

Permalink
release(minor): version 2.4.0
Browse files Browse the repository at this point in the history
- Introducing Otter AI Block With Form AI & Content AI Support
- Added Webhooks Integration to Form Block
- Added Hidden Field to Form Block
- Circle Counter Block Enhancements
- Adding RequestAnimationFrame() to Scroll Sniffing for Better Performance
- Added Stripe Field to Form Block
- Add Link Target Setting in Product Review Block
- Fix Slider Block Image Arrangement Behaving Weirdly
- Fix CSS Not Generating When Switching to FSE Theme
- Fix Visual Issues in Section’s Background & Overlay Controls
- Fix Box Shadow Not Changing on Section Columns
- Fix Block Settings Panel Being Visible for Non-Admins
- Fix Form Block Not Saving Changes in FSE Templates
- Fix Multiple Otter Notices Appearing at Once
- Various Small Fixes
  • Loading branch information
HardeepAsrani authored Sep 21, 2023
2 parents eb9d1a2 + 3f486b1 commit 2fcf603
Show file tree
Hide file tree
Showing 130 changed files with 8,781 additions and 1,439 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy-stagging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'Codeinwp' }} # Disable on forks
env:
SSH_USERNAME: ${{ secrets.SSH_USERNAME }}
SSH_KEY: ${{ secrets.SSH_KEY }}
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ todo.md
artifacts
*.results.json
trace.json
license.json
license.json
.fleet
21 changes: 11 additions & 10 deletions .wp-env.override.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,23 @@
"config": {
"WP_DEBUG": true,
"WP_DEBUG_DISPLAY": true,
"FS_METHOD": "direct"
"FS_METHOD": "direct",
"WP_DEFAULT_THEME": "twentytwentythree"
},
"env": {
"development": {
"themes": [
"./one-theme"
]
},
"tests": {
"config": {
"WP_DEBUG": false,
"WP_DEBUG_DISPLAY": false
},
"plugins": [
"."
],
"mappings": {
"wp-content/mu-plugins": "./node_modules/@wordpress/e2e-tests/mu-plugins",
"wp-content/plugins/gutenberg-test-plugins": "./node_modules/@wordpress/e2e-tests/plugins"
}
"wp-content/mu-plugins": "./node_modules/@wordpress/e2e-tests/mu-plugins",
"wp-content/plugins/gutenberg-test-plugins": "./node_modules/@wordpress/e2e-tests/plugins",
"wp-content/themes/gutenberg-test-themes/twentytwentythree": "https://downloads.wordpress.org/theme/twentytwentythree.1.0.zip"
}
}
}
}
}
Binary file added assets/images/guide/welcome-ai.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions blocks.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@
"form-file": {
"block": "blocks/blocks/form/file/block.json"
},
"form-hidden-field": {
"block": "blocks/blocks/form/hidden-field/block.json"
},
"form-stripe-field": {
"block": "blocks/blocks/form/stripe-field/block.json"
},
"google-map": {
"block": "blocks/blocks/google-map/block.json",
"assets": {
Expand Down Expand Up @@ -272,5 +278,8 @@
"product-upsells": {
"isPro": true,
"block": "pro/woocommerce/upsells/block.json"
},
"content-generator": {
"block": "blocks/blocks/content-generator/block.json"
}
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@
"tubalmartin/cssmin": "^4.1",
"wptt/webfont-loader": "^1.1",
"sabberworm/php-css-parser": "^8.4",
"stripe/stripe-php": "^10.4"
"stripe/stripe-php": "^12.1"
}
}
36 changes: 18 additions & 18 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions inc/class-main.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public function autoload_classes() {
'\ThemeIsle\GutenbergBlocks\Integration\Form_Providers',
'\ThemeIsle\GutenbergBlocks\Integration\Form_Email',
'\ThemeIsle\GutenbergBlocks\Server\Form_Server',
'\ThemeIsle\GutenbergBlocks\Server\Prompt_Server',
);

$classnames = apply_filters( 'otter_blocks_autoloader', $classnames );
Expand Down
9 changes: 9 additions & 0 deletions inc/class-pro.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ public static function should_show_upsell() {
* @access public
*/
public function should_show_dashboard_upsell() {
if ( defined( 'OTTER_PRO_VERSION' ) ) {
return;
}

$show_upsell = false;

$installed = get_option( 'otter_blocks_install' );
Expand Down Expand Up @@ -398,6 +402,11 @@ public function reset_dashboard_notice() {
* @access public
*/
public function add_pro_link( $links ) {

if ( defined( 'OTTER_PRO_VERSION' ) ) {
return $links;
}

$links[] = sprintf(
'<a href="%s" target="_blank" style="color:#ed6f57;font-weight:bold;">%s</a>',
esc_url_raw( tsdk_utmify( self::get_url(), 'pluginspage', 'action' ) ),
Expand Down
21 changes: 11 additions & 10 deletions inc/class-registration.php
Original file line number Diff line number Diff line change
Expand Up @@ -498,16 +498,17 @@ function() {
'root' => esc_url_raw( rest_url() ),
'nonce' => wp_create_nonce( 'wp_rest' ),
'messages' => array(
'submission' => __( 'Form submission from', 'otter-blocks' ),
'captcha-not-loaded' => __( 'Captcha is not loaded. Please check your browser plugins to allow the Google reCaptcha.', 'otter-blocks' ),
'check-captcha' => __( 'Please check the captcha.', 'otter-blocks' ),
'invalid-email' => __( 'The email address is invalid!', 'otter-blocks' ),
'already-registered' => __( 'The email was already registered!', 'otter-blocks' ),
'try-again' => __( 'Error. Something is wrong with the server! Try again later.', 'otter-blocks' ),
'privacy' => __( 'I have read and agreed the privacy statement.', 'otter-blocks' ),
'too-many-files' => __( 'Too many files loaded. Maximum is: ', 'otter-blocks' ),
'big-file' => __( 'File size is to big. The limit is: ', 'otter-blocks' ),
'invalid-file' => __( 'Invalid files type. The submitted files could not be processed.', 'otter-blocks' ),
'submission' => __( 'Form submission from', 'otter-blocks' ),
'captcha-not-loaded' => __( 'Captcha is not loaded. Please check your browser plugins to allow the Google reCaptcha.', 'otter-blocks' ),
'check-captcha' => __( 'Please check the captcha.', 'otter-blocks' ),
'invalid-email' => __( 'The email address is invalid!', 'otter-blocks' ),
'already-registered' => __( 'The email was already registered!', 'otter-blocks' ),
'try-again' => __( 'Error. Something is wrong with the server! Try again later.', 'otter-blocks' ),
'privacy' => __( 'I have read and agreed the privacy statement.', 'otter-blocks' ),
'too-many-files' => __( 'Too many files loaded. Maximum is: ', 'otter-blocks' ),
'big-file' => __( 'File size is to big. The limit is: ', 'otter-blocks' ),
'invalid-file' => __( 'Invalid files type. The submitted files could not be processed.', 'otter-blocks' ),
'confirmingSubmission' => __( 'Confirming submission', 'otter-blocks' ),
),
)
);
Expand Down
8 changes: 8 additions & 0 deletions inc/css/blocks/class-shared-css.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,14 @@ public static function section_shared() {
'value' => 'boxShadowColor',
'default' => '#000',
'format' => function( $value, $attrs ) {
if ( ! isset( $attrs['boxShadowColorOpacity'] ) ) {
return $value;
}

if ( 100 === $attrs['boxShadowColorOpacity'] ) {
return $value;
}

$opacity = ( isset( $attrs['boxShadowColorOpacity'] ) ? $attrs['boxShadowColorOpacity'] : 50 ) / 100;
return Base_CSS::hex2rgba( $value, $opacity );
},
Expand Down
Loading

0 comments on commit 2fcf603

Please sign in to comment.