@telia/teddy 0.2.1 → 0.2.3
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/components/navigation-menu/global-navigation/global-navigation-desktop.cjs +2 -2
- package/dist/components/navigation-menu/global-navigation/global-navigation-desktop.js +2 -2
- package/dist/components/navigation-menu/global-navigation/global-navigation-mobile.cjs +2 -3
- package/dist/components/navigation-menu/global-navigation/global-navigation-mobile.d.ts +8 -1
- package/dist/components/navigation-menu/global-navigation/global-navigation-mobile.js +3 -4
- package/dist/components/navigation-menu/global-navigation/global-navigation-root.d.ts +5 -2
- package/dist/components/navigation-menu/global-navigation/utils.cjs +304 -35
- package/dist/components/navigation-menu/global-navigation/utils.d.ts +457 -23
- package/dist/components/navigation-menu/global-navigation/utils.js +305 -36
- package/dist/components/radio-card-group/radio-card-group-item-title.cjs +394 -339
- package/dist/components/radio-card-group/radio-card-group-item-title.js +395 -340
- package/dist/style.css +144 -202
- package/package.json +1 -1
|
@@ -7,9 +7,9 @@ require("./utils.cjs");
|
|
|
7
7
|
require("../../box/box.cjs");
|
|
8
8
|
require("../../../utils/useSize.cjs");
|
|
9
9
|
require("../../../utils/generate-styling/index.cjs");
|
|
10
|
-
require("../../../utils/useCallbackRef.cjs");
|
|
11
|
-
require("../../../tokens/motion/variables.cjs");
|
|
12
10
|
require("../../../assets/sprite.1321fab0-teddy.svg");
|
|
13
11
|
require("../../icon/icon.cjs");
|
|
14
12
|
require("../../flex/flex.cjs");
|
|
13
|
+
require("../../heading/heading.cjs");
|
|
14
|
+
require("../../button/button.cjs");
|
|
15
15
|
exports.Desktop = components_radioCardGroup_radioCardGroupItemTitle.Desktop;
|
|
@@ -5,11 +5,11 @@ import "./utils.js";
|
|
|
5
5
|
import "../../box/box.js";
|
|
6
6
|
import "../../../utils/useSize.js";
|
|
7
7
|
import "../../../utils/generate-styling/index.js";
|
|
8
|
-
import "../../../utils/useCallbackRef.js";
|
|
9
|
-
import "../../../tokens/motion/variables.js";
|
|
10
8
|
import "../../../assets/sprite.1321fab0-teddy.svg";
|
|
11
9
|
import "../../icon/icon.js";
|
|
12
10
|
import "../../flex/flex.js";
|
|
11
|
+
import "../../heading/heading.js";
|
|
12
|
+
import "../../button/button.js";
|
|
13
13
|
export {
|
|
14
14
|
D as Desktop
|
|
15
15
|
};
|
|
@@ -12,8 +12,7 @@ require("../../../assets/sprite.1321fab0-teddy.svg");
|
|
|
12
12
|
require("../../icon/icon.cjs");
|
|
13
13
|
require("../../tabs/index.cjs");
|
|
14
14
|
require("./utils.cjs");
|
|
15
|
-
require("../../accordion/index.cjs");
|
|
16
|
-
require("../../visually-hidden/visually-hidden.cjs");
|
|
17
|
-
require("../../link/link.cjs");
|
|
18
15
|
require("../../list/index.cjs");
|
|
16
|
+
require("../../heading/heading.cjs");
|
|
17
|
+
exports.HighlightedLinks = components_radioCardGroup_radioCardGroupItemTitle.HighlightedLinks;
|
|
19
18
|
exports.Mobile = components_radioCardGroup_radioCardGroupItemTitle.Mobile;
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
1
|
+
import { default as React, MutableRefObject } from 'react';
|
|
2
|
+
import { Link as LinkProps } from './utils';
|
|
2
3
|
|
|
3
4
|
export type MobileProps = React.ComponentPropsWithoutRef<'div'>;
|
|
4
5
|
export declare function Mobile(props: MobileProps): import("react/jsx-runtime").JSX.Element | null;
|
|
5
6
|
export declare namespace Mobile {
|
|
6
7
|
var displayName: string;
|
|
7
8
|
}
|
|
9
|
+
export declare const HighlightedLinks: ({ listTitle, links, item, drawerRef, }: {
|
|
10
|
+
listTitle: string;
|
|
11
|
+
links: LinkProps[];
|
|
12
|
+
item: LinkProps;
|
|
13
|
+
drawerRef?: MutableRefObject<HTMLButtonElement | null>;
|
|
14
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { f } from "../../radio-card-group/radio-card-group-item-title.js";
|
|
3
|
+
import { H, f } from "../../radio-card-group/radio-card-group-item-title.js";
|
|
4
4
|
import "clsx";
|
|
5
5
|
import "../../flex/flex.js";
|
|
6
6
|
import "../../box/box.js";
|
|
@@ -10,10 +10,9 @@ import "../../../assets/sprite.1321fab0-teddy.svg";
|
|
|
10
10
|
import "../../icon/icon.js";
|
|
11
11
|
import "../../tabs/index.js";
|
|
12
12
|
import "./utils.js";
|
|
13
|
-
import "../../accordion/index.js";
|
|
14
|
-
import "../../visually-hidden/visually-hidden.js";
|
|
15
|
-
import "../../link/link.js";
|
|
16
13
|
import "../../list/index.js";
|
|
14
|
+
import "../../heading/heading.js";
|
|
17
15
|
export {
|
|
16
|
+
H as HighlightedLinks,
|
|
18
17
|
f as Mobile
|
|
19
18
|
};
|
|
@@ -13,6 +13,7 @@ export type RootProps = React.ComponentPropsWithoutRef<'div'> & {
|
|
|
13
13
|
shoppingCart?: React.ReactNode;
|
|
14
14
|
shoppingCartNumberOfItems?: number;
|
|
15
15
|
onSearchSubmit?: (e: React.FormEvent<HTMLFormElement>, value?: string) => void;
|
|
16
|
+
additionalSearchContent?: React.ReactNode;
|
|
16
17
|
isCartOpen?: boolean;
|
|
17
18
|
onCartOpenChange?: (open: boolean) => void;
|
|
18
19
|
drawerSize: 'md' | 'lg';
|
|
@@ -26,9 +27,11 @@ type RootContext = {
|
|
|
26
27
|
setSelectedDomainItem: (v: string, onlyStateChange?: boolean) => void;
|
|
27
28
|
pathname: string;
|
|
28
29
|
setPathname: (v: string) => void;
|
|
29
|
-
|
|
30
|
+
specifiedLink?: string;
|
|
31
|
+
setSpecifiedLink: (v: string) => void;
|
|
32
|
+
} & Pick<RootProps, 'onSearchSubmit' | 'additionalSearchContent' | 'shoppingCart' | 'shoppingCartNumberOfItems' | 'loggedInUser' | 'appKey' | 'onLogoutClick' | 'linkComponent' | 'isCartOpen' | 'onCartOpenChange' | 'drawerSize'>;
|
|
30
33
|
export declare const RootContext: React.Context<RootContext | null>;
|
|
31
|
-
export declare function Root({ className, appKey, loggedInUser, linkComponent, onLogoutClick, shoppingCart, shoppingCartNumberOfItems, onSearchSubmit, isCartOpen, onCartOpenChange, drawerSize, isSimplified, currentPath, ...props }: RootProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
export declare function Root({ className, appKey, loggedInUser, linkComponent, onLogoutClick, shoppingCart, shoppingCartNumberOfItems, onSearchSubmit, additionalSearchContent, isCartOpen, onCartOpenChange, drawerSize, isSimplified, currentPath, ...props }: RootProps): import("react/jsx-runtime").JSX.Element;
|
|
32
35
|
export declare namespace Root {
|
|
33
36
|
var displayName: string;
|
|
34
37
|
}
|
|
@@ -79,17 +79,92 @@ const PRIVATE_LINKS = {
|
|
|
79
79
|
name: "Privat",
|
|
80
80
|
link: "/",
|
|
81
81
|
appKey: APP_KEYS["open-pages"],
|
|
82
|
+
highlightedLinks: [
|
|
83
|
+
{
|
|
84
|
+
name: "Mobilabonnement",
|
|
85
|
+
link: "/mobil/mobilabonnement/priser/",
|
|
86
|
+
appKey: APP_KEYS["web-shop"]
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: "Mobiltelefoner",
|
|
90
|
+
link: "/mobil/mobiltelefoner/",
|
|
91
|
+
appKey: APP_KEYS["web-shop"]
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: "Varemerker ",
|
|
95
|
+
link: "/varemerker/",
|
|
96
|
+
appKey: APP_KEYS["web-shop"]
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
name: "Kampanjer",
|
|
100
|
+
link: "/kampanje/",
|
|
101
|
+
appKey: APP_KEYS["open-pages"]
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
name: "Faktura",
|
|
105
|
+
link: "/hjelp/faktura/",
|
|
106
|
+
appKey: APP_KEYS["open-pages"]
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
name: "Se Telia Play",
|
|
110
|
+
link: "https://www.teliaplay.no",
|
|
111
|
+
appKey: APP_KEYS["open-pages"]
|
|
112
|
+
}
|
|
113
|
+
],
|
|
82
114
|
links: [
|
|
83
115
|
{
|
|
84
116
|
name: "Logo",
|
|
85
117
|
link: "/",
|
|
86
118
|
appKey: APP_KEYS["open-pages"],
|
|
87
|
-
links: []
|
|
119
|
+
links: [],
|
|
120
|
+
highlightedLinks: []
|
|
88
121
|
},
|
|
89
122
|
{
|
|
90
|
-
name: "
|
|
91
|
-
link: "
|
|
123
|
+
name: "Mobilabonnement",
|
|
124
|
+
link: "",
|
|
92
125
|
appKey: APP_KEYS["open-pages"],
|
|
126
|
+
highlightedLinks: [
|
|
127
|
+
{
|
|
128
|
+
name: "Kjøp Telia X",
|
|
129
|
+
link: "/mobil/mobilabonnement/ubegrenset-data/",
|
|
130
|
+
appKey: APP_KEYS["web-shop"]
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
name: "Pakketilbud",
|
|
134
|
+
link: "/mobil/mobilabonnement/pakketilbud/",
|
|
135
|
+
appKey: APP_KEYS["web-shop"]
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
name: "Kjøp iPhone",
|
|
139
|
+
link: "/varemerker/apple/iphone/",
|
|
140
|
+
appKey: APP_KEYS["web-shop"]
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
name: "Kjøp AirPods",
|
|
144
|
+
link: "/varemerker/apple/airpods/",
|
|
145
|
+
appKey: APP_KEYS["web-shop"]
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
name: "Kampanjer",
|
|
149
|
+
link: "/kampanje/",
|
|
150
|
+
appKey: APP_KEYS["open-pages"]
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
name: "SIM, PIN og PUK",
|
|
154
|
+
link: "/mobil/mobilabonnement/sim-kort/",
|
|
155
|
+
appKey: APP_KEYS["open-pages"]
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
name: "Utland",
|
|
159
|
+
link: "/mobil/mobilabonnement/utland/",
|
|
160
|
+
appKey: APP_KEYS["open-pages"]
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
name: "Eierskifte",
|
|
164
|
+
link: "/mobil/hjelp/bytte-eier/",
|
|
165
|
+
appKey: APP_KEYS["open-pages"]
|
|
166
|
+
}
|
|
167
|
+
],
|
|
93
168
|
links: [
|
|
94
169
|
{
|
|
95
170
|
name: "Mobilabonnement",
|
|
@@ -116,11 +191,6 @@ const PRIVATE_LINKS = {
|
|
|
116
191
|
link: "/mobil/tilbehor/",
|
|
117
192
|
appKey: APP_KEYS["web-shop"]
|
|
118
193
|
},
|
|
119
|
-
{
|
|
120
|
-
name: "Pakketilbud",
|
|
121
|
-
link: "/mobil/mobilabonnement/pakketilbud/",
|
|
122
|
-
appKey: APP_KEYS["web-shop"]
|
|
123
|
-
},
|
|
124
194
|
{
|
|
125
195
|
name: "Påfyll kontantkort",
|
|
126
196
|
link: "/mobil/mobilabonnement/kontantkort/lade/",
|
|
@@ -130,18 +200,66 @@ const PRIVATE_LINKS = {
|
|
|
130
200
|
name: "Hjelp Mobil",
|
|
131
201
|
link: "/mobil/hjelp/",
|
|
132
202
|
appKey: APP_KEYS["open-pages"]
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
name: "Alt om mobil",
|
|
206
|
+
link: "/mobil/",
|
|
207
|
+
appKey: APP_KEYS["open-pages"]
|
|
133
208
|
}
|
|
134
209
|
]
|
|
135
210
|
},
|
|
211
|
+
// {
|
|
212
|
+
// name: 'Nettbutikk',
|
|
213
|
+
// link: '',
|
|
214
|
+
// appKey: APP_KEYS['open-pages'],
|
|
215
|
+
// highlightedLinks: [],
|
|
216
|
+
// links: [],
|
|
217
|
+
// },
|
|
136
218
|
{
|
|
137
219
|
name: "TV",
|
|
138
|
-
link: "
|
|
220
|
+
link: "",
|
|
139
221
|
appKey: APP_KEYS["open-pages"],
|
|
222
|
+
highlightedLinks: [
|
|
223
|
+
{
|
|
224
|
+
name: "Valgmenyen i Telia Play",
|
|
225
|
+
link: "https://account.teliaplay.no/subscription/selection-menu",
|
|
226
|
+
appKey: APP_KEYS["open-pages"]
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
name: "Aktivere strømmetjenester",
|
|
230
|
+
link: "/tv/innholdsoversikt/strommetjenester/#registrere",
|
|
231
|
+
appKey: APP_KEYS["open-pages"]
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
name: "Kjøp Premier League",
|
|
235
|
+
link: "/tv/innholdsoversikt/premiumtjenester/premier-league-v-premium/",
|
|
236
|
+
appKey: APP_KEYS["open-pages"]
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
name: "Kampanjer",
|
|
240
|
+
link: "/kampanje/",
|
|
241
|
+
appKey: APP_KEYS["open-pages"]
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
name: "Kom i gang med Telia Play",
|
|
245
|
+
link: "/tv/hjelp/kom-i-gang/",
|
|
246
|
+
appKey: APP_KEYS["open-pages"]
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
name: "Slik bruker du Telia Play",
|
|
250
|
+
link: "/tv/hjelp/daglig-bruk/",
|
|
251
|
+
appKey: APP_KEYS["open-pages"]
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
name: "Driftsmeldinger og feilsøk",
|
|
255
|
+
link: "/tv/hjelp/tv-feilsok/",
|
|
256
|
+
appKey: APP_KEYS["open-pages"]
|
|
257
|
+
}
|
|
258
|
+
],
|
|
140
259
|
links: [
|
|
141
260
|
{
|
|
142
261
|
name: "Se Telia Play",
|
|
143
262
|
link: "https://www.teliaplay.no",
|
|
144
|
-
icon: "external",
|
|
145
263
|
appKey: APP_KEYS["open-pages"]
|
|
146
264
|
},
|
|
147
265
|
{
|
|
@@ -154,21 +272,11 @@ const PRIVATE_LINKS = {
|
|
|
154
272
|
link: "/tv/innholdsoversikt/strommetjenester/",
|
|
155
273
|
appKey: APP_KEYS["open-pages"]
|
|
156
274
|
},
|
|
157
|
-
// {
|
|
158
|
-
// name: 'TV-kanaler',
|
|
159
|
-
// link: '/tv/tv-kanaler-og-kanalpakker/',
|
|
160
|
-
// appKey: APP_KEYS['open-pages'],
|
|
161
|
-
// },
|
|
162
275
|
{
|
|
163
276
|
name: "Premiumtjenester",
|
|
164
277
|
link: "/tv/innholdsoversikt/premiumtjenester/",
|
|
165
278
|
appKey: APP_KEYS["open-pages"]
|
|
166
279
|
},
|
|
167
|
-
// {
|
|
168
|
-
// name: 'Filmer',
|
|
169
|
-
// link: '/tv/filmleie-og-filmkjop/',
|
|
170
|
-
// appKey: APP_KEYS['open-pages'],
|
|
171
|
-
// },
|
|
172
280
|
{
|
|
173
281
|
name: "TV-bokser",
|
|
174
282
|
link: "/tv/tv-bokser/",
|
|
@@ -178,13 +286,50 @@ const PRIVATE_LINKS = {
|
|
|
178
286
|
name: "Hjelp TV",
|
|
179
287
|
link: "/tv/hjelp/",
|
|
180
288
|
appKey: APP_KEYS["open-pages"]
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
name: "Alt om TV",
|
|
292
|
+
link: "/tv/",
|
|
293
|
+
appKey: APP_KEYS["open-pages"]
|
|
181
294
|
}
|
|
182
295
|
]
|
|
183
296
|
},
|
|
184
297
|
{
|
|
185
298
|
name: "Internett",
|
|
186
|
-
link: "
|
|
299
|
+
link: "",
|
|
187
300
|
appKey: APP_KEYS["open-pages"],
|
|
301
|
+
highlightedLinks: [
|
|
302
|
+
{
|
|
303
|
+
name: "Søk på adresse",
|
|
304
|
+
link: "/internett/sok-adresse/",
|
|
305
|
+
appKey: APP_KEYS["open-pages"]
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
name: "Kjøp bredbånd til hytta",
|
|
309
|
+
link: "/internett/tradlost-bredband-hytte/",
|
|
310
|
+
appKey: APP_KEYS["open-pages"]
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
name: "Kampanjer",
|
|
314
|
+
link: "/kampanje/",
|
|
315
|
+
appKey: APP_KEYS["open-pages"]
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
name: "Problemer med internett",
|
|
319
|
+
link: "/internett/internett-problemer/",
|
|
320
|
+
appKey: APP_KEYS["open-pages"]
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
name: "Rutere og innstillinger",
|
|
324
|
+
link: "/internett/wifi/rutere/",
|
|
325
|
+
appKey: APP_KEYS["open-pages"]
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
name: "WiFi-tips",
|
|
329
|
+
link: "/internett/wifi/wifi-tips/",
|
|
330
|
+
appKey: APP_KEYS["open-pages"]
|
|
331
|
+
}
|
|
332
|
+
],
|
|
188
333
|
links: [
|
|
189
334
|
{
|
|
190
335
|
name: "Fast bredbånd",
|
|
@@ -220,13 +365,60 @@ const PRIVATE_LINKS = {
|
|
|
220
365
|
name: "Hjelp Internett",
|
|
221
366
|
link: "/internett/hjelp/",
|
|
222
367
|
appKey: APP_KEYS["open-pages"]
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
name: "Alt om internett",
|
|
371
|
+
link: "/internett/",
|
|
372
|
+
appKey: APP_KEYS["open-pages"]
|
|
223
373
|
}
|
|
224
374
|
]
|
|
225
375
|
},
|
|
226
376
|
{
|
|
227
377
|
name: "Trygghet",
|
|
228
|
-
link: "
|
|
378
|
+
link: "",
|
|
229
379
|
appKey: APP_KEYS["open-pages"],
|
|
380
|
+
highlightedLinks: [
|
|
381
|
+
{
|
|
382
|
+
name: "Telia Trygg",
|
|
383
|
+
link: "/trygghet/tjenester/telia-trygg/",
|
|
384
|
+
appKey: APP_KEYS["open-pages"]
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
name: "Mobilforsikring",
|
|
388
|
+
link: "/trygghet/tjenester/mobilforsikring/",
|
|
389
|
+
appKey: APP_KEYS["open-pages"]
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
name: "Telia Sky",
|
|
393
|
+
link: "/trygghet/tjenester/telia-sky/",
|
|
394
|
+
appKey: APP_KEYS["open-pages"]
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
name: "Trygg mobil for barn",
|
|
398
|
+
link: "/trygghet/trygg-pa-skjerm/trygg-mobil-til-barn/",
|
|
399
|
+
appKey: APP_KEYS["open-pages"]
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
name: "Ta styring over skjermtiden",
|
|
403
|
+
link: "/trygghet/skjermhelse/skjermtid/",
|
|
404
|
+
appKey: APP_KEYS["open-pages"]
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
name: "Falske nettbutikker",
|
|
408
|
+
link: "/trygghet/svindel/falske-nettbutikker/",
|
|
409
|
+
appKey: APP_KEYS["open-pages"]
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
name: "ID-tyveri",
|
|
413
|
+
link: "/trygghet/svindel/id-tyveri/",
|
|
414
|
+
appKey: APP_KEYS["open-pages"]
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
name: "Lynkurs - trygg på skjerm",
|
|
418
|
+
link: "/trygghet/trygg-pa-skjerm/lynkurs/",
|
|
419
|
+
appKey: APP_KEYS["open-pages"]
|
|
420
|
+
}
|
|
421
|
+
],
|
|
230
422
|
links: [
|
|
231
423
|
{
|
|
232
424
|
name: "Tjenester",
|
|
@@ -257,13 +449,50 @@ const PRIVATE_LINKS = {
|
|
|
257
449
|
name: "Hjelp Trygghet",
|
|
258
450
|
link: "/trygghet/hjelp/",
|
|
259
451
|
appKey: APP_KEYS["open-pages"]
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
name: "Alt om trygghet",
|
|
455
|
+
link: "/trygghet/",
|
|
456
|
+
appKey: APP_KEYS["open-pages"]
|
|
260
457
|
}
|
|
261
458
|
]
|
|
262
459
|
},
|
|
263
460
|
{
|
|
264
461
|
name: "Hjelp",
|
|
265
|
-
link: "
|
|
462
|
+
link: "",
|
|
266
463
|
appKey: APP_KEYS["open-pages"],
|
|
464
|
+
highlightedLinks: [
|
|
465
|
+
{
|
|
466
|
+
name: "SIM, PIN og PUK",
|
|
467
|
+
link: "/mobil/mobilabonnement/sim-kort/",
|
|
468
|
+
appKey: APP_KEYS["open-pages"]
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
name: "Driftsmeldinger",
|
|
472
|
+
link: "/hjelp/driftsmeldinger/",
|
|
473
|
+
appKey: APP_KEYS["open-pages"]
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
name: "Dekningskart",
|
|
477
|
+
link: "/nett/dekning/",
|
|
478
|
+
appKey: APP_KEYS["open-pages"]
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
name: "Returnere rutere og TV-bokser",
|
|
482
|
+
link: "/hjelp/retur-av-utstyr/",
|
|
483
|
+
appKey: APP_KEYS["open-pages"]
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
name: "Last ned apper",
|
|
487
|
+
link: "/hjelp/apper/",
|
|
488
|
+
appKey: APP_KEYS["open-pages"]
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
name: "Se din faktura",
|
|
492
|
+
link: "/minside/faktura/",
|
|
493
|
+
appKey: APP_KEYS["my-pages"]
|
|
494
|
+
}
|
|
495
|
+
],
|
|
267
496
|
links: [
|
|
268
497
|
{
|
|
269
498
|
name: "Hjelp Mobil",
|
|
@@ -299,6 +528,11 @@ const PRIVATE_LINKS = {
|
|
|
299
528
|
name: "Finn butikk",
|
|
300
529
|
link: "/hjelp/butikker-og-forhandlere/",
|
|
301
530
|
appKey: APP_KEYS["open-pages"]
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
name: "Hjelp til alt",
|
|
534
|
+
link: "/hjelp/",
|
|
535
|
+
appKey: APP_KEYS["open-pages"]
|
|
302
536
|
}
|
|
303
537
|
// {
|
|
304
538
|
// name: 'Kontakt oss',
|
|
@@ -313,35 +547,41 @@ const BUSINESS_LINKS = {
|
|
|
313
547
|
name: "Bedrift",
|
|
314
548
|
link: "/bedrift/",
|
|
315
549
|
appKey: APP_KEYS["open-pages"],
|
|
550
|
+
highlightedLinks: [],
|
|
316
551
|
links: [
|
|
317
552
|
{
|
|
318
553
|
name: "Logo",
|
|
319
554
|
link: "/bedrift/",
|
|
320
555
|
appKey: APP_KEYS["open-pages"],
|
|
321
|
-
links: []
|
|
556
|
+
links: [],
|
|
557
|
+
highlightedLinks: []
|
|
322
558
|
},
|
|
323
559
|
{
|
|
324
560
|
name: "Produkter og tjenester",
|
|
325
561
|
link: "/bedrift/produkter-og-tjenester/",
|
|
326
562
|
appKey: APP_KEYS["open-pages"],
|
|
327
|
-
links: []
|
|
563
|
+
links: [],
|
|
564
|
+
highlightedLinks: []
|
|
328
565
|
},
|
|
329
566
|
{
|
|
330
567
|
name: "Sikkerhet",
|
|
331
568
|
link: "/bedrift/sikkerhet/",
|
|
332
569
|
appKey: APP_KEYS["open-pages"],
|
|
333
|
-
links: []
|
|
570
|
+
links: [],
|
|
571
|
+
highlightedLinks: []
|
|
334
572
|
},
|
|
335
573
|
{
|
|
336
574
|
name: "Innovasjon",
|
|
337
575
|
link: "/bedrift/innovasjon-og-startup/",
|
|
338
576
|
appKey: APP_KEYS["open-pages"],
|
|
339
|
-
links: []
|
|
577
|
+
links: [],
|
|
578
|
+
highlightedLinks: []
|
|
340
579
|
},
|
|
341
580
|
{
|
|
342
581
|
name: "Nettbutikk",
|
|
343
582
|
link: "/bedrift/mobilabonnement/",
|
|
344
583
|
appKey: APP_KEYS["open-pages"],
|
|
584
|
+
highlightedLinks: [],
|
|
345
585
|
links: [
|
|
346
586
|
{
|
|
347
587
|
name: "Mobilabonnement",
|
|
@@ -364,7 +604,30 @@ const BUSINESS_LINKS = {
|
|
|
364
604
|
name: "Hjelp",
|
|
365
605
|
link: "/bedrift/kundeservice/",
|
|
366
606
|
appKey: APP_KEYS["open-pages"],
|
|
367
|
-
links: []
|
|
607
|
+
links: [],
|
|
608
|
+
highlightedLinks: []
|
|
609
|
+
}
|
|
610
|
+
]
|
|
611
|
+
};
|
|
612
|
+
const BUSINESS_UKKO_LINKS = {
|
|
613
|
+
name: "Bedrift",
|
|
614
|
+
link: "/bedrift/",
|
|
615
|
+
appKey: APP_KEYS["open-pages"],
|
|
616
|
+
highlightedLinks: [],
|
|
617
|
+
links: [
|
|
618
|
+
{
|
|
619
|
+
name: "Logo",
|
|
620
|
+
link: "/bedrift/",
|
|
621
|
+
appKey: APP_KEYS["open-pages"],
|
|
622
|
+
links: [],
|
|
623
|
+
highlightedLinks: []
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
name: "Hjem",
|
|
627
|
+
link: "https://portal.stage.ukko.telia.io/shop",
|
|
628
|
+
appKey: APP_KEYS["open-pages"],
|
|
629
|
+
links: [],
|
|
630
|
+
highlightedLinks: []
|
|
368
631
|
}
|
|
369
632
|
]
|
|
370
633
|
};
|
|
@@ -372,38 +635,43 @@ const MDU_LINKS = {
|
|
|
372
635
|
name: "Borettslag",
|
|
373
636
|
link: "/borettslag/",
|
|
374
637
|
appKey: APP_KEYS["open-pages"],
|
|
638
|
+
highlightedLinks: [],
|
|
375
639
|
links: [
|
|
376
640
|
{
|
|
377
641
|
name: "Logo",
|
|
378
642
|
link: "/borettslag/",
|
|
379
643
|
appKey: APP_KEYS["open-pages"],
|
|
380
|
-
links: []
|
|
644
|
+
links: [],
|
|
645
|
+
highlightedLinks: []
|
|
381
646
|
},
|
|
382
647
|
{
|
|
383
648
|
name: "Beboer",
|
|
384
649
|
link: "/borettslag/beboer/",
|
|
385
650
|
appKey: APP_KEYS["open-pages"],
|
|
386
|
-
links: []
|
|
651
|
+
links: [],
|
|
652
|
+
highlightedLinks: []
|
|
387
653
|
},
|
|
388
654
|
{
|
|
389
655
|
name: "Styre",
|
|
390
656
|
link: "/borettslag/styre/",
|
|
391
657
|
appKey: APP_KEYS["open-pages"],
|
|
392
|
-
links: []
|
|
658
|
+
links: [],
|
|
659
|
+
highlightedLinks: []
|
|
393
660
|
},
|
|
394
661
|
{
|
|
395
662
|
name: "Utbygger",
|
|
396
663
|
link: "/borettslag/utbygger/",
|
|
397
664
|
appKey: APP_KEYS["open-pages"],
|
|
398
|
-
links: []
|
|
665
|
+
links: [],
|
|
666
|
+
highlightedLinks: []
|
|
399
667
|
}
|
|
400
668
|
]
|
|
401
669
|
};
|
|
402
|
-
const
|
|
670
|
+
const getLinks = (ukko = false) => [PRIVATE_LINKS, ukko ? BUSINESS_UKKO_LINKS : BUSINESS_LINKS, MDU_LINKS];
|
|
403
671
|
const getActiveSubLink = (path, links) => {
|
|
404
672
|
let activeLink = "";
|
|
405
673
|
links.forEach((link) => {
|
|
406
|
-
if (path
|
|
674
|
+
if (path === link.link && link.link.length > activeLink.length) {
|
|
407
675
|
activeLink = link.link;
|
|
408
676
|
}
|
|
409
677
|
});
|
|
@@ -412,7 +680,7 @@ const getActiveSubLink = (path, links) => {
|
|
|
412
680
|
exports.APP_KEYS = APP_KEYS;
|
|
413
681
|
exports.BUSINESS_LINKS = BUSINESS_LINKS;
|
|
414
682
|
exports.BUSINESS_NET_LINKS = BUSINESS_NET_LINKS;
|
|
415
|
-
exports.
|
|
683
|
+
exports.BUSINESS_UKKO_LINKS = BUSINESS_UKKO_LINKS;
|
|
416
684
|
exports.LOGGED_IN_LINKS = LOGGED_IN_LINKS;
|
|
417
685
|
exports.LOGGED_IN_LINKS_BUSINESS = LOGGED_IN_LINKS_BUSINESS;
|
|
418
686
|
exports.MDU_LINKS = MDU_LINKS;
|
|
@@ -422,3 +690,4 @@ exports.MY_PORTAL_LINKS = MY_PORTAL_LINKS;
|
|
|
422
690
|
exports.PRIVATE_LINKS = PRIVATE_LINKS;
|
|
423
691
|
exports.SMART_CONNECT_LINKS = SMART_CONNECT_LINKS;
|
|
424
692
|
exports.getActiveSubLink = getActiveSubLink;
|
|
693
|
+
exports.getLinks = getLinks;
|