@hubs101/js-api-skd-client 1.0.10580 → 1.0.10582
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/lib/api/event/types.d.ts +12 -25
- package/lib/api/event/types.js +51 -1
- package/package.json +1 -1
package/lib/api/event/types.d.ts
CHANGED
|
@@ -162,6 +162,12 @@ export type MenuItemType = {
|
|
|
162
162
|
internalUrl: boolean;
|
|
163
163
|
contentTemplate: string;
|
|
164
164
|
childItems?: string[];
|
|
165
|
+
isDesktopDisabled?: boolean;
|
|
166
|
+
isMobileDisabled?: boolean;
|
|
167
|
+
isTabletDisabled?: boolean;
|
|
168
|
+
to?: string;
|
|
169
|
+
subject?: string;
|
|
170
|
+
body?: string;
|
|
165
171
|
};
|
|
166
172
|
export type Design = {
|
|
167
173
|
backgroundColor: string;
|
|
@@ -516,27 +522,8 @@ export declare const DEFAULT_MENU_TYPES: {
|
|
|
516
522
|
readonly EVENT_INFO: "event-info";
|
|
517
523
|
readonly CONTENT_HUB: "content-hub";
|
|
518
524
|
};
|
|
519
|
-
export declare const DEFAULT_MENU_ITEM: readonly [
|
|
520
|
-
|
|
521
|
-
"agenda",
|
|
522
|
-
"speaker",
|
|
523
|
-
"partner",
|
|
524
|
-
"who-&-why",
|
|
525
|
-
"event-info",
|
|
526
|
-
"content-hub"
|
|
527
|
-
];
|
|
528
|
-
export declare const MENU_ITEM_TYPE: readonly [
|
|
529
|
-
"home",
|
|
530
|
-
"agenda",
|
|
531
|
-
"speaker",
|
|
532
|
-
"partner",
|
|
533
|
-
"who-&-why",
|
|
534
|
-
"event-info",
|
|
535
|
-
"content-hub",
|
|
536
|
-
"internal",
|
|
537
|
-
"external",
|
|
538
|
-
"mailto"
|
|
539
|
-
];
|
|
525
|
+
export declare const DEFAULT_MENU_ITEM: readonly ["home", "agenda", "speaker", "partner", "who-&-why", "event-info", "content-hub"];
|
|
526
|
+
export declare const MENU_ITEM_TYPE: readonly ["home", "agenda", "speaker", "partner", "who-&-why", "event-info", "content-hub", "internal", "external", "mailto"];
|
|
540
527
|
export type MenuItem = {
|
|
541
528
|
label: string;
|
|
542
529
|
level: 0 | 1;
|
|
@@ -546,10 +533,10 @@ export type MenuItem = {
|
|
|
546
533
|
url: string;
|
|
547
534
|
order: number;
|
|
548
535
|
subtitle: string;
|
|
549
|
-
isDesktopDisabled
|
|
550
|
-
isMobileDisabled
|
|
551
|
-
isTabletDisabled
|
|
552
|
-
|
|
536
|
+
isDesktopDisabled?: boolean;
|
|
537
|
+
isMobileDisabled?: boolean;
|
|
538
|
+
isTabletDisabled?: boolean;
|
|
539
|
+
to?: string;
|
|
553
540
|
subject?: string;
|
|
554
541
|
body?: string;
|
|
555
542
|
};
|
package/lib/api/event/types.js
CHANGED
|
@@ -1,9 +1,59 @@
|
|
|
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_ELEMENT_TYPE = exports.MENU_ELEMENT_TYPES = exports.MENU_ITEM_STYLING_TYPE = exports.MENU_ITEM_STYLING = exports.MENU_ITEM_TYPES = exports.GROUP_STYLE = void 0;
|
|
4
4
|
exports.GROUP_STYLE = [
|
|
5
5
|
{ "": "" }, // unassigned, top of the list
|
|
6
6
|
{ "1": "default" }, // BP
|
|
7
7
|
{ "2": "highlighted" }, // PP
|
|
8
8
|
{ "3": "big" }, // LP
|
|
9
9
|
];
|
|
10
|
+
// Update MENU_ITEM_TYPES to include MAILING
|
|
11
|
+
exports.MENU_ITEM_TYPES = {
|
|
12
|
+
INTERNAL: "internal",
|
|
13
|
+
EXTERNAL: "external",
|
|
14
|
+
MAILING: "mailto",
|
|
15
|
+
};
|
|
16
|
+
// Keep existing MENU_ITEM_STYLING as is
|
|
17
|
+
exports.MENU_ITEM_STYLING = {
|
|
18
|
+
LINK: "link",
|
|
19
|
+
BUTTON: "button",
|
|
20
|
+
};
|
|
21
|
+
exports.MENU_ITEM_STYLING_TYPE = ["link", "button"];
|
|
22
|
+
// Add MENU_ELEMENT_TYPES (new constant)
|
|
23
|
+
exports.MENU_ELEMENT_TYPES = {
|
|
24
|
+
ITEM: "item",
|
|
25
|
+
BUTTON: "button",
|
|
26
|
+
};
|
|
27
|
+
exports.MENU_ELEMENT_TYPE = ["item", "button"];
|
|
28
|
+
// Keep existing DEFAULT_MENU_TYPES as is
|
|
29
|
+
exports.DEFAULT_MENU_TYPES = {
|
|
30
|
+
HOME: "home",
|
|
31
|
+
AGENDA: "agenda",
|
|
32
|
+
SPEAKER: "speaker",
|
|
33
|
+
PARTNER: "partner",
|
|
34
|
+
WHO_WHY: "who-&-why",
|
|
35
|
+
EVENT_INFO: "event-info",
|
|
36
|
+
CONTENT_HUB: "content-hub",
|
|
37
|
+
};
|
|
38
|
+
exports.DEFAULT_MENU_ITEM = [
|
|
39
|
+
"home",
|
|
40
|
+
"agenda",
|
|
41
|
+
"speaker",
|
|
42
|
+
"partner",
|
|
43
|
+
"who-&-why",
|
|
44
|
+
"event-info",
|
|
45
|
+
"content-hub",
|
|
46
|
+
];
|
|
47
|
+
// Update MENU_ITEM_TYPE to include "mailto"
|
|
48
|
+
exports.MENU_ITEM_TYPE = [
|
|
49
|
+
"home",
|
|
50
|
+
"agenda",
|
|
51
|
+
"speaker",
|
|
52
|
+
"partner",
|
|
53
|
+
"who-&-why",
|
|
54
|
+
"event-info",
|
|
55
|
+
"content-hub",
|
|
56
|
+
"internal",
|
|
57
|
+
"external",
|
|
58
|
+
"mailto",
|
|
59
|
+
];
|