@lvce-editor/extension-detail-view 3.56.0 → 3.57.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.
@@ -11,7 +11,7 @@ const i18nString = (key, placeholders = emptyObject) => {
11
11
  };
12
12
 
13
13
  const ActivationEvents$1 = 'Activation Events';
14
- const RuntimeStatus$1 = 'Runtime Status';
14
+ const ActivationTime = 'Activation Time: ';
15
15
  const Categories$1 = 'Categories';
16
16
  const Changelog$2 = 'Changelog';
17
17
  const Commands$1 = 'Commands';
@@ -22,43 +22,43 @@ const CopyImageUrl = 'Copy Image Url';
22
22
  const Details$1 = 'Details';
23
23
  const Disable$1 = 'Disable';
24
24
  const Elements = 'Elements';
25
+ const EmptyCommandsArray = 'The extension contributed an empty commands array.';
26
+ const Enable$1 = 'Enable';
25
27
  const Features$2 = 'Features';
26
28
  const FileMatch = 'File Match';
27
29
  const Id = 'ID';
30
+ const Identifier = 'Identifier';
31
+ const ImportTime = 'Import Time: ';
28
32
  const Installation = 'Installation';
33
+ const Issues = 'Issues';
29
34
  const JsonValidation$1 = 'Json Validation';
30
35
  const Label = 'Label';
36
+ const LastReleased = 'Last Released';
37
+ const LastUpdated = 'Last Updated';
38
+ const License = 'License';
31
39
  const Marketplace = 'Marketplace';
32
40
  const None$3 = 'None';
33
41
  const NoReadmeFound = 'No Readme Found.';
34
- const EmptyCommandsArray = 'The extension contributed an empty commands array.';
35
42
  const OpenImageInNewTab = 'Open Image in New Tab';
36
43
  const OpenInNewTab = 'Open in New Tab';
37
44
  const ProgrammingLanguages$1 = 'Programming Languages';
45
+ const Published = 'Published';
46
+ const Repository = 'Repository';
38
47
  const Resources$1 = 'Resources';
48
+ const RuntimeStatus$1 = 'Runtime Status';
39
49
  const SaveImageAs = 'Save Image as';
40
50
  const Schema = 'Schema';
41
51
  const ScrollToTop$1 = 'Scroll to top';
52
+ const SelectedFeatureUnknownOrUnsupported = 'Selected feature is unknown or unsupported';
42
53
  const Selector = 'Selector';
43
54
  const SetColorTheme$1 = 'Set Color Theme';
44
- const Enable$1 = 'Enable';
45
55
  const Settings$1 = 'Settings';
56
+ const Size = 'Size';
46
57
  const Theme$1 = 'Theme';
47
58
  const Uninstall$1 = 'Uninstall';
48
- const WebViews$1 = 'WebViews';
49
- const ImportTime = 'Import Time: ';
50
- const ActivationTime = 'Activation Time: ';
51
59
  const UnsupportedFeature = 'Unsupported Feature';
52
- const SelectedFeatureUnknownOrUnsupported = 'Selected feature is unknown or unsupported';
53
- const Identifier = 'Identifier';
54
60
  const Version = 'Version';
55
- const LastUpdated = 'Last Updated';
56
- const Size = 'Size';
57
- const Published = 'Published';
58
- const LastReleased = 'Last Released';
59
- const Issues = 'Issues';
60
- const Repository = 'Repository';
61
- const License = 'License';
61
+ const WebViews$1 = 'WebViews';
62
62
 
63
63
  const installation = () => {
64
64
  return i18nString(Installation);
@@ -248,6 +248,7 @@ const THead = 14;
248
248
  const Tr = 15;
249
249
  const Img = 17;
250
250
  const H2 = 22;
251
+ const Aside$1 = 28;
251
252
  const Dd = 43;
252
253
  const Dl = 44;
253
254
  const Li = 48;
@@ -260,6 +261,7 @@ const Dt = 67;
260
261
  const VirtualDomElements = {
261
262
  __proto__: null,
262
263
  A,
264
+ Aside: Aside$1,
263
265
  Button: Button$1,
264
266
  Code: Code$2,
265
267
  Dd,
@@ -524,10 +526,11 @@ const getCommandsVirtualDom = state => {
524
526
  };
525
527
 
526
528
  const getJsonValidationTableEntry = validation => {
529
+ // TODO handle case when validation is invalid like null
527
530
  const {
528
- fileMatch,
529
- schema
531
+ fileMatch
530
532
  } = validation;
533
+ const schema = validation.schema ?? validation.url;
531
534
  return [{
532
535
  type: Code,
533
536
  value: fileMatch
@@ -902,17 +905,21 @@ const getStatusMessage = statusType => {
902
905
  }
903
906
  };
904
907
 
908
+ const key = {
909
+ type: VirtualDomElements.Dt,
910
+ childCount: 1,
911
+ className: 'RuntimeStatusDefinitionListKey'
912
+ };
913
+ const value = {
914
+ type: VirtualDomElements.Dd,
915
+ className: 'RuntimeStatusDefinitionListValue',
916
+ childCount: 1
917
+ };
905
918
  const getStatusVirtualDom = status => {
906
919
  const statusString = getStatusMessage(status);
907
- return [{
908
- type: VirtualDomElements.Dt,
909
- childCount: 1
910
- }, text(`Status: `),
920
+ return [key, text(`Status: `),
911
921
  // i18n
912
- {
913
- type: VirtualDomElements.Dd,
914
- childCount: 1
915
- }, text(`${statusString}`)];
922
+ value, text(`${statusString}`)];
916
923
  };
917
924
 
918
925
  const getChildCount$1 = (status, activationTime, importTime) => {
@@ -937,6 +944,7 @@ const getRuntimeStatusVirtualDom = state => {
937
944
  childCount: 2
938
945
  }, ...getFeatureContentHeadingVirtualDom(heading), {
939
946
  type: VirtualDomElements.Dl,
947
+ className: 'RuntimeStatusDefinitionList',
940
948
  childCount
941
949
  }, ...getStatusVirtualDom(status), ...getActivationTimeVirtualDom(activationTime, importTime)];
942
950
  };
@@ -2498,6 +2506,7 @@ const create = (uid, uri, x, y, width, height, platform, assetDir) => {
2498
2506
  description: '',
2499
2507
  detailsVirtualDom: [],
2500
2508
  displaySize: '',
2509
+ downloadCount: 'n/a',
2501
2510
  installationEntries: [],
2502
2511
  extension: {},
2503
2512
  extensionId: '',
@@ -2512,6 +2521,7 @@ const create = (uid, uri, x, y, width, height, platform, assetDir) => {
2512
2521
  name: '',
2513
2522
  platform,
2514
2523
  programmingLanguages: [],
2524
+ rating: 'n/a',
2515
2525
  readmeScrollTop: 0,
2516
2526
  resources: [],
2517
2527
  scrollSource: 0,
@@ -3642,12 +3652,14 @@ const getMoreInfoEntryKeyVirtualDom = item => {
3642
3652
  return [parentNode, text(key)];
3643
3653
  };
3644
3654
 
3655
+ const classLink = mergeClassNames(MoreInfoEntryValue, Link);
3656
+ const classCode = mergeClassNames(MoreInfoEntryValue, Code$1);
3645
3657
  const getMoreInfoEntryValueClassName = (onClick, code) => {
3646
3658
  if (onClick) {
3647
- return mergeClassNames(MoreInfoEntryValue, Link);
3659
+ return classLink;
3648
3660
  }
3649
3661
  if (code) {
3650
- return mergeClassNames(MoreInfoEntryValue, Code$1);
3662
+ return classCode;
3651
3663
  }
3652
3664
  return MoreInfoEntryValue;
3653
3665
  };
@@ -3672,7 +3684,7 @@ const getMoreInfoEntryValueVirtualDom = item => {
3672
3684
  const type = getMoreInfoEntryValueTag(onClick, code);
3673
3685
  const className = getMoreInfoEntryValueClassName(onClick, code);
3674
3686
  return [{
3675
- type: type,
3687
+ type,
3676
3688
  className,
3677
3689
  childCount: 1,
3678
3690
  onClick,
@@ -3681,12 +3693,12 @@ const getMoreInfoEntryValueVirtualDom = item => {
3681
3693
  };
3682
3694
 
3683
3695
  const parentNodeEven = {
3684
- type: VirtualDomElements.Dt,
3696
+ type: VirtualDomElements.Div,
3685
3697
  className: MoreInfoEntry,
3686
3698
  childCount: 2
3687
3699
  };
3688
3700
  const parentNodeOdd = {
3689
- type: VirtualDomElements.Dt,
3701
+ type: VirtualDomElements.Div,
3690
3702
  className: mergeClassNames(MoreInfoEntry, MoreInfoEntryOdd),
3691
3703
  childCount: 2
3692
3704
  };
@@ -3732,7 +3744,7 @@ const getAdditionalDetailsVirtualDom = (showAdditionalDetails, firstHeading, ent
3732
3744
  return [];
3733
3745
  }
3734
3746
  return [{
3735
- type: VirtualDomElements.Div,
3747
+ type: VirtualDomElements.Aside,
3736
3748
  className: Aside,
3737
3749
  childCount: 1
3738
3750
  }, {
@@ -3797,6 +3809,15 @@ const getFeatureListVirtualDom = features => {
3797
3809
  }, ...features.flatMap(getFeatureListItemVirtualDom)];
3798
3810
  };
3799
3811
 
3812
+ const getFeaturesEmptyVirtualDom = () => {
3813
+ const none$1 = none();
3814
+ return [{
3815
+ type: VirtualDomElements.Div,
3816
+ className: Features$1,
3817
+ childCount: 1
3818
+ }, text(none$1)];
3819
+ };
3820
+
3800
3821
  const sash = {
3801
3822
  type: VirtualDomElements.Div,
3802
3823
  className: mergeClassNames(Sash, SashVertical),
@@ -3804,12 +3825,7 @@ const sash = {
3804
3825
  };
3805
3826
  const getFeaturesVirtualDom = (features, selectedFeature, state) => {
3806
3827
  if (features.length === 0) {
3807
- const none$1 = none();
3808
- return [{
3809
- type: VirtualDomElements.Div,
3810
- className: Features$1,
3811
- childCount: 1
3812
- }, text(none$1)];
3828
+ return getFeaturesEmptyVirtualDom();
3813
3829
  }
3814
3830
  const fn = getFeatureVirtualDomHandler(selectedFeature);
3815
3831
  const featureVirtualDom = fn(state);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/extension-detail-view",
3
- "version": "3.56.0",
3
+ "version": "3.57.0",
4
4
  "description": "Extension Detail View Worker",
5
5
  "license": "MIT",
6
6
  "author": "Lvce Editor",