@prosekit/core 0.7.13 → 0.7.15

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.
@@ -76,22 +76,25 @@ var Facet = class {
76
76
  this.path = parent ? [...parent.path, this.index] : [];
77
77
  }
78
78
  get reducer() {
79
- var _a, _b;
80
- return (_b = this._reducer) != null ? _b : (_a = this._reduce) == null ? void 0 : _a.call(this);
79
+ return this._reducer ?? this._reduce?.();
81
80
  }
82
81
  };
83
82
  function defineFacet(options) {
84
- var _a;
85
83
  return new Facet(
86
84
  options.parent,
87
- (_a = options.singleton) != null ? _a : false,
85
+ options.singleton ?? false,
88
86
  options.reducer,
89
87
  options.reduce
90
88
  );
91
89
  }
92
90
 
93
91
  // src/utils/type-assertion.ts
94
- import { Fragment, Mark, ProseMirrorNode, Slice } from "@prosekit/pm/model";
92
+ import {
93
+ Fragment,
94
+ Mark,
95
+ ProseMirrorNode,
96
+ Slice
97
+ } from "@prosekit/pm/model";
95
98
  import {
96
99
  AllSelection,
97
100
  NodeSelection,
@@ -127,11 +130,12 @@ function isNotNullish(value) {
127
130
  }
128
131
 
129
132
  // src/facets/schema.ts
130
- import { Schema } from "@prosekit/pm/model";
133
+ import {
134
+ Schema
135
+ } from "@prosekit/pm/model";
131
136
 
132
137
  // src/facets/root.ts
133
138
  function rootReducer(inputs) {
134
- var _a;
135
139
  let schema;
136
140
  let commands;
137
141
  let stateFunc;
@@ -142,7 +146,7 @@ function rootReducer(inputs) {
142
146
  stateFunc = input.state || stateFunc;
143
147
  view = input.view || view;
144
148
  }
145
- const state = schema && ((_a = stateFunc == null ? void 0 : stateFunc({ schema })) != null ? _a : { schema });
149
+ const state = schema && (stateFunc?.({ schema }) ?? { schema });
146
150
  return { schema, state, commands, view };
147
151
  }
148
152
  var rootFacet = new Facet(null, true, rootReducer);
@@ -162,32 +166,29 @@ var schemaFacet = defineFacet({
162
166
  // src/facets/base-extension.ts
163
167
  var BaseExtension = class {
164
168
  constructor() {
165
- this.extension = [];
166
169
  this.trees = [null, null, null, null, null];
167
170
  }
168
171
  /**
169
172
  * @internal
170
173
  */
171
174
  getTree(priority) {
172
- var _a, _b;
173
- const pri = (_a = priority != null ? priority : this.priority) != null ? _a : 2 /* default */;
174
- return (_b = this.trees)[pri] || (_b[pri] = this.createTree(pri));
175
+ var _a;
176
+ const pri = priority ?? this.priority ?? 2 /* default */;
177
+ return (_a = this.trees)[pri] || (_a[pri] = this.createTree(pri));
175
178
  }
176
179
  /**
177
180
  * @internal
178
181
  */
179
182
  findFacetOutput(facet) {
180
- var _a;
181
183
  let node = this.getTree();
182
184
  for (const index of facet.path) {
183
- node = node == null ? void 0 : node.children.get(index);
185
+ node = node?.children.get(index);
184
186
  }
185
- return (_a = node == null ? void 0 : node.getOutput()) != null ? _a : null;
187
+ return node?.getOutput() ?? null;
186
188
  }
187
189
  get schema() {
188
- var _a, _b;
189
190
  const output = this.findFacetOutput(schemaFacet);
190
- return (_b = (_a = output == null ? void 0 : output.find(Boolean)) == null ? void 0 : _a.schema) != null ? _b : null;
191
+ return output?.find(Boolean)?.schema ?? null;
191
192
  }
192
193
  };
193
194
 
@@ -205,8 +206,7 @@ function arraySubstract(a, b) {
205
206
  return a.filter((x) => !b.includes(x));
206
207
  }
207
208
  function toReversed(arr) {
208
- var _a, _b;
209
- return (_b = (_a = arr.toReversed) == null ? void 0 : _a.call(arr)) != null ? _b : [...arr].reverse();
209
+ return arr.toReversed?.() ?? [...arr].reverse();
210
210
  }
211
211
 
212
212
  // src/facets/facet-node.ts
@@ -221,7 +221,7 @@ function zip5(a, b, mapper) {
221
221
  }
222
222
  function unionInput(a, b) {
223
223
  if (!a && !b) return null;
224
- return uniqPush(a != null ? a : [], b != null ? b : []);
224
+ return uniqPush(a ?? [], b ?? []);
225
225
  }
226
226
  function subtractInput(a, b) {
227
227
  if (!a) return null;
@@ -347,8 +347,7 @@ var FacetExtensionImpl = class extends BaseExtension {
347
347
  * @internal
348
348
  */
349
349
  createTree(priority) {
350
- var _a;
351
- const pri = (_a = this.priority) != null ? _a : priority;
350
+ const pri = this.priority ?? priority;
352
351
  const inputs = [null, null, null, null, null];
353
352
  inputs[pri] = [...this.payloads];
354
353
  let node = new FacetNode(this.facet, inputs);
@@ -363,6 +362,17 @@ function defineFacetPayload(facet, payloads) {
363
362
  return new FacetExtensionImpl(facet, payloads);
364
363
  }
365
364
 
365
+ // src/utils/is-object.ts
366
+ function isObject(v) {
367
+ return typeof v === "object" && v != null;
368
+ }
369
+
370
+ // src/utils/is-element.ts
371
+ var ELEMENT_NODE = 1;
372
+ function isElement(el) {
373
+ return isObject(el) && el.nodeType === ELEMENT_NODE && typeof el.nodeName === "string";
374
+ }
375
+
366
376
  // src/utils/parse.ts
367
377
  import {
368
378
  DOMParser,
@@ -388,12 +398,10 @@ function findGlobalBrowserWindow() {
388
398
  }
389
399
  }
390
400
  function findBrowserDocument(options) {
391
- var _a, _b, _c;
392
- return (_c = (_a = options == null ? void 0 : options.document) != null ? _a : findGlobalBrowserDocument()) != null ? _c : (_b = findGlobalBrowserWindow()) == null ? void 0 : _b.document;
401
+ return options?.document ?? findGlobalBrowserDocument() ?? findGlobalBrowserWindow()?.document;
393
402
  }
394
403
  function findBrowserWindow(options) {
395
- var _a, _b, _c, _d, _e;
396
- return (_e = (_d = (_b = (_a = options == null ? void 0 : options.document) == null ? void 0 : _a.defaultView) != null ? _b : findGlobalBrowserWindow()) != null ? _d : (_c = findBrowserDocument(options)) == null ? void 0 : _c.defaultView) != null ? _e : void 0;
404
+ return options?.document?.defaultView ?? findGlobalBrowserWindow() ?? findBrowserDocument(options)?.defaultView ?? void 0;
397
405
  }
398
406
  function getBrowserDocument(options) {
399
407
  const doc = findBrowserDocument(options);
@@ -424,7 +432,7 @@ function nodeFromElement(element, options) {
424
432
  return (CustomDOMParser || DOMParser).fromSchema(schema).parse(element, parseOptions);
425
433
  }
426
434
  function elementFromNode(node, options) {
427
- const Serializer = (options == null ? void 0 : options.DOMSerializer) || DOMSerializer;
435
+ const Serializer = options?.DOMSerializer || DOMSerializer;
428
436
  const document2 = getBrowserDocument(options);
429
437
  const schema = node.type.schema;
430
438
  const serializer = Serializer.fromSchema(schema);
@@ -466,14 +474,15 @@ function htmlFromJSON(json, options) {
466
474
  }
467
475
 
468
476
  // src/extensions/default-state.ts
469
- import { Selection as Selection3 } from "@prosekit/pm/state";
477
+ import {
478
+ Selection as Selection3
479
+ } from "@prosekit/pm/state";
470
480
 
471
481
  // src/facets/state.ts
472
482
  var stateFacet = defineFacet({
473
483
  reduce: () => {
474
484
  let callbacks = [];
475
485
  const state = (ctx) => {
476
- var _a, _b, _c, _d, _e, _f;
477
486
  const configs = callbacks.map((cb) => cb(ctx));
478
487
  const config = {
479
488
  schema: ctx.schema,
@@ -481,11 +490,11 @@ var stateFacet = defineFacet({
481
490
  plugins: []
482
491
  };
483
492
  for (const c of configs) {
484
- config.schema = (_a = config.schema) != null ? _a : c.schema;
485
- config.doc = (_b = config.doc) != null ? _b : c.doc;
486
- config.selection = (_c = config.selection) != null ? _c : c.selection;
487
- config.storedMarks = [...config.storedMarks, ...(_d = c.storedMarks) != null ? _d : []];
488
- config.plugins = uniqPush((_e = config.plugins) != null ? _e : [], (_f = c.plugins) != null ? _f : []);
493
+ config.schema = config.schema ?? c.schema;
494
+ config.doc = config.doc ?? c.doc;
495
+ config.selection = config.selection ?? c.selection;
496
+ config.storedMarks = [...config.storedMarks, ...c.storedMarks ?? []];
497
+ config.plugins = uniqPush(config.plugins ?? [], c.plugins ?? []);
489
498
  }
490
499
  assert(
491
500
  config.doc || config.schema,
@@ -507,19 +516,6 @@ var stateFacet = defineFacet({
507
516
 
508
517
  // src/utils/editor-content.ts
509
518
  import { Selection as Selection2 } from "@prosekit/pm/state";
510
-
511
- // src/utils/is-object.ts
512
- function isObject(v) {
513
- return typeof v === "object" && v != null;
514
- }
515
-
516
- // src/utils/is-element.ts
517
- var ELEMENT_NODE = 1;
518
- function isElement(el) {
519
- return isObject(el) && el.nodeType === ELEMENT_NODE && typeof el.nodeName === "string";
520
- }
521
-
522
- // src/utils/editor-content.ts
523
519
  function getEditorContentJSON(schema, content) {
524
520
  if (typeof content === "string") {
525
521
  return jsonFromHTML(content, { schema });
@@ -605,7 +601,7 @@ function isMarkAbsent(node, from, to, markType, attrs) {
605
601
  if (missing) {
606
602
  return false;
607
603
  }
608
- const allowed = (parent == null ? void 0 : parent.type.allowsMarkType(markType)) && !node2.marks.some((m) => m.type !== markType && m.type.excludes(markType));
604
+ const allowed = parent?.type.allowsMarkType(markType) && !node2.marks.some((m) => m.type !== markType && m.type.excludes(markType));
609
605
  if (allowed) {
610
606
  available = true;
611
607
  if (!includesMark(node2.marks, markType, attrs)) {
@@ -641,13 +637,9 @@ var UnionExtensionImpl = class extends BaseExtension {
641
637
  * @internal
642
638
  */
643
639
  createTree(priority) {
644
- var _a;
645
- const pri = (_a = this.priority) != null ? _a : priority;
640
+ const pri = this.priority ?? priority;
646
641
  const extensions = [...this.extension];
647
- extensions.sort((a, b) => {
648
- var _a2, _b;
649
- return ((_a2 = a.priority) != null ? _a2 : pri) - ((_b = b.priority) != null ? _b : pri);
650
- });
642
+ extensions.sort((a, b) => (a.priority ?? pri) - (b.priority ?? pri));
651
643
  const children = extensions.map((ext) => ext.getTree(pri));
652
644
  assert(children.length > 0);
653
645
  let node = children[0];
@@ -669,7 +661,9 @@ function union(...exts) {
669
661
  import {
670
662
  EditorState as EditorState2
671
663
  } from "@prosekit/pm/state";
672
- import { EditorView } from "@prosekit/pm/view";
664
+ import {
665
+ EditorView
666
+ } from "@prosekit/pm/view";
673
667
 
674
668
  // src/utils/deep-equals.ts
675
669
  import OrderedMap from "orderedmap";
@@ -723,10 +717,7 @@ function isNodeActive(state, type, attrs) {
723
717
 
724
718
  // src/editor/action.ts
725
719
  function createNodeActions(schema, getState, createNode = defaultCreateNode) {
726
- return mapValues(
727
- schema.nodes,
728
- (type) => createNodeAction(type, getState, createNode)
729
- );
720
+ return mapValues(schema.nodes, (type) => createNodeAction(type, getState, createNode));
730
721
  }
731
722
  function createNodeAction(type, getState, createNode) {
732
723
  const action = (...args) => buildNode(type, args, createNode);
@@ -737,10 +728,7 @@ function createNodeAction(type, getState, createNode) {
737
728
  return action;
738
729
  }
739
730
  function createMarkActions(schema, getState, applyMark = defaultApplyMark) {
740
- return mapValues(
741
- schema.marks,
742
- (type) => createMarkAction(type, getState, applyMark)
743
- );
731
+ return mapValues(schema.marks, (type) => createMarkAction(type, getState, applyMark));
744
732
  }
745
733
  function createMarkAction(type, getState, applyMark) {
746
734
  const action = (...args) => buildMark(type, args, applyMark);
@@ -823,8 +811,7 @@ var EditorInstance = class {
823
811
  this.commands = {};
824
812
  this.afterMounted = [];
825
813
  this.getState = () => {
826
- var _a;
827
- return ((_a = this.view) == null ? void 0 : _a.state) || this.directEditorProps.state;
814
+ return this.view?.state || this.directEditorProps.state;
828
815
  };
829
816
  this.dispatch = (tr) => {
830
817
  if (this.view) {
@@ -833,6 +820,22 @@ var EditorInstance = class {
833
820
  this.directEditorProps.state = this.directEditorProps.state.apply(tr);
834
821
  }
835
822
  };
823
+ /**
824
+ * Return a JSON object representing the editor's current document.
825
+ */
826
+ this.getDocJSON = () => {
827
+ const state = this.getState();
828
+ return jsonFromNode(state.doc);
829
+ };
830
+ /**
831
+ * Return a HTML string representing the editor's current document.
832
+ */
833
+ this.getDocHTML = (options) => {
834
+ const serializer = this.getProp("clipboardSerializer");
835
+ const DOMSerializer2 = serializer ? { fromSchema: () => serializer } : void 0;
836
+ const doc = this.getDoc();
837
+ return htmlFromNode(doc, { ...options, DOMSerializer: DOMSerializer2 });
838
+ };
836
839
  this.tree = extension.getTree();
837
840
  const payload = this.tree.getRootOutput();
838
841
  const schema = payload.schema;
@@ -849,6 +852,12 @@ var EditorInstance = class {
849
852
  this.schema = state.schema;
850
853
  this.directEditorProps = { state, ...payload.view };
851
854
  }
855
+ getDoc() {
856
+ return this.getState().doc;
857
+ }
858
+ getProp(propName) {
859
+ return this.view?.someProp(propName) ?? this.directEditorProps[propName];
860
+ }
852
861
  updateState(state) {
853
862
  if (this.view) {
854
863
  this.view.updateState(state);
@@ -872,29 +881,28 @@ var EditorInstance = class {
872
881
  this.updateState(newState);
873
882
  }
874
883
  updateExtension(extension, add) {
875
- var _a, _b, _c, _d;
876
884
  const view = this.view;
877
885
  if (!view || view.isDestroyed) {
878
886
  return;
879
887
  }
880
888
  const tree = extension.getTree();
881
889
  const payload = tree.getRootOutput();
882
- if (payload == null ? void 0 : payload.schema) {
890
+ if (payload?.schema) {
883
891
  throw new ProseKitError("Schema cannot be changed");
884
892
  }
885
- if (payload == null ? void 0 : payload.view) {
893
+ if (payload?.view) {
886
894
  throw new ProseKitError("View cannot be changed");
887
895
  }
888
896
  const oldPayload = this.tree.getRootOutput();
889
- const oldPlugins = [...(_b = (_a = view.state) == null ? void 0 : _a.plugins) != null ? _b : []];
897
+ const oldPlugins = [...view.state?.plugins ?? []];
890
898
  this.tree = add ? unionFacetNode(this.tree, tree) : subtractFacetNode(this.tree, tree);
891
899
  const newPayload = this.tree.getRootOutput();
892
- const newPlugins = [...(_d = (_c = newPayload == null ? void 0 : newPayload.state) == null ? void 0 : _c.plugins) != null ? _d : []];
900
+ const newPlugins = [...newPayload?.state?.plugins ?? []];
893
901
  if (!deepEquals(oldPlugins, newPlugins)) {
894
902
  const state = view.state.reconfigure({ plugins: newPlugins });
895
903
  view.updateState(state);
896
904
  }
897
- if ((newPayload == null ? void 0 : newPayload.commands) && !deepEquals(oldPayload == null ? void 0 : oldPayload.commands, newPayload == null ? void 0 : newPayload.commands)) {
905
+ if (newPayload?.commands && !deepEquals(oldPayload?.commands, newPayload?.commands)) {
898
906
  const commands = newPayload.commands;
899
907
  const names = Object.keys(commands);
900
908
  for (const name of names) {
@@ -914,7 +922,7 @@ var EditorInstance = class {
914
922
  this.afterMounted.push(lazyCreate);
915
923
  return () => {
916
924
  canceled = true;
917
- lazyRemove == null ? void 0 : lazyRemove();
925
+ lazyRemove?.();
918
926
  };
919
927
  }
920
928
  this.updateExtension(extension, true);
@@ -958,14 +966,12 @@ var EditorInstance = class {
958
966
  view.setProps({ state: newState });
959
967
  }
960
968
  exec(command) {
961
- var _a;
962
969
  const state = this.getState();
963
- return command(state, this.dispatch, (_a = this.view) != null ? _a : void 0);
970
+ return command(state, this.dispatch, this.view ?? void 0);
964
971
  }
965
972
  canExec(command) {
966
- var _a;
967
973
  const state = this.getState();
968
- return command(state, void 0, (_a = this.view) != null ? _a : void 0);
974
+ return command(state, void 0, this.view ?? void 0);
969
975
  }
970
976
  defineCommand(name, commandCreator) {
971
977
  const action = (...args) => {
@@ -1010,15 +1016,13 @@ var Editor = class {
1010
1016
  * Focus the editor.
1011
1017
  */
1012
1018
  this.focus = () => {
1013
- var _a;
1014
- (_a = this.instance.view) == null ? void 0 : _a.focus();
1019
+ this.instance.view?.focus();
1015
1020
  };
1016
1021
  /**
1017
1022
  * Blur the editor.
1018
1023
  */
1019
1024
  this.blur = () => {
1020
- var _a;
1021
- (_a = this.instance.view) == null ? void 0 : _a.dom.blur();
1025
+ this.instance.view?.dom.blur();
1022
1026
  };
1023
1027
  /**
1024
1028
  * Register an extension to the editor. Return a function to unregister the
@@ -1055,6 +1059,18 @@ var Editor = class {
1055
1059
  this.setContent = (content, selection) => {
1056
1060
  return this.instance.setContent(content, selection);
1057
1061
  };
1062
+ /**
1063
+ * Return a JSON object representing the editor's current document.
1064
+ */
1065
+ this.getDocJSON = () => {
1066
+ return this.instance.getDocJSON();
1067
+ };
1068
+ /**
1069
+ * Return a HTML string representing the editor's current document.
1070
+ */
1071
+ this.getDocHTML = (options) => {
1072
+ return this.instance.getDocHTML(options);
1073
+ };
1058
1074
  /**
1059
1075
  * Execute the given command. Return `true` if the command was successfully
1060
1076
  * executed, otherwise `false`.
@@ -1102,8 +1118,7 @@ var Editor = class {
1102
1118
  * Whether the editor is focused.
1103
1119
  */
1104
1120
  get focused() {
1105
- var _a, _b;
1106
- return (_b = (_a = this.instance.view) == null ? void 0 : _a.hasFocus()) != null ? _b : false;
1121
+ return this.instance.view?.hasFocus() ?? false;
1107
1122
  }
1108
1123
  /**
1109
1124
  * All {@link CommandAction}s defined by the editor.
@@ -6,7 +6,7 @@ import {
6
6
  createNodeActions,
7
7
  isProseMirrorNode,
8
8
  setupEditorExtension
9
- } from "./chunk-LAFNHJDR.js";
9
+ } from "./chunk-B3WEP4DD.js";
10
10
 
11
11
  // src/test/test-editor.ts
12
12
  import {
@@ -72,8 +72,8 @@ function maybeResolve(doc, pos) {
72
72
  }
73
73
  function getSelection(doc) {
74
74
  const tags = doc.tags;
75
- const $a = maybeResolve(doc, tags == null ? void 0 : tags.a);
76
- const $b = maybeResolve(doc, tags == null ? void 0 : tags.b);
75
+ const $a = maybeResolve(doc, tags?.a);
76
+ const $b = maybeResolve(doc, tags?.b);
77
77
  if ($a) {
78
78
  if ($a.parent.inlineContent) {
79
79
  return new TextSelection($a, $b);
@@ -31,13 +31,15 @@ export { MarkBuilder } from './_tsup-dts-rollup.js';
31
31
  export { NodeAction } from './_tsup-dts-rollup.js';
32
32
  export { NodeBuilder } from './_tsup-dts-rollup.js';
33
33
  export { NodeChild } from './_tsup-dts-rollup.js';
34
- export { Editor } from './_tsup-dts-rollup.js';
35
34
  export { createEditor } from './_tsup-dts-rollup.js';
35
+ export { Editor } from './_tsup-dts-rollup.js';
36
36
  export { EditorOptions } from './_tsup-dts-rollup.js';
37
37
  export { union } from './_tsup-dts-rollup.js';
38
38
  export { withPriority } from './_tsup-dts-rollup.js';
39
39
  export { EditorNotFoundError_alias_1 as EditorNotFoundError } from './_tsup-dts-rollup.js';
40
40
  export { ProseKitError_alias_1 as ProseKitError } from './_tsup-dts-rollup.js';
41
+ export { defineClipboardSerializer } from './_tsup-dts-rollup.js';
42
+ export { ClipboardSerializerOptions } from './_tsup-dts-rollup.js';
41
43
  export { defineBaseCommands } from './_tsup-dts-rollup.js';
42
44
  export { defineCommands } from './_tsup-dts-rollup.js';
43
45
  export { BaseCommandsExtension } from './_tsup-dts-rollup.js';
@@ -61,11 +63,13 @@ export { defineScrollToSelectionHandler } from './_tsup-dts-rollup.js';
61
63
  export { defineTextInputHandler } from './_tsup-dts-rollup.js';
62
64
  export { defineTripleClickHandler } from './_tsup-dts-rollup.js';
63
65
  export { defineTripleClickOnHandler } from './_tsup-dts-rollup.js';
66
+ export { editorEventFacet } from './_tsup-dts-rollup.js';
64
67
  export { ClickHandler } from './_tsup-dts-rollup.js';
65
68
  export { ClickOnHandler } from './_tsup-dts-rollup.js';
66
69
  export { DoubleClickHandler } from './_tsup-dts-rollup.js';
67
70
  export { DoubleClickOnHandler } from './_tsup-dts-rollup.js';
68
71
  export { DropHandler } from './_tsup-dts-rollup.js';
72
+ export { EditorEventPayload } from './_tsup-dts-rollup.js';
69
73
  export { KeyDownHandler } from './_tsup-dts-rollup.js';
70
74
  export { KeyPressHandler } from './_tsup-dts-rollup.js';
71
75
  export { PasteHandler } from './_tsup-dts-rollup.js';
@@ -73,8 +77,6 @@ export { ScrollToSelectionHandler } from './_tsup-dts-rollup.js';
73
77
  export { TextInputHandler } from './_tsup-dts-rollup.js';
74
78
  export { TripleClickHandler } from './_tsup-dts-rollup.js';
75
79
  export { TripleClickOnHandler } from './_tsup-dts-rollup.js';
76
- export { editorEventFacet } from './_tsup-dts-rollup.js';
77
- export { EditorEventPayload } from './_tsup-dts-rollup.js';
78
80
  export { defineFocusChangeHandler } from './_tsup-dts-rollup.js';
79
81
  export { FocusChangeHandler } from './_tsup-dts-rollup.js';
80
82
  export { defineMountHandler } from './_tsup-dts-rollup.js';
@@ -96,6 +98,12 @@ export { defineMarkAttr } from './_tsup-dts-rollup.js';
96
98
  export { defineMarkSpec } from './_tsup-dts-rollup.js';
97
99
  export { MarkAttrOptions } from './_tsup-dts-rollup.js';
98
100
  export { MarkSpecOptions } from './_tsup-dts-rollup.js';
101
+ export { defineMarkView } from './_tsup-dts-rollup.js';
102
+ export { MarkViewOptions } from './_tsup-dts-rollup.js';
103
+ export { defineMarkViewComponent } from './_tsup-dts-rollup.js';
104
+ export { defineMarkViewFactory } from './_tsup-dts-rollup.js';
105
+ export { MarkViewComponentOptions } from './_tsup-dts-rollup.js';
106
+ export { MarkViewFactoryOptions } from './_tsup-dts-rollup.js';
99
107
  export { defineNodeAttr } from './_tsup-dts-rollup.js';
100
108
  export { defineNodeSpec } from './_tsup-dts-rollup.js';
101
109
  export { NodeAttrOptions } from './_tsup-dts-rollup.js';
@@ -162,6 +170,7 @@ export { _getId } from './_tsup-dts-rollup.js';
162
170
  export { getMarkType } from './_tsup-dts-rollup.js';
163
171
  export { getNodeType } from './_tsup-dts-rollup.js';
164
172
  export { isAtBlockStart } from './_tsup-dts-rollup.js';
173
+ export { isElement } from './_tsup-dts-rollup.js';
165
174
  export { isInCodeBlock } from './_tsup-dts-rollup.js';
166
175
  export { isMarkAbsent } from './_tsup-dts-rollup.js';
167
176
  export { isMarkActive } from './_tsup-dts-rollup.js';