@sunrise-upc/sales-static-components 3.7.7 → 3.7.8-beta.0
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/cjs/index.js +20 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +20 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +146 -10
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
1
|
+
import { FC, JSX } from 'react';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
3
|
|
|
3
4
|
declare interface NativeColorPicker {
|
|
4
5
|
color: string;
|
|
@@ -31,34 +32,34 @@ declare interface RibbonComponentInterface {
|
|
|
31
32
|
interface RibbonComponentSchema {
|
|
32
33
|
_uid: string;
|
|
33
34
|
backgroundColor: string;
|
|
34
|
-
buttonIcon: Asset;
|
|
35
|
+
buttonIcon: Asset$1;
|
|
35
36
|
buttonText: string;
|
|
36
37
|
buttonType: string;
|
|
37
|
-
closeIcon: Asset;
|
|
38
|
-
darkModeCloseIcon: Asset;
|
|
38
|
+
closeIcon: Asset$1;
|
|
39
|
+
darkModeCloseIcon: Asset$1;
|
|
39
40
|
deviceLimit: string;
|
|
40
41
|
description: Array<object>;
|
|
41
42
|
enableDarkMode: boolean;
|
|
42
43
|
target: string;
|
|
43
44
|
hotlineNumber: string;
|
|
44
|
-
icon: Asset;
|
|
45
|
-
darkModeIcon: Asset;
|
|
45
|
+
icon: Asset$1;
|
|
46
|
+
darkModeIcon: Asset$1;
|
|
46
47
|
iconAlign: string;
|
|
47
48
|
isCloseIcon: boolean;
|
|
48
|
-
link: MultiLink;
|
|
49
|
+
link: MultiLink$1;
|
|
49
50
|
teaserTimer: TimerSchema[];
|
|
50
51
|
targetCustomer: string;
|
|
51
52
|
bannerPromotionName: string;
|
|
52
53
|
bannerLocation: string;
|
|
53
54
|
}
|
|
54
|
-
interface MultiLink {
|
|
55
|
+
interface MultiLink$1 {
|
|
55
56
|
id: string;
|
|
56
57
|
url: string;
|
|
57
58
|
linktype: 'url' | 'story';
|
|
58
59
|
fieldtype: 'multilink';
|
|
59
60
|
cached_url: string;
|
|
60
61
|
}
|
|
61
|
-
interface Asset {
|
|
62
|
+
interface Asset$1 {
|
|
62
63
|
id: number;
|
|
63
64
|
alt?: string;
|
|
64
65
|
name: string;
|
|
@@ -83,6 +84,48 @@ declare const ImageWithText: FC<any>;
|
|
|
83
84
|
|
|
84
85
|
declare const ImageWithTextWrapper: FC<any>;
|
|
85
86
|
|
|
87
|
+
interface Link {
|
|
88
|
+
id: number;
|
|
89
|
+
slug: string;
|
|
90
|
+
name: string;
|
|
91
|
+
is_folder: boolean;
|
|
92
|
+
parent_id: number;
|
|
93
|
+
published: boolean;
|
|
94
|
+
path?: string;
|
|
95
|
+
position: number;
|
|
96
|
+
uuid: string;
|
|
97
|
+
is_startpage: boolean;
|
|
98
|
+
real_path: string;
|
|
99
|
+
alternates: LinkAlternate[];
|
|
100
|
+
}
|
|
101
|
+
interface LinkAlternate {
|
|
102
|
+
path: string;
|
|
103
|
+
name?: string;
|
|
104
|
+
lang: string;
|
|
105
|
+
}
|
|
106
|
+
type Links = {
|
|
107
|
+
[key: string]: Link;
|
|
108
|
+
};
|
|
109
|
+
interface Asset {
|
|
110
|
+
id: number;
|
|
111
|
+
alt?: string;
|
|
112
|
+
name: string;
|
|
113
|
+
focus?: string;
|
|
114
|
+
title?: string;
|
|
115
|
+
filename: string;
|
|
116
|
+
copyright?: string;
|
|
117
|
+
fieldtype: 'asset';
|
|
118
|
+
}
|
|
119
|
+
interface MultiLink {
|
|
120
|
+
id: string;
|
|
121
|
+
url: string;
|
|
122
|
+
linktype: 'url' | 'story';
|
|
123
|
+
fieldtype: 'multilink';
|
|
124
|
+
cached_url: string;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
type LocaleID = 'en' | 'de' | 'fr' | 'it' | 'default';
|
|
128
|
+
|
|
86
129
|
declare const InternetAndTvCardsBenefits: FC<any>;
|
|
87
130
|
|
|
88
131
|
interface LineCheckProps {
|
|
@@ -179,6 +222,99 @@ interface PromoBubbleProps {
|
|
|
179
222
|
}
|
|
180
223
|
declare const PromoBubble: FC<PromoBubbleProps>;
|
|
181
224
|
|
|
225
|
+
interface GenericSBProps {
|
|
226
|
+
_uid: string;
|
|
227
|
+
component: string;
|
|
228
|
+
}
|
|
229
|
+
interface ComponentMetadata {
|
|
230
|
+
lang: string;
|
|
231
|
+
title?: string;
|
|
232
|
+
activePath?: string;
|
|
233
|
+
links: Links;
|
|
234
|
+
locale?: string;
|
|
235
|
+
storyId?: string;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
interface SubNavigationColumnSchema extends GenericSBProps {
|
|
239
|
+
title: string;
|
|
240
|
+
textColor?: string;
|
|
241
|
+
icon?: Asset | string;
|
|
242
|
+
subNavigationItem: NavigationLinkSchema[];
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
interface NavigationItemSchema extends GenericSBProps, NavigationLinkSchema {
|
|
246
|
+
subNavigation: SubNavigationColumnSchema[];
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
interface NavigationLocale extends GenericSBProps {
|
|
250
|
+
localeId: LocaleID;
|
|
251
|
+
title: string;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
interface FalconHeaderSchema extends GenericSBProps {
|
|
255
|
+
headerLinks: FalconHeaderLink[];
|
|
256
|
+
headerDropdown: FalconHeaderDropdown[];
|
|
257
|
+
localeSelector: NavigationLocale[];
|
|
258
|
+
}
|
|
259
|
+
interface FalconHeaderDropdown extends GenericSBProps {
|
|
260
|
+
title: string;
|
|
261
|
+
headerLinks: any;
|
|
262
|
+
}
|
|
263
|
+
interface FalconHeaderLink extends GenericSBProps {
|
|
264
|
+
label: string;
|
|
265
|
+
url: MultiLink;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
interface MainNavBarSchema extends GenericSBProps {
|
|
269
|
+
salesHotlinePopup: any;
|
|
270
|
+
navigationItems: NavigationItemSchema[];
|
|
271
|
+
header: FalconHeaderSchema[];
|
|
272
|
+
sunriseLogoLink: MultiLink;
|
|
273
|
+
searchIcon?: Asset;
|
|
274
|
+
searchIconLink: MultiLink;
|
|
275
|
+
mySunriseLink: MultiLink;
|
|
276
|
+
mySunriseTitle: string;
|
|
277
|
+
logoutLabel: string;
|
|
278
|
+
salutationLabel: string;
|
|
279
|
+
salesHotlineNumber?: string;
|
|
280
|
+
searchComponent?: any;
|
|
281
|
+
rewardsBlok?: any;
|
|
282
|
+
textColor?: string;
|
|
283
|
+
icon?: Asset;
|
|
284
|
+
textGradient?: string;
|
|
285
|
+
isBlackFriday?: boolean;
|
|
286
|
+
mySunriseUserIcon?: Asset;
|
|
287
|
+
closeIcon?: Asset;
|
|
288
|
+
newStyle?: boolean;
|
|
289
|
+
}
|
|
290
|
+
interface FalconMainNavigation1 {
|
|
291
|
+
localeSelector?: NavigationLocale[];
|
|
292
|
+
metadata?: ComponentMetadata | undefined;
|
|
293
|
+
content: MainNavBarSchema;
|
|
294
|
+
disableSearchIcon?: boolean;
|
|
295
|
+
}
|
|
296
|
+
interface NavigationLinkSchema extends GenericSBProps {
|
|
297
|
+
title: string;
|
|
298
|
+
isPromotion?: boolean;
|
|
299
|
+
textColor?: string;
|
|
300
|
+
isBold?: boolean;
|
|
301
|
+
icon?: Asset;
|
|
302
|
+
url: MultiLink;
|
|
303
|
+
}
|
|
304
|
+
declare const FalconMainNavigation: ({ content, metadata, disableSearchIcon, }: FalconMainNavigation1) => react_jsx_runtime.JSX.Element;
|
|
305
|
+
|
|
306
|
+
interface SearchWrapperProps {
|
|
307
|
+
content?: any;
|
|
308
|
+
scroll?: boolean;
|
|
309
|
+
}
|
|
310
|
+
declare const SearchWrapper: ({ content, scroll }: SearchWrapperProps) => react_jsx_runtime.JSX.Element;
|
|
311
|
+
|
|
312
|
+
interface MinimizedHeaderProps {
|
|
313
|
+
metadata?: ComponentMetadata;
|
|
314
|
+
content: any;
|
|
315
|
+
}
|
|
316
|
+
declare const MinimizedHeader: ({ content, metadata }: MinimizedHeaderProps) => JSX.Element;
|
|
317
|
+
|
|
182
318
|
interface LinecheckBasicPropConfigSchema {
|
|
183
319
|
baseURL: string | '';
|
|
184
320
|
}
|
|
@@ -205,5 +341,5 @@ declare class CustomerPropConfig {
|
|
|
205
341
|
static create: (p_config: CustomerPropConfigSchema) => void;
|
|
206
342
|
}
|
|
207
343
|
|
|
208
|
-
export { ButtonGroup, CustomerPropConfig, ImageComponent, ImageWithText, ImageWithTextWrapper, InternetAndTvCardsBenefits, LineCheckV2, LinecheckBasicPropConfig, PromoBubble, RibbonComponent, StageTeaserComponent, StageTeaserV3, TextComponent };
|
|
344
|
+
export { ButtonGroup, CustomerPropConfig, FalconMainNavigation, ImageComponent, ImageWithText, ImageWithTextWrapper, InternetAndTvCardsBenefits, LineCheckV2, LinecheckBasicPropConfig, MinimizedHeader, PromoBubble, RibbonComponent, SearchWrapper, StageTeaserComponent, StageTeaserV3, TextComponent };
|
|
209
345
|
export type { CustomerPropConfigSchema, LinecheckBasicPropConfigSchema };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sunrise-upc/sales-static-components",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.8-beta.0",
|
|
4
4
|
"description": "Static Reusable Components Library",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"@sunrise-upc/ajax-lib": "^3.0.0",
|
|
63
|
+
"@sunrise-upc/sun-b2c-search-lib": "^2.0.0",
|
|
63
64
|
"axios": "^1.12.2",
|
|
64
65
|
"cookies-next": "^6.1.0",
|
|
65
66
|
"fitty": "^2.4.2",
|