vim-web 0.3.44-dev.59 → 0.3.44-dev.60

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.
@@ -1,9 +1,8 @@
1
- import { ReactElement } from 'react';
2
1
  import { IControlBarButtonItem } from './controlBarButton';
3
2
  export interface IControlBarSection {
4
3
  id: string;
5
4
  enable?: (() => boolean) | undefined;
6
- buttons: (IControlBarButtonItem | ReactElement)[];
5
+ buttons: (IControlBarButtonItem)[];
7
6
  style?: string;
8
7
  }
9
8
  export declare function createSection(section: IControlBarSection): import("react/jsx-runtime").JSX.Element;
@@ -67328,15 +67328,7 @@ Averrage Date/Second ${avgDataRatePS} kb
67328
67328
  }
67329
67329
  function createSection$1(section) {
67330
67330
  if (section.enable !== void 0 && !section.enable()) return null;
67331
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `vim-control-bar-section ${section.style ?? sectionDefaultStyle}`, children: section.buttons.map((b) => {
67332
- if (React2.isValidElement(b)) {
67333
- return b;
67334
- }
67335
- if (isControlBarButtonItem(b)) {
67336
- return createButton(b);
67337
- }
67338
- return null;
67339
- }) }, section.id);
67331
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `vim-control-bar-section ${section.style ?? sectionDefaultStyle}`, children: section.buttons.map((b) => createButton(b)) }, section.id);
67340
67332
  }
67341
67333
  function ControlBar(props) {
67342
67334
  React2.useEffect(() => {