@hubpav/hwio-ui 0.10.7 → 0.10.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubpav/hwio-ui",
3
- "version": "0.10.7",
3
+ "version": "0.10.8",
4
4
  "description": "HARDWARIO web design system for Astro: DaisyUI 5 themes generated from the brand tokens, the Tailwind entry stylesheet and the HWio* components.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -32,9 +32,9 @@
32
32
  "test": "node --test \"test/**/*.test.mjs\""
33
33
  },
34
34
  "dependencies": {
35
- "@hubpav/hwio-brand": "0.10.7",
36
- "@hubpav/hwio-web-runtime": "0.10.7",
37
- "@hubpav/hwio-web-worker": "0.10.7",
35
+ "@hubpav/hwio-brand": "0.10.8",
36
+ "@hubpav/hwio-web-runtime": "0.10.8",
37
+ "@hubpav/hwio-web-worker": "0.10.8",
38
38
  "daisyui": "5.7.47"
39
39
  },
40
40
  "peerDependencies": {
@@ -2,8 +2,12 @@
2
2
  /**
3
3
  * Consent banner + settings dialog (Consent Mode v2, consent-gated GTM). Two variants:
4
4
  * `categories` (the HARDWARIO sites: four purposes, granular save) and `simple` (enerooo today:
5
- * accept / necessary only). Runtime: @hubpav/hwio-web-runtime/consent.
5
+ * accept / necessary only). Runtime: @hubpav/hwio-web-runtime/consent. The banner is `hidden` in the
6
+ * markup; the inline `consentReveal` bootstrap right after it shows it with the first paint when no
7
+ * choice is stored (the runtime decides everything else), so keep that script directly behind the
8
+ * banner's root. The banner follows the page's font gate like any other content.
6
9
  */
10
+ import { consentReveal } from '@hubpav/hwio-web-runtime/inline';
7
11
  interface CategoryCopy { title: string; description: string }
8
12
  interface Props {
9
13
  version: string;
@@ -20,7 +24,7 @@ interface Props {
20
24
  const { version, locale, gtmId = null, policyHref, variant = 'categories', labels } = Astro.props;
21
25
  const optional = ['preferences', 'statistics', 'marketing'] as const;
22
26
  ---
23
- <div data-hwio-consent data-version={version} data-gtm={gtmId ?? undefined} data-locale={locale} hidden role="region" aria-label={labels.title} class="fixed inset-x-0 bottom-0 z-[120] px-4 pb-4 sm:px-6 sm:pb-6" data-hwio-font-exempt>
27
+ <div data-hwio-consent data-version={version} data-gtm={gtmId ?? undefined} data-locale={locale} hidden role="region" aria-label={labels.title} class="fixed inset-x-0 bottom-0 z-[120] px-4 pb-4 sm:px-6 sm:pb-6">
24
28
  <div class="card card-border mx-auto max-w-5xl bg-base-100 shadow-2xl">
25
29
  <div class="card-body gap-4 md:flex-row md:items-center">
26
30
  <div class="min-w-0 flex-1">
@@ -38,6 +42,7 @@ const optional = ['preferences', 'statistics', 'marketing'] as const;
38
42
  </div>
39
43
  </div>
40
44
  </div>
45
+ <script is:inline set:html={consentReveal.code} />
41
46
 
42
47
  {variant === 'categories' && labels.categories && (
43
48
  <div data-hwio-consent-modal hidden class="fixed inset-0 z-[130] flex items-center justify-center bg-neutral/60 px-4 py-6" data-hwio-font-exempt>