@kubb/core 4.36.2 → 4.36.3
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/hooks.cjs +3 -3
- package/dist/hooks.cjs.map +1 -1
- package/dist/hooks.d.ts +1 -1
- package/dist/hooks.js +4 -4
- package/dist/hooks.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/{types-D30QAz2y.d.ts → types-BwL2CHjl.d.ts} +2 -2
- package/package.json +6 -6
- package/src/PluginManager.ts +1 -1
- package/src/build.ts +1 -1
- package/src/hooks/useMode.ts +2 -2
- package/src/hooks/usePlugin.ts +2 -2
- package/src/hooks/usePluginManager.ts +2 -2
- package/src/types.ts +1 -1
package/dist/hooks.cjs
CHANGED
|
@@ -3,19 +3,19 @@ require("./chunk-ByKO4r7w.cjs");
|
|
|
3
3
|
let _kubb_react_fabric = require("@kubb/react-fabric");
|
|
4
4
|
//#region src/hooks/useMode.ts
|
|
5
5
|
function useMode() {
|
|
6
|
-
const { meta } = (0, _kubb_react_fabric.
|
|
6
|
+
const { meta } = (0, _kubb_react_fabric.useFabric)();
|
|
7
7
|
return meta.mode;
|
|
8
8
|
}
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/hooks/usePlugin.ts
|
|
11
11
|
function usePlugin() {
|
|
12
|
-
const { meta } = (0, _kubb_react_fabric.
|
|
12
|
+
const { meta } = (0, _kubb_react_fabric.useFabric)();
|
|
13
13
|
return meta.plugin;
|
|
14
14
|
}
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region src/hooks/usePluginManager.ts
|
|
17
17
|
function usePluginManager() {
|
|
18
|
-
const { meta } = (0, _kubb_react_fabric.
|
|
18
|
+
const { meta } = (0, _kubb_react_fabric.useFabric)();
|
|
19
19
|
return meta.pluginManager;
|
|
20
20
|
}
|
|
21
21
|
//#endregion
|
package/dist/hooks.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.cjs","names":[],"sources":["../src/hooks/useMode.ts","../src/hooks/usePlugin.ts","../src/hooks/usePluginManager.ts"],"sourcesContent":["import type { KubbFile } from '@kubb/fabric-core/types'\nimport {
|
|
1
|
+
{"version":3,"file":"hooks.cjs","names":[],"sources":["../src/hooks/useMode.ts","../src/hooks/usePlugin.ts","../src/hooks/usePluginManager.ts"],"sourcesContent":["import type { KubbFile } from '@kubb/fabric-core/types'\nimport { useFabric } from '@kubb/react-fabric'\n\nexport function useMode(): KubbFile.Mode {\n const { meta } = useFabric<{ mode: KubbFile.Mode }>()\n\n return meta.mode\n}\n","import { useFabric } from '@kubb/react-fabric'\nimport type { Plugin, PluginFactoryOptions } from '../types.ts'\n\nexport function usePlugin<TOptions extends PluginFactoryOptions = PluginFactoryOptions>(): Plugin<TOptions> {\n const { meta } = useFabric<{ plugin: Plugin<TOptions> }>()\n\n return meta.plugin\n}\n","import { useFabric } from '@kubb/react-fabric'\nimport type { PluginManager } from '../PluginManager.ts'\n\nexport function usePluginManager(): PluginManager {\n const { meta } = useFabric<{ pluginManager: PluginManager }>()\n\n return meta.pluginManager\n}\n"],"mappings":";;;;AAGA,SAAgB,UAAyB;CACvC,MAAM,EAAE,UAAA,GAAA,mBAAA,YAA6C;AAErD,QAAO,KAAK;;;;ACHd,SAAgB,YAA4F;CAC1G,MAAM,EAAE,UAAA,GAAA,mBAAA,YAAkD;AAE1D,QAAO,KAAK;;;;ACHd,SAAgB,mBAAkC;CAChD,MAAM,EAAE,UAAA,GAAA,mBAAA,YAAsD;AAE9D,QAAO,KAAK"}
|
package/dist/hooks.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __name } from "./chunk--u3MIqq1.js";
|
|
2
|
-
import { N as PluginManager, _ as PluginFactoryOptions, h as Plugin } from "./types-
|
|
2
|
+
import { N as PluginManager, _ as PluginFactoryOptions, h as Plugin } from "./types-BwL2CHjl.js";
|
|
3
3
|
import { KubbFile } from "@kubb/fabric-core/types";
|
|
4
4
|
|
|
5
5
|
//#region src/hooks/useMode.d.ts
|
package/dist/hooks.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import "./chunk--u3MIqq1.js";
|
|
2
|
-
import {
|
|
2
|
+
import { useFabric } from "@kubb/react-fabric";
|
|
3
3
|
//#region src/hooks/useMode.ts
|
|
4
4
|
function useMode() {
|
|
5
|
-
const { meta } =
|
|
5
|
+
const { meta } = useFabric();
|
|
6
6
|
return meta.mode;
|
|
7
7
|
}
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/hooks/usePlugin.ts
|
|
10
10
|
function usePlugin() {
|
|
11
|
-
const { meta } =
|
|
11
|
+
const { meta } = useFabric();
|
|
12
12
|
return meta.plugin;
|
|
13
13
|
}
|
|
14
14
|
//#endregion
|
|
15
15
|
//#region src/hooks/usePluginManager.ts
|
|
16
16
|
function usePluginManager() {
|
|
17
|
-
const { meta } =
|
|
17
|
+
const { meta } = useFabric();
|
|
18
18
|
return meta.pluginManager;
|
|
19
19
|
}
|
|
20
20
|
//#endregion
|
package/dist/hooks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.js","names":[],"sources":["../src/hooks/useMode.ts","../src/hooks/usePlugin.ts","../src/hooks/usePluginManager.ts"],"sourcesContent":["import type { KubbFile } from '@kubb/fabric-core/types'\nimport {
|
|
1
|
+
{"version":3,"file":"hooks.js","names":[],"sources":["../src/hooks/useMode.ts","../src/hooks/usePlugin.ts","../src/hooks/usePluginManager.ts"],"sourcesContent":["import type { KubbFile } from '@kubb/fabric-core/types'\nimport { useFabric } from '@kubb/react-fabric'\n\nexport function useMode(): KubbFile.Mode {\n const { meta } = useFabric<{ mode: KubbFile.Mode }>()\n\n return meta.mode\n}\n","import { useFabric } from '@kubb/react-fabric'\nimport type { Plugin, PluginFactoryOptions } from '../types.ts'\n\nexport function usePlugin<TOptions extends PluginFactoryOptions = PluginFactoryOptions>(): Plugin<TOptions> {\n const { meta } = useFabric<{ plugin: Plugin<TOptions> }>()\n\n return meta.plugin\n}\n","import { useFabric } from '@kubb/react-fabric'\nimport type { PluginManager } from '../PluginManager.ts'\n\nexport function usePluginManager(): PluginManager {\n const { meta } = useFabric<{ pluginManager: PluginManager }>()\n\n return meta.pluginManager\n}\n"],"mappings":";;;AAGA,SAAgB,UAAyB;CACvC,MAAM,EAAE,SAAS,WAAoC;AAErD,QAAO,KAAK;;;;ACHd,SAAgB,YAA4F;CAC1G,MAAM,EAAE,SAAS,WAAyC;AAE1D,QAAO,KAAK;;;;ACHd,SAAgB,mBAAkC;CAChD,MAAM,EAAE,SAAS,WAA6C;AAE9D,QAAO,KAAK"}
|
package/dist/index.cjs
CHANGED