@kubb/react-fabric 0.1.4 → 0.1.5

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.
Files changed (42) hide show
  1. package/dist/{App-2SatilGX.d.ts → App-BSJU0vg2.d.ts} +12 -9
  2. package/dist/{App-DwUtyfk9.d.cts → App-Cdnk4C-T.d.cts} +12 -9
  3. package/dist/{Runtime-DWlDUeLZ.js → Runtime-CmpwGMfo.js} +21 -21
  4. package/dist/Runtime-CmpwGMfo.js.map +1 -0
  5. package/dist/{Runtime-JI640uK4.cjs → Runtime-DuxjdecG.cjs} +21 -21
  6. package/dist/Runtime-DuxjdecG.cjs.map +1 -0
  7. package/dist/devtools.cjs +5 -5
  8. package/dist/devtools.cjs.map +1 -1
  9. package/dist/devtools.js +5 -5
  10. package/dist/devtools.js.map +1 -1
  11. package/dist/index.cjs +4 -4
  12. package/dist/index.cjs.map +1 -1
  13. package/dist/index.d.cts +4 -4
  14. package/dist/index.d.ts +4 -4
  15. package/dist/index.js +4 -4
  16. package/dist/index.js.map +1 -1
  17. package/dist/{jsx-runtime-d2dmYscH.cjs → jsx-runtime-CxtdoFyp.cjs} +8 -8
  18. package/dist/jsx-runtime-CxtdoFyp.cjs.map +1 -0
  19. package/dist/{jsx-runtime-Dg-pJBHd.js → jsx-runtime-dzWW5eHB.js} +8 -8
  20. package/dist/jsx-runtime-dzWW5eHB.js.map +1 -0
  21. package/dist/jsx-runtime.cjs +2 -2
  22. package/dist/jsx-runtime.js +2 -2
  23. package/dist/parsers.d.cts +1 -1
  24. package/dist/parsers.d.ts +1 -1
  25. package/dist/plugins.cjs +3 -3
  26. package/dist/plugins.cjs.map +1 -1
  27. package/dist/plugins.d.cts +21 -2
  28. package/dist/plugins.d.ts +21 -2
  29. package/dist/plugins.js +3 -3
  30. package/dist/plugins.js.map +1 -1
  31. package/dist/{react-BBkwFtZV.js → react-DA-4hb8R.js} +7 -7
  32. package/dist/react-DA-4hb8R.js.map +1 -0
  33. package/dist/{react-Bq0UOw6S.cjs → react-m108td-u.cjs} +7 -7
  34. package/dist/react-m108td-u.cjs.map +1 -0
  35. package/package.json +2 -2
  36. package/src/plugins/reactPlugin.ts +12 -0
  37. package/dist/Runtime-DWlDUeLZ.js.map +0 -1
  38. package/dist/Runtime-JI640uK4.cjs.map +0 -1
  39. package/dist/jsx-runtime-Dg-pJBHd.js.map +0 -1
  40. package/dist/jsx-runtime-d2dmYscH.cjs.map +0 -1
  41. package/dist/react-BBkwFtZV.js.map +0 -1
  42. package/dist/react-Bq0UOw6S.cjs.map +0 -1
@@ -4,11 +4,11 @@ import { i as File, o as Path, r as Extname, s as ResolvedFile } from "./KubbFil
4
4
  type Plugin<TOptions = any[], TAppExtension$1 extends Record<string, any> = {}> = {
5
5
  name: string;
6
6
  type: 'plugin';
7
- scope?: 'write' | 'read' | (string & {});
8
7
  install: Install<TOptions> | Promise<Install<TOptions>>;
9
8
  /**
10
9
  * Runtime app overrides or extensions.
11
10
  * Merged into the app instance after install.
11
+ * This cannot be async
12
12
  */
13
13
  inject?: Inject<TOptions, TAppExtension$1>;
14
14
  };
@@ -93,20 +93,21 @@ declare class FileManager {
93
93
  }
94
94
  //#endregion
95
95
  //#region ../fabric-core/src/App.d.ts
96
+ declare global {
97
+ namespace Kubb {
98
+ interface App {}
99
+ }
100
+ }
96
101
  type Component = any;
97
102
  type AppEvents = {
98
103
  /**
99
104
  * Called in the beginning of the app lifecycle.
100
105
  */
101
- start: [{
102
- app: App;
103
- }];
106
+ start: [];
104
107
  /**
105
108
  * Called in the end of the app lifecycle.
106
109
  */
107
- end: [{
108
- app: App;
109
- }];
110
+ end: [];
110
111
  /**
111
112
  * Called when being rendered
112
113
  */
@@ -162,13 +163,15 @@ type AppContext<TOptions = unknown> = {
162
163
  };
163
164
  type Install<TOptions = any[] | object | undefined> = TOptions extends any[] ? (app: App, ...options: TOptions) => void : TOptions extends object ? (app: App, options?: TOptions) => void : (app: App) => void;
164
165
  type Inject<TOptions = any[] | object | undefined, TAppExtension$1 extends Record<string, any> = {}> = TOptions extends any[] ? (app: App, ...options: TOptions) => Partial<TAppExtension$1> : TOptions extends object ? (app: App, options?: TOptions) => Partial<TAppExtension$1> : (app: App) => Partial<TAppExtension$1>;
165
- interface App<TOptions = unknown> {
166
+ interface App<TOptions = unknown> extends Kubb.App {
166
167
  context: AppContext<TOptions>;
167
168
  files: Array<ResolvedFile>;
168
169
  use<TOptions extends any[] | object = any, TMeta extends object = object, TAppExtension extends Record<string, any> = {}>(pluginOrParser: Plugin<TOptions, TAppExtension> | Parser<TOptions, TMeta>, ...options: TOptions extends any[] ? NoInfer<TOptions> : [NoInfer<TOptions>]): this & TAppExtension;
169
170
  use<TOptions extends any[] | object = any, TMeta extends object = object, TAppExtension extends Record<string, any> = {}>(pluginOrParser: Plugin<TOptions, TAppExtension> | Parser<TOptions, TMeta>): this & TAppExtension;
171
+ use<TOptions extends any[] | object = any, TMeta extends object = object, TAppExtension extends Record<string, any> = {}>(pluginOrParser: Plugin<TOptions, TAppExtension> | Parser<TOptions, TMeta>, ...options: TOptions extends any[] ? NoInfer<TOptions> : [NoInfer<TOptions>]): Promise<this & TAppExtension>;
172
+ use<TOptions extends any[] | object = any, TMeta extends object = object, TAppExtension extends Record<string, any> = {}>(pluginOrParser: Plugin<TOptions, TAppExtension> | Parser<TOptions, TMeta>): Promise<this & TAppExtension>;
170
173
  addFile(...files: Array<File>): Promise<void>;
171
174
  }
172
175
  //#endregion
173
176
  export { UserParser as a, Parser as i, Component as n, Plugin as o, FileManager as r, UserPlugin as s, App as t };
174
- //# sourceMappingURL=App-2SatilGX.d.ts.map
177
+ //# sourceMappingURL=App-BSJU0vg2.d.ts.map
@@ -4,11 +4,11 @@ import { i as File, o as Path, r as Extname, s as ResolvedFile } from "./KubbFil
4
4
  type Plugin<TOptions = any[], TAppExtension$1 extends Record<string, any> = {}> = {
5
5
  name: string;
6
6
  type: 'plugin';
7
- scope?: 'write' | 'read' | (string & {});
8
7
  install: Install<TOptions> | Promise<Install<TOptions>>;
9
8
  /**
10
9
  * Runtime app overrides or extensions.
11
10
  * Merged into the app instance after install.
11
+ * This cannot be async
12
12
  */
13
13
  inject?: Inject<TOptions, TAppExtension$1>;
14
14
  };
@@ -93,20 +93,21 @@ declare class FileManager {
93
93
  }
94
94
  //#endregion
95
95
  //#region ../fabric-core/src/App.d.ts
96
+ declare global {
97
+ namespace Kubb {
98
+ interface App {}
99
+ }
100
+ }
96
101
  type Component = any;
97
102
  type AppEvents = {
98
103
  /**
99
104
  * Called in the beginning of the app lifecycle.
100
105
  */
101
- start: [{
102
- app: App;
103
- }];
106
+ start: [];
104
107
  /**
105
108
  * Called in the end of the app lifecycle.
106
109
  */
107
- end: [{
108
- app: App;
109
- }];
110
+ end: [];
110
111
  /**
111
112
  * Called when being rendered
112
113
  */
@@ -162,13 +163,15 @@ type AppContext<TOptions = unknown> = {
162
163
  };
163
164
  type Install<TOptions = any[] | object | undefined> = TOptions extends any[] ? (app: App, ...options: TOptions) => void : TOptions extends object ? (app: App, options?: TOptions) => void : (app: App) => void;
164
165
  type Inject<TOptions = any[] | object | undefined, TAppExtension$1 extends Record<string, any> = {}> = TOptions extends any[] ? (app: App, ...options: TOptions) => Partial<TAppExtension$1> : TOptions extends object ? (app: App, options?: TOptions) => Partial<TAppExtension$1> : (app: App) => Partial<TAppExtension$1>;
165
- interface App<TOptions = unknown> {
166
+ interface App<TOptions = unknown> extends Kubb.App {
166
167
  context: AppContext<TOptions>;
167
168
  files: Array<ResolvedFile>;
168
169
  use<TOptions extends any[] | object = any, TMeta extends object = object, TAppExtension extends Record<string, any> = {}>(pluginOrParser: Plugin<TOptions, TAppExtension> | Parser<TOptions, TMeta>, ...options: TOptions extends any[] ? NoInfer<TOptions> : [NoInfer<TOptions>]): this & TAppExtension;
169
170
  use<TOptions extends any[] | object = any, TMeta extends object = object, TAppExtension extends Record<string, any> = {}>(pluginOrParser: Plugin<TOptions, TAppExtension> | Parser<TOptions, TMeta>): this & TAppExtension;
171
+ use<TOptions extends any[] | object = any, TMeta extends object = object, TAppExtension extends Record<string, any> = {}>(pluginOrParser: Plugin<TOptions, TAppExtension> | Parser<TOptions, TMeta>, ...options: TOptions extends any[] ? NoInfer<TOptions> : [NoInfer<TOptions>]): Promise<this & TAppExtension>;
172
+ use<TOptions extends any[] | object = any, TMeta extends object = object, TAppExtension extends Record<string, any> = {}>(pluginOrParser: Plugin<TOptions, TAppExtension> | Parser<TOptions, TMeta>): Promise<this & TAppExtension>;
170
173
  addFile(...files: Array<File>): Promise<void>;
171
174
  }
172
175
  //#endregion
173
176
  export { UserParser as a, Parser as i, Component as n, Plugin as o, FileManager as r, UserPlugin as s, App as t };
174
- //# sourceMappingURL=App-DwUtyfk9.d.cts.map
177
+ //# sourceMappingURL=App-Cdnk4C-T.d.cts.map
@@ -1,5 +1,5 @@
1
- import { n as __commonJS, r as __toESM, t as require_react } from "./react-BBkwFtZV.js";
2
- import { t as require_jsx_runtime } from "./jsx-runtime-Dg-pJBHd.js";
1
+ import { n as __commonJS, r as __toESM, t as require_react } from "./react-DA-4hb8R.js";
2
+ import { t as require_jsx_runtime } from "./jsx-runtime-dzWW5eHB.js";
3
3
  import process$1 from "node:process";
4
4
  import { onExit } from "signal-exit";
5
5
  import { createExport, createImport, print } from "@kubb/fabric-core/parsers/typescript";
@@ -117,22 +117,22 @@ function _classPrivateFieldGet2(s, a) {
117
117
  }
118
118
 
119
119
  //#endregion
120
- //#region ../../node_modules/.pnpm/react-reconciler@0.32.0_react@19.2.0/node_modules/react-reconciler/cjs/react-reconciler-constants.production.js
121
- var require_react_reconciler_constants_production = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/react-reconciler@0.32.0_react@19.2.0/node_modules/react-reconciler/cjs/react-reconciler-constants.production.js": ((exports) => {
120
+ //#region ../../node_modules/react-reconciler/cjs/react-reconciler-constants.production.js
121
+ var require_react_reconciler_constants_production = /* @__PURE__ */ __commonJS({ "../../node_modules/react-reconciler/cjs/react-reconciler-constants.production.js": ((exports) => {
122
122
  exports.ConcurrentRoot = 1;
123
123
  exports.DefaultEventPriority = 32;
124
124
  exports.NoEventPriority = 0;
125
125
  }) });
126
126
 
127
127
  //#endregion
128
- //#region ../../node_modules/.pnpm/react-reconciler@0.32.0_react@19.2.0/node_modules/react-reconciler/cjs/react-reconciler-constants.development.js
129
- var require_react_reconciler_constants_development = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/react-reconciler@0.32.0_react@19.2.0/node_modules/react-reconciler/cjs/react-reconciler-constants.development.js": ((exports) => {
128
+ //#region ../../node_modules/react-reconciler/cjs/react-reconciler-constants.development.js
129
+ var require_react_reconciler_constants_development = /* @__PURE__ */ __commonJS({ "../../node_modules/react-reconciler/cjs/react-reconciler-constants.development.js": ((exports) => {
130
130
  "production" !== process.env.NODE_ENV && (exports.ConcurrentRoot = 1, exports.ContinuousEventPriority = 8, exports.DefaultEventPriority = 32, exports.DiscreteEventPriority = 2, exports.IdleEventPriority = 268435456, exports.LegacyRoot = 0, exports.NoEventPriority = 0);
131
131
  }) });
132
132
 
133
133
  //#endregion
134
- //#region ../../node_modules/.pnpm/react-reconciler@0.32.0_react@19.2.0/node_modules/react-reconciler/constants.js
135
- var require_constants = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/react-reconciler@0.32.0_react@19.2.0/node_modules/react-reconciler/constants.js": ((exports, module) => {
134
+ //#region ../../node_modules/react-reconciler/constants.js
135
+ var require_constants = /* @__PURE__ */ __commonJS({ "../../node_modules/react-reconciler/constants.js": ((exports, module) => {
136
136
  if (process.env.NODE_ENV === "production") module.exports = require_react_reconciler_constants_production();
137
137
  else module.exports = require_react_reconciler_constants_development();
138
138
  }) });
@@ -194,8 +194,8 @@ const nodeNames = [
194
194
  ];
195
195
 
196
196
  //#endregion
197
- //#region ../../node_modules/.pnpm/scheduler@0.26.0/node_modules/scheduler/cjs/scheduler.production.js
198
- var require_scheduler_production = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/scheduler@0.26.0/node_modules/scheduler/cjs/scheduler.production.js": ((exports) => {
197
+ //#region ../../node_modules/scheduler/cjs/scheduler.production.js
198
+ var require_scheduler_production = /* @__PURE__ */ __commonJS({ "../../node_modules/scheduler/cjs/scheduler.production.js": ((exports) => {
199
199
  function push(heap, node) {
200
200
  var index = heap.length;
201
201
  heap.push(node);
@@ -427,8 +427,8 @@ var require_scheduler_production = /* @__PURE__ */ __commonJS({ "../../node_modu
427
427
  }) });
428
428
 
429
429
  //#endregion
430
- //#region ../../node_modules/.pnpm/scheduler@0.26.0/node_modules/scheduler/cjs/scheduler.development.js
431
- var require_scheduler_development = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/scheduler@0.26.0/node_modules/scheduler/cjs/scheduler.development.js": ((exports) => {
430
+ //#region ../../node_modules/scheduler/cjs/scheduler.development.js
431
+ var require_scheduler_development = /* @__PURE__ */ __commonJS({ "../../node_modules/scheduler/cjs/scheduler.development.js": ((exports) => {
432
432
  "production" !== process.env.NODE_ENV && (function() {
433
433
  function performWorkUntilDeadline$1() {
434
434
  needsPaint$1 = !1;
@@ -662,15 +662,15 @@ var require_scheduler_development = /* @__PURE__ */ __commonJS({ "../../node_mod
662
662
  }) });
663
663
 
664
664
  //#endregion
665
- //#region ../../node_modules/.pnpm/scheduler@0.26.0/node_modules/scheduler/index.js
666
- var require_scheduler = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/scheduler@0.26.0/node_modules/scheduler/index.js": ((exports, module) => {
665
+ //#region ../../node_modules/scheduler/index.js
666
+ var require_scheduler = /* @__PURE__ */ __commonJS({ "../../node_modules/scheduler/index.js": ((exports, module) => {
667
667
  if (process.env.NODE_ENV === "production") module.exports = require_scheduler_production();
668
668
  else module.exports = require_scheduler_development();
669
669
  }) });
670
670
 
671
671
  //#endregion
672
- //#region ../../node_modules/.pnpm/react-reconciler@0.32.0_react@19.2.0/node_modules/react-reconciler/cjs/react-reconciler.production.js
673
- var require_react_reconciler_production = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/react-reconciler@0.32.0_react@19.2.0/node_modules/react-reconciler/cjs/react-reconciler.production.js": ((exports, module) => {
672
+ //#region ../../node_modules/react-reconciler/cjs/react-reconciler.production.js
673
+ var require_react_reconciler_production = /* @__PURE__ */ __commonJS({ "../../node_modules/react-reconciler/cjs/react-reconciler.production.js": ((exports, module) => {
674
674
  module.exports = function($$$config) {
675
675
  function createFiber(tag, pendingProps, key, mode) {
676
676
  return new FiberNode(tag, pendingProps, key, mode);
@@ -6578,8 +6578,8 @@ var require_react_reconciler_production = /* @__PURE__ */ __commonJS({ "../../no
6578
6578
  }) });
6579
6579
 
6580
6580
  //#endregion
6581
- //#region ../../node_modules/.pnpm/react-reconciler@0.32.0_react@19.2.0/node_modules/react-reconciler/cjs/react-reconciler.development.js
6582
- var require_react_reconciler_development = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/react-reconciler@0.32.0_react@19.2.0/node_modules/react-reconciler/cjs/react-reconciler.development.js": ((exports, module) => {
6581
+ //#region ../../node_modules/react-reconciler/cjs/react-reconciler.development.js
6582
+ var require_react_reconciler_development = /* @__PURE__ */ __commonJS({ "../../node_modules/react-reconciler/cjs/react-reconciler.development.js": ((exports, module) => {
6583
6583
  "production" !== process.env.NODE_ENV && (module.exports = function($$$config) {
6584
6584
  function findHook(fiber, id) {
6585
6585
  for (fiber = fiber.memoizedState; null !== fiber && 0 < id;) fiber = fiber.next, id--;
@@ -15082,8 +15082,8 @@ var require_react_reconciler_development = /* @__PURE__ */ __commonJS({ "../../n
15082
15082
  }) });
15083
15083
 
15084
15084
  //#endregion
15085
- //#region ../../node_modules/.pnpm/react-reconciler@0.32.0_react@19.2.0/node_modules/react-reconciler/index.js
15086
- var require_react_reconciler = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/react-reconciler@0.32.0_react@19.2.0/node_modules/react-reconciler/index.js": ((exports, module) => {
15085
+ //#region ../../node_modules/react-reconciler/index.js
15086
+ var require_react_reconciler = /* @__PURE__ */ __commonJS({ "../../node_modules/react-reconciler/index.js": ((exports, module) => {
15087
15087
  if (process.env.NODE_ENV === "production") module.exports = require_react_reconciler_production();
15088
15088
  else module.exports = require_react_reconciler_development();
15089
15089
  }) });
@@ -15479,4 +15479,4 @@ async function _getOutput(node) {
15479
15479
 
15480
15480
  //#endregion
15481
15481
  export { Root as a, _classPrivateFieldInitSpec as i, _classPrivateFieldGet2 as n, RootContext as o, _classPrivateFieldSet2 as r, Runtime as t };
15482
- //# sourceMappingURL=Runtime-DWlDUeLZ.js.map
15482
+ //# sourceMappingURL=Runtime-CmpwGMfo.js.map