@sobree/core 0.1.10 → 0.1.12
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/createSobree.d.ts +7 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +87 -68
- package/dist/index.js.map +1 -1
- package/dist/sobree.d.ts +9 -0
- package/dist/version.d.ts +6 -0
- package/dist/versionBadge.d.ts +14 -0
- package/package.json +1 -1
package/dist/sobree.d.ts
CHANGED
|
@@ -61,6 +61,13 @@ export interface SobreeOptions {
|
|
|
61
61
|
* `sobree.setTrackChanges(...)`.
|
|
62
62
|
*/
|
|
63
63
|
trackChanges?: TrackChangesState;
|
|
64
|
+
/**
|
|
65
|
+
* Show a small, non-interactive `@sobree/core` version badge at the
|
|
66
|
+
* bottom-centre of the screen. Off by default. A debug aid for
|
|
67
|
+
* confirming which renderer build is live (e.g. past a stale cache
|
|
68
|
+
* after a deploy) — it has no other behaviour.
|
|
69
|
+
*/
|
|
70
|
+
versionBadge?: boolean;
|
|
64
71
|
}
|
|
65
72
|
/**
|
|
66
73
|
* Top-level embeddable product surface. Composes a framework-free `Editor`
|
|
@@ -78,6 +85,8 @@ export declare class Sobree {
|
|
|
78
85
|
/** Guards a single in-flight `document.fonts.ready` repagination so
|
|
79
86
|
* repeated triggers while fonts load coalesce into one re-run. */
|
|
80
87
|
private fontSettleScheduled;
|
|
88
|
+
/** Removes the version badge (when `versionBadge` is on). `null` otherwise. */
|
|
89
|
+
private versionBadgeTeardown;
|
|
81
90
|
private readonly listeners;
|
|
82
91
|
private readonly detachPaginate;
|
|
83
92
|
private readonly detachChange;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A fixed, non-interactive badge showing the `@sobree/core` version.
|
|
3
|
+
*
|
|
4
|
+
* Debug aid only — off by default (`SobreeOptions.versionBadge`). It lets
|
|
5
|
+
* you confirm which renderer build is actually live, e.g. after a deploy
|
|
6
|
+
* past a stale CDN / browser cache. No interactivity, no layout impact.
|
|
7
|
+
*
|
|
8
|
+
* Mounted on `document.body`, NOT the editor container: the viewport
|
|
9
|
+
* applies a zoom `transform` to its slot, which would both scale the
|
|
10
|
+
* badge and become its containing block (breaking `position: fixed`).
|
|
11
|
+
* Body-mounting keeps it screen-bottom-centre, unscaled, always visible.
|
|
12
|
+
*/
|
|
13
|
+
/** Mount the version badge and return a teardown that removes it. */
|
|
14
|
+
export declare function mountVersionBadge(doc?: Document): () => void;
|