{"id":19074023,"url":"https://github.com/edtoken/private-rvebuilder","last_synced_at":"2026-06-25T07:31:00.787Z","repository":{"id":85012321,"uuid":"105477548","full_name":"edtoken/private-rvebuilder","owner":"edtoken","description":null,"archived":false,"fork":false,"pushed_at":"2017-10-01T21:59:54.000Z","size":1328,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-22T04:27:47.120Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edtoken.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-01T21:59:23.000Z","updated_at":"2018-02-08T12:45:35.000Z","dependencies_parsed_at":"2023-03-02T23:45:47.977Z","dependency_job_id":null,"html_url":"https://github.com/edtoken/private-rvebuilder","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/edtoken/private-rvebuilder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edtoken%2Fprivate-rvebuilder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edtoken%2Fprivate-rvebuilder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edtoken%2Fprivate-rvebuilder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edtoken%2Fprivate-rvebuilder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edtoken","download_url":"https://codeload.github.com/edtoken/private-rvebuilder/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edtoken%2Fprivate-rvebuilder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34765321,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-25T02:00:05.521Z","response_time":101,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T01:49:27.374Z","updated_at":"2026-06-25T07:31:00.779Z","avatar_url":"https://github.com/edtoken.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RVEBuilder\nSimple React email html builder component\n\n[![Build Status](https://api.travis-ci.org/edtoken/rvebuilder.svg?branch=master)](https://travis-ci.org/edtoken/rvebuilder)\n\n[![NPM](https://nodei.co/npm/rvebuilder.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://nodei.co/npm/rvebuilder/)\n\n[![NPM](https://nodei.co/npm-dl/rvebuilder.png?height=3)](https://nodei.co/npm/rvebuilder/)\n\n\n### WARNING\nThis plugin is in the process of development\nI know many things in the code leave much to be desired.  \nWith new updates I will make the code cleaner  \n\n\n### Installation``\nTo install the stable version:\n\n```\nnpm install --save rvebuilder\n```\n\n\n### Examples\n* [Basic usage](https://github.com/edtoken/rvebuilder/blob/master/examples/basic-usage.jsx)\n* [Save server callback](https://github.com/edtoken/rvebuilder/blob/master/examples/basic-usage.jsx)\n* [Custom Styles](https://github.com/edtoken/rvebuilder/blob/master/examples/basic-usage.jsx)\n* [Custom WYSIWYG](https://github.com/edtoken/rvebuilder/blob/master/examples/basic-usage.jsx)\n* [Server images](https://github.com/edtoken/rvebuilder/blob/master/examples/basic-usage.jsx)\n\n#### Email template examples\n* [Basic JSON email template](https://github.com/edtoken/rvebuilder/blob/master/examples/template-1.json)\n\n### Simple using\n\n```\n/**\n *\n * Step 1 of 2\n * The store should know how to handle actions coming from the form components.\n * To enable this, we need to pass the builderReducer to your store.\n * It serves for all of your form components, so you only have to pass it once.\n *\n */\n\nimport {createStore, combineReducers} from 'redux';\nimport {reducer as builderReducer} from 'rvebuilder';\n\nconst rootReducer = combineReducers({\n\t_rveBuilder: builderReducer\n});\n\n\n/**\n *\n * Step 2 of 2\n * ...\n * ...\n * ...\n *\n */\n\n\nimport React, {Component} from 'react';\nimport {Builder as RVEBuilder} from 'rvebuilder';\n\nimport '../src/theme/default.scss';\n\nclass YourWrapperComponent extends Component {\n\n\tconstructor(props) {\n\t\tsuper(props);\n\t\tthis.onSaveTemplate = this.onSaveTemplate.bind(this);\n\t}\n\n\tonSaveTemplate(template) {\n\t\t// ...\n\t}\n\n\trender() {\n\n\t\tlet builderProps = {\n\t\t\tonSaveTemplate: this.onSaveTemplate\n\t\t};\n\n\t\treturn (\u003cRVEBuilder {...builderProps}/\u003e)\n\t}\n}\n\n```\n\n### Props\n\n| Name          | Type    |\n Required      | Default value | Example value         | Description                            |\n| ------------- |:-------:|:-------------:|---------------|-----------------------|----------------------------------------|\n| template      | Object  | No            |               | see template examples | template json data                     |\n| tokens        | Array   | No            |               | `[\"FIRST_NAME\", \"LAST_NAME\"]` | variables for text             |\n| wysiwyg       | Component| No           | False         |                       | custom wysiwyg editor                  |\n| onChangeImage | Function| No            |               |                       | image upload handler argumens ...|\n| onSaveTemplate| Function| Yes           |               |                       | template save handler arguments (newTemplate) |\n| tokens        | Object  | No            |               |                       | plugin language tokens, see tokens.json |\n| lang          | Object  | No            | en            |                       | plugin language tokens, see tokens.json, `['en', 'ru']` |\n\n\n### Structure\n\n#### Body\nBody container -\u003e Rows wrapper styles\n\n#### Row\nRow container -\u003e Columns wrapper styles\n\n#### Column\n#### Element\n\n## Unit testing\n```\nnpm test\n```\n\n## Changelog\n[CHANGELOG.md](./CHANGELOG.md)\n\n## License\n[MIT](https://github.com/edtoken/rvebuilder/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedtoken%2Fprivate-rvebuilder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedtoken%2Fprivate-rvebuilder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedtoken%2Fprivate-rvebuilder/lists"}