New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-flow-designer

Package Overview
Dependencies
Maintainers
2
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-flow-designer

Flow designer for react and redux

  • 0.5.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
560
increased by382.76%
Maintainers
2
Weekly downloads
 
Created
Source

Build Status

dependencies Status

Coverage Status

LIB in active development, concept are not fully scoped

Do Not Use !

Datastream Designer

Use D3 for calculations. Redux as a state manager.

Designed inside dataflow webapp but meant to be used as a module.

How to use it

Use the rendering component
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';node
import configureStore from './store/configureStore';

import { DatastreamDesigner } from './datastream_designer/';

const store = configureStore();

render(
  <Provider store={store}>
    <DatastreamDesigner />
  </Provider>,
  document.getElementById('app')
);
integrate the reducer into your redux data store
import { combineReducers } from 'redux';
import { routerReducer } from 'react-router-redux';

import { datastreamDesignerReducer } from '../datastream_designer/';

const rootReducer = combineReducers({
    routing: routerReducer,
    datastream: datastreamDesignerReducer,
});

export default rootReducer;

the datastream_designer module expose its components, reducers, and action type constants.

Action type constants are exposed for the sake of listening to them and add new feature to your application arround the datastream designer.

Exemple a reducer listening for 'DATASTREAM_DESIGNER_NODE_SELECTED' could trigger a form so you can edit the node data.

Redux API

Redux action type for datastream_designer should follow this convention.

DATASTREAM_DESIGNER_DOMAIN_ACTION

Ex: DATASTREAM_DESIGNER_NODE_SELECTED, DATASTREAM_DESIGNER_NODE_MOVED

Actionpayload valueexpected type
DATASTREAM_DESIGNER_NODE_SELECTEDnodeIdstring
DATASTREAM_DESIGNER_NODE_MOVEnodeIdstring
DATASTREAM_DESIGNER_NODE_MOVEposition{x: number, y: number}

other prospective,

expose api as a configurable middleware to fire intermediate customized action into the host app ?

expose api as classical callback hooks on the main component ?

FAQs

Package last updated on 18 Oct 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc