@kubb/react-fabric 0.12.0 → 0.12.2

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/{chunk-DkQCb-7t.js → chunk-CrnDzoTS.js} +2 -1
  2. package/dist/globals.d.cts +1 -1
  3. package/dist/globals.d.ts +2 -2
  4. package/dist/index.cjs +14 -14
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.d.cts +16 -14
  7. package/dist/index.d.ts +17 -15
  8. package/dist/index.js +17 -17
  9. package/dist/index.js.map +1 -1
  10. package/dist/jsx-dev-runtime.d.cts +4 -4
  11. package/dist/jsx-dev-runtime.d.ts +3 -3
  12. package/dist/jsx-dev-runtime.js +2 -2
  13. package/dist/{jsx-namespace-Lr0pS1AG.d.ts → jsx-namespace-fB1bxOIg.d.ts} +2 -2
  14. package/dist/{jsx-namespace-BUHfo3FK.d.cts → jsx-namespace-r-JXq_rp.d.cts} +1 -1
  15. package/dist/{jsx-runtime-CT8FKS42.js → jsx-runtime-CpElaHq6.js} +2 -2
  16. package/dist/{jsx-runtime-CT8FKS42.js.map → jsx-runtime-CpElaHq6.js.map} +1 -1
  17. package/dist/jsx-runtime.d.cts +4 -4
  18. package/dist/jsx-runtime.d.ts +3 -3
  19. package/dist/jsx-runtime.js +2 -2
  20. package/dist/parsers.d.cts +1 -16
  21. package/dist/parsers.d.ts +1 -17
  22. package/dist/plugins.cjs +1 -1
  23. package/dist/plugins.d.cts +3 -125
  24. package/dist/plugins.d.ts +4 -126
  25. package/dist/plugins.js +3 -3
  26. package/dist/{react-CDrFaZVO.js → react-Cfp4vMID.js} +1 -1
  27. package/dist/{react-CDrFaZVO.js.map → react-Cfp4vMID.js.map} +1 -1
  28. package/dist/{reactPlugin-CicgALtR.cjs → reactPlugin-BzHuVlbO.cjs} +1757 -1757
  29. package/dist/reactPlugin-BzHuVlbO.cjs.map +1 -0
  30. package/dist/{types-yKh-a1UP.d.cts → reactPlugin-CVS9VJ5P.d.ts} +41 -202
  31. package/dist/{reactPlugin-BHxx8AjV.js → reactPlugin-CwuxUcyY.js} +1760 -1760
  32. package/dist/reactPlugin-CwuxUcyY.js.map +1 -0
  33. package/dist/{types-C-nm6Bqx.d.ts → reactPlugin-EQOIOEA2.d.cts} +39 -202
  34. package/dist/types-J_S-h-Ae.d.cts +104 -0
  35. package/dist/types-XiObCuPy.d.ts +103 -0
  36. package/dist/types.d.cts +3 -2
  37. package/dist/types.d.ts +3 -2
  38. package/package.json +3 -2
  39. package/dist/reactPlugin-BHxx8AjV.js.map +0 -1
  40. package/dist/reactPlugin-CWHmkuUz.d.cts +0 -72
  41. package/dist/reactPlugin-CicgALtR.cjs.map +0 -1
  42. package/dist/reactPlugin-DseDoGSU.d.ts +0 -73
@@ -1,72 +0,0 @@
1
- import { A as Plugin, B as File, C as TreeNode, K as __name, S as ComponentNode, T as FabricConfig, W as ResolvedFile, k as FabricOptions, o as KubbElement, w as Fabric } from "./types-yKh-a1UP.cjs";
2
-
3
- //#region ../fabric-core/src/contexts/AppContext.d.ts
4
- type AppContextProps<TMeta extends object = object> = {
5
- /**
6
- * Exit (unmount)
7
- */
8
- exit: (error?: Error) => void;
9
- meta: TMeta;
10
- };
11
- //#endregion
12
- //#region ../fabric-core/src/composables/useApp.d.ts
13
- /**
14
- * `useApp` will return the current App with meta and exit function.
15
- *
16
- * Throws an error when there is no AppContext available.
17
- */
18
- declare function useApp<TMeta extends object = object>(): AppContextProps<TMeta>;
19
- //#endregion
20
- //#region ../fabric-core/src/composables/useFile.d.ts
21
- /**
22
- * `useFile` will return the current FileCollector for registering files.
23
- *
24
- * Throws when no FileCollector is present in context — ensure a Fabric that
25
- * provides a FileCollector is mounted before calling this hook.
26
- */
27
- declare function useFile(): ResolvedFile | null;
28
- //#endregion
29
- //#region ../fabric-core/src/createFabric.d.ts
30
- /**
31
- * Creates a new Fabric instance
32
- *
33
- * @example
34
- * const fabric = createFabric()
35
- * fabric.use(myPlugin())
36
- */
37
- declare function createFabric<T extends FabricOptions>(config?: FabricConfig<T>): Fabric<T>;
38
- //#endregion
39
- //#region ../fabric-core/src/createFile.d.ts
40
- /**
41
- * Helper to create a file with name and id set
42
- */
43
- declare function createFile<TMeta extends object = object>(file: File<TMeta>): ResolvedFile<TMeta>;
44
- //#endregion
45
- //#region src/plugins/reactPlugin.d.ts
46
- type Options = {
47
- stdout?: NodeJS.WriteStream;
48
- stdin?: NodeJS.ReadStream;
49
- stderr?: NodeJS.WriteStream;
50
- treeNode?: TreeNode<ComponentNode>;
51
- /**
52
- * Set this to true to always see the result of the render in the console(line per render)
53
- */
54
- debug?: boolean;
55
- };
56
- type ExtendOptions = {
57
- render(App: KubbElement): Promise<void>;
58
- renderToString(App: KubbElement): Promise<string>;
59
- waitUntilExit(): Promise<void>;
60
- };
61
- declare global {
62
- namespace Kubb {
63
- interface Fabric {
64
- render(App: KubbElement): Promise<void>;
65
- renderToString(App: KubbElement): Promise<string>;
66
- waitUntilExit(): Promise<void>;
67
- }
68
- }
69
- }
70
- declare const reactPlugin: Plugin<Options, ExtendOptions>;
71
- //#endregion
72
- export { useFile as a, createFabric as i, reactPlugin as n, useApp as o, createFile as r, Options as t };