You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

sequential-workflow-editor

Package Overview
Dependencies
Maintainers
0
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sequential-workflow-editor - npm Package Versions

124

0.9.2

Diff
b
b4rtaz
published 0.9.2 •

Changelog

Source

0.9.2

This version fixes a bug in the ValueEditorFactoryResolver class. Now, when an editor is not found, the resolver throws an error.

b
b4rtaz
published 0.9.1 •

Changelog

Source

0.9.1

This version exports the variableNameValidator function in the sequential-workflow-editor-model package.

b
b4rtaz
published 0.9.0 •

Changelog

Source

0.9.0

  • Improved validation for the boolean value model.
  • Improved validation for the branches value model.
  • Internal changes preparing for the upcoming pro version.
b
b4rtaz
published 0.8.0 •

Changelog

Source

0.8.0

Updated the sequential-workflow-model dependency to the version 0.2.0.

b
b4rtaz
published 0.7.2 •

Changelog

Source

0.7.2

We added a new type of a validator: step validator. It allows to restrict a placement of a step in a definition. For example, you can enforce that a step can be placed only inside a specific step.

createStepModel<WriteSocketStep>('writeSocket', 'task', step => {
  step.validator({
    validate(context: StepValidatorContext) {
      const parentTypes = context.getParentStepTypes();
      return parentTypes.includes('socket');
        ? null // No errors
        : 'The write socket step must be inside a socket.';
    }
  });
});

Additionally we've renamed:

  • the CustomValidatorContext class to PropertyValidatorContext,
  • the customValidator method of the PropertyModelBuilder class to validator.
b
b4rtaz
published 0.7.1 •

Changelog

Source

0.7.1

This version renames all *ValueModel functions to create*ValueModel, adding the create prefix.

// Old
stringValueModel({ ... });

// New
createStringValueModel({ ... });

This version doesn't introduce breaking changes. The old functions are still available, but they are deprecated.

b
b4rtaz
published 0.7.0 •

Changelog

Source

0.7.0

This version changes the license to the MIT license. 🎉

b
b4rtaz
published 0.6.0 •

Changelog

Source

0.6.0

  • This version brings small visual improvements.
  • Added a new value model: string dictionary (stringDictionaryValueModel({ ... })). This value model allows you to specify a dictionary of string values.
  • The string value model now supports multiline mode.
stringValueModel({ multiline: true })
stringValueModel({ multiline: 10 })

Breaking changes:

The createStepEditorProvider() method of the EditorProvider class now returns a new type of editor provider. This method no longer accepts any arguments.

type StepEditorProvider = (step: Step, context: StepEditorContext, definition: Definition) => HTMLElement;

EditorProvider.createStepEditorProvider(): StepEditorProvider;

The ValueKnownType enum is renamed to WellKnownValueType.

b
b4rtaz
published 0.5.0 •

Changelog

Source

0.5.0

The DefinitionValidator class supports the validation of the whole definition. Use the validate method to validate a definition deeply. This method will validate all steps in the definition at once. Now you may easily validate a definition in the back-end before saving it to the storage.

const validator = DefinitionValidator.create(definitionModel, definitionWalker);
if (validator.validate(definition)) {
  throw new Error('Invalid definition');
}

Breaking changes:

  • Renamed the ModelValidator class to DefinitionValidator.
b
b4rtaz
published 0.4.1 •

Changelog

Source

0.4.1

  • The model validator is improved. Now the validator validates the name field of the step as well.
  • Adjusted CSS styles.