@entur-partner/common 10.0.2-alpha.0 → 10.0.2

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
@@ -2,40 +2,6 @@
2
2
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
3
3
  /* DO NOT CHANGE!*/
4
4
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
5
- .eps-action-bar {
6
- position: fixed;
7
- bottom: 0;
8
- left: 0;
9
- right: 0;
10
- background-color: #f8f8f8;
11
- border-top: 2px solid #e9e9e9;
12
- padding: 15px 15px 15px 80px;
13
- display: flex;
14
- justify-content: space-between;
15
- z-index: 3;
16
- }
17
- @media screen and (min-width: 50rem) {
18
- .eps-action-bar {
19
- left: 20rem;
20
- }
21
- }
22
- .eps-action-bar-right {
23
- display: flex;
24
- align-items: flex-start;
25
- }
26
- .eps-action-bar-right > *:not(:first-child) {
27
- margin-left: 1rem;
28
- }
29
- .eps-action-bar-left > *:not(:first-child) {
30
- margin-left: 1rem;
31
- }
32
-
33
- .eps-action-bar-padding {
34
- height: 100px;
35
- }/* DO NOT CHANGE!*/
36
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
37
- /* DO NOT CHANGE!*/
38
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
39
5
  .eps-pt-none {
40
6
  padding-top: 0rem;
41
7
  }
@@ -2280,25 +2246,38 @@
2280
2246
  background-color: #aeb7e2;
2281
2247
  }/* DO NOT CHANGE!*/
2282
2248
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
2283
- .ep-audit-info {
2284
- float: right;
2285
- margin-top: 1rem;
2286
- font-size: 0.875rem;
2287
- }
2288
- .ep-audit-info > div {
2249
+ /* DO NOT CHANGE!*/
2250
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
2251
+ .eps-action-bar {
2252
+ position: fixed;
2253
+ bottom: 0;
2254
+ left: 0;
2255
+ right: 0;
2256
+ background-color: #f8f8f8;
2257
+ border-top: 2px solid #e9e9e9;
2258
+ padding: 15px 15px 15px 80px;
2289
2259
  display: flex;
2290
2260
  justify-content: space-between;
2261
+ z-index: 3;
2262
+ }
2263
+ @media screen and (min-width: 50rem) {
2264
+ .eps-action-bar {
2265
+ left: 20rem;
2266
+ }
2267
+ }
2268
+ .eps-action-bar-right {
2269
+ display: flex;
2270
+ align-items: flex-start;
2271
+ }
2272
+ .eps-action-bar-right > *:not(:first-child) {
2273
+ margin-left: 1rem;
2274
+ }
2275
+ .eps-action-bar-left > *:not(:first-child) {
2276
+ margin-left: 1rem;
2291
2277
  }
2292
2278
 
2293
- .ep-audit-info-label {
2294
- margin-right: 3rem;
2295
- font-weight: 600;
2296
- }ol.eds-breadcrumbs {
2297
- padding: 0;
2298
- }/* DO NOT CHANGE!*/
2299
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
2300
- .eps-confirm-modal-content {
2301
- margin-bottom: 1rem;
2279
+ .eps-action-bar-padding {
2280
+ height: 100px;
2302
2281
  }/* DO NOT CHANGE!*/
2303
2282
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
2304
2283
  /* DO NOT CHANGE!*/
@@ -2322,12 +2301,22 @@
2322
2301
  margin-left: 0.125rem;
2323
2302
  }/* DO NOT CHANGE!*/
2324
2303
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
2325
- .eps-logo-wrapper {
2326
- display: inline-block;
2304
+ /* DO NOT CHANGE!*/
2305
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
2306
+ .eps-menu {
2307
+ position: relative;
2308
+ width: 100%;
2309
+ z-index: 30;
2327
2310
  }
2328
- .eps-logo-wrapper .logo {
2329
- height: auto;
2330
- width: 170px;
2311
+ @media screen and (min-width: 50rem) {
2312
+ .eps-menu {
2313
+ left: 0;
2314
+ top: 0;
2315
+ position: fixed;
2316
+ height: 100vh;
2317
+ width: 20rem;
2318
+ overflow-y: scroll;
2319
+ }
2331
2320
  }/* DO NOT CHANGE!*/
2332
2321
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
2333
2322
  button.eps-link-button {
@@ -2341,29 +2330,31 @@ button.eps-link-button, button.eps-link-button:hover, button.eps-link-button:foc
2341
2330
  }
2342
2331
  button.eps-link-button:hover {
2343
2332
  color: #aeb7e2;
2333
+ }/* DO NOT CHANGE!*/
2334
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
2335
+ .eps-logo-wrapper {
2336
+ display: inline-block;
2337
+ }
2338
+ .eps-logo-wrapper .logo {
2339
+ height: auto;
2340
+ width: 170px;
2344
2341
  }.multi-language-input:focus {
2345
2342
  outline: none;
2346
2343
  }/* DO NOT CHANGE!*/
2347
2344
  /* 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;
2345
+ .ep-audit-info {
2346
+ float: right;
2347
+ margin-top: 1rem;
2348
+ font-size: 0.875rem;
2361
2349
  }
2362
- .eps-status-label__bullet.aggressive {
2363
- background: #ff5959;
2350
+ .ep-audit-info > div {
2351
+ display: flex;
2352
+ justify-content: space-between;
2364
2353
  }
2365
- .eps-status-label__bullet.active {
2366
- background: #1a8e60;
2354
+
2355
+ .ep-audit-info-label {
2356
+ margin-right: 3rem;
2357
+ font-weight: 600;
2367
2358
  }/* DO NOT CHANGE!*/
2368
2359
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
2369
2360
  /* DO NOT CHANGE!*/
@@ -2640,6 +2631,12 @@ button.eps-link-button:hover {
2640
2631
 
2641
2632
  .eps-font-weight-heading {
2642
2633
  font-weight: 1rem;
2634
+ }ol.eds-breadcrumbs {
2635
+ padding: 0;
2636
+ }/* DO NOT CHANGE!*/
2637
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
2638
+ .eps-confirm-modal-content {
2639
+ margin-bottom: 1rem;
2643
2640
  }.eps-unbutton, .eps-unbutton:hover, .eps-unbutton:focus, .eps-unbutton:active:focus, .eps-unbutton:active:hover, .eps-unbutton:active {
2644
2641
  background: none;
2645
2642
  background-color: inherit;
@@ -2652,6 +2649,27 @@ button.eps-link-button:hover {
2652
2649
  min-width: inherit;
2653
2650
  }/* DO NOT CHANGE!*/
2654
2651
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
2652
+ .eps-status-label {
2653
+ display: flex;
2654
+ align-items: center;
2655
+ }
2656
+ .eps-status-label.center {
2657
+ justify-content: center;
2658
+ }
2659
+ .eps-status-label__bullet {
2660
+ padding: 5px;
2661
+ margin-bottom: 4px;
2662
+ border-radius: 50%;
2663
+ background: #d1d3d3;
2664
+ margin-right: 10px;
2665
+ }
2666
+ .eps-status-label__bullet.aggressive {
2667
+ background: #ff5959;
2668
+ }
2669
+ .eps-status-label__bullet.active {
2670
+ background: #1a8e60;
2671
+ }/* DO NOT CHANGE!*/
2672
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
2655
2673
  /**
2656
2674
  PS! We use #eps-user-menu to prevent the micro frontends overriding the styles. By using
2657
2675
  an id we have a higher specificity. We should explore a better solution later. Ideally
@@ -2742,24 +2760,6 @@ button.eps-link-button:hover {
2742
2760
  #eps-overflow-menu .eps-overflow-menu__item {
2743
2761
  border-radius: 0.25rem;
2744
2762
  border: solid 0.0625rem #54568c;
2745
- }/* DO NOT CHANGE!*/
2746
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
2747
- /* DO NOT CHANGE!*/
2748
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
2749
- .eps-menu {
2750
- position: relative;
2751
- width: 100%;
2752
- z-index: 30;
2753
- }
2754
- @media screen and (min-width: 50rem) {
2755
- .eps-menu {
2756
- left: 0;
2757
- top: 0;
2758
- position: fixed;
2759
- height: 100vh;
2760
- width: 20rem;
2761
- overflow-y: scroll;
2762
- }
2763
2763
  }:root {
2764
2764
  --eps-common: 1;
2765
2765
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur-partner/common",
3
- "version": "10.0.2-alpha.0",
3
+ "version": "10.0.2",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/common.esm.js",
@@ -33,19 +33,22 @@
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": ">=7.9.0"
36
+ "react-router-dom": ">=6.30.1"
37
37
  },
38
38
  "dependencies": {
39
- "@entur-partner/util": "^1.3.3",
39
+ "@entur-partner/util": "^1.3.4",
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": "7.9.2"
46
+ "react-router-dom": "7.11.0"
47
47
  },
48
48
  "jest": {
49
+ "setupFilesAfterEnv": [
50
+ "./jest-setup.js"
51
+ ],
49
52
  "moduleNameMapper": {
50
53
  "\\.(css|less|sass|scss)$": "identity-obj-proxy"
51
54
  },
@@ -58,5 +61,5 @@
58
61
  "reportFile": "jest-sonar-report.xml",
59
62
  "indent": 4
60
63
  },
61
- "gitHead": "f5fa3bee2d9df49b7bb02f1b281fc1b37d2a4314"
64
+ "gitHead": "a3ce597af3db43bb6d3145485a3e04f6b68a8dcd"
62
65
  }
@@ -1,15 +0,0 @@
1
- import React from "react";
2
- export declare const useProject: () => {
3
- defaultProjectId: string;
4
- projectName: string;
5
- };
6
- type ProjectProviderProps = {
7
- defaultProjectId: string;
8
- projectName: string;
9
- children: React.ReactNode;
10
- };
11
- /**
12
- * A Provider to sync project id across micro-frontends. Used by useNavigateParams to ensure project id is always present in the url.
13
- */
14
- export declare const ProjectProvider: ({ defaultProjectId, projectName, children, }: ProjectProviderProps) => React.JSX.Element;
15
- export {};
@@ -1,9 +0,0 @@
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;