@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.
- package/package.json +1 -1
- package/src/ui-tailwind/chrome/tw-display-mode-selector.tsx +109 -42
- package/src/ui-tailwind/toolbar/tw-role-action-region.tsx +78 -16
- package/src/ui-tailwind/toolbar/tw-toolbar-icon-button.tsx +4 -0
- package/src/ui-tailwind/toolbar/tw-toolbar.tsx +389 -109
- package/src/ui-tailwind/tw-review-workspace.tsx +5 -0
|
@@ -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");
|