@stonedogcode/style 0.20.2 → 0.20.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": "@stonedogcode/style",
3
- "version": "0.20.2",
3
+ "version": "0.20.3",
4
4
  "description": "A Panda CSS design system: a themeable Panda preset plus the React components built on it.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "StoneDogCode L.L.C.",
@@ -49,6 +49,8 @@
49
49
  "//publish:stonedog-style": "Publish to npm, end to end. Run from a terminal, interactively — npm prompts for the 2FA one-time password and the login flow needs a browser. It refuses a checkout that is detached, dirty, or behind origin/main: a submodule sits detached at the consumer's gitlink by default, and publishing from one commit behind ships a tarball missing the very thing you are publishing for while looking like a success (it did, on 2026-08-04, without TitleLogo.tsx). Runs the gate, prints the tarball listing, then proves the result by installing from the registry into a temp directory.",
50
50
  "publish:stonedog-style": "bash scripts/publish-package.sh",
51
51
  "publishnpm": "npm run publish:stonedog-style",
52
+ "//release": "One memorable command per repo. It cannot be called `publish`: that is a reserved npm lifecycle name, so `npm publish` inside scripts/publish-package.sh would fire it and run the whole gate and publish a second time, hitting the already-published guard and reporting a successful release as a failure.",
53
+ "release": "npm run publish:stonedog-style",
52
54
  "version:bump:patch": "npm version patch --no-git-tag-version",
53
55
  "version:bump:minor": "npm version minor --no-git-tag-version",
54
56
  "audit": "npm audit --audit-level=moderate"
@@ -1,3 +1,30 @@
1
+ "use client";
2
+
3
+ /**
4
+ * `"use client"`, and it is load-bearing.
5
+ *
6
+ * This component calls `useFontSizeProfile()` (a client hook) during its
7
+ * render. Without the directive above, the module is a Server Component in a
8
+ * consumer's App Router tree, the hook is invoked on the server, and React
9
+ * throws:
10
+ *
11
+ * Attempted to call useFontSizeProfile() from the server but
12
+ * useFontSizeProfile is on the client.
13
+ *
14
+ * Next serves that as its blank "This page couldn't load" page with no detail
15
+ * anywhere in the browser, so a consumer sees a dead route and nothing naming
16
+ * this component. Every PRD and how-to page on stonedogcode.com was unreachable
17
+ * this way (NEH-1290).
18
+ *
19
+ * Every other component here that calls the hook already declared it — this was
20
+ * the only one that did not, which is why the failure looked like something
21
+ * specific to whichever page happened to render a heading on the server.
22
+ *
23
+ * `src/components/__tests__/client-directive.test.ts` keeps this honest. It has
24
+ * to be a source assertion: a jsdom render imports the module directly, so no
25
+ * RSC boundary exists and every test here passes with or without the directive.
26
+ */
27
+
1
28
  import React from "react";
2
29
  import StyledSeparator from "./StyledSeparator";
3
30
  import StyledText from "./StyledText";