You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@salesforcedevs/docs-components

Package Overview
Dependencies
Maintainers
17
Versions
795
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@salesforcedevs/docs-components - npm Package Compare versions

Comparing version

to
0.0.9-edit

2

package.json
{
"name": "@salesforcedevs/docs-components",
"version": "0.0.8-edit",
"version": "0.0.9-edit",
"description": "Docs Lightning web components for DSC",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -109,2 +109,5 @@ import { LightningElement, api, track } from "lwc";

this.errorMessage = "";
// Set textarea value directly using ref
this.updateTextareaValue();
} else {

@@ -209,2 +212,13 @@ this.errorMessage = data.error || data.message || "Failed to load file content";

// Update textarea value using ref
private updateTextareaValue() {
// Use setTimeout to ensure DOM is updated
setTimeout(() => {
const textarea = this.template.querySelector('#file-content') as HTMLTextAreaElement;
if (textarea && this.fileContent !== undefined) {
textarea.value = this.fileContent;
}
}, 0);
}
connectedCallback() {

@@ -215,2 +229,9 @@ // Add escape key listener

renderedCallback() {
// Ensure textarea value is set correctly when component renders
if (this.isPopoverOpen && this.fileContent && !this.isLoading) {
this.updateTextareaValue();
}
}
disconnectedCallback() {

@@ -217,0 +238,0 @@ // Remove escape key listener

Sorry, the diff of this file is not supported yet