@memori.ai/memori-react 4.1.0 → 4.2.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.
- package/CHANGELOG.md +28 -0
- package/dist/components/AgeVerificationModal/AgeVerificationModal.js +5 -1
- package/dist/components/AgeVerificationModal/AgeVerificationModal.js.map +1 -1
- package/dist/components/Header/Header.css +1 -1
- package/dist/components/Header/Header.d.ts +3 -0
- package/dist/components/Header/Header.js +3 -2
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/KnownFacts/KnownFacts.css +19 -0
- package/dist/components/KnownFacts/KnownFacts.d.ts +11 -0
- package/dist/components/KnownFacts/KnownFacts.js +157 -0
- package/dist/components/KnownFacts/KnownFacts.js.map +1 -0
- package/dist/components/MemoriWidget/MemoriWidget.js +8 -3
- package/dist/components/MemoriWidget/MemoriWidget.js.map +1 -1
- package/dist/components/SettingsDrawer/SettingsDrawer.js +1 -1
- package/dist/components/SettingsDrawer/SettingsDrawer.js.map +1 -1
- package/dist/components/StartPanel/StartPanel.css +2 -2
- package/dist/components/icons/ChevronLeft.d.ts +5 -0
- package/dist/components/icons/ChevronLeft.js +6 -0
- package/dist/components/icons/ChevronLeft.js.map +1 -0
- package/dist/components/icons/ChevronRight.d.ts +5 -0
- package/dist/components/icons/ChevronRight.js +6 -0
- package/dist/components/icons/ChevronRight.js.map +1 -0
- package/dist/components/ui/Button.css +29 -1
- package/dist/components/ui/Checkbox.css +17 -4
- package/dist/components/ui/Checkbox.d.ts +2 -1
- package/dist/components/ui/Checkbox.js +13 -3
- package/dist/components/ui/Checkbox.js.map +1 -1
- package/dist/components/ui/Drawer.css +22 -4
- package/dist/components/ui/Modal.d.ts +1 -1
- package/dist/components/ui/Select.js +1 -1
- package/dist/components/ui/Select.js.map +1 -1
- package/dist/components/ui/Table.css +113 -0
- package/dist/locales/en.json +20 -0
- package/dist/locales/it.json +20 -0
- package/dist/styles.css +8 -0
- package/esm/components/AgeVerificationModal/AgeVerificationModal.js +5 -1
- package/esm/components/AgeVerificationModal/AgeVerificationModal.js.map +1 -1
- package/esm/components/Header/Header.css +1 -1
- package/esm/components/Header/Header.d.ts +3 -0
- package/esm/components/Header/Header.js +3 -2
- package/esm/components/Header/Header.js.map +1 -1
- package/esm/components/KnownFacts/KnownFacts.css +19 -0
- package/esm/components/KnownFacts/KnownFacts.d.ts +11 -0
- package/esm/components/KnownFacts/KnownFacts.js +154 -0
- package/esm/components/KnownFacts/KnownFacts.js.map +1 -0
- package/esm/components/MemoriWidget/MemoriWidget.js +8 -3
- package/esm/components/MemoriWidget/MemoriWidget.js.map +1 -1
- package/esm/components/SettingsDrawer/SettingsDrawer.js +1 -1
- package/esm/components/SettingsDrawer/SettingsDrawer.js.map +1 -1
- package/esm/components/StartPanel/StartPanel.css +2 -2
- package/esm/components/icons/ChevronLeft.d.ts +5 -0
- package/esm/components/icons/ChevronLeft.js +4 -0
- package/esm/components/icons/ChevronLeft.js.map +1 -0
- package/esm/components/icons/ChevronRight.d.ts +5 -0
- package/esm/components/icons/ChevronRight.js +4 -0
- package/esm/components/icons/ChevronRight.js.map +1 -0
- package/esm/components/ui/Button.css +29 -1
- package/esm/components/ui/Checkbox.css +17 -4
- package/esm/components/ui/Checkbox.d.ts +2 -1
- package/esm/components/ui/Checkbox.js +13 -3
- package/esm/components/ui/Checkbox.js.map +1 -1
- package/esm/components/ui/Drawer.css +22 -4
- package/esm/components/ui/Modal.d.ts +1 -1
- package/esm/components/ui/Select.js +1 -1
- package/esm/components/ui/Select.js.map +1 -1
- package/esm/components/ui/Table.css +113 -0
- package/esm/locales/en.json +20 -0
- package/esm/locales/it.json +20 -0
- package/esm/styles.css +8 -0
- package/package.json +2 -2
- package/src/components/AgeVerificationModal/AgeVerificationModal.tsx +6 -0
- package/src/components/Header/Header.css +1 -1
- package/src/components/Header/Header.stories.tsx +37 -0
- package/src/components/Header/Header.test.tsx +54 -0
- package/src/components/Header/Header.tsx +18 -0
- package/src/components/Header/__snapshots__/Header.test.tsx.snap +203 -0
- package/src/components/KnownFacts/KnownFacts.css +19 -0
- package/src/components/KnownFacts/KnownFacts.stories.tsx +79 -0
- package/src/components/KnownFacts/KnownFacts.test.tsx +54 -0
- package/src/components/KnownFacts/KnownFacts.tsx +449 -0
- package/src/components/KnownFacts/__snapshots__/KnownFacts.test.tsx.snap +19 -0
- package/src/components/MemoriWidget/MemoriWidget.tsx +17 -2
- package/src/components/SettingsDrawer/SettingsDrawer.tsx +3 -1
- package/src/components/StartPanel/StartPanel.css +2 -2
- package/src/components/icons/ChevronLeft.tsx +28 -0
- package/src/components/icons/ChevronRight.tsx +28 -0
- package/src/components/ui/Button.css +29 -1
- package/src/components/ui/Checkbox.css +17 -4
- package/src/components/ui/Checkbox.stories.tsx +15 -0
- package/src/components/ui/Checkbox.test.tsx +5 -0
- package/src/components/ui/Checkbox.tsx +38 -23
- package/src/components/ui/Drawer.css +22 -4
- package/src/components/ui/Modal.tsx +1 -1
- package/src/components/ui/Select.tsx +5 -1
- package/src/components/ui/Table.css +113 -0
- package/src/components/ui/__snapshots__/Checkbox.test.tsx.snap +26 -0
- package/src/locales/en.json +20 -0
- package/src/locales/it.json +20 -0
- package/src/mocks/data.ts +11 -0
- package/src/styles.css +8 -0
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
transition: all 0.3s;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
.memori-checkbox--inner::after {
|
|
42
|
+
.memori-checkbox:not(.memori-checkbox--indeterminate) .memori-checkbox--inner::after {
|
|
43
43
|
position: absolute;
|
|
44
44
|
top: 50%;
|
|
45
45
|
display: table;
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
background: rgba(0, 0, 0, 0.04);
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
.memori-checkbox--disabled .memori-checkbox--inner::after {
|
|
87
|
+
.memori-checkbox.memori-checkbox--disabled .memori-checkbox--inner::after {
|
|
88
88
|
border-color: rgba(0, 0, 0, 0.25);
|
|
89
89
|
}
|
|
90
90
|
|
|
@@ -92,14 +92,27 @@
|
|
|
92
92
|
color: rgba(0, 0, 0, 0.25);
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
.memori-checkbox--input
|
|
95
|
+
.memori-checkbox--input.memori-checkbox--indeterminate+.memori-checkbox--inner,
|
|
96
|
+
.memori-checkbox--input:checked:not(:disabled)+.memori-checkbox--inner {
|
|
96
97
|
z-index: 2;
|
|
97
98
|
border-color: var(--memori-primary);
|
|
98
99
|
background-color: var(--memori-primary);
|
|
99
100
|
}
|
|
100
101
|
|
|
101
|
-
.memori-checkbox--input:checked
|
|
102
|
+
.memori-checkbox--input:checked+.memori-checkbox--inner::after {
|
|
102
103
|
opacity: 1;
|
|
103
104
|
transform: rotate(45deg) scale(1) translate(-50%, -50%);
|
|
104
105
|
transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;
|
|
105
106
|
}
|
|
107
|
+
|
|
108
|
+
.memori-checkbox.memori-checkbox--indeterminate .memori-checkbox--inner::after,
|
|
109
|
+
.memori-checkbox.memori-checkbox--indeterminate .memori-checkbox--input:checked+.memori-checkbox--inner::after {
|
|
110
|
+
position: absolute;
|
|
111
|
+
top: calc(50% - 1px);
|
|
112
|
+
left: 2px;
|
|
113
|
+
width: 10px;
|
|
114
|
+
border-bottom: 2px solid #fff;
|
|
115
|
+
content: "";
|
|
116
|
+
transform: none;
|
|
117
|
+
transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;
|
|
118
|
+
}
|
|
@@ -57,3 +57,18 @@ DisabledChecked.args = {
|
|
|
57
57
|
checked: true,
|
|
58
58
|
disabled: true,
|
|
59
59
|
};
|
|
60
|
+
|
|
61
|
+
export const Indeterminate = Template.bind({});
|
|
62
|
+
Indeterminate.args = {
|
|
63
|
+
label: 'Indeterminate',
|
|
64
|
+
checked: true,
|
|
65
|
+
indeterminate: true,
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export const DisabledIndeterminate = Template.bind({});
|
|
69
|
+
DisabledIndeterminate.args = {
|
|
70
|
+
label: 'Indeterminate',
|
|
71
|
+
checked: false,
|
|
72
|
+
indeterminate: true,
|
|
73
|
+
disabled: true,
|
|
74
|
+
};
|
|
@@ -21,3 +21,8 @@ it('renders Checkbox checked and disabled unchanged', () => {
|
|
|
21
21
|
const { container } = render(<Checkbox label="Check me" checked disabled />);
|
|
22
22
|
expect(container).toMatchSnapshot();
|
|
23
23
|
});
|
|
24
|
+
|
|
25
|
+
it('renders Checkbox indeterminate unchanged', () => {
|
|
26
|
+
const { container } = render(<Checkbox label="Check me" indeterminate />);
|
|
27
|
+
expect(container).toMatchSnapshot();
|
|
28
|
+
});
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import React, { FC } from 'react';
|
|
1
|
+
import React, { FC, useEffect, useRef } from 'react';
|
|
2
2
|
import cx from 'classnames';
|
|
3
3
|
|
|
4
4
|
export interface Props extends React.HTMLAttributes<HTMLInputElement> {
|
|
5
|
-
label
|
|
5
|
+
label?: string;
|
|
6
6
|
checked?: boolean;
|
|
7
7
|
disabled?: boolean;
|
|
8
|
+
indeterminate?: boolean;
|
|
8
9
|
name?: string;
|
|
9
10
|
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
10
11
|
}
|
|
@@ -13,31 +14,45 @@ const Checkbox: FC<Props> = ({
|
|
|
13
14
|
label,
|
|
14
15
|
className,
|
|
15
16
|
disabled = false,
|
|
17
|
+
indeterminate = false,
|
|
16
18
|
checked,
|
|
17
19
|
children,
|
|
18
20
|
onChange,
|
|
19
21
|
name,
|
|
20
22
|
...props
|
|
21
|
-
}) =>
|
|
22
|
-
<
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
disabled
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
23
|
+
}) => {
|
|
24
|
+
const inputRef = useRef<HTMLInputElement>(null);
|
|
25
|
+
|
|
26
|
+
useEffect(() => {
|
|
27
|
+
if (!inputRef.current) return;
|
|
28
|
+
inputRef.current.indeterminate = indeterminate;
|
|
29
|
+
}, [inputRef, indeterminate]);
|
|
30
|
+
|
|
31
|
+
return (
|
|
32
|
+
<label
|
|
33
|
+
className={cx('memori-checkbox', className, {
|
|
34
|
+
'memori-checkbox--disabled': disabled,
|
|
35
|
+
'memori-checkbox--indeterminate': indeterminate,
|
|
36
|
+
})}
|
|
37
|
+
>
|
|
38
|
+
<span className="memori-checkbox--input-wrapper">
|
|
39
|
+
<input
|
|
40
|
+
ref={inputRef}
|
|
41
|
+
type="checkbox"
|
|
42
|
+
{...props}
|
|
43
|
+
name={name}
|
|
44
|
+
disabled={disabled}
|
|
45
|
+
checked={checked || indeterminate}
|
|
46
|
+
className="memori-checkbox--input"
|
|
47
|
+
onChange={onChange}
|
|
48
|
+
/>
|
|
49
|
+
<span className="memori-checkbox--inner" />
|
|
50
|
+
</span>
|
|
51
|
+
{!!label?.length && (
|
|
52
|
+
<span className="memori-checkbox--text">{label}</span>
|
|
53
|
+
)}
|
|
54
|
+
</label>
|
|
55
|
+
);
|
|
56
|
+
};
|
|
42
57
|
|
|
43
58
|
export default Checkbox;
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
position: relative;
|
|
35
35
|
width: var(--memori-drawer--width, 100%);
|
|
36
36
|
height: 100%;
|
|
37
|
-
height: 100vh;
|
|
37
|
+
min-height: 100vh;
|
|
38
38
|
box-sizing: border-box;
|
|
39
|
-
padding:
|
|
39
|
+
padding: 1rem 1.5rem 1.5rem;
|
|
40
40
|
margin-right: 0;
|
|
41
41
|
margin-left: auto;
|
|
42
42
|
background-color: #fff;
|
|
@@ -47,6 +47,8 @@
|
|
|
47
47
|
.memori-drawer--panel {
|
|
48
48
|
width: var(--memori-drawer--width--md, 80%);
|
|
49
49
|
padding-top: 1.5rem;
|
|
50
|
+
padding-right: 2rem;
|
|
51
|
+
padding-left: 2rem;
|
|
50
52
|
}
|
|
51
53
|
}
|
|
52
54
|
|
|
@@ -67,17 +69,33 @@
|
|
|
67
69
|
flex-direction: column;
|
|
68
70
|
}
|
|
69
71
|
|
|
72
|
+
.memori-drawer--panel>.memori-spin {
|
|
73
|
+
margin-top: -1.75rem;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.memori-drawer--panel p {
|
|
77
|
+
margin: 0 0 1em;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
h2.memori-drawer--title {
|
|
81
|
+
margin: 0 0 1rem;
|
|
82
|
+
font-size: 1.5rem;
|
|
83
|
+
font-weight: 700;
|
|
84
|
+
}
|
|
85
|
+
|
|
70
86
|
.memori-drawer--panel-left {
|
|
71
87
|
margin-right: auto;
|
|
72
88
|
margin-left: 0;
|
|
73
89
|
}
|
|
74
90
|
|
|
75
91
|
.memori-drawer--close {
|
|
76
|
-
position:
|
|
92
|
+
position: sticky;
|
|
77
93
|
z-index: 70;
|
|
78
94
|
top: 0;
|
|
79
|
-
left:
|
|
95
|
+
left: 0;
|
|
80
96
|
padding: 0.5rem;
|
|
97
|
+
margin-top: -1.5rem;
|
|
98
|
+
margin-left: -5.5rem;
|
|
81
99
|
}
|
|
82
100
|
|
|
83
101
|
@media (max-width: 767px) {
|
|
@@ -12,7 +12,7 @@ export interface Props {
|
|
|
12
12
|
className?: string;
|
|
13
13
|
title?: string | JSX.Element | React.ReactNode;
|
|
14
14
|
description?: string | JSX.Element | React.ReactNode;
|
|
15
|
-
children
|
|
15
|
+
children?: JSX.Element | React.ReactNode;
|
|
16
16
|
footer?: JSX.Element | React.ReactNode;
|
|
17
17
|
loading?: boolean;
|
|
18
18
|
closable?: boolean;
|
|
@@ -34,7 +34,11 @@ const Select = ({
|
|
|
34
34
|
disabled={disabled}
|
|
35
35
|
name="day"
|
|
36
36
|
>
|
|
37
|
-
|
|
37
|
+
{label && (
|
|
38
|
+
<Listbox.Label className="memori-select--label">
|
|
39
|
+
{label}:
|
|
40
|
+
</Listbox.Label>
|
|
41
|
+
)}
|
|
38
42
|
<Listbox.Button aria-label={label} className="memori-select--button">
|
|
39
43
|
<span
|
|
40
44
|
className={cx('memori-select--value', {
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
table.memori--table {
|
|
2
|
+
--memori-table-spacing: 1rem;
|
|
3
|
+
--memori-table-border-color: hsl(205, 20%, 94%);
|
|
4
|
+
--memori-table-bg-color: rgb(246, 248, 249);
|
|
5
|
+
|
|
6
|
+
margin: 1rem 0;
|
|
7
|
+
font-size: 1rem;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@media (max-width: 767px) {
|
|
11
|
+
table.memori--table {
|
|
12
|
+
--memori-table-spacing: 0.5rem;
|
|
13
|
+
|
|
14
|
+
font-size: 0.875rem;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:where(table) {
|
|
19
|
+
width: 100%;
|
|
20
|
+
border-collapse: collapse;
|
|
21
|
+
border-spacing: 0;
|
|
22
|
+
text-indent: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
table.memori--table th,
|
|
26
|
+
table.memori--table td {
|
|
27
|
+
padding: calc(var(--memori-table-spacing) / 2) var(--memori-table-spacing);
|
|
28
|
+
border-bottom: 1px solid var(--memori-table-border-color);
|
|
29
|
+
text-align: left;
|
|
30
|
+
text-align: start;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
table.memori--table thead th {
|
|
34
|
+
padding: var(--memori-table-spacing) var(--memori-table-spacing);
|
|
35
|
+
background-color: var(--memori-table-bg-color);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
table.memori--table tfoot th,
|
|
39
|
+
table.memori--table tfoot td {
|
|
40
|
+
border-top: 1px solid var(--memori-table-border-color);
|
|
41
|
+
border-bottom: 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
table.memori--table[role="grid"] tbody tr:nth-child(odd) {
|
|
45
|
+
background-color: var(--memori-table-bg-color);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.memori--table--pagination {
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
justify-content: flex-end;
|
|
52
|
+
margin-bottom: 1rem;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.memori--table--pagination--pages {
|
|
56
|
+
display: flex;
|
|
57
|
+
align-items: center;
|
|
58
|
+
margin-right: 1rem;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.memori--table--pagination--pages--current {
|
|
62
|
+
padding: 0 0.5rem;
|
|
63
|
+
font-variant-numeric: tabular-nums;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.memori--table--pagination--pages button.memori-button.memori-button--circle {
|
|
67
|
+
padding: 0.25rem;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.memori--table--pagination--pages button.memori-button[disabled] {
|
|
71
|
+
opacity: 0.3;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.memori--table--pagination ul.memori-select--options {
|
|
75
|
+
right: 0;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@media (max-width: 600px) {
|
|
79
|
+
.memori--table--pagination--pages {
|
|
80
|
+
margin-right: auto;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.memori--table--pagination--pages--current {
|
|
84
|
+
padding: 0 0.25rem;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.memori--table--pagination .memori-select button.memori-select--button {
|
|
88
|
+
padding-top: 0.25rem;
|
|
89
|
+
padding-right: 2rem;
|
|
90
|
+
padding-bottom: 0.25rem;
|
|
91
|
+
padding-left: 0.5rem;
|
|
92
|
+
font-size: 0.875rem;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.memori--table--pagination .memori-select ul.memori-select--options {
|
|
96
|
+
min-width: fit-content;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
table.memori--table th.memori--table--column-centered,
|
|
101
|
+
table.memori--table td.memori--table--column-centered {
|
|
102
|
+
text-align: center;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
table.memori--table th.memori--table--column-right,
|
|
106
|
+
table.memori--table td.memori--table--column-right {
|
|
107
|
+
text-align: right;
|
|
108
|
+
text-align: end;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.memori--table--date {
|
|
112
|
+
white-space: nowrap;
|
|
113
|
+
}
|
|
@@ -79,6 +79,32 @@ exports[`renders Checkbox disabled unchanged 1`] = `
|
|
|
79
79
|
</div>
|
|
80
80
|
`;
|
|
81
81
|
|
|
82
|
+
exports[`renders Checkbox indeterminate unchanged 1`] = `
|
|
83
|
+
<div>
|
|
84
|
+
<label
|
|
85
|
+
class="memori-checkbox memori-checkbox--indeterminate"
|
|
86
|
+
>
|
|
87
|
+
<span
|
|
88
|
+
class="memori-checkbox--input-wrapper"
|
|
89
|
+
>
|
|
90
|
+
<input
|
|
91
|
+
checked=""
|
|
92
|
+
class="memori-checkbox--input"
|
|
93
|
+
type="checkbox"
|
|
94
|
+
/>
|
|
95
|
+
<span
|
|
96
|
+
class="memori-checkbox--inner"
|
|
97
|
+
/>
|
|
98
|
+
</span>
|
|
99
|
+
<span
|
|
100
|
+
class="memori-checkbox--text"
|
|
101
|
+
>
|
|
102
|
+
Check me
|
|
103
|
+
</span>
|
|
104
|
+
</label>
|
|
105
|
+
</div>
|
|
106
|
+
`;
|
|
107
|
+
|
|
82
108
|
exports[`renders Checkbox unchanged 1`] = `
|
|
83
109
|
<div>
|
|
84
110
|
<label
|
package/src/locales/en.json
CHANGED
|
@@ -21,6 +21,12 @@
|
|
|
21
21
|
"day": "Day",
|
|
22
22
|
"month": "Month",
|
|
23
23
|
"year": "Year",
|
|
24
|
+
"createdAt": "Creation date",
|
|
25
|
+
"selected": "Selected",
|
|
26
|
+
"page": "page",
|
|
27
|
+
"actions": "Actions",
|
|
28
|
+
"next": "Next",
|
|
29
|
+
"previous": "Previous",
|
|
24
30
|
"copy": "Copy",
|
|
25
31
|
"copyToClipboard": "Copy to clipboard",
|
|
26
32
|
"showOriginalText": "Show original",
|
|
@@ -47,6 +53,20 @@
|
|
|
47
53
|
"deepThoughtHelper": "Allows to establish a unique relationship between the AI and the person who interrogates it, allowing the AI to remember this relationship and therefore supporting people with questions targeted to their experiences. Once people start their relationships, the creator of the AI will see their community grow with Followers and will be able to observe the known facts collected during the conversations.",
|
|
48
54
|
"deepThoughtDisclaimerTitle": "Deep Thought enabled",
|
|
49
55
|
"deepThoughtDisclaimer": "By continuing the conversation I authorize the processing of my personal data as specified in the information notice which I declare to have read.",
|
|
56
|
+
"knownFacts": {
|
|
57
|
+
"title": "Known facts",
|
|
58
|
+
"description": "Details of the information shared between you and {{memoriName}}",
|
|
59
|
+
"type": "Type",
|
|
60
|
+
"typeShortTerm": "Short term",
|
|
61
|
+
"typeLongTerm": "Long term",
|
|
62
|
+
"typeHelper": "Types:\n- Short Term: this Known Fact is always used during conversations\n- Long Term: this Known Fact is used during conversations only if relevant to the current question",
|
|
63
|
+
"text": "Text",
|
|
64
|
+
"deleteSuccess": "Known fact deleted",
|
|
65
|
+
"deleteConfirmTitle": "Delete known fact",
|
|
66
|
+
"deleteConfirmMessage": "Are you sure you want to delete this known fact?",
|
|
67
|
+
"deleteSelectedConfirmTitle": "Delete selected known facts",
|
|
68
|
+
"deleteSelectedConfirmMessage": "Are you sure you want to delete the selected known facts?"
|
|
69
|
+
},
|
|
50
70
|
"auth": {
|
|
51
71
|
"title": "Authentication",
|
|
52
72
|
"useRecoveryTokens": "Use recovery tokens",
|
package/src/locales/it.json
CHANGED
|
@@ -21,6 +21,12 @@
|
|
|
21
21
|
"day": "Giorno",
|
|
22
22
|
"month": "Mese",
|
|
23
23
|
"year": "Anno",
|
|
24
|
+
"createdAt": "Data creazione",
|
|
25
|
+
"selected": "Selezionati",
|
|
26
|
+
"page": "pagina",
|
|
27
|
+
"actions": "Azioni",
|
|
28
|
+
"next": "Successivo",
|
|
29
|
+
"previous": "Precedente",
|
|
24
30
|
"copy": "Copia",
|
|
25
31
|
"copyToClipboard": "Copia negli appunti",
|
|
26
32
|
"showOriginalText": "Mostra originale",
|
|
@@ -47,6 +53,20 @@
|
|
|
47
53
|
"deepThoughtHelper": "Permette di stabilire una relazione univoca tra l'IA e la persona che la interroga, permettendo all'IA memoria di questa relazione supportando quindi le persone con domande mirate alle loro esperienze. Una volta che le persone avvieranno le loro relazioni, il creatore delle AI vedrà la propria community crescere di Follower e potrà osservare i fatti noti raccolti durante le conversazioni.",
|
|
48
54
|
"deepThoughtDisclaimerTitle": "Pensiero profondo abilitato",
|
|
49
55
|
"deepThoughtDisclaimer": "Proseguendo nella conversazione autorizzo il trattamento dei miei dati personali così come specificato nell'informativa di cui dichiaro di aver preso visione.",
|
|
56
|
+
"knownFacts": {
|
|
57
|
+
"title": "Fatti noti",
|
|
58
|
+
"description": "Dettagli delle informazioni condivise tra te e {{memoriName}}",
|
|
59
|
+
"type": "Tipo",
|
|
60
|
+
"typeShortTerm": "Breve termine",
|
|
61
|
+
"typeLongTerm": "Lungo termine",
|
|
62
|
+
"typeHelper": "Tipi:\n- Breve termine: questo fatto noto è sempre utilizzato durante le conversazioni\n- Lungo termine: questo fatto noto è utilizzato durante le conversazioni solo se rilevante per la domanda corrente",
|
|
63
|
+
"text": "Testo",
|
|
64
|
+
"deleteSuccess": "Fatto noto eliminato",
|
|
65
|
+
"deleteConfirmTitle": "Elimina il fatto noto",
|
|
66
|
+
"deleteConfirmMessage": "Confermi di voler eliminare questo fatto noto?",
|
|
67
|
+
"deleteSelectedConfirmTitle": "Elimina i fatti noti selezionati",
|
|
68
|
+
"deleteSelectedConfirmMessage": "Confermi di voler eliminare i fatti noti selezionati?"
|
|
69
|
+
},
|
|
50
70
|
"auth": {
|
|
51
71
|
"title": "Autenticazione",
|
|
52
72
|
"useRecoveryTokens": "Utilizza i token di recupero",
|
package/src/mocks/data.ts
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
Integration,
|
|
6
6
|
Tenant,
|
|
7
7
|
DialogState,
|
|
8
|
+
KnownFact,
|
|
8
9
|
} from '@memori.ai/memori-api-client/dist/types';
|
|
9
10
|
|
|
10
11
|
export const sessionID = '131165be-9d1a-42fb-a3ce-e8f86d40c88f';
|
|
@@ -290,3 +291,13 @@ export const integration: Integration = {
|
|
|
290
291
|
creationTimestamp: '2022-06-11T14:13:45.685038Z',
|
|
291
292
|
lastChangeTimestamp: '2022-06-11T14:13:45.685038Z',
|
|
292
293
|
};
|
|
294
|
+
|
|
295
|
+
export const knownFact: KnownFact = {
|
|
296
|
+
knownFactID: 'b0b0b0b0-b0b0-b0b0-b0b0-b0b0b0b0b0b3',
|
|
297
|
+
knownFactType: 'ShortTerm',
|
|
298
|
+
text: 'I am a known fact. Quisque in ultrices lectus. Nulla at urna diam. Proin sodales lobortis libero eu facilisis.',
|
|
299
|
+
creationTimestamp: '2023-12-01T13:40:25.235896Z',
|
|
300
|
+
creationSessionID: '0ce713c0-c8f1-4aed-a2a6-40f81c06854f',
|
|
301
|
+
lastChangeTimestamp: '2023-12-01T13:44:04.832072Z',
|
|
302
|
+
lastChangeSessionID: '0ce713c0-c8f1-4aed-a2a6-40f81c06854f',
|
|
303
|
+
};
|
package/src/styles.css
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
@import url('./components/ui/Spin.css');
|
|
7
7
|
@import url('./components/ui/Tooltip.css');
|
|
8
8
|
@import url('./components/ui/Select.css');
|
|
9
|
+
@import url('./components/ui/Table.css');
|
|
9
10
|
|
|
10
11
|
@import url('./components/CompletionProviderStatus/CompletionProviderStatus.css');
|
|
11
12
|
@import url('./components/PoweredBy/PoweredBy.css');
|
|
@@ -36,6 +37,7 @@
|
|
|
36
37
|
@import url('./components/UploadMenu/UploadMenu.css');
|
|
37
38
|
@import url('./components/DateSelector/DateSelector.css');
|
|
38
39
|
@import url('./components/AgeVerificationModal/AgeVerificationModal.css');
|
|
40
|
+
@import url('./components/KnownFacts/KnownFacts.css');
|
|
39
41
|
@import url('./components/MemoriWidget/MemoriWidget.css');
|
|
40
42
|
|
|
41
43
|
@import url('https://fonts.bunny.net/css?family=exo-2:200,400,700');
|
|
@@ -87,4 +89,10 @@ body.sb-show-main #root,
|
|
|
87
89
|
--memori-modal--width--md: 80%;
|
|
88
90
|
--memori-error-color: #ff4d4f;
|
|
89
91
|
--memori-warning-color: #faad14;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
@media (max-width: 768px) {
|
|
95
|
+
.mobile-hidden {
|
|
96
|
+
display: none;
|
|
97
|
+
}
|
|
90
98
|
}
|