@entur-partner/common 10.0.1 → 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.
package/dist/styles.css CHANGED
@@ -34,21 +34,6 @@
34
34
  height: 100px;
35
35
  }/* DO NOT CHANGE!*/
36
36
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
37
- .ep-audit-info {
38
- float: right;
39
- margin-top: 1rem;
40
- font-size: 0.875rem;
41
- }
42
- .ep-audit-info > div {
43
- display: flex;
44
- justify-content: space-between;
45
- }
46
-
47
- .ep-audit-info-label {
48
- margin-right: 3rem;
49
- font-weight: 600;
50
- }/* DO NOT CHANGE!*/
51
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
52
37
  /* DO NOT CHANGE!*/
53
38
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
54
39
  .eps-pt-none {
@@ -2295,12 +2280,27 @@
2295
2280
  background-color: #aeb7e2;
2296
2281
  }/* DO NOT CHANGE!*/
2297
2282
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
2298
- .eps-confirm-modal-content {
2299
- margin-bottom: 1rem;
2283
+ .ep-audit-info {
2284
+ float: right;
2285
+ margin-top: 1rem;
2286
+ font-size: 0.875rem;
2287
+ }
2288
+ .ep-audit-info > div {
2289
+ display: flex;
2290
+ justify-content: space-between;
2291
+ }
2292
+
2293
+ .ep-audit-info-label {
2294
+ margin-right: 3rem;
2295
+ font-weight: 600;
2300
2296
  }ol.eds-breadcrumbs {
2301
2297
  padding: 0;
2302
2298
  }/* DO NOT CHANGE!*/
2303
2299
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
2300
+ .eps-confirm-modal-content {
2301
+ margin-bottom: 1rem;
2302
+ }/* DO NOT CHANGE!*/
2303
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
2304
2304
  /* DO NOT CHANGE!*/
2305
2305
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
2306
2306
  .eps-content {
@@ -2322,6 +2322,14 @@
2322
2322
  margin-left: 0.125rem;
2323
2323
  }/* DO NOT CHANGE!*/
2324
2324
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
2325
+ .eps-logo-wrapper {
2326
+ display: inline-block;
2327
+ }
2328
+ .eps-logo-wrapper .logo {
2329
+ height: auto;
2330
+ width: 170px;
2331
+ }/* DO NOT CHANGE!*/
2332
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
2325
2333
  button.eps-link-button {
2326
2334
  cursor: pointer;
2327
2335
  }
@@ -2337,6 +2345,27 @@ button.eps-link-button:hover {
2337
2345
  outline: none;
2338
2346
  }/* DO NOT CHANGE!*/
2339
2347
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
2348
+ .eps-status-label {
2349
+ display: flex;
2350
+ align-items: center;
2351
+ }
2352
+ .eps-status-label.center {
2353
+ justify-content: center;
2354
+ }
2355
+ .eps-status-label__bullet {
2356
+ padding: 5px;
2357
+ margin-bottom: 4px;
2358
+ border-radius: 50%;
2359
+ background: #d1d3d3;
2360
+ margin-right: 10px;
2361
+ }
2362
+ .eps-status-label__bullet.aggressive {
2363
+ background: #ff5959;
2364
+ }
2365
+ .eps-status-label__bullet.active {
2366
+ background: #1a8e60;
2367
+ }/* DO NOT CHANGE!*/
2368
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
2340
2369
  /* DO NOT CHANGE!*/
2341
2370
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
2342
2371
  .eps-font-size-extraSmall {
@@ -2611,27 +2640,6 @@ button.eps-link-button:hover {
2611
2640
 
2612
2641
  .eps-font-weight-heading {
2613
2642
  font-weight: 1rem;
2614
- }/* DO NOT CHANGE!*/
2615
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
2616
- .eps-status-label {
2617
- display: flex;
2618
- align-items: center;
2619
- }
2620
- .eps-status-label.center {
2621
- justify-content: center;
2622
- }
2623
- .eps-status-label__bullet {
2624
- padding: 5px;
2625
- margin-bottom: 4px;
2626
- border-radius: 50%;
2627
- background: #d1d3d3;
2628
- margin-right: 10px;
2629
- }
2630
- .eps-status-label__bullet.aggressive {
2631
- background: #ff5959;
2632
- }
2633
- .eps-status-label__bullet.active {
2634
- background: #1a8e60;
2635
2643
  }.eps-unbutton, .eps-unbutton:hover, .eps-unbutton:focus, .eps-unbutton:active:focus, .eps-unbutton:active:hover, .eps-unbutton:active {
2636
2644
  background: none;
2637
2645
  background-color: inherit;
@@ -2736,14 +2744,6 @@ button.eps-link-button:hover {
2736
2744
  border: solid 0.0625rem #54568c;
2737
2745
  }/* DO NOT CHANGE!*/
2738
2746
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
2739
- .eps-logo-wrapper {
2740
- display: inline-block;
2741
- }
2742
- .eps-logo-wrapper .logo {
2743
- height: auto;
2744
- width: 170px;
2745
- }/* DO NOT CHANGE!*/
2746
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
2747
2747
  /* DO NOT CHANGE!*/
2748
2748
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
2749
2749
  .eps-menu {
@@ -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.1",
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,7 +33,7 @@
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
39
  "@entur-partner/util": "^1.3.3",
@@ -43,7 +43,7 @@
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": "b0db40c8aac1a8d043af35c5b7da726b81456110"
61
+ "gitHead": "f5fa3bee2d9df49b7bb02f1b281fc1b37d2a4314"
62
62
  }