@merittdev/horus-lens 0.0.2 → 0.0.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/react.cjs CHANGED
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/react.ts
21
21
  var react_exports = {};
22
22
  __export(react_exports, {
23
+ Lens: () => Lens,
23
24
  LensErrorBoundary: () => LensErrorBoundary,
24
25
  LensProvider: () => LensProvider,
25
26
  getComponentStack: () => getComponentStack,
@@ -29086,7 +29087,7 @@ var ConnectIntegrationResponseSchema = external_exports.object({
29086
29087
  // ../core/dist/index.js
29087
29088
  var SDK_NAME = "@merittdev/horus-lens";
29088
29089
  var SDK_VERSION = "0.0.1";
29089
- var DEFAULT_ENDPOINT = "http://localhost:5625";
29090
+ var DEFAULT_ENDPOINT = "https://api-lens.meritt.app";
29090
29091
  var DEFAULT_REPLAY_WINDOW_MS = 15e3;
29091
29092
  var DEFAULT_MAX_CONSOLE_ENTRIES = 200;
29092
29093
  var DEFAULT_MAX_NETWORK_ENTRIES = 100;
@@ -31570,7 +31571,7 @@ var import_react3 = require("react");
31570
31571
  var import_react4 = require("react");
31571
31572
  var import_jsx_runtime2 = require("react/jsx-runtime");
31572
31573
  var LensContext = (0, import_react2.createContext)(null);
31573
- function LensProvider(props) {
31574
+ function Lens(props) {
31574
31575
  const { children, enabled, ...bootOptions } = props;
31575
31576
  const [browser, setBrowser] = (0, import_react.useState)(null);
31576
31577
  (0, import_react.useEffect)(() => {
@@ -31584,8 +31585,9 @@ function LensProvider(props) {
31584
31585
  setBrowser(null);
31585
31586
  };
31586
31587
  }, [props.accessId]);
31587
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LensContext.Provider, { value: browser, children });
31588
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LensContext.Provider, { value: browser, children: children ?? null });
31588
31589
  }
31590
+ var LensProvider = Lens;
31589
31591
  function useLens() {
31590
31592
  const browser = (0, import_react3.useContext)(LensContext);
31591
31593
  return {
@@ -31656,6 +31658,7 @@ function getComponentStack(el2) {
31656
31658
  }
31657
31659
  // Annotate the CommonJS export names for ESM import in node:
31658
31660
  0 && (module.exports = {
31661
+ Lens,
31659
31662
  LensErrorBoundary,
31660
31663
  LensProvider,
31661
31664
  getComponentStack,