Add TypeScript migration dashboard (#13820)

As we convert parts of the codebase to TypeScript, we will want a way to
track progress. This commit adds a dashboard which displays all of the
files that we wish to convert to TypeScript and which files we've
already converted.

The list of all possible files to convert is predetermined by walking
the dependency graph of each entrypoint the build system uses to compile
the extension (the files that the entrypoint imports, the files that the
imports import, etc). The list should not need to be regenerated, but
you can do it by running:

    yarn ts-migration:enumerate

The dashboard is implemented as a separate React app. The CircleCI
configuration has been updated so that when a new commit is pushed, the
React app is built and stored in the CircleCI artifacts. When a PR is
merged, the built files will be pushed to a separate repo whose sole
purpose is to serve the dashboard via GitHub Pages (this is the same
way that the Storybook works). All of the app code and script to build
the app are self-contained under
`development/ts-migration-dashboard`. To build this app yourself, you
can run:

    yarn ts-migration:dashboard:build

or if you want to build automatically as you change files, run:

    yarn ts-migration:dashboard:watch

Then open the following file in your browser (there is no server
component):

    development/ts-migration-dashboard/build/index.html

Finally, although you shouldn't have to do this, to manually deploy the
dashboard once built, you can run:

    git remote add ts-migration-dashboard git@github.com:MetaMask/metamask-extension-ts-migration-dashboard.git
    yarn ts-migration:dashboard:deploy
feature/default_network_editable
Elliot Winkler 2 years ago committed by GitHub
parent 3694afd41e
commit a7d98b695f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 42
      .circleci/config.yml
  2. 2
      .depcheckrc.yml
  3. 1
      .eslintrc.js
  4. 2
      .gitignore
  5. 1
      .prettierignore
  6. 4
      development/metamaskbot-build-announce.js
  7. 1737
      development/ts-migration-dashboard/files-to-convert.json
  8. 336
      development/ts-migration-dashboard/scripts/build-module-partitions.ts
  9. 227
      development/ts-migration-dashboard/scripts/build.ts
  10. 19
      development/ts-migration-dashboard/scripts/constants.ts
  11. 59
      development/ts-migration-dashboard/scripts/write-list-of-files-to-convert.ts
  12. 157
      development/ts-migration-dashboard/src/App.tsx
  13. 191
      development/ts-migration-dashboard/src/index.scss
  14. 7
      development/ts-migration-dashboard/src/index.tsx
  15. 1
      development/ts-migration-dashboard/src/public/images/metamask-fox.svg
  16. 13
      development/ts-migration-dashboard/src/public/index.html
  17. 655
      development/ts-migration-dashboard/src/tippy.scss
  18. 569
      lavamoat/browserify/beta/policy.json
  19. 172
      lavamoat/browserify/flask/policy.json
  20. 569
      lavamoat/browserify/main/policy.json
  21. 9
      lavamoat/build-system/policy-override.json
  22. 1749
      lavamoat/build-system/policy.json
  23. 34
      package.json
  24. 16
      patches/@types+madge+5.0.0.patch
  25. 6
      tsconfig.json
  26. 5
      types/classnames.d.ts
  27. 71
      types/react-tippy.d.ts
  28. 9
      types/react.d.ts
  29. 585
      yarn.lock

@ -65,6 +65,9 @@ workflows:
- prep-build-storybook:
requires:
- test-storybook
- prep-build-ts-migration-dashboard:
requires:
- prep-deps
- test-lint:
requires:
- prep-deps
@ -146,6 +149,7 @@ workflows:
- prep-build-beta
- prep-build-flask
- prep-build-storybook
- prep-build-ts-migration-dashboard
- prep-build-test-mv3
- benchmark
- stats-module-load-init
@ -165,6 +169,12 @@ workflows:
only: develop
requires:
- prep-build-storybook
- job-publish-ts-migration-dashboard:
filters:
branches:
only: develop
requires:
- prep-build-ts-migration-dashboard
jobs:
create_release_pull_request:
@ -369,6 +379,20 @@ jobs:
paths:
- storybook-build
prep-build-ts-migration-dashboard:
executor: node-browsers
steps:
- checkout
- attach_workspace:
at: .
- run:
name: Build TypeScript migration dashboard
command: yarn ts-migration:dashboard:build
- persist_to_workspace:
root: .
paths:
- development/ts-migration-dashboard/build
test-storybook:
executor: node-browsers
steps:
@ -686,6 +710,9 @@ jobs:
- store_artifacts:
path: storybook-build
destination: storybook
- store_artifacts:
path: development/ts-migration-dashboard/build
destination: ts-migration-dashboard
- run:
name: build:announce
command: ./development/metamaskbot-build-announce.js
@ -722,6 +749,21 @@ jobs:
git remote add storybook git@github.com:MetaMask/metamask-storybook.git
yarn storybook:deploy
job-publish-ts-migration-dashboard:
executor: node-browsers
steps:
- add_ssh_keys:
fingerprints:
- "3d:49:29:f4:b2:e8:ea:af:d1:32:eb:2a:fc:15:85:d8"
- checkout
- attach_workspace:
at: .
- run:
name: ts-migration-dashboard:deploy
command: |
git remote add ts-migration-dashboard git@github.com:MetaMask/metamask-extension-ts-migration-dashboard.git
yarn ts-migration:dashboard:deploy
test-unit:
executor: node-browsers
steps:

@ -12,6 +12,8 @@ ignores:
# dev deps
#
# all @types/* packages are imported implicitly by TypeScript
- '@types/*'
# safety fallback for npm lifecycle scripts, not used normally
- '@lavamoat/preinstall-always-fail'
# used in testing + ci

@ -9,6 +9,7 @@ module.exports = {
'builds/**/*',
'development/chromereload.js',
'development/charts/**',
'development/ts-migration-dashboard/build/**',
'dist/**/*',
'node_modules/**/*',
],

2
.gitignore vendored

@ -33,6 +33,8 @@ jest-coverage/
dist
builds/
builds.zip
development/ts-migration-dashboard/build
development/ts-migration-dashboard/intermediate
test-artifacts
test-builds

@ -11,3 +11,4 @@ app/vendor/**
test/e2e/send-eth-with-private-key-test/**
*.scss
development/chromereload.js
development/ts-migration-dashboard/filesToConvert.json

@ -93,6 +93,9 @@ async function start() {
const storybookUrl = `${BUILD_LINK_BASE}/storybook/index.html`;
const storybookLink = `<a href="${storybookUrl}">Storybook</a>`;
const tsMigrationDashboardUrl = `${BUILD_LINK_BASE}/ts-migration-dashboard/index.html`;
const tsMigrationDashboardLink = `<a href="${tsMigrationDashboardUrl}">Dashboard</a>`;
// links to bundle browser builds
const depVizUrl = `${BUILD_LINK_BASE}/build-artifacts/build-viz/index.html`;
const depVizLink = `<a href="${depVizUrl}">Build System</a>`;
@ -119,6 +122,7 @@ async function start() {
`mv3: ${bundleSizeStatsLink}`,
`code coverage: ${coverageLink}`,
`storybook: ${storybookLink}`,
`typescript migration: ${tsMigrationDashboardLink}`,
`<a href="${allArtifactsUrl}">all artifacts</a>`,
`<details>
<summary>bundle viz:</summary>

File diff suppressed because it is too large Load Diff

@ -0,0 +1,336 @@
import fs from 'fs';
import path from 'path';
import fg from 'fast-glob';
import madge from 'madge';
import {
BASE_DIRECTORY,
ENTRYPOINT_PATTERNS,
FILES_TO_CONVERT_PATH,
} from './constants';
/**
* Represents a module that has been imported somewhere in the codebase.
*
* @property id - The name of a file or NPM module.
* @property dependents - The modules which are imported by this module.
* @property level - How many modules it takes to import this module (from the
* root of the dependency tree).
* @property isExternal - Whether the module refers to a NPM module.
* @property hasBeenConverted - Whether the module was one of the files we
* wanted to convert to TypeScript and has been converted.
*/
type Module = {
id: string;
dependents: Module[];
level: number;
isExternal: boolean;
hasBeenConverted: boolean;
};
/**
* Represents a set of modules that sit at a certain level within the final
* dependency tree.
*
* @property level - How many modules it takes to import this module (from the
* root of the dependency tree).
* @property children - The modules that share this same level.
* @property children[].name - The name of the item being imported.
* @property children[].hasBeenConverted - Whether or not the module (assuming
* that it is a file in our codebase) has been converted to TypeScript.
*/
export type ModulePartition = {
level: number;
children: {
name: string;
hasBeenConverted: boolean;
}[];
};
/**
* Uses the `madge` package to traverse the dependency graphs assembled from a
* set of entrypoints (a combination of the entrypoints that the build script
* uses to build the extension as well as a manually picked list), builds a
* combined dependency tree, then arranges the nodes of that tree by level,
* which is the number of files it takes to reach a file within the whole tree.
*
* @returns An array of objects which can be used to render the dashboard, where
* each object represents a group of files at a certain level in the dependency
* tree.
*/
export default async function buildModulePartitions(): Promise<
ModulePartition[]
> {
const allowedFilePaths = readFilesToConvert();
const possibleEntryFilePaths = (
await Promise.all(
ENTRYPOINT_PATTERNS.map((entrypointPattern) => {
return fg(
path.resolve(BASE_DIRECTORY, `${entrypointPattern}.{js,ts,tsx}`),
);
}),
)
).flat();
const entryFilePaths = filterFilePaths(
possibleEntryFilePaths.map((possibleEntrypoint) =>
path.relative(BASE_DIRECTORY, possibleEntrypoint),
),
allowedFilePaths,
);
const result = await madge(entryFilePaths, {
baseDir: BASE_DIRECTORY,
tsConfig: path.join(BASE_DIRECTORY, 'tsconfig.json'),
});
const dependenciesByFilePath = result.obj();
const modulesById = buildModulesWithLevels(
dependenciesByFilePath,
entryFilePaths,
allowedFilePaths,
);
return partitionModulesByLevel(modulesById);
}
/**
* Returns the contents of a JSON file that stores the names of the files that
* we plan on converting to TypeScript. All of the dependency information
* will be filtered through this list.
*/
function readFilesToConvert(): string[] {
try {
return JSON.parse(fs.readFileSync(FILES_TO_CONVERT_PATH, 'utf-8'));
} catch (error: unknown) {
throw new Error(
'Could not read or parse list of files to convert. ' +
'Have you tried running the following command?\n\n' +
' yarn ts-migration:enumerate\n\n' +
`Original error: ${error}`,
);
}
}
/**
* Filters the given set of file paths according to the given allow list. As the
* entry file paths could refer to TypeScript files, and the allow list is
* guaranteed to be JavaScript files, the entry file paths are normalized to end
* in `.js` before being filtered.
*
* @param filePaths - A set of file paths.
* @param allowedFilePaths - A set of allowed file paths.
* @returns The filtered file paths.
*/
function filterFilePaths(filePaths: string[], allowedFilePaths: string[]) {
return filePaths.filter((filePath) =>
allowedFilePaths.includes(filePath.replace(/\.tsx?$/u, '.js')),
);
}
/**
* This function takes a flat data structure that represents the dependency
* graph of a system. It traverses the graph, converting it to a tree (i.e.,
* resolving circular dependencies), but where any node of the tree is
* accessible immediately. The "level" of a dependency how many other
* dependencies it takes to reach that dependency is also recorded.
*
* @param dependenciesByModuleId - An object that maps a file path in the
* dependency graph to the dependencies that it imports. This information is
* provided by the `madge` package.
* @param entryModuleIds - File paths which will initiate the traversal through
* the dependency graph. These file paths will always be level 0.
* @param allowedFilePaths - The list of original JavaScript files to
* convert to TypeScript; governs which files will end up in the final
* dependency graph.
* @returns A data structure that maps the id of a module in the dependency
* graph to an object that represents that module.
*/
function buildModulesWithLevels(
dependenciesByModuleId: Record<string, string[]>,
entryModuleIds: string[],
allowedFilePaths: string[],
): Record<string, Module> {
// Our overall goal is that we want to partition the graph into different
// sections. We want to find the leaves of the graph — that is, files that
// depend on no other files — then the dependents of the leaves — those files
// that depend on the leaves — then the dependents of the dependents, etc. We
// can derive this information by traversing the graph, and for each module we
// encounter, recording the number of modules it takes to reach that module.
// We call this number the **level**.
//
// We will discuss a couple of optimizations we've made to ensure that graph
// traversal is performant.
//
// Naively, in order to calculate the level of each module, we need to follow
// that module's dependencies, then the dependencies of the dependencies,
// etc., until we hit leaves. Essentially, we need to follow each connection
// in the graph. However, this creates a performance problem, because in a
// large system a file could get imported multiple ways (this is the nature of
// a graph: each node can have multiple incoming connections and multiple
// outgoing connections). For instance:
//
// - `foo.js` could import `bar.js` which could import `baz.js`
// - `foo.js` could also import `baz.js` directly
// - `foo.js` could also import `bar.js` which imports `qux.js` which imports `baz.js`
//
// In this case, even if there are few modules in a system, a subset of those
// modules may be visited multiple times in the course of traversing
// connections between all of them. This is costly and unnecessary.
//
// To address this, as we are traversing the graph, we record modules we've
// visited along with the level when we visited it. If we encounter a module
// again through some other path, and the level this time is less than the
// level we've already recorded, then we know we don't need to revisit that
// module or — crucially — any of its dependencies. Therefore we can skip
// whole sections of the graph.
//
// In addition, in a large enough system, some files could import files that end
// up importing themselves later on:
//
// - `foo.js` could import `bar.js`, which imports `baz.js`, which imports `foo.js`, which...
//
// These are called circular dependencies, and we detect them by tracking the
// files that depend on a file (dependents) in addition to the files on which
// that file depends (dependencies). In the example above, `baz.js` has a
// dependency `foo.js`, and its chain of dependents is `bar.js` -> `foo.js`
// (working backward from `baz.js`). The chain of dependents of `baz.js`
// includes `foo.js`, so we say `foo.js` is a circular dependency of `baz.js`,
// and we don't need to follow it.
const modulesToFill: Module[] = entryModuleIds.map((moduleId) => {
return {
id: moduleId,
dependents: [],
level: 0,
isExternal: false,
hasBeenConverted: /\.tsx?$/u.test(moduleId),
};
});
const modulesById: Record<string, Module> = {};
while (modulesToFill.length > 0) {
const currentModule = modulesToFill.shift() as Module;
const childModulesToFill: Module[] = [];
(dependenciesByModuleId[currentModule.id] ?? []).forEach(
(givenChildModuleId) => {
const npmPackageMatch = givenChildModuleId.match(
/^node_modules\/(?:(@[^/]+)\/)?([^/]+)\/.+$/u,
);
let childModuleId;
if (npmPackageMatch) {
childModuleId =
npmPackageMatch[1] === undefined
? `${npmPackageMatch[2]}`
: `${npmPackageMatch[1]}/${npmPackageMatch[2]}`;
} else {
childModuleId = givenChildModuleId;
}
// Skip circular dependencies
if (
findDirectAndIndirectDependentIdsOf(currentModule).has(childModuleId)
) {
return;
}
// Skip files that weren't on the original list of JavaScript files to
// convert, as we don't want them to show up on the status dashboard
if (
!npmPackageMatch &&
!allowedFilePaths.includes(childModuleId.replace(/\.tsx?$/u, '.js'))
) {
return;
}
const existingChildModule = modulesById[childModuleId];
if (existingChildModule === undefined) {
const childModule: Module = {
id: childModuleId,
dependents: [currentModule],
level: currentModule.level + 1,
isExternal: Boolean(npmPackageMatch),
hasBeenConverted: /\.tsx?$/u.test(childModuleId),
};
childModulesToFill.push(childModule);
} else {
if (currentModule.level + 1 > existingChildModule.level) {
existingChildModule.level = currentModule.level + 1;
// Update descendant modules' levels
childModulesToFill.push(existingChildModule);
} else {
// There is no point in descending into dependencies of this module
// if the new level of the module would be <= the existing level,
// because all of the dependencies from this point on are guaranteed
// to have a higher level and are therefore already at the right
// level.
}
if (!existingChildModule.dependents.includes(currentModule)) {
existingChildModule.dependents.push(currentModule);
}
}
},
);
if (childModulesToFill.length > 0) {
modulesToFill.push(...childModulesToFill);
}
if (!(currentModule.id in modulesById)) {
modulesById[currentModule.id] = currentModule;
}
}
return modulesById;
}
/**
* Given a file in the dependency graph, returns all of the names of the files
* which import that file directly or through some other file.
*
* @param module - A module in the graph.
* @returns The ids of the modules which are incoming connections to
* the module.
*/
function findDirectAndIndirectDependentIdsOf(module: Module): Set<string> {
const modulesToProcess = [module];
const allDependentIds = new Set<string>();
while (modulesToProcess.length > 0) {
const currentModule = modulesToProcess.shift() as Module;
currentModule.dependents.forEach((dependent) => {
if (!allDependentIds.has(dependent.id)) {
allDependentIds.add(dependent.id);
modulesToProcess.push(dependent);
}
});
}
return allDependentIds;
}
/**
* Partitions modules in the dependency graph by level (see {@link buildModulesWithLevels}
* for an explanation). This will be used to render those modules on the
* dashboard in groups.
*
* @param modulesById - An object that maps the id of a module to an object that
* represents that module.
* @returns An array where each item represents a level and is the module ids
* that match that level, sorted by largest level (leaves) to smallest level
* (roots).
*/
function partitionModulesByLevel(
modulesById: Record<string, Module>,
): ModulePartition[] {
const levels = Object.values(modulesById).map((module) => module.level);
const maxLevel = Math.max(...levels);
const modulePartitions: ModulePartition[] = [];
for (let i = 0; i <= maxLevel; i++) {
modulePartitions[i] = { level: i + 1, children: [] };
}
Object.values(modulesById).forEach((module) => {
modulePartitions[module.level].children.push({
name: module.id,
hasBeenConverted: module.hasBeenConverted,
});
});
return modulePartitions.reverse();
}

@ -0,0 +1,227 @@
import path from 'path';
import fs from 'fs-extra';
import yargs from 'yargs/yargs';
import { hideBin } from 'yargs/helpers';
import chokidar from 'chokidar';
import browserify from 'browserify';
import pify from 'pify';
import endOfStream from 'end-of-stream';
import pump from 'pump';
import gulp from 'gulp';
import gulpDartSass from 'gulp-dart-sass';
import sourcemaps from 'gulp-sourcemaps';
import autoprefixer from 'gulp-autoprefixer';
import fg from 'fast-glob';
import buildModulePartitions from './build-module-partitions';
const promisifiedPump = pify(pump);
const projectDirectoryPath = path.resolve(__dirname, '../');
const sourceDirectoryPath = path.join(projectDirectoryPath, 'src');
const intermediateDirectoryPath = path.join(
projectDirectoryPath,
'intermediate',
);
const buildDirectoryPath = path.join(projectDirectoryPath, 'build');
main().catch((error) => {
console.error(error);
process.exit(1);
});
/**
* Compiles a set of files that we want to convert to TypeScript, divided by
* level in the dependency tree.
*
* @param dest - The directory in which to hold the file.
*/
async function generateIntermediateFiles(dest: string) {
const partitions = await buildModulePartitions();
const partitionsFile = path.resolve(dest, 'partitions.json');
await pify(fs.writeFile)(
partitionsFile,
JSON.stringify(partitions, null, ' '),
);
console.log(
`- Wrote intermediate partitions file: ${path.relative(
projectDirectoryPath,
partitionsFile,
)}`,
);
}
/**
* Compiles the JavaScript code for the dashboard.
*
* @param src - The path to the JavaScript entrypoint.
* @param dest - The path to the compiled and bundled JavaScript file.
*/
async function compileScripts(src: string, dest: string) {
const extensions = ['.js', '.ts', '.tsx'];
const browserifyOptions: Record<string, unknown> = {
extensions,
// Use entryFilepath for moduleIds, easier to determine origin file
fullPaths: true,
// For sourcemaps
debug: true,
};
const bundler = browserify(browserifyOptions);
bundler.add(src);
// Run TypeScript files through Babel
bundler.transform('babelify', { extensions });
// Inline `fs.readFileSync` files
bundler.transform('brfs');
const bundleStream = bundler.bundle();
bundleStream.pipe(fs.createWriteStream(dest));
bundleStream.on('error', (error: Error) => {
throw error;
});
await pify(endOfStream(bundleStream));
console.log(
`- Compiled scripts: ${path.relative(
projectDirectoryPath,
src,
)} -> ${path.relative(projectDirectoryPath, dest)}`,
);
}
/**
* Compiles the CSS code for the dashboard.
*
* @param src - The path to the CSS file.
* @param dest - The path to the compiled CSS file.
*/
async function compileStylesheets(src: string, dest: string): Promise<void> {
await promisifiedPump(
gulp.src(src),
sourcemaps.init(),
gulpDartSass().on('error', (error: unknown) => {
throw error;
}),
autoprefixer(),
sourcemaps.write(),
gulp.dest(dest),
);
console.log(
`- Compiled stylesheets: ${path.relative(
projectDirectoryPath,
src,
)} -> ${path.relative(projectDirectoryPath, dest)}`,
);
}
/**
* Copies static files (images and the index HTML file) to the build directory.
*
* @param src - The path to the directory that holds the static files.
* @param dest - The path where they should be copied.
*/
async function copyStaticFiles(src: string, dest: string): Promise<void> {
const entries = await fg([path.join(src, '*')], {
onlyFiles: false,
});
await Promise.all(
entries.map(async (srcEntry) => {
const destEntry = path.join(dest, path.basename(srcEntry));
await fs.copy(srcEntry, destEntry);
console.log(
`- Copied static files: ${path.relative(
projectDirectoryPath,
srcEntry,
)} -> ${path.relative(projectDirectoryPath, destEntry)}`,
);
}),
);
}
/**
* Generates a compiled and bundled version of the dashboard ready for
* distribution.
*
* @param options - The options.
* @param options.isInitial - Whether this is the first time this function has
* been called (if we are watching for file changes, we may call this function
* multiple times).
* @param options.isOnly - Whether this will be the only time this function will
* be called (if we are not watching for file changes, then this will never be
* called again).
*/
async function rebuild({
isInitial = false,
isOnly = false,
} = {}): Promise<void> {
if (isInitial && !isOnly) {
console.log('Running initial build, please wait (may take a bit)...');
}
if (!isInitial) {
console.log('Detected change, rebuilding...');
}
await fs.emptyDir(buildDirectoryPath);
try {
if (isInitial) {
await fs.emptyDir(intermediateDirectoryPath);
await generateIntermediateFiles(intermediateDirectoryPath);
}
await compileScripts(
path.join(sourceDirectoryPath, 'index.tsx'),
path.join(buildDirectoryPath, 'index.js'),
);
await compileStylesheets(
path.join(sourceDirectoryPath, 'index.scss'),
path.join(buildDirectoryPath),
);
await copyStaticFiles(
path.join(sourceDirectoryPath, 'public'),
path.join(buildDirectoryPath),
);
} catch (error: unknown) {
console.error(error);
}
}
/**
* The entrypoint to this script. Parses command-line arguments, then, depending
* on whether `--watch` was given, either starts a file watcher, after which the
* dashboard will be built on file changes, or builds the dashboard immediately.
*/
async function main() {
const opts = yargs(hideBin(process.argv))
.usage('Usage: $0 [options]')
.option('watch', {
alias: 'w',
type: 'boolean',
description: 'Automatically build when there are changes',
})
.help('h')
.alias('h', 'help')
.parseSync();
console.log(`Working directory: ${projectDirectoryPath}`);
if (opts.watch) {
const rebuildIgnoringErrors = () => {
rebuild().catch((error: Error) => {
console.error(error);
});
};
chokidar
.watch(path.join(sourceDirectoryPath, '**/*.{html,ts,tsx,scss}'), {
ignoreInitial: true,
})
.on('add', rebuildIgnoringErrors)
.on('change', rebuildIgnoringErrors)
.on('unlink', rebuildIgnoringErrors)
.on('error', (error: unknown) => {
console.error(error);
});
await rebuild({ isInitial: true, isOnly: false });
} else {
await rebuild({ isInitial: true, isOnly: true });
}
}

@ -0,0 +1,19 @@
import path from 'path';
export const BASE_DIRECTORY = path.resolve(__dirname, '../../..');
export const ENTRYPOINT_PATTERNS = [
'app/scripts/background',
'app/scripts/contentscript',
'app/scripts/disable-console',
'app/scripts/inpage',
'app/scripts/phishing-detect',
'app/scripts/sentry-install',
'app/scripts/ui',
'development/build/index',
'**/*.stories',
'**/*.test',
];
export const FILES_TO_CONVERT_PATH = path.join(
__dirname,
'../files-to-convert.json',
);

@ -0,0 +1,59 @@
import path from 'path';
import fs from 'fs';
import fg from 'fast-glob';
import madge from 'madge';
import {
BASE_DIRECTORY,
ENTRYPOINT_PATTERNS,
FILES_TO_CONVERT_PATH,
} from './constants';
main().catch((error) => {
console.error(error);
process.exit(1);
});
/**
* The entrypoint to this script.
*
* Uses the `madge` package to traverse the dependency graph of a set of
* entrypoints (a combination of the ones that the build script uses to build
* the extension as well as a manually picked list), outputting a JSON array
* containing all JavaScript files that need to be converted to TypeScript.
*/
async function main(): Promise<void> {
const entrypoints = (
await Promise.all(
ENTRYPOINT_PATTERNS.map((entrypointPattern) => {
return fg(
path.resolve(BASE_DIRECTORY, `${entrypointPattern}.{js,ts,tsx}`),
);
}),
)
).flat();
console.log(
`Traversing dependency trees for ${entrypoints.length} entrypoints, please wait...`,
);
const result = await madge(entrypoints, {
baseDir: BASE_DIRECTORY,
});
const dependenciesByFilePath = result.obj();
const sortedFilePaths = Object.keys(dependenciesByFilePath)
.sort()
.filter((filePath) => {
return (
/\.(?:js|tsx?)$/u.test(filePath) &&
!/^(?:\.storybook|node_modules)\//u.test(filePath)
);
});
fs.writeFileSync(
FILES_TO_CONVERT_PATH,
JSON.stringify(sortedFilePaths, null, ' '),
);
console.log(
`${path.relative(process.cwd(), FILES_TO_CONVERT_PATH)} written with ${
sortedFilePaths.length
} modules.`,
);
}

@ -0,0 +1,157 @@
import React from 'react';
import classnames from 'classnames';
import { Tooltip as ReactTippy } from 'react-tippy';
import { ModulePartition } from '../scripts/build-module-partitions';
// The `brfs` transform for browserify calls `fs.readLineSync` and
// `path.resolve` at build time and inlines file contents into the source code.
// To accomplish this we have to bring in `fs` and `path` using `require` and
// not `import`. This is weird in a TypeScript file, and typescript-eslint
// (rightly) complains about this, but it's actually okay because the above
// `import` lines will actually get turned into `require`s anyway before passing
// through the rest of browserify. However, `brfs` should handle this. There is
// an active bug for this, but there isn't a known workaround yet:
// <https://github.com/browserify/brfs/issues/39>
/* eslint-disable-next-line @typescript-eslint/no-require-imports,@typescript-eslint/no-var-requires */
const fs = require('fs');
/* eslint-disable-next-line @typescript-eslint/no-require-imports,@typescript-eslint/no-var-requires */
const path = require('path');
type Summary = {
numConvertedFiles: number;
numFiles: number;
};
function calculatePercentageComplete(summary: Summary) {
return ((summary.numConvertedFiles / summary.numFiles) * 100).toFixed(1);
}
export default function App() {
const partitions = JSON.parse(
fs.readFileSync(
path.resolve(__dirname, '../intermediate/partitions.json'),
{
encoding: 'utf-8',
},
),
) as ModulePartition[];
const allFiles = partitions.flatMap((partition) => {
return partition.children;
});
const overallTotal = {
numConvertedFiles: allFiles.filter((file) => file.hasBeenConverted).length,
numFiles: allFiles.length,
};
return (
<>
<h1 className="page-header">
<img src="images/metamask-fox.svg" className="page-header__icon" />
Extension TypeScript Migration Status
</h1>
<h2
className="overall-summary"
style={{
'--progress': `${calculatePercentageComplete(overallTotal)}%`,
}}
>
OVERALL: {overallTotal.numConvertedFiles}/{overallTotal.numFiles} (
{calculatePercentageComplete(overallTotal)}%)
</h2>
<details className="help">
<summary className="help__question">What is this?</summary>
<div className="help__answer">
<p>
This is a dashboard that tracks the status of converting the
extension codebase from JavaScript to TypeScript. It is updated
whenever a new commit is pushed to the codebase, so it always
represents the current work.
</p>
<p>
Each box
<div className="file file--inline file--to-be-converted">
&nbsp;
</div>
on this page represents a file that either we want to convert or
we've already converted to TypeScript (hover over a box to see the
filename). Boxes that are
<div className="file file--inline file--to-be-converted file--test">
&nbsp;
</div>
greyed out are test or Storybook files.
</p>
<p>
These boxes are further partitioned by <em>level</em>. The level of
a file is how many files you have to import before you reach that
file in the whole codebase. For instance, if we have a file{' '}
<code>foo.js</code>, and that file imports <code>bar.js</code> and{' '}
<code>baz.js</code>, and <code>baz.js</code> imports{' '}
<code>qux.js</code>, then:
</p>
<ul>
<li>
<code>foo.js</code> would be at <em>level 1</em>
</li>
<li>
<code>bar.js</code> and <code>baz.js</code> would be at{' '}
<em>level 2</em>
</li>
<li>
<code>qux.js</code> would be at <em>level 3</em>
</li>
</ul>
<p>
This level assignment can be used to determine a priority for
converting the remaining JavaScript files. Files which have fewer
dependencies should in theory be easier to convert, so files with a
higher level should be converted first. In other words,{' '}
<strong>
you should be able to start from the top and go down
</strong>
.
</p>
</div>
</details>
<div className="levels">
{partitions.map((partition) => {
return (
<div key={partition.level} className="level">
<div className="level__name">level {partition.level}</div>
<div className="level__children">
{partition.children.map(({ name, hasBeenConverted }) => {
const isTest = /\.test\.(?:js|tsx?)/u.test(name);
const isStorybookFile = /\.stories\.(?:js|tsx?)/u.test(name);
return (
<ReactTippy
key={name}
title={name}
arrow={true}
animation="fade"
duration={250}
className="file__tooltipped"
style={{ display: 'block' }}
>
<div
className={classnames('file', {
'file--has-been-converted': hasBeenConverted,
'file--to-be-converted': !hasBeenConverted,
'file--test': isTest,
'file--storybook': isStorybookFile,
})}
/>
</ReactTippy>
);
})}
</div>
</div>
);
})}
</div>
</>
);
}

@ -0,0 +1,191 @@
@import '../../../ui/css/reset';
@import './tippy';
/* Native elements */
* {
box-sizing: border-box;
}
html {
font-family:
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
Helvetica,
Arial,
sans-serif,
"Apple Color Emoji",
"Segoe UI Emoji";
font-size: 16px;
}
body {
padding: 2rem;
}
p:not(:last-child) {
margin-bottom: 1rem;
}
code {
font-size: 0.85em;
font-family:
ui-monospace,
SFMono-Regular,
SF Mono,
Menlo,
Consolas,
Liberation Mono,
monospace;
}
strong {
font-weight: bold;
}
em {
font-style: italic;
}
ul {
list-style: disc;
margin-bottom: 1rem;
margin-left: 1rem;
}
/* Custom elements */
:root {
--blue-gray-350: hsl(209deg 13.7% 62.4%);
--blue-gray-100: hsl(209.8deg 16.5% 89%);
--green: hsl(113deg 100% 38%);
}
.page-header {
font-size: 2rem;
font-weight: bold;
display: flex;
align-items: center;
&__icon {
height: 1em;
margin-right: 0.5em;
}
}
.overall-summary {
font-size: 1.5rem;
line-height: 1.5rem;
padding: 1rem;
margin: 2rem 0;
background: linear-gradient(90deg, var(--green) 0% var(--progress), var(--blue-gray-350) var(--progress) 100%) no-repeat;
border: 2px solid rgb(0 0 0 / 50%);
color: white;
font-weight: bold;
}
.help {
margin-bottom: 2rem;
color: black;
line-height: 1.5rem;
background-color: #ffffc8;
border: 1px solid rgb(0 0 0 / 25%);
max-width: 40rem;
[open] {
padding: 1rem;
}
&__question {
font-weight: bold;
cursor: pointer;
font-size: 1.1rem;
padding: 1rem;
}
&__answer {
padding: 0 1rem 1rem;
}
}
.section-header {
font-size: 1.25rem;
line-height: 1.25rem;
padding: 0.75rem;
color: white;
background: linear-gradient(90deg, var(--green) 0% var(--progress), var(--blue-gray-350) var(--progress) 100%) no-repeat;
border-bottom: 1px solid rgb(0 0 0 / 50%);
&--primary {
font-weight: bold;
}
}
.section {
margin-bottom: 2rem;
border: 1px solid rgb(0 0 0 / 50%);
}
.level {
display: flex;
gap: 0.5rem;
margin-bottom: 1rem;
&__name {
writing-mode: vertical-rl;
font-size: 0.75rem;
padding: 0.75rem 0;
}
&__children {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
padding: 1rem;
border: 1px dotted gray;
border-radius: 0.5rem;
height: fit-content;
}
}
.file {
width: 1.5rem;
height: 1.5rem;
border: 1px solid rgba(0 0 0 / 25%);
border-radius: 0.25rem;
&--inline {
display: inline-block;
margin: 0 0.5rem;
vertical-align: middle;
}
&__tooltipped {
width: 1.5rem;
height: 1.5rem;
}
&--has-been-converted {
background-color: var(--green);
}
&--to-be-converted {
background-color: var(--blue-gray-100);
}
&--test,
&--storybook {
opacity: 0.3;
}
}
/* Package overrides */
.tippy-tooltip {
padding: 0.4rem 0.6rem;
}
.tippy-tooltip-content {
font-size: 0.8rem;
}

@ -0,0 +1,7 @@
import * as React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
const appElement = document.querySelector('#app');
ReactDOM.render(<App />, appElement);

@ -0,0 +1 @@
<svg fill="none" height="33" viewBox="0 0 35 33" width="35" xmlns="http://www.w3.org/2000/svg"><g stroke-linecap="round" stroke-linejoin="round" stroke-width=".25"><path d="m32.9582 1-13.1341 9.7183 2.4424-5.72731z" fill="#e17726" stroke="#e17726"/><g fill="#e27625" stroke="#e27625"><path d="m2.66296 1 13.01714 9.809-2.3254-5.81802z"/><path d="m28.2295 23.5335-3.4947 5.3386 7.4829 2.0603 2.1436-7.2823z"/><path d="m1.27281 23.6501 2.13055 7.2823 7.46994-2.0603-3.48166-5.3386z"/><path d="m10.4706 14.5149-2.0786 3.1358 7.405.3369-.2469-7.969z"/><path d="m25.1505 14.5149-5.1575-4.58704-.1688 8.05974 7.4049-.3369z"/><path d="m10.8733 28.8721 4.4819-2.1639-3.8583-3.0062z"/><path d="m20.2659 26.7082 4.4689 2.1639-.6105-5.1701z"/></g><path d="m24.7348 28.8721-4.469-2.1639.3638 2.9025-.039 1.231z" fill="#d5bfb2" stroke="#d5bfb2"/><path d="m10.8732 28.8721 4.1572 1.9696-.026-1.231.3508-2.9025z" fill="#d5bfb2" stroke="#d5bfb2"/><path d="m15.1084 21.7842-3.7155-1.0884 2.6243-1.2051z" fill="#233447" stroke="#233447"/><path d="m20.5126 21.7842 1.0913-2.2935 2.6372 1.2051z" fill="#233447" stroke="#233447"/><path d="m10.8733 28.8721.6495-5.3386-4.13117.1167z" fill="#cc6228" stroke="#cc6228"/><path d="m24.0982 23.5335.6366 5.3386 3.4946-5.2219z" fill="#cc6228" stroke="#cc6228"/><path d="m27.2291 17.6507-7.405.3369.6885 3.7966 1.0913-2.2935 2.6372 1.2051z" fill="#cc6228" stroke="#cc6228"/><path d="m11.3929 20.6958 2.6242-1.2051 1.0913 2.2935.6885-3.7966-7.40495-.3369z" fill="#cc6228" stroke="#cc6228"/><path d="m8.392 17.6507 3.1049 6.0513-.1039-3.0062z" fill="#e27525" stroke="#e27525"/><path d="m24.2412 20.6958-.1169 3.0062 3.1049-6.0513z" fill="#e27525" stroke="#e27525"/><path d="m15.797 17.9876-.6886 3.7967.8704 4.4833.1949-5.9087z" fill="#e27525" stroke="#e27525"/><path d="m19.8242 17.9876-.3638 2.3584.1819 5.9216.8704-4.4833z" fill="#e27525" stroke="#e27525"/><path d="m20.5127 21.7842-.8704 4.4834.6236.4406 3.8584-3.0062.1169-3.0062z" fill="#f5841f" stroke="#f5841f"/><path d="m11.3929 20.6958.104 3.0062 3.8583 3.0062.6236-.4406-.8704-4.4834z" fill="#f5841f" stroke="#f5841f"/><path d="m20.5906 30.8417.039-1.231-.3378-.2851h-4.9626l-.3248.2851.026 1.231-4.1572-1.9696 1.4551 1.1921 2.9489 2.0344h5.0536l2.962-2.0344 1.442-1.1921z" fill="#c0ac9d" stroke="#c0ac9d"/><path d="m20.2659 26.7082-.6236-.4406h-3.6635l-.6236.4406-.3508 2.9025.3248-.2851h4.9626l.3378.2851z" fill="#161616" stroke="#161616"/><path d="m33.5168 11.3532 1.1043-5.36447-1.6629-4.98873-12.6923 9.3944 4.8846 4.1205 6.8983 2.0085 1.52-1.7752-.6626-.4795 1.0523-.9588-.8054-.622 1.0523-.8034z" fill="#763e1a" stroke="#763e1a"/><path d="m1 5.98873 1.11724 5.36447-.71451.5313 1.06527.8034-.80545.622 1.05228.9588-.66255.4795 1.51997 1.7752 6.89835-2.0085 4.8846-4.1205-12.69233-9.3944z" fill="#763e1a" stroke="#763e1a"/><path d="m32.0489 16.5234-6.8983-2.0085 2.0786 3.1358-3.1049 6.0513 4.1052-.0519h6.1318z" fill="#f5841f" stroke="#f5841f"/><path d="m10.4705 14.5149-6.89828 2.0085-2.29944 7.1267h6.11883l4.10519.0519-3.10487-6.0513z" fill="#f5841f" stroke="#f5841f"/><path d="m19.8241 17.9876.4417-7.5932 2.0007-5.4034h-8.9119l2.0006 5.4034.4417 7.5932.1689 2.3842.013 5.8958h3.6635l.013-5.8958z" fill="#f5841f" stroke="#f5841f"/></g></svg>

After

Width:  |  Height:  |  Size: 3.2 KiB

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1 user-scalable=no">
<title>Extension TypeScript Migration Status</title>
<link rel="stylesheet" type="text/css" href="index.css">
</head>
<body>
<div id="app"></div>
<script src="index.js" type="text/javascript" charset="utf-8"></script>
</body>
</html>

@ -0,0 +1,655 @@
.tippy-touch {
cursor: pointer !important;
}
.tippy-notransition {
transition: none !important;
}
.tippy-popper {
max-width: 400px;
-webkit-perspective: 800px;
perspective: 800px;
z-index: 9999;
outline: 0;
transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
pointer-events: none;
}
.tippy-popper.html-template {
max-width: 96%;
max-width: calc(100% - 20px);
}
.tippy-popper[x-placement^='top'] [x-arrow] {
border-top: 7px solid #333;
border-right: 7px solid transparent;
border-left: 7px solid transparent;
bottom: -7px;
margin: 0 9px;
}
.tippy-popper[x-placement^='top'] [x-arrow].arrow-small {
border-top: 5px solid #333;
border-right: 5px solid transparent;
border-left: 5px solid transparent;
bottom: -5px;
}
.tippy-popper[x-placement^='top'] [x-arrow].arrow-big {
border-top: 10px solid #333;
border-right: 10px solid transparent;
border-left: 10px solid transparent;
bottom: -10px;
}
.tippy-popper[x-placement^='top'] [x-circle] {
-webkit-transform-origin: 0 33%;
transform-origin: 0 33%;
}
.tippy-popper[x-placement^='top'] [x-circle].enter {
-webkit-transform: scale(1) translate(-50%, -55%);
transform: scale(1) translate(-50%, -55%);
opacity: 1;
}
.tippy-popper[x-placement^='top'] [x-circle].leave {
-webkit-transform: scale(0.15) translate(-50%, -50%);
transform: scale(0.15) translate(-50%, -50%);
opacity: 0;
}
.tippy-popper[x-placement^='top'] .tippy-tooltip.light-theme [x-circle] {
background-color: #fff;
}
.tippy-popper[x-placement^='top'] .tippy-tooltip.light-theme [x-arrow] {
border-top: 7px solid #fff;
border-right: 7px solid transparent;
border-left: 7px solid transparent;
}
.tippy-popper[x-placement^='top'] .tippy-tooltip.light-theme [x-arrow].arrow-small {
border-top: 5px solid #fff;
border-right: 5px solid transparent;
border-left: 5px solid transparent;
}
.tippy-popper[x-placement^='top'] .tippy-tooltip.light-theme [x-arrow].arrow-big {
border-top: 10px solid #fff;
border-right: 10px solid transparent;
border-left: 10px solid transparent;
}
.tippy-popper[x-placement^='top'] .tippy-tooltip.transparent-theme [x-circle] {
background-color: rgba(0, 0, 0, 0.7);
}
.tippy-popper[x-placement^='top'] .tippy-tooltip.transparent-theme [x-arrow] {
border-top: 7px solid rgba(0, 0, 0, 0.7);
border-right: 7px solid transparent;
border-left: 7px solid transparent;
}
.tippy-popper[x-placement^='top'] .tippy-tooltip.transparent-theme [x-arrow].arrow-small {
border-top: 5px solid rgba(0, 0, 0, 0.7);
border-right: 5px solid transparent;
border-left: 5px solid transparent;
}
.tippy-popper[x-placement^='top'] .tippy-tooltip.transparent-theme [x-arrow].arrow-big {
border-top: 10px solid rgba(0, 0, 0, 0.7);
border-right: 10px solid transparent;
border-left: 10px solid transparent;
}
.tippy-popper[x-placement^='top'] [data-animation='perspective'] {
-webkit-transform-origin: bottom;
transform-origin: bottom;
}
.tippy-popper[x-placement^='top'] [data-animation='perspective'].enter {
opacity: 1;
-webkit-transform: translateY(-10px) rotateX(0);
transform: translateY(-10px) rotateX(0);
}
.tippy-popper[x-placement^='top'] [data-animation='perspective'].leave {
opacity: 0;
-webkit-transform: translateY(0) rotateX(90deg);
transform: translateY(0) rotateX(90deg);
}
.tippy-popper[x-placement^='top'] [data-animation='fade'].enter {
opacity: 1;
-webkit-transform: translateY(-10px);
transform: translateY(-10px);
}
.tippy-popper[x-placement^='top'] [data-animation='fade'].leave {
opacity: 0;
-webkit-transform: translateY(-10px);
transform: translateY(-10px);
}
.tippy-popper[x-placement^='top'] [data-animation='shift'].enter {
opacity: 1;
-webkit-transform: translateY(-10px);
transform: translateY(-10px);
}
.tippy-popper[x-placement^='top'] [data-animation='shift'].leave {
opacity: 0;
-webkit-transform: translateY(0);
transform: translateY(0);
}
.tippy-popper[x-placement^='top'] [data-animation='scale'].enter {
opacity: 1;
-webkit-transform: translateY(-10px) scale(1);
transform: translateY(-10px) scale(1);
}
.tippy-popper[x-placement^='top'] [data-animation='scale'].leave {
opacity: 0;
-webkit-transform: translateY(0) scale(0);
transform: translateY(0) scale(0);
}
.tippy-popper[x-placement^='bottom'] [x-arrow] {
border-bottom: 7px solid #333;
border-right: 7px solid transparent;
border-left: 7px solid transparent;
top: -7px;
margin: 0 9px;
}
.tippy-popper[x-placement^='bottom'] [x-arrow].arrow-small {
border-bottom: 5px solid #333;
border-right: 5px solid transparent;
border-left: 5px solid transparent;
top: -5px;
}
.tippy-popper[x-placement^='bottom'] [x-arrow].arrow-big {
border-bottom: 10px solid #333;
border-right: 10px solid transparent;
border-left: 10px solid transparent;
top: -10px;
}
.tippy-popper[x-placement^='bottom'] [x-circle] {
-webkit-transform-origin: 0 -50%;
transform-origin: 0 -50%;
}
.tippy-popper[x-placement^='bottom'] [x-circle].enter {
-webkit-transform: scale(1) translate(-50%, -45%);
transform: scale(1) translate(-50%, -45%);
opacity: 1;
}
.tippy-popper[x-placement^='bottom'] [x-circle].leave {
-webkit-transform: scale(0.15) translate(-50%, -5%);
transform: scale(0.15) translate(-50%, -5%);
opacity: 0;
}
.tippy-popper[x-placement^='bottom'] .tippy-tooltip.light-theme [x-circle] {
background-color: #fff;
}
.tippy-popper[x-placement^='bottom'] .tippy-tooltip.light-theme [x-arrow] {
border-bottom: 7px solid #fff;
border-right: 7px solid transparent;
border-left: 7px solid transparent;
}
.tippy-popper[x-placement^='bottom'] .tippy-tooltip.light-theme [x-arrow].arrow-small {
border-bottom: 5px solid #fff;
border-right: 5px solid transparent;
border-left: 5px solid transparent;
}
.tippy-popper[x-placement^='bottom'] .tippy-tooltip.light-theme [x-arrow].arrow-big {
border-bottom: 10px solid #fff;
border-right: 10px solid transparent;
border-left: 10px solid transparent;
}
.tippy-popper[x-placement^='bottom'] .tippy-tooltip.transparent-theme [x-circle] {
background-color: rgba(0, 0, 0, 0.7);
}
.tippy-popper[x-placement^='bottom'] .tippy-tooltip.transparent-theme [x-arrow] {
border-bottom: 7px solid rgba(0, 0, 0, 0.7);
border-right: 7px solid transparent;
border-left: 7px solid transparent;
}
.tippy-popper[x-placement^='bottom'] .tippy-tooltip.transparent-theme [x-arrow].arrow-small {
border-bottom: 5px solid rgba(0, 0, 0, 0.7);
border-right: 5px solid transparent;
border-left: 5px solid transparent;
}
.tippy-popper[x-placement^='bottom'] .tippy-tooltip.transparent-theme [x-arrow].arrow-big {
border-bottom: 10px solid rgba(0, 0, 0, 0.7);
border-right: 10px solid transparent;
border-left: 10px solid transparent;
}
.tippy-popper[x-placement^='bottom'] [data-animation='perspective'] {
-webkit-transform-origin: top;
transform-origin: top;
}
.tippy-popper[x-placement^='bottom'] [data-animation='perspective'].enter {
opacity: 1;
-webkit-transform: translateY(10px) rotateX(0);
transform: translateY(10px) rotateX(0);
}
.tippy-popper[x-placement^='bottom'] [data-animation='perspective'].leave {
opacity: 0;
-webkit-transform: translateY(0) rotateX(-90deg);
transform: translateY(0) rotateX(-90deg);
}
.tippy-popper[x-placement^='bottom'] [data-animation='fade'].enter {
opacity: 1;
-webkit-transform: translateY(10px);
transform: translateY(10px);
}
.tippy-popper[x-placement^='bottom'] [data-animation='fade'].leave {
opacity: 0;
-webkit-transform: translateY(10px);
transform: translateY(10px);
}
.tippy-popper[x-placement^='bottom'] [data-animation='shift'].enter {
opacity: 1;
-webkit-transform: translateY(10px);
transform: translateY(10px);
}
.tippy-popper[x-placement^='bottom'] [data-animation='shift'].leave {
opacity: 0;
-webkit-transform: translateY(0);
transform: translateY(0);
}
.tippy-popper[x-placement^='bottom'] [data-animation='scale'].enter {
opacity: 1;
-webkit-transform: translateY(10px) scale(1);
transform: translateY(10px) scale(1);
}
.tippy-popper[x-placement^='bottom'] [data-animation='scale'].leave {
opacity: 0;
-webkit-transform: translateY(0) scale(0);
transform: translateY(0) scale(0);
}
.tippy-popper[x-placement^='left'] [x-arrow] {
border-left: 7px solid #333;
border-top: 7px solid transparent;
border-bottom: 7px solid transparent;
right: -7px;
margin: 6px 0;
}
.tippy-popper[x-placement^='left'] [x-arrow].arrow-small {
border-left: 5px solid #333;
border-top: 5px solid transparent;
border-bottom: 5px solid transparent;
right: -5px;
}
.tippy-popper[x-placement^='left'] [x-arrow].arrow-big {
border-left: 10px solid #333;
border-top: 10px solid transparent;
border-bottom: 10px solid transparent;
right: -10px;
}
.tippy-popper[x-placement^='left'] [x-circle] {
-webkit-transform-origin: 50% 0;
transform-origin: 50% 0;
}
.tippy-popper[x-placement^='left'] [x-circle].enter {
-webkit-transform: scale(1) translate(-50%, -50%);
transform: scale(1) translate(-50%, -50%);
opacity: 1;
}
.tippy-popper[x-placement^='left'] [x-circle].leave {
-webkit-transform: scale(0.15) translate(-50%, -50%);
transform: scale(0.15) translate(-50%, -50%);
opacity: 0;
}
.tippy-popper[x-placement^='left'] .tippy-tooltip.light-theme [x-circle] {
background-color: #fff;
}
.tippy-popper[x-placement^='left'] .tippy-tooltip.light-theme [x-arrow] {
border-left: 7px solid #fff;
border-top: 7px solid transparent;
border-bottom: 7px solid transparent;
}
.tippy-popper[x-placement^='left'] .tippy-tooltip.light-theme [x-arrow].arrow-small {
border-left: 5px solid #fff;
border-top: 5px solid transparent;
border-bottom: 5px solid transparent;
}
.tippy-popper[x-placement^='left'] .tippy-tooltip.light-theme [x-arrow].arrow-big {
border-left: 10px solid #fff;
border-top: 10px solid transparent;
border-bottom: 10px solid transparent;
}
.tippy-popper[x-placement^='left'] .tippy-tooltip.transparent-theme [x-circle] {
background-color: rgba(0, 0, 0, 0.7);
}
.tippy-popper[x-placement^='left'] .tippy-tooltip.transparent-theme [x-arrow] {
border-left: 7px solid rgba(0, 0, 0, 0.7);
border-top: 7px solid transparent;
border-bottom: 7px solid transparent;
}
.tippy-popper[x-placement^='left'] .tippy-tooltip.transparent-theme [x-arrow].arrow-small {
border-left: 5px solid rgba(0, 0, 0, 0.7);
border-top: 5px solid transparent;
border-bottom: 5px solid transparent;
}
.tippy-popper[x-placement^='left'] .tippy-tooltip.transparent-theme [x-arrow].arrow-big {
border-left: 10px solid rgba(0, 0, 0, 0.7);
border-top: 10px solid transparent;
border-bottom: 10px solid transparent;
}
.tippy-popper[x-placement^='left'] [data-animation='perspective'] {
-webkit-transform-origin: right;
transform-origin: right;
}
.tippy-popper[x-placement^='left'] [data-animation='perspective'].enter {
opacity: 1;
-webkit-transform: translateX(-10px) rotateY(0);
transform: translateX(-10px) rotateY(0);
}
.tippy-popper[x-placement^='left'] [data-animation='perspective'].leave {
opacity: 0;
-webkit-transform: translateX(0) rotateY(-90deg);
transform: translateX(0) rotateY(-90deg);
}
.tippy-popper[x-placement^='left'] [data-animation='fade'].enter {
opacity: 1;
-webkit-transform: translateX(-10px);
transform: translateX(-10px);
}
.tippy-popper[x-placement^='left'] [data-animation='fade'].leave {
opacity: 0;
-webkit-transform: translateX(-10px);
transform: translateX(-10px);
}
.tippy-popper[x-placement^='left'] [data-animation='shift'].enter {
opacity: 1;
-webkit-transform: translateX(-10px);
transform: translateX(-10px);
}
.tippy-popper[x-placement^='left'] [data-animation='shift'].leave {
opacity: 0;
-webkit-transform: translateX(0);
transform: translateX(0);
}
.tippy-popper[x-placement^='left'] [data-animation='scale'].enter {
opacity: 1;
-webkit-transform: translateX(-10px) scale(1);
transform: translateX(-10px) scale(1);
}
.tippy-popper[x-placement^='left'] [data-animation='scale'].leave {
opacity: 0;
-webkit-transform: translateX(0) scale(0);
transform: translateX(0) scale(0);
}
.tippy-popper[x-placement^='right'] [x-arrow] {
border-right: 7px solid #333;
border-top: 7px solid transparent;
border-bottom: 7px solid transparent;
left: -7px;
margin: 6px 0;
}
.tippy-popper[x-placement^='right'] [x-arrow].arrow-small {
border-right: 5px solid #333;
border-top: 5px solid transparent;
border-bottom: 5px solid transparent;
left: -5px;
}
.tippy-popper[x-placement^='right'] [x-arrow].arrow-big {
border-right: 10px solid #333;
border-top: 10px solid transparent;
border-bottom: 10px solid transparent;
left: -10px;
}
.tippy-popper[x-placement^='right'] [x-circle] {
-webkit-transform-origin: -50% 0;
transform-origin: -50% 0;
}
.tippy-popper[x-placement^='right'] [x-circle].enter {
-webkit-transform: scale(1) translate(-50%, -50%);
transform: scale(1) translate(-50%, -50%);
opacity: 1;
}
.tippy-popper[x-placement^='right'] [x-circle].leave {
-webkit-transform: scale(0.15) translate(-50%, -50%);
transform: scale(0.15) translate(-50%, -50%);
opacity: 0;
}
.tippy-popper[x-placement^='right'] .tippy-tooltip.light-theme [x-circle] {
background-color: #fff;
}
.tippy-popper[x-placement^='right'] .tippy-tooltip.light-theme [x-arrow] {
border-right: 7px solid #fff;
border-top: 7px solid transparent;
border-bottom: 7px solid transparent;
}
.tippy-popper[x-placement^='right'] .tippy-tooltip.light-theme [x-arrow].arrow-small {
border-right: 5px solid #fff;
border-top: 5px solid transparent;
border-bottom: 5px solid transparent;
}
.tippy-popper[x-placement^='right'] .tippy-tooltip.light-theme [x-arrow].arrow-big {
border-right: 10px solid #fff;
border-top: 10px solid transparent;
border-bottom: 10px solid transparent;
}
.tippy-popper[x-placement^='right'] .tippy-tooltip.transparent-theme [x-circle] {
background-color: rgba(0, 0, 0, 0.7);
}
.tippy-popper[x-placement^='right'] .tippy-tooltip.transparent-theme [x-arrow] {
border-right: 7px solid rgba(0, 0, 0, 0.7);
border-top: 7px solid transparent;
border-bottom: 7px solid transparent;
}
.tippy-popper[x-placement^='right'] .tippy-tooltip.transparent-theme [x-arrow].arrow-small {
border-right: 5px solid rgba(0, 0, 0, 0.7);
border-top: 5px solid transparent;
border-bottom: 5px solid transparent;
}
.tippy-popper[x-placement^='right'] .tippy-tooltip.transparent-theme [x-arrow].arrow-big {
border-right: 10px solid rgba(0, 0, 0, 0.7);
border-top: 10px solid transparent;
border-bottom: 10px solid transparent;
}
.tippy-popper[x-placement^='right'] [data-animation='perspective'] {
-webkit-transform-origin: left;
transform-origin: left;
}
.tippy-popper[x-placement^='right'] [data-animation='perspective'].enter {
opacity: 1;
-webkit-transform: translateX(10px) rotateY(0);
transform: translateX(10px) rotateY(0);
}
.tippy-popper[x-placement^='right'] [data-animation='perspective'].leave {
opacity: 0;
-webkit-transform: translateX(0) rotateY(90deg);
transform: translateX(0) rotateY(90deg);
}
.tippy-popper[x-placement^='right'] [data-animation='fade'].enter {
opacity: 1;
-webkit-transform: translateX(10px);
transform: translateX(10px);
}
.tippy-popper[x-placement^='right'] [data-animation='fade'].leave {
opacity: 0;
-webkit-transform: translateX(10px);
transform: translateX(10px);
}
.tippy-popper[x-placement^='right'] [data-animation='shift'].enter {
opacity: 1;
-webkit-transform: translateX(10px);
transform: translateX(10px);
}
.tippy-popper[x-placement^='right'] [data-animation='shift'].leave {
opacity: 0;
-webkit-transform: translateX(0);
transform: translateX(0);
}
.tippy-popper[x-placement^='right'] [data-animation='scale'].enter {
opacity: 1;
-webkit-transform: translateX(10px) scale(1);
transform: translateX(10px) scale(1);
}
.tippy-popper[x-placement^='right'] [data-animation='scale'].leave {
opacity: 0;
-webkit-transform: translateX(0) scale(0);
transform: translateX(0) scale(0);
}
.tippy-popper .tippy-tooltip.transparent-theme {
background-color: rgba(0, 0, 0, 0.7);
}
.tippy-popper .tippy-tooltip.transparent-theme[data-animatefill] {
background-color: transparent;
}
.tippy-popper .tippy-tooltip.light-theme {
color: #26323d;
box-shadow:
0 4px 20px 4px rgba(0, 20, 60, 0.1),
0 4px 80px -8px rgba(0, 20, 60, 0.2);
background-color: #fff;
}
.tippy-popper .tippy-tooltip.light-theme[data-animatefill] {
background-color: transparent;
}
.tippy-tooltip {
position: relative;
color: #fff;
border-radius: 4px;
font-size: 0.95rem;
padding: 0.4rem 0.8rem;
text-align: center;
will-change: transform;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background-color: #333;
}
.tippy-tooltip--small {
padding: 0.25rem 0.5rem;
font-size: 0.8rem;
}
.tippy-tooltip--big {
padding: 0.6rem 1.2rem;
font-size: 1.2rem;
}
.tippy-tooltip[data-animatefill] {
overflow: hidden;
background-color: transparent;
}
.tippy-tooltip[data-interactive] {
pointer-events: auto;
}
.tippy-tooltip[data-inertia] {
transition-timing-function: cubic-bezier(0.53, 2, 0.36, 0.85);
}
.tippy-tooltip [x-arrow] {
position: absolute;
width: 0;
height: 0;
}
.tippy-tooltip [x-circle] {
position: absolute;
will-change: transform;
background-color: #333;
border-radius: 50%;
width: 130%;
width: calc(110% + 2rem);
left: 50%;
top: 50%;
z-index: -1;
overflow: hidden;
transition: all ease;
}
.tippy-tooltip [x-circle]::before {
content: '';
padding-top: 90%;
float: left;
}
@media (max-width: 450px) {
.tippy-popper {
max-width: 96%;
max-width: calc(100% - 20px);
}
}

@ -209,7 +209,6 @@
"setTimeout": true
},
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>async-iterator-all": true,
"3box>ipfs>async-iterator-to-pull-stream": true,
"3box>ipfs>async-iterator-to-stream": true,
@ -288,7 +287,8 @@
"browserify>events": true,
"browserify>insert-module-globals>is-buffer": true,
"browserify>timers-browserify": true,
"eslint>debug": true
"gh-pages>async": true,
"madge>debug": true
}
},
"3box>ipfs-mini": {
@ -305,17 +305,6 @@
"nanoid": true
}
},
"3box>ipfs>async": {
"globals": {
"clearTimeout": true,
"setTimeout": true
},
"packages": {
"browserify>process": true,
"browserify>timers-browserify": true,
"lodash": true
}
},
"3box>ipfs>async-iterator-to-pull-stream": {
"packages": {
"3box>ipfs>async-iterator-to-pull-stream>get-iterator": true,
@ -385,11 +374,11 @@
},
"3box>ipfs>datastore-core": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>datastore-core>pull-many": true,
"3box>ipfs>interface-datastore": true,
"3box>ipfs>pull-stream": true,
"browserify>buffer": true
"browserify>buffer": true,
"gh-pages>async": true
}
},
"3box>ipfs>datastore-pubsub": {
@ -399,7 +388,7 @@
"3box>ipfs>multibase": true,
"browserify>assert": true,
"browserify>buffer": true,
"eslint>debug": true
"madge>debug": true
}
},
"3box>ipfs>dlv": {
@ -421,7 +410,6 @@
},
"3box>ipfs>interface-datastore": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>class-is": true,
"3box>ipfs>err-code": true,
"3box>ipfs>interface-datastore>uuid": true,
@ -429,7 +417,8 @@
"3box>ipfs>pull-stream": true,
"browserify>buffer": true,
"browserify>os-browserify": true,
"browserify>path-browserify": true
"browserify>path-browserify": true,
"gh-pages>async": true
}
},
"3box>ipfs>interface-datastore>uuid": {
@ -446,7 +435,6 @@
"setTimeout": true
},
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>cids": true,
"3box>ipfs>ipfs-bitswap>bignumber.js": true,
"3box>ipfs>ipfs-bitswap>just-debounce-it": true,
@ -461,7 +449,8 @@
"3box>ipfs>pull-stream": true,
"browserify>assert": true,
"browserify>events": true,
"eslint>debug": true
"gh-pages>async": true,
"madge>debug": true
}
},
"3box>ipfs>ipfs-bitswap>bignumber.js": {
@ -506,7 +495,7 @@
},
"3box>ipfs>ipfs-block-service": {
"packages": {
"3box>ipfs>async": true
"gh-pages>async": true
}
},
"3box>ipfs>ipfs-mfs": {
@ -531,7 +520,7 @@
"browserify>assert": true,
"browserify>browser-resolve": true,
"browserify>buffer": true,
"eslint>debug": true
"madge>debug": true
}
},
"3box>ipfs>ipfs-mfs>hamt-sharding": {
@ -562,7 +551,6 @@
},
"3box>ipfs>ipfs-repo": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>base32.js": true,
"3box>ipfs>cids": true,
"3box>ipfs>datastore-core": true,
@ -578,7 +566,8 @@
"browserify>buffer": true,
"browserify>path-browserify": true,
"browserify>timers-browserify": true,
"eslint>debug": true
"gh-pages>async": true,
"madge>debug": true
}
},
"3box>ipfs>ipfs-repo>bignumber.js": {
@ -699,7 +688,7 @@
"3box>ipfs>multihashes": true,
"3box>ipfs>superstruct": true,
"browserify>buffer": true,
"rc>deep-extend": true
"madge>rc>deep-extend": true
}
},
"3box>ipfs>ipfs-unixfs-importer>rabin-wasm": {
@ -822,7 +811,7 @@
"3box>ipfs>protons": true,
"base32-encode": true,
"browserify>buffer": true,
"eslint>debug": true
"madge>debug": true
}
},
"3box>ipfs>is-ipfs": {
@ -845,7 +834,6 @@
},
"3box>ipfs>libp2p": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>err-code": true,
"3box>ipfs>fsm-event": true,
"3box>ipfs>libp2p-websockets": true,
@ -861,7 +849,8 @@
"browserify>events": true,
"browserify>insert-module-globals>is-buffer": true,
"browserify>process": true,
"eslint>debug": true,
"gh-pages>async": true,
"madge>debug": true,
"pump>once": true
}
},
@ -871,13 +860,13 @@
"setInterval": true
},
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>mafmt": true,
"3box>ipfs>multiaddr": true,
"3box>ipfs>peer-id": true,
"3box>ipfs>peer-info": true,
"browserify>events": true,
"eslint>debug": true
"gh-pages>async": true,
"madge>debug": true
}
},
"3box>ipfs>libp2p-crypto": {
@ -886,7 +875,6 @@
"msCrypto": true
},
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>bs58": true,
"3box>ipfs>libp2p-crypto>asn1.js": true,
"3box>ipfs>libp2p-crypto>iso-random-stream": true,
@ -896,6 +884,7 @@
"3box>tweetnacl": true,
"browserify>buffer": true,
"ethereumjs-util>ethereum-cryptography>browserify-aes": true,
"gh-pages>async": true,
"mockttp>node-forge": true
}
},
@ -918,10 +907,10 @@
},
"3box>ipfs>libp2p-crypto>libp2p-crypto-secp256k1": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>bs58": true,
"3box>ipfs>libp2p-crypto>libp2p-crypto-secp256k1>multihashing-async": true,
"eth-trezor-keyring>hdkey>secp256k1": true
"eth-trezor-keyring>hdkey>secp256k1": true,
"gh-pages>async": true
}
},
"3box>ipfs>libp2p-crypto>libp2p-crypto-secp256k1>multihashing-async": {
@ -962,7 +951,6 @@
"setTimeout": true
},
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>base32.js": true,
"3box>ipfs>cids": true,
"3box>ipfs>err-code": true,
@ -990,7 +978,8 @@
"browserify>buffer": true,
"browserify>events": true,
"browserify>insert-module-globals>is-buffer": true,
"eslint>debug": true,
"gh-pages>async": true,
"madge>debug": true,
"promise-to-callback": true
}
},
@ -1045,7 +1034,6 @@
"setTimeout": true
},
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>err-code": true,
"3box>ipfs>interface-datastore": true,
"3box>ipfs>libp2p-crypto": true,
@ -1053,6 +1041,7 @@
"3box>ipfs>merge-options": true,
"3box>ipfs>pull-stream": true,
"browserify>buffer": true,
"gh-pages>async": true,
"mockttp>node-forge": true
}
},
@ -1068,14 +1057,14 @@
},
"3box>ipfs>libp2p-record": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>err-code": true,
"3box>ipfs>libp2p-record>buffer-split": true,
"3box>ipfs>libp2p-record>multihashing-async": true,
"3box>ipfs>protons": true,
"browserify>assert": true,
"browserify>buffer": true,
"browserify>insert-module-globals>is-buffer": true
"browserify>insert-module-globals>is-buffer": true,
"gh-pages>async": true
}
},
"3box>ipfs>libp2p-record>buffer-split": {
@ -1100,7 +1089,6 @@
},
"3box>ipfs>libp2p-secio": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>libp2p-crypto": true,
"3box>ipfs>libp2p-secio>multihashing-async": true,
"3box>ipfs>libp2p-secio>pull-handshake": true,
@ -1113,7 +1101,8 @@
"3box>ipfs>pull-stream": true,
"browserify>assert": true,
"browserify>buffer": true,
"eslint>debug": true,
"gh-pages>async": true,
"madge>debug": true,
"pump>once": true
}
},
@ -1160,7 +1149,6 @@
},
"3box>ipfs>libp2p-webrtc-star": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>class-is": true,
"3box>ipfs>libp2p-webrtc-star>simple-peer": true,
"3box>ipfs>libp2p-webrtc-star>socket.io-client": true,
@ -1172,7 +1160,8 @@
"3box>ipfs>pull-mplex>interface-connection": true,
"3box>ipfs>stream-to-pull-stream": true,
"browserify>events": true,
"eslint>debug": true,
"gh-pages>async": true,
"madge>debug": true,
"pump>once": true
}
},
@ -1187,8 +1176,8 @@
"3box>ipfs>libp2p-webrtc-star>simple-peer>get-browser-rtc": true,
"3box>ipfs>libp2p-webrtc-star>simple-peer>readable-stream": true,
"browserify>buffer": true,
"eslint>debug": true,
"ethereumjs-wallet>randombytes": true,
"madge>debug": true,
"pumpify>inherits": true
}
},
@ -1383,12 +1372,12 @@
"setTimeout": true
},
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>libp2p-websocket-star-multi>libp2p-websocket-star": true,
"3box>ipfs>mafmt": true,
"3box>ipfs>multiaddr": true,
"browserify>events": true,
"eslint>debug": true,
"gh-pages>async": true,
"madge>debug": true,
"pump>once": true
}
},
@ -1397,7 +1386,6 @@
"console.error": true
},
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>class-is": true,
"3box>ipfs>libp2p-crypto": true,
"3box>ipfs>libp2p-webrtc-star>socket.io-client": true,
@ -1410,7 +1398,8 @@
"3box>ipfs>pull-stream": true,
"browserify>buffer": true,
"browserify>events": true,
"eslint>debug": true,
"gh-pages>async": true,
"madge>debug": true,
"pump>once": true,
"uuid": true
}
@ -1460,7 +1449,7 @@
"3box>ipfs>multiaddr-to-uri": true,
"3box>ipfs>pull-mplex>interface-connection": true,
"browserify>os-browserify": true,
"eslint>debug": true
"madge>debug": true
}
},
"3box>ipfs>libp2p-websockets>pull-ws": {
@ -1489,7 +1478,7 @@
"packages": {
"3box>ipfs>libp2p>libp2p-connection-manager>latency-monitor": true,
"browserify>events": true,
"eslint>debug": true
"madge>debug": true
}
},
"3box>ipfs>libp2p>libp2p-connection-manager>latency-monitor": {
@ -1524,17 +1513,16 @@
},
"3box>ipfs>libp2p>libp2p-floodsub": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>libp2p-secio>pull-length-prefixed": true,
"3box>ipfs>libp2p>libp2p-floodsub>libp2p-pubsub": true,
"3box>ipfs>pull-stream": true,
"browserify>assert": true,
"eslint>debug": true
"gh-pages>async": true,
"madge>debug": true
}
},
"3box>ipfs>libp2p>libp2p-floodsub>libp2p-pubsub": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>bs58": true,
"3box>ipfs>err-code": true,
"3box>ipfs>libp2p-crypto": true,
@ -1546,7 +1534,8 @@
"browserify>buffer": true,
"browserify>events": true,
"browserify>insert-module-globals>is-buffer": true,
"eslint>debug": true
"gh-pages>async": true,
"madge>debug": true
}
},
"3box>ipfs>libp2p>libp2p-floodsub>libp2p-pubsub>time-cache": {
@ -1566,12 +1555,11 @@
"3box>ipfs>libp2p-secio>pull-handshake": true,
"3box>ipfs>pull-stream": true,
"browserify>events": true,
"eslint>debug": true
"madge>debug": true
}
},
"3box>ipfs>libp2p>libp2p-switch": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>class-is": true,
"3box>ipfs>err-code": true,
"3box>ipfs>fsm-event": true,
@ -1589,7 +1577,8 @@
"3box>ipfs>pull-stream": true,
"browserify>assert": true,
"browserify>events": true,
"eslint>debug": true,
"gh-pages>async": true,
"madge>debug": true,
"pump>once": true
}
},
@ -1601,7 +1590,6 @@
},
"3box>ipfs>libp2p>libp2p-switch>libp2p-circuit": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>libp2p-secio>pull-handshake": true,
"3box>ipfs>libp2p-secio>pull-length-prefixed": true,
"3box>ipfs>mafmt": true,
@ -1612,7 +1600,8 @@
"3box>ipfs>pull-mplex>interface-connection": true,
"3box>ipfs>pull-stream": true,
"browserify>events": true,
"eslint>debug": true,
"gh-pages>async": true,
"madge>debug": true,
"pump>once": true
}
},
@ -1632,7 +1621,6 @@
},
"3box>ipfs>libp2p>libp2p-switch>multistream-select": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>err-code": true,
"3box>ipfs>libp2p-secio>pull-handshake": true,
"3box>ipfs>libp2p-secio>pull-length-prefixed": true,
@ -1642,7 +1630,8 @@
"3box>ipfs>varint": true,
"browserify>assert": true,
"browserify>buffer": true,
"eslint>debug": true,
"gh-pages>async": true,
"madge>debug": true,
"pump>once": true
}
},
@ -1774,12 +1763,12 @@
},
"3box>ipfs>peer-id": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>class-is": true,
"3box>ipfs>libp2p-crypto": true,
"3box>ipfs>multihashes": true,
"browserify>assert": true,
"browserify>buffer": true
"browserify>buffer": true,
"gh-pages>async": true
}
},
"3box>ipfs>peer-info": {
@ -1807,7 +1796,6 @@
},
"3box>ipfs>pull-mplex": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>pull-abortable": true,
"3box>ipfs>pull-mplex>interface-connection": true,
"3box>ipfs>pull-mplex>looper": true,
@ -1817,7 +1805,8 @@
"3box>ipfs>varint": true,
"browserify>buffer": true,
"browserify>events": true,
"eslint>debug": true
"gh-pages>async": true,
"madge>debug": true
}
},
"3box>ipfs>pull-mplex>interface-connection": {
@ -2823,7 +2812,6 @@
"setTimeout": true
},
"packages": {
"3box>ipfs>async": true,
"@ethereumjs/tx": true,
"@metamask/controllers>web3-provider-engine>backoff": true,
"@metamask/controllers>web3-provider-engine>eth-block-tracker": true,
@ -2837,6 +2825,7 @@
"browserify>util": true,
"eth-json-rpc-filters": true,
"eth-json-rpc-infura": true,
"gh-pages>async": true,
"lavamoat>json-stable-stringify": true,
"watchify>xtend": true
}
@ -3167,75 +3156,6 @@
"watchify>xtend": true
}
},
"@metamask/providers>@metamask/object-multiplex": {
"globals": {
"console.warn": true
},
"packages": {
"end-of-stream": true,
"pump>once": true,
"readable-stream": true
}
},
"@metamask/rpc-methods": {
"packages": {
"@metamask/controllers": true,
"@metamask/rpc-methods>@metamask/key-tree": true,
"@metamask/rpc-methods>@metamask/utils": true,
"@metamask/snap-controllers": true,
"eth-rpc-errors": true
}
},
"@metamask/rpc-methods>@metamask/key-tree": {
"packages": {
"@metamask/rpc-methods>@metamask/key-tree>@noble/ed25519": true,
"@metamask/rpc-methods>@metamask/key-tree>@noble/hashes": true,
"@metamask/rpc-methods>@metamask/key-tree>@noble/secp256k1": true,
"@metamask/rpc-methods>@metamask/key-tree>@scure/base": true,
"@metamask/rpc-methods>@metamask/key-tree>@scure/bip39": true,
"browserify>buffer": true
}
},
"@metamask/rpc-methods>@metamask/key-tree>@noble/ed25519": {
"globals": {
"crypto": true
},
"packages": {
"browserify>browser-resolve": true
}
},
"@metamask/rpc-methods>@metamask/key-tree>@noble/hashes": {
"globals": {
"TextEncoder": true,
"crypto": true,
"setTimeout": true
}
},
"@metamask/rpc-methods>@metamask/key-tree>@noble/secp256k1": {
"globals": {
"crypto": true
},
"packages": {
"browserify>browser-resolve": true
}
},
"@metamask/rpc-methods>@metamask/key-tree>@scure/base": {
"globals": {
"TextDecoder": true,
"TextEncoder": true
}
},
"@metamask/rpc-methods>@metamask/key-tree>@scure/bip39": {
"packages": {
"@metamask/rpc-methods>@metamask/key-tree>@noble/hashes": true,
"@metamask/rpc-methods>@metamask/key-tree>@scure/base": true
}
},
"@metamask/rpc-methods>@metamask/utils": {
"packages": {
"eslint>fast-deep-equal": true
}
},
"@metamask/smart-transactions-controller": {
"globals": {
"URLSearchParams": true,
@ -3273,329 +3193,11 @@
"setTimeout": true
}
},
"@metamask/snap-controllers": {
"globals": {
"URL": true,
"clearTimeout": true,
"console.error": true,
"console.info": true,
"console.log": true,
"console.warn": true,
"document.body.appendChild": true,
"document.createElement": true,
"document.getElementById": true,
"fetch": true,
"setTimeout": true
},
"packages": {
"@metamask/controllers": true,
"@metamask/providers>@metamask/object-multiplex": true,
"@metamask/rpc-methods>@metamask/utils": true,
"@metamask/snap-controllers>@metamask/browser-passworder": true,
"@metamask/snap-controllers>@metamask/execution-environments": true,
"@metamask/snap-controllers>@metamask/obs-store": true,
"@metamask/snap-controllers>@metamask/post-message-stream": true,
"@metamask/snap-controllers>ajv": true,
"@metamask/snap-controllers>concat-stream": true,
"@metamask/snap-controllers>gunzip-maybe": true,
"@metamask/snap-controllers>json-rpc-middleware-stream": true,
"@metamask/snap-controllers>nanoid": true,
"@metamask/snap-controllers>readable-web-to-node-stream": true,
"@metamask/snap-controllers>tar-stream": true,
"browserify>buffer": true,
"browserify>crypto-browserify": true,
"eslint>fast-deep-equal": true,
"eth-rpc-errors": true,
"json-rpc-engine": true,
"json-rpc-engine>@metamask/safe-event-emitter": true,
"pump": true,
"semver": true
}
},
"@metamask/snap-controllers>@metamask/browser-passworder": {
"globals": {
"btoa": true,
"crypto.getRandomValues": true,
"crypto.subtle.decrypt": true,
"crypto.subtle.deriveKey": true,
"crypto.subtle.encrypt": true,
"crypto.subtle.importKey": true
},
"packages": {
"browserify>buffer": true
}
},
"@metamask/snap-controllers>@metamask/obs-store": {
"packages": {
"@metamask/snap-controllers>@metamask/obs-store>through2": true,
"browserify>stream-browserify": true,
"json-rpc-engine>@metamask/safe-event-emitter": true
}
},
"@metamask/snap-controllers>@metamask/obs-store>through2": {
"packages": {
"@metamask/snap-controllers>@metamask/obs-store>through2>readable-stream": true,
"browserify>process": true,
"browserify>util": true,
"watchify>xtend": true
}
},
"@metamask/snap-controllers>@metamask/obs-store>through2>readable-stream": {
"packages": {
"@metamask/snap-controllers>@metamask/obs-store>through2>readable-stream>process-nextick-args": true,
"@metamask/snap-controllers>@metamask/obs-store>through2>readable-stream>string_decoder": true,
"@metamask/snap-controllers>json-rpc-middleware-stream>readable-stream>safe-buffer": true,
"@storybook/api>util-deprecate": true,
"browserify>browser-resolve": true,
"browserify>events": true,
"browserify>process": true,
"browserify>timers-browserify": true,
"pumpify>inherits": true,
"readable-stream>core-util-is": true,
"readable-stream>isarray": true
}
},
"@metamask/snap-controllers>@metamask/obs-store>through2>readable-stream>process-nextick-args": {
"packages": {
"browserify>process": true
}
},
"@metamask/snap-controllers>@metamask/obs-store>through2>readable-stream>string_decoder": {
"packages": {
"@metamask/snap-controllers>json-rpc-middleware-stream>readable-stream>safe-buffer": true
}
},
"@metamask/snap-controllers>@metamask/post-message-stream": {
"globals": {
"WorkerGlobalScope": true,
"addEventListener": true,
"location.origin": true,
"onmessage": "write",
"postMessage": true,
"removeEventListener": true
},
"packages": {
"@metamask/rpc-methods>@metamask/utils": true,
"@metamask/snap-controllers>@metamask/post-message-stream>readable-stream": true
}
},
"@metamask/snap-controllers>@metamask/post-message-stream>readable-stream": {
"packages": {
"@metamask/snap-controllers>@metamask/post-message-stream>readable-stream>string_decoder": true,
"@metamask/snap-controllers>json-rpc-middleware-stream>readable-stream>safe-buffer": true,
"@storybook/api>util-deprecate": true,
"browserify>browser-resolve": true,
"browserify>events": true,
"browserify>process": true,
"browserify>timers-browserify": true,
"pumpify>inherits": true,
"readable-stream>core-util-is": true,
"readable-stream>isarray": true,
"vinyl>cloneable-readable>process-nextick-args": true
}
},
"@metamask/snap-controllers>@metamask/post-message-stream>readable-stream>string_decoder": {
"packages": {
"@metamask/snap-controllers>json-rpc-middleware-stream>readable-stream>safe-buffer": true
}
},
"@metamask/snap-controllers>ajv": {
"packages": {
"eslint>fast-deep-equal": true
}
},
"@metamask/snap-controllers>concat-stream": {
"packages": {
"@metamask/snap-controllers>concat-stream>readable-stream": true,
"browserify>buffer": true,
"pumpify>inherits": true
}
},
"@metamask/snap-controllers>concat-stream>readable-stream": {
"packages": {
"@storybook/api>util-deprecate": true,
"browserify>browser-resolve": true,
"browserify>buffer": true,
"browserify>events": true,
"browserify>process": true,
"browserify>string_decoder": true,
"pumpify>inherits": true
}
},
"@metamask/snap-controllers>gunzip-maybe": {
"packages": {
"@metamask/snap-controllers>gunzip-maybe>browserify-zlib": true,
"@metamask/snap-controllers>gunzip-maybe>is-deflate": true,
"@metamask/snap-controllers>gunzip-maybe>is-gzip": true,
"@metamask/snap-controllers>gunzip-maybe>peek-stream": true,
"@metamask/snap-controllers>gunzip-maybe>pumpify": true,
"@metamask/snap-controllers>gunzip-maybe>through2": true
}
},
"@metamask/snap-controllers>gunzip-maybe>browserify-zlib": {
"packages": {
"@metamask/snap-controllers>gunzip-maybe>browserify-zlib>pako": true,
"browserify>assert": true,
"browserify>buffer": true,
"browserify>process": true,
"browserify>util": true,
"readable-stream": true
}
},
"@metamask/snap-controllers>gunzip-maybe>peek-stream": {
"packages": {
"@metamask/snap-controllers>gunzip-maybe>peek-stream>duplexify": true,
"@metamask/snap-controllers>gunzip-maybe>peek-stream>through2": true,
"browserify>buffer": true,
"terser>source-map-support>buffer-from": true
}
},
"@metamask/snap-controllers>gunzip-maybe>peek-stream>duplexify": {
"packages": {
"browserify>buffer": true,
"browserify>process": true,
"duplexify>stream-shift": true,
"end-of-stream": true,
"pumpify>inherits": true,
"readable-stream": true
}
},
"@metamask/snap-controllers>gunzip-maybe>peek-stream>through2": {
"packages": {
"browserify>process": true,
"browserify>util": true,
"readable-stream": true,
"watchify>xtend": true
}
},
"@metamask/snap-controllers>gunzip-maybe>pumpify": {
"packages": {
"@metamask/snap-controllers>gunzip-maybe>pumpify>duplexify": true,
"@metamask/snap-controllers>gunzip-maybe>pumpify>pump": true,
"pumpify>inherits": true
}
},
"@metamask/snap-controllers>gunzip-maybe>pumpify>duplexify": {
"packages": {
"browserify>buffer": true,
"browserify>process": true,
"duplexify>stream-shift": true,
"end-of-stream": true,
"pumpify>inherits": true,
"readable-stream": true
}
},
"@metamask/snap-controllers>gunzip-maybe>pumpify>pump": {
"packages": {
"browserify>browser-resolve": true,
"end-of-stream": true,
"pump>once": true
}
},
"@metamask/snap-controllers>gunzip-maybe>through2": {
"packages": {
"browserify>process": true,
"browserify>util": true,
"readable-stream": true,
"watchify>xtend": true
}
},
"@metamask/snap-controllers>json-rpc-middleware-stream": {
"globals": {
"setTimeout": true
},
"packages": {
"@metamask/snap-controllers>json-rpc-middleware-stream>readable-stream": true,
"json-rpc-engine>@metamask/safe-event-emitter": true
}
},
"@metamask/snap-controllers>json-rpc-middleware-stream>readable-stream": {
"packages": {
"@metamask/snap-controllers>json-rpc-middleware-stream>readable-stream>process-nextick-args": true,
"@metamask/snap-controllers>json-rpc-middleware-stream>readable-stream>safe-buffer": true,
"@metamask/snap-controllers>json-rpc-middleware-stream>readable-stream>string_decoder": true,
"@storybook/api>util-deprecate": true,
"browserify>browser-resolve": true,
"browserify>events": true,
"browserify>process": true,
"browserify>timers-browserify": true,
"pumpify>inherits": true,
"readable-stream>core-util-is": true,
"readable-stream>isarray": true
}
},
"@metamask/snap-controllers>json-rpc-middleware-stream>readable-stream>process-nextick-args": {
"packages": {
"browserify>process": true
}
},
"@metamask/snap-controllers>json-rpc-middleware-stream>readable-stream>safe-buffer": {
"packages": {
"browserify>buffer": true
}
},
"@metamask/snap-controllers>json-rpc-middleware-stream>readable-stream>string_decoder": {
"packages": {
"@metamask/snap-controllers>json-rpc-middleware-stream>readable-stream>safe-buffer": true
}
},
"@metamask/snap-controllers>nanoid": {
"globals": {
"crypto.getRandomValues": true
}
},
"@metamask/snap-controllers>readable-web-to-node-stream": {
"packages": {
"@metamask/snap-controllers>readable-web-to-node-stream>readable-stream": true
}
},
"@metamask/snap-controllers>readable-web-to-node-stream>readable-stream": {
"packages": {
"@storybook/api>util-deprecate": true,
"browserify>browser-resolve": true,
"browserify>buffer": true,
"browserify>events": true,
"browserify>process": true,
"browserify>string_decoder": true,
"pumpify>inherits": true
}
},
"@metamask/snap-controllers>tar-stream": {
"packages": {
"@metamask/snap-controllers>tar-stream>bl": true,
"@metamask/snap-controllers>tar-stream>fs-constants": true,
"@metamask/snap-controllers>tar-stream>readable-stream": true,
"browserify>buffer": true,
"browserify>process": true,
"browserify>string_decoder": true,
"browserify>util": true,
"end-of-stream": true,
"pumpify>inherits": true
}
},
"@metamask/snap-controllers>tar-stream>bl": {
"packages": {
"@metamask/snap-controllers>tar-stream>readable-stream": true,
"browserify>buffer": true,
"pumpify>inherits": true
}
},
"@metamask/snap-controllers>tar-stream>fs-constants": {
"packages": {
"browserify>constants-browserify": true
}
},
"@metamask/snap-controllers>tar-stream>readable-stream": {
"packages": {
"@storybook/api>util-deprecate": true,
"browserify>browser-resolve": true,
"browserify>buffer": true,
"browserify>events": true,
"browserify>process": true,
"browserify>string_decoder": true,
"pumpify>inherits": true
}
},
"@ngraveio/bc-ur": {
"packages": {
"@ngraveio/bc-ur>@apocentre/alias-sampling": true,
@ -3783,8 +3385,8 @@
"@truffle/codec>web3-utils": true,
"browserify>buffer": true,
"browserify>util": true,
"eslint>debug": true,
"gulp-dart-sass>lodash.clonedeep": true,
"madge>debug": true,
"semver": true
}
},
@ -4007,7 +3609,7 @@
"@truffle/codec>web3-utils": true,
"@truffle/decoder>@truffle/source-map-utils": true,
"@truffle/decoder>bn.js": true,
"eslint>debug": true
"madge>debug": true
}
},
"@truffle/decoder>@truffle/source-map-utils": {
@ -4017,7 +3619,7 @@
"@truffle/decoder>@truffle/source-map-utils>@truffle/code-utils": true,
"@truffle/decoder>@truffle/source-map-utils>json-pointer": true,
"@truffle/decoder>@truffle/source-map-utils>node-interval-tree": true,
"eslint>debug": true
"madge>debug": true
}
},
"@truffle/decoder>@truffle/source-map-utils>@truffle/code-utils": {
@ -4573,19 +4175,6 @@
"string.prototype.matchall>has-symbols": true
}
},
"eslint>debug": {
"globals": {
"console": true,
"document": true,
"localStorage": true,
"navigator": true,
"process": true
},
"packages": {
"browserify>process": true,
"eslint>debug>ms": true
}
},
"eslint>optionator>fast-levenshtein": {
"globals": {
"Intl": true,
@ -5840,6 +5429,17 @@
"define": true
}
},
"gh-pages>async": {
"globals": {
"clearTimeout": true,
"setTimeout": true
},
"packages": {
"browserify>process": true,
"browserify>timers-browserify": true,
"lodash": true
}
},
"globalthis>define-properties": {
"packages": {
"globalthis>define-properties>has-property-descriptors": true,
@ -5929,6 +5529,24 @@
"Intl": true
}
},
"madge>debug": {
"globals": {
"console": true,
"document": true,
"localStorage": true,
"navigator": true,
"process": true
},
"packages": {
"browserify>process": true,
"madge>debug>ms": true
}
},
"madge>rc>deep-extend": {
"packages": {
"browserify>buffer": true
}
},
"mockttp>node-forge": {
"globals": {
"Blob": true,
@ -6082,11 +5700,6 @@
"react": true
}
},
"rc>deep-extend": {
"packages": {
"browserify>buffer": true
}
},
"react": {
"globals": {
"console": true
@ -6581,11 +6194,6 @@
"jsdom>request>is-typedarray": true
}
},
"terser>source-map-support>buffer-from": {
"packages": {
"browserify>buffer": true
}
},
"textarea-caret": {
"globals": {
"document.body.appendChild": true,
@ -6608,11 +6216,6 @@
"browserify>buffer": true
}
},
"vinyl>cloneable-readable>process-nextick-args": {
"packages": {
"browserify>process": true
}
},
"web3": {
"globals": {
"Web3": "write",

@ -209,7 +209,6 @@
"setTimeout": true
},
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>async-iterator-all": true,
"3box>ipfs>async-iterator-to-pull-stream": true,
"3box>ipfs>async-iterator-to-stream": true,
@ -288,7 +287,8 @@
"browserify>events": true,
"browserify>insert-module-globals>is-buffer": true,
"browserify>timers-browserify": true,
"eslint>debug": true
"gh-pages>async": true,
"madge>debug": true
}
},
"3box>ipfs-mini": {
@ -305,17 +305,6 @@
"nanoid": true
}
},
"3box>ipfs>async": {
"globals": {
"clearTimeout": true,
"setTimeout": true
},
"packages": {
"browserify>process": true,
"browserify>timers-browserify": true,
"lodash": true
}
},
"3box>ipfs>async-iterator-to-pull-stream": {
"packages": {
"3box>ipfs>async-iterator-to-pull-stream>get-iterator": true,
@ -385,11 +374,11 @@
},
"3box>ipfs>datastore-core": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>datastore-core>pull-many": true,
"3box>ipfs>interface-datastore": true,
"3box>ipfs>pull-stream": true,
"browserify>buffer": true
"browserify>buffer": true,
"gh-pages>async": true
}
},
"3box>ipfs>datastore-pubsub": {
@ -399,7 +388,7 @@
"3box>ipfs>multibase": true,
"browserify>assert": true,
"browserify>buffer": true,
"eslint>debug": true
"madge>debug": true
}
},
"3box>ipfs>dlv": {
@ -421,7 +410,6 @@
},
"3box>ipfs>interface-datastore": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>class-is": true,
"3box>ipfs>err-code": true,
"3box>ipfs>interface-datastore>uuid": true,
@ -429,7 +417,8 @@
"3box>ipfs>pull-stream": true,
"browserify>buffer": true,
"browserify>os-browserify": true,
"browserify>path-browserify": true
"browserify>path-browserify": true,
"gh-pages>async": true
}
},
"3box>ipfs>interface-datastore>uuid": {
@ -446,7 +435,6 @@
"setTimeout": true
},
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>cids": true,
"3box>ipfs>ipfs-bitswap>bignumber.js": true,
"3box>ipfs>ipfs-bitswap>just-debounce-it": true,
@ -461,7 +449,8 @@
"3box>ipfs>pull-stream": true,
"browserify>assert": true,
"browserify>events": true,
"eslint>debug": true
"gh-pages>async": true,
"madge>debug": true
}
},
"3box>ipfs>ipfs-bitswap>bignumber.js": {
@ -506,7 +495,7 @@
},
"3box>ipfs>ipfs-block-service": {
"packages": {
"3box>ipfs>async": true
"gh-pages>async": true
}
},
"3box>ipfs>ipfs-mfs": {
@ -531,7 +520,7 @@
"browserify>assert": true,
"browserify>browser-resolve": true,
"browserify>buffer": true,
"eslint>debug": true
"madge>debug": true
}
},
"3box>ipfs>ipfs-mfs>hamt-sharding": {
@ -562,7 +551,6 @@
},
"3box>ipfs>ipfs-repo": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>base32.js": true,
"3box>ipfs>cids": true,
"3box>ipfs>datastore-core": true,
@ -578,7 +566,8 @@
"browserify>buffer": true,
"browserify>path-browserify": true,
"browserify>timers-browserify": true,
"eslint>debug": true
"gh-pages>async": true,
"madge>debug": true
}
},
"3box>ipfs>ipfs-repo>bignumber.js": {
@ -699,7 +688,7 @@
"3box>ipfs>multihashes": true,
"3box>ipfs>superstruct": true,
"browserify>buffer": true,
"rc>deep-extend": true
"madge>rc>deep-extend": true
}
},
"3box>ipfs>ipfs-unixfs-importer>rabin-wasm": {
@ -822,7 +811,7 @@
"3box>ipfs>protons": true,
"base32-encode": true,
"browserify>buffer": true,
"eslint>debug": true
"madge>debug": true
}
},
"3box>ipfs>is-ipfs": {
@ -845,7 +834,6 @@
},
"3box>ipfs>libp2p": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>err-code": true,
"3box>ipfs>fsm-event": true,
"3box>ipfs>libp2p-websockets": true,
@ -861,7 +849,8 @@
"browserify>events": true,
"browserify>insert-module-globals>is-buffer": true,
"browserify>process": true,
"eslint>debug": true,
"gh-pages>async": true,
"madge>debug": true,
"pump>once": true
}
},
@ -871,13 +860,13 @@
"setInterval": true
},
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>mafmt": true,
"3box>ipfs>multiaddr": true,
"3box>ipfs>peer-id": true,
"3box>ipfs>peer-info": true,
"browserify>events": true,
"eslint>debug": true
"gh-pages>async": true,
"madge>debug": true
}
},
"3box>ipfs>libp2p-crypto": {
@ -886,7 +875,6 @@
"msCrypto": true
},
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>bs58": true,
"3box>ipfs>libp2p-crypto>asn1.js": true,
"3box>ipfs>libp2p-crypto>iso-random-stream": true,
@ -896,6 +884,7 @@
"3box>tweetnacl": true,
"browserify>buffer": true,
"ethereumjs-util>ethereum-cryptography>browserify-aes": true,
"gh-pages>async": true,
"mockttp>node-forge": true
}
},
@ -918,10 +907,10 @@
},
"3box>ipfs>libp2p-crypto>libp2p-crypto-secp256k1": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>bs58": true,
"3box>ipfs>libp2p-crypto>libp2p-crypto-secp256k1>multihashing-async": true,
"eth-trezor-keyring>hdkey>secp256k1": true
"eth-trezor-keyring>hdkey>secp256k1": true,
"gh-pages>async": true
}
},
"3box>ipfs>libp2p-crypto>libp2p-crypto-secp256k1>multihashing-async": {
@ -962,7 +951,6 @@
"setTimeout": true
},
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>base32.js": true,
"3box>ipfs>cids": true,
"3box>ipfs>err-code": true,
@ -990,7 +978,8 @@
"browserify>buffer": true,
"browserify>events": true,
"browserify>insert-module-globals>is-buffer": true,
"eslint>debug": true,
"gh-pages>async": true,
"madge>debug": true,
"promise-to-callback": true
}
},
@ -1045,7 +1034,6 @@
"setTimeout": true
},
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>err-code": true,
"3box>ipfs>interface-datastore": true,
"3box>ipfs>libp2p-crypto": true,
@ -1053,6 +1041,7 @@
"3box>ipfs>merge-options": true,
"3box>ipfs>pull-stream": true,
"browserify>buffer": true,
"gh-pages>async": true,
"mockttp>node-forge": true
}
},
@ -1068,14 +1057,14 @@
},
"3box>ipfs>libp2p-record": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>err-code": true,
"3box>ipfs>libp2p-record>buffer-split": true,
"3box>ipfs>libp2p-record>multihashing-async": true,
"3box>ipfs>protons": true,
"browserify>assert": true,
"browserify>buffer": true,
"browserify>insert-module-globals>is-buffer": true
"browserify>insert-module-globals>is-buffer": true,
"gh-pages>async": true
}
},
"3box>ipfs>libp2p-record>buffer-split": {
@ -1100,7 +1089,6 @@
},
"3box>ipfs>libp2p-secio": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>libp2p-crypto": true,
"3box>ipfs>libp2p-secio>multihashing-async": true,
"3box>ipfs>libp2p-secio>pull-handshake": true,
@ -1113,7 +1101,8 @@
"3box>ipfs>pull-stream": true,
"browserify>assert": true,
"browserify>buffer": true,
"eslint>debug": true,
"gh-pages>async": true,
"madge>debug": true,
"pump>once": true
}
},
@ -1160,7 +1149,6 @@
},
"3box>ipfs>libp2p-webrtc-star": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>class-is": true,
"3box>ipfs>libp2p-webrtc-star>simple-peer": true,
"3box>ipfs>libp2p-webrtc-star>socket.io-client": true,
@ -1172,7 +1160,8 @@
"3box>ipfs>pull-mplex>interface-connection": true,
"3box>ipfs>stream-to-pull-stream": true,
"browserify>events": true,
"eslint>debug": true,
"gh-pages>async": true,
"madge>debug": true,
"pump>once": true
}
},
@ -1187,8 +1176,8 @@
"3box>ipfs>libp2p-webrtc-star>simple-peer>get-browser-rtc": true,
"3box>ipfs>libp2p-webrtc-star>simple-peer>readable-stream": true,
"browserify>buffer": true,
"eslint>debug": true,
"ethereumjs-wallet>randombytes": true,
"madge>debug": true,
"pumpify>inherits": true
}
},
@ -1383,12 +1372,12 @@
"setTimeout": true
},
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>libp2p-websocket-star-multi>libp2p-websocket-star": true,
"3box>ipfs>mafmt": true,
"3box>ipfs>multiaddr": true,
"browserify>events": true,
"eslint>debug": true,
"gh-pages>async": true,
"madge>debug": true,
"pump>once": true
}
},
@ -1397,7 +1386,6 @@
"console.error": true
},
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>class-is": true,
"3box>ipfs>libp2p-crypto": true,
"3box>ipfs>libp2p-webrtc-star>socket.io-client": true,
@ -1410,7 +1398,8 @@
"3box>ipfs>pull-stream": true,
"browserify>buffer": true,
"browserify>events": true,
"eslint>debug": true,
"gh-pages>async": true,
"madge>debug": true,
"pump>once": true,
"uuid": true
}
@ -1460,7 +1449,7 @@
"3box>ipfs>multiaddr-to-uri": true,
"3box>ipfs>pull-mplex>interface-connection": true,
"browserify>os-browserify": true,
"eslint>debug": true
"madge>debug": true
}
},
"3box>ipfs>libp2p-websockets>pull-ws": {
@ -1489,7 +1478,7 @@
"packages": {
"3box>ipfs>libp2p>libp2p-connection-manager>latency-monitor": true,
"browserify>events": true,
"eslint>debug": true
"madge>debug": true
}
},
"3box>ipfs>libp2p>libp2p-connection-manager>latency-monitor": {
@ -1524,17 +1513,16 @@
},
"3box>ipfs>libp2p>libp2p-floodsub": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>libp2p-secio>pull-length-prefixed": true,
"3box>ipfs>libp2p>libp2p-floodsub>libp2p-pubsub": true,
"3box>ipfs>pull-stream": true,
"browserify>assert": true,
"eslint>debug": true
"gh-pages>async": true,
"madge>debug": true
}
},
"3box>ipfs>libp2p>libp2p-floodsub>libp2p-pubsub": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>bs58": true,
"3box>ipfs>err-code": true,
"3box>ipfs>libp2p-crypto": true,
@ -1546,7 +1534,8 @@
"browserify>buffer": true,
"browserify>events": true,
"browserify>insert-module-globals>is-buffer": true,
"eslint>debug": true
"gh-pages>async": true,
"madge>debug": true
}
},
"3box>ipfs>libp2p>libp2p-floodsub>libp2p-pubsub>time-cache": {
@ -1566,12 +1555,11 @@
"3box>ipfs>libp2p-secio>pull-handshake": true,
"3box>ipfs>pull-stream": true,
"browserify>events": true,
"eslint>debug": true
"madge>debug": true
}
},
"3box>ipfs>libp2p>libp2p-switch": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>class-is": true,
"3box>ipfs>err-code": true,
"3box>ipfs>fsm-event": true,
@ -1589,7 +1577,8 @@
"3box>ipfs>pull-stream": true,
"browserify>assert": true,
"browserify>events": true,
"eslint>debug": true,
"gh-pages>async": true,
"madge>debug": true,
"pump>once": true
}
},
@ -1601,7 +1590,6 @@
},
"3box>ipfs>libp2p>libp2p-switch>libp2p-circuit": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>libp2p-secio>pull-handshake": true,
"3box>ipfs>libp2p-secio>pull-length-prefixed": true,
"3box>ipfs>mafmt": true,
@ -1612,7 +1600,8 @@
"3box>ipfs>pull-mplex>interface-connection": true,
"3box>ipfs>pull-stream": true,
"browserify>events": true,
"eslint>debug": true,
"gh-pages>async": true,
"madge>debug": true,
"pump>once": true
}
},
@ -1632,7 +1621,6 @@
},
"3box>ipfs>libp2p>libp2p-switch>multistream-select": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>err-code": true,
"3box>ipfs>libp2p-secio>pull-handshake": true,
"3box>ipfs>libp2p-secio>pull-length-prefixed": true,
@ -1642,7 +1630,8 @@
"3box>ipfs>varint": true,
"browserify>assert": true,
"browserify>buffer": true,
"eslint>debug": true,
"gh-pages>async": true,
"madge>debug": true,
"pump>once": true
}
},
@ -1774,12 +1763,12 @@
},
"3box>ipfs>peer-id": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>class-is": true,
"3box>ipfs>libp2p-crypto": true,
"3box>ipfs>multihashes": true,
"browserify>assert": true,
"browserify>buffer": true
"browserify>buffer": true,
"gh-pages>async": true
}
},
"3box>ipfs>peer-info": {
@ -1807,7 +1796,6 @@
},
"3box>ipfs>pull-mplex": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>pull-abortable": true,
"3box>ipfs>pull-mplex>interface-connection": true,
"3box>ipfs>pull-mplex>looper": true,
@ -1817,7 +1805,8 @@
"3box>ipfs>varint": true,
"browserify>buffer": true,
"browserify>events": true,
"eslint>debug": true
"gh-pages>async": true,
"madge>debug": true
}
},
"3box>ipfs>pull-mplex>interface-connection": {
@ -2823,7 +2812,6 @@
"setTimeout": true
},
"packages": {
"3box>ipfs>async": true,
"@ethereumjs/tx": true,
"@metamask/controllers>web3-provider-engine>backoff": true,
"@metamask/controllers>web3-provider-engine>eth-block-tracker": true,
@ -2837,6 +2825,7 @@
"browserify>util": true,
"eth-json-rpc-filters": true,
"eth-json-rpc-infura": true,
"gh-pages>async": true,
"lavamoat>json-stable-stringify": true,
"watchify>xtend": true
}
@ -3783,8 +3772,8 @@
"@truffle/codec>web3-utils": true,
"browserify>buffer": true,
"browserify>util": true,
"eslint>debug": true,
"gulp-dart-sass>lodash.clonedeep": true,
"madge>debug": true,
"semver": true
}
},
@ -4007,7 +3996,7 @@
"@truffle/codec>web3-utils": true,
"@truffle/decoder>@truffle/source-map-utils": true,
"@truffle/decoder>bn.js": true,
"eslint>debug": true
"madge>debug": true
}
},
"@truffle/decoder>@truffle/source-map-utils": {
@ -4017,7 +4006,7 @@
"@truffle/decoder>@truffle/source-map-utils>@truffle/code-utils": true,
"@truffle/decoder>@truffle/source-map-utils>json-pointer": true,
"@truffle/decoder>@truffle/source-map-utils>node-interval-tree": true,
"eslint>debug": true
"madge>debug": true
}
},
"@truffle/decoder>@truffle/source-map-utils>@truffle/code-utils": {
@ -4573,19 +4562,6 @@
"string.prototype.matchall>has-symbols": true
}
},
"eslint>debug": {
"globals": {
"console": true,
"document": true,
"localStorage": true,
"navigator": true,
"process": true
},
"packages": {
"browserify>process": true,
"eslint>debug>ms": true
}
},
"eslint>optionator>fast-levenshtein": {
"globals": {
"Intl": true,
@ -5840,6 +5816,17 @@
"define": true
}
},
"gh-pages>async": {
"globals": {
"clearTimeout": true,
"setTimeout": true
},
"packages": {
"browserify>process": true,
"browserify>timers-browserify": true,
"lodash": true
}
},
"globalthis>define-properties": {
"packages": {
"globalthis>define-properties>has-property-descriptors": true,
@ -5929,6 +5916,24 @@
"Intl": true
}
},
"madge>debug": {
"globals": {
"console": true,
"document": true,
"localStorage": true,
"navigator": true,
"process": true
},
"packages": {
"browserify>process": true,
"madge>debug>ms": true
}
},
"madge>rc>deep-extend": {
"packages": {
"browserify>buffer": true
}
},
"mockttp>node-forge": {
"globals": {
"Blob": true,
@ -6082,11 +6087,6 @@
"react": true
}
},
"rc>deep-extend": {
"packages": {
"browserify>buffer": true
}
},
"react": {
"globals": {
"console": true

@ -209,7 +209,6 @@
"setTimeout": true
},
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>async-iterator-all": true,
"3box>ipfs>async-iterator-to-pull-stream": true,
"3box>ipfs>async-iterator-to-stream": true,
@ -288,7 +287,8 @@
"browserify>events": true,
"browserify>insert-module-globals>is-buffer": true,
"browserify>timers-browserify": true,
"eslint>debug": true
"gh-pages>async": true,
"madge>debug": true
}
},
"3box>ipfs-mini": {
@ -305,17 +305,6 @@
"nanoid": true
}
},
"3box>ipfs>async": {
"globals": {
"clearTimeout": true,
"setTimeout": true
},
"packages": {
"browserify>process": true,
"browserify>timers-browserify": true,
"lodash": true
}
},
"3box>ipfs>async-iterator-to-pull-stream": {
"packages": {
"3box>ipfs>async-iterator-to-pull-stream>get-iterator": true,
@ -385,11 +374,11 @@
},
"3box>ipfs>datastore-core": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>datastore-core>pull-many": true,
"3box>ipfs>interface-datastore": true,
"3box>ipfs>pull-stream": true,
"browserify>buffer": true
"browserify>buffer": true,
"gh-pages>async": true
}
},
"3box>ipfs>datastore-pubsub": {
@ -399,7 +388,7 @@
"3box>ipfs>multibase": true,
"browserify>assert": true,
"browserify>buffer": true,
"eslint>debug": true
"madge>debug": true
}
},
"3box>ipfs>dlv": {
@ -421,7 +410,6 @@
},
"3box>ipfs>interface-datastore": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>class-is": true,
"3box>ipfs>err-code": true,
"3box>ipfs>interface-datastore>uuid": true,
@ -429,7 +417,8 @@
"3box>ipfs>pull-stream": true,
"browserify>buffer": true,
"browserify>os-browserify": true,
"browserify>path-browserify": true
"browserify>path-browserify": true,
"gh-pages>async": true
}
},
"3box>ipfs>interface-datastore>uuid": {
@ -446,7 +435,6 @@
"setTimeout": true
},
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>cids": true,
"3box>ipfs>ipfs-bitswap>bignumber.js": true,
"3box>ipfs>ipfs-bitswap>just-debounce-it": true,
@ -461,7 +449,8 @@
"3box>ipfs>pull-stream": true,
"browserify>assert": true,
"browserify>events": true,
"eslint>debug": true
"gh-pages>async": true,
"madge>debug": true
}
},
"3box>ipfs>ipfs-bitswap>bignumber.js": {
@ -506,7 +495,7 @@
},
"3box>ipfs>ipfs-block-service": {
"packages": {
"3box>ipfs>async": true
"gh-pages>async": true
}
},
"3box>ipfs>ipfs-mfs": {
@ -531,7 +520,7 @@
"browserify>assert": true,
"browserify>browser-resolve": true,
"browserify>buffer": true,
"eslint>debug": true
"madge>debug": true
}
},
"3box>ipfs>ipfs-mfs>hamt-sharding": {
@ -562,7 +551,6 @@
},
"3box>ipfs>ipfs-repo": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>base32.js": true,
"3box>ipfs>cids": true,
"3box>ipfs>datastore-core": true,
@ -578,7 +566,8 @@
"browserify>buffer": true,
"browserify>path-browserify": true,
"browserify>timers-browserify": true,
"eslint>debug": true
"gh-pages>async": true,
"madge>debug": true
}
},
"3box>ipfs>ipfs-repo>bignumber.js": {
@ -699,7 +688,7 @@
"3box>ipfs>multihashes": true,
"3box>ipfs>superstruct": true,
"browserify>buffer": true,
"rc>deep-extend": true
"madge>rc>deep-extend": true
}
},
"3box>ipfs>ipfs-unixfs-importer>rabin-wasm": {
@ -822,7 +811,7 @@
"3box>ipfs>protons": true,
"base32-encode": true,
"browserify>buffer": true,
"eslint>debug": true
"madge>debug": true
}
},
"3box>ipfs>is-ipfs": {
@ -845,7 +834,6 @@
},
"3box>ipfs>libp2p": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>err-code": true,
"3box>ipfs>fsm-event": true,
"3box>ipfs>libp2p-websockets": true,
@ -861,7 +849,8 @@
"browserify>events": true,
"browserify>insert-module-globals>is-buffer": true,
"browserify>process": true,
"eslint>debug": true,
"gh-pages>async": true,
"madge>debug": true,
"pump>once": true
}
},
@ -871,13 +860,13 @@
"setInterval": true
},
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>mafmt": true,
"3box>ipfs>multiaddr": true,
"3box>ipfs>peer-id": true,
"3box>ipfs>peer-info": true,
"browserify>events": true,
"eslint>debug": true
"gh-pages>async": true,
"madge>debug": true
}
},
"3box>ipfs>libp2p-crypto": {
@ -886,7 +875,6 @@
"msCrypto": true
},
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>bs58": true,
"3box>ipfs>libp2p-crypto>asn1.js": true,
"3box>ipfs>libp2p-crypto>iso-random-stream": true,
@ -896,6 +884,7 @@
"3box>tweetnacl": true,
"browserify>buffer": true,
"ethereumjs-util>ethereum-cryptography>browserify-aes": true,
"gh-pages>async": true,
"mockttp>node-forge": true
}
},
@ -918,10 +907,10 @@
},
"3box>ipfs>libp2p-crypto>libp2p-crypto-secp256k1": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>bs58": true,
"3box>ipfs>libp2p-crypto>libp2p-crypto-secp256k1>multihashing-async": true,
"eth-trezor-keyring>hdkey>secp256k1": true
"eth-trezor-keyring>hdkey>secp256k1": true,
"gh-pages>async": true
}
},
"3box>ipfs>libp2p-crypto>libp2p-crypto-secp256k1>multihashing-async": {
@ -962,7 +951,6 @@
"setTimeout": true
},
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>base32.js": true,
"3box>ipfs>cids": true,
"3box>ipfs>err-code": true,
@ -990,7 +978,8 @@
"browserify>buffer": true,
"browserify>events": true,
"browserify>insert-module-globals>is-buffer": true,
"eslint>debug": true,
"gh-pages>async": true,
"madge>debug": true,
"promise-to-callback": true
}
},
@ -1045,7 +1034,6 @@
"setTimeout": true
},
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>err-code": true,
"3box>ipfs>interface-datastore": true,
"3box>ipfs>libp2p-crypto": true,
@ -1053,6 +1041,7 @@
"3box>ipfs>merge-options": true,
"3box>ipfs>pull-stream": true,
"browserify>buffer": true,
"gh-pages>async": true,
"mockttp>node-forge": true
}
},
@ -1068,14 +1057,14 @@
},
"3box>ipfs>libp2p-record": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>err-code": true,
"3box>ipfs>libp2p-record>buffer-split": true,
"3box>ipfs>libp2p-record>multihashing-async": true,
"3box>ipfs>protons": true,
"browserify>assert": true,
"browserify>buffer": true,
"browserify>insert-module-globals>is-buffer": true
"browserify>insert-module-globals>is-buffer": true,
"gh-pages>async": true
}
},
"3box>ipfs>libp2p-record>buffer-split": {
@ -1100,7 +1089,6 @@
},
"3box>ipfs>libp2p-secio": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>libp2p-crypto": true,
"3box>ipfs>libp2p-secio>multihashing-async": true,
"3box>ipfs>libp2p-secio>pull-handshake": true,
@ -1113,7 +1101,8 @@
"3box>ipfs>pull-stream": true,
"browserify>assert": true,
"browserify>buffer": true,
"eslint>debug": true,
"gh-pages>async": true,
"madge>debug": true,
"pump>once": true
}
},
@ -1160,7 +1149,6 @@
},
"3box>ipfs>libp2p-webrtc-star": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>class-is": true,
"3box>ipfs>libp2p-webrtc-star>simple-peer": true,
"3box>ipfs>libp2p-webrtc-star>socket.io-client": true,
@ -1172,7 +1160,8 @@
"3box>ipfs>pull-mplex>interface-connection": true,
"3box>ipfs>stream-to-pull-stream": true,
"browserify>events": true,
"eslint>debug": true,
"gh-pages>async": true,
"madge>debug": true,
"pump>once": true
}
},
@ -1187,8 +1176,8 @@
"3box>ipfs>libp2p-webrtc-star>simple-peer>get-browser-rtc": true,
"3box>ipfs>libp2p-webrtc-star>simple-peer>readable-stream": true,
"browserify>buffer": true,
"eslint>debug": true,
"ethereumjs-wallet>randombytes": true,
"madge>debug": true,
"pumpify>inherits": true
}
},
@ -1383,12 +1372,12 @@
"setTimeout": true
},
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>libp2p-websocket-star-multi>libp2p-websocket-star": true,
"3box>ipfs>mafmt": true,
"3box>ipfs>multiaddr": true,
"browserify>events": true,
"eslint>debug": true,
"gh-pages>async": true,
"madge>debug": true,
"pump>once": true
}
},
@ -1397,7 +1386,6 @@
"console.error": true
},
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>class-is": true,
"3box>ipfs>libp2p-crypto": true,
"3box>ipfs>libp2p-webrtc-star>socket.io-client": true,
@ -1410,7 +1398,8 @@
"3box>ipfs>pull-stream": true,
"browserify>buffer": true,
"browserify>events": true,
"eslint>debug": true,
"gh-pages>async": true,
"madge>debug": true,
"pump>once": true,
"uuid": true
}
@ -1460,7 +1449,7 @@
"3box>ipfs>multiaddr-to-uri": true,
"3box>ipfs>pull-mplex>interface-connection": true,
"browserify>os-browserify": true,
"eslint>debug": true
"madge>debug": true
}
},
"3box>ipfs>libp2p-websockets>pull-ws": {
@ -1489,7 +1478,7 @@
"packages": {
"3box>ipfs>libp2p>libp2p-connection-manager>latency-monitor": true,
"browserify>events": true,
"eslint>debug": true
"madge>debug": true
}
},
"3box>ipfs>libp2p>libp2p-connection-manager>latency-monitor": {
@ -1524,17 +1513,16 @@
},
"3box>ipfs>libp2p>libp2p-floodsub": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>libp2p-secio>pull-length-prefixed": true,
"3box>ipfs>libp2p>libp2p-floodsub>libp2p-pubsub": true,
"3box>ipfs>pull-stream": true,
"browserify>assert": true,
"eslint>debug": true
"gh-pages>async": true,
"madge>debug": true
}
},
"3box>ipfs>libp2p>libp2p-floodsub>libp2p-pubsub": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>bs58": true,
"3box>ipfs>err-code": true,
"3box>ipfs>libp2p-crypto": true,
@ -1546,7 +1534,8 @@
"browserify>buffer": true,
"browserify>events": true,
"browserify>insert-module-globals>is-buffer": true,
"eslint>debug": true
"gh-pages>async": true,
"madge>debug": true
}
},
"3box>ipfs>libp2p>libp2p-floodsub>libp2p-pubsub>time-cache": {
@ -1566,12 +1555,11 @@
"3box>ipfs>libp2p-secio>pull-handshake": true,
"3box>ipfs>pull-stream": true,
"browserify>events": true,
"eslint>debug": true
"madge>debug": true
}
},
"3box>ipfs>libp2p>libp2p-switch": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>class-is": true,
"3box>ipfs>err-code": true,
"3box>ipfs>fsm-event": true,
@ -1589,7 +1577,8 @@
"3box>ipfs>pull-stream": true,
"browserify>assert": true,
"browserify>events": true,
"eslint>debug": true,
"gh-pages>async": true,
"madge>debug": true,
"pump>once": true
}
},
@ -1601,7 +1590,6 @@
},
"3box>ipfs>libp2p>libp2p-switch>libp2p-circuit": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>libp2p-secio>pull-handshake": true,
"3box>ipfs>libp2p-secio>pull-length-prefixed": true,
"3box>ipfs>mafmt": true,
@ -1612,7 +1600,8 @@
"3box>ipfs>pull-mplex>interface-connection": true,
"3box>ipfs>pull-stream": true,
"browserify>events": true,
"eslint>debug": true,
"gh-pages>async": true,
"madge>debug": true,
"pump>once": true
}
},
@ -1632,7 +1621,6 @@
},
"3box>ipfs>libp2p>libp2p-switch>multistream-select": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>err-code": true,
"3box>ipfs>libp2p-secio>pull-handshake": true,
"3box>ipfs>libp2p-secio>pull-length-prefixed": true,
@ -1642,7 +1630,8 @@
"3box>ipfs>varint": true,
"browserify>assert": true,
"browserify>buffer": true,
"eslint>debug": true,
"gh-pages>async": true,
"madge>debug": true,
"pump>once": true
}
},
@ -1774,12 +1763,12 @@
},
"3box>ipfs>peer-id": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>class-is": true,
"3box>ipfs>libp2p-crypto": true,
"3box>ipfs>multihashes": true,
"browserify>assert": true,
"browserify>buffer": true
"browserify>buffer": true,
"gh-pages>async": true
}
},
"3box>ipfs>peer-info": {
@ -1807,7 +1796,6 @@
},
"3box>ipfs>pull-mplex": {
"packages": {
"3box>ipfs>async": true,
"3box>ipfs>pull-abortable": true,
"3box>ipfs>pull-mplex>interface-connection": true,
"3box>ipfs>pull-mplex>looper": true,
@ -1817,7 +1805,8 @@
"3box>ipfs>varint": true,
"browserify>buffer": true,
"browserify>events": true,
"eslint>debug": true
"gh-pages>async": true,
"madge>debug": true
}
},
"3box>ipfs>pull-mplex>interface-connection": {
@ -2823,7 +2812,6 @@
"setTimeout": true
},
"packages": {
"3box>ipfs>async": true,
"@ethereumjs/tx": true,
"@metamask/controllers>web3-provider-engine>backoff": true,
"@metamask/controllers>web3-provider-engine>eth-block-tracker": true,
@ -2837,6 +2825,7 @@
"browserify>util": true,
"eth-json-rpc-filters": true,
"eth-json-rpc-infura": true,
"gh-pages>async": true,
"lavamoat>json-stable-stringify": true,
"watchify>xtend": true
}
@ -3167,75 +3156,6 @@
"watchify>xtend": true
}
},
"@metamask/providers>@metamask/object-multiplex": {
"globals": {
"console.warn": true
},
"packages": {
"end-of-stream": true,
"pump>once": true,
"readable-stream": true
}
},
"@metamask/rpc-methods": {
"packages": {
"@metamask/controllers": true,
"@metamask/rpc-methods>@metamask/key-tree": true,
"@metamask/rpc-methods>@metamask/utils": true,
"@metamask/snap-controllers": true,
"eth-rpc-errors": true
}
},
"@metamask/rpc-methods>@metamask/key-tree": {
"packages": {
"@metamask/rpc-methods>@metamask/key-tree>@noble/ed25519": true,
"@metamask/rpc-methods>@metamask/key-tree>@noble/hashes": true,
"@metamask/rpc-methods>@metamask/key-tree>@noble/secp256k1": true,
"@metamask/rpc-methods>@metamask/key-tree>@scure/base": true,
"@metamask/rpc-methods>@metamask/key-tree>@scure/bip39": true,
"browserify>buffer": true
}
},
"@metamask/rpc-methods>@metamask/key-tree>@noble/ed25519": {
"globals": {
"crypto": true
},
"packages": {
"browserify>browser-resolve": true
}
},
"@metamask/rpc-methods>@metamask/key-tree>@noble/hashes": {
"globals": {
"TextEncoder": true,
"crypto": true,
"setTimeout": true
}
},
"@metamask/rpc-methods>@metamask/key-tree>@noble/secp256k1": {
"globals": {
"crypto": true
},
"packages": {
"browserify>browser-resolve": true
}
},
"@metamask/rpc-methods>@metamask/key-tree>@scure/base": {
"globals": {
"TextDecoder": true,
"TextEncoder": true
}
},
"@metamask/rpc-methods>@metamask/key-tree>@scure/bip39": {
"packages": {
"@metamask/rpc-methods>@metamask/key-tree>@noble/hashes": true,
"@metamask/rpc-methods>@metamask/key-tree>@scure/base": true
}
},
"@metamask/rpc-methods>@metamask/utils": {
"packages": {
"eslint>fast-deep-equal": true
}
},
"@metamask/smart-transactions-controller": {
"globals": {
"URLSearchParams": true,
@ -3273,329 +3193,11 @@
"setTimeout": true
}
},
"@metamask/snap-controllers": {
"globals": {
"URL": true,
"clearTimeout": true,
"console.error": true,
"console.info": true,
"console.log": true,
"console.warn": true,
"document.body.appendChild": true,
"document.createElement": true,
"document.getElementById": true,
"fetch": true,
"setTimeout": true
},
"packages": {
"@metamask/controllers": true,
"@metamask/providers>@metamask/object-multiplex": true,
"@metamask/rpc-methods>@metamask/utils": true,
"@metamask/snap-controllers>@metamask/browser-passworder": true,
"@metamask/snap-controllers>@metamask/execution-environments": true,
"@metamask/snap-controllers>@metamask/obs-store": true,
"@metamask/snap-controllers>@metamask/post-message-stream": true,
"@metamask/snap-controllers>ajv": true,
"@metamask/snap-controllers>concat-stream": true,
"@metamask/snap-controllers>gunzip-maybe": true,
"@metamask/snap-controllers>json-rpc-middleware-stream": true,
"@metamask/snap-controllers>nanoid": true,
"@metamask/snap-controllers>readable-web-to-node-stream": true,
"@metamask/snap-controllers>tar-stream": true,
"browserify>buffer": true,
"browserify>crypto-browserify": true,
"eslint>fast-deep-equal": true,
"eth-rpc-errors": true,
"json-rpc-engine": true,
"json-rpc-engine>@metamask/safe-event-emitter": true,
"pump": true,
"semver": true
}
},
"@metamask/snap-controllers>@metamask/browser-passworder": {
"globals": {
"btoa": true,
"crypto.getRandomValues": true,
"crypto.subtle.decrypt": true,
"crypto.subtle.deriveKey": true,
"crypto.subtle.encrypt": true,
"crypto.subtle.importKey": true
},
"packages": {
"browserify>buffer": true
}
},
"@metamask/snap-controllers>@metamask/obs-store": {
"packages": {
"@metamask/snap-controllers>@metamask/obs-store>through2": true,
"browserify>stream-browserify": true,
"json-rpc-engine>@metamask/safe-event-emitter": true
}
},
"@metamask/snap-controllers>@metamask/obs-store>through2": {
"packages": {
"@metamask/snap-controllers>@metamask/obs-store>through2>readable-stream": true,
"browserify>process": true,
"browserify>util": true,
"watchify>xtend": true
}
},
"@metamask/snap-controllers>@metamask/obs-store>through2>readable-stream": {
"packages": {
"@metamask/snap-controllers>@metamask/obs-store>through2>readable-stream>process-nextick-args": true,
"@metamask/snap-controllers>@metamask/obs-store>through2>readable-stream>string_decoder": true,
"@metamask/snap-controllers>json-rpc-middleware-stream>readable-stream>safe-buffer": true,
"@storybook/api>util-deprecate": true,
"browserify>browser-resolve": true,
"browserify>events": true,
"browserify>process": true,
"browserify>timers-browserify": true,
"pumpify>inherits": true,
"readable-stream>core-util-is": true,
"readable-stream>isarray": true
}
},
"@metamask/snap-controllers>@metamask/obs-store>through2>readable-stream>process-nextick-args": {
"packages": {
"browserify>process": true
}
},
"@metamask/snap-controllers>@metamask/obs-store>through2>readable-stream>string_decoder": {
"packages": {
"@metamask/snap-controllers>json-rpc-middleware-stream>readable-stream>safe-buffer": true
}
},
"@metamask/snap-controllers>@metamask/post-message-stream": {
"globals": {
"WorkerGlobalScope": true,
"addEventListener": true,
"location.origin": true,
"onmessage": "write",
"postMessage": true,
"removeEventListener": true
},
"packages": {
"@metamask/rpc-methods>@metamask/utils": true,
"@metamask/snap-controllers>@metamask/post-message-stream>readable-stream": true
}
},
"@metamask/snap-controllers>@metamask/post-message-stream>readable-stream": {
"packages": {
"@metamask/snap-controllers>@metamask/post-message-stream>readable-stream>string_decoder": true,
"@metamask/snap-controllers>json-rpc-middleware-stream>readable-stream>safe-buffer": true,
"@storybook/api>util-deprecate": true,
"browserify>browser-resolve": true,
"browserify>events": true,
"browserify>process": true,
"browserify>timers-browserify": true,
"pumpify>inherits": true,
"readable-stream>core-util-is": true,
"readable-stream>isarray": true,
"vinyl>cloneable-readable>process-nextick-args": true
}
},
"@metamask/snap-controllers>@metamask/post-message-stream>readable-stream>string_decoder": {
"packages": {
"@metamask/snap-controllers>json-rpc-middleware-stream>readable-stream>safe-buffer": true
}
},
"@metamask/snap-controllers>ajv": {
"packages": {
"eslint>fast-deep-equal": true
}
},
"@metamask/snap-controllers>concat-stream": {
"packages": {
"@metamask/snap-controllers>concat-stream>readable-stream": true,
"browserify>buffer": true,
"pumpify>inherits": true
}
},
"@metamask/snap-controllers>concat-stream>readable-stream": {
"packages": {
"@storybook/api>util-deprecate": true,
"browserify>browser-resolve": true,
"browserify>buffer": true,
"browserify>events": true,
"browserify>process": true,
"browserify>string_decoder": true,
"pumpify>inherits": true
}
},
"@metamask/snap-controllers>gunzip-maybe": {
"packages": {
"@metamask/snap-controllers>gunzip-maybe>browserify-zlib": true,
"@metamask/snap-controllers>gunzip-maybe>is-deflate": true,
"@metamask/snap-controllers>gunzip-maybe>is-gzip": true,
"@metamask/snap-controllers>gunzip-maybe>peek-stream": true,
"@metamask/snap-controllers>gunzip-maybe>pumpify": true,
"@metamask/snap-controllers>gunzip-maybe>through2": true
}
},
"@metamask/snap-controllers>gunzip-maybe>browserify-zlib": {
"packages": {
"@metamask/snap-controllers>gunzip-maybe>browserify-zlib>pako": true,
"browserify>assert": true,
"browserify>buffer": true,
"browserify>process": true,
"browserify>util": true,
"readable-stream": true
}
},
"@metamask/snap-controllers>gunzip-maybe>peek-stream": {
"packages": {
"@metamask/snap-controllers>gunzip-maybe>peek-stream>duplexify": true,
"@metamask/snap-controllers>gunzip-maybe>peek-stream>through2": true,
"browserify>buffer": true,
"terser>source-map-support>buffer-from": true
}
},
"@metamask/snap-controllers>gunzip-maybe>peek-stream>duplexify": {
"packages": {
"browserify>buffer": true,
"browserify>process": true,
"duplexify>stream-shift": true,
"end-of-stream": true,
"pumpify>inherits": true,
"readable-stream": true
}
},
"@metamask/snap-controllers>gunzip-maybe>peek-stream>through2": {
"packages": {
"browserify>process": true,
"browserify>util": true,
"readable-stream": true,
"watchify>xtend": true
}
},
"@metamask/snap-controllers>gunzip-maybe>pumpify": {
"packages": {
"@metamask/snap-controllers>gunzip-maybe>pumpify>duplexify": true,
"@metamask/snap-controllers>gunzip-maybe>pumpify>pump": true,
"pumpify>inherits": true
}
},
"@metamask/snap-controllers>gunzip-maybe>pumpify>duplexify": {
"packages": {
"browserify>buffer": true,
"browserify>process": true,
"duplexify>stream-shift": true,
"end-of-stream": true,
"pumpify>inherits": true,
"readable-stream": true
}
},
"@metamask/snap-controllers>gunzip-maybe>pumpify>pump": {
"packages": {
"browserify>browser-resolve": true,
"end-of-stream": true,
"pump>once": true
}
},
"@metamask/snap-controllers>gunzip-maybe>through2": {
"packages": {
"browserify>process": true,
"browserify>util": true,
"readable-stream": true,
"watchify>xtend": true
}
},
"@metamask/snap-controllers>json-rpc-middleware-stream": {
"globals": {
"setTimeout": true
},
"packages": {
"@metamask/snap-controllers>json-rpc-middleware-stream>readable-stream": true,
"json-rpc-engine>@metamask/safe-event-emitter": true
}
},
"@metamask/snap-controllers>json-rpc-middleware-stream>readable-stream": {
"packages": {
"@metamask/snap-controllers>json-rpc-middleware-stream>readable-stream>process-nextick-args": true,
"@metamask/snap-controllers>json-rpc-middleware-stream>readable-stream>safe-buffer": true,
"@metamask/snap-controllers>json-rpc-middleware-stream>readable-stream>string_decoder": true,
"@storybook/api>util-deprecate": true,
"browserify>browser-resolve": true,
"browserify>events": true,
"browserify>process": true,
"browserify>timers-browserify": true,
"pumpify>inherits": true,
"readable-stream>core-util-is": true,
"readable-stream>isarray": true
}
},
"@metamask/snap-controllers>json-rpc-middleware-stream>readable-stream>process-nextick-args": {
"packages": {
"browserify>process": true
}
},
"@metamask/snap-controllers>json-rpc-middleware-stream>readable-stream>safe-buffer": {
"packages": {
"browserify>buffer": true
}
},
"@metamask/snap-controllers>json-rpc-middleware-stream>readable-stream>string_decoder": {
"packages": {
"@metamask/snap-controllers>json-rpc-middleware-stream>readable-stream>safe-buffer": true
}
},
"@metamask/snap-controllers>nanoid": {
"globals": {
"crypto.getRandomValues": true
}
},
"@metamask/snap-controllers>readable-web-to-node-stream": {
"packages": {
"@metamask/snap-controllers>readable-web-to-node-stream>readable-stream": true
}
},
"@metamask/snap-controllers>readable-web-to-node-stream>readable-stream": {
"packages": {
"@storybook/api>util-deprecate": true,
"browserify>browser-resolve": true,
"browserify>buffer": true,
"browserify>events": true,
"browserify>process": true,
"browserify>string_decoder": true,
"pumpify>inherits": true
}
},
"@metamask/snap-controllers>tar-stream": {
"packages": {
"@metamask/snap-controllers>tar-stream>bl": true,
"@metamask/snap-controllers>tar-stream>fs-constants": true,
"@metamask/snap-controllers>tar-stream>readable-stream": true,
"browserify>buffer": true,
"browserify>process": true,
"browserify>string_decoder": true,
"browserify>util": true,
"end-of-stream": true,
"pumpify>inherits": true
}
},
"@metamask/snap-controllers>tar-stream>bl": {
"packages": {
"@metamask/snap-controllers>tar-stream>readable-stream": true,
"browserify>buffer": true,
"pumpify>inherits": true
}
},
"@metamask/snap-controllers>tar-stream>fs-constants": {
"packages": {
"browserify>constants-browserify": true
}
},
"@metamask/snap-controllers>tar-stream>readable-stream": {
"packages": {
"@storybook/api>util-deprecate": true,
"browserify>browser-resolve": true,
"browserify>buffer": true,
"browserify>events": true,
"browserify>process": true,
"browserify>string_decoder": true,
"pumpify>inherits": true
}
},
"@ngraveio/bc-ur": {
"packages": {
"@ngraveio/bc-ur>@apocentre/alias-sampling": true,
@ -3783,8 +3385,8 @@
"@truffle/codec>web3-utils": true,
"browserify>buffer": true,
"browserify>util": true,
"eslint>debug": true,
"gulp-dart-sass>lodash.clonedeep": true,
"madge>debug": true,
"semver": true
}
},
@ -4007,7 +3609,7 @@
"@truffle/codec>web3-utils": true,
"@truffle/decoder>@truffle/source-map-utils": true,
"@truffle/decoder>bn.js": true,
"eslint>debug": true
"madge>debug": true
}
},
"@truffle/decoder>@truffle/source-map-utils": {
@ -4017,7 +3619,7 @@
"@truffle/decoder>@truffle/source-map-utils>@truffle/code-utils": true,
"@truffle/decoder>@truffle/source-map-utils>json-pointer": true,
"@truffle/decoder>@truffle/source-map-utils>node-interval-tree": true,
"eslint>debug": true
"madge>debug": true
}
},
"@truffle/decoder>@truffle/source-map-utils>@truffle/code-utils": {
@ -4573,19 +4175,6 @@
"string.prototype.matchall>has-symbols": true
}
},
"eslint>debug": {
"globals": {
"console": true,
"document": true,
"localStorage": true,
"navigator": true,
"process": true
},
"packages": {
"browserify>process": true,
"eslint>debug>ms": true
}
},
"eslint>optionator>fast-levenshtein": {
"globals": {
"Intl": true,
@ -5840,6 +5429,17 @@
"define": true
}
},
"gh-pages>async": {
"globals": {
"clearTimeout": true,
"setTimeout": true
},
"packages": {
"browserify>process": true,
"browserify>timers-browserify": true,
"lodash": true
}
},
"globalthis>define-properties": {
"packages": {
"globalthis>define-properties>has-property-descriptors": true,
@ -5929,6 +5529,24 @@
"Intl": true
}
},
"madge>debug": {
"globals": {
"console": true,
"document": true,
"localStorage": true,
"navigator": true,
"process": true
},
"packages": {
"browserify>process": true,
"madge>debug>ms": true
}
},
"madge>rc>deep-extend": {
"packages": {
"browserify>buffer": true
}
},
"mockttp>node-forge": {
"globals": {
"Blob": true,
@ -6082,11 +5700,6 @@
"react": true
}
},
"rc>deep-extend": {
"packages": {
"browserify>buffer": true
}
},
"react": {
"globals": {
"console": true
@ -6581,11 +6194,6 @@
"jsdom>request>is-typedarray": true
}
},
"terser>source-map-support>buffer-from": {
"packages": {
"browserify>buffer": true
}
},
"textarea-caret": {
"globals": {
"document.body.appendChild": true,
@ -6608,11 +6216,6 @@
"browserify>buffer": true
}
},
"vinyl>cloneable-readable>process-nextick-args": {
"packages": {
"browserify>process": true
}
},
"web3": {
"globals": {
"Web3": "write",

@ -19,9 +19,11 @@
},
"packages": {
"@babel/core": true,
"@babel/core>@babel/parser": true,
"@babel/eslint-parser>eslint-scope": true,
"@babel/eslint-parser>eslint-visitor-keys": true,
"@babel/eslint-parser>semver": true,
"@babel/parser": true,
"depcheck>@babel/parser": true,
"eslint": true
},
@ -112,11 +114,12 @@
},
"@typescript-eslint/eslint-plugin>@typescript-eslint/type-utils": {
"packages": {
"eslint>debug": true,
"@typescript-eslint/eslint-plugin>@typescript-eslint/type-utils>debug": true,
"@typescript-eslint/eslint-plugin>tsutils": true,
"typescript": true,
"eslint-plugin-jest>@typescript-eslint/utils": true,
"@typescript-eslint/eslint-plugin>@typescript-eslint/type-utils>debug": true
"eslint>debug": true,
"madge>debug": true,
"typescript": true
}
},
"@typescript-eslint/eslint-plugin>@typescript-eslint/type-utils>debug": {

File diff suppressed because it is too large Load Diff

@ -74,17 +74,18 @@
"lavamoat:debug:build": "yarn lavamoat:build --writeAutoPolicyDebug --policydebug lavamoat/build-system/policy-debug.json",
"lavamoat:background:auto": "./development/generate-lavamoat-policies.sh",
"lavamoat:background:auto:dev": "./development/generate-lavamoat-policies.sh --dev",
"lavamoat:auto": "yarn lavamoat:build:auto && yarn lavamoat:background:auto"
"lavamoat:auto": "yarn lavamoat:build:auto && yarn lavamoat:background:auto",
"ts-migration:enumerate": "ts-node development/ts-migration-dashboard/scripts/write-list-of-files-to-convert.ts",
"ts-migration:dashboard:watch": "ts-node development/ts-migration-dashboard/scripts/build.ts --watch",
"ts-migration:dashboard:build": "ts-node development/ts-migration-dashboard/scripts/build.ts",
"ts-migration:dashboard:deploy": "gh-pages --dist development/ts-migration-dashboard/build --remote ts-migration-dashboard"
},
"resolutions": {
"**/regenerator-runtime": "^0.13.7",
"**/caniuse-lite": "1.0.30001265",
"**/caniuse-lite": "^1.0.30001312",
"**/cross-fetch": "^3.1.5",
"**/configstore/dot-prop": "^5.1.1",
"**/ethers/elliptic": "^6.5.4",
"**/knex/minimist": "^1.2.6",
"**/optimist/minimist": "^1.2.6",
"**/socketcluster/minimist": "^1.2.6",
"**/redux/symbol-observable": "^2.0.3",
"**/redux-devtools-instrument/symbol-observable": "^2.0.3",
"**/rxjs/symbol-observable": "^2.0.3",
@ -97,6 +98,7 @@
"3box/**/libp2p-keychain/node-forge": "^1.3.0",
"3box/ipfs/libp2p-webrtc-star/socket.io/engine.io": "^4.0.0",
"analytics-node/axios": "^0.21.2",
"depcheck/@babel/parser": "7.16.4",
"ganache-core/lodash": "^4.17.21",
"netmask": "^2.0.1",
"pubnub/superagent-proxy": "^3.0.0",
@ -270,7 +272,22 @@
"@testing-library/react-hooks": "^3.2.1",
"@testing-library/user-event": "^14.0.0-beta.12",
"@tsconfig/node14": "^1.0.1",
"@types/babelify": "^7.3.7",
"@types/browserify": "^12.0.37",
"@types/end-of-stream": "^1.4.1",
"@types/fs-extra": "^9.0.13",
"@types/gulp": "^4.0.9",
"@types/gulp-autoprefixer": "^0.0.33",
"@types/gulp-dart-sass": "^1.0.1",
"@types/gulp-sourcemaps": "^0.0.35",
"@types/madge": "^5.0.0",
"@types/node": "^17.0.21",
"@types/pify": "^5.0.1",
"@types/pump": "^1.1.1",
"@types/react": "^16.9.53",
"@types/react-dom": "^17.0.11",
"@types/watchify": "^3.11.1",
"@types/yargs": "^17.0.8",
"@typescript-eslint/eslint-plugin": "^5.30.7",
"@typescript-eslint/parser": "^5.30.7",
"addons-linter": "^5.2.0",
@ -281,14 +298,16 @@
"browserify": "^16.5.1",
"chalk": "^3.0.0",
"chromedriver": "^103.0.0",
"chokidar": "^3.5.3",
"concurrently": "^5.2.0",
"copy-webpack-plugin": "^6.0.3",
"cross-spawn": "^7.0.3",
"css-loader": "^2.1.1",
"css-to-xpath": "^0.1.0",
"csstype": "^3.0.11",
"del": "^3.0.0",
"depcheck": "^1.4.2",
"dependency-tree": "^8.1.1",
"dependency-tree": "^8.1.2",
"duplexify": "^4.1.1",
"enzyme": "^3.10.0",
"enzyme-adapter-react-16": "^1.15.1",
@ -309,6 +328,7 @@
"fs-extra": "^8.1.0",
"ganache": "^v7.0.4",
"geckodriver": "^1.21.0",
"gh-pages": "^3.2.3",
"globby": "^11.0.4",
"gulp": "^4.0.2",
"gulp-autoprefixer": "^5.0.0",
@ -334,6 +354,7 @@
"lavamoat-viz": "^6.0.9",
"lockfile-lint": "^4.0.0",
"loose-envify": "^1.4.0",
"madge": "^5.0.1",
"mocha": "^7.2.0",
"mockttp": "^2.6.0",
"nock": "^9.0.14",
@ -366,6 +387,7 @@
"stylelint": "^13.6.1",
"terser": "^5.7.0",
"through2": "^4.0.2",
"ts-node": "^10.5.0",
"ttest": "^2.1.1",
"typescript": "~4.4.0",
"vinyl": "^2.2.1",

@ -0,0 +1,16 @@
diff --git a/node_modules/@types/madge/index.d.ts b/node_modules/@types/madge/index.d.ts
index f2a8652..3a26bfe 100755
--- a/node_modules/@types/madge/index.d.ts
+++ b/node_modules/@types/madge/index.d.ts
@@ -265,6 +265,10 @@ declare namespace madge {
*
* @default undefined
*/
- dependencyFilter?: (id: string) => boolean;
+ dependencyFilter?: (
+ dependencyFilePath: string,
+ traversedFilePath: string,
+ baseDir: string,
+ ) => boolean;
}
}

@ -2,6 +2,7 @@
"compilerOptions": {
"allowJs": true,
"allowSyntheticDefaultImports": true,
"baseUrl": ".",
"inlineSources": true,
"isolatedModules": true,
"jsx": "react",
@ -22,5 +23,8 @@
"dist/**/*",
"node_modules/**"
],
"extends": "@tsconfig/node14/tsconfig.json"
"extends": "@tsconfig/node14/tsconfig.json",
"paths": {
"*": ["./types/*"]
}
}

@ -0,0 +1,5 @@
declare module 'classnames' {
export default function classnames(
...args: (string | Record<string, boolean>)[]
): string;
}

@ -0,0 +1,71 @@
// Copied from <https://github.com/tvkhoa/react-tippy/blob/c6e6169e3f2cabe05f1bfbd7e0dea1ddef4debe8/index.d.ts>
// which for some reason is not included in the distributed version
declare module 'react-tippy' {
import * as React from 'react';
export type Position =
| 'top'
| 'top-start'
| 'top-end'
| 'bottom'
| 'bottom-start'
| 'bottom-end'
| 'left'
| 'left-start'
| 'left-end'
| 'right'
| 'right-start'
| 'right-end';
export type Trigger = 'mouseenter' | 'focus' | 'click' | 'manual';
export type Animation = 'shift' | 'perspective' | 'fade' | 'scale' | 'none';
export type Size = 'small' | 'regular' | 'big';
export type Theme = 'dark' | 'light' | 'transparent';
export interface TooltipProps {
title?: string;
disabled?: boolean;
open?: boolean;
useContext?: boolean;
onRequestClose?: () => void;
position?: Position;
trigger?: Trigger;
tabIndex?: number;
interactive?: boolean;
interactiveBorder?: number;
delay?: number;
hideDelay?: number;
animation?: Animation;
arrow?: boolean;
arrowSize?: Size;
animateFill?: boolean;
duration?: number;
hideDuration?: number;
distance?: number;
offset?: number;
hideOnClick?: boolean | 'persistent';
multiple?: boolean;
followCursor?: boolean;
inertia?: boolean;
transitionFlip?: boolean;
popperOptions?: any;
html?: React.ReactElement<any>;
unmountHTMLWhenHide?: boolean;
size?: Size;
sticky?: boolean;
stickyDuration?: boolean;
beforeShown?: () => void;
shown?: () => void;
beforeHidden?: () => void;
hidden?: () => void;
theme?: Theme;
className?: string;
style?: React.CSSProperties;
}
export class Tooltip extends React.Component<TooltipProps> {}
export function withTooltip<P>(
component: React.ComponentType<P>,
options: TooltipProps,
): JSX.Element;
}

9
types/react.d.ts vendored

@ -0,0 +1,9 @@
declare namespace React {
/* eslint-disable-next-line import/no-extraneous-dependencies */
import * as CSS from 'csstype';
// Add custom CSS properties so that they can be used in `style` props
export interface CSSProperties extends CSS.Properties<string | number> {
'--progress'?: string;
}
}

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save