@lvce-editor/extension-detail-view 4.9.0 → 4.10.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.
@@ -833,9 +833,17 @@ const getJsonValidationVirtualDom = state => {
833
833
  return getFeatureJsonValidationVirtualDom(state.jsonValidation);
834
834
  };
835
835
 
836
- const getProgrammingLanguagesDetails = async extension => {
837
- // Programming languages feature doesn't need to store additional state
838
- return {};
836
+ const getProgrammingLanguageTableEntry = programmingLanguage => {
837
+ return [];
838
+ };
839
+
840
+ const getFeatureDetailsProgrammingLanguages = async extension => {
841
+ // TODO validate them also, to create better types
842
+ const programmingLanguages = extension.languages || [];
843
+ const rows = programmingLanguages.map(getProgrammingLanguageTableEntry);
844
+ return {
845
+ programmingLanguages: rows
846
+ };
839
847
  };
840
848
 
841
849
  const featureProgrammingLanguagesEnabled = extension => {
@@ -3055,7 +3063,7 @@ const registerAllFeatures = () => {
3055
3063
  id: ProgrammingLanguages,
3056
3064
  getLabel: programmingLanguages,
3057
3065
  isEnabled: featureProgrammingLanguagesEnabled,
3058
- getDetails: getProgrammingLanguagesDetails,
3066
+ getDetails: getFeatureDetailsProgrammingLanguages,
3059
3067
  getVirtualDom: getProgrammingLanguagesVirtualDom
3060
3068
  });
3061
3069
  register$1({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/extension-detail-view",
3
- "version": "4.9.0",
3
+ "version": "4.10.0",
4
4
  "description": "Extension Detail View Worker",
5
5
  "repository": {
6
6
  "type": "git",