@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.
@@ -534,6 +534,7 @@ select.bio-properties-panel-input {
534
534
  padding: 4px 6px;
535
535
  }
536
536
 
537
+ .bio-properties-panel code,
537
538
  .bio-properties-panel-input-monospace {
538
539
  font-family: var(--font-family-monospace);
539
540
  }
package/dist/index.esm.js CHANGED
@@ -7,7 +7,7 @@ import classnames from 'classnames';
7
7
  import { query, domify } from 'min-dom';
8
8
  import { EditorView, highlightSpecialChars, drawSelection, keymap, placeholder, lineNumbers } from '@codemirror/view';
9
9
  import { Annotation, EditorState } from '@codemirror/state';
10
- import { syntaxHighlighting, foldGutter, bracketMatching, defaultHighlightStyle, foldKeymap } from '@codemirror/language';
10
+ import { syntaxHighlighting, defaultHighlightStyle, foldGutter, bracketMatching, foldKeymap } from '@codemirror/language';
11
11
  import { closeBrackets, closeBracketsKeymap } from '@codemirror/autocomplete';
12
12
  import { history, defaultKeymap, historyKeymap } from '@codemirror/commands';
13
13
  import { jsonParseLinter, json } from '@codemirror/lang-json';
@@ -895,7 +895,6 @@ function Group(props) {
895
895
  value: props.tooltip,
896
896
  forId: 'group-' + id,
897
897
  element: element,
898
- parent: groupRef,
899
898
  children: label
900
899
  })
901
900
  }), jsxs("div", {
@@ -994,7 +993,7 @@ const DEFAULT_TOOLTIP = {};
994
993
  * autoOpen?: Boolean,
995
994
  * entries: Array<EntryDefinition>,
996
995
  * id: String,
997
- * label: String,
996
+ * label: String|import('preact').ComponentChildren,
998
997
  * remove: (event: MouseEvent) => void
999
998
  * } } ListItemDefinition
1000
999
  *
@@ -1047,9 +1046,12 @@ const DEFAULT_TOOLTIP = {};
1047
1046
  * A basic properties panel component. Describes *how* content will be rendered, accepts
1048
1047
  * data from implementor to describe *what* will be rendered.
1049
1048
  *
1049
+ * If `headerProvider` is omitted (or `null`), the built-in `<Header>` is not rendered;
1050
+ * consumers can render `<Header>` standalone elsewhere using the same provider shape.
1051
+ *
1050
1052
  * @param {Object} props
1051
1053
  * @param {Object|Array} props.element
1052
- * @param {import('./components/Header').HeaderProvider} props.headerProvider
1054
+ * @param {import('./components/Header').HeaderProvider} [props.headerProvider]
1053
1055
  * @param {PlaceholderProvider} [props.placeholderProvider]
1054
1056
  * @param {Array<GroupDefinition|ListGroupDefinition>} props.groups
1055
1057
  * @param {Object} [props.layoutConfig]
@@ -1178,10 +1180,10 @@ function PropertiesPanel(props) {
1178
1180
  value: eventContext,
1179
1181
  children: jsxs("div", {
1180
1182
  class: "bio-properties-panel",
1181
- children: [jsx(Header, {
1183
+ children: [headerProvider ? jsx(Header, {
1182
1184
  element: element,
1183
1185
  headerProvider: headerProvider
1184
- }), jsx("div", {
1186
+ }) : null, jsx("div", {
1185
1187
  class: "bio-properties-panel-scroll-container",
1186
1188
  children: groups.map(group => {
1187
1189
  const {
@@ -1554,7 +1556,6 @@ function ListGroup(props) {
1554
1556
  value: props.tooltip,
1555
1557
  forId: 'group-' + id,
1556
1558
  element: element,
1557
- parent: groupRef,
1558
1559
  children: label
1559
1560
  })
1560
1561
  }), jsxs("div", {
@@ -3638,7 +3639,7 @@ function prefixIdLabel(id) {
3638
3639
  * @param {*} props.element
3639
3640
  * @param {Function} props.onAdd
3640
3641
  * @param {import('preact').Component} props.component
3641
- * @param {string} [props.label='<empty>']
3642
+ * @param {string|import('preact').ComponentChildren} [props.label='<empty>']
3642
3643
  * @param {Function} [props.onRemove]
3643
3644
  * @param {Item[]} [props.items]
3644
3645
  * @param {boolean} [props.open]