wiki-formant 0.77.0 → 0.77.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/README.md +1 -1
- package/dist/base.css +2 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -761,7 +761,7 @@ const safe = mapBlockTree(blocks, b => sanitizeCoreLeaf(b, clean), BLOCK_SHAPE);
|
|
|
761
761
|
|
|
762
762
|
The default list is derived from what the editor nodes in `wiki-formant/tiptap` store — the embed wrappers' data attributes, the tab markup `activateTabGroups` reads back, the table classes — plus the presentational SVG subset the infographics pipeline embeds. Extend it with `tags`, `attributes`, `classes` and `schemesByTag` derived from your stored HTML, never from memory: a list written from memory erases content on the first render.
|
|
763
763
|
|
|
764
|
-
A YouTube iframe comes out as the `YouTube` node's markup, `<div data-youtube-video><iframe …></iframe></div>`, whoever wrote it: an agent, an import, a pasted embed code. The editor then opens it as that node, and `base.css` draws it as the same full-width 16:9 player as one the editor wrote, as it does a map embed. Two wikis had drawn that player in their own stylesheets and a third drew any iframe its own way; corners, borders and the editor's selection ring stay the site's.
|
|
764
|
+
A YouTube iframe comes out as the `YouTube` node's markup, `<div data-youtube-video><iframe …></iframe></div>`, whoever wrote it: an agent, an import, a pasted embed code. The editor then opens it as that node, and `base.css` draws it as the same full-width 16:9 player as one the editor wrote, as it does a map embed. Two wikis had drawn that player in their own stylesheets and a third drew any iframe its own way; spacing, corners, borders and the editor's selection ring stay the site's.
|
|
765
765
|
|
|
766
766
|
Classes pass by name only. Limiting `style` to layout and paint is worth nothing while `class` is free, because every site's own stylesheet ships `fixed inset-0 z-50`, and those draw a fake prompt over the chrome as well as `position` does.
|
|
767
767
|
|
package/dist/base.css
CHANGED
|
@@ -434,13 +434,11 @@ pre:hover > .code-copy-btn,
|
|
|
434
434
|
/* ---- embeds ------------------------------------------------------------------
|
|
435
435
|
The players the `wiki-formant/tiptap` nodes store, filling their column at a
|
|
436
436
|
screen's proportions. The node writes a width and height onto the iframe,
|
|
437
|
-
which `aspect-ratio` with `height: auto` overrides.
|
|
438
|
-
editor's selection ring are the site's. */
|
|
439
|
-
:is(div[data-youtube-video], .map-embed) { margin: 1em 0; }
|
|
437
|
+
which `aspect-ratio` with `height: auto` overrides. Spacing, corners,
|
|
438
|
+
borders and the editor's selection ring are the site's. */
|
|
440
439
|
:is(div[data-youtube-video], .map-embed) iframe {
|
|
441
440
|
display: block;
|
|
442
441
|
width: 100%;
|
|
443
442
|
height: auto;
|
|
444
443
|
aspect-ratio: 16 / 9;
|
|
445
|
-
border: 0;
|
|
446
444
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wiki-formant",
|
|
3
|
-
"version": "0.77.
|
|
3
|
+
"version": "0.77.1",
|
|
4
4
|
"description": "The portable half of a wiki: derived taxonomy and facet controls, a version-negotiating MCP transport, markdown twins, block rendering, a rich-text editor engine, conditional-GET plumbing, and the headers and CSP every origin sends.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|