sykpcomposer 1.19.81 → 1.19.82

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.
@@ -0,0 +1,30 @@
1
+ import type { EditorConfig, LexicalNode, NodeKey, RangeSelection, SerializedElementNode, Spread } from 'lexical';
2
+ import { ElementNode, DOMConversionMap, DOMExportOutput } from 'lexical';
3
+ export type SerializedMarkNode = Spread<{
4
+ ids: Array<string>;
5
+ }, SerializedElementNode>;
6
+ /** @noInheritDoc */
7
+ export declare class MarkNode extends ElementNode {
8
+ __ids: readonly string[];
9
+ static getType(): string;
10
+ static clone(node: MarkNode): MarkNode;
11
+ static importDOM(): DOMConversionMap;
12
+ static importJSON(serializedNode: SerializedMarkNode): MarkNode;
13
+ exportJSON(): SerializedMarkNode;
14
+ constructor(ids?: readonly string[], key?: NodeKey);
15
+ createDOM(config: EditorConfig): HTMLElement;
16
+ updateDOM(prevNode: this, element: HTMLElement, config: EditorConfig): boolean;
17
+ exportDOM(): DOMExportOutput;
18
+ hasID(id: string): boolean;
19
+ getIDs(): Array<string>;
20
+ setIDs(ids: readonly string[]): this;
21
+ addID(id: string): this;
22
+ deleteID(id: string): this;
23
+ insertNewAfter(selection: RangeSelection, restoreSelection?: boolean): null | ElementNode;
24
+ canInsertTextBefore(): false;
25
+ canInsertTextAfter(): false;
26
+ canBeEmpty(): false;
27
+ isInline(): true;
28
+ }
29
+ export declare function $createMarkNode(ids?: readonly string[]): MarkNode;
30
+ export declare function $isMarkNode(node: LexicalNode | null): node is MarkNode;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ import type { SerializedMarkNode } from './MarkNode';
9
+ import type { RangeSelection, TextNode } from 'lexical';
10
+ import { $createMarkNode, $isMarkNode, MarkNode } from './MarkNode';
11
+ export declare function $unwrapMarkNode(node: MarkNode): void;
12
+ export declare function $wrapSelectionInMarkNode(selection: RangeSelection, isBackward: boolean, id: string, createNode?: (ids: Array<string>) => MarkNode): void;
13
+ export declare function $getMarkIDs(node: TextNode, offset: number): null | Array<string>;
14
+ export { $createMarkNode, $isMarkNode, MarkNode, SerializedMarkNode };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ /// <reference types="react" />
9
+ export default function TreeViewPlugin(): JSX.Element;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "sykpcomposer",
3
3
  "description": "code for captions",
4
4
  "private": false,
5
- "version": "1.19.81",
5
+ "version": "1.19.82",
6
6
  "type": "module",
7
7
  "main": "dist/index.umd.js",
8
8
  "module": "dist/index.es.js",