@gearbox-protocol/permissionless-ui 1.2.2 → 1.2.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.
@@ -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
  });
@@ -19,7 +19,7 @@ var __copyProps = (to, from, except, desc) => {
19
19
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
20
  var signin_required_exports = {};
21
21
  __export(signin_required_exports, {
22
- default: () => SignInRequired
22
+ SignInRequired: () => SignInRequired
23
23
  });
24
24
  module.exports = __toCommonJS(signin_required_exports);
25
25
  var import_jsx_runtime = require("react/jsx-runtime");
@@ -67,3 +67,7 @@ function SignInRequired({
67
67
  }
68
68
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonComponent, { ...customProps, onClick: () => setOpen(true), children: "Connect Wallet" });
69
69
  }
70
+ // Annotate the CommonJS export names for ESM import in node:
71
+ 0 && (module.exports = {
72
+ SignInRequired
73
+ });
@@ -28,7 +28,7 @@ __reExport(components_exports, require('./editable-table/index.js'), module.expo
28
28
  __reExport(components_exports, require('./input.js'), module.exports);
29
29
  __reExport(components_exports, require('./label.js'), module.exports);
30
30
  __reExport(components_exports, require('./layout/index.js'), module.exports);
31
- __reExport(components_exports, require('./markdown/index.js'), module.exports);
31
+ __reExport(components_exports, require('./markdown-viewer.js'), module.exports);
32
32
  __reExport(components_exports, require('./search-bar.js'), module.exports);
33
33
  __reExport(components_exports, require('./select.js'), module.exports);
34
34
  __reExport(components_exports, require('./signatures/index.js'), module.exports);
@@ -53,7 +53,7 @@ __reExport(components_exports, require('./tooltip.js'), module.exports);
53
53
  ...require('./input.js'),
54
54
  ...require('./label.js'),
55
55
  ...require('./layout/index.js'),
56
- ...require('./markdown/index.js'),
56
+ ...require('./markdown-viewer.js'),
57
57
  ...require('./search-bar.js'),
58
58
  ...require('./select.js'),
59
59
  ...require('./signatures/index.js'),
@@ -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
- default: () => MarkdownViewer
32
+ MarkdownViewer: () => MarkdownViewer
33
33
  });
34
34
  module.exports = __toCommonJS(markdown_viewer_exports);
35
35
  var import_jsx_runtime = require("react/jsx-runtime");
@@ -37,7 +37,7 @@ var import_navigation = require("next/navigation");
37
37
  var import_react = require("react");
38
38
  var import_react_markdown = __toESM(require("react-markdown"));
39
39
  var import_remark_gfm = __toESM(require("remark-gfm"));
40
- var import_layout = require('../layout/index.js');
40
+ var import_layout = require('./layout/index.js');
41
41
  function slugify(text) {
42
42
  return text.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/\s+/g, "-").replace(/-+/g, "-");
43
43
  }
@@ -69,10 +69,7 @@ function extractCustomId(children) {
69
69
  }
70
70
  return { id: slugify(text), displayText: children };
71
71
  }
72
- function MarkdownViewer({
73
- content,
74
- title
75
- }) {
72
+ function MarkdownViewer({ content, title }) {
76
73
  const router = (0, import_navigation.useRouter)();
77
74
  (0, import_react.useEffect)(() => {
78
75
  const hash = window.location.hash;
@@ -232,3 +229,7 @@ function MarkdownViewer({
232
229
  }
233
230
  );
234
231
  }
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";
@@ -45,5 +45,5 @@ function SignInRequired({
45
45
  return /* @__PURE__ */ jsx(ButtonComponent, { ...customProps, onClick: () => setOpen(true), children: "Connect Wallet" });
46
46
  }
47
47
  export {
48
- SignInRequired as default
48
+ SignInRequired
49
49
  };
@@ -11,7 +11,7 @@ export * from "./editable-table/index.js";
11
11
  export * from "./input.js";
12
12
  export * from "./label.js";
13
13
  export * from "./layout/index.js";
14
- export * from "./markdown/index.js";
14
+ export * from "./markdown-viewer.js";
15
15
  export * from "./search-bar.js";
16
16
  export * from "./select.js";
17
17
  export * from "./signatures/index.js";
@@ -4,7 +4,7 @@ import { useRouter } from "next/navigation";
4
4
  import { useEffect } from "react";
5
5
  import ReactMarkdown from "react-markdown";
6
6
  import remarkGfm from "remark-gfm";
7
- import { PageLayout } from "../layout/index.js";
7
+ import { PageLayout } from "./layout/index.js";
8
8
  function slugify(text) {
9
9
  return text.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/\s+/g, "-").replace(/-+/g, "-");
10
10
  }
@@ -36,10 +36,7 @@ function extractCustomId(children) {
36
36
  }
37
37
  return { id: slugify(text), displayText: children };
38
38
  }
39
- function MarkdownViewer({
40
- content,
41
- title
42
- }) {
39
+ function MarkdownViewer({ content, title }) {
43
40
  const router = useRouter();
44
41
  useEffect(() => {
45
42
  const hash = window.location.hash;
@@ -200,5 +197,5 @@ function MarkdownViewer({
200
197
  );
201
198
  }
202
199
  export {
203
- MarkdownViewer as default
200
+ MarkdownViewer
204
201
  };
@@ -1,2 +1,2 @@
1
- export * from "./signin-wrapper";
1
+ export * from "./signin-required";
2
2
  export * from "./siwe-provider";
@@ -6,4 +6,4 @@ export interface SignInRequiredProps extends TabButtonProps {
6
6
  children: ReactNode;
7
7
  skipSignIn?: boolean;
8
8
  }
9
- export default function SignInRequired({ children, owner, skipSignIn, ...customProps }: SignInRequiredProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<import("react").AwaitedReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
9
+ export declare function SignInRequired({ children, owner, skipSignIn, ...customProps }: SignInRequiredProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<import("react").AwaitedReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
@@ -11,7 +11,7 @@ export * from "./editable-table";
11
11
  export * from "./input";
12
12
  export * from "./label";
13
13
  export * from "./layout";
14
- export * from "./markdown";
14
+ export * from "./markdown-viewer";
15
15
  export * from "./search-bar";
16
16
  export * from "./select";
17
17
  export * from "./signatures";
@@ -0,0 +1,5 @@
1
+ export interface MarkdownViewerProps {
2
+ content: string;
3
+ title?: string;
4
+ }
5
+ export declare 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.2",
3
+ "version": "1.2.4",
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,22 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
16
- var markdown_exports = {};
17
- module.exports = __toCommonJS(markdown_exports);
18
- __reExport(markdown_exports, require('./markdown-viewer-wrapper.js'), module.exports);
19
- // Annotate the CommonJS export names for ESM import in node:
20
- 0 && (module.exports = {
21
- ...require('./markdown-viewer-wrapper.js')
22
- });
@@ -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 markdown_viewer_wrapper_exports = {};
31
- __export(markdown_viewer_wrapper_exports, {
32
- MarkdownViewer: () => MarkdownViewer
33
- });
34
- module.exports = __toCommonJS(markdown_viewer_wrapper_exports);
35
- var import_dynamic = __toESM(require("next/dynamic"));
36
- const MarkdownViewer = (0, import_dynamic.default)(
37
- () => import("./markdown-viewer"),
38
- {
39
- ssr: false
40
- }
41
- );
42
- // Annotate the CommonJS export names for ESM import in node:
43
- 0 && (module.exports = {
44
- MarkdownViewer
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 +0,0 @@
1
- export * from "./markdown-viewer-wrapper.js";
@@ -1,11 +0,0 @@
1
- "use client";
2
- import dynamic from "next/dynamic";
3
- const MarkdownViewer = dynamic(
4
- () => import("./markdown-viewer"),
5
- {
6
- ssr: false
7
- }
8
- );
9
- export {
10
- MarkdownViewer
11
- };
@@ -1,2 +0,0 @@
1
- import type { SignInRequiredProps } from "./signin-required";
2
- export declare const SignInRequired: import("react").ComponentType<SignInRequiredProps>;
@@ -1 +0,0 @@
1
- export * from "./markdown-viewer-wrapper";
@@ -1,2 +0,0 @@
1
- import type { MarkdownViewerProps } from "./markdown-viewer";
2
- export declare const MarkdownViewer: import("react").ComponentType<MarkdownViewerProps>;
@@ -1,5 +0,0 @@
1
- export interface MarkdownViewerProps {
2
- content: string;
3
- title?: string;
4
- }
5
- export default function MarkdownViewer({ content, title, }: MarkdownViewerProps): import("react/jsx-runtime").JSX.Element;