@refrakt-md/runes 0.16.0 → 0.16.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/dist/config.d.ts +7 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +32 -4
- package/dist/config.js.map +1 -1
- package/dist/drawer-pipeline.d.ts +72 -1
- package/dist/drawer-pipeline.d.ts.map +1 -1
- package/dist/drawer-pipeline.js +242 -1
- package/dist/drawer-pipeline.js.map +1 -1
- package/dist/file-ref-resolve.d.ts +22 -0
- package/dist/file-ref-resolve.d.ts.map +1 -0
- package/dist/file-ref-resolve.js +233 -0
- package/dist/file-ref-resolve.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -0
- package/dist/index.js.map +1 -1
- package/dist/nodes.d.ts.map +1 -1
- package/dist/nodes.js +62 -8
- package/dist/nodes.js.map +1 -1
- package/dist/snippet-pipeline.d.ts +7 -5
- package/dist/snippet-pipeline.d.ts.map +1 -1
- package/dist/snippet-pipeline.js +32 -13
- package/dist/snippet-pipeline.js.map +1 -1
- package/dist/tags/codegroup.d.ts.map +1 -1
- package/dist/tags/codegroup.js +37 -1
- package/dist/tags/codegroup.js.map +1 -1
- package/dist/tags/diff.d.ts.map +1 -1
- package/dist/tags/diff.js +85 -18
- package/dist/tags/diff.js.map +1 -1
- package/dist/tags/drawer.d.ts.map +1 -1
- package/dist/tags/drawer.js +32 -2
- package/dist/tags/drawer.js.map +1 -1
- package/dist/tags/file-ref.d.ts +21 -0
- package/dist/tags/file-ref.d.ts.map +1 -0
- package/dist/tags/file-ref.js +88 -0
- package/dist/tags/file-ref.js.map +1 -0
- package/dist/tags/snippet.d.ts.map +1 -1
- package/dist/tags/snippet.js +10 -0
- package/dist/tags/snippet.js.map +1 -1
- package/dist/tags/xref.d.ts.map +1 -1
- package/dist/tags/xref.js +9 -0
- package/dist/tags/xref.js.map +1 -1
- package/dist/xref-preview-resolve.d.ts +35 -0
- package/dist/xref-preview-resolve.d.ts.map +1 -0
- package/dist/xref-preview-resolve.js +188 -0
- package/dist/xref-preview-resolve.js.map +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* xref `preview="drawer"` resolver (SPEC-078, WORK-302).
|
|
3
|
+
*
|
|
4
|
+
* Runs BEFORE the drawer hoist pass. Walks the page renderable, finds
|
|
5
|
+
* xref placeholders carrying `data-xref-preview="drawer"`, and rewrites
|
|
6
|
+
* each as an inline `<a href="#drawer-{entityId}">` (with aria attrs)
|
|
7
|
+
* accompanied by a `hoist-drawer` sentinel that the drawer pipeline
|
|
8
|
+
* (WORK-300) picks up to render the actual drawer at the page root.
|
|
9
|
+
*
|
|
10
|
+
* Non-preview xref placeholders pass through unchanged — the existing
|
|
11
|
+
* `resolveXrefs` pass (later in the pipeline) handles those.
|
|
12
|
+
*
|
|
13
|
+
* Also registers a hoist builder for the `xref` source. The builder
|
|
14
|
+
* looks up the entity by id and emits a drawer whose body is an
|
|
15
|
+
* `expand-pending` placeholder for the entity — the `resolveExpands`
|
|
16
|
+
* pass that runs *after* the hoist substitutes the placeholder with
|
|
17
|
+
* the entity's actual content, so the drawer body ends up identical
|
|
18
|
+
* to a manual `{% drawer %}{% expand "X" /%}{% /drawer %}`.
|
|
19
|
+
*/
|
|
20
|
+
import Markdoc from '@markdoc/markdoc';
|
|
21
|
+
import { HOIST_DRAWER_SENTINEL, registerHoistBuilder, } from './drawer-pipeline.js';
|
|
22
|
+
import { XREF_RUNE_MARKER } from './tags/xref.js';
|
|
23
|
+
import { EXPAND_PLACEHOLDER_MARKER } from './tags/expand.js';
|
|
24
|
+
const { Tag } = Markdoc;
|
|
25
|
+
function isTag(node) {
|
|
26
|
+
return Tag.isTag(node);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Walk a page's renderable. For each xref placeholder with
|
|
30
|
+
* `data-xref-preview="drawer"`:
|
|
31
|
+
*
|
|
32
|
+
* - Replace the placeholder span with `<a href="#drawer-{id}">` carrying
|
|
33
|
+
* `aria-controls`, `aria-expanded="false"`, `data-target-type="drawer"`.
|
|
34
|
+
* - Emit a sibling `<meta data-field="hoist-drawer">` sentinel with
|
|
35
|
+
* `data-source="xref"` + the entity id + the authored label, for the
|
|
36
|
+
* drawer pipeline to consume.
|
|
37
|
+
*
|
|
38
|
+
* Non-preview xref placeholders are left for `resolveXrefs` to handle in
|
|
39
|
+
* its own pass.
|
|
40
|
+
*/
|
|
41
|
+
export function resolveXrefPreviews(renderable, pageUrl, registry, ctx) {
|
|
42
|
+
const walk = (node) => {
|
|
43
|
+
if (Array.isArray(node)) {
|
|
44
|
+
let mutated = false;
|
|
45
|
+
const out = [];
|
|
46
|
+
for (const c of node) {
|
|
47
|
+
const w = walk(c);
|
|
48
|
+
if (w !== c)
|
|
49
|
+
mutated = true;
|
|
50
|
+
if (Array.isArray(w))
|
|
51
|
+
out.push(...w);
|
|
52
|
+
else
|
|
53
|
+
out.push(w);
|
|
54
|
+
}
|
|
55
|
+
return mutated ? out : node;
|
|
56
|
+
}
|
|
57
|
+
if (!isTag(node))
|
|
58
|
+
return node;
|
|
59
|
+
const tag = node;
|
|
60
|
+
if (tag.attributes?.['data-rune'] === XREF_RUNE_MARKER
|
|
61
|
+
&& tag.attributes?.['data-xref-preview'] === 'drawer') {
|
|
62
|
+
return resolveOne(tag, registry, ctx, pageUrl);
|
|
63
|
+
}
|
|
64
|
+
if (!tag.children || tag.children.length === 0)
|
|
65
|
+
return tag;
|
|
66
|
+
let mutated = false;
|
|
67
|
+
const next = [];
|
|
68
|
+
for (const c of tag.children) {
|
|
69
|
+
const w = walk(c);
|
|
70
|
+
if (w !== c)
|
|
71
|
+
mutated = true;
|
|
72
|
+
if (Array.isArray(w))
|
|
73
|
+
next.push(...w);
|
|
74
|
+
else
|
|
75
|
+
next.push(w);
|
|
76
|
+
}
|
|
77
|
+
if (!mutated)
|
|
78
|
+
return tag;
|
|
79
|
+
return new Tag(tag.name, tag.attributes, next);
|
|
80
|
+
};
|
|
81
|
+
return walk(renderable);
|
|
82
|
+
}
|
|
83
|
+
function resolveOne(placeholder, registry, ctx, pageUrl) {
|
|
84
|
+
const attrs = placeholder.attributes;
|
|
85
|
+
const id = String(attrs['data-xref-id'] ?? '');
|
|
86
|
+
const authoredLabel = attrs['data-xref-label'];
|
|
87
|
+
if (!id) {
|
|
88
|
+
ctx.warn(`xref preview placeholder on ${pageUrl} has no entity id`, pageUrl);
|
|
89
|
+
return [placeholder];
|
|
90
|
+
}
|
|
91
|
+
// Try to resolve the entity title for the inline link label when the
|
|
92
|
+
// author didn't supply an explicit `label=`. Fall back to the id.
|
|
93
|
+
const entity = registry ? findEntity(registry, id) : undefined;
|
|
94
|
+
const label = authoredLabel
|
|
95
|
+
|| (entity ? entityDisplayLabel(entity) : id);
|
|
96
|
+
const entityTitle = entity ? entityDisplayLabel(entity) : id;
|
|
97
|
+
const slug = id;
|
|
98
|
+
const anchor = new Tag('a', {
|
|
99
|
+
class: 'rf-xref',
|
|
100
|
+
href: `#drawer-${slug}`,
|
|
101
|
+
'aria-controls': `drawer-${slug}`,
|
|
102
|
+
'aria-expanded': 'false',
|
|
103
|
+
'data-target-type': 'drawer',
|
|
104
|
+
'data-xref-id': id,
|
|
105
|
+
}, [label]);
|
|
106
|
+
const sentinel = new Tag('meta', {
|
|
107
|
+
'data-field': HOIST_DRAWER_SENTINEL,
|
|
108
|
+
'data-source': 'xref',
|
|
109
|
+
'data-target-id': slug,
|
|
110
|
+
'data-title': entityTitle,
|
|
111
|
+
'data-entity-id': id,
|
|
112
|
+
});
|
|
113
|
+
return [anchor, sentinel];
|
|
114
|
+
}
|
|
115
|
+
function findEntity(registry, id) {
|
|
116
|
+
const types = registry.getTypes?.() ?? [];
|
|
117
|
+
for (const type of types) {
|
|
118
|
+
const e = registry.getById(type, id);
|
|
119
|
+
if (e)
|
|
120
|
+
return e;
|
|
121
|
+
}
|
|
122
|
+
return undefined;
|
|
123
|
+
}
|
|
124
|
+
function entityDisplayLabel(entity) {
|
|
125
|
+
const data = entity.data;
|
|
126
|
+
return String(data.title ?? data.name ?? entity.id);
|
|
127
|
+
}
|
|
128
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
129
|
+
// Hoist builder for the `xref` source — looks up the entity, builds a
|
|
130
|
+
// drawer with an expand-pending body that `resolveExpands` resolves
|
|
131
|
+
// downstream, and a chrome footer linking to the entity's page URL.
|
|
132
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
133
|
+
function buildXrefHoist(payload, context) {
|
|
134
|
+
const entityId = payload['entity-id'] || payload['target-id'];
|
|
135
|
+
const targetId = payload['target-id'];
|
|
136
|
+
const title = payload.title || entityId;
|
|
137
|
+
if (!entityId || !targetId) {
|
|
138
|
+
context.ctx.warn(`xref hoist payload missing required entity-id or target-id`, context.pageUrl);
|
|
139
|
+
return null;
|
|
140
|
+
}
|
|
141
|
+
const entity = context.registry ? findEntity(context.registry, entityId) : undefined;
|
|
142
|
+
// Header — title + close button (same shape author-declared drawers use).
|
|
143
|
+
const titleHeading = new Tag('h3', { 'data-name': 'title', class: 'rf-drawer__title' }, [title]);
|
|
144
|
+
const closeButton = new Tag('button', {
|
|
145
|
+
type: 'button',
|
|
146
|
+
'aria-label': 'Close',
|
|
147
|
+
hidden: true,
|
|
148
|
+
'data-name': 'close',
|
|
149
|
+
class: 'rf-drawer__close',
|
|
150
|
+
}, ['×']);
|
|
151
|
+
const header = new Tag('header', {
|
|
152
|
+
'data-name': 'header',
|
|
153
|
+
class: 'rf-drawer__header',
|
|
154
|
+
}, [titleHeading, closeButton]);
|
|
155
|
+
// Body — an expand-pending placeholder. `resolveExpands` runs after
|
|
156
|
+
// `hoistPreviewDrawers` in the pipeline and substitutes this with the
|
|
157
|
+
// entity's actual content, identical to a hand-authored
|
|
158
|
+
// `{% drawer %}{% expand "X" /%}{% /drawer %}` composition.
|
|
159
|
+
const expandPlaceholder = new Tag('div', {
|
|
160
|
+
'data-rune': EXPAND_PLACEHOLDER_MARKER,
|
|
161
|
+
'data-expand-id': entityId,
|
|
162
|
+
}, []);
|
|
163
|
+
const bodyChildren = [expandPlaceholder];
|
|
164
|
+
const body = new Tag('div', { 'data-name': 'body', class: 'rf-drawer__body' }, bodyChildren);
|
|
165
|
+
// Footer — link to the entity's page URL (when one resolves). Hides
|
|
166
|
+
// silently for entities without a sourceUrl (heading entities,
|
|
167
|
+
// drawer-target entities).
|
|
168
|
+
const footerHref = entity?.sourceUrl ?? '';
|
|
169
|
+
const footer = footerHref
|
|
170
|
+
? new Tag('footer', { 'data-name': 'footer', class: 'rf-drawer__footer' }, [
|
|
171
|
+
new Tag('a', { href: footerHref }, [`View full page →`]),
|
|
172
|
+
])
|
|
173
|
+
: null;
|
|
174
|
+
const drawerChildren = [header, body];
|
|
175
|
+
if (footer)
|
|
176
|
+
drawerChildren.push(footer);
|
|
177
|
+
return new Tag('section', {
|
|
178
|
+
id: `drawer-${targetId}`,
|
|
179
|
+
class: 'rf-drawer',
|
|
180
|
+
'data-rune': 'drawer',
|
|
181
|
+
'data-drawer-id': targetId,
|
|
182
|
+
'data-side': 'right',
|
|
183
|
+
'data-size': 'md',
|
|
184
|
+
}, drawerChildren);
|
|
185
|
+
}
|
|
186
|
+
// Register at module load.
|
|
187
|
+
registerHoistBuilder('xref', buildXrefHoist);
|
|
188
|
+
//# sourceMappingURL=xref-preview-resolve.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xref-preview-resolve.js","sourceRoot":"","sources":["../src/xref-preview-resolve.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,OAAO,MAAM,kBAAkB,CAAC;AAGvC,OAAO,EACN,qBAAqB,EACrB,oBAAoB,GAEpB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,yBAAyB,EAAE,MAAM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;AACH,CAAC;AAED,2BAA2B;AAC3B,oBAAoB,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@refrakt-md/runes",
|
|
3
3
|
"description": "Semantic Markdoc runes for refrakt.md",
|
|
4
|
-
"version": "0.16.
|
|
4
|
+
"version": "0.16.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"build": "tsc"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@refrakt-md/types": "0.16.
|
|
33
|
-
"@refrakt-md/transform": "0.16.
|
|
32
|
+
"@refrakt-md/types": "0.16.1",
|
|
33
|
+
"@refrakt-md/transform": "0.16.1",
|
|
34
34
|
"@markdoc/markdoc": "0.4.0",
|
|
35
35
|
"reflect-metadata": "^0.2.0",
|
|
36
36
|
"fast-xml-parser": "4.5.1",
|