camunda-bpmn-js 4.4.1 → 4.5.1

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.
@@ -123975,11 +123975,34 @@
123975
123975
  })]
123976
123976
  });
123977
123977
  },
123978
+ 'group-userTaskImplementation': element => {
123979
+ const translate = useService$1('translate');
123980
+ return u("div", {
123981
+ children: [translate('Implement a user task managed by Zeebe. To add a custom implementation, use a job worker. '), u("a", {
123982
+ href: "https://docs.camunda.io/docs/components/modeler/bpmn/user-tasks/#define-a-user-task",
123983
+ target: "_blank",
123984
+ rel: "noopener",
123985
+ title: translate('User task documentation'),
123986
+ children: translate('Learn more.')
123987
+ })]
123988
+ });
123989
+ },
123978
123990
  'group-form': element => {
123979
123991
  const translate = useService$1('translate');
123992
+ if (isZeebeUserTask(element)) {
123993
+ return u("div", {
123994
+ children: [translate('Link a form created with the Camunda Forms editor. To associate a custom form, application, or URL to the user task, specify an external reference. '), u("a", {
123995
+ href: "https://docs.camunda.io/docs/guides/utilizing-forms/#link-your-form-to-a-bpmn-diagram",
123996
+ target: "_blank",
123997
+ rel: "noopener",
123998
+ title: translate('User task form documentation'),
123999
+ children: translate('Learn more.')
124000
+ })]
124001
+ });
124002
+ }
123980
124003
  return u("div", {
123981
124004
  children: [translate('Link or embed a form created with the Camunda Forms editor. To associate a custom form, application, or URL to the user task, specify a form key. '), u("a", {
123982
- href: "https://docs.camunda.io/docs/guides/utilizing-forms/#connect-your-form-to-a-bpmn-diagram",
124005
+ href: "https://docs.camunda.io/docs/guides/utilizing-forms/#link-your-form-to-a-bpmn-diagram",
123983
124006
  target: "_blank",
123984
124007
  rel: "noopener",
123985
124008
  title: translate('User task form documentation'),
@@ -136356,7 +136379,10 @@
136356
136379
  }
136357
136380
 
136358
136381
  try {
136359
- JSON.parse(value);
136382
+ const parsed = JSON.parse(value);
136383
+ if (!isObject$5(parsed)) {
136384
+ return translate('Example data must be a JSON object literal.');
136385
+ }
136360
136386
  }
136361
136387
  catch (e) {
136362
136388
  return e.message;