@lvce-editor/extension-detail-view 3.18.0 → 3.19.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.
@@ -911,7 +911,11 @@ const isEqual = (oldState, newState) => {
911
911
  const modules = [isEqual, isEqual$1];
912
912
  const numbers = [diffType, diffType$1];
913
913
 
914
- const diff = (oldState, newState) => {
914
+ const diff2 = uid => {
915
+ const {
916
+ oldState,
917
+ newState
918
+ } = get$1(uid);
915
919
  const diffResult = [];
916
920
  for (let i = 0; i < modules.length; i++) {
917
921
  const fn = modules[i];
@@ -922,15 +926,6 @@ const diff = (oldState, newState) => {
922
926
  return diffResult;
923
927
  };
924
928
 
925
- const diff2 = uid => {
926
- const {
927
- oldState,
928
- newState
929
- } = get$1(uid);
930
- const diffResult = diff(oldState, newState);
931
- return diffResult;
932
- };
933
-
934
929
  const dispose = uid => {
935
930
  remove(uid);
936
931
  };
@@ -1076,6 +1071,7 @@ const ContentSecurityPolicy = 'ContentSecurityPolicy';
1076
1071
  const Copy = 'Copy';
1077
1072
  const Elements = 'Elements';
1078
1073
  const FileMatch = 'File Match';
1074
+ const None$1 = 'None';
1079
1075
  const Id = 'ID';
1080
1076
  const JsonValidation$1 = 'Json Validation';
1081
1077
  const Label = 'Label';
@@ -1093,6 +1089,9 @@ const NotImplemented = 'Not Implemented';
1093
1089
  const copy = () => {
1094
1090
  return i18nString(Copy);
1095
1091
  };
1092
+ const none = () => {
1093
+ return i18nString(None$1);
1094
+ };
1096
1095
  const openInNewTab = () => {
1097
1096
  return i18nString(OpenInNewTab);
1098
1097
  };
@@ -1155,11 +1154,14 @@ const Pre = 51;
1155
1154
  const Table = 9;
1156
1155
  const TBody = 10;
1157
1156
  const Td = 11;
1158
- const Text$1 = 12;
1159
1157
  const Th = 13;
1160
1158
  const THead = 14;
1161
1159
  const Tr = 15;
1162
1160
 
1161
+ const mergeClassNames = (...classNames) => {
1162
+ return classNames.filter(Boolean).join(' ');
1163
+ };
1164
+ const Text$1 = 12;
1163
1165
  const text = data => {
1164
1166
  return {
1165
1167
  type: Text$1,
@@ -1213,15 +1215,16 @@ const getCategoriesDom = categories => {
1213
1215
  }, ...categories.flatMap(getCategoryVirtualDom)];
1214
1216
  };
1215
1217
 
1218
+ const parentNode = {
1219
+ type: Div,
1220
+ className: MoreInfoEntryKey,
1221
+ childCount: 1
1222
+ };
1216
1223
  const getMoreInfoEntryKeyVirtualDom = item => {
1217
1224
  const {
1218
1225
  key
1219
1226
  } = item;
1220
- return [{
1221
- type: Div,
1222
- className: MoreInfoEntryKey,
1223
- childCount: 1
1224
- }, text(key)];
1227
+ return [parentNode, text(key)];
1225
1228
  };
1226
1229
 
1227
1230
  const getTag = (onClick, code) => {
@@ -1266,7 +1269,7 @@ const parentNodeEven = {
1266
1269
  };
1267
1270
  const parentNodeOdd = {
1268
1271
  type: Div,
1269
- className: MoreInfoEntry + ' ' + MoreInfoEntryOdd,
1272
+ className: mergeClassNames(MoreInfoEntry, MoreInfoEntryOdd),
1270
1273
  childCount: 2
1271
1274
  };
1272
1275
  const getMoreInfoEntryVirtualDom = item => {
@@ -1781,21 +1784,14 @@ const getFeatureListVirtualDom = features => {
1781
1784
  }, ...features.flatMap(getFeatureListItemVirtualDom)];
1782
1785
  };
1783
1786
 
1784
- const joinBySpace = (...items) => {
1785
- return items.join(' ');
1786
- };
1787
-
1788
- const mergeClassNames = (...classNames) => {
1789
- return joinBySpace(...classNames.filter(Boolean));
1790
- };
1791
-
1792
1787
  const getFeaturesVirtualDom = async (features, themesHtml, selectedFeature, extension) => {
1793
1788
  if (features.length === 0) {
1789
+ const none$1 = none();
1794
1790
  return [{
1795
1791
  type: Div,
1796
1792
  className: Features$1,
1797
1793
  childCount: 3
1798
- }, text('None')];
1794
+ }, text(none$1)];
1799
1795
  }
1800
1796
  return [{
1801
1797
  type: Div,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/extension-detail-view",
3
- "version": "3.18.0",
3
+ "version": "3.19.0",
4
4
  "description": "Extension Detail View Worker",
5
5
  "license": "MIT",
6
6
  "author": "Lvce Editor",