olova 2.0.19 → 2.0.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.
package/dist/Router.d.ts CHANGED
@@ -1,34 +1,6 @@
1
1
  import React__default from 'react';
2
+ import { OlovaMetadata as Metadata } from './seo.js';
2
3
 
3
- interface Metadata {
4
- title?: string;
5
- description?: string;
6
- keywords?: string | string[];
7
- openGraph?: {
8
- title?: string;
9
- description?: string;
10
- url?: string;
11
- siteName?: string;
12
- images?: {
13
- url: string;
14
- width?: number;
15
- height?: number;
16
- alt?: string;
17
- }[];
18
- type?: string;
19
- };
20
- twitter?: {
21
- card?: 'summary' | 'summary_large_image' | 'app' | 'player';
22
- site?: string;
23
- creator?: string;
24
- title?: string;
25
- description?: string;
26
- images?: string[];
27
- };
28
- robots?: string;
29
- canonical?: string;
30
- jsonLd?: object | object[];
31
- }
32
4
  declare function matchRoute(path: string): {
33
5
  loader: any;
34
6
  params: Record<string, string>;
@@ -50,4 +22,4 @@ declare function Router({ url, initialComponent, initialParams, onRouteChange }:
50
22
  path: string;
51
23
  }>>;
52
24
 
53
- export { type Metadata, Router, loadRoute, matchRoute };
25
+ export { Metadata, Router, loadRoute, matchRoute };
package/dist/index.d.ts CHANGED
@@ -3,7 +3,8 @@ export { default as Link } from './Link.js';
3
3
  export { ReadonlyURLSearchParams, default as useSearchParams } from './useSearchParams.js';
4
4
  export { default as usePathname } from './usePathname.js';
5
5
  export { default as useParams, usePath } from './useParams.js';
6
- export { Metadata, Router, loadRoute, matchRoute } from './Router.js';
6
+ export { Router, loadRoute, matchRoute } from './Router.js';
7
+ export { OlovaMetadata as Metadata } from './seo.js';
7
8
 
8
9
  declare const RouterContext: React.Context<{
9
10
  params: Record<string, string>;
package/dist/index.js CHANGED
@@ -1,3 +1,6 @@
1
+ import {
2
+ useSearchParams
3
+ } from "./chunk-NEMX72XA.js";
1
4
  import {
2
5
  Link
3
6
  } from "./chunk-CYX762OE.js";
@@ -16,9 +19,6 @@ import {
16
19
  import {
17
20
  usePathname
18
21
  } from "./chunk-XGX5YRJV.js";
19
- import {
20
- useSearchParams
21
- } from "./chunk-NEMX72XA.js";
22
22
  export {
23
23
  Link,
24
24
  Router,
package/dist/seo.d.ts ADDED
@@ -0,0 +1,35 @@
1
+ /**
2
+ * SEO Types and Utilities for Olova Framework
3
+ * Usage: import { Metadata } from 'olova/seo';
4
+ */
5
+ interface Metadata {
6
+ title?: string;
7
+ description?: string;
8
+ keywords?: string | string[];
9
+ openGraph?: {
10
+ title?: string;
11
+ description?: string;
12
+ url?: string;
13
+ siteName?: string;
14
+ images?: {
15
+ url: string;
16
+ width?: number;
17
+ height?: number;
18
+ alt?: string;
19
+ }[];
20
+ type?: string;
21
+ };
22
+ twitter?: {
23
+ card?: 'summary' | 'summary_large_image' | 'app' | 'player';
24
+ site?: string;
25
+ creator?: string;
26
+ title?: string;
27
+ description?: string;
28
+ images?: string[];
29
+ };
30
+ robots?: string;
31
+ canonical?: string;
32
+ jsonLd?: object | object[];
33
+ }
34
+
35
+ export type { Metadata, Metadata as OlovaMetadata };
package/dist/seo.js ADDED
File without changes
package/dist/server.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import React__default from 'react';
2
- import { Metadata } from './Router.js';
2
+ import { OlovaMetadata as Metadata } from './seo.js';
3
3
 
4
4
  declare function render(url: string, RootLayout?: React__default.ComponentType<any>): Promise<{
5
5
  html: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  {
3
3
  "name": "olova",
4
- "version": "2.0.19",
4
+ "version": "2.0.20",
5
5
  "description": "Olova framework core",
6
6
  "type": "module",
7
7
  "files": [
@@ -39,10 +39,14 @@
39
39
  "./server": {
40
40
  "import": "./dist/server.js",
41
41
  "types": "./dist/server.d.ts"
42
+ },
43
+ "./seo": {
44
+ "import": "./dist/seo.js",
45
+ "types": "./dist/seo.d.ts"
42
46
  }
43
47
  },
44
48
  "scripts": {
45
- "build": "tsup index.ts Link.tsx useSearchParams.ts usePathname.ts useParams.ts Router.tsx server.tsx client.tsx --format esm --dts --clean --external virtual:olova-routes react react-dom react-dom/client react-dom/server",
49
+ "build": "tsup index.ts Link.tsx useSearchParams.ts usePathname.ts useParams.ts Router.tsx server.tsx client.tsx seo.ts --format esm --dts --clean --external virtual:olova-routes react react-dom react-dom/client react-dom/server",
46
50
  "prepublishOnly": "npm run build"
47
51
  },
48
52
  "peerDependencies": {