@thenamespace/ens-components 0.27.0 → 0.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,8 +1,10 @@
1
+ import * as viem from 'viem';
2
+ import { parseAbi, UserRejectedRequestError, isAddress as isAddress$1, namehash, encodeFunctionData, toHex, toBytes as toBytes$1, pad, ContractFunctionExecutionError, keccak256, formatEther, zeroAddress, zeroHash } from 'viem';
3
+ import * as chains$1 from 'viem/chains';
4
+ import { zoraSepolia, zora, celoAlfajores, celo, polygonMumbai, polygon, arbitrumSepolia, arbitrum, optimismSepolia, optimism as optimism$1, baseSepolia as baseSepolia$1, base as base$5, sepolia as sepolia$1, mainnet as mainnet$1 } from 'viem/chains';
1
5
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
2
6
  import * as React52 from 'react';
3
7
  import React52__default, { forwardRef, createElement, useState, useRef, useEffect, createContext, useContext, useCallback, useMemo, Fragment as Fragment$1, useReducer, useLayoutEffect } from 'react';
4
- import require$$0$1, { zoraSepolia, zora, celoAlfajores, celo, polygonMumbai, polygon, arbitrumSepolia, arbitrum, optimismSepolia, optimism as optimism$1, baseSepolia as baseSepolia$1, base as base$5, sepolia as sepolia$1, mainnet as mainnet$1 } from 'viem/chains';
5
- import require$$0$2, { parseAbi, UserRejectedRequestError, isAddress as isAddress$1, namehash, encodeFunctionData, toHex, toBytes as toBytes$1, pad, ContractFunctionExecutionError, keccak256, formatEther, zeroAddress, zeroHash } from 'viem';
6
8
  import { createConfig, http, createConnector, useAccountEffect, useConfig, usePublicClient, useAccount, useBalance, useConnect, useDisconnect, useSwitchChain, useSignMessage, useEnsName, useEnsAvatar, WagmiProvider, useWalletClient } from 'wagmi';
7
9
  import { normalize } from 'viem/ens';
8
10
  import { mainnet, optimism, baseSepolia, base as base$4, sepolia } from 'wagmi/chains';
@@ -4454,35 +4456,6 @@ function assignInlineVars(varsOrContract, tokens) {
4454
4456
 
4455
4457
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4456
4458
 
4457
- function getAugmentedNamespace(n) {
4458
- if (Object.prototype.hasOwnProperty.call(n, '__esModule')) return n;
4459
- var f = n.default;
4460
- if (typeof f == "function") {
4461
- var a = function a () {
4462
- var isInstance = false;
4463
- try {
4464
- isInstance = this instanceof a;
4465
- } catch {}
4466
- if (isInstance) {
4467
- return Reflect.construct(f, arguments, this.constructor);
4468
- }
4469
- return f.apply(this, arguments);
4470
- };
4471
- a.prototype = f.prototype;
4472
- } else a = {};
4473
- Object.defineProperty(a, '__esModule', {value: true});
4474
- Object.keys(n).forEach(function (k) {
4475
- var d = Object.getOwnPropertyDescriptor(n, k);
4476
- Object.defineProperty(a, k, d.get ? d : {
4477
- enumerable: true,
4478
- get: function () {
4479
- return n[k];
4480
- }
4481
- });
4482
- });
4483
- return a;
4484
- }
4485
-
4486
4459
  var uaParser$1 = {exports: {}};
4487
4460
 
4488
4461
  var uaParser = uaParser$1.exports;
@@ -30194,7 +30167,7 @@ function requireChains () {
30194
30167
  (function (exports) {
30195
30168
  Object.defineProperty(exports, "__esModule", { value: true });
30196
30169
  exports.getChainName = exports.getChain = exports.getChainId = exports.ListingChain = void 0;
30197
- const chains_1 = require$$0$1;
30170
+ const chains_1 = chains$1;
30198
30171
  /**
30199
30172
  * Supported networks for listing/minting operations.
30200
30173
  */
@@ -44452,8 +44425,6 @@ var concat$1 = /*#__PURE__*/Object.freeze({
44452
44425
  concat: concat
44453
44426
  });
44454
44427
 
44455
- var require$$4$1 = /*@__PURE__*/getAugmentedNamespace(concat$1);
44456
-
44457
44428
  function base$2(ALPHABET, name) {
44458
44429
  if (ALPHABET.length >= 255) {
44459
44430
  throw new TypeError('Alphabet too long');
@@ -45066,8 +45037,6 @@ var toString$1 = /*#__PURE__*/Object.freeze({
45066
45037
  toString: toString
45067
45038
  });
45068
45039
 
45069
- var require$$5 = /*@__PURE__*/getAugmentedNamespace(toString$1);
45070
-
45071
45040
  function fromString(string, encoding = 'utf8') {
45072
45041
  const base = BASES[encoding];
45073
45042
  if (!base) {
@@ -45084,8 +45053,6 @@ var fromString$1 = /*#__PURE__*/Object.freeze({
45084
45053
  fromString: fromString
45085
45054
  });
45086
45055
 
45087
- var require$$4 = /*@__PURE__*/getAugmentedNamespace(fromString$1);
45088
-
45089
45056
  var util$3;
45090
45057
  var hasRequiredUtil$3;
45091
45058
 
@@ -45094,8 +45061,8 @@ function requireUtil$3 () {
45094
45061
  hasRequiredUtil$3 = 1;
45095
45062
 
45096
45063
  const varint = requireVarint$2();
45097
- const { toString: uint8ArrayToString } = require$$5;
45098
- const { fromString: uint8ArrayFromString } = require$$4;
45064
+ const { toString: uint8ArrayToString } = toString$1;
45065
+ const { fromString: uint8ArrayFromString } = fromString$1;
45099
45066
 
45100
45067
  util$3 = {
45101
45068
  numberToUint8Array,
@@ -45696,7 +45663,7 @@ function requireSrc$8 () {
45696
45663
  /** @typedef {import('./generated-types').CodecCode} CodecCode */
45697
45664
 
45698
45665
  const varint = requireVarint$2();
45699
- const { concat: uint8ArrayConcat } = require$$4$1;
45666
+ const { concat: uint8ArrayConcat } = concat$1;
45700
45667
  const util = requireUtil$3();
45701
45668
  const { nameToVarint, constantToCode, nameToCode, codeToName } = requireMaps();
45702
45669
 
@@ -55567,9 +55534,9 @@ function requireSrc$2 () {
55567
55534
  const multibase = requireSrc$3();
55568
55535
  const varint = requireVarint();
55569
55536
  const { names } = requireConstants();
55570
- const { toString: uint8ArrayToString } = require$$5;
55571
- const { fromString: uint8ArrayFromString } = require$$4;
55572
- const { concat: uint8ArrayConcat } = require$$4$1;
55537
+ const { toString: uint8ArrayToString } = toString$1;
55538
+ const { fromString: uint8ArrayFromString } = fromString$1;
55539
+ const { concat: uint8ArrayConcat } = concat$1;
55573
55540
 
55574
55541
  const codes = /** @type {import('./types').CodeNameMap} */({});
55575
55542
 
@@ -55890,8 +55857,6 @@ var equals$1 = /*#__PURE__*/Object.freeze({
55890
55857
  equals: equals
55891
55858
  });
55892
55859
 
55893
- var require$$6 = /*@__PURE__*/getAugmentedNamespace(equals$1);
55894
-
55895
55860
  var src$1;
55896
55861
  var hasRequiredSrc$1;
55897
55862
 
@@ -55903,9 +55868,9 @@ function requireSrc$1 () {
55903
55868
  const multibase = requireSrc$3();
55904
55869
  const multicodec = requireSrc$8();
55905
55870
  const CIDUtil = requireCidUtil();
55906
- const { concat: uint8ArrayConcat } = require$$4$1;
55907
- const { toString: uint8ArrayToString } = require$$5;
55908
- const { equals: uint8ArrayEquals } = require$$6;
55871
+ const { concat: uint8ArrayConcat } = concat$1;
55872
+ const { toString: uint8ArrayToString } = toString$1;
55873
+ const { equals: uint8ArrayEquals } = equals$1;
55909
55874
 
55910
55875
  const codecs = multicodec.nameToCode;
55911
55876
  const codecInts = /** @type {CodecName[]} */(Object.keys(codecs)).reduce((p, name) => {
@@ -56975,7 +56940,7 @@ function requireUtils () {
56975
56940
  hasRequiredUtils = 1;
56976
56941
  Object.defineProperty(utils$3, "__esModule", { value: true });
56977
56942
  utils$3.convertEnsRecordsToResolverData = void 0;
56978
- const viem_1 = require$$0$2;
56943
+ const viem_1 = viem;
56979
56944
  const address_encoder_1 = /*@__PURE__*/ requireCjs();
56980
56945
  const address_records_1 = requireAddressRecords();
56981
56946
  //@ts-ignore
@@ -57069,7 +57034,7 @@ function requireMintClient () {
57069
57034
  mintClient.createMintClient = createMintClient;
57070
57035
  const axios_1 = __importDefault(/*@__PURE__*/ requireAxios());
57071
57036
  const env_1 = requireEnv();
57072
- const viem_1 = require$$0$2;
57037
+ const viem_1 = viem;
57073
57038
  const chains_1 = requireChains();
57074
57039
  const abi_1 = requireAbi();
57075
57040
  const addresses_1 = requireDist$1();