@salesforcedevs/docs-components 0.26.0 → 0.26.3
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/package.json +2 -6
- package/src/modules/doc/header/header.ts +1 -1
- package/src/modules/doc/content/__tests__/content.test.ts +0 -312
- package/src/modules/doc/content/__tests__/mockDocContent.ts +0 -348
- package/src/modules/doc/content/__tests__/mockPageReference.ts +0 -8
- package/src/modules/doc/content/__tests__/mockSidebar.ts +0 -81
- package/src/modules/doc/content/content.stories.ts +0 -148
- 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 -93
- package/src/modules/doc/contentMedia/contentMedia.stories.ts +0 -113
- package/src/modules/doc/header/__tests__/coveoConfig.ts +0 -6
- package/src/modules/doc/header/__tests__/header.test.ts +0 -437
- 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 -152
- package/src/modules/doc/header/header.stories.ts +0 -190
- package/src/modules/doc/headingAnchor/__tests__/headingAnchor.test.ts +0 -110
- package/src/modules/doc/headingAnchor/headingAnchor.stories.ts +0 -33
- 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 -57
- package/src/modules/doc/phase/__tests__/mockProps.ts +0 -13
- package/src/modules/doc/phase/__tests__/phase.test.ts +0 -58
- package/src/modules/doc/phase/phase.stories.ts +0 -12
- 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,190 +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
|
-
signup-link="${mockProps.signupLink}"
|
|
105
|
-
banner-markup="${mockProps.bannerMarkup}"
|
|
106
|
-
></doc-header>`;
|
|
107
|
-
|
|
108
|
-
export const Base = (args: any) => html`
|
|
109
|
-
${styles()} ${renderPreventNavScript()}
|
|
110
|
-
<div class="fake-url">/</div>
|
|
111
|
-
<doc-header
|
|
112
|
-
title="${mockPropsDevelopers.title}"
|
|
113
|
-
bail-href="${args.bailHref}"
|
|
114
|
-
bail-label="${args.bailLabel}"
|
|
115
|
-
subtitle="${mockPropsDevelopers.subtitle}"
|
|
116
|
-
nav-items="${JSON.stringify(mockPropsDevelopers.navItems)}"
|
|
117
|
-
languages="${JSON.stringify(mockPropsDevelopers.languages)}"
|
|
118
|
-
language="${args.language}"
|
|
119
|
-
coveo-organization-id="${mockPropsDevelopers.coveoOrganizationId}"
|
|
120
|
-
coveo-public-access-token="${mockPropsDevelopers.coveoPublicAccessToken}"
|
|
121
|
-
coveo-search-pipeline="${mockPropsDevelopers.coveoSearchPipeline}"
|
|
122
|
-
coveo-search-hub="${mockPropsDevelopers.coveoSearchHub}"
|
|
123
|
-
onclick="headerClick(event)"
|
|
124
|
-
></doc-header>
|
|
125
|
-
`;
|
|
126
|
-
|
|
127
|
-
// BRAND STORIES
|
|
128
|
-
export const Employees = (args: any) =>
|
|
129
|
-
headerStoryGenerator(mockPropsEmployees, "employees", args);
|
|
130
|
-
|
|
131
|
-
export const Marketing = (args: any) =>
|
|
132
|
-
headerStoryGenerator(mockPropsMarketing, "marketing", args);
|
|
133
|
-
|
|
134
|
-
export const Partners = (args: any) =>
|
|
135
|
-
headerStoryGenerator(mockPropsPartners, "partners", args);
|
|
136
|
-
|
|
137
|
-
export const Commerce = (args: any) =>
|
|
138
|
-
headerStoryGenerator(mockPropsCommerce, "commerce", args);
|
|
139
|
-
|
|
140
|
-
export const Sales = (args: any) =>
|
|
141
|
-
headerStoryGenerator(mockPropsSales, "sales", args);
|
|
142
|
-
|
|
143
|
-
export const Success = (args: any) =>
|
|
144
|
-
headerStoryGenerator(mockPropsSuccess, "success", args);
|
|
145
|
-
|
|
146
|
-
export const Integration = (args: any) =>
|
|
147
|
-
headerStoryGenerator(mockPropsIntegration, "integration", args);
|
|
148
|
-
|
|
149
|
-
export const Platform = (args: any) =>
|
|
150
|
-
headerStoryGenerator(mockPropsPlatform, "platform", args);
|
|
151
|
-
|
|
152
|
-
export const Industries = (args: any) =>
|
|
153
|
-
headerStoryGenerator(mockPropsIndustries, "industries", args);
|
|
154
|
-
|
|
155
|
-
export const Learning = (args: any) =>
|
|
156
|
-
headerStoryGenerator(mockPropsLearning, "learning", args);
|
|
157
|
-
|
|
158
|
-
export const Service = (args: any) =>
|
|
159
|
-
headerStoryGenerator(mockPropsService, "service", args);
|
|
160
|
-
|
|
161
|
-
export const Analytics = (args: any) =>
|
|
162
|
-
headerStoryGenerator(mockPropsAnalytics, "analytics", args);
|
|
163
|
-
|
|
164
|
-
export const AnalyticsWithoutSignup = (args: any) =>
|
|
165
|
-
headerStoryGenerator(
|
|
166
|
-
{ ...mockPropsAnalytics, signupLink:"" },
|
|
167
|
-
"analytics",
|
|
168
|
-
args
|
|
169
|
-
);
|
|
170
|
-
|
|
171
|
-
export const AnalyticsWithCustomBannerText = (args: any) =>
|
|
172
|
-
headerStoryGenerator(
|
|
173
|
-
{
|
|
174
|
-
...mockPropsMarketing,
|
|
175
|
-
bannerMarkup:
|
|
176
|
-
'Salesforce Subscription Management API ("the API") is available as a developer preview. The API is not generally available unless or until Salesforce announces its general availability in documentation or in press releases or public statements. All components of the API including request names, parameters, objects, and fields are subject to change or deprecation at any time, with or without notice. Do not use the API with real data or in a production environment.'
|
|
177
|
-
},
|
|
178
|
-
"analytics",
|
|
179
|
-
args
|
|
180
|
-
);
|
|
181
|
-
|
|
182
|
-
export const AnalyticsWithoutBanner = (args: any) =>
|
|
183
|
-
headerStoryGenerator(
|
|
184
|
-
{
|
|
185
|
-
...mockPropsMarketing,
|
|
186
|
-
bannerMarkup: ""
|
|
187
|
-
},
|
|
188
|
-
"analytics",
|
|
189
|
-
args
|
|
190
|
-
);
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import HeadingAnchor from "doc/headingAnchor";
|
|
2
|
-
import { createRenderComponent } from "utils-internal/tests";
|
|
3
|
-
|
|
4
|
-
const TAG = "doc-heading-anchor";
|
|
5
|
-
const render = createRenderComponent(TAG, HeadingAnchor);
|
|
6
|
-
|
|
7
|
-
describe(TAG, () => {
|
|
8
|
-
const originalClipboard = { ...global.navigator.clipboard };
|
|
9
|
-
beforeEach(() => {
|
|
10
|
-
Object.defineProperty(global.navigator, "clipboard", {
|
|
11
|
-
value: { writeText: jest.fn() },
|
|
12
|
-
configurable: true
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
afterEach(() => {
|
|
17
|
-
Object.defineProperty(global.navigator, "clipboard", {
|
|
18
|
-
value: originalClipboard,
|
|
19
|
-
configurable: true
|
|
20
|
-
});
|
|
21
|
-
});
|
|
22
|
-
it("renders an Anchor element", () => {
|
|
23
|
-
const element = render({
|
|
24
|
-
ariaLabel: "Default",
|
|
25
|
-
iconSize: "override",
|
|
26
|
-
iconSymbol: "link",
|
|
27
|
-
title: "Anchor Component",
|
|
28
|
-
urlText: "anchor-component"
|
|
29
|
-
});
|
|
30
|
-
const iconEl = element.shadowRoot.querySelector("dx-icon");
|
|
31
|
-
|
|
32
|
-
expect(element.getAttribute("class")).toBeDefined();
|
|
33
|
-
expect(iconEl.classList).toContain("icon-container");
|
|
34
|
-
return expect(element).toBeAccessible();
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
it("renders Anchor defaults if no overrides are specified", () => {
|
|
38
|
-
const element = render({ ariaLabel: "Default" });
|
|
39
|
-
|
|
40
|
-
const buttonEl = element.shadowRoot.querySelector("button");
|
|
41
|
-
const buttonAriaLabel = buttonEl.getAttribute("aria-label");
|
|
42
|
-
|
|
43
|
-
expect(buttonEl.getAttribute("class")).toBeFalsy();
|
|
44
|
-
expect(buttonAriaLabel).toBe("Default");
|
|
45
|
-
expect(buttonAriaLabel).not.toContain("copy");
|
|
46
|
-
return expect(element).toBeAccessible();
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
it("can display an icon with the expected settings", () => {
|
|
50
|
-
const iconSize = "large";
|
|
51
|
-
const iconSymbol = "automate";
|
|
52
|
-
const ariaLabel = "Automate";
|
|
53
|
-
const element = render({
|
|
54
|
-
ariaLabel,
|
|
55
|
-
iconSize,
|
|
56
|
-
iconSymbol,
|
|
57
|
-
title: "Anchor Component",
|
|
58
|
-
urlText: "anchor-component"
|
|
59
|
-
});
|
|
60
|
-
const iconEl = element.shadowRoot.querySelector("dx-icon");
|
|
61
|
-
|
|
62
|
-
expect(iconEl).not.toBeNull();
|
|
63
|
-
expect(iconEl.sprite).toBe("utility");
|
|
64
|
-
expect(iconEl.size).toBe(iconSize);
|
|
65
|
-
expect(iconEl.symbol).toBe(iconSymbol);
|
|
66
|
-
return expect(element).toBeAccessible();
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
it("renders an tooltip label on keydown of enter", () => {
|
|
70
|
-
const element = render({
|
|
71
|
-
ariaLabel: "Default",
|
|
72
|
-
iconSize: "override",
|
|
73
|
-
iconSymbol: "link",
|
|
74
|
-
title: "Anchor Component",
|
|
75
|
-
urlText: "anchor-component"
|
|
76
|
-
});
|
|
77
|
-
const mockData = "http://localhost/#anchor-component";
|
|
78
|
-
|
|
79
|
-
return Promise.resolve().then(() => {
|
|
80
|
-
const buttonEl = element.shadowRoot.querySelector("button");
|
|
81
|
-
const event = new KeyboardEvent("keydown", { key: "Enter" });
|
|
82
|
-
buttonEl.dispatchEvent(event);
|
|
83
|
-
const tooltipEl = element.shadowRoot.querySelector("dx-tooltip");
|
|
84
|
-
expect(navigator.clipboard.writeText).toHaveBeenCalledWith(
|
|
85
|
-
mockData
|
|
86
|
-
);
|
|
87
|
-
return expect(tooltipEl).toBeAccessible();
|
|
88
|
-
});
|
|
89
|
-
});
|
|
90
|
-
|
|
91
|
-
it("renders an tooltip label on click of icon", async () => {
|
|
92
|
-
const element = render({
|
|
93
|
-
ariaLabel: "Default",
|
|
94
|
-
iconSize: "override",
|
|
95
|
-
iconSymbol: "link",
|
|
96
|
-
title: "Anchor Component",
|
|
97
|
-
urlText: "anchor-component"
|
|
98
|
-
});
|
|
99
|
-
const mockData = "http://localhost/#anchor-component";
|
|
100
|
-
|
|
101
|
-
return Promise.resolve().then(() => {
|
|
102
|
-
element.shadowRoot.querySelector("dx-icon").click();
|
|
103
|
-
const tooltipEl = element.shadowRoot.querySelector("dx-tooltip");
|
|
104
|
-
expect(navigator.clipboard.writeText).toHaveBeenCalledWith(
|
|
105
|
-
mockData
|
|
106
|
-
);
|
|
107
|
-
return expect(tooltipEl).toBeAccessible();
|
|
108
|
-
});
|
|
109
|
-
});
|
|
110
|
-
});
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { html } from "lit-html";
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
title: "docs/doc-heading-anchor",
|
|
5
|
-
component: "doc-heading-anchor"
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
// prettier-ignore
|
|
9
|
-
const createStyles = () => html`
|
|
10
|
-
<style>
|
|
11
|
-
h2 {
|
|
12
|
-
display: inline;
|
|
13
|
-
color: rgb(11, 92, 171);
|
|
14
|
-
font-weight: bold;
|
|
15
|
-
}
|
|
16
|
-
h2:hover + doc-heading-anchor::part(headingAnchorIcon) {
|
|
17
|
-
opacity: 1;
|
|
18
|
-
}
|
|
19
|
-
</style>`;
|
|
20
|
-
|
|
21
|
-
// prettier-ignore
|
|
22
|
-
export const Inline = () => html` ${createStyles()}
|
|
23
|
-
<h1>
|
|
24
|
-
<strong>A button/icon is hidden by default which is placed beside the title. It is used to copy the naviagtion link generated for the corresponding H2 heading</strong>
|
|
25
|
-
</h1>
|
|
26
|
-
<h2>Anchor Component</h2>
|
|
27
|
-
<doc-heading-anchor
|
|
28
|
-
icon-size="override"
|
|
29
|
-
icon-symbol="link"
|
|
30
|
-
title="Anchor Component"
|
|
31
|
-
url-text="anchor-component"
|
|
32
|
-
></doc-heading-anchor>
|
|
33
|
-
`;
|
|
@@ -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
|
-
];
|