camunda-bpmn-js 4.12.1 → 4.13.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/dist/base-modeler.development.js +22 -0
- package/dist/base-modeler.production.min.js +1 -1
- package/dist/camunda-cloud-modeler.development.js +25 -2
- package/dist/camunda-cloud-modeler.production.min.js +1 -1
- package/dist/camunda-platform-modeler.development.js +25 -2
- package/dist/camunda-platform-modeler.production.min.js +1 -1
- package/package.json +3 -3
|
@@ -108432,6 +108432,24 @@
|
|
|
108432
108432
|
return T$2((...args) => callbackRef.current(...args), []);
|
|
108433
108433
|
}
|
|
108434
108434
|
|
|
108435
|
+
function useElementVisible(element) {
|
|
108436
|
+
const [visible, setVisible] = h(!!element && !!element.clientHeight);
|
|
108437
|
+
y(() => {
|
|
108438
|
+
if (!element) return;
|
|
108439
|
+
const resizeObserver = new ResizeObserver(([entry]) => {
|
|
108440
|
+
requestAnimationFrame(() => {
|
|
108441
|
+
const newVisible = !!entry.contentRect.height;
|
|
108442
|
+
if (newVisible !== visible) {
|
|
108443
|
+
setVisible(newVisible);
|
|
108444
|
+
}
|
|
108445
|
+
});
|
|
108446
|
+
});
|
|
108447
|
+
resizeObserver.observe(element);
|
|
108448
|
+
return () => resizeObserver.disconnect();
|
|
108449
|
+
}, [element, visible]);
|
|
108450
|
+
return visible;
|
|
108451
|
+
}
|
|
108452
|
+
|
|
108435
108453
|
function Group$1(props) {
|
|
108436
108454
|
const {
|
|
108437
108455
|
element,
|
|
@@ -111291,6 +111309,7 @@
|
|
|
111291
111309
|
} = props;
|
|
111292
111310
|
const [localValue, setLocalValue] = h(value);
|
|
111293
111311
|
const ref = useShowEntryEvent(id);
|
|
111312
|
+
const visible = useElementVisible(ref.current);
|
|
111294
111313
|
const handleInputCallback = F$2(() => {
|
|
111295
111314
|
return debounce(target => onInput(target.value.length ? target.value : undefined));
|
|
111296
111315
|
}, [onInput, debounce]);
|
|
@@ -111302,6 +111321,9 @@
|
|
|
111302
111321
|
y(() => {
|
|
111303
111322
|
autoResize && resizeToContents(ref.current);
|
|
111304
111323
|
}, []);
|
|
111324
|
+
y(() => {
|
|
111325
|
+
visible && autoResize && resizeToContents(ref.current);
|
|
111326
|
+
}, [visible]);
|
|
111305
111327
|
p$1(() => {
|
|
111306
111328
|
if (value === localValue) {
|
|
111307
111329
|
return;
|
|
@@ -119573,13 +119595,14 @@
|
|
|
119573
119595
|
const getValue = header => {
|
|
119574
119596
|
return header.value;
|
|
119575
119597
|
};
|
|
119576
|
-
return
|
|
119598
|
+
return TextAreaEntry({
|
|
119577
119599
|
element: header,
|
|
119578
119600
|
id: idPrefix + '-value',
|
|
119579
119601
|
label: translate('Value'),
|
|
119580
119602
|
getValue,
|
|
119581
119603
|
setValue,
|
|
119582
|
-
debounce
|
|
119604
|
+
debounce,
|
|
119605
|
+
autoResize: true
|
|
119583
119606
|
});
|
|
119584
119607
|
}
|
|
119585
119608
|
|