camunda-bpmn-js 4.3.2 → 4.3.3
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 +5 -0
- package/dist/base-modeler.development.js +5 -1
- package/dist/base-modeler.production.min.js +2 -2
- package/dist/camunda-cloud-modeler.development.js +61 -54
- package/dist/camunda-cloud-modeler.production.min.js +2 -2
- package/dist/camunda-platform-modeler.development.js +44 -40
- package/dist/camunda-platform-modeler.production.min.js +2 -2
- package/lib/base/Modeler.d.ts +15 -15
- package/lib/base/NavigatedViewer.d.ts +2 -2
- package/lib/base/Viewer.d.ts +2 -2
- package/lib/camunda-cloud/ElementTemplatesValidator.d.ts +1 -1
- package/lib/camunda-cloud/Modeler.d.ts +3 -3
- package/lib/camunda-cloud/Modeler.js +84 -84
- package/lib/camunda-cloud/NavigatedViewer.d.ts +3 -3
- package/lib/camunda-cloud/Viewer.d.ts +3 -3
- package/lib/camunda-cloud/util/commonModules.d.ts +9 -9
- package/lib/camunda-platform/Modeler.d.ts +3 -3
- package/lib/camunda-platform/Modeler.js +68 -68
- package/lib/camunda-platform/NavigatedViewer.d.ts +5 -5
- package/lib/camunda-platform/Viewer.d.ts +5 -5
- package/lib/camunda-platform/util/commonModules.d.ts +9 -9
- package/lib/util/ExtensionElementsUtil.d.ts +24 -24
- package/package.json +140 -140
|
@@ -107323,6 +107323,7 @@
|
|
|
107323
107323
|
function FeelEditor({
|
|
107324
107324
|
extensions: editorExtensions = [],
|
|
107325
107325
|
container,
|
|
107326
|
+
contentAttributes = {},
|
|
107326
107327
|
tooltipContainer,
|
|
107327
107328
|
onChange = () => {},
|
|
107328
107329
|
onKeyDown = () => {},
|
|
@@ -107374,6 +107375,7 @@
|
|
|
107374
107375
|
bracketMatching(),
|
|
107375
107376
|
changeHandler,
|
|
107376
107377
|
closeBrackets(),
|
|
107378
|
+
EditorView.contentAttributes.of(contentAttributes),
|
|
107377
107379
|
indentOnInput(),
|
|
107378
107380
|
keyHandler,
|
|
107379
107381
|
keymap.of([
|
|
@@ -109864,6 +109866,7 @@
|
|
|
109864
109866
|
};
|
|
109865
109867
|
const CodeEditor = N((props, ref) => {
|
|
109866
109868
|
const {
|
|
109869
|
+
contentAttributes,
|
|
109867
109870
|
enableGutters,
|
|
109868
109871
|
value,
|
|
109869
109872
|
onInput,
|
|
@@ -109909,7 +109912,8 @@
|
|
|
109909
109912
|
tooltipContainer: tooltipContainer,
|
|
109910
109913
|
value: localValue,
|
|
109911
109914
|
variables: variables,
|
|
109912
|
-
extensions: [...(enableGutters ? [lineNumbers()] : []), EditorView.lineWrapping]
|
|
109915
|
+
extensions: [...(enableGutters ? [lineNumbers()] : []), EditorView.lineWrapping],
|
|
109916
|
+
contentAttributes
|
|
109913
109917
|
});
|
|
109914
109918
|
setEditor(editor);
|
|
109915
109919
|
return () => {
|
|
@@ -110999,9 +111003,12 @@
|
|
|
110999
111003
|
disabled: feel !== 'optional' || disabled,
|
|
111000
111004
|
onClick: handleFeelToggle
|
|
111001
111005
|
}), feelActive ? u(CodeEditor, {
|
|
111002
|
-
id: prefixId$5(id),
|
|
111003
111006
|
name: id,
|
|
111004
111007
|
onInput: handleLocalInput,
|
|
111008
|
+
contentAttributes: {
|
|
111009
|
+
'id': prefixId$5(id),
|
|
111010
|
+
'aria-label': label
|
|
111011
|
+
},
|
|
111005
111012
|
disabled: disabled,
|
|
111006
111013
|
popupOpen: popuOpen,
|
|
111007
111014
|
onFeelToggle: () => {
|
|
@@ -160272,58 +160279,58 @@
|
|
|
160272
160279
|
]
|
|
160273
160280
|
};
|
|
160274
160281
|
|
|
160275
|
-
/**
|
|
160276
|
-
* @typedef {import('bpmn-js/lib/BaseViewer').BaseViewerOptions} BaseViewerOptions
|
|
160277
|
-
*/
|
|
160278
|
-
|
|
160279
|
-
/**
|
|
160280
|
-
* @param {BaseViewerOptions} options
|
|
160281
|
-
*/
|
|
160282
|
-
function Modeler(options = {}) {
|
|
160283
|
-
|
|
160284
|
-
options = {
|
|
160285
|
-
...options,
|
|
160286
|
-
moddleExtensions: {
|
|
160287
|
-
...commonModdleExtensions,
|
|
160288
|
-
...options.moddleExtensions
|
|
160289
|
-
},
|
|
160290
|
-
propertiesPanel: {
|
|
160291
|
-
tooltip: TooltipProvider$1,
|
|
160292
|
-
...options.propertiesPanel
|
|
160293
|
-
}
|
|
160294
|
-
};
|
|
160295
|
-
|
|
160296
|
-
this._addElementTemplateChooserModule(options);
|
|
160297
|
-
|
|
160298
|
-
Modeler$1.call(this, options);
|
|
160299
|
-
}
|
|
160300
|
-
|
|
160301
|
-
e$7(Modeler, Modeler$1);
|
|
160302
|
-
|
|
160303
|
-
Modeler.prototype._addElementTemplateChooserModule = function(options) {
|
|
160304
|
-
const { elementTemplateChooser } = options;
|
|
160305
|
-
|
|
160306
|
-
if (elementTemplateChooser !== false) {
|
|
160307
|
-
this._modules = [ ...this._modules, index$2 ];
|
|
160308
|
-
}
|
|
160309
|
-
};
|
|
160310
|
-
|
|
160311
|
-
Modeler.prototype._camundaCloudModules = [
|
|
160312
|
-
...commonModules,
|
|
160313
|
-
behaviorsModule,
|
|
160314
|
-
index$1$2,
|
|
160315
|
-
index$1$1,
|
|
160316
|
-
index$1,
|
|
160317
|
-
index,
|
|
160318
|
-
colorPickerModule,
|
|
160319
|
-
ZeebeVariableResolverModule,
|
|
160320
|
-
exampleDataPropertiesProviderModule,
|
|
160321
|
-
index$3
|
|
160322
|
-
];
|
|
160323
|
-
|
|
160324
|
-
Modeler.prototype._modules = [].concat(
|
|
160325
|
-
Modeler$1.prototype._modules,
|
|
160326
|
-
Modeler.prototype._camundaCloudModules
|
|
160282
|
+
/**
|
|
160283
|
+
* @typedef {import('bpmn-js/lib/BaseViewer').BaseViewerOptions} BaseViewerOptions
|
|
160284
|
+
*/
|
|
160285
|
+
|
|
160286
|
+
/**
|
|
160287
|
+
* @param {BaseViewerOptions} options
|
|
160288
|
+
*/
|
|
160289
|
+
function Modeler(options = {}) {
|
|
160290
|
+
|
|
160291
|
+
options = {
|
|
160292
|
+
...options,
|
|
160293
|
+
moddleExtensions: {
|
|
160294
|
+
...commonModdleExtensions,
|
|
160295
|
+
...options.moddleExtensions
|
|
160296
|
+
},
|
|
160297
|
+
propertiesPanel: {
|
|
160298
|
+
tooltip: TooltipProvider$1,
|
|
160299
|
+
...options.propertiesPanel
|
|
160300
|
+
}
|
|
160301
|
+
};
|
|
160302
|
+
|
|
160303
|
+
this._addElementTemplateChooserModule(options);
|
|
160304
|
+
|
|
160305
|
+
Modeler$1.call(this, options);
|
|
160306
|
+
}
|
|
160307
|
+
|
|
160308
|
+
e$7(Modeler, Modeler$1);
|
|
160309
|
+
|
|
160310
|
+
Modeler.prototype._addElementTemplateChooserModule = function(options) {
|
|
160311
|
+
const { elementTemplateChooser } = options;
|
|
160312
|
+
|
|
160313
|
+
if (elementTemplateChooser !== false) {
|
|
160314
|
+
this._modules = [ ...this._modules, index$2 ];
|
|
160315
|
+
}
|
|
160316
|
+
};
|
|
160317
|
+
|
|
160318
|
+
Modeler.prototype._camundaCloudModules = [
|
|
160319
|
+
...commonModules,
|
|
160320
|
+
behaviorsModule,
|
|
160321
|
+
index$1$2,
|
|
160322
|
+
index$1$1,
|
|
160323
|
+
index$1,
|
|
160324
|
+
index,
|
|
160325
|
+
colorPickerModule,
|
|
160326
|
+
ZeebeVariableResolverModule,
|
|
160327
|
+
exampleDataPropertiesProviderModule,
|
|
160328
|
+
index$3
|
|
160329
|
+
];
|
|
160330
|
+
|
|
160331
|
+
Modeler.prototype._modules = [].concat(
|
|
160332
|
+
Modeler$1.prototype._modules,
|
|
160333
|
+
Modeler.prototype._camundaCloudModules
|
|
160327
160334
|
);
|
|
160328
160335
|
|
|
160329
160336
|
return Modeler;
|