c15t 2.0.0-rc.2 → 2.0.0-rc.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # c15t
2
2
 
3
+ ## 2.0.0-rc.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 1c813bc: feat(dev-tools): add GPC to dev-tools with an override
8
+ - 0f10f3e: fix(react): react compiler compatability
9
+ - Updated dependencies [0a18fb6]
10
+ - @c15t/backend@2.0.0-rc.3
11
+
3
12
  ## 2.0.0-rc.2
4
13
 
5
14
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -1261,7 +1261,7 @@ var __webpack_modules__ = {
1261
1261
  __webpack_require__.d(__webpack_exports__, {
1262
1262
  r: ()=>version
1263
1263
  });
1264
- const version = '2.0.0-rc.2';
1264
+ const version = '2.0.0-rc.3';
1265
1265
  },
1266
1266
  "@c15t/translations" (module) {
1267
1267
  module.exports = require("@c15t/translations");
@@ -1345,7 +1345,8 @@ var __webpack_exports__ = {};
1345
1345
  createIframeBlocker: ()=>createIframeBlocker,
1346
1346
  clearClientRegistry: ()=>clearClientRegistry,
1347
1347
  configureConsentManager: ()=>configureConsentManager,
1348
- allConsentNames: ()=>consent_types.W
1348
+ allConsentNames: ()=>consent_types.W,
1349
+ has: ()=>has
1349
1350
  });
1350
1351
  var translations_ = __webpack_require__("@c15t/translations");
1351
1352
  const LEADING_SLASHES_REGEX = /^\/+/;
@@ -2308,8 +2309,6 @@ var __webpack_exports__ = {};
2308
2309
  clientRegistry.clear();
2309
2310
  }
2310
2311
  var generate_subject_id = __webpack_require__("./src/libs/generate-subject-id.ts");
2311
- var iab_tcf = __webpack_require__("./src/libs/iab-tcf/index.ts");
2312
- var consent_types = __webpack_require__("./src/types/consent-types.ts");
2313
2312
  function validateNonEmptyConditions(conditions, conditionType) {
2314
2313
  if (0 === conditions.length) throw new TypeError(`${conditionType} condition cannot be empty`);
2315
2314
  }
@@ -2364,6 +2363,8 @@ var __webpack_exports__ = {};
2364
2363
  recurse(condition);
2365
2364
  return Array.from(categories);
2366
2365
  }
2366
+ var iab_tcf = __webpack_require__("./src/libs/iab-tcf/index.ts");
2367
+ var consent_types = __webpack_require__("./src/types/consent-types.ts");
2367
2368
  function createDefaultConsentState() {
2368
2369
  return {
2369
2370
  experience: false,
@@ -2841,7 +2842,9 @@ var __webpack_exports__ = {};
2841
2842
  ...consents
2842
2843
  };
2843
2844
  const previousConsentInfo = consentInfo;
2844
- const newConsents = selectedConsents ?? consents ?? {};
2845
+ const newConsents = {
2846
+ ...selectedConsents ?? consents ?? {}
2847
+ };
2845
2848
  const givenAt = Date.now();
2846
2849
  if ('all' === type) {
2847
2850
  for (const consent of consentTypes)if (consentCategories.includes(consent.name)) newConsents[consent.name] = true;
@@ -3064,9 +3067,9 @@ var __webpack_exports__ = {};
3064
3067
  measurement: !hasGpcSignal
3065
3068
  };
3066
3069
  }
3067
- function computeAutoGrantInfo(jurisdiction, iabEnabled, consentInfo) {
3070
+ function computeAutoGrantInfo(jurisdiction, iabEnabled, consentInfo, gpcOverride) {
3068
3071
  const consentModel = determineModel(jurisdiction, iabEnabled);
3069
- const hasGpcSignal = hasGlobalPrivacyControlSignal();
3072
+ const hasGpcSignal = void 0 !== gpcOverride ? gpcOverride : hasGlobalPrivacyControlSignal();
3070
3073
  const shouldAutoGrantConsents = (null === consentModel || 'opt-out' === consentModel) && null === consentInfo;
3071
3074
  const autoGrantedConsents = calculateAutoGrantedConsents(shouldAutoGrantConsents, hasGpcSignal);
3072
3075
  return {
@@ -3078,7 +3081,7 @@ var __webpack_exports__ = {};
3078
3081
  const { get, initialTranslationConfig } = config;
3079
3082
  const { consentInfo } = get();
3080
3083
  const { translations, location } = data;
3081
- const { consentModel, autoGrantedConsents } = computeAutoGrantInfo(data.jurisdiction ?? null, effectiveIABEnabled, consentInfo);
3084
+ const { consentModel, autoGrantedConsents } = computeAutoGrantInfo(data.jurisdiction ?? null, effectiveIABEnabled, consentInfo, config.get().overrides?.gpc);
3082
3085
  const update = {
3083
3086
  model: consentModel,
3084
3087
  isLoadingConsentInfo: false,
@@ -3127,7 +3130,7 @@ var __webpack_exports__ = {};
3127
3130
  const serverDisabledGVL = iab?.config.enabled && !prefetchedGVL;
3128
3131
  const effectiveIABEnabled = iab?.config.enabled && !serverDisabledGVL;
3129
3132
  if (serverDisabledGVL) console.warn('IAB mode disabled: Server returned 200 without GVL. Client IAB settings overridden.');
3130
- const { consentModel, autoGrantedConsents } = computeAutoGrantInfo(data.jurisdiction ?? null, effectiveIABEnabled, consentInfo);
3133
+ const { consentModel, autoGrantedConsents } = computeAutoGrantInfo(data.jurisdiction ?? null, effectiveIABEnabled, consentInfo, get().overrides?.gpc);
3131
3134
  const storeUpdate = buildStoreUpdate(data, config, hasLocalStorageAccess, effectiveIABEnabled);
3132
3135
  if (serverDisabledGVL && iab) storeUpdate.iab = {
3133
3136
  ...iab,
@@ -3861,6 +3864,7 @@ exports.getCookie = __webpack_exports__.getCookie;
3861
3864
  exports.getLoadedScriptIds = __webpack_exports__.getLoadedScriptIds;
3862
3865
  exports.getOrCreateConsentRuntime = __webpack_exports__.getOrCreateConsentRuntime;
3863
3866
  exports.getRootDomain = __webpack_exports__.getRootDomain;
3867
+ exports.has = __webpack_exports__.has;
3864
3868
  exports.isScriptLoaded = __webpack_exports__.isScriptLoaded;
3865
3869
  exports.isValidSubjectId = __webpack_exports__.isValidSubjectId;
3866
3870
  exports.loadScripts = __webpack_exports__.loadScripts;
@@ -3897,6 +3901,7 @@ for(var __rspack_i in __webpack_exports__)if (-1 === [
3897
3901
  "getLoadedScriptIds",
3898
3902
  "getOrCreateConsentRuntime",
3899
3903
  "getRootDomain",
3904
+ "has",
3900
3905
  "isScriptLoaded",
3901
3906
  "isValidSubjectId",
3902
3907
  "loadScripts",
package/dist/index.d.ts CHANGED
@@ -15,6 +15,7 @@ export { deleteConsentFromStorage, deleteCookie, getConsentFromStorage, getCooki
15
15
  export type { Model } from './libs/determine-model';
16
16
  export { generateSubjectId, isValidSubjectId, } from './libs/generate-subject-id';
17
17
  export type { HasCondition } from './libs/has';
18
+ export { has } from './libs/has';
18
19
  export type { IABConfig } from './libs/iab-tcf';
19
20
  export { clearGVLCache, fetchGVL, getCachedGVL, setMockGVL, } from './libs/iab-tcf';
20
21
  export { createIframeBlocker, type IframeBlocker, type IframeBlockerConfig, } from './libs/iframe-blocker';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,YAAY,EACX,QAAQ,EACR,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,UAAU,EACV,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,GACjB,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EACX,kBAAkB,EAClB,gCAAgC,EAChC,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,sBAAsB,EACtB,iBAAiB,EACjB,YAAY,GACZ,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACN,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACvB,wBAAwB,GACxB,MAAM,oBAAoB,CAAC;AAC5B,cAAc,UAAU,CAAC;AAEzB,YAAY,EACX,YAAY,EACZ,eAAe,GACf,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,EACN,wBAAwB,EACxB,YAAY,EACZ,qBAAqB,EACrB,SAAS,EACT,aAAa,EACb,oBAAoB,EACpB,SAAS,GACT,MAAM,eAAe,CAAC;AACvB,YAAY,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EACN,iBAAiB,EACjB,gBAA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AmB,GACxB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEnE,OAAO,EACN,kBAAkB,EAClB,cAAc,EACd,WAAW,EACX,KAAK,MAAM,EACX,aAAa,EACb,aAAa,GACb,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACN,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,wBAAwB,EACxB,yBAAyB,GACzB,MAAM,WAAW,CAAC;AAEnB,OAAO,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AACpD,YAAY,EACX,QAAQ,EACR,iBAAiB,EACjB,cAAc,EACd,YAAY,GACZ,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC7D,YAAY,EACX,qBAAqB,EACrB,YAAY,EACZ,YAAY,EACZ,cAAc,GACd,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACN,KAAK,eAAe,EACpB,eAAe,EACf,KAAK,WAAW,EAChB,YAAY,GACZ,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC/C,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjE,YAAY,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC"}
package/dist/index.js CHANGED
@@ -1262,7 +1262,7 @@ var __webpack_modules__ = {
1262
1262
  __webpack_require__.d(__webpack_exports__, {
1263
1263
  r: ()=>version
1264
1264
  });
1265
- const version = '2.0.0-rc.2';
1265
+ const version = '2.0.0-rc.3';
1266
1266
  },
1267
1267
  "@c15t/translations" (module) {
1268
1268
  module.exports = __rspack_external__c15t_translations_cdae900b;
@@ -2250,8 +2250,6 @@ function clearClientRegistry() {
2250
2250
  clientRegistry.clear();
2251
2251
  }
2252
2252
  var generate_subject_id = __webpack_require__("./src/libs/generate-subject-id.ts");
2253
- var iab_tcf = __webpack_require__("./src/libs/iab-tcf/index.ts");
2254
- var consent_types = __webpack_require__("./src/types/consent-types.ts");
2255
2253
  function validateNonEmptyConditions(conditions, conditionType) {
2256
2254
  if (0 === conditions.length) throw new TypeError(`${conditionType} condition cannot be empty`);
2257
2255
  }
@@ -2306,6 +2304,8 @@ function extractConsentNamesFromCondition(condition) {
2306
2304
  recurse(condition);
2307
2305
  return Array.from(categories);
2308
2306
  }
2307
+ var iab_tcf = __webpack_require__("./src/libs/iab-tcf/index.ts");
2308
+ var consent_types = __webpack_require__("./src/types/consent-types.ts");
2309
2309
  function createDefaultConsentState() {
2310
2310
  return {
2311
2311
  experience: false,
@@ -2782,7 +2782,9 @@ async function saveConsents({ manager, type, get, set, options }) {
2782
2782
  ...consents
2783
2783
  };
2784
2784
  const previousConsentInfo = consentInfo;
2785
- const newConsents = selectedConsents ?? consents ?? {};
2785
+ const newConsents = {
2786
+ ...selectedConsents ?? consents ?? {}
2787
+ };
2786
2788
  const givenAt = Date.now();
2787
2789
  if ('all' === type) {
2788
2790
  for (const consent of consentTypes)if (consentCategories.includes(consent.name)) newConsents[consent.name] = true;
@@ -3005,9 +3007,9 @@ function calculateAutoGrantedConsents(shouldAutoGrant, hasGpcSignal) {
3005
3007
  measurement: !hasGpcSignal
3006
3008
  };
3007
3009
  }
3008
- function computeAutoGrantInfo(jurisdiction, iabEnabled, consentInfo) {
3010
+ function computeAutoGrantInfo(jurisdiction, iabEnabled, consentInfo, gpcOverride) {
3009
3011
  const consentModel = determineModel(jurisdiction, iabEnabled);
3010
- const hasGpcSignal = hasGlobalPrivacyControlSignal();
3012
+ const hasGpcSignal = void 0 !== gpcOverride ? gpcOverride : hasGlobalPrivacyControlSignal();
3011
3013
  const shouldAutoGrantConsents = (null === consentModel || 'opt-out' === consentModel) && null === consentInfo;
3012
3014
  const autoGrantedConsents = calculateAutoGrantedConsents(shouldAutoGrantConsents, hasGpcSignal);
3013
3015
  return {
@@ -3019,7 +3021,7 @@ function buildStoreUpdate(data, config, hasLocalStorageAccess, effectiveIABEnabl
3019
3021
  const { get, initialTranslationConfig } = config;
3020
3022
  const { consentInfo } = get();
3021
3023
  const { translations, location } = data;
3022
- const { consentModel, autoGrantedConsents } = computeAutoGrantInfo(data.jurisdiction ?? null, effectiveIABEnabled, consentInfo);
3024
+ const { consentModel, autoGrantedConsents } = computeAutoGrantInfo(data.jurisdiction ?? null, effectiveIABEnabled, consentInfo, config.get().overrides?.gpc);
3023
3025
  const update = {
3024
3026
  model: consentModel,
3025
3027
  isLoadingConsentInfo: false,
@@ -3068,7 +3070,7 @@ function updateStore(data, config, hasLocalStorageAccess, prefetchedGVL) {
3068
3070
  const serverDisabledGVL = iab?.config.enabled && !prefetchedGVL;
3069
3071
  const effectiveIABEnabled = iab?.config.enabled && !serverDisabledGVL;
3070
3072
  if (serverDisabledGVL) console.warn('IAB mode disabled: Server returned 200 without GVL. Client IAB settings overridden.');
3071
- const { consentModel, autoGrantedConsents } = computeAutoGrantInfo(data.jurisdiction ?? null, effectiveIABEnabled, consentInfo);
3073
+ const { consentModel, autoGrantedConsents } = computeAutoGrantInfo(data.jurisdiction ?? null, effectiveIABEnabled, consentInfo, get().overrides?.gpc);
3072
3074
  const storeUpdate = buildStoreUpdate(data, config, hasLocalStorageAccess, effectiveIABEnabled);
3073
3075
  if (serverDisabledGVL && iab) storeUpdate.iab = {
3074
3076
  ...iab,
@@ -3796,4 +3798,4 @@ var __webpack_exports__prepareTranslationConfig = translations_.prepareTranslati
3796
3798
  var __webpack_exports__saveConsentToStorage = cookie._y;
3797
3799
  var __webpack_exports__setCookie = cookie.TV;
3798
3800
  var __webpack_exports__setMockGVL = iab_tcf.wL;
3799
- export { API_ENDPOINTS, C15tClient, CustomClient, OfflineClient, clearClientRegistry, clearConsentRuntimeCache, configureConsentManager, createConsentManagerStore, createIframeBlocker, getLoadedScriptIds, getOrCreateConsentRuntime, isScriptLoaded, loadScripts, unloadScripts, core_updateScripts as updateScripts, __webpack_exports__allConsentNames as allConsentNames, __webpack_exports__clearGVLCache as clearGVLCache, __webpack_exports__consentTypes as consentTypes, __webpack_exports__deepMergeTranslations as deepMergeTranslations, __webpack_exports__defaultTranslationConfig as defaultTranslationConfig, __webpack_exports__deleteConsentFromStorage as deleteConsentFromStorage, __webpack_exports__deleteCookie as deleteCookie, __webpack_exports__detectBrowserLanguage as detectBrowserLanguage, __webpack_exports__fetchGVL as fetchGVL, __webpack_exports__generateSubjectId as generateSubjectId, __webpack_exports__getCachedGVL as getCachedGVL, __webpack_exports__getConsentFromStorage as getConsentFromStorage, __webpack_exports__getCookie as getCookie, __webpack_exports__getRootDomain as getRootDomain, __webpack_exports__isValidSubjectId as isValidSubjectId, __webpack_exports__mergeTranslationConfigs as mergeTranslationConfigs, __webpack_exports__prepareTranslationConfig as prepareTranslationConfig, __webpack_exports__saveConsentToStorage as saveConsentToStorage, __webpack_exports__setCookie as setCookie, __webpack_exports__setMockGVL as setMockGVL };
3801
+ export { API_ENDPOINTS, C15tClient, CustomClient, OfflineClient, clearClientRegistry, clearConsentRuntimeCache, configureConsentManager, createConsentManagerStore, createIframeBlocker, getLoadedScriptIds, getOrCreateConsentRuntime, has, isScriptLoaded, loadScripts, unloadScripts, core_updateScripts as updateScripts, __webpack_exports__allConsentNames as allConsentNames, __webpack_exports__clearGVLCache as clearGVLCache, __webpack_exports__consentTypes as consentTypes, __webpack_exports__deepMergeTranslations as deepMergeTranslations, __webpack_exports__defaultTranslationConfig as defaultTranslationConfig, __webpack_exports__deleteConsentFromStorage as deleteConsentFromStorage, __webpack_exports__deleteCookie as deleteCookie, __webpack_exports__detectBrowserLanguage as detectBrowserLanguage, __webpack_exports__fetchGVL as fetchGVL, __webpack_exports__generateSubjectId as generateSubjectId, __webpack_exports__getCachedGVL as getCachedGVL, __webpack_exports__getConsentFromStorage as getConsentFromStorage, __webpack_exports__getCookie as getCookie, __webpack_exports__getRootDomain as getRootDomain, __webpack_exports__isValidSubjectId as isValidSubjectId, __webpack_exports__mergeTranslationConfigs as mergeTranslationConfigs, __webpack_exports__prepareTranslationConfig as prepareTranslationConfig, __webpack_exports__saveConsentToStorage as saveConsentToStorage, __webpack_exports__setCookie as setCookie, __webpack_exports__setMockGVL as setMockGVL };
@@ -10,5 +10,5 @@
10
10
  */
11
11
  export declare const CMP_ID = 0;
12
12
  /** CMP version, aligned with package version. */
13
- export declare const CMP_VERSION = "2.0.0-rc.2";
13
+ export declare const CMP_VERSION = "2.0.0-rc.3";
14
14
  //# sourceMappingURL=cmp-defaults.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"store-updater.d.ts","sourceRoot":"","sources":["../../../src/libs/init-consent-manager/store-updater.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAI5D,OAAO,KAAK,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAkK/E;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,WAAW,CAC1B,IAAI,EAAE,qBAAqB,EAC3B,MAAM,EAAE,wBAAwB,EAChC,qBAAqB,EAAE,OAAO,EAC9B,aAAa,CAAC,EAAE,gBAAgB,GAAG,IAAI,GACrC,IAAI,CAuFN"}
1
+ {"version":3,"file":"store-updater.d.ts","sourceRoot":"","sources":["../../../src/libs/init-consent-manager/store-updater.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAI5D,OAAO,KAAK,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAsK/E;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,WAAW,CAC1B,IAAI,EAAE,qBAAqB,EAC3B,MAAM,EAAE,wBAAwB,EAChC,qBAAqB,EAAE,OAAO,EAC9B,aAAa,C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ACH,GAAG,EACH,OAAO,GACP,EAAE,iBAAiB,iBA4JnB"}
@@ -66,5 +66,12 @@ export type Overrides = {
66
66
  * @example 'de-DE'
67
67
  */
68
68
  language?: string;
69
+ /**
70
+ * Override the Global Privacy Control (GPC) signal.
71
+ * When `true`, simulates GPC being active (opt-out of marketing/measurement).
72
+ * When `false`, suppresses the real browser GPC signal.
73
+ * When `undefined`, falls back to the browser's `navigator.globalPrivacyControl`.
74
+ */
75
+ gpc?: boolean;
69
76
  };
70
77
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAEvD,YAAY,EACX,qBAAqB,EACrB,YAAY,EACZ,YAAY,EACZ,cAAc,GACd,MAAM,cAAc,CAAC;AACtB;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,EACN,KAAK,eAAe,EACpB,eAAe,EACf,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,YAAY,GACZ,MAAM,iBAAiB,CAAC;AAEzB,YAAY,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEnC;;;;;;;;;;;GAWG;AAEH,YAAY,EACX,kBAAkB,EAClB,gCAAgC,EAChC,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,iBAAiB,EACjB,YAAY,GACZ,MAAM,oBAAoB,CAAC;AAE5B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AAEjC,MAAM,MAAM,SAAS,GAAG;IACvB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAEvD,YAAY,EACX,qBAAqB,EACrB,YAAY,EACZ,YAAY,EACZ,cAAc,GACd,MAAM,cAAc,CAAC;AACtB;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,EACN,KAAK,eAAe,EACpB,eAAe,EACf,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,YAAY,GACZ,MAAM,iBAAiB,CAAC;AAEzB,YAAY,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEnC;;;;;;;;;;;GAWG;AAEH,YAAY,EACX,kBAAkB,EAClB,gCAAgC,EAChC,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,iBAAiB,EACjB,YAAY,GACZ,MAAM,oBAAoB,CAAC;AAE5B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AAEjC,MAAM,MAAM,SAAS,GAAG;IACvB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;CACd,CAAC"}
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const version = "2.0.0-rc.2";
1
+ export declare const version = "2.0.0-rc.3";
2
2
  //# sourceMappingURL=version.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c15t",
3
- "version": "2.0.0-rc.2",
3
+ "version": "2.0.0-rc.3",
4
4
  "description": "Developer-first CMP for JavaScript: cookie banner, consent manager, preferences centre. GDPR ready with minimal setup and rich customization",
5
5
  "keywords": [
6
6
  "nextjs",
@@ -55,7 +55,7 @@
55
55
  "not op_mini all"
56
56
  ],
57
57
  "dependencies": {
58
- "@c15t/backend": "2.0.0-rc.2",
58
+ "@c15t/backend": "2.0.0-rc.3",
59
59
  "@c15t/schema": "2.0.0-rc.2",
60
60
  "@c15t/translations": "2.0.0-rc.1",
61
61
  "@iabtechlabtcf/core": "^1.5.20",