@echoxyz/sonar-react 0.1.2 → 0.1.4

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,21 @@
1
1
  # @echoxyz/sonar-react
2
2
 
3
+ ## 0.1.4
4
+
5
+ ### Patch Changes
6
+
7
+ - d04d616: Use bound global fetch
8
+ - Updated dependencies [d04d616]
9
+ - @echoxyz/sonar-core@0.1.4
10
+
11
+ ## 0.1.3
12
+
13
+ ### Patch Changes
14
+
15
+ - f04cb72: Add globalThis fetch, export type
16
+ - Updated dependencies [f04cb72]
17
+ - @echoxyz/sonar-core@0.1.3
18
+
3
19
  ## 0.1.2
4
20
 
5
21
  ### Patch Changes
package/dist/index.d.cts CHANGED
@@ -4,14 +4,15 @@ import React from 'react';
4
4
 
5
5
  type SonarProviderProps = {
6
6
  children: React.ReactNode;
7
- config: {
8
- saleUUID: string;
9
- clientUUID: string;
10
- redirectURI: string;
11
- apiURL?: string;
12
- frontendURL?: string;
13
- tokenStorageKey?: string;
14
- };
7
+ config: SonarProviderConfig;
8
+ };
9
+ type SonarProviderConfig = {
10
+ saleUUID: string;
11
+ clientUUID: string;
12
+ redirectURI: string;
13
+ apiURL?: string;
14
+ frontendURL?: string;
15
+ tokenStorageKey?: string;
15
16
  };
16
17
  type AuthContextValue = {
17
18
  authenticated: () => boolean;
@@ -27,4 +28,4 @@ declare function SonarProvider({ children, config }: SonarProviderProps): react_
27
28
  declare function useSonarAuth(): AuthContextValue;
28
29
  declare function useSonarClient(): SonarClient;
29
30
 
30
- export { SonarProvider, useSonarAuth, useSonarClient };
31
+ export { SonarProvider, type SonarProviderConfig, useSonarAuth, useSonarClient };
package/dist/index.d.ts CHANGED
@@ -4,14 +4,15 @@ import React from 'react';
4
4
 
5
5
  type SonarProviderProps = {
6
6
  children: React.ReactNode;
7
- config: {
8
- saleUUID: string;
9
- clientUUID: string;
10
- redirectURI: string;
11
- apiURL?: string;
12
- frontendURL?: string;
13
- tokenStorageKey?: string;
14
- };
7
+ config: SonarProviderConfig;
8
+ };
9
+ type SonarProviderConfig = {
10
+ saleUUID: string;
11
+ clientUUID: string;
12
+ redirectURI: string;
13
+ apiURL?: string;
14
+ frontendURL?: string;
15
+ tokenStorageKey?: string;
15
16
  };
16
17
  type AuthContextValue = {
17
18
  authenticated: () => boolean;
@@ -27,4 +28,4 @@ declare function SonarProvider({ children, config }: SonarProviderProps): react_
27
28
  declare function useSonarAuth(): AuthContextValue;
28
29
  declare function useSonarClient(): SonarClient;
29
30
 
30
- export { SonarProvider, useSonarAuth, useSonarClient };
31
+ export { SonarProvider, type SonarProviderConfig, useSonarAuth, useSonarClient };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@echoxyz/sonar-react",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
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.1.2"
19
+ "@echoxyz/sonar-core": "0.1.4"
20
20
  },
21
21
  "devDependencies": {
22
22
  "tsup": "^8.0.0",