@kubb/react-fabric 0.11.3 → 0.11.4
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/devtools-BRzetYQI.js +94 -0
- package/dist/devtools-BRzetYQI.js.map +1 -0
- package/dist/devtools-D3a3Jrcj.cjs +101 -0
- package/dist/devtools-D3a3Jrcj.cjs.map +1 -0
- package/dist/devtools.cjs +1 -1
- package/dist/devtools.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/jsx-dev-runtime.d.cts +2 -2
- package/dist/jsx-runtime.d.cts +2 -2
- package/package.json +2 -2
- package/src/devtools.ts +74 -68
- package/dist/devtools-8_UKWDTl.js +0 -93
- package/dist/devtools-8_UKWDTl.js.map +0 -1
- package/dist/devtools-BOpUJhc_.cjs +0 -100
- package/dist/devtools-BOpUJhc_.cjs.map +0 -1
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { execa } from "execa";
|
|
2
|
+
import { onExit } from "signal-exit";
|
|
3
|
+
import ws from "ws";
|
|
4
|
+
|
|
5
|
+
//#region src/devtools.ts
|
|
6
|
+
function open() {
|
|
7
|
+
const customGlobal = global;
|
|
8
|
+
customGlobal.WebSocket || (customGlobal.WebSocket = ws);
|
|
9
|
+
customGlobal.window || (customGlobal.window = global);
|
|
10
|
+
customGlobal.self || (customGlobal.self = global);
|
|
11
|
+
customGlobal.isDevtoolsEnabled = true;
|
|
12
|
+
customGlobal.window.__REACT_DEVTOOLS_COMPONENT_FILTERS__ = [
|
|
13
|
+
{
|
|
14
|
+
type: 2,
|
|
15
|
+
value: "Context.Provider",
|
|
16
|
+
isEnabled: true,
|
|
17
|
+
isValid: true
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
type: 2,
|
|
21
|
+
value: "KubbRoot",
|
|
22
|
+
isEnabled: true,
|
|
23
|
+
isValid: true
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
type: 2,
|
|
27
|
+
value: "KubbErrorBoundary",
|
|
28
|
+
isEnabled: true,
|
|
29
|
+
isValid: true
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
type: 2,
|
|
33
|
+
value: "kubb-file",
|
|
34
|
+
isEnabled: true,
|
|
35
|
+
isValid: true
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
type: 2,
|
|
39
|
+
value: "kubb-text",
|
|
40
|
+
isEnabled: true,
|
|
41
|
+
isValid: true
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
type: 2,
|
|
45
|
+
value: "kubb-import",
|
|
46
|
+
isEnabled: true,
|
|
47
|
+
isValid: true
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
type: 2,
|
|
51
|
+
value: "kubb-export",
|
|
52
|
+
isEnabled: true,
|
|
53
|
+
isValid: true
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
type: 2,
|
|
57
|
+
value: "kubb-source",
|
|
58
|
+
isEnabled: true,
|
|
59
|
+
isValid: true
|
|
60
|
+
}
|
|
61
|
+
];
|
|
62
|
+
import("react-devtools-core").then((devtools) => {
|
|
63
|
+
console.info("Opening devtools");
|
|
64
|
+
const controller = new AbortController();
|
|
65
|
+
execa({
|
|
66
|
+
stdio: "pipe",
|
|
67
|
+
preferLocal: true,
|
|
68
|
+
cancelSignal: controller.signal,
|
|
69
|
+
gracefulCancel: true
|
|
70
|
+
})`npx react-devtools`;
|
|
71
|
+
const { initialize, connectToDevTools } = devtools;
|
|
72
|
+
initialize();
|
|
73
|
+
console.info("Connecting devtools");
|
|
74
|
+
try {
|
|
75
|
+
connectToDevTools({
|
|
76
|
+
host: "localhost",
|
|
77
|
+
port: 8097,
|
|
78
|
+
useHttps: false,
|
|
79
|
+
isAppActive: () => true
|
|
80
|
+
});
|
|
81
|
+
} catch (e) {
|
|
82
|
+
console.error(e);
|
|
83
|
+
console.info("Error when connecting the devtools");
|
|
84
|
+
}
|
|
85
|
+
onExit(() => {
|
|
86
|
+
console.info("Disconnecting devtools");
|
|
87
|
+
controller.abort();
|
|
88
|
+
}, { alwaysLast: false });
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
//#endregion
|
|
93
|
+
export { open as t };
|
|
94
|
+
//# sourceMappingURL=devtools-BRzetYQI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"devtools-BRzetYQI.js","names":[],"sources":["../src/devtools.ts"],"sourcesContent":["import { execa } from 'execa'\nimport { onExit } from 'signal-exit'\nimport ws from 'ws'\n\ndeclare global {\n var WebSocket: typeof WebSocket\n var self: any\n var window: any\n var isDevtoolsEnabled: any\n}\n\nexport function open() {\n // Set up global polyfills BEFORE importing react-devtools-core\n // This is required because react-devtools-core expects these to be available\n const customGlobal = global as any\n customGlobal.WebSocket ||= ws\n customGlobal.window ||= global\n customGlobal.self ||= global\n customGlobal.isDevtoolsEnabled = true\n\n // Filter out Kubbs's internal components from devtools for a cleaner view.\n // See https://github.com/facebook/react/blob/edf6eac8a181860fd8a2d076a43806f1237495a1/packages/react-devtools-shared/src/types.js#L24\n customGlobal.window.__REACT_DEVTOOLS_COMPONENT_FILTERS__ = [\n {\n // ComponentFilterDisplayName\n type: 2,\n value: 'Context.Provider',\n isEnabled: true,\n isValid: true,\n },\n {\n // ComponentFilterDisplayName\n type: 2,\n value: 'KubbRoot',\n isEnabled: true,\n isValid: true,\n },\n {\n // ComponentFilterDisplayName\n type: 2,\n value: 'KubbErrorBoundary',\n isEnabled: true,\n isValid: true,\n },\n {\n // ComponentFilterDisplayName\n type: 2,\n value: 'kubb-file',\n isEnabled: true,\n isValid: true,\n },\n {\n // ComponentFilterDisplayName\n type: 2,\n value: 'kubb-text',\n isEnabled: true,\n isValid: true,\n },\n {\n // ComponentFilterDisplayName\n type: 2,\n value: 'kubb-import',\n isEnabled: true,\n isValid: true,\n },\n {\n // ComponentFilterDisplayName\n type: 2,\n value: 'kubb-export',\n isEnabled: true,\n isValid: true,\n },\n {\n // ComponentFilterDisplayName\n type: 2,\n value: 'kubb-source',\n isEnabled: true,\n isValid: true,\n },\n ]\n\n // biome-ignore lint/suspicious/noTsIgnore: cannot find types\n // @ts-ignore\n import('react-devtools-core').then((devtools) => {\n console.info('Opening devtools')\n const controller = new AbortController()\n execa({\n stdio: 'pipe',\n preferLocal: true,\n cancelSignal: controller.signal,\n gracefulCancel: true,\n })`npx react-devtools`\n\n // Destructure the functions from the module\n const { initialize, connectToDevTools } = devtools\n\n initialize()\n console.info('Connecting devtools')\n\n try {\n connectToDevTools({\n host: 'localhost',\n port: 8097,\n useHttps: false,\n isAppActive: () => true,\n })\n } catch (e) {\n console.error(e)\n console.info('Error when connecting the devtools')\n }\n\n onExit(\n () => {\n console.info('Disconnecting devtools')\n controller.abort()\n },\n { alwaysLast: false },\n )\n })\n}\n"],"mappings":";;;;;AAWA,SAAgB,OAAO;CAGrB,MAAM,eAAe;AACrB,cAAa,cAAb,aAAa,YAAc;AAC3B,cAAa,WAAb,aAAa,SAAW;AACxB,cAAa,SAAb,aAAa,OAAS;AACtB,cAAa,oBAAoB;AAIjC,cAAa,OAAO,uCAAuC;EACzD;GAEE,MAAM;GACN,OAAO;GACP,WAAW;GACX,SAAS;GACV;EACD;GAEE,MAAM;GACN,OAAO;GACP,WAAW;GACX,SAAS;GACV;EACD;GAEE,MAAM;GACN,OAAO;GACP,WAAW;GACX,SAAS;GACV;EACD;GAEE,MAAM;GACN,OAAO;GACP,WAAW;GACX,SAAS;GACV;EACD;GAEE,MAAM;GACN,OAAO;GACP,WAAW;GACX,SAAS;GACV;EACD;GAEE,MAAM;GACN,OAAO;GACP,WAAW;GACX,SAAS;GACV;EACD;GAEE,MAAM;GACN,OAAO;GACP,WAAW;GACX,SAAS;GACV;EACD;GAEE,MAAM;GACN,OAAO;GACP,WAAW;GACX,SAAS;GACV;EACF;AAID,QAAO,uBAAuB,MAAM,aAAa;AAC/C,UAAQ,KAAK,mBAAmB;EAChC,MAAM,aAAa,IAAI,iBAAiB;AACxC,QAAM;GACJ,OAAO;GACP,aAAa;GACb,cAAc,WAAW;GACzB,gBAAgB;GACjB,CAAC;EAGF,MAAM,EAAE,YAAY,sBAAsB;AAE1C,cAAY;AACZ,UAAQ,KAAK,sBAAsB;AAEnC,MAAI;AACF,qBAAkB;IAChB,MAAM;IACN,MAAM;IACN,UAAU;IACV,mBAAmB;IACpB,CAAC;WACK,GAAG;AACV,WAAQ,MAAM,EAAE;AAChB,WAAQ,KAAK,qCAAqC;;AAGpD,eACQ;AACJ,WAAQ,KAAK,yBAAyB;AACtC,cAAW,OAAO;KAEpB,EAAE,YAAY,OAAO,CACtB;GACD"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-BrXtsOCC.cjs');
|
|
2
|
+
let execa = require("execa");
|
|
3
|
+
let signal_exit = require("signal-exit");
|
|
4
|
+
let ws = require("ws");
|
|
5
|
+
ws = require_chunk.__toESM(ws);
|
|
6
|
+
|
|
7
|
+
//#region src/devtools.ts
|
|
8
|
+
function open() {
|
|
9
|
+
const customGlobal = global;
|
|
10
|
+
customGlobal.WebSocket || (customGlobal.WebSocket = ws.default);
|
|
11
|
+
customGlobal.window || (customGlobal.window = global);
|
|
12
|
+
customGlobal.self || (customGlobal.self = global);
|
|
13
|
+
customGlobal.isDevtoolsEnabled = true;
|
|
14
|
+
customGlobal.window.__REACT_DEVTOOLS_COMPONENT_FILTERS__ = [
|
|
15
|
+
{
|
|
16
|
+
type: 2,
|
|
17
|
+
value: "Context.Provider",
|
|
18
|
+
isEnabled: true,
|
|
19
|
+
isValid: true
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
type: 2,
|
|
23
|
+
value: "KubbRoot",
|
|
24
|
+
isEnabled: true,
|
|
25
|
+
isValid: true
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
type: 2,
|
|
29
|
+
value: "KubbErrorBoundary",
|
|
30
|
+
isEnabled: true,
|
|
31
|
+
isValid: true
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
type: 2,
|
|
35
|
+
value: "kubb-file",
|
|
36
|
+
isEnabled: true,
|
|
37
|
+
isValid: true
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
type: 2,
|
|
41
|
+
value: "kubb-text",
|
|
42
|
+
isEnabled: true,
|
|
43
|
+
isValid: true
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
type: 2,
|
|
47
|
+
value: "kubb-import",
|
|
48
|
+
isEnabled: true,
|
|
49
|
+
isValid: true
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
type: 2,
|
|
53
|
+
value: "kubb-export",
|
|
54
|
+
isEnabled: true,
|
|
55
|
+
isValid: true
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
type: 2,
|
|
59
|
+
value: "kubb-source",
|
|
60
|
+
isEnabled: true,
|
|
61
|
+
isValid: true
|
|
62
|
+
}
|
|
63
|
+
];
|
|
64
|
+
import("react-devtools-core").then((devtools) => {
|
|
65
|
+
console.info("Opening devtools");
|
|
66
|
+
const controller = new AbortController();
|
|
67
|
+
(0, execa.execa)({
|
|
68
|
+
stdio: "pipe",
|
|
69
|
+
preferLocal: true,
|
|
70
|
+
cancelSignal: controller.signal,
|
|
71
|
+
gracefulCancel: true
|
|
72
|
+
})`npx react-devtools`;
|
|
73
|
+
const { initialize, connectToDevTools } = devtools;
|
|
74
|
+
initialize();
|
|
75
|
+
console.info("Connecting devtools");
|
|
76
|
+
try {
|
|
77
|
+
connectToDevTools({
|
|
78
|
+
host: "localhost",
|
|
79
|
+
port: 8097,
|
|
80
|
+
useHttps: false,
|
|
81
|
+
isAppActive: () => true
|
|
82
|
+
});
|
|
83
|
+
} catch (e) {
|
|
84
|
+
console.error(e);
|
|
85
|
+
console.info("Error when connecting the devtools");
|
|
86
|
+
}
|
|
87
|
+
(0, signal_exit.onExit)(() => {
|
|
88
|
+
console.info("Disconnecting devtools");
|
|
89
|
+
controller.abort();
|
|
90
|
+
}, { alwaysLast: false });
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
//#endregion
|
|
95
|
+
Object.defineProperty(exports, 'open', {
|
|
96
|
+
enumerable: true,
|
|
97
|
+
get: function () {
|
|
98
|
+
return open;
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
//# sourceMappingURL=devtools-D3a3Jrcj.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"devtools-D3a3Jrcj.cjs","names":[],"sources":["../src/devtools.ts"],"sourcesContent":["import { execa } from 'execa'\nimport { onExit } from 'signal-exit'\nimport ws from 'ws'\n\ndeclare global {\n var WebSocket: typeof WebSocket\n var self: any\n var window: any\n var isDevtoolsEnabled: any\n}\n\nexport function open() {\n // Set up global polyfills BEFORE importing react-devtools-core\n // This is required because react-devtools-core expects these to be available\n const customGlobal = global as any\n customGlobal.WebSocket ||= ws\n customGlobal.window ||= global\n customGlobal.self ||= global\n customGlobal.isDevtoolsEnabled = true\n\n // Filter out Kubbs's internal components from devtools for a cleaner view.\n // See https://github.com/facebook/react/blob/edf6eac8a181860fd8a2d076a43806f1237495a1/packages/react-devtools-shared/src/types.js#L24\n customGlobal.window.__REACT_DEVTOOLS_COMPONENT_FILTERS__ = [\n {\n // ComponentFilterDisplayName\n type: 2,\n value: 'Context.Provider',\n isEnabled: true,\n isValid: true,\n },\n {\n // ComponentFilterDisplayName\n type: 2,\n value: 'KubbRoot',\n isEnabled: true,\n isValid: true,\n },\n {\n // ComponentFilterDisplayName\n type: 2,\n value: 'KubbErrorBoundary',\n isEnabled: true,\n isValid: true,\n },\n {\n // ComponentFilterDisplayName\n type: 2,\n value: 'kubb-file',\n isEnabled: true,\n isValid: true,\n },\n {\n // ComponentFilterDisplayName\n type: 2,\n value: 'kubb-text',\n isEnabled: true,\n isValid: true,\n },\n {\n // ComponentFilterDisplayName\n type: 2,\n value: 'kubb-import',\n isEnabled: true,\n isValid: true,\n },\n {\n // ComponentFilterDisplayName\n type: 2,\n value: 'kubb-export',\n isEnabled: true,\n isValid: true,\n },\n {\n // ComponentFilterDisplayName\n type: 2,\n value: 'kubb-source',\n isEnabled: true,\n isValid: true,\n },\n ]\n\n // biome-ignore lint/suspicious/noTsIgnore: cannot find types\n // @ts-ignore\n import('react-devtools-core').then((devtools) => {\n console.info('Opening devtools')\n const controller = new AbortController()\n execa({\n stdio: 'pipe',\n preferLocal: true,\n cancelSignal: controller.signal,\n gracefulCancel: true,\n })`npx react-devtools`\n\n // Destructure the functions from the module\n const { initialize, connectToDevTools } = devtools\n\n initialize()\n console.info('Connecting devtools')\n\n try {\n connectToDevTools({\n host: 'localhost',\n port: 8097,\n useHttps: false,\n isAppActive: () => true,\n })\n } catch (e) {\n console.error(e)\n console.info('Error when connecting the devtools')\n }\n\n onExit(\n () => {\n console.info('Disconnecting devtools')\n controller.abort()\n },\n { alwaysLast: false },\n )\n })\n}\n"],"mappings":";;;;;;;AAWA,SAAgB,OAAO;CAGrB,MAAM,eAAe;AACrB,cAAa,cAAb,aAAa,YAAc;AAC3B,cAAa,WAAb,aAAa,SAAW;AACxB,cAAa,SAAb,aAAa,OAAS;AACtB,cAAa,oBAAoB;AAIjC,cAAa,OAAO,uCAAuC;EACzD;GAEE,MAAM;GACN,OAAO;GACP,WAAW;GACX,SAAS;GACV;EACD;GAEE,MAAM;GACN,OAAO;GACP,WAAW;GACX,SAAS;GACV;EACD;GAEE,MAAM;GACN,OAAO;GACP,WAAW;GACX,SAAS;GACV;EACD;GAEE,MAAM;GACN,OAAO;GACP,WAAW;GACX,SAAS;GACV;EACD;GAEE,MAAM;GACN,OAAO;GACP,WAAW;GACX,SAAS;GACV;EACD;GAEE,MAAM;GACN,OAAO;GACP,WAAW;GACX,SAAS;GACV;EACD;GAEE,MAAM;GACN,OAAO;GACP,WAAW;GACX,SAAS;GACV;EACD;GAEE,MAAM;GACN,OAAO;GACP,WAAW;GACX,SAAS;GACV;EACF;AAID,QAAO,uBAAuB,MAAM,aAAa;AAC/C,UAAQ,KAAK,mBAAmB;EAChC,MAAM,aAAa,IAAI,iBAAiB;AACxC,mBAAM;GACJ,OAAO;GACP,aAAa;GACb,cAAc,WAAW;GACzB,gBAAgB;GACjB,CAAC;EAGF,MAAM,EAAE,YAAY,sBAAsB;AAE1C,cAAY;AACZ,UAAQ,KAAK,sBAAsB;AAEnC,MAAI;AACF,qBAAkB;IAChB,MAAM;IACN,MAAM;IACN,UAAU;IACV,mBAAmB;IACpB,CAAC;WACK,GAAG;AACV,WAAQ,MAAM,EAAE;AAChB,WAAQ,KAAK,qCAAqC;;AAGpD,gCACQ;AACJ,WAAQ,KAAK,yBAAyB;AACtC,cAAW,OAAO;KAEpB,EAAE,YAAY,OAAO,CACtB;GACD"}
|
package/dist/devtools.cjs
CHANGED
package/dist/devtools.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-BrXtsOCC.cjs');
|
|
2
2
|
const require_react$1 = require('./react-CWV4qQg2.cjs');
|
|
3
3
|
const require_jsx_runtime = require('./jsx-runtime-Cq39dA50.cjs');
|
|
4
|
-
const require_devtools = require('./devtools-
|
|
4
|
+
const require_devtools = require('./devtools-D3a3Jrcj.cjs');
|
|
5
5
|
const require_reactPlugin = require('./reactPlugin-B8F6jVb5.cjs');
|
|
6
6
|
let _kubb_fabric_core = require("@kubb/fabric-core");
|
|
7
7
|
let dedent = require("dedent");
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as __toESM } from "./chunk-BCPZiDLE.js";
|
|
2
2
|
import { t as require_react } from "./react-DfIUVisP.js";
|
|
3
3
|
import { i as jsxs, n as jsx, t as Fragment$1 } from "./jsx-runtime-Isgf9orn.js";
|
|
4
|
-
import { t as open } from "./devtools-
|
|
4
|
+
import { t as open } from "./devtools-BRzetYQI.js";
|
|
5
5
|
import { a as _classPrivateFieldInitSpec, i as _classPrivateFieldGet2, n as Runtime, r as _classPrivateFieldSet2, t as reactPlugin } from "./reactPlugin-CAtVV84d.js";
|
|
6
6
|
import { AppContext, FileContext, FileManager, FileProcessor, NodeTreeContext, RootContext, createFabric, createFabric as createFabric$1, createFile, createJSDoc, provide, useApp, useContext as useContext$1, useFile, useFile as useFile$1, useFileManager, useNodeTree } from "@kubb/fabric-core";
|
|
7
7
|
import dedent from "dedent";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./Fabric-BELBf-bX.cjs";
|
|
2
2
|
import { o as KubbElement, u as KubbNode } from "./types-BKNiqRcq.cjs";
|
|
3
3
|
import { t as JSX } from "./jsx-namespace-Cwg_oGAF.cjs";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react0 from "react";
|
|
5
5
|
import * as React$1 from "react/jsx-dev-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/jsx-dev-runtime.d.ts
|
|
8
|
-
declare const Fragment:
|
|
8
|
+
declare const Fragment: react0.ExoticComponent<react0.FragmentProps>;
|
|
9
9
|
declare const jsxDEV: typeof React$1.jsxDEV;
|
|
10
10
|
type JSXElement = KubbElement;
|
|
11
11
|
type ReactNode = KubbNode;
|
package/dist/jsx-runtime.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./Fabric-BELBf-bX.cjs";
|
|
2
2
|
import { o as KubbElement, u as KubbNode } from "./types-BKNiqRcq.cjs";
|
|
3
3
|
import { t as JSX } from "./jsx-namespace-Cwg_oGAF.cjs";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react1 from "react";
|
|
5
5
|
import * as React$1 from "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/jsx-runtime.d.ts
|
|
8
|
-
declare const Fragment:
|
|
8
|
+
declare const Fragment: react1.ExoticComponent<react1.FragmentProps>;
|
|
9
9
|
declare const jsx: typeof React$1.jsx;
|
|
10
10
|
declare const jsxDEV: typeof React$1.jsx;
|
|
11
11
|
declare const jsxs: typeof React$1.jsxs;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/react-fabric",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.4",
|
|
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",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"react-devtools-core": "6.1.2",
|
|
112
112
|
"signal-exit": "^4.1.0",
|
|
113
113
|
"ws": "8.18.0",
|
|
114
|
-
"@kubb/fabric-core": "0.11.
|
|
114
|
+
"@kubb/fabric-core": "0.11.4"
|
|
115
115
|
},
|
|
116
116
|
"devDependencies": {
|
|
117
117
|
"@types/react": "^19.2.8",
|
package/src/devtools.ts
CHANGED
|
@@ -10,75 +10,78 @@ declare global {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export function open() {
|
|
13
|
+
// Set up global polyfills BEFORE importing react-devtools-core
|
|
14
|
+
// This is required because react-devtools-core expects these to be available
|
|
15
|
+
const customGlobal = global as any
|
|
16
|
+
customGlobal.WebSocket ||= ws
|
|
17
|
+
customGlobal.window ||= global
|
|
18
|
+
customGlobal.self ||= global
|
|
19
|
+
customGlobal.isDevtoolsEnabled = true
|
|
20
|
+
|
|
21
|
+
// Filter out Kubbs's internal components from devtools for a cleaner view.
|
|
22
|
+
// See https://github.com/facebook/react/blob/edf6eac8a181860fd8a2d076a43806f1237495a1/packages/react-devtools-shared/src/types.js#L24
|
|
23
|
+
customGlobal.window.__REACT_DEVTOOLS_COMPONENT_FILTERS__ = [
|
|
24
|
+
{
|
|
25
|
+
// ComponentFilterDisplayName
|
|
26
|
+
type: 2,
|
|
27
|
+
value: 'Context.Provider',
|
|
28
|
+
isEnabled: true,
|
|
29
|
+
isValid: true,
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
// ComponentFilterDisplayName
|
|
33
|
+
type: 2,
|
|
34
|
+
value: 'KubbRoot',
|
|
35
|
+
isEnabled: true,
|
|
36
|
+
isValid: true,
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
// ComponentFilterDisplayName
|
|
40
|
+
type: 2,
|
|
41
|
+
value: 'KubbErrorBoundary',
|
|
42
|
+
isEnabled: true,
|
|
43
|
+
isValid: true,
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
// ComponentFilterDisplayName
|
|
47
|
+
type: 2,
|
|
48
|
+
value: 'kubb-file',
|
|
49
|
+
isEnabled: true,
|
|
50
|
+
isValid: true,
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
// ComponentFilterDisplayName
|
|
54
|
+
type: 2,
|
|
55
|
+
value: 'kubb-text',
|
|
56
|
+
isEnabled: true,
|
|
57
|
+
isValid: true,
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
// ComponentFilterDisplayName
|
|
61
|
+
type: 2,
|
|
62
|
+
value: 'kubb-import',
|
|
63
|
+
isEnabled: true,
|
|
64
|
+
isValid: true,
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
// ComponentFilterDisplayName
|
|
68
|
+
type: 2,
|
|
69
|
+
value: 'kubb-export',
|
|
70
|
+
isEnabled: true,
|
|
71
|
+
isValid: true,
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
// ComponentFilterDisplayName
|
|
75
|
+
type: 2,
|
|
76
|
+
value: 'kubb-source',
|
|
77
|
+
isEnabled: true,
|
|
78
|
+
isValid: true,
|
|
79
|
+
},
|
|
80
|
+
]
|
|
81
|
+
|
|
13
82
|
// biome-ignore lint/suspicious/noTsIgnore: cannot find types
|
|
14
83
|
// @ts-ignore
|
|
15
84
|
import('react-devtools-core').then((devtools) => {
|
|
16
|
-
// Filter out Kubbs's internal components from devtools for a cleaner view.
|
|
17
|
-
// See https://github.com/facebook/react/blob/edf6eac8a181860fd8a2d076a43806f1237495a1/packages/react-devtools-shared/src/types.js#L24
|
|
18
|
-
const customGlobal = global as any
|
|
19
|
-
customGlobal.WebSocket ||= ws
|
|
20
|
-
customGlobal.window ||= global
|
|
21
|
-
customGlobal.self ||= global
|
|
22
|
-
customGlobal.isDevtoolsEnabled = true
|
|
23
|
-
customGlobal.window.__REACT_DEVTOOLS_COMPONENT_FILTERS__ = [
|
|
24
|
-
{
|
|
25
|
-
// ComponentFilterDisplayName
|
|
26
|
-
type: 2,
|
|
27
|
-
value: 'Context.Provider',
|
|
28
|
-
isEnabled: true,
|
|
29
|
-
isValid: true,
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
// ComponentFilterDisplayName
|
|
33
|
-
type: 2,
|
|
34
|
-
value: 'KubbRoot',
|
|
35
|
-
isEnabled: true,
|
|
36
|
-
isValid: true,
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
// ComponentFilterDisplayName
|
|
40
|
-
type: 2,
|
|
41
|
-
value: 'KubbErrorBoundary',
|
|
42
|
-
isEnabled: true,
|
|
43
|
-
isValid: true,
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
// ComponentFilterDisplayName
|
|
47
|
-
type: 2,
|
|
48
|
-
value: 'kubb-file',
|
|
49
|
-
isEnabled: true,
|
|
50
|
-
isValid: true,
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
// ComponentFilterDisplayName
|
|
54
|
-
type: 2,
|
|
55
|
-
value: 'kubb-text',
|
|
56
|
-
isEnabled: true,
|
|
57
|
-
isValid: true,
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
// ComponentFilterDisplayName
|
|
61
|
-
type: 2,
|
|
62
|
-
value: 'kubb-import',
|
|
63
|
-
isEnabled: true,
|
|
64
|
-
isValid: true,
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
// ComponentFilterDisplayName
|
|
68
|
-
type: 2,
|
|
69
|
-
value: 'kubb-export',
|
|
70
|
-
isEnabled: true,
|
|
71
|
-
isValid: true,
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
// ComponentFilterDisplayName
|
|
75
|
-
type: 2,
|
|
76
|
-
value: 'kubb-source',
|
|
77
|
-
isEnabled: true,
|
|
78
|
-
isValid: true,
|
|
79
|
-
},
|
|
80
|
-
]
|
|
81
|
-
|
|
82
85
|
console.info('Opening devtools')
|
|
83
86
|
const controller = new AbortController()
|
|
84
87
|
execa({
|
|
@@ -88,11 +91,14 @@ export function open() {
|
|
|
88
91
|
gracefulCancel: true,
|
|
89
92
|
})`npx react-devtools`
|
|
90
93
|
|
|
91
|
-
|
|
94
|
+
// Destructure the functions from the module
|
|
95
|
+
const { initialize, connectToDevTools } = devtools
|
|
96
|
+
|
|
97
|
+
initialize()
|
|
92
98
|
console.info('Connecting devtools')
|
|
93
99
|
|
|
94
100
|
try {
|
|
95
|
-
|
|
101
|
+
connectToDevTools({
|
|
96
102
|
host: 'localhost',
|
|
97
103
|
port: 8097,
|
|
98
104
|
useHttps: false,
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { execa } from "execa";
|
|
2
|
-
import { onExit } from "signal-exit";
|
|
3
|
-
import ws from "ws";
|
|
4
|
-
|
|
5
|
-
//#region src/devtools.ts
|
|
6
|
-
function open() {
|
|
7
|
-
import("react-devtools-core").then((devtools) => {
|
|
8
|
-
const customGlobal = global;
|
|
9
|
-
customGlobal.WebSocket || (customGlobal.WebSocket = ws);
|
|
10
|
-
customGlobal.window || (customGlobal.window = global);
|
|
11
|
-
customGlobal.self || (customGlobal.self = global);
|
|
12
|
-
customGlobal.isDevtoolsEnabled = true;
|
|
13
|
-
customGlobal.window.__REACT_DEVTOOLS_COMPONENT_FILTERS__ = [
|
|
14
|
-
{
|
|
15
|
-
type: 2,
|
|
16
|
-
value: "Context.Provider",
|
|
17
|
-
isEnabled: true,
|
|
18
|
-
isValid: true
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
type: 2,
|
|
22
|
-
value: "KubbRoot",
|
|
23
|
-
isEnabled: true,
|
|
24
|
-
isValid: true
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
type: 2,
|
|
28
|
-
value: "KubbErrorBoundary",
|
|
29
|
-
isEnabled: true,
|
|
30
|
-
isValid: true
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
type: 2,
|
|
34
|
-
value: "kubb-file",
|
|
35
|
-
isEnabled: true,
|
|
36
|
-
isValid: true
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
type: 2,
|
|
40
|
-
value: "kubb-text",
|
|
41
|
-
isEnabled: true,
|
|
42
|
-
isValid: true
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
type: 2,
|
|
46
|
-
value: "kubb-import",
|
|
47
|
-
isEnabled: true,
|
|
48
|
-
isValid: true
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
type: 2,
|
|
52
|
-
value: "kubb-export",
|
|
53
|
-
isEnabled: true,
|
|
54
|
-
isValid: true
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
type: 2,
|
|
58
|
-
value: "kubb-source",
|
|
59
|
-
isEnabled: true,
|
|
60
|
-
isValid: true
|
|
61
|
-
}
|
|
62
|
-
];
|
|
63
|
-
console.info("Opening devtools");
|
|
64
|
-
const controller = new AbortController();
|
|
65
|
-
execa({
|
|
66
|
-
stdio: "pipe",
|
|
67
|
-
preferLocal: true,
|
|
68
|
-
cancelSignal: controller.signal,
|
|
69
|
-
gracefulCancel: true
|
|
70
|
-
})`npx react-devtools`;
|
|
71
|
-
devtools.initialize();
|
|
72
|
-
console.info("Connecting devtools");
|
|
73
|
-
try {
|
|
74
|
-
devtools.connectToDevTools({
|
|
75
|
-
host: "localhost",
|
|
76
|
-
port: 8097,
|
|
77
|
-
useHttps: false,
|
|
78
|
-
isAppActive: () => true
|
|
79
|
-
});
|
|
80
|
-
} catch (e) {
|
|
81
|
-
console.error(e);
|
|
82
|
-
console.info("Error when connecting the devtools");
|
|
83
|
-
}
|
|
84
|
-
onExit(() => {
|
|
85
|
-
console.info("Disconnecting devtools");
|
|
86
|
-
controller.abort();
|
|
87
|
-
}, { alwaysLast: false });
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
//#endregion
|
|
92
|
-
export { open as t };
|
|
93
|
-
//# sourceMappingURL=devtools-8_UKWDTl.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"devtools-8_UKWDTl.js","names":[],"sources":["../src/devtools.ts"],"sourcesContent":["import { execa } from 'execa'\nimport { onExit } from 'signal-exit'\nimport ws from 'ws'\n\ndeclare global {\n var WebSocket: typeof WebSocket\n var self: any\n var window: any\n var isDevtoolsEnabled: any\n}\n\nexport function open() {\n // biome-ignore lint/suspicious/noTsIgnore: cannot find types\n // @ts-ignore\n import('react-devtools-core').then((devtools) => {\n // Filter out Kubbs's internal components from devtools for a cleaner view.\n // See https://github.com/facebook/react/blob/edf6eac8a181860fd8a2d076a43806f1237495a1/packages/react-devtools-shared/src/types.js#L24\n const customGlobal = global as any\n customGlobal.WebSocket ||= ws\n customGlobal.window ||= global\n customGlobal.self ||= global\n customGlobal.isDevtoolsEnabled = true\n customGlobal.window.__REACT_DEVTOOLS_COMPONENT_FILTERS__ = [\n {\n // ComponentFilterDisplayName\n type: 2,\n value: 'Context.Provider',\n isEnabled: true,\n isValid: true,\n },\n {\n // ComponentFilterDisplayName\n type: 2,\n value: 'KubbRoot',\n isEnabled: true,\n isValid: true,\n },\n {\n // ComponentFilterDisplayName\n type: 2,\n value: 'KubbErrorBoundary',\n isEnabled: true,\n isValid: true,\n },\n {\n // ComponentFilterDisplayName\n type: 2,\n value: 'kubb-file',\n isEnabled: true,\n isValid: true,\n },\n {\n // ComponentFilterDisplayName\n type: 2,\n value: 'kubb-text',\n isEnabled: true,\n isValid: true,\n },\n {\n // ComponentFilterDisplayName\n type: 2,\n value: 'kubb-import',\n isEnabled: true,\n isValid: true,\n },\n {\n // ComponentFilterDisplayName\n type: 2,\n value: 'kubb-export',\n isEnabled: true,\n isValid: true,\n },\n {\n // ComponentFilterDisplayName\n type: 2,\n value: 'kubb-source',\n isEnabled: true,\n isValid: true,\n },\n ]\n\n console.info('Opening devtools')\n const controller = new AbortController()\n execa({\n stdio: 'pipe',\n preferLocal: true,\n cancelSignal: controller.signal,\n gracefulCancel: true,\n })`npx react-devtools`\n\n ;(devtools as any).initialize()\n console.info('Connecting devtools')\n\n try {\n ;(devtools as any).connectToDevTools({\n host: 'localhost',\n port: 8097,\n useHttps: false,\n isAppActive: () => true,\n })\n } catch (e) {\n console.error(e)\n console.info('Error when connecting the devtools')\n }\n\n onExit(\n () => {\n console.info('Disconnecting devtools')\n controller.abort()\n },\n { alwaysLast: false },\n )\n })\n}\n"],"mappings":";;;;;AAWA,SAAgB,OAAO;AAGrB,QAAO,uBAAuB,MAAM,aAAa;EAG/C,MAAM,eAAe;AACrB,eAAa,cAAb,aAAa,YAAc;AAC3B,eAAa,WAAb,aAAa,SAAW;AACxB,eAAa,SAAb,aAAa,OAAS;AACtB,eAAa,oBAAoB;AACjC,eAAa,OAAO,uCAAuC;GACzD;IAEE,MAAM;IACN,OAAO;IACP,WAAW;IACX,SAAS;IACV;GACD;IAEE,MAAM;IACN,OAAO;IACP,WAAW;IACX,SAAS;IACV;GACD;IAEE,MAAM;IACN,OAAO;IACP,WAAW;IACX,SAAS;IACV;GACD;IAEE,MAAM;IACN,OAAO;IACP,WAAW;IACX,SAAS;IACV;GACD;IAEE,MAAM;IACN,OAAO;IACP,WAAW;IACX,SAAS;IACV;GACD;IAEE,MAAM;IACN,OAAO;IACP,WAAW;IACX,SAAS;IACV;GACD;IAEE,MAAM;IACN,OAAO;IACP,WAAW;IACX,SAAS;IACV;GACD;IAEE,MAAM;IACN,OAAO;IACP,WAAW;IACX,SAAS;IACV;GACF;AAED,UAAQ,KAAK,mBAAmB;EAChC,MAAM,aAAa,IAAI,iBAAiB;AACxC,QAAM;GACJ,OAAO;GACP,aAAa;GACb,cAAc,WAAW;GACzB,gBAAgB;GACjB,CAAC;AAED,EAAC,SAAiB,YAAY;AAC/B,UAAQ,KAAK,sBAAsB;AAEnC,MAAI;AACD,GAAC,SAAiB,kBAAkB;IACnC,MAAM;IACN,MAAM;IACN,UAAU;IACV,mBAAmB;IACpB,CAAC;WACK,GAAG;AACV,WAAQ,MAAM,EAAE;AAChB,WAAQ,KAAK,qCAAqC;;AAGpD,eACQ;AACJ,WAAQ,KAAK,yBAAyB;AACtC,cAAW,OAAO;KAEpB,EAAE,YAAY,OAAO,CACtB;GACD"}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
const require_chunk = require('./chunk-BrXtsOCC.cjs');
|
|
2
|
-
let execa = require("execa");
|
|
3
|
-
let signal_exit = require("signal-exit");
|
|
4
|
-
let ws = require("ws");
|
|
5
|
-
ws = require_chunk.__toESM(ws);
|
|
6
|
-
|
|
7
|
-
//#region src/devtools.ts
|
|
8
|
-
function open() {
|
|
9
|
-
import("react-devtools-core").then((devtools) => {
|
|
10
|
-
const customGlobal = global;
|
|
11
|
-
customGlobal.WebSocket || (customGlobal.WebSocket = ws.default);
|
|
12
|
-
customGlobal.window || (customGlobal.window = global);
|
|
13
|
-
customGlobal.self || (customGlobal.self = global);
|
|
14
|
-
customGlobal.isDevtoolsEnabled = true;
|
|
15
|
-
customGlobal.window.__REACT_DEVTOOLS_COMPONENT_FILTERS__ = [
|
|
16
|
-
{
|
|
17
|
-
type: 2,
|
|
18
|
-
value: "Context.Provider",
|
|
19
|
-
isEnabled: true,
|
|
20
|
-
isValid: true
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
type: 2,
|
|
24
|
-
value: "KubbRoot",
|
|
25
|
-
isEnabled: true,
|
|
26
|
-
isValid: true
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
type: 2,
|
|
30
|
-
value: "KubbErrorBoundary",
|
|
31
|
-
isEnabled: true,
|
|
32
|
-
isValid: true
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
type: 2,
|
|
36
|
-
value: "kubb-file",
|
|
37
|
-
isEnabled: true,
|
|
38
|
-
isValid: true
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
type: 2,
|
|
42
|
-
value: "kubb-text",
|
|
43
|
-
isEnabled: true,
|
|
44
|
-
isValid: true
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
type: 2,
|
|
48
|
-
value: "kubb-import",
|
|
49
|
-
isEnabled: true,
|
|
50
|
-
isValid: true
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
type: 2,
|
|
54
|
-
value: "kubb-export",
|
|
55
|
-
isEnabled: true,
|
|
56
|
-
isValid: true
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
type: 2,
|
|
60
|
-
value: "kubb-source",
|
|
61
|
-
isEnabled: true,
|
|
62
|
-
isValid: true
|
|
63
|
-
}
|
|
64
|
-
];
|
|
65
|
-
console.info("Opening devtools");
|
|
66
|
-
const controller = new AbortController();
|
|
67
|
-
(0, execa.execa)({
|
|
68
|
-
stdio: "pipe",
|
|
69
|
-
preferLocal: true,
|
|
70
|
-
cancelSignal: controller.signal,
|
|
71
|
-
gracefulCancel: true
|
|
72
|
-
})`npx react-devtools`;
|
|
73
|
-
devtools.initialize();
|
|
74
|
-
console.info("Connecting devtools");
|
|
75
|
-
try {
|
|
76
|
-
devtools.connectToDevTools({
|
|
77
|
-
host: "localhost",
|
|
78
|
-
port: 8097,
|
|
79
|
-
useHttps: false,
|
|
80
|
-
isAppActive: () => true
|
|
81
|
-
});
|
|
82
|
-
} catch (e) {
|
|
83
|
-
console.error(e);
|
|
84
|
-
console.info("Error when connecting the devtools");
|
|
85
|
-
}
|
|
86
|
-
(0, signal_exit.onExit)(() => {
|
|
87
|
-
console.info("Disconnecting devtools");
|
|
88
|
-
controller.abort();
|
|
89
|
-
}, { alwaysLast: false });
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
//#endregion
|
|
94
|
-
Object.defineProperty(exports, 'open', {
|
|
95
|
-
enumerable: true,
|
|
96
|
-
get: function () {
|
|
97
|
-
return open;
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
//# sourceMappingURL=devtools-BOpUJhc_.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"devtools-BOpUJhc_.cjs","names":[],"sources":["../src/devtools.ts"],"sourcesContent":["import { execa } from 'execa'\nimport { onExit } from 'signal-exit'\nimport ws from 'ws'\n\ndeclare global {\n var WebSocket: typeof WebSocket\n var self: any\n var window: any\n var isDevtoolsEnabled: any\n}\n\nexport function open() {\n // biome-ignore lint/suspicious/noTsIgnore: cannot find types\n // @ts-ignore\n import('react-devtools-core').then((devtools) => {\n // Filter out Kubbs's internal components from devtools for a cleaner view.\n // See https://github.com/facebook/react/blob/edf6eac8a181860fd8a2d076a43806f1237495a1/packages/react-devtools-shared/src/types.js#L24\n const customGlobal = global as any\n customGlobal.WebSocket ||= ws\n customGlobal.window ||= global\n customGlobal.self ||= global\n customGlobal.isDevtoolsEnabled = true\n customGlobal.window.__REACT_DEVTOOLS_COMPONENT_FILTERS__ = [\n {\n // ComponentFilterDisplayName\n type: 2,\n value: 'Context.Provider',\n isEnabled: true,\n isValid: true,\n },\n {\n // ComponentFilterDisplayName\n type: 2,\n value: 'KubbRoot',\n isEnabled: true,\n isValid: true,\n },\n {\n // ComponentFilterDisplayName\n type: 2,\n value: 'KubbErrorBoundary',\n isEnabled: true,\n isValid: true,\n },\n {\n // ComponentFilterDisplayName\n type: 2,\n value: 'kubb-file',\n isEnabled: true,\n isValid: true,\n },\n {\n // ComponentFilterDisplayName\n type: 2,\n value: 'kubb-text',\n isEnabled: true,\n isValid: true,\n },\n {\n // ComponentFilterDisplayName\n type: 2,\n value: 'kubb-import',\n isEnabled: true,\n isValid: true,\n },\n {\n // ComponentFilterDisplayName\n type: 2,\n value: 'kubb-export',\n isEnabled: true,\n isValid: true,\n },\n {\n // ComponentFilterDisplayName\n type: 2,\n value: 'kubb-source',\n isEnabled: true,\n isValid: true,\n },\n ]\n\n console.info('Opening devtools')\n const controller = new AbortController()\n execa({\n stdio: 'pipe',\n preferLocal: true,\n cancelSignal: controller.signal,\n gracefulCancel: true,\n })`npx react-devtools`\n\n ;(devtools as any).initialize()\n console.info('Connecting devtools')\n\n try {\n ;(devtools as any).connectToDevTools({\n host: 'localhost',\n port: 8097,\n useHttps: false,\n isAppActive: () => true,\n })\n } catch (e) {\n console.error(e)\n console.info('Error when connecting the devtools')\n }\n\n onExit(\n () => {\n console.info('Disconnecting devtools')\n controller.abort()\n },\n { alwaysLast: false },\n )\n })\n}\n"],"mappings":";;;;;;;AAWA,SAAgB,OAAO;AAGrB,QAAO,uBAAuB,MAAM,aAAa;EAG/C,MAAM,eAAe;AACrB,eAAa,cAAb,aAAa,YAAc;AAC3B,eAAa,WAAb,aAAa,SAAW;AACxB,eAAa,SAAb,aAAa,OAAS;AACtB,eAAa,oBAAoB;AACjC,eAAa,OAAO,uCAAuC;GACzD;IAEE,MAAM;IACN,OAAO;IACP,WAAW;IACX,SAAS;IACV;GACD;IAEE,MAAM;IACN,OAAO;IACP,WAAW;IACX,SAAS;IACV;GACD;IAEE,MAAM;IACN,OAAO;IACP,WAAW;IACX,SAAS;IACV;GACD;IAEE,MAAM;IACN,OAAO;IACP,WAAW;IACX,SAAS;IACV;GACD;IAEE,MAAM;IACN,OAAO;IACP,WAAW;IACX,SAAS;IACV;GACD;IAEE,MAAM;IACN,OAAO;IACP,WAAW;IACX,SAAS;IACV;GACD;IAEE,MAAM;IACN,OAAO;IACP,WAAW;IACX,SAAS;IACV;GACD;IAEE,MAAM;IACN,OAAO;IACP,WAAW;IACX,SAAS;IACV;GACF;AAED,UAAQ,KAAK,mBAAmB;EAChC,MAAM,aAAa,IAAI,iBAAiB;AACxC,mBAAM;GACJ,OAAO;GACP,aAAa;GACb,cAAc,WAAW;GACzB,gBAAgB;GACjB,CAAC;AAED,EAAC,SAAiB,YAAY;AAC/B,UAAQ,KAAK,sBAAsB;AAEnC,MAAI;AACD,GAAC,SAAiB,kBAAkB;IACnC,MAAM;IACN,MAAM;IACN,UAAU;IACV,mBAAmB;IACpB,CAAC;WACK,GAAG;AACV,WAAQ,MAAM,EAAE;AAChB,WAAQ,KAAK,qCAAqC;;AAGpD,gCACQ;AACJ,WAAQ,KAAK,yBAAyB;AACtC,cAAW,OAAO;KAEpB,EAAE,YAAY,OAAO,CACtB;GACD"}
|