fix: Corregir case-sensitivity en namespaces PHP para compatibilidad Linux
- HeroSectionRenderer: namespace herosection → HeroSection (PascalCase) - TopNotificationBarFormBuilder: namespace UI → Ui - TopNotificationBarRenderer: @package docblock corregido - LegacyDBManagerAdapter: ROITheme\Component → ROITheme\Shared - LegacyDBManagerAdapter: ROITheme\Domain\Component → ROITheme\Shared\Domain\Entities - functions-addon: actualizada referencia a HeroSectionRenderer 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace ROITheme\Public\herosection\infrastructure\ui;
|
namespace ROITheme\Public\HeroSection\Infrastructure\Ui;
|
||||||
|
|
||||||
use ROITheme\Shared\Domain\Entities\Component;
|
use ROITheme\Shared\Domain\Entities\Component;
|
||||||
use ROITheme\Shared\Domain\Contracts\RendererInterface;
|
use ROITheme\Shared\Domain\Contracts\RendererInterface;
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ use ROITheme\Shared\Domain\Entities\Component;
|
|||||||
* - SRP: Una responsabilidad (renderizar este componente)
|
* - SRP: Una responsabilidad (renderizar este componente)
|
||||||
* - Clean Architecture: Infrastructure puede usar WordPress
|
* - Clean Architecture: Infrastructure puede usar WordPress
|
||||||
*
|
*
|
||||||
* @package ROITheme\Public\topnotificationbar\infrastructure\ui
|
* @package ROITheme\Public\TopNotificationBar\Infrastructure\Ui
|
||||||
*/
|
*/
|
||||||
final class TopNotificationBarRenderer implements RendererInterface
|
final class TopNotificationBarRenderer implements RendererInterface
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -220,6 +220,27 @@
|
|||||||
"default": "20px",
|
"default": "20px",
|
||||||
"editable": true,
|
"editable": true,
|
||||||
"description": "Redondeo de esquinas de los badges"
|
"description": "Redondeo de esquinas de los badges"
|
||||||
|
},
|
||||||
|
"min_height": {
|
||||||
|
"type": "text",
|
||||||
|
"label": "Altura mínima del hero",
|
||||||
|
"default": "120px",
|
||||||
|
"editable": true,
|
||||||
|
"description": "Altura mínima del contenedor hero para prevenir layout shift (CLS)"
|
||||||
|
},
|
||||||
|
"title_min_height": {
|
||||||
|
"type": "text",
|
||||||
|
"label": "Altura mínima del título",
|
||||||
|
"default": "3rem",
|
||||||
|
"editable": true,
|
||||||
|
"description": "Altura mínima del título para prevenir layout shift (CLS)"
|
||||||
|
},
|
||||||
|
"badge_min_height": {
|
||||||
|
"type": "text",
|
||||||
|
"label": "Altura mínima de badges",
|
||||||
|
"default": "32px",
|
||||||
|
"editable": true,
|
||||||
|
"description": "Altura mínima de los badges para prevenir layout shift (CLS)"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
namespace ROITheme\Shared\Infrastructure\Adapters;
|
namespace ROITheme\Shared\Infrastructure\Adapters;
|
||||||
|
|
||||||
use ROITheme\Component\Infrastructure\Di\DIContainer;
|
use ROITheme\Shared\Infrastructure\Di\DIContainer;
|
||||||
use ROITheme\Shared\Domain\ValueObjects\ComponentName;
|
use ROITheme\Shared\Domain\ValueObjects\ComponentName;
|
||||||
use ROITheme\Shared\Domain\ValueObjects\ComponentConfiguration;
|
use ROITheme\Shared\Domain\ValueObjects\ComponentConfiguration;
|
||||||
use ROITheme\Shared\Domain\Contracts\ComponentRepositoryInterface;
|
use ROITheme\Shared\Domain\Contracts\ComponentRepositoryInterface;
|
||||||
@@ -90,7 +90,7 @@ final class LegacyDBManagerAdapter
|
|||||||
'config' => []
|
'config' => []
|
||||||
];
|
];
|
||||||
|
|
||||||
$newComponent = new \ROITheme\Domain\Component\Component(
|
$newComponent = new \ROITheme\Shared\Domain\Entities\Component(
|
||||||
$component_name,
|
$component_name,
|
||||||
$component_name,
|
$component_name,
|
||||||
$data
|
$data
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace ROITheme\Shared\Infrastructure\UI;
|
namespace ROITheme\Shared\Infrastructure\Ui;
|
||||||
|
|
||||||
use ROITheme\Shared\Domain\Entities\Component;
|
use ROITheme\Shared\Domain\Entities\Component;
|
||||||
use ROITheme\Shared\Domain\Contracts\FormBuilderInterface;
|
use ROITheme\Shared\Domain\Contracts\FormBuilderInterface;
|
||||||
@@ -18,7 +18,7 @@ use ROITheme\Shared\Domain\Contracts\FormBuilderInterface;
|
|||||||
* - WordPress Media Library integration
|
* - WordPress Media Library integration
|
||||||
* - Vista previa en tiempo real
|
* - Vista previa en tiempo real
|
||||||
*
|
*
|
||||||
* @package ROITheme\Shared\Infrastructure\UI
|
* @package ROITheme\Shared\Infrastructure\Ui
|
||||||
*/
|
*/
|
||||||
final class TopNotificationBarFormBuilder implements FormBuilderInterface
|
final class TopNotificationBarFormBuilder implements FormBuilderInterface
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -202,9 +202,8 @@ function roi_render_component(string $componentName): string {
|
|||||||
$renderer = new \ROITheme\Public\Hero\Infrastructure\Ui\HeroRenderer($cssGenerator);
|
$renderer = new \ROITheme\Public\Hero\Infrastructure\Ui\HeroRenderer($cssGenerator);
|
||||||
error_log("ROI Theme DEBUG: HeroRenderer created successfully");
|
error_log("ROI Theme DEBUG: HeroRenderer created successfully");
|
||||||
break;
|
break;
|
||||||
// Componentes legacy (namespace minúsculas - pendiente migración)
|
|
||||||
case 'hero-section':
|
case 'hero-section':
|
||||||
$renderer = new \ROITheme\Public\herosection\infrastructure\ui\HeroSectionRenderer();
|
$renderer = new \ROITheme\Public\HeroSection\Infrastructure\Ui\HeroSectionRenderer();
|
||||||
break;
|
break;
|
||||||
case 'featured-image':
|
case 'featured-image':
|
||||||
$renderer = new \ROITheme\Public\FeaturedImage\Infrastructure\Ui\FeaturedImageRenderer($cssGenerator);
|
$renderer = new \ROITheme\Public\FeaturedImage\Infrastructure\Ui\FeaturedImageRenderer($cssGenerator);
|
||||||
|
|||||||
Reference in New Issue
Block a user