@beyondwork/docx-react-component 1.0.120 → 1.0.121
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/README.md +1 -0
- package/dist/api/public-types.cjs +1713 -55
- package/dist/api/public-types.d.cts +2 -2
- package/dist/api/public-types.d.ts +2 -2
- package/dist/api/public-types.js +6 -6
- package/dist/api/v3.cjs +4958 -406
- package/dist/api/v3.d.cts +3 -3
- package/dist/api/v3.d.ts +3 -3
- package/dist/api/v3.js +14 -14
- package/dist/{canonical-document-fNawStsc.d.cts → canonical-document-ByIqTd4s.d.cts} +9 -1
- package/dist/{canonical-document-fNawStsc.d.ts → canonical-document-ByIqTd4s.d.ts} +9 -1
- package/dist/{chunk-5RNMPLXU.js → chunk-37SEJQ3G.js} +4 -4
- package/dist/{chunk-FXGQM2JB.js → chunk-3OFSP2IX.js} +11 -5
- package/dist/{chunk-U5BSQXF4.js → chunk-3OHVK2D6.js} +70 -12
- package/dist/{chunk-AUQDC5BD.js → chunk-3TUQCHYT.js} +101 -2
- package/dist/{chunk-SJSMYEMU.js → chunk-B4YHWFE3.js} +3 -3
- package/dist/{chunk-XC56YLIS.js → chunk-C2LWJ4CZ.js} +4 -0
- package/dist/{chunk-VDIUVT46.js → chunk-CX42VC67.js} +1 -1
- package/dist/{chunk-KCHEAX4Z.js → chunk-EMDH4IQN.js} +148 -70
- package/dist/{chunk-TMQGWF7R.js → chunk-G3B2OBCZ.js} +352 -17
- package/dist/{chunk-VCL5MJMZ.js → chunk-GON2DNTE.js} +149 -28
- package/dist/{chunk-WVZX4NYG.js → chunk-GZW2ERUO.js} +601 -47
- package/dist/{chunk-WDNEPRFW.js → chunk-ICX54W4U.js} +1 -1
- package/dist/{chunk-FIGWJ43K.js → chunk-IT2DK3A7.js} +1883 -90
- package/dist/{chunk-2ZWFQ74R.js → chunk-OBCP6VTG.js} +1 -1
- package/dist/{chunk-FLNQY74K.js → chunk-OYGMRRR7.js} +1 -1
- package/dist/{chunk-MPYYBRVN.js → chunk-PCXTMEGY.js} +782 -124
- package/dist/{chunk-4JNUMMM7.js → chunk-PGGPPZ65.js} +17 -2
- package/dist/{chunk-KHZNNBTN.js → chunk-QFU7ZOAD.js} +43 -39
- package/dist/{chunk-4ZNQFWFM.js → chunk-QIO6V46H.js} +84 -4
- package/dist/{chunk-IQ2VJEF6.js → chunk-QNGJRZ2D.js} +1 -1
- package/dist/{chunk-BM5NSDII.js → chunk-S4ANOS2M.js} +2 -2
- package/dist/{chunk-AQA7OZ2R.js → chunk-TFSXOIAI.js} +959 -43
- package/dist/{chunk-NQZUGMLW.js → chunk-TMU7JMXX.js} +184 -32
- package/dist/{chunk-KD5K5XIA.js → chunk-UHQOUTAX.js} +568 -88
- package/dist/{chunk-327AIUXL.js → chunk-UWDWGQH5.js} +11 -4
- package/dist/{chunk-BBB4GSDB.js → chunk-XVFENXLK.js} +2 -2
- package/dist/{chunk-MUEN2WOG.js → chunk-ZKSDVHGH.js} +6 -3
- package/dist/compare.cjs +17 -2
- package/dist/compare.d.cts +1 -1
- package/dist/compare.d.ts +1 -1
- package/dist/compare.js +3 -3
- package/dist/core/commands/formatting-commands.d.cts +2 -2
- package/dist/core/commands/formatting-commands.d.ts +2 -2
- package/dist/core/commands/image-commands.cjs +814 -45
- package/dist/core/commands/image-commands.d.cts +2 -2
- package/dist/core/commands/image-commands.d.ts +2 -2
- package/dist/core/commands/image-commands.js +8 -8
- package/dist/core/commands/section-layout-commands.d.cts +2 -2
- package/dist/core/commands/section-layout-commands.d.ts +2 -2
- package/dist/core/commands/style-commands.d.cts +2 -2
- package/dist/core/commands/style-commands.d.ts +2 -2
- package/dist/core/commands/table-structure-commands.cjs +750 -42
- package/dist/core/commands/table-structure-commands.d.cts +2 -2
- package/dist/core/commands/table-structure-commands.d.ts +2 -2
- package/dist/core/commands/table-structure-commands.js +6 -6
- package/dist/core/commands/text-commands.cjs +910 -57
- package/dist/core/commands/text-commands.d.cts +2 -2
- package/dist/core/commands/text-commands.d.ts +2 -2
- package/dist/core/commands/text-commands.js +8 -8
- package/dist/core/selection/mapping.d.cts +2 -2
- package/dist/core/selection/mapping.d.ts +2 -2
- package/dist/core/state/editor-state.cjs +17 -2
- package/dist/core/state/editor-state.d.cts +2 -2
- package/dist/core/state/editor-state.d.ts +2 -2
- package/dist/core/state/editor-state.js +2 -2
- package/dist/index.cjs +6203 -625
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +299 -67
- package/dist/io/docx-session.cjs +354 -102
- package/dist/io/docx-session.d.cts +4 -4
- package/dist/io/docx-session.d.ts +4 -4
- package/dist/io/docx-session.js +5 -5
- package/dist/legal.cjs +183 -31
- package/dist/legal.d.cts +1 -1
- package/dist/legal.d.ts +1 -1
- package/dist/legal.js +3 -3
- package/dist/{loader-CaohrhNl.d.ts → loader-BF8ju_LK.d.ts} +22 -4
- package/dist/{loader-BpCyGnZl.d.cts → loader-g54WRvj1.d.cts} +22 -4
- package/dist/{public-types-Dpch9JG0.d.cts → public-types-D_y4Ptcj.d.cts} +747 -21
- package/dist/{public-types-C948HNVF.d.ts → public-types-Dl1jiWjk.d.ts} +747 -21
- package/dist/public-types.cjs +1713 -55
- package/dist/public-types.d.cts +2 -2
- package/dist/public-types.d.ts +2 -2
- package/dist/public-types.js +6 -6
- package/dist/runtime/collab.cjs +4 -0
- package/dist/runtime/collab.d.cts +3 -3
- package/dist/runtime/collab.d.ts +3 -3
- package/dist/runtime/collab.js +2 -2
- package/dist/runtime/document-runtime.cjs +3699 -507
- package/dist/runtime/document-runtime.d.cts +2 -2
- package/dist/runtime/document-runtime.d.ts +2 -2
- package/dist/runtime/document-runtime.js +18 -18
- package/dist/{session-Dqg17V3s.d.ts → session-C1EPAkcI.d.ts} +3 -3
- package/dist/{session-BlXE5zxz.d.cts → session-D15QOO0Q.d.cts} +3 -3
- package/dist/session.cjs +951 -104
- package/dist/session.d.cts +5 -5
- package/dist/session.d.ts +5 -5
- package/dist/session.js +10 -8
- package/dist/tailwind.cjs +1752 -91
- package/dist/tailwind.d.cts +2 -2
- package/dist/tailwind.d.ts +2 -2
- package/dist/tailwind.js +10 -10
- package/dist/{types-C9vZVpKy.d.cts → types-BoSRp2Vg.d.cts} +2 -2
- package/dist/{types-B1tlF1bq.d.ts → types-DEvRwq9C.d.ts} +2 -2
- package/dist/ui-tailwind/editor-surface/search-plugin.d.cts +3 -3
- package/dist/ui-tailwind/editor-surface/search-plugin.d.ts +3 -3
- package/dist/ui-tailwind/editor-surface/search-plugin.js +7 -7
- package/dist/ui-tailwind/theme/editor-theme.css +5 -5
- package/dist/ui-tailwind.cjs +1752 -91
- package/dist/ui-tailwind.d.cts +8 -8
- package/dist/ui-tailwind.d.ts +8 -8
- package/dist/ui-tailwind.js +10 -10
- package/package.json +17 -5
- package/dist/ui-tailwind/theme/tokens.css +0 -382
package/dist/ui-tailwind.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { b$ as CommentSidebarSnapshot, ed as TrackedChangeEntrySnapshot, ee as TrackedChangesSnapshot, c4 as CompatibilityPanelSnapshot, cB as EditorWarning, dn as RuntimeContextAnalyticsSnapshot, eV as ScopeRailSegment, ek as WorkflowBlockedCommandReason, c1 as CommentSidebarThreadSnapshot, eI as WorkspaceMode, eJ as ZoomLevel, eW as ChromePinSurface, eX as PinState, eY as FormattingAlignment, I as InsertTableOptions, dG as SectionBreakType, eZ as InsertImageOptions, dH as SectionLayoutPatch, dI as SectionPageNumberingPatch, cF as HeaderFooterLinkPatch, cx as EditorStoryTarget, R as RuntimeRenderSnapshot, cA as EditorViewStateSnapshot, e_ as SessionCapabilities, e$ as WordReviewEditorLayoutFacet, f0 as GeometryFacet, f1 as WorkflowFacet, f2 as EditorActionHostCallbacks, f3 as TwWorkspaceChromeHostController, f4 as FormattingStateSnapshot, bf as ActiveListContext, dT as StyleCatalogSnapshot, eG as WorkflowScopeSnapshot, cL as InteractionGuardSnapshot, eh as WordReviewEditorChromePreset, eg as WordReviewEditorChromeOptions, bF as CollabSession, b7 as TransportStatus, de as ReviewQueueSnapshot, f5 as UiObjectDragStartInput, f6 as UiObjectDragSession, f7 as ActiveSelectionToolModel, cd as DocumentNavigationSnapshot, f8 as TableStructureContextSnapshot, ei as WordReviewEditorChromeVisibility, f9 as EditorRole, eF as WorkflowScopeMode, dB as ScopeIssueAction, ck as EditorAnchorProjection, cz as EditorUser, h as SelectionSnapshot, dX as SurfaceBlockSnapshot, dY as SurfaceInlineSegment, bZ as CommentPresentationSnapshot, bO as CommentBody, bQ as CommentMention, bM as CommentAttachment, fa as ToolbarChromeItemId, fb as ToolbarChromePlacement, dJ as SelectionToolKind, fc as ScopeRailPosture, fd as ChromePinsState, fe as PublicMeasurementFidelity, ff as FormattingInlineSelectionToolModel, b9 as PresenceSnapshot, b8 as CollabPosture, bN as CommentAudience, cU as MetadataIntegrity, bT as CommentNegotiationEntry, c_ as NegotiationRole, bR as CommentNegotiationAction, d0 as PageLayoutSnapshot } from './public-types-
|
|
3
|
-
export {
|
|
2
|
+
import { b$ as CommentSidebarSnapshot, ed as TrackedChangeEntrySnapshot, ee as TrackedChangesSnapshot, c4 as CompatibilityPanelSnapshot, cB as EditorWarning, dn as RuntimeContextAnalyticsSnapshot, eV as ScopeRailSegment, ek as WorkflowBlockedCommandReason, c1 as CommentSidebarThreadSnapshot, eI as WorkspaceMode, eJ as ZoomLevel, eW as ChromePinSurface, eX as PinState, eY as FormattingAlignment, I as InsertTableOptions, dG as SectionBreakType, eZ as InsertImageOptions, dH as SectionLayoutPatch, dI as SectionPageNumberingPatch, cF as HeaderFooterLinkPatch, cx as EditorStoryTarget, R as RuntimeRenderSnapshot, cA as EditorViewStateSnapshot, e_ as SessionCapabilities, e$ as WordReviewEditorLayoutFacet, f0 as GeometryFacet, f1 as WorkflowFacet, f2 as EditorActionHostCallbacks, f3 as TwWorkspaceChromeHostController, f4 as FormattingStateSnapshot, bf as ActiveListContext, dT as StyleCatalogSnapshot, eG as WorkflowScopeSnapshot, cL as InteractionGuardSnapshot, eh as WordReviewEditorChromePreset, eg as WordReviewEditorChromeOptions, bF as CollabSession, b7 as TransportStatus, de as ReviewQueueSnapshot, f5 as UiObjectDragStartInput, f6 as UiObjectDragSession, f7 as ActiveSelectionToolModel, cd as DocumentNavigationSnapshot, f8 as TableStructureContextSnapshot, ei as WordReviewEditorChromeVisibility, f9 as EditorRole, eF as WorkflowScopeMode, dB as ScopeIssueAction, ck as EditorAnchorProjection, cz as EditorUser, h as SelectionSnapshot, dX as SurfaceBlockSnapshot, dY as SurfaceInlineSegment, bZ as CommentPresentationSnapshot, bO as CommentBody, bQ as CommentMention, bM as CommentAttachment, fa as ToolbarChromeItemId, fb as ToolbarChromePlacement, dJ as SelectionToolKind, fc as ScopeRailPosture, fd as ChromePinsState, fe as PublicMeasurementFidelity, ff as FormattingInlineSelectionToolModel, b9 as PresenceSnapshot, b8 as CollabPosture, bN as CommentAudience, cU as MetadataIntegrity, bT as CommentNegotiationEntry, c_ as NegotiationRole, bR as CommentNegotiationAction, d0 as PageLayoutSnapshot, fg as EditableTargetRef } from './public-types-D_y4Ptcj.cjs';
|
|
3
|
+
export { fh as deriveCapabilities } from './public-types-D_y4Ptcj.cjs';
|
|
4
4
|
import * as React$1 from 'react';
|
|
5
5
|
import React__default, { ReactNode, FocusEventHandler, Ref, KeyboardEvent as KeyboardEvent$1 } from 'react';
|
|
6
6
|
import 'yjs';
|
|
7
7
|
import 'y-protocols/awareness';
|
|
8
|
-
import './canonical-document-
|
|
8
|
+
import './canonical-document-ByIqTd4s.cjs';
|
|
9
9
|
import 'prosemirror-state';
|
|
10
10
|
import 'prosemirror-model';
|
|
11
11
|
|
|
@@ -1109,10 +1109,10 @@ interface TwToolbarIconButtonProps {
|
|
|
1109
1109
|
disabled?: boolean;
|
|
1110
1110
|
disabledReason?: string;
|
|
1111
1111
|
/**
|
|
1112
|
-
* Active / pressed state.
|
|
1113
|
-
*
|
|
1114
|
-
*
|
|
1115
|
-
* header primary action
|
|
1112
|
+
* Active / pressed state. Active = neutral elevated surface + accent
|
|
1113
|
+
* glyph + 1 px accent border. No mint fill — chrome surfaces stay
|
|
1114
|
+
* neutral, accent appears only as glyph color and border. Filled-CTA
|
|
1115
|
+
* grammar is reserved for the shell header primary action.
|
|
1116
1116
|
*/
|
|
1117
1117
|
active?: boolean;
|
|
1118
1118
|
/**
|
|
@@ -2003,7 +2003,7 @@ declare function createEditorKeyboardHandler(context: EditorKeyboardContext, cal
|
|
|
2003
2003
|
* `src/core/state/editor-state.ts` produces the internal `RangeAnchor`
|
|
2004
2004
|
* shape (`range: { from, to }`) — the two are not interchangeable.
|
|
2005
2005
|
*/
|
|
2006
|
-
declare function createSelectionSnapshot(anchor: number, head?: number): SelectionSnapshot;
|
|
2006
|
+
declare function createSelectionSnapshot(anchor: number, head?: number, editableTarget?: EditableTargetRef): SelectionSnapshot;
|
|
2007
2007
|
declare function selectionTouchesRange(selection: SelectionSnapshot, from: number, to: number): boolean;
|
|
2008
2008
|
|
|
2009
2009
|
export { type BreakpointMap, CollabAudienceChip, type CollabAudienceChipProps, CollabNegotiationActionBar, type CollabNegotiationActionBarProps, CollabPresenceStrip, type CollabPresenceStripProps, CollabRoleChip, type CollabRoleChipProps, CollabSendToSupplierButton, type CollabSendToSupplierButtonProps, CollabSendToSupplierModal, type CollabSendToSupplierModalProps, type CollabSendToSupplierSubmitArgs, CollabTamperBanner, type CollabTamperBannerProps, type CommandPaletteGroup, type CommandPaletteItem, type CommentDecorationModel, CommentMarkdownRenderer, type CommentMarkdownRendererProps, type EditorKeyboardCallbacks, type EditorKeyboardContext, type MarkupDisplay, type RailCardAvatar, type RailCardCounter, type RailCardProgress, type RailCardTone, type ReviewRailTab, type RevisionDecorationModel, SessionCapabilities, type ShellHeaderIconAction, type ShellHeaderMode, type ShellHeaderModeOption, type ShellHeaderPrimaryAction, TwAlertBanner, TwChromeOverlay, type TwChromeOverlayProps, TwCommandPalette, TwCommandPaletteMount, type TwCommandPaletteMountProps, type TwCommandPaletteProps, TwCommentSidebar, type TwCommentSidebarProps, TwEditorSurface, type TwEditorSurfaceProps, TwHealthPanel, TwInlineToken, TwOpaqueBlock, TwParagraphBlock, TwPasteDropToast, type TwPasteDropToastProps, TwRailCard, type TwRailCardProps, TwReviewRail, TwReviewRailFooter, type TwReviewRailFooterProps, type TwReviewRailProps, TwReviewWorkspace, type TwReviewWorkspaceProps, TwRevisionSidebar, TwScopeRailLayer, type TwScopeRailLayerProps, TwSegmentView, TwSelectionToolbar, TwShellHeader, type TwShellHeaderProps, TwStatusBar, TwToolbar, TwToolbarIconButton, type TwToolbarProps, TwWorkflowTab, type TwWorkflowTabProps, WorkspaceMode, ZoomLevel, createCommentDecorationModel, createEditorKeyboardHandler, createRevisionDecorationModel, createSelectionSnapshot, getCommentHighlightClass, getCommentRangeState, getRevisionHighlightClass, getRevisionRangeState, isCommandPaletteOpenShortcut, renderTwCaret, resolveBreakpoint, selectionTouchesRange, shouldHideInCleanMode, useContainerBreakpoint };
|
package/dist/ui-tailwind.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { b$ as CommentSidebarSnapshot, ed as TrackedChangeEntrySnapshot, ee as TrackedChangesSnapshot, c4 as CompatibilityPanelSnapshot, cB as EditorWarning, dn as RuntimeContextAnalyticsSnapshot, eV as ScopeRailSegment, ek as WorkflowBlockedCommandReason, c1 as CommentSidebarThreadSnapshot, eI as WorkspaceMode, eJ as ZoomLevel, eW as ChromePinSurface, eX as PinState, eY as FormattingAlignment, I as InsertTableOptions, dG as SectionBreakType, eZ as InsertImageOptions, dH as SectionLayoutPatch, dI as SectionPageNumberingPatch, cF as HeaderFooterLinkPatch, cx as EditorStoryTarget, R as RuntimeRenderSnapshot, cA as EditorViewStateSnapshot, e_ as SessionCapabilities, e$ as WordReviewEditorLayoutFacet, f0 as GeometryFacet, f1 as WorkflowFacet, f2 as EditorActionHostCallbacks, f3 as TwWorkspaceChromeHostController, f4 as FormattingStateSnapshot, bf as ActiveListContext, dT as StyleCatalogSnapshot, eG as WorkflowScopeSnapshot, cL as InteractionGuardSnapshot, eh as WordReviewEditorChromePreset, eg as WordReviewEditorChromeOptions, bF as CollabSession, b7 as TransportStatus, de as ReviewQueueSnapshot, f5 as UiObjectDragStartInput, f6 as UiObjectDragSession, f7 as ActiveSelectionToolModel, cd as DocumentNavigationSnapshot, f8 as TableStructureContextSnapshot, ei as WordReviewEditorChromeVisibility, f9 as EditorRole, eF as WorkflowScopeMode, dB as ScopeIssueAction, ck as EditorAnchorProjection, cz as EditorUser, h as SelectionSnapshot, dX as SurfaceBlockSnapshot, dY as SurfaceInlineSegment, bZ as CommentPresentationSnapshot, bO as CommentBody, bQ as CommentMention, bM as CommentAttachment, fa as ToolbarChromeItemId, fb as ToolbarChromePlacement, dJ as SelectionToolKind, fc as ScopeRailPosture, fd as ChromePinsState, fe as PublicMeasurementFidelity, ff as FormattingInlineSelectionToolModel, b9 as PresenceSnapshot, b8 as CollabPosture, bN as CommentAudience, cU as MetadataIntegrity, bT as CommentNegotiationEntry, c_ as NegotiationRole, bR as CommentNegotiationAction, d0 as PageLayoutSnapshot } from './public-types-
|
|
3
|
-
export {
|
|
2
|
+
import { b$ as CommentSidebarSnapshot, ed as TrackedChangeEntrySnapshot, ee as TrackedChangesSnapshot, c4 as CompatibilityPanelSnapshot, cB as EditorWarning, dn as RuntimeContextAnalyticsSnapshot, eV as ScopeRailSegment, ek as WorkflowBlockedCommandReason, c1 as CommentSidebarThreadSnapshot, eI as WorkspaceMode, eJ as ZoomLevel, eW as ChromePinSurface, eX as PinState, eY as FormattingAlignment, I as InsertTableOptions, dG as SectionBreakType, eZ as InsertImageOptions, dH as SectionLayoutPatch, dI as SectionPageNumberingPatch, cF as HeaderFooterLinkPatch, cx as EditorStoryTarget, R as RuntimeRenderSnapshot, cA as EditorViewStateSnapshot, e_ as SessionCapabilities, e$ as WordReviewEditorLayoutFacet, f0 as GeometryFacet, f1 as WorkflowFacet, f2 as EditorActionHostCallbacks, f3 as TwWorkspaceChromeHostController, f4 as FormattingStateSnapshot, bf as ActiveListContext, dT as StyleCatalogSnapshot, eG as WorkflowScopeSnapshot, cL as InteractionGuardSnapshot, eh as WordReviewEditorChromePreset, eg as WordReviewEditorChromeOptions, bF as CollabSession, b7 as TransportStatus, de as ReviewQueueSnapshot, f5 as UiObjectDragStartInput, f6 as UiObjectDragSession, f7 as ActiveSelectionToolModel, cd as DocumentNavigationSnapshot, f8 as TableStructureContextSnapshot, ei as WordReviewEditorChromeVisibility, f9 as EditorRole, eF as WorkflowScopeMode, dB as ScopeIssueAction, ck as EditorAnchorProjection, cz as EditorUser, h as SelectionSnapshot, dX as SurfaceBlockSnapshot, dY as SurfaceInlineSegment, bZ as CommentPresentationSnapshot, bO as CommentBody, bQ as CommentMention, bM as CommentAttachment, fa as ToolbarChromeItemId, fb as ToolbarChromePlacement, dJ as SelectionToolKind, fc as ScopeRailPosture, fd as ChromePinsState, fe as PublicMeasurementFidelity, ff as FormattingInlineSelectionToolModel, b9 as PresenceSnapshot, b8 as CollabPosture, bN as CommentAudience, cU as MetadataIntegrity, bT as CommentNegotiationEntry, c_ as NegotiationRole, bR as CommentNegotiationAction, d0 as PageLayoutSnapshot, fg as EditableTargetRef } from './public-types-Dl1jiWjk.js';
|
|
3
|
+
export { fh as deriveCapabilities } from './public-types-Dl1jiWjk.js';
|
|
4
4
|
import * as React$1 from 'react';
|
|
5
5
|
import React__default, { ReactNode, FocusEventHandler, Ref, KeyboardEvent as KeyboardEvent$1 } from 'react';
|
|
6
6
|
import 'yjs';
|
|
7
7
|
import 'y-protocols/awareness';
|
|
8
|
-
import './canonical-document-
|
|
8
|
+
import './canonical-document-ByIqTd4s.js';
|
|
9
9
|
import 'prosemirror-state';
|
|
10
10
|
import 'prosemirror-model';
|
|
11
11
|
|
|
@@ -1109,10 +1109,10 @@ interface TwToolbarIconButtonProps {
|
|
|
1109
1109
|
disabled?: boolean;
|
|
1110
1110
|
disabledReason?: string;
|
|
1111
1111
|
/**
|
|
1112
|
-
* Active / pressed state.
|
|
1113
|
-
*
|
|
1114
|
-
*
|
|
1115
|
-
* header primary action
|
|
1112
|
+
* Active / pressed state. Active = neutral elevated surface + accent
|
|
1113
|
+
* glyph + 1 px accent border. No mint fill — chrome surfaces stay
|
|
1114
|
+
* neutral, accent appears only as glyph color and border. Filled-CTA
|
|
1115
|
+
* grammar is reserved for the shell header primary action.
|
|
1116
1116
|
*/
|
|
1117
1117
|
active?: boolean;
|
|
1118
1118
|
/**
|
|
@@ -2003,7 +2003,7 @@ declare function createEditorKeyboardHandler(context: EditorKeyboardContext, cal
|
|
|
2003
2003
|
* `src/core/state/editor-state.ts` produces the internal `RangeAnchor`
|
|
2004
2004
|
* shape (`range: { from, to }`) — the two are not interchangeable.
|
|
2005
2005
|
*/
|
|
2006
|
-
declare function createSelectionSnapshot(anchor: number, head?: number): SelectionSnapshot;
|
|
2006
|
+
declare function createSelectionSnapshot(anchor: number, head?: number, editableTarget?: EditableTargetRef): SelectionSnapshot;
|
|
2007
2007
|
declare function selectionTouchesRange(selection: SelectionSnapshot, from: number, to: number): boolean;
|
|
2008
2008
|
|
|
2009
2009
|
export { type BreakpointMap, CollabAudienceChip, type CollabAudienceChipProps, CollabNegotiationActionBar, type CollabNegotiationActionBarProps, CollabPresenceStrip, type CollabPresenceStripProps, CollabRoleChip, type CollabRoleChipProps, CollabSendToSupplierButton, type CollabSendToSupplierButtonProps, CollabSendToSupplierModal, type CollabSendToSupplierModalProps, type CollabSendToSupplierSubmitArgs, CollabTamperBanner, type CollabTamperBannerProps, type CommandPaletteGroup, type CommandPaletteItem, type CommentDecorationModel, CommentMarkdownRenderer, type CommentMarkdownRendererProps, type EditorKeyboardCallbacks, type EditorKeyboardContext, type MarkupDisplay, type RailCardAvatar, type RailCardCounter, type RailCardProgress, type RailCardTone, type ReviewRailTab, type RevisionDecorationModel, SessionCapabilities, type ShellHeaderIconAction, type ShellHeaderMode, type ShellHeaderModeOption, type ShellHeaderPrimaryAction, TwAlertBanner, TwChromeOverlay, type TwChromeOverlayProps, TwCommandPalette, TwCommandPaletteMount, type TwCommandPaletteMountProps, type TwCommandPaletteProps, TwCommentSidebar, type TwCommentSidebarProps, TwEditorSurface, type TwEditorSurfaceProps, TwHealthPanel, TwInlineToken, TwOpaqueBlock, TwParagraphBlock, TwPasteDropToast, type TwPasteDropToastProps, TwRailCard, type TwRailCardProps, TwReviewRail, TwReviewRailFooter, type TwReviewRailFooterProps, type TwReviewRailProps, TwReviewWorkspace, type TwReviewWorkspaceProps, TwRevisionSidebar, TwScopeRailLayer, type TwScopeRailLayerProps, TwSegmentView, TwSelectionToolbar, TwShellHeader, type TwShellHeaderProps, TwStatusBar, TwToolbar, TwToolbarIconButton, type TwToolbarProps, TwWorkflowTab, type TwWorkflowTabProps, WorkspaceMode, ZoomLevel, createCommentDecorationModel, createEditorKeyboardHandler, createRevisionDecorationModel, createSelectionSnapshot, getCommentHighlightClass, getCommentRangeState, getRevisionHighlightClass, getRevisionRangeState, isCommandPaletteOpenShortcut, renderTwCaret, resolveBreakpoint, selectionTouchesRange, shouldHideInCleanMode, useContainerBreakpoint };
|
package/dist/ui-tailwind.js
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
TwShellHeader,
|
|
10
10
|
createEditorKeyboardHandler,
|
|
11
11
|
renderTwCaret
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-B4YHWFE3.js";
|
|
13
13
|
import {
|
|
14
14
|
CollabAudienceChip,
|
|
15
15
|
CollabNegotiationActionBar,
|
|
@@ -47,19 +47,19 @@ import {
|
|
|
47
47
|
selectionTouchesRange,
|
|
48
48
|
shouldHideInCleanMode,
|
|
49
49
|
useContainerBreakpoint
|
|
50
|
-
} from "./chunk-
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
50
|
+
} from "./chunk-QFU7ZOAD.js";
|
|
51
|
+
import "./chunk-GZW2ERUO.js";
|
|
52
|
+
import "./chunk-GON2DNTE.js";
|
|
53
53
|
import {
|
|
54
54
|
deriveCapabilities
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-G3B2OBCZ.js";
|
|
56
56
|
import "./chunk-KFCQYZXR.js";
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
57
|
+
import "./chunk-QIO6V46H.js";
|
|
58
|
+
import "./chunk-3TUQCHYT.js";
|
|
59
|
+
import "./chunk-OYGMRRR7.js";
|
|
60
|
+
import "./chunk-TFSXOIAI.js";
|
|
61
61
|
import "./chunk-UFVDIR2C.js";
|
|
62
|
-
import "./chunk-
|
|
62
|
+
import "./chunk-PGGPPZ65.js";
|
|
63
63
|
import "./chunk-DNXYUIIS.js";
|
|
64
64
|
import "./chunk-M2HUK3KF.js";
|
|
65
65
|
export {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@beyondwork/docx-react-component",
|
|
3
3
|
"publisher": "beyondwork",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.121",
|
|
5
5
|
"description": "Embeddable React Word (docx) editor with review, comments, tracked changes, and round-trip OOXML fidelity.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"sideEffects": [
|
|
@@ -121,8 +121,7 @@
|
|
|
121
121
|
"import": "./dist/core/state/editor-state.js",
|
|
122
122
|
"require": "./dist/core/state/editor-state.cjs"
|
|
123
123
|
},
|
|
124
|
-
"./ui-tailwind/theme/editor-theme.css": "./dist/ui-tailwind/theme/editor-theme.css"
|
|
125
|
-
"./ui-tailwind/theme/tokens.css": "./dist/ui-tailwind/theme/tokens.css"
|
|
124
|
+
"./ui-tailwind/theme/editor-theme.css": "./dist/ui-tailwind/theme/editor-theme.css"
|
|
126
125
|
},
|
|
127
126
|
"keywords": [
|
|
128
127
|
"docx",
|
|
@@ -202,7 +201,6 @@
|
|
|
202
201
|
"prosemirror-view": "^1.41.7",
|
|
203
202
|
"react": "19.2.4",
|
|
204
203
|
"react-dom": "19.2.4",
|
|
205
|
-
"server-only": "^0.0.1",
|
|
206
204
|
"tsup": "^8.3.0",
|
|
207
205
|
"tsx": "^4.21.0",
|
|
208
206
|
"y-prosemirror": "^1.3.7",
|
|
@@ -231,11 +229,16 @@
|
|
|
231
229
|
"test:visual:local": "VISUAL_SMOKE_PROFILE=bare pnpm exec playwright test --project=chromium",
|
|
232
230
|
"test:visual:chrome:local": "VISUAL_SMOKE_PROFILE=chrome-cycle pnpm exec playwright test --project=chromium",
|
|
233
231
|
"test:visual:redline:local": "VISUAL_SMOKE_PROFILE=redline-cycle pnpm exec playwright test --project=chromium",
|
|
232
|
+
"visual:compare-page": "node scripts/visual-compare-page.mjs",
|
|
234
233
|
"visual:inspect": "node scripts/visual-inspect-mcp.mjs",
|
|
235
234
|
"visual:list-runs": "node scripts/visual-smoke-list-runs.mjs",
|
|
235
|
+
"position-audit": "node --import ./scripts/server-only-shim.mjs --import tsx scripts/run-position-intent-audit.ts",
|
|
236
|
+
"position-audit:corpus": "node --import ./scripts/server-only-shim.mjs --import tsx scripts/run-position-audit-corpus.ts",
|
|
237
|
+
"position-audit:full-ui": "bash scripts/run-tool-workspace-command.sh pnpm exec playwright test test/visual-fidelity/position-intent-audit.spec.ts --project=chromium",
|
|
236
238
|
"mcp:visual-inspect": "node scripts/visual-inspect-mcp.mjs",
|
|
237
239
|
"mcp:visual-smoke": "bash scripts/tool-runner-mcp.sh visual-smoke",
|
|
238
240
|
"mcp:scope-calibration": "bash scripts/tool-runner-mcp.sh scope-calibration",
|
|
241
|
+
"mcp:position-audit": "bash scripts/tool-runner-mcp.sh position-audit",
|
|
239
242
|
"lint": "pnpm run lint:no-authored-js && pnpm run lint:docs-contracts && pnpm run lint:tsgo && pnpm run lint:tsgo:harness && pnpm run ci-check:session-layer-purity && pnpm run ci-check:no-session-internals-leak",
|
|
240
243
|
"ci-check:session-layer-purity": "node scripts/ci-check-session-layer-purity.mjs",
|
|
241
244
|
"ci-check:no-session-internals-leak": "node scripts/ci-check-no-session-internals-leak.mjs",
|
|
@@ -271,6 +274,7 @@
|
|
|
271
274
|
"mcp:tool-runner:ooxml-validator": "bash scripts/tool-runner-mcp.sh ooxml-validator",
|
|
272
275
|
"mcp:tool-runner:truth": "bash scripts/tool-runner-mcp.sh truth",
|
|
273
276
|
"mcp:tool-runner:scope-calibration": "bash scripts/tool-runner-mcp.sh scope-calibration",
|
|
277
|
+
"mcp:tool-runner:position-audit": "bash scripts/tool-runner-mcp.sh position-audit",
|
|
274
278
|
"graph-oracle:build-static": "bash scripts/run-tool-workspace-command.sh node --import tsx services/truth-baseline/backends/word-graph-pdf/graph-oracle.ts build-static",
|
|
275
279
|
"graph-oracle": "bash scripts/run-tool-workspace-command.sh node --import tsx services/truth-baseline/backends/word-graph-pdf/graph-oracle.ts",
|
|
276
280
|
"graph-oracle:build-static:local": "node --import tsx services/truth-baseline/backends/word-graph-pdf/graph-oracle.ts build-static",
|
|
@@ -281,6 +285,14 @@
|
|
|
281
285
|
"word-oracle:local": "node --import tsx services/truth-baseline/backends/word-com/word-oracle.ts",
|
|
282
286
|
"corpus-render:layout": "node scripts/organize-corpus-renders.mjs",
|
|
283
287
|
"corpus-render:assets": "bash scripts/run-corpus-render-assets.sh",
|
|
284
|
-
"corpus-render:assets:local": "node scripts/generate-corpus-render-assets.mjs"
|
|
288
|
+
"corpus-render:assets:local": "node scripts/generate-corpus-render-assets.mjs",
|
|
289
|
+
"word-vm:config": "node scripts/word-vm-fleet.mjs config",
|
|
290
|
+
"word-vm:doctor": "node scripts/word-vm-fleet.mjs doctor",
|
|
291
|
+
"word-vm:status": "node scripts/word-vm-fleet.mjs status",
|
|
292
|
+
"word-vm:ports": "node scripts/word-vm-fleet.mjs ports",
|
|
293
|
+
"word-vm:ssh": "node scripts/word-vm-fleet.mjs ssh",
|
|
294
|
+
"word-vm:start": "node scripts/word-vm-fleet.mjs start",
|
|
295
|
+
"word-vm:shutdown": "node scripts/word-vm-fleet.mjs shutdown",
|
|
296
|
+
"word-oracle:runner-wrapper": "node scripts/word-com-runner-wrapper.mjs"
|
|
285
297
|
}
|
|
286
298
|
}
|
|
@@ -1,382 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @beyondwork/docx-react-component — canonical design tokens
|
|
3
|
-
*
|
|
4
|
-
* Source of truth for every color, shadow, radius, space, and motion value
|
|
5
|
-
* consumed by the chrome and document surface. Values are copied verbatim
|
|
6
|
-
* from `docs/reference/designsystem.md` §10 (starter CSS). Any hex change
|
|
7
|
-
* happens HERE and in `tokens.ts` — never in a component file.
|
|
8
|
-
*
|
|
9
|
-
* Two-layer model:
|
|
10
|
-
* 1. Product names (TypeScript) — `BRAND_TOKENS.color.accent.primary`
|
|
11
|
-
* 2. CSS variables (this file) — `var(--color-accent-primary)`
|
|
12
|
-
*
|
|
13
|
-
* See `docs/wiki/design-tokens.md` for narrative + eviction policy.
|
|
14
|
-
*
|
|
15
|
-
* Host overrides:
|
|
16
|
-
* Allowed — accent family, `--color-bg-app`, `--radius-*`, `--motion-*`
|
|
17
|
-
* Locked — semantic, change, comment, canvas, focus-ring
|
|
18
|
-
* See `docs/reference/designsystem.md` §8.5 + §9.
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
:root {
|
|
22
|
-
/* Backgrounds */
|
|
23
|
-
--color-bg-app: #F4F7F5;
|
|
24
|
-
--color-bg-chrome: #FAFCFA;
|
|
25
|
-
--color-bg-sidebar: #F1F6F2;
|
|
26
|
-
--color-bg-canvas: #FFFFFF;
|
|
27
|
-
--color-bg-elevated: #FFFFFF;
|
|
28
|
-
--color-bg-hover: #EAF6EF;
|
|
29
|
-
--color-bg-selected: #E2F2E8;
|
|
30
|
-
--color-bg-muted: #F7FAF8;
|
|
31
|
-
--color-bg-overlay: rgba(21, 26, 23, 0.08);
|
|
32
|
-
|
|
33
|
-
/* Borders */
|
|
34
|
-
--color-border-subtle: #E2EAE4;
|
|
35
|
-
--color-border-default: #D3DED6;
|
|
36
|
-
--color-border-strong: #BECDBF;
|
|
37
|
-
--color-border-accent: #8FC9AD;
|
|
38
|
-
|
|
39
|
-
/* Text */
|
|
40
|
-
--color-text-primary: #151A17;
|
|
41
|
-
--color-text-secondary: #5E6D63;
|
|
42
|
-
--color-text-tertiary: #8A978F;
|
|
43
|
-
--color-text-quiet: #A4AEA8;
|
|
44
|
-
--color-text-inverse: #F7FAF8;
|
|
45
|
-
--color-text-on-accent: #F7FAF8;
|
|
46
|
-
--color-text-on-soft-accent: #18563F;
|
|
47
|
-
|
|
48
|
-
/* Accent (host-overridable) */
|
|
49
|
-
--color-accent-primary: #1F6B4F;
|
|
50
|
-
--color-accent-primary-hover: #18563F;
|
|
51
|
-
--color-accent-primary-active: #124432;
|
|
52
|
-
--color-accent-secondary: #72D6AE;
|
|
53
|
-
--color-accent-secondary-hover: #5FC79C;
|
|
54
|
-
--color-accent-secondary-active: #49B785;
|
|
55
|
-
--color-accent-soft: #DDF1E4;
|
|
56
|
-
--color-accent-soft-hover: #CEEAD8;
|
|
57
|
-
|
|
58
|
-
/* Semantic (locked) */
|
|
59
|
-
--color-semantic-success: #1F8A5B;
|
|
60
|
-
--color-semantic-success-soft: #DDF3E8;
|
|
61
|
-
--color-semantic-warning: #D58B1E;
|
|
62
|
-
--color-semantic-warning-soft: #FBEFD8;
|
|
63
|
-
--color-semantic-error: #D95C67;
|
|
64
|
-
--color-semantic-error-soft: #FBE3E6;
|
|
65
|
-
--color-semantic-info: #2F8FCE;
|
|
66
|
-
--color-semantic-info-soft: #DCEFFC;
|
|
67
|
-
|
|
68
|
-
/* Field */
|
|
69
|
-
--color-field-fill: #F6FAF7;
|
|
70
|
-
--color-field-editable: #EEF8F0;
|
|
71
|
-
--color-field-focus: #DDF1E4;
|
|
72
|
-
--color-field-invalid: #FBE3E6;
|
|
73
|
-
--color-field-warning: #FBEFD8;
|
|
74
|
-
|
|
75
|
-
/* Status */
|
|
76
|
-
--color-status-ready: #1F8A5B;
|
|
77
|
-
--color-status-in-progress: #2F8FCE;
|
|
78
|
-
--color-status-paused: #8A978F;
|
|
79
|
-
--color-status-blocked: #D95C67;
|
|
80
|
-
--color-status-review: #1F6B4F;
|
|
81
|
-
--color-status-draft: #72907E;
|
|
82
|
-
|
|
83
|
-
/* Comment (locked) */
|
|
84
|
-
--color-comment-marker: #1F6B4F;
|
|
85
|
-
--color-comment-marker-hover: #18563F;
|
|
86
|
-
--color-comment-thread-bg: #F3FAF6;
|
|
87
|
-
|
|
88
|
-
/* Change (locked) */
|
|
89
|
-
--color-change-insertion: #DDF3E8;
|
|
90
|
-
--color-change-deletion: #FBE3E6;
|
|
91
|
-
--color-change-comment: #E8F4EC;
|
|
92
|
-
--color-change-selection: #DDF1E4;
|
|
93
|
-
|
|
94
|
-
/* Highlight (user-driven content, stable across themes — §3 cell-fill + text-highlight family) */
|
|
95
|
-
--color-highlight-default: #FFF59D;
|
|
96
|
-
|
|
97
|
-
/* Chart — categorical */
|
|
98
|
-
--color-chart-categorical-1: #1F6B4F;
|
|
99
|
-
--color-chart-categorical-2: #72D6AE;
|
|
100
|
-
--color-chart-categorical-3: #2F8FCE;
|
|
101
|
-
--color-chart-categorical-4: #D58B1E;
|
|
102
|
-
--color-chart-categorical-5: #7A6AF0;
|
|
103
|
-
--color-chart-categorical-6: #D95C67;
|
|
104
|
-
--color-chart-categorical-7: #5E8E7A;
|
|
105
|
-
--color-chart-categorical-8: #A7D9C1;
|
|
106
|
-
|
|
107
|
-
/* Chart — sequential */
|
|
108
|
-
--color-chart-sequential-1: #EAF6EF;
|
|
109
|
-
--color-chart-sequential-2: #D4EEDD;
|
|
110
|
-
--color-chart-sequential-3: #B4DFC8;
|
|
111
|
-
--color-chart-sequential-4: #8FC9AD;
|
|
112
|
-
--color-chart-sequential-5: #5FA985;
|
|
113
|
-
--color-chart-sequential-6: #1F6B4F;
|
|
114
|
-
|
|
115
|
-
/* Chart — diverging */
|
|
116
|
-
--color-chart-diverging-neg-strong: #C94B57;
|
|
117
|
-
--color-chart-diverging-neg: #E9979F;
|
|
118
|
-
--color-chart-diverging-neutral: #E9EFEA;
|
|
119
|
-
--color-chart-diverging-pos: #97D1B3;
|
|
120
|
-
--color-chart-diverging-pos-strong: #1F6B4F;
|
|
121
|
-
|
|
122
|
-
/* Scope tints (§3.7.1) */
|
|
123
|
-
--color-scope-tint-blocked: #FBE3E6;
|
|
124
|
-
--color-scope-tint-in-scope: #E2F2E8;
|
|
125
|
-
--color-scope-tint-suggest: #FBEFD8;
|
|
126
|
-
--color-scope-tint-comment: #F3FAF6;
|
|
127
|
-
--color-scope-tint-scheduled: #DCEFFC;
|
|
128
|
-
--color-scope-tint-proposed: #EAF6EF;
|
|
129
|
-
|
|
130
|
-
/* Shadows */
|
|
131
|
-
--shadow-soft: 0 6px 20px rgba(21, 26, 23, 0.06);
|
|
132
|
-
--shadow-float: 0 12px 32px rgba(21, 26, 23, 0.12);
|
|
133
|
-
--shadow-focus: 0 0 0 3px rgba(114, 214, 174, 0.28);
|
|
134
|
-
|
|
135
|
-
/* Radius (§4.3) */
|
|
136
|
-
--radius-sm: 10px;
|
|
137
|
-
--radius-md: 12px;
|
|
138
|
-
--radius-lg: 14px;
|
|
139
|
-
--radius-xl: 16px;
|
|
140
|
-
--radius-pill: 9999px;
|
|
141
|
-
|
|
142
|
-
/* Spacing (4px base) */
|
|
143
|
-
--space-1: 4px;
|
|
144
|
-
--space-2: 8px;
|
|
145
|
-
--space-3: 12px;
|
|
146
|
-
--space-4: 16px;
|
|
147
|
-
--space-5: 20px;
|
|
148
|
-
--space-6: 24px;
|
|
149
|
-
--space-8: 32px;
|
|
150
|
-
--space-10: 40px;
|
|
151
|
-
--space-12: 48px;
|
|
152
|
-
--space-16: 64px;
|
|
153
|
-
|
|
154
|
-
/* Motion (host-overridable) */
|
|
155
|
-
--motion-fast: 120ms;
|
|
156
|
-
--motion-default: 160ms;
|
|
157
|
-
--motion-slow: 220ms;
|
|
158
|
-
|
|
159
|
-
/*
|
|
160
|
-
* Type scale (designsystem.md v2.0 §4.1).
|
|
161
|
-
* Five fixed steps + tracking + leading + font families. Components
|
|
162
|
-
* that must read the design-system scale (status bar, eyebrows,
|
|
163
|
-
* keyboard hints) read these vars; Tailwind's default text-* utilities
|
|
164
|
-
* are unchanged.
|
|
165
|
-
*/
|
|
166
|
-
--text-xs: 11px;
|
|
167
|
-
--text-sm: 13px;
|
|
168
|
-
--text-md: 14px;
|
|
169
|
-
--text-lg: 16px;
|
|
170
|
-
--text-xl: 22px;
|
|
171
|
-
|
|
172
|
-
--leading-tight: 1.25;
|
|
173
|
-
--leading-snug: 1.4;
|
|
174
|
-
--leading-normal: 1.55;
|
|
175
|
-
|
|
176
|
-
--tracking-eyebrow: 0.18em;
|
|
177
|
-
--tracking-badge: 0.08em;
|
|
178
|
-
--tracking-status: 0.12em;
|
|
179
|
-
--tracking-shortcut: 0.04em;
|
|
180
|
-
|
|
181
|
-
/*
|
|
182
|
-
* Font families (designsystem.md v2.0 §4.1). Aliases of the
|
|
183
|
-
* `--font-legal-*` family that ships in editor-theme.css; both names
|
|
184
|
-
* resolve to the same stack so chrome code may use either.
|
|
185
|
-
*/
|
|
186
|
-
--font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
|
|
187
|
-
--font-serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
|
|
188
|
-
--font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
/*
|
|
192
|
-
* Dark palette (designsystem §3.4).
|
|
193
|
-
*
|
|
194
|
-
* Canonical selector is `[data-theme="dark"]`; `.dark` class is retained
|
|
195
|
-
* as a compat selector for one release cycle (existing harness markup
|
|
196
|
-
* uses it alongside the attribute). Remove `.dark` after an explicit
|
|
197
|
-
* consumer audit.
|
|
198
|
-
*/
|
|
199
|
-
[data-theme="dark"],
|
|
200
|
-
.dark {
|
|
201
|
-
/* Backgrounds */
|
|
202
|
-
--color-bg-app: #0E1411;
|
|
203
|
-
--color-bg-chrome: #131B17;
|
|
204
|
-
--color-bg-sidebar: #16211B;
|
|
205
|
-
--color-bg-canvas: #1B2620;
|
|
206
|
-
--color-bg-elevated: #202E27;
|
|
207
|
-
--color-bg-hover: #21342A;
|
|
208
|
-
--color-bg-selected: #274234;
|
|
209
|
-
--color-bg-muted: #17211C;
|
|
210
|
-
--color-bg-overlay: rgba(0, 0, 0, 0.32);
|
|
211
|
-
|
|
212
|
-
/* Borders */
|
|
213
|
-
--color-border-subtle: #26352C;
|
|
214
|
-
--color-border-default: #32463A;
|
|
215
|
-
--color-border-strong: #405847;
|
|
216
|
-
--color-border-accent: #4F8E70;
|
|
217
|
-
|
|
218
|
-
/* Text */
|
|
219
|
-
--color-text-primary: #EFF7F2;
|
|
220
|
-
--color-text-secondary: #A5B7AC;
|
|
221
|
-
--color-text-tertiary: #7F9187;
|
|
222
|
-
--color-text-quiet: #67786F;
|
|
223
|
-
--color-text-inverse: #111613;
|
|
224
|
-
--color-text-on-accent: #0F1713;
|
|
225
|
-
--color-text-on-soft-accent: #DDF7E9;
|
|
226
|
-
|
|
227
|
-
/* Accent */
|
|
228
|
-
--color-accent-primary: #53B487;
|
|
229
|
-
--color-accent-primary-hover: #69C598;
|
|
230
|
-
--color-accent-primary-active: #84D8AE;
|
|
231
|
-
--color-accent-secondary: #9AE7C7;
|
|
232
|
-
--color-accent-secondary-hover: #B2F0D5;
|
|
233
|
-
--color-accent-secondary-active: #C7F6E0;
|
|
234
|
-
--color-accent-soft: #294235;
|
|
235
|
-
--color-accent-soft-hover: #31503F;
|
|
236
|
-
|
|
237
|
-
/* Semantic */
|
|
238
|
-
--color-semantic-success: #45C787;
|
|
239
|
-
--color-semantic-success-soft: #1E3A2C;
|
|
240
|
-
--color-semantic-warning: #E7B04D;
|
|
241
|
-
--color-semantic-warning-soft: #3E3117;
|
|
242
|
-
--color-semantic-error: #F07A84;
|
|
243
|
-
--color-semantic-error-soft: #3D2024;
|
|
244
|
-
--color-semantic-info: #64B6E8;
|
|
245
|
-
--color-semantic-info-soft: #183444;
|
|
246
|
-
|
|
247
|
-
/* Field */
|
|
248
|
-
--color-field-fill: #202D25;
|
|
249
|
-
--color-field-editable: #23372B;
|
|
250
|
-
--color-field-focus: #294235;
|
|
251
|
-
--color-field-invalid: #3D2024;
|
|
252
|
-
--color-field-warning: #3E3117;
|
|
253
|
-
|
|
254
|
-
/* Status */
|
|
255
|
-
--color-status-ready: #45C787;
|
|
256
|
-
--color-status-in-progress: #64B6E8;
|
|
257
|
-
--color-status-paused: #7F9187;
|
|
258
|
-
--color-status-blocked: #F07A84;
|
|
259
|
-
--color-status-review: #53B487;
|
|
260
|
-
--color-status-draft: #7DA38F;
|
|
261
|
-
|
|
262
|
-
/* Comment */
|
|
263
|
-
--color-comment-marker: #53B487;
|
|
264
|
-
--color-comment-marker-hover: #69C598;
|
|
265
|
-
--color-comment-thread-bg: #1A2A22;
|
|
266
|
-
|
|
267
|
-
/* Change */
|
|
268
|
-
--color-change-insertion: #1E3A2C;
|
|
269
|
-
--color-change-deletion: #3D2024;
|
|
270
|
-
--color-change-comment: #21342A;
|
|
271
|
-
--color-change-selection: #294235;
|
|
272
|
-
|
|
273
|
-
/* Highlight (dimmed to avoid glare; same chroma family as light-mode yellow) */
|
|
274
|
-
--color-highlight-default: #B8A829;
|
|
275
|
-
|
|
276
|
-
/* Chart — categorical */
|
|
277
|
-
--color-chart-categorical-1: #53B487;
|
|
278
|
-
--color-chart-categorical-2: #9AE7C7;
|
|
279
|
-
--color-chart-categorical-3: #64B6E8;
|
|
280
|
-
--color-chart-categorical-4: #E7B04D;
|
|
281
|
-
--color-chart-categorical-5: #A996FF;
|
|
282
|
-
--color-chart-categorical-6: #F07A84;
|
|
283
|
-
--color-chart-categorical-7: #7DA38F;
|
|
284
|
-
--color-chart-categorical-8: #355746;
|
|
285
|
-
|
|
286
|
-
/* Chart — sequential */
|
|
287
|
-
--color-chart-sequential-1: #16211B;
|
|
288
|
-
--color-chart-sequential-2: #1D2E25;
|
|
289
|
-
--color-chart-sequential-3: #274234;
|
|
290
|
-
--color-chart-sequential-4: #35654F;
|
|
291
|
-
--color-chart-sequential-5: #53B487;
|
|
292
|
-
--color-chart-sequential-6: #9AE7C7;
|
|
293
|
-
|
|
294
|
-
/* Chart — diverging */
|
|
295
|
-
--color-chart-diverging-neg-strong: #F07A84;
|
|
296
|
-
--color-chart-diverging-neg: #C76069;
|
|
297
|
-
--color-chart-diverging-neutral: #2A3530;
|
|
298
|
-
--color-chart-diverging-pos: #69C598;
|
|
299
|
-
--color-chart-diverging-pos-strong: #9AE7C7;
|
|
300
|
-
|
|
301
|
-
/* Scope tints (§3.7.2) */
|
|
302
|
-
--color-scope-tint-blocked: #3D2024;
|
|
303
|
-
--color-scope-tint-in-scope: #274234;
|
|
304
|
-
--color-scope-tint-suggest: #3E3117;
|
|
305
|
-
--color-scope-tint-comment: #1A2A22;
|
|
306
|
-
--color-scope-tint-scheduled: #183444;
|
|
307
|
-
--color-scope-tint-proposed: #21342A;
|
|
308
|
-
|
|
309
|
-
/* Shadows */
|
|
310
|
-
--shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.28);
|
|
311
|
-
--shadow-float: 0 16px 40px rgba(0, 0, 0, 0.4);
|
|
312
|
-
--shadow-focus: 0 0 0 3px rgba(154, 231, 199, 0.22);
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
/*
|
|
316
|
-
* Reduced-motion contract (designsystem §4.6 / §7.3).
|
|
317
|
-
* Collapses every motion token so any transition consuming `var(--motion-*)`
|
|
318
|
-
* becomes functionally instant. Components MUST read these tokens — never
|
|
319
|
-
* hardcode a numeric duration.
|
|
320
|
-
*/
|
|
321
|
-
@media (prefers-reduced-motion: reduce) {
|
|
322
|
-
:root {
|
|
323
|
-
--motion-fast: 1ms;
|
|
324
|
-
--motion-default: 1ms;
|
|
325
|
-
--motion-slow: 1ms;
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
/*
|
|
330
|
-
* Density scale (designsystem §4.2 / Lane 6b.U5 consumer wiring).
|
|
331
|
-
*
|
|
332
|
-
* Components multiply spacing by `--space-density-multiplier`.
|
|
333
|
-
* Standard (1.0) is the default; compact (0.85) and comfortable (1.15)
|
|
334
|
-
* are opt-in via `data-density` on the root element.
|
|
335
|
-
* The hook `use-density.ts` reads and writes this attribute.
|
|
336
|
-
*/
|
|
337
|
-
:root {
|
|
338
|
-
--space-density-multiplier: 1;
|
|
339
|
-
}
|
|
340
|
-
:root[data-density="compact"] {
|
|
341
|
-
--space-density-multiplier: 0.85;
|
|
342
|
-
}
|
|
343
|
-
:root[data-density="standard"] {
|
|
344
|
-
--space-density-multiplier: 1;
|
|
345
|
-
}
|
|
346
|
-
:root[data-density="comfortable"] {
|
|
347
|
-
--space-density-multiplier: 1.15;
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
/*
|
|
351
|
-
* Back-compat aliases (temporary — remove after full consumer sweep).
|
|
352
|
-
*
|
|
353
|
-
* These bind pre-6a names to their post-6a equivalents so that the
|
|
354
|
-
* existing @theme {} block in editor-theme.css and already-shipped
|
|
355
|
-
* component markup continue to resolve during the phased migration.
|
|
356
|
-
*/
|
|
357
|
-
:root {
|
|
358
|
-
/* Legacy accent seed (was teal) → forest-green primary family */
|
|
359
|
-
--color-accent: var(--color-accent-primary);
|
|
360
|
-
/* Legacy single-name semantic tokens → canonical semantic family */
|
|
361
|
-
--color-danger: var(--color-semantic-error);
|
|
362
|
-
--color-danger-soft: var(--color-semantic-error-soft);
|
|
363
|
-
--color-warning: var(--color-semantic-warning);
|
|
364
|
-
--color-warning-soft: var(--color-semantic-warning-soft);
|
|
365
|
-
--color-success: var(--color-semantic-success);
|
|
366
|
-
--color-success-soft: var(--color-semantic-success-soft);
|
|
367
|
-
--color-info: var(--color-semantic-info);
|
|
368
|
-
--color-info-soft: var(--color-semantic-info-soft);
|
|
369
|
-
/* Legacy review markup names → change family */
|
|
370
|
-
--color-insert: var(--color-accent-primary);
|
|
371
|
-
--color-insert-soft: var(--color-change-insertion);
|
|
372
|
-
--color-delete: var(--color-semantic-error);
|
|
373
|
-
--color-delete-soft: var(--color-change-deletion);
|
|
374
|
-
--color-comment: var(--color-comment-marker);
|
|
375
|
-
--color-comment-soft: var(--color-change-comment);
|
|
376
|
-
--color-comment-strong: var(--color-comment-marker-hover);
|
|
377
|
-
/* Legacy L8 Phase A radius names → §4.3 scale */
|
|
378
|
-
--radius-panel: var(--radius-md);
|
|
379
|
-
--radius-card: var(--radius-sm);
|
|
380
|
-
--radius-control: var(--radius-sm);
|
|
381
|
-
--radius-page: 2px;
|
|
382
|
-
}
|