sequential-workflow-designer
Advanced tools
Comparing version 0.24.4 to 0.24.5
@@ -78,6 +78,10 @@ import { Definition, Step, Sequence, ComponentType, DefinitionWalker, StepOrName } from 'sequential-workflow-model'; | ||
declare class BehaviorController { | ||
private readonly documentOrShadowRoot; | ||
private readonly dom; | ||
private readonly shadowRoot; | ||
private state?; | ||
constructor(documentOrShadowRoot: DocumentOrShadowRoot); | ||
static create(shadowRoot: ShadowRoot | undefined): BehaviorController; | ||
private constructor(); | ||
start(startPosition: Vector, behavior: Behavior): void; | ||
private bind; | ||
private unbind; | ||
private readonly onMouseMove; | ||
@@ -277,4 +281,3 @@ private readonly onTouchMove; | ||
declare class ComponentContext { | ||
readonly documentOrShadowRoot: Document | ShadowRoot; | ||
readonly documentBody: Node; | ||
readonly shadowRoot: ShadowRoot | undefined; | ||
readonly validator: DefinitionValidator; | ||
@@ -288,3 +291,3 @@ readonly iconProvider: IconProvider; | ||
readonly i18n: I18n; | ||
static create(documentOrShadowRoot: Document | ShadowRoot, documentBody: Node, configuration: DesignerConfiguration, state: DesignerState, stepExtensionResolver: StepExtensionResolver, definitionWalker: DefinitionWalker, preferenceStorage: PreferenceStorage, placeholderController: PlaceholderController, i18n: I18n, services: Services): ComponentContext; | ||
static create(configuration: DesignerConfiguration, state: DesignerState, stepExtensionResolver: StepExtensionResolver, definitionWalker: DefinitionWalker, preferenceStorage: PreferenceStorage, placeholderController: PlaceholderController, i18n: I18n, services: Services): ComponentContext; | ||
private constructor(); | ||
@@ -322,4 +325,4 @@ } | ||
declare class LayoutController { | ||
private readonly parent; | ||
constructor(parent: HTMLElement); | ||
private readonly placeholder; | ||
constructor(placeholder: HTMLElement); | ||
isMobile(): boolean; | ||
@@ -353,4 +356,2 @@ } | ||
declare class DesignerContext { | ||
readonly documentOrShadowRoot: Document | ShadowRoot; | ||
readonly documentBody: Node; | ||
readonly theme: string; | ||
@@ -370,4 +371,4 @@ readonly state: DesignerState; | ||
readonly historyController: HistoryController | undefined; | ||
static create(documentOrShadowRoot: Document | ShadowRoot, documentBody: Node, parent: HTMLElement, startDefinition: Definition, configuration: DesignerConfiguration, services: Services): DesignerContext; | ||
constructor(documentOrShadowRoot: Document | ShadowRoot, documentBody: Node, theme: string, state: DesignerState, configuration: DesignerConfiguration, services: Services, componentContext: ComponentContext, definitionWalker: DefinitionWalker, i18n: I18n, stateModifier: StateModifier, layoutController: LayoutController, workspaceController: WorkspaceControllerWrapper, placeholderController: PlaceholderController, behaviorController: BehaviorController, customActionController: CustomActionController, historyController: HistoryController | undefined); | ||
static create(placeholder: HTMLElement, startDefinition: Definition, configuration: DesignerConfiguration, services: Services): DesignerContext; | ||
constructor(theme: string, state: DesignerState, configuration: DesignerConfiguration, services: Services, componentContext: ComponentContext, definitionWalker: DefinitionWalker, i18n: I18n, stateModifier: StateModifier, layoutController: LayoutController, workspaceController: WorkspaceControllerWrapper, placeholderController: PlaceholderController, behaviorController: BehaviorController, customActionController: CustomActionController, historyController: HistoryController | undefined); | ||
setWorkspaceController(controller: WorkspaceController): void; | ||
@@ -492,4 +493,3 @@ } | ||
declare class DesignerApi { | ||
readonly documentOrShadowRoot: Document | ShadowRoot; | ||
readonly documentBody: Node; | ||
readonly shadowRoot: ShadowRoot | undefined; | ||
readonly controlBar: ControlBarApi; | ||
@@ -954,9 +954,5 @@ readonly toolbox: ToolboxApi; | ||
/** | ||
* @description The document or shadow root where the designer is rendered. By default, the designer will use the `document`. | ||
* @description Pass the shadow root of the shadow root to the designer if the designer is placed inside the shadow DOM. | ||
*/ | ||
documentOrShadowRoot?: Document | ShadowRoot; | ||
/** | ||
* @description The body of the document. By default, the designer will use the `document.body`. | ||
*/ | ||
documentBody?: Node; | ||
shadowRoot?: ShadowRoot; | ||
} | ||
@@ -963,0 +959,0 @@ type UidGenerator = () => string; |
{ | ||
"name": "sequential-workflow-designer", | ||
"description": "Customizable no-code component for building flow-based programming applications.", | ||
"version": "0.24.4", | ||
"version": "0.24.5", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "main": "./lib/esm/index.js", |
@@ -106,6 +106,6 @@ ![Sequential Workflow Designer](.github/cover.png) | ||
... | ||
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.24.4/css/designer.css" rel="stylesheet"> | ||
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.24.4/css/designer-light.css" rel="stylesheet"> | ||
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.24.4/css/designer-dark.css" rel="stylesheet"> | ||
<script src="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.24.4/dist/index.umd.js"></script> | ||
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.24.5/css/designer.css" rel="stylesheet"> | ||
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.24.5/css/designer-light.css" rel="stylesheet"> | ||
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.24.5/css/designer-dark.css" rel="stylesheet"> | ||
<script src="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.24.5/dist/index.umd.js"></script> | ||
``` | ||
@@ -112,0 +112,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15736
650303