@entur-partner/common 9.3.2 → 9.3.3-alpha.1

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 (48) hide show
  1. package/dist/ActionBar.d.ts +9 -9
  2. package/dist/AuditInfo.d.ts +14 -14
  3. package/dist/Box.d.ts +57 -56
  4. package/dist/Breadcrumbs.d.ts +8 -8
  5. package/dist/ConfirmModal.d.ts +28 -27
  6. package/dist/Content.d.ts +10 -9
  7. package/dist/EnturPartnerLogo.d.ts +19 -18
  8. package/dist/ErrorBoundary.d.ts +22 -22
  9. package/dist/ExpandableMultiLanguageInput.d.ts +17 -17
  10. package/dist/FeatureToggle.d.ts +25 -25
  11. package/dist/FormatCurrencyAmount.d.ts +8 -7
  12. package/dist/FormatDateTime.d.ts +7 -7
  13. package/dist/LanguageSelect.d.ts +16 -16
  14. package/dist/LegacyPageTitle.d.ts +16 -0
  15. package/dist/Link.d.ts +6 -6
  16. package/dist/LinkButton.d.ts +8 -8
  17. package/dist/Menu.d.ts +10 -9
  18. package/dist/MultiLanguageInput.d.ts +28 -28
  19. package/dist/OrganisationDropdown.d.ts +14 -14
  20. package/dist/PageTitle.d.ts +6 -15
  21. package/dist/Pager.d.ts +8 -8
  22. package/dist/PermissionCheck.d.ts +24 -24
  23. package/dist/RouteLeavingGuard.d.ts +14 -14
  24. package/dist/Stack.d.ts +9 -8
  25. package/dist/StatusLabel.d.ts +11 -11
  26. package/dist/Text.d.ts +21 -20
  27. package/dist/Unbutton.d.ts +7 -7
  28. package/dist/UserMenu/components/CookieSettingsMenuItem.d.ts +9 -9
  29. package/dist/UserMenu/components/CustomOverflowMenu.d.ts +11 -11
  30. package/dist/UserMenu/components/CustomOverflowMenuItem.d.ts +3 -3
  31. package/dist/UserMenu/components/LanguageSwitchMenuItem.d.ts +10 -10
  32. package/dist/UserMenu/components/LogOutMenuItem.d.ts +9 -9
  33. package/dist/UserMenu/components/UserMenuItem.d.ts +9 -9
  34. package/dist/UserMenu/components/VersionMenuItem.d.ts +5 -5
  35. package/dist/UserMenu/index.d.ts +26 -25
  36. package/dist/UserMenu/useOutsideClick.d.ts +2 -2
  37. package/dist/common.cjs.development.js +878 -870
  38. package/dist/common.cjs.development.js.map +1 -1
  39. package/dist/common.cjs.production.min.js +1 -1
  40. package/dist/common.cjs.production.min.js.map +1 -1
  41. package/dist/common.esm.js +838 -826
  42. package/dist/common.esm.js.map +1 -1
  43. package/dist/environment.d.ts +13 -13
  44. package/dist/index.d.ts +31 -30
  45. package/dist/styles.css +161 -161
  46. package/dist/useEventListener.d.ts +3 -5
  47. package/package.json +62 -62
  48. package/dist/helpers.d.ts +0 -1
package/dist/index.d.ts CHANGED
@@ -1,30 +1,31 @@
1
- import './index.scss';
2
- export { Stack } from './Stack';
3
- export { ActionBar, ActionBarLeft, ActionBarRight } from './ActionBar';
4
- export { LinkButton } from './LinkButton';
5
- export { featureFlag, useFeatureToggle, FeatureToggle } from './FeatureToggle';
6
- export { EnturPartnerLogo, EnturPartnerLogoSvg } from './EnturPartnerLogo';
7
- export * from './environment';
8
- export { Menu } from './Menu';
9
- export { Content } from './Content';
10
- export { UserMenu } from './UserMenu';
11
- export { OrganisationDropDown } from './OrganisationDropdown';
12
- export { useEventListener } from './useEventListener';
13
- export { LanguageSelect, LanguageKey, LanguageOption } from './LanguageSelect';
14
- export { ExpandableMultiLanguageInput, MultiLanguageValues, } from './ExpandableMultiLanguageInput';
15
- export { MultiLanguageInput } from './MultiLanguageInput';
16
- export { Unbutton } from './Unbutton';
17
- export { ErrorBoundary } from './ErrorBoundary';
18
- export { FormatDateTime } from './FormatDateTime';
19
- export { FormatCurrencyAmount, FormatCurrencyAmountProps, } from './FormatCurrencyAmount';
20
- export { AuditInfo, AuditInfoProps } from './AuditInfo';
21
- export * from './ConfirmModal';
22
- export * from './RouteLeavingGuard';
23
- export * from './Pager';
24
- export * from './StatusLabel';
25
- export * from './Box';
26
- export * from './PermissionCheck';
27
- export * from './Breadcrumbs';
28
- export * from './Link';
29
- export * from './Text';
30
- export * from './PageTitle';
1
+ import "./index.scss";
2
+ export { ActionBar, ActionBarLeft, ActionBarRight } from "./ActionBar";
3
+ export { AuditInfo, AuditInfoProps } from "./AuditInfo";
4
+ export * from "./Box";
5
+ export * from "./Breadcrumbs";
6
+ export * from "./ConfirmModal";
7
+ export { Content } from "./Content";
8
+ export { EnturPartnerLogo, EnturPartnerLogoSvg } from "./EnturPartnerLogo";
9
+ export { ErrorBoundary } from "./ErrorBoundary";
10
+ export { ExpandableMultiLanguageInput, MultiLanguageValues, } from "./ExpandableMultiLanguageInput";
11
+ export * from "./environment";
12
+ export { FeatureToggle, featureFlag, useFeatureToggle } from "./FeatureToggle";
13
+ export { FormatCurrencyAmount, FormatCurrencyAmountProps, } from "./FormatCurrencyAmount";
14
+ export { FormatDateTime } from "./FormatDateTime";
15
+ export { LanguageKey, LanguageOption, LanguageSelect } from "./LanguageSelect";
16
+ export * from "./LegacyPageTitle";
17
+ export * from "./Link";
18
+ export { LinkButton } from "./LinkButton";
19
+ export { Menu } from "./Menu";
20
+ export { MultiLanguageInput } from "./MultiLanguageInput";
21
+ export { OrganisationDropDown } from "./OrganisationDropdown";
22
+ export * from "./Pager";
23
+ export * from "./PageTitle";
24
+ export * from "./PermissionCheck";
25
+ export * from "./RouteLeavingGuard";
26
+ export { Stack } from "./Stack";
27
+ export * from "./StatusLabel";
28
+ export * from "./Text";
29
+ export { Unbutton } from "./Unbutton";
30
+ export { UserMenu } from "./UserMenu";
31
+ export { useEventListener } from "./useEventListener";
package/dist/styles.css CHANGED
@@ -1,28 +1,4 @@
1
- :root {
2
- --eps-common: 1;
3
- }
4
-
5
- main .eds-table--sticky-header--active .eds-table__head,
6
- .app-shell-content .eds-table--sticky-header--active .eds-table__head {
7
- z-index: 1;
8
- }
9
- .epp-environment-banner ~ main .eds-table--sticky-header--active .eds-table__head,
10
- .epp-environment-banner ~ .app-shell-content .eds-table--sticky-header--active .eds-table__head {
11
- top: 1rem;
12
- }/* DO NOT CHANGE!*/
13
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
14
- button.eps-link-button {
15
- cursor: pointer;
16
- }
17
- button.eps-link-button, button.eps-link-button:hover, button.eps-link-button:focus, button.eps-link-button:active:focus, button.eps-link-button:active:hover, button.eps-link-button:active {
18
- background: none;
19
- background-color: inherit;
20
- border: none;
21
- padding: 0;
22
- }
23
- button.eps-link-button:hover {
24
- color: #aeb7e2;
25
- }/* DO NOT CHANGE!*/
1
+ /* DO NOT CHANGE!*/
26
2
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
27
3
  /* DO NOT CHANGE!*/
28
4
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -58,30 +34,23 @@ button.eps-link-button:hover {
58
34
  height: 100px;
59
35
  }/* DO NOT CHANGE!*/
60
36
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
61
- .eps-logo-wrapper {
62
- display: inline-block;
37
+ .ep-audit-info {
38
+ float: right;
39
+ margin-top: 1rem;
40
+ font-size: 0.875rem;
63
41
  }
64
- .eps-logo-wrapper .logo {
65
- height: auto;
66
- width: 170px;
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;
67
50
  }/* DO NOT CHANGE!*/
68
51
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
69
- /* DO NOT CHANGE!*/
70
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
71
- .eps-menu {
72
- position: relative;
73
- width: 100%;
74
- z-index: 30;
75
- }
76
- @media screen and (min-width: 50rem) {
77
- .eps-menu {
78
- left: 0;
79
- top: 0;
80
- position: fixed;
81
- height: 100vh;
82
- width: 20rem;
83
- overflow-y: scroll;
84
- }
52
+ .eps-confirm-modal-content {
53
+ margin-bottom: 1rem;
85
54
  }/* DO NOT CHANGE!*/
86
55
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
87
56
  /* DO NOT CHANGE!*/
@@ -95,6 +64,14 @@ button.eps-link-button:hover {
95
64
  }
96
65
  }/* DO NOT CHANGE!*/
97
66
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
67
+ .eps-logo-wrapper {
68
+ display: inline-block;
69
+ }
70
+ .eps-logo-wrapper .logo {
71
+ height: auto;
72
+ width: 170px;
73
+ }/* DO NOT CHANGE!*/
74
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
98
75
  .eps-language-select {
99
76
  color: #181c56;
100
77
  }
@@ -103,129 +80,39 @@ button.eps-link-button:hover {
103
80
  }
104
81
  .eps-language-select .asterisk-margin {
105
82
  margin-left: 0.125rem;
106
- }.multi-language-input:focus {
107
- outline: none;
108
- }.eps-unbutton, .eps-unbutton:hover, .eps-unbutton:focus, .eps-unbutton:active:focus, .eps-unbutton:active:hover, .eps-unbutton:active {
109
- background: none;
110
- background-color: inherit;
111
- color: inherit;
112
- border: none;
113
- padding: 0;
114
- font: inherit;
115
- outline: inherit;
116
- height: inherit;
117
- min-width: inherit;
118
83
  }/* DO NOT CHANGE!*/
119
84
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
120
- .eps-confirm-modal-content {
121
- margin-bottom: 1rem;
122
- }/* DO NOT CHANGE!*/
85
+ /* DO NOT CHANGE!*/
123
86
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
124
- /**
125
- PS! We use #eps-user-menu to prevent the micro frontends overriding the styles. By using
126
- an id we have a higher specificity. We should explore a better solution later. Ideally
127
- each micro frontend should be contained by a ShadowDom, but there are too many gotchas
128
- running React in ShadowDom for now.
129
- */
130
- #eps-user-menu {
131
- z-index: 50;
132
- }
133
- #eps-user-menu .eps-user-menu__trigger-button {
134
- border: none;
135
- width: 100%;
136
- }
137
- #eps-user-menu .eps-user-menu__trigger-button .eds-overflow-menu__user-icon {
138
- margin-right: 0.75rem;
139
- padding: 0.5rem;
140
- background: #393d79;
141
- border-radius: 50%;
142
- color: #ffffff;
143
- height: 2.5rem;
144
- width: 2.5rem;
145
- }
146
- #eps-user-menu .eps-user-menu__trigger-button[aria-expanded=true] .eps-arrow-icon svg {
147
- transform: rotate(180deg);
148
- color: #ffffff;
149
- }
150
- #eps-user-menu .eps-overflow-menu {
151
- display: flex;
152
- flex-direction: column;
153
- }
154
- #eps-user-menu .eps-overflow-menu__group {
155
- display: none;
156
- flex-direction: column;
157
- z-index: 20;
158
- }
159
- #eps-user-menu .eps-overflow-menu__group--open {
160
- display: flex;
161
- }
162
- #eps-user-menu .eps-overflow-menu__button {
163
- padding-left: 0.25rem;
164
- }
165
- #eps-user-menu .eps-overflow-menu__button:active .eps-overflow-menu__button-contens {
166
- color: #181c56;
167
- }
168
- #eps-user-menu .eps-overflow-menu__button-contents {
169
- display: flex;
170
- justify-content: flex-start;
171
- align-items: center;
172
- }
173
- #eps-user-menu .eps-overflow-menu__item {
174
- appearance: none;
175
- border: none;
176
- font-size: 0.875rem;
177
- font-family: inherit;
178
- color: #181c56;
179
- background: #f8f8f8;
180
- display: block;
181
- height: 3rem;
182
- cursor: pointer;
87
+ .eps-menu {
88
+ position: relative;
183
89
  width: 100%;
184
- line-height: 1.25rem;
185
- text-align: left;
186
- padding: 0.5rem 1rem;
187
- }
188
- #eps-user-menu .eps-overflow-menu__item .eps-version-icon {
189
- transform: rotate(90deg);
190
- }
191
- #eps-user-menu .eps-overflow-menu__item .eds-icon {
192
- font-size: 1rem;
193
- margin-right: 0.75rem;
194
- }
195
- #eps-user-menu .eps-overflow-menu__item:focus {
196
- outline: none;
197
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
198
- }
199
- #eps-user-menu .eps-overflow-menu__item:hover {
200
- background: #d1d3d3;
201
- }
202
-
203
- #eps-overflow-menu {
204
- position: absolute;
205
- width: 14rem;
206
- z-index: 20;
207
- }
208
- #eps-overflow-menu .eps-overflow-menu__icon-margin {
209
- margin-right: 0.75rem;
90
+ z-index: 30;
210
91
  }
211
- #eps-overflow-menu .eps-overflow-menu__item {
212
- border-radius: 0.25rem;
213
- border: solid 0.0625rem #54568c;
92
+ @media screen and (min-width: 50rem) {
93
+ .eps-menu {
94
+ left: 0;
95
+ top: 0;
96
+ position: fixed;
97
+ height: 100vh;
98
+ width: 20rem;
99
+ overflow-y: scroll;
100
+ }
214
101
  }/* DO NOT CHANGE!*/
215
102
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
216
- .ep-audit-info {
217
- float: right;
218
- margin-top: 1rem;
219
- font-size: 0.875rem;
103
+ button.eps-link-button {
104
+ cursor: pointer;
220
105
  }
221
- .ep-audit-info > div {
222
- display: flex;
223
- justify-content: space-between;
106
+ button.eps-link-button, button.eps-link-button:hover, button.eps-link-button:focus, button.eps-link-button:active:focus, button.eps-link-button:active:hover, button.eps-link-button:active {
107
+ background: none;
108
+ background-color: inherit;
109
+ border: none;
110
+ padding: 0;
224
111
  }
225
-
226
- .ep-audit-info-label {
227
- margin-right: 3rem;
228
- font-weight: 600;
112
+ button.eps-link-button:hover {
113
+ color: #aeb7e2;
114
+ }ol.eds-breadcrumbs {
115
+ padding: 0;
229
116
  }/* DO NOT CHANGE!*/
230
117
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
231
118
  /* DO NOT CHANGE!*/
@@ -2472,6 +2359,8 @@ button.eps-link-button:hover {
2472
2359
 
2473
2360
  .eps-bg-lavender {
2474
2361
  background-color: #aeb7e2;
2362
+ }.multi-language-input:focus {
2363
+ outline: none;
2475
2364
  }/* DO NOT CHANGE!*/
2476
2365
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
2477
2366
  .eps-status-label {
@@ -2493,8 +2382,108 @@ button.eps-link-button:hover {
2493
2382
  }
2494
2383
  .eps-status-label__bullet.active {
2495
2384
  background: #1a8e60;
2496
- }ol.eds-breadcrumbs {
2385
+ }/* DO NOT CHANGE!*/
2386
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
2387
+ /**
2388
+ PS! We use #eps-user-menu to prevent the micro frontends overriding the styles. By using
2389
+ an id we have a higher specificity. We should explore a better solution later. Ideally
2390
+ each micro frontend should be contained by a ShadowDom, but there are too many gotchas
2391
+ running React in ShadowDom for now.
2392
+ */
2393
+ #eps-user-menu {
2394
+ z-index: 50;
2395
+ }
2396
+ #eps-user-menu .eps-user-menu__trigger-button {
2397
+ border: none;
2398
+ width: 100%;
2399
+ }
2400
+ #eps-user-menu .eps-user-menu__trigger-button .eds-overflow-menu__user-icon {
2401
+ margin-right: 0.75rem;
2402
+ padding: 0.5rem;
2403
+ background: #393d79;
2404
+ border-radius: 50%;
2405
+ color: #ffffff;
2406
+ height: 2.5rem;
2407
+ width: 2.5rem;
2408
+ }
2409
+ #eps-user-menu .eps-user-menu__trigger-button[aria-expanded=true] .eps-arrow-icon svg {
2410
+ transform: rotate(180deg);
2411
+ color: #ffffff;
2412
+ }
2413
+ #eps-user-menu .eps-overflow-menu {
2414
+ display: flex;
2415
+ flex-direction: column;
2416
+ }
2417
+ #eps-user-menu .eps-overflow-menu__group {
2418
+ display: none;
2419
+ flex-direction: column;
2420
+ z-index: 20;
2421
+ }
2422
+ #eps-user-menu .eps-overflow-menu__group--open {
2423
+ display: flex;
2424
+ }
2425
+ #eps-user-menu .eps-overflow-menu__button {
2426
+ padding-left: 0.25rem;
2427
+ }
2428
+ #eps-user-menu .eps-overflow-menu__button:active .eps-overflow-menu__button-contens {
2429
+ color: #181c56;
2430
+ }
2431
+ #eps-user-menu .eps-overflow-menu__button-contents {
2432
+ display: flex;
2433
+ justify-content: flex-start;
2434
+ align-items: center;
2435
+ }
2436
+ #eps-user-menu .eps-overflow-menu__item {
2437
+ appearance: none;
2438
+ border: none;
2439
+ font-size: 0.875rem;
2440
+ font-family: inherit;
2441
+ color: #181c56;
2442
+ background: #f8f8f8;
2443
+ display: block;
2444
+ height: 3rem;
2445
+ cursor: pointer;
2446
+ width: 100%;
2447
+ line-height: 1.25rem;
2448
+ text-align: left;
2449
+ padding: 0.5rem 1rem;
2450
+ }
2451
+ #eps-user-menu .eps-overflow-menu__item .eps-version-icon {
2452
+ transform: rotate(90deg);
2453
+ }
2454
+ #eps-user-menu .eps-overflow-menu__item .eds-icon {
2455
+ font-size: 1rem;
2456
+ margin-right: 0.75rem;
2457
+ }
2458
+ #eps-user-menu .eps-overflow-menu__item:focus {
2459
+ outline: none;
2460
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
2461
+ }
2462
+ #eps-user-menu .eps-overflow-menu__item:hover {
2463
+ background: #d1d3d3;
2464
+ }
2465
+
2466
+ #eps-overflow-menu {
2467
+ position: absolute;
2468
+ width: 14rem;
2469
+ z-index: 20;
2470
+ }
2471
+ #eps-overflow-menu .eps-overflow-menu__icon-margin {
2472
+ margin-right: 0.75rem;
2473
+ }
2474
+ #eps-overflow-menu .eps-overflow-menu__item {
2475
+ border-radius: 0.25rem;
2476
+ border: solid 0.0625rem #54568c;
2477
+ }.eps-unbutton, .eps-unbutton:hover, .eps-unbutton:focus, .eps-unbutton:active:focus, .eps-unbutton:active:hover, .eps-unbutton:active {
2478
+ background: none;
2479
+ background-color: inherit;
2480
+ color: inherit;
2481
+ border: none;
2497
2482
  padding: 0;
2483
+ font: inherit;
2484
+ outline: inherit;
2485
+ height: inherit;
2486
+ min-width: inherit;
2498
2487
  }/* DO NOT CHANGE!*/
2499
2488
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
2500
2489
  /* DO NOT CHANGE!*/
@@ -2771,4 +2760,15 @@ button.eps-link-button:hover {
2771
2760
 
2772
2761
  .eps-font-weight-heading {
2773
2762
  font-weight: 1rem;
2763
+ }:root {
2764
+ --eps-common: 1;
2765
+ }
2766
+
2767
+ main .eds-table--sticky-header--active .eds-table__head,
2768
+ .app-shell-content .eds-table--sticky-header--active .eds-table__head {
2769
+ z-index: 1;
2770
+ }
2771
+ .epp-environment-banner ~ main .eds-table--sticky-header--active .eds-table__head,
2772
+ .epp-environment-banner ~ .app-shell-content .eds-table--sticky-header--active .eds-table__head {
2773
+ top: 1rem;
2774
2774
  }
@@ -1,5 +1,3 @@
1
- interface TypedEventListener<T extends Event> {
2
- (evt: T): void;
3
- }
4
- export declare function useEventListener<T extends Event = Event>(eventName: string, handler: TypedEventListener<T>, element?: WindowEventHandlers): void;
5
- export {};
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 {};
package/package.json CHANGED
@@ -1,64 +1,64 @@
1
1
  {
2
- "name": "@entur-partner/common",
3
- "version": "9.3.2",
4
- "license": "EUPL-1.2",
5
- "main": "dist/index.js",
6
- "module": "dist/common.esm.js",
7
- "typings": "dist/index.d.ts",
8
- "files": [
9
- "dist"
10
- ],
11
- "repository": {
12
- "type": "git",
13
- "url": "https://github.com/entur/entur-partner-packages.git",
14
- "directory": "packages/common"
15
- },
16
- "publishConfig": {
17
- "access": "public"
18
- },
19
- "scripts": {
20
- "watch": "dts watch --noClean --verbose --transpileOnly",
21
- "build": "dts build",
22
- "test": "dts test --env=jsdom",
23
- "lint": "dts lint"
24
- },
25
- "peerDependencies": {
26
- "@entur/button": ">=2.3.6 <4.0.0",
27
- "@entur/dropdown": ">=5.0.3 <8.0.0",
28
- "@entur/expand": "^3.2.17",
29
- "@entur/form": ">=5.0.0 <9.0.0",
30
- "@entur/icons": ">=7.0.0 <9.0.0",
31
- "@entur/menu": ">=4.0.0 <6.0.0",
32
- "@entur/modal": "^1.3.6",
33
- "@entur/tooltip": ">=2.4.7 <6.0.0",
34
- "react": ">=16.8.0",
35
- "react-dom": ">=16.8.0",
36
- "react-helmet-async": "^1.3.0",
37
- "react-router-dom": "^6.22.0"
38
- },
39
- "dependencies": {
40
- "@entur-partner/util": "^1.3.1",
41
- "classnames": "^2.2.6"
42
- },
43
- "devDependencies": {
44
- "@entur-partner/permission-client-node": "2.3.2",
45
- "@entur/tokens": "3.17.3",
46
- "identity-obj-proxy": "3.0.0",
47
- "react-helmet-async": "1.3.0",
48
- "react-router-dom": "6.28.0"
49
- },
50
- "jest": {
51
- "moduleNameMapper": {
52
- "\\.(css|less|sass|scss)$": "identity-obj-proxy"
53
- },
54
- "collectCoverageFrom": [
55
- "<rootDir>/src/**/*.{js,jsx,ts,tsx}"
56
- ]
57
- },
58
- "jestSonar": {
59
- "reportPath": "reports/jest/",
60
- "reportFile": "jest-sonar-report.xml",
61
- "indent": 4
62
- },
63
- "gitHead": "1560685531735d921c3087519c60b74d63704ff3"
2
+ "name": "@entur-partner/common",
3
+ "version": "9.3.3-alpha.1",
4
+ "license": "EUPL-1.2",
5
+ "main": "dist/index.js",
6
+ "module": "dist/common.esm.js",
7
+ "typings": "dist/index.d.ts",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/entur/entur-partner-packages.git",
14
+ "directory": "packages/common"
15
+ },
16
+ "publishConfig": {
17
+ "access": "public"
18
+ },
19
+ "scripts": {
20
+ "watch": "dts watch --noClean --verbose --transpileOnly",
21
+ "build": "dts build",
22
+ "test": "dts test --env=jsdom",
23
+ "lint": "dts lint"
24
+ },
25
+ "peerDependencies": {
26
+ "@entur/button": ">=2.3.6 <4.0.0",
27
+ "@entur/dropdown": ">=5.0.3 <8.0.0",
28
+ "@entur/expand": "^3.2.17",
29
+ "@entur/form": ">=5.0.0 <9.0.0",
30
+ "@entur/icons": ">=7.12.0 <9.0.0",
31
+ "@entur/menu": ">=4.0.0 <6.0.0",
32
+ "@entur/modal": "^1.3.6",
33
+ "@entur/tooltip": ">=2.4.7 <6.0.0",
34
+ "react": ">=18.0.0",
35
+ "react-dom": ">=18.0.0",
36
+ "react-helmet-async": ">=2.0.0 <3.0.0",
37
+ "react-router-dom": "^6.22.0"
38
+ },
39
+ "dependencies": {
40
+ "@entur-partner/util": "^1.3.2-alpha.1",
41
+ "classnames": "^2.2.6"
42
+ },
43
+ "devDependencies": {
44
+ "@entur-partner/permission-client-node": "3.4.6",
45
+ "@entur/tokens": "3.17.3",
46
+ "identity-obj-proxy": "3.0.0",
47
+ "react-helmet-async": "2.0.5",
48
+ "react-router-dom": "6.30.1"
49
+ },
50
+ "jest": {
51
+ "moduleNameMapper": {
52
+ "\\.(css|less|sass|scss)$": "identity-obj-proxy"
53
+ },
54
+ "collectCoverageFrom": [
55
+ "<rootDir>/src/**/*.{js,jsx,ts,tsx}"
56
+ ]
57
+ },
58
+ "jestSonar": {
59
+ "reportPath": "reports/jest/",
60
+ "reportFile": "jest-sonar-report.xml",
61
+ "indent": 4
62
+ },
63
+ "gitHead": "fa8d131f819bb786175f6a96eea9650d7e02bee2"
64
64
  }
package/dist/helpers.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare function isFunction<T>(functionToCheck: any): functionToCheck is T;