lovable-ssr 0.1.19 → 0.1.20

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.
@@ -1 +1 @@
1
- {"version":3,"file":"BrowserRouteDataProvider.d.ts","sourceRoot":"","sources":["../../src/components/BrowserRouteDataProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,2CA4B7E"}
1
+ {"version":3,"file":"BrowserRouteDataProvider.d.ts","sourceRoot":"","sources":["../../src/components/BrowserRouteDataProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAOvC;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,2CA4B7E"}
@@ -1,7 +1,8 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { HelmetProvider } from 'react-helmet-async';
2
+ import ReactHelmetAsync from 'react-helmet-async';
3
3
  import RouterService from '../router/RouterService.js';
4
4
  import { RouteDataProvider } from '../router/RouteDataContext.js';
5
+ const { HelmetProvider } = ReactHelmetAsync;
5
6
  /**
6
7
  * Wraps children with HelmetProvider and RouteDataProvider using initial data from the browser:
7
8
  * - window.__PRELOADED_DATA__ (from SSR)
@@ -1 +1 @@
1
- {"version":3,"file":"SEO.d.ts","sourceRoot":"","sources":["../../src/components/SEO.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;GAGG;AACH,wBAAgB,GAAG,CAAC,EAClB,KAAK,EACL,WAAW,EACX,KAAK,EACL,GAAG,EACH,IAAgB,EAChB,OAAe,EACf,cAAc,GACf,EAAE,QAAQ,2CAuBV"}
1
+ {"version":3,"file":"SEO.d.ts","sourceRoot":"","sources":["../../src/components/SEO.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;GAGG;AACH,wBAAgB,GAAG,CAAC,EAClB,KAAK,EACL,WAAW,EACX,KAAK,EACL,GAAG,EACH,IAAgB,EAChB,OAAe,EACf,cAAc,GACf,EAAE,QAAQ,2CAuBV"}
@@ -1,5 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Helmet } from 'react-helmet-async';
2
+ import ReactHelmetAsync from 'react-helmet-async';
3
+ const { Helmet } = ReactHelmetAsync;
3
4
  /**
4
5
  * Centralized SEO component for meta tags and JSON-LD.
5
6
  * Use within HelmetProvider (provided by framework at app level).
@@ -1 +1 @@
1
- {"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../src/ssr/render.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAOvC,OAAO,EAAE,cAAc,EAAmB,MAAM,aAAa,CAAC;AAE9D,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM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{ jsx as _jsx } from "react/jsx-runtime";
2
2
  import { renderToString } from 'react-dom/server';
3
- import { HelmetProvider } from 'react-helmet-async';
3
+ import ReactHelmetAsync from 'react-helmet-async';
4
4
  import { StaticRouter } from 'react-router-dom/server';
5
+ const { HelmetProvider } = ReactHelmetAsync;
5
6
  import { AppRoutes } from '../components/AppRoutes.js';
6
7
  import { RouteDataProvider } from '../router/RouteDataContext.js';
7
8
  import RouterService from '../router/RouterService.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lovable-ssr",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "description": "SSR and route data engine for Lovable projects",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -43,8 +43,8 @@
43
43
  "peerDependencies": {
44
44
  "react": "^18.0.0",
45
45
  "react-dom": "^18.0.0",
46
- "react-router-dom": "^6.0.0",
47
- "react-helmet-async": "^2.0.5"
46
+ "react-helmet-async": "^2.0.5",
47
+ "react-router-dom": "^6.0.0"
48
48
  },
49
49
  "dependencies": {
50
50
  "express": "^4.21.0",