@1337exp/taoux 0.18.0 → 0.18.1
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 +7 -1
- package/package.json +1 -1
- package/skills/taoux/SKILL.md +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.18.1
|
|
4
|
+
|
|
5
|
+
Nothing to migrate: the skill and the tests only.
|
|
6
|
+
|
|
7
|
+
- **The skill binds `select` of a menu by `item.id`.** Its example was `@select="commands.run"`; TaoUI 6 hands out the item, so `commands.run(item)` found no command. `curveops` may be imported by `curveeditor` only (a test of the tiers), and the test that keeps it free of Vue sees a bare `import 'vue'` and `import()` too.
|
|
8
|
+
|
|
3
9
|
## 0.18.0
|
|
4
10
|
|
|
5
|
-
**It needs TaoUI 6** (`@1337exp/taoui` `^6.0.0` as the optional peer, Vue `^3.5.0`): `TaoxCurveField` gives `TaoSelect` its `items` of `{ id, label }`. Nothing else to migrate: new modules and members
|
|
11
|
+
**It needs TaoUI 6** (`@1337exp/taoui` `^6.0.0` as the optional peer, Vue `^3.5.0`): `TaoxCurveField` gives `TaoSelect` its `items` of `{ id, label }`. Nothing else to migrate: new modules and members (`commands` gains `Command.repeat`, an optional field). In Vitest, let Vite process the kit: `test.server.deps.inline: ['@1337exp/taoui']` (its CSS is imported by the components).
|
|
6
12
|
|
|
7
13
|
- **`curveops`: the sampling of a curve with no Vue.** `sampleCurve`, `sampleSegment`, `addPoint`, `movePoint`, `removePoint`, `setEase`, `valueBounds` were exported with the editor component, so a game that only plays a curve pulled Vue in. `@1337exp/taoux/curveops` is the same code on its own (the editor re-exports it, nothing changes there). `tests/curveops.test.ts` fails if it ever imports Vue.
|
|
8
14
|
- **`Command.repeat`: a held key, per command.** `repeat: false` runs a command once per press (a save, a toggle); the default is as before, it runs again while the key is held (a nudge, an undo). The held key is swallowed either way, so the browser's own dialog does not open. `bind`'s `repeat: false` still turns the repeat off for everything.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1337exp/taoux",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.1",
|
|
4
4
|
"description": "Interaction and behavior building blocks for Vue apps: curve and gradient editors, canvas, undo/redo, playback. Import only what you need, bring your own design.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vue",
|
package/skills/taoux/SKILL.md
CHANGED
|
@@ -84,7 +84,7 @@ onBeforeUnmount(() => unbind());
|
|
|
84
84
|
```
|
|
85
85
|
|
|
86
86
|
```vue
|
|
87
|
-
<TaoMenubar :items="menu" @select="commands.run" />
|
|
87
|
+
<TaoMenubar :items="menu" @select="(item) => commands.run(item.id)" />
|
|
88
88
|
```
|
|
89
89
|
|
|
90
90
|
- `Mod` is ⌘ on Apple and Ctrl elsewhere; the menu shows the platform's label by itself.
|