@salesforcedevs/docs-components 0.6.0 → 0.7.59-sppage-alpha1
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 +17 -3
- package/package.json +16 -6
- package/src/modules/README.md +41 -0
- package/src/modules/doc/amfModelParser/amfModelParser.ts +674 -0
- package/src/modules/doc/amfReference/amfReference.css +25 -0
- package/src/modules/doc/amfReference/amfReference.html +60 -0
- package/src/modules/doc/amfReference/amfReference.ts +1494 -0
- package/src/modules/doc/amfReference/constants.ts +76 -0
- package/src/modules/doc/amfReference/types.ts +125 -0
- package/src/modules/doc/amfTopic/amfTopic.css +21 -0
- package/src/modules/doc/amfTopic/amfTopic.html +3 -0
- package/src/modules/doc/amfTopic/amfTopic.ts +111 -0
- package/src/modules/doc/amfTopic/types.ts +56 -0
- package/src/modules/doc/amfTopic/utils.ts +136 -0
- package/src/modules/doc/breadcrumbItem/breadcrumbItem.css +51 -0
- package/src/modules/doc/breadcrumbItem/breadcrumbItem.html +5 -0
- package/src/modules/doc/breadcrumbItem/breadcrumbItem.ts +71 -0
- package/src/modules/doc/breadcrumbs/breadcrumbs.css +27 -0
- package/src/modules/doc/breadcrumbs/breadcrumbs.html +58 -0
- package/src/modules/doc/breadcrumbs/breadcrumbs.ts +192 -0
- package/src/modules/doc/content/content.css +94 -70
- package/src/modules/doc/content/content.ts +233 -169
- package/src/modules/doc/contentCallout/contentCallout.css +17 -23
- package/src/modules/doc/contentCallout/contentCallout.html +13 -4
- package/src/modules/doc/contentCallout/contentCallout.ts +16 -3
- package/src/modules/doc/contentLayout/contentLayout.css +131 -0
- package/src/modules/doc/contentLayout/contentLayout.html +64 -0
- package/src/modules/doc/contentLayout/contentLayout.ts +610 -0
- package/src/modules/doc/doDont/doDont.css +47 -0
- package/src/modules/doc/doDont/doDont.html +27 -0
- package/src/modules/doc/doDont/doDont.ts +17 -0
- package/src/modules/doc/header/header.css +70 -37
- package/src/modules/doc/header/header.html +40 -134
- package/src/modules/doc/header/header.ts +29 -78
- package/src/modules/doc/heading/heading.css +33 -0
- package/src/modules/doc/heading/heading.html +14 -0
- package/src/modules/doc/heading/heading.ts +67 -0
- package/src/modules/doc/headingAnchor/headingAnchor.css +33 -0
- package/src/modules/doc/headingAnchor/headingAnchor.html +19 -0
- package/src/modules/doc/headingAnchor/headingAnchor.ts +43 -0
- package/src/modules/doc/headingContent/headingContent.css +53 -0
- package/src/modules/doc/headingContent/headingContent.html +13 -0
- package/src/modules/doc/headingContent/headingContent.ts +30 -0
- package/src/modules/doc/overview/overview.css +40 -0
- package/src/modules/doc/overview/overview.html +34 -0
- package/src/modules/doc/overview/overview.ts +12 -0
- package/src/modules/doc/phase/phase.css +70 -0
- package/src/modules/doc/phase/phase.html +38 -0
- package/src/modules/doc/phase/phase.ts +93 -0
- package/src/modules/doc/specificationContent/specificationContent.css +3 -0
- package/src/modules/doc/specificationContent/specificationContent.html +99 -0
- package/src/modules/doc/specificationContent/specificationContent.ts +56 -0
- package/src/modules/doc/sprigSurvey/sprigSurvey.html +20 -0
- package/src/modules/doc/sprigSurvey/sprigSurvey.scoped.css +16 -0
- package/src/modules/doc/sprigSurvey/sprigSurvey.ts +16 -0
- package/src/modules/doc/toc/toc.ts +1 -1
- package/src/modules/doc/versionPicker/versionPicker.css +64 -0
- package/src/modules/doc/versionPicker/versionPicker.html +38 -0
- package/src/modules/doc/versionPicker/versionPicker.ts +65 -0
- package/src/modules/doc/xmlContent/types.ts +120 -0
- package/src/modules/doc/xmlContent/utils.ts +163 -0
- package/src/modules/doc/xmlContent/xmlContent.css +54 -0
- package/src/modules/doc/xmlContent/xmlContent.html +52 -0
- package/src/modules/doc/xmlContent/xmlContent.ts +780 -0
- package/src/modules/docHelpers/amfStyle/amfStyle.css +355 -0
- package/src/modules/docHelpers/imgStyle/imgStyle.css +59 -0
- package/src/modules/docHelpers/status/status.css +22 -0
- package/src/modules/docUtils/searchSyncer/searchSyncer.ts +86 -0
- package/src/modules/docUtils/utils/utils.ts +32 -0
- package/LICENSE +0 -12
- package/src/modules/doc/content/__tests__/content.test.ts +0 -120
- package/src/modules/doc/content/__tests__/mockDocContent.ts +0 -292
- package/src/modules/doc/content/__tests__/mockPageReference.ts +0 -8
- package/src/modules/doc/content/content.stories.ts +0 -108
- package/src/modules/doc/contentCallout/__tests__/contentCallout.test.ts +0 -80
- package/src/modules/doc/contentCallout/__tests__/mockProps.ts +0 -14
- package/src/modules/doc/contentCallout/contentCallout.stories.ts +0 -29
- package/src/modules/doc/contentMedia/__tests__/contentMedia.test.ts +0 -97
- package/src/modules/doc/contentMedia/contentMedia.stories.ts +0 -113
- package/src/modules/doc/header/__tests__/coveoConfig.ts +0 -12
- package/src/modules/doc/header/__tests__/header.test.ts +0 -409
- package/src/modules/doc/header/__tests__/mockNavDevelopers.ts +0 -427
- package/src/modules/doc/header/__tests__/mockNavs.ts +0 -115
- package/src/modules/doc/header/__tests__/mockProps.ts +0 -149
- package/src/modules/doc/header/header.stories.ts +0 -160
- package/src/modules/doc/nav/__tests__/mockAvailableLanguages.ts +0 -8
- package/src/modules/doc/nav/__tests__/mockAvailableVersions.ts +0 -122
- package/src/modules/doc/nav/__tests__/mockPageReference.ts +0 -8
- package/src/modules/doc/nav/__tests__/mockPdfUrl.ts +0 -1
- package/src/modules/doc/nav/__tests__/mockSelectedLanguage.ts +0 -8
- package/src/modules/doc/nav/__tests__/mockSelectedVersion.ts +0 -8
- package/src/modules/doc/nav/__tests__/mockToc.ts +0 -146
- package/src/modules/doc/nav/__tests__/nav.test.ts +0 -58
- package/src/modules/doc/toc/__tests__/mockPageReference.ts +0 -8
- package/src/modules/doc/toc/__tests__/mockToc.ts +0 -146
- package/src/modules/doc/toc/__tests__/toc.test.ts +0 -29
- package/src/modules/doc/toolbar/__tests__/mockAvailableLanguages.ts +0 -8
- package/src/modules/doc/toolbar/__tests__/mockAvailableVersions.ts +0 -122
- package/src/modules/doc/toolbar/__tests__/mockPdfUrl.ts +0 -1
- package/src/modules/doc/toolbar/__tests__/mockSelectedLanguage.ts +0 -8
- package/src/modules/doc/toolbar/__tests__/mockSelectedVersion.ts +0 -8
- package/src/modules/doc/toolbar/__tests__/toolbar.test.ts +0 -44
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
import { html } from "lit-html";
|
|
2
|
-
import {
|
|
3
|
-
mockPropsDevelopers,
|
|
4
|
-
mockPropsEmployees,
|
|
5
|
-
mockPropsMarketing,
|
|
6
|
-
mockPropsPartners,
|
|
7
|
-
mockPropsCommerce,
|
|
8
|
-
mockPropsSales,
|
|
9
|
-
mockPropsSuccess,
|
|
10
|
-
mockPropsIntegration,
|
|
11
|
-
mockPropsPlatform,
|
|
12
|
-
mockPropsIndustries,
|
|
13
|
-
mockPropsLearning,
|
|
14
|
-
mockPropsService,
|
|
15
|
-
mockPropsAnalytics
|
|
16
|
-
} from "./__tests__/mockProps";
|
|
17
|
-
|
|
18
|
-
const controlLang = mockPropsDevelopers.languages.map(({ id }) => id);
|
|
19
|
-
|
|
20
|
-
export default {
|
|
21
|
-
title: "docs/doc-header",
|
|
22
|
-
component: "doc-header",
|
|
23
|
-
argTypes: {
|
|
24
|
-
bailHref: {
|
|
25
|
-
defaultValue: "/quip-dev-center",
|
|
26
|
-
control: {
|
|
27
|
-
type: "text"
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
bailLabel: {
|
|
31
|
-
defaultValue: "PDF",
|
|
32
|
-
control: {
|
|
33
|
-
type: "text"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
language: {
|
|
37
|
-
defaultValue: controlLang[0],
|
|
38
|
-
control: {
|
|
39
|
-
options: controlLang,
|
|
40
|
-
type: "select"
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
const styles = () => html` <style>
|
|
47
|
-
body {
|
|
48
|
-
padding: 0 !important;
|
|
49
|
-
}
|
|
50
|
-
.fake-url {
|
|
51
|
-
padding: 8px;
|
|
52
|
-
font-size: 12px;
|
|
53
|
-
color: white;
|
|
54
|
-
background: grey;
|
|
55
|
-
word-break: break-word;
|
|
56
|
-
}
|
|
57
|
-
</style>`;
|
|
58
|
-
|
|
59
|
-
const renderPreventNavScript = () => html` <script>
|
|
60
|
-
function headerClick(e) {
|
|
61
|
-
const link = e
|
|
62
|
-
.composedPath()
|
|
63
|
-
.find((el) =>
|
|
64
|
-
el
|
|
65
|
-
? el.tagName === "A" && el.getAttribute("target") === null
|
|
66
|
-
: false
|
|
67
|
-
);
|
|
68
|
-
if (link) {
|
|
69
|
-
e.preventDefault();
|
|
70
|
-
const href = link.getAttribute("href");
|
|
71
|
-
const element = document.querySelector(".fake-url");
|
|
72
|
-
if (element) {
|
|
73
|
-
element.textContent = href;
|
|
74
|
-
}
|
|
75
|
-
if (href && !href.includes("http")) {
|
|
76
|
-
e.target.href = "https://localhost:6006" + href;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
</script>`;
|
|
81
|
-
|
|
82
|
-
const headerStoryGenerator = (
|
|
83
|
-
mockProps: any,
|
|
84
|
-
brand: string,
|
|
85
|
-
args: any
|
|
86
|
-
) => html` ${styles()} ${renderPreventNavScript()}
|
|
87
|
-
<div class="fake-url">/</div>
|
|
88
|
-
<doc-header
|
|
89
|
-
coveo-organization-id="${mockProps.coveoOrganizationId}"
|
|
90
|
-
coveo-public-access-token="${mockProps.coveoPublicAccessToken}"
|
|
91
|
-
coveo-search-pipeline="${mockProps.coveoSearchPipeline}"
|
|
92
|
-
coveo-search-hub="${mockProps.coveoSearchHub}"
|
|
93
|
-
signup-link="https://www.google.com"
|
|
94
|
-
title="${mockProps.title}"
|
|
95
|
-
subtitle="${mockProps.subtitle}"
|
|
96
|
-
nav-items="${JSON.stringify(mockProps.navItems)}"
|
|
97
|
-
languages="${JSON.stringify(mockProps.languages)}"
|
|
98
|
-
language="${args.language}"
|
|
99
|
-
scoped-nav-items="${JSON.stringify(mockProps.scopedNavItems)}"
|
|
100
|
-
bail-href="${args.bailHref}"
|
|
101
|
-
bail-label="${args.bailLabel}"
|
|
102
|
-
brand="${brand}"
|
|
103
|
-
onclick="headerClick(event)"
|
|
104
|
-
></doc-header>`;
|
|
105
|
-
|
|
106
|
-
export const Base = (args: any) => html`
|
|
107
|
-
${styles()} ${renderPreventNavScript()}
|
|
108
|
-
<div class="fake-url">/</div>
|
|
109
|
-
<doc-header
|
|
110
|
-
title="${mockPropsDevelopers.title}"
|
|
111
|
-
bail-href="${args.bailHref}"
|
|
112
|
-
bail-label="${args.bailLabel}"
|
|
113
|
-
subtitle="${mockPropsDevelopers.subtitle}"
|
|
114
|
-
nav-items="${JSON.stringify(mockPropsDevelopers.navItems)}"
|
|
115
|
-
languages="${JSON.stringify(mockPropsDevelopers.languages)}"
|
|
116
|
-
language="${args.language}"
|
|
117
|
-
coveo-organization-id="${mockPropsDevelopers.coveoOrganizationId}"
|
|
118
|
-
coveo-public-access-token="${mockPropsDevelopers.coveoPublicAccessToken}"
|
|
119
|
-
coveo-search-pipeline="${mockPropsDevelopers.coveoSearchPipeline}"
|
|
120
|
-
coveo-search-hub="${mockPropsDevelopers.coveoSearchHub}"
|
|
121
|
-
onclick="headerClick(event)"
|
|
122
|
-
></doc-header>
|
|
123
|
-
`;
|
|
124
|
-
|
|
125
|
-
// BRAND STORIES
|
|
126
|
-
export const Employees = (args: any) =>
|
|
127
|
-
headerStoryGenerator(mockPropsEmployees, "employees", args);
|
|
128
|
-
|
|
129
|
-
export const Marketing = (args: any) =>
|
|
130
|
-
headerStoryGenerator(mockPropsMarketing, "marketing", args);
|
|
131
|
-
|
|
132
|
-
export const Partners = (args: any) =>
|
|
133
|
-
headerStoryGenerator(mockPropsPartners, "partners", args);
|
|
134
|
-
|
|
135
|
-
export const Commerce = (args: any) =>
|
|
136
|
-
headerStoryGenerator(mockPropsCommerce, "commerce", args);
|
|
137
|
-
|
|
138
|
-
export const Sales = (args: any) =>
|
|
139
|
-
headerStoryGenerator(mockPropsSales, "sales", args);
|
|
140
|
-
|
|
141
|
-
export const Success = (args: any) =>
|
|
142
|
-
headerStoryGenerator(mockPropsSuccess, "success", args);
|
|
143
|
-
|
|
144
|
-
export const Integration = (args: any) =>
|
|
145
|
-
headerStoryGenerator(mockPropsIntegration, "integration", args);
|
|
146
|
-
|
|
147
|
-
export const Platform = (args: any) =>
|
|
148
|
-
headerStoryGenerator(mockPropsPlatform, "platform", args);
|
|
149
|
-
|
|
150
|
-
export const Industries = (args: any) =>
|
|
151
|
-
headerStoryGenerator(mockPropsIndustries, "industries", args);
|
|
152
|
-
|
|
153
|
-
export const Learning = (args: any) =>
|
|
154
|
-
headerStoryGenerator(mockPropsLearning, "learning", args);
|
|
155
|
-
|
|
156
|
-
export const Service = (args: any) =>
|
|
157
|
-
headerStoryGenerator(mockPropsService, "service", args);
|
|
158
|
-
|
|
159
|
-
export const Analytics = (args: any) =>
|
|
160
|
-
headerStoryGenerator(mockPropsAnalytics, "analytics", args);
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
export default [
|
|
2
|
-
{
|
|
3
|
-
version_text: "Winter '21 (API version 50.0)",
|
|
4
|
-
release_version: "50.0",
|
|
5
|
-
doc_version: "228.0",
|
|
6
|
-
version_url: "atlas.en-us.apexcode.meta"
|
|
7
|
-
},
|
|
8
|
-
{
|
|
9
|
-
version_text: "Summer '20 (API version 49.0)",
|
|
10
|
-
release_version: "49.0",
|
|
11
|
-
doc_version: "226.0",
|
|
12
|
-
version_url: "atlas.en-us.226.0.apexcode.meta"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
version_text: "Spring '20 (API version 48.0)",
|
|
16
|
-
release_version: "48.0",
|
|
17
|
-
doc_version: "224.0",
|
|
18
|
-
version_url: "atlas.en-us.224.0.apexcode.meta"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
version_text: "Winter '20 (API version 47.0)",
|
|
22
|
-
release_version: "47.0",
|
|
23
|
-
doc_version: "222.0",
|
|
24
|
-
version_url: "atlas.en-us.222.0.apexcode.meta"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
version_text: "Summer '19 (API version 46.0)",
|
|
28
|
-
release_version: "46.0",
|
|
29
|
-
doc_version: "220.0",
|
|
30
|
-
version_url: "atlas.en-us.220.0.apexcode.meta"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
version_text: "Spring '19 (API version 45.0)",
|
|
34
|
-
release_version: "45.0",
|
|
35
|
-
doc_version: "218.0",
|
|
36
|
-
version_url: "atlas.en-us.218.0.apexcode.meta"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
version_text: "Winter '19 (API version 44.0)",
|
|
40
|
-
release_version: "44.0",
|
|
41
|
-
doc_version: "216.0",
|
|
42
|
-
version_url: "atlas.en-us.216.0.apexcode.meta"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
version_text: "Summer '18 (API version 43.0)",
|
|
46
|
-
release_version: "43.0",
|
|
47
|
-
doc_version: "214.0",
|
|
48
|
-
version_url: "atlas.en-us.214.0.apexcode.meta"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
version_text: "Spring '18 (API version 42.0)",
|
|
52
|
-
release_version: "42.0",
|
|
53
|
-
doc_version: "212.0",
|
|
54
|
-
version_url: "atlas.en-us.212.0.apexcode.meta"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
version_text: "Winter '18 (API version 41.0)",
|
|
58
|
-
release_version: "41.0",
|
|
59
|
-
doc_version: "210.0",
|
|
60
|
-
version_url: "atlas.en-us.210.0.apexcode.meta"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
version_text: "Summer '17 (API version 40.0)",
|
|
64
|
-
release_version: "40.0",
|
|
65
|
-
doc_version: "208.0",
|
|
66
|
-
version_url: "atlas.en-us.208.0.apexcode.meta"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
version_text: "Spring '17 (API version 39.0)",
|
|
70
|
-
release_version: "39.0",
|
|
71
|
-
doc_version: "206.0",
|
|
72
|
-
version_url: "atlas.en-us.206.0.apexcode.meta"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
version_text: "Winter '17 (API version 38.0)",
|
|
76
|
-
release_version: "38.0",
|
|
77
|
-
doc_version: "204.0",
|
|
78
|
-
version_url: "atlas.en-us.204.0.apexcode.meta"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
version_text: "Summer '16 (API version 37.0)",
|
|
82
|
-
release_version: "37.0",
|
|
83
|
-
doc_version: "202.0",
|
|
84
|
-
version_url: "atlas.en-us.202.0.apexcode.meta"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
version_text: "Spring '16 (API version 36.0)",
|
|
88
|
-
release_version: "36.0",
|
|
89
|
-
doc_version: "200.0",
|
|
90
|
-
version_url: "atlas.en-us.200.0.apexcode.meta"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
version_text: "Winter '16 (API version 35.0)",
|
|
94
|
-
release_version: "35.0",
|
|
95
|
-
doc_version: "198.0",
|
|
96
|
-
version_url: "atlas.en-us.198.0.apexcode.meta"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
version_text: "Summer '15 (API version 34.0)",
|
|
100
|
-
release_version: "34.0",
|
|
101
|
-
doc_version: "196.0",
|
|
102
|
-
version_url: "atlas.en-us.196.0.apexcode.meta"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
version_text: "Spring '15 (API version 33.0)",
|
|
106
|
-
release_version: "33.0",
|
|
107
|
-
doc_version: "194.0",
|
|
108
|
-
version_url: "atlas.en-us.194.0.apexcode.meta"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
version_text: "Winter '15 (API version 32.0)",
|
|
112
|
-
release_version: "32.0",
|
|
113
|
-
doc_version: "192.0",
|
|
114
|
-
version_url: "atlas.en-us.192.0.apexcode.meta"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
version_text: "Spring '14 (API version 30.0)",
|
|
118
|
-
release_version: "30.0",
|
|
119
|
-
doc_version: "188.0",
|
|
120
|
-
version_url: "atlas.en-us.188.0.apexcode.meta"
|
|
121
|
-
}
|
|
122
|
-
];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default "https://resources.docs.salesforce.com/228/latest/en-us/sfdc/pdf/salesforce_apex_language_reference.pdf";
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
export default [
|
|
2
|
-
{
|
|
3
|
-
children: [
|
|
4
|
-
{
|
|
5
|
-
text: "Overview",
|
|
6
|
-
a_attr: {
|
|
7
|
-
href: "actions_intro_overview.htm"
|
|
8
|
-
},
|
|
9
|
-
id: "actions_intro_overview"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
text: "Invoking Actions",
|
|
13
|
-
a_attr: {
|
|
14
|
-
href: "actions_intro_invoking.htm"
|
|
15
|
-
},
|
|
16
|
-
id: "actions_intro_invoking"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
text: "Available Actions",
|
|
20
|
-
a_attr: {
|
|
21
|
-
href: "actions_intro_list.htm"
|
|
22
|
-
},
|
|
23
|
-
id: "actions_intro_list"
|
|
24
|
-
}
|
|
25
|
-
],
|
|
26
|
-
text: "Introducing Actions",
|
|
27
|
-
a_attr: {
|
|
28
|
-
href: "actions_intro.htm"
|
|
29
|
-
},
|
|
30
|
-
id: "actions_intro"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
children: [
|
|
34
|
-
{
|
|
35
|
-
text: "Apex Actions",
|
|
36
|
-
a_attr: {
|
|
37
|
-
href: "actions_obj_apex.htm"
|
|
38
|
-
},
|
|
39
|
-
id: "actions_obj_apex"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
text: "Create Service Report Actions",
|
|
43
|
-
a_attr: {
|
|
44
|
-
href: "actions_obj_create_service_report.htm"
|
|
45
|
-
},
|
|
46
|
-
id: "actions_obj_create_service_report"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
text: "Custom Notification Actions",
|
|
50
|
-
a_attr: {
|
|
51
|
-
href: "actions_obj_custom_notification.htm"
|
|
52
|
-
},
|
|
53
|
-
id: "actions_obj_custom_notification"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
text: "Email Alert Actions",
|
|
57
|
-
a_attr: {
|
|
58
|
-
href: "actions_obj_email_alert.htm"
|
|
59
|
-
},
|
|
60
|
-
id: "actions_obj_email_alert"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
text: "Flow Actions",
|
|
64
|
-
a_attr: {
|
|
65
|
-
href: "actions_obj_flow.htm"
|
|
66
|
-
},
|
|
67
|
-
id: "actions_obj_flow"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
text: "Generate Work Orders Actions",
|
|
71
|
-
a_attr: {
|
|
72
|
-
href: "actions_obj_generate_work_orders.htm"
|
|
73
|
-
},
|
|
74
|
-
id: "actions_obj_generate_work_orders"
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
text: "Knowledge Actions",
|
|
78
|
-
a_attr: {
|
|
79
|
-
href: "actions_obj_knowledge.htm"
|
|
80
|
-
},
|
|
81
|
-
id: "actions_obj_knowledge"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
text: "Omni-Channel Action",
|
|
85
|
-
a_attr: {
|
|
86
|
-
href: "actions_obj_omni_channel.htm"
|
|
87
|
-
},
|
|
88
|
-
id: "actions_obj_omni_channel"
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
text: "PlatformAction",
|
|
92
|
-
a_attr: {
|
|
93
|
-
href: "sforce_api_objects_platformaction.htm"
|
|
94
|
-
},
|
|
95
|
-
id: "sforce_api_objects_platformaction"
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
text: "Post to Chatter Actions",
|
|
99
|
-
a_attr: {
|
|
100
|
-
href: "actions_obj_post_to_chatter.htm"
|
|
101
|
-
},
|
|
102
|
-
id: "actions_obj_post_to_chatter"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
text: "Quick Actions",
|
|
106
|
-
a_attr: {
|
|
107
|
-
href: "actions_obj_quick_action.htm"
|
|
108
|
-
},
|
|
109
|
-
id: "actions_obj_quick_action"
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
text: "Refresh Metric Actions",
|
|
113
|
-
a_attr: {
|
|
114
|
-
href: "actions_obj_refresh_metric.htm"
|
|
115
|
-
},
|
|
116
|
-
id: "actions_obj_refresh_metric"
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
text: "Salesforce Order Management Actions",
|
|
120
|
-
a_attr: {
|
|
121
|
-
href: "actions_obj_order_management.htm"
|
|
122
|
-
},
|
|
123
|
-
id: "actions_obj_order_management"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
text: "Simple Email Actions",
|
|
127
|
-
a_attr: {
|
|
128
|
-
href: "actions_obj_email_simple.htm"
|
|
129
|
-
},
|
|
130
|
-
id: "actions_obj_email_simple"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
text: "Submit for Approval Actions",
|
|
134
|
-
a_attr: {
|
|
135
|
-
href: "actions_obj_submit_for_approval.htm"
|
|
136
|
-
},
|
|
137
|
-
id: "actions_obj_submit_for_approval"
|
|
138
|
-
}
|
|
139
|
-
],
|
|
140
|
-
text: "Action Objects",
|
|
141
|
-
a_attr: {
|
|
142
|
-
href: "actions_obj.htm"
|
|
143
|
-
},
|
|
144
|
-
id: "actions_obj"
|
|
145
|
-
}
|
|
146
|
-
];
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import Nav from "doc/nav";
|
|
2
|
-
import mockAvailableLanguages from "./mockAvailableLanguages";
|
|
3
|
-
import mockAvailableVersions from "./mockAvailableVersions";
|
|
4
|
-
import mockSelectedLanguage from "./mockSelectedLanguage";
|
|
5
|
-
import mockSelectedVersion from "./mockSelectedVersion";
|
|
6
|
-
import mockPdfUrl from "./mockPdfUrl";
|
|
7
|
-
import mockToc from "./mockToc";
|
|
8
|
-
import mockPageReference from "./mockPageReference";
|
|
9
|
-
import { createRenderComponent } from "utils/tests";
|
|
10
|
-
|
|
11
|
-
const MOCK_PARAMETERS = {
|
|
12
|
-
selectedLanguage: mockSelectedLanguage,
|
|
13
|
-
selectedVersion: mockSelectedVersion,
|
|
14
|
-
availableLanguages: mockAvailableLanguages,
|
|
15
|
-
availableVersions: mockAvailableVersions,
|
|
16
|
-
pdfUrl: mockPdfUrl,
|
|
17
|
-
toc: mockToc,
|
|
18
|
-
pageReference: mockPageReference
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
const TAG = "doc-nav";
|
|
22
|
-
const render = createRenderComponent(TAG, Nav);
|
|
23
|
-
|
|
24
|
-
describe("doc-nav", () => {
|
|
25
|
-
it("renders the content", () => {
|
|
26
|
-
const component = render(MOCK_PARAMETERS);
|
|
27
|
-
|
|
28
|
-
const tocEl = component.shadowRoot.querySelector("dx-sidebar");
|
|
29
|
-
expect(tocEl).not.toBeNull();
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
it("fires the event", () => {
|
|
33
|
-
const component = render(MOCK_PARAMETERS);
|
|
34
|
-
|
|
35
|
-
const tocEl: HTMLElement = component.shadowRoot.querySelector(
|
|
36
|
-
"dx-sidebar"
|
|
37
|
-
);
|
|
38
|
-
const mockNavClick = jest.fn();
|
|
39
|
-
component.addEventListener("navclick", mockNavClick);
|
|
40
|
-
tocEl.dispatchEvent(
|
|
41
|
-
new CustomEvent("select", {
|
|
42
|
-
detail: {
|
|
43
|
-
name: "apex_dev_guide-hashtest"
|
|
44
|
-
},
|
|
45
|
-
bubbles: true,
|
|
46
|
-
composed: true
|
|
47
|
-
})
|
|
48
|
-
);
|
|
49
|
-
expect(mockNavClick).toHaveBeenCalledTimes(1);
|
|
50
|
-
expect(mockNavClick.mock.calls[0][0].detail).toEqual({
|
|
51
|
-
pageReference: {
|
|
52
|
-
...mockPageReference,
|
|
53
|
-
contentDocumentId: "apex_dev_guide.htm",
|
|
54
|
-
hash: "hashtest"
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
});
|
|
58
|
-
});
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
export default [
|
|
2
|
-
{
|
|
3
|
-
children: [
|
|
4
|
-
{
|
|
5
|
-
text: "Overview",
|
|
6
|
-
a_attr: {
|
|
7
|
-
href: "actions_intro_overview.htm"
|
|
8
|
-
},
|
|
9
|
-
id: "actions_intro_overview"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
text: "Invoking Actions",
|
|
13
|
-
a_attr: {
|
|
14
|
-
href: "actions_intro_invoking.htm"
|
|
15
|
-
},
|
|
16
|
-
id: "actions_intro_invoking"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
text: "Available Actions",
|
|
20
|
-
a_attr: {
|
|
21
|
-
href: "actions_intro_list.htm"
|
|
22
|
-
},
|
|
23
|
-
id: "actions_intro_list"
|
|
24
|
-
}
|
|
25
|
-
],
|
|
26
|
-
text: "Introducing Actions",
|
|
27
|
-
a_attr: {
|
|
28
|
-
href: "actions_intro.htm"
|
|
29
|
-
},
|
|
30
|
-
id: "actions_intro"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
children: [
|
|
34
|
-
{
|
|
35
|
-
text: "Apex Actions",
|
|
36
|
-
a_attr: {
|
|
37
|
-
href: "actions_obj_apex.htm"
|
|
38
|
-
},
|
|
39
|
-
id: "actions_obj_apex"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
text: "Create Service Report Actions",
|
|
43
|
-
a_attr: {
|
|
44
|
-
href: "actions_obj_create_service_report.htm"
|
|
45
|
-
},
|
|
46
|
-
id: "actions_obj_create_service_report"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
text: "Custom Notification Actions",
|
|
50
|
-
a_attr: {
|
|
51
|
-
href: "actions_obj_custom_notification.htm"
|
|
52
|
-
},
|
|
53
|
-
id: "actions_obj_custom_notification"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
text: "Email Alert Actions",
|
|
57
|
-
a_attr: {
|
|
58
|
-
href: "actions_obj_email_alert.htm"
|
|
59
|
-
},
|
|
60
|
-
id: "actions_obj_email_alert"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
text: "Flow Actions",
|
|
64
|
-
a_attr: {
|
|
65
|
-
href: "actions_obj_flow.htm"
|
|
66
|
-
},
|
|
67
|
-
id: "actions_obj_flow"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
text: "Generate Work Orders Actions",
|
|
71
|
-
a_attr: {
|
|
72
|
-
href: "actions_obj_generate_work_orders.htm"
|
|
73
|
-
},
|
|
74
|
-
id: "actions_obj_generate_work_orders"
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
text: "Knowledge Actions",
|
|
78
|
-
a_attr: {
|
|
79
|
-
href: "actions_obj_knowledge.htm"
|
|
80
|
-
},
|
|
81
|
-
id: "actions_obj_knowledge"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
text: "Omni-Channel Action",
|
|
85
|
-
a_attr: {
|
|
86
|
-
href: "actions_obj_omni_channel.htm"
|
|
87
|
-
},
|
|
88
|
-
id: "actions_obj_omni_channel"
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
text: "PlatformAction",
|
|
92
|
-
a_attr: {
|
|
93
|
-
href: "sforce_api_objects_platformaction.htm"
|
|
94
|
-
},
|
|
95
|
-
id: "sforce_api_objects_platformaction"
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
text: "Post to Chatter Actions",
|
|
99
|
-
a_attr: {
|
|
100
|
-
href: "actions_obj_post_to_chatter.htm"
|
|
101
|
-
},
|
|
102
|
-
id: "actions_obj_post_to_chatter"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
text: "Quick Actions",
|
|
106
|
-
a_attr: {
|
|
107
|
-
href: "actions_obj_quick_action.htm"
|
|
108
|
-
},
|
|
109
|
-
id: "actions_obj_quick_action"
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
text: "Refresh Metric Actions",
|
|
113
|
-
a_attr: {
|
|
114
|
-
href: "actions_obj_refresh_metric.htm"
|
|
115
|
-
},
|
|
116
|
-
id: "actions_obj_refresh_metric"
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
text: "Salesforce Order Management Actions",
|
|
120
|
-
a_attr: {
|
|
121
|
-
href: "actions_obj_order_management.htm"
|
|
122
|
-
},
|
|
123
|
-
id: "actions_obj_order_management"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
text: "Simple Email Actions",
|
|
127
|
-
a_attr: {
|
|
128
|
-
href: "actions_obj_email_simple.htm"
|
|
129
|
-
},
|
|
130
|
-
id: "actions_obj_email_simple"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
text: "Submit for Approval Actions",
|
|
134
|
-
a_attr: {
|
|
135
|
-
href: "actions_obj_submit_for_approval.htm"
|
|
136
|
-
},
|
|
137
|
-
id: "actions_obj_submit_for_approval"
|
|
138
|
-
}
|
|
139
|
-
],
|
|
140
|
-
text: "Action Objects",
|
|
141
|
-
a_attr: {
|
|
142
|
-
href: "actions_obj.htm"
|
|
143
|
-
},
|
|
144
|
-
id: "actions_obj"
|
|
145
|
-
}
|
|
146
|
-
];
|