@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.
- package/dist/cjs/components/auth/index.js +2 -2
- package/dist/cjs/components/markdown-viewer.js +5 -6
- package/dist/esm/components/auth/index.js +1 -1
- package/dist/esm/components/markdown-viewer.js +5 -2
- package/dist/types/components/auth/index.d.ts +1 -1
- package/dist/types/components/markdown-viewer.d.ts +2 -3
- package/package.json +1 -1
- package/dist/cjs/components/auth/signin-wrapper.js +0 -45
- package/dist/esm/components/auth/signin-wrapper.js +0 -11
- package/dist/types/components/auth/signin-wrapper.d.ts +0 -2
|
@@ -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-
|
|
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-
|
|
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
|
-
|
|
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({
|
|
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-
|
|
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({
|
|
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-
|
|
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
|
|
6
|
-
export {};
|
|
5
|
+
export default function MarkdownViewer({ content, title, }: MarkdownViewerProps): import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -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
|
-
});
|