tycho-components 0.29.12 → 0.29.13

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.
@@ -17,6 +17,8 @@ export type { CorpusImage, CorpusImageType } from './types/CorpusImage';
17
17
  export { DEFAULT_EDITION_TIERS, EditionTiers, StructuralEditionTiers, isStructuralEditionTier, } from './types/EditionTiers';
18
18
  export type { EditionGroup, EditionTierDefinition, EditionTierGroup, EditionTierSymbol, } from './types/EditionTiers';
19
19
  export type { Parameter, ParameterType } from './types/Parameter';
20
+ export type { default as ProcessConfiguration, SentenceDelimiter, } from './types/ProcessConfiguration';
21
+ export { DELIMITERS, EMPTY_CONFIGURATION } from './types/ProcessConfiguration';
20
22
  export { SentenceStatusNames } from './types/SentenceStatus';
21
23
  export type { SentenceStatus } from './types/SentenceStatus';
22
24
  export type { Mark, Break, Format as SentenceFormat, SentenceTier, Translation, } from './types/Sentence';
@@ -10,6 +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
14
  export { SentenceStatusNames } from './types/SentenceStatus';
14
15
  export { UserStatusNames } from './types/User';
15
16
  export { useCorpusUtils } from './useCorpusUtils';
@@ -1,5 +1,6 @@
1
- import Participant from './Participant';
2
1
  import { PlatformTools } from '../../functions/ToolsUtils';
2
+ import Participant from './Participant';
3
+ import ProcessConfiguration from './ProcessConfiguration';
3
4
  export type DocumentStatus = 'EDITING' | 'EDITED' | 'SYNTACTIC' | 'COMPLETED';
4
5
  export declare const DocumentStatusNames: {
5
6
  EDITING: string;
@@ -33,5 +34,6 @@ type Document = {
33
34
  githubFormat?: string;
34
35
  visible?: boolean;
35
36
  description?: string;
37
+ config?: ProcessConfiguration;
36
38
  };
37
39
  export default Document;
@@ -0,0 +1,19 @@
1
+ type ProcessConfiguration = {
2
+ delimiters: string[];
3
+ hasParticipants: boolean;
4
+ pageNumberAsTextElementBreaksPage?: boolean;
5
+ sectionForNewPage?: string;
6
+ translationLinesInTextStrategy?: string;
7
+ tabInWordsAsAttributes?: string;
8
+ };
9
+ export type SentenceDelimiter = {
10
+ name: string;
11
+ symbol: string;
12
+ value: string;
13
+ };
14
+ export declare const DELIMITERS: SentenceDelimiter[];
15
+ export declare const EMPTY_CONFIGURATION: {
16
+ delimiters: string[];
17
+ hasParticipants: boolean;
18
+ };
19
+ export default ProcessConfiguration;
@@ -0,0 +1,14 @@
1
+ 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: '|' },
10
+ ];
11
+ export const EMPTY_CONFIGURATION = {
12
+ delimiters: DELIMITERS.map((d) => d.value),
13
+ hasParticipants: false,
14
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tycho-components",
3
3
  "private": false,
4
- "version": "0.29.12",
4
+ "version": "0.29.13",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {