@vibes.diy/prompts 12.3.2 → 13.0.0

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/llms/access.md CHANGED
@@ -551,7 +551,7 @@ export default function App() {
551
551
  <button type="submit">Post</button>
552
552
  </form>
553
553
  ) : (
554
- viewer && <p style={{ color: "var(--muted, #888)" }}>{canPost.reason}</p>
554
+ viewer && <p style={{ color: "var(--text-secondary, #888)" }}>{canPost.reason}</p>
555
555
  )}
556
556
 
557
557
  {/* owner-only management — gated on can.* */}
@@ -208,7 +208,7 @@ Key points:
208
208
 
209
209
  **Anonymous & always-safe.** `ViewerTag` never throws regardless of login state. A no-prop `<ViewerTag />` would render a "Sign in" button for anonymous viewers, but you don't need to place one for sign-in — the logo's Vibes Switch already offers it.
210
210
 
211
- **Theming.** `ViewerTag` reads `--accent`, `--accent-text`, `--card-bg`, `--border`, `--text`, and `--muted` from the app's CSS variables with sensible fallbacks. If your app defines these on `:root` (which most generated themes do), `ViewerTag` inherits the theme automatically with no extra props.
211
+ **Theming.** `ViewerTag` reads the canonical palette variables — `--surface`, `--text-primary`, `--border`, and `--accent` (plus optional `--accent-text` to override the on-accent text color) — from the app's CSS with sensible fallbacks. If your app defines these on `:root` (which every generated theme does), `ViewerTag` inherits the theme automatically with no extra props. The one exception is the signed-out **Sign in** CTA, which deliberately stays the Vibes brand blue: it is a platform affordance matched to the Vibes Switch shown to the same visitor, so it is not theme-inherited.
212
212
 
213
213
  Pass `<ViewerTag userHandle={...} />` to render other people. The no-prop `<ViewerTag />` (current user) covers identity and sign-in too, but the logo's Vibes Switch already does that — reach for it only when you specifically want inline avatar self-edit for any signed-in member.
214
214
 
@@ -231,7 +231,7 @@ How it behaves:
231
231
  - **Raw entry always works.** Pressing Enter commits the sanitized typed text even when nothing matched, so users can reference someone brand-new.
232
232
  - `onChange` fires with the picked handle string (or `null` on clear). **Persist only the handle** on your docs — render it later with `<ViewerTag userHandle={...} />`, exactly like `authorHandle`.
233
233
  - Works uncontrolled too (omit `value`) when you only need the `onChange` events.
234
- - Theming matches `ViewerTag` — it reads the same CSS variables (`--accent`, `--card-bg`, `--border`, `--text`, `--muted`).
234
+ - Theming matches `ViewerTag` — it reads the same canonical CSS variables (`--surface`, `--text-primary`, `--text-secondary`, `--border`, `--accent`).
235
235
 
236
236
  ```jsx
237
237
  // Typical write pattern: stash the picked handle on a doc.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibes.diy/prompts",
3
- "version": "12.3.2",
3
+ "version": "13.0.0",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "description": "",
@@ -24,9 +24,9 @@
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
26
  "@adviser/cement": "~0.5.34",
27
- "@vibes.diy/call-ai-v2": "^12.3.2",
28
- "@vibes.diy/identity": "^12.3.2",
29
- "@vibes.diy/use-vibes-types": "^12.3.2",
27
+ "@vibes.diy/call-ai-v2": "^13.0.0",
28
+ "@vibes.diy/identity": "^13.0.0",
29
+ "@vibes.diy/use-vibes-types": "^13.0.0",
30
30
  "arktype": "~2.2.3",
31
31
  "json-schema-faker": "~0.6.3"
32
32
  },