@gearbox-protocol/permissionless-ui 1.2.3 → 1.2.5
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/cjs/components/auth/signin-required.js +5 -1
- package/dist/cjs/components/layout/footer.js +9 -5
- package/dist/cjs/components/markdown-viewer.js +6 -5
- package/dist/esm/components/auth/signin-required.js +1 -1
- package/dist/esm/components/layout/footer.js +9 -5
- package/dist/esm/components/markdown-viewer.js +2 -5
- package/dist/types/components/auth/signin-required.d.ts +1 -1
- package/dist/types/components/markdown-viewer.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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
|
+
});
|
|
@@ -35,12 +35,13 @@ var import_jsx_runtime = require("react/jsx-runtime");
|
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
36
|
var import_app_logo = require('./app-logo.js');
|
|
37
37
|
var import_legal_disclaimer = require('./legal-disclaimer.js');
|
|
38
|
-
function FooterLink({ href, text }) {
|
|
38
|
+
function FooterLink({ href, text, external = false }) {
|
|
39
39
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
40
40
|
"a",
|
|
41
41
|
{
|
|
42
42
|
href,
|
|
43
43
|
className: "text-muted-foreground hover:text-foreground transition-colors duration-200 text-sm",
|
|
44
|
+
target: external ? "_blank" : void 0,
|
|
44
45
|
children: text
|
|
45
46
|
}
|
|
46
47
|
);
|
|
@@ -52,7 +53,7 @@ function FooterLinkSection({
|
|
|
52
53
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex flex-col gap-1 md:items-end", children: [
|
|
53
54
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h3", { className: "font-semibold text-foreground", children: title }),
|
|
54
55
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex flex-wrap gap-4", children: links.map((link, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.default.Fragment, { children: [
|
|
55
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(FooterLink, {
|
|
56
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(FooterLink, { ...link }),
|
|
56
57
|
index < links.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-sm", children: "\u2022" })
|
|
57
58
|
] }, link.href)) })
|
|
58
59
|
] });
|
|
@@ -94,15 +95,18 @@ function Footer({
|
|
|
94
95
|
links: [
|
|
95
96
|
{
|
|
96
97
|
href: "https://docs.gearbox.fi/gearbox-permissionless-doc",
|
|
97
|
-
text: "Documentation"
|
|
98
|
+
text: "Documentation",
|
|
99
|
+
external: true
|
|
98
100
|
},
|
|
99
101
|
{
|
|
100
102
|
href: "https://docs.gearbox.finance/risk-and-security/audits-bug-bounty",
|
|
101
|
-
text: "Audits"
|
|
103
|
+
text: "Audits",
|
|
104
|
+
external: true
|
|
102
105
|
},
|
|
103
106
|
{
|
|
104
107
|
href: "https://github.com/Gearbox-protocol",
|
|
105
|
-
text: "GitHub"
|
|
108
|
+
text: "GitHub",
|
|
109
|
+
external: true
|
|
106
110
|
}
|
|
107
111
|
]
|
|
108
112
|
}
|
|
@@ -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
|
-
|
|
32
|
+
MarkdownViewer: () => MarkdownViewer
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(markdown_viewer_exports);
|
|
35
35
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -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
|
+
});
|
|
@@ -2,12 +2,13 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { AppLogo } from "./app-logo.js";
|
|
4
4
|
import { LegalDisclaimer } from "./legal-disclaimer.js";
|
|
5
|
-
function FooterLink({ href, text }) {
|
|
5
|
+
function FooterLink({ href, text, external = false }) {
|
|
6
6
|
return /* @__PURE__ */ jsx(
|
|
7
7
|
"a",
|
|
8
8
|
{
|
|
9
9
|
href,
|
|
10
10
|
className: "text-muted-foreground hover:text-foreground transition-colors duration-200 text-sm",
|
|
11
|
+
target: external ? "_blank" : void 0,
|
|
11
12
|
children: text
|
|
12
13
|
}
|
|
13
14
|
);
|
|
@@ -19,7 +20,7 @@ function FooterLinkSection({
|
|
|
19
20
|
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1 md:items-end", children: [
|
|
20
21
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-foreground", children: title }),
|
|
21
22
|
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-4", children: links.map((link, index) => /* @__PURE__ */ jsxs(React.Fragment, { children: [
|
|
22
|
-
/* @__PURE__ */ jsx(FooterLink, {
|
|
23
|
+
/* @__PURE__ */ jsx(FooterLink, { ...link }),
|
|
23
24
|
index < links.length - 1 && /* @__PURE__ */ jsx("span", { className: "text-sm", children: "\u2022" })
|
|
24
25
|
] }, link.href)) })
|
|
25
26
|
] });
|
|
@@ -61,15 +62,18 @@ function Footer({
|
|
|
61
62
|
links: [
|
|
62
63
|
{
|
|
63
64
|
href: "https://docs.gearbox.fi/gearbox-permissionless-doc",
|
|
64
|
-
text: "Documentation"
|
|
65
|
+
text: "Documentation",
|
|
66
|
+
external: true
|
|
65
67
|
},
|
|
66
68
|
{
|
|
67
69
|
href: "https://docs.gearbox.finance/risk-and-security/audits-bug-bounty",
|
|
68
|
-
text: "Audits"
|
|
70
|
+
text: "Audits",
|
|
71
|
+
external: true
|
|
69
72
|
},
|
|
70
73
|
{
|
|
71
74
|
href: "https://github.com/Gearbox-protocol",
|
|
72
|
-
text: "GitHub"
|
|
75
|
+
text: "GitHub",
|
|
76
|
+
external: true
|
|
73
77
|
}
|
|
74
78
|
]
|
|
75
79
|
}
|
|
@@ -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
|
|
200
|
+
MarkdownViewer
|
|
204
201
|
};
|
|
@@ -6,4 +6,4 @@ export interface SignInRequiredProps extends TabButtonProps {
|
|
|
6
6
|
children: ReactNode;
|
|
7
7
|
skipSignIn?: boolean;
|
|
8
8
|
}
|
|
9
|
-
export
|
|
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;
|
|
@@ -2,4 +2,4 @@ export interface MarkdownViewerProps {
|
|
|
2
2
|
content: string;
|
|
3
3
|
title?: string;
|
|
4
4
|
}
|
|
5
|
-
export
|
|
5
|
+
export declare function MarkdownViewer({ content, title }: MarkdownViewerProps): import("react/jsx-runtime").JSX.Element;
|