@salesforcedevs/docs-components 1.3.71 → 1.3.72-bundle-example
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/lwc.config.json
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
"modules": [
|
|
3
3
|
{ "dir": "src/modules" },
|
|
4
4
|
{ "npm": "@salesforcedevs/dx-components" },
|
|
5
|
-
{ "npm": "@salesforcedevs/dw-components" }
|
|
5
|
+
{ "npm": "@salesforcedevs/dw-components" },
|
|
6
|
+
{ "npm": "lightning-base-components" },
|
|
7
|
+
{ "npm": "@mulesoft/api-console-lwc" }
|
|
6
8
|
],
|
|
7
9
|
"expose": [
|
|
8
10
|
"doc/amfReference",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/docs-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.72-bundle-example",
|
|
4
4
|
"description": "Docs Lightning web components for DSC",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "index.js",
|
|
@@ -12,17 +12,20 @@
|
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@api-components/amf-helper-mixin": "^4.5.17",
|
|
15
|
+
"@mulesoft/api-console-lwc": "^0.2.28",
|
|
15
16
|
"classnames": "^2.2.6",
|
|
16
17
|
"kagekiri": "^1.4.1",
|
|
18
|
+
"lightning-base-components": "1.15.4-alpha",
|
|
17
19
|
"lodash.orderby": "^4.6.0",
|
|
18
20
|
"lodash.uniqby": "^4.7.0",
|
|
19
21
|
"query-string": "^7.1.1",
|
|
20
22
|
"sentence-case": "^3.0.4"
|
|
21
23
|
},
|
|
22
24
|
"devDependencies": {
|
|
25
|
+
"@salesforce-ux/design-system": "^2.19.0",
|
|
23
26
|
"@types/classnames": "^2.2.10",
|
|
24
27
|
"@types/lodash.orderby": "^4.6.7",
|
|
25
28
|
"@types/lodash.uniqby": "^4.7.7"
|
|
26
29
|
},
|
|
27
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "4629fdd9ca18a13480044ad43515b91945d16aad"
|
|
28
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@import "docHelpers/
|
|
1
|
+
@import "docHelpers/lightingDesignSystem";
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import { LightningElement, api } from "lwc";
|
|
2
|
-
import {
|
|
3
|
-
createDocumentationElement,
|
|
4
|
-
createEndpointElement,
|
|
5
|
-
createMethodElement,
|
|
6
|
-
createSecurityElement,
|
|
7
|
-
createSummaryElement,
|
|
8
|
-
createTypeElement
|
|
9
|
-
} from "./utils";
|
|
10
2
|
import type { TopicModel } from "./types";
|
|
3
|
+
import "@mulesoft/api-console-lwc";
|
|
11
4
|
|
|
12
5
|
export default class AmfTopic extends LightningElement {
|
|
13
6
|
private _model;
|
|
@@ -45,41 +38,21 @@ export default class AmfTopic extends LightningElement {
|
|
|
45
38
|
const { id } = this.model;
|
|
46
39
|
const type = this.type;
|
|
47
40
|
const amf = this.amf;
|
|
48
|
-
const { parser } = this.model;
|
|
49
|
-
let element;
|
|
50
41
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
amf,
|
|
59
|
-
id
|
|
60
|
-
);
|
|
61
|
-
const methodModel = parser.computeMethodApiModel(amf, id);
|
|
62
|
-
element = createMethodElement(
|
|
63
|
-
amf,
|
|
64
|
-
endpointMethodModel,
|
|
65
|
-
methodModel
|
|
66
|
-
);
|
|
67
|
-
} else if (type === "security") {
|
|
68
|
-
const securityModel = parser.computeSecurityApiModel(amf, id);
|
|
69
|
-
element = createSecurityElement(amf, securityModel);
|
|
70
|
-
} else if (type === "type") {
|
|
71
|
-
const mediaTypes = parser.computeApiMediaTypes(amf);
|
|
72
|
-
const typeModel = parser.computeTypeApiModel(amf, id);
|
|
73
|
-
element = createTypeElement(amf, typeModel, mediaTypes);
|
|
74
|
-
} else if (type === "documentation") {
|
|
75
|
-
const docsModel = parser.computeDocsApiModel(amf, id);
|
|
76
|
-
element = createDocumentationElement(amf, docsModel);
|
|
77
|
-
}
|
|
42
|
+
const element: any = document.createElement("arc-api-documentation");
|
|
43
|
+
element.amf = amf;
|
|
44
|
+
element.selected = id;
|
|
45
|
+
element.selectedType = type;
|
|
46
|
+
element.noTryIt = true;
|
|
47
|
+
element.inlineMethods = false;
|
|
48
|
+
element.noNavigation = true;
|
|
78
49
|
|
|
79
|
-
if (container
|
|
80
|
-
container.firstChild
|
|
50
|
+
if (container) {
|
|
51
|
+
if (container.firstChild) {
|
|
52
|
+
container.firstChild.remove();
|
|
53
|
+
}
|
|
54
|
+
container.appendChild(element);
|
|
81
55
|
}
|
|
82
|
-
container.appendChild(element);
|
|
83
56
|
}
|
|
84
57
|
}
|
|
85
58
|
|