@box/activity-feed 1.19.10 → 1.20.1

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.
@@ -1,14 +1,15 @@
1
1
  import { MessageEditorV2 as e } from "@box/threaded-annotations";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
- import '../styles/editor.css';var n = { editorWrapper: "_editorWrapper_1ycxr_1" }, r = ({ disableComponent: r, onPost: i, onPostError: a, onPostSuccess: o, userSelectorProps: s }) => /* @__PURE__ */ t("div", {
3
+ import '../styles/editor.css';var n = { editorWrapper: "_editorWrapper_1ycxr_1" }, r = ({ disableComponent: r, maxCharacterCount: i, onPost: a, onPostError: o, onPostSuccess: s, userSelectorProps: c }) => /* @__PURE__ */ t("div", {
4
4
  className: n.editorWrapper,
5
5
  children: /* @__PURE__ */ t(e, {
6
6
  disableComponent: r,
7
7
  isFirstAnnotation: !1,
8
- onPost: i,
9
- onPostError: a,
10
- onPostSuccess: o,
11
- userSelectorProps: s
8
+ maxCharacterCount: i,
9
+ onPost: a,
10
+ onPostError: o,
11
+ onPostSuccess: s,
12
+ userSelectorProps: c
12
13
  })
13
14
  });
14
15
  export { r as t };
@@ -6,7 +6,7 @@ import { useIntl as o } from "react-intl";
6
6
  import { jsx as s, jsxs as c } from "react/jsx-runtime";
7
7
  import { ApprovalTask as l } from "@box/blueprint-web-assets/icons/Fill";
8
8
  import { Tasks as u } from "@box/blueprint-web-assets/icons/MediumFilled";
9
- import '../styles/task-button.css';var d = { content: "_content_7u0fn_1" }, f = ({ disabled: f = !1, onMenuItemClick: p }) => {
9
+ import '../styles/task-button.css';var d = { content: "_content_wjran_1" }, f = ({ disabled: f = !1, onMenuItemClick: p }) => {
10
10
  let { formatMessage: m } = o(), [h, g] = r(!1), _ = n(!1), v = (e) => {
11
11
  _.current = !0, p(e), g(!1);
12
12
  };
@@ -1 +1 @@
1
- ._content_7u0fn_1{--blueprint-web-dropdown-content-min-width:256px}
1
+ ._content_wjran_1{--blueprint-web-dropdown-content-max-width:18rem;--blueprint-web-dropdown-content-min-width:18rem}
@@ -41,7 +41,7 @@ type ActivityFeedListCompound = ((props: ActivityFeedListProps) => ReactElement)
41
41
  * under `List` and must be rendered inside `ActivityFeed.List`.
42
42
  */
43
43
  export declare const ActivityFeed: {
44
- Editor: ({ disableComponent, onPost, onPostError, onPostSuccess, userSelectorProps }: import('./components/editor').EditorProps) => import("react/jsx-runtime").JSX.Element;
44
+ Editor: ({ disableComponent, maxCharacterCount, onPost, onPostError, onPostSuccess, userSelectorProps, }: import('./components/editor').EditorProps) => import("react/jsx-runtime").JSX.Element;
45
45
  Header: (({ children, title }: import('./components/header/header').HeaderProps) => import("react/jsx-runtime").JSX.Element) & {
46
46
  Actions: ({ children }: {
47
47
  children: ReactNode;
@@ -1,3 +1,3 @@
1
- import { MessageEditorPropsV2 as MessageEditorProps } from '@box/threaded-annotations';
2
- export type EditorProps = Omit<MessageEditorProps, 'variant' | 'isFirstAnnotation' | 'initialContent'>;
3
- export declare const Editor: ({ disableComponent, onPost, onPostError, onPostSuccess, userSelectorProps }: EditorProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { CreateMessageEditorPropsV2 as CreateMessageEditorProps } from '@box/threaded-annotations';
2
+ export type EditorProps = Omit<CreateMessageEditorProps, 'variant' | 'isFirstAnnotation' | 'initialContent'>;
3
+ export declare const Editor: ({ disableComponent, maxCharacterCount, onPost, onPostError, onPostSuccess, userSelectorProps, }: EditorProps) => import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@box/activity-feed",
3
- "version": "1.19.10",
3
+ "version": "1.20.1",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "peerDependencies": {
6
6
  "@box/blueprint-web": "^14.31.0",
7
7
  "@box/blueprint-web-assets": "^4.118.3",
8
8
  "@box/collaboration-popover": "^1.62.9",
9
9
  "@box/readable-time": "^1.41.9",
10
- "@box/threaded-annotations": "^1.89.7",
10
+ "@box/threaded-annotations": "^1.89.8",
11
11
  "@box/user-selector": "^1.76.9",
12
12
  "clsx": "^1.2.1",
13
13
  "react": "^18.0.0",
@@ -24,7 +24,7 @@
24
24
  "@box/eslint-plugin-blueprint": "1.2.1",
25
25
  "@box/readable-time": "^1.41.9",
26
26
  "@box/storybook-utils": "0.19.7",
27
- "@box/threaded-annotations": "^1.89.7",
27
+ "@box/threaded-annotations": "^1.89.8",
28
28
  "@box/user-selector": "^1.76.9",
29
29
  "react-intl": "^6.4.2"
30
30
  },