fansunited-frontend-core 0.0.44 → 0.0.46

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/Notification.d.ts.map +1 -1
  2. package/functions/functions.d.ts +1 -1
  3. package/functions/functions.d.ts.map +1 -1
  4. package/functions/helpers.d.ts +4 -2
  5. package/functions/helpers.d.ts.map +1 -1
  6. package/index.es.js +10652 -7333
  7. package/interfaces/interfaces.d.ts +34 -5
  8. package/interfaces/interfaces.d.ts.map +1 -1
  9. package/locales/bg.json +243 -0
  10. package/locales/bg.json.d.ts +243 -0
  11. package/locales/de.json +234 -0
  12. package/locales/de.json.d.ts +235 -2
  13. package/locales/el.json +234 -0
  14. package/locales/el.json.d.ts +235 -2
  15. package/locales/en.json +243 -0
  16. package/locales/en.json.d.ts +243 -0
  17. package/locales/es.json +234 -0
  18. package/locales/es.json.d.ts +235 -2
  19. package/locales/fr-be.json +234 -0
  20. package/locales/fr-be.json.d.ts +235 -2
  21. package/locales/fr.json +234 -0
  22. package/locales/fr.json.d.ts +235 -2
  23. package/locales/it.json +234 -0
  24. package/locales/it.json.d.ts +235 -2
  25. package/locales/pl.json +234 -0
  26. package/locales/pl.json.d.ts +235 -2
  27. package/locales/pt-br.json +234 -0
  28. package/locales/pt-br.json.d.ts +235 -2
  29. package/locales/pt.json +234 -0
  30. package/locales/pt.json.d.ts +235 -2
  31. package/locales/ro.json +234 -0
  32. package/locales/ro.json.d.ts +235 -2
  33. package/locales/sk.json +234 -0
  34. package/locales/sk.json.d.ts +235 -2
  35. package/locales/sr.json +234 -0
  36. package/locales/sr.json.d.ts +235 -2
  37. package/package.json +1 -1
  38. package/types/types.d.ts +2 -1
  39. package/types/types.d.ts.map +1 -1
  40. package/functions/functions.js +0 -4
  41. package/functions/functions.js.map +0 -1
  42. package/functions/helpers.js +0 -129
  43. package/functions/helpers.js.map +0 -1
  44. package/interfaces/interfaces.js +0 -2
  45. package/interfaces/interfaces.js.map +0 -1
  46. package/types/types.js +0 -2
  47. package/types/types.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Notification.d.ts","sourceRoot":"","sources":["../../src/components/Notification.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,SAAS,GAAG,OAAO,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,iBAAiB;IACzB,YAAY,EAAE,iBAAiB,CAAC;IAChC,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA6D7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"Notification.d.ts","sourceRoot":"","sources":["../../src/components/Notification.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,SAAS,GAAG,OAAO,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,iBAAiB;IACzB,YAAY,EAAE,iBAAiB,CAAC;IAChC,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA+D7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1,4 +1,4 @@
1
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';
2
+ export { stripHtmlTags, hexToRgb, isAndroid, getDefaultCountryByCode, getDefaultCountryByLanguage, extractBrandingModelProperties, extractBrandingProperties, sanitizeBackgroundUrl, mapContentTypeToConsentEntityType, getBrandingClickUrl, getRelatedInfoPageId, isWithPrize, extractSdkError, extractSdkErrorMessage, } from './helpers';
3
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,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
+ {"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,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,EACX,eAAe,EACf,sBAAsB,GACvB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC"}
@@ -1,5 +1,5 @@
1
- import { BrandingColorsModel, BrandingModel, ConsentEntityType, RelatedEntityRelationship } from 'fansunited-sdk-esm';
2
- import { Branding, BrandingColors } from '../interfaces/interfaces';
1
+ import { BrandingColorsModel, BrandingModel, ConsentEntityType, FansUnitedSDKModel, RelatedEntityRelationship } from 'fansunited-sdk-esm';
2
+ import { Branding, BrandingColors, SdkError } from '../interfaces/interfaces';
3
3
 
4
4
  export declare const stripHtmlTags: (html: string | null) => string;
5
5
  export declare const hexToRgb: (hex: string) => string;
@@ -33,4 +33,6 @@ export declare const mapContentTypeToConsentEntityType: (type: string | undefine
33
33
  export declare const getBrandingClickUrl: (primaryUrl: string | null | undefined, secondaryUrl: string | null | undefined, target: "image" | "logo") => string | null;
34
34
  export declare const getRelatedInfoPageId: (related: RelatedEntityRelationship[] | undefined | null) => string | null;
35
35
  export declare const isWithPrize: (flags: string[]) => boolean;
36
+ export declare const extractSdkError: (err: unknown, sdk: FansUnitedSDKModel) => SdkError;
37
+ export declare const extractSdkErrorMessage: (err: unknown, sdk: FansUnitedSDKModel, fallback?: string) => string;
36
38
  //# 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,EACjB,yBAAyB,EAC1B,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAEpE,eAAO,MAAM,aAAa,SAAU,MAAM,GAAG,IAAI,KAAG,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