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.
@@ -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;