@bpmn-io/properties-panel 3.41.3 → 3.43.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/assets/properties-panel.css +1 -0
- package/dist/index.esm.js +9 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +8 -7
- package/dist/index.js.map +1 -1
- package/package.json +15 -16
- package/preact/compat/client.d.ts +13 -0
- package/preact/compat/src/hooks.js +67 -0
- package/preact/compat/test-utils.mjs +1 -0
- package/preact/src/dom.d.ts +2548 -0
- package/preact/src/index-5.d.ts +399 -0
package/dist/index.js
CHANGED
|
@@ -916,7 +916,6 @@ function Group(props) {
|
|
|
916
916
|
value: props.tooltip,
|
|
917
917
|
forId: 'group-' + id,
|
|
918
918
|
element: element,
|
|
919
|
-
parent: groupRef,
|
|
920
919
|
children: label
|
|
921
920
|
})
|
|
922
921
|
}), jsxRuntime.jsxs("div", {
|
|
@@ -1015,7 +1014,7 @@ const DEFAULT_TOOLTIP = {};
|
|
|
1015
1014
|
* autoOpen?: Boolean,
|
|
1016
1015
|
* entries: Array<EntryDefinition>,
|
|
1017
1016
|
* id: String,
|
|
1018
|
-
* label: String,
|
|
1017
|
+
* label: String|import('preact').ComponentChildren,
|
|
1019
1018
|
* remove: (event: MouseEvent) => void
|
|
1020
1019
|
* } } ListItemDefinition
|
|
1021
1020
|
*
|
|
@@ -1068,9 +1067,12 @@ const DEFAULT_TOOLTIP = {};
|
|
|
1068
1067
|
* A basic properties panel component. Describes *how* content will be rendered, accepts
|
|
1069
1068
|
* data from implementor to describe *what* will be rendered.
|
|
1070
1069
|
*
|
|
1070
|
+
* If `headerProvider` is omitted (or `null`), the built-in `<Header>` is not rendered;
|
|
1071
|
+
* consumers can render `<Header>` standalone elsewhere using the same provider shape.
|
|
1072
|
+
*
|
|
1071
1073
|
* @param {Object} props
|
|
1072
1074
|
* @param {Object|Array} props.element
|
|
1073
|
-
* @param {import('./components/Header').HeaderProvider} props.headerProvider
|
|
1075
|
+
* @param {import('./components/Header').HeaderProvider} [props.headerProvider]
|
|
1074
1076
|
* @param {PlaceholderProvider} [props.placeholderProvider]
|
|
1075
1077
|
* @param {Array<GroupDefinition|ListGroupDefinition>} props.groups
|
|
1076
1078
|
* @param {Object} [props.layoutConfig]
|
|
@@ -1199,10 +1201,10 @@ function PropertiesPanel(props) {
|
|
|
1199
1201
|
value: eventContext,
|
|
1200
1202
|
children: jsxRuntime.jsxs("div", {
|
|
1201
1203
|
class: "bio-properties-panel",
|
|
1202
|
-
children: [jsxRuntime.jsx(Header, {
|
|
1204
|
+
children: [headerProvider ? jsxRuntime.jsx(Header, {
|
|
1203
1205
|
element: element,
|
|
1204
1206
|
headerProvider: headerProvider
|
|
1205
|
-
}), jsxRuntime.jsx("div", {
|
|
1207
|
+
}) : null, jsxRuntime.jsx("div", {
|
|
1206
1208
|
class: "bio-properties-panel-scroll-container",
|
|
1207
1209
|
children: groups.map(group => {
|
|
1208
1210
|
const {
|
|
@@ -1575,7 +1577,6 @@ function ListGroup(props) {
|
|
|
1575
1577
|
value: props.tooltip,
|
|
1576
1578
|
forId: 'group-' + id,
|
|
1577
1579
|
element: element,
|
|
1578
|
-
parent: groupRef,
|
|
1579
1580
|
children: label
|
|
1580
1581
|
})
|
|
1581
1582
|
}), jsxRuntime.jsxs("div", {
|
|
@@ -3659,7 +3660,7 @@ function prefixIdLabel(id) {
|
|
|
3659
3660
|
* @param {*} props.element
|
|
3660
3661
|
* @param {Function} props.onAdd
|
|
3661
3662
|
* @param {import('preact').Component} props.component
|
|
3662
|
-
* @param {string} [props.label='<empty>']
|
|
3663
|
+
* @param {string|import('preact').ComponentChildren} [props.label='<empty>']
|
|
3663
3664
|
* @param {Function} [props.onRemove]
|
|
3664
3665
|
* @param {Item[]} [props.items]
|
|
3665
3666
|
* @param {boolean} [props.open]
|