@jaw.id/ui 0.4.12 → 0.4.14

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.
@@ -6,5 +6,6 @@ export * from './tokenBalance';
6
6
  export * from './resolveChainLabel';
7
7
  export * from './clearSigning';
8
8
  export * from './siwe';
9
+ export * from './sanitize';
9
10
  export * from './safeUrl';
10
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Sanitize an untrusted, externally-controlled display string (a dApp/SIWE app
3
+ * name) before it's shown as an identity header in a trust dialog: strip
4
+ * control/bidi/zero-width chars and cap length. Returns '' when nothing legible
5
+ * remains so callers can fall back to a default.
6
+ */
7
+ export declare function sanitizeDisplayName(name: string, maxLength?: number): string;
8
+ //# sourceMappingURL=sanitize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sanitize.d.ts","sourceRoot":"","sources":["../../src/utils/sanitize.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,SAAK,GAAG,MAAM,CAOxE"}
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.12",
4
+ "version": "0.4.14",
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.4",
60
+ "@jaw.id/core": "0.4.5",
61
61
  "@hookform/resolvers": "^5.2.2",
62
62
  "@justaname.id/sdk": "^0.2.204",
63
63
  "@radix-ui/react-accordion": "^1.2.12",