@beyondwork/docx-react-component 1.0.93 → 1.0.94

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.
@@ -372,6 +372,10 @@ export function TwReviewWorkspace(inputProps: TwReviewWorkspaceProps) {
372
372
  snapshot.readOnly ||
373
373
  snapshot.activeStory.kind !== "main" ||
374
374
  effectiveSelectionMode !== "edit";
375
+ const hasEditableSelectionTarget =
376
+ viewState.isFocused &&
377
+ viewState.selection.activeRange.kind === "range" &&
378
+ viewState.activeObjectFrame === null;
375
379
  const hasSidebarPanelAccess = Boolean(
376
380
  props.onReviewSidebarTrackedChanges || props.onReviewSidebarComments,
377
381
  );
@@ -749,6 +753,7 @@ export function TwReviewWorkspace(inputProps: TwReviewWorkspaceProps) {
749
753
  interactionPolicy={toolbarInteractionPolicy}
750
754
  scopedChromePolicy={scopedChromePolicy}
751
755
  compactMode={responsiveChrome.isNarrow}
756
+ hasEditableSelectionTarget={hasEditableSelectionTarget}
752
757
  onOpenHealthRail={() => {
753
758
  setReviewRailOpen(true);
754
759
  props.onActiveRailTabChange?.("health");