Skip to content

Commit

Permalink
Updates to 2.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Gravity Forms committed Mar 2, 2023
1 parent c38d5f9 commit dfcc61a
Show file tree
Hide file tree
Showing 32 changed files with 1,759 additions and 1,534 deletions.
989 changes: 0 additions & 989 deletions assets/css/dist/admin-components.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/dist/admin-components.min.css

Large diffs are not rendered by default.

725 changes: 655 additions & 70 deletions assets/css/dist/gravity-forms-theme-framework.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions assets/css/dist/gravity-forms-theme-framework.min.css

Large diffs are not rendered by default.

162 changes: 162 additions & 0 deletions assets/css/dist/template-library.css

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

1 change: 1 addition & 0 deletions assets/css/dist/template-library.min.css

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

2 changes: 1 addition & 1 deletion assets/js/dist/assets.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('hash_map' => array('admin-components.js' => array('version' => 'c6f1f35f0b502ff7fba4f7bdb06d50ef', 'file' => 'admin-components.js'), 'admin-components.min.js' => array('version' => 'c7b812fba5655f5b973cd9d7ea535198', 'file' => 'admin-components.min.js'), 'field-map.js' => array('version' => '469b0c14b117381d431ca8d56923a095', 'file' => 'field-map.js'), 'field-map.min.js' => array('version' => '59ca77780511542fca5de1575e2f6a62', 'file' => 'field-map.min.js'), 'libraries.js' => array('version' => '5273deeaf26987d383d6b08e52601c1d', 'file' => 'libraries.js'), 'libraries.min.js' => array('version' => 'c7d3acdded78b63bfdd6ca7193dd38c0', 'file' => 'libraries.min.js'), 'react-utils.js' => array('version' => 'c6baf0c194cb900d9e53a89e695bd261', 'file' => 'react-utils.js'), 'react-utils.min.js' => array('version' => '4325558d3dc8f3b942213b93ec33c13b', 'file' => 'react-utils.min.js'), 'scripts-admin.js' => array('version' => '8df4fa4e2161782f68b0580b2dc07e35', 'file' => 'scripts-admin.js'), 'scripts-admin.min.js' => array('version' => '8a7f4a04aedb5a76bc7085449d1c64a1', 'file' => 'scripts-admin.min.js'), 'scripts-theme.js' => array('version' => 'ea3fdc14f01a53328551e8087f098efc', 'file' => 'scripts-theme.js'), 'scripts-theme.min.js' => array('version' => '9c9598c0c1b63e5624987254d79ea8ef', 'file' => 'scripts-theme.min.js'), 'utils.js' => array('version' => 'd570e8a6afcce171b794d7138141206d', 'file' => 'utils.js'), 'utils.min.js' => array('version' => 'bc402317bb1b621c1f695fe582d28717', 'file' => 'utils.min.js'), 'vendor-admin.js' => array('version' => '1a3de932fb528ba36c06281b4c704924', 'file' => 'vendor-admin.js'), 'vendor-admin.min.js' => array('version' => '9232aa0bcca1c1d14bcc49128cd8e120', 'file' => 'vendor-admin.min.js'), 'vendor-theme.js' => array('version' => '22a0768963805e158d7bac83f648bc0d', 'file' => 'vendor-theme.js'), 'vendor-theme.min.js' => array('version' => '79e6346cf824ee59c1f023f916789c24', 'file' => 'vendor-theme.min.js')));
<?php return array('hash_map' => array('admin-components.js' => array('version' => 'c6f1f35f0b502ff7fba4f7bdb06d50ef', 'file' => 'admin-components.js'), 'admin-components.min.js' => array('version' => 'c7b812fba5655f5b973cd9d7ea535198', 'file' => 'admin-components.min.js'), 'field-map.js' => array('version' => '469b0c14b117381d431ca8d56923a095', 'file' => 'field-map.js'), 'field-map.min.js' => array('version' => '59ca77780511542fca5de1575e2f6a62', 'file' => 'field-map.min.js'), 'libraries.js' => array('version' => '5273deeaf26987d383d6b08e52601c1d', 'file' => 'libraries.js'), 'libraries.min.js' => array('version' => 'c7d3acdded78b63bfdd6ca7193dd38c0', 'file' => 'libraries.min.js'), 'react-utils.js' => array('version' => 'c6baf0c194cb900d9e53a89e695bd261', 'file' => 'react-utils.js'), 'react-utils.min.js' => array('version' => '4325558d3dc8f3b942213b93ec33c13b', 'file' => 'react-utils.min.js'), 'scripts-admin.js' => array('version' => '1e82d9e62486c4c403d6fc7b9f436ff5', 'file' => 'scripts-admin.js'), 'scripts-admin.min.js' => array('version' => '244a102a020819546be567178bd30c8b', 'file' => 'scripts-admin.min.js'), 'scripts-theme.js' => array('version' => 'ea3fdc14f01a53328551e8087f098efc', 'file' => 'scripts-theme.js'), 'scripts-theme.min.js' => array('version' => '9c9598c0c1b63e5624987254d79ea8ef', 'file' => 'scripts-theme.min.js'), 'utils.js' => array('version' => 'd570e8a6afcce171b794d7138141206d', 'file' => 'utils.js'), 'utils.min.js' => array('version' => 'bc402317bb1b621c1f695fe582d28717', 'file' => 'utils.min.js'), 'vendor-admin.js' => array('version' => '1a3de932fb528ba36c06281b4c704924', 'file' => 'vendor-admin.js'), 'vendor-admin.min.js' => array('version' => '9232aa0bcca1c1d14bcc49128cd8e120', 'file' => 'vendor-admin.min.js'), 'vendor-theme.js' => array('version' => '22a0768963805e158d7bac83f648bc0d', 'file' => 'vendor-theme.js'), 'vendor-theme.min.js' => array('version' => '79e6346cf824ee59c1f023f916789c24', 'file' => 'vendor-theme.min.js')));
2 changes: 1 addition & 1 deletion assets/js/dist/scripts-admin.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/js/dist/scripts-admin.min.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions change_log.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
### 2.7.2 | 2023-03-01
- Fixed an issue that causes certain Gravity Forms css files in the WordPress admin to load when they aren't needed.
- Fixed an issue for sites hosted with WordPress.com where the “Enable auto-updates” spinner on the installed plugins page spins indefinitely.
- Fixed an issue where the WP-CLI `wp plugin auto-updates` commands aren't compatible with the background updates setting.
- API: Deprecated some of the form Theme Framework's global CSS API color system.
- API: Updated and simplified the form Theme Framework's global CSS API color system.

### 2.7.1 | 2023-02-14
- Added "Date Updated" to the list of default exported entry values. Credit: The GravityKit team.
- Updated the setup wizard to use a placeholder instead of default value of "blog" in the website type dropdown.
Expand Down
49 changes: 36 additions & 13 deletions common.php
Original file line number Diff line number Diff line change
Expand Up @@ -7567,30 +7567,53 @@ public static function generate_block_styles_palette( $block_settings ) {
$applied_settings = wp_parse_args( $block_settings, $default_settings );

return array(
'primary' => array(
'primary' => array(
'color' => $applied_settings['buttonPrimaryBackgroundColor'],
'color-rgb' => self::darken_color( $applied_settings['buttonPrimaryBackgroundColor'], 0, 'rgb' ),
'color-contrast' => $applied_settings['buttonPrimaryColor'],
'color-contrast-rgb' => self::darken_color( $applied_settings['buttonPrimaryColor'], 0, 'rgb' ),
'color-shade' => self::darken_color( $applied_settings['buttonPrimaryBackgroundColor'], 10 ),
'color-darker' => self::darken_color( $applied_settings['buttonPrimaryBackgroundColor'], 10 ),
'color-lighter' => self::lighten_color( $applied_settings['buttonPrimaryBackgroundColor'], 10 ),
),
'secondary' => array(
'secondary' => array(
'color' => $applied_settings['inputBackgroundColor'],
'color-rgb' => self::darken_color( $applied_settings['inputBackgroundColor'], 0, 'rgb' ),
'color-contrast' => $applied_settings['inputColor'],
'color-contrast-rgb' => self::darken_color( $applied_settings['inputColor'], 0, 'rgb' ),
'color-shade' => self::darken_color( $applied_settings['inputBackgroundColor'], 2 ),
'color-darker' => self::darken_color( $applied_settings['inputBackgroundColor'], 2 ),
'color-lighter' => self::lighten_color( $applied_settings['inputBackgroundColor'], 2 ),
),
'light' => array(
'color' => 'rgba(' . implode( ', ', self::darken_color( $applied_settings['labelColor'], 0, 'rgb' ) ) . ', 0.1)',
'color-shade' => 'rgba(' . implode( ', ', self::darken_color( $applied_settings['inputBorderColor'], 0, 'rgb' ) ) . ', 0.35)',
'color-tint' => self::darken_color( $applied_settings['inputBackgroundColor'], 2 ),
'outside-control-light' => array(
'color' => 'rgba(' . implode( ', ', self::darken_color( $applied_settings['labelColor'], 0, 'rgb' ) ) . ', 0.1)',
'color-rgb' => self::darken_color( $applied_settings['labelColor'], 0, 'rgb' ),
'color-darker' => 'rgba(' . implode( ', ', self::darken_color( $applied_settings['inputBorderColor'], 0, 'rgb' ) ) . ', 0.35)',
'color-lighter' => self::darken_color( $applied_settings['inputBackgroundColor'], 2 ),
),
'dark' => array(
'color' => $applied_settings['descriptionColor'],
'color-rgb' => self::darken_color( $applied_settings['descriptionColor'], 0, 'rgb' ),
'color-shade' => $applied_settings['inputColor'],
'color-tint' => 'rgba(' . implode( ', ', self::darken_color( $applied_settings['inputColor'], 0, 'rgb' ) ) . ', 0.65)',
'outside-control-dark' => array(
'color' => $applied_settings['descriptionColor'],
'color-rgb' => self::darken_color( $applied_settings['descriptionColor'], 0, 'rgb' ),
'color-darker' => $applied_settings['inputColor'],
'color-lighter' => 'rgba(' . implode( ', ', self::darken_color( $applied_settings['inputColor'], 0, 'rgb' ) ) . ', 0.65)',
),
'inside-control' => array(
'color' => $applied_settings['inputBackgroundColor'],
'color-rgb' => self::darken_color( $applied_settings['inputBackgroundColor'], 0, 'rgb' ),
'color-contrast' => $applied_settings['inputColor'],
'color-contrast-rgb' => self::darken_color( $applied_settings['inputColor'], 0, 'rgb' ),
'color-darker' => self::darken_color( $applied_settings['inputBackgroundColor'], 2 ),
'color-lighter' => self::lighten_color( $applied_settings['inputBackgroundColor'], 2 ),
),
'inside-control-light' => array(
'color' => 'rgba(' . implode( ', ', self::darken_color( $applied_settings['labelColor'], 0, 'rgb' ) ) . ', 0.1)',
'color-rgb' => self::darken_color( $applied_settings['labelColor'], 0, 'rgb' ),
'color-darker' => 'rgba(' . implode( ', ', self::darken_color( $applied_settings['inputBorderColor'], 0, 'rgb' ) ) . ', 0.35)',
'color-lighter' => self::darken_color( $applied_settings['inputBackgroundColor'], 2 ),
),
'inside-control-dark' => array(
'color' => $applied_settings['descriptionColor'],
'color-rgb' => self::darken_color( $applied_settings['descriptionColor'], 0, 'rgb' ),
'color-darker' => $applied_settings['inputColor'],
'color-lighter' => 'rgba(' . implode( ', ', self::darken_color( $applied_settings['inputColor'], 0, 'rgb' ) ) . ', 0.65)',
),
);
}
Expand Down
2 changes: 1 addition & 1 deletion form_display.php
Original file line number Diff line number Diff line change
Expand Up @@ -3961,7 +3961,7 @@ public static function get_field( $field, $value = '', $force_frontend_label = f
$selectable_class = $is_admin ? 'selectable' : '';
$hidden_class = in_array( $input_type, array( 'hidden', 'hiddenproduct' ) ) ? 'gform_hidden' : '';

$choice_input_type_class = $field->type === 'checkbox' || $field->type === 'radio' || $field->inputType === 'consent' || ( isset( $field->inputType ) && ( $field->inputType === 'checkbox' || $field->inputType === 'radio' ) ) ? 'gfield--type-choice' : '';
$choice_input_type_class = $field->type === 'checkbox' || $field->type === 'radio' || $field->type === 'consent' || ( isset( $field->inputType ) && ( $field->inputType === 'checkbox' || $field->inputType === 'radio' || $field->inputType === 'consent' ) ) ? 'gfield--type-choice' : '';
$field_input_type_class = isset( $field->inputType ) && ! empty( $field->inputType ) ? sprintf( 'gfield--input-type-%s', $field->inputType ) : '';

$field_specific_class = $field->get_field_css_class();
Expand Down
1 change: 0 additions & 1 deletion form_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ function gfConfirmBulkAction(element_id) {
<?php $table->display(); ?>
</form>
</div>
<div data-js="gf-template-library"></div>
<?php
GFForms::admin_footer();
}
Expand Down
Loading

0 comments on commit dfcc61a

Please sign in to comment.