Changeset 3475751
- Timestamp:
- 03/05/2026 03:06:41 PM (3 weeks ago)
- Location:
- simple-block-animations/trunk
- Files:
-
- 6 edited
-
bin/deploy-to-svn.sh (modified) (2 diffs)
-
build/editor.asset.php (modified) (1 diff)
-
build/editor.js (modified) (1 diff)
-
includes/class-enqueue.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
simple-block-animations.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simple-block-animations/trunk/bin/deploy-to-svn.sh
r3447700 r3475751 80 80 81 81 # Update Version header 82 sed -i "s/Version:.*$/Version: $new_version/" "$file"82 sed -i '' "s/Version:.*$/Version: $new_version/" "$file" 83 83 84 84 # Update version constant if it exists 85 sed -i "s/define( 'SIMPBLAN_VERSION', '[^']*' );/define( 'SIMPBLAN_VERSION', '$new_version' );/" "$file"85 sed -i '' "s/define( 'SIMPBLAN_VERSION', '[^']*' );/define( 'SIMPBLAN_VERSION', '$new_version' );/" "$file" 86 86 87 87 echo "✅ Updated version in $file" … … 96 96 # Update readme.txt stable tag if it exists 97 97 if [ -f "$PLUGIN_DIR/readme.txt" ]; then 98 sed -i "s/^Stable tag:.*$/Stable tag: $VERSION/" "$PLUGIN_DIR/readme.txt"98 sed -i '' "s/^Stable tag:.*$/Stable tag: $VERSION/" "$PLUGIN_DIR/readme.txt" 99 99 echo "✅ Updated stable tag in readme.txt" 100 100 fi -
simple-block-animations/trunk/build/editor.asset.php
r3447724 r3475751 1 <?php return array('dependencies' => array('wp-block-editor', 'wp-components', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => ' 5a4d761c2823671b5039');1 <?php return array('dependencies' => array('wp-block-editor', 'wp-components', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => '8dfeba38ca62e5f5e746'); -
simple-block-animations/trunk/build/editor.js
r3447724 r3475751 1 (()=>{"use strict";const e=window.wp.i18n,t=window.wp.hooks,n=window.wp.compose,a=window.wp.element,i=window.wp.blockEditor,o=window.wp.components;if(!window.simpleBlockAnimationsAttributesFiltersAdded){function l(e,t){const n=e.attributes&&e.attributes.isAnimated,a=e.attributes&&e.attributes.animationType,i=e.attributes&&e.attributes.animationDuration,o=e.attributes&&e.attributes.animationDelay;return{...e,attributes:{...e.attributes,...!n&&{isAnimated:{type:"boolean",default:!1}},...!a&&{animationType:{type:"string",default:"fade-in"}},...!i&&{animationDuration:{type:"number",default:.6}},...!o&&{animationDelay:{type:"number",default:0}}}}}window.simpleBlockAnimationsAttributesFiltersAdded=!0;const s=(0,n.createHigherOrderComponent)(t=>n=>{const{ name:l,attributes:s,setAttributes:m}=n,{isAnimated:r,animationType:d,animationDuration:c,animationDelay:u}=s;return s&&void 0!==r?(0,a.createElement)(a.Fragment,null,(0,a.createElement)(t,n),(0,a.createElement)(i.InspectorControls,{group:"settings"},(0,a.createElement)(o.PanelBody,{title:(0,e.__)("Animations","simple_block_animations"),initialOpen:!0},(0,a.createElement)(o.ToggleControl,{label:(0,e.__)("Animer le bloc","simple_block_animations"),checked:r,onChange:e=>{m({isAnimated:e})}}),r&&(0,a.createElement)(o.SelectControl,{label:(0,e.__)("Type d'animation","simple_block_animations"),value:d,options:[{label:(0,e.__)("Fondu","simple_block_animations"),value:"fade-in"},{label:(0,e.__)("Fondu - Bas vers haut","simple_block_animations"),value:"fade-in-up"},{label:(0,e.__)("Fondu - Haut vers bas","simple_block_animations"),value:"fade-in-down"},{label:(0,e.__)("Fondu - Gauche vers droite","simple_block_animations"),value:"fade-in-left"},{label:(0,e.__)("Fondu - Droite vers gauche","simple_block_animations"),value:"fade-in-right"}],onChange:e=>{m({animationType:e})}}),r&&(0,a.createElement)(o.RangeControl,{label:(0,e.__)("Durée de l'animation","simple_block_animations"),value:c,onChange:e=>{m({animationDuration:e})},min:.2,max:2,step:.1,help:(0,e.__)("Durée en secondes","simple_block_animations")}),r&&(0,a.createElement)(o.RangeControl,{label:(0,e.__)("Délai de l'animation","simple_block_animations"),value:u,onChange:e=>{m({animationDelay:e})},min:0,max:1,step:.1,help:(0,e.__)("Durée en secondes","simple_block_animations")})))):(0,a.createElement)(t,n)},"withAnimationControls");function m(e,t,n){const{isAnimated:a,animationType:i,animationDuration:o,animationDelay:l}=n;if(a){const t=`animate-${i}`;return{...e,className:e.className?`${e.className} ${t}`:t,style:{...e.style,"--animation-duration":`${o}s`,"--animation-delay":`${l}s`}}}return e}(0,t.addFilter)("blocks.registerBlockType","simple_block_animations/animation-attributes",l),(0,t.addFilter)("editor.BlockEdit","simple_block_animations/with-animation-controls",s),(0,t.addFilter)("blocks.getSaveContent.extraProps","simple_block_animations/add-animation-classes",m)}})();1 (()=>{"use strict";const e=window.wp.i18n,t=window.wp.hooks,n=window.wp.compose,a=window.wp.element,i=window.wp.blockEditor,o=window.wp.components;if(!window.simpleBlockAnimationsAttributesFiltersAdded){function l(e,t){const n=e.attributes&&e.attributes.isAnimated,a=e.attributes&&e.attributes.animationType,i=e.attributes&&e.attributes.animationDuration,o=e.attributes&&e.attributes.animationDelay;return{...e,attributes:{...e.attributes,...!n&&{isAnimated:{type:"boolean",default:!1}},...!a&&{animationType:{type:"string",default:"fade-in"}},...!i&&{animationDuration:{type:"number",default:.6}},...!o&&{animationDelay:{type:"number",default:0}}}}}window.simpleBlockAnimationsAttributesFiltersAdded=!0;const s=(0,n.createHigherOrderComponent)(t=>n=>{const{attributes:l,setAttributes:s}=n,{isAnimated:m=!1,animationType:r="fade-in",animationDuration:d=.6,animationDelay:u=0}=l||{};return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(t,n),(0,a.createElement)(i.InspectorControls,{group:"settings"},(0,a.createElement)(o.PanelBody,{title:(0,e.__)("Animations","simple_block_animations"),initialOpen:!0},(0,a.createElement)(o.ToggleControl,{label:(0,e.__)("Animer le bloc","simple_block_animations"),checked:m,onChange:e=>{s({isAnimated:e})}}),m&&(0,a.createElement)(o.SelectControl,{label:(0,e.__)("Type d'animation","simple_block_animations"),value:r,options:[{label:(0,e.__)("Fondu","simple_block_animations"),value:"fade-in"},{label:(0,e.__)("Fondu - Bas vers haut","simple_block_animations"),value:"fade-in-up"},{label:(0,e.__)("Fondu - Haut vers bas","simple_block_animations"),value:"fade-in-down"},{label:(0,e.__)("Fondu - Gauche vers droite","simple_block_animations"),value:"fade-in-left"},{label:(0,e.__)("Fondu - Droite vers gauche","simple_block_animations"),value:"fade-in-right"}],onChange:e=>{s({animationType:e})}}),m&&(0,a.createElement)(o.RangeControl,{label:(0,e.__)("Durée de l'animation","simple_block_animations"),value:d,onChange:e=>{s({animationDuration:e})},min:.2,max:2,step:.1,help:(0,e.__)("Durée en secondes","simple_block_animations")}),m&&(0,a.createElement)(o.RangeControl,{label:(0,e.__)("Délai de l'animation","simple_block_animations"),value:u,onChange:e=>{s({animationDelay:e})},min:0,max:1,step:.1,help:(0,e.__)("Durée en secondes","simple_block_animations")}))))},"withAnimationControls");function m(e,t,n){const{isAnimated:a,animationType:i,animationDuration:o,animationDelay:l}=n;if(a){const t=`animate-${i}`;return{...e,className:e.className?`${e.className} ${t}`:t,style:{...e.style,"--animation-duration":`${o}s`,"--animation-delay":`${l}s`}}}return e}(0,t.addFilter)("blocks.registerBlockType","simple_block_animations/animation-attributes",l),(0,t.addFilter)("editor.BlockEdit","simple_block_animations/with-animation-controls",s),(0,t.addFilter)("blocks.getSaveContent.extraProps","simple_block_animations/add-animation-classes",m)}})(); -
simple-block-animations/trunk/includes/class-enqueue.php
r3418495 r3475751 31 31 'simple-block-animations-editor', 32 32 SIMPBLAN_URL . 'build/editor.js', 33 array( 34 'wp-blocks', 35 'wp-dom', 36 'wp-i18n' 37 ), 33 array( 'wp-blocks', 'wp-dom', 'wp-i18n', 'wp-hooks', 'wp-compose', 'wp-element', 'wp-block-editor', 'wp-components' ), 38 34 SIMPBLAN_VERSION, 39 35 true -
simple-block-animations/trunk/readme.txt
r3447742 r3475751 5 5 Tested up to: 6.9 6 6 Requires PHP: 7.4 7 Stable tag: 2.0. 27 Stable tag: 2.0.7 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 75 75 == Changelog == 76 76 77 = 2.0.7 = 78 - Prepared plugin for 7.0 version 79 80 81 = 2.0.6 = 82 - Prepared plugin for 7.0 version 83 84 85 = 2.0.5 = 86 - Prepared plugin for 7.0 version 87 88 89 = 2.0.4 = 90 - Prepared plugin for 7.0 version 91 92 77 93 = 2.0.2 = 78 94 - Updated documentation with "For developers" section regarding default animation attributes for custom blocks -
simple-block-animations/trunk/simple-block-animations.php
r3447742 r3475751 5 5 * Plugin URI: https://github.com/valentin-grenier/simple-animations-for-gutenberg 6 6 * Description: Easily add animations to your Gutenberg blocks without coding. 7 * Version: 2.0. 27 * Version: 2.0.7 8 8 * Requires at least: 9 9 * Requires PHP: … … 22 22 } 23 23 24 define( 'SIMPBLAN_VERSION', '2.0. 2' );24 define( 'SIMPBLAN_VERSION', '2.0.7' ); 25 25 define( 'SIMPBLAN_PATH', plugin_dir_path( __FILE__ ) ); 26 26 define( 'SIMPBLAN_URL', plugin_dir_url( __FILE__ ) );
Note: See TracChangeset
for help on using the changeset viewer.