@sobree/core 0.1.2 → 0.1.4
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/doc/styles.d.ts +12 -0
- package/dist/doc/types.d.ts +28 -1
- package/dist/docx/export/contentTypes.d.ts +1 -0
- package/dist/docx/export/context.d.ts +1 -1
- package/dist/docx/export/numbering.d.ts +2 -0
- package/dist/docx/import/anchoredFrames.d.ts +4 -0
- package/dist/docx/import/borders.d.ts +12 -0
- package/dist/docx/import/floatFrames.d.ts +11 -0
- package/dist/docx/import/inlineFrames.d.ts +4 -0
- package/dist/docx/import/paragraph.d.ts +10 -1
- package/dist/docx/import/paragraphs.d.ts +6 -1
- package/dist/docx/import/styles.d.ts +13 -0
- package/dist/docx/shared/drawingColor.d.ts +30 -0
- package/dist/docx/types.d.ts +4 -0
- package/dist/editor/view/docRenderer/fontFallback.d.ts +18 -5
- package/dist/editor/view/docRenderer/inline.d.ts +2 -2
- package/dist/editor/view/docRenderer/lists.d.ts +32 -11
- package/dist/index.css +1 -1
- package/dist/index.js +4728 -4297
- package/dist/index.js.map +1 -1
- package/dist/paperStack/paper.d.ts +12 -0
- package/dist/ydoc/runs.d.ts +14 -18
- package/package.json +1 -1
|
@@ -56,6 +56,18 @@ export declare class Paper {
|
|
|
56
56
|
*/
|
|
57
57
|
private readonly headerAnchors;
|
|
58
58
|
private readonly footerAnchors;
|
|
59
|
+
/**
|
|
60
|
+
* BEHIND-text layers — one per frame origin (body / header / footer).
|
|
61
|
+
* A `<wp:anchor behindDoc="1">` frame must paint BELOW the body text
|
|
62
|
+
* but above the paper background. The normal overlay layers are
|
|
63
|
+
* `isolation: isolate` stacking contexts ABOVE the content, so a
|
|
64
|
+
* frame's own `z-index: -1` can never escape them — behind-ness must
|
|
65
|
+
* be expressed by WHICH layer hosts the frame. These sit first in the
|
|
66
|
+
* paper's DOM (painting below every later positioned sibling).
|
|
67
|
+
*/
|
|
68
|
+
private readonly anchorsBehind;
|
|
69
|
+
private readonly headerAnchorsBehind;
|
|
70
|
+
private readonly footerAnchorsBehind;
|
|
59
71
|
constructor(container: HTMLElement, setup: PageSetup);
|
|
60
72
|
applySetup(setup: PageSetup): void;
|
|
61
73
|
/**
|
package/dist/ydoc/runs.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BreakRun, DrawingRun, InlineRun, RunProperties } from '../doc/types';
|
|
1
|
+
import { BreakRun, CommentRefRun, DrawingRun, FieldRun, FootnoteRefRun, HyperlinkRun, InlineRun, RunProperties, TabRun, TextRun } from '../doc/types';
|
|
2
2
|
export interface DeltaOp {
|
|
3
3
|
/** Text content (string) or embed (object literal). Y.Text differentiates by typeof. */
|
|
4
4
|
insert: string | EmbedContent;
|
|
@@ -6,24 +6,19 @@ export interface DeltaOp {
|
|
|
6
6
|
* no marks apply (Yjs preference: omit rather than set empty). */
|
|
7
7
|
attributes?: Record<string, unknown>;
|
|
8
8
|
}
|
|
9
|
-
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
__sobree: "drawing";
|
|
21
|
-
partPath: string;
|
|
22
|
-
widthEmu: number;
|
|
23
|
-
heightEmu: number;
|
|
24
|
-
placement: DrawingRun["placement"];
|
|
25
|
-
altText?: string;
|
|
9
|
+
/** Run kinds that travel as atomic embeds (everything except text,
|
|
10
|
+
* which is the Y.Text string itself, and hyperlink, which flattens to
|
|
11
|
+
* a `link` mark on its children). */
|
|
12
|
+
type EmbedRun = Exclude<InlineRun, TextRun | HyperlinkRun>;
|
|
13
|
+
/** An embed is the run itself, structurally: `kind` becomes the
|
|
14
|
+
* `__sobree` discriminator and `properties` move to the op's
|
|
15
|
+
* attributes. DERIVED from the AST type — a new field on any embed
|
|
16
|
+
* run kind is carried automatically; there is no per-field whitelist
|
|
17
|
+
* that could silently drop it. */
|
|
18
|
+
type EmbedOf<R extends EmbedRun> = Omit<R, "kind" | "properties"> & {
|
|
19
|
+
__sobree: R["kind"];
|
|
26
20
|
};
|
|
21
|
+
export type EmbedContent = EmbedOf<BreakRun> | EmbedOf<TabRun> | EmbedOf<FieldRun> | EmbedOf<DrawingRun> | EmbedOf<FootnoteRefRun> | EmbedOf<CommentRefRun>;
|
|
27
22
|
/** The `link` mark — stamped on every char inside a HyperlinkRun. */
|
|
28
23
|
export interface LinkMark {
|
|
29
24
|
href: string;
|
|
@@ -49,3 +44,4 @@ export declare function attrsToRunProps(attrs: Record<string, unknown> | undefin
|
|
|
49
44
|
* Y.Text diff to detect cells that haven't changed.
|
|
50
45
|
*/
|
|
51
46
|
export declare function deepEqual(a: unknown, b: unknown): boolean;
|
|
47
|
+
export {};
|