Skip to content

Commit ff3cc17

Browse files
committed
feat(visual-editor): Add interactive blocks, templates UI, and documentation
- Add new block types: Video, Embed, Tabs, TabPanel, Accordion, AccordionItem - Create TemplatesPanel Livewire component for managing saved block templates - Add templates panel Blade view with search, categories, preview modal - Create README.md with comprehensive package documentation - Add Feature tests for Livewire components - Add Blade templates for all new block types - Update BlockCategory enum with UTILITY case - Update language file with template and block translations - Add CSS styles for templates panel, modals, and forms - Register new blocks and Livewire components in service provider
1 parent 8566c27 commit ff3cc17

24 files changed

+3294
-8
lines changed

packages/inspirecms-visual-editor/README.md

Lines changed: 487 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?php
2+
3+
use Illuminate\Database\Migrations\Migration;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Support\Facades\Schema;
6+
7+
return new class extends Migration
8+
{
9+
public function up(): void
10+
{
11+
Schema::create('visual_editor_block_templates', function (Blueprint $table) {
12+
$table->id();
13+
$table->string('name');
14+
$table->string('slug')->unique();
15+
$table->text('description')->nullable();
16+
$table->string('category')->default('custom');
17+
$table->string('icon')->nullable();
18+
$table->json('block_data');
19+
$table->json('preview_data')->nullable();
20+
$table->string('thumbnail')->nullable();
21+
$table->boolean('is_global')->default(false);
22+
$table->boolean('is_active')->default(true);
23+
$table->foreignId('created_by')->nullable()->constrained('users')->nullOnDelete();
24+
$table->timestamps();
25+
26+
$table->index(['category', 'is_active']);
27+
$table->index('is_global');
28+
});
29+
}
30+
31+
public function down(): void
32+
{
33+
Schema::dropIfExists('visual_editor_block_templates');
34+
}
35+
};

0 commit comments

Comments
 (0)