@owomark/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.
- package/dist/.build-manifest.json +9 -8
- package/dist/browser.d.ts +2 -2
- package/dist/{chunk-GA5EFGSZ.js → chunk-WVGCRIJO.js} +66 -1
- package/dist/{editor-core-DbPhn6aI.d.ts → editor-core-BSoeizSI.d.ts} +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.js +1 -1
- package/dist/internal/dom-adapter.d.ts +3 -3
- package/dist/internal/dom-adapter.js +1 -1
- package/dist/{public-zMo7BR9l.d.ts → public-cCK3rvQc.d.ts} +4 -0
- package/dist/{registry-C849sxCo.d.ts → registry-6IkGJsLt.d.ts} +1 -1
- package/dist/semantic/components/index.d.ts +3 -3
- package/dist/semantic/editor/index.d.ts +2 -2
- package/dist/semantic/index.d.ts +2 -2
- package/dist/semantic/runtime/index.d.ts +2 -2
- package/dist/semantic/shared/index.d.ts +3 -3
- package/dist/semantic/syntax/index.d.ts +2 -2
- package/dist/{types-DMqYF6Zn.d.ts → types-BdOo-u1R.d.ts} +1 -1
- package/package.json +1 -1
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"packageName": "@owomark/core",
|
|
4
4
|
"packagePath": "owomark/packages/owomark-core",
|
|
5
|
-
"packageFingerprint": "
|
|
6
|
-
"workspaceFingerprint": "
|
|
7
|
-
"builtAt": "2026-04-
|
|
5
|
+
"packageFingerprint": "8db4cbc05bde390fdc26e52f8d57f3f0fd5bfbf27af1ef9991bf015a3f7b5f69",
|
|
6
|
+
"workspaceFingerprint": "947c542dce3fedf4a242f46f580a35ff336c5a64ac6448d24339650ad9dac6a1",
|
|
7
|
+
"builtAt": "2026-04-23T10:30:21.564Z",
|
|
8
8
|
"builderVersion": "2026-04-22-industrialization-v1",
|
|
9
9
|
"inputFiles": [
|
|
10
10
|
"owomark/package.json",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"owomark/packages/owomark-core/src/core/core-types.ts",
|
|
31
31
|
"owomark/packages/owomark-core/src/core/editor-core.ts",
|
|
32
32
|
"owomark/packages/owomark-core/src/core/index.ts",
|
|
33
|
+
"owomark/packages/owomark-core/src/custom/cards-family.ts",
|
|
33
34
|
"owomark/packages/owomark-core/src/index.ts",
|
|
34
35
|
"owomark/packages/owomark-core/src/internal/clipboard/paste.ts",
|
|
35
36
|
"owomark/packages/owomark-core/src/internal/commands/word-boundary.ts",
|
|
@@ -97,11 +98,11 @@
|
|
|
97
98
|
"dist/chunk-MPIWZLI3.js",
|
|
98
99
|
"dist/chunk-OOH46GIF.js",
|
|
99
100
|
"dist/chunk-ROJILHRQ.js",
|
|
100
|
-
"dist/chunk-SHVM2TPY.js",
|
|
101
101
|
"dist/chunk-WFPUIPWU.js",
|
|
102
102
|
"dist/chunk-WXVKSKP3.js",
|
|
103
|
+
"dist/chunk-Y7X2CZZ7.js",
|
|
103
104
|
"dist/chunk-YZYJIXGO.js",
|
|
104
|
-
"dist/editor-core-
|
|
105
|
+
"dist/editor-core-BSoeizSI.d.ts",
|
|
105
106
|
"dist/index.d.ts",
|
|
106
107
|
"dist/index.js",
|
|
107
108
|
"dist/internal/clipboard/paste.d.ts",
|
|
@@ -110,8 +111,8 @@
|
|
|
110
111
|
"dist/internal/commands/word-boundary.js",
|
|
111
112
|
"dist/internal/dom-adapter.d.ts",
|
|
112
113
|
"dist/internal/dom-adapter.js",
|
|
113
|
-
"dist/public-
|
|
114
|
-
"dist/registry-
|
|
114
|
+
"dist/public-cCK3rvQc.d.ts",
|
|
115
|
+
"dist/registry-6IkGJsLt.d.ts",
|
|
115
116
|
"dist/semantic/components/index.d.ts",
|
|
116
117
|
"dist/semantic/components/index.js",
|
|
117
118
|
"dist/semantic/editor/index.d.ts",
|
|
@@ -124,7 +125,7 @@
|
|
|
124
125
|
"dist/semantic/shared/index.js",
|
|
125
126
|
"dist/semantic/syntax/index.d.ts",
|
|
126
127
|
"dist/semantic/syntax/index.js",
|
|
127
|
-
"dist/types-
|
|
128
|
+
"dist/types-BdOo-u1R.d.ts"
|
|
128
129
|
],
|
|
129
130
|
"localDependencyFingerprints": {}
|
|
130
131
|
}
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { O as OwoMarkSelection, a as OwoMarkDocument, D as DirtyRange, I as InlineTokenType, e as InlineToken, f as PreviewBlock } from './public-
|
|
2
|
-
import { O as OwoMarkScrollProjectionSnapshot, a as OwoMarkSurfaceGeometrySnapshot, b as OwoMarkScrollController } from './types-
|
|
1
|
+
import { O as OwoMarkSelection, a as OwoMarkDocument, D as DirtyRange, I as InlineTokenType, e as InlineToken, f as PreviewBlock } from './public-cCK3rvQc.js';
|
|
2
|
+
import { O as OwoMarkScrollProjectionSnapshot, a as OwoMarkSurfaceGeometrySnapshot, b as OwoMarkScrollController } from './types-BdOo-u1R.js';
|
|
3
3
|
|
|
4
4
|
declare function invalidateBlockCache(root: HTMLElement): void;
|
|
5
5
|
|
|
@@ -1634,10 +1634,73 @@ function blockToConformance(block, referenceDefinitions) {
|
|
|
1634
1634
|
return null;
|
|
1635
1635
|
}
|
|
1636
1636
|
}
|
|
1637
|
+
function sameConformanceAncestry(left, right) {
|
|
1638
|
+
return left.length === right.length && left.every((frame, index) => frame.kind === right[index]?.kind && frame.depth === right[index]?.depth);
|
|
1639
|
+
}
|
|
1640
|
+
function isSoftBreakMergeCandidate(block) {
|
|
1641
|
+
return (block.type === "paragraph" || block.type === "blockquote") && block.raw.trim() !== "";
|
|
1642
|
+
}
|
|
1643
|
+
function mergeSoftBreakConformanceBlocks(blocks, startIndex, referenceDefinitions) {
|
|
1644
|
+
const firstBlock = blocks[startIndex];
|
|
1645
|
+
if (!isSoftBreakMergeCandidate(firstBlock)) {
|
|
1646
|
+
return null;
|
|
1647
|
+
}
|
|
1648
|
+
const firstConformance = blockToConformance(firstBlock, referenceDefinitions);
|
|
1649
|
+
if (firstConformance == null || firstConformance.kind !== "paragraph" && firstConformance.kind !== "blockquote") {
|
|
1650
|
+
return null;
|
|
1651
|
+
}
|
|
1652
|
+
const inline = [...firstConformance.inline];
|
|
1653
|
+
let sourceBlockCount = 1;
|
|
1654
|
+
let nextIndex = startIndex + 1;
|
|
1655
|
+
while (nextIndex < blocks.length) {
|
|
1656
|
+
const nextBlock = blocks[nextIndex];
|
|
1657
|
+
if (!isSoftBreakMergeCandidate(nextBlock) || (firstBlock.type === "paragraph" && nextBlock.type !== "paragraph" || firstBlock.type === "blockquote" && nextBlock.type !== "blockquote")) {
|
|
1658
|
+
break;
|
|
1659
|
+
}
|
|
1660
|
+
const nextConformance = blockToConformance(nextBlock, referenceDefinitions);
|
|
1661
|
+
if (nextConformance == null || nextConformance.kind !== firstConformance.kind || !sameConformanceAncestry(firstConformance.ancestry, nextConformance.ancestry)) {
|
|
1662
|
+
break;
|
|
1663
|
+
}
|
|
1664
|
+
if (firstConformance.kind === "blockquote" && nextConformance.kind === "blockquote" && nextConformance.depth !== firstConformance.depth) {
|
|
1665
|
+
break;
|
|
1666
|
+
}
|
|
1667
|
+
inline.push({ kind: "softBreak" });
|
|
1668
|
+
inline.push(...nextConformance.inline);
|
|
1669
|
+
sourceBlockCount += 1;
|
|
1670
|
+
nextIndex += 1;
|
|
1671
|
+
}
|
|
1672
|
+
return {
|
|
1673
|
+
block: sourceBlockCount === 1 ? firstConformance : {
|
|
1674
|
+
...firstConformance,
|
|
1675
|
+
inline,
|
|
1676
|
+
sourceBlockCount
|
|
1677
|
+
},
|
|
1678
|
+
nextIndex
|
|
1679
|
+
};
|
|
1680
|
+
}
|
|
1637
1681
|
function buildConformanceDocument(blocks) {
|
|
1638
1682
|
const referenceDefinitions = [...collectReferenceDefinitionMap(blocks).values()];
|
|
1683
|
+
const conformanceBlocks = [];
|
|
1684
|
+
for (let index = 0; index < blocks.length; ) {
|
|
1685
|
+
const block = blocks[index];
|
|
1686
|
+
if (block.type === "paragraph" && block.raw.trim() === "") {
|
|
1687
|
+
index += 1;
|
|
1688
|
+
continue;
|
|
1689
|
+
}
|
|
1690
|
+
const merged = mergeSoftBreakConformanceBlocks(blocks, index, referenceDefinitions);
|
|
1691
|
+
if (merged) {
|
|
1692
|
+
conformanceBlocks.push(merged.block);
|
|
1693
|
+
index = merged.nextIndex;
|
|
1694
|
+
continue;
|
|
1695
|
+
}
|
|
1696
|
+
const conformance = blockToConformance(block, referenceDefinitions);
|
|
1697
|
+
if (conformance) {
|
|
1698
|
+
conformanceBlocks.push(conformance);
|
|
1699
|
+
}
|
|
1700
|
+
index += 1;
|
|
1701
|
+
}
|
|
1639
1702
|
return {
|
|
1640
|
-
blocks:
|
|
1703
|
+
blocks: conformanceBlocks
|
|
1641
1704
|
};
|
|
1642
1705
|
}
|
|
1643
1706
|
function hydrateOwoMarkDocument(blocks) {
|
|
@@ -1662,6 +1725,8 @@ function inlineToMdast(nodes) {
|
|
|
1662
1725
|
switch (node.kind) {
|
|
1663
1726
|
case "text":
|
|
1664
1727
|
return { type: "text", value: node.text };
|
|
1728
|
+
case "softBreak":
|
|
1729
|
+
return { type: "text", value: "\n" };
|
|
1665
1730
|
case "strong":
|
|
1666
1731
|
return { type: "strong", children: inlineToMdast(node.children) };
|
|
1667
1732
|
case "emphasis":
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as OwoMarkDocument, O as OwoMarkSelection, V as VirtualSelection, C as CompositionState, B as BlockType, b as BlockContext, c as BlockInsertType, d as BlockContextListener } from './public-
|
|
1
|
+
import { a as OwoMarkDocument, O as OwoMarkSelection, V as VirtualSelection, C as CompositionState, B as BlockType, b as BlockContext, c as BlockInsertType, d as BlockContextListener } from './public-cCK3rvQc.js';
|
|
2
2
|
|
|
3
3
|
type CoreSelectionSnapshot = {
|
|
4
4
|
linear: OwoMarkSelection | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { C as CoreStateSnapshot, S as SlashState, a as CommandRegistry } from './editor-core-
|
|
2
|
-
export { B as BeforeInputIntent, b as CommandContext, c as CommandDefinition, d as CoreApplyAction, e as CoreApplyResult, f as CoreSelectionSnapshot, g as CreateOwoMarkCoreOptions, D as DocumentChangeCallback, I as IndentMode, h as IndentResult, K as KeyDownIntent, O as OwoMarkCore, P as PasteIntent, i as SlashStateListener, j as SlashTriggerInfo, k as applyMarkdownIndent, l as createOwoMarkCore, r as resolveIndentSize } from './editor-core-
|
|
3
|
-
import { g as BlockNode, h as BlockContextType, O as OwoMarkSelection, i as ContainerBlockSyntaxExtension, J as JsonValue, j as ParseMarkdownOptions, a as OwoMarkDocument, k as ConformanceDocument, D as DirtyRange, P as PreviewBlockKind, f as PreviewBlock, l as BlockTransform, m as OwoMarkSharedStateController, n as InlineExtensionPriority, o as InlineSyntaxExtension, T as TokenizeInlineOptions, e as InlineToken, p as TokenizeBlockOptions } from './public-
|
|
4
|
-
export { b as BlockContext, d as BlockContextListener, q as BlockExtensionPriority, c as BlockInsertType, r as BlockSyntaxExtension, B as BlockType, s as CLASSLESS_INLINE_TOKEN_TYPES, C as CompositionState, t as ConformanceBlockNode, u as ConformanceContainerNode, v as ConformanceInlineNode, w as ConformanceTableCell, x as ConformanceTableRow, y as ContainerBlockExtensionPriority, z as ContainerFrame, A as ContainerKind, E as CustomBlockRuntimeBinding, F as Decorator, G as DecoratorType, H as HeadingLevel, K as HistoryEntry, L as INLINE_TOKEN_TYPES, M as InlineExtensionHostBlockType, N as InlineScannerMatch, I as InlineTokenType, Q as JsonPrimitive, R as Leaf, S as OwoMarkCommands, U as OwoMarkDocumentTrace, W as OwoMarkEditorLike, X as OwoMarkSharedState, Y as OwoMarkSharedStateStore, Z as ParserDiffScope, _ as ParserExtensionConsumer, $ as ParserExtensionParent, a0 as ParserExtensionScope, a1 as PreviewDirtyReason, a2 as SideAnnotationMemberBlock, a3 as SideAnnotationMemberBlockType, a4 as SideAnnotationSourceKind, a5 as TokenizeBlockExtensionOptions, a6 as VirtualPosition, V as VirtualSelection, a7 as getBlockIndexForPosition, a8 as isVirtualSelectionCollapsed, a9 as linearToVirtual, aa as linearToVirtualPosition, ab as virtualPositionToLinear, ac as virtualPositionsEqual, ad as virtualToLinear } from './public-
|
|
5
|
-
export { O as OwoComponentDescriptor, d as OwoEditorEntryDescriptor, f as OwoFeatureFlagKey, g as OwoRuntimeBlockDescriptor, h as OwoSyntaxDescriptor } from './registry-
|
|
1
|
+
import { C as CoreStateSnapshot, S as SlashState, a as CommandRegistry } from './editor-core-BSoeizSI.js';
|
|
2
|
+
export { B as BeforeInputIntent, b as CommandContext, c as CommandDefinition, d as CoreApplyAction, e as CoreApplyResult, f as CoreSelectionSnapshot, g as CreateOwoMarkCoreOptions, D as DocumentChangeCallback, I as IndentMode, h as IndentResult, K as KeyDownIntent, O as OwoMarkCore, P as PasteIntent, i as SlashStateListener, j as SlashTriggerInfo, k as applyMarkdownIndent, l as createOwoMarkCore, r as resolveIndentSize } from './editor-core-BSoeizSI.js';
|
|
3
|
+
import { g as BlockNode, h as BlockContextType, O as OwoMarkSelection, i as ContainerBlockSyntaxExtension, J as JsonValue, j as ParseMarkdownOptions, a as OwoMarkDocument, k as ConformanceDocument, D as DirtyRange, P as PreviewBlockKind, f as PreviewBlock, l as BlockTransform, m as OwoMarkSharedStateController, n as InlineExtensionPriority, o as InlineSyntaxExtension, T as TokenizeInlineOptions, e as InlineToken, p as TokenizeBlockOptions } from './public-cCK3rvQc.js';
|
|
4
|
+
export { b as BlockContext, d as BlockContextListener, q as BlockExtensionPriority, c as BlockInsertType, r as BlockSyntaxExtension, B as BlockType, s as CLASSLESS_INLINE_TOKEN_TYPES, C as CompositionState, t as ConformanceBlockNode, u as ConformanceContainerNode, v as ConformanceInlineNode, w as ConformanceTableCell, x as ConformanceTableRow, y as ContainerBlockExtensionPriority, z as ContainerFrame, A as ContainerKind, E as CustomBlockRuntimeBinding, F as Decorator, G as DecoratorType, H as HeadingLevel, K as HistoryEntry, L as INLINE_TOKEN_TYPES, M as InlineExtensionHostBlockType, N as InlineScannerMatch, I as InlineTokenType, Q as JsonPrimitive, R as Leaf, S as OwoMarkCommands, U as OwoMarkDocumentTrace, W as OwoMarkEditorLike, X as OwoMarkSharedState, Y as OwoMarkSharedStateStore, Z as ParserDiffScope, _ as ParserExtensionConsumer, $ as ParserExtensionParent, a0 as ParserExtensionScope, a1 as PreviewDirtyReason, a2 as SideAnnotationMemberBlock, a3 as SideAnnotationMemberBlockType, a4 as SideAnnotationSourceKind, a5 as TokenizeBlockExtensionOptions, a6 as VirtualPosition, V as VirtualSelection, a7 as getBlockIndexForPosition, a8 as isVirtualSelectionCollapsed, a9 as linearToVirtual, aa as linearToVirtualPosition, ab as virtualPositionToLinear, ac as virtualPositionsEqual, ad as virtualToLinear } from './public-cCK3rvQc.js';
|
|
5
|
+
export { O as OwoComponentDescriptor, d as OwoEditorEntryDescriptor, f as OwoFeatureFlagKey, g as OwoRuntimeBlockDescriptor, h as OwoSyntaxDescriptor } from './registry-6IkGJsLt.js';
|
|
6
6
|
export { getSyntaxDescriptor, parseInlineSideAnnotationFromText, stripInlineSideAnnotationTail, stripSideContinuationTail, syntaxRegistry } from './semantic/syntax/index.js';
|
|
7
7
|
export { componentRegistry, getComponentDescriptor, getComponentDescriptorByDirective } from './semantic/components/index.js';
|
|
8
8
|
export { getRuntimeBlockDescriptor, getRuntimeBlockDescriptorByBlockType, getRuntimeBlockDescriptorByPreviewKind, runtimeBlockRegistry } from './semantic/runtime/index.js';
|
|
@@ -10,8 +10,8 @@ export { editorEntryRegistry, getEditorEntryDescriptor, getEditorEntryDescriptor
|
|
|
10
10
|
export { WordBoundaryResult, deleteToLineEnd, deleteToLineStart, deleteWordBackward, deleteWordForward } from './internal/commands/word-boundary.js';
|
|
11
11
|
export { normalizeMarkdownPaste } from './internal/clipboard/paste.js';
|
|
12
12
|
export { enableMapSet, produce } from 'immer';
|
|
13
|
-
import { O as OwoMarkScrollProjectionSnapshot, c as OwoMarkScrollProjectionSegment, S as SourceKey, a as OwoMarkSurfaceGeometrySnapshot, V as ViewportMetrics, G as GlobalScrollPosition } from './types-
|
|
14
|
-
export { C as ContentId, d as Geometry, b as OwoMarkScrollController, e as OwoMarkScrollDegradedReason, f as OwoMarkSurfaceGeometrySegment, g as OwoMarkSurfaceGeometrySnapshotStatus, h as ScrollProjectionSegmentKind, i as ScrollResolutionResult, j as ScrollSurface, k as ScrollToScrollPositionOptions, l as ScrollToScrollPositionResult } from './types-
|
|
13
|
+
import { O as OwoMarkScrollProjectionSnapshot, c as OwoMarkScrollProjectionSegment, S as SourceKey, a as OwoMarkSurfaceGeometrySnapshot, V as ViewportMetrics, G as GlobalScrollPosition } from './types-BdOo-u1R.js';
|
|
14
|
+
export { C as ContentId, d as Geometry, b as OwoMarkScrollController, e as OwoMarkScrollDegradedReason, f as OwoMarkSurfaceGeometrySegment, g as OwoMarkSurfaceGeometrySnapshotStatus, h as ScrollProjectionSegmentKind, i as ScrollResolutionResult, j as ScrollSurface, k as ScrollToScrollPositionOptions, l as ScrollToScrollPositionResult } from './types-BdOo-u1R.js';
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Resolve the extended BlockContextType from a BlockNode.
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { O as OwoMarkSelection, a as OwoMarkDocument, V as VirtualSelection } from '../public-
|
|
2
|
-
import { O as OwoMarkCore } from '../editor-core-
|
|
3
|
-
export { D as DocumentChangeCallback } from '../editor-core-
|
|
1
|
+
import { O as OwoMarkSelection, a as OwoMarkDocument, V as VirtualSelection } from '../public-cCK3rvQc.js';
|
|
2
|
+
import { O as OwoMarkCore } from '../editor-core-BSoeizSI.js';
|
|
3
|
+
export { D as DocumentChangeCallback } from '../editor-core-BSoeizSI.js';
|
|
4
4
|
|
|
5
5
|
type OwoMarkEditorInstance = {
|
|
6
6
|
mount(root: HTMLElement): void;
|
|
@@ -121,6 +121,8 @@ type BlockNode = (BlockBase & {
|
|
|
121
121
|
type ConformanceInlineNode = {
|
|
122
122
|
kind: 'text';
|
|
123
123
|
text: string;
|
|
124
|
+
} | {
|
|
125
|
+
kind: 'softBreak';
|
|
124
126
|
} | {
|
|
125
127
|
kind: 'strong';
|
|
126
128
|
children: ConformanceInlineNode[];
|
|
@@ -161,6 +163,7 @@ type ConformanceContainerNode = {
|
|
|
161
163
|
type ConformanceBlockNode = {
|
|
162
164
|
kind: 'paragraph';
|
|
163
165
|
ancestry: ConformanceContainerNode[];
|
|
166
|
+
sourceBlockCount?: number;
|
|
164
167
|
inline: ConformanceInlineNode[];
|
|
165
168
|
} | {
|
|
166
169
|
kind: 'heading';
|
|
@@ -171,6 +174,7 @@ type ConformanceBlockNode = {
|
|
|
171
174
|
kind: 'blockquote';
|
|
172
175
|
ancestry: ConformanceContainerNode[];
|
|
173
176
|
depth: number;
|
|
177
|
+
sourceBlockCount?: number;
|
|
174
178
|
inline: ConformanceInlineNode[];
|
|
175
179
|
} | {
|
|
176
180
|
kind: 'listItem';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PreviewBlockKind } from './public-
|
|
1
|
+
import { P as PreviewBlockKind } from './public-cCK3rvQc.js';
|
|
2
2
|
|
|
3
3
|
type OwoFeatureFlagKey = 'enableSideAnnotation' | 'enableMath' | 'enableComponents';
|
|
4
4
|
type OwoSemanticDescriptorFamily = 'syntax' | 'component' | 'runtime' | 'editor';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as OwoDescriptorRegistry, O as OwoComponentDescriptor } from '../../registry-
|
|
2
|
-
export { a as OwoComponentKind, b as OwoComponentPayloadStrategy } from '../../registry-
|
|
3
|
-
import '../../public-
|
|
1
|
+
import { c as OwoDescriptorRegistry, O as OwoComponentDescriptor } from '../../registry-6IkGJsLt.js';
|
|
2
|
+
export { a as OwoComponentKind, b as OwoComponentPayloadStrategy } from '../../registry-6IkGJsLt.js';
|
|
3
|
+
import '../../public-cCK3rvQc.js';
|
|
4
4
|
|
|
5
5
|
declare const componentRegistry: OwoDescriptorRegistry<OwoComponentDescriptor>;
|
|
6
6
|
declare function getComponentDescriptor(key: string): OwoComponentDescriptor;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as OwoDescriptorRegistry, d as OwoEditorEntryDescriptor, e as OwoEditorEntryPresentation } from '../../registry-
|
|
2
|
-
import '../../public-
|
|
1
|
+
import { c as OwoDescriptorRegistry, d as OwoEditorEntryDescriptor, e as OwoEditorEntryPresentation } from '../../registry-6IkGJsLt.js';
|
|
2
|
+
import '../../public-cCK3rvQc.js';
|
|
3
3
|
|
|
4
4
|
declare const editorEntryRegistry: OwoDescriptorRegistry<OwoEditorEntryDescriptor>;
|
|
5
5
|
declare function getEditorEntryDescriptor(key: string): OwoEditorEntryDescriptor;
|
package/dist/semantic/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { O as OwoComponentDescriptor, a as OwoComponentKind, b as OwoComponentPayloadStrategy, c as OwoDescriptorRegistry, d as OwoEditorEntryDescriptor, e as OwoEditorEntryPresentation, f as OwoFeatureFlagKey, g as OwoRuntimeBlockDescriptor, h as OwoSyntaxDescriptor, i as createDescriptorRegistry, r as requireDescriptor } from '../registry-
|
|
1
|
+
export { O as OwoComponentDescriptor, a as OwoComponentKind, b as OwoComponentPayloadStrategy, c as OwoDescriptorRegistry, d as OwoEditorEntryDescriptor, e as OwoEditorEntryPresentation, f as OwoFeatureFlagKey, g as OwoRuntimeBlockDescriptor, h as OwoSyntaxDescriptor, i as createDescriptorRegistry, r as requireDescriptor } from '../registry-6IkGJsLt.js';
|
|
2
2
|
export { validateComponentDescriptors, validateEditorEntryDescriptors, validateRuntimeDescriptors, validateSyntaxDescriptors } from './shared/index.js';
|
|
3
3
|
export { MATH_FENCE_RE, MULTI_LINE_MATH_BLOCK_CLOSE_RE, MULTI_LINE_MATH_BLOCK_OPEN_RE, MathFenceNormalizationLineMapping, MathFenceNormalizationRewrite, SIDE_ANNOTATION_RENDERER_KEY_BY_TYPE, SIDE_ANNOTATION_SYMBOL_BY_KEYWORD, SIDE_ANNOTATION_TAIL_RE, SIDE_ANNOTATION_TYPE_SYMBOLS, SIDE_ANNOTATION_TYPE_SYMBOLS_SORTED, SIDE_ANNOTATION_TYPE_TABLE, SIDE_CONTINUATION_TAIL_RE, SIDE_NOTE_DEFINITION_RE, SIDE_NOTE_REF_RE, SINGLE_LINE_MATH_BLOCK_RE, SideAnnotationType, SideAnnotationTypeDescriptor, SideAnnotationTypeSymbol, collectMathFenceNormalizationRewrites, getSyntaxDescriptor, isFenceOnlyMathLine, isMultiLineMathBlockClose, isMultiLineMathBlockOpen, isSingleLineMathBlock, mathSyntaxDescriptor, parseInlineSideAnnotationFromText, parseInlineSideAnnotationText, parseSideDirectiveLabel, parseSideNoteDefinitionRaw, sideAnnotationSyntaxDescriptors, sideAnnotationTypeDescriptors, stripInlineSideAnnotationTail, stripSideContinuationTail, syntaxRegistry } from './syntax/index.js';
|
|
4
4
|
export { componentRegistry, getComponentDescriptor, getComponentDescriptorByDirective } from './components/index.js';
|
|
5
5
|
export { getRuntimeBlockDescriptor, getRuntimeBlockDescriptorByBlockType, getRuntimeBlockDescriptorByPreviewKind, runtimeBlockRegistry } from './runtime/index.js';
|
|
6
6
|
export { editorEntryRegistry, getEditorEntryDescriptor, getEditorEntryDescriptorByCommandId, resolveEditorEntryPresentation } from './editor/index.js';
|
|
7
|
-
import '../public-
|
|
7
|
+
import '../public-cCK3rvQc.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as OwoRuntimeBlockDescriptor, c as OwoDescriptorRegistry } from '../../registry-
|
|
2
|
-
import '../../public-
|
|
1
|
+
import { g as OwoRuntimeBlockDescriptor, c as OwoDescriptorRegistry } from '../../registry-6IkGJsLt.js';
|
|
2
|
+
import '../../public-cCK3rvQc.js';
|
|
3
3
|
|
|
4
4
|
declare const runtimeBlockRegistry: OwoDescriptorRegistry<OwoRuntimeBlockDescriptor>;
|
|
5
5
|
declare function getRuntimeBlockDescriptor(key: string): OwoRuntimeBlockDescriptor;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { O as OwoComponentDescriptor, d as OwoEditorEntryDescriptor, g as OwoRuntimeBlockDescriptor, h as OwoSyntaxDescriptor } from '../../registry-
|
|
2
|
-
export { a as OwoComponentKind, b as OwoComponentPayloadStrategy, c as OwoDescriptorRegistry, e as OwoEditorEntryPresentation, f as OwoFeatureFlagKey, i as createDescriptorRegistry, r as requireDescriptor } from '../../registry-
|
|
3
|
-
import '../../public-
|
|
1
|
+
import { O as OwoComponentDescriptor, d as OwoEditorEntryDescriptor, g as OwoRuntimeBlockDescriptor, h as OwoSyntaxDescriptor } from '../../registry-6IkGJsLt.js';
|
|
2
|
+
export { a as OwoComponentKind, b as OwoComponentPayloadStrategy, c as OwoDescriptorRegistry, e as OwoEditorEntryPresentation, f as OwoFeatureFlagKey, i as createDescriptorRegistry, r as requireDescriptor } from '../../registry-6IkGJsLt.js';
|
|
3
|
+
import '../../public-cCK3rvQc.js';
|
|
4
4
|
|
|
5
5
|
declare function validateSyntaxDescriptors(descriptors: readonly OwoSyntaxDescriptor[]): void;
|
|
6
6
|
declare function validateComponentDescriptors(descriptors: readonly OwoComponentDescriptor[]): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h as OwoSyntaxDescriptor, c as OwoDescriptorRegistry } from '../../registry-
|
|
2
|
-
import '../../public-
|
|
1
|
+
import { h as OwoSyntaxDescriptor, c as OwoDescriptorRegistry } from '../../registry-6IkGJsLt.js';
|
|
2
|
+
import '../../public-cCK3rvQc.js';
|
|
3
3
|
|
|
4
4
|
/** Fence-only display math line, e.g. `$$`. */
|
|
5
5
|
declare const MATH_FENCE_RE: RegExp;
|