@ab-org/sdk-core 0.1.1 → 0.1.2-beta.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.
package/README.md CHANGED
@@ -3,5 +3,34 @@
3
3
  Base wallet abstractions: session store, wallet connectors, provider registry (plugin & social), and lightweight controllers.
4
4
 
5
5
  ```ts
6
+ import { WalletConnector, MetaMaskProvider } from "@ab-org/sdk-core";
7
+ import { CubistSocialProvider } from "@ab-org/sdk-core/social";
8
+ ```
9
+
10
+ - `@ab-org/sdk-core` keeps the legacy root import compatible.
11
+ - `@ab-org/sdk-core/social` contains CubeSigner and social-wallet runtime helpers.
12
+ - `@ab-org/sdk-core/social/auth` narrows to CubeSigner auth + EVM wallet-provider helpers.
13
+ - `@ab-org/sdk-core/social/provider` narrows to the social provider abstraction.
14
+ - The social auth runtime is bundled internally and should not require custom `next.config.js` or `vite.config.ts` workarounds.
15
+
16
+ ## Migration
17
+
18
+ If you previously imported social runtime directly from the root entry, that import still works. For new code, prefer the social subpath:
19
+
20
+ ```ts
21
+ // before
6
22
  import { WalletConnector, MetaMaskProvider, CubistSocialProvider } from "@ab-org/sdk-core";
23
+
24
+ // after
25
+ import { WalletConnector, MetaMaskProvider } from "@ab-org/sdk-core";
26
+ import { CubistSocialProvider } from "@ab-org/sdk-core/social";
27
+ ```
28
+
29
+ The same applies to CubeSigner runtime helpers such as `CubeSignerAuth` and `createCubistEvmWalletProvider`.
30
+
31
+ When you want a narrower subpath:
32
+
33
+ ```ts
34
+ import { CubeSignerAuth, createCubistEvmWalletProvider } from "@ab-org/sdk-core/social/auth";
35
+ import { CubistSocialProvider } from "@ab-org/sdk-core/social/provider";
7
36
  ```