tycho-components 0.2.0-SNAPSHOT-6 → 0.2.0-SNAPSHOT-8

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.
@@ -28,6 +28,7 @@ export type Token = {
28
28
  tags?: string[];
29
29
  review?: boolean;
30
30
  edition?: Edition;
31
+ format?: Format;
31
32
  };
32
33
  export type Morpheme = {
33
34
  v: string;
@@ -51,3 +52,13 @@ export type Edition = {
51
52
  };
52
53
  pos?: number;
53
54
  };
55
+ export type Format = {
56
+ id: string;
57
+ italic?: boolean;
58
+ bold?: boolean;
59
+ strikeThrough?: boolean;
60
+ fontSize?: string;
61
+ fontFamily?: string;
62
+ spacing?: string;
63
+ firstLetterSize?: string;
64
+ };
@@ -3,5 +3,6 @@ declare const SentenceUtils: {
3
3
  sort: (struct: Struct) => Token[];
4
4
  getAsText: (struct: Struct) => string;
5
5
  isVisible: (token: Token) => boolean;
6
+ isFirstFromSplit: (token: Token) => boolean;
6
7
  };
7
8
  export default SentenceUtils;
@@ -29,5 +29,6 @@ const SentenceUtils = {
29
29
  sort,
30
30
  getAsText,
31
31
  isVisible,
32
+ isFirstFromSplit,
32
33
  };
33
34
  export default SentenceUtils;
package/dist/index.d.ts CHANGED
@@ -31,7 +31,7 @@ export { commonResources } from './configs/Localization';
31
31
  export type { Corpus, Github } from './configs/types/Corpus';
32
32
  export { CorpusImageTypeNames } from './configs/types/CorpusImage';
33
33
  export type { CorpusImage, CorpusImageType } from './configs/types/CorpusImage';
34
- export type { Chunk, Edition, Morpheme, Split, Struct, Token, } from './configs/types/Struct';
34
+ export type { Chunk, Edition, Format, Morpheme, Split, Struct, Token, } from './configs/types/Struct';
35
35
  export type { CytoscapeTree, Tree } from './configs/types/Tree';
36
36
  export { UserStatusNames } from './configs/types/User';
37
37
  export type { User, UserStatus } from './configs/types/User';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tycho-components",
3
3
  "private": false,
4
- "version": "0.2.0-SNAPSHOT-6",
4
+ "version": "0.2.0-SNAPSHOT-8",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {