foldkit-richtext-dom 0.4.0 → 0.5.0
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 +100 -29
- package/dist/editor-bundle.d.mts +1659 -79
- package/dist/editor-bundle.d.mts.map +1 -1
- package/dist/editor-bundle.mjs +114 -10
- package/dist/editor-bundle.mjs.map +1 -1
- package/dist/{editor-DbYswARG.d.mts → editor-gCZiXgG4.d.mts} +406 -11
- package/dist/editor-gCZiXgG4.d.mts.map +1 -0
- package/dist/editor.d.mts +2 -2
- package/dist/editor.mjs +179 -25
- package/dist/editor.mjs.map +1 -1
- package/dist/{events-Dasls6a_.d.mts → events-DLi6ecvD.d.mts} +20 -5
- package/dist/events-DLi6ecvD.d.mts.map +1 -0
- package/dist/events.d.mts +1 -1
- package/dist/events.mjs +334 -15
- package/dist/events.mjs.map +1 -1
- package/dist/filler-D2_wc_8Z.mjs +8 -0
- package/dist/filler-D2_wc_8Z.mjs.map +1 -0
- package/dist/{host-1dtxuKIA.d.mts → host-Cp2Zz-bO.d.mts} +27 -8
- package/dist/host-Cp2Zz-bO.d.mts.map +1 -0
- package/dist/host.d.mts +2 -2
- package/dist/host.mjs +25 -8
- package/dist/host.mjs.map +1 -1
- package/dist/html.d.mts.map +1 -1
- package/dist/html.mjs +2 -0
- package/dist/html.mjs.map +1 -1
- package/dist/index-DDV_JesZ.d.mts.map +1 -1
- package/dist/index.mjs +52 -19
- package/dist/index.mjs.map +1 -1
- package/dist/input.d.mts +259 -3
- package/dist/input.d.mts.map +1 -1
- package/dist/input.mjs +2 -1
- package/dist/input.mjs.map +1 -1
- package/dist/toolbar.d.mts +7 -0
- package/dist/toolbar.d.mts.map +1 -1
- package/dist/toolbar.mjs +135 -14
- package/dist/toolbar.mjs.map +1 -1
- package/dist/view.d.mts.map +1 -1
- package/dist/view.mjs +26 -2
- package/dist/view.mjs.map +1 -1
- package/package.json +7 -7
- package/dist/editor-DbYswARG.d.mts.map +0 -1
- package/dist/events-Dasls6a_.d.mts.map +0 -1
- package/dist/host-1dtxuKIA.d.mts.map +0 -1
package/dist/editor-bundle.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as Decorate } from "./events-
|
|
2
|
-
import { r as Message } from "./editor-
|
|
3
|
-
import {
|
|
1
|
+
import { a as KeyBinding, r as Decorate } from "./events-DLi6ecvD.mjs";
|
|
2
|
+
import { i as SlashEntry, n as EditorEvent, r as Message } from "./editor-gCZiXgG4.mjs";
|
|
3
|
+
import { n as Vocabulary } from "./host-Cp2Zz-bO.mjs";
|
|
4
4
|
import * as RichText from "foldkit-richtext";
|
|
5
|
-
import { Schema } from "effect";
|
|
5
|
+
import { Option, Schema } from "effect";
|
|
6
6
|
import { Bundle, Wrapped } from "foldkit-bundle";
|
|
7
7
|
import * as Submodel from "foldkit/submodel";
|
|
8
8
|
import * as Command from "foldkit/command";
|
|
@@ -454,6 +454,12 @@ export declare const EditorState: Schema.Struct<{
|
|
|
454
454
|
* `update` resolves Enter against it.
|
|
455
455
|
*/
|
|
456
456
|
readonly menuIndex: Schema.Number;
|
|
457
|
+
/** The slash of the query whose menu Escape closed; it stays closed until that query ends. */
|
|
458
|
+
readonly slashDismissed: Schema.OptionFromNullOr<Schema.Struct<{
|
|
459
|
+
readonly node: Schema.brand<Schema.NonEmptyString, "foldkit-richtext/NodeId">;
|
|
460
|
+
readonly offset: Schema.Number;
|
|
461
|
+
readonly affinity: Schema.Literals<readonly ["before", "after"]>;
|
|
462
|
+
}>>;
|
|
457
463
|
/**
|
|
458
464
|
* The host element the view renders and the patch Command finds (§118). It is
|
|
459
465
|
* per-placement, so it arrives as the Bundle's args and is carried here
|
|
@@ -1097,6 +1103,12 @@ export declare const Model: Schema.Struct<{
|
|
|
1097
1103
|
* `update` resolves Enter against it.
|
|
1098
1104
|
*/
|
|
1099
1105
|
readonly menuIndex: Schema.Number;
|
|
1106
|
+
/** The slash of the query whose menu Escape closed; it stays closed until that query ends. */
|
|
1107
|
+
readonly slashDismissed: Schema.OptionFromNullOr<Schema.Struct<{
|
|
1108
|
+
readonly node: Schema.brand<Schema.NonEmptyString, "foldkit-richtext/NodeId">;
|
|
1109
|
+
readonly offset: Schema.Number;
|
|
1110
|
+
readonly affinity: Schema.Literals<readonly ["before", "after"]>;
|
|
1111
|
+
}>>;
|
|
1100
1112
|
/**
|
|
1101
1113
|
* The host element the view renders and the patch Command finds (§118). It is
|
|
1102
1114
|
* per-placement, so it arrives as the Bundle's args and is carried here
|
|
@@ -1733,6 +1745,11 @@ export declare const EditorView: Schema.Struct<{
|
|
|
1733
1745
|
}>;
|
|
1734
1746
|
readonly storedMarks: Schema.NullOr<Schema.$Array<Schema.String>>;
|
|
1735
1747
|
readonly menuIndex: Schema.Number;
|
|
1748
|
+
readonly slashDismissed: Schema.OptionFromNullOr<Schema.Struct<{
|
|
1749
|
+
readonly node: Schema.brand<Schema.NonEmptyString, "foldkit-richtext/NodeId">;
|
|
1750
|
+
readonly offset: Schema.Number;
|
|
1751
|
+
readonly affinity: Schema.Literals<readonly ["before", "after"]>;
|
|
1752
|
+
}>>;
|
|
1736
1753
|
readonly hostId: Schema.String;
|
|
1737
1754
|
}>;
|
|
1738
1755
|
export type EditorView = typeof EditorView.Type;
|
|
@@ -1758,6 +1775,12 @@ export type OutMessage = {
|
|
|
1758
1775
|
* blocks whose own fields changed, what came and went, and whether any block moved.
|
|
1759
1776
|
*/
|
|
1760
1777
|
export declare const replaceChangeSet: (previous: RichText.Document, next: RichText.Document) => RichText.ChangeSet;
|
|
1778
|
+
/**
|
|
1779
|
+
* The text a slash menu reads: the text before the caret, or nothing once Escape has closed
|
|
1780
|
+
* the menu of the query the caret is in. Enter resolves against it, and an application's menu
|
|
1781
|
+
* view reads it too, so the two agree on whether a menu is open.
|
|
1782
|
+
*/
|
|
1783
|
+
export declare const menuTextOf: (model: EditorView) => string;
|
|
1761
1784
|
/**
|
|
1762
1785
|
* Patches the editor at `hostId` to `next`, a document the parent put in place of
|
|
1763
1786
|
* `previous`, keeping the host element instead of mounting a new one. A parent that
|
|
@@ -1780,6 +1803,12 @@ export declare const patchTo: (hostId: string, previous: RichText.Document, next
|
|
|
1780
1803
|
* document shown, so an application sets them again when that changes. The caret stays put.
|
|
1781
1804
|
*/
|
|
1782
1805
|
export declare const overlay: (hostId: string, decorations: RichText.DecorationSet) => Command.Command<Message>;
|
|
1806
|
+
/**
|
|
1807
|
+
* Focuses the editor at `hostId` with `selection` in the browser, brought into view: for a
|
|
1808
|
+
* control outside the editor that sends the reader into the text, such as a table of contents.
|
|
1809
|
+
* The browser reports the selection back as `Selected`, so the Model follows it either way.
|
|
1810
|
+
*/
|
|
1811
|
+
export declare const focus: (hostId: string, selection: RichText.Selection) => Command.Command<Message>;
|
|
1783
1812
|
/**
|
|
1784
1813
|
* The host element the editor mounts into, and whose id the patch Command finds (§118). It is a
|
|
1785
1814
|
* custom element so hydration leaves what is inside it alone (§145): on the server it holds the
|
|
@@ -2055,8 +2084,17 @@ export declare const editorView: Submodel.View<{
|
|
|
2055
2084
|
};
|
|
2056
2085
|
readonly storedMarks: readonly string[] | null;
|
|
2057
2086
|
readonly menuIndex: number;
|
|
2087
|
+
readonly slashDismissed: Option.Option<{
|
|
2088
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
2089
|
+
readonly offset: number;
|
|
2090
|
+
readonly affinity: "after" | "before";
|
|
2091
|
+
}>;
|
|
2058
2092
|
readonly hostId: string;
|
|
2059
2093
|
}, {
|
|
2094
|
+
readonly _tag: "ActivatedAdornment";
|
|
2095
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
2096
|
+
readonly action: string;
|
|
2097
|
+
} | {
|
|
2060
2098
|
readonly _tag: "AppliedMark";
|
|
2061
2099
|
readonly mark: string | {
|
|
2062
2100
|
readonly name: string;
|
|
@@ -2066,9 +2104,20 @@ export declare const editorView: Submodel.View<{
|
|
|
2066
2104
|
};
|
|
2067
2105
|
} | {
|
|
2068
2106
|
readonly _tag: "Backspace";
|
|
2107
|
+
} | {
|
|
2108
|
+
readonly _tag: "ChangedProps";
|
|
2109
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
2110
|
+
readonly props: {
|
|
2111
|
+
readonly [x: string]: Schema.Json;
|
|
2112
|
+
};
|
|
2069
2113
|
} | {
|
|
2070
2114
|
readonly _tag: "ClearedMark";
|
|
2071
|
-
readonly mark: string
|
|
2115
|
+
readonly mark: string | {
|
|
2116
|
+
readonly name: string;
|
|
2117
|
+
readonly props?: {
|
|
2118
|
+
readonly [x: string]: Schema.Json;
|
|
2119
|
+
};
|
|
2120
|
+
};
|
|
2072
2121
|
} | {
|
|
2073
2122
|
readonly _tag: "ConvertedBlock";
|
|
2074
2123
|
readonly to: {
|
|
@@ -2077,10 +2126,106 @@ export declare const editorView: Submodel.View<{
|
|
|
2077
2126
|
readonly [x: string]: Schema.Json;
|
|
2078
2127
|
};
|
|
2079
2128
|
};
|
|
2129
|
+
} | {
|
|
2130
|
+
readonly _tag: "DeletedBlock";
|
|
2131
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
2132
|
+
} | {
|
|
2133
|
+
readonly _tag: "DeletedColumn";
|
|
2080
2134
|
} | {
|
|
2081
2135
|
readonly _tag: "DeletedForward";
|
|
2136
|
+
} | {
|
|
2137
|
+
readonly _tag: "DeletedRow";
|
|
2138
|
+
} | {
|
|
2139
|
+
readonly _tag: "DismissedSlash";
|
|
2082
2140
|
} | {
|
|
2083
2141
|
readonly _tag: "Entered";
|
|
2142
|
+
} | {
|
|
2143
|
+
readonly _tag: "Indented";
|
|
2144
|
+
} | {
|
|
2145
|
+
readonly _tag: "InsertedBlock";
|
|
2146
|
+
readonly block: {
|
|
2147
|
+
readonly type: "Paragraph";
|
|
2148
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
2149
|
+
readonly children: readonly {
|
|
2150
|
+
readonly type: "Text";
|
|
2151
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
2152
|
+
readonly text: string;
|
|
2153
|
+
readonly marks: readonly (string | {
|
|
2154
|
+
readonly name: string;
|
|
2155
|
+
readonly props?: {
|
|
2156
|
+
readonly [x: string]: Schema.Json;
|
|
2157
|
+
};
|
|
2158
|
+
})[];
|
|
2159
|
+
}[];
|
|
2160
|
+
} | {
|
|
2161
|
+
readonly type: "Heading";
|
|
2162
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
2163
|
+
readonly level: 1 | 2 | 3 | 4 | 5 | 6;
|
|
2164
|
+
readonly children: readonly {
|
|
2165
|
+
readonly type: "Text";
|
|
2166
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
2167
|
+
readonly text: string;
|
|
2168
|
+
readonly marks: readonly (string | {
|
|
2169
|
+
readonly name: string;
|
|
2170
|
+
readonly props?: {
|
|
2171
|
+
readonly [x: string]: Schema.Json;
|
|
2172
|
+
};
|
|
2173
|
+
})[];
|
|
2174
|
+
}[];
|
|
2175
|
+
} | {
|
|
2176
|
+
readonly type: "Node";
|
|
2177
|
+
readonly kind: string;
|
|
2178
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
2179
|
+
readonly props: {
|
|
2180
|
+
readonly [x: string]: Schema.Json;
|
|
2181
|
+
};
|
|
2182
|
+
readonly children: readonly {
|
|
2183
|
+
readonly type: "Text";
|
|
2184
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
2185
|
+
readonly text: string;
|
|
2186
|
+
readonly marks: readonly (string | {
|
|
2187
|
+
readonly name: string;
|
|
2188
|
+
readonly props?: {
|
|
2189
|
+
readonly [x: string]: Schema.Json;
|
|
2190
|
+
};
|
|
2191
|
+
})[];
|
|
2192
|
+
}[];
|
|
2193
|
+
readonly blocks?: readonly RichText.Block[];
|
|
2194
|
+
} | {
|
|
2195
|
+
readonly type: "Unknown";
|
|
2196
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
2197
|
+
readonly originalType: string;
|
|
2198
|
+
readonly props: {
|
|
2199
|
+
readonly [x: string]: Schema.Json;
|
|
2200
|
+
};
|
|
2201
|
+
readonly children: readonly {
|
|
2202
|
+
readonly type: "Text";
|
|
2203
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
2204
|
+
readonly text: string;
|
|
2205
|
+
readonly marks: readonly (string | {
|
|
2206
|
+
readonly name: string;
|
|
2207
|
+
readonly props?: {
|
|
2208
|
+
readonly [x: string]: Schema.Json;
|
|
2209
|
+
};
|
|
2210
|
+
})[];
|
|
2211
|
+
}[];
|
|
2212
|
+
};
|
|
2213
|
+
readonly to?: {
|
|
2214
|
+
readonly before: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
2215
|
+
readonly after?: never;
|
|
2216
|
+
} | {
|
|
2217
|
+
readonly after: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
2218
|
+
readonly before?: never;
|
|
2219
|
+
};
|
|
2220
|
+
} | {
|
|
2221
|
+
readonly _tag: "InsertedColumn";
|
|
2222
|
+
readonly where: "after" | "before";
|
|
2223
|
+
} | {
|
|
2224
|
+
readonly _tag: "InsertedFootnote";
|
|
2225
|
+
readonly text?: string;
|
|
2226
|
+
} | {
|
|
2227
|
+
readonly _tag: "InsertedRow";
|
|
2228
|
+
readonly where: "after" | "before";
|
|
2084
2229
|
} | {
|
|
2085
2230
|
readonly _tag: "LiftedBlock";
|
|
2086
2231
|
} | {
|
|
@@ -2093,6 +2238,8 @@ export declare const editorView: Submodel.View<{
|
|
|
2093
2238
|
readonly after: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
2094
2239
|
readonly before?: never;
|
|
2095
2240
|
};
|
|
2241
|
+
} | {
|
|
2242
|
+
readonly _tag: "Outdented";
|
|
2096
2243
|
} | {
|
|
2097
2244
|
readonly _tag: "Pasted";
|
|
2098
2245
|
readonly slice: {
|
|
@@ -2169,6 +2316,16 @@ export declare const editorView: Submodel.View<{
|
|
|
2169
2316
|
readonly _tag: "Patched";
|
|
2170
2317
|
} | {
|
|
2171
2318
|
readonly _tag: "Redone";
|
|
2319
|
+
} | {
|
|
2320
|
+
readonly _tag: "RenamedFootnote";
|
|
2321
|
+
readonly from: string;
|
|
2322
|
+
readonly to: string;
|
|
2323
|
+
} | {
|
|
2324
|
+
readonly _tag: "ReplacedText";
|
|
2325
|
+
readonly query: string;
|
|
2326
|
+
readonly replacement: string;
|
|
2327
|
+
readonly caseSensitive?: boolean;
|
|
2328
|
+
readonly at?: number;
|
|
2172
2329
|
} | {
|
|
2173
2330
|
readonly _tag: "RetypedBlock";
|
|
2174
2331
|
readonly block: {
|
|
@@ -2483,8 +2640,17 @@ export declare const Editor: Bundle.Bundle<"RichTextEditor", {
|
|
|
2483
2640
|
};
|
|
2484
2641
|
readonly storedMarks: readonly string[] | null;
|
|
2485
2642
|
readonly menuIndex: number;
|
|
2643
|
+
readonly slashDismissed: Option.Option<{
|
|
2644
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
2645
|
+
readonly offset: number;
|
|
2646
|
+
readonly affinity: "after" | "before";
|
|
2647
|
+
}>;
|
|
2486
2648
|
readonly hostId: string;
|
|
2487
2649
|
}, {
|
|
2650
|
+
readonly _tag: "ActivatedAdornment";
|
|
2651
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
2652
|
+
readonly action: string;
|
|
2653
|
+
} | {
|
|
2488
2654
|
readonly _tag: "AppliedMark";
|
|
2489
2655
|
readonly mark: string | {
|
|
2490
2656
|
readonly name: string;
|
|
@@ -2494,9 +2660,20 @@ export declare const Editor: Bundle.Bundle<"RichTextEditor", {
|
|
|
2494
2660
|
};
|
|
2495
2661
|
} | {
|
|
2496
2662
|
readonly _tag: "Backspace";
|
|
2663
|
+
} | {
|
|
2664
|
+
readonly _tag: "ChangedProps";
|
|
2665
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
2666
|
+
readonly props: {
|
|
2667
|
+
readonly [x: string]: Schema.Json;
|
|
2668
|
+
};
|
|
2497
2669
|
} | {
|
|
2498
2670
|
readonly _tag: "ClearedMark";
|
|
2499
|
-
readonly mark: string
|
|
2671
|
+
readonly mark: string | {
|
|
2672
|
+
readonly name: string;
|
|
2673
|
+
readonly props?: {
|
|
2674
|
+
readonly [x: string]: Schema.Json;
|
|
2675
|
+
};
|
|
2676
|
+
};
|
|
2500
2677
|
} | {
|
|
2501
2678
|
readonly _tag: "ConvertedBlock";
|
|
2502
2679
|
readonly to: {
|
|
@@ -2505,10 +2682,106 @@ export declare const Editor: Bundle.Bundle<"RichTextEditor", {
|
|
|
2505
2682
|
readonly [x: string]: Schema.Json;
|
|
2506
2683
|
};
|
|
2507
2684
|
};
|
|
2685
|
+
} | {
|
|
2686
|
+
readonly _tag: "DeletedBlock";
|
|
2687
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
2688
|
+
} | {
|
|
2689
|
+
readonly _tag: "DeletedColumn";
|
|
2508
2690
|
} | {
|
|
2509
2691
|
readonly _tag: "DeletedForward";
|
|
2692
|
+
} | {
|
|
2693
|
+
readonly _tag: "DeletedRow";
|
|
2694
|
+
} | {
|
|
2695
|
+
readonly _tag: "DismissedSlash";
|
|
2510
2696
|
} | {
|
|
2511
2697
|
readonly _tag: "Entered";
|
|
2698
|
+
} | {
|
|
2699
|
+
readonly _tag: "Indented";
|
|
2700
|
+
} | {
|
|
2701
|
+
readonly _tag: "InsertedBlock";
|
|
2702
|
+
readonly block: {
|
|
2703
|
+
readonly type: "Paragraph";
|
|
2704
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
2705
|
+
readonly children: readonly {
|
|
2706
|
+
readonly type: "Text";
|
|
2707
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
2708
|
+
readonly text: string;
|
|
2709
|
+
readonly marks: readonly (string | {
|
|
2710
|
+
readonly name: string;
|
|
2711
|
+
readonly props?: {
|
|
2712
|
+
readonly [x: string]: Schema.Json;
|
|
2713
|
+
};
|
|
2714
|
+
})[];
|
|
2715
|
+
}[];
|
|
2716
|
+
} | {
|
|
2717
|
+
readonly type: "Heading";
|
|
2718
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
2719
|
+
readonly level: 1 | 2 | 3 | 4 | 5 | 6;
|
|
2720
|
+
readonly children: readonly {
|
|
2721
|
+
readonly type: "Text";
|
|
2722
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
2723
|
+
readonly text: string;
|
|
2724
|
+
readonly marks: readonly (string | {
|
|
2725
|
+
readonly name: string;
|
|
2726
|
+
readonly props?: {
|
|
2727
|
+
readonly [x: string]: Schema.Json;
|
|
2728
|
+
};
|
|
2729
|
+
})[];
|
|
2730
|
+
}[];
|
|
2731
|
+
} | {
|
|
2732
|
+
readonly type: "Node";
|
|
2733
|
+
readonly kind: string;
|
|
2734
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
2735
|
+
readonly props: {
|
|
2736
|
+
readonly [x: string]: Schema.Json;
|
|
2737
|
+
};
|
|
2738
|
+
readonly children: readonly {
|
|
2739
|
+
readonly type: "Text";
|
|
2740
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
2741
|
+
readonly text: string;
|
|
2742
|
+
readonly marks: readonly (string | {
|
|
2743
|
+
readonly name: string;
|
|
2744
|
+
readonly props?: {
|
|
2745
|
+
readonly [x: string]: Schema.Json;
|
|
2746
|
+
};
|
|
2747
|
+
})[];
|
|
2748
|
+
}[];
|
|
2749
|
+
readonly blocks?: readonly RichText.Block[];
|
|
2750
|
+
} | {
|
|
2751
|
+
readonly type: "Unknown";
|
|
2752
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
2753
|
+
readonly originalType: string;
|
|
2754
|
+
readonly props: {
|
|
2755
|
+
readonly [x: string]: Schema.Json;
|
|
2756
|
+
};
|
|
2757
|
+
readonly children: readonly {
|
|
2758
|
+
readonly type: "Text";
|
|
2759
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
2760
|
+
readonly text: string;
|
|
2761
|
+
readonly marks: readonly (string | {
|
|
2762
|
+
readonly name: string;
|
|
2763
|
+
readonly props?: {
|
|
2764
|
+
readonly [x: string]: Schema.Json;
|
|
2765
|
+
};
|
|
2766
|
+
})[];
|
|
2767
|
+
}[];
|
|
2768
|
+
};
|
|
2769
|
+
readonly to?: {
|
|
2770
|
+
readonly before: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
2771
|
+
readonly after?: never;
|
|
2772
|
+
} | {
|
|
2773
|
+
readonly after: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
2774
|
+
readonly before?: never;
|
|
2775
|
+
};
|
|
2776
|
+
} | {
|
|
2777
|
+
readonly _tag: "InsertedColumn";
|
|
2778
|
+
readonly where: "after" | "before";
|
|
2779
|
+
} | {
|
|
2780
|
+
readonly _tag: "InsertedFootnote";
|
|
2781
|
+
readonly text?: string;
|
|
2782
|
+
} | {
|
|
2783
|
+
readonly _tag: "InsertedRow";
|
|
2784
|
+
readonly where: "after" | "before";
|
|
2512
2785
|
} | {
|
|
2513
2786
|
readonly _tag: "LiftedBlock";
|
|
2514
2787
|
} | {
|
|
@@ -2521,6 +2794,8 @@ export declare const Editor: Bundle.Bundle<"RichTextEditor", {
|
|
|
2521
2794
|
readonly after: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
2522
2795
|
readonly before?: never;
|
|
2523
2796
|
};
|
|
2797
|
+
} | {
|
|
2798
|
+
readonly _tag: "Outdented";
|
|
2524
2799
|
} | {
|
|
2525
2800
|
readonly _tag: "Pasted";
|
|
2526
2801
|
readonly slice: {
|
|
@@ -2597,6 +2872,16 @@ export declare const Editor: Bundle.Bundle<"RichTextEditor", {
|
|
|
2597
2872
|
readonly _tag: "Patched";
|
|
2598
2873
|
} | {
|
|
2599
2874
|
readonly _tag: "Redone";
|
|
2875
|
+
} | {
|
|
2876
|
+
readonly _tag: "RenamedFootnote";
|
|
2877
|
+
readonly from: string;
|
|
2878
|
+
readonly to: string;
|
|
2879
|
+
} | {
|
|
2880
|
+
readonly _tag: "ReplacedText";
|
|
2881
|
+
readonly query: string;
|
|
2882
|
+
readonly replacement: string;
|
|
2883
|
+
readonly caseSensitive?: boolean;
|
|
2884
|
+
readonly at?: number;
|
|
2600
2885
|
} | {
|
|
2601
2886
|
readonly _tag: "RetypedBlock";
|
|
2602
2887
|
readonly block: {
|
|
@@ -2643,6 +2928,10 @@ export declare const Editor: Bundle.Bundle<"RichTextEditor", {
|
|
|
2643
2928
|
export declare const ParentMessage: import("foldkit/message").MessageUnion<{
|
|
2644
2929
|
readonly GotEditorMessage: {
|
|
2645
2930
|
readonly message: Schema.Codec<{
|
|
2931
|
+
readonly _tag: "ActivatedAdornment";
|
|
2932
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
2933
|
+
readonly action: string;
|
|
2934
|
+
} | {
|
|
2646
2935
|
readonly _tag: "AppliedMark";
|
|
2647
2936
|
readonly mark: string | {
|
|
2648
2937
|
readonly name: string;
|
|
@@ -2652,9 +2941,20 @@ export declare const ParentMessage: import("foldkit/message").MessageUnion<{
|
|
|
2652
2941
|
};
|
|
2653
2942
|
} | {
|
|
2654
2943
|
readonly _tag: "Backspace";
|
|
2944
|
+
} | {
|
|
2945
|
+
readonly _tag: "ChangedProps";
|
|
2946
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
2947
|
+
readonly props: {
|
|
2948
|
+
readonly [x: string]: Schema.Json;
|
|
2949
|
+
};
|
|
2655
2950
|
} | {
|
|
2656
2951
|
readonly _tag: "ClearedMark";
|
|
2657
|
-
readonly mark: string
|
|
2952
|
+
readonly mark: string | {
|
|
2953
|
+
readonly name: string;
|
|
2954
|
+
readonly props?: {
|
|
2955
|
+
readonly [x: string]: Schema.Json;
|
|
2956
|
+
};
|
|
2957
|
+
};
|
|
2658
2958
|
} | {
|
|
2659
2959
|
readonly _tag: "ConvertedBlock";
|
|
2660
2960
|
readonly to: {
|
|
@@ -2663,48 +2963,146 @@ export declare const ParentMessage: import("foldkit/message").MessageUnion<{
|
|
|
2663
2963
|
readonly [x: string]: Schema.Json;
|
|
2664
2964
|
};
|
|
2665
2965
|
};
|
|
2966
|
+
} | {
|
|
2967
|
+
readonly _tag: "DeletedBlock";
|
|
2968
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
2969
|
+
} | {
|
|
2970
|
+
readonly _tag: "DeletedColumn";
|
|
2666
2971
|
} | {
|
|
2667
2972
|
readonly _tag: "DeletedForward";
|
|
2973
|
+
} | {
|
|
2974
|
+
readonly _tag: "DeletedRow";
|
|
2975
|
+
} | {
|
|
2976
|
+
readonly _tag: "DismissedSlash";
|
|
2668
2977
|
} | {
|
|
2669
2978
|
readonly _tag: "Entered";
|
|
2670
2979
|
} | {
|
|
2671
|
-
readonly _tag: "
|
|
2980
|
+
readonly _tag: "Indented";
|
|
2672
2981
|
} | {
|
|
2673
|
-
readonly _tag: "
|
|
2674
|
-
readonly
|
|
2675
|
-
|
|
2676
|
-
readonly
|
|
2677
|
-
readonly
|
|
2982
|
+
readonly _tag: "InsertedBlock";
|
|
2983
|
+
readonly block: {
|
|
2984
|
+
readonly type: "Paragraph";
|
|
2985
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
2986
|
+
readonly children: readonly {
|
|
2987
|
+
readonly type: "Text";
|
|
2988
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
2989
|
+
readonly text: string;
|
|
2990
|
+
readonly marks: readonly (string | {
|
|
2991
|
+
readonly name: string;
|
|
2992
|
+
readonly props?: {
|
|
2993
|
+
readonly [x: string]: Schema.Json;
|
|
2994
|
+
};
|
|
2995
|
+
})[];
|
|
2996
|
+
}[];
|
|
2678
2997
|
} | {
|
|
2679
|
-
readonly
|
|
2680
|
-
readonly
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
readonly slice: {
|
|
2685
|
-
readonly version: 1;
|
|
2686
|
-
readonly blocks: readonly ({
|
|
2687
|
-
readonly type: "Paragraph";
|
|
2998
|
+
readonly type: "Heading";
|
|
2999
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
3000
|
+
readonly level: 1 | 2 | 3 | 4 | 5 | 6;
|
|
3001
|
+
readonly children: readonly {
|
|
3002
|
+
readonly type: "Text";
|
|
2688
3003
|
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
2689
|
-
readonly
|
|
2690
|
-
|
|
2691
|
-
readonly
|
|
2692
|
-
readonly
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
3004
|
+
readonly text: string;
|
|
3005
|
+
readonly marks: readonly (string | {
|
|
3006
|
+
readonly name: string;
|
|
3007
|
+
readonly props?: {
|
|
3008
|
+
readonly [x: string]: Schema.Json;
|
|
3009
|
+
};
|
|
3010
|
+
})[];
|
|
3011
|
+
}[];
|
|
3012
|
+
} | {
|
|
3013
|
+
readonly type: "Node";
|
|
3014
|
+
readonly kind: string;
|
|
3015
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
3016
|
+
readonly props: {
|
|
3017
|
+
readonly [x: string]: Schema.Json;
|
|
3018
|
+
};
|
|
3019
|
+
readonly children: readonly {
|
|
3020
|
+
readonly type: "Text";
|
|
2702
3021
|
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
2703
|
-
readonly
|
|
2704
|
-
readonly
|
|
2705
|
-
readonly
|
|
2706
|
-
readonly
|
|
2707
|
-
|
|
3022
|
+
readonly text: string;
|
|
3023
|
+
readonly marks: readonly (string | {
|
|
3024
|
+
readonly name: string;
|
|
3025
|
+
readonly props?: {
|
|
3026
|
+
readonly [x: string]: Schema.Json;
|
|
3027
|
+
};
|
|
3028
|
+
})[];
|
|
3029
|
+
}[];
|
|
3030
|
+
readonly blocks?: readonly RichText.Block[];
|
|
3031
|
+
} | {
|
|
3032
|
+
readonly type: "Unknown";
|
|
3033
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
3034
|
+
readonly originalType: string;
|
|
3035
|
+
readonly props: {
|
|
3036
|
+
readonly [x: string]: Schema.Json;
|
|
3037
|
+
};
|
|
3038
|
+
readonly children: readonly {
|
|
3039
|
+
readonly type: "Text";
|
|
3040
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
3041
|
+
readonly text: string;
|
|
3042
|
+
readonly marks: readonly (string | {
|
|
3043
|
+
readonly name: string;
|
|
3044
|
+
readonly props?: {
|
|
3045
|
+
readonly [x: string]: Schema.Json;
|
|
3046
|
+
};
|
|
3047
|
+
})[];
|
|
3048
|
+
}[];
|
|
3049
|
+
};
|
|
3050
|
+
readonly to?: {
|
|
3051
|
+
readonly before: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
3052
|
+
readonly after?: never;
|
|
3053
|
+
} | {
|
|
3054
|
+
readonly after: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
3055
|
+
readonly before?: never;
|
|
3056
|
+
};
|
|
3057
|
+
} | {
|
|
3058
|
+
readonly _tag: "InsertedColumn";
|
|
3059
|
+
readonly where: "after" | "before";
|
|
3060
|
+
} | {
|
|
3061
|
+
readonly _tag: "InsertedFootnote";
|
|
3062
|
+
readonly text?: string;
|
|
3063
|
+
} | {
|
|
3064
|
+
readonly _tag: "InsertedRow";
|
|
3065
|
+
readonly where: "after" | "before";
|
|
3066
|
+
} | {
|
|
3067
|
+
readonly _tag: "LiftedBlock";
|
|
3068
|
+
} | {
|
|
3069
|
+
readonly _tag: "MovedBlock";
|
|
3070
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
3071
|
+
readonly to: {
|
|
3072
|
+
readonly before: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
3073
|
+
readonly after?: never;
|
|
3074
|
+
} | {
|
|
3075
|
+
readonly after: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
3076
|
+
readonly before?: never;
|
|
3077
|
+
};
|
|
3078
|
+
} | {
|
|
3079
|
+
readonly _tag: "Outdented";
|
|
3080
|
+
} | {
|
|
3081
|
+
readonly _tag: "Pasted";
|
|
3082
|
+
readonly slice: {
|
|
3083
|
+
readonly version: 1;
|
|
3084
|
+
readonly blocks: readonly ({
|
|
3085
|
+
readonly type: "Paragraph";
|
|
3086
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
3087
|
+
readonly children: readonly {
|
|
3088
|
+
readonly type: "Text";
|
|
3089
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
3090
|
+
readonly text: string;
|
|
3091
|
+
readonly marks: readonly (string | {
|
|
3092
|
+
readonly name: string;
|
|
3093
|
+
readonly props?: {
|
|
3094
|
+
readonly [x: string]: Schema.Json;
|
|
3095
|
+
};
|
|
3096
|
+
})[];
|
|
3097
|
+
}[];
|
|
3098
|
+
} | {
|
|
3099
|
+
readonly type: "Heading";
|
|
3100
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
3101
|
+
readonly level: 1 | 2 | 3 | 4 | 5 | 6;
|
|
3102
|
+
readonly children: readonly {
|
|
3103
|
+
readonly type: "Text";
|
|
3104
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
3105
|
+
readonly text: string;
|
|
2708
3106
|
readonly marks: readonly (string | {
|
|
2709
3107
|
readonly name: string;
|
|
2710
3108
|
readonly props?: {
|
|
@@ -2755,6 +3153,16 @@ export declare const ParentMessage: import("foldkit/message").MessageUnion<{
|
|
|
2755
3153
|
readonly _tag: "Patched";
|
|
2756
3154
|
} | {
|
|
2757
3155
|
readonly _tag: "Redone";
|
|
3156
|
+
} | {
|
|
3157
|
+
readonly _tag: "RenamedFootnote";
|
|
3158
|
+
readonly from: string;
|
|
3159
|
+
readonly to: string;
|
|
3160
|
+
} | {
|
|
3161
|
+
readonly _tag: "ReplacedText";
|
|
3162
|
+
readonly query: string;
|
|
3163
|
+
readonly replacement: string;
|
|
3164
|
+
readonly caseSensitive?: boolean;
|
|
3165
|
+
readonly at?: number;
|
|
2758
3166
|
} | {
|
|
2759
3167
|
readonly _tag: "RetypedBlock";
|
|
2760
3168
|
readonly block: {
|
|
@@ -2819,6 +3227,23 @@ export interface EditorPlacement {
|
|
|
2819
3227
|
readonly decorate?: Decorate | undefined;
|
|
2820
3228
|
/** What the editor shows while its document is blank (`RichText.isBlank`). Defaults to none. */
|
|
2821
3229
|
readonly placeholder?: string | undefined;
|
|
3230
|
+
/**
|
|
3231
|
+
* What the empty paragraph the caret is in shows, such as "Type / for blocks", as
|
|
3232
|
+
* `data-hint` on it. Defaults to none.
|
|
3233
|
+
*/
|
|
3234
|
+
readonly lineHint?: string | undefined;
|
|
3235
|
+
/**
|
|
3236
|
+
* Chords beside the built-in ones (Bold, Italic, Code, Strikethrough, undo and redo), checked
|
|
3237
|
+
* first: `{ chord: 'Mod-u', command: { type: 'ToggleMark', mark: 'Underline' } }` for a mark
|
|
3238
|
+
* of the application's own. Defaults to none.
|
|
3239
|
+
*/
|
|
3240
|
+
readonly keymap?: ReadonlyArray<KeyBinding> | undefined;
|
|
3241
|
+
/**
|
|
3242
|
+
* What its slash menu offers, which Enter resolves against: an application's own entries
|
|
3243
|
+
* (an image, a table, a callout) beside or instead of `slashEntries`. The application's menu
|
|
3244
|
+
* view draws the same list. Defaults to `slashEntries`.
|
|
3245
|
+
*/
|
|
3246
|
+
readonly slashEntries?: ReadonlyArray<SlashEntry<EditorEvent>> | undefined;
|
|
2822
3247
|
/**
|
|
2823
3248
|
* Whether this render is the server's (§145), such as `foldkit-ssr`'s `SSR.serving`. While it
|
|
2824
3249
|
* is, the host carries the document's markup, which the browser's editor adopts instead of
|
|
@@ -3106,9 +3531,18 @@ export declare const editorAt: (hostId: string, placement?: EditorPlacement) =>
|
|
|
3106
3531
|
};
|
|
3107
3532
|
readonly storedMarks: readonly string[] | null;
|
|
3108
3533
|
readonly menuIndex: number;
|
|
3534
|
+
readonly slashDismissed: Option.Option<{
|
|
3535
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
3536
|
+
readonly offset: number;
|
|
3537
|
+
readonly affinity: "after" | "before";
|
|
3538
|
+
}>;
|
|
3109
3539
|
readonly hostId: string;
|
|
3110
3540
|
};
|
|
3111
3541
|
}, Wrapped<"GotEditorMessage", {
|
|
3542
|
+
readonly _tag: "ActivatedAdornment";
|
|
3543
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
3544
|
+
readonly action: string;
|
|
3545
|
+
} | {
|
|
3112
3546
|
readonly _tag: "AppliedMark";
|
|
3113
3547
|
readonly mark: string | {
|
|
3114
3548
|
readonly name: string;
|
|
@@ -3118,9 +3552,20 @@ export declare const editorAt: (hostId: string, placement?: EditorPlacement) =>
|
|
|
3118
3552
|
};
|
|
3119
3553
|
} | {
|
|
3120
3554
|
readonly _tag: "Backspace";
|
|
3555
|
+
} | {
|
|
3556
|
+
readonly _tag: "ChangedProps";
|
|
3557
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
3558
|
+
readonly props: {
|
|
3559
|
+
readonly [x: string]: Schema.Json;
|
|
3560
|
+
};
|
|
3121
3561
|
} | {
|
|
3122
3562
|
readonly _tag: "ClearedMark";
|
|
3123
|
-
readonly mark: string
|
|
3563
|
+
readonly mark: string | {
|
|
3564
|
+
readonly name: string;
|
|
3565
|
+
readonly props?: {
|
|
3566
|
+
readonly [x: string]: Schema.Json;
|
|
3567
|
+
};
|
|
3568
|
+
};
|
|
3124
3569
|
} | {
|
|
3125
3570
|
readonly _tag: "ConvertedBlock";
|
|
3126
3571
|
readonly to: {
|
|
@@ -3129,10 +3574,106 @@ export declare const editorAt: (hostId: string, placement?: EditorPlacement) =>
|
|
|
3129
3574
|
readonly [x: string]: Schema.Json;
|
|
3130
3575
|
};
|
|
3131
3576
|
};
|
|
3577
|
+
} | {
|
|
3578
|
+
readonly _tag: "DeletedBlock";
|
|
3579
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
3580
|
+
} | {
|
|
3581
|
+
readonly _tag: "DeletedColumn";
|
|
3132
3582
|
} | {
|
|
3133
3583
|
readonly _tag: "DeletedForward";
|
|
3584
|
+
} | {
|
|
3585
|
+
readonly _tag: "DeletedRow";
|
|
3586
|
+
} | {
|
|
3587
|
+
readonly _tag: "DismissedSlash";
|
|
3134
3588
|
} | {
|
|
3135
3589
|
readonly _tag: "Entered";
|
|
3590
|
+
} | {
|
|
3591
|
+
readonly _tag: "Indented";
|
|
3592
|
+
} | {
|
|
3593
|
+
readonly _tag: "InsertedBlock";
|
|
3594
|
+
readonly block: {
|
|
3595
|
+
readonly type: "Paragraph";
|
|
3596
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
3597
|
+
readonly children: readonly {
|
|
3598
|
+
readonly type: "Text";
|
|
3599
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
3600
|
+
readonly text: string;
|
|
3601
|
+
readonly marks: readonly (string | {
|
|
3602
|
+
readonly name: string;
|
|
3603
|
+
readonly props?: {
|
|
3604
|
+
readonly [x: string]: Schema.Json;
|
|
3605
|
+
};
|
|
3606
|
+
})[];
|
|
3607
|
+
}[];
|
|
3608
|
+
} | {
|
|
3609
|
+
readonly type: "Heading";
|
|
3610
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
3611
|
+
readonly level: 1 | 2 | 3 | 4 | 5 | 6;
|
|
3612
|
+
readonly children: readonly {
|
|
3613
|
+
readonly type: "Text";
|
|
3614
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
3615
|
+
readonly text: string;
|
|
3616
|
+
readonly marks: readonly (string | {
|
|
3617
|
+
readonly name: string;
|
|
3618
|
+
readonly props?: {
|
|
3619
|
+
readonly [x: string]: Schema.Json;
|
|
3620
|
+
};
|
|
3621
|
+
})[];
|
|
3622
|
+
}[];
|
|
3623
|
+
} | {
|
|
3624
|
+
readonly type: "Node";
|
|
3625
|
+
readonly kind: string;
|
|
3626
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
3627
|
+
readonly props: {
|
|
3628
|
+
readonly [x: string]: Schema.Json;
|
|
3629
|
+
};
|
|
3630
|
+
readonly children: readonly {
|
|
3631
|
+
readonly type: "Text";
|
|
3632
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
3633
|
+
readonly text: string;
|
|
3634
|
+
readonly marks: readonly (string | {
|
|
3635
|
+
readonly name: string;
|
|
3636
|
+
readonly props?: {
|
|
3637
|
+
readonly [x: string]: Schema.Json;
|
|
3638
|
+
};
|
|
3639
|
+
})[];
|
|
3640
|
+
}[];
|
|
3641
|
+
readonly blocks?: readonly RichText.Block[];
|
|
3642
|
+
} | {
|
|
3643
|
+
readonly type: "Unknown";
|
|
3644
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
3645
|
+
readonly originalType: string;
|
|
3646
|
+
readonly props: {
|
|
3647
|
+
readonly [x: string]: Schema.Json;
|
|
3648
|
+
};
|
|
3649
|
+
readonly children: readonly {
|
|
3650
|
+
readonly type: "Text";
|
|
3651
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
3652
|
+
readonly text: string;
|
|
3653
|
+
readonly marks: readonly (string | {
|
|
3654
|
+
readonly name: string;
|
|
3655
|
+
readonly props?: {
|
|
3656
|
+
readonly [x: string]: Schema.Json;
|
|
3657
|
+
};
|
|
3658
|
+
})[];
|
|
3659
|
+
}[];
|
|
3660
|
+
};
|
|
3661
|
+
readonly to?: {
|
|
3662
|
+
readonly before: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
3663
|
+
readonly after?: never;
|
|
3664
|
+
} | {
|
|
3665
|
+
readonly after: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
3666
|
+
readonly before?: never;
|
|
3667
|
+
};
|
|
3668
|
+
} | {
|
|
3669
|
+
readonly _tag: "InsertedColumn";
|
|
3670
|
+
readonly where: "after" | "before";
|
|
3671
|
+
} | {
|
|
3672
|
+
readonly _tag: "InsertedFootnote";
|
|
3673
|
+
readonly text?: string;
|
|
3674
|
+
} | {
|
|
3675
|
+
readonly _tag: "InsertedRow";
|
|
3676
|
+
readonly where: "after" | "before";
|
|
3136
3677
|
} | {
|
|
3137
3678
|
readonly _tag: "LiftedBlock";
|
|
3138
3679
|
} | {
|
|
@@ -3145,6 +3686,8 @@ export declare const editorAt: (hostId: string, placement?: EditorPlacement) =>
|
|
|
3145
3686
|
readonly after: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
3146
3687
|
readonly before?: never;
|
|
3147
3688
|
};
|
|
3689
|
+
} | {
|
|
3690
|
+
readonly _tag: "Outdented";
|
|
3148
3691
|
} | {
|
|
3149
3692
|
readonly _tag: "Pasted";
|
|
3150
3693
|
readonly slice: {
|
|
@@ -3221,6 +3764,16 @@ export declare const editorAt: (hostId: string, placement?: EditorPlacement) =>
|
|
|
3221
3764
|
readonly _tag: "Patched";
|
|
3222
3765
|
} | {
|
|
3223
3766
|
readonly _tag: "Redone";
|
|
3767
|
+
} | {
|
|
3768
|
+
readonly _tag: "RenamedFootnote";
|
|
3769
|
+
readonly from: string;
|
|
3770
|
+
readonly to: string;
|
|
3771
|
+
} | {
|
|
3772
|
+
readonly _tag: "ReplacedText";
|
|
3773
|
+
readonly query: string;
|
|
3774
|
+
readonly replacement: string;
|
|
3775
|
+
readonly caseSensitive?: boolean;
|
|
3776
|
+
readonly at?: number;
|
|
3224
3777
|
} | {
|
|
3225
3778
|
readonly _tag: "RetypedBlock";
|
|
3226
3779
|
readonly block: {
|
|
@@ -3532,8 +4085,17 @@ export declare const editorAt: (hostId: string, placement?: EditorPlacement) =>
|
|
|
3532
4085
|
};
|
|
3533
4086
|
readonly storedMarks: readonly string[] | null;
|
|
3534
4087
|
readonly menuIndex: number;
|
|
4088
|
+
readonly slashDismissed: Option.Option<{
|
|
4089
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
4090
|
+
readonly offset: number;
|
|
4091
|
+
readonly affinity: "after" | "before";
|
|
4092
|
+
}>;
|
|
3535
4093
|
readonly hostId: string;
|
|
3536
4094
|
}, {
|
|
4095
|
+
readonly _tag: "ActivatedAdornment";
|
|
4096
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
4097
|
+
readonly action: string;
|
|
4098
|
+
} | {
|
|
3537
4099
|
readonly _tag: "AppliedMark";
|
|
3538
4100
|
readonly mark: string | {
|
|
3539
4101
|
readonly name: string;
|
|
@@ -3543,9 +4105,20 @@ export declare const editorAt: (hostId: string, placement?: EditorPlacement) =>
|
|
|
3543
4105
|
};
|
|
3544
4106
|
} | {
|
|
3545
4107
|
readonly _tag: "Backspace";
|
|
4108
|
+
} | {
|
|
4109
|
+
readonly _tag: "ChangedProps";
|
|
4110
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
4111
|
+
readonly props: {
|
|
4112
|
+
readonly [x: string]: Schema.Json;
|
|
4113
|
+
};
|
|
3546
4114
|
} | {
|
|
3547
4115
|
readonly _tag: "ClearedMark";
|
|
3548
|
-
readonly mark: string
|
|
4116
|
+
readonly mark: string | {
|
|
4117
|
+
readonly name: string;
|
|
4118
|
+
readonly props?: {
|
|
4119
|
+
readonly [x: string]: Schema.Json;
|
|
4120
|
+
};
|
|
4121
|
+
};
|
|
3549
4122
|
} | {
|
|
3550
4123
|
readonly _tag: "ConvertedBlock";
|
|
3551
4124
|
readonly to: {
|
|
@@ -3554,10 +4127,106 @@ export declare const editorAt: (hostId: string, placement?: EditorPlacement) =>
|
|
|
3554
4127
|
readonly [x: string]: Schema.Json;
|
|
3555
4128
|
};
|
|
3556
4129
|
};
|
|
4130
|
+
} | {
|
|
4131
|
+
readonly _tag: "DeletedBlock";
|
|
4132
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
4133
|
+
} | {
|
|
4134
|
+
readonly _tag: "DeletedColumn";
|
|
3557
4135
|
} | {
|
|
3558
4136
|
readonly _tag: "DeletedForward";
|
|
4137
|
+
} | {
|
|
4138
|
+
readonly _tag: "DeletedRow";
|
|
4139
|
+
} | {
|
|
4140
|
+
readonly _tag: "DismissedSlash";
|
|
3559
4141
|
} | {
|
|
3560
4142
|
readonly _tag: "Entered";
|
|
4143
|
+
} | {
|
|
4144
|
+
readonly _tag: "Indented";
|
|
4145
|
+
} | {
|
|
4146
|
+
readonly _tag: "InsertedBlock";
|
|
4147
|
+
readonly block: {
|
|
4148
|
+
readonly type: "Paragraph";
|
|
4149
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
4150
|
+
readonly children: readonly {
|
|
4151
|
+
readonly type: "Text";
|
|
4152
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
4153
|
+
readonly text: string;
|
|
4154
|
+
readonly marks: readonly (string | {
|
|
4155
|
+
readonly name: string;
|
|
4156
|
+
readonly props?: {
|
|
4157
|
+
readonly [x: string]: Schema.Json;
|
|
4158
|
+
};
|
|
4159
|
+
})[];
|
|
4160
|
+
}[];
|
|
4161
|
+
} | {
|
|
4162
|
+
readonly type: "Heading";
|
|
4163
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
4164
|
+
readonly level: 1 | 2 | 3 | 4 | 5 | 6;
|
|
4165
|
+
readonly children: readonly {
|
|
4166
|
+
readonly type: "Text";
|
|
4167
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
4168
|
+
readonly text: string;
|
|
4169
|
+
readonly marks: readonly (string | {
|
|
4170
|
+
readonly name: string;
|
|
4171
|
+
readonly props?: {
|
|
4172
|
+
readonly [x: string]: Schema.Json;
|
|
4173
|
+
};
|
|
4174
|
+
})[];
|
|
4175
|
+
}[];
|
|
4176
|
+
} | {
|
|
4177
|
+
readonly type: "Node";
|
|
4178
|
+
readonly kind: string;
|
|
4179
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
4180
|
+
readonly props: {
|
|
4181
|
+
readonly [x: string]: Schema.Json;
|
|
4182
|
+
};
|
|
4183
|
+
readonly children: readonly {
|
|
4184
|
+
readonly type: "Text";
|
|
4185
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
4186
|
+
readonly text: string;
|
|
4187
|
+
readonly marks: readonly (string | {
|
|
4188
|
+
readonly name: string;
|
|
4189
|
+
readonly props?: {
|
|
4190
|
+
readonly [x: string]: Schema.Json;
|
|
4191
|
+
};
|
|
4192
|
+
})[];
|
|
4193
|
+
}[];
|
|
4194
|
+
readonly blocks?: readonly RichText.Block[];
|
|
4195
|
+
} | {
|
|
4196
|
+
readonly type: "Unknown";
|
|
4197
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
4198
|
+
readonly originalType: string;
|
|
4199
|
+
readonly props: {
|
|
4200
|
+
readonly [x: string]: Schema.Json;
|
|
4201
|
+
};
|
|
4202
|
+
readonly children: readonly {
|
|
4203
|
+
readonly type: "Text";
|
|
4204
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
4205
|
+
readonly text: string;
|
|
4206
|
+
readonly marks: readonly (string | {
|
|
4207
|
+
readonly name: string;
|
|
4208
|
+
readonly props?: {
|
|
4209
|
+
readonly [x: string]: Schema.Json;
|
|
4210
|
+
};
|
|
4211
|
+
})[];
|
|
4212
|
+
}[];
|
|
4213
|
+
};
|
|
4214
|
+
readonly to?: {
|
|
4215
|
+
readonly before: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
4216
|
+
readonly after?: never;
|
|
4217
|
+
} | {
|
|
4218
|
+
readonly after: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
4219
|
+
readonly before?: never;
|
|
4220
|
+
};
|
|
4221
|
+
} | {
|
|
4222
|
+
readonly _tag: "InsertedColumn";
|
|
4223
|
+
readonly where: "after" | "before";
|
|
4224
|
+
} | {
|
|
4225
|
+
readonly _tag: "InsertedFootnote";
|
|
4226
|
+
readonly text?: string;
|
|
4227
|
+
} | {
|
|
4228
|
+
readonly _tag: "InsertedRow";
|
|
4229
|
+
readonly where: "after" | "before";
|
|
3561
4230
|
} | {
|
|
3562
4231
|
readonly _tag: "LiftedBlock";
|
|
3563
4232
|
} | {
|
|
@@ -3570,6 +4239,8 @@ export declare const editorAt: (hostId: string, placement?: EditorPlacement) =>
|
|
|
3570
4239
|
readonly after: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
3571
4240
|
readonly before?: never;
|
|
3572
4241
|
};
|
|
4242
|
+
} | {
|
|
4243
|
+
readonly _tag: "Outdented";
|
|
3573
4244
|
} | {
|
|
3574
4245
|
readonly _tag: "Pasted";
|
|
3575
4246
|
readonly slice: {
|
|
@@ -3646,6 +4317,16 @@ export declare const editorAt: (hostId: string, placement?: EditorPlacement) =>
|
|
|
3646
4317
|
readonly _tag: "Patched";
|
|
3647
4318
|
} | {
|
|
3648
4319
|
readonly _tag: "Redone";
|
|
4320
|
+
} | {
|
|
4321
|
+
readonly _tag: "RenamedFootnote";
|
|
4322
|
+
readonly from: string;
|
|
4323
|
+
readonly to: string;
|
|
4324
|
+
} | {
|
|
4325
|
+
readonly _tag: "ReplacedText";
|
|
4326
|
+
readonly query: string;
|
|
4327
|
+
readonly replacement: string;
|
|
4328
|
+
readonly caseSensitive?: boolean;
|
|
4329
|
+
readonly at?: number;
|
|
3649
4330
|
} | {
|
|
3650
4331
|
readonly _tag: "RetypedBlock";
|
|
3651
4332
|
readonly block: {
|
|
@@ -3959,9 +4640,18 @@ export declare const editor: import("foldkit-bundle").Placed<"RichTextEditor", {
|
|
|
3959
4640
|
};
|
|
3960
4641
|
readonly storedMarks: readonly string[] | null;
|
|
3961
4642
|
readonly menuIndex: number;
|
|
4643
|
+
readonly slashDismissed: Option.Option<{
|
|
4644
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
4645
|
+
readonly offset: number;
|
|
4646
|
+
readonly affinity: "after" | "before";
|
|
4647
|
+
}>;
|
|
3962
4648
|
readonly hostId: string;
|
|
3963
4649
|
};
|
|
3964
4650
|
}, Wrapped<"GotEditorMessage", {
|
|
4651
|
+
readonly _tag: "ActivatedAdornment";
|
|
4652
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
4653
|
+
readonly action: string;
|
|
4654
|
+
} | {
|
|
3965
4655
|
readonly _tag: "AppliedMark";
|
|
3966
4656
|
readonly mark: string | {
|
|
3967
4657
|
readonly name: string;
|
|
@@ -3972,20 +4662,127 @@ export declare const editor: import("foldkit-bundle").Placed<"RichTextEditor", {
|
|
|
3972
4662
|
} | {
|
|
3973
4663
|
readonly _tag: "Backspace";
|
|
3974
4664
|
} | {
|
|
3975
|
-
readonly _tag: "
|
|
3976
|
-
readonly
|
|
4665
|
+
readonly _tag: "ChangedProps";
|
|
4666
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
4667
|
+
readonly props: {
|
|
4668
|
+
readonly [x: string]: Schema.Json;
|
|
4669
|
+
};
|
|
3977
4670
|
} | {
|
|
3978
|
-
readonly _tag: "
|
|
3979
|
-
readonly
|
|
4671
|
+
readonly _tag: "ClearedMark";
|
|
4672
|
+
readonly mark: string | {
|
|
4673
|
+
readonly name: string;
|
|
4674
|
+
readonly props?: {
|
|
4675
|
+
readonly [x: string]: Schema.Json;
|
|
4676
|
+
};
|
|
4677
|
+
};
|
|
4678
|
+
} | {
|
|
4679
|
+
readonly _tag: "ConvertedBlock";
|
|
4680
|
+
readonly to: {
|
|
3980
4681
|
readonly kind: string;
|
|
3981
4682
|
readonly props?: {
|
|
3982
4683
|
readonly [x: string]: Schema.Json;
|
|
3983
4684
|
};
|
|
3984
4685
|
};
|
|
4686
|
+
} | {
|
|
4687
|
+
readonly _tag: "DeletedBlock";
|
|
4688
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
4689
|
+
} | {
|
|
4690
|
+
readonly _tag: "DeletedColumn";
|
|
3985
4691
|
} | {
|
|
3986
4692
|
readonly _tag: "DeletedForward";
|
|
4693
|
+
} | {
|
|
4694
|
+
readonly _tag: "DeletedRow";
|
|
4695
|
+
} | {
|
|
4696
|
+
readonly _tag: "DismissedSlash";
|
|
3987
4697
|
} | {
|
|
3988
4698
|
readonly _tag: "Entered";
|
|
4699
|
+
} | {
|
|
4700
|
+
readonly _tag: "Indented";
|
|
4701
|
+
} | {
|
|
4702
|
+
readonly _tag: "InsertedBlock";
|
|
4703
|
+
readonly block: {
|
|
4704
|
+
readonly type: "Paragraph";
|
|
4705
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
4706
|
+
readonly children: readonly {
|
|
4707
|
+
readonly type: "Text";
|
|
4708
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
4709
|
+
readonly text: string;
|
|
4710
|
+
readonly marks: readonly (string | {
|
|
4711
|
+
readonly name: string;
|
|
4712
|
+
readonly props?: {
|
|
4713
|
+
readonly [x: string]: Schema.Json;
|
|
4714
|
+
};
|
|
4715
|
+
})[];
|
|
4716
|
+
}[];
|
|
4717
|
+
} | {
|
|
4718
|
+
readonly type: "Heading";
|
|
4719
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
4720
|
+
readonly level: 1 | 2 | 3 | 4 | 5 | 6;
|
|
4721
|
+
readonly children: readonly {
|
|
4722
|
+
readonly type: "Text";
|
|
4723
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
4724
|
+
readonly text: string;
|
|
4725
|
+
readonly marks: readonly (string | {
|
|
4726
|
+
readonly name: string;
|
|
4727
|
+
readonly props?: {
|
|
4728
|
+
readonly [x: string]: Schema.Json;
|
|
4729
|
+
};
|
|
4730
|
+
})[];
|
|
4731
|
+
}[];
|
|
4732
|
+
} | {
|
|
4733
|
+
readonly type: "Node";
|
|
4734
|
+
readonly kind: string;
|
|
4735
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
4736
|
+
readonly props: {
|
|
4737
|
+
readonly [x: string]: Schema.Json;
|
|
4738
|
+
};
|
|
4739
|
+
readonly children: readonly {
|
|
4740
|
+
readonly type: "Text";
|
|
4741
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
4742
|
+
readonly text: string;
|
|
4743
|
+
readonly marks: readonly (string | {
|
|
4744
|
+
readonly name: string;
|
|
4745
|
+
readonly props?: {
|
|
4746
|
+
readonly [x: string]: Schema.Json;
|
|
4747
|
+
};
|
|
4748
|
+
})[];
|
|
4749
|
+
}[];
|
|
4750
|
+
readonly blocks?: readonly RichText.Block[];
|
|
4751
|
+
} | {
|
|
4752
|
+
readonly type: "Unknown";
|
|
4753
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
4754
|
+
readonly originalType: string;
|
|
4755
|
+
readonly props: {
|
|
4756
|
+
readonly [x: string]: Schema.Json;
|
|
4757
|
+
};
|
|
4758
|
+
readonly children: readonly {
|
|
4759
|
+
readonly type: "Text";
|
|
4760
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
4761
|
+
readonly text: string;
|
|
4762
|
+
readonly marks: readonly (string | {
|
|
4763
|
+
readonly name: string;
|
|
4764
|
+
readonly props?: {
|
|
4765
|
+
readonly [x: string]: Schema.Json;
|
|
4766
|
+
};
|
|
4767
|
+
})[];
|
|
4768
|
+
}[];
|
|
4769
|
+
};
|
|
4770
|
+
readonly to?: {
|
|
4771
|
+
readonly before: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
4772
|
+
readonly after?: never;
|
|
4773
|
+
} | {
|
|
4774
|
+
readonly after: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
4775
|
+
readonly before?: never;
|
|
4776
|
+
};
|
|
4777
|
+
} | {
|
|
4778
|
+
readonly _tag: "InsertedColumn";
|
|
4779
|
+
readonly where: "after" | "before";
|
|
4780
|
+
} | {
|
|
4781
|
+
readonly _tag: "InsertedFootnote";
|
|
4782
|
+
readonly text?: string;
|
|
4783
|
+
} | {
|
|
4784
|
+
readonly _tag: "InsertedRow";
|
|
4785
|
+
readonly where: "after" | "before";
|
|
3989
4786
|
} | {
|
|
3990
4787
|
readonly _tag: "LiftedBlock";
|
|
3991
4788
|
} | {
|
|
@@ -3998,6 +4795,8 @@ export declare const editor: import("foldkit-bundle").Placed<"RichTextEditor", {
|
|
|
3998
4795
|
readonly after: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
3999
4796
|
readonly before?: never;
|
|
4000
4797
|
};
|
|
4798
|
+
} | {
|
|
4799
|
+
readonly _tag: "Outdented";
|
|
4001
4800
|
} | {
|
|
4002
4801
|
readonly _tag: "Pasted";
|
|
4003
4802
|
readonly slice: {
|
|
@@ -4074,6 +4873,16 @@ export declare const editor: import("foldkit-bundle").Placed<"RichTextEditor", {
|
|
|
4074
4873
|
readonly _tag: "Patched";
|
|
4075
4874
|
} | {
|
|
4076
4875
|
readonly _tag: "Redone";
|
|
4876
|
+
} | {
|
|
4877
|
+
readonly _tag: "RenamedFootnote";
|
|
4878
|
+
readonly from: string;
|
|
4879
|
+
readonly to: string;
|
|
4880
|
+
} | {
|
|
4881
|
+
readonly _tag: "ReplacedText";
|
|
4882
|
+
readonly query: string;
|
|
4883
|
+
readonly replacement: string;
|
|
4884
|
+
readonly caseSensitive?: boolean;
|
|
4885
|
+
readonly at?: number;
|
|
4077
4886
|
} | {
|
|
4078
4887
|
readonly _tag: "RetypedBlock";
|
|
4079
4888
|
readonly block: {
|
|
@@ -4385,8 +5194,17 @@ export declare const editor: import("foldkit-bundle").Placed<"RichTextEditor", {
|
|
|
4385
5194
|
};
|
|
4386
5195
|
readonly storedMarks: readonly string[] | null;
|
|
4387
5196
|
readonly menuIndex: number;
|
|
5197
|
+
readonly slashDismissed: Option.Option<{
|
|
5198
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
5199
|
+
readonly offset: number;
|
|
5200
|
+
readonly affinity: "after" | "before";
|
|
5201
|
+
}>;
|
|
4388
5202
|
readonly hostId: string;
|
|
4389
5203
|
}, {
|
|
5204
|
+
readonly _tag: "ActivatedAdornment";
|
|
5205
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
5206
|
+
readonly action: string;
|
|
5207
|
+
} | {
|
|
4390
5208
|
readonly _tag: "AppliedMark";
|
|
4391
5209
|
readonly mark: string | {
|
|
4392
5210
|
readonly name: string;
|
|
@@ -4396,9 +5214,20 @@ export declare const editor: import("foldkit-bundle").Placed<"RichTextEditor", {
|
|
|
4396
5214
|
};
|
|
4397
5215
|
} | {
|
|
4398
5216
|
readonly _tag: "Backspace";
|
|
5217
|
+
} | {
|
|
5218
|
+
readonly _tag: "ChangedProps";
|
|
5219
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
5220
|
+
readonly props: {
|
|
5221
|
+
readonly [x: string]: Schema.Json;
|
|
5222
|
+
};
|
|
4399
5223
|
} | {
|
|
4400
5224
|
readonly _tag: "ClearedMark";
|
|
4401
|
-
readonly mark: string
|
|
5225
|
+
readonly mark: string | {
|
|
5226
|
+
readonly name: string;
|
|
5227
|
+
readonly props?: {
|
|
5228
|
+
readonly [x: string]: Schema.Json;
|
|
5229
|
+
};
|
|
5230
|
+
};
|
|
4402
5231
|
} | {
|
|
4403
5232
|
readonly _tag: "ConvertedBlock";
|
|
4404
5233
|
readonly to: {
|
|
@@ -4407,10 +5236,106 @@ export declare const editor: import("foldkit-bundle").Placed<"RichTextEditor", {
|
|
|
4407
5236
|
readonly [x: string]: Schema.Json;
|
|
4408
5237
|
};
|
|
4409
5238
|
};
|
|
5239
|
+
} | {
|
|
5240
|
+
readonly _tag: "DeletedBlock";
|
|
5241
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
5242
|
+
} | {
|
|
5243
|
+
readonly _tag: "DeletedColumn";
|
|
4410
5244
|
} | {
|
|
4411
5245
|
readonly _tag: "DeletedForward";
|
|
5246
|
+
} | {
|
|
5247
|
+
readonly _tag: "DeletedRow";
|
|
5248
|
+
} | {
|
|
5249
|
+
readonly _tag: "DismissedSlash";
|
|
4412
5250
|
} | {
|
|
4413
5251
|
readonly _tag: "Entered";
|
|
5252
|
+
} | {
|
|
5253
|
+
readonly _tag: "Indented";
|
|
5254
|
+
} | {
|
|
5255
|
+
readonly _tag: "InsertedBlock";
|
|
5256
|
+
readonly block: {
|
|
5257
|
+
readonly type: "Paragraph";
|
|
5258
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
5259
|
+
readonly children: readonly {
|
|
5260
|
+
readonly type: "Text";
|
|
5261
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
5262
|
+
readonly text: string;
|
|
5263
|
+
readonly marks: readonly (string | {
|
|
5264
|
+
readonly name: string;
|
|
5265
|
+
readonly props?: {
|
|
5266
|
+
readonly [x: string]: Schema.Json;
|
|
5267
|
+
};
|
|
5268
|
+
})[];
|
|
5269
|
+
}[];
|
|
5270
|
+
} | {
|
|
5271
|
+
readonly type: "Heading";
|
|
5272
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
5273
|
+
readonly level: 1 | 2 | 3 | 4 | 5 | 6;
|
|
5274
|
+
readonly children: readonly {
|
|
5275
|
+
readonly type: "Text";
|
|
5276
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
5277
|
+
readonly text: string;
|
|
5278
|
+
readonly marks: readonly (string | {
|
|
5279
|
+
readonly name: string;
|
|
5280
|
+
readonly props?: {
|
|
5281
|
+
readonly [x: string]: Schema.Json;
|
|
5282
|
+
};
|
|
5283
|
+
})[];
|
|
5284
|
+
}[];
|
|
5285
|
+
} | {
|
|
5286
|
+
readonly type: "Node";
|
|
5287
|
+
readonly kind: string;
|
|
5288
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
5289
|
+
readonly props: {
|
|
5290
|
+
readonly [x: string]: Schema.Json;
|
|
5291
|
+
};
|
|
5292
|
+
readonly children: readonly {
|
|
5293
|
+
readonly type: "Text";
|
|
5294
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
5295
|
+
readonly text: string;
|
|
5296
|
+
readonly marks: readonly (string | {
|
|
5297
|
+
readonly name: string;
|
|
5298
|
+
readonly props?: {
|
|
5299
|
+
readonly [x: string]: Schema.Json;
|
|
5300
|
+
};
|
|
5301
|
+
})[];
|
|
5302
|
+
}[];
|
|
5303
|
+
readonly blocks?: readonly RichText.Block[];
|
|
5304
|
+
} | {
|
|
5305
|
+
readonly type: "Unknown";
|
|
5306
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
5307
|
+
readonly originalType: string;
|
|
5308
|
+
readonly props: {
|
|
5309
|
+
readonly [x: string]: Schema.Json;
|
|
5310
|
+
};
|
|
5311
|
+
readonly children: readonly {
|
|
5312
|
+
readonly type: "Text";
|
|
5313
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
5314
|
+
readonly text: string;
|
|
5315
|
+
readonly marks: readonly (string | {
|
|
5316
|
+
readonly name: string;
|
|
5317
|
+
readonly props?: {
|
|
5318
|
+
readonly [x: string]: Schema.Json;
|
|
5319
|
+
};
|
|
5320
|
+
})[];
|
|
5321
|
+
}[];
|
|
5322
|
+
};
|
|
5323
|
+
readonly to?: {
|
|
5324
|
+
readonly before: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
5325
|
+
readonly after?: never;
|
|
5326
|
+
} | {
|
|
5327
|
+
readonly after: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
5328
|
+
readonly before?: never;
|
|
5329
|
+
};
|
|
5330
|
+
} | {
|
|
5331
|
+
readonly _tag: "InsertedColumn";
|
|
5332
|
+
readonly where: "after" | "before";
|
|
5333
|
+
} | {
|
|
5334
|
+
readonly _tag: "InsertedFootnote";
|
|
5335
|
+
readonly text?: string;
|
|
5336
|
+
} | {
|
|
5337
|
+
readonly _tag: "InsertedRow";
|
|
5338
|
+
readonly where: "after" | "before";
|
|
4414
5339
|
} | {
|
|
4415
5340
|
readonly _tag: "LiftedBlock";
|
|
4416
5341
|
} | {
|
|
@@ -4423,6 +5348,8 @@ export declare const editor: import("foldkit-bundle").Placed<"RichTextEditor", {
|
|
|
4423
5348
|
readonly after: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
4424
5349
|
readonly before?: never;
|
|
4425
5350
|
};
|
|
5351
|
+
} | {
|
|
5352
|
+
readonly _tag: "Outdented";
|
|
4426
5353
|
} | {
|
|
4427
5354
|
readonly _tag: "Pasted";
|
|
4428
5355
|
readonly slice: {
|
|
@@ -4499,6 +5426,16 @@ export declare const editor: import("foldkit-bundle").Placed<"RichTextEditor", {
|
|
|
4499
5426
|
readonly _tag: "Patched";
|
|
4500
5427
|
} | {
|
|
4501
5428
|
readonly _tag: "Redone";
|
|
5429
|
+
} | {
|
|
5430
|
+
readonly _tag: "RenamedFootnote";
|
|
5431
|
+
readonly from: string;
|
|
5432
|
+
readonly to: string;
|
|
5433
|
+
} | {
|
|
5434
|
+
readonly _tag: "ReplacedText";
|
|
5435
|
+
readonly query: string;
|
|
5436
|
+
readonly replacement: string;
|
|
5437
|
+
readonly caseSensitive?: boolean;
|
|
5438
|
+
readonly at?: number;
|
|
4502
5439
|
} | {
|
|
4503
5440
|
readonly _tag: "RetypedBlock";
|
|
4504
5441
|
readonly block: {
|
|
@@ -4812,11 +5749,20 @@ export declare const application: Bundle.Assembly<{
|
|
|
4812
5749
|
};
|
|
4813
5750
|
readonly storedMarks: readonly string[] | null;
|
|
4814
5751
|
readonly menuIndex: number;
|
|
5752
|
+
readonly slashDismissed: Option.Option<{
|
|
5753
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
5754
|
+
readonly offset: number;
|
|
5755
|
+
readonly affinity: "after" | "before";
|
|
5756
|
+
}>;
|
|
4815
5757
|
readonly hostId: string;
|
|
4816
5758
|
};
|
|
4817
5759
|
}, {
|
|
4818
5760
|
readonly _tag: "GotEditorMessage";
|
|
4819
5761
|
readonly message: {
|
|
5762
|
+
readonly _tag: "ActivatedAdornment";
|
|
5763
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
5764
|
+
readonly action: string;
|
|
5765
|
+
} | {
|
|
4820
5766
|
readonly _tag: "AppliedMark";
|
|
4821
5767
|
readonly mark: string | {
|
|
4822
5768
|
readonly name: string;
|
|
@@ -4826,9 +5772,20 @@ export declare const application: Bundle.Assembly<{
|
|
|
4826
5772
|
};
|
|
4827
5773
|
} | {
|
|
4828
5774
|
readonly _tag: "Backspace";
|
|
5775
|
+
} | {
|
|
5776
|
+
readonly _tag: "ChangedProps";
|
|
5777
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
5778
|
+
readonly props: {
|
|
5779
|
+
readonly [x: string]: Schema.Json;
|
|
5780
|
+
};
|
|
4829
5781
|
} | {
|
|
4830
5782
|
readonly _tag: "ClearedMark";
|
|
4831
|
-
readonly mark: string
|
|
5783
|
+
readonly mark: string | {
|
|
5784
|
+
readonly name: string;
|
|
5785
|
+
readonly props?: {
|
|
5786
|
+
readonly [x: string]: Schema.Json;
|
|
5787
|
+
};
|
|
5788
|
+
};
|
|
4832
5789
|
} | {
|
|
4833
5790
|
readonly _tag: "ConvertedBlock";
|
|
4834
5791
|
readonly to: {
|
|
@@ -4837,10 +5794,106 @@ export declare const application: Bundle.Assembly<{
|
|
|
4837
5794
|
readonly [x: string]: Schema.Json;
|
|
4838
5795
|
};
|
|
4839
5796
|
};
|
|
5797
|
+
} | {
|
|
5798
|
+
readonly _tag: "DeletedBlock";
|
|
5799
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
5800
|
+
} | {
|
|
5801
|
+
readonly _tag: "DeletedColumn";
|
|
4840
5802
|
} | {
|
|
4841
5803
|
readonly _tag: "DeletedForward";
|
|
5804
|
+
} | {
|
|
5805
|
+
readonly _tag: "DeletedRow";
|
|
5806
|
+
} | {
|
|
5807
|
+
readonly _tag: "DismissedSlash";
|
|
4842
5808
|
} | {
|
|
4843
5809
|
readonly _tag: "Entered";
|
|
5810
|
+
} | {
|
|
5811
|
+
readonly _tag: "Indented";
|
|
5812
|
+
} | {
|
|
5813
|
+
readonly _tag: "InsertedBlock";
|
|
5814
|
+
readonly block: {
|
|
5815
|
+
readonly type: "Paragraph";
|
|
5816
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
5817
|
+
readonly children: readonly {
|
|
5818
|
+
readonly type: "Text";
|
|
5819
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
5820
|
+
readonly text: string;
|
|
5821
|
+
readonly marks: readonly (string | {
|
|
5822
|
+
readonly name: string;
|
|
5823
|
+
readonly props?: {
|
|
5824
|
+
readonly [x: string]: Schema.Json;
|
|
5825
|
+
};
|
|
5826
|
+
})[];
|
|
5827
|
+
}[];
|
|
5828
|
+
} | {
|
|
5829
|
+
readonly type: "Heading";
|
|
5830
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
5831
|
+
readonly level: 1 | 2 | 3 | 4 | 5 | 6;
|
|
5832
|
+
readonly children: readonly {
|
|
5833
|
+
readonly type: "Text";
|
|
5834
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
5835
|
+
readonly text: string;
|
|
5836
|
+
readonly marks: readonly (string | {
|
|
5837
|
+
readonly name: string;
|
|
5838
|
+
readonly props?: {
|
|
5839
|
+
readonly [x: string]: Schema.Json;
|
|
5840
|
+
};
|
|
5841
|
+
})[];
|
|
5842
|
+
}[];
|
|
5843
|
+
} | {
|
|
5844
|
+
readonly type: "Node";
|
|
5845
|
+
readonly kind: string;
|
|
5846
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
5847
|
+
readonly props: {
|
|
5848
|
+
readonly [x: string]: Schema.Json;
|
|
5849
|
+
};
|
|
5850
|
+
readonly children: readonly {
|
|
5851
|
+
readonly type: "Text";
|
|
5852
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
5853
|
+
readonly text: string;
|
|
5854
|
+
readonly marks: readonly (string | {
|
|
5855
|
+
readonly name: string;
|
|
5856
|
+
readonly props?: {
|
|
5857
|
+
readonly [x: string]: Schema.Json;
|
|
5858
|
+
};
|
|
5859
|
+
})[];
|
|
5860
|
+
}[];
|
|
5861
|
+
readonly blocks?: readonly RichText.Block[];
|
|
5862
|
+
} | {
|
|
5863
|
+
readonly type: "Unknown";
|
|
5864
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
5865
|
+
readonly originalType: string;
|
|
5866
|
+
readonly props: {
|
|
5867
|
+
readonly [x: string]: Schema.Json;
|
|
5868
|
+
};
|
|
5869
|
+
readonly children: readonly {
|
|
5870
|
+
readonly type: "Text";
|
|
5871
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
5872
|
+
readonly text: string;
|
|
5873
|
+
readonly marks: readonly (string | {
|
|
5874
|
+
readonly name: string;
|
|
5875
|
+
readonly props?: {
|
|
5876
|
+
readonly [x: string]: Schema.Json;
|
|
5877
|
+
};
|
|
5878
|
+
})[];
|
|
5879
|
+
}[];
|
|
5880
|
+
};
|
|
5881
|
+
readonly to?: {
|
|
5882
|
+
readonly before: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
5883
|
+
readonly after?: never;
|
|
5884
|
+
} | {
|
|
5885
|
+
readonly after: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
5886
|
+
readonly before?: never;
|
|
5887
|
+
};
|
|
5888
|
+
} | {
|
|
5889
|
+
readonly _tag: "InsertedColumn";
|
|
5890
|
+
readonly where: "after" | "before";
|
|
5891
|
+
} | {
|
|
5892
|
+
readonly _tag: "InsertedFootnote";
|
|
5893
|
+
readonly text?: string;
|
|
5894
|
+
} | {
|
|
5895
|
+
readonly _tag: "InsertedRow";
|
|
5896
|
+
readonly where: "after" | "before";
|
|
4844
5897
|
} | {
|
|
4845
5898
|
readonly _tag: "LiftedBlock";
|
|
4846
5899
|
} | {
|
|
@@ -4853,6 +5906,8 @@ export declare const application: Bundle.Assembly<{
|
|
|
4853
5906
|
readonly after: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
4854
5907
|
readonly before?: never;
|
|
4855
5908
|
};
|
|
5909
|
+
} | {
|
|
5910
|
+
readonly _tag: "Outdented";
|
|
4856
5911
|
} | {
|
|
4857
5912
|
readonly _tag: "Pasted";
|
|
4858
5913
|
readonly slice: {
|
|
@@ -4929,6 +5984,16 @@ export declare const application: Bundle.Assembly<{
|
|
|
4929
5984
|
readonly _tag: "Patched";
|
|
4930
5985
|
} | {
|
|
4931
5986
|
readonly _tag: "Redone";
|
|
5987
|
+
} | {
|
|
5988
|
+
readonly _tag: "RenamedFootnote";
|
|
5989
|
+
readonly from: string;
|
|
5990
|
+
readonly to: string;
|
|
5991
|
+
} | {
|
|
5992
|
+
readonly _tag: "ReplacedText";
|
|
5993
|
+
readonly query: string;
|
|
5994
|
+
readonly replacement: string;
|
|
5995
|
+
readonly caseSensitive?: boolean;
|
|
5996
|
+
readonly at?: number;
|
|
4932
5997
|
} | {
|
|
4933
5998
|
readonly _tag: "RetypedBlock";
|
|
4934
5999
|
readonly block: {
|
|
@@ -5242,9 +6307,18 @@ export declare const application: Bundle.Assembly<{
|
|
|
5242
6307
|
};
|
|
5243
6308
|
readonly storedMarks: readonly string[] | null;
|
|
5244
6309
|
readonly menuIndex: number;
|
|
6310
|
+
readonly slashDismissed: Option.Option<{
|
|
6311
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
6312
|
+
readonly offset: number;
|
|
6313
|
+
readonly affinity: "after" | "before";
|
|
6314
|
+
}>;
|
|
5245
6315
|
readonly hostId: string;
|
|
5246
6316
|
};
|
|
5247
6317
|
}, Wrapped<"GotEditorMessage", {
|
|
6318
|
+
readonly _tag: "ActivatedAdornment";
|
|
6319
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
6320
|
+
readonly action: string;
|
|
6321
|
+
} | {
|
|
5248
6322
|
readonly _tag: "AppliedMark";
|
|
5249
6323
|
readonly mark: string | {
|
|
5250
6324
|
readonly name: string;
|
|
@@ -5254,9 +6328,20 @@ export declare const application: Bundle.Assembly<{
|
|
|
5254
6328
|
};
|
|
5255
6329
|
} | {
|
|
5256
6330
|
readonly _tag: "Backspace";
|
|
6331
|
+
} | {
|
|
6332
|
+
readonly _tag: "ChangedProps";
|
|
6333
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
6334
|
+
readonly props: {
|
|
6335
|
+
readonly [x: string]: Schema.Json;
|
|
6336
|
+
};
|
|
5257
6337
|
} | {
|
|
5258
6338
|
readonly _tag: "ClearedMark";
|
|
5259
|
-
readonly mark: string
|
|
6339
|
+
readonly mark: string | {
|
|
6340
|
+
readonly name: string;
|
|
6341
|
+
readonly props?: {
|
|
6342
|
+
readonly [x: string]: Schema.Json;
|
|
6343
|
+
};
|
|
6344
|
+
};
|
|
5260
6345
|
} | {
|
|
5261
6346
|
readonly _tag: "ConvertedBlock";
|
|
5262
6347
|
readonly to: {
|
|
@@ -5265,10 +6350,106 @@ export declare const application: Bundle.Assembly<{
|
|
|
5265
6350
|
readonly [x: string]: Schema.Json;
|
|
5266
6351
|
};
|
|
5267
6352
|
};
|
|
6353
|
+
} | {
|
|
6354
|
+
readonly _tag: "DeletedBlock";
|
|
6355
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
6356
|
+
} | {
|
|
6357
|
+
readonly _tag: "DeletedColumn";
|
|
5268
6358
|
} | {
|
|
5269
6359
|
readonly _tag: "DeletedForward";
|
|
6360
|
+
} | {
|
|
6361
|
+
readonly _tag: "DeletedRow";
|
|
6362
|
+
} | {
|
|
6363
|
+
readonly _tag: "DismissedSlash";
|
|
5270
6364
|
} | {
|
|
5271
6365
|
readonly _tag: "Entered";
|
|
6366
|
+
} | {
|
|
6367
|
+
readonly _tag: "Indented";
|
|
6368
|
+
} | {
|
|
6369
|
+
readonly _tag: "InsertedBlock";
|
|
6370
|
+
readonly block: {
|
|
6371
|
+
readonly type: "Paragraph";
|
|
6372
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
6373
|
+
readonly children: readonly {
|
|
6374
|
+
readonly type: "Text";
|
|
6375
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
6376
|
+
readonly text: string;
|
|
6377
|
+
readonly marks: readonly (string | {
|
|
6378
|
+
readonly name: string;
|
|
6379
|
+
readonly props?: {
|
|
6380
|
+
readonly [x: string]: Schema.Json;
|
|
6381
|
+
};
|
|
6382
|
+
})[];
|
|
6383
|
+
}[];
|
|
6384
|
+
} | {
|
|
6385
|
+
readonly type: "Heading";
|
|
6386
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
6387
|
+
readonly level: 1 | 2 | 3 | 4 | 5 | 6;
|
|
6388
|
+
readonly children: readonly {
|
|
6389
|
+
readonly type: "Text";
|
|
6390
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
6391
|
+
readonly text: string;
|
|
6392
|
+
readonly marks: readonly (string | {
|
|
6393
|
+
readonly name: string;
|
|
6394
|
+
readonly props?: {
|
|
6395
|
+
readonly [x: string]: Schema.Json;
|
|
6396
|
+
};
|
|
6397
|
+
})[];
|
|
6398
|
+
}[];
|
|
6399
|
+
} | {
|
|
6400
|
+
readonly type: "Node";
|
|
6401
|
+
readonly kind: string;
|
|
6402
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
6403
|
+
readonly props: {
|
|
6404
|
+
readonly [x: string]: Schema.Json;
|
|
6405
|
+
};
|
|
6406
|
+
readonly children: readonly {
|
|
6407
|
+
readonly type: "Text";
|
|
6408
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
6409
|
+
readonly text: string;
|
|
6410
|
+
readonly marks: readonly (string | {
|
|
6411
|
+
readonly name: string;
|
|
6412
|
+
readonly props?: {
|
|
6413
|
+
readonly [x: string]: Schema.Json;
|
|
6414
|
+
};
|
|
6415
|
+
})[];
|
|
6416
|
+
}[];
|
|
6417
|
+
readonly blocks?: readonly RichText.Block[];
|
|
6418
|
+
} | {
|
|
6419
|
+
readonly type: "Unknown";
|
|
6420
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
6421
|
+
readonly originalType: string;
|
|
6422
|
+
readonly props: {
|
|
6423
|
+
readonly [x: string]: Schema.Json;
|
|
6424
|
+
};
|
|
6425
|
+
readonly children: readonly {
|
|
6426
|
+
readonly type: "Text";
|
|
6427
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
6428
|
+
readonly text: string;
|
|
6429
|
+
readonly marks: readonly (string | {
|
|
6430
|
+
readonly name: string;
|
|
6431
|
+
readonly props?: {
|
|
6432
|
+
readonly [x: string]: Schema.Json;
|
|
6433
|
+
};
|
|
6434
|
+
})[];
|
|
6435
|
+
}[];
|
|
6436
|
+
};
|
|
6437
|
+
readonly to?: {
|
|
6438
|
+
readonly before: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
6439
|
+
readonly after?: never;
|
|
6440
|
+
} | {
|
|
6441
|
+
readonly after: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
6442
|
+
readonly before?: never;
|
|
6443
|
+
};
|
|
6444
|
+
} | {
|
|
6445
|
+
readonly _tag: "InsertedColumn";
|
|
6446
|
+
readonly where: "after" | "before";
|
|
6447
|
+
} | {
|
|
6448
|
+
readonly _tag: "InsertedFootnote";
|
|
6449
|
+
readonly text?: string;
|
|
6450
|
+
} | {
|
|
6451
|
+
readonly _tag: "InsertedRow";
|
|
6452
|
+
readonly where: "after" | "before";
|
|
5272
6453
|
} | {
|
|
5273
6454
|
readonly _tag: "LiftedBlock";
|
|
5274
6455
|
} | {
|
|
@@ -5281,6 +6462,8 @@ export declare const application: Bundle.Assembly<{
|
|
|
5281
6462
|
readonly after: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
5282
6463
|
readonly before?: never;
|
|
5283
6464
|
};
|
|
6465
|
+
} | {
|
|
6466
|
+
readonly _tag: "Outdented";
|
|
5284
6467
|
} | {
|
|
5285
6468
|
readonly _tag: "Pasted";
|
|
5286
6469
|
readonly slice: {
|
|
@@ -5357,6 +6540,16 @@ export declare const application: Bundle.Assembly<{
|
|
|
5357
6540
|
readonly _tag: "Patched";
|
|
5358
6541
|
} | {
|
|
5359
6542
|
readonly _tag: "Redone";
|
|
6543
|
+
} | {
|
|
6544
|
+
readonly _tag: "RenamedFootnote";
|
|
6545
|
+
readonly from: string;
|
|
6546
|
+
readonly to: string;
|
|
6547
|
+
} | {
|
|
6548
|
+
readonly _tag: "ReplacedText";
|
|
6549
|
+
readonly query: string;
|
|
6550
|
+
readonly replacement: string;
|
|
6551
|
+
readonly caseSensitive?: boolean;
|
|
6552
|
+
readonly at?: number;
|
|
5360
6553
|
} | {
|
|
5361
6554
|
readonly _tag: "RetypedBlock";
|
|
5362
6555
|
readonly block: {
|
|
@@ -5659,41 +6852,157 @@ export declare const application: Bundle.Assembly<{
|
|
|
5659
6852
|
readonly offset: number;
|
|
5660
6853
|
readonly affinity: "after" | "before";
|
|
5661
6854
|
};
|
|
5662
|
-
} | {
|
|
5663
|
-
readonly type: "Node";
|
|
5664
|
-
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
5665
|
-
} | null;
|
|
6855
|
+
} | {
|
|
6856
|
+
readonly type: "Node";
|
|
6857
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
6858
|
+
} | null;
|
|
6859
|
+
}[];
|
|
6860
|
+
readonly group?: string | undefined;
|
|
6861
|
+
};
|
|
6862
|
+
readonly storedMarks: readonly string[] | null;
|
|
6863
|
+
readonly menuIndex: number;
|
|
6864
|
+
readonly slashDismissed: Option.Option<{
|
|
6865
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
6866
|
+
readonly offset: number;
|
|
6867
|
+
readonly affinity: "after" | "before";
|
|
6868
|
+
}>;
|
|
6869
|
+
readonly hostId: string;
|
|
6870
|
+
}, {
|
|
6871
|
+
readonly _tag: "ActivatedAdornment";
|
|
6872
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
6873
|
+
readonly action: string;
|
|
6874
|
+
} | {
|
|
6875
|
+
readonly _tag: "AppliedMark";
|
|
6876
|
+
readonly mark: string | {
|
|
6877
|
+
readonly name: string;
|
|
6878
|
+
readonly props?: {
|
|
6879
|
+
readonly [x: string]: Schema.Json;
|
|
6880
|
+
};
|
|
6881
|
+
};
|
|
6882
|
+
} | {
|
|
6883
|
+
readonly _tag: "Backspace";
|
|
6884
|
+
} | {
|
|
6885
|
+
readonly _tag: "ChangedProps";
|
|
6886
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
6887
|
+
readonly props: {
|
|
6888
|
+
readonly [x: string]: Schema.Json;
|
|
6889
|
+
};
|
|
6890
|
+
} | {
|
|
6891
|
+
readonly _tag: "ClearedMark";
|
|
6892
|
+
readonly mark: string | {
|
|
6893
|
+
readonly name: string;
|
|
6894
|
+
readonly props?: {
|
|
6895
|
+
readonly [x: string]: Schema.Json;
|
|
6896
|
+
};
|
|
6897
|
+
};
|
|
6898
|
+
} | {
|
|
6899
|
+
readonly _tag: "ConvertedBlock";
|
|
6900
|
+
readonly to: {
|
|
6901
|
+
readonly kind: string;
|
|
6902
|
+
readonly props?: {
|
|
6903
|
+
readonly [x: string]: Schema.Json;
|
|
6904
|
+
};
|
|
6905
|
+
};
|
|
6906
|
+
} | {
|
|
6907
|
+
readonly _tag: "DeletedBlock";
|
|
6908
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
6909
|
+
} | {
|
|
6910
|
+
readonly _tag: "DeletedColumn";
|
|
6911
|
+
} | {
|
|
6912
|
+
readonly _tag: "DeletedForward";
|
|
6913
|
+
} | {
|
|
6914
|
+
readonly _tag: "DeletedRow";
|
|
6915
|
+
} | {
|
|
6916
|
+
readonly _tag: "DismissedSlash";
|
|
6917
|
+
} | {
|
|
6918
|
+
readonly _tag: "Entered";
|
|
6919
|
+
} | {
|
|
6920
|
+
readonly _tag: "Indented";
|
|
6921
|
+
} | {
|
|
6922
|
+
readonly _tag: "InsertedBlock";
|
|
6923
|
+
readonly block: {
|
|
6924
|
+
readonly type: "Paragraph";
|
|
6925
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
6926
|
+
readonly children: readonly {
|
|
6927
|
+
readonly type: "Text";
|
|
6928
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
6929
|
+
readonly text: string;
|
|
6930
|
+
readonly marks: readonly (string | {
|
|
6931
|
+
readonly name: string;
|
|
6932
|
+
readonly props?: {
|
|
6933
|
+
readonly [x: string]: Schema.Json;
|
|
6934
|
+
};
|
|
6935
|
+
})[];
|
|
6936
|
+
}[];
|
|
6937
|
+
} | {
|
|
6938
|
+
readonly type: "Heading";
|
|
6939
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
6940
|
+
readonly level: 1 | 2 | 3 | 4 | 5 | 6;
|
|
6941
|
+
readonly children: readonly {
|
|
6942
|
+
readonly type: "Text";
|
|
6943
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
6944
|
+
readonly text: string;
|
|
6945
|
+
readonly marks: readonly (string | {
|
|
6946
|
+
readonly name: string;
|
|
6947
|
+
readonly props?: {
|
|
6948
|
+
readonly [x: string]: Schema.Json;
|
|
6949
|
+
};
|
|
6950
|
+
})[];
|
|
6951
|
+
}[];
|
|
6952
|
+
} | {
|
|
6953
|
+
readonly type: "Node";
|
|
6954
|
+
readonly kind: string;
|
|
6955
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
6956
|
+
readonly props: {
|
|
6957
|
+
readonly [x: string]: Schema.Json;
|
|
6958
|
+
};
|
|
6959
|
+
readonly children: readonly {
|
|
6960
|
+
readonly type: "Text";
|
|
6961
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
6962
|
+
readonly text: string;
|
|
6963
|
+
readonly marks: readonly (string | {
|
|
6964
|
+
readonly name: string;
|
|
6965
|
+
readonly props?: {
|
|
6966
|
+
readonly [x: string]: Schema.Json;
|
|
6967
|
+
};
|
|
6968
|
+
})[];
|
|
5666
6969
|
}[];
|
|
5667
|
-
readonly
|
|
5668
|
-
}
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
readonly _tag: "AppliedMark";
|
|
5674
|
-
readonly mark: string | {
|
|
5675
|
-
readonly name: string;
|
|
5676
|
-
readonly props?: {
|
|
6970
|
+
readonly blocks?: readonly RichText.Block[];
|
|
6971
|
+
} | {
|
|
6972
|
+
readonly type: "Unknown";
|
|
6973
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
6974
|
+
readonly originalType: string;
|
|
6975
|
+
readonly props: {
|
|
5677
6976
|
readonly [x: string]: Schema.Json;
|
|
5678
6977
|
};
|
|
6978
|
+
readonly children: readonly {
|
|
6979
|
+
readonly type: "Text";
|
|
6980
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
6981
|
+
readonly text: string;
|
|
6982
|
+
readonly marks: readonly (string | {
|
|
6983
|
+
readonly name: string;
|
|
6984
|
+
readonly props?: {
|
|
6985
|
+
readonly [x: string]: Schema.Json;
|
|
6986
|
+
};
|
|
6987
|
+
})[];
|
|
6988
|
+
}[];
|
|
5679
6989
|
};
|
|
5680
|
-
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
readonly _tag: "ConvertedBlock";
|
|
5687
|
-
readonly to: {
|
|
5688
|
-
readonly kind: string;
|
|
5689
|
-
readonly props?: {
|
|
5690
|
-
readonly [x: string]: Schema.Json;
|
|
5691
|
-
};
|
|
6990
|
+
readonly to?: {
|
|
6991
|
+
readonly before: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
6992
|
+
readonly after?: never;
|
|
6993
|
+
} | {
|
|
6994
|
+
readonly after: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
6995
|
+
readonly before?: never;
|
|
5692
6996
|
};
|
|
5693
6997
|
} | {
|
|
5694
|
-
readonly _tag: "
|
|
6998
|
+
readonly _tag: "InsertedColumn";
|
|
6999
|
+
readonly where: "after" | "before";
|
|
5695
7000
|
} | {
|
|
5696
|
-
readonly _tag: "
|
|
7001
|
+
readonly _tag: "InsertedFootnote";
|
|
7002
|
+
readonly text?: string;
|
|
7003
|
+
} | {
|
|
7004
|
+
readonly _tag: "InsertedRow";
|
|
7005
|
+
readonly where: "after" | "before";
|
|
5697
7006
|
} | {
|
|
5698
7007
|
readonly _tag: "LiftedBlock";
|
|
5699
7008
|
} | {
|
|
@@ -5706,6 +7015,8 @@ export declare const application: Bundle.Assembly<{
|
|
|
5706
7015
|
readonly after: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
5707
7016
|
readonly before?: never;
|
|
5708
7017
|
};
|
|
7018
|
+
} | {
|
|
7019
|
+
readonly _tag: "Outdented";
|
|
5709
7020
|
} | {
|
|
5710
7021
|
readonly _tag: "Pasted";
|
|
5711
7022
|
readonly slice: {
|
|
@@ -5782,6 +7093,16 @@ export declare const application: Bundle.Assembly<{
|
|
|
5782
7093
|
readonly _tag: "Patched";
|
|
5783
7094
|
} | {
|
|
5784
7095
|
readonly _tag: "Redone";
|
|
7096
|
+
} | {
|
|
7097
|
+
readonly _tag: "RenamedFootnote";
|
|
7098
|
+
readonly from: string;
|
|
7099
|
+
readonly to: string;
|
|
7100
|
+
} | {
|
|
7101
|
+
readonly _tag: "ReplacedText";
|
|
7102
|
+
readonly query: string;
|
|
7103
|
+
readonly replacement: string;
|
|
7104
|
+
readonly caseSensitive?: boolean;
|
|
7105
|
+
readonly at?: number;
|
|
5785
7106
|
} | {
|
|
5786
7107
|
readonly _tag: "RetypedBlock";
|
|
5787
7108
|
readonly block: {
|
|
@@ -6096,11 +7417,20 @@ export declare const update: (model: {
|
|
|
6096
7417
|
};
|
|
6097
7418
|
readonly storedMarks: readonly string[] | null;
|
|
6098
7419
|
readonly menuIndex: number;
|
|
7420
|
+
readonly slashDismissed: Option.Option<{
|
|
7421
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
7422
|
+
readonly offset: number;
|
|
7423
|
+
readonly affinity: "after" | "before";
|
|
7424
|
+
}>;
|
|
6099
7425
|
readonly hostId: string;
|
|
6100
7426
|
};
|
|
6101
7427
|
}, message: {
|
|
6102
7428
|
readonly _tag: "GotEditorMessage";
|
|
6103
7429
|
readonly message: {
|
|
7430
|
+
readonly _tag: "ActivatedAdornment";
|
|
7431
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
7432
|
+
readonly action: string;
|
|
7433
|
+
} | {
|
|
6104
7434
|
readonly _tag: "AppliedMark";
|
|
6105
7435
|
readonly mark: string | {
|
|
6106
7436
|
readonly name: string;
|
|
@@ -6110,9 +7440,20 @@ export declare const update: (model: {
|
|
|
6110
7440
|
};
|
|
6111
7441
|
} | {
|
|
6112
7442
|
readonly _tag: "Backspace";
|
|
7443
|
+
} | {
|
|
7444
|
+
readonly _tag: "ChangedProps";
|
|
7445
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
7446
|
+
readonly props: {
|
|
7447
|
+
readonly [x: string]: Schema.Json;
|
|
7448
|
+
};
|
|
6113
7449
|
} | {
|
|
6114
7450
|
readonly _tag: "ClearedMark";
|
|
6115
|
-
readonly mark: string
|
|
7451
|
+
readonly mark: string | {
|
|
7452
|
+
readonly name: string;
|
|
7453
|
+
readonly props?: {
|
|
7454
|
+
readonly [x: string]: Schema.Json;
|
|
7455
|
+
};
|
|
7456
|
+
};
|
|
6116
7457
|
} | {
|
|
6117
7458
|
readonly _tag: "ConvertedBlock";
|
|
6118
7459
|
readonly to: {
|
|
@@ -6121,10 +7462,106 @@ export declare const update: (model: {
|
|
|
6121
7462
|
readonly [x: string]: Schema.Json;
|
|
6122
7463
|
};
|
|
6123
7464
|
};
|
|
7465
|
+
} | {
|
|
7466
|
+
readonly _tag: "DeletedBlock";
|
|
7467
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
7468
|
+
} | {
|
|
7469
|
+
readonly _tag: "DeletedColumn";
|
|
6124
7470
|
} | {
|
|
6125
7471
|
readonly _tag: "DeletedForward";
|
|
7472
|
+
} | {
|
|
7473
|
+
readonly _tag: "DeletedRow";
|
|
7474
|
+
} | {
|
|
7475
|
+
readonly _tag: "DismissedSlash";
|
|
6126
7476
|
} | {
|
|
6127
7477
|
readonly _tag: "Entered";
|
|
7478
|
+
} | {
|
|
7479
|
+
readonly _tag: "Indented";
|
|
7480
|
+
} | {
|
|
7481
|
+
readonly _tag: "InsertedBlock";
|
|
7482
|
+
readonly block: {
|
|
7483
|
+
readonly type: "Paragraph";
|
|
7484
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
7485
|
+
readonly children: readonly {
|
|
7486
|
+
readonly type: "Text";
|
|
7487
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
7488
|
+
readonly text: string;
|
|
7489
|
+
readonly marks: readonly (string | {
|
|
7490
|
+
readonly name: string;
|
|
7491
|
+
readonly props?: {
|
|
7492
|
+
readonly [x: string]: Schema.Json;
|
|
7493
|
+
};
|
|
7494
|
+
})[];
|
|
7495
|
+
}[];
|
|
7496
|
+
} | {
|
|
7497
|
+
readonly type: "Heading";
|
|
7498
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
7499
|
+
readonly level: 1 | 2 | 3 | 4 | 5 | 6;
|
|
7500
|
+
readonly children: readonly {
|
|
7501
|
+
readonly type: "Text";
|
|
7502
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
7503
|
+
readonly text: string;
|
|
7504
|
+
readonly marks: readonly (string | {
|
|
7505
|
+
readonly name: string;
|
|
7506
|
+
readonly props?: {
|
|
7507
|
+
readonly [x: string]: Schema.Json;
|
|
7508
|
+
};
|
|
7509
|
+
})[];
|
|
7510
|
+
}[];
|
|
7511
|
+
} | {
|
|
7512
|
+
readonly type: "Node";
|
|
7513
|
+
readonly kind: string;
|
|
7514
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
7515
|
+
readonly props: {
|
|
7516
|
+
readonly [x: string]: Schema.Json;
|
|
7517
|
+
};
|
|
7518
|
+
readonly children: readonly {
|
|
7519
|
+
readonly type: "Text";
|
|
7520
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
7521
|
+
readonly text: string;
|
|
7522
|
+
readonly marks: readonly (string | {
|
|
7523
|
+
readonly name: string;
|
|
7524
|
+
readonly props?: {
|
|
7525
|
+
readonly [x: string]: Schema.Json;
|
|
7526
|
+
};
|
|
7527
|
+
})[];
|
|
7528
|
+
}[];
|
|
7529
|
+
readonly blocks?: readonly RichText.Block[];
|
|
7530
|
+
} | {
|
|
7531
|
+
readonly type: "Unknown";
|
|
7532
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
7533
|
+
readonly originalType: string;
|
|
7534
|
+
readonly props: {
|
|
7535
|
+
readonly [x: string]: Schema.Json;
|
|
7536
|
+
};
|
|
7537
|
+
readonly children: readonly {
|
|
7538
|
+
readonly type: "Text";
|
|
7539
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
7540
|
+
readonly text: string;
|
|
7541
|
+
readonly marks: readonly (string | {
|
|
7542
|
+
readonly name: string;
|
|
7543
|
+
readonly props?: {
|
|
7544
|
+
readonly [x: string]: Schema.Json;
|
|
7545
|
+
};
|
|
7546
|
+
})[];
|
|
7547
|
+
}[];
|
|
7548
|
+
};
|
|
7549
|
+
readonly to?: {
|
|
7550
|
+
readonly before: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
7551
|
+
readonly after?: never;
|
|
7552
|
+
} | {
|
|
7553
|
+
readonly after: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
7554
|
+
readonly before?: never;
|
|
7555
|
+
};
|
|
7556
|
+
} | {
|
|
7557
|
+
readonly _tag: "InsertedColumn";
|
|
7558
|
+
readonly where: "after" | "before";
|
|
7559
|
+
} | {
|
|
7560
|
+
readonly _tag: "InsertedFootnote";
|
|
7561
|
+
readonly text?: string;
|
|
7562
|
+
} | {
|
|
7563
|
+
readonly _tag: "InsertedRow";
|
|
7564
|
+
readonly where: "after" | "before";
|
|
6128
7565
|
} | {
|
|
6129
7566
|
readonly _tag: "LiftedBlock";
|
|
6130
7567
|
} | {
|
|
@@ -6137,6 +7574,8 @@ export declare const update: (model: {
|
|
|
6137
7574
|
readonly after: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
6138
7575
|
readonly before?: never;
|
|
6139
7576
|
};
|
|
7577
|
+
} | {
|
|
7578
|
+
readonly _tag: "Outdented";
|
|
6140
7579
|
} | {
|
|
6141
7580
|
readonly _tag: "Pasted";
|
|
6142
7581
|
readonly slice: {
|
|
@@ -6213,6 +7652,16 @@ export declare const update: (model: {
|
|
|
6213
7652
|
readonly _tag: "Patched";
|
|
6214
7653
|
} | {
|
|
6215
7654
|
readonly _tag: "Redone";
|
|
7655
|
+
} | {
|
|
7656
|
+
readonly _tag: "RenamedFootnote";
|
|
7657
|
+
readonly from: string;
|
|
7658
|
+
readonly to: string;
|
|
7659
|
+
} | {
|
|
7660
|
+
readonly _tag: "ReplacedText";
|
|
7661
|
+
readonly query: string;
|
|
7662
|
+
readonly replacement: string;
|
|
7663
|
+
readonly caseSensitive?: boolean;
|
|
7664
|
+
readonly at?: number;
|
|
6216
7665
|
} | {
|
|
6217
7666
|
readonly _tag: "RetypedBlock";
|
|
6218
7667
|
readonly block: {
|
|
@@ -6527,12 +7976,21 @@ export declare const update: (model: {
|
|
|
6527
7976
|
};
|
|
6528
7977
|
readonly storedMarks: readonly string[] | null;
|
|
6529
7978
|
readonly menuIndex: number;
|
|
7979
|
+
readonly slashDismissed: Option.Option<{
|
|
7980
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
7981
|
+
readonly offset: number;
|
|
7982
|
+
readonly affinity: "after" | "before";
|
|
7983
|
+
}>;
|
|
6530
7984
|
readonly hostId: string;
|
|
6531
7985
|
};
|
|
6532
7986
|
};
|
|
6533
7987
|
commands?: Update.Commands<{
|
|
6534
7988
|
readonly _tag: "GotEditorMessage";
|
|
6535
7989
|
readonly message: {
|
|
7990
|
+
readonly _tag: "ActivatedAdornment";
|
|
7991
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
7992
|
+
readonly action: string;
|
|
7993
|
+
} | {
|
|
6536
7994
|
readonly _tag: "AppliedMark";
|
|
6537
7995
|
readonly mark: string | {
|
|
6538
7996
|
readonly name: string;
|
|
@@ -6542,9 +8000,20 @@ export declare const update: (model: {
|
|
|
6542
8000
|
};
|
|
6543
8001
|
} | {
|
|
6544
8002
|
readonly _tag: "Backspace";
|
|
8003
|
+
} | {
|
|
8004
|
+
readonly _tag: "ChangedProps";
|
|
8005
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
8006
|
+
readonly props: {
|
|
8007
|
+
readonly [x: string]: Schema.Json;
|
|
8008
|
+
};
|
|
6545
8009
|
} | {
|
|
6546
8010
|
readonly _tag: "ClearedMark";
|
|
6547
|
-
readonly mark: string
|
|
8011
|
+
readonly mark: string | {
|
|
8012
|
+
readonly name: string;
|
|
8013
|
+
readonly props?: {
|
|
8014
|
+
readonly [x: string]: Schema.Json;
|
|
8015
|
+
};
|
|
8016
|
+
};
|
|
6548
8017
|
} | {
|
|
6549
8018
|
readonly _tag: "ConvertedBlock";
|
|
6550
8019
|
readonly to: {
|
|
@@ -6553,10 +8022,106 @@ export declare const update: (model: {
|
|
|
6553
8022
|
readonly [x: string]: Schema.Json;
|
|
6554
8023
|
};
|
|
6555
8024
|
};
|
|
8025
|
+
} | {
|
|
8026
|
+
readonly _tag: "DeletedBlock";
|
|
8027
|
+
readonly node: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
8028
|
+
} | {
|
|
8029
|
+
readonly _tag: "DeletedColumn";
|
|
6556
8030
|
} | {
|
|
6557
8031
|
readonly _tag: "DeletedForward";
|
|
8032
|
+
} | {
|
|
8033
|
+
readonly _tag: "DeletedRow";
|
|
8034
|
+
} | {
|
|
8035
|
+
readonly _tag: "DismissedSlash";
|
|
6558
8036
|
} | {
|
|
6559
8037
|
readonly _tag: "Entered";
|
|
8038
|
+
} | {
|
|
8039
|
+
readonly _tag: "Indented";
|
|
8040
|
+
} | {
|
|
8041
|
+
readonly _tag: "InsertedBlock";
|
|
8042
|
+
readonly block: {
|
|
8043
|
+
readonly type: "Paragraph";
|
|
8044
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
8045
|
+
readonly children: readonly {
|
|
8046
|
+
readonly type: "Text";
|
|
8047
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
8048
|
+
readonly text: string;
|
|
8049
|
+
readonly marks: readonly (string | {
|
|
8050
|
+
readonly name: string;
|
|
8051
|
+
readonly props?: {
|
|
8052
|
+
readonly [x: string]: Schema.Json;
|
|
8053
|
+
};
|
|
8054
|
+
})[];
|
|
8055
|
+
}[];
|
|
8056
|
+
} | {
|
|
8057
|
+
readonly type: "Heading";
|
|
8058
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
8059
|
+
readonly level: 1 | 2 | 3 | 4 | 5 | 6;
|
|
8060
|
+
readonly children: readonly {
|
|
8061
|
+
readonly type: "Text";
|
|
8062
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
8063
|
+
readonly text: string;
|
|
8064
|
+
readonly marks: readonly (string | {
|
|
8065
|
+
readonly name: string;
|
|
8066
|
+
readonly props?: {
|
|
8067
|
+
readonly [x: string]: Schema.Json;
|
|
8068
|
+
};
|
|
8069
|
+
})[];
|
|
8070
|
+
}[];
|
|
8071
|
+
} | {
|
|
8072
|
+
readonly type: "Node";
|
|
8073
|
+
readonly kind: string;
|
|
8074
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
8075
|
+
readonly props: {
|
|
8076
|
+
readonly [x: string]: Schema.Json;
|
|
8077
|
+
};
|
|
8078
|
+
readonly children: readonly {
|
|
8079
|
+
readonly type: "Text";
|
|
8080
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
8081
|
+
readonly text: string;
|
|
8082
|
+
readonly marks: readonly (string | {
|
|
8083
|
+
readonly name: string;
|
|
8084
|
+
readonly props?: {
|
|
8085
|
+
readonly [x: string]: Schema.Json;
|
|
8086
|
+
};
|
|
8087
|
+
})[];
|
|
8088
|
+
}[];
|
|
8089
|
+
readonly blocks?: readonly RichText.Block[];
|
|
8090
|
+
} | {
|
|
8091
|
+
readonly type: "Unknown";
|
|
8092
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
8093
|
+
readonly originalType: string;
|
|
8094
|
+
readonly props: {
|
|
8095
|
+
readonly [x: string]: Schema.Json;
|
|
8096
|
+
};
|
|
8097
|
+
readonly children: readonly {
|
|
8098
|
+
readonly type: "Text";
|
|
8099
|
+
readonly id: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
8100
|
+
readonly text: string;
|
|
8101
|
+
readonly marks: readonly (string | {
|
|
8102
|
+
readonly name: string;
|
|
8103
|
+
readonly props?: {
|
|
8104
|
+
readonly [x: string]: Schema.Json;
|
|
8105
|
+
};
|
|
8106
|
+
})[];
|
|
8107
|
+
}[];
|
|
8108
|
+
};
|
|
8109
|
+
readonly to?: {
|
|
8110
|
+
readonly before: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
8111
|
+
readonly after?: never;
|
|
8112
|
+
} | {
|
|
8113
|
+
readonly after: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
8114
|
+
readonly before?: never;
|
|
8115
|
+
};
|
|
8116
|
+
} | {
|
|
8117
|
+
readonly _tag: "InsertedColumn";
|
|
8118
|
+
readonly where: "after" | "before";
|
|
8119
|
+
} | {
|
|
8120
|
+
readonly _tag: "InsertedFootnote";
|
|
8121
|
+
readonly text?: string;
|
|
8122
|
+
} | {
|
|
8123
|
+
readonly _tag: "InsertedRow";
|
|
8124
|
+
readonly where: "after" | "before";
|
|
6560
8125
|
} | {
|
|
6561
8126
|
readonly _tag: "LiftedBlock";
|
|
6562
8127
|
} | {
|
|
@@ -6569,6 +8134,8 @@ export declare const update: (model: {
|
|
|
6569
8134
|
readonly after: string & import("effect/Brand").Brand<"foldkit-richtext/NodeId">;
|
|
6570
8135
|
readonly before?: never;
|
|
6571
8136
|
};
|
|
8137
|
+
} | {
|
|
8138
|
+
readonly _tag: "Outdented";
|
|
6572
8139
|
} | {
|
|
6573
8140
|
readonly _tag: "Pasted";
|
|
6574
8141
|
readonly slice: {
|
|
@@ -6645,6 +8212,16 @@ export declare const update: (model: {
|
|
|
6645
8212
|
readonly _tag: "Patched";
|
|
6646
8213
|
} | {
|
|
6647
8214
|
readonly _tag: "Redone";
|
|
8215
|
+
} | {
|
|
8216
|
+
readonly _tag: "RenamedFootnote";
|
|
8217
|
+
readonly from: string;
|
|
8218
|
+
readonly to: string;
|
|
8219
|
+
} | {
|
|
8220
|
+
readonly _tag: "ReplacedText";
|
|
8221
|
+
readonly query: string;
|
|
8222
|
+
readonly replacement: string;
|
|
8223
|
+
readonly caseSensitive?: boolean;
|
|
8224
|
+
readonly at?: number;
|
|
6648
8225
|
} | {
|
|
6649
8226
|
readonly _tag: "RetypedBlock";
|
|
6650
8227
|
readonly block: {
|
|
@@ -6703,6 +8280,9 @@ export declare const wrapped: (containers: ReadonlyArray<RichText.Container>) =>
|
|
|
6703
8280
|
export declare const converted: (to: RichText.Container) => ParentMessage;
|
|
6704
8281
|
export declare const lifted: () => ParentMessage;
|
|
6705
8282
|
export declare const moved: (node: RichText.NodeId, to: RichText.Beside) => ParentMessage;
|
|
8283
|
+
export declare const inserted: (block: RichText.Block, to?: RichText.Beside) => ParentMessage;
|
|
8284
|
+
export declare const deleted: (node: RichText.NodeId) => ParentMessage;
|
|
8285
|
+
export declare const changedProps: (node: RichText.NodeId, props: Schema.JsonObject) => ParentMessage;
|
|
6706
8286
|
export declare const selected: (selection: RichText.Selection | null) => ParentMessage;
|
|
6707
8287
|
export declare const undone: () => ParentMessage;
|
|
6708
8288
|
export declare const redone: () => ParentMessage;
|