Catalog npm
Back to packageRELEASE DETAILS

1.4.93

npm

@0xsquid/widget

A front end widget for using Squid

Published6 Jun 2023
Direct dependencies26
Transitive dependenciesNot calculated

README

Current package documentation

Squid Widget

Squid Widget is a cross-chain swap widget built with TypeScript & React. It is designed to be embedded into websites, providing an easy and convenient way to perform cross-chain swaps directly from the partner's website.

Tech Stack

Project Structure

├── src
│   ├── widget
│   │   ├── assets
│   │   ├── components
│   │   ├── connectors
│   │   ├── contracts
│   │   ├── core
│   │   ├── hooks
│   │   ├── services
│   │   ├── store
│   │   ├── views
│   └── index.tsx
├───index.ts
└───compiled-tailwind.css

External providers (Gnosis / Ledger)

For more informations about external providers, click here

Getting Started

Prerequisites

  • Node.js
  • Yarn

Installation

Install Yarn packages at the root folder

yarn

Development

The development server must be started from the nextjs package, which embeds the widget.

cd ../nextjs
yarn dev

Building

The build command must be run from the root folder as this is a lerna monorepo.

cd ../..
yarn build

Please note that TailwindCSS has to be built manually as it's embedded in the build. Therefore, sometimes you may have to run yarn build.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 26

Native requirements
26 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
clsx
Environment
{
  "local_name": "clsx",
  "alias": false,
  "peer_metadata": null
}
^1.2.1runtime
axios
Environment
{
  "local_name": "axios",
  "alias": false,
  "peer_metadata": null
}
^0.27.2runtime
color
Environment
{
  "local_name": "color",
  "alias": false,
  "peer_metadata": null
}
^4.2.3runtime
wagmi
Environment
{
  "local_name": "wagmi",
  "alias": false,
  "peer_metadata": null
}
^0.12.13runtime
lodash
Environment
{
  "local_name": "lodash",
  "alias": false,
  "peer_metadata": null
}
^4.17.21runtime
fuse.js
Environment
{
  "local_name": "fuse.js",
  "alias": false,
  "peer_metadata": null
}
^6.6.2runtime
zustand
Environment
{
  "local_name": "zustand",
  "alias": false,
  "peer_metadata": null
}
^4.1.1runtime
date-fns
Environment
{
  "local_name": "date-fns",
  "alias": false,
  "peer_metadata": null
}
^2.29.3runtime
secretjs
Environment
{
  "local_name": "secretjs",
  "alias": false,
  "peer_metadata": null
}
^1.8.1runtime
react-icons
Environment
{
  "local_name": "react-icons",
  "alias": false,
  "peer_metadata": null
}
^4.7.1runtime
@0xsquid/sdk
Environment
{
  "local_name": "@0xsquid/sdk",
  "alias": false,
  "peer_metadata": null
}
1.6.3runtime
@types/color
Environment
{
  "local_name": "@types/color",
  "alias": false,
  "peer_metadata": null
}
^3.0.3runtime
bignumber.js
Environment
{
  "local_name": "bignumber.js",
  "alias": false,
  "peer_metadata": null
}
^9.1.1runtime
@types/lodash
Environment
{
  "local_name": "@types/lodash",
  "alias": false,
  "peer_metadata": null
}
^4.14.186runtime
@cosmjs/stargate
Environment
{
  "local_name": "@cosmjs/stargate",
  "alias": false,
  "peer_metadata": null
}
^0.29.2runtime
@wagmi/connectors
Environment
{
  "local_name": "@wagmi/connectors",
  "alias": false,
  "peer_metadata": null
}
0.3.16runtime
react-content-loader
Environment
{
  "local_name": "react-content-loader",
  "alias": false,
  "peer_metadata": null
}
^6.2.0runtime
@tanstack/react-query
Environment
{
  "local_name": "@tanstack/react-query",
  "alias": false,
  "peer_metadata": null
}
^4.3.9runtime
@floating-ui/react-dom
Environment
{
  "local_name": "@floating-ui/react-dom",
  "alias": false,
  "peer_metadata": null
}
^1.0.1runtime
@ledgerhq/iframe-provider
Environment
{
  "local_name": "@ledgerhq/iframe-provider",
  "alias": false,
  "peer_metadata": null
}
^0.4.3runtime
@tanstack/react-query-devtools
Environment
{
  "local_name": "@tanstack/react-query-devtools",
  "alias": false,
  "peer_metadata": null
}
^4.3.9runtime
@lottiefiles/react-lottie-player
Environment
{
  "local_name": "@lottiefiles/react-lottie-player",
  "alias": false,
  "peer_metadata": null
}
^3.5.0runtime
@floating-ui/react-dom-interactions
Environment
{
  "local_name": "@floating-ui/react-dom-interactions",
  "alias": false,
  "peer_metadata": null
}
^0.12.0runtime
react
Environment
{
  "local_name": "react",
  "alias": false,
  "peer_metadata": null
}
^16.0.0 || ^17.0.0 || ^18.0.0peer
ethers
Environment
{
  "local_name": "ethers",
  "alias": false,
  "peer_metadata": null
}
^5.7.2 || ^4.0.49peer
react-dom
Environment
{
  "local_name": "react-dom",
  "alias": false,
  "peer_metadata": null
}
^16.0.0 || ^17.0.0 || ^18.0.0peer

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "8fa254029ae2be5d69931593408669013e5fc2ba",
  "tarball": "https://registry.npmjs.org/@0xsquid/widget/-/widget-1.4.93.tgz",
  "fileCount": 1042,
  "integrity": "sha512-D0B6D35znFfoh3gZnUlclo3xQU0GWSymZ1TNb0SMNZKphvDeZB3WIZYYGukTEJwo0ZbmoP3tlLrfUDIoiLutFw==",
  "signatures": [
    {
      "sig": "MEUCIC3gn8tJYfc/wK1IAOK6n6HXPfccpZqkjeUBUvkNQmy6AiEA5j2SKOQd5fAExlWzwyQTRW1CFvcEKa1+EjywfggxN68=",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 4324415
}

Repository

PENDING
0xsquid/squid-widget

Shared repository data · GitHub

License detected in repository
Not collected

Repository

PENDING
0xsquid/api-widget

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 11:50 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:e701906f30035669ef40346790a991aff7ffbb6552e1c8ae0cdcea55426412ca

Other collected versions

7.0.019 Oct6.13.1-beta-nodev24.06 Oct6.17.029 Sept6.13.1-beta-bump-deps.024 Sept6.16.015 Sept6.15.09 SeptView all collected versions →