@entur-partner/common 10.0.0 → 10.0.2-alpha.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.
Files changed (49) hide show
  1. package/dist/ActionBar.d.ts +9 -0
  2. package/dist/AuditInfo.d.ts +14 -0
  3. package/dist/Box.d.ts +57 -0
  4. package/dist/Breadcrumbs.d.ts +8 -0
  5. package/dist/ConfirmModal.d.ts +28 -0
  6. package/dist/Content.d.ts +10 -0
  7. package/dist/EnturPartnerLogo.d.ts +19 -0
  8. package/dist/ErrorBoundary.d.ts +22 -0
  9. package/dist/ExpandableMultiLanguageInput.d.ts +17 -0
  10. package/dist/FeatureToggle.d.ts +25 -0
  11. package/dist/FormatCurrencyAmount.d.ts +8 -0
  12. package/dist/FormatDateTime.d.ts +7 -0
  13. package/dist/LanguageSelect.d.ts +16 -0
  14. package/dist/Link.d.ts +6 -0
  15. package/dist/LinkButton.d.ts +8 -0
  16. package/dist/Menu.d.ts +10 -0
  17. package/dist/MultiLanguageInput.d.ts +28 -0
  18. package/dist/OrganisationDropdown.d.ts +14 -0
  19. package/dist/PageTitle.d.ts +12 -0
  20. package/dist/Pager.d.ts +8 -0
  21. package/dist/PermissionCheck.d.ts +24 -0
  22. package/dist/ProjectProvider.d.ts +15 -0
  23. package/dist/RouteLeavingGuard.d.ts +14 -0
  24. package/dist/Stack.d.ts +9 -0
  25. package/dist/StatusLabel.d.ts +11 -0
  26. package/dist/Text.d.ts +21 -0
  27. package/dist/Unbutton.d.ts +7 -0
  28. package/dist/UserMenu/components/CookieSettingsMenuItem.d.ts +9 -0
  29. package/dist/UserMenu/components/CustomOverflowMenu.d.ts +11 -0
  30. package/dist/UserMenu/components/CustomOverflowMenuItem.d.ts +3 -0
  31. package/dist/UserMenu/components/LanguageSwitchMenuItem.d.ts +10 -0
  32. package/dist/UserMenu/components/LogOutMenuItem.d.ts +9 -0
  33. package/dist/UserMenu/components/UserMenuItem.d.ts +9 -0
  34. package/dist/UserMenu/components/VersionMenuItem.d.ts +5 -0
  35. package/dist/UserMenu/index.d.ts +26 -0
  36. package/dist/UserMenu/useOutsideClick.d.ts +2 -0
  37. package/dist/common.cjs.development.js +1215 -0
  38. package/dist/common.cjs.development.js.map +1 -0
  39. package/dist/common.cjs.production.min.js +2 -0
  40. package/dist/common.cjs.production.min.js.map +1 -0
  41. package/dist/common.esm.js +1172 -0
  42. package/dist/common.esm.js.map +1 -0
  43. package/dist/environment.d.ts +13 -0
  44. package/dist/index.d.ts +32 -0
  45. package/dist/index.js +8 -0
  46. package/dist/styles.css +2774 -0
  47. package/dist/useEventListener.d.ts +3 -0
  48. package/dist/useNavigateParams.d.ts +9 -0
  49. package/package.json +5 -5
@@ -0,0 +1,3 @@
1
+ type TypedEventListener<T extends Event> = (evt: T) => void;
2
+ export declare function useEventListener<T extends Event = Event>(eventName: string, handler: TypedEventListener<T>, element?: WindowEventHandlers): void;
3
+ export {};
@@ -0,0 +1,9 @@
1
+ import { NavigateFunction } from "react-router-dom";
2
+ /**
3
+ * A custom hook that wraps the useNavigate hook from react-router-dom for MicroFrontend State
4
+ *
5
+ * @param to can be a string path, a To object, or a number (delta)
6
+ * @param options contains options for modifying the navigation
7
+ * @returns a function that navigates to the specified path with organisationId in the search params
8
+ */
9
+ export declare function useNavigateParams(): NavigateFunction;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur-partner/common",
3
- "version": "10.0.0",
3
+ "version": "10.0.2-alpha.0",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/common.esm.js",
@@ -33,17 +33,17 @@
33
33
  "@entur/tooltip": ">=2.4.7 <6.0.0",
34
34
  "react": ">=18.0.0",
35
35
  "react-dom": ">=18.0.0",
36
- "react-router-dom": "^6.22.0"
36
+ "react-router-dom": ">=7.9.0"
37
37
  },
38
38
  "dependencies": {
39
- "@entur-partner/util": "^1.3.2",
39
+ "@entur-partner/util": "^1.3.3",
40
40
  "classnames": "^2.2.6"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@entur-partner/permission-client-node": "3.4.6",
44
44
  "@entur/tokens": "3.17.3",
45
45
  "identity-obj-proxy": "3.0.0",
46
- "react-router-dom": "6.30.1"
46
+ "react-router-dom": "7.9.2"
47
47
  },
48
48
  "jest": {
49
49
  "moduleNameMapper": {
@@ -58,5 +58,5 @@
58
58
  "reportFile": "jest-sonar-report.xml",
59
59
  "indent": 4
60
60
  },
61
- "gitHead": "2b5279bfd81f7154664ec025a85d275d6c8c6079"
61
+ "gitHead": "f5fa3bee2d9df49b7bb02f1b281fc1b37d2a4314"
62
62
  }