@supersuit/artifacts 0.4.4 → 0.4.5

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/CHANGELOG.md CHANGED
@@ -3,6 +3,20 @@
3
3
  `@supersuit/artifacts`. One entry per version, newest first. Each entry says what changed, how a
4
4
  host can tell whether it is affected (DETECTOR), what a host does about it (REMEDY), and the tests.
5
5
 
6
+ ## 0.4.5 (2026-09-27)
7
+
8
+ **The bubble ground looks as it did in 0.4.2, and stays smooth.**
9
+
10
+ - The palette and layout changes of 0.4.3 and 0.4.4 are reverted: the six original pastels, the
11
+ original stacking and gradient. What stays is the performance fix, done differently: each bubble
12
+ carries its own `filter: blur(40px)` on its own layer (`will-change: transform`), so it is
13
+ rasterised once and slid, instead of one blur over the whole screen re-rasterised every frame.
14
+ The hard-light blend stays off; side by side the render is indistinguishable.
15
+ - **DETECTOR:** the ground shows saturated magenta, teal or pink bubbles (0.4.3/0.4.4).
16
+ - **REMEDY:** update the dependency.
17
+ - **Tests:** the blur sits on the bubble, never on a full-screen wrapper; no blend; one bubble per
18
+ default colour.
19
+
6
20
  ## 0.4.4 (2026-09-26)
7
21
 
8
22
  **The glow stays on the cool-to-magenta arc.**
@@ -1,7 +1,6 @@
1
1
  import type { Backdrop } from './pack.js';
2
- /** The Freedom Glow: blue light moving through the cool-to-magenta arc, one bubble per colour.
3
- * Never the warm half (no red, orange, yellow or green), so no frame can read as a rainbow.
4
- * Saturated rather than pastel; the veil is what keeps a light page reading as light. */
2
+ /** The Freedom Glow's colours (a blue core and the spectrum it separates into), mixed most of
3
+ * the way to cream so a light page still reads as light. */
5
4
  export declare const GLOW_PASTELS: string[];
6
5
  export declare function Bubbles({ backdrop }: {
7
6
  backdrop: Backdrop;
@@ -1,19 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- /** The Freedom Glow: blue light moving through the cool-to-magenta arc, one bubble per colour.
3
- * Never the warm half (no red, orange, yellow or green), so no frame can read as a rainbow.
4
- * Saturated rather than pastel; the veil is what keeps a light page reading as light. */
5
- export const GLOW_PASTELS = [
6
- '31,107,255', // brand blue
7
- '224,82,196', // magenta
8
- '25,181,201', // teal
9
- '156,92,240', // purple
10
- '255,111,174', // pink
11
- '34,195,230', // cyan
12
- '123,107,230', // violet
13
- '90,162,255', // sky
14
- '199,125,255', // lavender
15
- ];
16
- // [animation, duration s, transform-origin] per bubble, after animate-ui's six plus three more.
2
+ /** The Freedom Glow's colours (a blue core and the spectrum it separates into), mixed most of
3
+ * the way to cream so a light page still reads as light. */
4
+ export const GLOW_PASTELS = ['150,190,255', '215,185,240', '160,225,220', '250,195,180', '250,215,160', '190,210,255'];
5
+ // [animation, duration s, transform-origin] per bubble, after the original's six.
17
6
  const MOTION = [
18
7
  ['a-bubble-v', 30, 'center center'],
19
8
  ['a-bubble-c', 20, 'calc(50% - 400px) center'],
@@ -21,24 +10,17 @@ const MOTION = [
21
10
  ['a-bubble-h', 40, 'calc(50% - 200px) center'],
22
11
  ['a-bubble-c', 20, 'calc(50% - 800px) calc(50% + 200px)'],
23
12
  ['a-bubble-v', 35, 'calc(50% + 300px) calc(50% - 200px)'],
24
- ['a-bubble-h', 45, 'calc(50% + 200px) calc(50% + 300px)'],
25
- ['a-bubble-c', 30, 'calc(50% + 600px) calc(50% - 300px)'],
26
- ['a-bubble-v', 25, 'calc(50% - 300px) calc(50% + 400px)'],
27
- ];
28
- // [top %, left %] per bubble: spread over the page so neighbours overlap at their edges only.
29
- // Stacked in the middle, nine translucent hues average to grey.
30
- const HOME = [
31
- [-10, -15], [-15, 45], [15, 20], [30, -20], [35, 50], [55, 10], [65, 45], [80, -15], [85, 35],
32
13
  ];
33
- // Only `transform` animates, on its own layer, so the browser moves finished bitmaps and never
34
- // repaints. The first version put a 40px blur over the whole viewport and hard-light blended every
35
- // bubble, which re-rasterised the full screen each frame and stuttered on a phone; the radial
36
- // gradients already fade to nothing, so neither was buying softness.
14
+ // Each bubble is blurred on its OWN layer and only `transform` animates, so the browser rasterises
15
+ // it once and slides the bitmap. The first version blurred a full-screen parent and hard-light
16
+ // blended every bubble, which re-rasterised the whole viewport each frame and stuttered on a
17
+ // phone (2026-09-26). The colours and layout are unchanged from that version on purpose: an
18
+ // attempt to also widen the palette was reverted the same night ("really not a fan").
37
19
  const CSS = `
38
20
  @keyframes a-bubble-v{0%,100%{transform:translate3d(0,-50%,0)}50%{transform:translate3d(0,50%,0)}}
39
21
  @keyframes a-bubble-c{0%{transform:rotate(0deg)}50%{transform:rotate(180deg)}100%{transform:rotate(360deg)}}
40
22
  @keyframes a-bubble-h{0%,100%{transform:translate3d(-50%,-10%,0)}50%{transform:translate3d(50%,10%,0)}}
41
- [data-artifact-backdrop] .a-bubble{position:absolute;width:70%;height:60%;border-radius:9999px;will-change:transform;backface-visibility:hidden;animation-timing-function:ease-in-out;animation-iteration-count:infinite}
23
+ [data-artifact-backdrop] .a-bubble{position:absolute;width:80%;height:80%;top:10%;left:10%;border-radius:9999px;filter:blur(40px);will-change:transform;backface-visibility:hidden;animation-timing-function:ease;animation-iteration-count:infinite}
42
24
  @media (prefers-reduced-motion: reduce){[data-artifact-backdrop] .a-bubble{animation:none!important}}
43
25
  `;
44
26
  export function Bubbles({ backdrop }) {
@@ -47,13 +29,11 @@ export function Bubbles({ backdrop }) {
47
29
  return (_jsxs("div", { "data-artifact-backdrop": "bubbles", "aria-hidden": true, style: { position: 'fixed', inset: 0, zIndex: -1, overflow: 'hidden', background: 'var(--a-ground)', pointerEvents: 'none' }, children: [_jsx("style", { dangerouslySetInnerHTML: { __html: CSS } }), _jsx("div", { style: { position: 'absolute', inset: 0 }, children: colors.map((c, i) => {
48
30
  const [name, secs, origin] = MOTION[i % MOTION.length];
49
31
  return (_jsx("div", { className: "a-bubble", style: {
50
- background: `radial-gradient(closest-side, rgba(${c},0.9) 0%, rgba(${c},0.6) 35%, rgba(${c},0.2) 70%, rgba(${c},0) 100%)`,
32
+ background: `radial-gradient(circle at center, rgba(${c},0.8) 0, rgba(${c},0) 50%)`,
51
33
  animationName: name,
52
34
  animationDuration: `${secs}s`,
53
35
  animationDirection: i % 2 ? 'reverse' : 'normal',
54
36
  transformOrigin: origin,
55
- top: `${HOME[i % HOME.length][0]}%`,
56
- left: `${HOME[i % HOME.length][1]}%`,
57
37
  } }, i));
58
38
  }) }), _jsx("div", { style: { position: 'absolute', inset: 0, background: `color-mix(in srgb, var(--a-ground) ${veil}%, transparent)` } })] }));
59
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supersuit/artifacts",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
4
4
  "description": "Publish markdown as branded, read-aloud pages from a Next.js app: the artifacts store, the route factory, the read-along reader, brand packs, password and confidential pages, and share cards.",
5
5
  "license": "MIT",
6
6
  "type": "module",