@ebitex/content-sdk 0.20.109 → 0.21.113

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.
@@ -7,4 +7,8 @@
7
7
  export { DEFAULT_PREVIEW_ORIGINS, PREVIEW_MESSAGE_SOURCE, PREVIEW_PROTOCOL_VERSION, PREVIEW_QUERY_FLAG, isPreviewMessage, previewMessage, type ComposerMessage, type DocumentMessage, type EditMessage, type ErrorMessage, type MessageBody, type ModeMessage, type NavigatedMessage, type PreviewContext, type PreviewEntity, type PreviewFieldFacts, type PreviewMessage, type PreviewMode, type PreviewPath, type PreviewPin, type PreviewPinKind, type PreviewSource, type PreviewTarget, type ReadyMessage, type RenderedMessage, type SelectMessage, type SiteMessage, type StandaloneMessage, type StandaloneResult, } from './protocol.js';
8
8
  export { isPreviewActivated, type ActivationWindow } from './activation.js';
9
9
  export { createPreviewReceiver, type PreviewReceiver, type PreviewReceiverOptions } from './receiver.js';
10
+ export { BOUNDARY_SELECTOR, FALLBACK_SELECTOR, FIELD_SELECTOR, computePins, type DrawnPin, type PreviewBoundaryFacts, type PreviewBoundaryInfo, type Rect, } from './pins.js';
11
+ export { createScriptOverlay, type ScriptOverlay, type ScriptOverlayOptions } from './overlay.js';
12
+ export { BOUNDARY_REGISTRY_SELECTOR, bindBoundaries, parseBoundaryRegistry, parseRegistryDocuments, readBoundaryRegistry, type BoundaryRegistry, type BoundaryRegistryEntry, } from './serverBoundaries.js';
13
+ export { startPreviewScript, type PreviewScriptHandle, type PreviewScriptOptions } from './script.js';
10
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/preview/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACtB,wBAAwB,EACxB,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,GACtB,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAC3E,OAAO,EAAE,qBAAqB,EAAE,KAAK,eAAe,EAAE,KAAK,sBAAsB,EAAE,MAAM,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/preview/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACtB,wBAAwB,EACxB,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,GACtB,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAC3E,OAAO,EAAE,qBAAqB,EAAE,KAAK,eAAe,EAAE,KAAK,sBAAsB,EAAE,MAAM,eAAe,CAAA;AAKxG,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,WAAW,EACX,KAAK,QAAQ,EACb,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,IAAI,GACV,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,mBAAmB,EAAE,KAAK,aAAa,EAAE,KAAK,oBAAoB,EAAE,MAAM,cAAc,CAAA;AACjG,OAAO,EACL,0BAA0B,EAC1B,cAAc,EACd,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,EACpB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,GAC3B,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,kBAAkB,EAAE,KAAK,mBAAmB,EAAE,KAAK,oBAAoB,EAAE,MAAM,aAAa,CAAA"}
@@ -7,4 +7,11 @@
7
7
  export { DEFAULT_PREVIEW_ORIGINS, PREVIEW_MESSAGE_SOURCE, PREVIEW_PROTOCOL_VERSION, PREVIEW_QUERY_FLAG, isPreviewMessage, previewMessage, } from './protocol.js';
8
8
  export { isPreviewActivated } from './activation.js';
9
9
  export { createPreviewReceiver } from './receiver.js';
10
+ // spec 728-server-mode-preview-pins — the pieces a site that never hydrates needs. The bundled
11
+ // `preview.js` is `startPreviewScript()` and nothing else; these are exported for a consumer that
12
+ // would rather wire the parts up itself.
13
+ export { BOUNDARY_SELECTOR, FALLBACK_SELECTOR, FIELD_SELECTOR, computePins, } from './pins.js';
14
+ export { createScriptOverlay } from './overlay.js';
15
+ export { BOUNDARY_REGISTRY_SELECTOR, bindBoundaries, parseBoundaryRegistry, parseRegistryDocuments, readBoundaryRegistry, } from './serverBoundaries.js';
16
+ export { startPreviewScript } from './script.js';
10
17
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/preview/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACtB,wBAAwB,EACxB,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,GAwBf,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,kBAAkB,EAAyB,MAAM,iBAAiB,CAAA;AAC3E,OAAO,EAAE,qBAAqB,EAAqD,MAAM,eAAe,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/preview/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACtB,wBAAwB,EACxB,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,GAwBf,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,kBAAkB,EAAyB,MAAM,iBAAiB,CAAA;AAC3E,OAAO,EAAE,qBAAqB,EAAqD,MAAM,eAAe,CAAA;AAExG,+FAA+F;AAC/F,kGAAkG;AAClG,yCAAyC;AACzC,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,WAAW,GAKZ,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,mBAAmB,EAAiD,MAAM,cAAc,CAAA;AACjG,OAAO,EACL,0BAA0B,EAC1B,cAAc,EACd,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,GAGrB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,kBAAkB,EAAuD,MAAM,aAAa,CAAA"}
@@ -0,0 +1,31 @@
1
+ import { type PreviewBoundaryInfo } from './pins.js';
2
+ import type { PreviewMode, PreviewPin, PreviewPinKind, PreviewTarget } from './protocol.js';
3
+ export interface ScriptOverlayOptions {
4
+ /** The boundaries to pin, re-read on every measure so a caller can rebuild them after a DOM change. */
5
+ boundaries: () => Map<string, PreviewBoundaryInfo>;
6
+ onEdit: (pin: number, kind: PreviewPinKind, target: PreviewTarget) => void;
7
+ /** Called whenever the reported set of pins changes. */
8
+ onRendered: (pins: PreviewPin[]) => void;
9
+ window?: Window;
10
+ }
11
+ export interface ScriptOverlay {
12
+ /** Re-read the boundaries, re-measure, redraw, and report if the set changed. */
13
+ measure(): void;
14
+ /** Pins are drawn in `edit` only — `browse` leaves the page untouched so its own links work. */
15
+ setMode(mode: PreviewMode): void;
16
+ select(pin: number | null): void;
17
+ dispose(): void;
18
+ }
19
+ /**
20
+ * The script overlay: what `PreviewOverlay` draws in React, drawn imperatively for a page that
21
+ * never hydrates.
22
+ *
23
+ * <p>
24
+ * Every decision about what a pin *is* — which elements get one, in what order, what it is called
25
+ * and what it looks like — comes from `pins.ts`, the same module the React overlay calls. This file
26
+ * owns only the DOM plumbing: a container at the end of `<body>`, one element per box, and the
27
+ * listeners that keep them positioned.
28
+ * </p>
29
+ */
30
+ export declare function createScriptOverlay(options: ScriptOverlayOptions): ScriptOverlay;
31
+ //# sourceMappingURL=overlay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../src/preview/overlay.ts"],"names":[],"mappings":"AAAA,OAAO,EAcL,KAAK,mBAAmB,EACzB,MAAM,WAAW,CAAA;AAClB,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAE3F,MAAM,WAAW,oBAAoB;IACnC,uGAAuG;IACvG,UAAU,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAA;IAClD,MAAM,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,aAAa,KAAK,IAAI,CAAA;IAC1E,wDAAwD;IACxD,UAAU,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,IAAI,CAAA;IACxC,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,aAAa;IAC5B,iFAAiF;IACjF,OAAO,IAAI,IAAI,CAAA;IACf,gGAAgG;IAChG,OAAO,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,CAAA;IAChC,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;IAChC,OAAO,IAAI,IAAI,CAAA;CAChB;AAaD;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,oBAAoB,GAAG,aAAa,CAuMhF"}
@@ -0,0 +1,219 @@
1
+ import { BOUNDARY_SELECTOR, computePins, containerStyle, hoverFor, outlineStyle, persistentOutlineStyle, pinFor, pinStyle, stripDrawn, tagStyle, } from './pins.js';
2
+ const UNITLESS = new Set(['opacity', 'zIndex', 'fontWeight', 'lineHeight', 'order', 'flexGrow', 'flexShrink', 'zoom']);
3
+ /** React adds `px` to a bare number; applying the same shared style objects by hand has to do it too. */
4
+ function applyStyle(element, style) {
5
+ for (const key of Object.keys(style)) {
6
+ const value = style[key];
7
+ const text = typeof value === 'number' && !UNITLESS.has(key) ? `${value}px` : String(value);
8
+ element.style[key] = text;
9
+ }
10
+ }
11
+ /**
12
+ * The script overlay: what `PreviewOverlay` draws in React, drawn imperatively for a page that
13
+ * never hydrates.
14
+ *
15
+ * <p>
16
+ * Every decision about what a pin *is* — which elements get one, in what order, what it is called
17
+ * and what it looks like — comes from `pins.ts`, the same module the React overlay calls. This file
18
+ * owns only the DOM plumbing: a container at the end of `<body>`, one element per box, and the
19
+ * listeners that keep them positioned.
20
+ * </p>
21
+ */
22
+ export function createScriptOverlay(options) {
23
+ const win = options.window ?? window;
24
+ const doc = win.document;
25
+ const container = doc.createElement('div');
26
+ container.setAttribute('data-ebitex-overlay', '');
27
+ container.setAttribute('aria-label', 'Live preview pins');
28
+ applyStyle(container, containerStyle);
29
+ doc.body.appendChild(container);
30
+ let mode = 'edit';
31
+ let pins = [];
32
+ let hover = null;
33
+ let selected = null;
34
+ let lastReported = '';
35
+ let lastPinLayer = '';
36
+ let frame = 0;
37
+ // Two layers, and the split is load-bearing. The decoration layer is rebuilt freely — it changes
38
+ // on every hover. The pin layer is rebuilt only when the pins themselves change, because a
39
+ // <button> replaced underneath the pointer cancels the very click it was hovered for. React
40
+ // reconciles and keeps the element; this overlay has to be told to.
41
+ //
42
+ // Found live: the pins drew perfectly on the MVC sample and could not be clicked at all — moving
43
+ // the pointer onto one re-created it, so the mousedown landed on a detached element.
44
+ const decorLayer = doc.createElement('div');
45
+ const pinLayer = doc.createElement('div');
46
+ container.append(decorLayer, pinLayer);
47
+ function highlighted() {
48
+ return hover?.kind === 'pin' ? hover.pin : selected;
49
+ }
50
+ /** What the pin buttons depend on — deliberately not the highlight. */
51
+ function pinSignature() {
52
+ return JSON.stringify([mode, pins.map((p) => [p.pin, p.kind, p.tag, p.rect])]);
53
+ }
54
+ function drawDecoration() {
55
+ decorLayer.textContent = '';
56
+ if (mode !== 'edit')
57
+ return;
58
+ const active = highlighted();
59
+ // spec 390: every pinned element keeps a lighter outline in Edit mode, so the taxonomy reads on
60
+ // the page itself and not only on hover. The highlighted pin's stronger outline replaces it.
61
+ for (const pin of pins) {
62
+ if (pin.pin === active)
63
+ continue;
64
+ const outline = doc.createElement('div');
65
+ applyStyle(outline, persistentOutlineStyle(pin.rect, pin.kind));
66
+ decorLayer.appendChild(outline);
67
+ }
68
+ const activePin = active === null ? undefined : pins.find((p) => p.pin === active);
69
+ if (activePin) {
70
+ const outline = doc.createElement('div');
71
+ applyStyle(outline, outlineStyle(activePin.rect, activePin.kind));
72
+ decorLayer.appendChild(outline);
73
+ const tag = doc.createElement('div');
74
+ applyStyle(tag, tagStyle(activePin.rect, activePin.kind));
75
+ tag.textContent = activePin.tag;
76
+ decorLayer.appendChild(tag);
77
+ }
78
+ else if (hover?.kind === 'template') {
79
+ const outline = doc.createElement('div');
80
+ applyStyle(outline, outlineStyle(hover.rect, 'template'));
81
+ decorLayer.appendChild(outline);
82
+ const tag = doc.createElement('div');
83
+ applyStyle(tag, tagStyle(hover.rect, 'template'));
84
+ tag.textContent = hover.label;
85
+ decorLayer.appendChild(tag);
86
+ }
87
+ }
88
+ function drawPins() {
89
+ const next = pinSignature();
90
+ if (next === lastPinLayer)
91
+ return;
92
+ lastPinLayer = next;
93
+ pinLayer.textContent = '';
94
+ if (mode !== 'edit')
95
+ return;
96
+ for (const pin of pins) {
97
+ const button = doc.createElement('button');
98
+ button.type = 'button';
99
+ button.setAttribute('data-ebitex-pin', String(pin.pin));
100
+ button.setAttribute('data-ebitex-pin-kind', pin.kind);
101
+ button.setAttribute('aria-label', `Edit ${pin.tag}`);
102
+ button.title = pin.tag;
103
+ button.textContent = pin.kind === 'unresolved' ? '!' : String(pin.pin);
104
+ applyStyle(button, pinStyle(pin.rect, pin.kind));
105
+ button.addEventListener('mouseenter', () => {
106
+ hover = { kind: 'pin', pin: pin.pin };
107
+ drawDecoration();
108
+ });
109
+ button.addEventListener('focus', () => {
110
+ hover = { kind: 'pin', pin: pin.pin };
111
+ drawDecoration();
112
+ });
113
+ button.addEventListener('blur', () => {
114
+ hover = null;
115
+ drawDecoration();
116
+ });
117
+ button.addEventListener('click', (event) => {
118
+ event.preventDefault();
119
+ event.stopPropagation();
120
+ options.onEdit(pin.pin, pin.kind, pin.target);
121
+ });
122
+ pinLayer.appendChild(button);
123
+ }
124
+ }
125
+ function draw() {
126
+ drawPins();
127
+ drawDecoration();
128
+ }
129
+ function measure() {
130
+ pins = computePins(options.boundaries());
131
+ draw();
132
+ const summary = pins.map(stripDrawn);
133
+ const signature = JSON.stringify(summary.map((p) => [p.pin, p.kind, p.label, p.target]));
134
+ if (lastReported !== signature) {
135
+ lastReported = signature;
136
+ options.onRendered(summary);
137
+ }
138
+ }
139
+ function schedule() {
140
+ if (frame !== 0)
141
+ return;
142
+ frame = win.requestAnimationFrame(() => {
143
+ frame = 0;
144
+ measure();
145
+ });
146
+ }
147
+ function onMouseOver(event) {
148
+ if (mode !== 'edit')
149
+ return;
150
+ const target = event.target instanceof Element ? event.target : null;
151
+ const next = hoverFor(target, pins);
152
+ if (JSON.stringify(next) === JSON.stringify(hover))
153
+ return;
154
+ hover = next;
155
+ drawDecoration();
156
+ }
157
+ function onMouseLeave() {
158
+ if (hover === null)
159
+ return;
160
+ hover = null;
161
+ drawDecoration();
162
+ }
163
+ function onClick(event) {
164
+ // Browse mode leaves the page alone entirely — a full-page navigation is how a non-hydrating
165
+ // site browses, so swallowing its clicks would break the thing this mode exists for.
166
+ if (mode !== 'edit')
167
+ return;
168
+ const target = event.target instanceof Element ? event.target : null;
169
+ const boundaryElement = target?.closest(BOUNDARY_SELECTOR);
170
+ if (!boundaryElement)
171
+ return;
172
+ if (target?.closest('[data-ebitex-overlay]'))
173
+ return; // our own pins handle themselves
174
+ event.preventDefault();
175
+ event.stopPropagation();
176
+ const pin = pinFor(target, pins);
177
+ if (pin)
178
+ options.onEdit(pin.pin, pin.kind, pin.target);
179
+ }
180
+ // `ResizeObserver` is read off the page's own window (a test double supplies its own), not the
181
+ // global, so it is reached through an explicit cast rather than the `Window` lib type.
182
+ const resizeObserver = win.ResizeObserver;
183
+ const observer = typeof resizeObserver === 'function' ? new resizeObserver(schedule) : null;
184
+ observer?.observe(doc.body);
185
+ win.addEventListener('scroll', schedule, true);
186
+ win.addEventListener('resize', schedule);
187
+ doc.addEventListener('mouseover', onMouseOver, true);
188
+ doc.documentElement.addEventListener('mouseleave', onMouseLeave);
189
+ doc.addEventListener('click', onClick, true);
190
+ measure();
191
+ return {
192
+ measure,
193
+ setMode(next) {
194
+ if (next === mode)
195
+ return;
196
+ mode = next;
197
+ hover = null;
198
+ draw();
199
+ },
200
+ select(pin) {
201
+ if (pin === selected)
202
+ return;
203
+ selected = pin;
204
+ drawDecoration();
205
+ },
206
+ dispose() {
207
+ observer?.disconnect();
208
+ win.removeEventListener('scroll', schedule, true);
209
+ win.removeEventListener('resize', schedule);
210
+ doc.removeEventListener('mouseover', onMouseOver, true);
211
+ doc.documentElement.removeEventListener('mouseleave', onMouseLeave);
212
+ doc.removeEventListener('click', onClick, true);
213
+ if (frame !== 0)
214
+ win.cancelAnimationFrame(frame);
215
+ container.remove();
216
+ },
217
+ };
218
+ }
219
+ //# sourceMappingURL=overlay.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"overlay.js","sourceRoot":"","sources":["../../src/preview/overlay.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,WAAW,EACX,cAAc,EACd,QAAQ,EACR,YAAY,EACZ,sBAAsB,EACtB,MAAM,EACN,QAAQ,EACR,UAAU,EACV,QAAQ,GAKT,MAAM,WAAW,CAAA;AAqBlB,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,CAAC,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,CAAC,CAAC,CAAA;AAEtH,yGAAyG;AACzG,SAAS,UAAU,CAAC,OAAoB,EAAE,KAAe;IACvD,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QACrC,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,CAAA;QACxB,MAAM,IAAI,GAAG,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAC1F;QAAC,OAAO,CAAC,KAA2C,CAAC,GAAG,CAAC,GAAG,IAAI,CAAA;IACnE,CAAC;AACH,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,mBAAmB,CAAC,OAA6B;IAC/D,MAAM,GAAG,GAAG,OAAO,CAAC,MAAM,IAAI,MAAM,CAAA;IACpC,MAAM,GAAG,GAAG,GAAG,CAAC,QAAQ,CAAA;IACxB,MAAM,SAAS,GAAG,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,CAAA;IAC1C,S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Y,CAAC,CAAA;IAChE,GAAG,CAAC,gBAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,CAAA;IAE5C,OAAO,EAAE,CAAA;IAET,OAAO;QACL,OAAO;QACP,OAAO,CAAC,IAAI;YACV,IAAI,IAAI,KAAK,IAAI;gBAAE,OAAM;YACzB,IAAI,GAAG,IAAI,CAAA;YACX,KAAK,GAAG,IAAI,CAAA;YACZ,IAAI,EAAE,CAAA;QACR,CAAC;QACD,MAAM,CAAC,GAAG;YACR,IAAI,GAAG,KAAK,QAAQ;gBAAE,OAAM;YAC5B,QAAQ,GAAG,GAAG,CAAA;YACd,cAAc,EAAE,CAAA;QAClB,CAAC;QACD,OAAO;YACL,QAAQ,EAAE,UAAU,EAAE,CAAA;YACtB,GAAG,CAAC,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAA;YACjD,GAAG,CAAC,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAA;YAC3C,GAAG,CAAC,mBAAmB,CAAC,WAAW,EAAE,WAAW,EAAE,IAAI,CAAC,CAAA;YACvD,GAAG,CAAC,eAAe,CAAC,mBAAmB,CAAC,YAAY,EAAE,YAAY,CAAC,CAAA;YACnE,GAAG,CAAC,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,CAAA;YAC/C,IAAI,KAAK,KAAK,CAAC;gBAAE,GAAG,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAA;YAChD,SAAS,CAAC,MAAM,EAAE,CAAA;QACpB,CAAC;KACF,CAAA;AACH,CAAC"}
@@ -0,0 +1,79 @@
1
+ import type { ComponentValue, PresentationEnvelope } from '../types.js';
2
+ import type { PreviewPin, PreviewPinKind, PreviewSource, PreviewTarget } from './protocol.js';
3
+ /**
4
+ * The pin vocabulary — geometry, naming and appearance — with no framework in it.
5
+ *
6
+ * <p>
7
+ * It was lifted out of <c>react/PreviewOverlay.tsx</c> unchanged rather than copied, because a
8
+ * server-rendered site now draws the same pins from a plain script. Two implementations of one
9
+ * closed vocabulary drift silently, and the drift is invisible until someone compares two
10
+ * screenshots of the same page. Both overlays call into this module for everything except how they
11
+ * put the boxes on screen: React portals them, the script appends elements.
12
+ * </p>
13
+ *
14
+ * <p>
15
+ * Nothing here touches React, and nothing here reads the document except through the element handles
16
+ * its caller supplies — which is what lets the same code serve a live React tree (boundaries
17
+ * registered as components mount) and static server-rendered HTML (boundaries recovered from a
18
+ * registry document).
19
+ * </p>
20
+ */
21
+ export declare const BOUNDARY_SELECTOR = "[data-ebitex-source]";
22
+ export declare const FIELD_SELECTOR = "[data-ebitex-field]";
23
+ export declare const FALLBACK_SELECTOR = "[data-ebitex-content=\"fallback\"]";
24
+ /** The naming facts a boundary carries, without the element it was found on. */
25
+ export interface PreviewBoundaryFacts {
26
+ id: string;
27
+ envelope?: PresentationEnvelope;
28
+ component?: ComponentValue;
29
+ source: PreviewSource | undefined;
30
+ }
31
+ /**
32
+ * What `RenderPresentation`/`<StandaloneComponent>` registers for each boundary drawn while a
33
+ * preview is active — a Presentation dispatch carries `envelope`, a standalone Component carries
34
+ * `component` instead; exactly one is ever set. A server-rendered page supplies the same facts from
35
+ * its registry document, bound to the element carrying the matching `data-ebitex-source`.
36
+ */
37
+ export interface PreviewBoundaryInfo extends PreviewBoundaryFacts {
38
+ element: HTMLElement;
39
+ }
40
+ export interface Rect {
41
+ top: number;
42
+ left: number;
43
+ width: number;
44
+ height: number;
45
+ }
46
+ export interface DrawnPin extends PreviewPin {
47
+ element: Element;
48
+ boundary: PreviewBoundaryInfo;
49
+ rect: Rect;
50
+ /** The hover/selection tag, with modifiers. */
51
+ tag: string;
52
+ }
53
+ export type Hover = {
54
+ kind: 'pin';
55
+ pin: number;
56
+ } | {
57
+ kind: 'template';
58
+ boundaryId: string;
59
+ rect: Rect;
60
+ label: string;
61
+ } | null;
62
+ export declare function computePins(boundaries: Map<string, PreviewBoundaryInfo>): DrawnPin[];
63
+ /** A boundary is `display: contents` — it has no box; its children do. */
64
+ export declare function measureElement(element: Element): Rect | null;
65
+ export declare function stripDrawn(pin: DrawnPin): PreviewPin;
66
+ export declare function pinFor(target: Element | null, pins: DrawnPin[]): DrawnPin | undefined;
67
+ export declare function hoverFor(target: Element | null, pins: DrawnPin[]): Hover;
68
+ /** The pin's own target, for a caller that has a pin number rather than an element. */
69
+ export declare function targetOf(pins: DrawnPin[], pin: number): DrawnPin | undefined;
70
+ export type PinStyle = Record<string, string | number>;
71
+ export declare function colorFor(kind: PreviewPinKind | 'template'): string;
72
+ export declare const containerStyle: PinStyle;
73
+ export declare function pinStyle(rect: Rect, kind: PreviewPinKind): PinStyle;
74
+ export declare function outlineStyle(rect: Rect, kind: PreviewPinKind | 'template'): PinStyle;
75
+ /** The always-on, lighter outline every pinned element shows in Edit mode — the same box `outlineStyle` draws for the highlighted pin, just fainter and thinner so it doesn't compete with it. */
76
+ export declare function persistentOutlineStyle(rect: Rect, kind: PreviewPinKind): PinStyle;
77
+ export declare function tagStyle(rect: Rect, kind: PreviewPinKind | 'template'): PinStyle;
78
+ export type { PreviewTarget };
79
+ //# sourceMappingURL=pins.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pins.d.ts","sourceRoot":"","sources":["../../src/preview/pins.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AACvE,OAAO,KAAK,EAAqB,UAAU,EAAE,cAAc,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAEhH;;;;;;;;;;;;;;;;;GAiBG;AAEH,eAAO,MAAM,iBAAiB,yBAAyB,CAAA;AACvD,eAAO,MAAM,cAAc,wBAAwB,CAAA;AACnD,eAAO,MAAM,iBAAiB,uCAAqC,CAAA;AAEnE,gFAAgF;AAChF,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,CAAC,EAAE,oBAAoB,CAAA;I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