@salesforcedevs/docs-components 0.0.4 → 0.0.5-edit
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 +25 -2
- package/package.json +18 -7
- 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 +183 -0
- package/src/modules/doc/chat/README.md +179 -0
- package/src/modules/doc/chat/chat.css +821 -0
- package/src/modules/doc/chat/chat.html +241 -0
- package/src/modules/doc/chat/chat.ts +586 -0
- package/src/modules/doc/componentPlayground/componentPlayground.css +22 -0
- package/src/modules/doc/componentPlayground/componentPlayground.html +20 -0
- package/src/modules/doc/componentPlayground/componentPlayground.ts +29 -0
- package/src/modules/doc/content/content.css +382 -6
- package/src/modules/doc/content/content.html +3 -2
- package/src/modules/doc/content/content.ts +287 -110
- package/src/modules/doc/contentCallout/contentCallout.css +25 -26
- package/src/modules/doc/contentCallout/contentCallout.html +13 -4
- package/src/modules/doc/contentCallout/contentCallout.ts +22 -11
- package/src/modules/doc/contentLayout/contentLayout.css +13 -0
- package/src/modules/doc/contentLayout/contentLayout.html +73 -0
- package/src/modules/doc/contentLayout/contentLayout.ts +531 -0
- package/src/modules/doc/contentMedia/contentMedia.css +49 -0
- package/src/modules/doc/contentMedia/contentMedia.html +23 -0
- package/src/modules/doc/contentMedia/contentMedia.ts +34 -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/editFile/editFile.css +505 -0
- package/src/modules/doc/editFile/editFile.html +164 -0
- package/src/modules/doc/editFile/editFile.ts +213 -0
- package/src/modules/doc/header/header.css +132 -0
- package/src/modules/doc/header/header.html +55 -0
- package/src/modules/doc/header/header.ts +120 -0
- 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/lwcContentLayout/lwcContentLayout.css +1 -0
- package/src/modules/doc/lwcContentLayout/lwcContentLayout.html +68 -0
- package/src/modules/doc/lwcContentLayout/lwcContentLayout.ts +168 -0
- package/src/modules/doc/nav/nav.css +4 -2
- package/src/modules/doc/nav/nav.html +8 -13
- package/src/modules/doc/nav/nav.ts +1 -1
- 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 +36 -0
- package/src/modules/doc/specificationContent/specificationContent.html +171 -0
- package/src/modules/doc/specificationContent/specificationContent.ts +127 -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.html +11 -6
- package/src/modules/doc/toc/toc.ts +2 -6
- package/src/modules/doc/toolbar/toolbar.html +8 -1
- package/src/modules/doc/toolbar/toolbar.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 +792 -0
- package/src/modules/docHelpers/amfStyle/amfStyle.css +355 -0
- package/src/modules/docHelpers/contentLayoutStyle/contentLayoutStyle.css +131 -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/__mocks__/coveo.analytics.ts +16 -0
- package/src/modules/docUtils/utils/coveo.analytics.d.ts +10 -0
- package/src/modules/docUtils/utils/utils.ts +32 -0
- package/src/modules/doc/container/__benchmarks__/container.benchmark.js +0 -43
- package/src/modules/doc/container/__mocks__/mockAvailableLanguages.js +0 -8
- package/src/modules/doc/container/__mocks__/mockAvailableVersions.js +0 -122
- package/src/modules/doc/container/__mocks__/mockContentFetchResponse.json +0 -5
- package/src/modules/doc/container/__mocks__/mockDocContent.js +0 -29
- package/src/modules/doc/container/__mocks__/mockNavigationFetchResponse.json +0 -4061
- package/src/modules/doc/container/__mocks__/mockPageReference.js +0 -8
- package/src/modules/doc/container/__mocks__/mockPdfUrl.js +0 -1
- package/src/modules/doc/container/__mocks__/mockSelectedLanguage.js +0 -8
- package/src/modules/doc/container/__mocks__/mockSelectedVersion.js +0 -8
- package/src/modules/doc/container/__mocks__/mockToc.js +0 -146
- package/src/modules/doc/container/__tests__/container.test.ts +0 -82
- package/src/modules/doc/container/container.css +0 -33
- package/src/modules/doc/container/container.html +0 -23
- package/src/modules/doc/container/container.stories.ts +0 -18
- package/src/modules/doc/container/container.ts +0 -360
- package/src/modules/doc/content/__tests__/content.test.ts +0 -30
- package/src/modules/doc/content/__tests__/mockDocContent.ts +0 -29
- package/src/modules/doc/content/__tests__/mockPageReference.ts +0 -8
- 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/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 -66
- package/src/modules/doc/prismcss/prismcss.css +0 -184
- package/src/modules/doc/prismjs/prismjs.html +0 -3
- package/src/modules/doc/prismjs/prismjs.ts +0 -1842
- package/src/modules/doc/search/__tests__/search.test.ts +0 -20
- package/src/modules/doc/search/search.html +0 -1
- package/src/modules/doc/search/search.ts +0 -3
- 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,30 +0,0 @@
|
|
|
1
|
-
import { createElement } from "lwc";
|
|
2
|
-
import Content from "../content";
|
|
3
|
-
import mockDocContent from "./mockDocContent";
|
|
4
|
-
import mockPageReference from "./mockPageReference";
|
|
5
|
-
|
|
6
|
-
const create = (props?: object) => {
|
|
7
|
-
const component = createElement("doc-content", {
|
|
8
|
-
is: Content
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
Object.assign(component, {
|
|
12
|
-
docsData: mockDocContent,
|
|
13
|
-
pageReference: mockPageReference,
|
|
14
|
-
_isStorybook: false,
|
|
15
|
-
...(props || {})
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
return component;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
describe("doc-content", () => {
|
|
22
|
-
it("renders the content", () => {
|
|
23
|
-
const component = create();
|
|
24
|
-
document.body.appendChild(component);
|
|
25
|
-
const contentEl = component.shadowRoot.querySelector(
|
|
26
|
-
'[data-name="content"]'
|
|
27
|
-
);
|
|
28
|
-
expect(contentEl).not.toBeNull();
|
|
29
|
-
});
|
|
30
|
-
});
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export default `<a name="apex_dev_guide"><!-- --></a><h1 class="helpHead1">Apex Developer Guide</h1><div class="shortdesc">Salesforce has changed the way organizations do business by moving enterprise
|
|
2
|
-
applications that were traditionally client-server-based into the Lightning Platform, an
|
|
3
|
-
on-demand, multitenant Web environment. This environment enables you to run and customize
|
|
4
|
-
applications, such as Salesforce Automation and Service & Support, and build new custom
|
|
5
|
-
applications based on particular business needs. </div><div id="sfdc:seealso" class="related-links">
|
|
6
|
-
<ul class="ullinks">
|
|
7
|
-
<li class="link ulchildlink">
|
|
8
|
-
<strong><a href="atlas.en-us.apexcode.meta/apexcode/apex_intro_get_started.htm">Getting Started with Apex</a></strong><br>
|
|
9
|
-
Apex is a strongly typed, object-oriented programming language that allows developers to execute flow and transaction control statements on the Lightning Platform server, in conjunction with calls to the API.</li>
|
|
10
|
-
<li class="link ulchildlink">
|
|
11
|
-
<strong><a href="atlas.en-us.apexcode.meta/apexcode/apex_writing.htm">Writing Apex</a></strong><br>
|
|
12
|
-
Apex is like Java for Salesforce. It enables you to add and interact with data in the Lightning Platform persistence layer. It uses classes, data types, variables, and if-else statements. You can make it execute based on a condition, or have a block of code execute repeatedly.</li>
|
|
13
|
-
<li class="link ulchildlink">
|
|
14
|
-
<strong><a href="atlas.en-us.apexcode.meta/apexcode/apex_running.htm">Running Apex</a></strong><br>
|
|
15
|
-
You can access many features of the Salesforce user interface programmatically in Apex, and you can integrate with external SOAP and REST Web services. You can run Apex code using a variety of mechanisms. Apex code runs in atomic transactions. </li>
|
|
16
|
-
<li class="link ulchildlink">
|
|
17
|
-
<strong><a href="atlas.en-us.apexcode.meta/apexcode/apex_debug_test_deploy.htm">Debugging, Testing, and Deploying Apex</a></strong><br>
|
|
18
|
-
Develop your Apex code in a sandbox and debug it with the Developer Console and debug logs. Unit-test your code, then distribute it to customers using packages.</li>
|
|
19
|
-
<li class="link ulchildlink">
|
|
20
|
-
<strong><a href="atlas.en-us.apexcode.meta/apexcode/apex_reference.htm">Apex Language Reference</a></strong><br>
|
|
21
|
-
This Apex reference goes into detail about DML statements and the built-in Apex classes and interfaces.</li>
|
|
22
|
-
<li class="link ulchildlink">
|
|
23
|
-
<strong><a href="atlas.en-us.apexcode.meta/apexcode/apex_appendices.htm">Appendices</a></strong><br>
|
|
24
|
-
</li>
|
|
25
|
-
<li class="link ulchildlink">
|
|
26
|
-
<strong><a href="atlas.en-us.apexcode.meta/apexcode/glossary_apex.htm">Glossary</a></strong><br>
|
|
27
|
-
</li>
|
|
28
|
-
</ul>
|
|
29
|
-
</div><!--DRC 228.7-->`;
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import ContentCallout from "../contentCallout";
|
|
2
|
-
import { createRenderComponent } from "utils/tests";
|
|
3
|
-
import mockProps from "./mockProps";
|
|
4
|
-
|
|
5
|
-
const TAG = "dx-content-callout";
|
|
6
|
-
const render = createRenderComponent(TAG, ContentCallout);
|
|
7
|
-
|
|
8
|
-
describe(TAG, () => {
|
|
9
|
-
it("renders the icon, title & body with the tip variant", async () => {
|
|
10
|
-
const element = render({
|
|
11
|
-
title: mockProps.title,
|
|
12
|
-
variant: "tip"
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
const els = [
|
|
16
|
-
".dx-callout-icon",
|
|
17
|
-
".dx-callout-title",
|
|
18
|
-
".dx-callout-body",
|
|
19
|
-
".dx-callout-tip"
|
|
20
|
-
].map((query) => element.shadowRoot.querySelector(query));
|
|
21
|
-
|
|
22
|
-
expect(els).not.toContain(null);
|
|
23
|
-
|
|
24
|
-
await expect(element).toBeAccessible();
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
it("renders the icon, title & body with the warning variant", async () => {
|
|
28
|
-
const element = render({
|
|
29
|
-
title: mockProps.title,
|
|
30
|
-
variant: "warning"
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
const els = [
|
|
34
|
-
".dx-callout-icon",
|
|
35
|
-
".dx-callout-title",
|
|
36
|
-
".dx-callout-body",
|
|
37
|
-
".dx-callout-warning"
|
|
38
|
-
].map((query) => element.shadowRoot.querySelector(query));
|
|
39
|
-
|
|
40
|
-
expect(els).not.toContain(null);
|
|
41
|
-
|
|
42
|
-
await expect(element).toBeAccessible();
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
it("renders the icon, title & body with the note variant", async () => {
|
|
46
|
-
const element = render({
|
|
47
|
-
title: mockProps.title,
|
|
48
|
-
variant: "note"
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
const els = [
|
|
52
|
-
".dx-callout-icon",
|
|
53
|
-
".dx-callout-title",
|
|
54
|
-
".dx-callout-body",
|
|
55
|
-
".dx-callout-base"
|
|
56
|
-
].map((query) => element.shadowRoot.querySelector(query));
|
|
57
|
-
|
|
58
|
-
expect(els).not.toContain(null);
|
|
59
|
-
|
|
60
|
-
await expect(element).toBeAccessible();
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
it("renders the icon, title & body with the caution variant", async () => {
|
|
64
|
-
const element = render({
|
|
65
|
-
title: mockProps.title,
|
|
66
|
-
variant: "caution"
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
const els = [
|
|
70
|
-
".dx-callout-icon",
|
|
71
|
-
".dx-callout-title",
|
|
72
|
-
".dx-callout-body",
|
|
73
|
-
".dx-callout-caution"
|
|
74
|
-
].map((query) => element.shadowRoot.querySelector(query));
|
|
75
|
-
|
|
76
|
-
expect(els).not.toContain(null);
|
|
77
|
-
|
|
78
|
-
await expect(element).toBeAccessible();
|
|
79
|
-
});
|
|
80
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
body: `<ul class="ul bulletList">
|
|
3
|
-
<li class="li">Apex SOAP web services allow an external application to invoke Apex methods
|
|
4
|
-
through SOAP Web services. <a class="xref" href="docs/atlas.en-us.226.0.apexcode.meta/apexcode/apex_callouts.htm" data-id="docs/atlas.en-us.226.0.apexcode.meta/apexcode/apex_callouts.htm">Apex callouts</a> enable Apex to invoke external web or HTTP
|
|
5
|
-
services.</li>
|
|
6
|
-
|
|
7
|
-
<li class="li">Apex REST API exposes your Apex classes and methods as REST web services. See
|
|
8
|
-
<a class="xref" href="docs/atlas.en-us.226.0.apexcode.meta/apexcode/apex_rest.htm" title="You can expose your Apex classes and methods so that external applications can access your code and your application through the REST architecture." data-id="docs/atlas.en-us.226.0.apexcode.meta/apexcode/apex_rest.htm">Exposing Apex Classes as REST Web
|
|
9
|
-
Services</a>.</li>
|
|
10
|
-
|
|
11
|
-
</ul>`,
|
|
12
|
-
title: "Caution",
|
|
13
|
-
variant: "Caution"
|
|
14
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import mockProps from "./__tests__/mockProps";
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
title: "docs/doc-content-callout",
|
|
5
|
-
component: "doc-content-callout"
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
export const Base = (args: any) => `
|
|
9
|
-
<style>
|
|
10
|
-
doc-content-callout {
|
|
11
|
-
display:block;
|
|
12
|
-
margin-bottom:12px;
|
|
13
|
-
}
|
|
14
|
-
</style>
|
|
15
|
-
<doc-content-callout title='Note'variant="note">
|
|
16
|
-
${args.body}
|
|
17
|
-
</doc-content-callout>
|
|
18
|
-
<doc-content-callout title='Tip'variant="tip">
|
|
19
|
-
${args.body}
|
|
20
|
-
</doc-content-callout>
|
|
21
|
-
<doc-content-callout title='Warning' variant="warning">
|
|
22
|
-
${args.body}
|
|
23
|
-
</doc-content-callout>
|
|
24
|
-
<doc-content-callout title='Caution' variant="caution">
|
|
25
|
-
${args.body}
|
|
26
|
-
</doc-content-callout>
|
|
27
|
-
`;
|
|
28
|
-
|
|
29
|
-
Base.args = mockProps;
|
|
@@ -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,66 +0,0 @@
|
|
|
1
|
-
import { createElement } from "lwc";
|
|
2
|
-
import Nav from "../nav";
|
|
3
|
-
import mockAvailableLanguages from "./mockAvailableLanguages";
|
|
4
|
-
import mockAvailableVersions from "./mockAvailableVersions";
|
|
5
|
-
import mockSelectedLanguage from "./mockSelectedLanguage";
|
|
6
|
-
import mockSelectedVersion from "./mockSelectedVersion";
|
|
7
|
-
import mockPdfUrl from "./mockPdfUrl";
|
|
8
|
-
import mockToc from "./mockToc";
|
|
9
|
-
import mockPageReference from "./mockPageReference";
|
|
10
|
-
import { createRenderComponent } from "utils/tests";
|
|
11
|
-
|
|
12
|
-
const MOCK_PARAMETERS = {
|
|
13
|
-
selectedLanguage: mockSelectedLanguage,
|
|
14
|
-
selectedVersion: mockSelectedVersion,
|
|
15
|
-
availableLanguages: mockAvailableLanguages,
|
|
16
|
-
availableVersions: mockAvailableVersions,
|
|
17
|
-
pdfUrl: mockPdfUrl,
|
|
18
|
-
toc: mockToc,
|
|
19
|
-
pageReference: mockPageReference
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
const TAG = "doc-nav";
|
|
23
|
-
const render = createRenderComponent(TAG, Nav);
|
|
24
|
-
|
|
25
|
-
describe("doc-nav", () => {
|
|
26
|
-
it("renders the navigation", () => {
|
|
27
|
-
const component = render(MOCK_PARAMETERS);
|
|
28
|
-
document.body.appendChild(component);
|
|
29
|
-
const toolbarEl = component.shadowRoot.querySelector("doc-toolbar");
|
|
30
|
-
expect(toolbarEl).not.toBeNull();
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
it("renders the content", () => {
|
|
34
|
-
const component = render(MOCK_PARAMETERS);
|
|
35
|
-
|
|
36
|
-
const tocEl = component.shadowRoot.querySelector("dx-tree");
|
|
37
|
-
expect(tocEl).not.toBeNull();
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
it("fires the event", () => {
|
|
41
|
-
const component = render(MOCK_PARAMETERS);
|
|
42
|
-
|
|
43
|
-
const tocEl: HTMLElement = component.shadowRoot.querySelector(
|
|
44
|
-
"dx-tree"
|
|
45
|
-
);
|
|
46
|
-
const mockNavClick = jest.fn();
|
|
47
|
-
component.addEventListener("navclick", mockNavClick);
|
|
48
|
-
tocEl.dispatchEvent(
|
|
49
|
-
new CustomEvent("select", {
|
|
50
|
-
detail: {
|
|
51
|
-
name: "apex_dev_guide-hashtest"
|
|
52
|
-
},
|
|
53
|
-
bubbles: true,
|
|
54
|
-
composed: true
|
|
55
|
-
})
|
|
56
|
-
);
|
|
57
|
-
expect(mockNavClick).toHaveBeenCalledTimes(1);
|
|
58
|
-
expect(mockNavClick.mock.calls[0][0].detail).toEqual({
|
|
59
|
-
pageReference: {
|
|
60
|
-
...mockPageReference,
|
|
61
|
-
contentDocumentId: "apex_dev_guide.htm",
|
|
62
|
-
hash: "hashtest"
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
});
|
|
66
|
-
});
|