@layers-app/shared 0.4.10 → 0.4.11
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/dist/components/AppContainer/AppContainer.js +24 -24
- package/dist/components/AppContainer/components/Header.d.ts +3 -1
- package/dist/components/AppContainer/components/Header.d.ts.map +1 -1
- package/dist/components/AppContainer/components/Header.js +9 -6
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +102 -102
- package/dist/components/AppContainer/hooks/useAppContainerStore.d.ts +2 -2
- package/dist/components/AppContainer/hooks/useAppContainerStore.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainerStore.js +20 -19
- package/dist/components/ColorPicker/icons.js +5 -5
- package/dist/components/MeetingPage/MeetingObjectAttitude.d.ts.map +1 -1
- package/dist/components/MeetingPage/MeetingObjectAttitude.js +64 -68
- package/dist/components/MeetingPage/MeetingObjectCard.d.ts.map +1 -1
- package/dist/components/MeetingPage/MeetingObjectCard.js +108 -109
- package/dist/components/MeetingPage/MeetingObjectDirectory.d.ts.map +1 -1
- package/dist/components/MeetingPage/MeetingObjectDirectory.js +85 -80
- package/dist/components/MeetingPage/MeetingObjectEditor.d.ts.map +1 -1
- package/dist/components/MeetingPage/MeetingObjectEditor.js +144 -140
- package/dist/components/MeetingPage/MeetingPanelError.d.ts.map +1 -1
- package/dist/components/MeetingPage/MeetingPanelError.js +17 -16
- package/dist/components/MeetingPage/MeetingPersonAppearances.d.ts.map +1 -1
- package/dist/components/MeetingPage/MeetingPersonAppearances.js +63 -55
- package/dist/components/MeetingPage/meetingAppearances.d.ts.map +1 -1
- package/dist/components/MeetingPage/meetingAppearances.js +29 -28
- package/dist/components/MeetingPage/meetingObjects.d.ts +8 -2
- package/dist/components/MeetingPage/meetingObjects.d.ts.map +1 -1
- package/dist/components/MeetingPage/meetingObjects.js +28 -31
- package/dist/components/MeetingPage/objectAttitude.d.ts +9 -2
- package/dist/components/MeetingPage/objectAttitude.d.ts.map +1 -1
- package/dist/components/MeetingPage/objectAttitude.js +88 -89
- package/dist/components/Notification/InfiniteScroll.js +10 -10
- package/dist/components/Notification/Notification.module.css.js +24 -20
- package/dist/components/Notification/atoms/UnreadDot.d.ts.map +1 -1
- package/dist/components/Notification/atoms/UnreadDot.js +4 -4
- package/dist/components/Notification/molecules/InboxEmpty.d.ts.map +1 -1
- package/dist/components/Notification/molecules/InboxEmpty.js +17 -15
- package/dist/components/Notification/molecules/InboxHeader.d.ts.map +1 -1
- package/dist/components/Notification/molecules/InboxHeader.js +26 -26
- package/dist/components/Notification/molecules/InboxTabs.d.ts.map +1 -1
- package/dist/components/Notification/molecules/InboxTabs.js +33 -22
- package/dist/components/Notification/molecules/NotificationContent.d.ts.map +1 -1
- package/dist/components/Notification/molecules/NotificationContent.js +121 -121
- package/dist/components/Notification/organisms/InboxItem.d.ts.map +1 -1
- package/dist/components/Notification/organisms/InboxItem.js +23 -22
- package/dist/components/Notification/organisms/InboxPanel.js +1 -1
- package/dist/components/StorageUsageProgress/index.d.ts.map +1 -1
- package/dist/components/StorageUsageProgress/index.js +1 -3
- package/dist/components/WorkspaceMenu/WorkspaceMenu.js +10 -7
- package/dist/config/envConfig.d.ts +3 -0
- package/dist/config/envConfig.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/lang/locales/ui_en.json.js +20 -18
- package/dist/lang/locales/ui_es.json.js +30 -28
- package/dist/lang/locales/ui_ru.json.js +24 -22
- package/dist/utils/formatStorage.d.ts +6 -5
- package/dist/utils/formatStorage.d.ts.map +1 -1
- package/dist/utils/formatStorage.js +21 -11
- package/package.json +1 -1
|
@@ -1,167 +1,172 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { jsx as i, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { useState as s, useCallback as z, useEffect as B } from "react";
|
|
3
|
+
import { useTranslation as D } from "react-i18next";
|
|
4
|
+
import { MeetingObjectEditor as F } from "./MeetingObjectEditor.js";
|
|
5
|
+
import { MeetingPanelError as K } from "./MeetingPanelError.js";
|
|
6
|
+
import { useWorkspaceMembers as L, SpeakerAvatar as q } from "./SpeakerAvatar.js";
|
|
7
|
+
import { listObjects as x, objectFace as W, createObject as V } from "./meetingObjects.js";
|
|
7
8
|
import { panelRequestView as _ } from "./panelRequestView.js";
|
|
8
9
|
import t from "./MeetingPage.module.css.js";
|
|
9
|
-
const
|
|
10
|
-
{ type: "PERSON",
|
|
11
|
-
{ type: "ORGANIZATION",
|
|
10
|
+
const k = 250, G = [
|
|
11
|
+
{ type: "PERSON", labelKey: "meeting.directory.tabPerson" },
|
|
12
|
+
{ type: "ORGANIZATION", labelKey: "meeting.directory.tabOrganization" }
|
|
12
13
|
];
|
|
13
|
-
function
|
|
14
|
-
workspaceId:
|
|
14
|
+
function te({
|
|
15
|
+
workspaceId: a
|
|
15
16
|
}) {
|
|
16
|
-
const
|
|
17
|
+
const { t: r } = D("ui"), [n, j] = s("PERSON"), [o, A] = s(""), [p, N] = s(null), [f, P] = s({ isError: !1, status: null }), [l, m] = s(null), [u, b] = s(""), [v, O] = s(!1), [E, C] = s(null), [R, w] = s(0), M = L(a), d = z(() => w((e) => e + 1), []);
|
|
17
18
|
B(() => {
|
|
18
|
-
if (!
|
|
19
|
+
if (!a) {
|
|
19
20
|
N([]);
|
|
20
21
|
return;
|
|
21
22
|
}
|
|
22
23
|
let e = !1;
|
|
23
|
-
const
|
|
24
|
+
const y = window.setTimeout(
|
|
24
25
|
() => {
|
|
25
|
-
|
|
26
|
-
e || (N(h.data),
|
|
26
|
+
x(n, a, o).then((h) => {
|
|
27
|
+
e || (N(h.data), P({ isError: h.isError, status: h.status }));
|
|
27
28
|
});
|
|
28
29
|
},
|
|
29
|
-
|
|
30
|
+
o ? k : 0
|
|
30
31
|
);
|
|
31
32
|
return () => {
|
|
32
|
-
e = !0, window.clearTimeout(
|
|
33
|
+
e = !0, window.clearTimeout(y);
|
|
33
34
|
};
|
|
34
|
-
}, [
|
|
35
|
-
const
|
|
36
|
-
const e =
|
|
37
|
-
if (!
|
|
38
|
-
|
|
39
|
-
const
|
|
40
|
-
if (
|
|
41
|
-
C("
|
|
35
|
+
}, [a, n, o, R]);
|
|
36
|
+
const S = async () => {
|
|
37
|
+
const e = u.trim();
|
|
38
|
+
if (!a || !e) return;
|
|
39
|
+
O(!0), C(null);
|
|
40
|
+
const y = await V(n, a, e);
|
|
41
|
+
if (O(!1), !y) {
|
|
42
|
+
C(r("meeting.directory.createFailed"));
|
|
42
43
|
return;
|
|
43
44
|
}
|
|
44
|
-
|
|
45
|
-
},
|
|
46
|
-
isLoading:
|
|
47
|
-
isError:
|
|
48
|
-
status:
|
|
49
|
-
count:
|
|
45
|
+
b(""), m(y.id), d();
|
|
46
|
+
}, g = _({
|
|
47
|
+
isLoading: p === null,
|
|
48
|
+
isError: f.isError,
|
|
49
|
+
status: f.status,
|
|
50
|
+
count: p?.length ?? 0
|
|
50
51
|
});
|
|
51
|
-
if (!
|
|
52
|
-
return /* @__PURE__ */
|
|
53
|
-
const
|
|
54
|
-
return /* @__PURE__ */
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
-
|
|
52
|
+
if (!a)
|
|
53
|
+
return /* @__PURE__ */ i("div", { className: t.directory, children: /* @__PURE__ */ i("p", { className: t.empty, children: r("meeting.directory.workspaceOnly") }) });
|
|
54
|
+
const T = p ?? [], $ = !!o.trim();
|
|
55
|
+
return /* @__PURE__ */ c("div", { className: t.directory, "data-cy": "meeting-object-directory", children: [
|
|
56
|
+
/* @__PURE__ */ c("div", { className: t.row, children: [
|
|
57
|
+
G.map((e) => /* @__PURE__ */ i(
|
|
57
58
|
"button",
|
|
58
59
|
{
|
|
59
60
|
type: "button",
|
|
60
|
-
"aria-pressed":
|
|
61
|
-
className:
|
|
61
|
+
"aria-pressed": n === e.type,
|
|
62
|
+
className: n === e.type ? `${t.chip} ${t.chipActive}` : t.chip,
|
|
62
63
|
onClick: () => {
|
|
63
|
-
|
|
64
|
+
j(e.type), m(null);
|
|
64
65
|
},
|
|
65
66
|
"data-cy": `meeting-objects-tab-${e.type.toLowerCase()}`,
|
|
66
|
-
children: e.
|
|
67
|
+
children: r(e.labelKey)
|
|
67
68
|
},
|
|
68
69
|
e.type
|
|
69
70
|
)),
|
|
70
|
-
/* @__PURE__ */
|
|
71
|
+
/* @__PURE__ */ i(
|
|
71
72
|
"input",
|
|
72
73
|
{
|
|
73
74
|
type: "search",
|
|
74
75
|
className: t.search,
|
|
75
|
-
value:
|
|
76
|
-
placeholder: r === "PERSON" ? "
|
|
77
|
-
onChange: (e) =>
|
|
76
|
+
value: o,
|
|
77
|
+
placeholder: r(n === "PERSON" ? "meeting.directory.searchPerson" : "meeting.directory.searchOrganization"),
|
|
78
|
+
onChange: (e) => A(e.target.value),
|
|
78
79
|
"data-cy": "meeting-objects-search"
|
|
79
80
|
}
|
|
80
81
|
)
|
|
81
82
|
] }),
|
|
82
|
-
/* @__PURE__ */
|
|
83
|
-
/* @__PURE__ */
|
|
83
|
+
/* @__PURE__ */ c("div", { className: t.row, children: [
|
|
84
|
+
/* @__PURE__ */ i(
|
|
84
85
|
"input",
|
|
85
86
|
{
|
|
86
87
|
className: t.namingInput,
|
|
87
|
-
value:
|
|
88
|
-
disabled:
|
|
89
|
-
placeholder: r === "PERSON" ? "
|
|
90
|
-
onChange: (e) =>
|
|
88
|
+
value: u,
|
|
89
|
+
disabled: v,
|
|
90
|
+
placeholder: r(n === "PERSON" ? "meeting.directory.newPerson" : "meeting.directory.newOrganization"),
|
|
91
|
+
onChange: (e) => b(e.target.value),
|
|
91
92
|
onKeyDown: (e) => {
|
|
92
|
-
e.key === "Enter" &&
|
|
93
|
+
e.key === "Enter" && S();
|
|
93
94
|
},
|
|
94
95
|
"data-cy": "meeting-objects-create-input"
|
|
95
96
|
}
|
|
96
97
|
),
|
|
97
|
-
/* @__PURE__ */
|
|
98
|
+
/* @__PURE__ */ i(
|
|
98
99
|
"button",
|
|
99
100
|
{
|
|
100
101
|
type: "button",
|
|
101
102
|
className: t.objectAction,
|
|
102
|
-
disabled:
|
|
103
|
+
disabled: v || !u.trim(),
|
|
103
104
|
onClick: () => {
|
|
104
|
-
|
|
105
|
+
S();
|
|
105
106
|
},
|
|
106
107
|
"data-cy": "meeting-objects-create",
|
|
107
|
-
children: "
|
|
108
|
+
children: r("meeting.directory.create")
|
|
108
109
|
}
|
|
109
110
|
),
|
|
110
|
-
E && /* @__PURE__ */
|
|
111
|
+
E && /* @__PURE__ */ i("span", { className: t.namingError, children: E })
|
|
111
112
|
] }),
|
|
112
|
-
/* @__PURE__ */
|
|
113
|
-
/* @__PURE__ */
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
113
|
+
/* @__PURE__ */ c("div", { className: t.directoryBody, children: [
|
|
114
|
+
/* @__PURE__ */ c("div", { className: t.directoryList, children: [
|
|
115
|
+
g === "loading" && /* @__PURE__ */ i("p", { className: t.empty, children: r("meeting.directory.loading") }),
|
|
116
|
+
g === "failed" && /* @__PURE__ */ i("p", { className: t.empty, children: /* @__PURE__ */ i(
|
|
117
|
+
K,
|
|
117
118
|
{
|
|
118
|
-
what: "
|
|
119
|
-
onRetry:
|
|
119
|
+
what: r("meeting.directory.errorWhat"),
|
|
120
|
+
onRetry: d,
|
|
120
121
|
"data-cy": "meeting-objects-error"
|
|
121
122
|
}
|
|
122
123
|
) }),
|
|
123
|
-
|
|
124
|
-
|
|
124
|
+
g === "empty" && /* @__PURE__ */ i("p", { className: t.empty, "data-cy": "meeting-objects-empty", children: $ ? r("meeting.directory.emptyFound", { query: o.trim() }) : r(n === "PERSON" ? "meeting.directory.emptyPerson" : "meeting.directory.emptyOrganization") }),
|
|
125
|
+
T.map((e) => /* @__PURE__ */ c(
|
|
125
126
|
"button",
|
|
126
127
|
{
|
|
127
128
|
type: "button",
|
|
128
129
|
"aria-pressed": l === e.id,
|
|
129
130
|
className: l === e.id ? `${t.directoryItem} ${t.directoryItemActive}` : t.directoryItem,
|
|
130
|
-
onClick: () =>
|
|
131
|
+
onClick: () => m(l === e.id ? null : e.id),
|
|
131
132
|
"data-cy": "meeting-object-row",
|
|
132
133
|
children: [
|
|
133
|
-
/* @__PURE__ */
|
|
134
|
-
/* @__PURE__ */
|
|
134
|
+
/* @__PURE__ */ c("span", { className: t.namingWho, children: [
|
|
135
|
+
/* @__PURE__ */ i(
|
|
135
136
|
q,
|
|
136
137
|
{
|
|
137
138
|
label: e.displayName,
|
|
138
|
-
avatarUrl:
|
|
139
|
+
avatarUrl: W(e, M, a)
|
|
139
140
|
}
|
|
140
141
|
),
|
|
141
142
|
e.displayName
|
|
142
143
|
] }),
|
|
143
|
-
/* @__PURE__ */
|
|
144
|
+
/* @__PURE__ */ i("span", { className: t.namingCount, children: n === "PERSON" ? e.appearanceCount > 0 ? r("meeting.directory.appearances", {
|
|
145
|
+
count: e.appearanceCount
|
|
146
|
+
}) : r("meeting.directory.neverAppeared") : e.mentionCount > 0 ? r("meeting.directory.mentions", {
|
|
147
|
+
count: e.mentionCount
|
|
148
|
+
}) : r("meeting.directory.neverMentioned") })
|
|
144
149
|
]
|
|
145
150
|
},
|
|
146
151
|
e.id
|
|
147
152
|
))
|
|
148
153
|
] }),
|
|
149
|
-
/* @__PURE__ */
|
|
150
|
-
|
|
154
|
+
/* @__PURE__ */ i("div", { className: t.directoryDetails, children: l ? /* @__PURE__ */ i(
|
|
155
|
+
F,
|
|
151
156
|
{
|
|
152
|
-
workspaceId:
|
|
153
|
-
objectType:
|
|
157
|
+
workspaceId: a,
|
|
158
|
+
objectType: n,
|
|
154
159
|
objectId: l,
|
|
155
|
-
onChanged:
|
|
160
|
+
onChanged: d,
|
|
156
161
|
onMerged: (e) => {
|
|
157
|
-
|
|
162
|
+
m(e), d();
|
|
158
163
|
}
|
|
159
164
|
},
|
|
160
165
|
l
|
|
161
|
-
) : /* @__PURE__ */
|
|
166
|
+
) : /* @__PURE__ */ i("p", { className: t.empty, children: r("meeting.directory.pickObject") }) })
|
|
162
167
|
] })
|
|
163
168
|
] });
|
|
164
169
|
}
|
|
165
170
|
export {
|
|
166
|
-
|
|
171
|
+
te as MeetingObjectDirectory
|
|
167
172
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MeetingObjectEditor.d.ts","sourceRoot":"","sources":["../../../src/components/MeetingPage/MeetingObjectEditor.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MeetingObjectEditor.d.ts","sourceRoot":"","sources":["../../../src/components/MeetingPage/MeetingObjectEditor.tsx"],"names":[],"mappings":"AAIA,OAAO,EAIL,KAAK,iBAAiB,EASvB,MAAM,kBAAkB,CAAC;AAI1B,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,iBAAiB,CAAC;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,iEAAiE;IACjE,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,sDAAsD;IACtD,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,WAAW,EACX,UAAU,EACV,QAAQ,EACR,SAAS,EACT,QAAQ,GACT,EAAE,wBAAwB,2CAiW1B"}
|