@box/activity-feed 2.2.14 → 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.
@@ -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: "_assigneeList_1pmo3_4",
11
- assigneeItem: "_assigneeItem_1pmo3_11",
12
- assigneeMeta: "_assigneeMeta_1pmo3_17",
13
- assigneeName: "_assigneeName_1pmo3_25",
14
- assigneeSeparator: "_assigneeSeparator_1pmo3_34",
15
- assigneeStatusSuccess: "_assigneeStatusSuccess_1pmo3_39",
16
- assigneeStatusRejected: "_assigneeStatusRejected_1pmo3_45",
17
- assigneeShowMoreRow: "_assigneeShowMoreRow_1pmo3_51",
18
- assigneeShowLessButton: "_assigneeShowLessButton_1pmo3_59"
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.formatMessage(t.loadingAssignees) : P > 0 ? v && !O ? A.formatMessage(t.showMoreAssigneesApproximate, { count: P }) : A.formatMessage(t.showMoreAssignees, { count: P }) : A.formatMessage(t.showMore), /* @__PURE__ */ f("div", {
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.formatMessage(t.message)
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.formatMessage(t.loadAssigneesError)
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.formatMessage(t.showLessAssignees)
119
+ children: A(t.showLessAssignees)
120
120
  })
121
121
  ]
122
122
  });
@@ -1 +1 @@
1
- ._assigneeList_1pmo3_4{gap:var(--space-2);flex-direction:column;min-width:0;display:flex}._assigneeItem_1pmo3_11{align-items:center;gap:var(--space-2);display:flex}._assigneeMeta_1pmo3_17{align-items:center;gap:var(--space-1);flex:1;min-width:0;display:flex}._assigneeName_1pmo3_25{text-overflow:ellipsis;white-space:nowrap;flex:0 auto;min-width:0;font-weight:400;overflow:hidden}._assigneeSeparator_1pmo3_34{flex-shrink:0;font-weight:400}._assigneeItem_1pmo3_11 ._assigneeMeta_1pmo3_17 ._assigneeStatusSuccess_1pmo3_39{color:var(--bp-green-light-135);flex-shrink:0;font-weight:400}._assigneeItem_1pmo3_11 ._assigneeMeta_1pmo3_17 ._assigneeStatusRejected_1pmo3_45{color:var(--text-text-error-on-light,var(--bp-text-text-error-on-light));flex-shrink:0;font-weight:400}._assigneeShowMoreRow_1pmo3_51{align-self:flex-start;align-items:center;gap:var(--space-2);flex-wrap:wrap;display:flex}._assigneeShowLessButton_1pmo3_59{margin-left:var(--space-7)}
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/activity-feed",
3
- "version": "2.2.14",
3
+ "version": "2.2.15",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "peerDependencies": {
6
6
  "@box/blueprint-web": "^16.12.1",