@salesforcedevs/dx-components 1.19.4-test → 1.20.0-rnb-scroll
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 +4 -1
- package/src/modules/dx/codeBlock/codeBlock.css +1 -10
- package/src/modules/dx/codeBlock/codeBlock.ts +2 -2
- package/src/modules/dx/mainContentHeader/mainContentHeader.css +1 -1
- package/src/modules/dx/searchResults/coveo.css +18001 -0
- package/src/modules/dx/toc/toc.css +14 -2
- package/src/modules/dx/toc/toc.html +1 -0
- package/src/modules/dx/toc/toc.ts +2 -7
- package/src/modules/dx/tooltip/microtip.css +269 -0
- package/src/modules/dxBaseElements/sidebarBase/sidebarBase.ts +2 -24
- package/src/modules/dxUtils/handleScroll/handleScroll.ts +17 -0
- package/src/modules/dxUtils/shiki/shiki.ts +1 -1
- package/src/modules/dxUtils/shikiGrammars/shikiGrammars.ts +354 -217
package/package.json
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/dx-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.20.0-rnb-scroll",
|
|
4
4
|
"description": "DX Lightning web components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": "20.x",
|
|
8
8
|
"yarn": "1.22.19"
|
|
9
9
|
},
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"access": "public"
|
|
12
|
+
},
|
|
10
13
|
"dependencies": {
|
|
11
14
|
"@coveo/headless": "3.22.2",
|
|
12
15
|
"@floating-ui/dom": "1.5.1",
|
|
@@ -116,18 +116,9 @@ code[class*="shiki"] {
|
|
|
116
116
|
|
|
117
117
|
pre[class*="shiki"] {
|
|
118
118
|
border-radius: 0 0 0.3em 0.3em;
|
|
119
|
-
padding: 1em;
|
|
119
|
+
padding: 1em 1.5em;
|
|
120
120
|
margin: 0.5em 0;
|
|
121
121
|
overflow: auto;
|
|
122
|
-
/* stylelint-disable-next-line */
|
|
123
|
-
.line {
|
|
124
|
-
counter-increment: codeblock-line;
|
|
125
|
-
|
|
126
|
-
&::before {
|
|
127
|
-
content: counter(codeblock-line);
|
|
128
|
-
margin-right: 1.3em;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
122
|
}
|
|
132
123
|
|
|
133
124
|
@media screen and (max-width: 640px) {
|
|
@@ -72,7 +72,7 @@ export default class CodeBlock extends LightningElement {
|
|
|
72
72
|
{ label: "GTL", id: "gtl" },
|
|
73
73
|
{ label: "LWC", id: "lwc" },
|
|
74
74
|
{ label: "SQL Documentation", id: "sql_docs_template" },
|
|
75
|
-
{ label: "
|
|
75
|
+
{ label: "Agent Script", id: "agentscript" }
|
|
76
76
|
];
|
|
77
77
|
|
|
78
78
|
_codeBlock: string = "";
|
|
@@ -176,7 +176,7 @@ export default class CodeBlock extends LightningElement {
|
|
|
176
176
|
const preElement = tempDiv.querySelector("pre");
|
|
177
177
|
|
|
178
178
|
if (preElement) {
|
|
179
|
-
preElement.classList.add("codeblock");
|
|
179
|
+
preElement.classList.add("codeblock", languageForHighlighting);
|
|
180
180
|
|
|
181
181
|
// Italicize anything marked as a "variable" by the docs team
|
|
182
182
|
// eslint-disable-next-line
|