fansunited-frontend-core 0.0.24 → 0.0.25

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.
Files changed (47) hide show
  1. package/components/AdditionalCTA.d.ts +12 -0
  2. package/components/AdditionalCTA.d.ts.map +1 -0
  3. package/functions/functions.d.ts +3 -3
  4. package/functions/functions.d.ts.map +1 -1
  5. package/functions/helpers.d.ts +12 -0
  6. package/functions/helpers.d.ts.map +1 -1
  7. package/functions/theme.d.ts +6 -5
  8. package/index.d.ts +1 -0
  9. package/index.d.ts.map +1 -1
  10. package/index.es.js +996 -960
  11. package/interfaces/interfaces.d.ts +8 -0
  12. package/interfaces/interfaces.d.ts.map +1 -1
  13. package/locales/bg.json.d.ts +1 -0
  14. package/locales/de.json.d.ts +1 -0
  15. package/locales/el.json.d.ts +1 -0
  16. package/locales/en.json.d.ts +1 -0
  17. package/locales/es.json.d.ts +1 -0
  18. package/locales/fr-be.json.d.ts +1 -0
  19. package/locales/fr.json.d.ts +1 -0
  20. package/locales/it.json.d.ts +1 -0
  21. package/locales/pl.json.d.ts +1 -0
  22. package/locales/pt-br.json.d.ts +1 -0
  23. package/locales/pt.json.d.ts +1 -0
  24. package/locales/ro.json.d.ts +1 -0
  25. package/locales/sk.json.d.ts +1 -0
  26. package/locales/sr.json.d.ts +1 -0
  27. package/package.json +1 -1
  28. package/functions/functions.js +0 -4
  29. package/functions/functions.js.map +0 -1
  30. package/functions/theme.js +0 -361
  31. package/functions/theme.js.map +0 -1
  32. package/hooks/useImageUrl.js +0 -17
  33. package/hooks/useImageUrl.js.map +0 -1
  34. package/locales/bg.json +0 -251
  35. package/locales/de.json +0 -251
  36. package/locales/el.json +0 -252
  37. package/locales/en.json +0 -252
  38. package/locales/es.json +0 -251
  39. package/locales/fr-be.json +0 -251
  40. package/locales/fr.json +0 -251
  41. package/locales/it.json +0 -251
  42. package/locales/pl.json +0 -251
  43. package/locales/pt-br.json +0 -251
  44. package/locales/pt.json +0 -251
  45. package/locales/ro.json +0 -251
  46. package/locales/sk.json +0 -251
  47. package/locales/sr.json +0 -251
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ import { AdditionalCTADetails } from '../interfaces/interfaces';
3
+
4
+ export interface AdditionalCTAProps {
5
+ additionalCTA?: AdditionalCTADetails;
6
+ buttonStyle?: React.CSSProperties | object;
7
+ buttonContentStyle?: React.CSSProperties | object;
8
+ textStyle?: React.CSSProperties | object;
9
+ }
10
+ declare const AdditionalCTA: React.FC<AdditionalCTAProps>;
11
+ export default AdditionalCTA;
12
+ //# sourceMappingURL=AdditionalCTA.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AdditionalCTA.d.ts","sourceRoot":"","sources":["../../src/components/AdditionalCTA.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE,MAAM,WAAW,kBAAkB;IACjC,aAAa,CAAC,EAAE,oBAAoB,CAAC;IACrC,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,GAAG,MAAM,CAAC;IAC3C,kBAAkB,CAAC,EAAE,KAAK,CAAC,aAAa,GAAG,MAAM,CAAC;IAClD,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,GAAG,MAAM,CAAC;CAC1C;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA+C/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,4 +1,4 @@
1
- export { useSpacingScale, getSpacing, isMobile, isExtraSmall, isTablet, isDesktop, useFontFamily, useCornerRadius, useColors, useBorderSize, useInternalTheme, useImageBackgroundGradient, isLarge, } from "./theme";
2
- export { stripHtmlTags, hexToRgb, isAndroid, getDefaultCountryByCode, getDefaultCountryByLanguage, extractBrandingProperties, sanitizeBackgroundUrl, mapContentTypeToConsentEntityType, } from "./helpers";
3
- export { initializeI18n } from "./i18n";
1
+ export { useSpacingScale, getSpacing, isMobile, isExtraSmall, isTablet, isDesktop, useFontFamily, useCornerRadius, useColors, useBorderSize, useInternalTheme, useImageBackgroundGradient, isLarge, } from './theme';
2
+ export { stripHtmlTags, hexToRgb, isAndroid, getDefaultCountryByCode, getDefaultCountryByLanguage, extractBrandingProperties, sanitizeBackgroundUrl, mapContentTypeToConsentEntityType, getBrandingClickUrl, } from './helpers';
3
+ export { initializeI18n } from './i18n';
4
4
  //# sourceMappingURL=functions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"functions.d.ts","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,GACR,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,aAAa,EACb,QAAQ,EACR,SAAS,EACT,uBAAuB,EACvB,2BAA2B,EAC3B,yBAAyB,EACzB,qBAAqB,EACrB,iCAAiC,GAClC,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC"}
1
+ {"version":3,"file":"functions.d.ts","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,GACR,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,aAAa,EACb,QAAQ,EACR,SAAS,EACT,uBAAuB,EACvB,2BAA2B,EAC3B,yBAAyB,EACzB,qBAAqB,EACrB,iCAAiC,EACjC,mBAAmB,GACpB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC"}
@@ -13,4 +13,16 @@ export declare const extractBrandingProperties: (branding: BrandingModel | null)
13
13
  };
14
14
  export declare const sanitizeBackgroundUrl: (url: string) => string;
15
15
  export declare const mapContentTypeToConsentEntityType: (type: string | undefined | null) => ConsentEntityType | undefined;
16
+ /**
17
+ * Get the appropriate URL for branding elements based on primaryUrl and secondaryUrl
18
+ * @param primaryUrl - Primary URL from branding.urls.primaryUrl
19
+ * @param secondaryUrl - Secondary URL from branding.urls.secondaryUrl
20
+ * @param target - Target element type: 'image' or 'logo'
21
+ * @returns The appropriate URL or null
22
+ *
23
+ * Logic:
24
+ * - For images: use primaryUrl if available, otherwise null
25
+ * - For logos: use secondaryUrl if available, otherwise primaryUrl if available, otherwise null
26
+ */
27
+ export declare const getBrandingClickUrl: (primaryUrl: string | null | undefined, secondaryUrl: string | null | undefined, target: "image" | "logo") => string | null;
16
28
  //# sourceMappingURL=helpers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/functions/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,aAAa,EACb,iBAAiB,EAClB,MAAM,oBAAoB,CAAC;AAI5B,eAAO,MAAM,aAAa,SAAU,MAAM,GAAG,IAAI,KAAG,MAKnD,CAAC;AAEF,eAAO,MAAM,QAAQ,QAAS,MAAM,KAAG,MAUtC,CAAC;AAGF,eAAO,MAAM,SAAS,QAAO,OAE5B,CAAC;AAEF,eAAO,MAAM,uBAAuB,qBAAsB,MAAM,GAAG,IAAI,oCAItE,CAAC;AAEF,eAAO,MAAM,2BAA2B,aAAc,MAAM,GAAG,IAAI,oCAIlE,CAAC;AAEF,eAAO,MAAM,gBAAgB,SAAU,MAAM,oCAE5C,CAAC;AAEF,eAAO,MAAM,yBAAyB,aAAc,aAAa,GAAG,IAAI;;;;CAevE,CAAC;AAEF,eAAO,MAAM,qBAAqB,QAAS,MAAM,WAMhD,CAAC;AAEF,eAAO,MAAM,iCAAiC,SACtC,MAAM,GAAG,SAAS,GAAG,IAAI,KAC9B,iBAAiB,GAAG,SAsBtB,CAAC"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/functions/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,aAAa,EACb,iBAAiB,EAClB,MAAM,oBAAoB,CAAC;AAI5B,eAAO,MAAM,aAAa,SAAU,MAAM,GAAG,IAAI,KAAG,MAKnD,CAAC;AAEF,eAAO,MAAM,QAAQ,QAAS,MAAM,KAAG,MAUtC,CAAC;AAGF,eAAO,MAAM,SAAS,QAAO,OAE5B,CAAC;AAEF,eAAO,MAAM,uBAAuB,qBAAsB,MAAM,GAAG,IAAI,oCAItE,CAAC;AAEF,eAAO,MAAM,2BAA2B,aAAc,MAAM,GAAG,IAAI,oCAIlE,CAAC;AAEF,eAAO,MAAM,gBAAgB,SAAU,MAAM,oCAE5C,CAAC;AAEF,eAAO,MAAM,yBAAyB,aAAc,aAAa,GAAG,IAAI;;;;CAevE,CAAC;AAEF,eAAO,MAAM,qBAAqB,QAAS,MAAM,WAMhD,CAAC;AAEF,eAAO,MAAM,iCAAiC,SACtC,MAAM,GAAG,SAAS,GAAG,IAAI,KAC9B,iBAAiB,GAAG,SAsBtB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,mBAAmB,eAClB,MAAM,GAAG,IAAI,GAAG,SAAS,gBACvB,MAAM,GAAG,IAAI,GAAG,SAAS,UAC/B,OAAO,GAAG,MAAM,KACvB,MAAM,GAAG,IAUX,CAAC"}
@@ -1,6 +1,7 @@
1
- import { Theme } from "@mui/joy/styles";
2
- import { CustomSpacingScale, CustomThemeOptions, EnhancedCustomThemeOptions, InternalCustomThemeOptions, ThemeMode } from "../interfaces/interfaces";
3
- import { WidgetTemplate } from "../enums/enums";
1
+ import { Theme } from '@mui/joy/styles';
2
+ import { CustomSpacingScale, CustomThemeOptions, EnhancedCustomThemeOptions, InternalCustomThemeOptions, ThemeMode } from '../interfaces/interfaces';
3
+ import { WidgetTemplate } from '../enums/enums';
4
+
4
5
  export declare const createCustomTheme: (customOptions?: CustomThemeOptions) => Theme;
5
6
  export declare const createEnhancedTheme: (customOptions?: EnhancedCustomThemeOptions) => Theme;
6
7
  /**
@@ -26,8 +27,8 @@ export declare const useFontFamily: () => {
26
27
  primary: string;
27
28
  secondary: string;
28
29
  };
29
- export declare const useCornerRadius: () => import("..").CustomBorderRadius;
30
- export declare const useColors: () => import("..").InternalCustomColors;
30
+ export declare const useCornerRadius: () => import('..').CustomBorderRadius;
31
+ export declare const useColors: () => import('..').InternalCustomColors;
31
32
  export declare const useBorderSize: () => {
32
33
  size: string;
33
34
  } | {
package/index.d.ts CHANGED
@@ -4,6 +4,7 @@ export * from './interfaces/interfaces';
4
4
  export * from './types/types';
5
5
  export * from './enums/enums';
6
6
  export * from './components/Spinner';
7
+ export { default as AdditionalCTA } from './components/AdditionalCTA';
7
8
  export { default as CollectLeadForm } from './components/Leads/CollectLeadForm';
8
9
  export * from './hooks/hooks';
9
10
  export * from './providers/providers';
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","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,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAChF,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","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,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAChF,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC"}