diff --git a/_playground/blueprint-github.json b/_playground/blueprint-github.json index e74084a..40b1072 100644 --- a/_playground/blueprint-github.json +++ b/_playground/blueprint-github.json @@ -26,7 +26,7 @@ "resource": "git:directory", "url": "https://github.com/lubusIN/visual-blueprint-builder/", "ref": "playground" - } + } } ] } diff --git a/composer.json b/composer.json index 8955d56..7325ef5 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "wp/playground-blueprint-editor", + "name": "wp/visual-blueprint-builder", "description": "Design playground blueprints with a specialized block editor interface in WordPress.", "autoload": { "classmap": [ diff --git a/inc/admin/class-enqueue-scripts.php b/inc/admin/class-enqueue-scripts.php index 39ab942..4ae3a60 100644 --- a/inc/admin/class-enqueue-scripts.php +++ b/inc/admin/class-enqueue-scripts.php @@ -3,16 +3,18 @@ /** * This class handles registering and enqueueing scripts and styles. * - * @package wp-playground-blueprint-editor + * @package visual-blueprint-builder */ -namespace WP\Admin\PlaygroundBlueprintEditor; +namespace WP\Admin\VisualBlueprintBuilder; -class EnqueueScripts { +class EnqueueScripts +{ /** * Constructor to initialize WordPress hooks. */ - public function __construct() { + public function __construct() + { add_action('enqueue_block_editor_assets', [$this, 'enqueue_editor_scripts']); add_action('init', [$this, 'set_script_translations']); } @@ -20,7 +22,8 @@ public function __construct() { /** * Enqueues scripts and styles for the block editor based on a specific post type. */ - public function enqueue_editor_scripts() { + public function enqueue_editor_scripts() + { $screen = get_current_screen(); // Only enqueue scripts/styles for the 'blueprint' post type in the editor @@ -34,12 +37,13 @@ public function enqueue_editor_scripts() { /** * Enqueues the editor-specific assets. */ - private function enqueue_editor_assets() { + private function enqueue_editor_assets() + { $assetFile = $this->get_asset_file(); wp_enqueue_script( 'blueprint-editor', - BEPB_PLUGIN_URL . 'build/editor.js', + VBB_PLUGIN_URL . 'build/editor.js', $assetFile['dependencies'], $assetFile['version'], true @@ -47,7 +51,7 @@ private function enqueue_editor_assets() { wp_enqueue_style( 'blueprint-editor', - BEPB_PLUGIN_URL . 'assets/css/editor.css', + VBB_PLUGIN_URL . 'assets/css/editor.css', [], '1.0.0' ); @@ -58,8 +62,9 @@ private function enqueue_editor_assets() { * * @return array|false The asset file array or false on failure. */ - private function get_asset_file() { - $assetFilePath = BEPB_PLUGIN_DIR . 'build/editor.asset.php'; + private function get_asset_file() + { + $assetFilePath = VBB_PLUGIN_DIR . 'build/editor.asset.php'; if (file_exists($assetFilePath)) { return require $assetFilePath; @@ -71,10 +76,11 @@ private function get_asset_file() { /** * set script translations function */ - public function set_script_translations() { + public function set_script_translations() + { wp_set_script_translations( 'blueprint-editor', // script handle - 'wp-playground-blueprint-editor', // Text domain for translations* + 'visual-blueprint-builder', // Text domain for translations* plugin_dir_path(__FILE__) . 'languages' // Path to the language files ); } diff --git a/inc/admin/class-register-post-type.php b/inc/admin/class-register-post-type.php index ce97b42..0a81b1a 100644 --- a/inc/admin/class-register-post-type.php +++ b/inc/admin/class-register-post-type.php @@ -3,10 +3,10 @@ /** * This class defines a custom post type for creating and managing blueprint. * - * @package wp-playground-blueprint-editor + * @package visual-blueprint-builder */ -namespace WP\Admin\PlaygroundBlueprintEditor; +namespace WP\Admin\VisualBlueprintBuilder; class BlueprintPostType { diff --git a/inc/admin/class-register-steps.php b/inc/admin/class-register-steps.php index 0a10844..c0c8f15 100644 --- a/inc/admin/class-register-steps.php +++ b/inc/admin/class-register-steps.php @@ -3,23 +3,26 @@ /** * This class defines a custom blueprint steps. * - * @package wp-playground-blueprint-editor + * @package visual-blueprint-builder */ -namespace WP\Admin\PlaygroundBlueprintEditor; +namespace WP\Admin\VisualBlueprintBuilder; -class BlueprintSteps { +class BlueprintSteps +{ /** * Construct that hooks into WordPress to initialize blueprint steps. */ - public function __construct() { + public function __construct() + { add_action('init', [$this, 'register_blueprint_steps']); } /** * Registers the 'blueprint steps' with necessary arguments and labels. */ - public function register_blueprint_steps() { + public function register_blueprint_steps() + { $blueprint_steps = [ 'login', 'install-plugin', @@ -48,7 +51,7 @@ public function register_blueprint_steps() { ]; foreach ($blueprint_steps as $step) { - register_block_type(BEPB_PLUGIN_DIR . 'build/steps/' . $step); + register_block_type(VBB_PLUGIN_DIR . 'build/steps/' . $step); } } } diff --git a/inc/admin/register-meta.php b/inc/admin/register-meta.php index 7438fc9..5024ce5 100644 --- a/inc/admin/register-meta.php +++ b/inc/admin/register-meta.php @@ -3,10 +3,10 @@ /** * This class for registering a custom meta fields for block editor for playground blueprint. * - * @package wp-playground-blueprint-editor + * @package visual-blueprint-builder */ -namespace WP\Admin\PlaygroundBlueprintEditor; +namespace WP\Admin\VisualBlueprintBuilder; class RegisterCustomMeta { diff --git a/inc/functions.php b/inc/functions.php index 573854c..59282ef 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -11,7 +11,7 @@ * * @return array The array of allowed block types. */ -function filter_allowed_block_types($allowed_block_types, $block_editor_context) +function vbb_filter_allowed_block_types($allowed_block_types, $block_editor_context) { // Get all registered block types $all_blocks = WP_Block_Type_Registry::get_instance()->get_all_registered(); @@ -68,7 +68,7 @@ function filter_allowed_block_types($allowed_block_types, $block_editor_context) // Return the filtered list of allowed blocks return $filtered_blocks; } -add_filter('allowed_block_types_all', 'filter_allowed_block_types', 10000, 2); +add_filter('allowed_block_types_all', 'vbb_filter_allowed_block_types', 10000, 2); /** * Adds a custom block category 'Steps' to the block editor. diff --git a/languages/visual-blueprint-builder.pot b/languages/visual-blueprint-builder.pot new file mode 100644 index 0000000..d0665c2 --- /dev/null +++ b/languages/visual-blueprint-builder.pot @@ -0,0 +1,35 @@ +# Copyright (C) 2025 Lubus +# This file is distributed under the same license as the Visual blueprint builder plugin. +msgid "" +msgstr "" +"Project-Id-Version: Visual blueprint builder 1.0.0\n" +"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/visual-blueprint-builder\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"POT-Creation-Date: 2025-10-17T06:40:25+00:00\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"X-Generator: WP-CLI 2.11.0\n" +"X-Domain: visual-blueprint-builder\n" + +#. Plugin Name of the plugin +#: visual-blueprint-builder.php +msgid "Visual blueprint builder" +msgstr "" + +#. Description of the plugin +#: visual-blueprint-builder.php +msgid "Design playground blueprints with a specialized block editor interface in WordPress." +msgstr "" + +#. Author of the plugin +#: visual-blueprint-builder.php +msgid "Lubus" +msgstr "" + +#. Author URI of the plugin +#: visual-blueprint-builder.php +msgid "https://lubus.in/" +msgstr "" diff --git a/languages/wp-playground-blueprint-editor.pot b/languages/visul-blueprint-builder.pot similarity index 100% rename from languages/wp-playground-blueprint-editor.pot rename to languages/visul-blueprint-builder.pot diff --git a/package-lock.json b/package-lock.json index cf7e1b4..e465c6b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "wp-playground-blueprint-editor", + "name": "visual-blueprint-builder", "version": "1.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "wp-playground-blueprint-editor", + "name": "visual-blueprint-builder", "version": "1.0.0", "license": "ISC", "dependencies": { diff --git a/package.json b/package.json index da0a682..28400d7 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "wp-playground-blueprint-editor", + "name": "visual-blueprint-builder", "version": "1.0.0", "description": "Design playground blueprints with a specialized block editor interface in WordPress.", "main": "build/index.js", @@ -25,4 +25,4 @@ "ajv": "^8.17.1", "react-loading-skeleton": "^3.5.0" } -} +} \ No newline at end of file diff --git a/readme.md b/readme.md index 925b596..4028e4e 100644 --- a/readme.md +++ b/readme.md @@ -1,16 +1,20 @@ + +

![Visual Blueprint Builder](.github/visual-blueprint-builder.jpg) [![Playground Demo Link](https://img.shields.io/badge/Live%20Preview-3858e9?style=for-the-badge&logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CCjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIw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LTEuNzQ2LTE1LjI1Ny4xMDQtMTkuMTA0IDMuOTUxWiIgY2xpcC1ydWxlPSJldmVub2RkIi8%2BPC9zdmc%2B&logoSize=auto)](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/lubusIN/visual-blueprint-builder/playground/_playground/blueprint-github.json) + ### Overview -Playground Blueprint Editor is block based editing experience for building blueprint.json + +Visual Blueprint Builder is block based editing experience for building blueprint.json ### Features - UI based json generation - blocks to build steps -- Preview blueprint in playground +- Preview blueprint in playground - download blueprint.json - copy json code @@ -23,16 +27,17 @@ Playground Blueprint Editor is block based editing experience for building bluep 1. Download latest release from GitHub 2. Visit `Plugins > Add New` -3. Upload `visual-blueprint-builder.zip` file +3. Upload `visual-blueprint-builder.zip` file 4. Activate `Visual Blueprint Builder` from plugins page ## Development ### 1. Clone the Repository + Clone the repository to your local system: ```bash -git clone git@github.com:lubusIN/visual-blueprint-builder.git +git clone git@github.com:lubusIN/visual-blueprint-builder.git ``` ### 2. Go to package folder @@ -49,6 +54,7 @@ composer install ``` ### 4. Build Plugin + Build or start the development environment: ```bash @@ -58,11 +64,13 @@ npm run start # Watch for changes and auto-compile ``` ### 5. Launch Playground + Start a local WordPress playground using wp-now: ```bash npx @wp-now/wp-now start ``` + > [!NOTE] > Refer to `package.json` for additional available npm commands. diff --git a/src/components/skeleton/plugin-skeleton.js b/src/components/skeleton/plugin-skeleton.js index 78fcd69..af285a2 100644 --- a/src/components/skeleton/plugin-skeleton.js +++ b/src/components/skeleton/plugin-skeleton.js @@ -1,5 +1,5 @@ /** - * Wordpress dependencies. + * WordPress dependencies. */ import { __ } from '@wordpress/i18n'; import { diff --git a/src/components/skeleton/theme-skeleton.js b/src/components/skeleton/theme-skeleton.js index f1a3c0d..b79c2fc 100644 --- a/src/components/skeleton/theme-skeleton.js +++ b/src/components/skeleton/theme-skeleton.js @@ -1,5 +1,5 @@ /** - * Wordpress dependencies. + * WordPress dependencies. */ import { __ } from '@wordpress/i18n'; import { diff --git a/src/steps/activate-plugin/index.js b/src/steps/activate-plugin/index.js index ca9f8d9..eea45d0 100644 --- a/src/steps/activate-plugin/index.js +++ b/src/steps/activate-plugin/index.js @@ -1,5 +1,5 @@ /** - * Wordpress dependencies. + * WordPress dependencies. */ import { __ } from '@wordpress/i18n'; import { registerBlockType } from '@wordpress/blocks'; diff --git a/src/steps/activate-theme/index.js b/src/steps/activate-theme/index.js index c1d21ef..14146fc 100644 --- a/src/steps/activate-theme/index.js +++ b/src/steps/activate-theme/index.js @@ -1,5 +1,5 @@ /** - * Wordpress dependencies. + * WordPress dependencies. */ import { __ } from '@wordpress/i18n'; import { registerBlockType } from '@wordpress/blocks'; diff --git a/src/steps/cp/index.js b/src/steps/cp/index.js index 5cafeb9..7fa2b18 100644 --- a/src/steps/cp/index.js +++ b/src/steps/cp/index.js @@ -1,5 +1,5 @@ /** - * Wordpress dependencies. + * WordPress dependencies. */ import { __ } from '@wordpress/i18n'; import { registerBlockType } from '@wordpress/blocks'; diff --git a/src/steps/define-site-url/index.js b/src/steps/define-site-url/index.js index 291129a..bfc54ce 100644 --- a/src/steps/define-site-url/index.js +++ b/src/steps/define-site-url/index.js @@ -1,5 +1,5 @@ /** - * Wordpress dependencies. + * WordPress dependencies. */ import { __ } from '@wordpress/i18n'; import { registerBlockType } from '@wordpress/blocks'; diff --git a/src/steps/enable-multisite/index.js b/src/steps/enable-multisite/index.js index b40d72c..f006eec 100644 --- a/src/steps/enable-multisite/index.js +++ b/src/steps/enable-multisite/index.js @@ -1,5 +1,5 @@ /** - * Wordpress dependencies. + * WordPress dependencies. */ import { __ } from '@wordpress/i18n'; import { registerBlockType } from '@wordpress/blocks'; @@ -24,7 +24,7 @@ import metadata from './block.json'; * * @return {Element} Element to render. */ -function Edit({isSelected}) { +function Edit({ isSelected }) { return (

diff --git a/src/steps/import-theme-starter-content/index.js b/src/steps/import-theme-starter-content/index.js index 87bdda2..ffc60c7 100644 --- a/src/steps/import-theme-starter-content/index.js +++ b/src/steps/import-theme-starter-content/index.js @@ -1,5 +1,5 @@ /** - * Wordpress dependencies. + * WordPress dependencies. */ import { __ } from '@wordpress/i18n'; import { registerBlockType } from '@wordpress/blocks'; diff --git a/src/steps/login/index.js b/src/steps/login/index.js index 768a769..a453d06 100644 --- a/src/steps/login/index.js +++ b/src/steps/login/index.js @@ -1,5 +1,5 @@ /** - * Wordpress dependencies. + * WordPress dependencies. */ import { __ } from '@wordpress/i18n'; import { registerBlockType } from '@wordpress/blocks'; diff --git a/src/steps/mv/index.js b/src/steps/mv/index.js index c3f3326..484ef5f 100644 --- a/src/steps/mv/index.js +++ b/src/steps/mv/index.js @@ -1,5 +1,5 @@ /** - * Wordpress dependencies. + * WordPress dependencies. */ import { __ } from '@wordpress/i18n'; import { registerBlockType } from '@wordpress/blocks'; diff --git a/src/steps/reset-data/index.js b/src/steps/reset-data/index.js index 1dd5857..df04de2 100644 --- a/src/steps/reset-data/index.js +++ b/src/steps/reset-data/index.js @@ -1,5 +1,5 @@ /** - * Wordpress dependencies. + * WordPress dependencies. */ import { __ } from '@wordpress/i18n'; import { registerBlockType } from '@wordpress/blocks'; diff --git a/src/steps/rm/index.js b/src/steps/rm/index.js index 133be28..785d0d3 100644 --- a/src/steps/rm/index.js +++ b/src/steps/rm/index.js @@ -1,5 +1,5 @@ /** - * Wordpress dependencies. + * WordPress dependencies. */ import { __ } from '@wordpress/i18n'; import { registerBlockType } from '@wordpress/blocks'; diff --git a/src/steps/rmdir/index.js b/src/steps/rmdir/index.js index d830155..be52065 100644 --- a/src/steps/rmdir/index.js +++ b/src/steps/rmdir/index.js @@ -1,5 +1,5 @@ /** - * Wordpress dependencies. + * WordPress dependencies. */ import { __ } from '@wordpress/i18n'; import { registerBlockType } from '@wordpress/blocks'; diff --git a/src/steps/run-php/index.js b/src/steps/run-php/index.js index a823962..4feb504 100644 --- a/src/steps/run-php/index.js +++ b/src/steps/run-php/index.js @@ -1,5 +1,5 @@ /** - * Wordpress dependencies. + * WordPress dependencies. */ import { __ } from '@wordpress/i18n'; import { registerBlockType } from '@wordpress/blocks'; diff --git a/src/steps/set-site-language/index.js b/src/steps/set-site-language/index.js index dc8f1dc..fabac7a 100644 --- a/src/steps/set-site-language/index.js +++ b/src/steps/set-site-language/index.js @@ -1,5 +1,5 @@ /** - * Wordpress dependencies. + * WordPress dependencies. */ import { __ } from '@wordpress/i18n'; import { registerBlockType } from '@wordpress/blocks'; diff --git a/src/steps/wp-cli/index.js b/src/steps/wp-cli/index.js index 9f45424..abcaa85 100644 --- a/src/steps/wp-cli/index.js +++ b/src/steps/wp-cli/index.js @@ -1,5 +1,5 @@ /** - * Wordpress dependencies. + * WordPress dependencies. */ import { __ } from '@wordpress/i18n'; import { registerBlockType } from '@wordpress/blocks'; diff --git a/wp-playground-blueprint-editor.php b/visual-blueprint-builder.php similarity index 62% rename from wp-playground-blueprint-editor.php rename to visual-blueprint-builder.php index 6d27243..a352f7c 100644 --- a/wp-playground-blueprint-editor.php +++ b/visual-blueprint-builder.php @@ -1,22 +1,22 @@ setup_constants(); $this->bootstrap(); - $this->load_textdomain(); // Load translations + $this->load_textdomain(); } /** @@ -71,28 +71,28 @@ public function __construct() private function setup_constants() { // Plugin version. - if (!defined('BEPB_VERSION')) { - define('BEPB_VERSION', '0.1.0'); + if (!defined('VBB_VERSION')) { + define('VBB_VERSION', '1.0.0'); } // Plugin Root File. - if (!defined('BEPB_PLUGIN_FILE')) { - define('BEPB_PLUGIN_FILE', __FILE__); + if (!defined('VBB_PLUGIN_FILE')) { + define('VBB_PLUGIN_FILE', __FILE__); } // Plugin Folder Path. - if (!defined('BEPB_PLUGIN_DIR')) { - define('BEPB_PLUGIN_DIR', plugin_dir_path(BEPB_PLUGIN_FILE)); + if (!defined('VBB_PLUGIN_DIR')) { + define('VBB_PLUGIN_DIR', plugin_dir_path(VBB_PLUGIN_FILE)); } // Plugin Folder URL. - if (!defined('BEPB_PLUGIN_URL')) { - define('BEPB_PLUGIN_URL', plugin_dir_url(BEPB_PLUGIN_FILE)); + if (!defined('VBB_PLUGIN_URL')) { + define('VBB_PLUGIN_URL', plugin_dir_url(VBB_PLUGIN_FILE)); } - // Plugin Basename aka: "block-editor-for-playground-blueprint/wp-playground-blueprint-editor.php". - if (!defined('BEPB_PLUGIN_BASENAME')) { - define('BEPB_PLUGIN_BASENAME', plugin_basename(BEPB_PLUGIN_FILE)); + // Plugin Basename aka: "visual-blueprint-builder/visual-blueprint-builder.php". + if (!defined('VBB_PLUGIN_BASENAME')) { + define('VBB_PLUGIN_BASENAME', plugin_basename(VBB_PLUGIN_FILE)); } } @@ -113,7 +113,7 @@ private function bootstrap() public function load_textdomain() { load_plugin_textdomain( - 'wp-playground-blueprint-editor', + 'visual-blueprint-builder', false, dirname(plugin_basename(__FILE__)) . '/languages' ); @@ -122,4 +122,4 @@ public function load_textdomain() } // Initialize the plugin -return PlaygroundBlueprintEditor::instance(); +return VisualBlueprintBuilder::instance();