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

sequential-workflow-designer

Package Overview
Dependencies
Maintainers
1
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sequential-workflow-designer - npm Package Versions

1
10

0.13.4

Diff

Changelog

Source

0.13.4

The getStepParents method of the Designer class supports now a step id as an argument. It is possible to get parents of a step by its id. The method still supports a step object or a sequence as an argument.

designer.getStepParents('eb4f481ee1b90c6e3fc9b42dd010d2a5');
b4rtaz
published 0.13.3 •

Changelog

Source

0.13.3

This version introduces 4 new features:

  • The custom label provider for the toolbox. By default, the toolbox displays a label of a step from the name field. You may override this behaviour and pass own label provider now.
const configuration = {
  toolbox: {
    labelProvider: (step) => `** ${step.name} **`,
    // ...
  },
  // ...
};
  • Control the collapse of the toolbox.
const configuration = {
  toolbox: {
    isCollapsed: true, // or false
    // ...
  },
  // ...
};

designer.isToolboxCollapsed(); // returns true or false
designer.setIsToolboxCollapsed(true);
  • Control the collapse of the editor.
const configuration = {
  editors: {
    isCollapsed: true, // or false
    // ...
  },
  // ...
};

designer.isEditorCollapsed(); // returns true or false
designer.setIsEditorCollapsed(true);
  • It's possible now to replace the default unique identifier generator by a custom one.
const configuration = {
  uidGenerator: () => Math.random().toString(),
  // ...
};
b4rtaz
published 0.13.2 •

Changelog

Source

0.13.2

The react package supports two types of editor providers. Now it's possible to use a provider that returns native DOM elements. We don't want to depreciate the previous approach, this change increases flexibility of the react package.

// 1. custom react component
<SequentialWorkflowDesigner stepEditor={<StepEditor />} ... />

// 2. native editor provider
function stepEditorProvider(step) {
  const editor = document.createElement('div'); /* ... */
  return editor;
}
<SequentialWorkflowDesigner stepEditor={stepEditorProvider}> ... />
b4rtaz
published 0.13.1 •

Changelog

Source

0.13.1

The canMoveStep callback is not called when the step is moved to the same position.

🤩 We launched a new project: Sequential Workflow Editor. Don't write step editors manually, build them.

b4rtaz
published 0.13.0 •

Changelog

Source

0.13.0

The StepTraverser is not a part of the designer package anymore. This class is moved into the model package and it's called DefinitionWalker now. The responsibility of determining children of a step is not part of the StepExtension interface anymore.

b4rtaz
published 0.12.0 •

Changelog

Source

0.12.0

The designer has allowed only the validation of the steps so far. The root of the definition could be edited by the global editor, but the validation was not possible. This version adds a new type of the validator: the root validator. The new validator affects on the result of the definition validation (designer.isValid()).

Breaking Changes

  • The validator property in the steps group of the configuration is deleted. Use the step property in the validator group instead.
  • The step validator has a new parameter: definition.
  • Added the root validator.
const configuration = {
  steps: {
    validator: /* DEPRECIATED */,
  },
  validator: {
    step: (step, parentSequence, definition) => { /* ... */ },
    root: (definition) => { /* ... */ }
  },
  // ...
};
b4rtaz
published 0.11.0 •

Changelog

Source

0.11.0

Breaking Changes

  • This version introduces a few changes in the customActionHandler handler:
    • the first parameter is an object now, previously it was a string. To read action type you need to read the type property from the object.
    • the step parameter is nullable now,
    • we added a context parameter that allows to notify about changes in the definition.
  • Added new classes for label components: sqd-label-primary and sqd-label-secondary.
b4rtaz
published 0.10.2 •

Changelog

Source

0.10.2

  • Fixed the bug with moving the viewport by the scroll wheel button.
  • Added a simple animation to placeholders during dragging.
b4rtaz
published 0.10.1 •

Changelog

Source

0.10.1

  • Fixed the bug with the auto-hide feature in the smart editor.
  • Fixed the bug with rendering wide components in the sequence component.
  • Fixed the bug with dragging when the designer is attached to a scrolled page.
b4rtaz
published 0.10.0 •

Changelog

Source

0.10.0

Refactored the step component interface. Extracted the logic of the step validation to a separated layer called badges. This allowed to create a new type of badge: counter. The counter badge is available in the pro version.

Additionally, now it's possible manually refreshing the validation from outside of the designer. The validation is a special case of a badge. To refresh the validation you need to call the updateBadges method.

designer.updateBadges(); 
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