@tracktor/shared-module 1.0.7 → 1.0.9

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,4 +1,4 @@
1
1
  # [Versions](https://github.com/Tracktor/shared-module/releases)
2
2
 
3
- ## v1.0.7
4
- - **[fix]** : name export QueryClientProviderWithConfig
3
+ ## v1.0.9
4
+ - **[fix]** : fix and improvement
package/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # shared-module
2
2
 
3
- > This package contains shared components, hooks and utilities for the Tracktor project.
4
- > This package don't use any external dependencies, only peer dependencies.
3
+ > This package contains shared components, hooks and utilities for the Tracktor project.
5
4
  > This package is not intended to be used outside the Tracktor project.
6
5
 
7
6
  - [Installation](#Installation)
@@ -23,11 +22,11 @@ import { AxiosConfig } from "@tracktor/shared-module";
23
22
  ## Inject dependencies with provider
24
23
 
25
24
  ```typescript jsx
26
- import { AxiosConfig, InjectDependenciesProvider } from "@tracktor/shared-module";
25
+ import { InitializeAxiosConfig, InjectDependenciesProvider } from "@tracktor/shared-module";
27
26
 
28
27
  const App = () => (
29
28
  <InjectDependenciesProvider apiURL={import.meta.env.VITE_API_URL}>
30
- <AxiosConfig baseURL={import.meta.env.VITE_API_URL} />
29
+ <InitializeAxiosConfig />
31
30
  ...
32
31
  </InjectDependenciesProvider>
33
32
  );
@@ -2,5 +2,5 @@
2
2
  * This component send page view to Google Tag Manager
3
3
  * @constructor
4
4
  */
5
- declare const GTMSendPageView: () => import("react/jsx-runtime").JSX.Element | null;
5
+ declare const GTMSendPageView: () => import("react/jsx-runtime").JSX.Element;
6
6
  export default GTMSendPageView;
@@ -6,7 +6,6 @@ interface InitializeMapBoxConfigProps {
6
6
  }
7
7
  /**
8
8
  * This component is used to initialize MapBox
9
- * @param mapbox
10
9
  * @param accessToken
11
10
  * @constructor
12
11
  */
@@ -5,7 +5,7 @@ export interface InjectDependenciesContextProps {
5
5
  */
6
6
  children?: ReactNode;
7
7
  /**
8
- * API URL dependency for useAdapter hook
8
+ * API URL dependency for apiURL
9
9
  */
10
10
  apiURL?: string;
11
11
  }
@@ -6,6 +6,9 @@ interface QueryClientProviderWithConfigProps extends PropsWithChildren {
6
6
  defaultQueriesOptions?: {
7
7
  [key: string]: any;
8
8
  };
9
+ /**
10
+ * Default options for mutations
11
+ */
9
12
  defaultMutationsOptions?: {
10
13
  [key: string]: any;
11
14
  };
@@ -1,4 +1,4 @@
1
- import { c as o } from "./main-srWqMrqy.js";
1
+ import { c as o } from "./main-YTkqJNOe.js";
2
2
  var a = { exports: {} };
3
3
  (function(t, _) {
4
4
  (function(r, e) {
@@ -1,4 +1,4 @@
1
- import { c as m } from "./main-srWqMrqy.js";
1
+ import { c as m } from "./main-YTkqJNOe.js";
2
2
  import o from "dayjs";
3
3
  var i = { exports: {} };
4
4
  (function(n, s) {