modern-idoc 0.8.2 → 0.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.cts +4 -4
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -699,7 +699,7 @@ interface NormalizedText {
|
|
|
699
699
|
measureDom?: any;
|
|
700
700
|
fonts?: any;
|
|
701
701
|
}
|
|
702
|
-
type Text = string | (Omit<NormalizedText, 'content'> & {
|
|
702
|
+
type Text = string | TextContent | (Omit<NormalizedText, 'content'> & {
|
|
703
703
|
content: TextContent;
|
|
704
704
|
});
|
|
705
705
|
declare function hasCRLF(content: string): boolean;
|
|
@@ -716,7 +716,7 @@ interface NormalizedVideo {
|
|
|
716
716
|
type Video = string | NormalizedVideo;
|
|
717
717
|
declare function normalizeVideo(video: Video): NormalizedVideo | undefined;
|
|
718
718
|
|
|
719
|
-
interface Element<T = Meta> extends Node<T> {
|
|
719
|
+
interface Element<T = Meta> extends Omit<Node<T>, 'children'> {
|
|
720
720
|
id?: string;
|
|
721
721
|
style?: WithNone<Style>;
|
|
722
722
|
text?: WithNone<Text>;
|
|
@@ -731,7 +731,7 @@ interface Element<T = Meta> extends Node<T> {
|
|
|
731
731
|
effect?: WithNone<Effect>;
|
|
732
732
|
children?: Element[];
|
|
733
733
|
}
|
|
734
|
-
|
|
734
|
+
interface NormalizedElement<T = Meta> extends Omit<Node<T>, 'children'> {
|
|
735
735
|
id: string;
|
|
736
736
|
style?: Partial<NormalizedStyle>;
|
|
737
737
|
text?: NormalizedText;
|
|
@@ -745,7 +745,7 @@ type NormalizedElement<T = Meta> = Node<T> & {
|
|
|
745
745
|
audio?: NormalizedAudio;
|
|
746
746
|
effect?: NormalizedEffect;
|
|
747
747
|
children?: NormalizedElement[];
|
|
748
|
-
}
|
|
748
|
+
}
|
|
749
749
|
declare function normalizeElement<T = Meta>(element: Element<T>): NormalizedElement<T>;
|
|
750
750
|
|
|
751
751
|
interface Document extends Element {
|
package/dist/index.d.mts
CHANGED
|
@@ -699,7 +699,7 @@ interface NormalizedText {
|
|
|
699
699
|
measureDom?: any;
|
|
700
700
|
fonts?: any;
|
|
701
701
|
}
|
|
702
|
-
type Text = string | (Omit<NormalizedText, 'content'> & {
|
|
702
|
+
type Text = string | TextContent | (Omit<NormalizedText, 'content'> & {
|
|
703
703
|
content: TextContent;
|
|
704
704
|
});
|
|
705
705
|
declare function hasCRLF(content: string): boolean;
|
|
@@ -716,7 +716,7 @@ interface NormalizedVideo {
|
|
|
716
716
|
type Video = string | NormalizedVideo;
|
|
717
717
|
declare function normalizeVideo(video: Video): NormalizedVideo | undefined;
|
|
718
718
|
|
|
719
|
-
interface Element<T = Meta> extends Node<T> {
|
|
719
|
+
interface Element<T = Meta> extends Omit<Node<T>, 'children'> {
|
|
720
720
|
id?: string;
|
|
721
721
|
style?: WithNone<Style>;
|
|
722
722
|
text?: WithNone<Text>;
|
|
@@ -731,7 +731,7 @@ interface Element<T = Meta> extends Node<T> {
|
|
|
731
731
|
effect?: WithNone<Effect>;
|
|
732
732
|
children?: Element[];
|
|
733
733
|
}
|
|
734
|
-
|
|
734
|
+
interface NormalizedElement<T = Meta> extends Omit<Node<T>, 'children'> {
|
|
735
735
|
id: string;
|
|
736
736
|
style?: Partial<NormalizedStyle>;
|
|
737
737
|
text?: NormalizedText;
|
|
@@ -745,7 +745,7 @@ type NormalizedElement<T = Meta> = Node<T> & {
|
|
|
745
745
|
audio?: NormalizedAudio;
|
|
746
746
|
effect?: NormalizedEffect;
|
|
747
747
|
children?: NormalizedElement[];
|
|
748
|
-
}
|
|
748
|
+
}
|
|
749
749
|
declare function normalizeElement<T = Meta>(element: Element<T>): NormalizedElement<T>;
|
|
750
750
|
|
|
751
751
|
interface Document extends Element {
|
package/dist/index.d.ts
CHANGED
|
@@ -699,7 +699,7 @@ interface NormalizedText {
|
|
|
699
699
|
measureDom?: any;
|
|
700
700
|
fonts?: any;
|
|
701
701
|
}
|
|
702
|
-
type Text = string | (Omit<NormalizedText, 'content'> & {
|
|
702
|
+
type Text = string | TextContent | (Omit<NormalizedText, 'content'> & {
|
|
703
703
|
content: TextContent;
|
|
704
704
|
});
|
|
705
705
|
declare function hasCRLF(content: string): boolean;
|
|
@@ -716,7 +716,7 @@ interface NormalizedVideo {
|
|
|
716
716
|
type Video = string | NormalizedVideo;
|
|
717
717
|
declare function normalizeVideo(video: Video): NormalizedVideo | undefined;
|
|
718
718
|
|
|
719
|
-
interface Element<T = Meta> extends Node<T> {
|
|
719
|
+
interface Element<T = Meta> extends Omit<Node<T>, 'children'> {
|
|
720
720
|
id?: string;
|
|
721
721
|
style?: WithNone<Style>;
|
|
722
722
|
text?: WithNone<Text>;
|
|
@@ -731,7 +731,7 @@ interface Element<T = Meta> extends Node<T> {
|
|
|
731
731
|
effect?: WithNone<Effect>;
|
|
732
732
|
children?: Element[];
|
|
733
733
|
}
|
|
734
|
-
|
|
734
|
+
interface NormalizedElement<T = Meta> extends Omit<Node<T>, 'children'> {
|
|
735
735
|
id: string;
|
|
736
736
|
style?: Partial<NormalizedStyle>;
|
|
737
737
|
text?: NormalizedText;
|
|
@@ -745,7 +745,7 @@ type NormalizedElement<T = Meta> = Node<T> & {
|
|
|
745
745
|
audio?: NormalizedAudio;
|
|
746
746
|
effect?: NormalizedEffect;
|
|
747
747
|
children?: NormalizedElement[];
|
|
748
|
-
}
|
|
748
|
+
}
|
|
749
749
|
declare function normalizeElement<T = Meta>(element: Element<T>): NormalizedElement<T>;
|
|
750
750
|
|
|
751
751
|
interface Document extends Element {
|