@echoxyz/sonar-react 0.9.0 → 0.11.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/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # @echoxyz/sonar-react
2
2
 
3
+ ## 0.11.0
4
+
5
+ ### Minor Changes
6
+
7
+ - d42882b: Changed entityID parameter names
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [d3dce74]
12
+ - Updated dependencies [d42882b]
13
+ - @echoxyz/sonar-core@0.10.0
14
+
15
+ ## 0.10.0
16
+
17
+ ### Minor Changes
18
+
19
+ - cbf7964: Support new V2 permit
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies [cbf7964]
24
+ - @echoxyz/sonar-core@0.9.0
25
+
3
26
  ## 0.9.0
4
27
 
5
28
  ### Minor Changes
package/README.md CHANGED
@@ -175,7 +175,7 @@ function PurchaseButton({
175
175
  const response = await generatePurchasePermit();
176
176
  const r = response as unknown as {
177
177
  Signature: string;
178
- PermitJSON: AllocationPermit;
178
+ PermitJSON: BasicPermitV2;
179
179
  };
180
180
  if (r.Signature && r.PermitJSON) {
181
181
  console.log(permit.Signature, permit.Permit);
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import React from 'react';
3
- import { SonarClient, EntityDetails, GeneratePurchasePermitResponse, PrePurchaseFailureReason, Hex } from '@echoxyz/sonar-core';
3
+ import { SonarClient, EntityDetails, GeneratePurchasePermitResponse, PrePurchaseFailureReason, EntityID } from '@echoxyz/sonar-core';
4
4
 
5
5
  type SonarProviderProps = {
6
6
  children: React.ReactNode;
@@ -74,7 +74,7 @@ type UseSonarPurchaseResultLoading = {
74
74
  type UseSonarPurchaseResult = UseSonarPurchaseResultLoading | UseSonarPurchaseResultReadyToPurchase | UseSonarPurchaseResultNotReadyToPurchase | UseSonarPurchaseResultError;
75
75
  declare function useSonarPurchase(args: {
76
76
  saleUUID: string;
77
- entityID: Hex;
77
+ entityID: EntityID;
78
78
  walletAddress: string;
79
79
  }): UseSonarPurchaseResult;
80
80
 
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import React from 'react';
3
- import { SonarClient, EntityDetails, GeneratePurchasePermitResponse, PrePurchaseFailureReason, Hex } from '@echoxyz/sonar-core';
3
+ import { SonarClient, EntityDetails, GeneratePurchasePermitResponse, PrePurchaseFailureReason, EntityID } from '@echoxyz/sonar-core';
4
4
 
5
5
  type SonarProviderProps = {
6
6
  children: React.ReactNode;
@@ -74,7 +74,7 @@ type UseSonarPurchaseResultLoading = {
74
74
  type UseSonarPurchaseResult = UseSonarPurchaseResultLoading | UseSonarPurchaseResultReadyToPurchase | UseSonarPurchaseResultNotReadyToPurchase | UseSonarPurchaseResultError;
75
75
  declare function useSonarPurchase(args: {
76
76
  saleUUID: string;
77
- entityID: Hex;
77
+ entityID: EntityID;
78
78
  walletAddress: string;
79
79
  }): UseSonarPurchaseResult;
80
80
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@echoxyz/sonar-react",
3
- "version": "0.9.0",
3
+ "version": "0.11.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -16,7 +16,7 @@
16
16
  "react": ">=18"
17
17
  },
18
18
  "dependencies": {
19
- "@echoxyz/sonar-core": "0.8.0"
19
+ "@echoxyz/sonar-core": "0.10.0"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@testing-library/react": "^16.0.0",