@box/activity-feed 2.1.28 → 2.1.30
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/header.js
CHANGED
|
@@ -8,12 +8,12 @@ import { useIntl as u } from "react-intl";
|
|
|
8
8
|
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
9
9
|
import { Funnel as p, XMark as m } from "@box/blueprint-web-assets/icons/Medium";
|
|
10
10
|
import '../styles/header.css';var h = {
|
|
11
|
-
header: "
|
|
12
|
-
title: "
|
|
13
|
-
actions: "
|
|
14
|
-
filterMenuContent: "
|
|
15
|
-
filtersTitle: "
|
|
16
|
-
filterTrigger: "
|
|
11
|
+
header: "_header_1hyzr_27",
|
|
12
|
+
title: "_title_1hyzr_37",
|
|
13
|
+
actions: "_actions_1hyzr_45",
|
|
14
|
+
filterMenuContent: "_filterMenuContent_1hyzr_52",
|
|
15
|
+
filtersTitle: "_filtersTitle_1hyzr_56",
|
|
16
|
+
filterTrigger: "_filterTrigger_1hyzr_60"
|
|
17
17
|
}, g = Object.assign(({ children: t, title: n }) => /* @__PURE__ */ f("div", {
|
|
18
18
|
className: h.header,
|
|
19
19
|
"data-resin-component": e.HEADER,
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
function e() {
|
|
2
2
|
let e = null, t = (t) => {
|
|
3
3
|
e = t;
|
|
4
|
-
}, n =
|
|
5
|
-
let n = e?.querySelector(
|
|
4
|
+
}, n = (t) => {
|
|
5
|
+
let n = e?.querySelector(t);
|
|
6
6
|
return n ? (n.scrollIntoView({
|
|
7
7
|
behavior: "smooth",
|
|
8
8
|
block: "nearest"
|
|
9
9
|
}), !0) : !1;
|
|
10
|
-
}
|
|
11
|
-
|
|
10
|
+
}, r = {
|
|
11
|
+
scrollTo: (e) => n(`[data-activity-id="${CSS.escape(e)}"]`),
|
|
12
|
+
scrollToMessage: (e) => n(`[data-message-id="${CSS.escape(e)}"]`)
|
|
13
|
+
};
|
|
14
|
+
return Object.defineProperty(r, "attachContainer", {
|
|
12
15
|
configurable: !0,
|
|
13
16
|
enumerable: !1,
|
|
14
17
|
value: t,
|
|
15
18
|
writable: !0
|
|
16
|
-
}),
|
|
19
|
+
}), r;
|
|
17
20
|
}
|
|
18
21
|
export { e as createActivityFeedScroll };
|
package/dist/styles/header.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._header_1hyzr_27{background:var(--bp-surface-surface);box-sizing:border-box;padding:var(--space-3) var(--space-5) 0;justify-content:space-between;align-items:center;width:100%;display:flex}._title_1hyzr_37{-webkit-line-clamp:1;-webkit-box-orient:vertical;min-width:0;display:-webkit-box;overflow:hidden}._actions_1hyzr_45{align-items:center;gap:var(--space-2);flex-shrink:0;display:flex}._filterMenuContent_1hyzr_52{--blueprint-web-dropdown-content-max-width:18rem}._filtersTitle_1hyzr_56{padding:var(--space-2)}._filterTrigger_1hyzr_60[data-modern]{--icon-toggle-button-off-background:transparent}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
/** Public handle: scroll a keyed list row into view (smooth). */
|
|
1
|
+
/** Public handle: scroll a keyed list row, or a single thread message, into view (smooth). */
|
|
2
2
|
export interface ActivityFeedScrollHandle {
|
|
3
|
-
/** Scroll the row for `id` into view
|
|
3
|
+
/** Scroll the row (whole thread) for `id` into view via `data-activity-id`. Returns false when the row is not mounted. */
|
|
4
4
|
scrollTo: (id: string) => boolean;
|
|
5
|
+
/**
|
|
6
|
+
* Scroll a single thread message into view via `data-message-id` (root or reply). Returns false when
|
|
7
|
+
* the message is not in the DOM — expand the owning thread first (e.g. render it with `defaultExpanded`)
|
|
8
|
+
* so hidden replies are mounted.
|
|
9
|
+
*/
|
|
10
|
+
scrollToMessage: (messageId: string) => boolean;
|
|
5
11
|
}
|
|
6
12
|
/** Internal: same API plus container registration for `ActivityFeed.Root`. */
|
|
7
13
|
export interface InternalActivityFeedScrollHandle extends ActivityFeedScrollHandle {
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/activity-feed",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.30",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@box/blueprint-web": "^16.7.
|
|
7
|
-
"@box/blueprint-web-assets": "^5.4.
|
|
8
|
-
"@box/collaboration-popover": "^2.1.
|
|
9
|
-
"@box/readable-time": "^2.1.
|
|
10
|
-
"@box/threaded-annotations": "^
|
|
11
|
-
"@box/user-selector": "^2.1.
|
|
6
|
+
"@box/blueprint-web": "^16.7.1",
|
|
7
|
+
"@box/blueprint-web-assets": "^5.4.2",
|
|
8
|
+
"@box/collaboration-popover": "^2.1.22",
|
|
9
|
+
"@box/readable-time": "^2.1.22",
|
|
10
|
+
"@box/threaded-annotations": "^4.0.1",
|
|
11
|
+
"@box/user-selector": "^2.1.23",
|
|
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.7.
|
|
22
|
-
"@box/blueprint-web-assets": "^5.4.
|
|
23
|
-
"@box/collaboration-popover": "^2.1.
|
|
21
|
+
"@box/blueprint-web": "^16.7.1",
|
|
22
|
+
"@box/blueprint-web-assets": "^5.4.2",
|
|
23
|
+
"@box/collaboration-popover": "^2.1.22",
|
|
24
24
|
"@box/eslint-plugin-blueprint": "2.1.9",
|
|
25
|
-
"@box/readable-time": "^2.1.
|
|
26
|
-
"@box/storybook-utils": "1.1.
|
|
27
|
-
"@box/threaded-annotations": "^
|
|
28
|
-
"@box/user-selector": "^2.1.
|
|
25
|
+
"@box/readable-time": "^2.1.22",
|
|
26
|
+
"@box/storybook-utils": "1.1.21",
|
|
27
|
+
"@box/threaded-annotations": "^4.0.1",
|
|
28
|
+
"@box/user-selector": "^2.1.23",
|
|
29
29
|
"react-intl": "^6.4.2"
|
|
30
30
|
},
|
|
31
31
|
"files": [
|