@telia/teddy 0.2.0 → 0.2.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.
@@ -10,7 +10,6 @@ require("../../../utils/generate-styling/index.cjs");
10
10
  require("../../../assets/sprite.1321fab0-teddy.svg");
11
11
  require("../../icon/icon.cjs");
12
12
  require("../../flex/flex.cjs");
13
- require("../../list/index.cjs");
14
13
  require("../../heading/heading.cjs");
15
14
  require("../../button/button.cjs");
16
15
  exports.Desktop = components_radioCardGroup_radioCardGroupItemTitle.Desktop;
@@ -8,7 +8,6 @@ import "../../../utils/generate-styling/index.js";
8
8
  import "../../../assets/sprite.1321fab0-teddy.svg";
9
9
  import "../../icon/icon.js";
10
10
  import "../../flex/flex.js";
11
- import "../../list/index.js";
12
11
  import "../../heading/heading.js";
13
12
  import "../../button/button.js";
14
13
  export {
@@ -6,7 +6,7 @@ export declare function Mobile(props: MobileProps): import("react/jsx-runtime").
6
6
  export declare namespace Mobile {
7
7
  var displayName: string;
8
8
  }
9
- export declare const HighlightedLinks: ({ listTitle, links, item, drawerRef }: {
9
+ export declare const HighlightedLinks: ({ listTitle, links, item, drawerRef, }: {
10
10
  listTitle: string;
11
11
  links: LinkProps[];
12
12
  item: LinkProps;
@@ -120,7 +120,7 @@ const PRIVATE_LINKS = {
120
120
  highlightedLinks: []
121
121
  },
122
122
  {
123
- name: "Mobil",
123
+ name: "Mobilabonnement",
124
124
  link: "",
125
125
  appKey: APP_KEYS["open-pages"],
126
126
  highlightedLinks: [
@@ -208,6 +208,13 @@ const PRIVATE_LINKS = {
208
208
  }
209
209
  ]
210
210
  },
211
+ // {
212
+ // name: 'Nettbutikk',
213
+ // link: '',
214
+ // appKey: APP_KEYS['open-pages'],
215
+ // highlightedLinks: [],
216
+ // links: [],
217
+ // },
211
218
  {
212
219
  name: "TV",
213
220
  link: "",
@@ -245,7 +252,7 @@ const PRIVATE_LINKS = {
245
252
  },
246
253
  {
247
254
  name: "Driftsmeldinger og feilsøk",
248
- link: "/tv/hjelp/tv-feilsok/tv-hjelp-utstyr/",
255
+ link: "/tv/hjelp/tv-feilsok/",
249
256
  appKey: APP_KEYS["open-pages"]
250
257
  }
251
258
  ],
@@ -313,7 +320,7 @@ const PRIVATE_LINKS = {
313
320
  appKey: APP_KEYS["open-pages"]
314
321
  },
315
322
  {
316
- name: "Ruterer og innstillinger",
323
+ name: "Rutere og innstillinger",
317
324
  link: "/internett/wifi/rutere/",
318
325
  appKey: APP_KEYS["open-pages"]
319
326
  },
@@ -602,6 +609,28 @@ const BUSINESS_LINKS = {
602
609
  }
603
610
  ]
604
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: []
631
+ }
632
+ ]
633
+ };
605
634
  const MDU_LINKS = {
606
635
  name: "Borettslag",
607
636
  link: "/borettslag/",
@@ -638,7 +667,7 @@ const MDU_LINKS = {
638
667
  }
639
668
  ]
640
669
  };
641
- const LINKS = [PRIVATE_LINKS, BUSINESS_LINKS, MDU_LINKS];
670
+ const getLinks = (ukko = false) => [PRIVATE_LINKS, ukko ? BUSINESS_UKKO_LINKS : BUSINESS_LINKS, MDU_LINKS];
642
671
  const getActiveSubLink = (path, links) => {
643
672
  let activeLink = "";
644
673
  links.forEach((link) => {
@@ -651,7 +680,7 @@ const getActiveSubLink = (path, links) => {
651
680
  exports.APP_KEYS = APP_KEYS;
652
681
  exports.BUSINESS_LINKS = BUSINESS_LINKS;
653
682
  exports.BUSINESS_NET_LINKS = BUSINESS_NET_LINKS;
654
- exports.LINKS = LINKS;
683
+ exports.BUSINESS_UKKO_LINKS = BUSINESS_UKKO_LINKS;
655
684
  exports.LOGGED_IN_LINKS = LOGGED_IN_LINKS;
656
685
  exports.LOGGED_IN_LINKS_BUSINESS = LOGGED_IN_LINKS_BUSINESS;
657
686
  exports.MDU_LINKS = MDU_LINKS;
@@ -661,3 +690,4 @@ exports.MY_PORTAL_LINKS = MY_PORTAL_LINKS;
661
690
  exports.PRIVATE_LINKS = PRIVATE_LINKS;
662
691
  exports.SMART_CONNECT_LINKS = SMART_CONNECT_LINKS;
663
692
  exports.getActiveSubLink = getActiveSubLink;
693
+ exports.getLinks = getLinks;
@@ -183,7 +183,7 @@ export declare const PRIVATE_LINKS: {
183
183
  readonly links: [];
184
184
  readonly highlightedLinks: [];
185
185
  }, {
186
- readonly name: "Mobil";
186
+ readonly name: "Mobilabonnement";
187
187
  readonly link: "";
188
188
  readonly appKey: "open-pages";
189
189
  readonly highlightedLinks: [{
@@ -282,7 +282,7 @@ export declare const PRIVATE_LINKS: {
282
282
  readonly appKey: "open-pages";
283
283
  }, {
284
284
  readonly name: "Driftsmeldinger og feilsøk";
285
- readonly link: "/tv/hjelp/tv-feilsok/tv-hjelp-utstyr/";
285
+ readonly link: "/tv/hjelp/tv-feilsok/";
286
286
  readonly appKey: "open-pages";
287
287
  }];
288
288
  readonly links: [{
@@ -335,7 +335,7 @@ export declare const PRIVATE_LINKS: {
335
335
  readonly link: "/internett/internett-problemer/";
336
336
  readonly appKey: "open-pages";
337
337
  }, {
338
- readonly name: "Ruterer og innstillinger";
338
+ readonly name: "Rutere og innstillinger";
339
339
  readonly link: "/internett/wifi/rutere/";
340
340
  readonly appKey: "open-pages";
341
341
  }, {
@@ -561,6 +561,25 @@ export declare const BUSINESS_LINKS: {
561
561
  readonly highlightedLinks: [];
562
562
  }];
563
563
  };
564
+ export declare const BUSINESS_UKKO_LINKS: {
565
+ readonly name: "Bedrift";
566
+ readonly link: "/bedrift/";
567
+ readonly appKey: "open-pages";
568
+ readonly highlightedLinks: [];
569
+ readonly links: [{
570
+ readonly name: "Logo";
571
+ readonly link: "/bedrift/";
572
+ readonly appKey: "open-pages";
573
+ readonly links: [];
574
+ readonly highlightedLinks: [];
575
+ }, {
576
+ readonly name: "Hjem";
577
+ readonly link: "https://portal.stage.ukko.telia.io/shop";
578
+ readonly appKey: "open-pages";
579
+ readonly links: [];
580
+ readonly highlightedLinks: [];
581
+ }];
582
+ };
564
583
  export declare const MDU_LINKS: {
565
584
  readonly name: "Borettslag";
566
585
  readonly link: "/borettslag/";
@@ -592,7 +611,7 @@ export declare const MDU_LINKS: {
592
611
  readonly highlightedLinks: [];
593
612
  }];
594
613
  };
595
- export declare const LINKS: [{
614
+ export declare const getLinks: (ukko?: boolean) => [{
596
615
  readonly name: "Privat";
597
616
  readonly link: "/";
598
617
  readonly appKey: "open-pages";
@@ -628,7 +647,7 @@ export declare const LINKS: [{
628
647
  readonly links: [];
629
648
  readonly highlightedLinks: [];
630
649
  }, {
631
- readonly name: "Mobil";
650
+ readonly name: "Mobilabonnement";
632
651
  readonly link: "";
633
652
  readonly appKey: "open-pages";
634
653
  readonly highlightedLinks: [{
@@ -727,7 +746,7 @@ export declare const LINKS: [{
727
746
  readonly appKey: "open-pages";
728
747
  }, {
729
748
  readonly name: "Driftsmeldinger og feilsøk";
730
- readonly link: "/tv/hjelp/tv-feilsok/tv-hjelp-utstyr/";
749
+ readonly link: "/tv/hjelp/tv-feilsok/";
731
750
  readonly appKey: "open-pages";
732
751
  }];
733
752
  readonly links: [{
@@ -780,7 +799,7 @@ export declare const LINKS: [{
780
799
  readonly link: "/internett/internett-problemer/";
781
800
  readonly appKey: "open-pages";
782
801
  }, {
783
- readonly name: "Ruterer og innstillinger";
802
+ readonly name: "Rutere og innstillinger";
784
803
  readonly link: "/internett/wifi/rutere/";
785
804
  readonly appKey: "open-pages";
786
805
  }, {
@@ -1004,6 +1023,24 @@ export declare const LINKS: [{
1004
1023
  readonly links: [];
1005
1024
  readonly highlightedLinks: [];
1006
1025
  }];
1026
+ } | {
1027
+ readonly name: "Bedrift";
1028
+ readonly link: "/bedrift/";
1029
+ readonly appKey: "open-pages";
1030
+ readonly highlightedLinks: [];
1031
+ readonly links: [{
1032
+ readonly name: "Logo";
1033
+ readonly link: "/bedrift/";
1034
+ readonly appKey: "open-pages";
1035
+ readonly links: [];
1036
+ readonly highlightedLinks: [];
1037
+ }, {
1038
+ readonly name: "Hjem";
1039
+ readonly link: "https://portal.stage.ukko.telia.io/shop";
1040
+ readonly appKey: "open-pages";
1041
+ readonly links: [];
1042
+ readonly highlightedLinks: [];
1043
+ }];
1007
1044
  }, {
1008
1045
  readonly name: "Borettslag";
1009
1046
  readonly link: "/borettslag/";
@@ -118,7 +118,7 @@ const PRIVATE_LINKS = {
118
118
  highlightedLinks: []
119
119
  },
120
120
  {
121
- name: "Mobil",
121
+ name: "Mobilabonnement",
122
122
  link: "",
123
123
  appKey: APP_KEYS["open-pages"],
124
124
  highlightedLinks: [
@@ -206,6 +206,13 @@ const PRIVATE_LINKS = {
206
206
  }
207
207
  ]
208
208
  },
209
+ // {
210
+ // name: 'Nettbutikk',
211
+ // link: '',
212
+ // appKey: APP_KEYS['open-pages'],
213
+ // highlightedLinks: [],
214
+ // links: [],
215
+ // },
209
216
  {
210
217
  name: "TV",
211
218
  link: "",
@@ -243,7 +250,7 @@ const PRIVATE_LINKS = {
243
250
  },
244
251
  {
245
252
  name: "Driftsmeldinger og feilsøk",
246
- link: "/tv/hjelp/tv-feilsok/tv-hjelp-utstyr/",
253
+ link: "/tv/hjelp/tv-feilsok/",
247
254
  appKey: APP_KEYS["open-pages"]
248
255
  }
249
256
  ],
@@ -311,7 +318,7 @@ const PRIVATE_LINKS = {
311
318
  appKey: APP_KEYS["open-pages"]
312
319
  },
313
320
  {
314
- name: "Ruterer og innstillinger",
321
+ name: "Rutere og innstillinger",
315
322
  link: "/internett/wifi/rutere/",
316
323
  appKey: APP_KEYS["open-pages"]
317
324
  },
@@ -600,6 +607,28 @@ const BUSINESS_LINKS = {
600
607
  }
601
608
  ]
602
609
  };
610
+ const BUSINESS_UKKO_LINKS = {
611
+ name: "Bedrift",
612
+ link: "/bedrift/",
613
+ appKey: APP_KEYS["open-pages"],
614
+ highlightedLinks: [],
615
+ links: [
616
+ {
617
+ name: "Logo",
618
+ link: "/bedrift/",
619
+ appKey: APP_KEYS["open-pages"],
620
+ links: [],
621
+ highlightedLinks: []
622
+ },
623
+ {
624
+ name: "Hjem",
625
+ link: "https://portal.stage.ukko.telia.io/shop",
626
+ appKey: APP_KEYS["open-pages"],
627
+ links: [],
628
+ highlightedLinks: []
629
+ }
630
+ ]
631
+ };
603
632
  const MDU_LINKS = {
604
633
  name: "Borettslag",
605
634
  link: "/borettslag/",
@@ -636,7 +665,7 @@ const MDU_LINKS = {
636
665
  }
637
666
  ]
638
667
  };
639
- const LINKS = [PRIVATE_LINKS, BUSINESS_LINKS, MDU_LINKS];
668
+ const getLinks = (ukko = false) => [PRIVATE_LINKS, ukko ? BUSINESS_UKKO_LINKS : BUSINESS_LINKS, MDU_LINKS];
640
669
  const getActiveSubLink = (path, links) => {
641
670
  let activeLink = "";
642
671
  links.forEach((link) => {
@@ -650,7 +679,7 @@ export {
650
679
  APP_KEYS,
651
680
  BUSINESS_LINKS,
652
681
  BUSINESS_NET_LINKS,
653
- LINKS,
682
+ BUSINESS_UKKO_LINKS,
654
683
  LOGGED_IN_LINKS,
655
684
  LOGGED_IN_LINKS_BUSINESS,
656
685
  MDU_LINKS,
@@ -659,5 +688,6 @@ export {
659
688
  MY_PORTAL_LINKS,
660
689
  PRIVATE_LINKS,
661
690
  SMART_CONNECT_LINKS,
662
- getActiveSubLink
691
+ getActiveSubLink,
692
+ getLinks
663
693
  };