sykpcomposer 1.20.4 → 1.20.5

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.
@@ -6,7 +6,7 @@ export type Comment = {
6
6
  content: string;
7
7
  deleted: boolean;
8
8
  id: string;
9
- timeStamp: number;
9
+ timeStamp: string;
10
10
  type: "comment";
11
11
  quote?: string;
12
12
  userEmail?: string;
@@ -40,7 +40,7 @@ export type Thread = {
40
40
  wpAndTaskId?: wpAndTaskIdType;
41
41
  };
42
42
  export type Comments = Array<Thread | Comment>;
43
- export declare function createComment(content: string, author: string, userEmail?: string, mentionedEmails?: string[], id?: string, timeStamp?: number, deleted?: boolean): Comment;
43
+ export declare function createComment(content: string, author: string, userEmail?: string, mentionedEmails?: string[], timeStamp?: string, id?: string, deleted?: boolean): Comment;
44
44
  export declare function createThread(quote: string, comments: Array<Comment>, id?: string, wpAndTaskId?: wpAndTaskIdType): Thread;
45
45
  export declare class CommentStore {
46
46
  _editor: LexicalEditor;
@@ -5,26 +5,26 @@ export type SerializedMarkNode = Spread<{
5
5
  }, SerializedElementNode>;
6
6
  /** @noInheritDoc */
7
7
  export declare class MarkNode extends ElementNode {
8
- __ids: readonly string[];
8
+ __ids: string[];
9
9
  static getType(): string;
10
10
  static clone(node: MarkNode): MarkNode;
11
11
  static importDOM(): DOMConversionMap;
12
12
  static importJSON(serializedNode: SerializedMarkNode): MarkNode;
13
13
  exportJSON(): SerializedMarkNode;
14
- constructor(ids?: readonly string[], key?: NodeKey);
14
+ constructor(ids?: string[], key?: NodeKey);
15
15
  createDOM(config: EditorConfig): HTMLElement;
16
16
  updateDOM(prevNode: this, element: HTMLElement, config: EditorConfig): boolean;
17
17
  exportDOM(): DOMExportOutput;
18
18
  hasID(id: string): boolean;
19
19
  getIDs(): Array<string>;
20
- setIDs(ids: readonly string[]): this;
20
+ setIDs(ids: string[]): this;
21
21
  addID(id: string): this;
22
- deleteID(id: string): this;
22
+ deleteID(id: string): void;
23
23
  insertNewAfter(selection: RangeSelection, restoreSelection?: boolean): null | ElementNode;
24
24
  canInsertTextBefore(): false;
25
25
  canInsertTextAfter(): false;
26
26
  canBeEmpty(): false;
27
27
  isInline(): true;
28
28
  }
29
- export declare function $createMarkNode(ids?: readonly string[]): MarkNode;
29
+ export declare function $createMarkNode(ids?: string[]): MarkNode;
30
30
  export declare function $isMarkNode(node: LexicalNode | null): node is MarkNode;
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.20.04",
5
+ "version": "1.20.05",
6
6
  "type": "module",
7
7
  "main": "dist/index.umd.js",
8
8
  "module": "dist/index.es.js",