@uninspired/cookie-banner 0.0.14 → 0.0.15

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 (2) hide show
  1. package/README.md +5 -5
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -176,11 +176,9 @@ Add this to the end of the document body:
176
176
  id: "web-analytics",
177
177
  variant: "inline",
178
178
  type: "text/javascript",
179
- content: `!function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.async=!0,p.src=s.api_host.replace(".i.posthog.com","-assets.i.posthog.com")+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="init capture register register_once register_for_session unregister opt_out_capturing has_opted_out_capturing opt_in_capturing reset isFeatureEnabled getFeatureFlag getFeatureFlagPayload reloadFeatureFlags group identify setPersonProperties setPersonPropertiesForFlags resetPersonPropertiesForFlags setGroupPropertiesForFlags resetGroupPropertiesForFlags resetGroups onFeatureFlags addFeatureFlagsHandler onSessionId getSurveys getActiveMatchingSurveys renderSurvey canRenderSurvey getNextSurveyStep".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);
180
- posthog.init('phc_hHdoTl2tu6OCEGksFIpD3PYmE8jVIeVOkwe97ebNQAa', {
181
- api_host: 'https://eu.i.posthog.com',
182
- defaults: '2026-01-30'
183
- })`,
179
+ content: `console.log('analytics');`,
180
+ defer: true,
181
+ async: true,
184
182
  },
185
183
  ],
186
184
  },
@@ -197,6 +195,8 @@ Add this to the end of the document body:
197
195
  variant: "inline",
198
196
  type: "text/javascript",
199
197
  content: "console.log('marketing');",
198
+ defer: true,
199
+ async: true,
200
200
  },
201
201
  ],
202
202
  },
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": "Chris Kolb <chris@uninspired.studio>",
5
5
  "license": "MIT",
6
6
  "private": false,
7
- "version": "0.0.14",
7
+ "version": "0.0.15",
8
8
  "type": "module",
9
9
  "exports": {
10
10
  "./react": {