@camunda/task-testing 2.0.1 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,32 @@
1
+ export namespace DEFAULT_CONFIG {
2
+ let input: {};
3
+ let output: {};
4
+ }
5
+ export class ElementConfig extends EventEmitter<[never]> {
6
+ constructor(injector: any, elementVariables: any, config?: {
7
+ input: {};
8
+ output: {};
9
+ });
10
+ _injector: any;
11
+ _elementVariables: any;
12
+ /**
13
+ * @type {import('./types').Config}
14
+ */
15
+ _config: import("./types").Config;
16
+ _selectedElement: any;
17
+ _variablesForElements: Map<any, any>;
18
+ setConfig(newConfig: any): void;
19
+ getConfig(): import("./types").Config;
20
+ setInputConfigForElement(element: any, newConfig: any): void;
21
+ resetInputConfigForElement(element: any): void;
22
+ setOutputConfigForElement(element: any, newConfig: any): void;
23
+ resetOutputConfigForElement(element: any): void;
24
+ getInputConfigForElement(element: any): string;
25
+ /**
26
+ * @param {import('./types').Element} element
27
+ * @returns {import('./types').ElementOutput}
28
+ */
29
+ getOutputConfigForElement(element: import("./types").Element): import("./types").ElementOutput;
30
+ _getDefaultInputConfig(): string;
31
+ }
32
+ import EventEmitter from 'events';
@@ -0,0 +1,8 @@
1
+ export class ElementVariables extends EventEmitter<[never]> {
2
+ constructor(injector: any);
3
+ _injector: any;
4
+ _variables: {};
5
+ _variableResolver: any;
6
+ getVariablesForElement(element: any): Promise<any>;
7
+ }
8
+ import EventEmitter from 'events';
@@ -0,0 +1,67 @@
1
+ /**
2
+ *
3
+ * @param {import('./types').VariableSearchResult[]} getVariablesResponseItems
4
+ * @param {import('./types').ElementInstanceResult[]} getElementInstancesResponseItems
5
+ * @param {import('./types').ProcessInstanceResult} processInstance
6
+ * @param elementId
7
+ * @returns {object}
8
+ */
9
+ export function getVariables(getVariablesResponseItems: import("./types").VariableSearchResult[], getElementInstancesResponseItems: import("./types").ElementInstanceResult[], processInstance: import("./types").ProcessInstanceResult, elementId: any): object;
10
+ /**
11
+ * Get the process definition key from the deployment response.
12
+ *
13
+ * @param {import('./types').ExtendedDeploymentResult} deployResponse
14
+ * @param {string} processId
15
+ *
16
+ * @returns {string | null}
17
+ */
18
+ export function getProcessDefinitionKey(deployResponse: import("./types").ExtendedDeploymentResult, processId: string): string | null;
19
+ export const INTERVAL_MS: 1000;
20
+ export namespace SCOPES {
21
+ let LOCAL: string;
22
+ let PROCESS: string;
23
+ }
24
+ /**
25
+ * Emits:
26
+ * - `taskExecution.status.changed` with one of {@link TaskExecutionStatus}
27
+ * - `taskExecution.finished` with {@link TaskExecutionResult}
28
+ * - `taskExecution.error` with {@link TaskExecutionError}
29
+ * - `taskExecution.interrupted` when execution is interrupted by switching focus
30
+ */
31
+ export default class TaskExecution extends EventEmitter<[never]> {
32
+ /**
33
+ * @param {import('didi').Injector} injector
34
+ * @param {TaskExecutionApi} api
35
+ */
36
+ constructor(injector: import("didi").Injector, api: TaskExecutionApi);
37
+ /** @type {TaskExecutionApi} */
38
+ _api: TaskExecutionApi;
39
+ _interval: NodeJS.Timeout | null;
40
+ /** @type {TaskExecutionStatus} */
41
+ _status: TaskExecutionStatus;
42
+ /**
43
+ * Start task execution.
44
+ *
45
+ * @param {import('./types').Element} element
46
+ * @param {Object} variables
47
+ *
48
+ * @returns {Promise<void>}
49
+ */
50
+ executeTask(element: import("./types").Element, variables: any): Promise<void>;
51
+ /**
52
+ * Cancel current task execution, clean up and change status to `idle`.
53
+ */
54
+ cancelTaskExecution(): Promise<void>;
55
+ /**
56
+ * Emit `taskExecution.error` event.
57
+ *
58
+ * @param {string} message
59
+ * @param {any} [response]
60
+ */
61
+ _emitError(message: string, response?: any): void;
62
+ /** @param {TaskExecutionStatus} status */
63
+ _changeStatus(status: TaskExecutionStatus, ...args: any[]): void;
64
+ }
65
+ import EventEmitter from 'events';
66
+ import type { TaskExecutionApi } from './types';
67
+ import type { TaskExecutionStatus } from './types';
@@ -0,0 +1,8 @@
1
+ export default function Input({ allOutputs, input, onErrorChange, onResetInput, onSetInput, variablesForElement }: {
2
+ allOutputs: any;
3
+ input?: string | undefined;
4
+ onErrorChange: any;
5
+ onResetInput: any;
6
+ onSetInput: any;
7
+ variablesForElement: any;
8
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ export default function InputEditor({ allOutputs, value, onChange, onErrorChange, variablesForElement }: {
2
+ allOutputs?: {} | undefined;
3
+ value: any;
4
+ onChange: any;
5
+ onErrorChange: any;
6
+ variablesForElement?: any[] | undefined;
7
+ }): import("react/jsx-runtime").JSX.Element;
8
+ export const PLACEHOLDER_TEXT: "Enter process variables in JSON format";
9
+ export const INVALID_JSON_ERROR: "JSON contains errors";
@@ -0,0 +1,46 @@
1
+ /**
2
+ * @param {Object} props
3
+ * @param {import('bpmn-js/lib/model/Types').Element} props.element
4
+ * @param {boolean} props.isConnectionConfigured
5
+ * @param {string} props.configureConnectionBannerTitle
6
+ * @param {string} props.configureConnectionBannerDescription
7
+ * @param {string} props.configureConnectionLabel
8
+ * @param {string|undefined} props.currentOperateUrl
9
+ * @param {Function} [props.onConfigureConnection]
10
+ * @param {boolean} props.isTaskExecuting
11
+ * @param {import('../../types').ElementOutput} props.output
12
+ * @param {Function} props.onResetOutput
13
+ * @param {import('../../types').TaskExecutionStatus} props.taskExecutionStatus
14
+ */
15
+ export default function Output({ element, isConnectionConfigured, configureConnectionBannerTitle, configureConnectionBannerDescription, configureConnectionLabel, onConfigureConnection, isTaskExecuting, output, currentOperateUrl, onResetOutput, taskExecutionStatus }: {
16
+ element: import("bpmn-js/lib/model/Types").Element;
17
+ isConnectionConfigured: boolean;
18
+ configureConnectionBannerTitle: string;
19
+ configureConnectionBannerDescription: string;
20
+ configureConnectionLabel: string;
21
+ currentOperateUrl: string | undefined;
22
+ onConfigureConnection?: Function | undefined;
23
+ isTaskExecuting: boolean;
24
+ output: import("../../types").ElementOutput;
25
+ onResetOutput: Function;
26
+ taskExecutionStatus: import("../../types").TaskExecutionStatus;
27
+ }): import("react/jsx-runtime").JSX.Element;
28
+ export const TASK_EXECUTION_STATUS_LABEL: {
29
+ deploying: string;
30
+ 'starting-instance': string;
31
+ executing: string;
32
+ };
33
+ export const NO_OPERATE_URL_TOOLTIP: "No Operate URL set for this connection";
34
+ export function HeaderLink({ children, render, visible, href, target, className, onClick, role, tooltip, priority }: {
35
+ render?: ((props: any) => React.ReactNode) | undefined;
36
+ children?: React.ReactNode;
37
+ visible?: boolean | ((props: any) => boolean) | undefined;
38
+ href?: string | ((props: any) => string) | undefined;
39
+ target?: string | ((props: any) => string) | undefined;
40
+ className?: string | ((props: any) => string | undefined) | undefined;
41
+ onClick?: Function | ((props: any) => Function) | undefined;
42
+ role?: string | ((props: any) => string) | undefined;
43
+ tooltip?: string | ((props: any) => string | undefined) | undefined;
44
+ priority?: number | undefined;
45
+ }): null;
46
+ import React from 'react';
@@ -0,0 +1,3 @@
1
+ export default function OutputEditor({ value }: {
2
+ value: any;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,20 @@
1
+ export function OutputVariables({ isTaskExecuting, output, element }: {
2
+ isTaskExecuting: any;
3
+ output: any;
4
+ element: any;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
+ /**
7
+ * Pick variables for a given scope. Variables in legacy format are ignored.
8
+ *
9
+ * @param {import('../../types').ElementOutputVariables} variables
10
+ * @param {string} scope
11
+ *
12
+ * @returns {Object}
13
+ */
14
+ export function pickVariables(variables: import("../../types").ElementOutputVariables, scope: string): any;
15
+ export function OutputTab({ children, render, label, priority }: {
16
+ label: string;
17
+ render?: Function | undefined;
18
+ children?: React.ReactNode;
19
+ priority?: number | undefined;
20
+ }): null;
@@ -0,0 +1,49 @@
1
+ /**
2
+ * @param {Object} props
3
+ * @param {Object} props.injector
4
+ * @param {import('../../types').TaskExecutionApi} props.api
5
+ * @param {boolean} props.isConnectionConfigured
6
+ * @param {string} [props.configureConnectionBannerTitle]
7
+ * @param {string} [props.configureConnectionBannerDescription]
8
+ * @param {string} [props.configureConnectionLabel]
9
+ * @param {Function} [props.onConfigureConnection] - Callback invoked when
10
+ * the user clicks on the _Configure connection_ button.
11
+ * @param {(() => boolean | Promise<boolean>)} [props.onTestTask] - Callback invoked when the user clicks
12
+ * on the _Test task_ button. Should return `true` to proceed with task
13
+ * execution or `false` to abort it. Can return a promise resolving to a
14
+ * boolean.
15
+ * @param {import('../../types').Config|undefined} [props.config]
16
+ * @param {Function} [props.onConfigChanged=() => {}]
17
+ * @param {string} [props.operateBaseUrl]
18
+ * @param {string} [props.documentationUrl]
19
+ * @param {Function} [props.onTaskExecutionStarted=() => {}]
20
+ * @param {Function} [props.onTaskExecutionFinished=() => {}]
21
+ * @param {Function} [props.onTaskExecutionInterrupted=() => {}]
22
+ * @param {React.ReactNode[]} [props.children=[]]
23
+ */
24
+ declare function TaskTesting({ injector, api, isConnectionConfigured, configureConnectionBannerTitle, configureConnectionBannerDescription, configureConnectionLabel, onConfigureConnection, onTestTask, config, onConfigChanged, operateBaseUrl, documentationUrl, onTaskExecutionStarted, onTaskExecutionFinished, onTaskExecutionInterrupted, children }: {
25
+ injector: any;
26
+ api: import("../../types").TaskExecutionApi;
27
+ isConnectionConfigured: boolean;
28
+ configureConnectionBannerTitle?: string | undefined;
29
+ configureConnectionBannerDescription?: string | undefined;
30
+ configureConnectionLabel?: string | undefined;
31
+ onConfigureConnection?: Function | undefined;
32
+ onTestTask?: (() => boolean | Promise<boolean>) | undefined;
33
+ config?: import("../../types").Config | undefined;
34
+ onConfigChanged?: Function | undefined;
35
+ operateBaseUrl?: string | undefined;
36
+ documentationUrl?: string | undefined;
37
+ onTaskExecutionStarted?: Function | undefined;
38
+ onTaskExecutionFinished?: Function | undefined;
39
+ onTaskExecutionInterrupted?: Function | undefined;
40
+ children?: React.ReactNode[] | undefined;
41
+ }): import("react/jsx-runtime").JSX.Element;
42
+ declare namespace TaskTesting {
43
+ export { OutputTab as Tab };
44
+ export { HeaderLink as Link };
45
+ }
46
+ export default TaskTesting;
47
+ import React from 'react';
48
+ import { OutputTab } from '../Output/OutputVariables';
49
+ import { HeaderLink } from '../Output/Output';
@@ -0,0 +1,5 @@
1
+ export const baseTheme: import("@codemirror/state").Extension;
2
+ export const highlightTheme: import("@codemirror/state").Extension;
3
+ export const syntaxClasses: import("@codemirror/state").Extension;
4
+ declare const _default: import("@codemirror/state").Extension[];
5
+ export default _default;
@@ -0,0 +1,4 @@
1
+ export const PluginContext: import("react").Context<import("../../types").PluginContextValue>;
2
+ export function usePluginsProviderValue(defaultValue?: Plugin[]): PluginContextValue;
3
+ export type Plugin = import("../../types").Plugin;
4
+ export type PluginContextValue = import("../../types").PluginContextValue;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Get currently selected BPMN element, if it is a single `bpmn:Task`. If not,
3
+ * return null and a message indicating what to do.
4
+ *
5
+ * @param {Object} injector
6
+ * @return {[ Object|null, string|null ]}
7
+ */
8
+ export function useSelectedElement(injector: any): [any | null, string | null];
9
+ export const SINGLE_TASK_SELECTION_REQUIRED_MESSAGE: "Select a task to start testing.";
10
+ export const TASK_SELECTION_REQUIRED_MESSAGE: "Task testing is only supported for tasks. Select a task to start testing.";
11
+ export const AD_HOC_SUBPROCESS_TASK_UNSUPPORTED_MESSAGE: "Task testing is not supported for tasks inside an ad-hoc subprocess. Select a different task to start testing.";
@@ -0,0 +1 @@
1
+ export { default } from "./components/TaskTesting/TaskTesting";
@@ -0,0 +1,81 @@
1
+ import type { CamundaClient, CreateProcessInstanceResult, ElementInstanceResult, ElementInstanceSearchQueryResult, IncidentResult, IncidentSearchQueryResult, ProcessInstanceResult, ProcessInstanceSearchQueryResult, ProcessInstanceStateEnum, VariableSearchQueryResult, VariableSearchResult } from '@camunda8/orchestration-cluster-api';
2
+ import type { ModdleElement } from "bpmn-js/lib/model/Types";
3
+ type ExtendedDeploymentResult = Awaited<ReturnType<CamundaClient['createDeployment']>>;
4
+ export type { CreateProcessInstanceResult, ElementInstanceSearchQueryResult, IncidentSearchQueryResult, ProcessInstanceSearchQueryResult, ProcessInstanceResult, VariableSearchQueryResult, ExtendedDeploymentResult, ProcessInstanceStateEnum, VariableSearchResult, ElementInstanceResult, IncidentResult };
5
+ export type Input = {
6
+ [elementId: string]: string;
7
+ };
8
+ export type Output = {
9
+ [elementId: string]: ElementOutput;
10
+ };
11
+ export type VARIABLE_SCOPE = 'LOCAL' | 'PROCESS';
12
+ export type ElementOutputVariables = {
13
+ [id: string]: {
14
+ name: string;
15
+ value: any;
16
+ scope: VARIABLE_SCOPE;
17
+ };
18
+ };
19
+ export type ElementOutput = {
20
+ success: boolean;
21
+ variables?: ElementOutputVariables;
22
+ error?: TaskExecutionError;
23
+ incident?: any;
24
+ operateUrl?: string;
25
+ [key: string]: any;
26
+ } | undefined;
27
+ export type Config = {
28
+ input: Input;
29
+ output: Output;
30
+ };
31
+ export type Variable = {
32
+ name: string;
33
+ type?: string;
34
+ info?: string;
35
+ isList?: boolean;
36
+ entries?: Variable[];
37
+ scope?: ModdleElement;
38
+ };
39
+ export type Variables = Variable[];
40
+ export type ApiResponse<T> = {
41
+ success: true;
42
+ response: T;
43
+ } | {
44
+ success: false;
45
+ error: string;
46
+ };
47
+ export type TaskExecutionApi = {
48
+ deploy: () => Promise<ApiResponse<ExtendedDeploymentResult>>;
49
+ startInstance: (processDefinitionKey: string, elementId: string, variables: {
50
+ [key: string]: any;
51
+ }) => Promise<ApiResponse<CreateProcessInstanceResult>>;
52
+ getProcessInstance: (processInstanceKey: string) => Promise<ApiResponse<ProcessInstanceSearchQueryResult>>;
53
+ getProcessInstanceVariables: (processInstanceKey: string) => Promise<ApiResponse<VariableSearchQueryResult>>;
54
+ getProcessInstanceElementInstances: (processInstanceKey: string) => Promise<ApiResponse<ElementInstanceSearchQueryResult>>;
55
+ getProcessInstanceIncident: (processInstanceKey: string) => Promise<ApiResponse<IncidentSearchQueryResult>>;
56
+ };
57
+ export type TaskExecutionStatus = 'idle' | 'deploying' | 'starting-instance' | 'executing';
58
+ export type TaskExecutionEvents = 'taskExecution.status.changed' | 'taskExecution.finished' | 'taskExecution.error' | 'taskExecution.interrupted';
59
+ export type TaskExecutionResult = {
60
+ success: boolean;
61
+ variables?: ElementOutputVariables;
62
+ error?: TaskExecutionError;
63
+ incident?: any;
64
+ };
65
+ export type TaskExecutionError = {
66
+ message: string;
67
+ response?: any;
68
+ };
69
+ export type { Element, ModdleElement } from 'bpmn-js/lib/model/Types';
70
+ export type Plugin = {
71
+ priority?: number;
72
+ render: Function;
73
+ type: string;
74
+ [key: string]: any;
75
+ };
76
+ export type PluginContextValue = {
77
+ plugins: Plugin[];
78
+ registerPlugin: (plugin: Plugin) => void;
79
+ unregisterPlugin: (plugin: Plugin) => void;
80
+ getPlugins: (pluginPoint: string) => Plugin[];
81
+ };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @typedef {import('@codemirror/autocomplete').Completion} Completion
3
+ * @typedef {import('@codemirror/autocomplete').CompletionContext} CompletionContext
4
+ * @typedef {import('@codemirror/autocomplete').CompletionResult} CompletionResult
5
+ */
6
+ /**
7
+ * @param {Completion[]} variables
8
+ */
9
+ export function getAutocompletionExtensions(variables: Completion[]): import("@codemirror/state").Extension[];
10
+ export type Completion = import("@codemirror/autocomplete").Completion;
11
+ export type CompletionContext = import("@codemirror/autocomplete").CompletionContext;
12
+ export type CompletionResult = import("@codemirror/autocomplete").CompletionResult;
@@ -0,0 +1,11 @@
1
+ export function getName(element: any): string;
2
+ export function getType(element: any, injector: any): any;
3
+ export function getConcreteType(element: any): any;
4
+ /**
5
+ * Get parent process of an element.
6
+ *
7
+ * @param {import('../types').Element} element
8
+ *
9
+ * @returns {string|null}
10
+ */
11
+ export function getProcessId(element: import("../types").Element): string | null;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @param {string} operateBaseUrl
3
+ * @param {string} processInstanceKey
4
+ * @returns {string}
5
+ */
6
+ export function getOperateUrl(operateBaseUrl: string, processInstanceKey: string): string;
package/package.json CHANGED
@@ -1,95 +1,99 @@
1
- {
2
- "name": "@camunda/task-testing",
3
- "version": "2.0.1",
4
- "files": [
5
- "dist"
6
- ],
7
- "main": "dist/index.js",
8
- "scripts": {
9
- "all": "run-s lint types test build",
10
- "open": "open-cli http://localhost:3000",
11
- "start:server": "node demo/server.mjs",
12
- "start:client": "webpack --watch --config webpack.demo.js",
13
- "start": "run-p start:* open",
14
- "dev": "npm test -- --auto-watch --no-single-run",
15
- "build": "webpack",
16
- "build:watch": "webpack --watch",
17
- "build:demo": "webpack --config webpack.demo.js",
18
- "test": "karma start karma.config.js",
19
- "lint": "eslint .",
20
- "types": "tsc --noEmit",
21
- "prepare": "npm run build"
22
- },
23
- "license": "MIT",
24
- "dependencies": {
25
- "@codemirror/autocomplete": "^6.19.1",
26
- "@codemirror/lang-json": "^6.0.2",
27
- "@codemirror/language": "^6.11.3",
28
- "@codemirror/state": "^6.5.2",
29
- "@codemirror/view": "^6.38.8",
30
- "@lezer/highlight": "^1.2.1",
31
- "classnames": "^2.5.1",
32
- "codemirror": "^6.0.2",
33
- "events": "^3.3.0",
34
- "min-dash": "^4.2.3"
35
- },
36
- "devDependencies": {
37
- "@babel/core": "^7.28.0",
38
- "@babel/preset-env": "^7.28.0",
39
- "@babel/preset-react": "^7.27.1",
40
- "@bpmn-io/variable-resolver": "^1.3.6",
41
- "@camunda8/sdk": "^8.8.3",
42
- "@carbon/icons-react": "^11.62.0",
43
- "@carbon/react": "^1.76.0",
44
- "@eslint/js": "^9.31.0",
45
- "@testing-library/react": "^16.3.0",
46
- "@testing-library/user-event": "^14.6.1",
47
- "@types/codemirror": "^5.60.16",
48
- "@types/react": "^19.1.12",
49
- "babel-loader": "^10.0.0",
50
- "bpmn-js-element-templates": "^2.15.1",
51
- "bpmn-js-headless": "^0.1.0",
52
- "bpmn-js-properties-panel": "^5.42.3",
53
- "camunda-bpmn-js": "^5.14.2",
54
- "chai": "^4.5.0",
55
- "css-loader": "^7.1.2",
56
- "dotenv": "^17.2.1",
57
- "eslint": "^9.31.0",
58
- "eslint-plugin-bpmn-io": "^2.2.0",
59
- "eslint-plugin-react-hooks": "^5.2.0",
60
- "eslint-plugin-react-refresh": "^0.4.20",
61
- "express": "^5.1.0",
62
- "html-webpack-plugin": "^5.6.3",
63
- "karma": "^6.4.4",
64
- "karma-chrome-launcher": "^3.2.0",
65
- "karma-env-preprocessor": "^0.1.1",
66
- "karma-mocha": "^2.0.1",
67
- "karma-sinon-chai": "^2.0.2",
68
- "karma-webpack": "^5.0.1",
69
- "mocha": "^11.7.1",
70
- "npm-run-all2": "^8.0.4",
71
- "open": "^10.2.0",
72
- "open-cli": "^8.0.0",
73
- "raw-loader": "^4.0.2",
74
- "react": "^18.3.1",
75
- "react-dom": "^18.3.1",
76
- "sass": "^1.89.2",
77
- "sass-loader": "^16.0.5",
78
- "sinon": "^17.0.1",
79
- "sinon-chai": "^3.7.0",
80
- "style-loader": "^4.0.0",
81
- "typescript": "^5.9.2",
82
- "webpack": "^5.100.1",
83
- "webpack-cli": "^6.0.1",
84
- "webpack-dev-server": "^5.2.2",
85
- "zeebe-bpmn-moddle": "^1.11.0"
86
- },
87
- "peerDependencies": {
88
- "camunda-bpmn-js": "*",
89
- "react": "*",
90
- "react-dom": "*"
91
- },
92
- "overrides": {
93
- "react-is": "^18.0.0"
94
- }
95
- }
1
+ {
2
+ "name": "@camunda/task-testing",
3
+ "version": "2.2.0",
4
+ "files": [
5
+ "dist"
6
+ ],
7
+ "main": "dist/index.js",
8
+ "types": "dist/types/index.d.ts",
9
+ "scripts": {
10
+ "all": "run-s lint types test build",
11
+ "open": "open-cli http://localhost:3000",
12
+ "start:server": "node demo/server.mjs",
13
+ "start:client": "webpack --watch --config webpack.demo.js",
14
+ "start": "run-p start:* open",
15
+ "dev": "npm test -- --auto-watch --no-single-run",
16
+ "build": "run-s build:webpack build:types",
17
+ "build:webpack": "webpack",
18
+ "build:watch": "webpack --watch",
19
+ "build:demo": "webpack --config webpack.demo.js",
20
+ "build:types": "tsc",
21
+ "test": "karma start karma.config.js",
22
+ "lint": "eslint .",
23
+ "types": "tsc --noEmit",
24
+ "prepare": "npm run build"
25
+ },
26
+ "license": "MIT",
27
+ "dependencies": {
28
+ "@codemirror/autocomplete": "^6.19.1",
29
+ "@codemirror/lang-json": "^6.0.2",
30
+ "@codemirror/language": "^6.11.3",
31
+ "@codemirror/state": "^6.5.2",
32
+ "@codemirror/view": "^6.38.8",
33
+ "@lezer/highlight": "^1.2.1",
34
+ "classnames": "^2.5.1",
35
+ "codemirror": "^6.0.2",
36
+ "events": "^3.3.0",
37
+ "min-dash": "^4.2.3"
38
+ },
39
+ "devDependencies": {
40
+ "@babel/core": "^7.28.0",
41
+ "@babel/preset-env": "^7.28.0",
42
+ "@babel/preset-react": "^7.27.1",
43
+ "@bpmn-io/variable-resolver": "^1.3.6",
44
+ "@camunda8/orchestration-cluster-api": "^8.8.4",
45
+ "@camunda8/sdk": "^8.8.3",
46
+ "@carbon/icons-react": "^11.62.0",
47
+ "@carbon/react": "^1.76.0",
48
+ "@eslint/js": "^9.31.0",
49
+ "@testing-library/react": "^16.3.0",
50
+ "@testing-library/user-event": "^14.6.1",
51
+ "@types/codemirror": "^5.60.16",
52
+ "@types/react": "^19.1.12",
53
+ "babel-loader": "^10.0.0",
54
+ "bpmn-js-element-templates": "^2.15.1",
55
+ "bpmn-js-headless": "^0.1.0",
56
+ "bpmn-js-properties-panel": "^5.42.3",
57
+ "camunda-bpmn-js": "^5.14.2",
58
+ "chai": "^4.5.0",
59
+ "css-loader": "^7.1.2",
60
+ "dotenv": "^17.2.1",
61
+ "eslint": "^9.31.0",
62
+ "eslint-plugin-bpmn-io": "^2.2.0",
63
+ "eslint-plugin-react-hooks": "^5.2.0",
64
+ "eslint-plugin-react-refresh": "^0.4.20",
65
+ "express": "^5.1.0",
66
+ "html-webpack-plugin": "^5.6.3",
67
+ "karma": "^6.4.4",
68
+ "karma-chrome-launcher": "^3.2.0",
69
+ "karma-env-preprocessor": "^0.1.1",
70
+ "karma-mocha": "^2.0.1",
71
+ "karma-sinon-chai": "^2.0.2",
72
+ "karma-webpack": "^5.0.1",
73
+ "mocha": "^11.7.1",
74
+ "npm-run-all2": "^8.0.4",
75
+ "open": "^10.2.0",
76
+ "open-cli": "^8.0.0",
77
+ "raw-loader": "^4.0.2",
78
+ "react": "^18.3.1",
79
+ "react-dom": "^18.3.1",
80
+ "sass": "^1.89.2",
81
+ "sass-loader": "^16.0.5",
82
+ "sinon": "^17.0.1",
83
+ "sinon-chai": "^3.7.0",
84
+ "style-loader": "^4.0.0",
85
+ "typescript": "^5.9.2",
86
+ "webpack": "^5.100.1",
87
+ "webpack-cli": "^6.0.1",
88
+ "webpack-dev-server": "^5.2.2",
89
+ "zeebe-bpmn-moddle": "^1.11.0"
90
+ },
91
+ "peerDependencies": {
92
+ "camunda-bpmn-js": "*",
93
+ "react": "*",
94
+ "react-dom": "*"
95
+ },
96
+ "overrides": {
97
+ "react-is": "^18.0.0"
98
+ }
99
+ }