@bobtail.software/b-ssr 1.0.53 → 1.0.54
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/dist/tanstack-client.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var _=Object.create;var a=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var u=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty;var g=(t,o)=>{for(var e in o)a(t,e,{get:o[e],enumerable:!0})},l=(t,o,e,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of p(o))!S.call(t,n)&&n!==e&&a(t,n,{get:()=>o[n],enumerable:!(r=f(o,n))||r.enumerable});return t};var y=(t,o,e)=>(e=t!=null?_(u(t)):{},l(o||!t||!t.__esModule?a(e,"default",{value:t,enumerable:!0}):e,t)),R=t=>l(a({},"__esModule",{value:!0}),t);var E={};g(E,{hydrateClient:()=>w});module.exports=R(E);var s=require("@tanstack/react-router/ssr/client"),m=y(require("react"),1),d=require("react-dom/client"),c=require("react/jsx-runtime");function w(t,o){let e=t(),r=window.__SSR_DATA__,n=window.__GLOBAL_SETTINGS__;n&&o&&o(n),(r||n)&&e.update({context:{...e.options.context,loaderData:r,globalSettings:n}});let i=document.getElementById("root")||document.getElementById("app");i&&!i.innerHTML?(0,d.createRoot)(i).render((0,c.jsx)(m.default.StrictMode,{children:(0,c.jsx)(s.RouterClient,{router:e})})):i&&(0,d.hydrateRoot)(document,(0,c.jsx)(s.RouterClient,{router:e}))}0&&(module.exports={hydrateClient});
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* Hidrata la aplicación en el cliente.
|
|
3
3
|
* @param createRouterFn Función que crea el router
|
|
4
4
|
*/
|
|
5
|
-
declare function hydrateClient(createRouterFn: () => any): void;
|
|
5
|
+
declare function hydrateClient(createRouterFn: () => any, onHydrate?: (settings: any) => void): void;
|
|
6
6
|
|
|
7
7
|
export { hydrateClient };
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* Hidrata la aplicación en el cliente.
|
|
3
3
|
* @param createRouterFn Función que crea el router
|
|
4
4
|
*/
|
|
5
|
-
declare function hydrateClient(createRouterFn: () => any): void;
|
|
5
|
+
declare function hydrateClient(createRouterFn: () => any, onHydrate?: (settings: any) => void): void;
|
|
6
6
|
|
|
7
7
|
export { hydrateClient };
|
package/dist/tanstack-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{RouterClient as a}from"@tanstack/react-router/ssr/client";import
|
|
1
|
+
import{RouterClient as a}from"@tanstack/react-router/ssr/client";import d from"react";import{createRoot as s,hydrateRoot as l}from"react-dom/client";import{jsx as n}from"react/jsx-runtime";function u(c,r){let t=c(),i=window.__SSR_DATA__,o=window.__GLOBAL_SETTINGS__;o&&r&&r(o),(i||o)&&t.update({context:{...t.options.context,loaderData:i,globalSettings:o}});let e=document.getElementById("root")||document.getElementById("app");e&&!e.innerHTML?s(e).render(n(d.StrictMode,{children:n(a,{router:t})})):e&&l(document,n(a,{router:t}))}export{u as hydrateClient};
|
package/package.json
CHANGED