@oliasoft-open-source/react-ui-library 3.9.7 → 3.9.9

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/index.js CHANGED
@@ -54791,9 +54791,9 @@ const RichTextInput = forwardRef(
54791
54791
  });
54792
54792
  useImperativeHandle(ref2, () => getContext2(), [getContext2]);
54793
54793
  const handleChange = ({ helpers, state: state2 }) => {
54794
- const markdown = helpers.getMarkdown();
54795
- setState(state2);
54794
+ const markdown = helpers.getMarkdown(state2);
54796
54795
  onChange(markdown);
54796
+ setState(state2);
54797
54797
  };
54798
54798
  return /* @__PURE__ */ jsx("div", {
54799
54799
  className: styles$e.richTextInput,
@@ -72430,6 +72430,7 @@ const Tree = ({
72430
72430
  list: list2,
72431
72431
  draggable: draggable2,
72432
72432
  onListReorder,
72433
+ onChangeOpen,
72433
72434
  testId,
72434
72435
  isInitialOpen,
72435
72436
  treeRef
@@ -72439,6 +72440,11 @@ const Tree = ({
72439
72440
  onListReorder(newTree);
72440
72441
  }
72441
72442
  };
72443
+ const handleOpen = (id2) => {
72444
+ if (onListReorder) {
72445
+ onChangeOpen(id2);
72446
+ }
72447
+ };
72442
72448
  return /* @__PURE__ */ jsxs("div", {
72443
72449
  "data-testid": testId,
72444
72450
  children: [
@@ -72474,6 +72480,7 @@ const Tree = ({
72474
72480
  });
72475
72481
  },
72476
72482
  onDrop: handleDrop,
72483
+ onChangeOpen: handleOpen,
72477
72484
  dropTargetOffset: 5,
72478
72485
  placeholderRender: (node, { depth }) => /* @__PURE__ */ jsx(TreePlaceholder, {
72479
72486
  depth