@lvce-editor/extension-detail-view 3.42.0 → 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.
|
@@ -2115,7 +2115,7 @@ const create = (uid, uri, x, y, width, height, platform, assetDir) => {
|
|
|
2115
2115
|
description: '',
|
|
2116
2116
|
detailsVirtualDom: [],
|
|
2117
2117
|
displaySize: '',
|
|
2118
|
-
|
|
2118
|
+
installationEntries: [],
|
|
2119
2119
|
extension: {},
|
|
2120
2120
|
extensionId: '',
|
|
2121
2121
|
extensionVersion: '',
|
|
@@ -2133,7 +2133,7 @@ const create = (uid, uri, x, y, width, height, platform, assetDir) => {
|
|
|
2133
2133
|
resources: [],
|
|
2134
2134
|
scrollSource: 0,
|
|
2135
2135
|
scrollToTopButtonEnabled: false,
|
|
2136
|
-
|
|
2136
|
+
marketplaceEntries: [],
|
|
2137
2137
|
selectedFeature: '',
|
|
2138
2138
|
selectedTab: '',
|
|
2139
2139
|
settings: [],
|
|
@@ -3049,10 +3049,9 @@ const loadContent = async (state, platform, savedState) => {
|
|
|
3049
3049
|
iconSrc,
|
|
3050
3050
|
name
|
|
3051
3051
|
} = headerData;
|
|
3052
|
-
const readmeUrl = join(
|
|
3053
|
-
join(
|
|
3054
|
-
const hasReadme = await existsFile();
|
|
3055
|
-
const hasChangelog = await existsFile();
|
|
3052
|
+
const readmeUrl = join(extensionUri, 'README.md');
|
|
3053
|
+
join(extensionUri, 'CHANGELOG.md');
|
|
3054
|
+
const [hasReadme, hasChangelog] = await Promise.all([existsFile(), existsFile()]);
|
|
3056
3055
|
const readmeContent = await loadReadmeContent(readmeUrl);
|
|
3057
3056
|
const baseUrl = getBaseUrl(extension.path, platform);
|
|
3058
3057
|
const readmeHtml = await renderMarkdown(readmeContent, {
|
|
@@ -3094,7 +3093,7 @@ const loadContent = async (state, platform, savedState) => {
|
|
|
3094
3093
|
description,
|
|
3095
3094
|
detailsVirtualDom,
|
|
3096
3095
|
displaySize,
|
|
3097
|
-
|
|
3096
|
+
installationEntries,
|
|
3098
3097
|
extension,
|
|
3099
3098
|
extensionId,
|
|
3100
3099
|
extensionVersion,
|
|
@@ -3108,7 +3107,7 @@ const loadContent = async (state, platform, savedState) => {
|
|
|
3108
3107
|
resources,
|
|
3109
3108
|
scrollSource: Script,
|
|
3110
3109
|
scrollToTopButtonEnabled: true,
|
|
3111
|
-
|
|
3110
|
+
marketplaceEntries,
|
|
3112
3111
|
selectedTab,
|
|
3113
3112
|
sizeOnDisk: size,
|
|
3114
3113
|
sizeValue,
|
|
@@ -3284,7 +3283,7 @@ const getChildCount = (additionalDetails, scrollToTopEnabled) => {
|
|
|
3284
3283
|
}
|
|
3285
3284
|
return count;
|
|
3286
3285
|
};
|
|
3287
|
-
const getDetailsVirtualDom = (sanitizedReadmeHtml, width, scrollToTopButtonEnabled, categories$1, resources$1, showAdditionalDetailsBreakpoint,
|
|
3286
|
+
const getDetailsVirtualDom = (sanitizedReadmeHtml, width, scrollToTopButtonEnabled, categories$1, resources$1, showAdditionalDetailsBreakpoint, installationEntries, marketplaceEntries) => {
|
|
3288
3287
|
const firstHeading = installation();
|
|
3289
3288
|
const secondHeading = marketplace();
|
|
3290
3289
|
const thirdHeading = categories();
|
|
@@ -3351,7 +3350,7 @@ const getFeaturesVirtualDom = (features, selectedFeature, state) => {
|
|
|
3351
3350
|
const getExtensionDetailContentVirtualDom = (sanitizedReadmeHtml, selectedTab, width, scrollToTopButtonEnabled, categories, resources, breakpoint, changelogDom, state) => {
|
|
3352
3351
|
switch (selectedTab) {
|
|
3353
3352
|
case Details:
|
|
3354
|
-
return getDetailsVirtualDom(sanitizedReadmeHtml, width, scrollToTopButtonEnabled, categories, resources, breakpoint, state.
|
|
3353
|
+
return getDetailsVirtualDom(sanitizedReadmeHtml, width, scrollToTopButtonEnabled, categories, resources, breakpoint, state.installationEntries, state.marketplaceEntries);
|
|
3355
3354
|
case Features:
|
|
3356
3355
|
return getFeaturesVirtualDom(state.features, state.selectedFeature, state);
|
|
3357
3356
|
case Changelog:
|