@jaw.id/ui 0.4.14 → 1.0.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.
@@ -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.4";
53135
+ var XL = "0.4.5";
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",
@@ -59210,7 +59223,7 @@ var pW = ({ open: e, onOpenChange: t, message: n, origin: r, timestamp: i, appNa
59210
59223
  children: /* @__PURE__ */ B(_N, {
59211
59224
  type: "multiple",
59212
59225
  className: "w-full",
59213
- defaultValue: [],
59226
+ defaultValue: [o],
59214
59227
  children: /* @__PURE__ */ V(vN, {
59215
59228
  value: o,
59216
59229
  className: "border-none",
@@ -59315,7 +59328,7 @@ var pW = ({ open: e, onOpenChange: t, message: n, origin: r, timestamp: i, appNa
59315
59328
  children: /* @__PURE__ */ B(_N, {
59316
59329
  type: "multiple",
59317
59330
  className: "w-full",
59318
- defaultValue: [],
59331
+ defaultValue: [a],
59319
59332
  children: /* @__PURE__ */ V(vN, {
59320
59333
  value: a,
59321
59334
  className: "border-none",
@@ -59499,7 +59512,7 @@ var pW = ({ open: e, onOpenChange: t, message: n, origin: r, timestamp: i, appNa
59499
59512
  children: /* @__PURE__ */ V("div", {
59500
59513
  className: "flex flex-col justify-between gap-6 max-md:h-full",
59501
59514
  children: [/* @__PURE__ */ V("div", {
59502
- className: "flex max-h-[60vh] min-h-0 flex-col gap-3 overflow-y-auto max-md:flex-1",
59515
+ className: "flex min-h-0 flex-col gap-3 max-md:flex-1",
59503
59516
  children: [
59504
59517
  (() => {
59505
59518
  if (!y) return /* @__PURE__ */ B("div", {
@@ -59511,16 +59524,13 @@ var pW = ({ open: e, onOpenChange: t, message: n, origin: r, timestamp: i, appNa
59511
59524
  });
59512
59525
  let e = /* @__PURE__ */ B("div", {
59513
59526
  ref: h,
59514
- className: "bg-muted/30 dark:bg-muted/10 border-border flex overflow-y-auto rounded-[6px] border p-3",
59527
+ className: "bg-muted/30 dark:bg-muted/10 border-border max-h-[50vh] overflow-y-auto rounded-[6px] border p-3",
59515
59528
  children: /* @__PURE__ */ B(bW, {
59516
59529
  data: y,
59517
59530
  depth: 0
59518
59531
  })
59519
59532
  });
59520
- return !x || x.rows.length === 0 ? /* @__PURE__ */ B("div", {
59521
- className: "max-h-[50vh] flex-1",
59522
- children: e
59523
- }) : /* @__PURE__ */ V("div", {
59533
+ return !x || x.rows.length === 0 ? e : /* @__PURE__ */ V("div", {
59524
59534
  className: "flex flex-col gap-2",
59525
59535
  children: [/* @__PURE__ */ B("div", {
59526
59536
  className: "bg-muted/30 dark:bg-muted/10 border-border rounded-[6px] border p-3",
@@ -59535,7 +59545,7 @@ var pW = ({ open: e, onOpenChange: t, message: n, origin: r, timestamp: i, appNa
59535
59545
  className: "text-muted-foreground hover:text-foreground cursor-pointer",
59536
59546
  children: "Show raw details"
59537
59547
  }), /* @__PURE__ */ B("div", {
59538
- className: "mt-1 max-h-[40vh]",
59548
+ className: "mt-1",
59539
59549
  children: e
59540
59550
  })]
59541
59551
  })]
@@ -59672,7 +59682,7 @@ var pW = ({ open: e, onOpenChange: t, message: n, origin: r, timestamp: i, appNa
59672
59682
  };
59673
59683
  }, []);
59674
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) => {
59675
- 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));
59676
59686
  }, fe = !h && !_ && !ie && !x && (!S || C), pe = o.length, me = s.length, he = pe + me;
59677
59687
  return /* @__PURE__ */ B(jo, {
59678
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.14",
4
+ "version": "1.0.0",
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.0",
61
61
  "@hookform/resolvers": "^5.2.2",
62
62
  "@justaname.id/sdk": "^0.2.204",
63
63
  "@radix-ui/react-accordion": "^1.2.12",