@swype-org/react-sdk 0.1.17 → 0.1.19

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/dist/index.d.cts CHANGED
@@ -359,7 +359,8 @@ interface UseAuthorizationExecutorOptions {
359
359
  * - OPEN_PROVIDER — connect the user's wallet
360
360
  * - SELECT_SOURCE — pause for user chain+token selection
361
361
  * - SWITCH_CHAIN — switch the wallet to the required chain
362
- * - CREATE_SMART_ACCOUNT — server-side smart account deployment
362
+ * - CREATE_SMART_ACCOUNT — server-side smart account creation (legacy)
363
+ * - DEPLOY_SMART_ACCOUNT — server-side on-chain deployment via no-op UserOp
363
364
  * - APPROVE_PERMIT2 — ERC-20 approve(permit2, maxUint256) from EOA
364
365
  * - SIGN_PERMIT2 — EIP-712 Permit2 allowance signature from EOA
365
366
  *
package/dist/index.d.ts CHANGED
@@ -359,7 +359,8 @@ interface UseAuthorizationExecutorOptions {
359
359
  * - OPEN_PROVIDER — connect the user's wallet
360
360
  * - SELECT_SOURCE — pause for user chain+token selection
361
361
  * - SWITCH_CHAIN — switch the wallet to the required chain
362
- * - CREATE_SMART_ACCOUNT — server-side smart account deployment
362
+ * - CREATE_SMART_ACCOUNT — server-side smart account creation (legacy)
363
+ * - DEPLOY_SMART_ACCOUNT — server-side on-chain deployment via no-op UserOp
363
364
  * - APPROVE_PERMIT2 — ERC-20 approve(permit2, maxUint256) from EOA
364
365
  * - SIGN_PERMIT2 — EIP-712 Permit2 allowance signature from EOA
365
366
  *
package/dist/index.js CHANGED
@@ -104,7 +104,8 @@ function SwypeProvider({
104
104
  appId: SWYPE_PRIVY_APP_ID,
105
105
  config: {
106
106
  appearance: {
107
- theme
107
+ theme,
108
+ accentColor: getTheme(theme).accent
108
109
  }
109
110
  },
110
111
  children: /* @__PURE__ */ jsx(SwypeContext.Provider, { value, children })
@@ -1083,6 +1084,8 @@ function useAuthorizationExecutor(options) {
1083
1084
  return executeSwitchChain(action, wagmiConfig2, switchChainAsync);
1084
1085
  case "APPROVE_PERMIT2":
1085
1086
  return executeApprovePermit2(action, wagmiConfig2);
1087
+ case "DEPLOY_SMART_ACCOUNT":
1088
+ return actionSuccess(action, "Smart account deployment acknowledged.");
1086
1089
  case "SIGN_PERMIT2":
1087
1090
  return executeSignPermit2(action, wagmiConfig2, apiBaseUrl ?? "", sessionIdRef.current);
1088
1091
  default: