@lvce-editor/extension-detail-view 4.16.0 → 4.17.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.
@@ -42,7 +42,7 @@ const LastReleased = 'Last Released';
42
42
  const LastUpdated = 'Last Updated';
43
43
  const License = 'License';
44
44
  const Marketplace = 'Marketplace';
45
- const None$3 = 'None';
45
+ const None$4 = 'None';
46
46
  const NoReadmeFound = 'No Readme Found.';
47
47
  const OpenImageInNewTab = 'Open Image in New Tab';
48
48
  const OpenInNewTab = 'Open in New Tab';
@@ -102,7 +102,7 @@ const features$1 = () => {
102
102
  return i18nString(Features$2);
103
103
  };
104
104
  const none = () => {
105
- return i18nString(None$3);
105
+ return i18nString(None$4);
106
106
  };
107
107
  const openInNewTab = () => {
108
108
  return i18nString(OpenInNewTab);
@@ -288,7 +288,7 @@ const featureActivationEventsEnabled = extension => {
288
288
  return Array.isArray(extension.activation);
289
289
  };
290
290
 
291
- const None$2 = 'none';
291
+ const None$3 = 'none';
292
292
  const Panel = 'panel';
293
293
  const Tab = 'tab';
294
294
  const TabList = 'tablist';
@@ -324,6 +324,8 @@ const TargetName = 'event.target.name';
324
324
 
325
325
  const ExtensionDetailReadme = 20;
326
326
 
327
+ const None$2 = 0;
328
+
327
329
  const DebugWorker = 55;
328
330
  const ExtensionHostWorker = 44;
329
331
  const FileSystemWorker$1 = 209;
@@ -2810,7 +2812,7 @@ const getScrollToTopVirtualDom = scrollToTopButtonEnabled => {
2810
2812
  type: Div,
2811
2813
  className: 'MaskIcon MaskIconChevronUp',
2812
2814
  childCount: 0,
2813
- role: None$2
2815
+ role: None$3
2814
2816
  }];
2815
2817
  };
2816
2818
 
@@ -3505,11 +3507,21 @@ const getLinkMenuEntries = props => {
3505
3507
 
3506
3508
  const getMenuEntries = props => [...getLinkMenuEntries(props), ...getImageMenuEntries(props), getCopyMenuEntry()];
3507
3509
 
3508
- const ExtensionDetailIconContextMenu = 4091;
3510
+ const getMenuEntriesReadme = () => [{
3511
+ id: 'copy',
3512
+ label: copy$1(),
3513
+ flags: None$2,
3514
+ command: 'ExtensionDetail.copyReadmeText',
3515
+ args: []
3516
+ }];
3509
3517
 
3518
+ const ExtensionDetailIconContextMenu$1 = 4091;
3510
3519
  const getMenus = () => {
3511
3520
  return [{
3512
- id: ExtensionDetailIconContextMenu,
3521
+ id: ExtensionDetailReadme,
3522
+ entries: getMenuEntriesReadme()
3523
+ }, {
3524
+ id: ExtensionDetailIconContextMenu$1,
3513
3525
  entries: [{
3514
3526
  id: 'openImageInNewTab',
3515
3527
  label: openImageInNewTab$1(),
@@ -3777,6 +3789,8 @@ const show = async (menuId, x, y) => {
3777
3789
  await showContextMenu(x, y, menuId);
3778
3790
  };
3779
3791
 
3792
+ const ExtensionDetailIconContextMenu = 4091;
3793
+
3780
3794
  const handleImageContextMenu = async (state, eventX, eventY) => {
3781
3795
  await show(ExtensionDetailIconContextMenu, eventX, eventY);
3782
3796
  return state;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/extension-detail-view",
3
- "version": "4.16.0",
3
+ "version": "4.17.0",
4
4
  "description": "Extension Detail View Worker",
5
5
  "repository": {
6
6
  "type": "git",