@dskripchenko/embed 1.0.5 → 1.1.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,5 +1,29 @@
1
1
  # @dskripchenko/embed
2
2
 
3
+ ## 1.1.0 — 2026-10-29
4
+
5
+ ### Added
6
+ - **`<dsk-board>`** — an infinite whiteboard from
7
+ [`@dskripchenko/board`](https://github.com/dskripchenko/board): a
8
+ read-only view (`src`, the element's JSON, or the `board` property), an
9
+ editor (`editable`, with a form input through `name`), or a shared board
10
+ several people edit at once (`board-url`, the board's HTTP contract;
11
+ `provider` for any other transport) with cursors, names and the board
12
+ lock (`lockable`); `poll-interval` polls instead of long polling. Methods `fit`, `select`, `toPng`, `toSvg`, `undo`,
13
+ `redo`; events `dsk:change`, `dsk:select`, `dsk:load`.
14
+ - **```board blocks** in markdown, the editor and `renderBlocks`: a
15
+ read-only board from its JSON.
16
+
17
+ ## 1.0.6 — 2026-10-28
18
+
19
+ ### Added
20
+ - **`<dsk-openapi mode="editor">`** — the whole spec in openapi's visual
21
+ editor: a tree of the document (info, servers, tags, security, paths and
22
+ operations, schemas) and a form for the chosen part, with Source and
23
+ Preview views; `view` picks the one to open with. Edits come out as
24
+ `dsk:change` `{ source }` and through `value`. Block mode's constructor
25
+ builds compact requests only; this is the constructor for a whole document.
26
+
3
27
  ## 1.0.5 — 2026-10-28
4
28
 
5
29
  ### Fixed
package/README.md CHANGED
@@ -46,7 +46,8 @@ video; the markdown's diagram is live; the editor submits HTML with the form.
46
46
  | `<dsk-diagram>` | Mermaid → SVG, 11 diagram types, no Vue loaded | [`@dskripchenko/diagrams`](https://github.com/dskripchenko/diagrams) |
47
47
  | `<dsk-openapi>` | full reference (several specs), one operation, or a live API block | [`@dskripchenko/openapi`](https://github.com/dskripchenko/openapi) |
48
48
  | `<dsk-flow>` | process view with monitoring, toggles and sub-processes over plain HTTP — or the editor | [`@dskripchenko/flow`](https://github.com/dskripchenko/flow) |
49
- | `<dsk-markdown>` | markdown with live `mermaid` / `openapi` / `flow` / `video` / `audio` blocks | `@dskripchenko/ui` |
49
+ | `<dsk-board>` | infinite whiteboard: shapes, stickies, frames, connectors, pen — a view, an editor, or a shared board edited in real time | [`@dskripchenko/board`](https://github.com/dskripchenko/board) |
50
+ | `<dsk-markdown>` | markdown with live `mermaid` / `openapi` / `flow` / `board` / `video` / `audio` blocks | `@dskripchenko/ui` |
50
51
  | `<dsk-editor>` | WYSIWYG with the same live blocks; a form field | [`@dskripchenko/wysiwyg`](https://github.com/dskripchenko/wysiwyg) |
51
52
 
52
53
  All of them: attributes ↔ properties, `dsk:*` events, `ready`, `loading="lazy"`,
@@ -85,6 +86,7 @@ serves Brotli, a little smaller):
85
86
  | `<dsk-diagram>` | plugin 0.8 KB, `@dskripchenko/diagrams` 99.7 KB, kit tokens 2.4 KB | no Vue, no kit components |
86
87
  | `<dsk-openapi>` | plugin 1.4 KB, `@dskripchenko/openapi` 180.5 KB + CSS 10.5 KB, icons 5.2 KB | |
87
88
  | `<dsk-flow>` | plugin 2.5 KB, `@dskripchenko/flow` 79.9 KB + CSS 4.6 KB, icons 5.2 KB; the Mermaid import (2.4 KB + diagrams) only for Mermaid sources and the editor | |
89
+ | `<dsk-board>` | plugin 1.3 KB, `@dskripchenko/board` 46.4 KB (its icons inside) + CSS 1.9 KB | |
88
90
  | `<dsk-markdown>` | plugin 0.5 KB | blocks load their own plugins |
89
91
  | `<dsk-editor>` | plugin 1.1 KB, `@dskripchenko/wysiwyg` 18.2 KB + CSS 2.3 KB, icons 5.2 KB | |
90
92
 
@@ -1 +1 @@
1
- var e=[{prop:`locale`,type:`string`},{prop:`loading`,type:`enum`,values:[`lazy`,`eager`]}],t=[{prop:`src`,type:`string`},{prop:`loop`,type:`boolean`},{prop:`preload`,type:`enum`,values:[`none`,`metadata`,`auto`]},{prop:`crossorigin`,type:`enum`,values:[``,`anonymous`,`use-credentials`]},{prop:`exclusive`,type:`boolean`},{prop:`resumeKey`,type:`string`},{prop:`rates`,type:`numbers`},{prop:`hotkeys`,type:`boolean`},{prop:`hlsOptions`,type:`json`}];[...e,...t],[...e,...t],[...e],[...e],[...e],[...e],[...e];function n(e){if(typeof e==`number`&&Number.isFinite(e))return String(e);if(typeof e==`string`&&e.trim()!==``)return e.trim().replace(/\s*[:/]\s*/,` / `)}function r(e,t){return typeof e==`number`&&Number.isFinite(e)?`${e}px`:typeof e==`string`&&e.trim()!==``?/^\d+(\.\d+)?$/.test(e.trim())?`${e.trim()}px`:e.trim():t}export{r as n,n as t};
1
+ var e=[{prop:`locale`,type:`string`},{prop:`loading`,type:`enum`,values:[`lazy`,`eager`]}],t=[{prop:`src`,type:`string`},{prop:`loop`,type:`boolean`},{prop:`preload`,type:`enum`,values:[`none`,`metadata`,`auto`]},{prop:`crossorigin`,type:`enum`,values:[``,`anonymous`,`use-credentials`]},{prop:`exclusive`,type:`boolean`},{prop:`resumeKey`,type:`string`},{prop:`rates`,type:`numbers`},{prop:`hotkeys`,type:`boolean`},{prop:`hlsOptions`,type:`json`}];[...e,...t],[...e,...t],[...e],[...e],[...e],[...e],[...e],[...e];function n(e){if(typeof e==`number`&&Number.isFinite(e))return String(e);if(typeof e==`string`&&e.trim()!==``)return e.trim().replace(/\s*[:/]\s*/,` / `)}function r(e,t){return typeof e==`number`&&Number.isFinite(e)?`${e}px`:typeof e==`string`&&e.trim()!==``?/^\d+(\.\d+)?$/.test(e.trim())?`${e.trim()}px`:e.trim():t}export{r as n,n as t};