version = $data['version'] ?? '0.0';
$this->styles = $data['styles'] ?? [];
}
abstract protected function define_atomic_controls(): array;
final public function get_initial_config() {
$config = parent::get_initial_config();
$config['atomic'] = true;
$config['atomic_controls'] = $this->get_atomic_controls();
$config['base_styles'] = $this->get_base_styles();
$config['atomic_props_schema'] = static::get_props_schema();
$config['version'] = $this->version;
return $config;
}
public function get_categories(): array {
return [ 'v4-elements' ];
}
/**
* TODO: Removes the wrapper div from the widget.
*/
public function before_render() {}
public function after_render() {}
/**
* @return array