@lvce-editor/extension-detail-view 7.23.0 → 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.
@@ -1306,7 +1306,8 @@ const getJsonValidationInfos = async (extensionUri, validations) => {
1306
1306
  });
1307
1307
  } else if (schemaLinkUrl) {
1308
1308
  // TODO maybe better use filesystem.exists
1309
- if (await existsJson(schemaLinkUrl)) {
1309
+ const isValid = schema.startsWith('https://') || (await existsJson(schemaLinkUrl));
1310
+ if (isValid) {
1310
1311
  validationInfos.push({
1311
1312
  errorMessage: '',
1312
1313
  fileMatch,
@@ -5744,6 +5745,12 @@ const replaceMarkdownImageWithError = (dom, failedSrc) => {
5744
5745
  const newDom = [];
5745
5746
  for (const node of dom) {
5746
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
+ }
5747
5754
  newDom.push(...getMarkdownImageErrorVirtualDom());
5748
5755
  replaced = true;
5749
5756
  } else {
@@ -6805,11 +6812,12 @@ const getExtensionDetailHeaderActionsVirtualDom = (buttonDefs, settingsButtonEna
6805
6812
  const enabledButtons = buttonDefs.filter(btn => btn.enabled);
6806
6813
  const buttons = enabledButtons.flatMap(btn => getButtonVirtualDom(btn.label, btn.onClick, btn.name, btn.onMouseEnter, btn.onMouseLeave));
6807
6814
  const settingsButton = getSettingsButtonVirtualDom(settingsButtonEnabled);
6815
+ const children = [...buttons, ...settingsButton];
6808
6816
  const dom = [{
6809
- childCount: enabledButtons.length + settingsButton.length,
6817
+ childCount: getVirtualDomChildCount(children),
6810
6818
  className: ExtensionDetailHeaderActions,
6811
6819
  type: Div
6812
- }, ...buttons, ...settingsButton];
6820
+ }, ...children];
6813
6821
  return dom;
6814
6822
  };
6815
6823
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/extension-detail-view",
3
- "version": "7.23.0",
3
+ "version": "7.23.2",
4
4
  "description": "Extension Detail View Worker",
5
5
  "repository": {
6
6
  "type": "git",