@sobree/core 0.1.7 → 0.1.8

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.
@@ -8,11 +8,11 @@ export interface ViewportOptions {
8
8
  pinchZoomSensitivity?: number;
9
9
  onScaleChange?: (scale: number) => void;
10
10
  /**
11
- * Fires when the render tier changes an integer ≥1 chosen from the
12
- * current scale. The stage is laid out at that tier via CSS `zoom` so
13
- * text rasterises at the zoomed size rather than being blitted from a
14
- * 1× bitmap. Callers that care about layout (e.g. a paginator) should
15
- * re-run their measurement + layout pass when the tier changes.
11
+ * @deprecated Inert never fires. Layout-side zoom tiers are retired
12
+ * (see `pickRenderTier`): the tier is permanently 1, because tiered
13
+ * CSS-`zoom` re-layout rewrapped text and shifted pagination at tier
14
+ * boundaries. Zoom is a pure `transform: scale`; sharpness comes from
15
+ * the settle-phase re-raster. Retained so existing wiring compiles.
16
16
  */
17
17
  onRenderTierChange?: (tier: number) => void;
18
18
  /**
@@ -69,7 +69,8 @@ export declare class Viewport implements GestureHost {
69
69
  /** Reset pan to origin and scale to 1. */
70
70
  reset(): void;
71
71
  getScale(): number;
72
- /** Integer layout-side zoom currently applied via CSS `zoom` on the stage. */
72
+ /** @deprecated Always `1` — layout-side zoom tiers are retired (see
73
+ * `pickRenderTier`). Retained so existing wiring compiles. */
73
74
  getRenderTier(): number;
74
75
  /**
75
76
  * Fit `target` to the viewport.
package/dist/index.d.ts CHANGED
@@ -21,16 +21,15 @@ export type { ApiRangeType, RevisionSpan, BlockInfo, ChangePayload, CommandBus,
21
21
  export * from './doc/types';
22
22
  export * from './doc/builders';
23
23
  export { resolveStyleCascade } from './doc/styles';
24
- export { collectLivePartPaths, pruneOrphanParts } from './doc/parts';
25
- export { embedFontIntoDoc, removeFontFromDoc, FontFaceRegistry, generateFontKey, obfuscate, deobfuscate, isUnobfuscated, canEmbed, readFsType, } from './fonts';
24
+ export { embedFontIntoDoc, removeFontFromDoc, FontFaceRegistry, generateFontKey, obfuscate, deobfuscate, canEmbed, readFsType, } from './fonts';
26
25
  export type { EmbedFontFaces, EmbedFontOptions, EmbedFontResult, EmbedMode, FsTypeReport, } from './fonts';
27
26
  export { DEFAULT_HISTORY_CONFIG, History } from './history';
28
27
  export type { HistoryConfig, HistoryDepth, HistoryEvent, HistoryListener, } from './history';
29
- export { templateToBlocks, blocksToTemplate, pageSetupToSection, sectionToPageSetup } from './doc/pageSetupBridge';
28
+ export { templateToBlocks, blocksToTemplate } from './doc/pageSetupBridge';
30
29
  export type { Selection, BlockRef, InlinePosition, Range } from './doc/api';
31
30
  export { PaperStack } from './paperStack/paperStack';
32
31
  export { Paper } from './paperStack/paper';
33
- export { PAGE_SIZES, DEFAULT_PAGE_SETUP, resolvedDimensions, substituteVariables, zoneTemplateFor, } from './paperStack/pageSetup';
32
+ export { PAGE_SIZES, DEFAULT_PAGE_SETUP } from './paperStack/pageSetup';
34
33
  export type { PageSetup, PageSizeKey, PageZoneText, VerticalAlign, Orientation, Margins } from './paperStack/pageSetup';
35
34
  export { Viewport } from './embed/viewport';
36
35
  export type { ViewportOptions } from './embed/viewport';
@@ -41,9 +40,7 @@ export { MARK_COMMAND_DEFS, MARK_PROP, MARK_ON, toggleMark, isMarkActive, rangeA
41
40
  export type { MarkCommandDef, ToggleableMark } from './plugins/marks';
42
41
  export { enterZoneEdit } from './zoneEdit';
43
42
  export type { ZoneKind, EnterZoneEditOptions } from './zoneEdit';
44
- export { Y_BLOCK_AST_KEY, Y_BLOCK_ID_KEY, Y_BLOCK_KIND_KEY, Y_BLOCK_PROPS_KEY, Y_BLOCK_TEXT_KEY, Y_BODY_KEY, Y_META_FIELDS, Y_META_KEY, Y_PARTS_KEY, applyDocumentToYDoc, buildBlockYMap, diffApplyText, populateParagraphYMap, projectBlock, projectYDoc, seedYDoc, } from './ydoc';
45
- export { attrsToRunProps, deltaToRuns, runPropsToAttrs, runsToDelta, } from './ydoc';
46
- export type { DeltaOp, EmbedContent, LinkMark } from './ydoc';
43
+ export { applyDocumentToYDoc, projectYDoc, seedYDoc } from './ydoc';
47
44
  export { BlobCache, BlobStoreError, fetchBlobStore, inMemoryBlobStore, isBlobHash, sha256Hex, } from './blob';
48
45
  export type { BlobCacheOptions, BlobHash, BlobStore, FetchBlobStoreOptions, } from './blob';
49
46
  export { HeadlessSobree } from './headless';