fansunited-frontend-core 0.0.40 → 0.0.41

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.
@@ -1,6 +1,5 @@
1
- import { CustomSpacingScale } from '../../../interfaces/interfaces';
2
- import { BrandingColorsModel } from 'fansunited-sdk-esm';
3
-
1
+ import { CustomSpacingScale } from "../../../interfaces/interfaces";
2
+ import { BrandingColorsModel } from "fansunited-sdk-esm";
4
3
  interface StyleProps {
5
4
  spacingScale: CustomSpacingScale;
6
5
  brandingColors: BrandingColorsModel | null;
@@ -61,10 +60,7 @@ export declare const createStyles: (props: StyleProps) => {
61
60
  fontWeight: number;
62
61
  lineHeight: string;
63
62
  letterSpacing: string;
64
- textAlign: {
65
- xs: string;
66
- md: string;
67
- };
63
+ textAlign: string;
68
64
  color: string;
69
65
  opacity: string;
70
66
  textTransform: string;
@@ -80,10 +76,7 @@ export declare const createStyles: (props: StyleProps) => {
80
76
  fontWeight: number;
81
77
  lineHeight: string;
82
78
  letterSpacing: string;
83
- textAlign: {
84
- xs: string;
85
- md: string;
86
- };
79
+ textAlign: string;
87
80
  fontSize: string;
88
81
  color: string;
89
82
  fontFamily: string;
@@ -93,10 +86,7 @@ export declare const createStyles: (props: StyleProps) => {
93
86
  lineHeight: string;
94
87
  letterSpacing: string;
95
88
  fontSize: string;
96
- textAlign: {
97
- xs: string;
98
- md: string;
99
- };
89
+ textAlign: string;
100
90
  color: string;
101
91
  opacity: string;
102
92
  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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuG5C,CAAC"}
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"}
@@ -0,0 +1,97 @@
1
+ export const createStyles = (props) => ({
2
+ // Main container with background overlay
3
+ mainContainer: {
4
+ display: "flex",
5
+ flexDirection: "column",
6
+ justifyContent: "space-between",
7
+ gap: "40px",
8
+ p: props.spacingScale.xl,
9
+ boxShadow: "md",
10
+ border: props.brandingColors?.borderColor
11
+ ? `${props.borderSize} solid ${props.brandingColors.borderColor}`
12
+ : "none",
13
+ overflow: "hidden",
14
+ backgroundImage: props.backgroundImage,
15
+ backgroundPosition: "center",
16
+ backgroundSize: "cover",
17
+ position: "relative",
18
+ borderRadius: props.mdBorderRadius,
19
+ minHeight: "250px",
20
+ "&::before": {
21
+ content: '""',
22
+ position: "absolute",
23
+ background: props.imageBackgroundGradient,
24
+ top: 0,
25
+ left: 0,
26
+ right: 0,
27
+ bottom: 0,
28
+ borderRadius: "inherit",
29
+ zIndex: 0,
30
+ },
31
+ },
32
+ // Headline section wrapper
33
+ headlineSection: {
34
+ display: "flex",
35
+ justifyContent: "space-between",
36
+ flex: "1 0 0",
37
+ alignSelf: "stretch",
38
+ },
39
+ // Headline content container
40
+ headlineContent: {
41
+ display: "flex",
42
+ flexDirection: "column",
43
+ alignItems: "flex-start",
44
+ flex: "1 0 0",
45
+ gap: "16px",
46
+ },
47
+ // Headline content with z-index
48
+ headlineContentInner: {
49
+ zIndex: 10,
50
+ },
51
+ // Headline typography
52
+ headlineText: {
53
+ fontWeight: 500,
54
+ lineHeight: "166%",
55
+ letterSpacing: "1px",
56
+ textAlign: "left",
57
+ color: props.secondaryColor,
58
+ opacity: "70%",
59
+ textTransform: "uppercase",
60
+ fontFamily: props.fontFamilySecondary,
61
+ fontSize: "0.75em",
62
+ },
63
+ // Content container
64
+ contentContainer: {
65
+ display: "flex",
66
+ flexDirection: "column",
67
+ gap: props.spacingScale["3xs"],
68
+ },
69
+ // Title typography
70
+ titleText: {
71
+ fontWeight: 700,
72
+ lineHeight: "133%",
73
+ letterSpacing: "0px",
74
+ textAlign: "left",
75
+ fontSize: "1.5em",
76
+ color: props.darkTextColor,
77
+ fontFamily: props.fontFamilyPrimary,
78
+ },
79
+ // Description typography
80
+ descriptionText: {
81
+ fontWeight: 400,
82
+ lineHeight: "140%",
83
+ letterSpacing: "0.15px",
84
+ fontSize: "1.25em",
85
+ textAlign: "left",
86
+ color: props.secondaryColor,
87
+ opacity: "70%",
88
+ fontFamily: props.fontFamilyPrimary,
89
+ },
90
+ // Main content section
91
+ mainContentSection: {
92
+ display: "flex",
93
+ flexDirection: "column",
94
+ gap: "24px",
95
+ },
96
+ });
97
+ //# sourceMappingURL=OverlaySkeleton.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OverlaySkeleton.styles.js","sourceRoot":"","sources":["../../../../src/components/Skeletons/Overlay/OverlaySkeleton.styles.ts"],"names":[],"mappings":"AAkBA,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,KAAiB,EAAE,EAAE,CAAC,CAAC;IAClD,yCAAyC;IACzC,aAAa,EAAE;QACb,OAAO,EAAE,MAAM;QACf,aAAa,EAAE,QAAQ;QACvB,cAAc,EAAE,eAAe;QAC/B,GAAG,EAAE,MAAM;QACX,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,EAAE;QACxB,SAAS,EAAE,IAAI;QACf,MAAM,EAAE,KAAK,CAAC,cAAc,EAAE,WAAW;YACvC,CAAC,CAAC,GAAG,KAAK,CAAC,UAAU,UAAU,KAAK,CAAC,cAAc,CAAC,WAAW,EAAE;YACjE,CAAC,CAAC,MAAM;QACV,QAAQ,EAAE,QAAQ;QAClB,eAAe,EAAE,KAAK,CAAC,eAAe;QACtC,kBAAkB,EAAE,QAAQ;QAC5B,cAAc,EAAE,OAAO;QACvB,QAAQ,EAAE,UAAU;QACpB,YAAY,EAAE,KAAK,CAAC,cAAc;QAClC,SAAS,EAAE,OAAO;QAClB,WAAW,EAAE;YACX,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,UAAU;YACpB,UAAU,EAAE,KAAK,CAAC,uBAAuB;YACzC,GAAG,EAAE,CAAC;YACN,IAAI,EAAE,CAAC;YACP,KAAK,EAAE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AAS,EAAE,MAAM;QACjB,KAAK,EAAE,KAAK,CAAC,cAAc;QAC3B,OAAO,EAAE,KAAK;QACd,UAAU,EAAE,KAAK,CAAC,iBAAiB;KACpC;IAED,uBAAuB;IACvB,kBAAkB,EAAE;QAClB,OAAO,EAAE,MAAM;QACf,aAAa,EAAE,QAAQ;QACvB,GAAG,EAAE,MAAM;KACZ;CACF,CAAC,CAAC"}
@@ -1,4 +1,4 @@
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";
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
@@ -1,11 +1,12 @@
1
- import { BrandingColorsModel, BrandingModel, ConsentEntityType, RelatedEntityRelationship } from "fansunited-sdk-esm";
2
- import { Branding, BrandingColors } from "../interfaces/interfaces";
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("..").CountryType | null;
7
- export declare const getDefaultCountryByLanguage: (language: string | null) => import("..").CountryType | null;
8
- export declare const getCountryByCode: (code: string) => import("..").CountryType | null;
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 "./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";
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
package/index.es.js CHANGED
@@ -33240,7 +33240,7 @@ const jF = (e) => {
33240
33240
  fontWeight: 500,
33241
33241
  lineHeight: "166%",
33242
33242
  letterSpacing: "1px",
33243
- textAlign: { xs: "center", md: "left" },
33243
+ textAlign: "left",
33244
33244
  color: e.secondaryColor,
33245
33245
  opacity: "70%",
33246
33246
  textTransform: "uppercase",
@@ -33258,7 +33258,7 @@ const jF = (e) => {
33258
33258
  fontWeight: 700,
33259
33259
  lineHeight: "133%",
33260
33260
  letterSpacing: "0px",
33261
- textAlign: { xs: "center", md: "left" },
33261
+ textAlign: "left",
33262
33262
  fontSize: "1.5em",
33263
33263
  color: e.darkTextColor,
33264
33264
  fontFamily: e.fontFamilyPrimary
@@ -33269,7 +33269,7 @@ const jF = (e) => {
33269
33269
  lineHeight: "140%",
33270
33270
  letterSpacing: "0.15px",
33271
33271
  fontSize: "1.25em",
33272
- textAlign: { xs: "center", md: "left" },
33272
+ textAlign: "left",
33273
33273
  color: e.secondaryColor,
33274
33274
  opacity: "70%",
33275
33275
  fontFamily: e.fontFamilyPrimary
@@ -1,8 +1,9 @@
1
- import { ActionType, CTAType, ContentViewType, JourneyType, LinkTargetType, StageType, LanguageType, LeadField, LeadPosition, OptionsLayout, DiscussionSortType } from "../types/types";
2
- import { ChanceGameTemplate, ChanceGameVariant, PickThePairTemplate, WidgetTemplate } from "../enums/enums";
3
- import { BrandingModel, ContextModel, FansUnitedSDKModel, ImagesModel } from "fansunited-sdk-esm";
4
- import { ColorSystemOptions, CssVarsThemeOptions } from "@mui/joy/styles/extendTheme";
5
- import { DefaultColorScheme, DefaultPaletteRange, ExtendedColorScheme } from "@mui/joy/styles/types";
1
+ import { ActionType, CTAType, ContentViewType, JourneyType, LinkTargetType, StageType, LanguageType, LeadField, LeadPosition, OptionsLayout, DiscussionSortType } from '../types/types';
2
+ import { ChanceGameTemplate, ChanceGameVariant, PickThePairTemplate, WidgetTemplate } from '../enums/enums';
3
+ import { BrandingModel, ContextModel, FansUnitedSDKModel, ImagesModel } from 'fansunited-sdk-esm';
4
+ import { ColorSystemOptions, CssVarsThemeOptions } from '@mui/joy/styles/extendTheme';
5
+ import { DefaultColorScheme, DefaultPaletteRange, ExtendedColorScheme } from '@mui/joy/styles/types';
6
+
6
7
  export interface AnalyticsEvent {
7
8
  journey: JourneyType;
8
9
  stage: StageType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fansunited-frontend-core",
3
- "version": "0.0.40",
3
+ "version": "0.0.41",
4
4
  "description": "Core types, components, providers and constants for Fans United widgets",
5
5
  "main": "index.es.js",
6
6
  "types": "index.d.ts",
@@ -1,53 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { Box, Button, Card, DialogActions, DialogContent, DialogTitle, Modal, ModalClose, ModalDialog, Typography, } from "@mui/joy";
3
- import { useTheme } from "@mui/joy/styles";
4
- import { useMediaQuery } from "@mui/material";
5
- import { t } from "i18next";
6
- import { useState } from "react";
7
- const prizeCardStyles = {
8
- mainCard: {
9
- my: 2,
10
- p: 2,
11
- textAlign: "center",
12
- background: "linear-gradient(135deg, var(--joy-palette-primary-400), var(--joy-palette-primary-600), var(--joy-palette-primary-700))",
13
- position: "relative",
14
- overflow: "hidden",
15
- borderRadius: "sm",
16
- },
17
- mainCardOverlay: {
18
- position: "absolute",
19
- top: 0,
20
- left: 0,
21
- right: 0,
22
- bottom: 0,
23
- background: "linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.2) 100%)",
24
- zIndex: 0,
25
- },
26
- contentWrapper: {
27
- position: "relative",
28
- zIndex: 1,
29
- },
30
- title: {
31
- color: "white",
32
- textShadow: "0 2px 7px rgba(0,0,0,0.2)",
33
- mb: 1,
34
- },
35
- description: {
36
- color: "white",
37
- opacity: 0.9,
38
- },
39
- };
40
- const titleLabel = t("prize.title");
41
- const descriptionLabel = t("prize.description");
42
- const ctaLabel = t("prize.cta");
43
- const termsLabel = t("prize.termsAndConditions");
44
- const closeLabel = t("eitherOr.buttons.close");
45
- const PrizeCard = ({ title = titleLabel, description = descriptionLabel, cta = ctaLabel, rules = "", }) => {
46
- const [open, setOpen] = useState(false);
47
- //TODO: Use internal theme
48
- const theme = useTheme();
49
- const isMobile = useMediaQuery(theme.breakpoints.down("sm"));
50
- return (_jsxs(_Fragment, { children: [_jsxs(Card, { variant: "soft", color: "success", sx: prizeCardStyles.mainCard, children: [_jsx(Box, { style: prizeCardStyles.mainCardOverlay }), _jsxs(Box, { sx: prizeCardStyles.contentWrapper, children: [_jsx(Typography, { level: "h4", sx: prizeCardStyles.title, children: title }), _jsx(Typography, { level: "body-sm", sx: prizeCardStyles.description, children: description }), _jsx(Typography, { level: "body-xs", textColor: "white", mt: 2, sx: { cursor: "pointer" }, onClick: () => setOpen(true), children: cta })] })] }), _jsx(Modal, { open: open, onClose: () => setOpen(false), children: _jsxs(ModalDialog, { layout: isMobile ? "fullscreen" : "center", children: [_jsx(ModalClose, {}), _jsx(DialogTitle, { children: termsLabel }), _jsx(DialogContent, { children: _jsx("div", { dangerouslySetInnerHTML: { __html: rules } }) }), _jsx(DialogActions, { children: _jsx(Button, { variant: "soft", color: "neutral", onClick: () => setOpen(false), children: closeLabel }) })] }) })] }));
51
- };
52
- export default PrizeCard;
53
- //# sourceMappingURL=PrizeCard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PrizeCard.js","sourceRoot":"","sources":["../../../src/components/PrizeCard/PrizeCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,GAAG,EACH,MAAM,EACN,IAAI,EACJ,aAAa,EACb,aAAa,EACb,WAAW,EACX,KAAK,EACL,UAAU,EACV,WAAW,EACX,UAAU,GACX,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,CAAC,EAAE,MAAM,SAAS,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,MAAM,eAAe,GAAG;IACtB,QAAQ,EAAE;QACR,EAAE,EAAE,CAAC;QACL,CAAC,EAAE,CAAC;QACJ,SAAS,EAAE,QAAQ;QACnB,UAAU,EACR,yHAAyH;QAC3H,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,QAAQ;QAClB,YAAY,EAAE,IAAI;KACnB;IACD,eAAe,EAAE;QACf,QAAQ,EAAE,UAAU;QACpB,GAAG,EAAE,CAAC;QACN,IAAI,EAAE,CAAC;QACP,KAAK,EAAE,CAAC;QACR,MAAM,EAAE,CAAC;QACT,UAAU,EACR,8EAA8E;QAChF,MAAM,EAAE,CAAC;KACV;IACD,cAAc,EAAE;QACd,QAAQ,EAAE,UAAU;QACpB,MAAM,EAAE,CAAC;KACV;I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Ae,CAAC,WAAW,YACxD,WAAW,GACD,EACb,KAAC,UAAU,IACT,KAAK,EAAC,SAAS,EACf,SAAS,EAAE,OAAO,EAClB,EAAE,EAAE,CAAC,EACL,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,EACzB,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,YAE3B,GAAG,GACO,IACT,IACD,EAEP,KAAC,KAAK,IAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,YAC9C,MAAC,WAAW,IAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,QAAQ,aACrD,KAAC,UAAU,KAAG,EACd,KAAC,WAAW,cAAE,UAAU,GAAe,EACvC,KAAC,aAAa,cACZ,cACE,uBAAuB,EAAE,EAAE,MAAM,EAAE,KAAoB,EAAE,GACpD,GACO,EAChB,KAAC,aAAa,cACZ,KAAC,MAAM,IACL,OAAO,EAAC,MAAM,EACd,KAAK,EAAC,SAAS,EACf,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,YAE5B,UAAU,GACJ,GACK,IACJ,GACR,IACP,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1,4 +0,0 @@
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
- //# sourceMappingURL=functions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"functions.js","sourceRoot":"","sources":["../../src/functions/functions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,UAAU,EACV,QAAQ,EACR,YAAY,EACZ,QAAQ,EACR,SAAS,EACT,aAAa,EACb,eAAe,EACf,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,0BAA0B,EAC1B,OAAO,EACP,mBAAmB,GACpB,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,aAAa,EACb,QAAQ,EACR,SAAS,EACT,uBAAuB,EACvB,2BAA2B,EAC3B,8BAA8B,EAC9B,yBAAyB,EACzB,qBAAqB,EACrB,iCAAiC,EACjC,mBAAmB,EACnB,oBAAoB,EACpB,WAAW,GACZ,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC"}
@@ -1,129 +0,0 @@
1
- import { countries, languageToCountryCode } from "../constants/constants";
2
- import { isMobile } from "./theme";
3
- export const stripHtmlTags = (html) => {
4
- const tmp = document.createElement("div");
5
- tmp.innerHTML = html || "";
6
- return tmp.textContent || tmp.innerText || "";
7
- };
8
- export const hexToRgb = (hex) => {
9
- // Remove the hash if present
10
- hex = hex.replace(/^#/, "");
11
- // Parse the hex values
12
- const r = parseInt(hex.substring(0, 2), 16);
13
- const g = parseInt(hex.substring(2, 4), 16);
14
- const b = parseInt(hex.substring(4, 6), 16);
15
- return `${r}, ${g}, ${b}`;
16
- };
17
- // Helper function to check if running on Android
18
- export const isAndroid = () => {
19
- return /Android/i.test(navigator.userAgent);
20
- };
21
- export const getDefaultCountryByCode = (phoneCountryCode) => {
22
- const code = phoneCountryCode || "44";
23
- return countries.find((country) => country.phone === code) || null;
24
- };
25
- export const getDefaultCountryByLanguage = (language) => {
26
- const code = language ? languageToCountryCode[language] : "GB";
27
- return countries.find((country) => country.code === code) || null;
28
- };
29
- export const getCountryByCode = (code) => {
30
- return countries.find((country) => country.code === code) || null;
31
- };
32
- export const extractBrandingModelProperties = (branding) => {
33
- const mobile = isMobile();
34
- let brandingImage = branding?.images?.backgroundImage || null;
35
- let brandingLogo = branding?.images?.mainLogo || null;
36
- let brandingColors = null;
37
- if (mobile && branding?.images) {
38
- brandingImage =
39
- branding.images.mobileBackgroundImage ||
40
- branding.images.backgroundImage ||
41
- null;
42
- brandingLogo = branding.images.mobileLogo || branding.images.mainLogo;
43
- }
44
- if (branding?.colors) {
45
- brandingColors = branding.colors;
46
- }
47
- return { brandingImage, brandingColors, brandingLogo };
48
- };
49
- export const extractBrandingProperties = (branding) => {
50
- const mobile = isMobile();
51
- let brandingImage = branding?.images?.background_image || null;
52
- let brandingLogo = branding?.images?.main_logo || null;
53
- let brandingColors = null;
54
- if (mobile && branding?.images) {
55
- brandingImage =
56
- branding.images.mobile_background_image ||
57
- branding.images.background_image ||
58
- null;
59
- brandingLogo = branding.images.mobile_logo || branding.images.main_logo;
60
- }
61
- if (branding?.colors) {
62
- brandingColors = branding.colors;
63
- }
64
- return { brandingImage, brandingColors, brandingLogo };
65
- };
66
- export const sanitizeBackgroundUrl = (url) => {
67
- try {
68
- return `url("${url}")`;
69
- }
70
- catch {
71
- return "none";
72
- }
73
- };
74
- export const mapContentTypeToConsentEntityType = (type) => {
75
- if (!type)
76
- return undefined;
77
- // Backward compatibility: map generic "quiz" to "classic_quiz"
78
- if (type === "quiz")
79
- return "classic_quiz";
80
- // If already valid, pass through
81
- const valid = [
82
- "template",
83
- "classic_quiz",
84
- "personality_quiz",
85
- "either_or",
86
- "match_quiz",
87
- "top_x",
88
- "bracket",
89
- "standing",
90
- "poll",
91
- ];
92
- if (valid.includes(type))
93
- return type;
94
- // Fallback: don't set entityType if unknown
95
- console.warn(`[CollectLead] Unknown content type "${type}" for consents; omitting entityType.`);
96
- return undefined;
97
- };
98
- /**
99
- * Get the appropriate URL for branding elements based on primaryUrl and secondaryUrl
100
- * @param primaryUrl - Primary URL from branding.urls.primaryUrl
101
- * @param secondaryUrl - Secondary URL from branding.urls.secondaryUrl
102
- * @param target - Target element type: 'image' or 'logo'
103
- * @returns The appropriate URL or null
104
- *
105
- * Logic:
106
- * - For images: use primaryUrl if available, otherwise null
107
- * - For logos: use secondaryUrl if available, otherwise primaryUrl if available, otherwise null
108
- */
109
- export const getBrandingClickUrl = (primaryUrl, secondaryUrl, target) => {
110
- const primary = primaryUrl?.trim() || null;
111
- const secondary = secondaryUrl?.trim() || null;
112
- if (target === "image") {
113
- return primary;
114
- }
115
- // For logo: secondary takes priority, fallback to primary
116
- return secondary || primary;
117
- };
118
- export const getRelatedInfoPageId = (related) => {
119
- if (!related?.length)
120
- return null;
121
- const match = related.find((r) => r.entityType === "info_page" && r.entityRelationship === "relatedTo");
122
- return match?.entityId ?? null;
123
- };
124
- export const isWithPrize = (flags) => {
125
- if (!flags)
126
- return false;
127
- return flags.some((flag) => flag.toLowerCase() === "prize");
128
- };
129
- //# sourceMappingURL=helpers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../src/functions/helpers.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGnC,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,IAAmB,EAAU,EAAE;IAC3D,MAAM,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAC1C,GAAG,CAAC,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC;IAE3B,OAAO,GAAG,CAAC,WAAW,IAAI,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC;AAChD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,GAAW,EAAU,EAAE;IAC9C,6BAA6B;IAC7B,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IAE5B,uBAAuB;IACvB,MAAM,CAAC,GAAG,QAAQ,CAAC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,MAAM,SAAS,GAAG,YAAY,EAAE,IAAI,EAAE,IAAI,IAAI,CAAC;IAE/C,IAAI,MAAM,KAAK,OAAO,EAAE,CAAC;QACvB,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,0DAA0D;IAC1D,OAAO,SAAS,IAAI,OAAO,CAAC;AAC9B,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAClC,OAAuD,EACxC,EAAE;IACjB,IAAI,CAAC,OAAO,EAAE,MAAM;QAAE,OAAO,IAAI,CAAC;IAElC,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,CACxB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,KAAK,WAAW,IAAI,CAAC,CAAC,kBAAkB,KAAK,WAAW,CAC5E,CAAC;IAEF,OAAO,KAAK,EAAE,QAAQ,IAAI,IAAI,CAAC;AACjC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAe,EAAW,EAAE;IACtD,IAAI,CAAC,KAAK;QAAE,OAAO,KAAK,CAAC;IAEzB,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,OAAO,CAAC,CAAC;AAC9D,CAAC,CAAC"}
package/index.js DELETED
@@ -1,38 +0,0 @@
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 { default as SplitLeadAfterCollection } from "./components/LeadCollection/SplitLeadAfterCollection";
28
- export { default as OverlayLeadAfterCollection } from "./components/LeadCollection/OverlayLeadAfterCollection";
29
- export { default as InfoPageCollectLeadWrapper } from "./components/Leads/InfoPageCollectLeadWrapper";
30
- export { default as Portal } from "./components/Portal/Portal";
31
- export { default as ChanceGameEmbed } from "./components/ChanceGameEmbed";
32
- export { default as Notification } from "./components/Notification";
33
- export { default as PrizeCard } from "./components/PrizeCard/PrizeCard";
34
- export * from "./hooks/hooks";
35
- export * from "./providers/providers";
36
- export { default as defaultBg } from "./assets/default-quiz-bg.png";
37
- export { default as defaultBgVertical } from "./assets/default-quiz-bg-vertical.jpg";
38
- //# sourceMappingURL=index.js.map
package/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AAC/F,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,4CAA4C,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,gDAAgD,CAAC;AAC5F,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,uEAAuE,CAAC;AAC9H,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,oEAAoE,CAAC;AACxH,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,+DAA+D,CAAC;AAClH,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,iEAAiE,CAAC;AACrH,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,yDAAyD,CAAC;AACzG,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,6DAA6D,CAAC;AAC/G,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,qEAAqE,CAAC;AAC3H,OAAO,EAAE,OAAO,IAAI,gCAAgC,EAAE,MAAM,4EAA4E,CAAC;AACzI,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,mEAAmE,CAAC;AACxH,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,6DAA6D,CAAC;AAC/G,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,iEAAiE,CAAC;AACrH,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,yDAAyD,CAAC;AAEjH,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,sDAAsD,CAAC;AAE3G,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,wDAAwD,CAAC;AAE/G,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AAEtG,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,kCAAkC,CAAC;AACxE,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,uCAAuC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=interfaces.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../src/interfaces/interfaces.ts"],"names":[],"mappings":""}