@tracktor/shared-module 1.0.0-beta.2 → 1.0.0-beta.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 +2 -2
- package/README.md +9 -8
- package/dist/components/Utils/DaysJSConfig.d.ts +5 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -43,14 +43,15 @@ export default App;
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
## Components
|
|
46
|
-
| Module | Type | Description
|
|
47
|
-
|
|
48
|
-
| RequireAuth | React Component | Component for protected routing
|
|
49
|
-
| GTMSendPageView | React Component | Send page view event to Google Tag Manager
|
|
50
|
-
| AxiosConfig | React Component | Initialize Axios
|
|
51
|
-
| I18nConfig | React Component | Initialize i18n
|
|
52
|
-
| SentryConfig | React Component | Initialize Sentry
|
|
53
|
-
| MapBoxConfig | React Component | Initialize MapBox
|
|
46
|
+
| Module | Type | Description | Dependencies |
|
|
47
|
+
|-----------------|-----------------|-----------------------------------------------------|------------------------------------------------------------|
|
|
48
|
+
| RequireAuth | React Component | Component for protected routing | Axios & react-router-dom |
|
|
49
|
+
| GTMSendPageView | React Component | Send page view event to Google Tag Manager | @tracktor/react-google-tag-manager & react-router-dom |
|
|
50
|
+
| AxiosConfig | React Component | Initialize Axios with custom default config options | Axios |
|
|
51
|
+
| I18nConfig | React Component | Initialize i18n with custom config options | i18next & react-i18next & i18next-browser-languagedetector |
|
|
52
|
+
| SentryConfig | React Component | Initialize Sentry | @sentry/react & react-router-dom |
|
|
53
|
+
| MapBoxConfig | React Component | Initialize MapBox | mapbox-gl |
|
|
54
|
+
| DaysJSConfig | React Component | Initialize DayJS | mapbox-gl |
|
|
54
55
|
|
|
55
56
|
## Hooks
|
|
56
57
|
| Module | Description | Dependencies |
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
interface I18nConfigProps {
|
|
2
|
+
language: string;
|
|
3
|
+
}
|
|
1
4
|
/**
|
|
2
5
|
* Initialize dayjs
|
|
6
|
+
* @param language
|
|
3
7
|
* @constructor
|
|
4
8
|
*/
|
|
5
|
-
declare const DaysJSConfig: () => null;
|
|
9
|
+
declare const DaysJSConfig: ({ language }: I18nConfigProps) => null;
|
|
6
10
|
export default DaysJSConfig;
|