@expo/styleguide-cookie-consent 0.1.8 → 0.1.9

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/dist/index.d.ts CHANGED
@@ -3,4 +3,3 @@ export { PrivacyChoicesButton } from './src/PrivacyChoicesButton';
3
3
  export { isConsentEnabled, shouldSkipBannerForAuth, getAnalyticsConsentStatus, getMarketingConsentStatus, isAnalyticsConsented, isMarketingConsented, enqueueAnalyticsEvent, enqueueMarketingEvent, setAnalyticsReplayFn, setMarketingReplayFn, setAnalyticsConsent, setMarketingConsent, resetConsentState, MAX_QUEUE_SIZE, } from './src/consent';
4
4
  export { useConsentManager } from '@c15t/react/hooks';
5
5
  export type { ConsentStatus, QueuedEvent, CookieConsentProviderProps } from './src/types';
6
- export type { GoogleTagManagerOptions } from '@c15t/scripts/google-tag-manager';
@@ -0,0 +1 @@
1
+ export {};
@@ -1,3 +1,9 @@
1
+ declare global {
2
+ interface Window {
3
+ dataLayer: unknown[];
4
+ gtag: (...args: unknown[]) => void;
5
+ }
6
+ }
1
7
  export type ConsentStatus = 'pending' | 'granted' | 'denied';
2
8
  export type QueuedEvent = {
3
9
  type: 'track' | 'identify' | 'group' | 'gtag' | 'adwords';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expo/styleguide-cookie-consent",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Cookie consent provider for Expo websites with c15t integration.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -21,7 +21,8 @@
21
21
  "bundle": "rollup --config",
22
22
  "types": "yarn run -T tsc",
23
23
  "build": "run-s clean bundle types",
24
- "dev": "rollup --config --watch"
24
+ "dev": "rollup --config --watch",
25
+ "test": "vitest run"
25
26
  },
26
27
  "dependencies": {
27
28
  "@radix-ui/react-accordion": "^1.2.4",
@@ -39,10 +40,11 @@
39
40
  "@rollup/plugin-alias": "^6.0.0",
40
41
  "npm-run-all": "*",
41
42
  "rimraf": "*",
42
- "rollup": "*"
43
+ "rollup": "*",
44
+ "vitest": "*"
43
45
  },
44
46
  "eslintConfig": {
45
47
  "extends": "universe/web"
46
48
  },
47
- "gitHead": "d3454b0cc17232c5290f6f83ccf1f0f9f9499555"
49
+ "gitHead": "6e146e8e3c909c824455c76ad6e17061635dcadd"
48
50
  }