@bpmnkit/plugins 0.0.32 → 0.1.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.
- package/README.md +3 -1
- package/dist/ai-bridge/panel.js +6 -4
- package/dist/command-palette/index.d.ts +1 -1
- package/dist/command-palette/index.js +17 -17
- package/dist/config-panel-bpmn/index.d.ts +2 -2
- package/dist/config-panel-bpmn/index.js +2 -2
- package/dist/config-panel-bpmn/template-engine.d.ts +1 -1
- package/dist/config-panel-bpmn/template-to-service-task.d.ts +6 -2
- package/dist/config-panel-bpmn/template-to-service-task.js +10 -67
- package/dist/config-panel-bpmn/util.js +29 -1
- package/dist/connector-catalog/builtin-templates.d.ts +1 -1
- package/dist/connector-catalog/panel.d.ts +1 -1
- package/dist/storage/auto-save.d.ts +3 -1
- package/dist/storage/auto-save.js +5 -2
- package/dist/storage/index.js +2 -2
- package/dist/storage/storage-api.d.ts +2 -1
- package/dist/tabs/tabs-plugin.js +10 -6
- package/dist/token-highlight/index.js +1 -1
- package/package.json +8 -7
- package/dist/config-panel-bpmn/template-types.d.ts +0 -126
- package/dist/config-panel-bpmn/template-types.js +0 -6
- package/dist/config-panel-bpmn/templates/generated.d.ts +0 -3
- package/dist/config-panel-bpmn/templates/generated.js +0 -57865
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TypeScript types matching the Camunda element template JSON schema.
|
|
3
|
-
* https://github.com/camunda/element-templates-json-schema
|
|
4
|
-
*/
|
|
5
|
-
export interface ElementTemplate {
|
|
6
|
-
/** Unique template identifier (reverse-domain, e.g. "io.camunda.connectors.HttpJson.v2"). */
|
|
7
|
-
id: string;
|
|
8
|
-
/** Display name shown in the template catalog. */
|
|
9
|
-
name: string;
|
|
10
|
-
/** Short description. */
|
|
11
|
-
description?: string;
|
|
12
|
-
/** Integer version; templates with the same id + different version are distinct. */
|
|
13
|
-
version?: number;
|
|
14
|
-
/** BPMN element types this template applies to (e.g. "bpmn:ServiceTask", "bpmn:Task"). */
|
|
15
|
-
appliesTo: string[];
|
|
16
|
-
/** Forces the element to be converted to this type on apply. */
|
|
17
|
-
elementType?: {
|
|
18
|
-
value: string;
|
|
19
|
-
};
|
|
20
|
-
/** UI section definitions (collapsible groups). */
|
|
21
|
-
groups?: TemplateGroup[];
|
|
22
|
-
/** All property definitions. */
|
|
23
|
-
properties: TemplateProperty[];
|
|
24
|
-
/** Link to external documentation. */
|
|
25
|
-
documentationRef?: string;
|
|
26
|
-
/** Custom icon: { contents: "data:image/svg+xml;base64,..." } */
|
|
27
|
-
icon?: {
|
|
28
|
-
contents: string;
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
export interface TemplateGroup {
|
|
32
|
-
id: string;
|
|
33
|
-
label: string;
|
|
34
|
-
tooltip?: string;
|
|
35
|
-
openByDefault?: boolean;
|
|
36
|
-
}
|
|
37
|
-
export interface TemplateProperty {
|
|
38
|
-
/** Unique key used in condition references. Falls back to binding name if absent. */
|
|
39
|
-
id?: string;
|
|
40
|
-
/** Label shown above the input. Hidden properties have no label. */
|
|
41
|
-
label?: string;
|
|
42
|
-
/** Hint text shown below the input. */
|
|
43
|
-
description?: string;
|
|
44
|
-
/** UI control type. */
|
|
45
|
-
type: "String" | "Text" | "Hidden" | "Dropdown" | "Boolean" | "Number";
|
|
46
|
-
/** Default value applied when the template is first used. */
|
|
47
|
-
value?: string | number | boolean;
|
|
48
|
-
/** Placeholder text. */
|
|
49
|
-
placeholder?: string;
|
|
50
|
-
/** If true, empty values are not written to the BPMN XML. */
|
|
51
|
-
optional?: boolean;
|
|
52
|
-
/** FEEL expression mode (only relevant for String/Text). */
|
|
53
|
-
feel?: "optional" | "required" | "static";
|
|
54
|
-
/** Which template group this property belongs to. */
|
|
55
|
-
group?: string;
|
|
56
|
-
/** Tooltip text. */
|
|
57
|
-
tooltip?: string;
|
|
58
|
-
/** How this property maps to the BPMN XML. */
|
|
59
|
-
binding: TemplateBinding;
|
|
60
|
-
/** Conditional visibility. */
|
|
61
|
-
condition?: TemplateCondition;
|
|
62
|
-
/** Required for Dropdown type. */
|
|
63
|
-
choices?: Array<{
|
|
64
|
-
name: string;
|
|
65
|
-
value: string;
|
|
66
|
-
}>;
|
|
67
|
-
/** Validation constraints. */
|
|
68
|
-
constraints?: {
|
|
69
|
-
notEmpty?: boolean;
|
|
70
|
-
minLength?: number;
|
|
71
|
-
maxLength?: number;
|
|
72
|
-
pattern?: string | {
|
|
73
|
-
value: string;
|
|
74
|
-
message: string;
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
/** All supported binding types. */
|
|
79
|
-
export type TemplateBinding = {
|
|
80
|
-
type: "property";
|
|
81
|
-
name: string;
|
|
82
|
-
}
|
|
83
|
-
/** @deprecated Use zeebe:taskDefinition with property field instead. */
|
|
84
|
-
| {
|
|
85
|
-
type: "zeebe:taskDefinition:type";
|
|
86
|
-
} | {
|
|
87
|
-
type: "zeebe:taskDefinition";
|
|
88
|
-
property: "type" | "retries";
|
|
89
|
-
} | {
|
|
90
|
-
type: "zeebe:input";
|
|
91
|
-
name: string;
|
|
92
|
-
} | {
|
|
93
|
-
type: "zeebe:output";
|
|
94
|
-
source: string;
|
|
95
|
-
} | {
|
|
96
|
-
type: "zeebe:taskHeader";
|
|
97
|
-
key: string;
|
|
98
|
-
} | {
|
|
99
|
-
type: "zeebe:property";
|
|
100
|
-
name: string;
|
|
101
|
-
} | {
|
|
102
|
-
type: "zeebe:adHoc";
|
|
103
|
-
property: "outputCollection" | "outputElement" | "activeElementsCollection";
|
|
104
|
-
};
|
|
105
|
-
/** Condition controlling whether a property is shown in the UI. */
|
|
106
|
-
export type TemplateCondition = {
|
|
107
|
-
property: string;
|
|
108
|
-
equals: string;
|
|
109
|
-
type?: string;
|
|
110
|
-
} | {
|
|
111
|
-
property: string;
|
|
112
|
-
oneOf: string[];
|
|
113
|
-
type?: string;
|
|
114
|
-
} | {
|
|
115
|
-
property: string;
|
|
116
|
-
isActive: boolean;
|
|
117
|
-
type?: string;
|
|
118
|
-
} | {
|
|
119
|
-
allMatch: Array<{
|
|
120
|
-
property: string;
|
|
121
|
-
equals?: string;
|
|
122
|
-
oneOf?: string[];
|
|
123
|
-
isActive?: boolean;
|
|
124
|
-
}>;
|
|
125
|
-
};
|
|
126
|
-
//# sourceMappingURL=template-types.d.ts.map
|