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.
- package/components/Notification.d.ts.map +1 -1
- package/functions/functions.d.ts +1 -1
- package/functions/functions.d.ts.map +1 -1
- package/functions/helpers.d.ts +4 -2
- package/functions/helpers.d.ts.map +1 -1
- package/index.es.js +10652 -7333
- package/interfaces/interfaces.d.ts +34 -5
- package/interfaces/interfaces.d.ts.map +1 -1
- package/locales/bg.json +243 -0
- package/locales/bg.json.d.ts +243 -0
- package/locales/de.json +234 -0
- package/locales/de.json.d.ts +235 -2
- package/locales/el.json +234 -0
- package/locales/el.json.d.ts +235 -2
- package/locales/en.json +243 -0
- package/locales/en.json.d.ts +243 -0
- package/locales/es.json +234 -0
- package/locales/es.json.d.ts +235 -2
- package/locales/fr-be.json +234 -0
- package/locales/fr-be.json.d.ts +235 -2
- package/locales/fr.json +234 -0
- package/locales/fr.json.d.ts +235 -2
- package/locales/it.json +234 -0
- package/locales/it.json.d.ts +235 -2
- package/locales/pl.json +234 -0
- package/locales/pl.json.d.ts +235 -2
- package/locales/pt-br.json +234 -0
- package/locales/pt-br.json.d.ts +235 -2
- package/locales/pt.json +234 -0
- package/locales/pt.json.d.ts +235 -2
- package/locales/ro.json +234 -0
- package/locales/ro.json.d.ts +235 -2
- package/locales/sk.json +234 -0
- package/locales/sk.json.d.ts +235 -2
- package/locales/sr.json +234 -0
- package/locales/sr.json.d.ts +235 -2
- package/package.json +1 -1
- package/types/types.d.ts +2 -1
- package/types/types.d.ts.map +1 -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/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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Notification.d.ts","sourceRoot":"","sources":["../../src/components/Notification.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,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"}
|
package/functions/functions.d.ts
CHANGED
|
@@ -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,
|
|
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"}
|
package/functions/helpers.d.ts
CHANGED
|
@@ -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,
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/functions/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,aAAa,EACb,iBAAiB,EAEjB,kBAAkB,EAClB,yBAAyB,EAE1B,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAE9E,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,MA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