@lvce-editor/extension-detail-view 6.4.0 → 6.5.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.
@@ -4181,24 +4181,28 @@ const getResources = (isBuiltin, extension) => {
4181
4181
  const repositoryLink = getRepositoryLink(extension);
4182
4182
  const issueLink = getIssuesLink(extension);
4183
4183
  const licenseLink = getLicenseLink(extension);
4184
- // TODO hide marketplace link for builtin extensions
4185
- return [{
4184
+ const rawResources = [{
4185
+ enabled: !isBuiltin,
4186
4186
  icon: 'LinkExternal',
4187
4187
  label: marketplace(),
4188
4188
  url: '#'
4189
4189
  }, {
4190
+ enabled: true,
4190
4191
  icon: 'LinkExternal',
4191
4192
  label: issues(),
4192
4193
  url: issueLink
4193
4194
  }, {
4195
+ enabled: true,
4194
4196
  icon: 'Repo',
4195
4197
  label: repository(),
4196
4198
  url: repositoryLink
4197
4199
  }, {
4200
+ enabled: true,
4198
4201
  icon: 'LinkExternal',
4199
4202
  label: license(),
4200
4203
  url: licenseLink
4201
4204
  }];
4205
+ return rawResources.filter(resource => resource.enabled);
4202
4206
  };
4203
4207
 
4204
4208
  const loadSideBarContent = async (extensionId, extensionVersion, extensionUri, isBuiltin, extension, showSizeLink) => {
@@ -4298,6 +4302,7 @@ const loadContent = async (state, platform, savedState, isTest = false) => {
4298
4302
  const [hasReadme, hasChangelog] = await Promise.all([existsFile(readmeUrl), existsFile(changelogUrl)]);
4299
4303
  const readmeContent = hasReadme ? await loadReadmeContent(readmeUrl) : noReadmeFound();
4300
4304
  const baseUrl = getBaseUrl(extension.path, platform);
4305
+ // TODO maybe pass these as arguments also
4301
4306
  const locationProtocol = location.protocol;
4302
4307
  const locationHost = location.host;
4303
4308
  const readmeHtml = await renderMarkdown(readmeContent, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/extension-detail-view",
3
- "version": "6.4.0",
3
+ "version": "6.5.0",
4
4
  "description": "Extension Detail View Worker",
5
5
  "repository": {
6
6
  "type": "git",