@echoxyz/sonar-react 0.1.2 → 0.1.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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @echoxyz/sonar-react
2
2
 
3
+ ## 0.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - f04cb72: Add globalThis fetch, export type
8
+ - Updated dependencies [f04cb72]
9
+ - @echoxyz/sonar-core@0.1.3
10
+
3
11
  ## 0.1.2
4
12
 
5
13
  ### 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.3",
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.3"
20
20
  },
21
21
  "devDependencies": {
22
22
  "tsup": "^8.0.0",