tycho-components 0.29.13 → 0.29.14

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.
@@ -18,7 +18,7 @@ export { DEFAULT_EDITION_TIERS, EditionTiers, StructuralEditionTiers, isStructur
18
18
  export type { EditionGroup, EditionTierDefinition, EditionTierGroup, EditionTierSymbol, } from './types/EditionTiers';
19
19
  export type { Parameter, ParameterType } from './types/Parameter';
20
20
  export type { default as ProcessConfiguration, SentenceDelimiter, } from './types/ProcessConfiguration';
21
- export { DELIMITERS, EMPTY_CONFIGURATION } from './types/ProcessConfiguration';
21
+ export { DEFAULT_DELIMITERS, DELIMITERS, DelimiterNames, EMPTY_CONFIGURATION, } from './types/ProcessConfiguration';
22
22
  export { SentenceStatusNames } from './types/SentenceStatus';
23
23
  export type { SentenceStatus } from './types/SentenceStatus';
24
24
  export type { Mark, Break, Format as SentenceFormat, SentenceTier, Translation, } from './types/Sentence';
@@ -10,7 +10,7 @@ export { DocumentStatusNames } from './types/Document';
10
10
  export { EMPTY_PARTICIPANT } from './types/Participant';
11
11
  export { CorpusImageTypeNames } from './types/CorpusImage';
12
12
  export { DEFAULT_EDITION_TIERS, EditionTiers, StructuralEditionTiers, isStructuralEditionTier, } from './types/EditionTiers';
13
- export { DELIMITERS, EMPTY_CONFIGURATION } from './types/ProcessConfiguration';
13
+ export { DEFAULT_DELIMITERS, DELIMITERS, DelimiterNames, EMPTY_CONFIGURATION, } from './types/ProcessConfiguration';
14
14
  export { SentenceStatusNames } from './types/SentenceStatus';
15
15
  export { UserStatusNames } from './types/User';
16
16
  export { useCorpusUtils } from './useCorpusUtils';
@@ -68,6 +68,14 @@ export declare const CommonTexts: {
68
68
  'corpus.status.demo': string;
69
69
  'corpus.status.pending': string;
70
70
  'corpus.status.rejected': string;
71
+ 'delimiter.period': string;
72
+ 'delimiter.question.mark': string;
73
+ 'delimiter.exclamation.mark': string;
74
+ 'delimiter.colon': string;
75
+ 'delimiter.semicolon': string;
76
+ 'delimiter.comma': string;
77
+ 'delimiter.ellipsis': string;
78
+ 'delimiter.bar': string;
71
79
  };
72
80
  'pt-BR': {
73
81
  'button.confirm': string;
@@ -138,6 +146,14 @@ export declare const CommonTexts: {
138
146
  'corpus.status.demo': string;
139
147
  'corpus.status.pending': string;
140
148
  'corpus.status.rejected': string;
149
+ 'delimiter.period': string;
150
+ 'delimiter.question.mark': string;
151
+ 'delimiter.exclamation.mark': string;
152
+ 'delimiter.colon': string;
153
+ 'delimiter.semicolon': string;
154
+ 'delimiter.comma': string;
155
+ 'delimiter.ellipsis': string;
156
+ 'delimiter.bar': string;
141
157
  };
142
158
  it: {
143
159
  'button.confirm': string;
@@ -208,5 +224,13 @@ export declare const CommonTexts: {
208
224
  'corpus.status.demo': string;
209
225
  'corpus.status.pending': string;
210
226
  'corpus.status.rejected': string;
227
+ 'delimiter.period': string;
228
+ 'delimiter.question.mark': string;
229
+ 'delimiter.exclamation.mark': string;
230
+ 'delimiter.colon': string;
231
+ 'delimiter.semicolon': string;
232
+ 'delimiter.comma': string;
233
+ 'delimiter.ellipsis': string;
234
+ 'delimiter.bar': string;
211
235
  };
212
236
  };
@@ -68,6 +68,14 @@ export const CommonTexts = {
68
68
  'corpus.status.demo': 'Demo',
69
69
  'corpus.status.pending': 'Pending',
70
70
  'corpus.status.rejected': 'Demo',
71
+ 'delimiter.period': 'Period',
72
+ 'delimiter.question.mark': 'Question Mark',
73
+ 'delimiter.exclamation.mark': 'Exclamation Mark',
74
+ 'delimiter.colon': 'Colon',
75
+ 'delimiter.semicolon': 'Semicolon',
76
+ 'delimiter.comma': 'Comma',
77
+ 'delimiter.ellipsis': 'Ellipsis',
78
+ 'delimiter.bar': 'Bar',
71
79
  },
72
80
  'pt-BR': {
73
81
  'button.confirm': 'Confirmar',
@@ -138,6 +146,14 @@ export const CommonTexts = {
138
146
  'corpus.status.demo': 'Demo',
139
147
  'corpus.status.pending': 'Pendente',
140
148
  'corpus.status.rejected': 'Rejeitado',
149
+ 'delimiter.period': 'Ponto',
150
+ 'delimiter.question.mark': 'Ponto de interrogação',
151
+ 'delimiter.exclamation.mark': 'Ponto de exclamação',
152
+ 'delimiter.colon': 'Dois pontos',
153
+ 'delimiter.semicolon': 'Ponto e vírgula',
154
+ 'delimiter.comma': 'Vírgula',
155
+ 'delimiter.ellipsis': 'Reticências',
156
+ 'delimiter.bar': 'Barra',
141
157
  },
142
158
  it: {
143
159
  'button.confirm': 'Conferma',
@@ -208,5 +224,13 @@ export const CommonTexts = {
208
224
  'corpus.status.demo': 'Demo',
209
225
  'corpus.status.pending': 'In attesa',
210
226
  'corpus.status.rejected': 'Rifiutato',
227
+ 'delimiter.period': 'Punto',
228
+ 'delimiter.question.mark': 'Punto interrogativo',
229
+ 'delimiter.exclamation.mark': 'Punto esclamativo',
230
+ 'delimiter.colon': 'Due punti',
231
+ 'delimiter.semicolon': 'Punto e virgola',
232
+ 'delimiter.comma': 'Virgola',
233
+ 'delimiter.ellipsis': 'Punti di sospensione',
234
+ 'delimiter.bar': 'Barra',
211
235
  },
212
236
  };
@@ -10,8 +10,20 @@ export type SentenceDelimiter = {
10
10
  name: string;
11
11
  symbol: string;
12
12
  value: string;
13
+ default: boolean;
14
+ };
15
+ export declare const DelimiterNames: {
16
+ PERIOD: string;
17
+ QUESTION_MARK: string;
18
+ EXCLAMATION_MARK: string;
19
+ COLON: string;
20
+ SEMICOLON: string;
21
+ COMMA: string;
22
+ ELLIPSIS: string;
23
+ BAR: string;
13
24
  };
14
25
  export declare const DELIMITERS: SentenceDelimiter[];
26
+ export declare const DEFAULT_DELIMITERS: string[];
15
27
  export declare const EMPTY_CONFIGURATION: {
16
28
  delimiters: string[];
17
29
  hasParticipants: boolean;
@@ -1,14 +1,40 @@
1
+ export const DelimiterNames = {
2
+ PERIOD: 'common:delimiter.period',
3
+ QUESTION_MARK: 'common:delimiter.question.mark',
4
+ EXCLAMATION_MARK: 'common:delimiter.exclamation.mark',
5
+ COLON: 'common:delimiter.colon',
6
+ SEMICOLON: 'common:delimiter.semicolon',
7
+ COMMA: 'common:delimiter.comma',
8
+ ELLIPSIS: 'common:delimiter.ellipsis',
9
+ BAR: 'common:delimiter.bar',
10
+ };
1
11
  export const DELIMITERS = [
2
- { name: 'Period', symbol: '.', value: '\\.' },
3
- { name: 'Question Mark', symbol: '?', value: '\\?' },
4
- { name: 'Exclamation Mark', symbol: '!', value: '!' },
5
- { name: 'Colon', symbol: ':', value: '\\:' },
6
- { name: 'Semicolon', symbol: ';', value: ';' },
7
- { name: 'Comma', symbol: ',', value: ',' },
8
- { name: 'Ellpsis', symbol: '...', value: '\\.\\.\\.' },
9
- { name: 'Bar', symbol: '|', value: '|' },
12
+ { name: DelimiterNames.PERIOD, symbol: '.', value: '\\.', default: true },
13
+ {
14
+ name: DelimiterNames.QUESTION_MARK,
15
+ symbol: '?',
16
+ value: '\\?',
17
+ default: true,
18
+ },
19
+ {
20
+ name: DelimiterNames.EXCLAMATION_MARK,
21
+ symbol: '!',
22
+ value: '!',
23
+ default: true,
24
+ },
25
+ { name: DelimiterNames.COLON, symbol: ':', value: '\\:', default: true },
26
+ { name: DelimiterNames.SEMICOLON, symbol: ';', value: ';', default: true },
27
+ { name: DelimiterNames.COMMA, symbol: ',', value: ',', default: false },
28
+ {
29
+ name: DelimiterNames.ELLIPSIS,
30
+ symbol: '...',
31
+ value: '\\.\\.\\.',
32
+ default: true,
33
+ },
34
+ { name: DelimiterNames.BAR, symbol: '|', value: '|', default: false },
10
35
  ];
36
+ export const DEFAULT_DELIMITERS = DELIMITERS.filter((d) => d.default).map((d) => d.value);
11
37
  export const EMPTY_CONFIGURATION = {
12
- delimiters: DELIMITERS.map((d) => d.value),
38
+ delimiters: DEFAULT_DELIMITERS,
13
39
  hasParticipants: false,
14
40
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tycho-components",
3
3
  "private": false,
4
- "version": "0.29.13",
4
+ "version": "0.29.14",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {