nyte 1.1.3 → 1.1.4
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.
|
@@ -299,7 +299,6 @@ function deobfuscateData(obfuscated) {
|
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
301
|
function initializeClient() {
|
|
302
|
-
console.log('[Nyte] Initializing client...');
|
|
303
302
|
try {
|
|
304
303
|
// Lê os dados do atributo data-h
|
|
305
304
|
const dataElement = document.getElementById('__nyte_data__');
|
|
@@ -317,7 +316,6 @@ function initializeClient() {
|
|
|
317
316
|
console.error('[hweb] Failed to parse initial data.');
|
|
318
317
|
return;
|
|
319
318
|
}
|
|
320
|
-
console.log('[Nyte] Data parsed successfully:', initialData);
|
|
321
319
|
// Cria o mapa de componentes dinamicamente a partir dos módulos carregados
|
|
322
320
|
const componentMap = {};
|
|
323
321
|
// Registra todos os componentes que foram importados
|
|
@@ -332,11 +330,9 @@ function initializeClient() {
|
|
|
332
330
|
console.error('[hweb] Container #root not found.');
|
|
333
331
|
return;
|
|
334
332
|
}
|
|
335
|
-
console.log('[Nyte] Mounting React root...');
|
|
336
333
|
// Usar createRoot para render inicial (CSR)
|
|
337
334
|
const root = (0, client_1.createRoot)(container);
|
|
338
335
|
root.render((0, jsx_runtime_1.jsx)(App, { componentMap: componentMap, routes: initialData.routes, initialComponentPath: initialData.initialComponentPath, initialParams: initialData.initialParams, layoutComponent: window.__HWEB_LAYOUT__ }));
|
|
339
|
-
console.log('[Nyte] React root rendered called.');
|
|
340
336
|
}
|
|
341
337
|
catch (error) {
|
|
342
338
|
console.error('[hweb] Critical Error rendering application:', error);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nyte",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"description": "Nyte.js is a high-level framework for building web applications with ease and speed. It provides a robust set of tools and features to streamline development and enhance productivity.",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"author": "itsmuzin",
|
|
@@ -334,7 +334,6 @@ function deobfuscateData(obfuscated: string): any {
|
|
|
334
334
|
}
|
|
335
335
|
|
|
336
336
|
function initializeClient() {
|
|
337
|
-
console.log('[Nyte] Initializing client...');
|
|
338
337
|
|
|
339
338
|
try {
|
|
340
339
|
// Lê os dados do atributo data-h
|
|
@@ -359,7 +358,6 @@ function initializeClient() {
|
|
|
359
358
|
return;
|
|
360
359
|
}
|
|
361
360
|
|
|
362
|
-
console.log('[Nyte] Data parsed successfully:', initialData);
|
|
363
361
|
|
|
364
362
|
// Cria o mapa de componentes dinamicamente a partir dos módulos carregados
|
|
365
363
|
const componentMap: Record<string, any> = {};
|
|
@@ -377,8 +375,6 @@ function initializeClient() {
|
|
|
377
375
|
return;
|
|
378
376
|
}
|
|
379
377
|
|
|
380
|
-
console.log('[Nyte] Mounting React root...');
|
|
381
|
-
|
|
382
378
|
// Usar createRoot para render inicial (CSR)
|
|
383
379
|
const root = createRoot(container);
|
|
384
380
|
|
|
@@ -391,7 +387,6 @@ function initializeClient() {
|
|
|
391
387
|
layoutComponent={(window as any).__HWEB_LAYOUT__}
|
|
392
388
|
/>
|
|
393
389
|
);
|
|
394
|
-
console.log('[Nyte] React root rendered called.');
|
|
395
390
|
|
|
396
391
|
} catch (error: any) {
|
|
397
392
|
console.error('[hweb] Critical Error rendering application:', error);
|