@box/activity-feed 2.3.6 → 2.3.8

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 +1 @@
1
- import{ACTIVITY_FEED_RESIN_COMPONENTS,ACTIVITY_FEED_RESIN_FEATURE,ACTIVITY_FEED_RESIN_TARGETS}from"../esm/lib/resin-targets.js";import messages from"../esm/lib/components/task-item/components/task-message/messages.js";import{Button,Popover,Text}from"@box/blueprint-web";import{useIntl}from"react-intl";import{jsx,jsxs}from"react/jsx-runtime";import '../styles/task-delete-confirmation-popover.css';var task_delete_confirmation_popover_module_default={deletePopoverAnchorWrapper:`_deletePopoverAnchorWrapper_2wpp6_3`,deletePopoverAnchor:`_deletePopoverAnchor_2wpp6_3`,deletePopover:`_deletePopover_2wpp6_3`,footer:`_footer_2wpp6_25`};function TaskDeleteConfirmationPopover({confirming=!1,onCancel,onConfirm,onOpenChange,open}){let intl=useIntl();return jsx(`div`,{className:task_delete_confirmation_popover_module_default.deletePopoverAnchorWrapper,children:jsxs(Popover.Root,{modal:!1,onOpenChange,open,children:[jsx(Popover.Anchor,{children:jsx(Text,{as:`span`,className:task_delete_confirmation_popover_module_default.deletePopoverAnchor})}),jsxs(Popover.ContentContainer,{align:`end`,"aria-label":intl.formatMessage(messages.deleteTaskConfirmationDialogAriaLabel),className:task_delete_confirmation_popover_module_default.deletePopover,"data-resin-component":ACTIVITY_FEED_RESIN_COMPONENTS.TASK,"data-resin-feature":ACTIVITY_FEED_RESIN_FEATURE,side:`bottom`,children:[jsx(Popover.MainContent,{children:jsx(Text,{as:`p`,color:`textOnLightDefault`,variant:`bodyDefault`,children:intl.formatMessage(messages.deleteTaskConfirmationBody)})}),jsxs(Popover.Footer,{className:task_delete_confirmation_popover_module_default.footer,children:[jsx(Button,{disabled:confirming,onClick:onCancel,size:`small`,variant:`secondary`,children:intl.formatMessage(messages.deleteTaskConfirmationCancel)}),jsx(Button,{"data-resin-target":ACTIVITY_FEED_RESIN_TARGETS.TASK_DELETE_CONFIRM,loading:confirming,loadingAriaLabel:intl.formatMessage(messages.deleteTaskConfirmationConfirmLoading),onClick:onConfirm,size:`small`,variant:`destructive`,children:intl.formatMessage(messages.deleteTaskConfirmationConfirm)})]})]})]})})}export{TaskDeleteConfirmationPopover as t};
1
+ import{ACTIVITY_FEED_RESIN_COMPONENTS,ACTIVITY_FEED_RESIN_FEATURE,ACTIVITY_FEED_RESIN_TARGETS}from"../esm/lib/resin-targets.js";import messages from"../esm/lib/components/task-item/components/task-message/messages.js";import{Button,Popover,Text}from"@box/blueprint-web";import{useIntl}from"react-intl";import{jsx,jsxs}from"react/jsx-runtime";import '../styles/task-delete-confirmation-popover.css';var task_delete_confirmation_popover_module_default={deletePopoverAnchorWrapper:`_deletePopoverAnchorWrapper_2wpp6_3`,deletePopoverAnchor:`_deletePopoverAnchor_2wpp6_3`,deletePopover:`_deletePopover_2wpp6_3`,footer:`_footer_2wpp6_25`};function TaskDeleteConfirmationPopover({confirming=!1,onCancel,onConfirm,onOpenChange,open}){let intl=useIntl();return jsx(`div`,{className:task_delete_confirmation_popover_module_default.deletePopoverAnchorWrapper,children:jsxs(Popover.Root,{modal:!1,onOpenChange,open,children:[jsx(Popover.Anchor,{children:jsx(Text,{as:`span`,className:task_delete_confirmation_popover_module_default.deletePopoverAnchor})}),jsxs(Popover.ContentContainer,{align:`end`,"aria-label":intl.formatMessage(messages.deleteTaskConfirmationDialogAriaLabel),className:task_delete_confirmation_popover_module_default.deletePopover,"data-resin-component":ACTIVITY_FEED_RESIN_COMPONENTS.TASK,"data-resin-feature":ACTIVITY_FEED_RESIN_FEATURE,onInteractOutside:event=>event.preventDefault(),side:`bottom`,children:[jsx(Popover.MainContent,{children:jsx(Text,{as:`p`,color:`textOnLightDefault`,variant:`bodyDefault`,children:intl.formatMessage(messages.deleteTaskConfirmationBody)})}),jsxs(Popover.Footer,{className:task_delete_confirmation_popover_module_default.footer,children:[jsx(Button,{disabled:confirming,onClick:onCancel,size:`small`,variant:`secondary`,children:intl.formatMessage(messages.deleteTaskConfirmationCancel)}),jsx(Button,{"data-resin-target":ACTIVITY_FEED_RESIN_TARGETS.TASK_DELETE_CONFIRM,loading:confirming,loadingAriaLabel:intl.formatMessage(messages.deleteTaskConfirmationConfirmLoading),onClick:onConfirm,size:`small`,variant:`destructive`,children:intl.formatMessage(messages.deleteTaskConfirmationConfirm)})]})]})]})})}export{TaskDeleteConfirmationPopover as t};
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@box/activity-feed",
3
- "version": "2.3.6",
3
+ "version": "2.3.8",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "peerDependencies": {
6
6
  "@box/blueprint-web": "^16.16.1",
7
7
  "@box/blueprint-web-assets": "^5.6.5",
8
8
  "@box/collaboration-popover": "^2.2.5",
9
9
  "@box/readable-time": "^2.2.5",
10
- "@box/threaded-annotations": "^4.4.0",
10
+ "@box/threaded-annotations": "^4.5.0",
11
11
  "@box/user-selector": "^2.2.5",
12
12
  "clsx": "^1.2.1",
13
13
  "react": "^18.0.0",
@@ -24,7 +24,7 @@
24
24
  "@box/eslint-plugin-blueprint": "2.2.1",
25
25
  "@box/readable-time": "^2.2.5",
26
26
  "@box/storybook-utils": "1.2.5",
27
- "@box/threaded-annotations": "^4.4.0",
27
+ "@box/threaded-annotations": "^4.5.0",
28
28
  "@box/user-selector": "^2.2.5",
29
29
  "react-intl": "^6.4.2"
30
30
  },