@transcend-io/consent-manager-ui
Advanced tools
Comparing version 4.8.3 to 4.8.4
@@ -10,3 +10,3 @@ { | ||
"homepage": "https://github.com/transcend-io/consent-manager-ui", | ||
"version": "4.8.3", | ||
"version": "4.8.4", | ||
"license": "MIT", | ||
@@ -48,3 +48,3 @@ "main": "build/ui", | ||
"@monaco-editor/react": "^4.4.5", | ||
"@transcend-io/airgap.js-types": "^10.6.1", | ||
"@transcend-io/airgap.js-types": "^10.6.2", | ||
"@transcend-io/type-utils": "^1.0.7", | ||
@@ -51,0 +51,0 @@ "@types/node": "^17.0.21", |
@@ -11,3 +11,2 @@ /** | ||
import { ViewState } from '@transcend-io/airgap.js-types/build/enums/viewState'; | ||
import { ConsentManagerLanguageKey } from '@transcend-io/internationalization'; | ||
import { CONSENT_MANAGER_SUPPORTED_LANGUAGES } from './i18n'; | ||
@@ -17,2 +16,3 @@ import { logger } from './logger'; | ||
import { jsonParseSafe } from './utils/safe-json-parse'; | ||
import { MergedConsentManagerConfig } from './types'; | ||
@@ -76,8 +76,3 @@ const { | ||
*/ | ||
export function getMergedConfig(): { | ||
/** Merged config */ | ||
config: ConsentManagerConfig; | ||
/** Languages split out separately for type-safety and preserving raw value */ | ||
supportedLanguages: ConsentManagerLanguageKey[]; | ||
} { | ||
export function getMergedConfig(): MergedConsentManagerConfig { | ||
const settingsConfig: ConsentManagerConfigInput = | ||
@@ -84,0 +79,0 @@ typeof settings === 'string' |
@@ -5,2 +5,3 @@ import type { | ||
AirgapAuth, | ||
ConsentManagerConfig, | ||
} from '@transcend-io/airgap.js-types'; | ||
@@ -67,1 +68,8 @@ import { ConsentManagerLanguageKey } from '@transcend-io/internationalization'; | ||
export type HandleChangePrivacyPolicy = (privacyPolicyLink: string) => void; | ||
export interface MergedConsentManagerConfig { | ||
/** Merged config */ | ||
config: ConsentManagerConfig; | ||
/** Languages split out separately for type-safety and preserving raw value */ | ||
supportedLanguages: ConsentManagerLanguageKey[]; | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1518796
15782