@gearbox-protocol/permissionless-ui 1.2.1 → 1.2.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.
@@ -15,10 +15,10 @@ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "defau
15
15
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
16
16
  var auth_exports = {};
17
17
  module.exports = __toCommonJS(auth_exports);
18
- __reExport(auth_exports, require('./signin-wrapper.js'), module.exports);
18
+ __reExport(auth_exports, require('./signin-required.js'), module.exports);
19
19
  __reExport(auth_exports, require('./siwe-provider.js'), module.exports);
20
20
  // Annotate the CommonJS export names for ESM import in node:
21
21
  0 && (module.exports = {
22
- ...require('./signin-wrapper.js'),
22
+ ...require('./signin-required.js'),
23
23
  ...require('./siwe-provider.js')
24
24
  });
@@ -29,7 +29,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
29
29
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
30
  var markdown_viewer_exports = {};
31
31
  __export(markdown_viewer_exports, {
32
- MarkdownViewer: () => MarkdownViewer
32
+ default: () => MarkdownViewer
33
33
  });
34
34
  module.exports = __toCommonJS(markdown_viewer_exports);
35
35
  var import_jsx_runtime = require("react/jsx-runtime");
@@ -69,7 +69,10 @@ function extractCustomId(children) {
69
69
  }
70
70
  return { id: slugify(text), displayText: children };
71
71
  }
72
- function MarkdownViewer({ content, title }) {
72
+ function MarkdownViewer({
73
+ content,
74
+ title
75
+ }) {
73
76
  const router = (0, import_navigation.useRouter)();
74
77
  (0, import_react.useEffect)(() => {
75
78
  const hash = window.location.hash;
@@ -229,7 +232,3 @@ function MarkdownViewer({ content, title }) {
229
232
  }
230
233
  );
231
234
  }
232
- // Annotate the CommonJS export names for ESM import in node:
233
- 0 && (module.exports = {
234
- MarkdownViewer
235
- });
@@ -1,2 +1,2 @@
1
- export * from "./signin-wrapper.js";
1
+ export * from "./signin-required.js";
2
2
  export * from "./siwe-provider.js";
@@ -36,7 +36,10 @@ function extractCustomId(children) {
36
36
  }
37
37
  return { id: slugify(text), displayText: children };
38
38
  }
39
- function MarkdownViewer({ content, title }) {
39
+ function MarkdownViewer({
40
+ content,
41
+ title
42
+ }) {
40
43
  const router = useRouter();
41
44
  useEffect(() => {
42
45
  const hash = window.location.hash;
@@ -197,5 +200,5 @@ function MarkdownViewer({ content, title }) {
197
200
  );
198
201
  }
199
202
  export {
200
- MarkdownViewer
203
+ MarkdownViewer as default
201
204
  };
@@ -1,2 +1,2 @@
1
- export * from "./signin-wrapper";
1
+ export * from "./signin-required";
2
2
  export * from "./siwe-provider";
@@ -1,6 +1,5 @@
1
- interface MarkdownViewerProps {
1
+ export interface MarkdownViewerProps {
2
2
  content: string;
3
3
  title?: string;
4
4
  }
5
- export declare function MarkdownViewer({ content, title }: MarkdownViewerProps): import("react/jsx-runtime").JSX.Element;
6
- export {};
5
+ export default function MarkdownViewer({ content, title, }: MarkdownViewerProps): import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/permissionless-ui",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "Internal UI components",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/index.js",
@@ -1,45 +0,0 @@
1
- "use strict";
2
- "use client";
3
- var __create = Object.create;
4
- var __defProp = Object.defineProperty;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf;
8
- var __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __export = (target, all) => {
10
- for (var name in all)
11
- __defProp(target, name, { get: all[name], enumerable: true });
12
- };
13
- var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from))
16
- if (!__hasOwnProp.call(to, key) && key !== except)
17
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
- }
19
- return to;
20
- };
21
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
- // If the importer is in node compatibility mode or this is not an ESM
23
- // file that has been converted to a CommonJS file using a Babel-
24
- // compatible transform (i.e. "__esModule" has not been set), then set
25
- // "default" to the CommonJS "module.exports" for node compatibility.
26
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
- mod
28
- ));
29
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
- var signin_wrapper_exports = {};
31
- __export(signin_wrapper_exports, {
32
- SignInRequired: () => SignInRequired
33
- });
34
- module.exports = __toCommonJS(signin_wrapper_exports);
35
- var import_dynamic = __toESM(require("next/dynamic"));
36
- const SignInRequired = (0, import_dynamic.default)(
37
- () => import("./signin-required"),
38
- {
39
- ssr: false
40
- }
41
- );
42
- // Annotate the CommonJS export names for ESM import in node:
43
- 0 && (module.exports = {
44
- SignInRequired
45
- });
@@ -1,11 +0,0 @@
1
- "use client";
2
- import dynamic from "next/dynamic";
3
- const SignInRequired = dynamic(
4
- () => import("./signin-required"),
5
- {
6
- ssr: false
7
- }
8
- );
9
- export {
10
- SignInRequired
11
- };
@@ -1,2 +0,0 @@
1
- import type { SignInRequiredProps } from "./signin-required";
2
- export declare const SignInRequired: import("react").ComponentType<SignInRequiredProps>;