@kubb/react-fabric 0.0.1 → 0.1.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.
@@ -1,9 +1,17 @@
1
- require('./react-Bq0UOw6S.cjs');
1
+ const require_react = require('./react-Bq0UOw6S.cjs');
2
2
  require('./globals-8sJ940pg.cjs');
3
- require('./jsx-runtime-B3MMb3PL.cjs');
4
- const require_jsx_runtime$1 = require('./jsx-runtime-zKfRQHQD.cjs');
3
+ const require_jsx_runtime$1 = require('./jsx-runtime-B3MMb3PL.cjs');
5
4
 
6
- exports.Fragment = require_jsx_runtime$1.Fragment;
7
- exports.jsx = require_jsx_runtime$1.jsx;
8
- exports.jsxDEV = require_jsx_runtime$1.jsxDEV;
9
- exports.jsxs = require_jsx_runtime$1.jsxs;
5
+ //#region src/jsx-runtime.ts
6
+ var import_jsx_runtime = /* @__PURE__ */ require_react.__toESM(require_jsx_runtime$1.require_jsx_runtime(), 1);
7
+ const Fragment = import_jsx_runtime.Fragment;
8
+ const jsx = import_jsx_runtime.jsx;
9
+ const jsxs = import_jsx_runtime.jsxs;
10
+ const jsxDEV = import_jsx_runtime.jsx;
11
+
12
+ //#endregion
13
+ exports.Fragment = Fragment;
14
+ exports.jsx = jsx;
15
+ exports.jsxDEV = jsxDEV;
16
+ exports.jsxs = jsxs;
17
+ //# sourceMappingURL=jsx-runtime.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsx-runtime.cjs","names":[],"sources":["../src/jsx-runtime.ts"],"sourcesContent":["import './globals.ts'\n\nimport ReactJSXRuntime from 'react/jsx-runtime'\n\nexport const Fragment = ReactJSXRuntime.Fragment\nexport const jsx = ReactJSXRuntime.jsx\nexport const jsxs = ReactJSXRuntime.jsxs\nexport const jsxDEV = ReactJSXRuntime.jsx\n"],"mappings":";;;;;;AAIA,MAAa,8BAA2B;AACxC,MAAa,yBAAsB;AACnC,MAAa,0BAAuB;AACpC,MAAa,4BAAyB"}
@@ -1,5 +1,5 @@
1
- import "./globals-C6rGETh5.js";
2
- import "./types-DEroxUW0.js";
1
+ import "./globals-C-9ezLk9.cjs";
2
+ import "./types-CUKR3KZn.cjs";
3
3
  import * as react0 from "react";
4
4
  import ReactJSXRuntime from "react/jsx-runtime";
5
5
 
@@ -10,4 +10,4 @@ declare const jsxs: typeof ReactJSXRuntime.jsxs;
10
10
  declare const jsxDEV: typeof ReactJSXRuntime.jsx;
11
11
  //#endregion
12
12
  export { Fragment, jsx, jsxDEV, jsxs };
13
- //# sourceMappingURL=jsx-dev-runtime.d.ts.map
13
+ //# sourceMappingURL=jsx-runtime.d.cts.map
@@ -1,5 +1,5 @@
1
- import "./globals-CnATk-Sl.cjs";
2
- import "./types-C3p0Ljxf.cjs";
1
+ import "./globals-BQ_tJj2b.js";
2
+ import "./types-D9OfSq91.js";
3
3
  import * as react0 from "react";
4
4
  import ReactJSXRuntime from "react/jsx-runtime";
5
5
 
@@ -10,4 +10,4 @@ declare const jsxs: typeof ReactJSXRuntime.jsxs;
10
10
  declare const jsxDEV: typeof ReactJSXRuntime.jsx;
11
11
  //#endregion
12
12
  export { Fragment, jsx, jsxDEV, jsxs };
13
- //# sourceMappingURL=jsx-dev-runtime.d.cts.map
13
+ //# sourceMappingURL=jsx-runtime.d.ts.map
@@ -1,6 +1,14 @@
1
- import "./react-BBkwFtZV.js";
1
+ import { r as __toESM } from "./react-BBkwFtZV.js";
2
2
  import "./globals-Df5klKjG.js";
3
- import "./jsx-runtime-BPQkRAg2.js";
4
- import { i as jsxs, n as jsx, r as jsxDEV, t as Fragment } from "./jsx-runtime-DmD5u6a-.js";
3
+ import { t as require_jsx_runtime } from "./jsx-runtime-BPQkRAg2.js";
5
4
 
6
- export { Fragment, jsx, jsxDEV, jsxs };
5
+ //#region src/jsx-runtime.ts
6
+ var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime(), 1);
7
+ const Fragment = import_jsx_runtime.Fragment;
8
+ const jsx = import_jsx_runtime.jsx;
9
+ const jsxs = import_jsx_runtime.jsxs;
10
+ const jsxDEV = import_jsx_runtime.jsx;
11
+
12
+ //#endregion
13
+ export { Fragment, jsx, jsxDEV, jsxs };
14
+ //# sourceMappingURL=jsx-runtime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsx-runtime.js","names":[],"sources":["../src/jsx-runtime.ts"],"sourcesContent":["import './globals.ts'\n\nimport ReactJSXRuntime from 'react/jsx-runtime'\n\nexport const Fragment = ReactJSXRuntime.Fragment\nexport const jsx = ReactJSXRuntime.jsx\nexport const jsxs = ReactJSXRuntime.jsxs\nexport const jsxDEV = ReactJSXRuntime.jsx\n"],"mappings":";;;;;;AAIA,MAAa,8BAA2B;AACxC,MAAa,yBAAsB;AACnC,MAAa,0BAAuB;AACpC,MAAa,4BAAyB"}
@@ -82,4 +82,4 @@ type JSDoc = {
82
82
  };
83
83
  //#endregion
84
84
  export { JSDoc as a, TextNode as c, Params as d, createFunctionParams as f, ElementNames as i, FunctionParams as l, DOMNode as n, Key as o, DOMNodeAttribute as r, KubbNode as s, DOMElement as t, Param as u };
85
- //# sourceMappingURL=types-C3p0Ljxf.d.cts.map
85
+ //# sourceMappingURL=types-CUKR3KZn.d.cts.map
@@ -82,4 +82,4 @@ type JSDoc = {
82
82
  };
83
83
  //#endregion
84
84
  export { JSDoc as a, TextNode as c, Params as d, createFunctionParams as f, ElementNames as i, FunctionParams as l, DOMNode as n, Key as o, DOMNodeAttribute as r, KubbNode as s, DOMElement as t, Param as u };
85
- //# sourceMappingURL=types-DEroxUW0.d.ts.map
85
+ //# sourceMappingURL=types-D9OfSq91.d.ts.map
package/dist/types.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as JSDoc, c as TextNode, d as Params, i as ElementNames, n as DOMNode, o as Key, r as DOMNodeAttribute, s as KubbNode, t as DOMElement, u as Param } from "./types-C3p0Ljxf.cjs";
1
+ import { a as JSDoc, c as TextNode, d as Params, i as ElementNames, n as DOMNode, o as Key, r as DOMNodeAttribute, s as KubbNode, t as DOMElement, u as Param } from "./types-CUKR3KZn.cjs";
2
2
  export { DOMElement, DOMNode, DOMNodeAttribute, ElementNames, JSDoc, Key, KubbNode, Param, Params, TextNode };
package/dist/types.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as JSDoc, c as TextNode, d as Params, i as ElementNames, n as DOMNode, o as Key, r as DOMNodeAttribute, s as KubbNode, t as DOMElement, u as Param } from "./types-DEroxUW0.js";
1
+ import { a as JSDoc, c as TextNode, d as Params, i as ElementNames, n as DOMNode, o as Key, r as DOMNodeAttribute, s as KubbNode, t as DOMElement, u as Param } from "./types-D9OfSq91.js";
2
2
  export { DOMElement, DOMNode, DOMNodeAttribute, ElementNames, JSDoc, Key, KubbNode, Param, Params, TextNode };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/react-fabric",
3
- "version": "0.0.1",
3
+ "version": "0.1.0",
4
4
  "description": "React integration for Kubb, providing JSX runtime support and React component generation capabilities for code generation plugins.",
5
5
  "keywords": [
6
6
  "react",
@@ -37,10 +37,6 @@
37
37
  "import": "./dist/globals.js",
38
38
  "require": "./dist/globals.cjs"
39
39
  },
40
- "./jsx-dev-runtime": {
41
- "import": "./dist/jsx-dev-runtime.js",
42
- "require": "./dist/jsx-dev-runtime.cjs"
43
- },
44
40
  "./jsx-runtime": {
45
41
  "import": "./dist/jsx-runtime.js",
46
42
  "require": "./dist/jsx-runtime.cjs"
@@ -60,7 +56,7 @@
60
56
  "./dist/devtools.d.ts"
61
57
  ],
62
58
  "jsx-dev-runtime": [
63
- "./dist/jsx-dev-runtime.d.ts"
59
+ "./dist/jsx-runtime.d.ts"
64
60
  ],
65
61
  "jsx-runtime": [
66
62
  "./dist/jsx-runtime.d.ts"
@@ -89,7 +85,7 @@
89
85
  "react-reconciler": "0.32.0",
90
86
  "signal-exit": "^4.1.0",
91
87
  "ws": "^8.18.3",
92
- "@kubb/fabric-core": "0.0.1"
88
+ "@kubb/fabric-core": "0.1.0"
93
89
  },
94
90
  "devDependencies": {
95
91
  "@types/react": "^19.2.2",
@@ -1,5 +1,5 @@
1
1
  import process from 'node:process'
2
- import type { AppContext } from '@kubb/fabric-core'
2
+ import type { AppContext } from '@kubb/fabric-core/types'
3
3
  import type { ReactNode } from 'react'
4
4
  import { ConcurrentRoot } from 'react-reconciler/constants'
5
5
  import { onExit } from 'signal-exit'
@@ -1,6 +1,6 @@
1
1
  import { createContext } from 'react'
2
2
 
3
- import type { KubbFile } from '@kubb/fabric-core'
3
+ import type { KubbFile } from '@kubb/fabric-core/types'
4
4
  import type { Key, KubbNode } from '../types.ts'
5
5
 
6
6
  export type FileContextProps<TMeta extends object = object> = {
package/src/globals.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { KubbFile } from '@kubb/fabric-core'
1
+ import type { KubbFile } from '@kubb/fabric-core/types'
2
2
  import type React from 'react'
3
3
  import type { KubbNode } from './types.ts'
4
4
 
@@ -3,7 +3,7 @@ import { squashExportNodes } from './squashExportNodes.ts'
3
3
  import { squashImportNodes } from './squashImportNodes.ts'
4
4
  import { squashSourceNodes } from './squashSourceNodes.ts'
5
5
 
6
- import type { AppContext, KubbFile } from '@kubb/fabric-core'
6
+ import type { AppContext, KubbFile } from '@kubb/fabric-core/types'
7
7
  import type React from 'react'
8
8
  import type { File } from '../components/File.tsx'
9
9
  import type { DOMElement } from '../types.ts'
@@ -1,6 +1,6 @@
1
1
  import { nodeNames } from '../dom.ts'
2
2
 
3
- import type { KubbFile } from '@kubb/fabric-core'
3
+ import type { KubbFile } from '@kubb/fabric-core/types'
4
4
  import type React from 'react'
5
5
  import type { File } from '../components/File.tsx'
6
6
  import type { DOMElement } from '../types.ts'
@@ -1,6 +1,6 @@
1
1
  import { nodeNames } from '../dom.ts'
2
2
 
3
- import type { KubbFile } from '@kubb/fabric-core'
3
+ import type { KubbFile } from '@kubb/fabric-core/types'
4
4
  import type React from 'react'
5
5
  import type { File } from '../components/File.tsx'
6
6
  import type { DOMElement } from '../types.ts'
@@ -1,6 +1,6 @@
1
1
  import { nodeNames } from '../dom.ts'
2
2
 
3
- import type { KubbFile } from '@kubb/fabric-core'
3
+ import type { KubbFile } from '@kubb/fabric-core/types'
4
4
  import type React from 'react'
5
5
  import type { File } from '../components/File.tsx'
6
6
  import type { DOMElement, ElementNames } from '../types.ts'
@@ -1,9 +0,0 @@
1
- require('./react-Bq0UOw6S.cjs');
2
- require('./globals-8sJ940pg.cjs');
3
- require('./jsx-runtime-B3MMb3PL.cjs');
4
- const require_jsx_runtime$1 = require('./jsx-runtime-zKfRQHQD.cjs');
5
-
6
- exports.Fragment = require_jsx_runtime$1.Fragment;
7
- exports.jsx = require_jsx_runtime$1.jsx;
8
- exports.jsxDEV = require_jsx_runtime$1.jsxDEV;
9
- exports.jsxs = require_jsx_runtime$1.jsxs;
@@ -1,6 +0,0 @@
1
- import "./react-BBkwFtZV.js";
2
- import "./globals-Df5klKjG.js";
3
- import "./jsx-runtime-BPQkRAg2.js";
4
- import { i as jsxs, n as jsx, r as jsxDEV, t as Fragment } from "./jsx-runtime-DmD5u6a-.js";
5
-
6
- export { Fragment, jsx, jsxDEV, jsxs };
@@ -1,13 +0,0 @@
1
- import { r as __toESM } from "./react-BBkwFtZV.js";
2
- import { t as require_jsx_runtime } from "./jsx-runtime-BPQkRAg2.js";
3
-
4
- //#region src/jsx-runtime.ts
5
- var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime(), 1);
6
- const Fragment = import_jsx_runtime.Fragment;
7
- const jsx = import_jsx_runtime.jsx;
8
- const jsxs = import_jsx_runtime.jsxs;
9
- const jsxDEV = import_jsx_runtime.jsx;
10
-
11
- //#endregion
12
- export { jsxs as i, jsx as n, jsxDEV as r, Fragment as t };
13
- //# sourceMappingURL=jsx-runtime-DmD5u6a-.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"jsx-runtime-DmD5u6a-.js","names":[],"sources":["../src/jsx-runtime.ts"],"sourcesContent":["import './globals.ts'\n\nimport ReactJSXRuntime from 'react/jsx-runtime'\n\nexport const Fragment = ReactJSXRuntime.Fragment\nexport const jsx = ReactJSXRuntime.jsx\nexport const jsxs = ReactJSXRuntime.jsxs\nexport const jsxDEV = ReactJSXRuntime.jsx\n"],"mappings":";;;;;AAIA,MAAa,8BAA2B;AACxC,MAAa,yBAAsB;AACnC,MAAa,0BAAuB;AACpC,MAAa,4BAAyB"}
@@ -1,36 +0,0 @@
1
- const require_react = require('./react-Bq0UOw6S.cjs');
2
- const require_jsx_runtime$1 = require('./jsx-runtime-B3MMb3PL.cjs');
3
-
4
- //#region src/jsx-runtime.ts
5
- var import_jsx_runtime = /* @__PURE__ */ require_react.__toESM(require_jsx_runtime$1.require_jsx_runtime(), 1);
6
- const Fragment = import_jsx_runtime.Fragment;
7
- const jsx = import_jsx_runtime.jsx;
8
- const jsxs = import_jsx_runtime.jsxs;
9
- const jsxDEV = import_jsx_runtime.jsx;
10
-
11
- //#endregion
12
- Object.defineProperty(exports, 'Fragment', {
13
- enumerable: true,
14
- get: function () {
15
- return Fragment;
16
- }
17
- });
18
- Object.defineProperty(exports, 'jsx', {
19
- enumerable: true,
20
- get: function () {
21
- return jsx;
22
- }
23
- });
24
- Object.defineProperty(exports, 'jsxDEV', {
25
- enumerable: true,
26
- get: function () {
27
- return jsxDEV;
28
- }
29
- });
30
- Object.defineProperty(exports, 'jsxs', {
31
- enumerable: true,
32
- get: function () {
33
- return jsxs;
34
- }
35
- });
36
- //# sourceMappingURL=jsx-runtime-zKfRQHQD.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"jsx-runtime-zKfRQHQD.cjs","names":[],"sources":["../src/jsx-runtime.ts"],"sourcesContent":["import './globals.ts'\n\nimport ReactJSXRuntime from 'react/jsx-runtime'\n\nexport const Fragment = ReactJSXRuntime.Fragment\nexport const jsx = ReactJSXRuntime.jsx\nexport const jsxs = ReactJSXRuntime.jsxs\nexport const jsxDEV = ReactJSXRuntime.jsx\n"],"mappings":";;;;;AAIA,MAAa,8BAA2B;AACxC,MAAa,yBAAsB;AACnC,MAAa,0BAAuB;AACpC,MAAa,4BAAyB"}