1- import { initWdprRuntime , type WdprRuntime } from "@wdpr /runtime" ;
1+ import { initWdprRuntime , type WdprRuntime } from "@wdprlib /runtime" ;
22
33let runtime : WdprRuntime | null = null ;
44let currentPageId : number | null = null ;
@@ -21,7 +21,7 @@ function applyPageStyles(styles: string[]) {
2121
2222/**
2323 * Safely set HTML content using a sandboxed approach.
24- * The HTML is generated server-side by @wdpr /render which sanitizes user input.
24+ * The HTML is generated server-side by @wdprlib /render which sanitizes user input.
2525 * We use a template element for parsing to avoid script execution during parsing.
2626 */
2727function setTrustedHtml ( element : Element , html : string ) : void {
@@ -76,7 +76,7 @@ async function loadPage(path: string) {
7676 const content = document . getElementById ( "page-content" ) ;
7777 if ( ! content ) return ;
7878
79- // Server-generated HTML from @wdpr /render (sanitized)
79+ // Server-generated HTML from @wdprlib /render (sanitized)
8080 setTrustedHtml ( content , data . html ) ;
8181 content . dataset . pageId = String ( data . page_id ) ;
8282
@@ -341,7 +341,7 @@ async function previewPage() {
341341 h3 . textContent = "Preview" ;
342342 const previewContent = document . createElement ( "div" ) ;
343343 previewContent . className = "preview-content" ;
344- // Server-generated HTML from @wdpr /render (sanitized)
344+ // Server-generated HTML from @wdprlib /render (sanitized)
345345 setTrustedHtml ( previewContent , data . html ) ;
346346 previewArea . appendChild ( h3 ) ;
347347 previewArea . appendChild ( previewContent ) ;
@@ -391,7 +391,7 @@ async function loadNavigation() {
391391 const actionsSection = sidebar . querySelector ( "#side-bar-actions" ) ;
392392 // Clone the actions section to preserve it after replaceChildren
393393 const actionsClone = actionsSection ?. cloneNode ( true ) as HTMLElement | null ;
394- // Server-generated HTML from @wdpr /render (sanitized)
394+ // Server-generated HTML from @wdprlib /render (sanitized)
395395 setTrustedHtml ( sidebar , html ) ;
396396 // Re-add actions section at the beginning
397397 if ( actionsClone ) {
@@ -407,7 +407,7 @@ async function loadNavigation() {
407407 const { html, styles } = ( await topbarRes . json ( ) ) as { html : string ; styles ?: string [ ] } ;
408408 const topbar = document . getElementById ( "top-bar" ) ;
409409 if ( topbar ) {
410- // Server-generated HTML from @wdpr /render (sanitized)
410+ // Server-generated HTML from @wdprlib /render (sanitized)
411411 setTrustedHtml ( topbar , html ) ;
412412 }
413413 if ( styles ) navStyles . push ( ...styles ) ;
0 commit comments