@vibes.diy/prompts 14.3.268 → 14.3.269
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/keepsake.md +7 -4
- package/llms/web-music.md +14 -0
- package/package.json +5 -5
package/llms/keepsake.md
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
# Keepsake — the thing they print, share or hand out
|
|
2
2
|
|
|
3
|
+
**The first frame is the keepsake and the fields that edit it, together.**
|
|
4
|
+
Fields beside it on a wide screen, below it on a phone, each keystroke
|
|
5
|
+
redrawing it: the example's `studio` grid.
|
|
6
|
+
|
|
3
7
|
A keepsake is drawn with the reskin technique: one `data-reskin` wrapper re-scoping the look's
|
|
4
8
|
tokens and one `SKIN` string rendered as its first child. The reskin doc loads with this one.
|
|
5
9
|
|
|
6
10
|
Tickets, invitations, menus, posters, certificates, place cards, a recipe
|
|
7
11
|
card: the designed object is the point, and a page of `Card`s and `RowCard`s
|
|
8
12
|
around it makes it look like an admin screen. Build one framed artifact and
|
|
9
|
-
let the components edit it.
|
|
13
|
+
let the components edit it. An app that keeps several (an invitation per
|
|
14
|
+
party) lists them below the studio; picking one opens it there.
|
|
10
15
|
|
|
11
16
|
- **The keepsake is plain elements styled by the skin.** One `.keepsake`
|
|
12
17
|
element with a fixed shape (`aspect-ratio: 5 / 7` for a card, `2 / 1` for a
|
|
@@ -17,9 +22,7 @@ let the components edit it.
|
|
|
17
22
|
the hook classes belong to the screen, the keepsake has its own.
|
|
18
23
|
- **The components are the editing controls around it.** `Field` and `Input`
|
|
19
24
|
for the words, `Segmented` for a variant (theme, size), `Button` for Print
|
|
20
|
-
and Share.
|
|
21
|
-
keepsake comes first and the controls follow, so the first frame is the
|
|
22
|
-
thing itself, filled with a believable example rather than blanks.
|
|
25
|
+
and Share. The keepsake opens filled with a believable example.
|
|
23
26
|
- **Print shows only the keepsake.** A `@media print` block in the skin hides
|
|
24
27
|
everything else and sets `@page` to the keepsake's size; the Print button
|
|
25
28
|
calls `window.print()`.
|
package/llms/web-music.md
CHANGED
|
@@ -244,6 +244,20 @@ The shape that works (filenames illustrative — split by responsibility, matche
|
|
|
244
244
|
|
|
245
245
|
## 6) A complete drum machine — the shell every beat vibe starts from
|
|
246
246
|
|
|
247
|
+
**Every pad is an instrument from the first tap.** A tap that switches a step
|
|
248
|
+
on while the beat is stopped plays that voice at once, so the person hears
|
|
249
|
+
what they placed before they press Play. The step handler is this shape, and
|
|
250
|
+
the `App.jsx` below carries it as `toggleStep`:
|
|
251
|
+
|
|
252
|
+
```jsx
|
|
253
|
+
function toggleStep(track, i) {
|
|
254
|
+
const engine = drums(); // getDrums() on the tap itself: it unlocks sound on iOS
|
|
255
|
+
const on = !grid[track][i];
|
|
256
|
+
setGrid({ ...grid, [track]: grid[track].map((v, j) => (j === i ? (on ? 1 : 0) : v)) });
|
|
257
|
+
if (on && !playing) engine.hit(track); // hear the sound you just placed
|
|
258
|
+
}
|
|
259
|
+
```
|
|
260
|
+
|
|
247
261
|
Build the first version of any beat app (a drum machine, beat maker, step
|
|
248
262
|
sequencer or groovebox) from this section: the engine as written, and an
|
|
249
263
|
instrument face whose picks you choose (§ "Make it yours" below). The
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibes.diy/prompts",
|
|
3
|
-
"version": "14.3.
|
|
3
|
+
"version": "14.3.269",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"exports": {
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"license": "Apache-2.0",
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@adviser/cement": "~0.5.34",
|
|
42
|
-
"@vibes.diy/api-types": "14.3.
|
|
43
|
-
"@vibes.diy/call-ai-v2": "14.3.
|
|
44
|
-
"@vibes.diy/identity": "14.3.
|
|
45
|
-
"@vibes.diy/use-vibes-types": "14.3.
|
|
42
|
+
"@vibes.diy/api-types": "14.3.269",
|
|
43
|
+
"@vibes.diy/call-ai-v2": "14.3.269",
|
|
44
|
+
"@vibes.diy/identity": "14.3.269",
|
|
45
|
+
"@vibes.diy/use-vibes-types": "14.3.269",
|
|
46
46
|
"arktype": "~2.2.8",
|
|
47
47
|
"json-schema-faker": "~0.6.3"
|
|
48
48
|
},
|