@nextblock-cms/db 0.19.2 → 0.19.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextblock-cms/db",
3
- "version": "0.19.2",
3
+ "version": "0.19.3",
4
4
  "main": "index.cjs.js",
5
5
  "module": "index.es.js",
6
6
  "types": "index.d.ts",
@@ -21,6 +21,9 @@
21
21
  "require": "./secrets.cjs.js",
22
22
  "default": "./secrets.es.js"
23
23
  },
24
+ "./types": {
25
+ "types": "./lib/supabase/types.d.ts"
26
+ },
24
27
  "./package.json": "./package.json"
25
28
  },
26
29
  "files": [
@@ -0,0 +1,32 @@
1
+ -- Theme tokens that failed WCAG AA on the seeded palettes (measured against the seeded pairs):
2
+ -- dark ring 224 76% 48% -> 213 94% 68% focus ring 2.7:1 on a card -> 7.1:1 (8.1:1 on the page)
3
+ -- vibrant primary 320 100% 55% -> 320 100% 42% white button text 3.5:1 -> 4.9:1
4
+ -- vibrant destructive 0 100% 50% -> 0 100% 42% white button text 4.0:1 -> 5.4:1
5
+ -- light destructive 0 84.2% 60.2% -> 0 72.2% 50.6% light button text 3.6:1 -> 4.6:1
6
+ -- Each update is guarded by the seeded value, so a theme an operator has already recoloured in
7
+ -- the CMS theme editor is left exactly as they set it. libs/ui/src/styles/theme.css carries the
8
+ -- same values for standalone consumers of the UI package.
9
+
10
+ UPDATE public.site_themes
11
+ SET tokens = tokens || '{"ring": "213 94% 68%"}'::jsonb,
12
+ updated_at = now()
13
+ WHERE slug = 'dark'
14
+ AND tokens->>'ring' = '224 76% 48%';
15
+
16
+ UPDATE public.site_themes
17
+ SET tokens = tokens || '{"primary": "320 100% 42%"}'::jsonb,
18
+ updated_at = now()
19
+ WHERE slug = 'vibrant'
20
+ AND tokens->>'primary' = '320 100% 55%';
21
+
22
+ UPDATE public.site_themes
23
+ SET tokens = tokens || '{"destructive": "0 100% 42%"}'::jsonb,
24
+ updated_at = now()
25
+ WHERE slug = 'vibrant'
26
+ AND tokens->>'destructive' = '0 100% 50%';
27
+
28
+ UPDATE public.site_themes
29
+ SET tokens = tokens || '{"destructive": "0 72.2% 50.6%"}'::jsonb,
30
+ updated_at = now()
31
+ WHERE slug = 'light'
32
+ AND tokens->>'destructive' = '0 84.2% 60.2%';