superdoc 2.29.0-next.9 → 2.30.0-next.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/README.md +127 -25
- package/dist/chunks/{FindReplaceSurface-BKVHzhQ4.es.js → FindReplaceSurface-BEnRLpD9.es.js} +1 -1
- package/dist/chunks/{FindReplaceSurface-BNDrJ6VS.cjs → FindReplaceSurface-DWXgWgg7.cjs} +1 -1
- package/dist/chunks/{PasswordPromptSurface-6mF6Azda.es.js → PasswordPromptSurface-DjV1JgjD.es.js} +1 -1
- package/dist/chunks/{PasswordPromptSurface-BNkaztaP.cjs → PasswordPromptSurface-VFPnQOML.cjs} +1 -1
- package/dist/chunks/{PdfViewer-aOWhUVI7.es.js → PdfViewer-C2r-K8zC.es.js} +4 -10
- package/dist/chunks/{PdfViewer-DmSkZehl.cjs → PdfViewer-DYTbPVUr.cjs} +4 -10
- package/dist/chunks/{_plugin-vue_export-helper-6MBoygIY.cjs → _plugin-vue_export-helper-BzM2_tVU.cjs} +40 -7
- package/dist/chunks/{_plugin-vue_export-helper-CsJQtMvr.es.js → _plugin-vue_export-helper-CmkaJDnr.es.js} +23 -8
- package/dist/chunks/{create-super-doc-ui-DN70aatf.cjs → create-super-doc-ui--kQBNTyt.cjs} +2424 -2302
- package/dist/chunks/{create-super-doc-ui-Bm5kmx0W.es.js → create-super-doc-ui-CbEDXtpm.es.js} +2350 -2228
- package/dist/collaboration-upgrade-engine.cjs +1 -1
- package/dist/collaboration-upgrade-engine.es.js +1 -1
- package/dist/document-api/src/changes/changes.d.ts +26 -0
- package/dist/document-api/src/changes/changes.types.d.ts +156 -0
- package/dist/document-api/src/contract/command-catalog.d.ts +1 -1
- package/dist/document-api/src/contract/operation-definitions.d.ts +51 -1
- package/dist/document-api/src/create/create.d.ts +0 -4
- package/dist/document-api/src/diff/diff.types.d.ts +6 -6
- package/dist/document-api/src/header-footers/header-footers.d.ts +1 -3
- package/dist/document-api/src/index.d.ts +6 -0
- package/dist/document-api/src/inline-semantics/token-sets.d.ts +0 -2
- package/dist/document-api/src/insert/insert.d.ts +0 -1
- package/dist/layout-engine/contracts/src/index.d.ts +3 -1
- package/dist/layout-engine/dom-contract/src/data-attrs.d.ts +4 -0
- package/dist/layout-engine/layout-bridge/src/coupled-footnote-pagination.d.ts +1 -0
- package/dist/layout-engine/layout-bridge/src/footnote-page-certificate.d.ts +1 -0
- package/dist/layout-engine/layout-bridge/src/footnote-page-planner.d.ts +5 -0
- package/dist/layout-engine/layout-bridge/src/incrementalLayout.d.ts +1 -0
- package/dist/layout-engine/layout-engine/src/footnote-page-flow.d.ts +3 -0
- package/dist/layout-engine/layout-engine/src/index.d.ts +7 -0
- package/dist/layout-engine/layout-engine/src/layout-paragraph.d.ts +5 -0
- package/dist/layout-engine/layout-engine/src/layout-table.d.ts +3 -1
- package/dist/layout-engine/layout-engine/src/layout-utils.d.ts +0 -4
- package/dist/layout-engine/layout-engine/src/paginator.d.ts +4 -0
- package/dist/layout-engine/painters/dom/src/paragraph/list-marker.d.ts +1 -1
- package/dist/layout-engine/painters/dom/src/paragraph/renderParagraphContent.d.ts +1 -1
- package/dist/layout-engine/painters/dom/src/styles.d.ts +0 -10
- package/dist/layout-engine/painters/dom/src/svg-utils.d.ts +1 -13
- package/dist/public/ui-react.cjs +1 -1
- package/dist/public/ui-react.es.js +1 -1
- package/dist/public/ui-vue.cjs +1 -1
- package/dist/public/ui-vue.es.js +1 -1
- package/dist/public/ui.cjs +1 -1
- package/dist/public/ui.es.js +1 -1
- package/dist/shared/common/Telemetry.d.ts +50 -0
- package/dist/shared/common/event-types.d.ts +13 -0
- package/dist/shared/font-system/src/bundled-face-names.d.ts +1 -0
- package/dist/shared/font-system/src/resolver.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/style.layered.css +1 -1
- package/dist/superdoc/src/components/CommentsLayer/CommentDialog.vue.d.ts +17 -33
- package/dist/superdoc/src/components/CommentsLayer/collect-removed-comment-ids.d.ts +11 -1
- package/dist/superdoc/src/components/CommentsLayer/collect-tracked-change-thread.d.ts +25 -6
- package/dist/superdoc/src/components/CommentsLayer/comment-params.d.ts +84 -0
- package/dist/superdoc/src/components/CommentsLayer/comment-urls.d.ts +1 -1
- package/dist/superdoc/src/components/CommentsLayer/commentsList/super-comments-list.d.ts +23 -20
- package/dist/superdoc/src/components/CommentsLayer/helpers.d.ts +1 -4
- package/dist/superdoc/src/components/CommentsLayer/tracked-change-threading.d.ts +16 -1
- package/dist/superdoc/src/components/CommentsLayer/use-comment.d.ts +15 -95
- package/dist/superdoc/src/components/Whiteboard/WhiteboardLayer.vue.d.ts +4 -5
- package/dist/superdoc/src/components/Whiteboard/WhiteboardPage.vue.d.ts +3 -4
- package/dist/superdoc/src/components/Whiteboard/use-whiteboard.d.ts +30 -9
- package/dist/superdoc/src/components/Whiteboard/whiteboard-types.d.ts +2 -0
- package/dist/superdoc/src/components/surfaces/watermark-surface-runtime.d.ts +7 -7
- package/dist/superdoc/src/composables/use-comment-small-screen.d.ts +11 -7
- package/dist/superdoc/src/composables/use-compact-comment-popover.d.ts +44 -18
- package/dist/superdoc/src/composables/use-document.d.ts +51 -99
- package/dist/superdoc/src/composables/use-find-replace.d.ts +13 -3
- package/dist/superdoc/src/composables/use-password-prompt.d.ts +1 -1
- package/dist/superdoc/src/composables/use-viewport-fit.d.ts +62 -26
- package/dist/superdoc/src/core/SuperDoc.d.ts +15 -6
- package/dist/superdoc/src/core/collaboration/cdn-collaboration-comment-map.d.ts +1 -0
- package/dist/superdoc/src/core/collaboration/collaboration-comment-map.d.ts +2 -0
- package/dist/superdoc/src/core/collaboration/helpers.d.ts +1 -1
- package/dist/superdoc/src/core/document-open-telemetry.d.ts +1 -1
- package/dist/superdoc/src/core/editor-runtime/v2/v2-editor-runtime-adapter.d.ts +1 -0
- package/dist/superdoc/src/core/pdf/pdf-adapter.d.ts +6 -2
- package/dist/superdoc/src/core/types/index.d.ts +108 -43
- package/dist/superdoc/src/core/v2-integration/browser-peer-runtime.d.ts +5 -3
- package/dist/superdoc/src/core/v2-integration/cdn-engine-loader.d.ts +3 -13
- package/dist/superdoc/src/core/v2-integration/internal-vue-runtime.d.ts +64 -59
- package/dist/superdoc/src/helpers/deprecation.d.ts +12 -3
- package/dist/superdoc/src/helpers/object-guards.d.ts +2 -0
- package/dist/superdoc/src/helpers/v2-author-required-rejection.d.ts +8 -11
- package/dist/superdoc/src/helpers/v2-bulk-decision-event.d.ts +9 -7
- package/dist/superdoc/src/helpers/v2-keyboard-edit-rejection.d.ts +8 -7
- package/dist/superdoc/src/helpers/v2-mutation-exception.d.ts +12 -8
- package/dist/superdoc/src/helpers/v2-review-geometry-delivery.d.ts +22 -0
- package/dist/superdoc/src/helpers/v2-review-target.d.ts +11 -1
- package/dist/superdoc/src/helpers/v2-selection-sync.d.ts +40 -14
- package/dist/superdoc/src/helpers/v2-typing-mutation-event.d.ts +14 -5
- package/dist/superdoc/src/icons.d.ts +11 -19
- package/dist/superdoc/src/internal/diagnostics/translate-diagnostic.d.ts +6 -4
- package/dist/superdoc/src/internal/toolbar/built-in/PageNumberMenu.vue.d.ts +25 -15
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarButton.vue.d.ts +1 -0
- package/dist/superdoc/src/internal/toolbar/built-in/constants.d.ts +3 -1
- package/dist/superdoc/src/internal/toolbar/built-in/font-options.d.ts +15 -1
- package/dist/superdoc/src/internal/toolbar/built-in/font-typeahead.d.ts +37 -7
- package/dist/superdoc/src/internal/toolbar/built-in/general.d.ts +12 -1
- package/dist/superdoc/src/internal/toolbar/built-in/helpers.d.ts +9 -4
- package/dist/superdoc/src/internal/toolbar/built-in/list-style-buttons.d.ts +2 -2
- package/dist/superdoc/src/internal/toolbar/built-in/page-number-feedback.d.ts +4 -5
- package/dist/superdoc/src/internal/toolbar/built-in/scroll-helpers.d.ts +3 -4
- package/dist/superdoc/src/internal/toolbar/built-in/toolbarIcons.d.ts +78 -145
- package/dist/superdoc/src/internal/toolbar/built-in/url-safety.d.ts +11 -3
- package/dist/superdoc/src/internal/toolbar/built-in-toolbar.d.ts +4 -3
- package/dist/superdoc/src/internal/toolbar/image-upload.d.ts +29 -39
- package/dist/superdoc/src/public/content-control-ref.d.ts +12 -0
- package/dist/superdoc/src/public/index.d.cts +16 -0
- package/dist/superdoc/src/public/index.d.ts +3 -0
- package/dist/superdoc/src/public/ui/async-read-cache.d.ts +32 -0
- package/dist/superdoc/src/public/ui/block-commands.d.ts +39 -0
- package/dist/superdoc/src/public/ui/command-results.d.ts +39 -0
- package/dist/superdoc/src/public/ui/create-super-doc-ui.d.ts +1 -17
- package/dist/superdoc/src/public/ui/document-change-records.d.ts +7 -0
- package/dist/superdoc/src/public/ui/entity-rows.d.ts +14 -0
- package/dist/superdoc/src/public/ui/font-options.d.ts +7 -0
- package/dist/superdoc/src/public/ui/format-painter-helpers.d.ts +2 -8
- package/dist/superdoc/src/public/ui/format-painter-state.d.ts +33 -0
- package/dist/superdoc/src/public/ui/heavy-read-policy.d.ts +11 -0
- package/dist/superdoc/src/public/ui/host-events.d.ts +3 -0
- package/dist/superdoc/src/public/ui/inline-values.d.ts +79 -0
- package/dist/superdoc/src/public/ui/loose-record.d.ts +4 -0
- package/dist/superdoc/src/public/ui/selection-targets.d.ts +45 -0
- package/dist/superdoc/src/public/ui/shared-tracked-changes-catalog.d.ts +16 -0
- package/dist/superdoc/src/public/ui/tracked-change-ids.d.ts +51 -0
- package/dist/superdoc/src/public/ui/types.d.ts +12 -2
- package/dist/superdoc/src/public/ui/ui-bench-timing.d.ts +9 -0
- package/dist/superdoc/src/public/ui.d.cts +14 -0
- package/dist/superdoc/src/public/ui.d.ts +1 -1
- package/dist/superdoc/src/stores/comments-store.d.ts +23006 -542
- package/dist/superdoc/src/stores/helpers/comment-document-scope.d.ts +22 -0
- package/dist/superdoc/src/stores/helpers/comment-grouping.d.ts +1 -1
- package/dist/superdoc/src/stores/helpers/comment-identity.d.ts +10 -10
- package/dist/superdoc/src/stores/helpers/pending-selection-snapshot.d.ts +17 -0
- package/dist/superdoc/src/stores/helpers/review-presentation.d.ts +90 -0
- package/dist/superdoc/src/stores/helpers/tracked-change-compaction.d.ts +16 -0
- package/dist/superdoc/src/stores/helpers/tracked-change-decision.d.ts +45 -0
- package/dist/superdoc/src/stores/helpers/tracked-change-identity.d.ts +4 -2
- package/dist/superdoc/src/stores/helpers/tracked-change-row-values.d.ts +1 -8
- package/dist/superdoc/src/stores/helpers/tracked-change-thread-index.d.ts +1 -1
- package/dist/superdoc/src/stores/helpers/v2-review-adapters.d.ts +147 -0
- package/dist/superdoc/src/stores/superdoc-store.d.ts +12 -2895
- package/dist/superdoc.cjs +1019 -844
- package/dist/superdoc.es.js +931 -756
- package/dist/word-layout/src/marker-utils.d.ts +0 -5
- package/dist/word-layout/src/unit-conversions.d.ts +0 -1
- package/dist-cdn/style.layered.css +1 -1
- package/dist-cdn/superdoc.min.css +1 -1
- package/dist-cdn/superdoc.min.js +38 -42
- package/package.json +13 -3
- package/dist/document-api/src/diff/index.d.ts +0 -3
- package/dist/document-api/src/write/locator.d.ts +0 -24
- package/dist/layout-engine/painters/dom/src/features/feature-registry.d.ts +0 -41
- package/dist/superdoc/src/internal/toolbar/built-in/format-negation.d.ts +0 -5
- package/dist/superdoc/src/main.d.ts +0 -1
- package/dist/word-layout/src/tab-layout.d.ts +0 -193
|
@@ -61,10 +61,6 @@ export declare const isEmptyTextParagraph: (block: ParagraphBlock) => boolean;
|
|
|
61
61
|
*/
|
|
62
62
|
export declare const shouldSuppressSpacingForEmpty: (block: ParagraphBlock, side: "before" | "after") => boolean;
|
|
63
63
|
export declare function normalizeLines(measure: ParagraphMeasure): ParagraphMeasure['lines'];
|
|
64
|
-
export declare function sliceLines(lines: ParagraphMeasure['lines'], startIndex: number, availableHeight: number): {
|
|
65
|
-
toLine: number;
|
|
66
|
-
height: number;
|
|
67
|
-
};
|
|
68
64
|
export type { LinePmRange };
|
|
69
65
|
/** A marker belongs to the first measured line containing its run. */
|
|
70
66
|
export declare const findLineIndexForRunOrdinal: (lines: readonly Line[] | undefined, runOrdinal: number) => number | null;
|
|
@@ -55,7 +55,9 @@ export type PageState = {
|
|
|
55
55
|
refId: string;
|
|
56
56
|
fullHeight: number;
|
|
57
57
|
firstLineHeight: number;
|
|
58
|
+
rowIndex?: number;
|
|
58
59
|
}>;
|
|
60
|
+
footnoteRequiredStartRefId?: string;
|
|
59
61
|
};
|
|
60
62
|
export type PaginatorOptions = {
|
|
61
63
|
margins: {
|
|
@@ -91,6 +93,7 @@ export type PaginatorOptions = {
|
|
|
91
93
|
footnoteDemandThisPage: number;
|
|
92
94
|
footnoteRefsThisPage: number;
|
|
93
95
|
footnoteAnchorsThisPage: readonly PageState['footnoteAnchorsThisPage'][number][];
|
|
96
|
+
footnoteRequiredStartRefId?: string;
|
|
94
97
|
};
|
|
95
98
|
pageNumberOffset?: number;
|
|
96
99
|
createPage(number: number, pageMargins: PageMargins, pageSizeOverride?: {
|
|
@@ -114,6 +117,7 @@ export type PaginatorOptions = {
|
|
|
114
117
|
getFootnoteReserveForPage?: (pageIndex: number) => number;
|
|
115
118
|
/** Coupled note-only continuation pages are real content before note injection. */
|
|
116
119
|
keepNoteOnlyPages?: boolean;
|
|
120
|
+
initializeEmptyBodyBottom?: boolean;
|
|
117
121
|
};
|
|
118
122
|
export declare class PaginationEarlyStop extends Error {
|
|
119
123
|
constructor();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ResolvePhysicalFamily } from '../../../../../shared/font-system/src/index.js';
|
|
2
2
|
import { ParagraphMeasure, ResolvedListMarkerItem, SourceAnchor } from '../../../../contracts/src/index.js';
|
|
3
|
-
import { MinimalMarker, MinimalWordLayout, ResolvedListMarkerGeometry } from '
|
|
3
|
+
import { MinimalMarker, MinimalWordLayout, ResolvedListMarkerGeometry } from '../../../../../shared/common/list-marker-utils.js';
|
|
4
4
|
import { MarkerTrackedChangeView } from './marker-tracked-change.js';
|
|
5
5
|
import { TrackedChangesRenderConfig } from '../runs/types.js';
|
|
6
6
|
type PainterListTextStartParams = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RenderWork } from '../render-work.js';
|
|
2
2
|
import { DropCapDescriptor, Line, ParagraphBlock, ParagraphMeasure, ResolvedParagraphContent, Run, SdtMetadata, SourceAnchor } from '../../../../contracts/src/index.js';
|
|
3
|
-
import { MinimalWordLayout } from '
|
|
3
|
+
import { MinimalWordLayout } from '../../../../../shared/common/list-marker-utils.js';
|
|
4
4
|
import { ResolvePhysicalFamily } from '../../../../../shared/font-system/src/index.js';
|
|
5
5
|
import { SdtAncestorOptions, SdtBoundaryOptions } from '../sdt/container.js';
|
|
6
6
|
import { BetweenBorderInfo } from './borders/index.js';
|
|
@@ -57,20 +57,10 @@ export type SurfaceStylePreflightEntry = {
|
|
|
57
57
|
markerAttribute: string;
|
|
58
58
|
cssText: string;
|
|
59
59
|
};
|
|
60
|
-
export declare const ensurePrintStyles: (doc: Document | null | undefined) => void;
|
|
61
60
|
export declare const ensureDocumentSurfaceStyles: (doc: Document | null | undefined, styleNonce?: string) => void;
|
|
62
61
|
export declare const ensureLinkStyles: (doc: Document | null | undefined) => void;
|
|
63
62
|
export declare const ensureTrackChangeStyles: (doc: Document | null | undefined) => void;
|
|
64
|
-
export declare const ensureFormattingMarksStyles: (doc: Document | null | undefined) => void;
|
|
65
63
|
export declare const ensureSdtContainerStyles: (doc: Document | null | undefined) => void;
|
|
66
|
-
export declare const ensureFieldAnnotationStyles: (doc: Document | null | undefined) => void;
|
|
67
|
-
/**
|
|
68
|
-
* Injects image selection highlight styles into the document head.
|
|
69
|
-
* Ensures styles are only injected once per document lifecycle.
|
|
70
|
-
* @param {Document | null | undefined} doc - The document to inject styles into
|
|
71
|
-
* @returns {void}
|
|
72
|
-
*/
|
|
73
|
-
export declare const ensureImageSelectionStyles: (doc: Document | null | undefined) => void;
|
|
74
64
|
/**
|
|
75
65
|
* Injects the MathML <menclose> polyfill into the document head. Required
|
|
76
66
|
* because no browser paints menclose natively (MathML Core dropped it). See
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GradientFill, SolidFillWithAlpha
|
|
1
|
+
import { GradientFill, SolidFillWithAlpha } from '../../../contracts/src/index.js';
|
|
2
2
|
/**
|
|
3
3
|
* Validates and sanitizes a hex color string to prevent XSS attacks.
|
|
4
4
|
*
|
|
@@ -27,10 +27,6 @@ export declare function validateHexColor(color: string): string | undefined;
|
|
|
27
27
|
* Creates an SVG gradient element (linear or radial)
|
|
28
28
|
*/
|
|
29
29
|
export declare function createGradient(gradientData: GradientFill, gradientId: string): SVGLinearGradientElement | SVGRadialGradientElement | null;
|
|
30
|
-
/**
|
|
31
|
-
* Creates an SVG foreignObject with formatted text content
|
|
32
|
-
*/
|
|
33
|
-
export declare function createTextElement(textContent: ShapeTextContent, textAlign: string, width: number, height: number): SVGForeignObjectElement;
|
|
34
30
|
/**
|
|
35
31
|
* Applies a gradient to all filled elements in an SVG.
|
|
36
32
|
*
|
|
@@ -75,14 +71,6 @@ export declare function applyGradientToSVG(svg: SVGElement, gradientData: Gradie
|
|
|
75
71
|
* ```
|
|
76
72
|
*/
|
|
77
73
|
export declare function applyAlphaToSVG(svg: SVGElement, alphaData: SolidFillWithAlpha): void;
|
|
78
|
-
/**
|
|
79
|
-
* Generates CSS transform strings from shape attributes
|
|
80
|
-
*/
|
|
81
|
-
export declare function generateTransforms(attrs: {
|
|
82
|
-
rotation?: number;
|
|
83
|
-
flipH?: boolean;
|
|
84
|
-
flipV?: boolean;
|
|
85
|
-
}): string[];
|
|
86
74
|
/**
|
|
87
75
|
* Generates a unique gradient ID with optional prefix.
|
|
88
76
|
*
|
package/dist/public/ui-react.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_create_super_doc_ui = require("../chunks/create-super-doc-ui
|
|
2
|
+
const require_create_super_doc_ui = require("../chunks/create-super-doc-ui--kQBNTyt.cjs");
|
|
3
3
|
const require_slice_source = require("../chunks/slice-source-CFaqq0Vo.cjs");
|
|
4
4
|
let react = require("react");
|
|
5
5
|
let use_sync_external_store_shim = require("use-sync-external-store/shim");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createSuperDocUI } from "../chunks/create-super-doc-ui-
|
|
1
|
+
import { t as createSuperDocUI } from "../chunks/create-super-doc-ui-CbEDXtpm.es.js";
|
|
2
2
|
import { t as toSliceSource } from "../chunks/slice-source-gfOhG2MW.es.js";
|
|
3
3
|
import { createContext, createElement, useCallback, useContext, useEffect, useRef, useState } from "react";
|
|
4
4
|
import { useSyncExternalStore } from "use-sync-external-store/shim";
|
package/dist/public/ui-vue.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_create_super_doc_ui = require("../chunks/create-super-doc-ui
|
|
2
|
+
const require_create_super_doc_ui = require("../chunks/create-super-doc-ui--kQBNTyt.cjs");
|
|
3
3
|
const require_slice_source = require("../chunks/slice-source-CFaqq0Vo.cjs");
|
|
4
4
|
let superdoc_entry_vue = require("vue");
|
|
5
5
|
//#region src/public/ui/vue.ts
|
package/dist/public/ui-vue.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createSuperDocUI } from "../chunks/create-super-doc-ui-
|
|
1
|
+
import { t as createSuperDocUI } from "../chunks/create-super-doc-ui-CbEDXtpm.es.js";
|
|
2
2
|
import { t as toSliceSource } from "../chunks/slice-source-gfOhG2MW.es.js";
|
|
3
3
|
import { computed, inject, onScopeDispose, provide, shallowRef, toRaw, toValue, watch } from "vue";
|
|
4
4
|
//#region src/public/ui/vue.ts
|
package/dist/public/ui.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_create_super_doc_ui = require("../chunks/create-super-doc-ui
|
|
2
|
+
const require_create_super_doc_ui = require("../chunks/create-super-doc-ui--kQBNTyt.cjs");
|
|
3
3
|
//#region ../document-api/src/types/receipt.ts
|
|
4
4
|
/** Read a known failure.details.reason without assuming every failure has one. */
|
|
5
5
|
function getDocumentApiRejectionReason(details) {
|
package/dist/public/ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o as BUILT_IN_COMMAND_IDS, p as shallowEqual, t as createSuperDocUI } from "../chunks/create-super-doc-ui-CbEDXtpm.es.js";
|
|
2
2
|
//#region ../document-api/src/types/receipt.ts
|
|
3
3
|
/** Read a known failure.details.reason without assuming every failure has one. */
|
|
4
4
|
function getDocumentApiRejectionReason(details) {
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tracks document opens for usage-based billing.
|
|
3
|
+
* Sends each event immediately. Delivery failures do not affect the Editor.
|
|
4
|
+
*/
|
|
5
|
+
export interface TelemetryConfig {
|
|
6
|
+
enabled: boolean;
|
|
7
|
+
endpoint?: string;
|
|
8
|
+
licenseKey?: string | null;
|
|
9
|
+
metadata?: Record<string, unknown>;
|
|
10
|
+
}
|
|
11
|
+
export interface BrowserInfo {
|
|
12
|
+
userAgent: string;
|
|
13
|
+
currentUrl: string;
|
|
14
|
+
hostname: string;
|
|
15
|
+
screenSize: {
|
|
16
|
+
width: number;
|
|
17
|
+
height: number;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export interface DocumentOpenEvent {
|
|
21
|
+
timestamp: string;
|
|
22
|
+
documentId: string | null;
|
|
23
|
+
documentCreatedAt: string | null;
|
|
24
|
+
}
|
|
25
|
+
export interface TelemetryPayload {
|
|
26
|
+
superdocVersion: string;
|
|
27
|
+
browserInfo: BrowserInfo;
|
|
28
|
+
metadata?: Record<string, unknown>;
|
|
29
|
+
events: DocumentOpenEvent[];
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Community license key for AGPLv3 / evaluation usage.
|
|
33
|
+
*/
|
|
34
|
+
export declare const COMMUNITY_LICENSE_KEY = "community-and-eval-agplv3";
|
|
35
|
+
export declare class Telemetry {
|
|
36
|
+
private enabled;
|
|
37
|
+
private endpoint;
|
|
38
|
+
private superdocVersion;
|
|
39
|
+
private licenseKey;
|
|
40
|
+
private metadata?;
|
|
41
|
+
constructor(config: TelemetryConfig);
|
|
42
|
+
private getBrowserInfo;
|
|
43
|
+
/**
|
|
44
|
+
* Sends a document-open event without waiting for delivery.
|
|
45
|
+
* @param documentId Document identifier, or `null` when unavailable.
|
|
46
|
+
* @param documentCreatedAt Value from `dcterms:created`, or `null` when unavailable.
|
|
47
|
+
*/
|
|
48
|
+
trackDocumentOpen(documentId: string | null, documentCreatedAt?: string | null): void;
|
|
49
|
+
private sendEvent;
|
|
50
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const comments_module_events: {
|
|
2
|
+
readonly RESOLVED: "resolved";
|
|
3
|
+
readonly NEW: "new";
|
|
4
|
+
readonly ADD: "add";
|
|
5
|
+
readonly UPDATE: "update";
|
|
6
|
+
readonly DELETED: "deleted";
|
|
7
|
+
readonly PENDING: "pending";
|
|
8
|
+
readonly SELECTED: "selected";
|
|
9
|
+
readonly COMMENTS_LIST: "comments-list";
|
|
10
|
+
readonly CHANGE_ACCEPTED: "change-accepted";
|
|
11
|
+
readonly CHANGE_REJECTED: "change-rejected";
|
|
12
|
+
};
|
|
13
|
+
export type CommentEvent = (typeof comments_module_events)[keyof typeof comments_module_events];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const BUNDLED_FACE_FAMILIES: Readonly<Record<string, string>>;
|
|
@@ -87,6 +87,7 @@ export declare function insertFontFamilyBeforeGeneric(cssFontFamily: string, fal
|
|
|
87
87
|
export declare class FontResolver {
|
|
88
88
|
#private;
|
|
89
89
|
constructor(activation?: BundledActivation);
|
|
90
|
+
resolveBundledAlias(logicalFamily: string): string | undefined;
|
|
90
91
|
/**
|
|
91
92
|
* Apply this document's bundled-font activation, derived from the editor's `fonts` config.
|
|
92
93
|
* Config-time only: the document font controller calls this before the first measure. Busts the
|