@kubb/react-fabric 0.2.1 → 0.2.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 (47) hide show
  1. package/dist/{Fabric-tVWTpMR5.d.ts → Fabric-DwVGMumV.d.ts} +2 -2
  2. package/dist/{KubbFile-DFnA3mmn.d.ts → KubbFile-bFdmEsQz.d.ts} +1 -1
  3. package/dist/{devtools-DnQsy6Us.cjs → backend-BwCrJwGY.cjs} +27 -119
  4. package/dist/backend-BwCrJwGY.cjs.map +1 -0
  5. package/dist/{devtools-DPye8o33.js → backend-U2f8IEJ7.js} +27 -114
  6. package/dist/backend-U2f8IEJ7.js.map +1 -0
  7. package/dist/{chunk-CVmoYqME.js → chunk-9mlisOrp.js} +2 -1
  8. package/dist/{chunk-DWy1uDak.cjs → chunk-BaqVhFee.cjs} +7 -0
  9. package/dist/devtools-CYVZyenT.cjs +102 -0
  10. package/dist/devtools-CYVZyenT.cjs.map +1 -0
  11. package/dist/devtools-D7cmED8s.js +94 -0
  12. package/dist/devtools-D7cmED8s.js.map +1 -0
  13. package/dist/devtools.cjs +1 -1
  14. package/dist/devtools.js +1 -1
  15. package/dist/{globals-CxZEi_Pn.d.ts → globals-1MFa0Fvg.d.ts} +3 -3
  16. package/dist/globals.d.ts +3 -3
  17. package/dist/index.cjs +4 -4
  18. package/dist/index.d.ts +5 -5
  19. package/dist/index.js +4 -4
  20. package/dist/jsx-dev-runtime.cjs +2 -2
  21. package/dist/jsx-dev-runtime.js +2 -2
  22. package/dist/{jsx-runtime-9ohe6OS2.cjs → jsx-runtime-8_h1Kd4b.cjs} +3 -3
  23. package/dist/{jsx-runtime-9ohe6OS2.cjs.map → jsx-runtime-8_h1Kd4b.cjs.map} +1 -1
  24. package/dist/{jsx-runtime-CvGZkcTo.js → jsx-runtime-BJX2mL7C.js} +3 -3
  25. package/dist/{jsx-runtime-CvGZkcTo.js.map → jsx-runtime-BJX2mL7C.js.map} +1 -1
  26. package/dist/{jsx-runtime-CFd_ktZn.js → jsx-runtime-C9xQ4GQD.js} +2 -2
  27. package/dist/{jsx-runtime-CFd_ktZn.js.map → jsx-runtime-C9xQ4GQD.js.map} +1 -1
  28. package/dist/{jsx-runtime-BOrVcbIT.cjs → jsx-runtime-CSnwG7o6.cjs} +2 -2
  29. package/dist/{jsx-runtime-BOrVcbIT.cjs.map → jsx-runtime-CSnwG7o6.cjs.map} +1 -1
  30. package/dist/jsx-runtime.cjs +2 -2
  31. package/dist/jsx-runtime.d.ts +3 -3
  32. package/dist/jsx-runtime.js +2 -2
  33. package/dist/parsers.d.ts +2 -2
  34. package/dist/{plugins-CEGJdkpj.cjs → plugins-BQE1GnQ7.cjs} +3 -3
  35. package/dist/{plugins-CEGJdkpj.cjs.map → plugins-BQE1GnQ7.cjs.map} +1 -1
  36. package/dist/{plugins-aZCNhIC8.js → plugins-BVFjgEC2.js} +3 -3
  37. package/dist/{plugins-aZCNhIC8.js.map → plugins-BVFjgEC2.js.map} +1 -1
  38. package/dist/plugins.cjs +2 -2
  39. package/dist/plugins.d.ts +3 -3
  40. package/dist/plugins.js +2 -2
  41. package/dist/{reactPlugin-B47Guoya.d.ts → reactPlugin-DyvfLVFa.d.ts} +2 -2
  42. package/dist/{types-u_NEi07i.d.ts → types-BnXxcIyv.d.ts} +1 -1
  43. package/dist/types.d.ts +1 -1
  44. package/package.json +2 -2
  45. package/src/devtools.ts +98 -96
  46. package/dist/devtools-DPye8o33.js.map +0 -1
  47. package/dist/devtools-DnQsy6Us.cjs.map +0 -1
@@ -1,7 +1,4 @@
1
- import { n as __toESM, t as __commonJS } from "./chunk-CVmoYqME.js";
2
- import { onExit } from "signal-exit";
3
- import ws from "ws";
4
- import { execa } from "execa";
1
+ import { t as __commonJS } from "./chunk-9mlisOrp.js";
5
2
 
6
3
  //#region ../../node_modules/.pnpm/react-devtools-core@6.1.2/node_modules/react-devtools-core/dist/backend.js
7
4
  var require_backend = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/react-devtools-core@6.1.2/node_modules/react-devtools-core/dist/backend.js": ((exports, module) => {
@@ -5440,7 +5437,7 @@ var require_backend = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/rea
5440
5437
  function supportsConsoleTasks(componentInfo) {
5441
5438
  return !!componentInfo.debugTask;
5442
5439
  }
5443
- function attach(hook, rendererID, renderer, global$1) {
5440
+ function attach(hook, rendererID, renderer, global) {
5444
5441
  var getCurrentComponentInfo = renderer.getCurrentComponentInfo;
5445
5442
  function getComponentStack(topFrame) {
5446
5443
  if (getCurrentComponentInfo === void 0) return null;
@@ -7240,7 +7237,7 @@ var require_backend = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/rea
7240
7237
  }
7241
7238
  }
7242
7239
  }
7243
- function renderer_attach(hook, rendererID, renderer, global$1, shouldStartProfilingNow, profilingSettings) {
7240
+ function renderer_attach(hook, rendererID, renderer, global, shouldStartProfilingNow, profilingSettings) {
7244
7241
  var version = renderer.reconcilerVersion || renderer.version;
7245
7242
  var _getInternalReactCons = getInternalReactConstants(version), getDisplayNameForFiber = _getInternalReactCons.getDisplayNameForFiber, getTypeSymbol = _getInternalReactCons.getTypeSymbol, ReactPriorityLevels = _getInternalReactCons.ReactPriorityLevels, ReactTypeOfWork = _getInternalReactCons.ReactTypeOfWork, StrictModeBits = _getInternalReactCons.StrictModeBits;
7246
7243
  var CacheComponent = ReactTypeOfWork.CacheComponent, ClassComponent = ReactTypeOfWork.ClassComponent, ContextConsumer = ReactTypeOfWork.ContextConsumer, DehydratedSuspenseComponent = ReactTypeOfWork.DehydratedSuspenseComponent, ForwardRef = ReactTypeOfWork.ForwardRef, Fragment = ReactTypeOfWork.Fragment, FunctionComponent = ReactTypeOfWork.FunctionComponent, HostRoot = ReactTypeOfWork.HostRoot, HostHoistable = ReactTypeOfWork.HostHoistable, HostSingleton = ReactTypeOfWork.HostSingleton, HostPortal = ReactTypeOfWork.HostPortal, HostComponent = ReactTypeOfWork.HostComponent, HostText = ReactTypeOfWork.HostText, IncompleteClassComponent = ReactTypeOfWork.IncompleteClassComponent, IncompleteFunctionComponent = ReactTypeOfWork.IncompleteFunctionComponent, IndeterminateComponent = ReactTypeOfWork.IndeterminateComponent, LegacyHiddenComponent = ReactTypeOfWork.LegacyHiddenComponent, MemoComponent = ReactTypeOfWork.MemoComponent, OffscreenComponent = ReactTypeOfWork.OffscreenComponent, SimpleMemoComponent = ReactTypeOfWork.SimpleMemoComponent, SuspenseComponent = ReactTypeOfWork.SuspenseComponent, SuspenseListComponent = ReactTypeOfWork.SuspenseListComponent, TracingMarkerComponent = ReactTypeOfWork.TracingMarkerComponent, Throw = ReactTypeOfWork.Throw, ViewTransitionComponent = ReactTypeOfWork.ViewTransitionComponent;
@@ -8927,18 +8924,18 @@ var require_backend = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/rea
8927
8924
  case ClassComponent:
8928
8925
  case IncompleteClassComponent:
8929
8926
  case IndeterminateComponent:
8930
- global$1.$r = stateNode;
8927
+ global.$r = stateNode;
8931
8928
  break;
8932
8929
  case IncompleteFunctionComponent:
8933
8930
  case FunctionComponent:
8934
- global$1.$r = {
8931
+ global.$r = {
8935
8932
  hooks,
8936
8933
  props,
8937
8934
  type
8938
8935
  };
8939
8936
  break;
8940
8937
  case ForwardRef:
8941
- global$1.$r = {
8938
+ global.$r = {
8942
8939
  hooks,
8943
8940
  props,
8944
8941
  type: type.render
@@ -8946,14 +8943,14 @@ var require_backend = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/rea
8946
8943
  break;
8947
8944
  case MemoComponent:
8948
8945
  case SimpleMemoComponent:
8949
- global$1.$r = {
8946
+ global.$r = {
8950
8947
  hooks,
8951
8948
  props,
8952
8949
  type: elementType != null && elementType.type != null ? elementType.type : type
8953
8950
  };
8954
8951
  break;
8955
8952
  default:
8956
- global$1.$r = null;
8953
+ global.$r = null;
8957
8954
  break;
8958
8955
  }
8959
8956
  }
@@ -9708,7 +9705,7 @@ var require_backend = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/rea
9708
9705
  }
9709
9706
  return children;
9710
9707
  }
9711
- function legacy_renderer_attach(hook, rendererID, renderer, global$1) {
9708
+ function legacy_renderer_attach(hook, rendererID, renderer, global) {
9712
9709
  var idToInternalInstanceMap = /* @__PURE__ */ new Map();
9713
9710
  var internalInstanceToIDMap = /* @__PURE__ */ new WeakMap();
9714
9711
  var internalInstanceToRootIDMap = /* @__PURE__ */ new WeakMap();
@@ -10008,7 +10005,7 @@ var require_backend = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/rea
10008
10005
  }
10009
10006
  switch (getElementType(internalInstance)) {
10010
10007
  case types_ElementTypeClass:
10011
- global$1.$r = internalInstance._instance;
10008
+ global.$r = internalInstance._instance;
10012
10009
  break;
10013
10010
  case types_ElementTypeFunction:
10014
10011
  var element = internalInstance._currentElement;
@@ -10016,13 +10013,13 @@ var require_backend = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/rea
10016
10013
  console.warn("Could not find element with id \"".concat(id, "\""));
10017
10014
  return;
10018
10015
  }
10019
- global$1.$r = {
10016
+ global.$r = {
10020
10017
  props: element.props,
10021
10018
  type: element.type
10022
10019
  };
10023
10020
  break;
10024
10021
  default:
10025
- global$1.$r = null;
10022
+ global.$r = null;
10026
10023
  break;
10027
10024
  }
10028
10025
  }
@@ -10317,13 +10314,13 @@ var require_backend = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/rea
10317
10314
  function isMatchingRender(version) {
10318
10315
  return !hasAssignedBackend(version);
10319
10316
  }
10320
- function attachRenderer(hook, id, renderer, global$1, shouldStartProfilingNow, profilingSettings) {
10317
+ function attachRenderer(hook, id, renderer, global, shouldStartProfilingNow, profilingSettings) {
10321
10318
  if (!isMatchingRender(renderer.reconcilerVersion || renderer.version)) return;
10322
10319
  var rendererInterface = hook.rendererInterfaces.get(id);
10323
10320
  if (rendererInterface == null) {
10324
- if (typeof renderer.getCurrentComponentInfo === "function") rendererInterface = attach(hook, id, renderer, global$1);
10325
- else if (typeof renderer.findFiberByHostInstance === "function" || renderer.currentDispatcherRef != null) rendererInterface = renderer_attach(hook, id, renderer, global$1, shouldStartProfilingNow, profilingSettings);
10326
- else if (renderer.ComponentTree) rendererInterface = legacy_renderer_attach(hook, id, renderer, global$1);
10321
+ if (typeof renderer.getCurrentComponentInfo === "function") rendererInterface = attach(hook, id, renderer, global);
10322
+ else if (typeof renderer.findFiberByHostInstance === "function" || renderer.currentDispatcherRef != null) rendererInterface = renderer_attach(hook, id, renderer, global, shouldStartProfilingNow, profilingSettings);
10323
+ else if (renderer.ComponentTree) rendererInterface = legacy_renderer_attach(hook, id, renderer, global);
10327
10324
  }
10328
10325
  return rendererInterface;
10329
10326
  }
@@ -10834,7 +10831,7 @@ var require_backend = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/rea
10834
10831
  *
10835
10832
  *
10836
10833
  */
10837
- function initBackend(hook, agent$1, global$1, isReloadAndProfileSupported) {
10834
+ function initBackend(hook, agent$1, global, isReloadAndProfileSupported) {
10838
10835
  if (hook == null) return function() {};
10839
10836
  function registerRendererInterface(id, rendererInterface) {
10840
10837
  agent$1.registerRendererInterface(id, rendererInterface);
@@ -11221,11 +11218,11 @@ var require_backend = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/rea
11221
11218
  var bridge = null;
11222
11219
  var messageListeners = [];
11223
11220
  var uri = protocol + "://" + host + ":" + port;
11224
- var ws$1 = websocket ? websocket : new window.WebSocket(uri);
11225
- ws$1.onclose = handleClose;
11226
- ws$1.onerror = handleFailed;
11227
- ws$1.onmessage = handleMessage;
11228
- ws$1.onopen = function() {
11221
+ var ws = websocket ? websocket : new window.WebSocket(uri);
11222
+ ws.onclose = handleClose;
11223
+ ws.onerror = handleFailed;
11224
+ ws.onmessage = handleMessage;
11225
+ ws.onopen = function() {
11229
11226
  bridge = new src_bridge({
11230
11227
  listen: function listen(fn) {
11231
11228
  messageListeners.push(fn);
@@ -11235,9 +11232,9 @@ var require_backend = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/rea
11235
11232
  };
11236
11233
  },
11237
11234
  send: function send(event, payload, transferable) {
11238
- if (ws$1.readyState === ws$1.OPEN) {
11235
+ if (ws.readyState === ws.OPEN) {
11239
11236
  if (__DEBUG__) backend_debug("wall.send()", event, payload);
11240
- ws$1.send(JSON.stringify({
11237
+ ws.send(JSON.stringify({
11241
11238
  event,
11242
11239
  payload
11243
11240
  }));
@@ -11358,91 +11355,7 @@ var require_backend = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/rea
11358
11355
  }) });
11359
11356
 
11360
11357
  //#endregion
11361
- //#region src/devtools.ts
11362
- var import_backend = /* @__PURE__ */ __toESM(require_backend(), 1);
11363
- function open() {
11364
- const customGlobal = global;
11365
- customGlobal.WebSocket || (customGlobal.WebSocket = ws);
11366
- customGlobal.window || (customGlobal.window = global);
11367
- customGlobal.self || (customGlobal.self = global);
11368
- customGlobal.isDevtoolsEnabled = true;
11369
- customGlobal.window.__REACT_DEVTOOLS_COMPONENT_FILTERS__ = [
11370
- {
11371
- type: 2,
11372
- value: "Context.Provider",
11373
- isEnabled: true,
11374
- isValid: true
11375
- },
11376
- {
11377
- type: 2,
11378
- value: "KubbRoot",
11379
- isEnabled: true,
11380
- isValid: true
11381
- },
11382
- {
11383
- type: 2,
11384
- value: "KubbErrorBoundary",
11385
- isEnabled: true,
11386
- isValid: true
11387
- },
11388
- {
11389
- type: 2,
11390
- value: "kubb-file",
11391
- isEnabled: true,
11392
- isValid: true
11393
- },
11394
- {
11395
- type: 2,
11396
- value: "kubb-text",
11397
- isEnabled: true,
11398
- isValid: true
11399
- },
11400
- {
11401
- type: 2,
11402
- value: "kubb-import",
11403
- isEnabled: true,
11404
- isValid: true
11405
- },
11406
- {
11407
- type: 2,
11408
- value: "kubb-export",
11409
- isEnabled: true,
11410
- isValid: true
11411
- },
11412
- {
11413
- type: 2,
11414
- value: "kubb-source",
11415
- isEnabled: true,
11416
- isValid: true
11417
- }
11418
- ];
11419
- console.info("Opening devtools");
11420
- const controller = new AbortController();
11421
- execa({
11422
- stdio: "pipe",
11423
- preferLocal: true,
11424
- cancelSignal: controller.signal,
11425
- gracefulCancel: true
11426
- })`npx react-devtools`;
11427
- import_backend.default.initialize();
11428
- console.info("Connecting devtools");
11429
- try {
11430
- import_backend.default.connectToDevTools({
11431
- host: "localhost",
11432
- port: 8097,
11433
- useHttps: false,
11434
- isAppActive: () => true
11435
- });
11436
- } catch (e) {
11437
- console.error(e);
11438
- console.info("Error when connecting the devtools");
11439
- }
11440
- onExit(() => {
11441
- console.info("Disconnecting devtools");
11442
- controller.abort();
11443
- }, { alwaysLast: false });
11444
- }
11358
+ export default require_backend();
11445
11359
 
11446
- //#endregion
11447
- export { open as t };
11448
- //# sourceMappingURL=devtools-DPye8o33.js.map
11360
+ export { };
11361
+ //# sourceMappingURL=backend-U2f8IEJ7.js.map