@coinbase/cdp-react 0.0.99 → 0.0.100

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,44 +1,44 @@
1
- import { jsx as l } from "react/jsx-runtime";
2
- import { c as u } from "../../chunks/lite.1fxw3LjI.js";
3
- import { useMemo as b } from "react";
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { c as b } from "../../chunks/lite.1fxw3LjI.js";
3
+ import { useMemo as g } from "react";
4
4
  import "../../chunks/CDPReactProvider.0yuqyXCv.js";
5
- import { IconAppleLogo as g } from "../../icons/IconAppleLogo.js";
6
- import { IconEnvelope as d } from "../../icons/IconEnvelope.js";
7
- import { IconGoogleColorLogo as f } from "../../icons/IconGoogleColorLogo.js";
8
- import { IconPhone as L } from "../../icons/IconPhone.js";
9
- import { IconTelegramLogo as _ } from "../../icons/IconTelegramLogo.js";
10
- import { IconXLogo as A } from "../../icons/IconXLogo.js";
11
- import { LinkAuthItem as P } from "./LinkAuthItem.js";
12
- import { useLinkAuthContext as T } from "./LinkAuthProvider.js";
13
- import '../../assets/LinkAuthItems.css';const k = "LinkAuthItems-module__list___5AimM", x = {
14
- list: k
15
- }, M = {
16
- email: { Icon: /* @__PURE__ */ l(d, { "aria-label": "Email" }), label: "Email" },
17
- sms: { Icon: /* @__PURE__ */ l(L, { "aria-label": "Phone" }), label: "Phone" },
18
- "oauth:google": { Icon: /* @__PURE__ */ l(f, { "aria-label": "Google" }), label: "Google" },
19
- "oauth:apple": { Icon: /* @__PURE__ */ l(g, { "aria-label": "Apple" }), label: "Apple" },
20
- "oauth:x": { Icon: /* @__PURE__ */ l(A, { "aria-label": "X" }), label: "X" },
21
- "oauth:telegram": { Icon: /* @__PURE__ */ l(_, { "aria-label": "Telegram" }), label: "Telegram" }
22
- }, O = ({ children: m, className: s = "", onLink: t, ...c }) => {
23
- const { state: p, dispatch: a } = T(), { authMethods: i, isPending: r, methodToLink: n } = p, h = b(() => i.map((o) => {
24
- const { Icon: e, label: I } = M[o.method];
5
+ import { IconAppleLogo as d } from "../../icons/IconAppleLogo.js";
6
+ import { IconEnvelope as f } from "../../icons/IconEnvelope.js";
7
+ import { IconGoogleColorLogo as L } from "../../icons/IconGoogleColorLogo.js";
8
+ import { IconPhone as _ } from "../../icons/IconPhone.js";
9
+ import { IconTelegramLogo as A } from "../../icons/IconTelegramLogo.js";
10
+ import { IconXLogo as P } from "../../icons/IconXLogo.js";
11
+ import { LinkAuthItem as T } from "./LinkAuthItem.js";
12
+ import { useLinkAuthContext as k } from "./LinkAuthProvider.js";
13
+ import '../../assets/LinkAuthItems.css';const x = "LinkAuthItems-module__list___5AimM", M = {
14
+ list: x
15
+ }, m = {
16
+ email: { Icon: /* @__PURE__ */ e(f, { "aria-label": "Email" }), label: "Email" },
17
+ sms: { Icon: /* @__PURE__ */ e(_, { "aria-label": "Phone" }), label: "Phone" },
18
+ "oauth:google": { Icon: /* @__PURE__ */ e(L, { "aria-label": "Google" }), label: "Google" },
19
+ "oauth:apple": { Icon: /* @__PURE__ */ e(d, { "aria-label": "Apple" }), label: "Apple" },
20
+ "oauth:x": { Icon: /* @__PURE__ */ e(P, { "aria-label": "X" }), label: "X" },
21
+ "oauth:telegram": { Icon: /* @__PURE__ */ e(A, { "aria-label": "Telegram" }), label: "Telegram" }
22
+ }, O = ({ children: s, className: c = "", onLink: t, ...p }) => {
23
+ const { state: h, dispatch: a } = k(), { authMethods: i, isPending: r, methodToLink: n } = h, I = g(() => i.filter((o) => m[o.method]).map((o) => {
24
+ const { Icon: l, label: u } = m[o.method];
25
25
  return {
26
26
  ...o,
27
- icon: e,
28
- label: I,
27
+ icon: l,
28
+ label: u,
29
29
  onLink: async () => {
30
30
  a({ type: "LINK_AUTH_METHOD", payload: { method: o.method } }), await t?.(o.method);
31
31
  }
32
32
  };
33
33
  }), [i, a, t]);
34
- return /* @__PURE__ */ l("ul", { className: u(x.list, s), ...c, children: h.map(({ method: o, ...e }) => /* @__PURE__ */ l("li", { children: m?.({
35
- ...e,
34
+ return /* @__PURE__ */ e("ul", { className: b(M.list, c), ...p, children: I.map(({ method: o, ...l }) => /* @__PURE__ */ e("li", { children: s?.({
35
+ ...l,
36
36
  authMethod: o,
37
37
  isPending: r && n === o
38
- }) || /* @__PURE__ */ l(
39
- P,
38
+ }) || /* @__PURE__ */ e(
39
+ T,
40
40
  {
41
- ...e,
41
+ ...l,
42
42
  authMethod: o,
43
43
  isPending: r && n === o
44
44
  }
package/dist/version.d.ts CHANGED
@@ -2,4 +2,4 @@
2
2
  * Current version of @coinbase/cdp-react package.
3
3
  * This file is auto-generated by scripts/sync-versions.js
4
4
  */
5
- export declare const VERSION = "0.0.99";
5
+ export declare const VERSION = "0.0.100";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
- const o = "0.0.99";
1
+ const o = "0.0.100";
2
2
  export {
3
3
  o as VERSION
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinbase/cdp-react",
3
- "version": "0.0.99",
3
+ "version": "0.0.100",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@internationalized/number": "3.6.4",
@@ -16,8 +16,8 @@
16
16
  },
17
17
  "peerDependencies": {
18
18
  "react": ">=18.2.0 <19.2.0",
19
- "@coinbase/cdp-core": "^0.0.99",
20
- "@coinbase/cdp-hooks": "^0.0.99"
19
+ "@coinbase/cdp-hooks": "^0.0.100",
20
+ "@coinbase/cdp-core": "^0.0.100"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@size-limit/preset-big-lib": "^11.2.0",
@@ -49,8 +49,8 @@
49
49
  "vite": "^7.0.4",
50
50
  "vite-plugin-dts": "^4.5.4",
51
51
  "vite-plugin-lib-inject-css": "^2.2.2",
52
- "@coinbase/cdp-core": "^0.0.99",
53
- "@coinbase/cdp-hooks": "^0.0.99"
52
+ "@coinbase/cdp-hooks": "^0.0.100",
53
+ "@coinbase/cdp-core": "^0.0.100"
54
54
  },
55
55
  "size-limit": [
56
56
  {