@jaw.id/ui 0.4.15 → 1.0.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/OnboardingDialog/index.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAKhD,wBAAgB,gBAAgB,CAAC,EAC/B,QAAQ,EACR,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,WAAW,EACX,eAAe,EACf,yBAAyB,EACzB,UAAU,EACV,SAAS,EACT,OAAO,EACP,aAAa,EACb,MAAM,EACN,eAAe,EACf,kBAAkB,GACnB,EAAE,qBAAqB,2CAoRvB;AAED,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/OnboardingDialog/index.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAKhD,wBAAgB,gBAAgB,CAAC,EAC/B,QAAQ,EACR,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,WAAW,EACX,eAAe,EACf,yBAAyB,EACzB,UAAU,EACV,SAAS,EACT,OAAO,EACP,aAAa,EACb,MAAM,EACN,eAAe,EACf,kBAAkB,GACnB,EAAE,qBAAqB,2CA6RvB;AAED,cAAc,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SiweDialog/index.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,eAAO,MAAM,UAAU,GAAI,6MAmBxB,eAAe,4CAuMjB,CAAC;AAEF,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SiweDialog/index.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,eAAO,MAAM,UAAU,GAAI,6MAmBxB,eAAe,4CAyMjB,CAAC;AAEF,cAAc,SAAS,CAAC"}
package/dist/index.js CHANGED
@@ -50510,6 +50510,11 @@ function fM({ accounts: e, onAccountSelect: t, loggingInAccount: n, onImportAcco
50510
50510
  value: x,
50511
50511
  onChange: (e) => S(e.target.value),
50512
50512
  className: "flex-1",
50513
+ autoComplete: "off",
50514
+ "data-1p-ignore": !0,
50515
+ "data-lpignore": "true",
50516
+ "data-form-type": "other",
50517
+ "data-bwignore": !0,
50513
50518
  right: c ? /* @__PURE__ */ B("span", {
50514
50519
  className: "text-foreground text-sm font-bold",
50515
50520
  children: `.${c}`
@@ -53127,7 +53132,7 @@ function YL(e = 768) {
53127
53132
  }
53128
53133
  //#endregion
53129
53134
  //#region ../core/dist/sdk-info.js
53130
- var XL = "0.4.5";
53135
+ var XL = "1.0.0";
53131
53136
  (/* @__PURE__ */ L(((e, t) => {
53132
53137
  var n = Object.prototype.hasOwnProperty, r = "~";
53133
53138
  function i() {}
@@ -53404,10 +53409,18 @@ var sR = () => ({ chains: [] }), cR = () => ({ keys: {} }), lR = () => ({ accoun
53404
53409
  ...dR(...e)
53405
53410
  }), {
53406
53411
  name: "jawsdk.store",
53407
- storage: rR(() => typeof localStorage < "u" ? localStorage : {
53408
- getItem: () => null,
53409
- setItem() {},
53410
- removeItem() {}
53412
+ storage: rR(() => {
53413
+ try {
53414
+ if (typeof localStorage < "u" && typeof localStorage.setItem == "function") {
53415
+ let e = "__jawsdk_storage_probe__";
53416
+ return localStorage.setItem(e, "1"), localStorage.removeItem(e), localStorage;
53417
+ }
53418
+ } catch {}
53419
+ return {
53420
+ getItem: () => null,
53421
+ setItem() {},
53422
+ removeItem() {}
53423
+ };
53411
53424
  }),
53412
53425
  partialize: (e) => {
53413
53426
  let t = Object.entries(e.callStatuses).reduce((e, [t, n]) => (e[t] = {
@@ -57919,7 +57932,7 @@ var KU = ({ to: e, data: t, chainId: n, apiKey: r, resolvedAddresses: i, resolve
57919
57932
  width: 14,
57920
57933
  height: 14,
57921
57934
  onClick: () => {
57922
- typeof window < "u" && navigator?.clipboard && (navigator.clipboard.writeText(j.to), w((e) => ({
57935
+ typeof window < "u" && navigator?.clipboard && (navigator.clipboard.writeText(j.to).catch(() => void 0), w((e) => ({
57923
57936
  ...e,
57924
57937
  "single-to": !0
57925
57938
  })), setTimeout(() => w((e) => ({
@@ -58099,7 +58112,7 @@ var KU = ({ to: e, data: t, chainId: n, apiKey: r, resolvedAddresses: i, resolve
58099
58112
  width: 16,
58100
58113
  height: 16,
58101
58114
  onClick: () => {
58102
- typeof window < "u" && navigator?.clipboard && (navigator.clipboard.writeText(j?.data ?? ""), S({
58115
+ typeof window < "u" && navigator?.clipboard && (navigator.clipboard.writeText(j?.data ?? "").catch(() => void 0), S({
58103
58116
  ...x,
58104
58117
  0: !0
58105
58118
  }), setTimeout(() => S((e) => ({
@@ -58188,7 +58201,7 @@ var KU = ({ to: e, data: t, chainId: n, apiKey: r, resolvedAddresses: i, resolve
58188
58201
  width: 14,
58189
58202
  height: 14,
58190
58203
  onClick: () => {
58191
- typeof window < "u" && navigator?.clipboard && (navigator.clipboard.writeText(e.to), w((e) => ({
58204
+ typeof window < "u" && navigator?.clipboard && (navigator.clipboard.writeText(e.to).catch(() => void 0), w((e) => ({
58192
58205
  ...e,
58193
58206
  [`to-${t}`]: !0
58194
58207
  })), setTimeout(() => w((e) => ({
@@ -58256,7 +58269,7 @@ var KU = ({ to: e, data: t, chainId: n, apiKey: r, resolvedAddresses: i, resolve
58256
58269
  width: 16,
58257
58270
  height: 16,
58258
58271
  onClick: (n) => {
58259
- n.stopPropagation(), typeof window < "u" && navigator?.clipboard && (navigator.clipboard.writeText(e.data ?? ""), S({
58272
+ n.stopPropagation(), typeof window < "u" && navigator?.clipboard && (navigator.clipboard.writeText(e.data ?? "").catch(() => void 0), S({
58260
58273
  ...x,
58261
58274
  [t]: !0
58262
58275
  }), setTimeout(() => S((e) => ({
@@ -58834,7 +58847,7 @@ var pW = ({ open: e, onOpenChange: t, message: n, origin: r, timestamp: i, appNa
58834
58847
  }), /* @__PURE__ */ B(ds, {
58835
58848
  className: "h-4 w-4 cursor-pointer",
58836
58849
  onClick: () => {
58837
- navigator.clipboard.writeText(n);
58850
+ typeof window < "u" && navigator?.clipboard && navigator.clipboard.writeText(n).catch(() => void 0);
58838
58851
  }
58839
58852
  })]
58840
58853
  }), /* @__PURE__ */ B("div", {
@@ -58979,7 +58992,7 @@ var pW = ({ open: e, onOpenChange: t, message: n, origin: r, timestamp: i, appNa
58979
58992
  return i;
58980
58993
  }
58981
58994
  }, w = (e) => {
58982
- typeof window < "u" && navigator?.clipboard && (navigator.clipboard.writeText(e), b(!0), setTimeout(() => b(!1), 3e3));
58995
+ typeof window < "u" && navigator?.clipboard && (navigator.clipboard.writeText(e).catch(() => void 0), b(!0), setTimeout(() => b(!1), 3e3));
58983
58996
  }, T = (e) => !e || e.length < 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}`;
58984
58997
  return /* @__PURE__ */ B(jo, {
58985
58998
  open: e,
@@ -59045,8 +59058,8 @@ var pW = ({ open: e, onOpenChange: t, message: n, origin: r, timestamp: i, appNa
59045
59058
  maxWidth: "none",
59046
59059
  maxHeight: "none"
59047
59060
  } : {
59048
- width: "fit-content",
59049
- maxWidth: "500px"
59061
+ width: "450px",
59062
+ minWidth: "450px"
59050
59063
  },
59051
59064
  children: /* @__PURE__ */ V("div", {
59052
59065
  className: "flex h-full min-h-0 flex-col gap-3 overflow-y-auto",
@@ -59669,7 +59682,7 @@ var pW = ({ open: e, onOpenChange: t, message: n, origin: r, timestamp: i, appNa
59669
59682
  };
59670
59683
  }, []);
59671
59684
  let oe = pz(u || 1, f, 24), se = d || oe, ce = (e) => e.toLowerCase() === "0x3232323232323232323232323232323232323232" ? "Any Contract" : null, le = (e, t) => t?.toLowerCase() === "0x32323232" ? "Any Function" : e, ue = (e) => e ? `${e.slice(0, 5)}...${e.slice(-4)}` : "", de = (e, t) => {
59672
- typeof window < "u" && navigator?.clipboard && (navigator.clipboard.writeText(e), t(!0), setTimeout(() => t(!1), 3e3));
59685
+ typeof window < "u" && navigator?.clipboard && (navigator.clipboard.writeText(e).catch(() => void 0), t(!0), setTimeout(() => t(!1), 3e3));
59673
59686
  }, fe = !h && !_ && !ie && !x && (!S || C), pe = o.length, me = s.length, he = pe + me;
59674
59687
  return /* @__PURE__ */ B(jo, {
59675
59688
  open: e,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jaw.id/ui",
3
3
  "description": "Pre-built React dialogs for JAW.id",
4
- "version": "0.4.15",
4
+ "version": "1.0.1",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "sideEffects": [
@@ -57,7 +57,7 @@
57
57
  "react-dom": ">=18.0.0"
58
58
  },
59
59
  "dependencies": {
60
- "@jaw.id/core": "0.4.5",
60
+ "@jaw.id/core": "1.0.1",
61
61
  "@hookform/resolvers": "^5.2.2",
62
62
  "@justaname.id/sdk": "^0.2.204",
63
63
  "@radix-ui/react-accordion": "^1.2.12",