Skip to content

Commit 2fcf603

Browse files
release(minor): version 2.4.0
- 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
2 parents eb9d1a2 + 3f486b1 commit 2fcf603

File tree

130 files changed

+8781
-1439
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+8781
-1439
lines changed

.github/workflows/deploy-stagging.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
jobs:
99
deploy:
1010
runs-on: ubuntu-latest
11+
if: ${{ github.repository_owner == 'Codeinwp' }} # Disable on forks
1112
env:
1213
SSH_USERNAME: ${{ secrets.SSH_USERNAME }}
1314
SSH_KEY: ${{ secrets.SSH_KEY }}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ todo.md
1111
artifacts
1212
*.results.json
1313
trace.json
14-
license.json
14+
license.json
15+
.fleet

.wp-env.override.json

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,23 @@
66
"config": {
77
"WP_DEBUG": true,
88
"WP_DEBUG_DISPLAY": true,
9-
"FS_METHOD": "direct"
9+
"FS_METHOD": "direct",
10+
"WP_DEFAULT_THEME": "twentytwentythree"
1011
},
1112
"env": {
12-
"development": {
13-
"themes": [
14-
"./one-theme"
15-
]
16-
},
1713
"tests": {
14+
"config": {
15+
"WP_DEBUG": false,
16+
"WP_DEBUG_DISPLAY": false
17+
},
1818
"plugins": [
1919
"."
2020
],
2121
"mappings": {
22-
"wp-content/mu-plugins": "./node_modules/@wordpress/e2e-tests/mu-plugins",
23-
"wp-content/plugins/gutenberg-test-plugins": "./node_modules/@wordpress/e2e-tests/plugins"
24-
}
22+
"wp-content/mu-plugins": "./node_modules/@wordpress/e2e-tests/mu-plugins",
23+
"wp-content/plugins/gutenberg-test-plugins": "./node_modules/@wordpress/e2e-tests/plugins",
24+
"wp-content/themes/gutenberg-test-themes/twentytwentythree": "https://downloads.wordpress.org/theme/twentytwentythree.1.0.zip"
25+
}
2526
}
2627
}
27-
}
28+
}

assets/images/guide/welcome-ai.png

16.7 KB
Loading

blocks.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@
9999
"form-file": {
100100
"block": "blocks/blocks/form/file/block.json"
101101
},
102+
"form-hidden-field": {
103+
"block": "blocks/blocks/form/hidden-field/block.json"
104+
},
105+
"form-stripe-field": {
106+
"block": "blocks/blocks/form/stripe-field/block.json"
107+
},
102108
"google-map": {
103109
"block": "blocks/blocks/google-map/block.json",
104110
"assets": {
@@ -272,5 +278,8 @@
272278
"product-upsells": {
273279
"isPro": true,
274280
"block": "pro/woocommerce/upsells/block.json"
281+
},
282+
"content-generator": {
283+
"block": "blocks/blocks/content-generator/block.json"
275284
}
276285
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,6 @@
6262
"tubalmartin/cssmin": "^4.1",
6363
"wptt/webfont-loader": "^1.1",
6464
"sabberworm/php-css-parser": "^8.4",
65-
"stripe/stripe-php": "^10.4"
65+
"stripe/stripe-php": "^12.1"
6666
}
6767
}

composer.lock

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

inc/class-main.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ public function autoload_classes() {
7474
'\ThemeIsle\GutenbergBlocks\Integration\Form_Providers',
7575
'\ThemeIsle\GutenbergBlocks\Integration\Form_Email',
7676
'\ThemeIsle\GutenbergBlocks\Server\Form_Server',
77+
'\ThemeIsle\GutenbergBlocks\Server\Prompt_Server',
7778
);
7879

7980
$classnames = apply_filters( 'otter_blocks_autoloader', $classnames );

inc/class-pro.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ public static function should_show_upsell() {
159159
* @access public
160160
*/
161161
public function should_show_dashboard_upsell() {
162+
if ( defined( 'OTTER_PRO_VERSION' ) ) {
163+
return;
164+
}
165+
162166
$show_upsell = false;
163167

164168
$installed = get_option( 'otter_blocks_install' );
@@ -398,6 +402,11 @@ public function reset_dashboard_notice() {
398402
* @access public
399403
*/
400404
public function add_pro_link( $links ) {
405+
406+
if ( defined( 'OTTER_PRO_VERSION' ) ) {
407+
return $links;
408+
}
409+
401410
$links[] = sprintf(
402411
'<a href="%s" target="_blank" style="color:#ed6f57;font-weight:bold;">%s</a>',
403412
esc_url_raw( tsdk_utmify( self::get_url(), 'pluginspage', 'action' ) ),

inc/class-registration.php

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -498,16 +498,17 @@ function() {
498498
'root' => esc_url_raw( rest_url() ),
499499
'nonce' => wp_create_nonce( 'wp_rest' ),
500500
'messages' => array(
501-
'submission' => __( 'Form submission from', 'otter-blocks' ),
502-
'captcha-not-loaded' => __( 'Captcha is not loaded. Please check your browser plugins to allow the Google reCaptcha.', 'otter-blocks' ),
503-
'check-captcha' => __( 'Please check the captcha.', 'otter-blocks' ),
504-
'invalid-email' => __( 'The email address is invalid!', 'otter-blocks' ),
505-
'already-registered' => __( 'The email was already registered!', 'otter-blocks' ),
506-
'try-again' => __( 'Error. Something is wrong with the server! Try again later.', 'otter-blocks' ),
507-
'privacy' => __( 'I have read and agreed the privacy statement.', 'otter-blocks' ),
508-
'too-many-files' => __( 'Too many files loaded. Maximum is: ', 'otter-blocks' ),
509-
'big-file' => __( 'File size is to big. The limit is: ', 'otter-blocks' ),
510-
'invalid-file' => __( 'Invalid files type. The submitted files could not be processed.', 'otter-blocks' ),
501+
'submission' => __( 'Form submission from', 'otter-blocks' ),
502+
'captcha-not-loaded' => __( 'Captcha is not loaded. Please check your browser plugins to allow the Google reCaptcha.', 'otter-blocks' ),
503+
'check-captcha' => __( 'Please check the captcha.', 'otter-blocks' ),
504+
'invalid-email' => __( 'The email address is invalid!', 'otter-blocks' ),
505+
'already-registered' => __( 'The email was already registered!', 'otter-blocks' ),
506+
'try-again' => __( 'Error. Something is wrong with the server! Try again later.', 'otter-blocks' ),
507+
'privacy' => __( 'I have read and agreed the privacy statement.', 'otter-blocks' ),
508+
'too-many-files' => __( 'Too many files loaded. Maximum is: ', 'otter-blocks' ),
509+
'big-file' => __( 'File size is to big. The limit is: ', 'otter-blocks' ),
510+
'invalid-file' => __( 'Invalid files type. The submitted files could not be processed.', 'otter-blocks' ),
511+
'confirmingSubmission' => __( 'Confirming submission', 'otter-blocks' ),
511512
),
512513
)
513514
);

0 commit comments

Comments
 (0)