@mpen/jsxhtml 0.1.18 → 0.1.19

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.
@@ -7,7 +7,7 @@ export declare function RawHtml({ children }: StringChildren): JsxRawHtml;
7
7
  /**
8
8
  * An HTML `<!-- comment -->`
9
9
  */
10
- export declare function Comment({ children }: StringChildren): JsxComment;
10
+ export declare function C({ children }: StringChildren): JsxComment | import("./jsx-elements").JsxEmpty;
11
11
  /**
12
12
  * The `<!DOCTYPE>` node.
13
13
  */
@@ -10,8 +10,10 @@ function RawHtml({children}) {
10
10
  return new jsxRuntime.JsxRawHtml(jsxRuntime.flattenString(children));
11
11
  }
12
12
 
13
- function Comment({children}) {
14
- return new jsxRuntime.JsxComment(` ${jsxRuntime.flattenString(children)} `);
13
+ function C({children}) {
14
+ {
15
+ return jsxRuntime.EMPTY;
16
+ }
15
17
  }
16
18
 
17
19
  function DocType(props) {
@@ -77,7 +79,7 @@ exports.JsxRawHtml = jsxRuntime.JsxRawHtml;
77
79
 
78
80
  exports.isJsxNode = jsxRuntime.isJsxNode;
79
81
 
80
- exports.Comment = Comment;
82
+ exports.C = C;
81
83
 
82
84
  exports.DocType = DocType;
83
85
 
package/index.mjs CHANGED
@@ -1,13 +1,15 @@
1
- import { J as JsxRawHtml, f as flattenString, a as JsxComment, b as JsxDocType, j as jsxs, c as jsx, F as Fragment, E as EMPTY, i as isJsxNode } from "./jsx-runtime-_xtqfR_9.js";
1
+ import { J as JsxRawHtml, f as flattenString, E as EMPTY, a as JsxDocType, j as jsxs, b as jsx, F as Fragment, i as isJsxNode } from "./jsx-runtime-K1okUiXU.js";
2
2
 
3
- export { d as JsxElement, e as JsxEmpty, g as JsxFragment } from "./jsx-runtime-_xtqfR_9.js";
3
+ export { d as JsxComment, c as JsxElement, e as JsxEmpty, g as JsxFragment } from "./jsx-runtime-K1okUiXU.js";
4
4
 
5
5
  function RawHtml({children}) {
6
6
  return new JsxRawHtml(flattenString(children));
7
7
  }
8
8
 
9
- function Comment({children}) {
10
- return new JsxComment(` ${flattenString(children)} `);
9
+ function C({children}) {
10
+ {
11
+ return EMPTY;
12
+ }
11
13
  }
12
14
 
13
15
  function DocType(props) {
@@ -57,4 +59,4 @@ var React;
57
59
 
58
60
  var React$1 = React;
59
61
 
60
- export { Comment, DocType, EMPTY, Empty, HtmlDocument, JsxComment, JsxDocType, JsxRawHtml, RawHtml, React$1 as default, elysiaJsx, isJsxNode };
62
+ export { C, DocType, EMPTY, Empty, HtmlDocument, JsxDocType, JsxRawHtml, RawHtml, React$1 as default, elysiaJsx, isJsxNode };
@@ -1,6 +1,6 @@
1
- import { c as jsx, h as isJsxComponent, a as JsxComment, g as JsxFragment } from "./jsx-runtime-_xtqfR_9.js";
1
+ import { b as jsx, h as isJsxComponent, d as JsxComment, g as JsxFragment } from "./jsx-runtime-K1okUiXU.js";
2
2
 
3
- export { F as Fragment } from "./jsx-runtime-_xtqfR_9.js";
3
+ export { F as Fragment } from "./jsx-runtime-K1okUiXU.js";
4
4
 
5
5
  function jsxDEV(tag, props, key, isStaticChildren, source, self) {
6
6
  let node = jsx(...arguments);
@@ -1724,4 +1724,4 @@ function Fragment({children}) {
1724
1724
  return new JsxFragment(children);
1725
1725
  }
1726
1726
 
1727
- export { EMPTY as E, Fragment as F, JsxRawHtml as J, JsxComment as a, JsxDocType as b, jsx as c, JsxElement as d, JsxEmpty as e, flattenString as f, JsxFragment as g, isJsxComponent as h, isJsxNode as i, jsxs as j };
1727
+ export { EMPTY as E, Fragment as F, JsxRawHtml as J, JsxDocType as a, jsx as b, JsxElement as c, JsxComment as d, JsxEmpty as e, flattenString as f, JsxFragment as g, isJsxComponent as h, isJsxNode as i, jsxs as j };
package/jsx-runtime.mjs CHANGED
@@ -1 +1 @@
1
- export { F as Fragment, c as jsx, j as jsxs } from "./jsx-runtime-_xtqfR_9.js";
1
+ export { F as Fragment, b as jsx, j as jsxs } from "./jsx-runtime-K1okUiXU.js";
package/package.json CHANGED
@@ -1,10 +1,15 @@
1
1
  {
2
2
  "name": "@mpen/jsxhtml",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "packageManager": "bun@1.0.7",
5
- "exports": "./index.cjs",
5
+ "main": "./index.cjs",
6
6
  "module": "./index.mjs",
7
7
  "types": "./index.d.ts",
8
+ "exports": {
9
+ ".": "./index.mjs",
10
+ "./jsx-runtime": "./jsx-runtime.mjs",
11
+ "./jsx-dev-runtime": "./jsx-dev-runtime.mjs"
12
+ },
8
13
  "sideEffects": false,
9
14
  "author": {
10
15
  "name": "Mark Penner",
File without changes
File without changes