@dskripchenko/embed 1.2.0 → 1.3.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 CHANGED
@@ -1,6 +1,21 @@
1
1
  # @dskripchenko/embed
2
2
 
3
- ## 1.2.0 — Unreleased
3
+ ## 1.3.0 — Unreleased
4
+
5
+ ### Added
6
+ - **Per-plugin bundles** — `dist/bundles/<plugin>.js` (`media`, `diagram`,
7
+ `openapi`, `flow`, `markdown`, `editor`, `board`): one plugin with Vue and
8
+ the kit, defining only its elements and block languages. Several on a page
9
+ share one `DskEmbed`: a bundle loaded later adds its plugins, and blocks of
10
+ its languages in markdown and the editor start to draw.
11
+ - `DskEmbed.extend(plugins)` and `DskEmbed.plugins()`.
12
+
13
+ ### Changed
14
+ - The bundles put each stylesheet in once by its own id (`tokens`,
15
+ `themes`, `kit`, `openapi`, `flow`, `editor`, `board`) instead of one
16
+ combined `kit` style.
17
+
18
+ ## 1.2.0 — 2026-10-29
4
19
 
5
20
  ### Added
6
21
  - **Full screen** for `<dsk-diagram>`, `<dsk-flow>`, `<dsk-board>` and
package/README.md CHANGED
@@ -75,6 +75,7 @@ light DOM (your CSS applies); diagrams, flows, boards and references open full s
75
75
  |---|---|---|
76
76
  | `dist/embed.js` — the loader | **9.1 KB** | Classic script; elements, API, import map. Everything else on demand. |
77
77
  | `dist/embed.bundle.js` — the fat bundle | **563 KB** (2.0 MB) | Everything inside; no import map, no further requests. |
78
+ | `dist/bundles/<plugin>.js` — one plugin each | **91–227 KB** | Vue and the kit inside; several on a page share one runtime. → [Getting started](docs/en/getting-started.md#per-plugin-bundles) |
78
79
 
79
80
  What the loader fetches on demand (gzip -9 of the published files; jsDelivr
80
81
  serves Brotli, a little smaller):