@johnmorrisdotca/dougu-sports 0.32.0 → 0.33.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/CHANGELOG.md +10 -0
- package/README.md +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,16 @@ All notable changes to this project are written here. The format follows
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.33.0] - 2026-11-04
|
|
10
|
+
|
|
11
|
+
"Put it in your page" is the family's embed panel (MODULES-351). No change to the package's drawings.
|
|
12
|
+
|
|
13
|
+
- **The playground's "Put it in your page" and the builder's code section are kazoku-ui's `<kazoku-embed-panel>`** (kazoku-ui ^0.15.1). Nothing the old panels had is gone, and a test counts it: the five ways (the tag, an iframe, an ES module, an image address and the SVG; the builder also keeps the tag alone), Turning (Still, By hand, By itself), the size row (32, 64, 128, 256, the same as the playground's Size), Copy (now "Copy code"), Download the SVG, and the emblem drawn from the code beside it.
|
|
14
|
+
- **Added by the panel**: React, Vue, Angular and Svelte tabs, Open the embed page, Read the docs and the credit line. The address keeps the tab (`embed=`), now `html` and `image` for what was `element` and `img` (the old words still open the right tab).
|
|
15
|
+
- The picture beside the code turns by hand but never by itself, so it adds no frame loop; with "By itself" chosen, a note says the code turns it.
|
|
16
|
+
- `demo/embed-code.ts` writes the framework tabs from the tag `emblemEmbedCode` writes; `test/embed-code.test.ts` runs the module against a stand-in page, compares the SVG and the image with `renderEmblem`, and compiles the React, Vue, Angular and Svelte code.
|
|
17
|
+
- `scripts/check-standard.mjs` is kazoku-ui 0.15's (the `embed-panel` item); the demo moves to `@johnmorrisdotca/kazoku-ui` ^0.15.1.
|
|
18
|
+
|
|
9
19
|
## [0.32.0] - 2026-11-03
|
|
10
20
|
|
|
11
21
|
- Demo: the bar's Auto-turn speeds are the family's speed buttons, 0.5×, 1× and 2× (`<kazoku-speed-buttons>`, kazoku-ui 0.14, `^0.14.0`), in place of Slow, Medium and Fast; the choice is kept in the address as `pace` (the key was `speed`). The trophy case, whose four Auto-turn buttons had no speed to choose, has the same three buttons above it (`?casepace=2`), which set each emblem's speed with `update`. The package is unchanged. Browser tests hold the bar's three buttons and the speed each sets, and that 2× in the case for half the time is the same turn as 1×.
|
package/README.md
CHANGED
|
@@ -279,7 +279,7 @@ export function DouguEmblem({ emblem = "trophy:stanley-cup", size = 200 }: { emb
|
|
|
279
279
|
}
|
|
280
280
|
```
|
|
281
281
|
|
|
282
|
-
`emblemEmbedCode(ref, options)` writes all of these (the tag, an iframe, an ES module, an `<img>` with a data address, and the raw SVG) for the emblem you have set up; the demo's "Put it in your page" panel is that function with buttons. Every example in the guides is a file in `examples/` that `pnpm test:usage` builds, type-checks or runs against the package as npm packs it. The [documentation site](https://johnmorrisdotca.github.io/dougu-sports/docs/) has a page for every export, guides in English and in Japanese, and a Vite, webpack, TypeScript and Node example each.
|
|
282
|
+
`emblemEmbedCode(ref, options)` writes all of these (the tag, an iframe, an ES module, an `<img>` with a data address, and the raw SVG) for the emblem you have set up; the demo's "Put it in your page" panel (kazoku-ui's `<kazoku-embed-panel>`, on the playground and the builder) is that function with buttons: tabs for HTML, ES module, React, Vue, Angular, Svelte, iframe, image and SVG, the size, Turning, the code running beside the code, Copy, Open the embed page, Read the docs and Download the SVG. The four framework tabs put the same `<dougu-emblem>` tag in a component. Every example in the guides is a file in `examples/` that `pnpm test:usage` builds, type-checks or runs against the package as npm packs it. The [documentation site](https://johnmorrisdotca.github.io/dougu-sports/docs/) has a page for every export, guides in English and in Japanese, and a Vite, webpack, TypeScript and Node example each.
|
|
283
283
|
|
|
284
284
|
### In a page, as a string
|
|
285
285
|
|
|
@@ -744,7 +744,7 @@ Bug reports and ideas go in the [issues](https://github.com/johnmorrisdotca/doug
|
|
|
744
744
|
|
|
745
745
|
## Changes
|
|
746
746
|
|
|
747
|
-
See [CHANGELOG.md](./CHANGELOG.md), which has every release from 0.0.1 with its date and what it added. 0.32.0 puts the family's speed buttons (0.5×, 1×, 2×) on the playground's bar and over the trophy case, on kazoku-ui 0.14. 0.31.0 puts the playground's zoom on kazoku-ui 0.12's slider. 0.30.0 makes the three practice baseballs' slots fewer, larger and rounder, like the real ball, and takes kazoku-ui 0.11 in the playground. 0.29.0 adds `<dougu-emblem>` and the embed page, three practice baseballs with slots on both halves, and the documentation site. 0.28.0 adds the Jackie Robinson Rookie of the Year plaque (`trophy:jackie-robinson-award`) and the Halas, Messier, O'Ree and NBA postseason trophies (346 emblems).
|
|
747
|
+
See [CHANGELOG.md](./CHANGELOG.md), which has every release from 0.0.1 with its date and what it added. 0.33.0 puts the family's embed panel in the demo's "Put it in your page", with React, Vue, Angular and Svelte tabs, and keeps everything the old panel had. 0.32.0 puts the family's speed buttons (0.5×, 1×, 2×) on the playground's bar and over the trophy case, on kazoku-ui 0.14. 0.31.0 puts the playground's zoom on kazoku-ui 0.12's slider. 0.30.0 makes the three practice baseballs' slots fewer, larger and rounder, like the real ball, and takes kazoku-ui 0.11 in the playground. 0.29.0 adds `<dougu-emblem>` and the embed page, three practice baseballs with slots on both halves, and the documentation site. 0.28.0 adds the Jackie Robinson Rookie of the Year plaque (`trophy:jackie-robinson-award`) and the Halas, Messier, O'Ree and NBA postseason trophies (346 emblems).
|
|
748
748
|
|
|
749
749
|
## Credits
|
|
750
750
|
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@johnmorrisdotca/dougu-sports",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.0",
|
|
4
4
|
"description": "Dougu Sports 道具 — Sports emblems as SVG for JavaScript: trophies, medals, crests, sport icons, and the ball and gear of every sport, in metal, line or flat colour, with optional 3D turning and a tag for any page. Light and dark, accessible, tree-shakeable. Zero dependencies.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sports",
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
"@angular/platform-browser": "^22.2.4",
|
|
153
153
|
"@eslint/js": "^9.0.0",
|
|
154
154
|
"@johnmorrisdotca/hata": "1.5.0",
|
|
155
|
-
"@johnmorrisdotca/kazoku-ui": "^0.
|
|
155
|
+
"@johnmorrisdotca/kazoku-ui": "^0.15.1",
|
|
156
156
|
"@playwright/test": "^1.63.0",
|
|
157
157
|
"@sveltejs/vite-plugin-svelte": "^7.3.1",
|
|
158
158
|
"@types/node": "^24.0.0",
|