@box/activity-feed 2.2.13 → 2.2.15
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/chunks/AssigneeList.js +14 -14
- package/dist/styles/AssigneeList.css +1 -1
- package/package.json +14 -14
|
@@ -7,15 +7,15 @@ import { useIntl as l } from "react-intl";
|
|
|
7
7
|
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
8
8
|
import { Gray10 as p } from "@box/blueprint-web-assets/tokens/tokens";
|
|
9
9
|
import '../styles/AssigneeList.css';var m = {
|
|
10
|
-
assigneeList: "
|
|
11
|
-
assigneeItem: "
|
|
12
|
-
assigneeMeta: "
|
|
13
|
-
assigneeName: "
|
|
14
|
-
assigneeSeparator: "
|
|
15
|
-
assigneeStatusSuccess: "
|
|
16
|
-
assigneeStatusRejected: "
|
|
17
|
-
assigneeShowMoreRow: "
|
|
18
|
-
assigneeShowLessButton: "
|
|
10
|
+
assigneeList: "_assigneeList_hcidg_4",
|
|
11
|
+
assigneeItem: "_assigneeItem_hcidg_11",
|
|
12
|
+
assigneeMeta: "_assigneeMeta_hcidg_17",
|
|
13
|
+
assigneeName: "_assigneeName_hcidg_25",
|
|
14
|
+
assigneeSeparator: "_assigneeSeparator_hcidg_33",
|
|
15
|
+
assigneeStatusSuccess: "_assigneeStatusSuccess_hcidg_37",
|
|
16
|
+
assigneeStatusRejected: "_assigneeStatusRejected_hcidg_42",
|
|
17
|
+
assigneeShowMoreRow: "_assigneeShowMoreRow_hcidg_47",
|
|
18
|
+
assigneeShowLessButton: "_assigneeShowLessButton_hcidg_55"
|
|
19
19
|
}, h = 3;
|
|
20
20
|
function g(n) {
|
|
21
21
|
switch (n) {
|
|
@@ -35,7 +35,7 @@ function g(n) {
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
function _({ assignees: e, disabled: _ = !1, hasNextPage: v = !1, onLoadAllAssignee: y }) {
|
|
38
|
-
let [b, x] = a(!1), [S, C] = a(!1), [w, T] = a(!1), [E, D] = a(e), [O, k] = a(!1), A = l();
|
|
38
|
+
let [b, x] = a(!1), [S, C] = a(!1), [w, T] = a(!1), [E, D] = a(e), [O, k] = a(!1), { formatMessage: A } = l();
|
|
39
39
|
i(() => {
|
|
40
40
|
D(e), k(!1), x(!1), T(!1), C(!1);
|
|
41
41
|
}, [e]);
|
|
@@ -57,7 +57,7 @@ function _({ assignees: e, disabled: _ = !1, hasNextPage: v = !1, onLoadAllAssig
|
|
|
57
57
|
]);
|
|
58
58
|
if (E.length === 0) return null;
|
|
59
59
|
let M = E.length, N = b ? M : Math.min(h, M), P = Math.max(0, M - h), F;
|
|
60
|
-
return F = S ? A
|
|
60
|
+
return F = S ? A(t.loadingAssignees) : P > 0 ? A(v && !O ? t.showMoreAssigneesApproximate : t.showMoreAssignees, { count: P }) : A(t.showMore), /* @__PURE__ */ f("div", {
|
|
61
61
|
className: m.assigneeList,
|
|
62
62
|
children: [
|
|
63
63
|
E.slice(0, N).map((e) => {
|
|
@@ -87,7 +87,7 @@ function _({ assignees: e, disabled: _ = !1, hasNextPage: v = !1, onLoadAllAssig
|
|
|
87
87
|
as: "span",
|
|
88
88
|
variant: "bodySmall",
|
|
89
89
|
className: t.statusClass,
|
|
90
|
-
children: A
|
|
90
|
+
children: A(t.message)
|
|
91
91
|
})] })]
|
|
92
92
|
})]
|
|
93
93
|
}, e.id);
|
|
@@ -109,14 +109,14 @@ function _({ assignees: e, disabled: _ = !1, hasNextPage: v = !1, onLoadAllAssig
|
|
|
109
109
|
as: "div",
|
|
110
110
|
variant: "bodySmall",
|
|
111
111
|
color: "textOnLightError",
|
|
112
|
-
children: A
|
|
112
|
+
children: A(t.loadAssigneesError)
|
|
113
113
|
})] }),
|
|
114
114
|
b && P > 0 && /* @__PURE__ */ d(c, {
|
|
115
115
|
className: m.assigneeShowLessButton,
|
|
116
116
|
disabled: _,
|
|
117
117
|
onClick: () => x(!1),
|
|
118
118
|
type: "button",
|
|
119
|
-
children: A
|
|
119
|
+
children: A(t.showLessAssignees)
|
|
120
120
|
})
|
|
121
121
|
]
|
|
122
122
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._assigneeList_hcidg_4{gap:var(--space-2);flex-direction:column;min-width:0;display:flex}._assigneeItem_hcidg_11{align-items:center;gap:var(--space-2);display:flex}._assigneeMeta_hcidg_17{align-items:center;gap:var(--space-1);flex:1;min-width:0;display:flex}._assigneeName_hcidg_25{text-overflow:ellipsis;white-space:nowrap;flex:0 auto;min-width:0;overflow:hidden}._assigneeSeparator_hcidg_33{flex-shrink:0}._assigneeItem_hcidg_11 ._assigneeMeta_hcidg_17 ._assigneeStatusSuccess_hcidg_37{color:var(--bp-green-light-135);flex-shrink:0}._assigneeItem_hcidg_11 ._assigneeMeta_hcidg_17 ._assigneeStatusRejected_hcidg_42{color:var(--text-text-error-on-light,var(--bp-text-text-error-on-light));flex-shrink:0}._assigneeShowMoreRow_hcidg_47{align-self:flex-start;align-items:center;gap:var(--space-2);flex-wrap:wrap;display:flex}._assigneeShowLessButton_hcidg_55{margin-left:var(--space-7)}
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/activity-feed",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.15",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@box/blueprint-web": "^16.12.
|
|
7
|
-
"@box/blueprint-web-assets": "^5.5.
|
|
8
|
-
"@box/collaboration-popover": "^2.1.
|
|
9
|
-
"@box/readable-time": "^2.1.
|
|
10
|
-
"@box/threaded-annotations": "^4.1.
|
|
11
|
-
"@box/user-selector": "^2.1.
|
|
6
|
+
"@box/blueprint-web": "^16.12.1",
|
|
7
|
+
"@box/blueprint-web-assets": "^5.5.8",
|
|
8
|
+
"@box/collaboration-popover": "^2.1.33",
|
|
9
|
+
"@box/readable-time": "^2.1.33",
|
|
10
|
+
"@box/threaded-annotations": "^4.1.8",
|
|
11
|
+
"@box/user-selector": "^2.1.36",
|
|
12
12
|
"clsx": "^1.2.1",
|
|
13
13
|
"react": "^18.0.0",
|
|
14
14
|
"react-dom": "^18.0.0",
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@box/blueprint-web": "^16.12.
|
|
22
|
-
"@box/blueprint-web-assets": "^5.5.
|
|
23
|
-
"@box/collaboration-popover": "^2.1.
|
|
21
|
+
"@box/blueprint-web": "^16.12.1",
|
|
22
|
+
"@box/blueprint-web-assets": "^5.5.8",
|
|
23
|
+
"@box/collaboration-popover": "^2.1.33",
|
|
24
24
|
"@box/eslint-plugin-blueprint": "2.1.10",
|
|
25
|
-
"@box/readable-time": "^2.1.
|
|
26
|
-
"@box/storybook-utils": "1.1.
|
|
27
|
-
"@box/threaded-annotations": "^4.1.
|
|
28
|
-
"@box/user-selector": "^2.1.
|
|
25
|
+
"@box/readable-time": "^2.1.33",
|
|
26
|
+
"@box/storybook-utils": "1.1.32",
|
|
27
|
+
"@box/threaded-annotations": "^4.1.8",
|
|
28
|
+
"@box/user-selector": "^2.1.36",
|
|
29
29
|
"react-intl": "^6.4.2"
|
|
30
30
|
},
|
|
31
31
|
"files": [
|