@limlabs/rex 0.5.0 → 0.6.0

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/head.d.ts ADDED
@@ -0,0 +1,13 @@
1
+ import type { ReactNode } from 'react';
2
+ interface HeadProps {
3
+ children?: ReactNode;
4
+ }
5
+ /**
6
+ * rex/head - Inject elements into the document <head>.
7
+ *
8
+ * On the server, collects <title>, <meta>, etc. for SSR injection.
9
+ * On the client, renders nothing (head is already in the HTML).
10
+ */
11
+ export default function Head(_props: HeadProps): null;
12
+ export {};
13
+ //# sourceMappingURL=head.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"head.d.ts","sourceRoot":"","sources":["../src/head.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,UAAU,SAAS;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAEpD"}
package/dist/head.js ADDED
@@ -0,0 +1,10 @@
1
+ /**
2
+ * rex/head - Inject elements into the document <head>.
3
+ *
4
+ * On the server, collects <title>, <meta>, etc. for SSR injection.
5
+ * On the client, renders nothing (head is already in the HTML).
6
+ */
7
+ export default function Head(_props) {
8
+ return null;
9
+ }
10
+ //# sourceMappingURL=head.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"head.js","sourceRoot":"","sources":["../src/head.tsx"],"names":[],"mappings":"AAMA;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,MAAiB;IAC5C,OAAO,IAAI,CAAC;AACd,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@limlabs/rex",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Rex - Next.js Pages Router reimplemented in Rust",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,6 +25,10 @@
25
25
  "types": "./dist/router.d.ts",
26
26
  "import": "./dist/router.js"
27
27
  },
28
+ "./head": {
29
+ "types": "./dist/head.d.ts",
30
+ "import": "./dist/head.js"
31
+ },
28
32
  "./image": {
29
33
  "types": "./dist/image.d.ts",
30
34
  "import": "./dist/image.js"
package/src/head.tsx ADDED
@@ -0,0 +1,15 @@
1
+ import type { ReactNode } from 'react';
2
+
3
+ interface HeadProps {
4
+ children?: ReactNode;
5
+ }
6
+
7
+ /**
8
+ * rex/head - Inject elements into the document <head>.
9
+ *
10
+ * On the server, collects <title>, <meta>, etc. for SSR injection.
11
+ * On the client, renders nothing (head is already in the HTML).
12
+ */
13
+ export default function Head(_props: HeadProps): null {
14
+ return null;
15
+ }