@c15t/react 3.1.0-canary.0 → 3.2.0-canary.0

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 (129) hide show
  1. package/AGENTS.md +11 -4
  2. package/README.md +4 -4
  3. package/dist/component-hooks/use-consent-gate.js +2 -0
  4. package/dist/component-hooks/use-consent-labels.js +2 -0
  5. package/dist/component-hooks/use-consent-text-direction.js +2 -0
  6. package/dist/component-hooks/use-vendors-listed-under.js +2 -0
  7. package/dist/components/consent-gate/atoms.js +1 -1
  8. package/dist/components/consent-gate/consent-gate.js +1 -1
  9. package/dist/components/iab-prompt/atoms/root.js +1 -1
  10. package/dist/components/panel-trigger/atoms/toolbar.js +1 -1
  11. package/dist/components/preferences/atoms/button.js +1 -1
  12. package/dist/components/preferences/atoms/vendor-list.js +1 -1
  13. package/dist/components/prompt/atoms/root.js +1 -1
  14. package/dist/components/prompt/components.js +1 -1
  15. package/dist/components/prompt/policy-actions.js +1 -1
  16. package/dist/components/prompt/prompt.js +1 -1
  17. package/dist/components/prompt/surface-context.js +1 -1
  18. package/dist/components/prompt/use-banner-copy.js +1 -1
  19. package/dist/components/shared/streamed-surface.js +1 -1
  20. package/dist/event-dispatcher.js +2 -0
  21. package/dist/headless.js +1 -1
  22. package/dist/index-parts/event-dispatcher.js +1 -0
  23. package/dist/index-parts/offline.js +1 -1
  24. package/dist/index.js +1 -1
  25. package/dist/modes.js +1 -1
  26. package/dist/provider.js +1 -1
  27. package/dist/transports/offline.js +1 -1
  28. package/dist/version.js +1 -1
  29. package/dist-types/component-hooks/use-consent-gate.d.ts +102 -0
  30. package/dist-types/component-hooks/use-consent-labels.d.ts +32 -0
  31. package/dist-types/component-hooks/use-consent-text-direction.d.ts +22 -0
  32. package/dist-types/component-hooks/use-vendors-listed-under.d.ts +30 -0
  33. package/dist-types/components/prompt/atoms/root.d.ts +3 -3
  34. package/dist-types/components/prompt/prompt.d.ts +4 -3
  35. package/dist-types/components/prompt/surface-context.d.ts +1 -14
  36. package/dist-types/components/prompt/use-banner-copy.d.ts +8 -3
  37. package/dist-types/components/shared/streamed-surface.d.ts +47 -10
  38. package/dist-types/context.d.ts +3 -1
  39. package/dist-types/event-dispatcher.d.ts +24 -0
  40. package/dist-types/headless.d.ts +10 -1
  41. package/dist-types/hooks/use-iab-policy-guard.d.ts +17 -1
  42. package/dist-types/hooks/use-scroll-lock.d.ts +16 -2
  43. package/dist-types/index-parts/event-dispatcher.d.ts +7 -0
  44. package/dist-types/index-parts/offline.d.ts +1 -1
  45. package/dist-types/index.d.ts +2 -0
  46. package/dist-types/modes.d.ts +1 -1
  47. package/dist-types/module-hooks/script-loader.d.ts +9 -0
  48. package/dist-types/provider.d.ts +3 -3
  49. package/dist-types/transports/offline.d.ts +2 -2
  50. package/dist-types/version.d.ts +1 -1
  51. package/docs/README.md +11 -4
  52. package/docs/concepts/choose-your-setup.md +9 -9
  53. package/docs/concepts/consent-state.md +93 -9
  54. package/docs/concepts/data-fetching.md +30 -23
  55. package/docs/concepts/modes.md +85 -35
  56. package/docs/customization/recipes.md +4 -4
  57. package/docs/customization/stylesheets.md +3 -3
  58. package/docs/customization/tailwind.md +17 -34
  59. package/docs/customization/translations.md +18 -12
  60. package/docs/frameworks/react/clear-on-revocation.md +3 -2
  61. package/docs/frameworks/react/components/consent-banner.md +3 -3
  62. package/docs/frameworks/react/components/consent-provider.md +29 -29
  63. package/docs/frameworks/react/gpp.md +1 -1
  64. package/docs/frameworks/react/headless.md +146 -19
  65. package/docs/frameworks/react/iab.md +8 -1
  66. package/docs/frameworks/react/quickstart.md +1 -1
  67. package/docs/frameworks/react/rendering.md +1 -1
  68. package/docs/frameworks/react/scripts.md +44 -0
  69. package/docs/frameworks/react/translations.md +9 -9
  70. package/docs/frameworks/react/troubleshooting.md +1 -1
  71. package/docs/frameworks/react/upgrade-v3.md +39 -32
  72. package/docs/frameworks/react/vendor-consent.md +5 -0
  73. package/docs/guides/banner-experiments.md +3 -3
  74. package/docs/guides/troubleshooting.md +3 -2
  75. package/docs/integrations/adobe-analytics.md +2 -2
  76. package/docs/integrations/ahrefs-analytics.md +2 -2
  77. package/docs/integrations/amplitude.md +2 -2
  78. package/docs/integrations/clay.md +305 -0
  79. package/docs/integrations/clearbit.md +2 -2
  80. package/docs/integrations/cloudflare-web-analytics.md +2 -2
  81. package/docs/integrations/cloudflare-zaraz.md +2 -2
  82. package/docs/integrations/crisp.md +2 -2
  83. package/docs/integrations/databuddy.md +2 -2
  84. package/docs/integrations/fathom-analytics.md +2 -2
  85. package/docs/integrations/front-chat.md +2 -2
  86. package/docs/integrations/google-maps.md +2 -2
  87. package/docs/integrations/google-tag-manager.md +59 -2
  88. package/docs/integrations/google-tag.md +2 -2
  89. package/docs/integrations/heap.md +2 -2
  90. package/docs/integrations/hightouch.md +2 -2
  91. package/docs/integrations/hotjar.md +40 -26
  92. package/docs/integrations/intercom.md +2 -2
  93. package/docs/integrations/klaviyo.md +2 -2
  94. package/docs/integrations/linkedin-insights.md +2 -2
  95. package/docs/integrations/logrocket.md +2 -2
  96. package/docs/integrations/matomo-analytics.md +2 -2
  97. package/docs/integrations/meta-pixel.md +2 -2
  98. package/docs/integrations/microsoft-clarity.md +2 -2
  99. package/docs/integrations/microsoft-uet.md +2 -2
  100. package/docs/integrations/mixpanel-analytics.md +2 -2
  101. package/docs/integrations/one-dollar-stats.md +2 -2
  102. package/docs/integrations/openai-pixel.md +2 -2
  103. package/docs/integrations/other-ads-and-pixels.md +94 -0
  104. package/docs/integrations/other-analytics.md +108 -0
  105. package/docs/integrations/other-chat-and-support.md +112 -0
  106. package/docs/integrations/other-email-and-sms.md +156 -0
  107. package/docs/integrations/other-experience.md +222 -0
  108. package/docs/integrations/overview.md +102 -45
  109. package/docs/integrations/pinterest-tag.md +2 -2
  110. package/docs/integrations/pirsch.md +2 -2
  111. package/docs/integrations/plausible-analytics.md +2 -2
  112. package/docs/integrations/posthog.md +10 -2
  113. package/docs/integrations/promptwatch.md +2 -2
  114. package/docs/integrations/reddit-pixel.md +2 -2
  115. package/docs/integrations/rudderstack.md +2 -2
  116. package/docs/integrations/rybbit-analytics.md +2 -2
  117. package/docs/integrations/segment.md +2 -2
  118. package/docs/integrations/sentry.md +2 -2
  119. package/docs/integrations/shopify.md +323 -0
  120. package/docs/integrations/snapchat-pixel.md +2 -2
  121. package/docs/integrations/tiktok-pixel.md +2 -2
  122. package/docs/integrations/umami-analytics.md +2 -2
  123. package/docs/integrations/vercel-analytics.md +2 -2
  124. package/docs/integrations/vercel-speed-insights.md +7 -2
  125. package/docs/integrations/x-pixel.md +2 -2
  126. package/docs/integrations/youtube.md +2 -2
  127. package/package.json +12 -29
  128. package/dist/components/prompt/resolve-banner-primary-actions.js +0 -1
  129. package/dist-types/components/prompt/resolve-banner-primary-actions.d.ts +0 -14
package/package.json CHANGED
@@ -1,36 +1,19 @@
1
1
  {
2
2
  "name": "@c15t/react",
3
- "version": "3.1.0-canary.0",
4
- "description": "React cookie banner, consent manager, preference center, and headless CMP components with IAB TCF and Consent Mode support.",
3
+ "version": "3.2.0-canary.0",
4
+ "description": "React cookie consent banner and React consent dialog for c15t, plus a React cookie banner, preference center and headless hooks.",
5
5
  "keywords": [
6
- "ccpa",
7
6
  "cmp",
8
7
  "consent",
9
- "consent-banner",
10
- "consent-management",
11
- "consent-management-platform",
12
- "consent-manager-react",
13
- "consent-mode-v2",
8
+ "consent-manager",
14
9
  "cookie-banner",
15
10
  "cookie-consent",
16
11
  "gdpr",
17
- "google-consent-mode",
18
12
  "headless",
19
- "iab",
20
- "lgpd",
21
- "preference-center",
22
- "privacy",
13
+ "iab-tcf",
23
14
  "react",
24
- "react-cmp",
25
- "react-consent",
26
15
  "react-cookie-banner",
27
- "react-cookie-consent",
28
- "react-server-components",
29
- "rsc",
30
- "tcf",
31
- "tracking-consent",
32
- "typescript",
33
- "use-client"
16
+ "react-cookie-consent"
34
17
  ],
35
18
  "homepage": "https://c15t.com/docs/frameworks/react/quickstart",
36
19
  "bugs": {
@@ -264,16 +247,16 @@
264
247
  "test:watch": "bun prebuild && vitest"
265
248
  },
266
249
  "dependencies": {
267
- "@c15t/core": "3.1.0-canary.0",
268
- "@c15t/dev-tools": "3.1.0-canary.0",
269
- "@c15t/iab": "3.1.0-canary.0",
270
- "@c15t/schema": "3.1.0-canary.0",
271
- "@c15t/translations": "3.1.0-canary.0",
272
- "@c15t/ui": "3.0.1-canary.0",
250
+ "@c15t/core": "3.2.0-canary.0",
251
+ "@c15t/dev-tools": "3.2.0-canary.0",
252
+ "@c15t/iab": "3.2.0-canary.0",
253
+ "@c15t/schema": "3.1.1-canary.0",
254
+ "@c15t/translations": "3.2.0-canary.0",
255
+ "@c15t/ui": "3.0.2-canary.0",
273
256
  "@types/google.maps": "3.65.3"
274
257
  },
275
258
  "devDependencies": {
276
- "@c15t/backend": "3.1.0-canary.0",
259
+ "@c15t/backend": "3.2.0-canary.0",
277
260
  "@c15t/conformance": "0.0.1",
278
261
  "@c15t/typescript-config": "0.0.1",
279
262
  "@c15t/vitest-config": "1.0.0",
@@ -1 +0,0 @@
1
- let r=function(r,e){return 0===r.length&&1===e.length&&"dismiss"===e[0]?e:r};export{r as resolveBannerPrimaryActions};
@@ -1,14 +0,0 @@
1
- /**
2
- * Primary actions for the banner, with dismiss promoted on a bare notice.
3
- *
4
- * @remarks
5
- * The resolver's default primary is `customize`, which a notice never
6
- * offers, so a notice resolves with no primary action. When dismiss is the
7
- * only control on the surface it is the primary one.
8
- *
9
- * @param primaryActions - Primary actions from the resolved presentation.
10
- * @param orderedActions - Every action the surface renders, in order.
11
- * @returns The primary actions the banner should style.
12
- * @internal
13
- */
14
- export declare const resolveBannerPrimaryActions: <Action extends string>(primaryActions: readonly Action[], orderedActions: readonly Action[]) => readonly Action[];