@partylayer/sdk 0.13.1 → 0.13.3

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.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { toWalletId, toPartyId, isRecognizedNetwork, hashForPrivacy, createMetricsPayload, isOfficialAdapterFactory, isOfficialProviderAdapter, mapUnknownErrorToPartyLayerError, findMatchingWalletInfo, detectNetworkMismatch, NetworkMismatchError, METRICS, AdapterNotRegisteredError, WalletNotFoundError, capabilityGuard, installGuard, toSessionId, CapabilityNotSupportedError, errorMetricName } from '@partylayer/core';
1
+ import { toWalletId, toPartyId, ledgerApiBodyToObject, normalizeLedgerMethodLower, isRecognizedNetwork, hashForPrivacy, createMetricsPayload, isOfficialAdapterFactory, isOfficialProviderAdapter, mapUnknownErrorToPartyLayerError, findMatchingWalletInfo, detectNetworkMismatch, NetworkMismatchError, METRICS, AdapterNotRegisteredError, WalletNotFoundError, capabilityGuard, installGuard, toSessionId, CapabilityNotSupportedError, errorMetricName } from '@partylayer/core';
2
2
  export { AdapterNotRegisteredError, PartyLayerError as CantonConnectError, CapabilityNotSupportedError, ENABLEMENT_METRICS, ERROR_METRICS, InternalError, METRICS, OriginNotAllowedError, PartyLayerError, REGISTRY_METRICS, RegistryFetchFailedError, RegistrySchemaInvalidError, RegistryVerificationFailedError, SessionExpiredError, TimeoutError, TransportError, UserRejectedError, WalletNotFoundError, WalletNotInstalledError, errorMetricName, isOfficialAdapterFactory, isOfficialProviderAdapter } from '@partylayer/core';
3
3
  import { RegistryClient } from '@partylayer/registry-client';
4
4
  export { deriveGenericWalletName, findMatchingWallet, findMatchingWalletInfo, isCip0103Native, matchesProviderDetection } from '@partylayer/registry-client';
@@ -12,7 +12,6 @@ import { Cantor8Adapter } from '@partylayer/adapter-cantor8';
12
12
  export { Cantor8Adapter } from '@partylayer/adapter-cantor8';
13
13
  import { NightlyAdapter } from '@partylayer/adapter-nightly';
14
14
  export { NightlyAdapter } from '@partylayer/adapter-nightly';
15
- import { SendAdapter } from '@partylayer/adapter-send';
16
15
  export { SendAdapter } from '@partylayer/adapter-send';
17
16
  export { BronAdapter } from '@partylayer/adapter-bron';
18
17
 
@@ -178,9 +177,9 @@ var GenericAnnounceAdapter = class {
178
177
  const result = await this.provider.request({
179
178
  method: "ledgerApi",
180
179
  params: {
181
- requestMethod: params.requestMethod,
180
+ requestMethod: normalizeLedgerMethodLower(params.requestMethod),
182
181
  resource: params.resource,
183
- body: params.body
182
+ body: ledgerApiBodyToObject(params.body)
184
183
  }
185
184
  });
186
185
  if (result && typeof result.response === "string") return { response: result.response };
@@ -528,10 +527,11 @@ function getBuiltinAdapters() {
528
527
  // 5N Loop - QR code / popup
529
528
  new Cantor8Adapter(),
530
529
  // Cantor8 - deep link transport
531
- new NightlyAdapter(),
530
+ new NightlyAdapter()
532
531
  // Nightly - multichain wallet (injected)
533
- new SendAdapter()
534
- // Send - passkey-based, kernel.id-guarded window.canton
532
+ // Send is served via the generic CIP-0103 announce path (registry
533
+ // transport:'announce') — no longer in defaults; SendAdapter stays exported
534
+ // below for opt-in manual/bespoke use.
535
535
  ];
536
536
  }
537
537
  var SDK_VERSION = "0.3.0";