tycho-components 0.32.5 → 0.33.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.
@@ -10,7 +10,6 @@ import { HeaderTexts } from "./localization/HeaderTexts";
10
10
  import { HelpTexts } from "./localization/HelpTexts";
11
11
  import { HistoryTexts } from "./localization/HistoryTexts";
12
12
  import { ParametersTexts } from "./localization/ParametersTexts";
13
- import { ParticipantsTexts } from "./localization/ParticipantsTexts";
14
13
  import { SentenceTexts } from "./localization/SentenceTexts";
15
14
  import { TreeTexts } from "./localization/TreeTexts";
16
15
  import { UploadTexts } from "./localization/UploadTexts";
@@ -32,7 +31,6 @@ const CORE_NAMESPACES = {
32
31
  };
33
32
  const FEATURE_NAMESPACES = {
34
33
  comments: CommentsTexts,
35
- participants: ParticipantsTexts,
36
34
  tree: TreeTexts,
37
35
  sentence: SentenceTexts,
38
36
  parameters: ParametersTexts,
@@ -1,34 +1,33 @@
1
- export { CommonProvider } from './CommonContext';
2
- export { default as CommonContext } from './CommonContext';
3
- export { default as CookieStorage } from './CookieStorage';
4
- export { commonResources, featureResources, mergeResources, commonLocalization, } from './Localization';
5
- export { default as ProfileService } from './services/ProfileService';
6
- export type { Corpus, CorpusRequest, Github } from './types/Corpus';
7
- export { CorpusStatusNames } from './types/CorpusStatus';
8
- export type { CorpusStatus } from './types/CorpusStatus';
9
- export { DocumentStatusNames } from './types/Document';
10
- export type { DocumentStatus, default as Document } from './types/Document';
11
- export type { default as Participant, ParticipantCreateRequest, ParticipantUpdateRequest, } from './types/Participant';
12
- export { EMPTY_PARTICIPANT } from './types/Participant';
13
- export { CorpusImageTypeNames } from './types/CorpusImage';
14
- export type { CorpusImage, CorpusImageType } from './types/CorpusImage';
15
- export { DEFAULT_EDITION_TIERS, EditionTiers, StructuralEditionTiers, isStructuralEditionTier, } from './types/EditionTiers';
16
- export type { EditionGroup, EditionTierDefinition, EditionTierGroup, EditionTierSymbol, } from './types/EditionTiers';
17
- export type { Parameter, ParameterType } from './types/Parameter';
18
- export type { default as ProcessConfiguration, SentenceDelimiter, } from './types/ProcessConfiguration';
19
- export { DEFAULT_DELIMITERS, DELIMITERS, DelimiterNames, EMPTY_CONFIGURATION, } from './types/ProcessConfiguration';
20
- export { SentenceStatusNames } from './types/SentenceStatus';
21
- export type { SentenceStatus } from './types/SentenceStatus';
22
- export type { Mark, Break, Format as SentenceFormat, SentenceTier, Translation, } from './types/Sentence';
23
- export type { default as Sentence } from './types/Sentence';
24
- export { INFLECTIONS, EXTENSIONS } from './types/Struct';
25
- export type { Chunk, Edition, Format, Morpheme, Split, Struct, Token, ConlluToken, } from './types/Struct';
26
- export type { CytoscapeTree, Tree } from './types/Tree';
27
- export { UserStatusNames } from './types/User';
28
- export type { User, UserStatus } from './types/User';
29
- export { useCorpusUtils } from './useCorpusUtils';
30
- export { useLoggedUtils } from './useLoggedUtils';
31
- export { useMessageUtils } from './useMessageUtils';
32
- export { useTourUtils } from './useTourUtils';
33
- export { useDriverTour, loadKnowledgeBase, defaultMatchPathnames, buildAnchorMap, flattenWorkflowSteps, getWorkflowsForPath, buildDriveSteps, createTourDriver, hasMatchingWorkflow, resolveAnchor, resolveAnchorById, waitForSelector, localizeKnowledgeBase, pickLocalizedString, resolveTourLocale, TOUR_FALLBACK_LOCALE, TOUR_LOCALES, } from './tour';
34
- export type { AnchorSelector, KnowledgeBase, KnowledgeBaseRaw, LocalizedString, PopoverSide, ResolveKnowledgeBaseUrl, TourAnchor, TourButtonLabels, TourStep, TourStepCopy, TourStepStructural, TourWorkflow, TourWorkflowRaw, UseDriverTourOptions, } from './tour';
1
+ export { CommonProvider } from "./CommonContext";
2
+ export { default as CommonContext } from "./CommonContext";
3
+ export { default as CookieStorage } from "./CookieStorage";
4
+ export { commonResources, featureResources, mergeResources, commonLocalization, } from "./Localization";
5
+ export { default as ProfileService } from "./services/ProfileService";
6
+ export type { Corpus, CorpusRequest, Github } from "./types/Corpus";
7
+ export { CorpusStatusNames } from "./types/CorpusStatus";
8
+ export type { CorpusStatus } from "./types/CorpusStatus";
9
+ export { DocumentStatusNames } from "./types/Document";
10
+ export type { DocumentStatus, default as Document } from "./types/Document";
11
+ export type { default as Participant } from "./types/Participant";
12
+ export { CorpusImageTypeNames } from "./types/CorpusImage";
13
+ export type { CorpusImage, CorpusImageType } from "./types/CorpusImage";
14
+ export { DEFAULT_EDITION_TIERS, EditionTiers, StructuralEditionTiers, isStructuralEditionTier, } from "./types/EditionTiers";
15
+ export type { EditionGroup, EditionTierDefinition, EditionTierGroup, EditionTierSymbol, } from "./types/EditionTiers";
16
+ export type { Parameter, ParameterType } from "./types/Parameter";
17
+ export type { default as ProcessConfiguration, SentenceDelimiter, } from "./types/ProcessConfiguration";
18
+ export { DEFAULT_DELIMITERS, DELIMITERS, DelimiterNames, EMPTY_CONFIGURATION, } from "./types/ProcessConfiguration";
19
+ export { SentenceStatusNames } from "./types/SentenceStatus";
20
+ export type { SentenceStatus } from "./types/SentenceStatus";
21
+ export type { Mark, Break, Format as SentenceFormat, SentenceTier, Translation, } from "./types/Sentence";
22
+ export type { default as Sentence } from "./types/Sentence";
23
+ export { INFLECTIONS, EXTENSIONS } from "./types/Struct";
24
+ export type { Chunk, Edition, Format, Morpheme, Split, Struct, Token, ConlluToken, } from "./types/Struct";
25
+ export type { CytoscapeTree, Tree } from "./types/Tree";
26
+ export { UserStatusNames } from "./types/User";
27
+ export type { User, UserStatus } from "./types/User";
28
+ export { useCorpusUtils } from "./useCorpusUtils";
29
+ export { useLoggedUtils } from "./useLoggedUtils";
30
+ export { useMessageUtils } from "./useMessageUtils";
31
+ export { useTourUtils } from "./useTourUtils";
32
+ export { useDriverTour, loadKnowledgeBase, defaultMatchPathnames, buildAnchorMap, flattenWorkflowSteps, getWorkflowsForPath, buildDriveSteps, createTourDriver, hasMatchingWorkflow, resolveAnchor, resolveAnchorById, waitForSelector, localizeKnowledgeBase, pickLocalizedString, resolveTourLocale, TOUR_FALLBACK_LOCALE, TOUR_LOCALES, } from "./tour";
33
+ export type { AnchorSelector, KnowledgeBase, KnowledgeBaseRaw, LocalizedString, PopoverSide, ResolveKnowledgeBaseUrl, TourAnchor, TourButtonLabels, TourStep, TourStepCopy, TourStepStructural, TourWorkflow, TourWorkflowRaw, UseDriverTourOptions, } from "./tour";
@@ -1,19 +1,18 @@
1
- export { CommonProvider } from './CommonContext';
2
- export { default as CommonContext } from './CommonContext';
3
- export { default as CookieStorage } from './CookieStorage';
4
- export { commonResources, featureResources, mergeResources, commonLocalization, } from './Localization';
5
- export { default as ProfileService } from './services/ProfileService';
6
- export { CorpusStatusNames } from './types/CorpusStatus';
7
- export { DocumentStatusNames } from './types/Document';
8
- export { EMPTY_PARTICIPANT } from './types/Participant';
9
- export { CorpusImageTypeNames } from './types/CorpusImage';
10
- export { DEFAULT_EDITION_TIERS, EditionTiers, StructuralEditionTiers, isStructuralEditionTier, } from './types/EditionTiers';
11
- export { DEFAULT_DELIMITERS, DELIMITERS, DelimiterNames, EMPTY_CONFIGURATION, } from './types/ProcessConfiguration';
12
- export { SentenceStatusNames } from './types/SentenceStatus';
13
- export { INFLECTIONS, EXTENSIONS } from './types/Struct';
14
- export { UserStatusNames } from './types/User';
15
- export { useCorpusUtils } from './useCorpusUtils';
16
- export { useLoggedUtils } from './useLoggedUtils';
17
- export { useMessageUtils } from './useMessageUtils';
18
- export { useTourUtils } from './useTourUtils';
19
- export { useDriverTour, loadKnowledgeBase, defaultMatchPathnames, buildAnchorMap, flattenWorkflowSteps, getWorkflowsForPath, buildDriveSteps, createTourDriver, hasMatchingWorkflow, resolveAnchor, resolveAnchorById, waitForSelector, localizeKnowledgeBase, pickLocalizedString, resolveTourLocale, TOUR_FALLBACK_LOCALE, TOUR_LOCALES, } from './tour';
1
+ export { CommonProvider } from "./CommonContext";
2
+ export { default as CommonContext } from "./CommonContext";
3
+ export { default as CookieStorage } from "./CookieStorage";
4
+ export { commonResources, featureResources, mergeResources, commonLocalization, } from "./Localization";
5
+ export { default as ProfileService } from "./services/ProfileService";
6
+ export { CorpusStatusNames } from "./types/CorpusStatus";
7
+ export { DocumentStatusNames } from "./types/Document";
8
+ export { CorpusImageTypeNames } from "./types/CorpusImage";
9
+ export { DEFAULT_EDITION_TIERS, EditionTiers, StructuralEditionTiers, isStructuralEditionTier, } from "./types/EditionTiers";
10
+ export { DEFAULT_DELIMITERS, DELIMITERS, DelimiterNames, EMPTY_CONFIGURATION, } from "./types/ProcessConfiguration";
11
+ export { SentenceStatusNames } from "./types/SentenceStatus";
12
+ export { INFLECTIONS, EXTENSIONS } from "./types/Struct";
13
+ export { UserStatusNames } from "./types/User";
14
+ export { useCorpusUtils } from "./useCorpusUtils";
15
+ export { useLoggedUtils } from "./useLoggedUtils";
16
+ export { useMessageUtils } from "./useMessageUtils";
17
+ export { useTourUtils } from "./useTourUtils";
18
+ export { useDriverTour, loadKnowledgeBase, defaultMatchPathnames, buildAnchorMap, flattenWorkflowSteps, getWorkflowsForPath, buildDriveSteps, createTourDriver, hasMatchingWorkflow, resolveAnchor, resolveAnchorById, waitForSelector, localizeKnowledgeBase, pickLocalizedString, resolveTourLocale, TOUR_FALLBACK_LOCALE, TOUR_LOCALES, } from "./tour";
@@ -5,16 +5,7 @@ type Participant = {
5
5
  color?: string;
6
6
  role?: string;
7
7
  separator?: string;
8
+ identifiers?: string[];
8
9
  chat: Record<string, string>;
9
10
  };
10
- export type ParticipantCreateRequest = {
11
- code: string;
12
- name: string;
13
- };
14
- export type ParticipantUpdateRequest = {
15
- uid: string;
16
- code: string;
17
- participant: Participant;
18
- };
19
- export declare const EMPTY_PARTICIPANT: Participant;
20
11
  export default Participant;
@@ -1,6 +1 @@
1
- export const EMPTY_PARTICIPANT = {
2
- order: 1,
3
- code: '',
4
- name: '',
5
- chat: {},
6
- };
1
+ export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tycho-components",
3
3
  "private": false,
4
- "version": "0.32.5",
4
+ "version": "0.33.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -1,82 +0,0 @@
1
- export declare const ParticipantsTexts: {
2
- en: {
3
- 'label.title': string;
4
- 'button.label.add': string;
5
- 'participant.field.order': string;
6
- 'participant.field.code': string;
7
- 'participant.field.name': string;
8
- 'participant.field.color': string;
9
- 'participant.field.select': string;
10
- 'participant.field.separator': string;
11
- 'participant.field.color.tooltip': string;
12
- 'participant.field.language': string;
13
- 'participant.field.age': string;
14
- 'participant.field.sex': string;
15
- 'participant.field.group': string;
16
- 'participant.field.ses': string;
17
- 'participant.field.role': string;
18
- 'participant.field.education': string;
19
- 'participant.field.custom': string;
20
- 'modal.remove.title': string;
21
- 'modal.remove.description': string;
22
- 'modal.remove.participant': string;
23
- 'modal.add.title': string;
24
- 'modal.input.code': string;
25
- 'modal.input.name': string;
26
- 'modal.select.transfer': string;
27
- 'participant.code.exists': string;
28
- };
29
- 'pt-BR': {
30
- 'label.title': string;
31
- 'button.label.add': string;
32
- 'participant.field.order': string;
33
- 'participant.field.code': string;
34
- 'participant.field.name': string;
35
- 'participant.field.color': string;
36
- 'participant.field.select': string;
37
- 'participant.field.separator': string;
38
- 'participant.field.color.tooltip': string;
39
- 'participant.field.language': string;
40
- 'participant.field.age': string;
41
- 'participant.field.sex': string;
42
- 'participant.field.group': string;
43
- 'participant.field.ses': string;
44
- 'participant.field.role': string;
45
- 'participant.field.education': string;
46
- 'participant.field.custom': string;
47
- 'modal.remove.title': string;
48
- 'modal.remove.description': string;
49
- 'modal.remove.participant': string;
50
- 'modal.add.title': string;
51
- 'modal.input.code': string;
52
- 'modal.input.name': string;
53
- 'participant.code.exists': string;
54
- };
55
- it: {
56
- 'label.title': string;
57
- 'button.label.add': string;
58
- 'participant.field.order': string;
59
- 'participant.field.code': string;
60
- 'participant.field.name': string;
61
- 'participant.field.color': string;
62
- 'participant.field.select': string;
63
- 'participant.field.separator': string;
64
- 'participant.field.color.tooltip': string;
65
- 'participant.field.language': string;
66
- 'participant.field.age': string;
67
- 'participant.field.sex': string;
68
- 'participant.field.group': string;
69
- 'participant.field.ses': string;
70
- 'participant.field.role': string;
71
- 'participant.field.education': string;
72
- 'participant.field.custom': string;
73
- 'modal.remove.title': string;
74
- 'modal.remove.description': string;
75
- 'modal.remove.participant': string;
76
- 'modal.add.title': string;
77
- 'modal.input.code': string;
78
- 'modal.input.name': string;
79
- 'modal.select.transfer': string;
80
- 'participant.code.exists': string;
81
- };
82
- };
@@ -1,82 +0,0 @@
1
- export const ParticipantsTexts = {
2
- en: {
3
- 'label.title': 'Participants',
4
- 'button.label.add': 'add new participant',
5
- 'participant.field.order': 'Order',
6
- 'participant.field.code': 'Code',
7
- 'participant.field.name': 'Name',
8
- 'participant.field.color': 'Color',
9
- 'participant.field.select': 'Select participant',
10
- 'participant.field.separator': 'Separator',
11
- 'participant.field.color.tooltip': 'A color for transcription visual identifier',
12
- 'participant.field.language': 'Language',
13
- 'participant.field.age': 'Age',
14
- 'participant.field.sex': 'Sex',
15
- 'participant.field.group': 'Group',
16
- 'participant.field.ses': 'SES',
17
- 'participant.field.role': 'Role',
18
- 'participant.field.education': 'Education',
19
- 'participant.field.custom': 'Custom',
20
- 'modal.remove.title': 'Remove participant',
21
- 'modal.remove.description': 'Are you sure you want to delete this participant? This action is irreversible, but the sentences are not deleted.',
22
- 'modal.remove.participant': 'You can choose a participant to transfer sentences related to ',
23
- 'modal.add.title': 'Add new participant',
24
- 'modal.input.code': 'ID',
25
- 'modal.input.name': 'Name',
26
- 'modal.select.transfer': 'Participant',
27
- 'participant.code.exists': 'The participant code provided is already in use.',
28
- },
29
- 'pt-BR': {
30
- 'label.title': 'Participantes',
31
- 'button.label.add': 'Adicionar participante',
32
- 'participant.field.order': 'Ordem',
33
- 'participant.field.code': 'Código',
34
- 'participant.field.name': 'Nome',
35
- 'participant.field.color': 'Cor',
36
- 'participant.field.select': 'Selecionar participante',
37
- 'participant.field.separator': 'Separador',
38
- 'participant.field.color.tooltip': 'Cor para identificação visual da sentença na transcrição',
39
- 'participant.field.language': 'Língua',
40
- 'participant.field.age': 'Idade',
41
- 'participant.field.sex': 'Gênero',
42
- 'participant.field.group': 'Grupo',
43
- 'participant.field.ses': 'SES',
44
- 'participant.field.role': 'Papel',
45
- 'participant.field.education': 'Educação',
46
- 'participant.field.custom': 'Outros',
47
- 'modal.remove.title': 'Remover participante',
48
- 'modal.remove.description': 'Você tem certeza que deseja remover este participante? Esta ação é irreversível, porém as sentenças não serão excluídas.',
49
- 'modal.remove.participant': 'Você pode escolher um participante para transferir frases relacionadas a ',
50
- 'modal.add.title': 'Adicionar novo participante',
51
- 'modal.input.code': 'ID',
52
- 'modal.input.name': 'Nome',
53
- 'participant.code.exists': 'O código de participante fornecido já está em uso.',
54
- },
55
- it: {
56
- 'label.title': 'Partecipanti',
57
- 'button.label.add': 'aggiungi nuovo partecipante',
58
- 'participant.field.order': 'Ordine',
59
- 'participant.field.code': 'Codice',
60
- 'participant.field.name': 'Nome',
61
- 'participant.field.color': 'Colore',
62
- 'participant.field.select': 'Seleziona partecipante',
63
- 'participant.field.separator': 'Separatore',
64
- 'participant.field.color.tooltip': "Un colore per l'identificatore visivo della trascrizione",
65
- 'participant.field.language': 'Lingua',
66
- 'participant.field.age': 'Età',
67
- 'participant.field.sex': 'Sesso',
68
- 'participant.field.group': 'Gruppo',
69
- 'participant.field.ses': 'SES',
70
- 'participant.field.role': 'Ruolo',
71
- 'participant.field.education': 'Educazione',
72
- 'participant.field.custom': 'Personalizzato',
73
- 'modal.remove.title': 'Rimuovere partecipante',
74
- 'modal.remove.description': 'Sei sicuro di voler eliminare questo partecipante? Questa azione è irreversibile, ma le frasi non vengono eliminate.',
75
- 'modal.remove.participant': 'Puoi scegliere un partecipante a cui trasferire le frasi relative a ',
76
- 'modal.add.title': 'Aggiungi nuovo partecipante',
77
- 'modal.input.code': 'ID',
78
- 'modal.input.name': 'Nome',
79
- 'modal.select.transfer': 'Partecipante',
80
- 'participant.code.exists': 'Il codice partecipante fornito è già in uso.',
81
- },
82
- };