@salesforcedevs/docs-components 0.22.0 → 0.26.0-alpha.2

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.
Files changed (43) hide show
  1. package/package.json +2 -6
  2. package/src/modules/doc/header/header.css +5 -2
  3. package/src/modules/doc/header/header.html +1 -0
  4. package/src/modules/doc/header/header.ts +1 -1
  5. package/LICENSE +0 -12
  6. package/src/modules/doc/content/__tests__/content.test.ts +0 -312
  7. package/src/modules/doc/content/__tests__/mockDocContent.ts +0 -348
  8. package/src/modules/doc/content/__tests__/mockPageReference.ts +0 -8
  9. package/src/modules/doc/content/__tests__/mockSidebar.ts +0 -81
  10. package/src/modules/doc/content/content.stories.ts +0 -148
  11. package/src/modules/doc/contentCallout/__tests__/contentCallout.test.ts +0 -80
  12. package/src/modules/doc/contentCallout/__tests__/mockProps.ts +0 -14
  13. package/src/modules/doc/contentCallout/contentCallout.stories.ts +0 -29
  14. package/src/modules/doc/contentMedia/__tests__/contentMedia.test.ts +0 -93
  15. package/src/modules/doc/contentMedia/contentMedia.stories.ts +0 -113
  16. package/src/modules/doc/header/__tests__/coveoConfig.ts +0 -6
  17. package/src/modules/doc/header/__tests__/header.test.ts +0 -437
  18. package/src/modules/doc/header/__tests__/mockNavDevelopers.ts +0 -427
  19. package/src/modules/doc/header/__tests__/mockNavs.ts +0 -115
  20. package/src/modules/doc/header/__tests__/mockProps.ts +0 -152
  21. package/src/modules/doc/header/header.stories.ts +0 -190
  22. package/src/modules/doc/headingAnchor/__tests__/headingAnchor.test.ts +0 -110
  23. package/src/modules/doc/headingAnchor/headingAnchor.stories.ts +0 -33
  24. package/src/modules/doc/nav/__tests__/mockAvailableLanguages.ts +0 -8
  25. package/src/modules/doc/nav/__tests__/mockAvailableVersions.ts +0 -122
  26. package/src/modules/doc/nav/__tests__/mockPageReference.ts +0 -8
  27. package/src/modules/doc/nav/__tests__/mockPdfUrl.ts +0 -1
  28. package/src/modules/doc/nav/__tests__/mockSelectedLanguage.ts +0 -8
  29. package/src/modules/doc/nav/__tests__/mockSelectedVersion.ts +0 -8
  30. package/src/modules/doc/nav/__tests__/mockToc.ts +0 -146
  31. package/src/modules/doc/nav/__tests__/nav.test.ts +0 -58
  32. package/src/modules/doc/phase/__tests__/mockProps.ts +0 -13
  33. package/src/modules/doc/phase/__tests__/phase.test.ts +0 -60
  34. package/src/modules/doc/phase/phase.stories.ts +0 -12
  35. package/src/modules/doc/toc/__tests__/mockPageReference.ts +0 -8
  36. package/src/modules/doc/toc/__tests__/mockToc.ts +0 -146
  37. package/src/modules/doc/toc/__tests__/toc.test.ts +0 -29
  38. package/src/modules/doc/toolbar/__tests__/mockAvailableLanguages.ts +0 -8
  39. package/src/modules/doc/toolbar/__tests__/mockAvailableVersions.ts +0 -122
  40. package/src/modules/doc/toolbar/__tests__/mockPdfUrl.ts +0 -1
  41. package/src/modules/doc/toolbar/__tests__/mockSelectedLanguage.ts +0 -8
  42. package/src/modules/doc/toolbar/__tests__/mockSelectedVersion.ts +0 -8
  43. package/src/modules/doc/toolbar/__tests__/toolbar.test.ts +0 -44
@@ -1,427 +0,0 @@
1
- export default [
2
- {
3
- id: "home",
4
- label: "Home",
5
- link: {
6
- href: "/",
7
- target: null
8
- }
9
- },
10
- {
11
- id: "documentation",
12
- label: "Documentation",
13
- link: {
14
- href: "/docs",
15
- target: null
16
- }
17
- },
18
- {
19
- id: "apis",
20
- label: "Apis",
21
- link: {
22
- href: "/docs/apis",
23
- target: null
24
- }
25
- },
26
- {
27
- id: "discover",
28
- label: "Discover",
29
- options: [
30
- {
31
- id: "possibilities",
32
- label: "Learn What Is Possible",
33
- options: [
34
- {
35
- id: "platform",
36
- label: "Salesforce Platform",
37
- link: {
38
- href:
39
- "/developers/discover/possibilities/salesforce-platform",
40
- target: null
41
- }
42
- },
43
- {
44
- id: "building-on-salesforce",
45
- label: "Building on Salesforce",
46
- link: {
47
- href:
48
- "/developers/discover/possibilities/building-on-salesforce",
49
- target: null
50
- }
51
- },
52
- {
53
- id: "being-a-salesforce-developer",
54
- label: "Being a Salesforce Developer",
55
- link: {
56
- href:
57
- "/developers/discover/possibilities/being-a-salesforce-developer",
58
- target: null
59
- }
60
- }
61
- ]
62
- },
63
- {
64
- id: "explorations",
65
- label: "Start Exploring",
66
- options: [
67
- {
68
- description: "Find answers by product or topic",
69
- id: "build-guides",
70
- label: "Build Guides",
71
- link: {
72
- href:
73
- "/developers/discover/explorations/build-guides",
74
- target: null
75
- }
76
- },
77
- {
78
- description:
79
- "Hear short and insightful stories for developers, from developers",
80
- id: "podcast",
81
- label: "Podcast",
82
- link: {
83
- href: "/developers/discover/explorations/podcast",
84
- target: null
85
- }
86
- },
87
- {
88
- description: "Get inspired and explore reference code",
89
- id: "sample-gallery",
90
- label: "Sample Gallery",
91
- link: {
92
- href:
93
- "/developers/discover/explorations/sample-gallery",
94
- target: null
95
- }
96
- },
97
- {
98
- description:
99
- "Search from over 550 demo videos and presentations",
100
- id: "video-gallery",
101
- label: "Video Gallery",
102
- link: {
103
- href:
104
- "/developers/discover/explorations/video-gallery",
105
- target: null
106
- }
107
- }
108
- ]
109
- }
110
- ]
111
- },
112
- {
113
- id: "build",
114
- label: "Build",
115
- options: [
116
- {
117
- id: "build-skills-solutions",
118
- label: "Build Skills & Find Solutions",
119
- options: [
120
- {
121
- description:
122
- "Learn by topic and build exactly what you need",
123
- id: "build-guides",
124
- label: "Build Guides",
125
- link: {
126
- href: "/developers/build/skills/build-guides",
127
- target: null
128
- }
129
- },
130
- {
131
- description: "Learn from what others have done",
132
- id: "demos-videos",
133
- label: "Demos & Videos",
134
- link: {
135
- href: "/developers/build/skills/demos-videos",
136
- target: null
137
- }
138
- },
139
- {
140
- description:
141
- "Get step-by-step instruction with Trailhead’s guided learning options",
142
- id: "courses",
143
- label: "Courses",
144
- link: {
145
- href: "/developers/build/skills/courses",
146
- target: null
147
- }
148
- },
149
- {
150
- description:
151
- "Get globally-recognized, role-based credentials with Trailhead",
152
- id: "certification",
153
- label: "Certification",
154
- link: {
155
- href: "/developers/build/skills/certification",
156
- target: null
157
- }
158
- }
159
- ]
160
- },
161
- {
162
- id: "resources-for-building",
163
- label: "Resources for Building",
164
- options: [
165
- {
166
- description:
167
- "Easily find answers for building within the Salesforce ecosystem",
168
- id: "documentation",
169
- label: "Documentation",
170
- link: {
171
- href: "/developers/build/resources/documentation",
172
- target: null
173
- }
174
- },
175
- {
176
- description:
177
- "Find, add, and learn more about the power of APIs and Salesforce",
178
- id: "api-hub",
179
- label: "API Hub",
180
- link: {
181
- href: "/developers/build/resources/api-hub",
182
- target: null
183
- }
184
- },
185
- {
186
- description:
187
- "Quickly find and use Lightning Web Components in your app",
188
- id: "component-library",
189
- label: "Component Library",
190
- link: {
191
- href:
192
- "/developers/build/resources/component-library",
193
- target: null
194
- }
195
- }
196
- ]
197
- },
198
- {
199
- id: "packages-and-addons",
200
- label: "Extend Salesforce with Packages and Add-Ons",
201
- options: [
202
- {
203
- id: "app-exchange",
204
- label: "AppExchange",
205
- link: {
206
- href: "/developers/build/packages/app-exchange",
207
- target: null
208
- }
209
- },
210
- {
211
- id: "heroku-elements-marketplace",
212
- label: "Heroku Elements Marketplace",
213
- link: {
214
- href:
215
- "/developers/build/packages/heroku-elements-marketplace",
216
- target: null
217
- }
218
- },
219
- {
220
- id: "mulesoft-marketplace",
221
- label: "MuleSoft Marketplace",
222
- link: {
223
- href:
224
- "/developers/build/packages/mulesoft-marketplace",
225
- target: null
226
- }
227
- }
228
- ]
229
- }
230
- ]
231
- },
232
- {
233
- id: "connect",
234
- label: "Connect",
235
- options: [
236
- {
237
- id: "stay-up-to-date",
238
- label: "Stay Up To Date",
239
- options: [
240
- {
241
- id: "events-and-webinars",
242
- label: "Events & Webinars",
243
- link: {
244
- href: "/developers/connect/events-and-webinars",
245
- target: null
246
- }
247
- },
248
- {
249
- id: "podcast",
250
- label: "Podcast",
251
- link: {
252
- href: "/developers/connect/podcast",
253
- target: null
254
- }
255
- },
256
- {
257
- id: "blog",
258
- label: "Blog",
259
- link: {
260
- href: "/developers/connect/blog",
261
- target: null
262
- }
263
- }
264
- ]
265
- },
266
- {
267
- id: "community",
268
- label: "Find Community",
269
- options: [
270
- {
271
- id: "forum",
272
- label: "Discussion Forum",
273
- link: {
274
- href: "/developers/connect/community/forum",
275
- target: null
276
- }
277
- },
278
- {
279
- id: "trailblazer-community",
280
- label: "Trailblazer Community",
281
- link: {
282
- href:
283
- "/developers/connect/community/trailblazer-community",
284
- target: null
285
- }
286
- },
287
- {
288
- id: "parter-community",
289
- label: "Partner Community",
290
- link: {
291
- href:
292
- "/developers/connect/community/parter-community",
293
- target: null
294
- }
295
- }
296
- ]
297
- }
298
- ]
299
- },
300
- {
301
- id: "covid-19",
302
- label: "COVID-19",
303
- options: [
304
- {
305
- id: "covid-resources",
306
- label: "COVID-19 Resources",
307
- options: [
308
- {
309
- id: "covid19-work",
310
- label: "Work.com",
311
- link: {
312
- href: "https://www.salesforce.com/work",
313
- target: "_blank"
314
- }
315
- },
316
- {
317
- id: "covid19-leading-through-change-with-data",
318
- label: "Leading Through Change with Data",
319
- link: {
320
- href:
321
- "https://www.tableau.com/leading-through-change?placement=homepage&utm_medium=Referral&utm_source=Salesforce",
322
- target: "_blank"
323
- }
324
- },
325
- {
326
- id: "covid19-data-hub",
327
- label: "COVID-19 Data Hub",
328
- link: {
329
- href:
330
- "https://www.tableau.com/covid-19-coronavirus-data-resources?placement=homepage&utm_medium=Referral&utm_source=Salesforce",
331
- target: "_blank"
332
- }
333
- },
334
- {
335
- id: "covid19-global-daily-tracker",
336
- label: "COVID-19 Global Daily Tracker",
337
- link: {
338
- href:
339
- "https://www.tableau.com/covid-19-coronavirus-data-resources/global-tracker?placement=homepage&utm_medium=Referral&utm_source=Salesforce",
340
- target: "_blank"
341
- }
342
- },
343
- {
344
- id: "covid19-global-economy-data-track",
345
- label: "Global Economy Data Track",
346
- link: {
347
- href:
348
- "https://www.tableau.com/covid-19-coronavirus-data-resources/economy-data-track?placement=homepage&utm_medium=Referral&utm_source=Salesforce",
349
- target: "_blank"
350
- }
351
- },
352
- {
353
- id: "covid19-government-data-track",
354
- label: "Government Data Track",
355
- link: {
356
- href:
357
- "https://www.tableau.com/covid-19-coronavirus-data-resources/government-data-track?placement=homepage&utm_medium=Referral&utm_source=Salesforce",
358
- target: "_blank"
359
- }
360
- },
361
- {
362
- id: "covid19-healthcare-data-track",
363
- label: "Healthcare Data Track",
364
- link: {
365
- href:
366
- "https://www.tableau.com/covid-19-coronavirus-data-resources/healthcare-data-track?placement=homepage&utm_medium=Referral&utm_source=Salesforce",
367
- target: "_blank"
368
- }
369
- },
370
- {
371
- id: "covid19-b-well-together",
372
- label: "B-Well Together",
373
- link: {
374
- href:
375
- "https://www.salesforce.com/resources/videos/be-well/?d=cta-glob-nav-5",
376
- target: "_blank"
377
- }
378
- },
379
- {
380
- id: "covid19-leading-through-change",
381
- label: "Leading Through Change",
382
- link: {
383
- href:
384
- "https://www.salesforce.com/resources/leading-through-change/#!page=1",
385
- target: "_blank"
386
- }
387
- },
388
- {
389
- id: "covid19-salesforce-care",
390
- label: "Salesforce Care",
391
- link: {
392
- href:
393
- "https://www.salesforce.com/solutions/covid-19-response/overview/?d=cta-glob-nav-7",
394
- target: "_blank"
395
- }
396
- },
397
- {
398
- id: "covid19-trailhead-resources",
399
- label: "Trailhead Resources",
400
- link: {
401
- href:
402
- "https://trailhead.salesforce.com/users/strailhead/trailmixes/trailhead-resources-during-covid-19?utm_source=salesforce_properties&utm_medium=global_nav&utm_campaign=covid19&utm_content=covid_resources_trailmix",
403
- target: "_blank"
404
- }
405
- },
406
- {
407
- id: "covid19-appexchange-resources",
408
- label: "AppExchange Resources",
409
- link: {
410
- href:
411
- "https://appexchange.salesforce.com/mktcollections/curated/c19response?d=cta-nav-external",
412
- target: "_blank"
413
- }
414
- },
415
- {
416
- id: "covid19-mulesoft-resources",
417
- label: "MuleSoft Resources",
418
- link: {
419
- href: "https://www.mulesoft.com/resources/covid-19",
420
- target: "_blank"
421
- }
422
- }
423
- ]
424
- }
425
- ]
426
- }
427
- ];
@@ -1,115 +0,0 @@
1
- export const mockNav = [
2
- {
3
- id: "overview",
4
- label: "Overview",
5
- link: {
6
- href: "/overview",
7
- target: null
8
- }
9
- },
10
- {
11
- id: "guides",
12
- label: "Guides",
13
- link: {
14
- href: "/guides",
15
- target: null
16
- }
17
- },
18
- {
19
- id: "reference",
20
- label: "Reference",
21
- link: {
22
- href: "/reference",
23
- target: null
24
- }
25
- },
26
- {
27
- id: "examples",
28
- label: "Examples",
29
- link: {
30
- href: "/examples",
31
- target: null
32
- }
33
- }
34
- ];
35
-
36
- export const mockNavEmployees = [
37
- {
38
- id: "overview",
39
- label: "Overview",
40
- link: {
41
- href: "/overview",
42
- target: null
43
- }
44
- },
45
- {
46
- id: "guides",
47
- label: "Guides",
48
- link: {
49
- href: "/guides",
50
- target: null
51
- }
52
- },
53
- {
54
- id: "reference",
55
- label: "Reference",
56
- link: {
57
- href: "/reference",
58
- target: null
59
- }
60
- },
61
- {
62
- id: "examples",
63
- label: "Examples",
64
- link: {
65
- href: "/examples",
66
- target: null
67
- }
68
- }
69
- ];
70
-
71
- export const mockNavMarketing = [
72
- {
73
- id: "overview",
74
- label: "Overview",
75
- link: {
76
- href: "/overview",
77
- target: null
78
- }
79
- },
80
- {
81
- id: "guides",
82
- label: "Guides",
83
- link: {
84
- href: "/guides",
85
- target: null
86
- }
87
- },
88
- {
89
- id: "reference",
90
- label: "Reference",
91
- link: {
92
- href: "/reference",
93
- target: null
94
- }
95
- },
96
- {
97
- id: "examples",
98
- label: "Examples",
99
- link: {
100
- href: "/examples",
101
- target: null
102
- }
103
- }
104
- ];
105
-
106
- export const mockNavPartners = mockNav;
107
- export const mockNavCommerce = mockNav;
108
- export const mockNavSales = mockNav;
109
- export const mockNavSuccess = mockNav;
110
- export const mockNavIntegration = mockNav;
111
- export const mockNavPlatform = mockNav;
112
- export const mockNavIndustries = mockNav;
113
- export const mockNavLearning = mockNav;
114
- export const mockNavService = mockNav;
115
- export const mockNavAnalytics = mockNav;
@@ -1,152 +0,0 @@
1
- import {
2
- mockNavEmployees,
3
- mockNavMarketing,
4
- mockNavPartners,
5
- mockNavCommerce,
6
- mockNavSales,
7
- mockNavSuccess,
8
- mockNavIntegration,
9
- mockNavPlatform,
10
- mockNavIndustries,
11
- mockNavLearning,
12
- mockNavService,
13
- mockNavAnalytics
14
- } from "./mockNavs";
15
- import coveoConfig from "./coveoConfig";
16
- import mockNavDevelopers from "./mockNavDevelopers";
17
- import { Option } from "typings/custom";
18
-
19
- const languages: Option[] = [
20
- {
21
- id: "en-us",
22
- label: "English"
23
- },
24
- {
25
- id: "ja-jp",
26
- label: "日本語"
27
- }
28
- ];
29
-
30
- export const mockPropsDevelopers = {
31
- navItems: mockNavDevelopers,
32
- title: "Salesforce Developers",
33
- subtitle: "Apex Developer Guides",
34
- languages,
35
- signupLink: "/sign-up",
36
- bannerMarkup:
37
- '<span><a href="https://forms.gle/TdSyKFPHXoBx7seM9" target="blank">Share your feedback</a>about our new site.</span>',
38
- ...coveoConfig
39
- };
40
-
41
- export const mockPropsNoNavigation = {
42
- subtitle: "Developers",
43
- ...coveoConfig
44
- };
45
-
46
- export const mockPropsEmployees = {
47
- ...mockPropsDevelopers,
48
- bailHref: "/quip-dev-center",
49
- bailLabel: "Quip Development Center",
50
- brand: "employees",
51
- scopedNavItems: mockNavEmployees,
52
- subtitle: "Employees"
53
- };
54
-
55
- export const mockPropsMarketing = {
56
- ...mockPropsDevelopers,
57
- bailHref: "/quip-dev-center",
58
- bailLabel: "Quip Development Center",
59
- brand: "marketing",
60
- scopedNavItems: mockNavMarketing,
61
- subtitle: "Marketing"
62
- };
63
-
64
- export const mockPropsPartners = {
65
- ...mockPropsDevelopers,
66
- bailHref: "/quip-dev-center",
67
- bailLabel: "Quip Development Center",
68
- brand: "partners",
69
- scopedNavItems: mockNavPartners,
70
- subtitle: "Partners"
71
- };
72
-
73
- export const mockPropsCommerce = {
74
- ...mockPropsDevelopers,
75
- bailHref: "/quip-dev-center",
76
- bailLabel: "Quip Development Center",
77
- brand: "commerce",
78
- scopedNavItems: mockNavCommerce,
79
- subtitle: "Commerce"
80
- };
81
-
82
- export const mockPropsSales = {
83
- ...mockPropsDevelopers,
84
- bailHref: "/quip-dev-center",
85
- bailLabel: "Quip Development Center",
86
- brand: "sales",
87
- scopedNavItems: mockNavSales,
88
- subtitle: "Sales"
89
- };
90
-
91
- export const mockPropsSuccess = {
92
- ...mockPropsDevelopers,
93
- bailHref: "/quip-dev-center",
94
- bailLabel: "Quip Development Center",
95
- brand: "success",
96
- scopedNavItems: mockNavSuccess,
97
- subtitle: "Success"
98
- };
99
-
100
- export const mockPropsIntegration = {
101
- ...mockPropsDevelopers,
102
- bailHref: "/quip-dev-center",
103
- bailLabel: "Quip Development Center",
104
- brand: "integration",
105
- scopedNavItems: mockNavIntegration,
106
- subtitle: "Integration"
107
- };
108
-
109
- export const mockPropsPlatform = {
110
- ...mockPropsDevelopers,
111
- bailHref: "/quip-dev-center",
112
- bailLabel: "Quip Development Center",
113
- brand: "platform",
114
- scopedNavItems: mockNavPlatform,
115
- subtitle: "Platform"
116
- };
117
-
118
- export const mockPropsIndustries = {
119
- ...mockPropsDevelopers,
120
- bailHref: "/quip-dev-center",
121
- bailLabel: "Quip Development Center",
122
- brand: "industries",
123
- scopedNavItems: mockNavIndustries,
124
- subtitle: "Industries"
125
- };
126
-
127
- export const mockPropsLearning = {
128
- ...mockPropsDevelopers,
129
- bailHref: "/quip-dev-center",
130
- bailLabel: "Quip Development Center",
131
- brand: "learning",
132
- scopedNavItems: mockNavLearning,
133
- subtitle: "Learning"
134
- };
135
-
136
- export const mockPropsService = {
137
- ...mockPropsDevelopers,
138
- bailHref: "/quip-dev-center",
139
- bailLabel: "Quip Development Center",
140
- brand: "service",
141
- scopedNavItems: mockNavService,
142
- subtitle: "Service"
143
- };
144
-
145
- export const mockPropsAnalytics = {
146
- ...mockPropsDevelopers,
147
- bailHref: "/quip-dev-center",
148
- bailLabel: "Quip Development Center",
149
- brand: "analytics",
150
- scopedNavItems: mockNavAnalytics,
151
- subtitle: "Analytics"
152
- };