@hubs101/js-api-skd-client 1.0.10370 → 1.0.10372

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.
@@ -435,6 +435,38 @@ export type BookingQuestion = {
435
435
  type: string;
436
436
  style: string;
437
437
  };
438
+ export declare const MENU_ITEM_TYPES: {
439
+ readonly INTERNAL: "internal";
440
+ readonly EXTERNAL: "external";
441
+ };
442
+ export declare const MENU_ITEM_STYLING: {
443
+ readonly LINK: "link";
444
+ readonly BUTTON: "button";
445
+ };
446
+ export declare const DEFAULT_MENU_TYPES: {
447
+ readonly HOME: "home";
448
+ readonly AGENDA: "agenda";
449
+ readonly SPEAKER: "speaker";
450
+ readonly PARTNER: "partner";
451
+ readonly WHO_WHY: "who-&-why";
452
+ readonly EVENT_INFO: "event-info";
453
+ readonly CONTENT_HUB: "content-hub";
454
+ };
455
+ export declare const DEFAULT_MENU_ITEM: readonly ["home", "agenda", "speaker", "partner", "who-&-why", "event-info", "content-hub"];
456
+ export declare const MENU_ITEM_TYPE: readonly ["home", "agenda", "speaker", "partner", "who-&-why", "event-info", "content-hub", "internal", "external"];
457
+ export type MenuItem = {
458
+ label: string;
459
+ level: 0 | 1;
460
+ icon: string;
461
+ styling: "link" | "button";
462
+ type: (typeof MENU_ITEM_TYPE)[number];
463
+ url: string;
464
+ order: number;
465
+ subtitle: string;
466
+ isDesktopDisabled: boolean;
467
+ isMobileDisabled: boolean;
468
+ isTabletDisabled: boolean;
469
+ };
438
470
  export type EventServerResponse = {
439
471
  id: string;
440
472
  name: string;
@@ -513,19 +545,7 @@ export type EventServerResponse = {
513
545
  id: string;
514
546
  name: string;
515
547
  type: "mainmenu" | "footermenu";
516
- items: {
517
- icon: string;
518
- isDesktopDisabled: boolean;
519
- isMobileDisabled: boolean;
520
- isTabletDisabled: boolean;
521
- label: string;
522
- level: number;
523
- order: number;
524
- styling: "link" | "button";
525
- subtitle: string;
526
- type: string;
527
- url: string;
528
- }[];
548
+ items: MenuItem[];
529
549
  }[];
530
550
  };
531
551
  export type AccountInput = {
@@ -1,9 +1,40 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GROUP_STYLE = void 0;
3
+ exports.MENU_ITEM_TYPE = exports.DEFAULT_MENU_ITEM = exports.DEFAULT_MENU_TYPES = exports.MENU_ITEM_STYLING = exports.MENU_ITEM_TYPES = exports.GROUP_STYLE = void 0;
4
4
  exports.GROUP_STYLE = [
5
5
  { "": "" },
6
6
  { "1": "default" },
7
7
  { "2": "highlighted" },
8
8
  { "3": "big" }, // LP
9
9
  ];
10
+ exports.MENU_ITEM_TYPES = {
11
+ INTERNAL: "internal",
12
+ EXTERNAL: "external",
13
+ };
14
+ exports.MENU_ITEM_STYLING = {
15
+ LINK: "link",
16
+ BUTTON: "button",
17
+ };
18
+ exports.DEFAULT_MENU_TYPES = {
19
+ HOME: "home",
20
+ AGENDA: "agenda",
21
+ SPEAKER: "speaker",
22
+ PARTNER: "partner",
23
+ WHO_WHY: "who-&-why",
24
+ EVENT_INFO: "event-info",
25
+ CONTENT_HUB: "content-hub",
26
+ };
27
+ exports.DEFAULT_MENU_ITEM = [
28
+ exports.DEFAULT_MENU_TYPES.HOME,
29
+ exports.DEFAULT_MENU_TYPES.AGENDA,
30
+ exports.DEFAULT_MENU_TYPES.SPEAKER,
31
+ exports.DEFAULT_MENU_TYPES.PARTNER,
32
+ exports.DEFAULT_MENU_TYPES.WHO_WHY,
33
+ exports.DEFAULT_MENU_TYPES.EVENT_INFO,
34
+ exports.DEFAULT_MENU_TYPES.CONTENT_HUB,
35
+ ];
36
+ exports.MENU_ITEM_TYPE = [
37
+ ...exports.DEFAULT_MENU_ITEM,
38
+ exports.MENU_ITEM_TYPES.INTERNAL,
39
+ exports.MENU_ITEM_TYPES.EXTERNAL,
40
+ ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubs101/js-api-skd-client",
3
- "version": "1.0.10370",
3
+ "version": "1.0.10372",
4
4
  "author": "Liveware",
5
5
  "scripts": {
6
6
  "test": "jest --config jestconfig.json",