tycho-components 0.32.6 → 0.33.1

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.
Files changed (69) hide show
  1. package/dist/common/AppCard/AppCard.d.ts +1 -1
  2. package/dist/common/AppClipboard/AppClipboard.d.ts +1 -1
  3. package/dist/common/AppColorpicker/AppColorpicker.d.ts +1 -1
  4. package/dist/common/AppConsent/AppConsent.d.ts +1 -1
  5. package/dist/common/AppCopyText/AppCopyText.d.ts +1 -1
  6. package/dist/common/AppDropzone/AppDropzone.d.ts +1 -1
  7. package/dist/common/AppDropzone/UploadService.d.ts +1 -1
  8. package/dist/common/AppDropzoneLocal/AppDropzoneLocal.d.ts +1 -1
  9. package/dist/common/AppEditable/AppEditable.d.ts +1 -1
  10. package/dist/common/AppForm/AppForm.d.ts +1 -1
  11. package/dist/common/AppForm/AppFormInfo.d.ts +1 -1
  12. package/dist/common/AppForm/FormColorField.d.ts +1 -1
  13. package/dist/common/AppKeyboard/AppKeyboard.d.ts +1 -1
  14. package/dist/common/AppLoading/AppLoading.d.ts +1 -1
  15. package/dist/common/AppModal/AppModal.d.ts +1 -1
  16. package/dist/common/AppModal/AppModalConfirm.d.ts +1 -1
  17. package/dist/common/AppModal/AppModalRemove.d.ts +1 -1
  18. package/dist/common/AppPagination/AppPagination.d.ts +1 -1
  19. package/dist/common/AppPicture/AppPicture.d.ts +1 -1
  20. package/dist/common/AppPlaceholder/AppPlaceholder.d.ts +1 -1
  21. package/dist/common/AppReplaceAll/AppReplaceAll.d.ts +1 -1
  22. package/dist/common/AppSwitchGroup/AppSwitchGroup.d.ts +1 -1
  23. package/dist/common/AppTable/AppTable.d.ts +1 -1
  24. package/dist/common/AppTable/AppTableList.d.ts +1 -1
  25. package/dist/common/AppTable/AppTableUtils.d.ts +4 -4
  26. package/dist/common/AppTextArea/AppTextArea.d.ts +11 -0
  27. package/dist/common/AppTextArea/AppTextArea.js +29 -0
  28. package/dist/common/AppTextArea/index.d.ts +1 -0
  29. package/dist/common/AppTextArea/index.js +1 -0
  30. package/dist/common/AppTextArea/style.scss +47 -0
  31. package/dist/common/AppToast/AppToast.d.ts +1 -1
  32. package/dist/common/index.d.ts +1 -0
  33. package/dist/common/index.js +1 -0
  34. package/dist/configs/CommonContext.d.ts +1 -1
  35. package/dist/configs/services/ProfileService.d.ts +1 -1
  36. package/dist/configs/types/Participant.d.ts +1 -0
  37. package/dist/features/Comments/CommentAdd.d.ts +1 -1
  38. package/dist/features/Comments/CommentInfo.d.ts +1 -1
  39. package/dist/features/Comments/CommentService.d.ts +8 -8
  40. package/dist/features/Comments/Comments.d.ts +1 -1
  41. package/dist/features/Comments/HeaderNotifications/HeaderNotifications.d.ts +1 -1
  42. package/dist/features/CytoscapeMenu/CytoscapeMenuCanvas.d.ts +1 -1
  43. package/dist/features/Parameters/Parameters.d.ts +2 -1
  44. package/dist/features/SentenceView/SentenceEditionTiers.d.ts +1 -1
  45. package/dist/features/SentenceView/SentenceMorphemeTags.d.ts +1 -1
  46. package/dist/features/SentenceView/SentenceMorphemeTiers.d.ts +1 -1
  47. package/dist/features/SentenceView/SentenceTags.d.ts +1 -1
  48. package/dist/features/SentenceView/SentenceValues.d.ts +1 -1
  49. package/dist/features/SentenceView/SentenceView.d.ts +1 -1
  50. package/dist/features/SentenceView/SentenceWordTiers.d.ts +1 -1
  51. package/dist/features/TreeView/TreeView.d.ts +1 -1
  52. package/dist/features/TreeView/TreeViewSearch/TreeViewSearch.d.ts +1 -1
  53. package/dist/features/TreeView/TreeViewSearch/TreeViewSearchField.d.ts +1 -1
  54. package/dist/shell/Base/ErrorBoundary.d.ts +1 -1
  55. package/dist/shell/Base/ErrorFound.d.ts +1 -1
  56. package/dist/shell/Base/NotFound.d.ts +1 -1
  57. package/dist/shell/Base/Unauthorized.d.ts +1 -1
  58. package/dist/shell/Header/Header.d.ts +1 -1
  59. package/dist/shell/Header/HeaderApps/HeaderApps.d.ts +1 -1
  60. package/dist/shell/Header/HeaderButtons/HeaderButtons.d.ts +1 -1
  61. package/dist/shell/Header/HeaderCorpora/HeaderCorpora.d.ts +1 -1
  62. package/dist/shell/Header/HeaderCorpora/HeaderCorpus.d.ts +1 -1
  63. package/dist/shell/Header/HeaderUser/HeaderUser.d.ts +1 -1
  64. package/dist/shell/Header/HelpButton/HelpButton.d.ts +1 -1
  65. package/dist/shell/Header/HelpButton/HelpModal.d.ts +1 -1
  66. package/dist/shell/Header/types/CorpusService.d.ts +1 -1
  67. package/dist/shell/LanguageSelector/LanguageSelector.d.ts +1 -1
  68. package/dist/shell/VirtualKeyboard/VirtualKeyboard.d.ts +1 -1
  69. package/package.json +2 -2
@@ -9,5 +9,5 @@ type Props = {
9
9
  className?: string;
10
10
  onClick?: () => void;
11
11
  };
12
- export default function AppCard({ title, children, extraHeaderActions, footer, options, className, onClick, }: Props): import("react/jsx-runtime").JSX.Element;
12
+ export default function AppCard({ title, children, extraHeaderActions, footer, options, className, onClick, }: Props): import("react").JSX.Element;
13
13
  export {};
@@ -3,5 +3,5 @@ type Props = {
3
3
  text: string;
4
4
  size?: ButtonDSSizes;
5
5
  };
6
- export default function AppClipboard({ text, size }: Props): import("react/jsx-runtime").JSX.Element;
6
+ export default function AppClipboard({ text, size }: Props): import("react").JSX.Element;
7
7
  export {};
@@ -6,5 +6,5 @@ type AppColorpickerProps = {
6
6
  field: FormField;
7
7
  handleSave: (value: FieldValue, field: FormField) => void;
8
8
  };
9
- export default function AppColorpicker({ field, item, handleSave, }: AppColorpickerProps): import("react/jsx-runtime").JSX.Element;
9
+ export default function AppColorpicker({ field, item, handleSave, }: AppColorpickerProps): import("react").JSX.Element;
10
10
  export {};
@@ -1,3 +1,3 @@
1
1
  import { ConsentTexts } from '../../configs/localization/ConsentTexts';
2
2
  export type ConsentSectionKey = keyof typeof ConsentTexts.en;
3
- export default function AppConsent(): import("react/jsx-runtime").JSX.Element;
3
+ export default function AppConsent(): import("react").JSX.Element;
@@ -7,5 +7,5 @@ export type Props = {
7
7
  content: string;
8
8
  titlePosition?: TitlePosition;
9
9
  };
10
- export default function AppCopyText({ className, title, content, titlePosition, }: Props): import("react/jsx-runtime").JSX.Element;
10
+ export default function AppCopyText({ className, title, content, titlePosition, }: Props): import("react").JSX.Element;
11
11
  export {};
@@ -15,5 +15,5 @@ type Props = {
15
15
  };
16
16
  disableConfirm?: boolean;
17
17
  };
18
- export default function AppDropzone({ folder, onClose, onSuccess, onError, accept, messages, onDrop, keepName, title, alternativeButton, disableConfirm, }: Props): import("react/jsx-runtime").JSX.Element;
18
+ export default function AppDropzone({ folder, onClose, onSuccess, onError, accept, messages, onDrop, keepName, title, alternativeButton, disableConfirm, }: Props): import("react").JSX.Element;
19
19
  export {};
@@ -1,5 +1,5 @@
1
1
  import { UploadedFile } from './UploadedFile';
2
- declare function execute(data: FormData): Promise<import("axios").AxiosResponse<UploadedFile, any, {}>>;
2
+ declare function execute(data: FormData): Promise<import("axios").AxiosResponse<UploadedFile, any, {}, any>>;
3
3
  declare const UploadService: {
4
4
  execute: typeof execute;
5
5
  };
@@ -11,5 +11,5 @@ type AppDropzoneLocalProps = {
11
11
  action: () => void;
12
12
  };
13
13
  };
14
- export default function AppDropzoneLocal({ onClose, onSuccess, onError, accept, onDrop, title, alternativeButton, }: AppDropzoneLocalProps): import("react/jsx-runtime").JSX.Element;
14
+ export default function AppDropzoneLocal({ onClose, onSuccess, onError, accept, onDrop, title, alternativeButton, }: AppDropzoneLocalProps): import("react").JSX.Element;
15
15
  export {};
@@ -14,5 +14,5 @@ type Props = {
14
14
  className?: string;
15
15
  reference?: string;
16
16
  };
17
- export default function AppEditable({ translation, fields, item, save, group, className, reference, }: Props): import("react/jsx-runtime").JSX.Element;
17
+ export default function AppEditable({ translation, fields, item, save, group, className, reference, }: Props): import("react").JSX.Element;
18
18
  export {};
@@ -12,5 +12,5 @@ type Props<TFieldValues extends FieldValues = FieldValues, TContext = any, TTran
12
12
  runtimeLoadOptions?: Record<string, (query: string) => Promise<SelectItem[]>>;
13
13
  twoColumns?: boolean;
14
14
  };
15
- export default function AppForm<TFieldValues extends FieldValues = FieldValues, TContext = any, TTransformedValues = TFieldValues>({ fields, form, prefix, onChangeFunctions, onBlurFunctions, runtimeOptions, runtimeLoadOptions, twoColumns, }: Props<TFieldValues, TContext, TTransformedValues>): import("react/jsx-runtime").JSX.Element;
15
+ export default function AppForm<TFieldValues extends FieldValues = FieldValues, TContext = any, TTransformedValues = TFieldValues>({ fields, form, prefix, onChangeFunctions, onBlurFunctions, runtimeOptions, runtimeLoadOptions, twoColumns, }: Props<TFieldValues, TContext, TTransformedValues>): import("react").JSX.Element;
16
16
  export {};
@@ -5,5 +5,5 @@ type Props = {
5
5
  data: Record<string, any>;
6
6
  prefix?: string;
7
7
  };
8
- export default function AppFormInfo({ fields, data }: Props): import("react/jsx-runtime").JSX.Element;
8
+ export default function AppFormInfo({ fields, data }: Props): import("react").JSX.Element;
9
9
  export {};
@@ -7,5 +7,5 @@ type Props<TFieldValues extends FieldValues = FieldValues, TContext = any, TTran
7
7
  disabled?: boolean;
8
8
  tooltipText?: string;
9
9
  };
10
- export default function FormColorField<TFieldValues extends FieldValues = FieldValues, TContext = any, TTransformedValues = TFieldValues>({ attr, label, form, disabled, tooltipText, }: Props<TFieldValues, TContext, TTransformedValues>): import("react/jsx-runtime").JSX.Element;
10
+ export default function FormColorField<TFieldValues extends FieldValues = FieldValues, TContext = any, TTransformedValues = TFieldValues>({ attr, label, form, disabled, tooltipText, }: Props<TFieldValues, TContext, TTransformedValues>): import("react").JSX.Element;
11
11
  export {};
@@ -8,5 +8,5 @@ type Props = {
8
8
  title?: string;
9
9
  keyboardLayout?: string;
10
10
  };
11
- export default function AppKeyboard({ mode, buttonMode, size, iconSize, tooltipPlacement, title, keyboardLayout, }: Props): import("react/jsx-runtime").JSX.Element;
11
+ export default function AppKeyboard({ mode, buttonMode, size, iconSize, tooltipPlacement, title, keyboardLayout, }: Props): import("react").JSX.Element;
12
12
  export {};
@@ -3,5 +3,5 @@ type Props = {
3
3
  className?: string;
4
4
  pageLoading?: boolean;
5
5
  };
6
- export default function AppLoading({ className, pageLoading, }: Props): import("react/jsx-runtime").JSX.Element;
6
+ export default function AppLoading({ className, pageLoading, }: Props): import("react").JSX.Element;
7
7
  export {};
@@ -23,5 +23,5 @@ type Props = {
23
23
  hideBackdrop?: boolean;
24
24
  disableBackdropClose?: boolean;
25
25
  };
26
- export default function AppModal({ children, title, subtitle, className, close, confirm, disableConfirm, hideFooter, disableClose, disableEscapeClose, disableCancel, confirmLabel, closeLabel, cancel, onEntered, alternativeButton, hideBackdrop, alternativeOptions, disableBackdropClose, }: Props): import("react/jsx-runtime").JSX.Element;
26
+ export default function AppModal({ children, title, subtitle, className, close, confirm, disableConfirm, hideFooter, disableClose, disableEscapeClose, disableCancel, confirmLabel, closeLabel, cancel, onEntered, alternativeButton, hideBackdrop, alternativeOptions, disableBackdropClose, }: Props): import("react").JSX.Element;
27
27
  export {};
@@ -11,5 +11,5 @@ type Props = {
11
11
  disableBackdropClose?: boolean;
12
12
  confirmDisabled?: boolean;
13
13
  };
14
- export default function AppModalConfirm({ title, subtitle, onClose, onConfirm, closeLabel, confirmLabel, confirmDisabled, disableClose, disableEscapeClose, disableBackdropClose, }: Props): import("react/jsx-runtime").JSX.Element;
14
+ export default function AppModalConfirm({ title, subtitle, onClose, onConfirm, closeLabel, confirmLabel, confirmDisabled, disableClose, disableEscapeClose, disableBackdropClose, }: Props): import("react").JSX.Element;
15
15
  export {};
@@ -7,7 +7,7 @@ type Props = {
7
7
  disableClose?: boolean;
8
8
  disableEscapeClose?: boolean;
9
9
  };
10
- export default function AppModalRemove({ title, subtitle, onClose, onConfirm, disableClose, disableEscapeClose, }: Props): import("react/jsx-runtime").JSX.Element;
10
+ export default function AppModalRemove({ title, subtitle, onClose, onConfirm, disableClose, disableEscapeClose, }: Props): import("react").JSX.Element;
11
11
  export declare const modalRemoveStyle: {
12
12
  position: string;
13
13
  top: string;
@@ -8,5 +8,5 @@ type Props<TData> = {
8
8
  numItens?: number[];
9
9
  size?: 'medium' | 'small';
10
10
  };
11
- export default function AppPagination<TData>({ totalElements, pagination, setPagination, hideItensPage, numItens, size, }: Props<TData>): import("react/jsx-runtime").JSX.Element;
11
+ export default function AppPagination<TData>({ totalElements, pagination, setPagination, hideItensPage, numItens, size, }: Props<TData>): import("react").JSX.Element;
12
12
  export {};
@@ -6,5 +6,5 @@ type PictureProps = {
6
6
  person?: boolean;
7
7
  onClick?: () => void;
8
8
  };
9
- export default function AppPicture({ src, title, className, person, onClick, }: PictureProps): import("react/jsx-runtime").JSX.Element;
9
+ export default function AppPicture({ src, title, className, person, onClick, }: PictureProps): import("react").JSX.Element;
10
10
  export {};
@@ -8,5 +8,5 @@ type Props = {
8
8
  onClick?: () => void;
9
9
  className?: string;
10
10
  };
11
- export default function AppPlaceholder({ text, desc, children, icon, useMarginTop, onClick, className, }: Props): import("react/jsx-runtime").JSX.Element;
11
+ export default function AppPlaceholder({ text, desc, children, icon, useMarginTop, onClick, className, }: Props): import("react").JSX.Element;
12
12
  export {};
@@ -1,2 +1,2 @@
1
1
  import './style.scss';
2
- export default function AppReplaceAll(): import("react/jsx-runtime").JSX.Element;
2
+ export default function AppReplaceAll(): import("react").JSX.Element;
@@ -8,5 +8,5 @@ type Props<TFieldValues extends FieldValues = FieldValues, TContext = any, TTran
8
8
  hasRole?: (role: string) => boolean;
9
9
  className?: string;
10
10
  };
11
- export default function AppSwitchGroup<TFieldValues extends FieldValues = FieldValues, TContext = any, TTransformedValues = TFieldValues>({ fields, form, onToggle, hasRole, className, }: Props<TFieldValues, TContext, TTransformedValues>): import("react/jsx-runtime").JSX.Element;
11
+ export default function AppSwitchGroup<TFieldValues extends FieldValues = FieldValues, TContext = any, TTransformedValues = TFieldValues>({ fields, form, onToggle, hasRole, className, }: Props<TFieldValues, TContext, TTransformedValues>): import("react").JSX.Element;
12
12
  export {};
@@ -15,5 +15,5 @@ type Props = {
15
15
  hiddenColumns?: string[];
16
16
  numItens?: number[];
17
17
  };
18
- export default function AppTable({ columns, data, pagination, setPagination, sorting, setSorting, className, onClickRow, onMouseEnter, onMouseLeave, hiddenColumns, numItens, }: Props): import("react/jsx-runtime").JSX.Element;
18
+ export default function AppTable({ columns, data, pagination, setPagination, sorting, setSorting, className, onClickRow, onMouseEnter, onMouseLeave, hiddenColumns, numItens, }: Props): import("react").JSX.Element;
19
19
  export {};
@@ -10,5 +10,5 @@ type Props = {
10
10
  hiddenColumns?: string[];
11
11
  filter?: [string, string];
12
12
  };
13
- export default function AppTableList({ columns, data, className, onClickRow, onMouseEnter, onMouseLeave, hiddenColumns, filter, }: Props): import("react/jsx-runtime").JSX.Element;
13
+ export default function AppTableList({ columns, data, className, onClickRow, onMouseEnter, onMouseLeave, hiddenColumns, filter, }: Props): import("react").JSX.Element;
14
14
  export {};
@@ -1,8 +1,8 @@
1
1
  declare const AppTableUtils: {
2
2
  limitCharacters: (attr: string, props: any, max: number) => any;
3
- addCenteredHeader: (header: string) => import("react/jsx-runtime").JSX.Element;
4
- addCenteredCell: (attr: string, props: any) => import("react/jsx-runtime").JSX.Element;
5
- addEnumBadge: (attr: string, props: any, append: string, t: any) => import("react/jsx-runtime").JSX.Element;
6
- addSimpleCell: (value: any) => import("react/jsx-runtime").JSX.Element;
3
+ addCenteredHeader: (header: string) => import("react").JSX.Element;
4
+ addCenteredCell: (attr: string, props: any) => import("react").JSX.Element;
5
+ addEnumBadge: (attr: string, props: any, append: string, t: any) => import("react").JSX.Element;
6
+ addSimpleCell: (value: any) => import("react").JSX.Element;
7
7
  };
8
8
  export default AppTableUtils;
@@ -0,0 +1,11 @@
1
+ import { type TextareaHTMLAttributes } from 'react';
2
+ import './style.scss';
3
+ export type AppTextAreaProps = TextareaHTMLAttributes<HTMLTextAreaElement> & {
4
+ showLineNumbers?: boolean;
5
+ containerClassName?: string;
6
+ };
7
+ declare const AppTextArea: import("react").ForwardRefExoticComponent<TextareaHTMLAttributes<HTMLTextAreaElement> & {
8
+ showLineNumbers?: boolean;
9
+ containerClassName?: string;
10
+ } & import("react").RefAttributes<HTMLTextAreaElement>>;
11
+ export default AppTextArea;
@@ -0,0 +1,29 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import cx from 'classnames';
3
+ import { forwardRef, useCallback, useRef, } from 'react';
4
+ import './style.scss';
5
+ const AppTextArea = forwardRef(function AppTextArea({ showLineNumbers = false, containerClassName, className, value, defaultValue, onScroll, ...rest }, ref) {
6
+ const gutterRef = useRef(null);
7
+ const setTextareaRef = useCallback((node) => {
8
+ if (typeof ref === 'function') {
9
+ ref(node);
10
+ }
11
+ else if (ref) {
12
+ ref.current = node;
13
+ }
14
+ }, [ref]);
15
+ const textValue = value !== undefined
16
+ ? String(value)
17
+ : defaultValue !== undefined
18
+ ? String(defaultValue)
19
+ : '';
20
+ const lines = Math.max(textValue.split('\n').length, 1);
21
+ const handleScroll = (e) => {
22
+ if (gutterRef.current) {
23
+ gutterRef.current.scrollTop = e.currentTarget.scrollTop;
24
+ }
25
+ onScroll?.(e);
26
+ };
27
+ return (_jsxs("div", { className: cx('app-text-area', { 'app-text-area--numbered': showLineNumbers }, containerClassName), children: [showLineNumbers && (_jsx("div", { className: "app-text-area__gutter", "aria-hidden": true, ref: gutterRef, children: Array.from({ length: lines }, (_, i) => (_jsx("div", { children: i + 1 }, i))) })), _jsx("textarea", { ref: setTextareaRef, className: cx('app-text-area__input', className), value: value, defaultValue: defaultValue, onScroll: handleScroll, ...rest })] }));
28
+ });
29
+ export default AppTextArea;
@@ -0,0 +1 @@
1
+ export { default, type AppTextAreaProps } from './AppTextArea';
@@ -0,0 +1 @@
1
+ export { default } from './AppTextArea';
@@ -0,0 +1,47 @@
1
+ .app-text-area {
2
+ display: flex;
3
+ width: 100%;
4
+ height: 100%;
5
+ box-sizing: border-box;
6
+
7
+ &__input {
8
+ box-sizing: border-box;
9
+ display: block;
10
+ width: 100%;
11
+ height: 100%;
12
+ margin: 0;
13
+ padding: var(--spacing-200);
14
+ border: 0;
15
+ outline: 0;
16
+ resize: none;
17
+ background: transparent;
18
+ @include body-medium-1;
19
+ font-family: var(--font-family);
20
+ }
21
+
22
+ &--numbered {
23
+ font-family: monospace;
24
+
25
+ .app-text-area__gutter,
26
+ .app-text-area__input {
27
+ @include body-medium-1;
28
+ font-family: monospace;
29
+ line-height: 150%;
30
+ }
31
+
32
+ .app-text-area__gutter {
33
+ flex-shrink: 0;
34
+ overflow: hidden;
35
+ padding: var(--spacing-200);
36
+ background-color: var(--layer-hover-2);
37
+ text-align: right;
38
+ user-select: none;
39
+ color: var(--text-secondary);
40
+ }
41
+
42
+ .app-text-area__input {
43
+ flex: 1;
44
+ min-width: 0;
45
+ }
46
+ }
47
+ }
@@ -1,2 +1,2 @@
1
1
  import 'react-toastify/dist/ReactToastify.css';
2
- export default function AppToast(): import("react/jsx-runtime").JSX.Element;
2
+ export default function AppToast(): import("react").JSX.Element;
@@ -30,6 +30,7 @@ export { EMPTY_GRID_PAGE, EMPTY_PAGE, isPageEmpty, } from './AppTable/types/AppP
30
30
  export type { AppPage } from './AppTable/types/AppPage';
31
31
  export { convertPageable, EMPTY_GRID_PAGEABLE, EMPTY_PAGEABLE, } from './AppTable/types/AppPageable';
32
32
  export type { AppPageable } from './AppTable/types/AppPageable';
33
+ export { default as AppTextArea, type AppTextAreaProps, } from './AppTextArea';
33
34
  export { default as AppToast } from './AppToast';
34
35
  export { default as AppCopyText } from './AppCopyText';
35
36
  export { default as AppConsent } from './AppConsent';
@@ -23,6 +23,7 @@ export { default as AppTable } from './AppTable';
23
23
  export { default as AppTableList } from './AppTable/AppTableList';
24
24
  export { EMPTY_GRID_PAGE, EMPTY_PAGE, isPageEmpty, } from './AppTable/types/AppPage';
25
25
  export { convertPageable, EMPTY_GRID_PAGEABLE, EMPTY_PAGEABLE, } from './AppTable/types/AppPageable';
26
+ export { default as AppTextArea, } from './AppTextArea';
26
27
  export { default as AppToast } from './AppToast';
27
28
  export { default as AppCopyText } from './AppCopyText';
28
29
  export { default as AppConsent } from './AppConsent';
@@ -6,5 +6,5 @@ type ContextType = {
6
6
  declare const CommonContext: import("react").Context<ContextType>;
7
7
  export declare function CommonProvider({ children }: {
8
8
  children: React.ReactNode;
9
- }): import("react/jsx-runtime").JSX.Element;
9
+ }): import("react").JSX.Element;
10
10
  export default CommonContext;
@@ -1,4 +1,4 @@
1
- declare function updateLiveTour(liveTour: boolean): Promise<import("axios").AxiosResponse<string, any, {}>>;
1
+ declare function updateLiveTour(liveTour: boolean): Promise<import("axios").AxiosResponse<string, any, {}, any>>;
2
2
  declare const ProfileService: {
3
3
  updateLiveTour: typeof updateLiveTour;
4
4
  };
@@ -5,6 +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
11
  export default Participant;
@@ -12,5 +12,5 @@ type Props = {
12
12
  onClose: () => void;
13
13
  onChange: (r: Comment) => void;
14
14
  };
15
- export default function CommentAdd({ uid, mode, users, references, keywords, comment, reply, onClose, onChange, }: Props): import("react/jsx-runtime").JSX.Element;
15
+ export default function CommentAdd({ uid, mode, users, references, keywords, comment, reply, onClose, onChange, }: Props): import("react").JSX.Element;
16
16
  export {};
@@ -7,5 +7,5 @@ type Props = {
7
7
  onEdit: () => void;
8
8
  onReply: () => void;
9
9
  };
10
- export default function CommentInfo({ comment, onRemove, onUpdate, onEdit, onReply, }: Props): import("react/jsx-runtime").JSX.Element;
10
+ export default function CommentInfo({ comment, onRemove, onUpdate, onEdit, onReply, }: Props): import("react").JSX.Element;
11
11
  export {};
@@ -1,13 +1,13 @@
1
1
  import { User } from '../../configs/types/User';
2
2
  import { Comment, CommentRequest } from './types/Comment';
3
- declare function findNotifications(uid: string, mode: string): Promise<import("axios").AxiosResponse<Comment[], any, {}>>;
4
- declare function findReadNotifications(uid: string, mode: string): Promise<import("axios").AxiosResponse<Comment[], any, {}>>;
5
- declare function markRead(id: string): Promise<import("axios").AxiosResponse<Comment, any, {}>>;
6
- declare function update(id: string, comment: CommentRequest): Promise<import("axios").AxiosResponse<Comment, any, {}>>;
7
- declare function remove(id: string): Promise<import("axios").AxiosResponse<Comment, any, {}>>;
8
- declare function add(uid: string, mode: string, comment: CommentRequest, references: Record<string, string | number | boolean>, keywords?: Record<string, string | number | boolean>): Promise<import("axios").AxiosResponse<Comment, any, {}>>;
9
- declare function find(uid: string, mode: string, request: Record<string, string | number | boolean>): Promise<import("axios").AxiosResponse<Comment[], any, {}>>;
10
- declare function findAvailableUsers(uid: string, mode: string): Promise<import("axios").AxiosResponse<User[], any, {}>>;
3
+ declare function findNotifications(uid: string, mode: string): Promise<import("axios").AxiosResponse<Comment[], any, {}, any>>;
4
+ declare function findReadNotifications(uid: string, mode: string): Promise<import("axios").AxiosResponse<Comment[], any, {}, any>>;
5
+ declare function markRead(id: string): Promise<import("axios").AxiosResponse<Comment, any, {}, any>>;
6
+ declare function update(id: string, comment: CommentRequest): Promise<import("axios").AxiosResponse<Comment, any, {}, any>>;
7
+ declare function remove(id: string): Promise<import("axios").AxiosResponse<Comment, any, {}, any>>;
8
+ declare function add(uid: string, mode: string, comment: CommentRequest, references: Record<string, string | number | boolean>, keywords?: Record<string, string | number | boolean>): Promise<import("axios").AxiosResponse<Comment, any, {}, any>>;
9
+ declare function find(uid: string, mode: string, request: Record<string, string | number | boolean>): Promise<import("axios").AxiosResponse<Comment[], any, {}, any>>;
10
+ declare function findAvailableUsers(uid: string, mode: string): Promise<import("axios").AxiosResponse<User[], any, {}, any>>;
11
11
  declare const CommentService: {
12
12
  add: typeof add;
13
13
  remove: typeof remove;
@@ -8,5 +8,5 @@ type Props = {
8
8
  mode: 'lexicon' | 'corpus' | 'parser';
9
9
  onChange?: (a: Comment[]) => void;
10
10
  };
11
- export default function Comments({ uid, keywords, references, mode, onClose, onChange, }: Props): import("react/jsx-runtime").JSX.Element;
11
+ export default function Comments({ uid, keywords, references, mode, onClose, onChange, }: Props): import("react").JSX.Element;
12
12
  export {};
@@ -4,5 +4,5 @@ type Props = {
4
4
  mode: 'lexicon' | 'corpus' | 'parser';
5
5
  mobile?: boolean;
6
6
  };
7
- export default function HeaderNotifications({ uid, mode, mobile }: Props): import("react/jsx-runtime").JSX.Element | null;
7
+ export default function HeaderNotifications({ uid, mode, mobile }: Props): import("react").JSX.Element | null;
8
8
  export {};
@@ -15,4 +15,4 @@ export interface CytoscapeMenuCanvasProps {
15
15
  /** Container height */
16
16
  height?: string | number;
17
17
  }
18
- export default function CytoscapeMenuCanvas({ id, elements, menuItems, onReady, contextMenuOptions, height, }: CytoscapeMenuCanvasProps): import("react/jsx-runtime").JSX.Element;
18
+ export default function CytoscapeMenuCanvas({ id, elements, menuItems, onReady, contextMenuOptions, height, }: CytoscapeMenuCanvasProps): import("react").JSX.Element;
@@ -1,7 +1,8 @@
1
+ import React from 'react';
1
2
  import './style.scss';
2
3
  type Props = {
3
4
  parameters: Record<string, unknown>;
4
5
  onChange: (field: string, value: boolean) => void;
5
6
  };
6
- export default function Parameters({ parameters, onChange }: Props): import("react/jsx-runtime").JSX.Element;
7
+ export default function Parameters({ parameters, onChange }: Props): React.JSX.Element;
7
8
  export {};
@@ -6,5 +6,5 @@ type Props = {
6
6
  displayOriginal?: boolean;
7
7
  corpus?: Corpus | null;
8
8
  };
9
- export default function SentenceEditionTiers({ tokens, displayOriginal, corpus, }: Props): import("react/jsx-runtime").JSX.Element;
9
+ export default function SentenceEditionTiers({ tokens, displayOriginal, corpus, }: Props): import("react").JSX.Element;
10
10
  export {};
@@ -2,5 +2,5 @@ import { Token } from '../../configs/types/Struct';
2
2
  type Props = {
3
3
  tokens: Token[];
4
4
  };
5
- export default function SentenceMorphemeTags({ tokens }: Props): import("react/jsx-runtime").JSX.Element;
5
+ export default function SentenceMorphemeTags({ tokens }: Props): import("react").JSX.Element;
6
6
  export {};
@@ -5,5 +5,5 @@ type Props = {
5
5
  struct: Struct;
6
6
  morphemeTiers: Parameter[];
7
7
  };
8
- export default function SentenceMorphemeTiers({ struct, morphemeTiers, }: Props): import("react/jsx-runtime").JSX.Element;
8
+ export default function SentenceMorphemeTiers({ struct, morphemeTiers, }: Props): import("react").JSX.Element;
9
9
  export {};
@@ -2,5 +2,5 @@ import { Token } from '../../configs/types/Struct';
2
2
  type Props = {
3
3
  tokens: Token[];
4
4
  };
5
- export default function SentenceTags({ tokens }: Props): import("react/jsx-runtime").JSX.Element;
5
+ export default function SentenceTags({ tokens }: Props): import("react").JSX.Element;
6
6
  export {};
@@ -2,5 +2,5 @@ import { Token } from '../../configs/types/Struct';
2
2
  type Props = {
3
3
  tokens: Token[];
4
4
  };
5
- export default function SentenceView({ tokens }: Props): import("react/jsx-runtime").JSX.Element;
5
+ export default function SentenceView({ tokens }: Props): import("react").JSX.Element;
6
6
  export {};
@@ -9,5 +9,5 @@ type Props = {
9
9
  useEditionTiers?: boolean;
10
10
  displayOriginal?: boolean;
11
11
  };
12
- export default function SentenceView({ wordTiers, morphemeTiers, struct, useMorphemes, useEditionTiers, displayOriginal, }: Props): import("react/jsx-runtime").JSX.Element;
12
+ export default function SentenceView({ wordTiers, morphemeTiers, struct, useMorphemes, useEditionTiers, displayOriginal, }: Props): import("react").JSX.Element;
13
13
  export {};
@@ -4,5 +4,5 @@ type Props = {
4
4
  tokens: Token[];
5
5
  wordTiers: Parameter[];
6
6
  };
7
- export default function SentenceWordTiers({ tokens, wordTiers }: Props): import("react/jsx-runtime").JSX.Element;
7
+ export default function SentenceWordTiers({ tokens, wordTiers }: Props): import("react").JSX.Element;
8
8
  export {};
@@ -14,5 +14,5 @@ type Props = {
14
14
  onExpand?: () => void;
15
15
  onReadyCustom?: (thisCy: Core) => void;
16
16
  };
17
- export default function TreeView({ struct, expression, selector, translations, wheelSensitivity, renderWithInfo, placeholder, cyRef, onClickExpression, onExpand, onReadyCustom, }: Props): import("react/jsx-runtime").JSX.Element;
17
+ export default function TreeView({ struct, expression, selector, translations, wheelSensitivity, renderWithInfo, placeholder, cyRef, onClickExpression, onExpand, onReadyCustom, }: Props): import("react").JSX.Element;
18
18
  export {};
@@ -14,5 +14,5 @@ type Props = {
14
14
  searchCriteria: SearchCriteria;
15
15
  setSearchCriteria: React.Dispatch<React.SetStateAction<SearchCriteria>>;
16
16
  };
17
- export default function TreeViewSearch({ struct, cy, onClose, searchCriteria, setSearchCriteria, }: Props): import("react/jsx-runtime").JSX.Element;
17
+ export default function TreeViewSearch({ struct, cy, onClose, searchCriteria, setSearchCriteria, }: Props): import("react").JSX.Element;
18
18
  export {};
@@ -7,5 +7,5 @@ type Props = {
7
7
  onAddBadge: () => void;
8
8
  onRemoveBadge: (index: number) => void;
9
9
  };
10
- export default function TreeViewSearchField({ label, value, badges, onValueChange, onAddBadge, onRemoveBadge, }: Props): import("react/jsx-runtime").JSX.Element;
10
+ export default function TreeViewSearchField({ label, value, badges, onValueChange, onAddBadge, onRemoveBadge, }: Props): import("react").JSX.Element;
11
11
  export {};
@@ -3,5 +3,5 @@ import './style.scss';
3
3
  type Props = {
4
4
  children: ReactNode;
5
5
  };
6
- export default function ErrorBoundary({ children }: Props): import("react/jsx-runtime").JSX.Element;
6
+ export default function ErrorBoundary({ children }: Props): import("react").JSX.Element;
7
7
  export {};
@@ -1,2 +1,2 @@
1
1
  import './style.scss';
2
- export default function ErrorFound(): import("react/jsx-runtime").JSX.Element;
2
+ export default function ErrorFound(): import("react").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import './style.scss';
2
- export default function NotFound(): import("react/jsx-runtime").JSX.Element;
2
+ export default function NotFound(): import("react").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import './style.scss';
2
- export default function Unauthorized(): import("react/jsx-runtime").JSX.Element;
2
+ export default function Unauthorized(): import("react").JSX.Element;
@@ -23,5 +23,5 @@ type Props = {
23
23
  hideLanguageSelector?: boolean;
24
24
  hideHelpButton?: boolean;
25
25
  };
26
- export default function Header({ tool, redirect, autoload, hideKeyboard, customHeader, notifications, keyboardLayout, navigateHome, navigateCorpora, navigateLogout, navigateNotLogged, helpActions, useOpenCorpora, hideCorpora, hideNotifications, hideLanguageSelector, hideHelpButton, }: Props): import("react/jsx-runtime").JSX.Element;
26
+ export default function Header({ tool, redirect, autoload, hideKeyboard, customHeader, notifications, keyboardLayout, navigateHome, navigateCorpora, navigateLogout, navigateNotLogged, helpActions, useOpenCorpora, hideCorpora, hideNotifications, hideLanguageSelector, hideHelpButton, }: Props): import("react").JSX.Element;
27
27
  export {};
@@ -11,5 +11,5 @@ type Props = {
11
11
  keyboardLayout?: string;
12
12
  helpActions?: HelpAction[];
13
13
  };
14
- export default function HeaderApps({ navigateLogout, navigateNotLogged, hideKeyboard, notifications, keyboardLayout, helpActions, }: Props): import("react/jsx-runtime").JSX.Element;
14
+ export default function HeaderApps({ navigateLogout, navigateNotLogged, hideKeyboard, notifications, keyboardLayout, helpActions, }: Props): import("react").JSX.Element;
15
15
  export {};
@@ -15,5 +15,5 @@ type Props = {
15
15
  hideLanguageSelector?: boolean;
16
16
  hideHelpButton?: boolean;
17
17
  };
18
- export default function HeaderButtons({ hideKeyboard, notifications, keyboardLayout, helpActions, mobile, hideNotifications, hideLanguageSelector, hideHelpButton, }: Props): import("react/jsx-runtime").JSX.Element;
18
+ export default function HeaderButtons({ hideKeyboard, notifications, keyboardLayout, helpActions, mobile, hideNotifications, hideLanguageSelector, hideHelpButton, }: Props): import("react").JSX.Element;
19
19
  export {};
@@ -5,5 +5,5 @@ type Props = {
5
5
  redirect?: string;
6
6
  useOpenCorpora: boolean;
7
7
  };
8
- export default function HeaderCorpora({ navigateCorpora, redirect, autoload, useOpenCorpora, }: Props): import("react/jsx-runtime").JSX.Element;
8
+ export default function HeaderCorpora({ navigateCorpora, redirect, autoload, useOpenCorpora, }: Props): import("react").JSX.Element;
9
9
  export {};
@@ -2,5 +2,5 @@ import "./style.scss";
2
2
  type Props = {
3
3
  onClick?: () => void;
4
4
  };
5
- export default function HeaderCorpus({ onClick }: Props): import("react/jsx-runtime").JSX.Element;
5
+ export default function HeaderCorpus({ onClick }: Props): import("react").JSX.Element;
6
6
  export {};
@@ -5,5 +5,5 @@ type Props = {
5
5
  navigateNotLogged: () => void;
6
6
  helpActions?: HelpAction[];
7
7
  };
8
- export default function HeaderUser({ navigateLogout, navigateNotLogged, helpActions, }: Props): import("react/jsx-runtime").JSX.Element;
8
+ export default function HeaderUser({ navigateLogout, navigateNotLogged, helpActions, }: Props): import("react").JSX.Element;
9
9
  export {};
@@ -13,5 +13,5 @@ type Props = {
13
13
  tooltipPlacement?: TooltipPlacements;
14
14
  title?: string;
15
15
  };
16
- export default function HelpButton({ helpActions, mobile, mode, size, iconSize, tooltipPlacement, title, }: Props): import("react/jsx-runtime").JSX.Element;
16
+ export default function HelpButton({ helpActions, mobile, mode, size, iconSize, tooltipPlacement, title, }: Props): import("react").JSX.Element;
17
17
  export {};
@@ -4,5 +4,5 @@ type Props = {
4
4
  onClose: () => void;
5
5
  helpActions?: HelpAction[];
6
6
  };
7
- export default function HelpModal({ onClose, helpActions }: Props): import("react/jsx-runtime").JSX.Element;
7
+ export default function HelpModal({ onClose, helpActions }: Props): import("react").JSX.Element;
8
8
  export {};
@@ -1,5 +1,5 @@
1
1
  import { Corpus } from '../../../configs/types/Corpus';
2
- declare function available(): Promise<import("axios").AxiosResponse<Corpus[], any, {}>>;
2
+ declare function available(): Promise<import("axios").AxiosResponse<Corpus[], any, {}, any>>;
3
3
  declare const CorpusService: {
4
4
  available: typeof available;
5
5
  };
@@ -21,4 +21,4 @@ export type AvailableLanguage = {
21
21
  name: string;
22
22
  };
23
23
  export declare const AvailableLanguages: AvailableLanguage[];
24
- export default function LanguageSelector({ className, color, size, showFullLanguageLabel, openToTop, mobile, renderMode, itemLabel, }: Props): import("react/jsx-runtime").JSX.Element | null;
24
+ export default function LanguageSelector({ className, color, size, showFullLanguageLabel, openToTop, mobile, renderMode, itemLabel, }: Props): import("react").JSX.Element | null;
@@ -5,5 +5,5 @@ type Props = {
5
5
  defaultLayout: string;
6
6
  closeLabel: string;
7
7
  };
8
- export default function VirtualKeyboard({ onClose, defaultLayout, closeLabel, }: Props): import("react/jsx-runtime").JSX.Element;
8
+ export default function VirtualKeyboard({ onClose, defaultLayout, closeLabel, }: Props): import("react").JSX.Element;
9
9
  export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tycho-components",
3
3
  "private": false,
4
- "version": "0.32.6",
4
+ "version": "0.33.1",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -82,7 +82,7 @@
82
82
  "react-i18next": "^13.0.2",
83
83
  "react-router-dom": "^6.14.2",
84
84
  "react-toastify": "^9.1.3",
85
- "tycho-storybook": "0.10.7",
85
+ "tycho-storybook": "0.10.8",
86
86
  "wavesurfer-react": "^2.2.2",
87
87
  "wavesurfer.js": "^6.6.3"
88
88
  },