@salesforcedevs/docs-components 1.33.2-llms-txt-2 → 1.33.2-llms-txt-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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/docs-components",
3
- "version": "1.33.2-llms-txt-2",
3
+ "version": "1.33.2-llms-txt-3",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -2,6 +2,7 @@
2
2
  <dx-split-button
3
3
  lwc:if={markdownUrl}
4
4
  label="Copy as Markdown"
5
+ action-tooltip={actionTooltip}
5
6
  icon-symbol="copy"
6
7
  icon-position="right"
7
8
  variant="secondary"
@@ -135,6 +135,13 @@ export default class ContentActionToolbar extends LightningElement {
135
135
  ];
136
136
  }
137
137
 
138
+ // Tooltip for the split button's primary action (Copy as Markdown). Shares
139
+ // the copy-markdown flash state, so it flips to "Copied!" after a successful
140
+ // copy from either the primary button or the matching menu option.
141
+ get actionTooltip(): string {
142
+ return this.copyTooltipFor(OPTION_COPY_MARKDOWN);
143
+ }
144
+
138
145
  // "Copied!" while this option is flashing, otherwise "Click to copy".
139
146
  private copyTooltipFor(optionId: string): string {
140
147
  return this.copiedOptionId === optionId