Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@betrue/react-elementor

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@betrue/react-elementor

Nx plugin to generate Wordpress plugin that enrich Elementor with ReactJS widgets. All widget are wrapped in web component that will act as a proxy between elementor and react. all web components uses shadow dom to prevent css overload.

npmnpm
Version
1.0.2
Version published
Weekly downloads
43
-38.57%
Maintainers
1
Weekly downloads
 
Created
Source

Nx ReactJS elementor widgets

Nx plugin to generate Wordpress plugin that enrich Elementor with ReactJS widgets. All widget are wrapped in web component that will act as a proxy between elementor and react. all web components uses shadow dom to prevent css overload.

State between component is maintained using Redux. image

Plugins

PluginDescription
@betrue/react-elementorGenerate Reactjs Elementor widgets in Wordpress plugin;

Install

Create a new nx workspace (if doesn't exist)

npx create-nx-workspace@latest my-workspace

Install @betrue/react-elementor

 cd my-workspace
 npm install -D @betrue/react-elementor
 

Usage

Create a new plugin

npx nx g @betrue/react-elementor:plugin my-project
## choose styled component
npm install

this generates starting code base made up of two react components (input from and display title) wrapped into elementor widgets.

if you already have and Wordpress instance with elementor installed, you juste need to build the wordpress plugin

 npx nx pkg my-project

Zip and upload using Wordpress plugin management the content of dist/element/my-project. that's all you can now try to use theses widgets into elementor :)

You can also serve the app to see the generated web component in action on http://localhost:4200

npx nx serve my-project

On build is important to pass the release version to make force resources update and reset cache

NX_RELEASE_VERSION=xxxx npx nx pkg my-project

Try it using docker

If you have already installed docker and docker-compose you can try the elementor plugin in wordpress

npx nx pkg my-project // to package the plugin into dist/     `      

start docker-compose

docker-compose -f apps/my-project/src/docker-compose.yml up -d

Add a new widget to an existing plugin:

nx g @betrue/react-elementor:addWidget --name my-widget --plugin my-plugin --attributes attr1,attr2
OptionDescription
name(Required) name of the Reactjs elementor widget
plugin(Required) The name of the Wordpress plugin in which the widget will be generated.
attributesList of attribute that are customizable in elementor
authorName of who makes this plugin.
tagsAdd tags to the project (used for linting).
widgetDescriptionWidget description that appear in Wordpress plugin view.
versionWordpress plugin version.

Maintainer

FAQs

Package last updated on 12 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts