PluginProbe
Elementor Website Builder – more than just a page builder / 4.3.0-beta3
Elementor Website Builder – more than just a page builder v4.3.0-beta3
4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 All 452 releases
← All changes | modules/atomic-widgets/styles/style-schema.php +20 -7 4.1.0-dev34.3.0-beta3 View file →
@@ -10,13 +10,15 @@
10 10 use Elementor\Modules\AtomicWidgets\PropTypes\Border_Radius_Prop_Type;
11 11 use Elementor\Modules\AtomicWidgets\PropTypes\Border_Width_Prop_Type;
12 12 use Elementor\Modules\AtomicWidgets\PropTypes\Color_Prop_Type;
13 13 use Elementor\Modules\AtomicWidgets\PropTypes\Dimensions_Prop_Type;
14 +use Elementor\Modules\AtomicWidgets\PropTypes\Font_Family_Prop_Type;
14 15 use Elementor\Modules\AtomicWidgets\PropTypes\Filters\Backdrop_Filter_Prop_Type;
15 16 use Elementor\Modules\AtomicWidgets\PropTypes\Filters\Filter_Prop_Type;
16 17 use Elementor\Modules\AtomicWidgets\PropTypes\Layout_Direction_Prop_Type;
17 18 use Elementor\Modules\AtomicWidgets\PropTypes\Position_Prop_Type;
18 19 use Elementor\Modules\AtomicWidgets\PropTypes\Primitives\Number_Prop_Type;
20 +use Elementor\Modules\AtomicWidgets\PropTypes\Grid_Track_Size_Prop_Type;
19 21 use Elementor\Modules\AtomicWidgets\PropTypes\Size_Prop_Type;
20 22 use Elementor\Modules\AtomicWidgets\PropTypes\Primitives\String_Prop_Type;
21 23 use Elementor\Modules\AtomicWidgets\PropTypes\Stroke_Prop_Type;
22 24 use Elementor\Modules\AtomicWidgets\PropTypes\Transform\Transform_Prop_Type;
@@ -130,9 +132,10 @@
130 132 }
131 133
132 134 private static function get_typography_props() {
133 135 return [
134 - 'font-family' => String_Prop_Type::make()->description( 'The font family of the text content.' ),
136 + 'font-family' => Font_Family_Prop_Type::make()
137 + ->description( 'The font family of the text content.' ),
135 138 'font-weight' => String_Prop_Type::make()->enum( [
136 139 '100',
137 140 '200',
138 141 '300',
@@ -342,19 +345,29 @@
342 345 'nowrap',
343 346 'wrap-reverse',
344 347 ] )->description( 'Specifies whether the flex items should wrap or not. CSS values: wrap, nowrap, wrap-reverse' ),
345 348 'flex' => Flex_Prop_Type::make(),
346 - 'grid-template-columns' => String_Prop_Type::make()
347 - ->description( 'Defines the columns of a grid container. Accepts any valid CSS grid-template-columns value, e.g. repeat(3, 1fr) or 100px 200px auto.' ),
348 - 'grid-template-rows' => String_Prop_Type::make()
349 - ->description( 'Defines the rows of a grid container. Accepts any valid CSS grid-template-rows value, e.g. repeat(3, 1fr) or 100px 200px auto.' ),
349 + 'grid-template-columns' => Union_Prop_Type::make()
350 + ->add_prop_type( String_Prop_Type::make() )
351 + ->add_prop_type( Grid_Track_Size_Prop_Type::make()->units( Size_Constants::grid_track() ) ),
352 + 'grid-template-rows' => Union_Prop_Type::make()
353 + ->add_prop_type( String_Prop_Type::make() )
354 + ->add_prop_type( Grid_Track_Size_Prop_Type::make()->units( Size_Constants::grid_track() ) ),
350 355 'grid-auto-flow' => String_Prop_Type::make()
351 356 ->enum( [ 'row', 'column', 'row dense', 'column dense' ] )
352 357 ->description( 'Controls how auto-placed items flow in the grid. CSS values: row, column, row dense, column dense.' ),
358 + 'grid-auto-rows' => Size_Prop_Type::make()
359 + ->units( Size_Constants::grid_auto_track() )
360 + ->default_unit( Size_Constants::UNIT_FR ),
361 + 'grid-auto-columns' => Size_Prop_Type::make()
362 + ->units( Size_Constants::grid_auto_track() )
363 + ->default_unit( Size_Constants::UNIT_FR ),
353 364 'grid-column' => Span_Prop_Type::make()
354 - ->description( 'Defines a grid item column placement. Accepts values like span N or any valid CSS grid-column value.' ),
365 + ->regex( '/^(?!.*https?:\/\/)(?!.*;).*$/' )
366 + ->description( 'Defines a grid item column placement. Accepts values like span N or any valid CSS grid-column value. Disallows URLs and semicolons.' ),
355 367 'grid-row' => Span_Prop_Type::make()
356 - ->description( 'Defines a grid item row placement. Accepts values like span N or any valid CSS grid-row value.' ),
368 + ->regex( '/^(?!.*https?:\/\/)(?!.*;).*$/' )
369 + ->description( 'Defines a grid item row placement. Accepts values like span N or any valid CSS grid-row value. Disallows URLs and semicolons.' ),
357 370 ];
358 371 }
359 372
360 373 private static function get_alignment_props() {