tycho-components 0.15.14 → 0.16.0

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,53 @@
1
+ import { Token } from './Struct';
2
+ import { Edition } from './Struct';
3
+ import { Struct } from './Struct';
4
+ import { SentenceStatus } from './SentenceStatus';
5
+ export type Mark = {
6
+ id: string;
7
+ tokens: Token[];
8
+ };
9
+ export type Break = {
10
+ id: string;
11
+ s: number;
12
+ splits: string[];
13
+ uid?: string;
14
+ };
15
+ export type Format = {
16
+ id: string;
17
+ italic?: boolean;
18
+ bold?: boolean;
19
+ strikeThrough?: boolean;
20
+ underline?: boolean;
21
+ fontSize?: string;
22
+ fontFamily?: string;
23
+ spacing?: string;
24
+ firstLetterSize?: string;
25
+ };
26
+ export type SentenceTier = {
27
+ symbol: string;
28
+ value: string;
29
+ };
30
+ export type Translation = {
31
+ uid: string;
32
+ values: Record<string, string>;
33
+ };
34
+ type Sentence = {
35
+ uid: string;
36
+ value: string;
37
+ breaks?: Break[];
38
+ marks?: Mark[];
39
+ editions?: Edition[];
40
+ document: string;
41
+ page: string;
42
+ translation?: Translation;
43
+ struct: Struct;
44
+ ns: boolean;
45
+ status?: SentenceStatus;
46
+ sound?: string;
47
+ start: number | null;
48
+ end: number | null;
49
+ participant?: string;
50
+ color?: string;
51
+ tiers: SentenceTier[];
52
+ };
53
+ export default Sentence;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,4 @@
1
- import SentenceStatus from './SentenceStatus';
1
+ import SentenceStatus from "./SentenceStatus";
2
2
  export type Split = {
3
3
  v?: string;
4
4
  t?: string;
@@ -23,6 +23,7 @@ export type Token = {
23
23
  mid?: string;
24
24
  cid?: string;
25
25
  eid?: string;
26
+ fid?: string;
26
27
  split?: Split;
27
28
  splits?: Morpheme[];
28
29
  coidx?: number[];
package/dist/index.d.ts CHANGED
@@ -52,6 +52,8 @@ export { EditionTiers } from './configs/types/EditionTiers';
52
52
  export type { Parameter, ParameterType } from './configs/types/Parameter';
53
53
  export { SentenceStatusNames } from './configs/types/SentenceStatus';
54
54
  export type { SentenceStatus } from './configs/types/SentenceStatus';
55
+ export type { Mark, Break, Format as SentenceFormat, SentenceTier, Translation, } from './configs/types/Sentence';
56
+ export type { default as Sentence } from './configs/types/Sentence';
55
57
  export type { Chunk, Edition, Format, Morpheme, Split, Struct, Token, ConlluToken, } from './configs/types/Struct';
56
58
  export type { CytoscapeTree, Tree } from './configs/types/Tree';
57
59
  export { UserStatusNames } 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.15.14",
4
+ "version": "0.16.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {