@cparra/apexdocs 3.15.0-beta.0 → 3.15.0-beta.2
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.
package/dist/cli/generate.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -933,20 +933,21 @@ function customMetadataToRenderable(metadata, headingLevel) {
|
|
|
933
933
|
};
|
|
934
934
|
}
|
|
935
935
|
function lwcMetadataToRenderable(metadata, config, translations) {
|
|
936
|
-
var _a, _b, _c, _d;
|
|
936
|
+
var _a, _b, _c, _d, _e;
|
|
937
937
|
function toTargetConfigRenderable(targetConfig) {
|
|
938
|
+
var _a2, _b2;
|
|
938
939
|
return {
|
|
939
940
|
targetName: targetConfig["@_targets"],
|
|
940
|
-
properties: targetConfig.property.map((prop) => {
|
|
941
|
-
var
|
|
941
|
+
properties: (_b2 = (_a2 = targetConfig.property) == null ? void 0 : _a2.map((prop) => {
|
|
942
|
+
var _a3, _b3;
|
|
942
943
|
return {
|
|
943
944
|
description: prop["@_description"],
|
|
944
|
-
required: (
|
|
945
|
+
required: (_a3 = prop["@_required"]) != null ? _a3 : false,
|
|
945
946
|
type: prop["@_type"],
|
|
946
|
-
label: (
|
|
947
|
+
label: (_b3 = prop["@_label"]) != null ? _b3 : prop["@_name"],
|
|
947
948
|
name: prop["@_name"]
|
|
948
949
|
};
|
|
949
|
-
})
|
|
950
|
+
})) != null ? _b2 : []
|
|
950
951
|
};
|
|
951
952
|
}
|
|
952
953
|
return {
|
|
@@ -964,7 +965,7 @@ function lwcMetadataToRenderable(metadata, config, translations) {
|
|
|
964
965
|
targetConfigs: {
|
|
965
966
|
heading: translations.markdown.lwc.targetConfigs,
|
|
966
967
|
headingLevel: 2,
|
|
967
|
-
value: (_d = (_c = metadata.targetConfigs) == null ? void 0 : _c.targetConfig.map(toTargetConfigRenderable)) != null ?
|
|
968
|
+
value: (_e = (_d = (_c = metadata.targetConfigs) == null ? void 0 : _c.targetConfig) == null ? void 0 : _d.map(toTargetConfigRenderable)) != null ? _e : []
|
|
968
969
|
},
|
|
969
970
|
doc: {
|
|
970
971
|
group: getTypeGroup(metadata, config)
|