@salesforcedevs/docs-components 0.57.1-flex-ref1 → 0.60.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.
- package/LICENSE +12 -0
- package/package.json +2 -2
- package/src/modules/doc/amfReference/amfReference.html +5 -13
- package/src/modules/doc/amfReference/amfReference.ts +303 -799
- package/src/modules/doc/amfReference/route-meta.ts +22 -0
- package/src/modules/doc/amfReference/types.ts +3 -43
- package/src/modules/doc/breadcrumbItem/breadcrumbItem.css +2 -1
- package/src/modules/doc/breadcrumbs/breadcrumbs.css +2 -0
- package/src/modules/doc/breadcrumbs/breadcrumbs.html +1 -1
- package/src/modules/doc/breadcrumbs/breadcrumbs.ts +31 -6
- package/src/modules/doc/contentLayout/contentLayout.css +1 -5
- package/src/modules/doc/contentLayout/contentLayout.html +2 -9
- package/src/modules/doc/contentLayout/contentLayout.ts +29 -74
- package/src/modules/doc/xmlContent/types.ts +3 -0
- package/src/modules/doc/xmlContent/utils.ts +14 -11
- package/src/modules/doc/xmlContent/xmlContent.css +5 -0
- package/src/modules/doc/xmlContent/xmlContent.html +5 -0
- package/src/modules/doc/xmlContent/xmlContent.ts +64 -15
- package/src/modules/doc/amfReference/constants.ts +0 -76
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
const NAVIGATION_ITEMS = [
|
|
2
|
-
{
|
|
3
|
-
label: "Summary",
|
|
4
|
-
name: "summary",
|
|
5
|
-
childrenPropertyName: undefined,
|
|
6
|
-
type: "summary"
|
|
7
|
-
},
|
|
8
|
-
{
|
|
9
|
-
label: "Endpoints",
|
|
10
|
-
name: "endpoints",
|
|
11
|
-
childrenPropertyName: "endpoints",
|
|
12
|
-
type: "endpoint"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
label: "Documentation",
|
|
16
|
-
name: "documentation",
|
|
17
|
-
childrenPropertyName: "docs",
|
|
18
|
-
type: "documentation"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
label: "Types",
|
|
22
|
-
name: "types",
|
|
23
|
-
childrenPropertyName: "types",
|
|
24
|
-
type: "type"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
label: "Security",
|
|
28
|
-
name: "security",
|
|
29
|
-
childrenPropertyName: "security",
|
|
30
|
-
type: "security"
|
|
31
|
-
}
|
|
32
|
-
];
|
|
33
|
-
|
|
34
|
-
const URL_CONFIG = {
|
|
35
|
-
summary: {
|
|
36
|
-
urlIdentifer: "label"
|
|
37
|
-
},
|
|
38
|
-
endpoint: {
|
|
39
|
-
urlIdentifer: "path"
|
|
40
|
-
},
|
|
41
|
-
method: {
|
|
42
|
-
urlIdentifer: "label"
|
|
43
|
-
},
|
|
44
|
-
documentation: {
|
|
45
|
-
urlIdentifer: "label"
|
|
46
|
-
},
|
|
47
|
-
type: {
|
|
48
|
-
urlIdentifer: "label",
|
|
49
|
-
prefix: "type:"
|
|
50
|
-
},
|
|
51
|
-
security: {
|
|
52
|
-
urlIdentifer: "label",
|
|
53
|
-
prefix: "security:"
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
export const REFERENCE_TYPES = {
|
|
58
|
-
markdown: "markdown",
|
|
59
|
-
raml: "rest-raml",
|
|
60
|
-
oa2: "rest-oa2",
|
|
61
|
-
oa3: "rest-oa3"
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
const oldReferenceIdNewReferenceIdMap: Record<string, string> = {
|
|
65
|
-
"commerce-api-assignments": "assignments",
|
|
66
|
-
"commerce-api-campaigns": "campaigns",
|
|
67
|
-
"commerce-api-catalogs": "catalogs",
|
|
68
|
-
"cdn-zones": "cdn-api-process-apis",
|
|
69
|
-
"inventory-impex": "impex",
|
|
70
|
-
"inventory-reservations": "inventory-reservation-service",
|
|
71
|
-
"shopper-login-and-api-access-service": "shopper-login",
|
|
72
|
-
"shopper-login-and-api-access-service-admin": "slas-admin",
|
|
73
|
-
"einstein-recommendations": "einstein-api-quick-start-guide"
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
export { NAVIGATION_ITEMS, URL_CONFIG, oldReferenceIdNewReferenceIdMap };
|