fansunited-frontend-core 0.0.40 → 0.0.42
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/components/Skeletons/Overlay/OverlaySkeleton.styles.d.ts +3 -12
- package/components/Skeletons/Overlay/OverlaySkeleton.styles.d.ts.map +1 -1
- package/functions/functions.d.ts +3 -3
- package/functions/helpers.d.ts +6 -5
- package/index.d.ts +41 -41
- package/index.es.js +724 -584
- package/interfaces/interfaces.d.ts +6 -5
- package/locales/bg.json +10 -0
- package/locales/bg.json.d.ts +10 -0
- package/locales/de.json +10 -0
- package/locales/de.json.d.ts +10 -0
- package/locales/el.json +10 -0
- package/locales/el.json.d.ts +10 -0
- package/locales/en.json +10 -0
- package/locales/en.json.d.ts +10 -0
- package/locales/es.json +10 -0
- package/locales/es.json.d.ts +10 -0
- package/locales/fr-be.json +10 -0
- package/locales/fr-be.json.d.ts +10 -0
- package/locales/fr.json +10 -0
- package/locales/fr.json.d.ts +10 -0
- package/locales/it.json +10 -0
- package/locales/it.json.d.ts +10 -0
- package/locales/pl.json +10 -0
- package/locales/pl.json.d.ts +10 -0
- package/locales/pt-br.json +10 -0
- package/locales/pt-br.json.d.ts +10 -0
- package/locales/pt.json +10 -0
- package/locales/pt.json.d.ts +10 -0
- package/locales/ro.json +10 -0
- package/locales/ro.json.d.ts +10 -0
- package/locales/sk.json +10 -0
- package/locales/sk.json.d.ts +10 -0
- package/locales/sr.json +10 -0
- package/locales/sr.json.d.ts +10 -0
- package/package.json +1 -1
- package/components/PrizeCard/PrizeCard.js +0 -53
- package/components/PrizeCard/PrizeCard.js.map +0 -1
- package/functions/functions.js +0 -4
- package/functions/functions.js.map +0 -1
- package/functions/helpers.js +0 -129
- package/functions/helpers.js.map +0 -1
- package/index.js +0 -38
- package/index.js.map +0 -1
- package/interfaces/interfaces.js +0 -2
- package/interfaces/interfaces.js.map +0 -1
- package/types/types.js +0 -2
- package/types/types.js.map +0 -1
|
@@ -61,10 +61,7 @@ export declare const createStyles: (props: StyleProps) => {
|
|
|
61
61
|
fontWeight: number;
|
|
62
62
|
lineHeight: string;
|
|
63
63
|
letterSpacing: string;
|
|
64
|
-
textAlign:
|
|
65
|
-
xs: string;
|
|
66
|
-
md: string;
|
|
67
|
-
};
|
|
64
|
+
textAlign: string;
|
|
68
65
|
color: string;
|
|
69
66
|
opacity: string;
|
|
70
67
|
textTransform: string;
|
|
@@ -80,10 +77,7 @@ export declare const createStyles: (props: StyleProps) => {
|
|
|
80
77
|
fontWeight: number;
|
|
81
78
|
lineHeight: string;
|
|
82
79
|
letterSpacing: string;
|
|
83
|
-
textAlign:
|
|
84
|
-
xs: string;
|
|
85
|
-
md: string;
|
|
86
|
-
};
|
|
80
|
+
textAlign: string;
|
|
87
81
|
fontSize: string;
|
|
88
82
|
color: string;
|
|
89
83
|
fontFamily: string;
|
|
@@ -93,10 +87,7 @@ export declare const createStyles: (props: StyleProps) => {
|
|
|
93
87
|
lineHeight: string;
|
|
94
88
|
letterSpacing: string;
|
|
95
89
|
fontSize: string;
|
|
96
|
-
textAlign:
|
|
97
|
-
xs: string;
|
|
98
|
-
md: string;
|
|
99
|
-
};
|
|
90
|
+
textAlign: string;
|
|
100
91
|
color: string;
|
|
101
92
|
opacity: string;
|
|
102
93
|
fontFamily: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OverlaySkeleton.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/Skeletons/Overlay/OverlaySkeleton.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EACnB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEzD,UAAU,UAAU;IAClB,YAAY,EAAE,kBAAkB,CAAC;IACjC,cAAc,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAC3C,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,uBAAuB,EAAE,MAAM,CAAC;CACjC;AAED,eAAO,MAAM,YAAY,UAAW,UAAU
|
|
1
|
+
{"version":3,"file":"OverlaySkeleton.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/Skeletons/Overlay/OverlaySkeleton.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EACnB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEzD,UAAU,UAAU;IAClB,YAAY,EAAE,kBAAkB,CAAC;IACjC,cAAc,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAC3C,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,uBAAuB,EAAE,MAAM,CAAC;CACjC;AAED,eAAO,MAAM,YAAY,UAAW,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuG5C,CAAC"}
|
package/functions/functions.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { useSpacingScale, getSpacing, isMobile, isExtraSmall, isTablet, isDesktop, useFontFamily, useCornerRadius, useColors, useBorderSize, useInternalTheme, useImageBackgroundGradient, isLarge, useCurrentThemeMode, } from
|
|
2
|
-
export { stripHtmlTags, hexToRgb, isAndroid, getDefaultCountryByCode, getDefaultCountryByLanguage, extractBrandingModelProperties, extractBrandingProperties, sanitizeBackgroundUrl, mapContentTypeToConsentEntityType, getBrandingClickUrl, getRelatedInfoPageId, isWithPrize, } from
|
|
3
|
-
export { initializeI18n } from
|
|
1
|
+
export { useSpacingScale, getSpacing, isMobile, isExtraSmall, isTablet, isDesktop, useFontFamily, useCornerRadius, useColors, useBorderSize, useInternalTheme, useImageBackgroundGradient, isLarge, useCurrentThemeMode, } from './theme';
|
|
2
|
+
export { stripHtmlTags, hexToRgb, isAndroid, getDefaultCountryByCode, getDefaultCountryByLanguage, extractBrandingModelProperties, extractBrandingProperties, sanitizeBackgroundUrl, mapContentTypeToConsentEntityType, getBrandingClickUrl, getRelatedInfoPageId, isWithPrize, } from './helpers';
|
|
3
|
+
export { initializeI18n } from './i18n';
|
|
4
4
|
//# sourceMappingURL=functions.d.ts.map
|
package/functions/helpers.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { BrandingColorsModel, BrandingModel, ConsentEntityType, RelatedEntityRelationship } from
|
|
2
|
-
import { Branding, BrandingColors } from
|
|
1
|
+
import { BrandingColorsModel, BrandingModel, ConsentEntityType, RelatedEntityRelationship } from 'fansunited-sdk-esm';
|
|
2
|
+
import { Branding, BrandingColors } from '../interfaces/interfaces';
|
|
3
|
+
|
|
3
4
|
export declare const stripHtmlTags: (html: string | null) => string;
|
|
4
5
|
export declare const hexToRgb: (hex: string) => string;
|
|
5
6
|
export declare const isAndroid: () => boolean;
|
|
6
|
-
export declare const getDefaultCountryByCode: (phoneCountryCode: string | null) => import(
|
|
7
|
-
export declare const getDefaultCountryByLanguage: (language: string | null) => import(
|
|
8
|
-
export declare const getCountryByCode: (code: string) => import(
|
|
7
|
+
export declare const getDefaultCountryByCode: (phoneCountryCode: string | null) => import('..').CountryType | null;
|
|
8
|
+
export declare const getDefaultCountryByLanguage: (language: string | null) => import('..').CountryType | null;
|
|
9
|
+
export declare const getCountryByCode: (code: string) => import('..').CountryType | null;
|
|
9
10
|
export declare const extractBrandingModelProperties: (branding: BrandingModel | null) => {
|
|
10
11
|
brandingImage: string | null;
|
|
11
12
|
brandingColors: BrandingColorsModel | null;
|
package/index.d.ts
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export { default as Spinner } from
|
|
7
|
-
export { default as ThemeProvider } from
|
|
8
|
-
export { default as AdditionalCTA } from
|
|
9
|
-
export { default as Rules } from
|
|
10
|
-
export { default as CollectLeadForm } from
|
|
11
|
-
export { default as StandardSkeleton } from
|
|
12
|
-
export { default as SplitSkeleton } from
|
|
13
|
-
export { default as OverlaySkeleton } from
|
|
14
|
-
export { default as StandardScoreStateSkeleton } from
|
|
15
|
-
export { default as StandardContentSkeleton } from
|
|
16
|
-
export { default as StandardSignInSkeleton } from
|
|
17
|
-
export { default as SplitScoreStateSkeleton } from
|
|
18
|
-
export { default as SplitSignInSkeleton } from
|
|
19
|
-
export { default as OverlaySignInSkeleton } from
|
|
20
|
-
export { default as OverlayScoreStateSkeleton } from
|
|
21
|
-
export { default as OverlayScoreStateWrapperSkeleton } from
|
|
22
|
-
export { default as StandardApiErrorSkeleton } from
|
|
23
|
-
export { default as SplitApiErrorSkeleton } from
|
|
24
|
-
export { default as OverlayApiErrorSkeleton } from
|
|
25
|
-
export { default as NotFoundSkeleton } from
|
|
26
|
-
export { default as StandardLeadAfterCollection } from
|
|
27
|
-
export type { StandardLeadAfterCollectionProps } from
|
|
28
|
-
export { default as SplitLeadAfterCollection } from
|
|
29
|
-
export type { SplitLeadAfterCollectionProps } from
|
|
30
|
-
export { default as OverlayLeadAfterCollection } from
|
|
31
|
-
export type { OverlayLeadAfterCollectionProps } from
|
|
32
|
-
export { default as InfoPageCollectLeadWrapper } from
|
|
33
|
-
export type { InfoPageCollectLeadWrapperProps } from
|
|
34
|
-
export { default as Portal } from
|
|
35
|
-
export { default as ChanceGameEmbed } from
|
|
36
|
-
export { default as Notification } from
|
|
37
|
-
export { default as PrizeCard } from
|
|
38
|
-
export * from
|
|
39
|
-
export * from
|
|
40
|
-
export { default as defaultBg } from
|
|
41
|
-
export { default as defaultBgVertical } from
|
|
1
|
+
export * from './constants/constants';
|
|
2
|
+
export * from './functions/functions';
|
|
3
|
+
export * from './interfaces/interfaces';
|
|
4
|
+
export * from './types/types';
|
|
5
|
+
export * from './enums/enums';
|
|
6
|
+
export { default as Spinner } from './components/Spinner';
|
|
7
|
+
export { default as ThemeProvider } from './providers/ThemeProvider';
|
|
8
|
+
export { default as AdditionalCTA } from './components/AdditionalCTA';
|
|
9
|
+
export { default as Rules } from './components/Rules';
|
|
10
|
+
export { default as CollectLeadForm } from './components/Leads/CollectLeadForm';
|
|
11
|
+
export { default as StandardSkeleton } from './components/Skeletons/Standard/StandardSkeleton';
|
|
12
|
+
export { default as SplitSkeleton } from './components/Skeletons/Split/SplitSkeleton';
|
|
13
|
+
export { default as OverlaySkeleton } from './components/Skeletons/Overlay/OverlaySkeleton';
|
|
14
|
+
export { default as StandardScoreStateSkeleton } from './components/Skeletons/Standard/ScoreState/StandardScoreStateSkeleton';
|
|
15
|
+
export { default as StandardContentSkeleton } from './components/Skeletons/Standard/ScoreState/StandardContentSkeleton';
|
|
16
|
+
export { default as StandardSignInSkeleton } from './components/Skeletons/Standard/SignIn/StandardSignInSkeleton';
|
|
17
|
+
export { default as SplitScoreStateSkeleton } from './components/Skeletons/Split/ScoreState/SplitScoreStateSkeleton';
|
|
18
|
+
export { default as SplitSignInSkeleton } from './components/Skeletons/Split/SignIn/SplitSignInSkeleton';
|
|
19
|
+
export { default as OverlaySignInSkeleton } from './components/Skeletons/Overlay/SignIn/OverlaySignInSkeleton';
|
|
20
|
+
export { default as OverlayScoreStateSkeleton } from './components/Skeletons/Overlay/ScoreState/OverlayScoreStateSkeleton';
|
|
21
|
+
export { default as OverlayScoreStateWrapperSkeleton } from './components/Skeletons/Overlay/ScoreState/OverlayScoreStateWrapperSkeleton';
|
|
22
|
+
export { default as StandardApiErrorSkeleton } from './components/Skeletons/Standard/ApiError/StandardApiErrorSkeleton';
|
|
23
|
+
export { default as SplitApiErrorSkeleton } from './components/Skeletons/Split/ApiError/SplitApiErrorSkeleton';
|
|
24
|
+
export { default as OverlayApiErrorSkeleton } from './components/Skeletons/Overlay/ApiError/OverlayApiErrorSkeleton';
|
|
25
|
+
export { default as NotFoundSkeleton } from './components/Skeletons/NotFoundSkeleton';
|
|
26
|
+
export { default as StandardLeadAfterCollection } from './components/LeadCollection/StandardLeadAfterCollection';
|
|
27
|
+
export type { StandardLeadAfterCollectionProps } from './components/LeadCollection/StandardLeadAfterCollection';
|
|
28
|
+
export { default as SplitLeadAfterCollection } from './components/LeadCollection/SplitLeadAfterCollection';
|
|
29
|
+
export type { SplitLeadAfterCollectionProps } from './components/LeadCollection/SplitLeadAfterCollection';
|
|
30
|
+
export { default as OverlayLeadAfterCollection } from './components/LeadCollection/OverlayLeadAfterCollection';
|
|
31
|
+
export type { OverlayLeadAfterCollectionProps } from './components/LeadCollection/OverlayLeadAfterCollection';
|
|
32
|
+
export { default as InfoPageCollectLeadWrapper } from './components/Leads/InfoPageCollectLeadWrapper';
|
|
33
|
+
export type { InfoPageCollectLeadWrapperProps } from './components/Leads/InfoPageCollectLeadWrapper';
|
|
34
|
+
export { default as Portal } from './components/Portal/Portal';
|
|
35
|
+
export { default as ChanceGameEmbed } from './components/ChanceGameEmbed';
|
|
36
|
+
export { default as Notification } from './components/Notification';
|
|
37
|
+
export { default as PrizeCard } from './components/PrizeCard/PrizeCard';
|
|
38
|
+
export * from './hooks/hooks';
|
|
39
|
+
export * from './providers/providers';
|
|
40
|
+
export { default as defaultBg } from './assets/default-quiz-bg.png';
|
|
41
|
+
export { default as defaultBgVertical } from './assets/default-quiz-bg-vertical.jpg';
|
|
42
42
|
//# sourceMappingURL=index.d.ts.map
|