@yudaocode/univer-docs-ui 1.6.218 → 1.6.219

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/lib/index.css CHANGED
@@ -547,3 +547,31 @@
547
547
  align-items: center;
548
548
  gap: 6px;
549
549
  }
550
+
551
+ /* Left-Margin Page Line-Number Ruler Strip (`<w:lnNumType>`) */
552
+ .yudao-doc-linenum-ruler {
553
+ position: fixed;
554
+ left: 244px;
555
+ top: 112px;
556
+ bottom: 64px;
557
+ width: 34px;
558
+ z-index: 9970;
559
+ pointer-events: none;
560
+ display: flex;
561
+ flex-direction: column;
562
+ gap: 4px;
563
+ padding: 8px 6px 8px 2px;
564
+ border-right: 1px dashed rgba(148, 163, 184, 0.45);
565
+ background: linear-gradient(90deg, rgba(248, 250, 252, 0.85), rgba(248, 250, 252, 0));
566
+ overflow: hidden;
567
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
568
+ }
569
+
570
+ .yudao-doc-linenum-tick {
571
+ height: 18px;
572
+ line-height: 18px;
573
+ text-align: right;
574
+ font-size: 10.5px;
575
+ color: #8492a6;
576
+ user-select: none;
577
+ }
@@ -95,6 +95,7 @@ interface IDocsUIFeatureService {
95
95
  readonly ioModal$: Observable<IDocIoModalConfig | undefined>;
96
96
  readonly editingChartId$: Observable<string | null>;
97
97
  readonly editingMiniSheetId$: Observable<string | null>;
98
+ readonly editingSmartArtId$: Observable<string | null>;
98
99
  readonly slashMenuOpen$: Observable<boolean>;
99
100
  getFeatures(): IResolvedDocsUIFeatures;
100
101
  setFeatures(features: IUniverDocsUIFeatures): void;
@@ -112,6 +113,9 @@ interface IDocsUIFeatureService {
112
113
  getEditingMiniSheetId(): string | null;
113
114
  openMiniSheetEditor(sheetId: string): void;
114
115
  closeMiniSheetEditor(): void;
116
+ getEditingSmartArtId(): string | null;
117
+ openSmartArtEditor(smartArtId: string): void;
118
+ closeSmartArtEditor(): void;
115
119
  isSlashMenuOpen(): boolean;
116
120
  openSlashMenu(): void;
117
121
  closeSlashMenu(): void;
@@ -124,6 +128,7 @@ declare class DocsUIFeatureService extends Disposable implements IDocsUIFeatureS
124
128
  private readonly _ioModal$;
125
129
  private readonly _editingChartId$;
126
130
  private readonly _editingMiniSheetId$;
131
+ private readonly _editingSmartArtId$;
127
132
  private readonly _slashMenuOpen$;
128
133
  private _baseIoModal?;
129
134
  readonly features$: Observable<IResolvedDocsUIFeatures>;
@@ -132,6 +137,7 @@ declare class DocsUIFeatureService extends Disposable implements IDocsUIFeatureS
132
137
  readonly ioModal$: Observable<IDocIoModalConfig | undefined>;
133
138
  readonly editingChartId$: Observable<string | null>;
134
139
  readonly editingMiniSheetId$: Observable<string | null>;
140
+ readonly editingSmartArtId$: Observable<string | null>;
135
141
  readonly slashMenuOpen$: Observable<boolean>;
136
142
  constructor(initial?: IUniverDocsUIFeatures, initialIoModal?: IDocIoModalConfig);
137
143
  private _mergeIoModal;
@@ -152,6 +158,9 @@ declare class DocsUIFeatureService extends Disposable implements IDocsUIFeatureS
152
158
  getEditingMiniSheetId(): string | null;
153
159
  openMiniSheetEditor(sheetId: string): void;
154
160
  closeMiniSheetEditor(): void;
161
+ getEditingSmartArtId(): string | null;
162
+ openSmartArtEditor(smartArtId: string): void;
163
+ closeSmartArtEditor(): void;
155
164
  isSlashMenuOpen(): boolean;
156
165
  openSlashMenu(): void;
157
166
  closeSlashMenu(): void;
@@ -291,6 +300,8 @@ declare const DocChartEditorModal: React.FC;
291
300
 
292
301
  declare const DocMiniSheetModal: React.FC;
293
302
 
303
+ declare const DocSmartArtEditorModal: React.FC;
304
+
294
305
  interface ISlashCommandItem {
295
306
  id: string;
296
307
  badge: string;
@@ -310,4 +321,4 @@ interface IDocSlashMenuProps {
310
321
  }
311
322
  declare const DocSlashMenu: React.FC<IDocSlashMenuProps>;
312
323
 
313
- export { DOC_IMPORT_ACCEPT_EXTENSIONS, DOC_INSPECTOR_COMPONENT_KEY, DOC_INSPECTOR_SIDEBAR_ID, DocCanvasEnhancementsHost, DocChartEditorModal, DocInspectorPanel, type DocIoModalTabKey, DocLeftSidebar, DocMiniSheetModal, type DocModalTabMode, DocPreviewAndIoModal, DocSdtCanvasPopupHost, DocSlashMenu, DocsExtUIController, DocsUIFeatureService, FillDocSampleDatasetOperation, type IDocIoModalConfig, type IDocSlashMenuProps, IDocsUIFeatureService, type IIoErrorState, type IOpenDocModalOperationParams, type IPendingImportState, type IResolvedDocsUIFeatures, type ISlashCommandItem, type IUniverDocsExtUIConfig, type IUniverDocsUIFeatures, ImportDocFileOperation, OpenDocModalOperation, PrintDocOperation, QuickInsertDocSdtOperation, ToggleDocInspectorOperation, UNIVER_DOCS_EXT_UI_PLUGIN_NAME, UniverDocsExtUIPlugin, UpdateDocsUIFeaturesOperation, YUDAO_DOC_FIELD_DND_MIME, confirmStagedDocImport, isDocSdtKindAllowed, openDocInspectorSidebar, resolveDocsUIFeatures, resolveEffectiveSdtDatasetBinding, runGuardedStagedImport };
324
+ export { DOC_IMPORT_ACCEPT_EXTENSIONS, DOC_INSPECTOR_COMPONENT_KEY, DOC_INSPECTOR_SIDEBAR_ID, DocCanvasEnhancementsHost, DocChartEditorModal, DocInspectorPanel, type DocIoModalTabKey, DocLeftSidebar, DocMiniSheetModal, type DocModalTabMode, DocPreviewAndIoModal, DocSdtCanvasPopupHost, DocSlashMenu, DocSmartArtEditorModal, DocsExtUIController, DocsUIFeatureService, FillDocSampleDatasetOperation, type IDocIoModalConfig, type IDocSlashMenuProps, IDocsUIFeatureService, type IIoErrorState, type IOpenDocModalOperationParams, type IPendingImportState, type IResolvedDocsUIFeatures, type ISlashCommandItem, type IUniverDocsExtUIConfig, type IUniverDocsUIFeatures, ImportDocFileOperation, OpenDocModalOperation, PrintDocOperation, QuickInsertDocSdtOperation, ToggleDocInspectorOperation, UNIVER_DOCS_EXT_UI_PLUGIN_NAME, UniverDocsExtUIPlugin, UpdateDocsUIFeaturesOperation, YUDAO_DOC_FIELD_DND_MIME, confirmStagedDocImport, isDocSdtKindAllowed, openDocInspectorSidebar, resolveDocsUIFeatures, resolveEffectiveSdtDatasetBinding, runGuardedStagedImport };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yudaocode/univer-docs-ui",
3
- "version": "1.6.218",
3
+ "version": "1.6.219",
4
4
  "description": "Univer Docs UI enhancement plugin: on-demand SDT structured controls, table row loop binding, per-instance canvas popups, and DOCX/HTML/PDF IO modal",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/yudaocode/yudao-univer#readme",
@@ -62,7 +62,7 @@
62
62
  "react": ">=18.0.0",
63
63
  "react-dom": ">=18.0.0",
64
64
  "rxjs": ">=7.0.0",
65
- "@yudaocode/univer-docs": "^1.6.218"
65
+ "@yudaocode/univer-docs": "^1.6.219"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@univerjs/core": "1.6.2",
@@ -75,7 +75,7 @@
75
75
  "react": "^18.3.1",
76
76
  "react-dom": "^18.3.1",
77
77
  "rxjs": "^7.8.2",
78
- "@yudaocode/univer-docs": "1.6.218"
78
+ "@yudaocode/univer-docs": "1.6.219"
79
79
  },
80
80
  "scripts": {
81
81
  "build": "tsup",