@xrpl-wallet-kit/browser 0.1.5 → 0.1.6

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/README.md CHANGED
@@ -8,13 +8,13 @@ Browser-ready XRPL Wallet Kit bundle for vanilla JavaScript and legacy HTML site
8
8
  npm install @xrpl-wallet-kit/browser
9
9
  ```
10
10
 
11
- The package publishes:
12
-
13
- - `dist/xrpl-wallet-kit.iife.js`
14
- - `dist/xrpl-wallet-kit.iife.min.js`
15
- - `dist/xrpl-wallet-kit-legacy-bridge.js`
16
-
17
- ## Basic HTML
11
+ The package publishes:
12
+
13
+ - `dist/xrpl-wallet-kit.iife.js`
14
+ - `dist/xrpl-wallet-kit.iife.min.js`
15
+ - `dist/xrpl-wallet-kit-legacy-bridge.js` optional compatibility helper
16
+
17
+ ## Basic HTML
18
18
 
19
19
  ```html
20
20
  <div id="connect-wallet"></div>
@@ -38,9 +38,9 @@ The package publishes:
38
38
  </script>
39
39
  ```
40
40
 
41
- ## Legacy Bridge
42
-
43
- Use `xrpl-wallet-kit-legacy-bridge.js` when a legacy page needs a smaller integration surface around the browser bundle. The bridge is intended for Legacy HTML apps that want to mount the connect button and read wallet state without migrating the whole app at once.
41
+ ## Legacy Bridge
42
+
43
+ Most HTML integrations only need `xrpl-wallet-kit.iife.min.js`. Use `xrpl-wallet-kit-legacy-bridge.js` only when an older page needs compatibility helpers around the browser bundle. The bridge is intended for Legacy HTML apps that want to mount beside an existing connect button, map older adapter ids, sync session state into legacy callbacks, or patch an existing wallet facade without migrating the whole app at once.
44
44
 
45
45
  ## Notes
46
46
 
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import "./buffer-polyfill";
1
+ import "./buffer-polyfill.js";
2
2
  export * from "@xrpl-wallet-kit/client";
3
3
  export { createWalletKit as create, createWalletClient as createClient } from "@xrpl-wallet-kit/client";
@@ -1,3 +1,4 @@
1
+ /*! @xrpl-wallet-kit/browser v0.1.6 | MIT | https://github.com/XRPDomains/xrpl-wallet-kit */
1
2
  var __defProp = Object.defineProperty;
2
3
  var __typeError = (msg) => {
3
4
  throw TypeError(msg);
@@ -1,3 +1,4 @@
1
+ /*! @xrpl-wallet-kit/browser v0.1.6 | MIT | https://github.com/XRPDomains/xrpl-wallet-kit */
1
2
  var ire=Object.defineProperty;var CR=fe=>{throw TypeError(fe)};var sre=(fe,mt,it)=>mt in fe?ire(fe,mt,{enumerable:!0,configurable:!0,writable:!0,value:it}):fe[mt]=it;var Z=(fe,mt,it)=>sre(fe,typeof mt!="symbol"?mt+"":mt,it),ore=(fe,mt,it)=>mt.has(fe)||CR("Cannot "+it);var Zd=(fe,mt,it)=>(ore(fe,mt,"read from private field"),it?it.call(fe):mt.get(fe)),G0=(fe,mt,it)=>mt.has(fe)?CR("Cannot add the same private member more than once"):mt instanceof WeakSet?mt.add(fe):mt.set(fe,it);(function(fe){"use strict";var Ps;function mt(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in t)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(t,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var it=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function or(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function X0(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var Y0={},Yc={},Wv;function LR(){if(Wv)return Yc;Wv=1,Yc.byteLength=a,Yc.toByteArray=l,Yc.fromByteArray=f;for(var t=[],e=[],n=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,s=r.length;i<s;++i)t[i]=r[i],e[r.charCodeAt(i)]=i;e[45]=62,e[95]=63;function o(p){var m=p.length;if(m%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var h=p.indexOf("=");h===-1&&(h=m);var g=h===m?0:4-h%4;return[h,g]}function a(p){var m=o(p),h=m[0],g=m[1];return(h+g)*3/4-g}function c(p,m,h){return(m+h)*3/4-h}function l(p){var m,h=o(p),g=h[0],w=h[1],E=new n(c(p,g,w)),y=0,b=w>0?g-4:g,S;for(S=0;S<b;S+=4)m=e[p.charCodeAt(S)]<<18|e[p.charCodeAt(S+1)]<<12|e[p.charCodeAt(S+2)]<<6|e[p.charCodeAt(S+3)],E[y++]=m>>16&255,E[y++]=m>>8&255,E[y++]=m&255;return w===2&&(m=e[p.charCodeAt(S)]<<2|e[p.charCodeAt(S+1)]>>4,E[y++]=m&255),w===1&&(m=e[p.charCodeAt(S)]<<10|e[p.charCodeAt(S+1)]<<4|e[p.charCodeAt(S+2)]>>2,E[y++]=m>>8&255,E[y++]=m&255),E}function d(p){return t[p>>18&63]+t[p>>12&63]+t[p>>6&63]+t[p&63]}function u(p,m,h){for(var g,w=[],E=m;E<h;E+=3)g=(p[E]<<16&16711680)+(p[E+1]<<8&65280)+(p[E+2]&255),w.push(d(g));return w.join("")}function f(p){for(var m,h=p.length,g=h%3,w=[],E=16383,y=0,b=h-g;y<b;y+=E)w.push(u(p,y,y+E>b?b:y+E));return g===1?(m=p[h-1],w.push(t[m>>2]+t[m<<4&63]+"==")):g===2&&(m=(p[h-2]<<8)+p[h-1],w.push(t[m>>10]+t[m>>4&63]+t[m<<2&63]+"=")),w.join("")}return Yc}var ef={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var Kv;function MR(){return Kv||(Kv=1,ef.read=function(t,e,n,r,i){var s,o,a=i*8-r-1,c=(1<<a)-1,l=c>>1,d=-7,u=n?i-1:0,f=n?-1:1,p=t[e+u];for(u+=f,s=p&(1<<-d)-1,p>>=-d,d+=a;d>0;s=s*256+t[e+u],u+=f,d-=8);for(o=s&(1<<-d)-1,s>>=-d,d+=r;d>0;o=o*256+t[e+u],u+=f,d-=8);if(s===0)s=1-l;else{if(s===c)return o?NaN:(p?-1:1)*(1/0);o=o+Math.pow(2,r),s=s-l}return(p?-1:1)*o*Math.pow(2,s-r)},ef.write=function(t,e,n,r,i,s){var o,a,c,l=s*8-i-1,d=(1<<l)-1,u=d>>1,f=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:s-1,m=r?1:-1,h=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=d):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),o+u>=1?e+=f/c:e+=f*Math.pow(2,1-u),e*c>=2&&(o++,c/=2),o+u>=d?(a=0,o=d):o+u>=1?(a=(e*c-1)*Math.pow(2,i),o=o+u):(a=e*Math.pow(2,u-1)*Math.pow(2,i),o=0));i>=8;t[n+p]=a&255,p+=m,a/=256,i-=8);for(o=o<<i|a,l+=i;l>0;t[n+p]=o&255,p+=m,o/=256,l-=8);t[n+p-m]|=h*128}),ef}/*!
2
3
  * The buffer module from node.js, for the browser.
3
4
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xrpl-wallet-kit/browser",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Browser-ready XRPL Wallet Kit bundle for vanilla JavaScript and legacy HTML sites.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -24,7 +24,7 @@
24
24
  "build": "vite build --mode readable && vite build --mode minified && node -e \"require('node:fs').rmSync('tsconfig.tsbuildinfo',{force:true})\" && tsc -p tsconfig.json"
25
25
  },
26
26
  "dependencies": {
27
- "@xrpl-wallet-kit/client": "0.1.5",
27
+ "@xrpl-wallet-kit/client": "0.1.6",
28
28
  "buffer": "^6.0.3"
29
29
  },
30
30
  "devDependencies": {