@ethersphere/bee-dashboard 0.35.0 → 0.35.2

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.
Files changed (24) hide show
  1. package/build/assets/{__vite-browser-external-GBBpQyY6.js → __vite-browser-external-9jrN1CIx.js} +2 -2
  2. package/build/assets/download.browser-DkW-1Tu7.js +1 -0
  3. package/build/assets/{download.node-Cu2agz7Z.js → download.node-DYTXAdrY.js} +1 -1
  4. package/build/assets/{fs.node-C4JkI_R4.js → fs.node-DwBlG7zh.js} +2 -2
  5. package/build/assets/index-BWr_7okq.js +126 -0
  6. package/build/assets/vendor-ethers-Dmh4iz5c.js +87 -0
  7. package/build/index.html +2 -2
  8. package/lib/{App-D-bZmnQu.mjs → App-BaED7J22.mjs} +19638 -12557
  9. package/lib/{App-DREUIlty.js → App-C_kvJWIL.js} +19636 -12555
  10. package/lib/App.cjs.js +1 -1
  11. package/lib/App.js +1 -1
  12. package/lib/{download.browser-Dusbw9zM.js → download.browser-Brcsou-R.js} +1 -1
  13. package/lib/{download.browser-KkaXyYZj.mjs → download.browser-CuzNogtF.mjs} +1 -1
  14. package/lib/{download.node-CGjezvzr.js → download.node-Bnd9C4co.js} +1 -1
  15. package/lib/{download.node-ORcJCpF4.mjs → download.node-C_QRIakM.mjs} +1 -1
  16. package/lib/{fs.node-CtpSvQZh.js → fs.node-BOfQnDum.js} +1 -1
  17. package/lib/{fs.node-MZdoW1KI.mjs → fs.node-p28LxQ49.mjs} +1 -1
  18. package/lib/modules/filemanager/components/ExpiringNotificationModal/ExpiringNotificationModal.d.ts +4 -2
  19. package/lib/{upload.node-6Fo1eWIJ.js → upload.node-BOc26jHW.js} +3 -3
  20. package/lib/{upload.node-vs2hmNcN.mjs → upload.node-BsycYU0Z.mjs} +3 -3
  21. package/package.json +3 -3
  22. package/build/assets/download.browser-BISIRUf5.js +0 -1
  23. package/build/assets/index-wYIvDrId.js +0 -116
  24. package/build/assets/vendor-ethers-BjcsqZe1.js +0 -25
package/lib/App.cjs.js CHANGED
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
- const App = require("./App-DREUIlty.js");
2
+ const App = require("./App-C_kvJWIL.js");
3
3
  module.exports = App.App;
package/lib/App.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A } from "./App-D-bZmnQu.mjs";
1
+ import { A } from "./App-BaED7J22.mjs";
2
2
  export {
3
3
  A as default
4
4
  };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const App = require("./App-DREUIlty.js");
3
+ const App = require("./App-C_kvJWIL.js");
4
4
  async function downloadReadableFetch(resource, apiUrl, endpoint, options, requestOptions) {
5
5
  if (options) {
6
6
  options = prepareDownloadOptions(options);
@@ -1,4 +1,4 @@
1
- import { T as Types, R as Reference, P as PublicKey } from "./App-D-bZmnQu.mjs";
1
+ import { T as Types, R as Reference, P as PublicKey } from "./App-BaED7J22.mjs";
2
2
  async function downloadReadableFetch(resource, apiUrl, endpoint, options, requestOptions) {
3
3
  if (options) {
4
4
  options = prepareDownloadOptions(options);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const App = require("./App-DREUIlty.js");
3
+ const App = require("./App-C_kvJWIL.js");
4
4
  async function downloadNode(bee, resources, options, requestOptions) {
5
5
  const dataPromises = [];
6
6
  for (const resource of resources) {
@@ -1,4 +1,4 @@
1
- import { s as settlePromises } from "./App-D-bZmnQu.mjs";
1
+ import { s as settlePromises } from "./App-BaED7J22.mjs";
2
2
  async function downloadNode(bee, resources, options, requestOptions) {
3
3
  const dataPromises = [];
4
4
  for (const resource of resources) {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const App = require("./App-DREUIlty.js");
3
+ const App = require("./App-C_kvJWIL.js");
4
4
  const contentTypes = /* @__PURE__ */ new Map([
5
5
  [".mp4", "video/mp4"],
6
6
  [".webm", "video/webm"],
@@ -1,4 +1,4 @@
1
- import { F as FileError } from "./App-D-bZmnQu.mjs";
1
+ import { F as FileError } from "./App-BaED7J22.mjs";
2
2
  const contentTypes = /* @__PURE__ */ new Map([
3
3
  [".mp4", "video/mp4"],
4
4
  [".webm", "video/webm"],
@@ -1,12 +1,14 @@
1
- import { PostageBatch } from '@ethersphere/bee-js';
1
+ import { Bee, PostageBatch } from '@ethersphere/bee-js';
2
2
  import { DriveInfo, FileInfo } from '@solarpunkltd/file-manager-lib';
3
3
  import { ReactElement } from 'react';
4
4
  interface ExpiringNotificationModalProps {
5
+ bee: Bee;
5
6
  stamps: PostageBatch[];
6
7
  drives: DriveInfo[];
7
8
  files: FileInfo[];
8
9
  onCancelClick: () => void;
9
10
  setErrorMessage?: (error: string) => void;
11
+ setShowError: (show: boolean) => void;
10
12
  }
11
- export declare function ExpiringNotificationModal({ stamps, drives, files, onCancelClick, setErrorMessage, }: ExpiringNotificationModalProps): ReactElement;
13
+ export declare function ExpiringNotificationModal({ bee, stamps, drives, files, onCancelClick, setErrorMessage, setShowError, }: ExpiringNotificationModalProps): ReactElement;
12
14
  export {};
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const App = require("./App-DREUIlty.js");
3
+ const App = require("./App-C_kvJWIL.js");
4
4
  async function uploadNode(bee, batchId, nodeOptions, uploadOptions, requestOptions) {
5
5
  const uploadFilesRes = await uploadFileOrDirectory(bee, new App.BatchId(batchId), nodeOptions.path, { ...uploadOptions, act: false }, requestOptions);
6
6
  let uploadPreviewRes;
@@ -14,7 +14,7 @@ async function uploadNode(bee, batchId, nodeOptions, uploadOptions, requestOptio
14
14
  return await bee.uploadData(batchId, JSON.stringify(wrappedData), { ...uploadOptions, act: true }, requestOptions);
15
15
  }
16
16
  async function uploadFileOrDirectory(bee, batchId, resolvedPath, uploadOptions, requestOptions) {
17
- const { isDir } = await Promise.resolve().then(() => require("./fs.node-CtpSvQZh.js"));
17
+ const { isDir } = await Promise.resolve().then(() => require("./fs.node-BOfQnDum.js"));
18
18
  const isPathDir = await isDir(resolvedPath);
19
19
  if (isPathDir) {
20
20
  return uploadDirectory(bee, batchId, resolvedPath, uploadOptions, requestOptions);
@@ -23,7 +23,7 @@ async function uploadFileOrDirectory(bee, batchId, resolvedPath, uploadOptions,
23
23
  }
24
24
  async function uploadFile(bee, batchId, resolvedPath, uploadOptions, requestOptions) {
25
25
  try {
26
- const { readFile } = await Promise.resolve().then(() => require("./fs.node-CtpSvQZh.js"));
26
+ const { readFile } = await Promise.resolve().then(() => require("./fs.node-BOfQnDum.js"));
27
27
  const { data, name, contentType } = await readFile(resolvedPath);
28
28
  return await bee.uploadFile(batchId, data, name, {
29
29
  ...uploadOptions,
@@ -1,4 +1,4 @@
1
- import { B as BatchId, F as FileError } from "./App-D-bZmnQu.mjs";
1
+ import { B as BatchId, F as FileError } from "./App-BaED7J22.mjs";
2
2
  async function uploadNode(bee, batchId, nodeOptions, uploadOptions, requestOptions) {
3
3
  const uploadFilesRes = await uploadFileOrDirectory(bee, new BatchId(batchId), nodeOptions.path, { ...uploadOptions, act: false }, requestOptions);
4
4
  let uploadPreviewRes;
@@ -12,7 +12,7 @@ async function uploadNode(bee, batchId, nodeOptions, uploadOptions, requestOptio
12
12
  return await bee.uploadData(batchId, JSON.stringify(wrappedData), { ...uploadOptions, act: true }, requestOptions);
13
13
  }
14
14
  async function uploadFileOrDirectory(bee, batchId, resolvedPath, uploadOptions, requestOptions) {
15
- const { isDir } = await import("./fs.node-MZdoW1KI.mjs");
15
+ const { isDir } = await import("./fs.node-p28LxQ49.mjs");
16
16
  const isPathDir = await isDir(resolvedPath);
17
17
  if (isPathDir) {
18
18
  return uploadDirectory(bee, batchId, resolvedPath, uploadOptions, requestOptions);
@@ -21,7 +21,7 @@ async function uploadFileOrDirectory(bee, batchId, resolvedPath, uploadOptions,
21
21
  }
22
22
  async function uploadFile(bee, batchId, resolvedPath, uploadOptions, requestOptions) {
23
23
  try {
24
- const { readFile } = await import("./fs.node-MZdoW1KI.mjs");
24
+ const { readFile } = await import("./fs.node-p28LxQ49.mjs");
25
25
  const { data, name, contentType } = await readFile(resolvedPath);
26
26
  return await bee.uploadFile(batchId, data, name, {
27
27
  ...uploadOptions,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethersphere/bee-dashboard",
3
- "version": "0.35.0",
3
+ "version": "0.35.2",
4
4
  "description": "An app which helps users to setup their Bee node and do actions like cash out cheques",
5
5
  "homepage": ".",
6
6
  "bin": {
@@ -36,11 +36,11 @@
36
36
  "dependencies": {
37
37
  "@emotion/react": "^11.14.0",
38
38
  "@emotion/styled": "^11.14.1",
39
- "@ethersphere/bee-js": "^11.1.1",
39
+ "@ethersphere/bee-js": "^12.3.1",
40
40
  "@formbricks/js": "^4.3.0",
41
41
  "@mui/icons-material": "^7.3.7",
42
42
  "@mui/material": "^7.3.7",
43
- "@solarpunkltd/file-manager-lib": "^1.0.8",
43
+ "@solarpunkltd/file-manager-lib": "^1.0.9",
44
44
  "axios": "^0.30.2",
45
45
  "bignumber.js": "^9.3.1",
46
46
  "dotted-map": "^2.2.3",
@@ -1 +0,0 @@
1
- import{T as t,R as d,P as m}from"./vendor-ethers-BjcsqZe1.js";import"./vendor-react-mui-Dv6xxk4a.js";async function u(r,e,a,s,o){s&&(s=f(s));const n=await fetch(`${e}/${a}/${r.toString()}`,{method:"GET",headers:{...o?.headers,...l(s)},signal:o?.signal});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);if(!n.body)throw new Error("ReadableStream is not supported in this environment.");return n.body}function l(r){const e={};if(!r)return e;const a=t.asObject(r);return a.redundancyStrategy&&(e["swarm-redundancy-strategy"]=String(a.redundancyStrategy)),t.isBoolean(a.fallback)&&(e["swarm-redundancy-fallback-mode"]=a.fallback.toString()),a.timeoutMs&&(e["swarm-chunk-retrieval-timeout"]=String(a.timeoutMs)),e}function f(r){const e=t.asObject(r,{name:"DownloadOptions"});return{redundancyStrategy:t.asOptional(a=>t.asInteger(a,{name:"redundancyStrategy"}),e.redundancyStrategy),fallback:t.asOptional(a=>t.asBoolean(a,{name:"fallback"}),e.fallback),timeoutMs:t.asOptional(a=>t.asInteger(a,{name:"timeoutMs",min:0}),e.timeoutMs),actPublisher:t.asOptional(a=>new m(a),e.actPublisher),actHistoryAddress:t.asOptional(a=>new d(a),e.actHistoryAddress),actTimestamp:t.asOptional(a=>t.asNumber(a,{name:"actTimestamp"}),e.actTimestamp)}}async function b(r,e,a,s,o){const n=[];for(const i of r){const c=await u(i,e,a,s,o);n.push(c)}return n}export{b as downloadBrowser};