@dskripchenko/embed 1.1.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 +25 -0
- package/README.md +2 -1
- package/dist/bundles/board.js +9 -0
- package/dist/bundles/diagram.js +13 -0
- package/dist/bundles/editor.js +37 -0
- package/dist/bundles/flow.js +18 -0
- package/dist/bundles/markdown.js +18 -0
- package/dist/bundles/media.js +12 -0
- package/dist/bundles/openapi.js +201 -0
- package/dist/chunks/fullscreen-Bb8W3ga9.js +1 -0
- package/dist/embed.bundle.js +101 -102
- package/dist/embed.js +2 -2
- package/dist/plugins/board.js +1 -1
- package/dist/plugins/diagram.js +1 -1
- package/dist/plugins/flow.js +1 -1
- package/dist/plugins/openapi.js +1 -1
- package/package.json +9 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @dskripchenko/embed
|
|
2
2
|
|
|
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
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
- **Full screen** for `<dsk-diagram>`, `<dsk-flow>`, `<dsk-board>` and
|
|
22
|
+
`<dsk-openapi>`: a button on hover puts the element full screen (the
|
|
23
|
+
Fullscreen API, or the whole window where it is not available); Escape or
|
|
24
|
+
the button leaves. Flows and boards fit their content to the new size.
|
|
25
|
+
`fullscreen="false"` hides the button; `enterFullscreen()`,
|
|
26
|
+
`exitFullscreen()`, `fullscreen`, `dsk:fullscreen` `{ active }`.
|
|
27
|
+
|
|
3
28
|
## 1.1.0 — 2026-10-29
|
|
4
29
|
|
|
5
30
|
### Added
|
package/README.md
CHANGED
|
@@ -51,7 +51,7 @@ video; the markdown's diagram is live; the editor submits HTML with the form.
|
|
|
51
51
|
| `<dsk-editor>` | WYSIWYG with the same live blocks; a form field | [`@dskripchenko/wysiwyg`](https://github.com/dskripchenko/wysiwyg) |
|
|
52
52
|
|
|
53
53
|
All of them: attributes ↔ properties, `dsk:*` events, `ready`, `loading="lazy"`,
|
|
54
|
-
light DOM (your CSS applies). → [Elements](docs/en/elements.md)
|
|
54
|
+
light DOM (your CSS applies); diagrams, flows, boards and references open full screen. → [Elements](docs/en/elements.md)
|
|
55
55
|
|
|
56
56
|
## Working together
|
|
57
57
|
|
|
@@ -75,6 +75,7 @@ light DOM (your CSS applies). → [Elements](docs/en/elements.md)
|
|
|
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):
|