@lvce-editor/extension-detail-view 7.23.1 → 7.23.2

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.
@@ -5745,6 +5745,12 @@ const replaceMarkdownImageWithError = (dom, failedSrc) => {
5745
5745
  const newDom = [];
5746
5746
  for (const node of dom) {
5747
5747
  if (node.type === Img && isMatchingImageSrc(node.src, failedSrc)) {
5748
+ if (node.childCount > 0) {
5749
+ newDom.push({
5750
+ childCount: node.childCount + 1,
5751
+ type: Span
5752
+ });
5753
+ }
5748
5754
  newDom.push(...getMarkdownImageErrorVirtualDom());
5749
5755
  replaced = true;
5750
5756
  } else {
@@ -6806,11 +6812,12 @@ const getExtensionDetailHeaderActionsVirtualDom = (buttonDefs, settingsButtonEna
6806
6812
  const enabledButtons = buttonDefs.filter(btn => btn.enabled);
6807
6813
  const buttons = enabledButtons.flatMap(btn => getButtonVirtualDom(btn.label, btn.onClick, btn.name, btn.onMouseEnter, btn.onMouseLeave));
6808
6814
  const settingsButton = getSettingsButtonVirtualDom(settingsButtonEnabled);
6815
+ const children = [...buttons, ...settingsButton];
6809
6816
  const dom = [{
6810
- childCount: enabledButtons.length + settingsButton.length,
6817
+ childCount: getVirtualDomChildCount(children),
6811
6818
  className: ExtensionDetailHeaderActions,
6812
6819
  type: Div
6813
- }, ...buttons, ...settingsButton];
6820
+ }, ...children];
6814
6821
  return dom;
6815
6822
  };
6816
6823
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/extension-detail-view",
3
- "version": "7.23.1",
3
+ "version": "7.23.2",
4
4
  "description": "Extension Detail View Worker",
5
5
  "repository": {
6
6
  "type": "git",